]> git.proxmox.com Git - mirror_spl-debian.git/blame - configure
Imported Upstream version 0.6.5.11
[mirror_spl-debian.git] / configure
CommitLineData
10946b02
AX
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
0b31b230 3# Generated by GNU Autoconf 2.63 for spl 0.6.5.11.
10946b02 4#
0b31b230
AX
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10946b02
AX
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
0b31b230
AX
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
10946b02
AX
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
0b31b230 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10946b02
AX
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
0b31b230
AX
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
10946b02 25esac
0b31b230 26
10946b02
AX
27fi
28
29
0b31b230
AX
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
10946b02
AX
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
0b31b230 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10946b02
AX
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;
0b31b230 58 case $arg in
10946b02
AX
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 }
79fi
80
0b31b230
AX
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
10946b02
AX
88
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
0b31b230 97case $0 in
10946b02
AX
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=.
0b31b230
AX
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
10946b02
AX
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
0b31b230 117 { (exit 1); exit 1; }
10946b02
AX
118fi
119
0b31b230
AX
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10946b02
AX
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
0b31b230
AX
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
10946b02 169# CDPATH.
0b31b230
AX
170$as_unset CDPATH
171
10946b02
AX
172
173if test "x$CONFIG_SHELL" = x; then
0b31b230
AX
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
10946b02 176else
0b31b230 177 as_have_required=no
10946b02 178fi
0b31b230
AX
179
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}
10946b02
AX
196
197exitcode=0
0b31b230
AX
198if as_func_success; then
199 :
10946b02 200else
0b31b230
AX
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
10946b02 208fi
10946b02 209
0b31b230
AX
210if as_func_ret_success; then
211 :
10946b02 212else
0b31b230
AX
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=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946b02
AX
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=.
0b31b230 245 case $as_dir in
10946b02
AX
246 /*)
247 for as_base in sh bash ksh sh5; do
0b31b230 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
10946b02
AX
249 done;;
250 esac
10946b02 251done
10946b02
AX
252IFS=$as_save_IFS
253
254
0b31b230
AX
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 ;;
ac9cc135 269esac
0b31b230 270
10946b02 271fi
10946b02 272
10946b02 273
0b31b230
AX
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
10946b02 291
0b31b230 292fi
10946b02 293
10946b02 294
0b31b230
AX
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}
10946b02 311
0b31b230
AX
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
ac9cc135 319
0b31b230
AX
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
10946b02 327else
0b31b230
AX
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 :
10946b02 339else
0b31b230
AX
340 exitcode=1
341 echo positional parameters were not saved.
342fi
10946b02 343
0b31b230 344test $exitcode = 0) || { (exit 1); exit 1; }
10946b02 345
0b31b230
AX
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
10946b02 351
0b31b230
AX
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 :
10946b02 404else
0b31b230
AX
405 exitcode=1
406 echo as_func_success failed.
10946b02
AX
407fi
408
0b31b230
AX
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
10946b02 416else
0b31b230
AX
417 exitcode=1
418 echo as_func_ret_success failed.
10946b02
AX
419fi
420
0b31b230
AX
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 :
10946b02 428else
0b31b230
AX
429 exitcode=1
430 echo positional parameters were not saved.
10946b02
AX
431fi
432
0b31b230
AX
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}
10946b02 440
10946b02
AX
441
442
0b31b230
AX
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
10946b02
AX
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
0b31b230
AX
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
10946b02
AX
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483}
484
0b31b230
AX
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
10946b02 492ECHO_C= ECHO_N= ECHO_T=
0b31b230 493case `echo -n x` in
10946b02 494-n*)
0b31b230 495 case `echo 'x\c'` in
10946b02 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
0b31b230 497 *) ECHO_C='\c';;
10946b02
AX
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
0b31b230
AX
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
10946b02
AX
508
509rm -f conf$$ conf$$.exe conf$$.file
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
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
0b31b230 522 # In both cases, we have to default to `cp -p'.
10946b02 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
0b31b230 524 as_ln_s='cp -p'
10946b02
AX
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
0b31b230 528 as_ln_s='cp -p'
10946b02
AX
529 fi
530else
0b31b230 531 as_ln_s='cp -p'
10946b02
AX
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
0b31b230 537 as_mkdir_p=:
10946b02
AX
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
0b31b230
AX
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
10946b02
AX
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
0b31b230
AX
572
573
574
575# Check that we are running under the correct shell.
10946b02
AX
576SHELL=${CONFIG_SHELL-/bin/sh}
577
0b31b230
AX
578case X$lt_ECHO in
579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583esac
584
585ECHO=${lt_ECHO-echo}
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 :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
10946b02 599
0b31b230
AX
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604$*
605_LT_EOF
606 exit 0
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
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
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711fi
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.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
10946b02
AX
724
725# Name of the host.
0b31b230 726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
10946b02
AX
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
0b31b230 741SHELL=${CONFIG_SHELL-/bin/sh}
10946b02
AX
742
743# Identity of this package.
744PACKAGE_NAME='spl'
745PACKAGE_TARNAME='spl'
0b31b230
AX
746PACKAGE_VERSION='0.6.5.11'
747PACKAGE_STRING='spl 0.6.5.11'
10946b02 748PACKAGE_BUGREPORT=''
10946b02
AX
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
753#ifdef HAVE_SYS_TYPES_H
754# include <sys/types.h>
755#endif
756#ifdef HAVE_SYS_STAT_H
757# include <sys/stat.h>
758#endif
759#ifdef STDC_HEADERS
760# include <stdlib.h>
761# include <stddef.h>
762#else
763# ifdef HAVE_STDLIB_H
764# include <stdlib.h>
765# endif
766#endif
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769# include <memory.h>
770# endif
771# include <string.h>
772#endif
773#ifdef HAVE_STRINGS_H
774# include <strings.h>
775#endif
776#ifdef HAVE_INTTYPES_H
777# include <inttypes.h>
778#endif
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
783# include <unistd.h>
784#endif"
785
786ac_subst_vars='am__EXEEXT_FALSE
787am__EXEEXT_TRUE
788LTLIBOBJS
789LIBOBJS
790CONFIG_KERNEL_FALSE
791CONFIG_KERNEL_TRUE
792CONFIG_USER_FALSE
793CONFIG_USER_TRUE
794DEBUG_KMEM_TRACKING
795DEBUG_KMEM
796DEBUG_SPL
797DEBUG_CFLAGS
798KERNELCPPFLAGS
799KERNELMAKE_PARAMS
800LINUX_SYMBOLS
801LINUX_VERSION
802LINUX_OBJ
803LINUX
804SPL_CONFIG
805ALIEN_VERSION
806ALIEN
807HAVE_ALIEN
808DPKGBUILD_VERSION
809DPKGBUILD
810HAVE_DPKGBUILD
811DPKG_VERSION
812DPKG
813HAVE_DPKG
814SRPM_DEFINE_COMMON
815SRPM_DEFINE_DKMS
816SRPM_DEFINE_KMOD
817SRPM_DEFINE_UTIL
818RPM_DEFINE_COMMON
819RPM_DEFINE_DKMS
820RPM_DEFINE_KMOD
821RPM_DEFINE_UTIL
822RPM_SPEC_DIR
823RPMBUILD_VERSION
824RPMBUILD
825HAVE_RPMBUILD
826RPM_VERSION
827RPM
828HAVE_RPM
829DEFAULT_PACKAGE
830VENDOR
831CPP
832OTOOL64
833OTOOL
834LIPO
835NMEDIT
836DSYMUTIL
0b31b230 837lt_ECHO
10946b02 838RANLIB
10946b02 839AR
10946b02
AX
840OBJDUMP
841LN_S
842NM
843ac_ct_DUMPBIN
844DUMPBIN
845LD
846FGREP
847EGREP
848GREP
849SED
850LIBTOOL
851am__fastdepCC_FALSE
852am__fastdepCC_TRUE
853CCDEPMODE
10946b02
AX
854AMDEPBACKSLASH
855AMDEP_FALSE
856AMDEP_TRUE
857am__quote
858am__include
859DEPDIR
860OBJEXT
861EXEEXT
862ac_ct_CC
863CPPFLAGS
864LDFLAGS
865CFLAGS
866CC
867am__untar
868am__tar
869AMTAR
870am__leading_dot
871SET_MAKE
872mkdir_p
873MKDIR_P
874INSTALL_STRIP_PROGRAM
875STRIP
876install_sh
877MAKEINFO
878AUTOHEADER
879AUTOMAKE
880AUTOCONF
881ACLOCAL
882VERSION
883PACKAGE
884CYGPATH_W
885am__isrc
886INSTALL_DATA
887INSTALL_SCRIPT
888INSTALL_PROGRAM
889AM_BACKSLASH
890AM_DEFAULT_VERBOSITY
10946b02
AX
891MAINT
892MAINTAINER_MODE_FALSE
893MAINTAINER_MODE_TRUE
894target_os
895target_vendor
896target_cpu
897target
898host_os
899host_vendor
900host_cpu
901host
902build_os
903build_vendor
904build_cpu
905build
906SPL_META_LT_AGE
907SPL_META_LT_REVISION
908SPL_META_LT_CURRENT
909SPL_META_AUTHOR
910SPL_META_DATA
911SPL_META_ALIAS
912SPL_META_LICENSE
913RELEASE
914SPL_META_RELEASE
915SPL_META_VERSION
916SPL_META_NAME
917AWK
918target_alias
919host_alias
920build_alias
921LIBS
922ECHO_T
923ECHO_N
924ECHO_C
925DEFS
926mandir
927localedir
928libdir
929psdir
930pdfdir
931dvidir
932htmldir
933infodir
934docdir
935oldincludedir
936includedir
937localstatedir
938sharedstatedir
939sysconfdir
940datadir
941datarootdir
942libexecdir
943sbindir
944bindir
945program_transform_name
946prefix
947exec_prefix
10946b02
AX
948PACKAGE_BUGREPORT
949PACKAGE_STRING
950PACKAGE_VERSION
951PACKAGE_TARNAME
952PACKAGE_NAME
953PATH_SEPARATOR
954SHELL'
955ac_subst_files=''
956ac_user_opts='
957enable_option_checking
958enable_maintainer_mode
959enable_silent_rules
960enable_dependency_tracking
961enable_shared
962enable_static
963with_pic
964enable_fast_install
965with_gnu_ld
10946b02
AX
966enable_libtool_lock
967with_spec
968with_config
969enable_linux_builtin
970with_linux
971with_linux_obj
972enable_debug
973enable_debug_kmem
974enable_debug_kmem_tracking
975enable_atomic_spinlocks
976'
977 ac_precious_vars='build_alias
978host_alias
979target_alias
980CC
981CFLAGS
982LDFLAGS
983LIBS
984CPPFLAGS
985CPP'
986
987
988# Initialize some variables set by options.
989ac_init_help=
990ac_init_version=false
991ac_unrecognized_opts=
992ac_unrecognized_sep=
993# The variables have the same names as the options, with
994# dashes changed to underlines.
995cache_file=/dev/null
996exec_prefix=NONE
997no_create=
998no_recursion=
999prefix=NONE
1000program_prefix=NONE
1001program_suffix=NONE
1002program_transform_name=s,x,x,
1003silent=
1004site=
1005srcdir=
1006verbose=
1007x_includes=NONE
1008x_libraries=NONE
1009
1010# Installation directory options.
1011# These are left unexpanded so users can "make install exec_prefix=/foo"
1012# and all the variables that are supposed to be based on exec_prefix
1013# by default will actually change.
1014# Use braces instead of parens because sh, perl, etc. also accept them.
1015# (The list follows the same order as the GNU Coding Standards.)
1016bindir='${exec_prefix}/bin'
1017sbindir='${exec_prefix}/sbin'
1018libexecdir='${exec_prefix}/libexec'
1019datarootdir='${prefix}/share'
1020datadir='${datarootdir}'
1021sysconfdir='${prefix}/etc'
1022sharedstatedir='${prefix}/com'
1023localstatedir='${prefix}/var'
1024includedir='${prefix}/include'
1025oldincludedir='/usr/include'
1026docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1027infodir='${datarootdir}/info'
1028htmldir='${docdir}'
1029dvidir='${docdir}'
1030pdfdir='${docdir}'
1031psdir='${docdir}'
1032libdir='${exec_prefix}/lib'
1033localedir='${datarootdir}/locale'
1034mandir='${datarootdir}/man'
1035
1036ac_prev=
1037ac_dashdash=
1038for ac_option
1039do
1040 # If the previous option needs an argument, assign it.
1041 if test -n "$ac_prev"; then
1042 eval $ac_prev=\$ac_option
1043 ac_prev=
1044 continue
1045 fi
1046
1047 case $ac_option in
0b31b230
AX
1048 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1049 *) ac_optarg=yes ;;
10946b02
AX
1050 esac
1051
1052 # Accept the important Cygnus configure options, so we can diagnose typos.
1053
1054 case $ac_dashdash$ac_option in
1055 --)
1056 ac_dashdash=yes ;;
1057
1058 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1059 ac_prev=bindir ;;
1060 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1061 bindir=$ac_optarg ;;
1062
1063 -build | --build | --buil | --bui | --bu)
1064 ac_prev=build_alias ;;
1065 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1066 build_alias=$ac_optarg ;;
1067
1068 -cache-file | --cache-file | --cache-fil | --cache-fi \
1069 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1070 ac_prev=cache_file ;;
1071 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1072 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1073 cache_file=$ac_optarg ;;
1074
1075 --config-cache | -C)
1076 cache_file=config.cache ;;
1077
1078 -datadir | --datadir | --datadi | --datad)
1079 ac_prev=datadir ;;
1080 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1081 datadir=$ac_optarg ;;
1082
1083 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1084 | --dataroo | --dataro | --datar)
1085 ac_prev=datarootdir ;;
1086 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1087 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1088 datarootdir=$ac_optarg ;;
1089
1090 -disable-* | --disable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0b31b230
AX
1094 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1095 { (exit 1); exit 1; }; }
10946b02
AX
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100"enable_$ac_useropt"
1101"*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=no ;;
1106
1107 -docdir | --docdir | --docdi | --doc | --do)
1108 ac_prev=docdir ;;
1109 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1110 docdir=$ac_optarg ;;
1111
1112 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1113 ac_prev=dvidir ;;
1114 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1115 dvidir=$ac_optarg ;;
1116
1117 -enable-* | --enable-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0b31b230
AX
1121 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1122 { (exit 1); exit 1; }; }
10946b02
AX
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127"enable_$ac_useropt"
1128"*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval enable_$ac_useropt=\$ac_optarg ;;
1133
1134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1136 | --exec | --exe | --ex)
1137 ac_prev=exec_prefix ;;
1138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1140 | --exec=* | --exe=* | --ex=*)
1141 exec_prefix=$ac_optarg ;;
1142
1143 -gas | --gas | --ga | --g)
1144 # Obsolete; use --with-gas.
1145 with_gas=yes ;;
1146
1147 -help | --help | --hel | --he | -h)
1148 ac_init_help=long ;;
1149 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1150 ac_init_help=recursive ;;
1151 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1152 ac_init_help=short ;;
1153
1154 -host | --host | --hos | --ho)
1155 ac_prev=host_alias ;;
1156 -host=* | --host=* | --hos=* | --ho=*)
1157 host_alias=$ac_optarg ;;
1158
1159 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1160 ac_prev=htmldir ;;
1161 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1162 | --ht=*)
1163 htmldir=$ac_optarg ;;
1164
1165 -includedir | --includedir | --includedi | --included | --include \
1166 | --includ | --inclu | --incl | --inc)
1167 ac_prev=includedir ;;
1168 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1169 | --includ=* | --inclu=* | --incl=* | --inc=*)
1170 includedir=$ac_optarg ;;
1171
1172 -infodir | --infodir | --infodi | --infod | --info | --inf)
1173 ac_prev=infodir ;;
1174 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1175 infodir=$ac_optarg ;;
1176
1177 -libdir | --libdir | --libdi | --libd)
1178 ac_prev=libdir ;;
1179 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1180 libdir=$ac_optarg ;;
1181
1182 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1183 | --libexe | --libex | --libe)
1184 ac_prev=libexecdir ;;
1185 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1186 | --libexe=* | --libex=* | --libe=*)
1187 libexecdir=$ac_optarg ;;
1188
1189 -localedir | --localedir | --localedi | --localed | --locale)
1190 ac_prev=localedir ;;
1191 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192 localedir=$ac_optarg ;;
1193
1194 -localstatedir | --localstatedir | --localstatedi | --localstated \
1195 | --localstate | --localstat | --localsta | --localst | --locals)
1196 ac_prev=localstatedir ;;
1197 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1198 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1199 localstatedir=$ac_optarg ;;
1200
1201 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1202 ac_prev=mandir ;;
1203 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1204 mandir=$ac_optarg ;;
1205
1206 -nfp | --nfp | --nf)
1207 # Obsolete; use --without-fp.
1208 with_fp=no ;;
1209
1210 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1211 | --no-cr | --no-c | -n)
1212 no_create=yes ;;
1213
1214 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1215 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216 no_recursion=yes ;;
1217
1218 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1219 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1220 | --oldin | --oldi | --old | --ol | --o)
1221 ac_prev=oldincludedir ;;
1222 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1223 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1224 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1225 oldincludedir=$ac_optarg ;;
1226
1227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1228 ac_prev=prefix ;;
1229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1230 prefix=$ac_optarg ;;
1231
1232 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1233 | --program-pre | --program-pr | --program-p)
1234 ac_prev=program_prefix ;;
1235 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1236 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1237 program_prefix=$ac_optarg ;;
1238
1239 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1240 | --program-suf | --program-su | --program-s)
1241 ac_prev=program_suffix ;;
1242 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1243 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1244 program_suffix=$ac_optarg ;;
1245
1246 -program-transform-name | --program-transform-name \
1247 | --program-transform-nam | --program-transform-na \
1248 | --program-transform-n | --program-transform- \
1249 | --program-transform | --program-transfor \
1250 | --program-transfo | --program-transf \
1251 | --program-trans | --program-tran \
1252 | --progr-tra | --program-tr | --program-t)
1253 ac_prev=program_transform_name ;;
1254 -program-transform-name=* | --program-transform-name=* \
1255 | --program-transform-nam=* | --program-transform-na=* \
1256 | --program-transform-n=* | --program-transform-=* \
1257 | --program-transform=* | --program-transfor=* \
1258 | --program-transfo=* | --program-transf=* \
1259 | --program-trans=* | --program-tran=* \
1260 | --progr-tra=* | --program-tr=* | --program-t=*)
1261 program_transform_name=$ac_optarg ;;
1262
1263 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1264 ac_prev=pdfdir ;;
1265 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1266 pdfdir=$ac_optarg ;;
1267
1268 -psdir | --psdir | --psdi | --psd | --ps)
1269 ac_prev=psdir ;;
1270 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271 psdir=$ac_optarg ;;
1272
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 silent=yes ;;
1276
1277 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1278 ac_prev=sbindir ;;
1279 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1280 | --sbi=* | --sb=*)
1281 sbindir=$ac_optarg ;;
1282
1283 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1284 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1285 | --sharedst | --shareds | --shared | --share | --shar \
1286 | --sha | --sh)
1287 ac_prev=sharedstatedir ;;
1288 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1289 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1290 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1291 | --sha=* | --sh=*)
1292 sharedstatedir=$ac_optarg ;;
1293
1294 -site | --site | --sit)
1295 ac_prev=site ;;
1296 -site=* | --site=* | --sit=*)
1297 site=$ac_optarg ;;
1298
1299 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1300 ac_prev=srcdir ;;
1301 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1302 srcdir=$ac_optarg ;;
1303
1304 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1305 | --syscon | --sysco | --sysc | --sys | --sy)
1306 ac_prev=sysconfdir ;;
1307 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1308 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1309 sysconfdir=$ac_optarg ;;
1310
1311 -target | --target | --targe | --targ | --tar | --ta | --t)
1312 ac_prev=target_alias ;;
1313 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1314 target_alias=$ac_optarg ;;
1315
1316 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317 verbose=yes ;;
1318
1319 -version | --version | --versio | --versi | --vers | -V)
1320 ac_init_version=: ;;
1321
1322 -with-* | --with-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0b31b230
AX
1326 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1327 { (exit 1); exit 1; }; }
10946b02
AX
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1331 *"
1332"with_$ac_useropt"
1333"*) ;;
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1336 esac
1337 eval with_$ac_useropt=\$ac_optarg ;;
1338
1339 -without-* | --without-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0b31b230
AX
1343 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1344 { (exit 1); exit 1; }; }
10946b02
AX
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1348 *"
1349"with_$ac_useropt"
1350"*) ;;
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1353 esac
1354 eval with_$ac_useropt=no ;;
1355
1356 --x)
1357 # Obsolete; use --with-x.
1358 with_x=yes ;;
1359
1360 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1361 | --x-incl | --x-inc | --x-in | --x-i)
1362 ac_prev=x_includes ;;
1363 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1364 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1365 x_includes=$ac_optarg ;;
1366
1367 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1368 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1369 ac_prev=x_libraries ;;
1370 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1371 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1372 x_libraries=$ac_optarg ;;
1373
0b31b230
AX
1374 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1375Try \`$0 --help' for more information." >&2
1376 { (exit 1); exit 1; }; }
10946b02
AX
1377 ;;
1378
1379 *=*)
1380 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1381 # Reject names that are not valid shell variable names.
0b31b230
AX
1382 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1383 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1384 { (exit 1); exit 1; }; }
10946b02
AX
1385 eval $ac_envvar=\$ac_optarg
1386 export $ac_envvar ;;
1387
1388 *)
1389 # FIXME: should be removed in autoconf 3.0.
1390 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1391 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1392 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
0b31b230 1393 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10946b02
AX
1394 ;;
1395
1396 esac
1397done
1398
1399if test -n "$ac_prev"; then
1400 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
0b31b230
AX
1401 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1402 { (exit 1); exit 1; }; }
10946b02
AX
1403fi
1404
1405if test -n "$ac_unrecognized_opts"; then
1406 case $enable_option_checking in
1407 no) ;;
0b31b230
AX
1408 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1409 { (exit 1); exit 1; }; } ;;
10946b02
AX
1410 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1411 esac
1412fi
1413
1414# Check all directory arguments for consistency.
1415for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416 datadir sysconfdir sharedstatedir localstatedir includedir \
1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
0b31b230 1418 libdir localedir mandir
10946b02
AX
1419do
1420 eval ac_val=\$$ac_var
1421 # Remove trailing slashes.
1422 case $ac_val in
1423 */ )
1424 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425 eval $ac_var=\$ac_val;;
1426 esac
1427 # Be sure to have absolute directory names.
1428 case $ac_val in
1429 [\\/$]* | ?:[\\/]* ) continue;;
1430 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1431 esac
0b31b230
AX
1432 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1433 { (exit 1); exit 1; }; }
10946b02
AX
1434done
1435
1436# There might be people who depend on the old broken behavior: `$host'
1437# used to hold the argument of --host etc.
1438# FIXME: To remove some day.
1439build=$build_alias
1440host=$host_alias
1441target=$target_alias
1442
1443# FIXME: To remove some day.
1444if test "x$host_alias" != x; then
1445 if test "x$build_alias" = x; then
1446 cross_compiling=maybe
0b31b230
AX
1447 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1448 If a cross compiler is detected then cross compile mode will be used." >&2
10946b02
AX
1449 elif test "x$build_alias" != "x$host_alias"; then
1450 cross_compiling=yes
1451 fi
1452fi
1453
1454ac_tool_prefix=
1455test -n "$host_alias" && ac_tool_prefix=$host_alias-
1456
1457test "$silent" = yes && exec 6>/dev/null
1458
1459
1460ac_pwd=`pwd` && test -n "$ac_pwd" &&
1461ac_ls_di=`ls -di .` &&
1462ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
0b31b230
AX
1463 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1464 { (exit 1); exit 1; }; }
10946b02 1465test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
0b31b230
AX
1466 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1467 { (exit 1); exit 1; }; }
10946b02
AX
1468
1469
1470# Find the source files, if location was not specified.
1471if test -z "$srcdir"; then
1472 ac_srcdir_defaulted=yes
1473 # Try the directory containing this script, then the parent directory.
1474 ac_confdir=`$as_dirname -- "$as_myself" ||
1475$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1476 X"$as_myself" : 'X\(//\)[^/]' \| \
1477 X"$as_myself" : 'X\(//\)$' \| \
1478 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1479$as_echo X"$as_myself" |
1480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\/\)[^/].*/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\/\)$/{
1489 s//\1/
1490 q
1491 }
1492 /^X\(\/\).*/{
1493 s//\1/
1494 q
1495 }
1496 s/.*/./; q'`
1497 srcdir=$ac_confdir
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1499 srcdir=..
1500 fi
1501else
1502 ac_srcdir_defaulted=no
1503fi
1504if test ! -r "$srcdir/$ac_unique_file"; then
1505 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
0b31b230
AX
1506 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1507 { (exit 1); exit 1; }; }
10946b02
AX
1508fi
1509ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1510ac_abs_confdir=`(
0b31b230
AX
1511 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1512 { (exit 1); exit 1; }; }
10946b02
AX
1513 pwd)`
1514# When building in place, set srcdir=.
1515if test "$ac_abs_confdir" = "$ac_pwd"; then
1516 srcdir=.
1517fi
1518# Remove unnecessary trailing slashes from srcdir.
1519# Double slashes in file names in object file debugging info
1520# mess up M-x gdb in Emacs.
1521case $srcdir in
1522*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1523esac
1524for ac_var in $ac_precious_vars; do
1525 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_env_${ac_var}_value=\$${ac_var}
1527 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1529done
1530
1531#
1532# Report the --help message.
1533#
1534if test "$ac_init_help" = "long"; then
1535 # Omit some internal or obsolete options to make the list less imposing.
1536 # This message is too long to be a string in the A/UX 3.1 sh.
1537 cat <<_ACEOF
0b31b230 1538\`configure' configures spl 0.6.5.11 to adapt to many kinds of systems.
10946b02
AX
1539
1540Usage: $0 [OPTION]... [VAR=VALUE]...
1541
1542To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543VAR=VALUE. See below for descriptions of some of the useful variables.
1544
1545Defaults for the options are specified in brackets.
1546
1547Configuration:
1548 -h, --help display this help and exit
1549 --help=short display options specific to this package
1550 --help=recursive display the short help of all the included packages
1551 -V, --version display version information and exit
0b31b230 1552 -q, --quiet, --silent do not print \`checking...' messages
10946b02
AX
1553 --cache-file=FILE cache test results in FILE [disabled]
1554 -C, --config-cache alias for \`--cache-file=config.cache'
1555 -n, --no-create do not create output files
1556 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1557
1558Installation directories:
1559 --prefix=PREFIX install architecture-independent files in PREFIX
1560 [$ac_default_prefix]
1561 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1562 [PREFIX]
1563
1564By default, \`make install' will install all the files in
1565\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1566an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567for instance \`--prefix=\$HOME'.
1568
1569For better control, use the options below.
1570
1571Fine tuning of the installation directories:
1572 --bindir=DIR user executables [EPREFIX/bin]
1573 --sbindir=DIR system admin executables [EPREFIX/sbin]
1574 --libexecdir=DIR program executables [EPREFIX/libexec]
1575 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1576 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1577 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1578 --libdir=DIR object code libraries [EPREFIX/lib]
1579 --includedir=DIR C header files [PREFIX/include]
1580 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1581 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1582 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1583 --infodir=DIR info documentation [DATAROOTDIR/info]
1584 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1585 --mandir=DIR man documentation [DATAROOTDIR/man]
1586 --docdir=DIR documentation root [DATAROOTDIR/doc/spl]
1587 --htmldir=DIR html documentation [DOCDIR]
1588 --dvidir=DIR dvi documentation [DOCDIR]
1589 --pdfdir=DIR pdf documentation [DOCDIR]
1590 --psdir=DIR ps documentation [DOCDIR]
1591_ACEOF
1592
1593 cat <<\_ACEOF
1594
1595Program names:
1596 --program-prefix=PREFIX prepend PREFIX to installed program names
1597 --program-suffix=SUFFIX append SUFFIX to installed program names
1598 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1599
1600System types:
1601 --build=BUILD configure for building on BUILD [guessed]
1602 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1603 --target=TARGET configure for building compilers for TARGET [HOST]
1604_ACEOF
1605fi
1606
1607if test -n "$ac_init_help"; then
1608 case $ac_init_help in
0b31b230 1609 short | recursive ) echo "Configuration of spl 0.6.5.11:";;
10946b02
AX
1610 esac
1611 cat <<\_ACEOF
1612
1613Optional Features:
1614 --disable-option-checking ignore unrecognized --enable/--with options
1615 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1616 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
0b31b230
AX
1617 --enable-maintainer-mode enable make rules and dependencies not useful
1618 (and sometimes confusing) to the casual installer
1619 --enable-silent-rules less verbose build output (undo: `make V=1')
1620 --disable-silent-rules verbose build output (undo: `make V=0')
1621 --disable-dependency-tracking speeds up one-time build
1622 --enable-dependency-tracking do not reject slow dependency extractors
10946b02
AX
1623 --enable-shared[=PKGS] build shared libraries [default=yes]
1624 --enable-static[=PKGS] build static libraries [default=yes]
1625 --enable-fast-install[=PKGS]
1626 optimize for fast installation [default=yes]
1627 --disable-libtool-lock avoid locking (might break parallel builds)
1628 --enable-linux-builtin Configure for builtin in-tree kernel modules
1629 [default=no]
1630 --enable-debug Enable generic debug support [default=no]
f6188ddd 1631 --enable-debug-kmem Enable basic kmem accounting [default=no]
10946b02
AX
1632 --enable-debug-kmem-tracking
1633 Enable detailed kmem tracking [default=no]
1634 --enable-atomic-spinlocks
1635 Atomic types use spinlocks [default=check]
1636
1637Optional Packages:
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
0b31b230 1640 --with-pic try to use only PIC/non-PIC objects [default=use
10946b02
AX
1641 both]
1642 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
10946b02
AX
1643 --with-spec=SPEC Spec files 'generic|redhat'
1644 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1645 --with-linux=PATH Path to kernel source
1646 --with-linux-obj=PATH Path to kernel build objects
1647
1648Some influential environment variables:
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1652 nonstandard directory <lib dir>
1653 LIBS libraries to pass to the linker, e.g. -l<library>
0b31b230 1654 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
10946b02
AX
1655 you have headers in a nonstandard directory <include dir>
1656 CPP C preprocessor
1657
1658Use these variables to override the choices made by `configure' or to help
1659it to find libraries and programs with nonstandard names/locations.
1660
10946b02
AX
1661_ACEOF
1662ac_status=$?
1663fi
1664
1665if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 continue
1671 ac_builddir=.
1672
1673case "$ac_dir" in
1674.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675*)
1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
0b31b230
AX
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 esac ;;
10946b02 1683esac
0b31b230
AX
1684ac_abs_top_builddir=$ac_pwd
1685ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686# for backward compatibility:
1687ac_top_builddir=$ac_top_build_prefix
1688
1689case $srcdir in
1690 .) # We are building in place.
1691 ac_srcdir=.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1698 *) # Relative name.
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10946b02 1702esac
0b31b230 1703ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10946b02 1704
0b31b230
AX
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1713 else
1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715 fi || ac_status=$?
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1717 done
10946b02 1718fi
10946b02 1719
0b31b230
AX
1720test -n "$ac_init_help" && exit $ac_status
1721if $ac_init_version; then
1722 cat <<\_ACEOF
1723spl configure 0.6.5.11
1724generated by GNU Autoconf 2.63
10946b02 1725
0b31b230
AX
1726Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17272002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728This configure script is free software; the Free Software Foundation
1729gives unlimited permission to copy, distribute and modify it.
10946b02 1730_ACEOF
0b31b230 1731 exit
10946b02 1732fi
10946b02
AX
1733cat >config.log <<_ACEOF
1734This file contains any messages produced by compilers while
1735running configure, to aid debugging if configure makes a mistake.
1736
0b31b230
AX
1737It was created by spl $as_me 0.6.5.11, which was
1738generated by GNU Autoconf 2.63. Invocation command line was
10946b02
AX
1739
1740 $ $0 $@
1741
1742_ACEOF
1743exec 5>>config.log
1744{
1745cat <<_ASUNAME
1746## --------- ##
1747## Platform. ##
1748## --------- ##
1749
1750hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
1756/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1758
1759/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1763/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1766
1767_ASUNAME
1768
1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770for as_dir in $PATH
1771do
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
0b31b230
AX
1774 $as_echo "PATH: $as_dir"
1775done
10946b02
AX
1776IFS=$as_save_IFS
1777
1778} >&5
1779
1780cat >&5 <<_ACEOF
1781
1782
1783## ----------- ##
1784## Core tests. ##
1785## ----------- ##
1786
1787_ACEOF
1788
1789
1790# Keep a trace of the command line.
1791# Strip out --no-create and --no-recursion so they do not pile up.
1792# Strip out --silent because we don't want to record it for future runs.
1793# Also quote any args containing shell meta-characters.
1794# Make two passes to allow for proper duplicate-argument suppression.
1795ac_configure_args=
1796ac_configure_args0=
1797ac_configure_args1=
1798ac_must_keep_next=false
1799for ac_pass in 1 2
1800do
1801 for ac_arg
1802 do
1803 case $ac_arg in
1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806 | -silent | --silent | --silen | --sile | --sil)
1807 continue ;;
1808 *\'*)
1809 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810 esac
1811 case $ac_pass in
0b31b230 1812 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
10946b02 1813 2)
0b31b230 1814 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
10946b02
AX
1815 if test $ac_must_keep_next = true; then
1816 ac_must_keep_next=false # Got value, back to normal.
1817 else
1818 case $ac_arg in
1819 *=* | --config-cache | -C | -disable-* | --disable-* \
1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822 | -with-* | --with-* | -without-* | --without-* | --x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825 esac
1826 ;;
1827 -* ) ac_must_keep_next=true ;;
1828 esac
1829 fi
0b31b230 1830 ac_configure_args="$ac_configure_args '$ac_arg'"
10946b02
AX
1831 ;;
1832 esac
1833 done
1834done
0b31b230
AX
1835$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
10946b02
AX
1837
1838# When interrupted or exit'd, cleanup temporary files, and complete
1839# config.log. We remove comments because anyway the quotes in there
1840# would cause problems or look ugly.
1841# WARNING: Use '\'' to represent an apostrophe within the trap.
1842# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1845 {
1846 echo
1847
0b31b230
AX
1848 cat <<\_ASBOX
1849## ---------------- ##
10946b02 1850## Cache variables. ##
0b31b230
AX
1851## ---------------- ##
1852_ASBOX
10946b02
AX
1853 echo
1854 # The following way of writing the cache mishandles newlines in values,
1855(
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1858 case $ac_val in #(
1859 *${as_nl}*)
1860 case $ac_var in #(
0b31b230 1861 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10946b02
AX
1862$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863 esac
1864 case $ac_var in #(
1865 _ | IFS | as_nl) ;; #(
1866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
0b31b230 1867 *) $as_unset $ac_var ;;
10946b02
AX
1868 esac ;;
1869 esac
1870 done
1871 (set) 2>&1 |
1872 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873 *${as_nl}ac_space=\ *)
1874 sed -n \
1875 "s/'\''/'\''\\\\'\'''\''/g;
1876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877 ;; #(
1878 *)
1879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880 ;;
1881 esac |
1882 sort
1883)
1884 echo
1885
0b31b230
AX
1886 cat <<\_ASBOX
1887## ----------------- ##
10946b02 1888## Output variables. ##
0b31b230
AX
1889## ----------------- ##
1890_ASBOX
10946b02
AX
1891 echo
1892 for ac_var in $ac_subst_vars
1893 do
1894 eval ac_val=\$$ac_var
1895 case $ac_val in
1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897 esac
1898 $as_echo "$ac_var='\''$ac_val'\''"
1899 done | sort
1900 echo
1901
1902 if test -n "$ac_subst_files"; then
0b31b230
AX
1903 cat <<\_ASBOX
1904## ------------------- ##
10946b02 1905## File substitutions. ##
0b31b230
AX
1906## ------------------- ##
1907_ASBOX
10946b02
AX
1908 echo
1909 for ac_var in $ac_subst_files
1910 do
1911 eval ac_val=\$$ac_var
1912 case $ac_val in
1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914 esac
1915 $as_echo "$ac_var='\''$ac_val'\''"
1916 done | sort
1917 echo
1918 fi
1919
1920 if test -s confdefs.h; then
0b31b230
AX
1921 cat <<\_ASBOX
1922## ----------- ##
10946b02 1923## confdefs.h. ##
0b31b230
AX
1924## ----------- ##
1925_ASBOX
10946b02
AX
1926 echo
1927 cat confdefs.h
1928 echo
1929 fi
1930 test "$ac_signal" != 0 &&
1931 $as_echo "$as_me: caught signal $ac_signal"
1932 $as_echo "$as_me: exit $exit_status"
1933 } >&5
1934 rm -f core *.core core.conftest.* &&
1935 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936 exit $exit_status
1937' 0
1938for ac_signal in 1 2 13 15; do
0b31b230 1939 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
10946b02
AX
1940done
1941ac_signal=0
1942
1943# confdefs.h avoids OS command line length limits that DEFS can exceed.
1944rm -f -r conftest* confdefs.h
1945
10946b02
AX
1946# Predefined preprocessor variables.
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_NAME "$PACKAGE_NAME"
1950_ACEOF
1951
0b31b230 1952
10946b02
AX
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955_ACEOF
1956
0b31b230 1957
10946b02
AX
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_VERSION "$PACKAGE_VERSION"
1960_ACEOF
1961
0b31b230 1962
10946b02
AX
1963cat >>confdefs.h <<_ACEOF
1964#define PACKAGE_STRING "$PACKAGE_STRING"
1965_ACEOF
1966
10946b02
AX
1967
1968cat >>confdefs.h <<_ACEOF
0b31b230 1969#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
10946b02
AX
1970_ACEOF
1971
1972
1973# Let the site file select an alternate cache file if it wants to.
1974# Prefer an explicitly selected file to automatically selected ones.
1975ac_site_file1=NONE
1976ac_site_file2=NONE
1977if test -n "$CONFIG_SITE"; then
0b31b230 1978 ac_site_file1=$CONFIG_SITE
10946b02
AX
1979elif test "x$prefix" != xNONE; then
1980 ac_site_file1=$prefix/share/config.site
1981 ac_site_file2=$prefix/etc/config.site
1982else
1983 ac_site_file1=$ac_default_prefix/share/config.site
1984 ac_site_file2=$ac_default_prefix/etc/config.site
1985fi
1986for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987do
1988 test "x$ac_site_file" = xNONE && continue
0b31b230
AX
1989 if test -r "$ac_site_file"; then
1990 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
10946b02
AX
1991$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992 sed 's/^/| /' "$ac_site_file" >&5
0b31b230 1993 . "$ac_site_file"
10946b02
AX
1994 fi
1995done
1996
1997if test -r "$cache_file"; then
0b31b230
AX
1998 # Some versions of bash will fail to source /dev/null (special
1999 # files actually), so we avoid doing that.
2000 if test -f "$cache_file"; then
2001 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
10946b02
AX
2002$as_echo "$as_me: loading cache $cache_file" >&6;}
2003 case $cache_file in
2004 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005 *) . "./$cache_file";;
2006 esac
2007 fi
2008else
0b31b230 2009 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
10946b02
AX
2010$as_echo "$as_me: creating cache $cache_file" >&6;}
2011 >$cache_file
2012fi
2013
2014# Check that the precious variables saved in the cache have kept the same
2015# value.
2016ac_cache_corrupted=false
2017for ac_var in $ac_precious_vars; do
2018 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019 eval ac_new_set=\$ac_env_${ac_var}_set
2020 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021 eval ac_new_val=\$ac_env_${ac_var}_value
2022 case $ac_old_set,$ac_new_set in
2023 set,)
0b31b230 2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
10946b02
AX
2025$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026 ac_cache_corrupted=: ;;
2027 ,set)
0b31b230 2028 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
10946b02
AX
2029$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030 ac_cache_corrupted=: ;;
2031 ,);;
2032 *)
2033 if test "x$ac_old_val" != "x$ac_new_val"; then
2034 # differences in whitespace do not lead to failure.
2035 ac_old_val_w=`echo x $ac_old_val`
2036 ac_new_val_w=`echo x $ac_new_val`
2037 if test "$ac_old_val_w" != "$ac_new_val_w"; then
0b31b230 2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
10946b02
AX
2039$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040 ac_cache_corrupted=:
2041 else
0b31b230 2042 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
10946b02
AX
2043$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044 eval $ac_var=\$ac_old_val
2045 fi
0b31b230 2046 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
10946b02 2047$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
0b31b230 2048 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
10946b02
AX
2049$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2050 fi;;
2051 esac
2052 # Pass precious variables to config.status.
2053 if test "$ac_new_set" = set; then
2054 case $ac_new_val in
2055 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 *) ac_arg=$ac_var=$ac_new_val ;;
2057 esac
2058 case " $ac_configure_args " in
2059 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
0b31b230 2060 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
10946b02
AX
2061 esac
2062 fi
2063done
2064if $ac_cache_corrupted; then
0b31b230 2065 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0b31b230 2067 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
10946b02 2068$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
0b31b230
AX
2069 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071 { (exit 1); exit 1; }; }
10946b02 2072fi
0b31b230
AX
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
10946b02
AX
2097
2098ac_ext=c
2099ac_cpp='$CPP $CPPFLAGS'
2100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102ac_compiler_gnu=$ac_cv_c_compiler_gnu
2103
2104
2105ac_ext=c
2106ac_cpp='$CPP $CPPFLAGS'
2107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110
2111
2112 for ac_prog in gawk mawk nawk awk
2113do
2114 # Extract the first word of "$ac_prog", so it can be a program name with args.
2115set dummy $ac_prog; ac_word=$2
0b31b230 2116{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 2117$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 2118if test "${ac_cv_prog_AWK+set}" = set; then
10946b02
AX
2119 $as_echo_n "(cached) " >&6
2120else
2121 if test -n "$AWK"; then
2122 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2123else
2124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125for as_dir in $PATH
2126do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
0b31b230
AX
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 2131 ac_cv_prog_AWK="$ac_prog"
0b31b230 2132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
2133 break 2
2134 fi
2135done
0b31b230 2136done
10946b02
AX
2137IFS=$as_save_IFS
2138
2139fi
2140fi
2141AWK=$ac_cv_prog_AWK
2142if test -n "$AWK"; then
0b31b230 2143 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10946b02
AX
2144$as_echo "$AWK" >&6; }
2145else
0b31b230 2146 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
2147$as_echo "no" >&6; }
2148fi
2149
2150
2151 test -n "$AWK" && break
2152done
2153
0b31b230 2154 { $as_echo "$as_me:$LINENO: checking metadata" >&5
10946b02
AX
2155$as_echo_n "checking metadata... " >&6; }
2156
2157 META="$srcdir/META"
2158 _spl_ac_meta_type="none"
2159 if test -f "$META"; then
2160 _spl_ac_meta_type="META file"
2161
2162 SPL_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2163 if test -n "$SPL_META_NAME"; then
2164
2165cat >>confdefs.h <<_ACEOF
2166#define SPL_META_NAME "$SPL_META_NAME"
2167_ACEOF
2168
2169
2170 fi
2171
2172 SPL_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2173 if test -n "$SPL_META_VERSION"; then
2174
2175cat >>confdefs.h <<_ACEOF
2176#define SPL_META_VERSION "$SPL_META_VERSION"
2177_ACEOF
2178
2179
2180 fi
2181
2182 SPL_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2183 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2184 _match="${SPL_META_NAME}-${SPL_META_VERSION}"
2185 _alias=$(git describe --match=${_match} 2>/dev/null)
2186 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2187 if test -n "${_release}"; then
2188 SPL_META_RELEASE=${_release}
2189 _spl_ac_meta_type="git describe"
2190 fi
2191 fi
2192
2193 if test -n "$SPL_META_RELEASE"; then
2194
2195cat >>confdefs.h <<_ACEOF
2196#define SPL_META_RELEASE "$SPL_META_RELEASE"
2197_ACEOF
2198
2199
2200
2201 RELEASE="$SPL_META_RELEASE"
2202
2203 fi
2204
2205 SPL_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2206 if test -n "$SPL_META_LICENSE"; then
2207
2208cat >>confdefs.h <<_ACEOF
2209#define SPL_META_LICENSE "$SPL_META_LICENSE"
2210_ACEOF
2211
2212
2213 fi
2214
2215 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2216 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2217 test -n "$SPL_META_RELEASE" &&
2218 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2219
2220cat >>confdefs.h <<_ACEOF
2221#define SPL_META_ALIAS "$SPL_META_ALIAS"
2222_ACEOF
2223
2224
2225 fi
2226
2227 SPL_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2228 if test -n "$SPL_META_DATA"; then
2229
2230cat >>confdefs.h <<_ACEOF
2231#define SPL_META_DATA "$SPL_META_DATA"
2232_ACEOF
2233
2234
2235 fi
2236
2237 SPL_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2238 if test -n "$SPL_META_AUTHOR"; then
2239
2240cat >>confdefs.h <<_ACEOF
2241#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2242_ACEOF
2243
2244
2245 fi
2246
2247
2248 SPL_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2249 SPL_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2250 SPL_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2251 if test -n "$SPL_META_LT_CURRENT" \
2252 -o -n "$SPL_META_LT_REVISION" \
2253 -o -n "$SPL_META_LT_AGE"; then
2254 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2255 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2256 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2257
2258cat >>confdefs.h <<_ACEOF
2259#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2260_ACEOF
2261
2262
2263cat >>confdefs.h <<_ACEOF
2264#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2265_ACEOF
2266
2267
2268cat >>confdefs.h <<_ACEOF
2269#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2270_ACEOF
2271
2272
2273
2274
2275 fi
2276 fi
2277
0b31b230 2278 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_type" >&5
10946b02
AX
2279$as_echo "$_spl_ac_meta_type" >&6; }
2280
2281
2282ac_aux_dir=
2283for ac_dir in config "$srcdir"/config; do
2284 if test -f "$ac_dir/install-sh"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install-sh -c"
2287 break
2288 elif test -f "$ac_dir/install.sh"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/install.sh -c"
2291 break
2292 elif test -f "$ac_dir/shtool"; then
2293 ac_aux_dir=$ac_dir
2294 ac_install_sh="$ac_aux_dir/shtool install -c"
2295 break
2296 fi
2297done
2298if test -z "$ac_aux_dir"; then
0b31b230
AX
2299 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2300$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2301 { (exit 1); exit 1; }; }
10946b02
AX
2302fi
2303
2304# These three variables are undocumented and unsupported,
2305# and are intended to be withdrawn in a future Autoconf release.
2306# They can cause serious problems if a builder's source tree is in a directory
2307# whose full name contains unusual characters.
2308ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2309ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2310ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2311
2312
2313
2314# Make sure we can run config.sub.
2315$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
0b31b230
AX
2316 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2317$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2318 { (exit 1); exit 1; }; }
10946b02 2319
0b31b230 2320{ $as_echo "$as_me:$LINENO: checking build system type" >&5
10946b02 2321$as_echo_n "checking build system type... " >&6; }
0b31b230 2322if test "${ac_cv_build+set}" = set; then
10946b02
AX
2323 $as_echo_n "(cached) " >&6
2324else
2325 ac_build_alias=$build_alias
2326test "x$ac_build_alias" = x &&
2327 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2328test "x$ac_build_alias" = x &&
0b31b230
AX
2329 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2330$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2331 { (exit 1); exit 1; }; }
10946b02 2332ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
0b31b230
AX
2333 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2334$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2335 { (exit 1); exit 1; }; }
10946b02
AX
2336
2337fi
0b31b230 2338{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
10946b02
AX
2339$as_echo "$ac_cv_build" >&6; }
2340case $ac_cv_build in
2341*-*-*) ;;
0b31b230
AX
2342*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2343$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2344 { (exit 1); exit 1; }; };;
10946b02
AX
2345esac
2346build=$ac_cv_build
2347ac_save_IFS=$IFS; IFS='-'
2348set x $ac_cv_build
2349shift
2350build_cpu=$1
2351build_vendor=$2
2352shift; shift
2353# Remember, the first character of IFS is used to create $*,
2354# except with old shells:
2355build_os=$*
2356IFS=$ac_save_IFS
2357case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2358
2359
0b31b230 2360{ $as_echo "$as_me:$LINENO: checking host system type" >&5
10946b02 2361$as_echo_n "checking host system type... " >&6; }
0b31b230 2362if test "${ac_cv_host+set}" = set; then
10946b02
AX
2363 $as_echo_n "(cached) " >&6
2364else
2365 if test "x$host_alias" = x; then
2366 ac_cv_host=$ac_cv_build
2367else
2368 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
0b31b230
AX
2369 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2370$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2371 { (exit 1); exit 1; }; }
10946b02
AX
2372fi
2373
2374fi
0b31b230 2375{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10946b02
AX
2376$as_echo "$ac_cv_host" >&6; }
2377case $ac_cv_host in
2378*-*-*) ;;
0b31b230
AX
2379*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2380$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2381 { (exit 1); exit 1; }; };;
10946b02
AX
2382esac
2383host=$ac_cv_host
2384ac_save_IFS=$IFS; IFS='-'
2385set x $ac_cv_host
2386shift
2387host_cpu=$1
2388host_vendor=$2
2389shift; shift
2390# Remember, the first character of IFS is used to create $*,
2391# except with old shells:
2392host_os=$*
2393IFS=$ac_save_IFS
2394case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2395
2396
0b31b230 2397{ $as_echo "$as_me:$LINENO: checking target system type" >&5
10946b02 2398$as_echo_n "checking target system type... " >&6; }
0b31b230 2399if test "${ac_cv_target+set}" = set; then
10946b02
AX
2400 $as_echo_n "(cached) " >&6
2401else
2402 if test "x$target_alias" = x; then
2403 ac_cv_target=$ac_cv_host
2404else
2405 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
0b31b230
AX
2406 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2407$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2408 { (exit 1); exit 1; }; }
10946b02
AX
2409fi
2410
2411fi
0b31b230 2412{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
10946b02
AX
2413$as_echo "$ac_cv_target" >&6; }
2414case $ac_cv_target in
2415*-*-*) ;;
0b31b230
AX
2416*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2417$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2418 { (exit 1); exit 1; }; };;
10946b02
AX
2419esac
2420target=$ac_cv_target
2421ac_save_IFS=$IFS; IFS='-'
2422set x $ac_cv_target
2423shift
2424target_cpu=$1
2425target_vendor=$2
2426shift; shift
2427# Remember, the first character of IFS is used to create $*,
2428# except with old shells:
2429target_os=$*
2430IFS=$ac_save_IFS
2431case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2432
2433
2434# The aliases save the names the user supplied, while $host etc.
2435# will get canonicalized.
2436test -n "$target_alias" &&
2437 test "$program_prefix$program_suffix$program_transform_name" = \
2438 NONENONEs,x,x, &&
2439 program_prefix=${target_alias}-
2440
0b31b230 2441{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10946b02
AX
2442$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2443 # Check whether --enable-maintainer-mode was given.
0b31b230 2444if test "${enable_maintainer_mode+set}" = set; then
10946b02
AX
2445 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2446else
2447 USE_MAINTAINER_MODE=no
2448fi
2449
0b31b230 2450 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10946b02
AX
2451$as_echo "$USE_MAINTAINER_MODE" >&6; }
2452 if test $USE_MAINTAINER_MODE = yes; then
2453 MAINTAINER_MODE_TRUE=
2454 MAINTAINER_MODE_FALSE='#'
2455else
2456 MAINTAINER_MODE_TRUE='#'
2457 MAINTAINER_MODE_FALSE=
2458fi
2459
2460 MAINT=$MAINTAINER_MODE_TRUE
2461
2462
2463# Check whether --enable-silent-rules was given.
0b31b230 2464if test "${enable_silent_rules+set}" = set; then
10946b02
AX
2465 enableval=$enable_silent_rules;
2466fi
2467
0b31b230
AX
2468case $enable_silent_rules in
2469yes) AM_DEFAULT_VERBOSITY=0;;
2470no) AM_DEFAULT_VERBOSITY=1;;
2471*) AM_DEFAULT_VERBOSITY=0;;
10946b02 2472esac
10946b02
AX
2473AM_BACKSLASH='\'
2474
0b31b230 2475am__api_version='1.11'
10946b02
AX
2476
2477# Find a good install program. We prefer a C program (faster),
2478# so one script is as good as another. But avoid the broken or
2479# incompatible versions:
2480# SysV /etc/install, /usr/sbin/install
2481# SunOS /usr/etc/install
2482# IRIX /sbin/install
2483# AIX /bin/install
2484# AmigaOS /C/install, which installs bootblocks on floppy discs
2485# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2486# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2487# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2488# OS/2's system install, which has a completely different semantic
2489# ./install, which can be erroneously created by make from ./install.sh.
2490# Reject install programs that cannot install multiple files.
0b31b230 2491{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10946b02
AX
2492$as_echo_n "checking for a BSD-compatible install... " >&6; }
2493if test -z "$INSTALL"; then
0b31b230 2494if test "${ac_cv_path_install+set}" = set; then
10946b02
AX
2495 $as_echo_n "(cached) " >&6
2496else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH
2499do
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
0b31b230
AX
2502 # Account for people who put trailing slashes in PATH elements.
2503case $as_dir/ in
2504 ./ | .// | /cC/* | \
10946b02 2505 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
0b31b230 2506 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10946b02
AX
2507 /usr/ucb/* ) ;;
2508 *)
2509 # OSF1 and SCO ODT 3.0 have their own names for install.
2510 # Don't use installbsd from OSF since it installs stuff as root
2511 # by default.
2512 for ac_prog in ginstall scoinst install; do
2513 for ac_exec_ext in '' $ac_executable_extensions; do
0b31b230 2514 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10946b02
AX
2515 if test $ac_prog = install &&
2516 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517 # AIX install. It has an incompatible calling convention.
2518 :
2519 elif test $ac_prog = install &&
2520 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521 # program-specific install script used by HP pwplus--don't use.
2522 :
2523 else
2524 rm -rf conftest.one conftest.two conftest.dir
2525 echo one > conftest.one
2526 echo two > conftest.two
2527 mkdir conftest.dir
2528 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2529 test -s conftest.one && test -s conftest.two &&
2530 test -s conftest.dir/conftest.one &&
2531 test -s conftest.dir/conftest.two
2532 then
2533 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2534 break 3
2535 fi
2536 fi
2537 fi
2538 done
2539 done
2540 ;;
2541esac
2542
0b31b230 2543done
10946b02
AX
2544IFS=$as_save_IFS
2545
2546rm -rf conftest.one conftest.two conftest.dir
2547
2548fi
2549 if test "${ac_cv_path_install+set}" = set; then
2550 INSTALL=$ac_cv_path_install
2551 else
2552 # As a last resort, use the slow shell script. Don't cache a
2553 # value for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the value is a relative name.
2556 INSTALL=$ac_install_sh
2557 fi
2558fi
0b31b230 2559{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10946b02
AX
2560$as_echo "$INSTALL" >&6; }
2561
2562# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563# It thinks the first close brace ends the variable substitution.
2564test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565
2566test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567
2568test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569
0b31b230 2570{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10946b02 2571$as_echo_n "checking whether build environment is sane... " >&6; }
0b31b230
AX
2572# Just in case
2573sleep 1
2574echo timestamp > conftest.file
10946b02
AX
2575# Reject unsafe characters in $srcdir or the absolute working directory
2576# name. Accept space and tab only in the latter.
2577am_lf='
2578'
2579case `pwd` in
2580 *[\\\"\#\$\&\'\`$am_lf]*)
0b31b230
AX
2581 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2582$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2583 { (exit 1); exit 1; }; };;
10946b02
AX
2584esac
2585case $srcdir in
2586 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
0b31b230
AX
2587 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2588$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2589 { (exit 1); exit 1; }; };;
10946b02
AX
2590esac
2591
0b31b230 2592# Do `set' in a subshell so we don't clobber the current shell's
10946b02
AX
2593# arguments. Must try -L first in case configure is actually a
2594# symlink; some systems play weird games with the mod time of symlinks
2595# (eg FreeBSD returns the mod time of the symlink's containing
2596# directory).
2597if (
0b31b230
AX
2598 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2599 if test "$*" = "X"; then
2600 # -L didn't work.
2601 set X `ls -t "$srcdir/configure" conftest.file`
2602 fi
2603 rm -f conftest.file
2604 if test "$*" != "X $srcdir/configure conftest.file" \
2605 && test "$*" != "X conftest.file $srcdir/configure"; then
2606
2607 # If neither matched, then we have a broken ls. This can happen
2608 # if, for instance, CONFIG_SHELL is bash and it inherits a
2609 # broken ls alias from the environment. This has actually
2610 # happened. Such a system could not be considered "sane".
2611 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2612alias in your environment" >&5
2613$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2614alias in your environment" >&2;}
2615 { (exit 1); exit 1; }; }
2616 fi
2617
10946b02
AX
2618 test "$2" = conftest.file
2619 )
2620then
2621 # Ok.
2622 :
2623else
0b31b230
AX
2624 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2625Check your system clock" >&5
2626$as_echo "$as_me: error: newly created file is older than distributed files!
2627Check your system clock" >&2;}
2628 { (exit 1); exit 1; }; }
10946b02 2629fi
0b31b230 2630{ $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
2631$as_echo "yes" >&6; }
2632test "$program_prefix" != NONE &&
2633 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2634# Use a double $ so make ignores it.
2635test "$program_suffix" != NONE &&
2636 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2637# Double any \ or $.
2638# By default was `s,x,x', remove it if useless.
2639ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2640program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2641
0b31b230
AX
2642# expand $ac_aux_dir to an absolute path
2643am_aux_dir=`cd $ac_aux_dir && pwd`
10946b02
AX
2644
2645if test x"${MISSING+set}" != xset; then
2646 case $am_aux_dir in
2647 *\ * | *\ *)
2648 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2649 *)
2650 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2651 esac
2652fi
2653# Use eval to expand $SHELL
0b31b230
AX
2654if eval "$MISSING --run true"; then
2655 am_missing_run="$MISSING --run "
10946b02
AX
2656else
2657 am_missing_run=
0b31b230
AX
2658 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2659$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10946b02
AX
2660fi
2661
0b31b230 2662if test x"${install_sh}" != xset; then
10946b02
AX
2663 case $am_aux_dir in
2664 *\ * | *\ *)
2665 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2666 *)
2667 install_sh="\${SHELL} $am_aux_dir/install-sh"
2668 esac
2669fi
2670
0b31b230
AX
2671# Installed binaries are usually stripped using `strip' when the user
2672# run `make install-strip'. However `strip' might not be the right
10946b02 2673# tool to use in cross-compilation environments, therefore Automake
0b31b230 2674# will honor the `STRIP' environment variable to overrule this program.
10946b02
AX
2675if test "$cross_compiling" != no; then
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2678set dummy ${ac_tool_prefix}strip; ac_word=$2
0b31b230 2679{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 2680$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 2681if test "${ac_cv_prog_STRIP+set}" = set; then
10946b02
AX
2682 $as_echo_n "(cached) " >&6
2683else
2684 if test -n "$STRIP"; then
2685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
0b31b230
AX
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 2694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
0b31b230 2695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
2696 break 2
2697 fi
2698done
0b31b230 2699done
10946b02
AX
2700IFS=$as_save_IFS
2701
2702fi
2703fi
2704STRIP=$ac_cv_prog_STRIP
2705if test -n "$STRIP"; then
0b31b230 2706 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10946b02
AX
2707$as_echo "$STRIP" >&6; }
2708else
0b31b230 2709 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
2710$as_echo "no" >&6; }
2711fi
2712
2713
2714fi
2715if test -z "$ac_cv_prog_STRIP"; then
2716 ac_ct_STRIP=$STRIP
2717 # Extract the first word of "strip", so it can be a program name with args.
2718set dummy strip; ac_word=$2
0b31b230 2719{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 2720$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 2721if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10946b02
AX
2722 $as_echo_n "(cached) " >&6
2723else
2724 if test -n "$ac_ct_STRIP"; then
2725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
0b31b230
AX
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 2734 ac_cv_prog_ac_ct_STRIP="strip"
0b31b230 2735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
2736 break 2
2737 fi
2738done
0b31b230 2739done
10946b02
AX
2740IFS=$as_save_IFS
2741
2742fi
2743fi
2744ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2745if test -n "$ac_ct_STRIP"; then
0b31b230 2746 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10946b02
AX
2747$as_echo "$ac_ct_STRIP" >&6; }
2748else
0b31b230 2749 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
2750$as_echo "no" >&6; }
2751fi
2752
2753 if test "x$ac_ct_STRIP" = x; then
2754 STRIP=":"
2755 else
2756 case $cross_compiling:$ac_tool_warned in
2757yes:)
0b31b230 2758{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
2759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760ac_tool_warned=yes ;;
2761esac
2762 STRIP=$ac_ct_STRIP
2763 fi
2764else
2765 STRIP="$ac_cv_prog_STRIP"
2766fi
2767
2768fi
2769INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2770
0b31b230 2771{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
10946b02
AX
2772$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2773if test -z "$MKDIR_P"; then
0b31b230 2774 if test "${ac_cv_path_mkdir+set}" = set; then
10946b02
AX
2775 $as_echo_n "(cached) " >&6
2776else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
0b31b230 2782 for ac_prog in mkdir gmkdir; do
10946b02 2783 for ac_exec_ext in '' $ac_executable_extensions; do
0b31b230 2784 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10946b02
AX
2785 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2786 'mkdir (GNU coreutils) '* | \
2787 'mkdir (coreutils) '* | \
2788 'mkdir (fileutils) '4.1*)
2789 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2790 break 3;;
2791 esac
2792 done
2793 done
0b31b230 2794done
10946b02
AX
2795IFS=$as_save_IFS
2796
2797fi
2798
10946b02
AX
2799 if test "${ac_cv_path_mkdir+set}" = set; then
2800 MKDIR_P="$ac_cv_path_mkdir -p"
2801 else
2802 # As a last resort, use the slow shell script. Don't cache a
2803 # value for MKDIR_P within a source directory, because that will
2804 # break other packages using the cache if that directory is
2805 # removed, or if the value is a relative name.
0b31b230 2806 test -d ./--version && rmdir ./--version
10946b02
AX
2807 MKDIR_P="$ac_install_sh -d"
2808 fi
2809fi
0b31b230 2810{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
10946b02
AX
2811$as_echo "$MKDIR_P" >&6; }
2812
0b31b230
AX
2813mkdir_p="$MKDIR_P"
2814case $mkdir_p in
2815 [\\/$]* | ?:[\\/]*) ;;
2816 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2817esac
2818
2819{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10946b02
AX
2820$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2821set x ${MAKE-make}
2822ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
0b31b230 2823if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10946b02
AX
2824 $as_echo_n "(cached) " >&6
2825else
2826 cat >conftest.make <<\_ACEOF
2827SHELL = /bin/sh
2828all:
2829 @echo '@@@%%%=$(MAKE)=@@@%%%'
2830_ACEOF
0b31b230 2831# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10946b02
AX
2832case `${MAKE-make} -f conftest.make 2>/dev/null` in
2833 *@@@%%%=?*=@@@%%%*)
2834 eval ac_cv_prog_make_${ac_make}_set=yes;;
2835 *)
2836 eval ac_cv_prog_make_${ac_make}_set=no;;
2837esac
2838rm -f conftest.make
2839fi
2840if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
0b31b230 2841 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
2842$as_echo "yes" >&6; }
2843 SET_MAKE=
2844else
0b31b230 2845 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
2846$as_echo "no" >&6; }
2847 SET_MAKE="MAKE=${MAKE-make}"
2848fi
2849
2850rm -rf .tst 2>/dev/null
2851mkdir .tst 2>/dev/null
2852if test -d .tst; then
2853 am__leading_dot=.
2854else
2855 am__leading_dot=_
2856fi
2857rmdir .tst 2>/dev/null
2858
2859if test "`cd $srcdir && pwd`" != "`pwd`"; then
2860 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2861 # is not polluted with repeated "-I."
2862 am__isrc=' -I$(srcdir)'
2863 # test to see if srcdir already configured
2864 if test -f $srcdir/config.status; then
0b31b230
AX
2865 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2866$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2867 { (exit 1); exit 1; }; }
10946b02
AX
2868 fi
2869fi
2870
2871# test whether we have cygpath
2872if test -z "$CYGPATH_W"; then
2873 if (cygpath --version) >/dev/null 2>/dev/null; then
2874 CYGPATH_W='cygpath -w'
2875 else
2876 CYGPATH_W=echo
2877 fi
2878fi
2879
2880
2881# Define the identity of the package.
2882 PACKAGE='spl'
0b31b230 2883 VERSION='0.6.5.11'
10946b02
AX
2884
2885
2886cat >>confdefs.h <<_ACEOF
2887#define PACKAGE "$PACKAGE"
2888_ACEOF
2889
2890
2891cat >>confdefs.h <<_ACEOF
2892#define VERSION "$VERSION"
2893_ACEOF
2894
2895# Some tools Automake needs.
2896
2897ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2898
2899
2900AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2901
2902
2903AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2904
2905
2906AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2907
2908
2909MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2910
0b31b230
AX
2911# We need awk for the "check" target. The system "awk" is bad on
2912# some platforms.
2913# Always define AMTAR for backward compatibility.
10946b02 2914
0b31b230 2915AMTAR=${AMTAR-"${am_missing_run}tar"}
ac9cc135 2916
0b31b230 2917am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
ac9cc135 2918
10946b02
AX
2919
2920
2921
2922
0b31b230 2923ac_config_headers="$ac_config_headers spl_config.h"
10946b02 2924
ac9cc135 2925
0b31b230
AX
2926# Find a good install program. We prefer a C program (faster),
2927# so one script is as good as another. But avoid the broken or
2928# incompatible versions:
2929# SysV /etc/install, /usr/sbin/install
2930# SunOS /usr/etc/install
2931# IRIX /sbin/install
2932# AIX /bin/install
2933# AmigaOS /C/install, which installs bootblocks on floppy discs
2934# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2935# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2936# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2937# OS/2's system install, which has a completely different semantic
2938# ./install, which can be erroneously created by make from ./install.sh.
2939# Reject install programs that cannot install multiple files.
2940{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2941$as_echo_n "checking for a BSD-compatible install... " >&6; }
2942if test -z "$INSTALL"; then
2943if test "${ac_cv_path_install+set}" = set; then
2944 $as_echo_n "(cached) " >&6
2945else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 # Account for people who put trailing slashes in PATH elements.
2952case $as_dir/ in
2953 ./ | .// | /cC/* | \
2954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2955 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2956 /usr/ucb/* ) ;;
2957 *)
2958 # OSF1 and SCO ODT 3.0 have their own names for install.
2959 # Don't use installbsd from OSF since it installs stuff as root
2960 # by default.
2961 for ac_prog in ginstall scoinst install; do
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2964 if test $ac_prog = install &&
2965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2966 # AIX install. It has an incompatible calling convention.
2967 :
2968 elif test $ac_prog = install &&
2969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970 # program-specific install script used by HP pwplus--don't use.
2971 :
2972 else
2973 rm -rf conftest.one conftest.two conftest.dir
2974 echo one > conftest.one
2975 echo two > conftest.two
2976 mkdir conftest.dir
2977 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2978 test -s conftest.one && test -s conftest.two &&
2979 test -s conftest.dir/conftest.one &&
2980 test -s conftest.dir/conftest.two
2981 then
2982 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2983 break 3
2984 fi
2985 fi
2986 fi
2987 done
2988 done
2989 ;;
2990esac
ac9cc135 2991
0b31b230
AX
2992done
2993IFS=$as_save_IFS
ac9cc135 2994
0b31b230 2995rm -rf conftest.one conftest.two conftest.dir
ac9cc135 2996
0b31b230
AX
2997fi
2998 if test "${ac_cv_path_install+set}" = set; then
2999 INSTALL=$ac_cv_path_install
ac9cc135 3000 else
0b31b230
AX
3001 # As a last resort, use the slow shell script. Don't cache a
3002 # value for INSTALL within a source directory, because that will
3003 # break other packages using the cache if that directory is
3004 # removed, or if the value is a relative name.
3005 INSTALL=$ac_install_sh
ac9cc135
AX
3006 fi
3007fi
0b31b230
AX
3008{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3009$as_echo "$INSTALL" >&6; }
ac9cc135 3010
0b31b230
AX
3011# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3012# It thinks the first close brace ends the variable substitution.
3013test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10946b02 3014
0b31b230 3015test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10946b02 3016
0b31b230 3017test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10946b02
AX
3018
3019ac_ext=c
3020ac_cpp='$CPP $CPPFLAGS'
3021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3026set dummy ${ac_tool_prefix}gcc; ac_word=$2
0b31b230 3027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3028$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 3029if test "${ac_cv_prog_CC+set}" = set; then
10946b02
AX
3030 $as_echo_n "(cached) " >&6
3031else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
0b31b230
AX
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 3042 ac_cv_prog_CC="${ac_tool_prefix}gcc"
0b31b230 3043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3044 break 2
3045 fi
3046done
0b31b230 3047done
10946b02
AX
3048IFS=$as_save_IFS
3049
3050fi
3051fi
3052CC=$ac_cv_prog_CC
3053if test -n "$CC"; then
0b31b230 3054 { $as_echo "$as_me:$LINENO: result: $CC" >&5
10946b02
AX
3055$as_echo "$CC" >&6; }
3056else
0b31b230 3057 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3058$as_echo "no" >&6; }
3059fi
3060
3061
3062fi
3063if test -z "$ac_cv_prog_CC"; then
3064 ac_ct_CC=$CC
3065 # Extract the first word of "gcc", so it can be a program name with args.
3066set dummy gcc; ac_word=$2
0b31b230 3067{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3068$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 3069if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10946b02
AX
3070 $as_echo_n "(cached) " >&6
3071else
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
0b31b230
AX
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 3082 ac_cv_prog_ac_ct_CC="gcc"
0b31b230 3083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3084 break 2
3085 fi
3086done
0b31b230 3087done
10946b02
AX
3088IFS=$as_save_IFS
3089
3090fi
3091fi
3092ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093if test -n "$ac_ct_CC"; then
0b31b230 3094 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10946b02
AX
3095$as_echo "$ac_ct_CC" >&6; }
3096else
0b31b230 3097 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3098$as_echo "no" >&6; }
3099fi
3100
3101 if test "x$ac_ct_CC" = x; then
3102 CC=""
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105yes:)
0b31b230 3106{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
3107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108ac_tool_warned=yes ;;
3109esac
3110 CC=$ac_ct_CC
3111 fi
3112else
3113 CC="$ac_cv_prog_CC"
3114fi
3115
3116if test -z "$CC"; then
3117 if test -n "$ac_tool_prefix"; then
3118 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3119set dummy ${ac_tool_prefix}cc; ac_word=$2
0b31b230 3120{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3121$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 3122if test "${ac_cv_prog_CC+set}" = set; then
10946b02
AX
3123 $as_echo_n "(cached) " >&6
3124else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
0b31b230
AX
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 3135 ac_cv_prog_CC="${ac_tool_prefix}cc"
0b31b230 3136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3137 break 2
3138 fi
3139done
0b31b230 3140done
10946b02
AX
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145CC=$ac_cv_prog_CC
3146if test -n "$CC"; then
0b31b230 3147 { $as_echo "$as_me:$LINENO: result: $CC" >&5
10946b02
AX
3148$as_echo "$CC" >&6; }
3149else
0b31b230 3150 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155 fi
3156fi
3157if test -z "$CC"; then
3158 # Extract the first word of "cc", so it can be a program name with args.
3159set dummy cc; ac_word=$2
0b31b230 3160{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3161$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 3162if test "${ac_cv_prog_CC+set}" = set; then
10946b02
AX
3163 $as_echo_n "(cached) " >&6
3164else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167else
3168 ac_prog_rejected=no
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
0b31b230
AX
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02
AX
3176 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3177 ac_prog_rejected=yes
3178 continue
3179 fi
3180 ac_cv_prog_CC="cc"
0b31b230 3181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3182 break 2
3183 fi
3184done
0b31b230 3185done
10946b02
AX
3186IFS=$as_save_IFS
3187
3188if test $ac_prog_rejected = yes; then
3189 # We found a bogon in the path, so make sure we never use it.
3190 set dummy $ac_cv_prog_CC
3191 shift
3192 if test $# != 0; then
3193 # We chose a different compiler from the bogus one.
3194 # However, it has the same basename, so the bogon will be chosen
3195 # first if we set CC to just the basename; use the full file name.
3196 shift
3197 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3198 fi
3199fi
3200fi
3201fi
3202CC=$ac_cv_prog_CC
3203if test -n "$CC"; then
0b31b230 3204 { $as_echo "$as_me:$LINENO: result: $CC" >&5
10946b02
AX
3205$as_echo "$CC" >&6; }
3206else
0b31b230 3207 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212fi
3213if test -z "$CC"; then
3214 if test -n "$ac_tool_prefix"; then
3215 for ac_prog in cl.exe
3216 do
3217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0b31b230 3219{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3220$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 3221if test "${ac_cv_prog_CC+set}" = set; then
10946b02
AX
3222 $as_echo_n "(cached) " >&6
3223else
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC="$CC" # Let the user override the test.
3226else
3227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228for as_dir in $PATH
3229do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
0b31b230
AX
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 3234 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
0b31b230 3235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3236 break 2
3237 fi
3238done
0b31b230 3239done
10946b02
AX
3240IFS=$as_save_IFS
3241
3242fi
3243fi
3244CC=$ac_cv_prog_CC
3245if test -n "$CC"; then
0b31b230 3246 { $as_echo "$as_me:$LINENO: result: $CC" >&5
10946b02
AX
3247$as_echo "$CC" >&6; }
3248else
0b31b230 3249 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3250$as_echo "no" >&6; }
3251fi
3252
3253
3254 test -n "$CC" && break
3255 done
3256fi
3257if test -z "$CC"; then
3258 ac_ct_CC=$CC
3259 for ac_prog in cl.exe
3260do
3261 # Extract the first word of "$ac_prog", so it can be a program name with args.
3262set dummy $ac_prog; ac_word=$2
0b31b230 3263{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3264$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 3265if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10946b02
AX
3266 $as_echo_n "(cached) " >&6
3267else
3268 if test -n "$ac_ct_CC"; then
3269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
0b31b230
AX
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 3278 ac_cv_prog_ac_ct_CC="$ac_prog"
0b31b230 3279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3280 break 2
3281 fi
3282done
0b31b230 3283done
10946b02
AX
3284IFS=$as_save_IFS
3285
3286fi
3287fi
3288ac_ct_CC=$ac_cv_prog_ac_ct_CC
3289if test -n "$ac_ct_CC"; then
0b31b230 3290 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10946b02
AX
3291$as_echo "$ac_ct_CC" >&6; }
3292else
0b31b230 3293 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3294$as_echo "no" >&6; }
3295fi
3296
3297
3298 test -n "$ac_ct_CC" && break
3299done
3300
3301 if test "x$ac_ct_CC" = x; then
3302 CC=""
3303 else
3304 case $cross_compiling:$ac_tool_warned in
3305yes:)
0b31b230 3306{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
3307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3308ac_tool_warned=yes ;;
3309esac
3310 CC=$ac_ct_CC
3311 fi
3312fi
3313
3314fi
3315
3316
0b31b230 3317test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 3318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0b31b230
AX
3319{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3320See \`config.log' for more details." >&5
3321$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3322See \`config.log' for more details." >&2;}
3323 { (exit 1); exit 1; }; }; }
10946b02
AX
3324
3325# Provide some information about the compiler.
0b31b230 3326$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
10946b02
AX
3327set X $ac_compile
3328ac_compiler=$2
0b31b230 3329{ (ac_try="$ac_compiler --version >&5"
10946b02
AX
3330case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
0b31b230
AX
3334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3335$as_echo "$ac_try_echo") >&5
3336 (eval "$ac_compiler --version >&5") 2>&5
10946b02 3337 ac_status=$?
0b31b230
AX
3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }
3340{ (ac_try="$ac_compiler -v >&5"
3341case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344esac
3345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346$as_echo "$ac_try_echo") >&5
3347 (eval "$ac_compiler -v >&5") 2>&5
3348 ac_status=$?
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }
3351{ (ac_try="$ac_compiler -V >&5"
3352case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355esac
3356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357$as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compiler -V >&5") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
10946b02 3362
0b31b230
AX
3363cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3368/* end confdefs.h. */
3369
3370int
3371main ()
3372{
3373
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378ac_clean_files_save=$ac_clean_files
3379ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3380# Try to create an executable without -o first, disregard a.out.
3381# It will help us diagnose broken compilers, and finding out an intuition
3382# of exeext.
0b31b230
AX
3383{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3384$as_echo_n "checking for C compiler default output file name... " >&6; }
10946b02
AX
3385ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3386
3387# The possible output files:
3388ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3389
3390ac_rmfiles=
3391for ac_file in $ac_files
3392do
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3395 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3396 esac
3397done
3398rm -f $ac_rmfiles
3399
0b31b230 3400if { (ac_try="$ac_link_default"
10946b02
AX
3401case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404esac
0b31b230
AX
3405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3406$as_echo "$ac_try_echo") >&5
10946b02
AX
3407 (eval "$ac_link_default") 2>&5
3408 ac_status=$?
0b31b230
AX
3409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; then
10946b02
AX
3411 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3412# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3413# in a Makefile. We should not override ac_cv_exeext if it was cached,
3414# so that the user can short-circuit this test for compilers unknown to
3415# Autoconf.
3416for ac_file in $ac_files ''
3417do
3418 test -f "$ac_file" || continue
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3421 ;;
3422 [ab].out )
3423 # We found the default executable, but exeext='' is most
3424 # certainly right.
3425 break;;
3426 *.* )
0b31b230 3427 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
10946b02
AX
3428 then :; else
3429 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 fi
3431 # We set ac_cv_exeext here because the later test for it is not
3432 # safe: cross compilers may not add the suffix if given an `-o'
3433 # argument, so we may need to know it at that point already.
3434 # Even if this section looks crufty: it has the advantage of
3435 # actually working.
3436 break;;
3437 * )
3438 break;;
3439 esac
3440done
3441test "$ac_cv_exeext" = no && ac_cv_exeext=
3442
3443else
3444 ac_file=''
3445fi
0b31b230
AX
3446
3447{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3448$as_echo "$ac_file" >&6; }
3449if test -z "$ac_file"; then
3450 $as_echo "$as_me: failed program was:" >&5
10946b02
AX
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
0b31b230 3453{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0b31b230
AX
3455{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3456See \`config.log' for more details." >&5
3457$as_echo "$as_me: error: C compiler cannot create executables
3458See \`config.log' for more details." >&2;}
3459 { (exit 77); exit 77; }; }; }
10946b02 3460fi
0b31b230 3461
10946b02
AX
3462ac_exeext=$ac_cv_exeext
3463
0b31b230
AX
3464# Check that the compiler produces executables we can run. If not, either
3465# the compiler is broken, or we cross compile.
3466{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3467$as_echo_n "checking whether the C compiler works... " >&6; }
3468# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3469# If not cross compiling, check that we can run a simple program.
3470if test "$cross_compiling" != yes; then
3471 if { ac_try='./$ac_file'
3472 { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3477$as_echo "$ac_try_echo") >&5
3478 (eval "$ac_try") 2>&5
3479 ac_status=$?
3480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 cross_compiling=no
3483 else
3484 if test "$cross_compiling" = maybe; then
3485 cross_compiling=yes
3486 else
3487 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3490If you meant to cross compile, use \`--host'.
3491See \`config.log' for more details." >&5
3492$as_echo "$as_me: error: cannot run C compiled programs.
3493If you meant to cross compile, use \`--host'.
3494See \`config.log' for more details." >&2;}
3495 { (exit 1); exit 1; }; }; }
3496 fi
3497 fi
3498fi
3499{ $as_echo "$as_me:$LINENO: result: yes" >&5
3500$as_echo "yes" >&6; }
3501
10946b02
AX
3502rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503ac_clean_files=$ac_clean_files_save
0b31b230
AX
3504# Check that the compiler produces executables we can run. If not, either
3505# the compiler is broken, or we cross compile.
3506{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3507$as_echo_n "checking whether we are cross compiling... " >&6; }
3508{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3509$as_echo "$cross_compiling" >&6; }
3510
3511{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
10946b02 3512$as_echo_n "checking for suffix of executables... " >&6; }
0b31b230 3513if { (ac_try="$ac_link"
10946b02
AX
3514case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517esac
0b31b230
AX
3518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3519$as_echo "$ac_try_echo") >&5
10946b02
AX
3520 (eval "$ac_link") 2>&5
3521 ac_status=$?
0b31b230
AX
3522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; then
10946b02
AX
3524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3525# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3526# work properly (i.e., refer to `conftest.exe'), while it won't with
3527# `rm'.
3528for ac_file in conftest.exe conftest conftest.*; do
3529 test -f "$ac_file" || continue
3530 case $ac_file in
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3533 break;;
3534 * ) break;;
3535 esac
3536done
3537else
0b31b230 3538 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 3539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0b31b230
AX
3540{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3541See \`config.log' for more details." >&5
3542$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3543See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }; }
10946b02 3545fi
0b31b230
AX
3546
3547rm -f conftest$ac_cv_exeext
3548{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10946b02
AX
3549$as_echo "$ac_cv_exeext" >&6; }
3550
3551rm -f conftest.$ac_ext
3552EXEEXT=$ac_cv_exeext
3553ac_exeext=$EXEEXT
0b31b230 3554{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
10946b02 3555$as_echo_n "checking for suffix of object files... " >&6; }
0b31b230 3556if test "${ac_cv_objext+set}" = set; then
10946b02
AX
3557 $as_echo_n "(cached) " >&6
3558else
0b31b230
AX
3559 cat >conftest.$ac_ext <<_ACEOF
3560/* confdefs.h. */
3561_ACEOF
3562cat confdefs.h >>conftest.$ac_ext
3563cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3564/* end confdefs.h. */
3565
3566int
3567main ()
3568{
3569
3570 ;
3571 return 0;
3572}
3573_ACEOF
3574rm -f conftest.o conftest.obj
0b31b230 3575if { (ac_try="$ac_compile"
10946b02
AX
3576case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579esac
0b31b230
AX
3580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3581$as_echo "$ac_try_echo") >&5
10946b02
AX
3582 (eval "$ac_compile") 2>&5
3583 ac_status=$?
0b31b230
AX
3584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; then
10946b02
AX
3586 for ac_file in conftest.o conftest.obj conftest.*; do
3587 test -f "$ac_file" || continue;
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3591 break;;
3592 esac
3593done
3594else
3595 $as_echo "$as_me: failed program was:" >&5
3596sed 's/^/| /' conftest.$ac_ext >&5
3597
0b31b230 3598{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 3599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0b31b230
AX
3600{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3601See \`config.log' for more details." >&5
3602$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3603See \`config.log' for more details." >&2;}
3604 { (exit 1); exit 1; }; }; }
10946b02 3605fi
0b31b230 3606
10946b02
AX
3607rm -f conftest.$ac_cv_objext conftest.$ac_ext
3608fi
0b31b230 3609{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10946b02
AX
3610$as_echo "$ac_cv_objext" >&6; }
3611OBJEXT=$ac_cv_objext
3612ac_objext=$OBJEXT
0b31b230 3613{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10946b02 3614$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
0b31b230 3615if test "${ac_cv_c_compiler_gnu+set}" = set; then
10946b02
AX
3616 $as_echo_n "(cached) " >&6
3617else
0b31b230
AX
3618 cat >conftest.$ac_ext <<_ACEOF
3619/* confdefs.h. */
3620_ACEOF
3621cat confdefs.h >>conftest.$ac_ext
3622cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3623/* end confdefs.h. */
3624
3625int
3626main ()
3627{
3628#ifndef __GNUC__
3629 choke me
3630#endif
3631
3632 ;
3633 return 0;
3634}
3635_ACEOF
0b31b230
AX
3636rm -f conftest.$ac_objext
3637if { (ac_try="$ac_compile"
3638case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641esac
3642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3643$as_echo "$ac_try_echo") >&5
3644 (eval "$ac_compile") 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } && {
3651 test -z "$ac_c_werror_flag" ||
3652 test ! -s conftest.err
3653 } && test -s conftest.$ac_objext; then
10946b02
AX
3654 ac_compiler_gnu=yes
3655else
0b31b230
AX
3656 $as_echo "$as_me: failed program was:" >&5
3657sed 's/^/| /' conftest.$ac_ext >&5
3658
3659 ac_compiler_gnu=no
10946b02 3660fi
0b31b230 3661
10946b02
AX
3662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663ac_cv_c_compiler_gnu=$ac_compiler_gnu
3664
3665fi
0b31b230 3666{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10946b02
AX
3667$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3668if test $ac_compiler_gnu = yes; then
3669 GCC=yes
3670else
3671 GCC=
3672fi
3673ac_test_CFLAGS=${CFLAGS+set}
3674ac_save_CFLAGS=$CFLAGS
0b31b230 3675{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10946b02 3676$as_echo_n "checking whether $CC accepts -g... " >&6; }
0b31b230 3677if test "${ac_cv_prog_cc_g+set}" = set; then
10946b02
AX
3678 $as_echo_n "(cached) " >&6
3679else
3680 ac_save_c_werror_flag=$ac_c_werror_flag
3681 ac_c_werror_flag=yes
3682 ac_cv_prog_cc_g=no
3683 CFLAGS="-g"
0b31b230
AX
3684 cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h. */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3689/* end confdefs.h. */
3690
3691int
3692main ()
3693{
3694
3695 ;
3696 return 0;
3697}
3698_ACEOF
0b31b230
AX
3699rm -f conftest.$ac_objext
3700if { (ac_try="$ac_compile"
3701case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704esac
3705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706$as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } && {
3714 test -z "$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 } && test -s conftest.$ac_objext; then
10946b02
AX
3717 ac_cv_prog_cc_g=yes
3718else
0b31b230
AX
3719 $as_echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 CFLAGS=""
3723 cat >conftest.$ac_ext <<_ACEOF
3724/* confdefs.h. */
3725_ACEOF
3726cat confdefs.h >>conftest.$ac_ext
3727cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3728/* end confdefs.h. */
3729
3730int
3731main ()
3732{
3733
3734 ;
3735 return 0;
3736}
3737_ACEOF
0b31b230
AX
3738rm -f conftest.$ac_objext
3739if { (ac_try="$ac_compile"
3740case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743esac
3744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3745$as_echo "$ac_try_echo") >&5
3746 (eval "$ac_compile") 2>conftest.er1
3747 ac_status=$?
3748 grep -v '^ *+' conftest.er1 >conftest.err
3749 rm -f conftest.er1
3750 cat conftest.err >&5
3751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } && {
3753 test -z "$ac_c_werror_flag" ||
3754 test ! -s conftest.err
3755 } && test -s conftest.$ac_objext; then
3756 :
10946b02 3757else
0b31b230
AX
3758 $as_echo "$as_me: failed program was:" >&5
3759sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 ac_c_werror_flag=$ac_save_c_werror_flag
10946b02 3762 CFLAGS="-g"
0b31b230
AX
3763 cat >conftest.$ac_ext <<_ACEOF
3764/* confdefs.h. */
3765_ACEOF
3766cat confdefs.h >>conftest.$ac_ext
3767cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3768/* end confdefs.h. */
3769
3770int
3771main ()
3772{
3773
3774 ;
3775 return 0;
3776}
3777_ACEOF
0b31b230
AX
3778rm -f conftest.$ac_objext
3779if { (ac_try="$ac_compile"
3780case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783esac
3784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3785$as_echo "$ac_try_echo") >&5
3786 (eval "$ac_compile") 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest.$ac_objext; then
10946b02 3796 ac_cv_prog_cc_g=yes
0b31b230
AX
3797else
3798 $as_echo "$as_me: failed program was:" >&5
3799sed 's/^/| /' conftest.$ac_ext >&5
3800
3801
10946b02 3802fi
0b31b230 3803
10946b02
AX
3804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805fi
0b31b230 3806
10946b02
AX
3807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808fi
0b31b230 3809
10946b02
AX
3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 ac_c_werror_flag=$ac_save_c_werror_flag
3812fi
0b31b230 3813{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10946b02
AX
3814$as_echo "$ac_cv_prog_cc_g" >&6; }
3815if test "$ac_test_CFLAGS" = set; then
3816 CFLAGS=$ac_save_CFLAGS
3817elif test $ac_cv_prog_cc_g = yes; then
3818 if test "$GCC" = yes; then
3819 CFLAGS="-g -O2"
3820 else
3821 CFLAGS="-g"
3822 fi
3823else
3824 if test "$GCC" = yes; then
3825 CFLAGS="-O2"
3826 else
3827 CFLAGS=
3828 fi
3829fi
0b31b230 3830{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
10946b02 3831$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
0b31b230 3832if test "${ac_cv_prog_cc_c89+set}" = set; then
10946b02
AX
3833 $as_echo_n "(cached) " >&6
3834else
3835 ac_cv_prog_cc_c89=no
3836ac_save_CC=$CC
0b31b230
AX
3837cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h. */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3842/* end confdefs.h. */
3843#include <stdarg.h>
3844#include <stdio.h>
0b31b230
AX
3845#include <sys/types.h>
3846#include <sys/stat.h>
10946b02
AX
3847/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3848struct buf { int x; };
3849FILE * (*rcsopen) (struct buf *, struct stat *, int);
3850static char *e (p, i)
3851 char **p;
3852 int i;
3853{
3854 return p[i];
3855}
3856static char *f (char * (*g) (char **, int), char **p, ...)
3857{
3858 char *s;
3859 va_list v;
3860 va_start (v,p);
3861 s = g (p, va_arg (v,int));
3862 va_end (v);
3863 return s;
3864}
3865
3866/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3867 function prototypes and stuff, but not '\xHH' hex character constants.
3868 These don't provoke an error unfortunately, instead are silently treated
3869 as 'x'. The following induces an error, until -std is added to get
3870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3871 array size at least. It's necessary to write '\x00'==0 to get something
3872 that's true only with -std. */
3873int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3874
3875/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3876 inside strings and character constants. */
3877#define FOO(x) 'x'
3878int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3879
3880int test (int i, double x);
3881struct s1 {int (*f) (int a);};
3882struct s2 {int (*f) (double a);};
3883int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3884int argc;
3885char **argv;
3886int
3887main ()
3888{
3889return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3890 ;
3891 return 0;
3892}
3893_ACEOF
3894for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3896do
3897 CC="$ac_save_CC $ac_arg"
0b31b230
AX
3898 rm -f conftest.$ac_objext
3899if { (ac_try="$ac_compile"
3900case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903esac
3904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3905$as_echo "$ac_try_echo") >&5
3906 (eval "$ac_compile") 2>conftest.er1
3907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest.$ac_objext; then
10946b02 3916 ac_cv_prog_cc_c89=$ac_arg
0b31b230
AX
3917else
3918 $as_echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921
10946b02 3922fi
0b31b230 3923
10946b02
AX
3924rm -f core conftest.err conftest.$ac_objext
3925 test "x$ac_cv_prog_cc_c89" != "xno" && break
3926done
3927rm -f conftest.$ac_ext
3928CC=$ac_save_CC
3929
3930fi
3931# AC_CACHE_VAL
3932case "x$ac_cv_prog_cc_c89" in
3933 x)
0b31b230 3934 { $as_echo "$as_me:$LINENO: result: none needed" >&5
10946b02
AX
3935$as_echo "none needed" >&6; } ;;
3936 xno)
0b31b230 3937 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
10946b02
AX
3938$as_echo "unsupported" >&6; } ;;
3939 *)
3940 CC="$CC $ac_cv_prog_cc_c89"
0b31b230 3941 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
10946b02
AX
3942$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3943esac
ac9cc135 3944
ac9cc135 3945
ac9cc135
AX
3946ac_ext=c
3947ac_cpp='$CPP $CPPFLAGS'
3948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950ac_compiler_gnu=$ac_cv_c_compiler_gnu
10946b02
AX
3951DEPDIR="${am__leading_dot}deps"
3952
3953ac_config_commands="$ac_config_commands depfiles"
3954
3955
3956am_make=${MAKE-make}
3957cat > confinc << 'END'
3958am__doit:
3959 @echo this is the am__doit target
3960.PHONY: am__doit
3961END
3962# If we don't find an include directive, just comment out the code.
0b31b230 3963{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
10946b02
AX
3964$as_echo_n "checking for style of include used by $am_make... " >&6; }
3965am__include="#"
3966am__quote=
3967_am_result=none
3968# First try GNU make style include.
3969echo "include confinc" > confmf
0b31b230 3970# Ignore all kinds of additional output from `make'.
10946b02
AX
3971case `$am_make -s -f confmf 2> /dev/null` in #(
3972*the\ am__doit\ target*)
3973 am__include=include
3974 am__quote=
3975 _am_result=GNU
3976 ;;
3977esac
3978# Now try BSD make style include.
3979if test "$am__include" = "#"; then
3980 echo '.include "confinc"' > confmf
3981 case `$am_make -s -f confmf 2> /dev/null` in #(
3982 *the\ am__doit\ target*)
3983 am__include=.include
3984 am__quote="\""
3985 _am_result=BSD
3986 ;;
3987 esac
3988fi
3989
3990
0b31b230 3991{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
10946b02
AX
3992$as_echo "$_am_result" >&6; }
3993rm -f confinc confmf
3994
3995# Check whether --enable-dependency-tracking was given.
0b31b230 3996if test "${enable_dependency_tracking+set}" = set; then
10946b02
AX
3997 enableval=$enable_dependency_tracking;
3998fi
3999
4000if test "x$enable_dependency_tracking" != xno; then
4001 am_depcomp="$ac_aux_dir/depcomp"
4002 AMDEPBACKSLASH='\'
10946b02
AX
4003fi
4004 if test "x$enable_dependency_tracking" != xno; then
4005 AMDEP_TRUE=
4006 AMDEP_FALSE='#'
4007else
4008 AMDEP_TRUE='#'
4009 AMDEP_FALSE=
4010fi
4011
4012
4013
4014depcc="$CC" am_compiler_list=
4015
0b31b230 4016{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10946b02 4017$as_echo_n "checking dependency style of $depcc... " >&6; }
0b31b230 4018if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
10946b02
AX
4019 $as_echo_n "(cached) " >&6
4020else
4021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4022 # We make a subdir and do the tests there. Otherwise we can end up
4023 # making bogus files that we don't know about and never remove. For
4024 # instance it was reported that on HP-UX the gcc test will end up
0b31b230
AX
4025 # making a dummy file named `D' -- because `-MD' means `put the output
4026 # in D'.
10946b02
AX
4027 mkdir conftest.dir
4028 # Copy depcomp to subdir because otherwise we won't find it if we're
4029 # using a relative directory.
4030 cp "$am_depcomp" conftest.dir
4031 cd conftest.dir
4032 # We will build objects and dependencies in a subdirectory because
4033 # it helps to detect inapplicable dependency modes. For instance
4034 # both Tru64's cc and ICC support -MD to output dependencies as a
4035 # side effect of compilation, but ICC will put the dependencies in
4036 # the current directory while Tru64 will put them in the object
4037 # directory.
4038 mkdir sub
4039
4040 am_cv_CC_dependencies_compiler_type=none
4041 if test "$am_compiler_list" = ""; then
4042 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4043 fi
4044 am__universal=false
4045 case " $depcc " in #(
4046 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4047 esac
4048
4049 for depmode in $am_compiler_list; do
4050 # Setup a source with many dependencies, because some compilers
4051 # like to wrap large dependency lists on column 80 (with \), and
4052 # we should not choose a depcomp mode which is confused by this.
4053 #
4054 # We need to recreate these files for each test, as the compiler may
4055 # overwrite some of them when testing with obscure command lines.
4056 # This happens at least with the AIX C compiler.
4057 : > sub/conftest.c
4058 for i in 1 2 3 4 5 6; do
4059 echo '#include "conftst'$i'.h"' >> sub/conftest.c
0b31b230
AX
4060 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4061 # Solaris 8's {/usr,}/bin/sh.
4062 touch sub/conftst$i.h
10946b02
AX
4063 done
4064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4065
0b31b230 4066 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10946b02 4067 # mode. It turns out that the SunPro C++ compiler does not properly
0b31b230
AX
4068 # handle `-M -o', and we need to detect this. Also, some Intel
4069 # versions had trouble with output in subdirs
10946b02
AX
4070 am__obj=sub/conftest.${OBJEXT-o}
4071 am__minus_obj="-o $am__obj"
4072 case $depmode in
4073 gcc)
4074 # This depmode causes a compiler race in universal mode.
4075 test "$am__universal" = false || continue
4076 ;;
4077 nosideeffect)
0b31b230
AX
4078 # after this tag, mechanisms are not by side-effect, so they'll
4079 # only be used when explicitly requested
10946b02
AX
4080 if test "x$enable_dependency_tracking" = xyes; then
4081 continue
4082 else
4083 break
4084 fi
4085 ;;
0b31b230
AX
4086 msvisualcpp | msvcmsys)
4087 # This compiler won't grok `-c -o', but also, the minuso test has
10946b02
AX
4088 # not run yet. These depmodes are late enough in the game, and
4089 # so weak that their functioning should not be impacted.
4090 am__obj=conftest.${OBJEXT-o}
4091 am__minus_obj=
4092 ;;
4093 none) break ;;
4094 esac
4095 if depmode=$depmode \
4096 source=sub/conftest.c object=$am__obj \
4097 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4098 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4099 >/dev/null 2>conftest.err &&
4100 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4101 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4102 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4103 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4104 # icc doesn't choke on unknown options, it will just issue warnings
4105 # or remarks (even with -Werror). So we grep stderr for any message
4106 # that says an option was ignored or not supported.
4107 # When given -MP, icc 7.0 and 7.1 complain thusly:
4108 # icc: Command line warning: ignoring option '-M'; no argument required
4109 # The diagnosis changed in icc 8.0:
4110 # icc: Command line remark: option '-MP' not supported
4111 if (grep 'ignoring option' conftest.err ||
4112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4113 am_cv_CC_dependencies_compiler_type=$depmode
4114 break
4115 fi
4116 fi
4117 done
4118
4119 cd ..
4120 rm -rf conftest.dir
4121else
4122 am_cv_CC_dependencies_compiler_type=none
4123fi
4124
4125fi
0b31b230 4126{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
10946b02
AX
4127$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4128CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4129
4130 if
4131 test "x$enable_dependency_tracking" != xno \
4132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4133 am__fastdepCC_TRUE=
4134 am__fastdepCC_FALSE='#'
4135else
4136 am__fastdepCC_TRUE='#'
4137 am__fastdepCC_FALSE=
4138fi
4139
4140
4141case `pwd` in
4142 *\ * | *\ *)
0b31b230 4143 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10946b02
AX
4144$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4145esac
4146
4147
4148
0b31b230
AX
4149macro_version='2.2.6b'
4150macro_revision='1.3017'
10946b02
AX
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
0b31b230 4164ltmain="$ac_aux_dir/ltmain.sh"
10946b02 4165
0b31b230 4166{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10946b02 4167$as_echo_n "checking for a sed that does not truncate output... " >&6; }
0b31b230 4168if test "${ac_cv_path_SED+set}" = set; then
10946b02
AX
4169 $as_echo_n "(cached) " >&6
4170else
4171 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4172 for ac_i in 1 2 3 4 5 6 7; do
4173 ac_script="$ac_script$as_nl$ac_script"
4174 done
4175 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
0b31b230 4176 $as_unset ac_script || ac_script=
10946b02
AX
4177 if test -z "$SED"; then
4178 ac_path_SED_found=false
4179 # Loop through the user's path and test for each of PROGNAME-LIST
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
0b31b230 4185 for ac_prog in sed gsed; do
10946b02
AX
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
0b31b230 4188 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10946b02
AX
4189# Check for GNU ac_path_SED and select it if it is found.
4190 # Check for GNU $ac_path_SED
4191case `"$ac_path_SED" --version 2>&1` in
4192*GNU*)
4193 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4194*)
4195 ac_count=0
4196 $as_echo_n 0123456789 >"conftest.in"
4197 while :
4198 do
4199 cat "conftest.in" "conftest.in" >"conftest.tmp"
4200 mv "conftest.tmp" "conftest.in"
4201 cp "conftest.in" "conftest.nl"
4202 $as_echo '' >> "conftest.nl"
4203 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0b31b230 4205 ac_count=`expr $ac_count + 1`
10946b02
AX
4206 if test $ac_count -gt ${ac_path_SED_max-0}; then
4207 # Best one so far, save it but keep looking for a better one
4208 ac_cv_path_SED="$ac_path_SED"
4209 ac_path_SED_max=$ac_count
4210 fi
4211 # 10*(2^10) chars as input seems more than enough
4212 test $ac_count -gt 10 && break
4213 done
4214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4215esac
4216
4217 $ac_path_SED_found && break 3
4218 done
4219 done
0b31b230 4220done
10946b02
AX
4221IFS=$as_save_IFS
4222 if test -z "$ac_cv_path_SED"; then
0b31b230
AX
4223 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4224$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4225 { (exit 1); exit 1; }; }
10946b02
AX
4226 fi
4227else
4228 ac_cv_path_SED=$SED
4229fi
4230
4231fi
0b31b230 4232{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
10946b02
AX
4233$as_echo "$ac_cv_path_SED" >&6; }
4234 SED="$ac_cv_path_SED"
4235 rm -f conftest.sed
4236
4237test -z "$SED" && SED=sed
4238Xsed="$SED -e 1s/^X//"
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
0b31b230 4250{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
10946b02 4251$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
0b31b230 4252if test "${ac_cv_path_GREP+set}" = set; then
10946b02
AX
4253 $as_echo_n "(cached) " >&6
4254else
4255 if test -z "$GREP"; then
4256 ac_path_GREP_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
0b31b230 4263 for ac_prog in grep ggrep; do
10946b02
AX
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
0b31b230 4266 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
10946b02
AX
4267# Check for GNU ac_path_GREP and select it if it is found.
4268 # Check for GNU $ac_path_GREP
4269case `"$ac_path_GREP" --version 2>&1` in
4270*GNU*)
4271 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4272*)
4273 ac_count=0
4274 $as_echo_n 0123456789 >"conftest.in"
4275 while :
4276 do
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 $as_echo 'GREP' >> "conftest.nl"
4281 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0b31b230 4283 ac_count=`expr $ac_count + 1`
10946b02
AX
4284 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_GREP="$ac_path_GREP"
4287 ac_path_GREP_max=$ac_count
4288 fi
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4291 done
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293esac
4294
4295 $ac_path_GREP_found && break 3
4296 done
4297 done
0b31b230 4298done
10946b02
AX
4299IFS=$as_save_IFS
4300 if test -z "$ac_cv_path_GREP"; then
0b31b230
AX
4301 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4302$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4303 { (exit 1); exit 1; }; }
10946b02
AX
4304 fi
4305else
4306 ac_cv_path_GREP=$GREP
4307fi
4308
4309fi
0b31b230 4310{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
10946b02
AX
4311$as_echo "$ac_cv_path_GREP" >&6; }
4312 GREP="$ac_cv_path_GREP"
4313
4314
0b31b230 4315{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
10946b02 4316$as_echo_n "checking for egrep... " >&6; }
0b31b230 4317if test "${ac_cv_path_EGREP+set}" = set; then
10946b02
AX
4318 $as_echo_n "(cached) " >&6
4319else
4320 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4321 then ac_cv_path_EGREP="$GREP -E"
4322 else
4323 if test -z "$EGREP"; then
4324 ac_path_EGREP_found=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4328do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
0b31b230 4331 for ac_prog in egrep; do
10946b02
AX
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
0b31b230 4334 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10946b02
AX
4335# Check for GNU ac_path_EGREP and select it if it is found.
4336 # Check for GNU $ac_path_EGREP
4337case `"$ac_path_EGREP" --version 2>&1` in
4338*GNU*)
4339 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4340*)
4341 ac_count=0
4342 $as_echo_n 0123456789 >"conftest.in"
4343 while :
4344 do
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'EGREP' >> "conftest.nl"
4349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0b31b230 4351 ac_count=`expr $ac_count + 1`
10946b02
AX
4352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_EGREP="$ac_path_EGREP"
4355 ac_path_EGREP_max=$ac_count
4356 fi
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4359 done
4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361esac
4362
4363 $ac_path_EGREP_found && break 3
4364 done
4365 done
0b31b230 4366done
10946b02
AX
4367IFS=$as_save_IFS
4368 if test -z "$ac_cv_path_EGREP"; then
0b31b230
AX
4369 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4370$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4371 { (exit 1); exit 1; }; }
10946b02
AX
4372 fi
4373else
4374 ac_cv_path_EGREP=$EGREP
4375fi
4376
4377 fi
4378fi
0b31b230 4379{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
10946b02
AX
4380$as_echo "$ac_cv_path_EGREP" >&6; }
4381 EGREP="$ac_cv_path_EGREP"
4382
4383
0b31b230 4384{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
10946b02 4385$as_echo_n "checking for fgrep... " >&6; }
0b31b230 4386if test "${ac_cv_path_FGREP+set}" = set; then
10946b02
AX
4387 $as_echo_n "(cached) " >&6
4388else
4389 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4390 then ac_cv_path_FGREP="$GREP -F"
4391 else
4392 if test -z "$FGREP"; then
4393 ac_path_FGREP_found=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
0b31b230 4400 for ac_prog in fgrep; do
10946b02
AX
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
0b31b230 4403 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10946b02
AX
4404# Check for GNU ac_path_FGREP and select it if it is found.
4405 # Check for GNU $ac_path_FGREP
4406case `"$ac_path_FGREP" --version 2>&1` in
4407*GNU*)
4408 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4409*)
4410 ac_count=0
4411 $as_echo_n 0123456789 >"conftest.in"
4412 while :
4413 do
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo 'FGREP' >> "conftest.nl"
4418 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
0b31b230 4420 ac_count=`expr $ac_count + 1`
10946b02
AX
4421 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_FGREP="$ac_path_FGREP"
4424 ac_path_FGREP_max=$ac_count
4425 fi
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4428 done
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430esac
4431
4432 $ac_path_FGREP_found && break 3
4433 done
4434 done
0b31b230 4435done
10946b02
AX
4436IFS=$as_save_IFS
4437 if test -z "$ac_cv_path_FGREP"; then
0b31b230
AX
4438 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4439$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4440 { (exit 1); exit 1; }; }
10946b02
AX
4441 fi
4442else
4443 ac_cv_path_FGREP=$FGREP
4444fi
4445
4446 fi
4447fi
0b31b230 4448{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
10946b02
AX
4449$as_echo "$ac_cv_path_FGREP" >&6; }
4450 FGREP="$ac_cv_path_FGREP"
4451
4452
4453test -z "$GREP" && GREP=grep
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473# Check whether --with-gnu-ld was given.
0b31b230
AX
4474if test "${with_gnu_ld+set}" = set; then
4475 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10946b02
AX
4476else
4477 with_gnu_ld=no
4478fi
4479
4480ac_prog=ld
0b31b230 4481if test "$GCC" = yes; then
10946b02 4482 # Check if gcc -print-prog-name=ld gives a path.
0b31b230 4483 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10946b02
AX
4484$as_echo_n "checking for ld used by $CC... " >&6; }
4485 case $host in
4486 *-*-mingw*)
0b31b230 4487 # gcc leaves a trailing carriage return which upsets mingw
10946b02
AX
4488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4489 *)
4490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4491 esac
4492 case $ac_prog in
4493 # Accept absolute paths.
4494 [\\/]* | ?:[\\/]*)
4495 re_direlt='/[^/][^/]*/\.\./'
4496 # Canonicalize the pathname of ld
4497 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4498 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4499 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4500 done
0b31b230 4501 test -z "$LD" && LD="$ac_prog"
10946b02
AX
4502 ;;
4503 "")
4504 # If it fails, then pretend we aren't using GCC.
4505 ac_prog=ld
4506 ;;
4507 *)
4508 # If it is relative, then search for the first ld in PATH.
4509 with_gnu_ld=unknown
4510 ;;
4511 esac
0b31b230
AX
4512elif test "$with_gnu_ld" = yes; then
4513 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10946b02
AX
4514$as_echo_n "checking for GNU ld... " >&6; }
4515else
0b31b230 4516 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10946b02
AX
4517$as_echo_n "checking for non-GNU ld... " >&6; }
4518fi
0b31b230 4519if test "${lt_cv_path_LD+set}" = set; then
10946b02
AX
4520 $as_echo_n "(cached) " >&6
4521else
4522 if test -z "$LD"; then
0b31b230 4523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10946b02 4524 for ac_dir in $PATH; do
0b31b230 4525 IFS="$lt_save_ifs"
10946b02
AX
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
0b31b230 4528 lt_cv_path_LD="$ac_dir/$ac_prog"
10946b02
AX
4529 # Check to see if the program is GNU ld. I'd rather use --version,
4530 # but apparently some variants of GNU ld only accept -v.
4531 # Break only if it was the GNU/non-GNU ld that we prefer.
4532 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4533 *GNU* | *'with BFD'*)
0b31b230 4534 test "$with_gnu_ld" != no && break
10946b02
AX
4535 ;;
4536 *)
0b31b230 4537 test "$with_gnu_ld" != yes && break
10946b02
AX
4538 ;;
4539 esac
4540 fi
4541 done
0b31b230 4542 IFS="$lt_save_ifs"
10946b02 4543else
0b31b230 4544 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10946b02
AX
4545fi
4546fi
4547
0b31b230 4548LD="$lt_cv_path_LD"
10946b02 4549if test -n "$LD"; then
0b31b230 4550 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10946b02
AX
4551$as_echo "$LD" >&6; }
4552else
0b31b230 4553 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
4554$as_echo "no" >&6; }
4555fi
0b31b230
AX
4556test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4557$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4558 { (exit 1); exit 1; }; }
4559{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10946b02 4560$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
0b31b230 4561if test "${lt_cv_prog_gnu_ld+set}" = set; then
10946b02
AX
4562 $as_echo_n "(cached) " >&6
4563else
4564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4565case `$LD -v 2>&1 </dev/null` in
4566*GNU* | *'with BFD'*)
4567 lt_cv_prog_gnu_ld=yes
4568 ;;
4569*)
4570 lt_cv_prog_gnu_ld=no
4571 ;;
4572esac
4573fi
0b31b230 4574{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10946b02
AX
4575$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4576with_gnu_ld=$lt_cv_prog_gnu_ld
4577
4578
4579
4580
4581
4582
4583
4584
4585
0b31b230 4586{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
10946b02 4587$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
0b31b230 4588if test "${lt_cv_path_NM+set}" = set; then
10946b02
AX
4589 $as_echo_n "(cached) " >&6
4590else
4591 if test -n "$NM"; then
4592 # Let the user override the test.
0b31b230 4593 lt_cv_path_NM="$NM"
10946b02 4594else
0b31b230 4595 lt_nm_to_check="${ac_tool_prefix}nm"
10946b02
AX
4596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4597 lt_nm_to_check="$lt_nm_to_check nm"
4598 fi
4599 for lt_tmp_nm in $lt_nm_to_check; do
0b31b230 4600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10946b02 4601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
0b31b230 4602 IFS="$lt_save_ifs"
10946b02 4603 test -z "$ac_dir" && ac_dir=.
0b31b230
AX
4604 tmp_nm="$ac_dir/$lt_tmp_nm"
4605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10946b02 4606 # Check to see if the nm accepts a BSD-compat flag.
0b31b230 4607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10946b02
AX
4608 # nm: unknown option "B" ignored
4609 # Tru64's nm complains that /dev/null is an invalid object file
0b31b230
AX
4610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4611 */dev/null* | *'Invalid file or object type'*)
10946b02 4612 lt_cv_path_NM="$tmp_nm -B"
0b31b230 4613 break
10946b02
AX
4614 ;;
4615 *)
4616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4617 */dev/null*)
4618 lt_cv_path_NM="$tmp_nm -p"
0b31b230 4619 break
10946b02
AX
4620 ;;
4621 *)
4622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4623 continue # so that we can try to find one that supports BSD flags
4624 ;;
4625 esac
4626 ;;
4627 esac
4628 fi
4629 done
0b31b230 4630 IFS="$lt_save_ifs"
10946b02
AX
4631 done
4632 : ${lt_cv_path_NM=no}
4633fi
4634fi
0b31b230 4635{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10946b02 4636$as_echo "$lt_cv_path_NM" >&6; }
0b31b230
AX
4637if test "$lt_cv_path_NM" != "no"; then
4638 NM="$lt_cv_path_NM"
10946b02
AX
4639else
4640 # Didn't find any BSD compatible name lister, look for dumpbin.
0b31b230
AX
4641 if test -n "$ac_tool_prefix"; then
4642 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
10946b02
AX
4643 do
4644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
0b31b230 4646{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 4647$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 4648if test "${ac_cv_prog_DUMPBIN+set}" = set; then
10946b02
AX
4649 $as_echo_n "(cached) " >&6
4650else
4651 if test -n "$DUMPBIN"; then
4652 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
0b31b230
AX
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 4661 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
0b31b230 4662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
4663 break 2
4664 fi
4665done
0b31b230 4666done
10946b02
AX
4667IFS=$as_save_IFS
4668
4669fi
4670fi
4671DUMPBIN=$ac_cv_prog_DUMPBIN
4672if test -n "$DUMPBIN"; then
0b31b230 4673 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
10946b02
AX
4674$as_echo "$DUMPBIN" >&6; }
4675else
0b31b230 4676 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
4677$as_echo "no" >&6; }
4678fi
4679
4680
4681 test -n "$DUMPBIN" && break
4682 done
4683fi
4684if test -z "$DUMPBIN"; then
4685 ac_ct_DUMPBIN=$DUMPBIN
0b31b230 4686 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
10946b02
AX
4687do
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689set dummy $ac_prog; ac_word=$2
0b31b230 4690{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 4691$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 4692if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
10946b02
AX
4693 $as_echo_n "(cached) " >&6
4694else
4695 if test -n "$ac_ct_DUMPBIN"; then
4696 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
0b31b230
AX
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 4705 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
0b31b230 4706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
4707 break 2
4708 fi
4709done
0b31b230 4710done
10946b02
AX
4711IFS=$as_save_IFS
4712
4713fi
4714fi
4715ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4716if test -n "$ac_ct_DUMPBIN"; then
0b31b230 4717 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
10946b02
AX
4718$as_echo "$ac_ct_DUMPBIN" >&6; }
4719else
0b31b230 4720 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
4721$as_echo "no" >&6; }
4722fi
4723
4724
4725 test -n "$ac_ct_DUMPBIN" && break
4726done
4727
4728 if test "x$ac_ct_DUMPBIN" = x; then
4729 DUMPBIN=":"
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732yes:)
0b31b230 4733{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
4734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735ac_tool_warned=yes ;;
4736esac
4737 DUMPBIN=$ac_ct_DUMPBIN
4738 fi
4739fi
4740
10946b02 4741
0b31b230
AX
4742 if test "$DUMPBIN" != ":"; then
4743 NM="$DUMPBIN"
10946b02
AX
4744 fi
4745fi
4746test -z "$NM" && NM=nm
4747
4748
4749
4750
4751
4752
0b31b230 4753{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
10946b02 4754$as_echo_n "checking the name lister ($NM) interface... " >&6; }
0b31b230 4755if test "${lt_cv_nm_interface+set}" = set; then
10946b02
AX
4756 $as_echo_n "(cached) " >&6
4757else
4758 lt_cv_nm_interface="BSD nm"
4759 echo "int some_variable = 0;" > conftest.$ac_ext
0b31b230 4760 (eval echo "\"\$as_me:4760: $ac_compile\"" >&5)
10946b02
AX
4761 (eval "$ac_compile" 2>conftest.err)
4762 cat conftest.err >&5
0b31b230 4763 (eval echo "\"\$as_me:4763: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10946b02
AX
4764 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4765 cat conftest.err >&5
0b31b230 4766 (eval echo "\"\$as_me:4766: output\"" >&5)
10946b02
AX
4767 cat conftest.out >&5
4768 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4769 lt_cv_nm_interface="MS dumpbin"
4770 fi
4771 rm -f conftest*
4772fi
0b31b230 4773{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
10946b02
AX
4774$as_echo "$lt_cv_nm_interface" >&6; }
4775
0b31b230 4776{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
10946b02
AX
4777$as_echo_n "checking whether ln -s works... " >&6; }
4778LN_S=$as_ln_s
4779if test "$LN_S" = "ln -s"; then
0b31b230 4780 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
4781$as_echo "yes" >&6; }
4782else
0b31b230 4783 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10946b02
AX
4784$as_echo "no, using $LN_S" >&6; }
4785fi
4786
4787# find the maximum length of command line arguments
0b31b230 4788{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10946b02 4789$as_echo_n "checking the maximum length of command line arguments... " >&6; }
0b31b230 4790if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10946b02
AX
4791 $as_echo_n "(cached) " >&6
4792else
4793 i=0
0b31b230 4794 teststring="ABCD"
10946b02
AX
4795
4796 case $build_os in
4797 msdosdjgpp*)
4798 # On DJGPP, this test can blow up pretty badly due to problems in libc
4799 # (any single argument exceeding 2000 bytes causes a buffer overrun
4800 # during glob expansion). Even if it were fixed, the result of this
4801 # check would be larger than it should be.
4802 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4803 ;;
4804
4805 gnu*)
4806 # Under GNU Hurd, this test is not required because there is
4807 # no limit to the length of command line arguments.
4808 # Libtool will interpret -1 as no limit whatsoever
4809 lt_cv_sys_max_cmd_len=-1;
4810 ;;
4811
4812 cygwin* | mingw* | cegcc*)
4813 # On Win9x/ME, this test blows up -- it succeeds, but takes
4814 # about 5 minutes as the teststring grows exponentially.
4815 # Worse, since 9x/ME are not pre-emptively multitasking,
4816 # you end up with a "frozen" computer, even though with patience
4817 # the test eventually succeeds (with a max line length of 256k).
4818 # Instead, let's just punt: use the minimum linelength reported by
4819 # all of the supported platforms: 8192 (on NT/2K/XP).
4820 lt_cv_sys_max_cmd_len=8192;
4821 ;;
4822
10946b02
AX
4823 amigaos*)
4824 # On AmigaOS with pdksh, this test takes hours, literally.
4825 # So we just punt and use a minimum line length of 8192.
4826 lt_cv_sys_max_cmd_len=8192;
4827 ;;
4828
0b31b230 4829 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10946b02
AX
4830 # This has been around since 386BSD, at least. Likely further.
4831 if test -x /sbin/sysctl; then
4832 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4833 elif test -x /usr/sbin/sysctl; then
4834 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4835 else
4836 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4837 fi
4838 # And add a safety zone
4839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4841 ;;
4842
4843 interix*)
4844 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4845 lt_cv_sys_max_cmd_len=196608
4846 ;;
4847
10946b02
AX
4848 osf*)
4849 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4850 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4851 # nice to cause kernel panics so lets avoid the loop below.
4852 # First set a reasonable default.
4853 lt_cv_sys_max_cmd_len=16384
4854 #
4855 if test -x /sbin/sysconfig; then
4856 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4857 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4858 esac
4859 fi
4860 ;;
4861 sco3.2v5*)
4862 lt_cv_sys_max_cmd_len=102400
4863 ;;
4864 sysv5* | sco5v6* | sysv4.2uw2*)
4865 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4866 if test -n "$kargmax"; then
4867 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4868 else
4869 lt_cv_sys_max_cmd_len=32768
4870 fi
4871 ;;
4872 *)
4873 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
0b31b230 4874 if test -n "$lt_cv_sys_max_cmd_len"; then
10946b02
AX
4875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4877 else
4878 # Make teststring a little bigger before we do anything with it.
4879 # a 1K string should be a reasonable start.
0b31b230 4880 for i in 1 2 3 4 5 6 7 8 ; do
10946b02
AX
4881 teststring=$teststring$teststring
4882 done
4883 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4884 # If test is not a shell built-in, we'll probably end up computing a
4885 # maximum length that is only half of the actual maximum length, but
4886 # we can't tell.
0b31b230
AX
4887 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4888 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4889 test $i != 17 # 1/2 MB should be enough
10946b02
AX
4890 do
4891 i=`expr $i + 1`
4892 teststring=$teststring$teststring
4893 done
4894 # Only check the string length outside the loop.
4895 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4896 teststring=
4897 # Add a significant safety factor because C++ compilers can tack on
4898 # massive amounts of additional arguments before passing them to the
4899 # linker. It appears as though 1/2 is a usable value.
4900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4901 fi
4902 ;;
4903 esac
4904
4905fi
4906
0b31b230
AX
4907if test -n $lt_cv_sys_max_cmd_len ; then
4908 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10946b02
AX
4909$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4910else
0b31b230 4911 { $as_echo "$as_me:$LINENO: result: none" >&5
10946b02
AX
4912$as_echo "none" >&6; }
4913fi
4914max_cmd_len=$lt_cv_sys_max_cmd_len
4915
4916
4917
4918
4919
4920
4921: ${CP="cp -f"}
4922: ${MV="mv -f"}
4923: ${RM="rm -f"}
4924
0b31b230
AX
4925{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4926$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4927# Try some XSI features
4928xsi_shell=no
4929( _lt_dummy="a/b/c"
4930 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4931 = c,a/b,, \
4932 && eval 'test $(( 1 + 1 )) -eq 2 \
4933 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4934 && xsi_shell=yes
4935{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4936$as_echo "$xsi_shell" >&6; }
4937
4938
4939{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4940$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4941lt_shell_append=no
4942( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4943 >/dev/null 2>&1 \
4944 && lt_shell_append=yes
4945{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4946$as_echo "$lt_shell_append" >&6; }
4947
4948
10946b02
AX
4949if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4950 lt_unset=unset
4951else
4952 lt_unset=false
4953fi
4954
4955
4956
4957
4958
4959# test EBCDIC or ASCII
4960case `echo X|tr X '\101'` in
4961 A) # ASCII based system
4962 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4963 lt_SP2NL='tr \040 \012'
4964 lt_NL2SP='tr \015\012 \040\040'
4965 ;;
4966 *) # EBCDIC based system
4967 lt_SP2NL='tr \100 \n'
4968 lt_NL2SP='tr \r\n \100\100'
4969 ;;
4970esac
4971
4972
4973
4974
4975
4976
4977
4978
4979
0b31b230 4980{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10946b02 4981$as_echo_n "checking for $LD option to reload object files... " >&6; }
0b31b230 4982if test "${lt_cv_ld_reload_flag+set}" = set; then
10946b02
AX
4983 $as_echo_n "(cached) " >&6
4984else
4985 lt_cv_ld_reload_flag='-r'
4986fi
0b31b230 4987{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10946b02
AX
4988$as_echo "$lt_cv_ld_reload_flag" >&6; }
4989reload_flag=$lt_cv_ld_reload_flag
4990case $reload_flag in
4991"" | " "*) ;;
4992*) reload_flag=" $reload_flag" ;;
4993esac
4994reload_cmds='$LD$reload_flag -o $output$reload_objs'
4995case $host_os in
10946b02 4996 darwin*)
0b31b230
AX
4997 if test "$GCC" = yes; then
4998 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10946b02
AX
4999 else
5000 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5001 fi
5002 ;;
5003esac
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013if test -n "$ac_tool_prefix"; then
5014 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5015set dummy ${ac_tool_prefix}objdump; ac_word=$2
0b31b230 5016{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5017$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 5018if test "${ac_cv_prog_OBJDUMP+set}" = set; then
10946b02
AX
5019 $as_echo_n "(cached) " >&6
5020else
5021 if test -n "$OBJDUMP"; then
5022 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
0b31b230
AX
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5031 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
0b31b230 5032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5033 break 2
5034 fi
5035done
0b31b230 5036done
10946b02
AX
5037IFS=$as_save_IFS
5038
5039fi
5040fi
5041OBJDUMP=$ac_cv_prog_OBJDUMP
5042if test -n "$OBJDUMP"; then
0b31b230 5043 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
10946b02
AX
5044$as_echo "$OBJDUMP" >&6; }
5045else
0b31b230 5046 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5047$as_echo "no" >&6; }
5048fi
5049
5050
5051fi
5052if test -z "$ac_cv_prog_OBJDUMP"; then
5053 ac_ct_OBJDUMP=$OBJDUMP
5054 # Extract the first word of "objdump", so it can be a program name with args.
5055set dummy objdump; ac_word=$2
0b31b230 5056{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5057$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 5058if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
10946b02
AX
5059 $as_echo_n "(cached) " >&6
5060else
5061 if test -n "$ac_ct_OBJDUMP"; then
5062 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5063else
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
0b31b230
AX
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5071 ac_cv_prog_ac_ct_OBJDUMP="objdump"
0b31b230 5072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5073 break 2
5074 fi
5075done
0b31b230 5076done
10946b02
AX
5077IFS=$as_save_IFS
5078
5079fi
5080fi
5081ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5082if test -n "$ac_ct_OBJDUMP"; then
0b31b230 5083 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
10946b02
AX
5084$as_echo "$ac_ct_OBJDUMP" >&6; }
5085else
0b31b230 5086 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5087$as_echo "no" >&6; }
5088fi
5089
5090 if test "x$ac_ct_OBJDUMP" = x; then
5091 OBJDUMP="false"
5092 else
5093 case $cross_compiling:$ac_tool_warned in
5094yes:)
0b31b230 5095{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
5096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5097ac_tool_warned=yes ;;
5098esac
5099 OBJDUMP=$ac_ct_OBJDUMP
5100 fi
5101else
5102 OBJDUMP="$ac_cv_prog_OBJDUMP"
5103fi
5104
5105test -z "$OBJDUMP" && OBJDUMP=objdump
5106
5107
5108
5109
5110
5111
5112
5113
5114
0b31b230 5115{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
10946b02 5116$as_echo_n "checking how to recognize dependent libraries... " >&6; }
0b31b230 5117if test "${lt_cv_deplibs_check_method+set}" = set; then
10946b02
AX
5118 $as_echo_n "(cached) " >&6
5119else
5120 lt_cv_file_magic_cmd='$MAGIC_CMD'
5121lt_cv_file_magic_test_file=
5122lt_cv_deplibs_check_method='unknown'
5123# Need to set the preceding variable on all platforms that support
5124# interlibrary dependencies.
5125# 'none' -- dependencies not supported.
0b31b230 5126# `unknown' -- same as none, but documents that we really don't know.
10946b02
AX
5127# 'pass_all' -- all dependencies passed with no checks.
5128# 'test_compile' -- check by making test program.
5129# 'file_magic [[regex]]' -- check by looking for files in library path
0b31b230
AX
5130# which responds to the $file_magic_cmd with a given extended regex.
5131# If you have `file' or equivalent on your system and you're not sure
5132# whether `pass_all' will *always* work, you probably want this one.
10946b02
AX
5133
5134case $host_os in
5135aix[4-9]*)
5136 lt_cv_deplibs_check_method=pass_all
5137 ;;
5138
5139beos*)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142
5143bsdi[45]*)
5144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5145 lt_cv_file_magic_cmd='/usr/bin/file -L'
5146 lt_cv_file_magic_test_file=/shlib/libc.so
5147 ;;
5148
5149cygwin*)
5150 # func_win32_libid is a shell function defined in ltmain.sh
5151 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5152 lt_cv_file_magic_cmd='func_win32_libid'
5153 ;;
5154
5155mingw* | pw32*)
5156 # Base MSYS/MinGW do not provide the 'file' command needed by
5157 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5158 # unless we find 'file', for example because we are cross-compiling.
ac9cc135 5159 if ( file / ) >/dev/null 2>&1; then
10946b02
AX
5160 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5161 lt_cv_file_magic_cmd='func_win32_libid'
5162 else
0b31b230 5163 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10946b02
AX
5164 lt_cv_file_magic_cmd='$OBJDUMP -f'
5165 fi
5166 ;;
5167
0b31b230 5168cegcc)
10946b02
AX
5169 # use the weaker test based on 'objdump'. See mingw*.
5170 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5171 lt_cv_file_magic_cmd='$OBJDUMP -f'
5172 ;;
5173
5174darwin* | rhapsody*)
5175 lt_cv_deplibs_check_method=pass_all
5176 ;;
5177
5178freebsd* | dragonfly*)
5179 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5180 case $host_cpu in
5181 i*86 )
5182 # Not sure whether the presence of OpenBSD here was a mistake.
5183 # Let's accept both of them until this is cleared up.
5184 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5185 lt_cv_file_magic_cmd=/usr/bin/file
5186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5187 ;;
5188 esac
5189 else
5190 lt_cv_deplibs_check_method=pass_all
5191 fi
5192 ;;
5193
0b31b230 5194gnu*)
10946b02
AX
5195 lt_cv_deplibs_check_method=pass_all
5196 ;;
5197
5198hpux10.20* | hpux11*)
5199 lt_cv_file_magic_cmd=/usr/bin/file
5200 case $host_cpu in
5201 ia64*)
5202 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5203 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5204 ;;
5205 hppa*64*)
0b31b230 5206 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
10946b02
AX
5207 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5208 ;;
5209 *)
0b31b230
AX
5210 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5211 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5212 ;;
5213 esac
5214 ;;
10946b02 5215
0b31b230
AX
5216interix[3-9]*)
5217 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5219 ;;
10946b02 5220
0b31b230
AX
5221irix5* | irix6* | nonstopux*)
5222 case $LD in
5223 *-32|*"-32 ") libmagic=32-bit;;
5224 *-n32|*"-n32 ") libmagic=N32;;
5225 *-64|*"-64 ") libmagic=64-bit;;
5226 *) libmagic=never-match;;
5227 esac
5228 lt_cv_deplibs_check_method=pass_all
5229 ;;
10946b02 5230
0b31b230
AX
5231# This must be Linux ELF.
5232linux* | k*bsd*-gnu)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
10946b02 5235
0b31b230
AX
5236netbsd*)
5237 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5239 else
5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5241 fi
5242 ;;
10946b02 5243
0b31b230
AX
5244newos6*)
5245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5246 lt_cv_file_magic_cmd=/usr/bin/file
5247 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5248 ;;
10946b02 5249
0b31b230
AX
5250*nto* | *qnx*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
10946b02 5253
0b31b230
AX
5254openbsd*)
5255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5257 else
5258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5259 fi
5260 ;;
10946b02 5261
0b31b230
AX
5262osf3* | osf4* | osf5*)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
10946b02 5265
0b31b230
AX
5266rdos*)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
10946b02 5269
0b31b230
AX
5270solaris*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
10946b02 5273
0b31b230
AX
5274sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5275 lt_cv_deplibs_check_method=pass_all
5276 ;;
10946b02 5277
0b31b230
AX
5278sysv4 | sysv4.3*)
5279 case $host_vendor in
5280 motorola)
5281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10946b02 5283 ;;
0b31b230
AX
5284 ncr)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287 sequent)
5288 lt_cv_file_magic_cmd='/bin/file'
5289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5290 ;;
5291 sni)
5292 lt_cv_file_magic_cmd='/bin/file'
5293 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5294 lt_cv_file_magic_test_file=/lib/libc.so
5295 ;;
5296 siemens)
5297 lt_cv_deplibs_check_method=pass_all
5298 ;;
5299 pc)
5300 lt_cv_deplibs_check_method=pass_all
10946b02
AX
5301 ;;
5302 esac
5303 ;;
0b31b230
AX
5304
5305tpf*)
5306 lt_cv_deplibs_check_method=pass_all
10946b02
AX
5307 ;;
5308esac
5309
5310fi
0b31b230
AX
5311{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5312$as_echo "$lt_cv_deplibs_check_method" >&6; }
5313file_magic_cmd=$lt_cv_file_magic_cmd
5314deplibs_check_method=$lt_cv_deplibs_check_method
5315test -z "$deplibs_check_method" && deplibs_check_method=unknown
5316
5317
5318
5319
10946b02
AX
5320
5321
5322
5323
5324
5325
5326
5327
5328if test -n "$ac_tool_prefix"; then
0b31b230
AX
5329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5330set dummy ${ac_tool_prefix}ar; ac_word=$2
5331{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5332$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 5333if test "${ac_cv_prog_AR+set}" = set; then
10946b02
AX
5334 $as_echo_n "(cached) " >&6
5335else
5336 if test -n "$AR"; then
5337 ac_cv_prog_AR="$AR" # Let the user override the test.
5338else
5339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH
5341do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
0b31b230
AX
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_prog_AR="${ac_tool_prefix}ar"
5347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5348 break 2
5349 fi
5350done
0b31b230 5351done
10946b02
AX
5352IFS=$as_save_IFS
5353
5354fi
5355fi
5356AR=$ac_cv_prog_AR
5357if test -n "$AR"; then
0b31b230 5358 { $as_echo "$as_me:$LINENO: result: $AR" >&5
10946b02
AX
5359$as_echo "$AR" >&6; }
5360else
0b31b230 5361 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5362$as_echo "no" >&6; }
5363fi
5364
5365
10946b02 5366fi
0b31b230 5367if test -z "$ac_cv_prog_AR"; then
10946b02 5368 ac_ct_AR=$AR
0b31b230
AX
5369 # Extract the first word of "ar", so it can be a program name with args.
5370set dummy ar; ac_word=$2
5371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5372$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 5373if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10946b02
AX
5374 $as_echo_n "(cached) " >&6
5375else
5376 if test -n "$ac_ct_AR"; then
5377 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5378else
5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380for as_dir in $PATH
5381do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
0b31b230
AX
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386 ac_cv_prog_ac_ct_AR="ar"
5387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5388 break 2
5389 fi
5390done
0b31b230 5391done
10946b02
AX
5392IFS=$as_save_IFS
5393
5394fi
5395fi
5396ac_ct_AR=$ac_cv_prog_ac_ct_AR
5397if test -n "$ac_ct_AR"; then
0b31b230 5398 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10946b02
AX
5399$as_echo "$ac_ct_AR" >&6; }
5400else
0b31b230 5401 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5402$as_echo "no" >&6; }
5403fi
5404
10946b02
AX
5405 if test "x$ac_ct_AR" = x; then
5406 AR="false"
5407 else
5408 case $cross_compiling:$ac_tool_warned in
5409yes:)
0b31b230 5410{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
5411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5412ac_tool_warned=yes ;;
5413esac
5414 AR=$ac_ct_AR
5415 fi
10946b02 5416else
0b31b230
AX
5417 AR="$ac_cv_prog_AR"
5418fi
10946b02 5419
0b31b230
AX
5420test -z "$AR" && AR=ar
5421test -z "$AR_FLAGS" && AR_FLAGS=cru
10946b02 5422
10946b02 5423
10946b02 5424
10946b02 5425
10946b02
AX
5426
5427
5428
5429
5430
5431
5432
5433if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5435set dummy ${ac_tool_prefix}strip; ac_word=$2
0b31b230 5436{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5437$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 5438if test "${ac_cv_prog_STRIP+set}" = set; then
10946b02
AX
5439 $as_echo_n "(cached) " >&6
5440else
5441 if test -n "$STRIP"; then
5442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
0b31b230
AX
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5451 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
0b31b230 5452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5453 break 2
5454 fi
5455done
0b31b230 5456done
10946b02
AX
5457IFS=$as_save_IFS
5458
5459fi
5460fi
5461STRIP=$ac_cv_prog_STRIP
5462if test -n "$STRIP"; then
0b31b230 5463 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10946b02
AX
5464$as_echo "$STRIP" >&6; }
5465else
0b31b230 5466 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5467$as_echo "no" >&6; }
5468fi
5469
5470
5471fi
5472if test -z "$ac_cv_prog_STRIP"; then
5473 ac_ct_STRIP=$STRIP
5474 # Extract the first word of "strip", so it can be a program name with args.
5475set dummy strip; ac_word=$2
0b31b230 5476{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5477$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 5478if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10946b02
AX
5479 $as_echo_n "(cached) " >&6
5480else
5481 if test -n "$ac_ct_STRIP"; then
5482 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5483else
5484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485for as_dir in $PATH
5486do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
0b31b230
AX
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5491 ac_cv_prog_ac_ct_STRIP="strip"
0b31b230 5492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5493 break 2
5494 fi
5495done
0b31b230 5496done
10946b02
AX
5497IFS=$as_save_IFS
5498
5499fi
5500fi
5501ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5502if test -n "$ac_ct_STRIP"; then
0b31b230 5503 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10946b02
AX
5504$as_echo "$ac_ct_STRIP" >&6; }
5505else
0b31b230 5506 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5507$as_echo "no" >&6; }
5508fi
5509
5510 if test "x$ac_ct_STRIP" = x; then
5511 STRIP=":"
5512 else
5513 case $cross_compiling:$ac_tool_warned in
5514yes:)
0b31b230 5515{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
5516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5517ac_tool_warned=yes ;;
5518esac
5519 STRIP=$ac_ct_STRIP
5520 fi
5521else
5522 STRIP="$ac_cv_prog_STRIP"
5523fi
5524
5525test -z "$STRIP" && STRIP=:
5526
5527
5528
5529
5530
5531
5532if test -n "$ac_tool_prefix"; then
5533 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5534set dummy ${ac_tool_prefix}ranlib; ac_word=$2
0b31b230 5535{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5536$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 5537if test "${ac_cv_prog_RANLIB+set}" = set; then
10946b02
AX
5538 $as_echo_n "(cached) " >&6
5539else
5540 if test -n "$RANLIB"; then
5541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5542else
5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544for as_dir in $PATH
5545do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
0b31b230
AX
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5550 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
0b31b230 5551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5552 break 2
5553 fi
5554done
0b31b230 5555done
10946b02
AX
5556IFS=$as_save_IFS
5557
5558fi
5559fi
5560RANLIB=$ac_cv_prog_RANLIB
5561if test -n "$RANLIB"; then
0b31b230 5562 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
10946b02
AX
5563$as_echo "$RANLIB" >&6; }
5564else
0b31b230 5565 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5566$as_echo "no" >&6; }
5567fi
5568
5569
5570fi
5571if test -z "$ac_cv_prog_RANLIB"; then
5572 ac_ct_RANLIB=$RANLIB
5573 # Extract the first word of "ranlib", so it can be a program name with args.
5574set dummy ranlib; ac_word=$2
0b31b230 5575{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5576$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 5577if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10946b02
AX
5578 $as_echo_n "(cached) " >&6
5579else
5580 if test -n "$ac_ct_RANLIB"; then
5581 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5582else
5583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584for as_dir in $PATH
5585do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
0b31b230
AX
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5590 ac_cv_prog_ac_ct_RANLIB="ranlib"
0b31b230 5591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5592 break 2
5593 fi
5594done
0b31b230 5595done
10946b02
AX
5596IFS=$as_save_IFS
5597
5598fi
5599fi
5600ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5601if test -n "$ac_ct_RANLIB"; then
0b31b230 5602 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10946b02
AX
5603$as_echo "$ac_ct_RANLIB" >&6; }
5604else
0b31b230 5605 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5606$as_echo "no" >&6; }
5607fi
5608
5609 if test "x$ac_ct_RANLIB" = x; then
5610 RANLIB=":"
5611 else
5612 case $cross_compiling:$ac_tool_warned in
5613yes:)
0b31b230 5614{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
5615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616ac_tool_warned=yes ;;
5617esac
5618 RANLIB=$ac_ct_RANLIB
5619 fi
5620else
5621 RANLIB="$ac_cv_prog_RANLIB"
5622fi
5623
5624test -z "$RANLIB" && RANLIB=:
5625
5626
5627
5628
5629
5630
5631# Determine commands to create old-style static archives.
5632old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5633old_postinstall_cmds='chmod 644 $oldlib'
5634old_postuninstall_cmds=
5635
5636if test -n "$RANLIB"; then
5637 case $host_os in
0b31b230
AX
5638 openbsd*)
5639 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10946b02
AX
5640 ;;
5641 *)
0b31b230 5642 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10946b02
AX
5643 ;;
5644 esac
0b31b230 5645 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10946b02
AX
5646fi
5647
10946b02
AX
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681# If no C compiler was specified, use CC.
5682LTCC=${LTCC-"$CC"}
5683
5684# If no C compiler flags were specified, use CFLAGS.
5685LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5686
5687# Allow CC to be a program name with arguments.
5688compiler=$CC
5689
5690
5691# Check for command to grab the raw symbol name followed by C symbol from nm.
0b31b230 5692{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10946b02 5693$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
0b31b230 5694if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10946b02
AX
5695 $as_echo_n "(cached) " >&6
5696else
5697
5698# These are sane defaults that work on at least a few old systems.
5699# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5700
5701# Character class describing NM global symbol codes.
5702symcode='[BCDEGRST]'
5703
5704# Regexp to match symbols that can be accessed directly from C.
5705sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5706
5707# Define system-specific variables.
5708case $host_os in
5709aix*)
5710 symcode='[BCDT]'
5711 ;;
5712cygwin* | mingw* | pw32* | cegcc*)
5713 symcode='[ABCDGISTW]'
5714 ;;
5715hpux*)
0b31b230 5716 if test "$host_cpu" = ia64; then
10946b02
AX
5717 symcode='[ABCDEGRST]'
5718 fi
5719 ;;
5720irix* | nonstopux*)
5721 symcode='[BCDEGRST]'
5722 ;;
5723osf*)
5724 symcode='[BCDEGQRST]'
5725 ;;
5726solaris*)
5727 symcode='[BDRT]'
5728 ;;
5729sco3.2v5*)
5730 symcode='[DT]'
5731 ;;
5732sysv4.2uw2*)
5733 symcode='[DT]'
5734 ;;
5735sysv5* | sco5v6* | unixware* | OpenUNIX*)
5736 symcode='[ABDT]'
5737 ;;
5738sysv4)
5739 symcode='[DFNSTU]'
5740 ;;
5741esac
5742
5743# If we're using GNU nm, then use its standard symbol codes.
5744case `$NM -V 2>&1` in
5745*GNU* | *'with BFD'*)
5746 symcode='[ABCDGIRSTW]' ;;
5747esac
5748
5749# Transform an extracted symbol line into a proper C declaration.
5750# Some systems (esp. on ia64) link data and code symbols differently,
5751# so use this general approach.
0b31b230 5752lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10946b02
AX
5753
5754# Transform an extracted symbol line into symbol name and symbol address
0b31b230
AX
5755lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5756lt_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'"
10946b02
AX
5757
5758# Handle CRLF in mingw tool chain
5759opt_cr=
5760case $build_os in
5761mingw*)
5762 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5763 ;;
5764esac
5765
5766# Try without a prefix underscore, then with it.
5767for ac_symprfx in "" "_"; do
5768
5769 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5770 symxfrm="\\1 $ac_symprfx\\2 \\2"
5771
5772 # Write the raw and C identifiers.
5773 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
0b31b230
AX
5774 # Fake it for dumpbin and say T for any non-static function
5775 # and D for any global variable.
10946b02
AX
5776 # Also find C++ and __fastcall symbols from MSVC++,
5777 # which start with @ or ?.
5778 lt_cv_sys_global_symbol_pipe="$AWK '"\
5779" {last_section=section; section=\$ 3};"\
10946b02
AX
5780" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5781" \$ 0!~/External *\|/{next};"\
5782" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5783" {if(hide[section]) next};"\
0b31b230
AX
5784" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5785" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5786" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5787" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10946b02
AX
5788" ' prfx=^$ac_symprfx"
5789 else
5790 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5791 fi
10946b02
AX
5792
5793 # Check to see that the pipe works correctly.
5794 pipe_works=no
5795
5796 rm -f conftest*
5797 cat > conftest.$ac_ext <<_LT_EOF
5798#ifdef __cplusplus
5799extern "C" {
5800#endif
5801char nm_test_var;
5802void nm_test_func(void);
5803void nm_test_func(void){}
5804#ifdef __cplusplus
5805}
5806#endif
5807int main(){nm_test_var='a';nm_test_func();return(0);}
5808_LT_EOF
5809
0b31b230 5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
5811 (eval $ac_compile) 2>&5
5812 ac_status=$?
0b31b230
AX
5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; then
10946b02
AX
5815 # Now try to grab the symbols.
5816 nlist=conftest.nm
0b31b230
AX
5817 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5818 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10946b02 5819 ac_status=$?
0b31b230
AX
5820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } && test -s "$nlist"; then
10946b02
AX
5822 # Try sorting and uniquifying the output.
5823 if sort "$nlist" | uniq > "$nlist"T; then
5824 mv -f "$nlist"T "$nlist"
5825 else
5826 rm -f "$nlist"T
5827 fi
5828
5829 # Make sure that we snagged all the symbols we need.
5830 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5831 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5832 cat <<_LT_EOF > conftest.$ac_ext
10946b02
AX
5833#ifdef __cplusplus
5834extern "C" {
5835#endif
5836
5837_LT_EOF
5838 # Now generate the symbol file.
5839 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5840
5841 cat <<_LT_EOF >> conftest.$ac_ext
5842
5843/* The mapping between symbol names and symbols. */
0b31b230 5844const struct {
10946b02
AX
5845 const char *name;
5846 void *address;
5847}
5848lt__PROGRAM__LTX_preloaded_symbols[] =
5849{
5850 { "@PROGRAM@", (void *) 0 },
5851_LT_EOF
0b31b230 5852 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10946b02
AX
5853 cat <<\_LT_EOF >> conftest.$ac_ext
5854 {0, (void *) 0}
5855};
5856
5857/* This works around a problem in FreeBSD linker */
5858#ifdef FREEBSD_WORKAROUND
5859static const void *lt_preloaded_setup() {
5860 return lt__PROGRAM__LTX_preloaded_symbols;
5861}
5862#endif
5863
5864#ifdef __cplusplus
5865}
5866#endif
5867_LT_EOF
5868 # Now try linking the two files.
5869 mv conftest.$ac_objext conftstm.$ac_objext
0b31b230
AX
5870 lt_save_LIBS="$LIBS"
5871 lt_save_CFLAGS="$CFLAGS"
5872 LIBS="conftstm.$ac_objext"
10946b02 5873 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
0b31b230 5874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946b02
AX
5875 (eval $ac_link) 2>&5
5876 ac_status=$?
0b31b230
AX
5877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10946b02
AX
5879 pipe_works=yes
5880 fi
0b31b230
AX
5881 LIBS="$lt_save_LIBS"
5882 CFLAGS="$lt_save_CFLAGS"
10946b02
AX
5883 else
5884 echo "cannot find nm_test_func in $nlist" >&5
5885 fi
5886 else
5887 echo "cannot find nm_test_var in $nlist" >&5
5888 fi
5889 else
5890 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5891 fi
5892 else
5893 echo "$progname: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5895 fi
5896 rm -rf conftest* conftst*
5897
5898 # Do not use the global_symbol_pipe unless it works.
0b31b230 5899 if test "$pipe_works" = yes; then
10946b02
AX
5900 break
5901 else
5902 lt_cv_sys_global_symbol_pipe=
5903 fi
5904done
5905
5906fi
5907
5908if test -z "$lt_cv_sys_global_symbol_pipe"; then
5909 lt_cv_sys_global_symbol_to_cdecl=
5910fi
5911if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
0b31b230 5912 { $as_echo "$as_me:$LINENO: result: failed" >&5
10946b02
AX
5913$as_echo "failed" >&6; }
5914else
0b31b230 5915 { $as_echo "$as_me:$LINENO: result: ok" >&5
10946b02
AX
5916$as_echo "ok" >&6; }
5917fi
ac9cc135
AX
5918
5919
10946b02
AX
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
10946b02 5931
ac9cc135
AX
5932
5933
ac9cc135
AX
5934
5935
5936
5937
5938
5939
5940
10946b02 5941# Check whether --enable-libtool-lock was given.
0b31b230 5942if test "${enable_libtool_lock+set}" = set; then
10946b02
AX
5943 enableval=$enable_libtool_lock;
5944fi
5945
0b31b230 5946test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10946b02
AX
5947
5948# Some flags need to be propagated to the compiler or linker for good
5949# libtool support.
5950case $host in
5951ia64-*-hpux*)
0b31b230 5952 # Find out which ABI we are using.
10946b02 5953 echo 'int i;' > conftest.$ac_ext
0b31b230 5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
5955 (eval $ac_compile) 2>&5
5956 ac_status=$?
0b31b230
AX
5957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; then
10946b02
AX
5959 case `/usr/bin/file conftest.$ac_objext` in
5960 *ELF-32*)
0b31b230 5961 HPUX_IA64_MODE="32"
10946b02
AX
5962 ;;
5963 *ELF-64*)
0b31b230 5964 HPUX_IA64_MODE="64"
10946b02
AX
5965 ;;
5966 esac
5967 fi
5968 rm -rf conftest*
5969 ;;
5970*-*-irix6*)
0b31b230
AX
5971 # Find out which ABI we are using.
5972 echo '#line 5972 "configure"' > conftest.$ac_ext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
5974 (eval $ac_compile) 2>&5
5975 ac_status=$?
0b31b230
AX
5976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; then
5978 if test "$lt_cv_prog_gnu_ld" = yes; then
10946b02
AX
5979 case `/usr/bin/file conftest.$ac_objext` in
5980 *32-bit*)
5981 LD="${LD-ld} -melf32bsmip"
5982 ;;
5983 *N32*)
5984 LD="${LD-ld} -melf32bmipn32"
5985 ;;
5986 *64-bit*)
5987 LD="${LD-ld} -melf64bmip"
5988 ;;
5989 esac
5990 else
5991 case `/usr/bin/file conftest.$ac_objext` in
5992 *32-bit*)
5993 LD="${LD-ld} -32"
5994 ;;
5995 *N32*)
5996 LD="${LD-ld} -n32"
5997 ;;
5998 *64-bit*)
0b31b230
AX
5999 LD="${LD-ld} -64"
6000 ;;
6001 esac
6002 fi
ac9cc135
AX
6003 fi
6004 rm -rf conftest*
6005 ;;
6006
0b31b230 6007x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10946b02 6008s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
0b31b230 6009 # Find out which ABI we are using.
10946b02 6010 echo 'int i;' > conftest.$ac_ext
0b31b230 6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
6012 (eval $ac_compile) 2>&5
6013 ac_status=$?
0b31b230
AX
6014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; then
10946b02
AX
6016 case `/usr/bin/file conftest.o` in
6017 *32-bit*)
6018 case $host in
6019 x86_64-*kfreebsd*-gnu)
6020 LD="${LD-ld} -m elf_i386_fbsd"
6021 ;;
6022 x86_64-*linux*)
0b31b230 6023 LD="${LD-ld} -m elf_i386"
ac9cc135 6024 ;;
0b31b230 6025 ppc64-*linux*|powerpc64-*linux*)
10946b02
AX
6026 LD="${LD-ld} -m elf32ppclinux"
6027 ;;
6028 s390x-*linux*)
6029 LD="${LD-ld} -m elf_s390"
6030 ;;
6031 sparc64-*linux*)
6032 LD="${LD-ld} -m elf32_sparc"
6033 ;;
6034 esac
6035 ;;
6036 *64-bit*)
6037 case $host in
6038 x86_64-*kfreebsd*-gnu)
6039 LD="${LD-ld} -m elf_x86_64_fbsd"
6040 ;;
6041 x86_64-*linux*)
6042 LD="${LD-ld} -m elf_x86_64"
6043 ;;
0b31b230 6044 ppc*-*linux*|powerpc*-*linux*)
10946b02
AX
6045 LD="${LD-ld} -m elf64ppc"
6046 ;;
6047 s390*-*linux*|s390*-*tpf*)
6048 LD="${LD-ld} -m elf64_s390"
6049 ;;
6050 sparc*-*linux*)
6051 LD="${LD-ld} -m elf64_sparc"
6052 ;;
6053 esac
6054 ;;
6055 esac
6056 fi
6057 rm -rf conftest*
6058 ;;
6059
6060*-*-sco3.2v5*)
6061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
0b31b230 6062 SAVE_CFLAGS="$CFLAGS"
10946b02 6063 CFLAGS="$CFLAGS -belf"
0b31b230 6064 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10946b02 6065$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
0b31b230 6066if test "${lt_cv_cc_needs_belf+set}" = set; then
10946b02
AX
6067 $as_echo_n "(cached) " >&6
6068else
6069 ac_ext=c
6070ac_cpp='$CPP $CPPFLAGS'
6071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074
0b31b230
AX
6075 cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h. */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6080/* end confdefs.h. */
6081
6082int
6083main ()
6084{
6085
6086 ;
6087 return 0;
6088}
6089_ACEOF
0b31b230
AX
6090rm -f conftest.$ac_objext conftest$ac_exeext
6091if { (ac_try="$ac_link"
6092case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095esac
6096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097$as_echo "$ac_try_echo") >&5
6098 (eval "$ac_link") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && {
6105 test -z "$ac_c_werror_flag" ||
6106 test ! -s conftest.err
6107 } && test -s conftest$ac_exeext && {
6108 test "$cross_compiling" = yes ||
6109 $as_test_x conftest$ac_exeext
6110 }; then
10946b02
AX
6111 lt_cv_cc_needs_belf=yes
6112else
0b31b230
AX
6113 $as_echo "$as_me: failed program was:" >&5
6114sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 lt_cv_cc_needs_belf=no
10946b02 6117fi
0b31b230
AX
6118
6119rm -rf conftest.dSYM
6120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6121 conftest$ac_exeext conftest.$ac_ext
10946b02
AX
6122 ac_ext=c
6123ac_cpp='$CPP $CPPFLAGS'
6124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126ac_compiler_gnu=$ac_cv_c_compiler_gnu
6127
6128fi
0b31b230 6129{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10946b02 6130$as_echo "$lt_cv_cc_needs_belf" >&6; }
0b31b230 6131 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10946b02 6132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
0b31b230 6133 CFLAGS="$SAVE_CFLAGS"
10946b02
AX
6134 fi
6135 ;;
0b31b230
AX
6136sparc*-*solaris*)
6137 # Find out which ABI we are using.
10946b02 6138 echo 'int i;' > conftest.$ac_ext
0b31b230 6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
6140 (eval $ac_compile) 2>&5
6141 ac_status=$?
0b31b230
AX
6142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; then
10946b02
AX
6144 case `/usr/bin/file conftest.o` in
6145 *64-bit*)
6146 case $lt_cv_prog_gnu_ld in
0b31b230 6147 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10946b02
AX
6148 *)
6149 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6150 LD="${LD-ld} -64"
6151 fi
6152 ;;
6153 esac
6154 ;;
6155 esac
6156 fi
6157 rm -rf conftest*
6158 ;;
6159esac
6160
0b31b230 6161need_locks="$enable_libtool_lock"
10946b02
AX
6162
6163
6164 case $host_os in
6165 rhapsody* | darwin*)
6166 if test -n "$ac_tool_prefix"; then
6167 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6168set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
0b31b230 6169{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6170$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 6171if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10946b02
AX
6172 $as_echo_n "(cached) " >&6
6173else
6174 if test -n "$DSYMUTIL"; then
6175 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
0b31b230
AX
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6184 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
0b31b230 6185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6186 break 2
6187 fi
6188done
0b31b230 6189done
10946b02
AX
6190IFS=$as_save_IFS
6191
6192fi
6193fi
6194DSYMUTIL=$ac_cv_prog_DSYMUTIL
6195if test -n "$DSYMUTIL"; then
0b31b230 6196 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10946b02
AX
6197$as_echo "$DSYMUTIL" >&6; }
6198else
0b31b230 6199 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6200$as_echo "no" >&6; }
6201fi
6202
6203
6204fi
6205if test -z "$ac_cv_prog_DSYMUTIL"; then
6206 ac_ct_DSYMUTIL=$DSYMUTIL
6207 # Extract the first word of "dsymutil", so it can be a program name with args.
6208set dummy dsymutil; ac_word=$2
0b31b230 6209{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6210$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 6211if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10946b02
AX
6212 $as_echo_n "(cached) " >&6
6213else
6214 if test -n "$ac_ct_DSYMUTIL"; then
6215 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
0b31b230
AX
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6224 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
0b31b230 6225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6226 break 2
6227 fi
6228done
0b31b230 6229done
10946b02
AX
6230IFS=$as_save_IFS
6231
6232fi
6233fi
6234ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6235if test -n "$ac_ct_DSYMUTIL"; then
0b31b230 6236 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10946b02
AX
6237$as_echo "$ac_ct_DSYMUTIL" >&6; }
6238else
0b31b230 6239 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6240$as_echo "no" >&6; }
6241fi
6242
6243 if test "x$ac_ct_DSYMUTIL" = x; then
6244 DSYMUTIL=":"
6245 else
6246 case $cross_compiling:$ac_tool_warned in
6247yes:)
0b31b230 6248{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
6249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6250ac_tool_warned=yes ;;
6251esac
6252 DSYMUTIL=$ac_ct_DSYMUTIL
6253 fi
6254else
6255 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6256fi
6257
6258 if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6260set dummy ${ac_tool_prefix}nmedit; ac_word=$2
0b31b230 6261{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6262$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 6263if test "${ac_cv_prog_NMEDIT+set}" = set; then
10946b02
AX
6264 $as_echo_n "(cached) " >&6
6265else
6266 if test -n "$NMEDIT"; then
6267 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6268else
6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
0b31b230
AX
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6276 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
0b31b230 6277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6278 break 2
6279 fi
6280done
0b31b230 6281done
10946b02
AX
6282IFS=$as_save_IFS
6283
6284fi
6285fi
6286NMEDIT=$ac_cv_prog_NMEDIT
6287if test -n "$NMEDIT"; then
0b31b230 6288 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
10946b02
AX
6289$as_echo "$NMEDIT" >&6; }
6290else
0b31b230 6291 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6292$as_echo "no" >&6; }
6293fi
6294
6295
6296fi
6297if test -z "$ac_cv_prog_NMEDIT"; then
6298 ac_ct_NMEDIT=$NMEDIT
6299 # Extract the first word of "nmedit", so it can be a program name with args.
6300set dummy nmedit; ac_word=$2
0b31b230 6301{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6302$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 6303if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10946b02
AX
6304 $as_echo_n "(cached) " >&6
6305else
6306 if test -n "$ac_ct_NMEDIT"; then
6307 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6308else
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
0b31b230
AX
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6316 ac_cv_prog_ac_ct_NMEDIT="nmedit"
0b31b230 6317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6318 break 2
6319 fi
6320done
0b31b230 6321done
10946b02
AX
6322IFS=$as_save_IFS
6323
6324fi
6325fi
6326ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6327if test -n "$ac_ct_NMEDIT"; then
0b31b230 6328 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10946b02
AX
6329$as_echo "$ac_ct_NMEDIT" >&6; }
6330else
0b31b230 6331 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6332$as_echo "no" >&6; }
6333fi
6334
6335 if test "x$ac_ct_NMEDIT" = x; then
6336 NMEDIT=":"
6337 else
6338 case $cross_compiling:$ac_tool_warned in
6339yes:)
0b31b230 6340{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
6341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342ac_tool_warned=yes ;;
6343esac
6344 NMEDIT=$ac_ct_NMEDIT
6345 fi
6346else
6347 NMEDIT="$ac_cv_prog_NMEDIT"
6348fi
6349
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6352set dummy ${ac_tool_prefix}lipo; ac_word=$2
0b31b230 6353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6354$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 6355if test "${ac_cv_prog_LIPO+set}" = set; then
10946b02
AX
6356 $as_echo_n "(cached) " >&6
6357else
6358 if test -n "$LIPO"; then
6359 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6360else
6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
0b31b230
AX
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6368 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
0b31b230 6369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6370 break 2
6371 fi
6372done
0b31b230 6373done
10946b02
AX
6374IFS=$as_save_IFS
6375
6376fi
6377fi
6378LIPO=$ac_cv_prog_LIPO
6379if test -n "$LIPO"; then
0b31b230 6380 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
10946b02
AX
6381$as_echo "$LIPO" >&6; }
6382else
0b31b230 6383 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6384$as_echo "no" >&6; }
6385fi
6386
6387
6388fi
6389if test -z "$ac_cv_prog_LIPO"; then
6390 ac_ct_LIPO=$LIPO
6391 # Extract the first word of "lipo", so it can be a program name with args.
6392set dummy lipo; ac_word=$2
0b31b230 6393{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6394$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 6395if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
10946b02
AX
6396 $as_echo_n "(cached) " >&6
6397else
6398 if test -n "$ac_ct_LIPO"; then
6399 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
0b31b230
AX
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6408 ac_cv_prog_ac_ct_LIPO="lipo"
0b31b230 6409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6410 break 2
6411 fi
6412done
0b31b230 6413done
10946b02
AX
6414IFS=$as_save_IFS
6415
6416fi
6417fi
6418ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6419if test -n "$ac_ct_LIPO"; then
0b31b230 6420 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
10946b02
AX
6421$as_echo "$ac_ct_LIPO" >&6; }
6422else
0b31b230 6423 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6424$as_echo "no" >&6; }
6425fi
6426
6427 if test "x$ac_ct_LIPO" = x; then
6428 LIPO=":"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431yes:)
0b31b230 6432{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
6433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434ac_tool_warned=yes ;;
6435esac
6436 LIPO=$ac_ct_LIPO
6437 fi
6438else
6439 LIPO="$ac_cv_prog_LIPO"
6440fi
6441
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6444set dummy ${ac_tool_prefix}otool; ac_word=$2
0b31b230 6445{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6446$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 6447if test "${ac_cv_prog_OTOOL+set}" = set; then
10946b02
AX
6448 $as_echo_n "(cached) " >&6
6449else
6450 if test -n "$OTOOL"; then
6451 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6452else
6453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
0b31b230
AX
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6460 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
0b31b230 6461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6462 break 2
6463 fi
6464done
0b31b230 6465done
10946b02
AX
6466IFS=$as_save_IFS
6467
6468fi
6469fi
6470OTOOL=$ac_cv_prog_OTOOL
6471if test -n "$OTOOL"; then
0b31b230 6472 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
10946b02
AX
6473$as_echo "$OTOOL" >&6; }
6474else
0b31b230 6475 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6476$as_echo "no" >&6; }
6477fi
6478
6479
6480fi
6481if test -z "$ac_cv_prog_OTOOL"; then
6482 ac_ct_OTOOL=$OTOOL
6483 # Extract the first word of "otool", so it can be a program name with args.
6484set dummy otool; ac_word=$2
0b31b230 6485{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6486$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 6487if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
10946b02
AX
6488 $as_echo_n "(cached) " >&6
6489else
6490 if test -n "$ac_ct_OTOOL"; then
6491 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
0b31b230
AX
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6500 ac_cv_prog_ac_ct_OTOOL="otool"
0b31b230 6501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6502 break 2
6503 fi
6504done
0b31b230 6505done
10946b02
AX
6506IFS=$as_save_IFS
6507
6508fi
6509fi
6510ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6511if test -n "$ac_ct_OTOOL"; then
0b31b230 6512 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
10946b02
AX
6513$as_echo "$ac_ct_OTOOL" >&6; }
6514else
0b31b230 6515 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6516$as_echo "no" >&6; }
6517fi
6518
6519 if test "x$ac_ct_OTOOL" = x; then
6520 OTOOL=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523yes:)
0b31b230 6524{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
6525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526ac_tool_warned=yes ;;
6527esac
6528 OTOOL=$ac_ct_OTOOL
6529 fi
6530else
6531 OTOOL="$ac_cv_prog_OTOOL"
6532fi
6533
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6536set dummy ${ac_tool_prefix}otool64; ac_word=$2
0b31b230 6537{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6538$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 6539if test "${ac_cv_prog_OTOOL64+set}" = set; then
10946b02
AX
6540 $as_echo_n "(cached) " >&6
6541else
6542 if test -n "$OTOOL64"; then
6543 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
0b31b230
AX
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6552 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
0b31b230 6553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6554 break 2
6555 fi
6556done
0b31b230 6557done
10946b02
AX
6558IFS=$as_save_IFS
6559
6560fi
6561fi
6562OTOOL64=$ac_cv_prog_OTOOL64
6563if test -n "$OTOOL64"; then
0b31b230 6564 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
10946b02
AX
6565$as_echo "$OTOOL64" >&6; }
6566else
0b31b230 6567 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6568$as_echo "no" >&6; }
6569fi
6570
6571
6572fi
6573if test -z "$ac_cv_prog_OTOOL64"; then
6574 ac_ct_OTOOL64=$OTOOL64
6575 # Extract the first word of "otool64", so it can be a program name with args.
6576set dummy otool64; ac_word=$2
0b31b230 6577{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6578$as_echo_n "checking for $ac_word... " >&6; }
0b31b230 6579if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
10946b02
AX
6580 $as_echo_n "(cached) " >&6
6581else
6582 if test -n "$ac_ct_OTOOL64"; then
6583 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6584else
6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
0b31b230
AX
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6592 ac_cv_prog_ac_ct_OTOOL64="otool64"
0b31b230 6593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6594 break 2
6595 fi
6596done
0b31b230 6597done
10946b02
AX
6598IFS=$as_save_IFS
6599
6600fi
6601fi
6602ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6603if test -n "$ac_ct_OTOOL64"; then
0b31b230 6604 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
10946b02
AX
6605$as_echo "$ac_ct_OTOOL64" >&6; }
6606else
0b31b230 6607 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6608$as_echo "no" >&6; }
6609fi
6610
6611 if test "x$ac_ct_OTOOL64" = x; then
6612 OTOOL64=":"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615yes:)
0b31b230 6616{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
6617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618ac_tool_warned=yes ;;
6619esac
6620 OTOOL64=$ac_ct_OTOOL64
6621 fi
6622else
6623 OTOOL64="$ac_cv_prog_OTOOL64"
6624fi
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
0b31b230 6652 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
10946b02 6653$as_echo_n "checking for -single_module linker flag... " >&6; }
0b31b230 6654if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10946b02
AX
6655 $as_echo_n "(cached) " >&6
6656else
6657 lt_cv_apple_cc_single_mod=no
0b31b230 6658 if test -z "${LT_MULTI_MODULE}"; then
10946b02
AX
6659 # By default we will add the -single_module flag. You can override
6660 # by either setting the environment variable LT_MULTI_MODULE
6661 # non-empty at configure time, or by adding -multi_module to the
6662 # link flags.
6663 rm -rf libconftest.dylib*
6664 echo "int foo(void){return 1;}" > conftest.c
6665 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6666-dynamiclib -Wl,-single_module conftest.c" >&5
6667 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6668 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6669 _lt_result=$?
0b31b230 6670 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10946b02
AX
6671 lt_cv_apple_cc_single_mod=yes
6672 else
6673 cat conftest.err >&5
6674 fi
6675 rm -rf libconftest.dylib*
6676 rm -f conftest.*
6677 fi
6678fi
0b31b230 6679{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
10946b02 6680$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
0b31b230 6681 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
10946b02 6682$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
0b31b230 6683if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10946b02
AX
6684 $as_echo_n "(cached) " >&6
6685else
6686 lt_cv_ld_exported_symbols_list=no
6687 save_LDFLAGS=$LDFLAGS
6688 echo "_main" > conftest.sym
6689 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
0b31b230
AX
6690 cat >conftest.$ac_ext <<_ACEOF
6691/* confdefs.h. */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6695/* end confdefs.h. */
6696
6697int
6698main ()
6699{
6700
6701 ;
6702 return 0;
6703}
6704_ACEOF
0b31b230
AX
6705rm -f conftest.$ac_objext conftest$ac_exeext
6706if { (ac_try="$ac_link"
6707case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710esac
6711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6712$as_echo "$ac_try_echo") >&5
6713 (eval "$ac_link") 2>conftest.er1
6714 ac_status=$?
6715 grep -v '^ *+' conftest.er1 >conftest.err
6716 rm -f conftest.er1
6717 cat conftest.err >&5
6718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } && {
6720 test -z "$ac_c_werror_flag" ||
6721 test ! -s conftest.err
6722 } && test -s conftest$ac_exeext && {
6723 test "$cross_compiling" = yes ||
6724 $as_test_x conftest$ac_exeext
6725 }; then
10946b02
AX
6726 lt_cv_ld_exported_symbols_list=yes
6727else
0b31b230
AX
6728 $as_echo "$as_me: failed program was:" >&5
6729sed 's/^/| /' conftest.$ac_ext >&5
10946b02 6730
0b31b230 6731 lt_cv_ld_exported_symbols_list=no
10946b02 6732fi
10946b02 6733
0b31b230
AX
6734rm -rf conftest.dSYM
6735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6736 conftest$ac_exeext conftest.$ac_ext
6737 LDFLAGS="$save_LDFLAGS"
10946b02
AX
6738
6739fi
0b31b230
AX
6740{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6741$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10946b02
AX
6742 case $host_os in
6743 rhapsody* | darwin1.[012])
0b31b230 6744 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10946b02 6745 darwin1.*)
0b31b230 6746 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10946b02
AX
6747 darwin*) # darwin 5.x on
6748 # if running on 10.5 or later, the deployment target defaults
6749 # to the OS version, if on x86, and 10.4, the deployment
6750 # target defaults to 10.4. Don't you love it?
6751 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6752 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
0b31b230
AX
6753 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6754 10.[012]*)
6755 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10946b02 6756 10.*)
0b31b230 6757 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10946b02
AX
6758 esac
6759 ;;
6760 esac
0b31b230 6761 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10946b02
AX
6762 _lt_dar_single_mod='$single_module'
6763 fi
0b31b230
AX
6764 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6765 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10946b02 6766 else
0b31b230 6767 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10946b02 6768 fi
0b31b230 6769 if test "$DSYMUTIL" != ":"; then
10946b02
AX
6770 _lt_dsymutil='~$DSYMUTIL $lib || :'
6771 else
6772 _lt_dsymutil=
6773 fi
6774 ;;
6775 esac
6776
6777ac_ext=c
6778ac_cpp='$CPP $CPPFLAGS'
6779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781ac_compiler_gnu=$ac_cv_c_compiler_gnu
0b31b230 6782{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10946b02
AX
6783$as_echo_n "checking how to run the C preprocessor... " >&6; }
6784# On Suns, sometimes $CPP names a directory.
6785if test -n "$CPP" && test -d "$CPP"; then
6786 CPP=
6787fi
6788if test -z "$CPP"; then
0b31b230 6789 if test "${ac_cv_prog_CPP+set}" = set; then
10946b02
AX
6790 $as_echo_n "(cached) " >&6
6791else
6792 # Double quotes because CPP needs to be expanded
6793 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6794 do
6795 ac_preproc_ok=false
6796for ac_c_preproc_warn_flag in '' yes
6797do
6798 # Use a header file that comes with gcc, so configuring glibc
6799 # with a fresh cross-compiler works.
6800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6801 # <limits.h> exists even on freestanding compilers.
6802 # On the NeXT, cc -E runs the code through the compiler's parser,
6803 # not just through cpp. "Syntax error" is here to catch this case.
0b31b230
AX
6804 cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h. */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6809/* end confdefs.h. */
6810#ifdef __STDC__
6811# include <limits.h>
6812#else
6813# include <assert.h>
6814#endif
6815 Syntax error
6816_ACEOF
0b31b230
AX
6817if { (ac_try="$ac_cpp conftest.$ac_ext"
6818case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821esac
6822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6823$as_echo "$ac_try_echo") >&5
6824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev/null && {
6831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 }; then
6834 :
10946b02 6835else
0b31b230
AX
6836 $as_echo "$as_me: failed program was:" >&5
6837sed 's/^/| /' conftest.$ac_ext >&5
6838
10946b02
AX
6839 # Broken: fails on valid input.
6840continue
6841fi
0b31b230
AX
6842
6843rm -f conftest.err conftest.$ac_ext
10946b02
AX
6844
6845 # OK, works on sane cases. Now check whether nonexistent headers
6846 # can be detected and how.
0b31b230
AX
6847 cat >conftest.$ac_ext <<_ACEOF
6848/* confdefs.h. */
6849_ACEOF
6850cat confdefs.h >>conftest.$ac_ext
6851cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6852/* end confdefs.h. */
6853#include <ac_nonexistent.h>
6854_ACEOF
0b31b230
AX
6855if { (ac_try="$ac_cpp conftest.$ac_ext"
6856case "(($ac_try" in
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6859esac
6860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6861$as_echo "$ac_try_echo") >&5
6862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } >/dev/null && {
6869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 }; then
10946b02
AX
6872 # Broken: success on invalid input.
6873continue
6874else
0b31b230
AX
6875 $as_echo "$as_me: failed program was:" >&5
6876sed 's/^/| /' conftest.$ac_ext >&5
6877
10946b02
AX
6878 # Passes both tests.
6879ac_preproc_ok=:
6880break
6881fi
0b31b230
AX
6882
6883rm -f conftest.err conftest.$ac_ext
10946b02
AX
6884
6885done
6886# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
0b31b230
AX
6887rm -f conftest.err conftest.$ac_ext
6888if $ac_preproc_ok; then
10946b02
AX
6889 break
6890fi
6891
6892 done
6893 ac_cv_prog_CPP=$CPP
6894
6895fi
6896 CPP=$ac_cv_prog_CPP
6897else
6898 ac_cv_prog_CPP=$CPP
6899fi
0b31b230 6900{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
10946b02
AX
6901$as_echo "$CPP" >&6; }
6902ac_preproc_ok=false
6903for ac_c_preproc_warn_flag in '' yes
6904do
6905 # Use a header file that comes with gcc, so configuring glibc
6906 # with a fresh cross-compiler works.
6907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908 # <limits.h> exists even on freestanding compilers.
6909 # On the NeXT, cc -E runs the code through the compiler's parser,
6910 # not just through cpp. "Syntax error" is here to catch this case.
0b31b230
AX
6911 cat >conftest.$ac_ext <<_ACEOF
6912/* confdefs.h. */
6913_ACEOF
6914cat confdefs.h >>conftest.$ac_ext
6915cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6916/* end confdefs.h. */
6917#ifdef __STDC__
6918# include <limits.h>
6919#else
6920# include <assert.h>
6921#endif
6922 Syntax error
6923_ACEOF
0b31b230
AX
6924if { (ac_try="$ac_cpp conftest.$ac_ext"
6925case "(($ac_try" in
6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6928esac
6929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6930$as_echo "$ac_try_echo") >&5
6931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } >/dev/null && {
6938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6939 test ! -s conftest.err
6940 }; then
6941 :
10946b02 6942else
0b31b230
AX
6943 $as_echo "$as_me: failed program was:" >&5
6944sed 's/^/| /' conftest.$ac_ext >&5
6945
10946b02
AX
6946 # Broken: fails on valid input.
6947continue
6948fi
0b31b230
AX
6949
6950rm -f conftest.err conftest.$ac_ext
10946b02
AX
6951
6952 # OK, works on sane cases. Now check whether nonexistent headers
6953 # can be detected and how.
0b31b230
AX
6954 cat >conftest.$ac_ext <<_ACEOF
6955/* confdefs.h. */
6956_ACEOF
6957cat confdefs.h >>conftest.$ac_ext
6958cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6959/* end confdefs.h. */
6960#include <ac_nonexistent.h>
6961_ACEOF
0b31b230
AX
6962if { (ac_try="$ac_cpp conftest.$ac_ext"
6963case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966esac
6967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6968$as_echo "$ac_try_echo") >&5
6969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } >/dev/null && {
6976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 }; then
10946b02
AX
6979 # Broken: success on invalid input.
6980continue
6981else
0b31b230
AX
6982 $as_echo "$as_me: failed program was:" >&5
6983sed 's/^/| /' conftest.$ac_ext >&5
6984
10946b02
AX
6985 # Passes both tests.
6986ac_preproc_ok=:
6987break
6988fi
0b31b230
AX
6989
6990rm -f conftest.err conftest.$ac_ext
10946b02
AX
6991
6992done
6993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
0b31b230
AX
6994rm -f conftest.err conftest.$ac_ext
6995if $ac_preproc_ok; then
6996 :
10946b02 6997else
0b31b230 6998 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 6999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0b31b230
AX
7000{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7001See \`config.log' for more details." >&5
7002$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7003See \`config.log' for more details." >&2;}
7004 { (exit 1); exit 1; }; }; }
10946b02
AX
7005fi
7006
7007ac_ext=c
7008ac_cpp='$CPP $CPPFLAGS'
7009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012
7013
0b31b230 7014{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10946b02 7015$as_echo_n "checking for ANSI C header files... " >&6; }
0b31b230 7016if test "${ac_cv_header_stdc+set}" = set; then
10946b02
AX
7017 $as_echo_n "(cached) " >&6
7018else
0b31b230
AX
7019 cat >conftest.$ac_ext <<_ACEOF
7020/* confdefs.h. */
7021_ACEOF
7022cat confdefs.h >>conftest.$ac_ext
7023cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
7024/* end confdefs.h. */
7025#include <stdlib.h>
7026#include <stdarg.h>
7027#include <string.h>
7028#include <float.h>
7029
7030int
7031main ()
7032{
7033
7034 ;
7035 return 0;
7036}
7037_ACEOF
0b31b230
AX
7038rm -f conftest.$ac_objext
7039if { (ac_try="$ac_compile"
7040case "(($ac_try" in
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7043esac
7044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7045$as_echo "$ac_try_echo") >&5
7046 (eval "$ac_compile") 2>conftest.er1
7047 ac_status=$?
7048 grep -v '^ *+' conftest.er1 >conftest.err
7049 rm -f conftest.er1
7050 cat conftest.err >&5
7051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } && {
7053 test -z "$ac_c_werror_flag" ||
7054 test ! -s conftest.err
7055 } && test -s conftest.$ac_objext; then
10946b02
AX
7056 ac_cv_header_stdc=yes
7057else
0b31b230
AX
7058 $as_echo "$as_me: failed program was:" >&5
7059sed 's/^/| /' conftest.$ac_ext >&5
7060
7061 ac_cv_header_stdc=no
10946b02 7062fi
0b31b230 7063
10946b02
AX
7064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065
7066if test $ac_cv_header_stdc = yes; then
7067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
0b31b230
AX
7068 cat >conftest.$ac_ext <<_ACEOF
7069/* confdefs.h. */
7070_ACEOF
7071cat confdefs.h >>conftest.$ac_ext
7072cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
7073/* end confdefs.h. */
7074#include <string.h>
7075
7076_ACEOF
7077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0b31b230
AX
7078 $EGREP "memchr" >/dev/null 2>&1; then
7079 :
10946b02
AX
7080else
7081 ac_cv_header_stdc=no
7082fi
7083rm -f conftest*
7084
7085fi
7086
7087if test $ac_cv_header_stdc = yes; then
7088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
0b31b230
AX
7089 cat >conftest.$ac_ext <<_ACEOF
7090/* confdefs.h. */
7091_ACEOF
7092cat confdefs.h >>conftest.$ac_ext
7093cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
7094/* end confdefs.h. */
7095#include <stdlib.h>
7096
7097_ACEOF
7098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0b31b230
AX
7099 $EGREP "free" >/dev/null 2>&1; then
7100 :
10946b02
AX
7101else
7102 ac_cv_header_stdc=no
7103fi
7104rm -f conftest*
7105
7106fi
7107
7108if test $ac_cv_header_stdc = yes; then
7109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
0b31b230 7110 if test "$cross_compiling" = yes; then
10946b02
AX
7111 :
7112else
0b31b230
AX
7113 cat >conftest.$ac_ext <<_ACEOF
7114/* confdefs.h. */
7115_ACEOF
7116cat confdefs.h >>conftest.$ac_ext
7117cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
7118/* end confdefs.h. */
7119#include <ctype.h>
7120#include <stdlib.h>
7121#if ((' ' & 0x0FF) == 0x020)
7122# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7123# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7124#else
7125# define ISLOWER(c) \
7126 (('a' <= (c) && (c) <= 'i') \
7127 || ('j' <= (c) && (c) <= 'r') \
7128 || ('s' <= (c) && (c) <= 'z'))
7129# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7130#endif
7131
7132#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7133int
7134main ()
7135{
7136 int i;
7137 for (i = 0; i < 256; i++)
7138 if (XOR (islower (i), ISLOWER (i))
7139 || toupper (i) != TOUPPER (i))
7140 return 2;
7141 return 0;
7142}
7143_ACEOF
0b31b230
AX
7144rm -f conftest$ac_exeext
7145if { (ac_try="$ac_link"
7146case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149esac
7150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151$as_echo "$ac_try_echo") >&5
7152 (eval "$ac_link") 2>&5
7153 ac_status=$?
7154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7156 { (case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159esac
7160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7161$as_echo "$ac_try_echo") >&5
7162 (eval "$ac_try") 2>&5
7163 ac_status=$?
7164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 :
10946b02 7167else
0b31b230
AX
7168 $as_echo "$as_me: program exited with status $ac_status" >&5
7169$as_echo "$as_me: failed program was:" >&5
7170sed 's/^/| /' conftest.$ac_ext >&5
7171
7172( exit $ac_status )
7173ac_cv_header_stdc=no
10946b02 7174fi
0b31b230
AX
7175rm -rf conftest.dSYM
7176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10946b02
AX
7177fi
7178
0b31b230 7179
10946b02
AX
7180fi
7181fi
0b31b230 7182{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10946b02
AX
7183$as_echo "$ac_cv_header_stdc" >&6; }
7184if test $ac_cv_header_stdc = yes; then
7185
0b31b230
AX
7186cat >>confdefs.h <<\_ACEOF
7187#define STDC_HEADERS 1
7188_ACEOF
10946b02
AX
7189
7190fi
7191
7192# On IRIX 5.3, sys/types and inttypes.h are conflicting.
0b31b230
AX
7193
7194
7195
7196
7197
7198
7199
7200
7201
10946b02
AX
7202for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7203 inttypes.h stdint.h unistd.h
0b31b230
AX
7204do
7205as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7206{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7207$as_echo_n "checking for $ac_header... " >&6; }
7208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7209 $as_echo_n "(cached) " >&6
7210else
7211 cat >conftest.$ac_ext <<_ACEOF
7212/* confdefs.h. */
7213_ACEOF
7214cat confdefs.h >>conftest.$ac_ext
7215cat >>conftest.$ac_ext <<_ACEOF
7216/* end confdefs.h. */
7217$ac_includes_default
7218
7219#include <$ac_header>
7220_ACEOF
7221rm -f conftest.$ac_objext
7222if { (ac_try="$ac_compile"
7223case "(($ac_try" in
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7226esac
7227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7228$as_echo "$ac_try_echo") >&5
7229 (eval "$ac_compile") 2>conftest.er1
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } && {
7236 test -z "$ac_c_werror_flag" ||
7237 test ! -s conftest.err
7238 } && test -s conftest.$ac_objext; then
7239 eval "$as_ac_Header=yes"
7240else
7241 $as_echo "$as_me: failed program was:" >&5
7242sed 's/^/| /' conftest.$ac_ext >&5
7243
7244 eval "$as_ac_Header=no"
7245fi
7246
7247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248fi
7249ac_res=`eval 'as_val=${'$as_ac_Header'}
7250 $as_echo "$as_val"'`
7251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7252$as_echo "$ac_res" >&6; }
7253as_val=`eval 'as_val=${'$as_ac_Header'}
7254 $as_echo "$as_val"'`
7255 if test "x$as_val" = x""yes; then
10946b02
AX
7256 cat >>confdefs.h <<_ACEOF
7257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7258_ACEOF
7259
7260fi
7261
7262done
7263
7264
0b31b230 7265
10946b02 7266for ac_header in dlfcn.h
0b31b230
AX
7267do
7268as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7269{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7270$as_echo_n "checking for $ac_header... " >&6; }
7271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272 $as_echo_n "(cached) " >&6
7273else
7274 cat >conftest.$ac_ext <<_ACEOF
7275/* confdefs.h. */
7276_ACEOF
7277cat confdefs.h >>conftest.$ac_ext
7278cat >>conftest.$ac_ext <<_ACEOF
7279/* end confdefs.h. */
7280$ac_includes_default
7281
7282#include <$ac_header>
10946b02 7283_ACEOF
0b31b230
AX
7284rm -f conftest.$ac_objext
7285if { (ac_try="$ac_compile"
7286case "(($ac_try" in
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7289esac
7290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291$as_echo "$ac_try_echo") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.$ac_objext; then
7302 eval "$as_ac_Header=yes"
7303else
7304 $as_echo "$as_me: failed program was:" >&5
7305sed 's/^/| /' conftest.$ac_ext >&5
10946b02 7306
0b31b230 7307 eval "$as_ac_Header=no"
10946b02
AX
7308fi
7309
0b31b230
AX
7310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311fi
7312ac_res=`eval 'as_val=${'$as_ac_Header'}
7313 $as_echo "$as_val"'`
7314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7315$as_echo "$ac_res" >&6; }
7316as_val=`eval 'as_val=${'$as_ac_Header'}
7317 $as_echo "$as_val"'`
7318 if test "x$as_val" = x""yes; then
7319 cat >>confdefs.h <<_ACEOF
7320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7321_ACEOF
10946b02 7322
0b31b230 7323fi
10946b02 7324
0b31b230 7325done
10946b02
AX
7326
7327
7328
7329# Set options
7330
7331
7332
7333 enable_dlopen=no
7334
7335
7336 enable_win32_dll=no
7337
7338
7339 # Check whether --enable-shared was given.
0b31b230 7340if test "${enable_shared+set}" = set; then
10946b02
AX
7341 enableval=$enable_shared; p=${PACKAGE-default}
7342 case $enableval in
7343 yes) enable_shared=yes ;;
7344 no) enable_shared=no ;;
7345 *)
7346 enable_shared=no
7347 # Look at the argument we got. We use all the common list separators.
0b31b230 7348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10946b02 7349 for pkg in $enableval; do
0b31b230 7350 IFS="$lt_save_ifs"
10946b02
AX
7351 if test "X$pkg" = "X$p"; then
7352 enable_shared=yes
7353 fi
7354 done
0b31b230 7355 IFS="$lt_save_ifs"
10946b02
AX
7356 ;;
7357 esac
7358else
7359 enable_shared=yes
7360fi
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370 # Check whether --enable-static was given.
0b31b230 7371if test "${enable_static+set}" = set; then
10946b02
AX
7372 enableval=$enable_static; p=${PACKAGE-default}
7373 case $enableval in
7374 yes) enable_static=yes ;;
7375 no) enable_static=no ;;
7376 *)
7377 enable_static=no
7378 # Look at the argument we got. We use all the common list separators.
0b31b230 7379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10946b02 7380 for pkg in $enableval; do
0b31b230 7381 IFS="$lt_save_ifs"
10946b02
AX
7382 if test "X$pkg" = "X$p"; then
7383 enable_static=yes
7384 fi
7385 done
0b31b230 7386 IFS="$lt_save_ifs"
10946b02
AX
7387 ;;
7388 esac
7389else
7390 enable_static=yes
7391fi
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402# Check whether --with-pic was given.
0b31b230
AX
7403if test "${with_pic+set}" = set; then
7404 withval=$with_pic; pic_mode="$withval"
10946b02
AX
7405else
7406 pic_mode=default
7407fi
7408
7409
0b31b230
AX
7410test -z "$pic_mode" && pic_mode=default
7411
10946b02
AX
7412
7413
7414
7415
7416
7417
7418 # Check whether --enable-fast-install was given.
0b31b230 7419if test "${enable_fast_install+set}" = set; then
10946b02
AX
7420 enableval=$enable_fast_install; p=${PACKAGE-default}
7421 case $enableval in
7422 yes) enable_fast_install=yes ;;
7423 no) enable_fast_install=no ;;
7424 *)
7425 enable_fast_install=no
7426 # Look at the argument we got. We use all the common list separators.
0b31b230 7427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10946b02 7428 for pkg in $enableval; do
0b31b230 7429 IFS="$lt_save_ifs"
10946b02
AX
7430 if test "X$pkg" = "X$p"; then
7431 enable_fast_install=yes
7432 fi
7433 done
0b31b230 7434 IFS="$lt_save_ifs"
10946b02
AX
7435 ;;
7436 esac
7437else
7438 enable_fast_install=yes
7439fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451# This can be used to rebuild libtool when needed
0b31b230 7452LIBTOOL_DEPS="$ltmain"
10946b02
AX
7453
7454# Always use our own libtool.
7455LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
10946b02
AX
7475
7476
7477
7478
7479
7480
7481test -z "$LN_S" && LN_S="ln -s"
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
0b31b230 7496if test -n "${ZSH_VERSION+set}" ; then
10946b02
AX
7497 setopt NO_GLOB_SUBST
7498fi
7499
0b31b230 7500{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
10946b02 7501$as_echo_n "checking for objdir... " >&6; }
0b31b230 7502if test "${lt_cv_objdir+set}" = set; then
10946b02
AX
7503 $as_echo_n "(cached) " >&6
7504else
7505 rm -f .libs 2>/dev/null
7506mkdir .libs 2>/dev/null
7507if test -d .libs; then
7508 lt_cv_objdir=.libs
7509else
7510 # MS-DOS does not allow filenames that begin with a dot.
7511 lt_cv_objdir=_libs
7512fi
7513rmdir .libs 2>/dev/null
7514fi
0b31b230 7515{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10946b02
AX
7516$as_echo "$lt_cv_objdir" >&6; }
7517objdir=$lt_cv_objdir
7518
7519
7520
7521
7522
7523cat >>confdefs.h <<_ACEOF
7524#define LT_OBJDIR "$lt_cv_objdir/"
7525_ACEOF
7526
7527
7528
7529
0b31b230
AX
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
10946b02
AX
7543case $host_os in
7544aix3*)
7545 # AIX sometimes has problems with the GCC collect2 program. For some
7546 # reason, if we set the COLLECT_NAMES environment variable, the problems
7547 # vanish in a puff of smoke.
0b31b230 7548 if test "X${COLLECT_NAMES+set}" != Xset; then
10946b02
AX
7549 COLLECT_NAMES=
7550 export COLLECT_NAMES
7551 fi
7552 ;;
7553esac
7554
0b31b230
AX
7555# Sed substitution that helps us do robust quoting. It backslashifies
7556# metacharacters that are still active within double-quoted strings.
7557sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7558
7559# Same as above, but do not quote variable references.
7560double_quote_subst='s/\(["`\\]\)/\\\1/g'
7561
7562# Sed substitution to delay expansion of an escaped shell variable in a
7563# double_quote_subst'ed string.
7564delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7565
7566# Sed substitution to delay expansion of an escaped single quote.
7567delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7568
7569# Sed substitution to avoid accidental globbing in evaled expressions
7570no_glob_subst='s/\*/\\\*/g'
7571
10946b02
AX
7572# Global variables:
7573ofile=libtool
7574can_build_shared=yes
7575
0b31b230 7576# All known linkers require a `.a' archive for static linking (except MSVC,
10946b02
AX
7577# which needs '.lib').
7578libext=a
7579
0b31b230 7580with_gnu_ld="$lt_cv_prog_gnu_ld"
10946b02 7581
0b31b230
AX
7582old_CC="$CC"
7583old_CFLAGS="$CFLAGS"
10946b02
AX
7584
7585# Set sane defaults for various variables
7586test -z "$CC" && CC=cc
7587test -z "$LTCC" && LTCC=$CC
7588test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7589test -z "$LD" && LD=ld
7590test -z "$ac_objext" && ac_objext=o
7591
0b31b230
AX
7592for cc_temp in $compiler""; do
7593 case $cc_temp in
7594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7596 \-*) ;;
7597 *) break;;
7598 esac
7599done
7600cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10946b02
AX
7601
7602
7603# Only perform the check for file, if the check method requires it
7604test -z "$MAGIC_CMD" && MAGIC_CMD=file
7605case $deplibs_check_method in
7606file_magic*)
7607 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
0b31b230 7608 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10946b02 7609$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
0b31b230 7610if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10946b02
AX
7611 $as_echo_n "(cached) " >&6
7612else
7613 case $MAGIC_CMD in
7614[\\/*] | ?:[\\/]*)
0b31b230 7615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10946b02
AX
7616 ;;
7617*)
0b31b230
AX
7618 lt_save_MAGIC_CMD="$MAGIC_CMD"
7619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10946b02
AX
7620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7621 for ac_dir in $ac_dummy; do
0b31b230 7622 IFS="$lt_save_ifs"
10946b02 7623 test -z "$ac_dir" && ac_dir=.
0b31b230
AX
7624 if test -f $ac_dir/${ac_tool_prefix}file; then
7625 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10946b02
AX
7626 if test -n "$file_magic_test_file"; then
7627 case $deplibs_check_method in
7628 "file_magic "*)
7629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
0b31b230 7630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10946b02
AX
7631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7632 $EGREP "$file_magic_regex" > /dev/null; then
7633 :
7634 else
7635 cat <<_LT_EOF 1>&2
7636
7637*** Warning: the command libtool uses to detect shared libraries,
7638*** $file_magic_cmd, produces output that libtool cannot recognize.
7639*** The result is that libtool may fail to recognize shared libraries
7640*** as such. This will affect the creation of libtool libraries that
7641*** depend on shared libraries, but programs linked with such libtool
7642*** libraries will work regardless of this problem. Nevertheless, you
7643*** may want to report the problem to your system manager and/or to
7644*** bug-libtool@gnu.org
7645
7646_LT_EOF
7647 fi ;;
7648 esac
7649 fi
7650 break
7651 fi
7652 done
0b31b230
AX
7653 IFS="$lt_save_ifs"
7654 MAGIC_CMD="$lt_save_MAGIC_CMD"
10946b02
AX
7655 ;;
7656esac
7657fi
7658
0b31b230 7659MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10946b02 7660if test -n "$MAGIC_CMD"; then
0b31b230 7661 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10946b02
AX
7662$as_echo "$MAGIC_CMD" >&6; }
7663else
0b31b230 7664 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
7665$as_echo "no" >&6; }
7666fi
7667
7668
7669
7670
7671
7672if test -z "$lt_cv_path_MAGIC_CMD"; then
7673 if test -n "$ac_tool_prefix"; then
0b31b230 7674 { $as_echo "$as_me:$LINENO: checking for file" >&5
10946b02 7675$as_echo_n "checking for file... " >&6; }
0b31b230 7676if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10946b02
AX
7677 $as_echo_n "(cached) " >&6
7678else
7679 case $MAGIC_CMD in
7680[\\/*] | ?:[\\/]*)
0b31b230 7681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10946b02
AX
7682 ;;
7683*)
0b31b230
AX
7684 lt_save_MAGIC_CMD="$MAGIC_CMD"
7685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10946b02
AX
7686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7687 for ac_dir in $ac_dummy; do
0b31b230 7688 IFS="$lt_save_ifs"
10946b02 7689 test -z "$ac_dir" && ac_dir=.
0b31b230
AX
7690 if test -f $ac_dir/file; then
7691 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10946b02
AX
7692 if test -n "$file_magic_test_file"; then
7693 case $deplibs_check_method in
7694 "file_magic "*)
7695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
0b31b230 7696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10946b02
AX
7697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7698 $EGREP "$file_magic_regex" > /dev/null; then
7699 :
7700 else
7701 cat <<_LT_EOF 1>&2
7702
7703*** Warning: the command libtool uses to detect shared libraries,
7704*** $file_magic_cmd, produces output that libtool cannot recognize.
7705*** The result is that libtool may fail to recognize shared libraries
7706*** as such. This will affect the creation of libtool libraries that
7707*** depend on shared libraries, but programs linked with such libtool
7708*** libraries will work regardless of this problem. Nevertheless, you
7709*** may want to report the problem to your system manager and/or to
7710*** bug-libtool@gnu.org
7711
7712_LT_EOF
7713 fi ;;
7714 esac
7715 fi
7716 break
7717 fi
7718 done
0b31b230
AX
7719 IFS="$lt_save_ifs"
7720 MAGIC_CMD="$lt_save_MAGIC_CMD"
10946b02
AX
7721 ;;
7722esac
7723fi
7724
0b31b230 7725MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10946b02 7726if test -n "$MAGIC_CMD"; then
0b31b230 7727 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10946b02
AX
7728$as_echo "$MAGIC_CMD" >&6; }
7729else
0b31b230 7730 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
7731$as_echo "no" >&6; }
7732fi
7733
7734
7735 else
7736 MAGIC_CMD=:
7737 fi
7738fi
7739
7740 fi
7741 ;;
7742esac
7743
7744# Use C for the default configuration in the libtool script
7745
0b31b230 7746lt_save_CC="$CC"
10946b02
AX
7747ac_ext=c
7748ac_cpp='$CPP $CPPFLAGS'
7749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751ac_compiler_gnu=$ac_cv_c_compiler_gnu
7752
7753
7754# Source file extension for C test sources.
7755ac_ext=c
7756
7757# Object file extension for compiled C test sources.
7758objext=o
7759objext=$objext
7760
7761# Code to be used in simple compile tests
7762lt_simple_compile_test_code="int some_variable = 0;"
7763
7764# Code to be used in simple link tests
7765lt_simple_link_test_code='int main(){return(0);}'
7766
7767
7768
7769
7770
7771
7772
7773# If no C compiler was specified, use CC.
7774LTCC=${LTCC-"$CC"}
7775
7776# If no C compiler flags were specified, use CFLAGS.
7777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7778
7779# Allow CC to be a program name with arguments.
7780compiler=$CC
7781
7782# Save the default compiler, since it gets overwritten when the other
7783# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7784compiler_DEFAULT=$CC
7785
7786# save warnings/boilerplate of simple test code
7787ac_outfile=conftest.$ac_objext
7788echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7789eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7790_lt_compiler_boilerplate=`cat conftest.err`
7791$RM conftest*
7792
7793ac_outfile=conftest.$ac_objext
7794echo "$lt_simple_link_test_code" >conftest.$ac_ext
7795eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7796_lt_linker_boilerplate=`cat conftest.err`
7797$RM -r conftest*
7798
7799
7800## CAVEAT EMPTOR:
7801## There is no encapsulation within the following macros, do not change
7802## the running order or otherwise move them around unless you know exactly
7803## what you are doing...
7804if test -n "$compiler"; then
7805
7806lt_prog_compiler_no_builtin_flag=
7807
0b31b230
AX
7808if test "$GCC" = yes; then
7809 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10946b02 7810
0b31b230 7811 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10946b02 7812$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
0b31b230 7813if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10946b02
AX
7814 $as_echo_n "(cached) " >&6
7815else
7816 lt_cv_prog_compiler_rtti_exceptions=no
7817 ac_outfile=conftest.$ac_objext
7818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
0b31b230 7819 lt_compiler_flag="-fno-rtti -fno-exceptions"
10946b02
AX
7820 # Insert the option either (1) after the last *FLAGS variable, or
7821 # (2) before a word containing "conftest.", or (3) at the end.
7822 # Note that $ac_compile itself does not contain backslashes and begins
7823 # with a dollar sign (not a hyphen), so the echo should work correctly.
7824 # The option is referenced via a variable to avoid confusing sed.
7825 lt_compile=`echo "$ac_compile" | $SED \
7826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7828 -e 's:$: $lt_compiler_flag:'`
0b31b230 7829 (eval echo "\"\$as_me:7829: $lt_compile\"" >&5)
10946b02
AX
7830 (eval "$lt_compile" 2>conftest.err)
7831 ac_status=$?
7832 cat conftest.err >&5
0b31b230 7833 echo "$as_me:7833: \$? = $ac_status" >&5
10946b02
AX
7834 if (exit $ac_status) && test -s "$ac_outfile"; then
7835 # The compiler can only warn and ignore the option if not recognized
7836 # So say no if there are warnings other than the usual output.
0b31b230 7837 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10946b02
AX
7838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7840 lt_cv_prog_compiler_rtti_exceptions=yes
7841 fi
7842 fi
7843 $RM conftest*
7844
7845fi
0b31b230 7846{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10946b02
AX
7847$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7848
0b31b230 7849if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10946b02
AX
7850 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7851else
7852 :
7853fi
7854
7855fi
7856
7857
7858
7859
7860
7861
7862 lt_prog_compiler_wl=
7863lt_prog_compiler_pic=
7864lt_prog_compiler_static=
7865
0b31b230
AX
7866{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7867$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10946b02 7868
0b31b230 7869 if test "$GCC" = yes; then
10946b02
AX
7870 lt_prog_compiler_wl='-Wl,'
7871 lt_prog_compiler_static='-static'
7872
7873 case $host_os in
7874 aix*)
7875 # All AIX code is PIC.
0b31b230 7876 if test "$host_cpu" = ia64; then
10946b02
AX
7877 # AIX 5 now supports IA64 processor
7878 lt_prog_compiler_static='-Bstatic'
7879 fi
7880 ;;
7881
7882 amigaos*)
7883 case $host_cpu in
7884 powerpc)
7885 # see comment about AmigaOS4 .so support
7886 lt_prog_compiler_pic='-fPIC'
7887 ;;
7888 m68k)
7889 # FIXME: we need at least 68020 code to build shared libraries, but
0b31b230
AX
7890 # adding the `-m68020' flag to GCC prevents building anything better,
7891 # like `-m68040'.
10946b02
AX
7892 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7893 ;;
7894 esac
7895 ;;
7896
7897 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7898 # PIC is the default for these OSes.
7899 ;;
7900
7901 mingw* | cygwin* | pw32* | os2* | cegcc*)
7902 # This hack is so that the source file can tell whether it is being
7903 # built for inclusion in a dll (and should export symbols for example).
7904 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7905 # (--disable-auto-import) libraries
7906 lt_prog_compiler_pic='-DDLL_EXPORT'
7907 ;;
7908
7909 darwin* | rhapsody*)
7910 # PIC is the default on this platform
7911 # Common symbols not allowed in MH_DYLIB files
7912 lt_prog_compiler_pic='-fno-common'
7913 ;;
7914
10946b02
AX
7915 hpux*)
7916 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7917 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7918 # sets the default TLS model and affects inlining.
7919 case $host_cpu in
7920 hppa*64*)
7921 # +Z the default
7922 ;;
7923 *)
7924 lt_prog_compiler_pic='-fPIC'
7925 ;;
7926 esac
7927 ;;
7928
7929 interix[3-9]*)
7930 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7931 # Instead, we relocate shared libraries at runtime.
7932 ;;
7933
7934 msdosdjgpp*)
7935 # Just because we use GCC doesn't mean we suddenly get shared libraries
7936 # on systems that don't support them.
7937 lt_prog_compiler_can_build_shared=no
7938 enable_shared=no
7939 ;;
7940
7941 *nto* | *qnx*)
7942 # QNX uses GNU C++, but need to define -shared option too, otherwise
7943 # it will coredump.
7944 lt_prog_compiler_pic='-fPIC -shared'
7945 ;;
7946
7947 sysv4*MP*)
7948 if test -d /usr/nec; then
7949 lt_prog_compiler_pic=-Kconform_pic
7950 fi
7951 ;;
7952
7953 *)
7954 lt_prog_compiler_pic='-fPIC'
7955 ;;
7956 esac
10946b02
AX
7957 else
7958 # PORTME Check for flag to pass linker flags through the system compiler.
7959 case $host_os in
7960 aix*)
7961 lt_prog_compiler_wl='-Wl,'
0b31b230 7962 if test "$host_cpu" = ia64; then
10946b02
AX
7963 # AIX 5 now supports IA64 processor
7964 lt_prog_compiler_static='-Bstatic'
7965 else
7966 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7967 fi
7968 ;;
7969
7970 mingw* | cygwin* | pw32* | os2* | cegcc*)
7971 # This hack is so that the source file can tell whether it is being
7972 # built for inclusion in a dll (and should export symbols for example).
7973 lt_prog_compiler_pic='-DDLL_EXPORT'
7974 ;;
7975
7976 hpux9* | hpux10* | hpux11*)
7977 lt_prog_compiler_wl='-Wl,'
7978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7979 # not for PA HP-UX.
7980 case $host_cpu in
7981 hppa*64*|ia64*)
7982 # +Z the default
7983 ;;
7984 *)
7985 lt_prog_compiler_pic='+Z'
7986 ;;
7987 esac
7988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
0b31b230 7989 lt_prog_compiler_static='${wl}-a ${wl}archive'
10946b02
AX
7990 ;;
7991
7992 irix5* | irix6* | nonstopux*)
7993 lt_prog_compiler_wl='-Wl,'
7994 # PIC (with -KPIC) is the default.
7995 lt_prog_compiler_static='-non_shared'
7996 ;;
7997
0b31b230 7998 linux* | k*bsd*-gnu)
10946b02 7999 case $cc_basename in
0b31b230 8000 # old Intel for x86_64 which still supported -KPIC.
10946b02
AX
8001 ecc*)
8002 lt_prog_compiler_wl='-Wl,'
8003 lt_prog_compiler_pic='-KPIC'
8004 lt_prog_compiler_static='-static'
8005 ;;
8006 # icc used to be incompatible with GCC.
8007 # ICC 10 doesn't accept -KPIC any more.
8008 icc* | ifort*)
8009 lt_prog_compiler_wl='-Wl,'
8010 lt_prog_compiler_pic='-fPIC'
8011 lt_prog_compiler_static='-static'
8012 ;;
8013 # Lahey Fortran 8.1.
8014 lf95*)
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_pic='--shared'
8017 lt_prog_compiler_static='--static'
8018 ;;
0b31b230 8019 pgcc* | pgf77* | pgf90* | pgf95*)
10946b02
AX
8020 # Portland Group compilers (*not* the Pentium gcc compiler,
8021 # which looks to be a dead project)
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_pic='-fpic'
8024 lt_prog_compiler_static='-Bstatic'
8025 ;;
8026 ccc*)
8027 lt_prog_compiler_wl='-Wl,'
8028 # All Alpha code is PIC.
8029 lt_prog_compiler_static='-non_shared'
8030 ;;
0b31b230
AX
8031 xl*)
8032 # IBM XL C 8.0/Fortran 10.1 on PPC
10946b02
AX
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_pic='-qpic'
8035 lt_prog_compiler_static='-qstaticlink'
8036 ;;
8037 *)
8038 case `$CC -V 2>&1 | sed 5q` in
10946b02
AX
8039 *Sun\ C*)
8040 # Sun C 5.9
8041 lt_prog_compiler_pic='-KPIC'
8042 lt_prog_compiler_static='-Bstatic'
8043 lt_prog_compiler_wl='-Wl,'
8044 ;;
0b31b230
AX
8045 *Sun\ F*)
8046 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8047 lt_prog_compiler_pic='-KPIC'
10946b02 8048 lt_prog_compiler_static='-Bstatic'
0b31b230 8049 lt_prog_compiler_wl=''
10946b02
AX
8050 ;;
8051 esac
8052 ;;
8053 esac
8054 ;;
8055
8056 newsos6)
8057 lt_prog_compiler_pic='-KPIC'
8058 lt_prog_compiler_static='-Bstatic'
8059 ;;
8060
8061 *nto* | *qnx*)
8062 # QNX uses GNU C++, but need to define -shared option too, otherwise
8063 # it will coredump.
8064 lt_prog_compiler_pic='-fPIC -shared'
8065 ;;
8066
8067 osf3* | osf4* | osf5*)
8068 lt_prog_compiler_wl='-Wl,'
8069 # All OSF/1 code is PIC.
8070 lt_prog_compiler_static='-non_shared'
8071 ;;
8072
8073 rdos*)
8074 lt_prog_compiler_static='-non_shared'
8075 ;;
8076
8077 solaris*)
8078 lt_prog_compiler_pic='-KPIC'
8079 lt_prog_compiler_static='-Bstatic'
8080 case $cc_basename in
0b31b230 8081 f77* | f90* | f95*)
10946b02
AX
8082 lt_prog_compiler_wl='-Qoption ld ';;
8083 *)
8084 lt_prog_compiler_wl='-Wl,';;
8085 esac
8086 ;;
8087
8088 sunos4*)
8089 lt_prog_compiler_wl='-Qoption ld '
8090 lt_prog_compiler_pic='-PIC'
8091 lt_prog_compiler_static='-Bstatic'
8092 ;;
8093
8094 sysv4 | sysv4.2uw2* | sysv4.3*)
8095 lt_prog_compiler_wl='-Wl,'
8096 lt_prog_compiler_pic='-KPIC'
8097 lt_prog_compiler_static='-Bstatic'
8098 ;;
8099
8100 sysv4*MP*)
0b31b230 8101 if test -d /usr/nec ;then
10946b02
AX
8102 lt_prog_compiler_pic='-Kconform_pic'
8103 lt_prog_compiler_static='-Bstatic'
8104 fi
8105 ;;
8106
8107 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_pic='-KPIC'
8110 lt_prog_compiler_static='-Bstatic'
8111 ;;
8112
8113 unicos*)
8114 lt_prog_compiler_wl='-Wl,'
8115 lt_prog_compiler_can_build_shared=no
8116 ;;
8117
8118 uts4*)
8119 lt_prog_compiler_pic='-pic'
8120 lt_prog_compiler_static='-Bstatic'
8121 ;;
8122
8123 *)
8124 lt_prog_compiler_can_build_shared=no
8125 ;;
8126 esac
8127 fi
8128
8129case $host_os in
0b31b230 8130 # For platforms which do not support PIC, -DPIC is meaningless:
10946b02
AX
8131 *djgpp*)
8132 lt_prog_compiler_pic=
8133 ;;
8134 *)
8135 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8136 ;;
8137esac
0b31b230
AX
8138{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8139$as_echo "$lt_prog_compiler_pic" >&6; }
8140
8141
8142
8143
10946b02 8144
10946b02
AX
8145
8146#
8147# Check to make sure the PIC flag actually works.
8148#
8149if test -n "$lt_prog_compiler_pic"; then
0b31b230 8150 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10946b02 8151$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
0b31b230 8152if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10946b02
AX
8153 $as_echo_n "(cached) " >&6
8154else
8155 lt_cv_prog_compiler_pic_works=no
8156 ac_outfile=conftest.$ac_objext
8157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
0b31b230 8158 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10946b02
AX
8159 # Insert the option either (1) after the last *FLAGS variable, or
8160 # (2) before a word containing "conftest.", or (3) at the end.
8161 # Note that $ac_compile itself does not contain backslashes and begins
8162 # with a dollar sign (not a hyphen), so the echo should work correctly.
8163 # The option is referenced via a variable to avoid confusing sed.
8164 lt_compile=`echo "$ac_compile" | $SED \
8165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8167 -e 's:$: $lt_compiler_flag:'`
0b31b230 8168 (eval echo "\"\$as_me:8168: $lt_compile\"" >&5)
10946b02
AX
8169 (eval "$lt_compile" 2>conftest.err)
8170 ac_status=$?
8171 cat conftest.err >&5
0b31b230 8172 echo "$as_me:8172: \$? = $ac_status" >&5
10946b02
AX
8173 if (exit $ac_status) && test -s "$ac_outfile"; then
8174 # The compiler can only warn and ignore the option if not recognized
8175 # So say no if there are warnings other than the usual output.
0b31b230 8176 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10946b02
AX
8177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8179 lt_cv_prog_compiler_pic_works=yes
8180 fi
8181 fi
8182 $RM conftest*
8183
8184fi
0b31b230 8185{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10946b02
AX
8186$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8187
0b31b230 8188if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10946b02
AX
8189 case $lt_prog_compiler_pic in
8190 "" | " "*) ;;
8191 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8192 esac
8193else
8194 lt_prog_compiler_pic=
8195 lt_prog_compiler_can_build_shared=no
8196fi
8197
8198fi
8199
8200
8201
8202
8203
8204
10946b02
AX
8205#
8206# Check to make sure the static flag actually works.
8207#
8208wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
0b31b230 8209{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10946b02 8210$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
0b31b230 8211if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10946b02
AX
8212 $as_echo_n "(cached) " >&6
8213else
8214 lt_cv_prog_compiler_static_works=no
0b31b230 8215 save_LDFLAGS="$LDFLAGS"
10946b02
AX
8216 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8217 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8218 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8219 # The linker can only warn and ignore the option if not recognized
8220 # So say no if there are warnings
8221 if test -s conftest.err; then
8222 # Append any errors to the config.log.
8223 cat conftest.err 1>&5
0b31b230 8224 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10946b02
AX
8225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226 if diff conftest.exp conftest.er2 >/dev/null; then
8227 lt_cv_prog_compiler_static_works=yes
8228 fi
8229 else
8230 lt_cv_prog_compiler_static_works=yes
8231 fi
8232 fi
8233 $RM -r conftest*
0b31b230 8234 LDFLAGS="$save_LDFLAGS"
10946b02
AX
8235
8236fi
0b31b230 8237{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10946b02
AX
8238$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8239
0b31b230 8240if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10946b02
AX
8241 :
8242else
8243 lt_prog_compiler_static=
8244fi
8245
8246
8247
8248
8249
8250
8251
0b31b230 8252 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10946b02 8253$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
0b31b230 8254if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10946b02
AX
8255 $as_echo_n "(cached) " >&6
8256else
8257 lt_cv_prog_compiler_c_o=no
8258 $RM -r conftest 2>/dev/null
8259 mkdir conftest
8260 cd conftest
8261 mkdir out
8262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8263
8264 lt_compiler_flag="-o out/conftest2.$ac_objext"
8265 # Insert the option either (1) after the last *FLAGS variable, or
8266 # (2) before a word containing "conftest.", or (3) at the end.
8267 # Note that $ac_compile itself does not contain backslashes and begins
8268 # with a dollar sign (not a hyphen), so the echo should work correctly.
8269 lt_compile=`echo "$ac_compile" | $SED \
8270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8272 -e 's:$: $lt_compiler_flag:'`
0b31b230 8273 (eval echo "\"\$as_me:8273: $lt_compile\"" >&5)
10946b02
AX
8274 (eval "$lt_compile" 2>out/conftest.err)
8275 ac_status=$?
8276 cat out/conftest.err >&5
0b31b230 8277 echo "$as_me:8277: \$? = $ac_status" >&5
10946b02
AX
8278 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8279 then
8280 # The compiler can only warn and ignore the option if not recognized
8281 # So say no if there are warnings
0b31b230 8282 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10946b02
AX
8283 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8284 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8285 lt_cv_prog_compiler_c_o=yes
8286 fi
8287 fi
8288 chmod u+w . 2>&5
8289 $RM conftest*
8290 # SGI C++ compiler will create directory out/ii_files/ for
8291 # template instantiation
8292 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8293 $RM out/* && rmdir out
8294 cd ..
8295 $RM -r conftest
8296 $RM conftest*
8297
8298fi
0b31b230 8299{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10946b02
AX
8300$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8301
8302
8303
8304
8305
8306
0b31b230 8307 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10946b02 8308$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
0b31b230 8309if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10946b02
AX
8310 $as_echo_n "(cached) " >&6
8311else
8312 lt_cv_prog_compiler_c_o=no
8313 $RM -r conftest 2>/dev/null
8314 mkdir conftest
8315 cd conftest
8316 mkdir out
8317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318
8319 lt_compiler_flag="-o out/conftest2.$ac_objext"
8320 # Insert the option either (1) after the last *FLAGS variable, or
8321 # (2) before a word containing "conftest.", or (3) at the end.
8322 # Note that $ac_compile itself does not contain backslashes and begins
8323 # with a dollar sign (not a hyphen), so the echo should work correctly.
8324 lt_compile=`echo "$ac_compile" | $SED \
8325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327 -e 's:$: $lt_compiler_flag:'`
0b31b230 8328 (eval echo "\"\$as_me:8328: $lt_compile\"" >&5)
10946b02
AX
8329 (eval "$lt_compile" 2>out/conftest.err)
8330 ac_status=$?
8331 cat out/conftest.err >&5
0b31b230 8332 echo "$as_me:8332: \$? = $ac_status" >&5
10946b02
AX
8333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8334 then
8335 # The compiler can only warn and ignore the option if not recognized
8336 # So say no if there are warnings
0b31b230 8337 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10946b02
AX
8338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8340 lt_cv_prog_compiler_c_o=yes
8341 fi
8342 fi
8343 chmod u+w . 2>&5
8344 $RM conftest*
8345 # SGI C++ compiler will create directory out/ii_files/ for
8346 # template instantiation
8347 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8348 $RM out/* && rmdir out
8349 cd ..
8350 $RM -r conftest
8351 $RM conftest*
8352
8353fi
0b31b230 8354{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10946b02
AX
8355$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8356
8357
8358
8359
0b31b230
AX
8360hard_links="nottested"
8361if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10946b02 8362 # do not overwrite the value of need_locks provided by the user
0b31b230 8363 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10946b02
AX
8364$as_echo_n "checking if we can lock with hard links... " >&6; }
8365 hard_links=yes
8366 $RM conftest*
8367 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8368 touch conftest.a
8369 ln conftest.a conftest.b 2>&5 || hard_links=no
8370 ln conftest.a conftest.b 2>/dev/null && hard_links=no
0b31b230 8371 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10946b02 8372$as_echo "$hard_links" >&6; }
0b31b230
AX
8373 if test "$hard_links" = no; then
8374 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8375$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10946b02
AX
8376 need_locks=warn
8377 fi
8378else
8379 need_locks=no
8380fi
8381
8382
8383
8384
8385
8386
0b31b230 8387 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10946b02
AX
8388$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8389
8390 runpath_var=
8391 allow_undefined_flag=
8392 always_export_symbols=no
8393 archive_cmds=
8394 archive_expsym_cmds=
8395 compiler_needs_object=no
8396 enable_shared_with_static_runtimes=no
8397 export_dynamic_flag_spec=
8398 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8399 hardcode_automatic=no
8400 hardcode_direct=no
8401 hardcode_direct_absolute=no
8402 hardcode_libdir_flag_spec=
0b31b230 8403 hardcode_libdir_flag_spec_ld=
10946b02
AX
8404 hardcode_libdir_separator=
8405 hardcode_minus_L=no
8406 hardcode_shlibpath_var=unsupported
8407 inherit_rpath=no
8408 link_all_deplibs=unknown
8409 module_cmds=
8410 module_expsym_cmds=
8411 old_archive_from_new_cmds=
8412 old_archive_from_expsyms_cmds=
8413 thread_safe_flag_spec=
8414 whole_archive_flag_spec=
8415 # include_expsyms should be a list of space-separated symbols to be *always*
8416 # included in the symbol list
8417 include_expsyms=
8418 # exclude_expsyms can be an extended regexp of symbols to exclude
0b31b230
AX
8419 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8420 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8421 # as well as any symbol that contains `d'.
10946b02
AX
8422 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8423 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8424 # platforms (ab)use it in PIC code, but their linkers get confused if
8425 # the symbol is explicitly referenced. Since portable code cannot
8426 # rely on this symbol name, it's probably fine to never include it in
8427 # preloaded symbol tables.
8428 # Exclude shared library initialization/finalization symbols.
8429 extract_expsyms_cmds=
8430
8431 case $host_os in
8432 cygwin* | mingw* | pw32* | cegcc*)
8433 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8434 # When not using gcc, we currently assume that we are using
8435 # Microsoft Visual C++.
0b31b230 8436 if test "$GCC" != yes; then
10946b02
AX
8437 with_gnu_ld=no
8438 fi
8439 ;;
8440 interix*)
8441 # we just hope/assume this is gcc and not c89 (= MSVC++)
8442 with_gnu_ld=yes
8443 ;;
0b31b230 8444 openbsd*)
10946b02
AX
8445 with_gnu_ld=no
8446 ;;
10946b02
AX
8447 esac
8448
8449 ld_shlibs=yes
0b31b230 8450 if test "$with_gnu_ld" = yes; then
10946b02 8451 # If archive_cmds runs LD, not CC, wlarc should be empty
0b31b230 8452 wlarc='${wl}'
10946b02
AX
8453
8454 # Set some defaults for GNU ld with shared library support. These
8455 # are reset later if shared libraries are not supported. Putting them
8456 # here allows them to be overridden if necessary.
8457 runpath_var=LD_RUN_PATH
0b31b230
AX
8458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8459 export_dynamic_flag_spec='${wl}--export-dynamic'
10946b02
AX
8460 # ancient GNU ld didn't support --whole-archive et. al.
8461 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
0b31b230 8462 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10946b02
AX
8463 else
8464 whole_archive_flag_spec=
8465 fi
8466 supports_anon_versioning=no
0b31b230 8467 case `$LD -v 2>&1` in
10946b02
AX
8468 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8469 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8470 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8471 *\ 2.11.*) ;; # other 2.11 versions
8472 *) supports_anon_versioning=yes ;;
8473 esac
8474
8475 # See if GNU ld supports shared libraries.
8476 case $host_os in
8477 aix[3-9]*)
8478 # On AIX/PPC, the GNU linker is very broken
0b31b230 8479 if test "$host_cpu" != ia64; then
10946b02
AX
8480 ld_shlibs=no
8481 cat <<_LT_EOF 1>&2
8482
0b31b230 8483*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10946b02
AX
8484*** to be unable to reliably create shared libraries on AIX.
8485*** Therefore, libtool is disabling shared libraries support. If you
0b31b230
AX
8486*** really care for shared libraries, you may want to modify your PATH
8487*** so that a non-GNU linker is found, and then restart.
10946b02
AX
8488
8489_LT_EOF
8490 fi
8491 ;;
8492
8493 amigaos*)
8494 case $host_cpu in
8495 powerpc)
8496 # see comment about AmigaOS4 .so support
0b31b230 8497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10946b02
AX
8498 archive_expsym_cmds=''
8499 ;;
8500 m68k)
8501 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8502 hardcode_libdir_flag_spec='-L$libdir'
8503 hardcode_minus_L=yes
8504 ;;
8505 esac
8506 ;;
8507
8508 beos*)
8509 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8510 allow_undefined_flag=unsupported
8511 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8512 # support --undefined. This deserves some investigation. FIXME
0b31b230 8513 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10946b02
AX
8514 else
8515 ld_shlibs=no
8516 fi
8517 ;;
8518
8519 cygwin* | mingw* | pw32* | cegcc*)
8520 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8521 # as there is no search path for DLLs.
8522 hardcode_libdir_flag_spec='-L$libdir'
10946b02
AX
8523 allow_undefined_flag=unsupported
8524 always_export_symbols=no
8525 enable_shared_with_static_runtimes=yes
0b31b230 8526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10946b02
AX
8527
8528 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
0b31b230
AX
8529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8530 # If the export-symbols file already is a .def file (1st line
8531 # is EXPORTS), use it as is; otherwise, prepend...
8532 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8533 cp $export_symbols $output_objdir/$soname.def;
8534 else
8535 echo EXPORTS > $output_objdir/$soname.def;
8536 cat $export_symbols >> $output_objdir/$soname.def;
8537 fi~
8538 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10946b02
AX
8539 else
8540 ld_shlibs=no
8541 fi
8542 ;;
8543
10946b02
AX
8544 interix[3-9]*)
8545 hardcode_direct=no
8546 hardcode_shlibpath_var=no
0b31b230
AX
8547 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8548 export_dynamic_flag_spec='${wl}-E'
10946b02
AX
8549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8550 # Instead, shared libraries are loaded at an image base (0x10000000 by
8551 # default) and relocated if they conflict, which is a slow very memory
8552 # consuming and fragmenting process. To avoid this, we pick a random,
8553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8554 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
0b31b230
AX
8555 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8556 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10946b02
AX
8557 ;;
8558
0b31b230 8559 gnu* | linux* | tpf* | k*bsd*-gnu)
10946b02 8560 tmp_diet=no
0b31b230 8561 if test "$host_os" = linux-dietlibc; then
10946b02
AX
8562 case $cc_basename in
8563 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8564 esac
8565 fi
8566 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
0b31b230 8567 && test "$tmp_diet" = no
10946b02 8568 then
0b31b230 8569 tmp_addflag=
10946b02
AX
8570 tmp_sharedflag='-shared'
8571 case $cc_basename,$host_cpu in
8572 pgcc*) # Portland Group C compiler
0b31b230 8573 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10946b02
AX
8574 tmp_addflag=' $pic_flag'
8575 ;;
0b31b230
AX
8576 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8577 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10946b02
AX
8578 tmp_addflag=' $pic_flag -Mnomain' ;;
8579 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8580 tmp_addflag=' -i_dynamic' ;;
8581 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8582 tmp_addflag=' -i_dynamic -nofor_main' ;;
8583 ifc* | ifort*) # Intel Fortran compiler
8584 tmp_addflag=' -nofor_main' ;;
8585 lf95*) # Lahey Fortran 8.1
8586 whole_archive_flag_spec=
8587 tmp_sharedflag='--shared' ;;
0b31b230 8588 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10946b02
AX
8589 tmp_sharedflag='-qmkshrobj'
8590 tmp_addflag= ;;
10946b02
AX
8591 esac
8592 case `$CC -V 2>&1 | sed 5q` in
8593 *Sun\ C*) # Sun C 5.9
0b31b230 8594 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10946b02
AX
8595 compiler_needs_object=yes
8596 tmp_sharedflag='-G' ;;
8597 *Sun\ F*) # Sun Fortran 8.3
8598 tmp_sharedflag='-G' ;;
8599 esac
0b31b230 8600 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10946b02 8601
0b31b230 8602 if test "x$supports_anon_versioning" = xyes; then
10946b02 8603 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
0b31b230
AX
8604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8605 echo "local: *; };" >> $output_objdir/$libname.ver~
8606 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10946b02
AX
8607 fi
8608
8609 case $cc_basename in
0b31b230 8610 xlf*)
10946b02
AX
8611 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8612 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
0b31b230
AX
8613 hardcode_libdir_flag_spec=
8614 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8615 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8616 if test "x$supports_anon_versioning" = xyes; then
10946b02 8617 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
0b31b230
AX
8618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8619 echo "local: *; };" >> $output_objdir/$libname.ver~
8620 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10946b02
AX
8621 fi
8622 ;;
8623 esac
8624 else
8625 ld_shlibs=no
8626 fi
8627 ;;
8628
0b31b230 8629 netbsd*)
10946b02
AX
8630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8631 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8632 wlarc=
8633 else
0b31b230
AX
8634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
8636 fi
8637 ;;
8638
8639 solaris*)
8640 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8641 ld_shlibs=no
8642 cat <<_LT_EOF 1>&2
8643
8644*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8645*** create shared libraries on Solaris systems. Therefore, libtool
8646*** is disabling shared libraries support. We urge you to upgrade GNU
8647*** binutils to release 2.9.1 or newer. Another option is to modify
8648*** your PATH or compiler configuration so that the native linker is
8649*** used, and then restart.
8650
8651_LT_EOF
8652 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
0b31b230
AX
8653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
8655 else
8656 ld_shlibs=no
8657 fi
8658 ;;
8659
8660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8661 case `$LD -v 2>&1` in
8662 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8663 ld_shlibs=no
8664 cat <<_LT_EOF 1>&2
8665
0b31b230 8666*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10946b02
AX
8667*** reliably create shared libraries on SCO systems. Therefore, libtool
8668*** is disabling shared libraries support. We urge you to upgrade GNU
8669*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8670*** your PATH or compiler configuration so that the native linker is
8671*** used, and then restart.
8672
8673_LT_EOF
8674 ;;
8675 *)
8676 # For security reasons, it is highly recommended that you always
8677 # use absolute paths for naming shared libraries, and exclude the
8678 # DT_RUNPATH tag from executables and libraries. But doing so
8679 # requires that you compile everything twice, which is a pain.
8680 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
0b31b230
AX
8681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
8684 else
8685 ld_shlibs=no
8686 fi
8687 ;;
8688 esac
8689 ;;
8690
8691 sunos4*)
8692 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8693 wlarc=
8694 hardcode_direct=yes
8695 hardcode_shlibpath_var=no
8696 ;;
8697
8698 *)
8699 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
0b31b230
AX
8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
8702 else
8703 ld_shlibs=no
8704 fi
8705 ;;
8706 esac
8707
0b31b230 8708 if test "$ld_shlibs" = no; then
10946b02
AX
8709 runpath_var=
8710 hardcode_libdir_flag_spec=
8711 export_dynamic_flag_spec=
8712 whole_archive_flag_spec=
8713 fi
8714 else
8715 # PORTME fill in a description of your system's linker (not GNU ld)
8716 case $host_os in
8717 aix3*)
8718 allow_undefined_flag=unsupported
8719 always_export_symbols=yes
8720 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8721 # Note: this linker hardcodes the directories in LIBPATH if there
8722 # are no directories specified by -L.
8723 hardcode_minus_L=yes
0b31b230 8724 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10946b02
AX
8725 # Neither direct hardcoding nor static linking is supported with a
8726 # broken collect2.
8727 hardcode_direct=unsupported
8728 fi
8729 ;;
8730
8731 aix[4-9]*)
0b31b230 8732 if test "$host_cpu" = ia64; then
10946b02
AX
8733 # On IA64, the linker does run time linking by default, so we don't
8734 # have to do anything special.
8735 aix_use_runtimelinking=no
8736 exp_sym_flag='-Bexport'
0b31b230 8737 no_entry_flag=""
10946b02
AX
8738 else
8739 # If we're using GNU nm, then we don't want the "-C" option.
0b31b230 8740 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10946b02 8741 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
0b31b230 8742 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10946b02 8743 else
0b31b230 8744 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10946b02
AX
8745 fi
8746 aix_use_runtimelinking=no
8747
8748 # Test if we are trying to use run time linking or normal
8749 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
0b31b230 8750 # need to do runtime linking.
10946b02
AX
8751 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8752 for ld_flag in $LDFLAGS; do
0b31b230 8753 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10946b02
AX
8754 aix_use_runtimelinking=yes
8755 break
8756 fi
8757 done
8758 ;;
8759 esac
8760
8761 exp_sym_flag='-bexport'
8762 no_entry_flag='-bnoentry'
8763 fi
8764
8765 # When large executables or shared objects are built, AIX ld can
8766 # have problems creating the table of contents. If linking a library
8767 # or program results in "error TOC overflow" add -mminimal-toc to
8768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8770
8771 archive_cmds=''
8772 hardcode_direct=yes
8773 hardcode_direct_absolute=yes
8774 hardcode_libdir_separator=':'
8775 link_all_deplibs=yes
0b31b230 8776 file_list_spec='${wl}-f,'
10946b02 8777
0b31b230 8778 if test "$GCC" = yes; then
10946b02
AX
8779 case $host_os in aix4.[012]|aix4.[012].*)
8780 # We only want to do this on AIX 4.2 and lower, the check
8781 # below for broken collect2 doesn't work under 4.3+
0b31b230 8782 collect2name=`${CC} -print-prog-name=collect2`
10946b02
AX
8783 if test -f "$collect2name" &&
8784 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8785 then
8786 # We have reworked collect2
8787 :
8788 else
8789 # We have old collect2
8790 hardcode_direct=unsupported
8791 # It fails to find uninstalled libraries when the uninstalled
8792 # path is not listed in the libpath. Setting hardcode_minus_L
8793 # to unsupported forces relinking
8794 hardcode_minus_L=yes
8795 hardcode_libdir_flag_spec='-L$libdir'
8796 hardcode_libdir_separator=
8797 fi
8798 ;;
8799 esac
8800 shared_flag='-shared'
0b31b230
AX
8801 if test "$aix_use_runtimelinking" = yes; then
8802 shared_flag="$shared_flag "'${wl}-G'
10946b02 8803 fi
10946b02
AX
8804 else
8805 # not using gcc
0b31b230 8806 if test "$host_cpu" = ia64; then
10946b02
AX
8807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8808 # chokes on -Wl,-G. The following line is correct:
8809 shared_flag='-G'
8810 else
0b31b230
AX
8811 if test "$aix_use_runtimelinking" = yes; then
8812 shared_flag='${wl}-G'
10946b02 8813 else
0b31b230 8814 shared_flag='${wl}-bM:SRE'
10946b02
AX
8815 fi
8816 fi
8817 fi
8818
0b31b230 8819 export_dynamic_flag_spec='${wl}-bexpall'
10946b02
AX
8820 # It seems that -bexpall does not export symbols beginning with
8821 # underscore (_), so it is better to generate a list of symbols to export.
8822 always_export_symbols=yes
0b31b230 8823 if test "$aix_use_runtimelinking" = yes; then
10946b02
AX
8824 # Warning - without using the other runtime loading flags (-brtl),
8825 # -berok will link without error, but may produce a broken library.
8826 allow_undefined_flag='-berok'
8827 # Determine the default libpath from the value encoded in an
8828 # empty executable.
0b31b230
AX
8829 cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h. */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
8834/* end confdefs.h. */
8835
8836int
8837main ()
8838{
8839
8840 ;
8841 return 0;
8842}
8843_ACEOF
0b31b230
AX
8844rm -f conftest.$ac_objext conftest$ac_exeext
8845if { (ac_try="$ac_link"
8846case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849esac
8850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8851$as_echo "$ac_try_echo") >&5
8852 (eval "$ac_link") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest$ac_exeext && {
8862 test "$cross_compiling" = yes ||
8863 $as_test_x conftest$ac_exeext
8864 }; then
8865
8866lt_aix_libpath_sed='
8867 /Import File Strings/,/^$/ {
8868 /^0/ {
8869 s/^0 *\(.*\)$/\1/
8870 p
8871 }
8872 }'
8873aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8874# Check for a 64-bit object if we didn't find anything.
8875if test -z "$aix_libpath"; then
8876 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10946b02 8877fi
0b31b230
AX
8878else
8879 $as_echo "$as_me: failed program was:" >&5
8880sed 's/^/| /' conftest.$ac_ext >&5
10946b02 8881
10946b02 8882
10946b02
AX
8883fi
8884
0b31b230
AX
8885rm -rf conftest.dSYM
8886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8887 conftest$ac_exeext conftest.$ac_ext
8888if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8889
8890 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8891 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10946b02 8892 else
0b31b230
AX
8893 if test "$host_cpu" = ia64; then
8894 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10946b02 8895 allow_undefined_flag="-z nodefs"
0b31b230 8896 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10946b02
AX
8897 else
8898 # Determine the default libpath from the value encoded in an
0b31b230
AX
8899 # empty executable.
8900 cat >conftest.$ac_ext <<_ACEOF
8901/* confdefs.h. */
8902_ACEOF
8903cat confdefs.h >>conftest.$ac_ext
8904cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
8905/* end confdefs.h. */
8906
8907int
8908main ()
8909{
8910
8911 ;
8912 return 0;
8913}
8914_ACEOF
0b31b230
AX
8915rm -f conftest.$ac_objext conftest$ac_exeext
8916if { (ac_try="$ac_link"
8917case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8920esac
8921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8922$as_echo "$ac_try_echo") >&5
8923 (eval "$ac_link") 2>conftest.er1
8924 ac_status=$?
8925 grep -v '^ *+' conftest.er1 >conftest.err
8926 rm -f conftest.er1
8927 cat conftest.err >&5
8928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest$ac_exeext && {
8933 test "$cross_compiling" = yes ||
8934 $as_test_x conftest$ac_exeext
8935 }; then
8936
8937lt_aix_libpath_sed='
8938 /Import File Strings/,/^$/ {
8939 /^0/ {
8940 s/^0 *\(.*\)$/\1/
8941 p
8942 }
8943 }'
8944aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8945# Check for a 64-bit object if we didn't find anything.
8946if test -z "$aix_libpath"; then
8947 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10946b02 8948fi
0b31b230
AX
8949else
8950 $as_echo "$as_me: failed program was:" >&5
8951sed 's/^/| /' conftest.$ac_ext >&5
10946b02 8952
10946b02 8953
10946b02
AX
8954fi
8955
0b31b230
AX
8956rm -rf conftest.dSYM
8957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8958 conftest$ac_exeext conftest.$ac_ext
8959if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8960
8961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10946b02
AX
8962 # Warning - without using the other run time loading flags,
8963 # -berok will link without error, but may produce a broken library.
0b31b230
AX
8964 no_undefined_flag=' ${wl}-bernotok'
8965 allow_undefined_flag=' ${wl}-berok'
8966 # Exported symbols can be pulled into shared objects from archives
8967 whole_archive_flag_spec='$convenience'
10946b02 8968 archive_cmds_need_lc=yes
0b31b230
AX
8969 # This is similar to how AIX traditionally builds its shared libraries.
8970 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10946b02
AX
8971 fi
8972 fi
8973 ;;
8974
8975 amigaos*)
8976 case $host_cpu in
8977 powerpc)
8978 # see comment about AmigaOS4 .so support
0b31b230 8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10946b02
AX
8980 archive_expsym_cmds=''
8981 ;;
8982 m68k)
8983 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8984 hardcode_libdir_flag_spec='-L$libdir'
8985 hardcode_minus_L=yes
8986 ;;
8987 esac
8988 ;;
8989
8990 bsdi[45]*)
8991 export_dynamic_flag_spec=-rdynamic
8992 ;;
8993
8994 cygwin* | mingw* | pw32* | cegcc*)
8995 # When not using gcc, we currently assume that we are using
8996 # Microsoft Visual C++.
8997 # hardcode_libdir_flag_spec is actually meaningless, as there is
8998 # no search path for DLLs.
0b31b230
AX
8999 hardcode_libdir_flag_spec=' '
9000 allow_undefined_flag=unsupported
9001 # Tell ltmain to make .lib files, not .a files.
9002 libext=lib
9003 # Tell ltmain to make .dll files, not .so files.
9004 shrext_cmds=".dll"
9005 # FIXME: Setting linknames here is a bad hack.
9006 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9007 # The linker will automatically build a .lib file if we build a DLL.
9008 old_archive_from_new_cmds='true'
9009 # FIXME: Should let the user specify the lib program.
9010 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9011 fix_srcfile_path='`cygpath -w "$srcfile"`'
9012 enable_shared_with_static_runtimes=yes
10946b02
AX
9013 ;;
9014
9015 darwin* | rhapsody*)
9016
9017
9018 archive_cmds_need_lc=no
9019 hardcode_direct=no
9020 hardcode_automatic=yes
9021 hardcode_shlibpath_var=unsupported
0b31b230 9022 whole_archive_flag_spec=''
10946b02 9023 link_all_deplibs=yes
0b31b230 9024 allow_undefined_flag="$_lt_dar_allow_undefined"
10946b02 9025 case $cc_basename in
0b31b230 9026 ifort*) _lt_dar_can_shared=yes ;;
10946b02
AX
9027 *) _lt_dar_can_shared=$GCC ;;
9028 esac
0b31b230
AX
9029 if test "$_lt_dar_can_shared" = "yes"; then
9030 output_verbose_link_cmd=echo
9031 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9032 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9033 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9034 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10946b02
AX
9035
9036 else
9037 ld_shlibs=no
9038 fi
9039
9040 ;;
9041
9042 dgux*)
9043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_libdir_flag_spec='-L$libdir'
9045 hardcode_shlibpath_var=no
9046 ;;
9047
0b31b230
AX
9048 freebsd1*)
9049 ld_shlibs=no
9050 ;;
9051
10946b02
AX
9052 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9053 # support. Future versions do this automatically, but an explicit c++rt0.o
9054 # does not break anything, and helps significantly (at the cost of a little
9055 # extra space).
9056 freebsd2.2*)
9057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9058 hardcode_libdir_flag_spec='-R$libdir'
9059 hardcode_direct=yes
9060 hardcode_shlibpath_var=no
9061 ;;
9062
9063 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
0b31b230 9064 freebsd2*)
10946b02
AX
9065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_direct=yes
9067 hardcode_minus_L=yes
9068 hardcode_shlibpath_var=no
9069 ;;
9070
9071 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9072 freebsd* | dragonfly*)
0b31b230 9073 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9074 hardcode_libdir_flag_spec='-R$libdir'
9075 hardcode_direct=yes
9076 hardcode_shlibpath_var=no
9077 ;;
9078
9079 hpux9*)
0b31b230
AX
9080 if test "$GCC" = yes; then
9081 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10946b02 9082 else
0b31b230 9083 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10946b02 9084 fi
0b31b230 9085 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10946b02
AX
9086 hardcode_libdir_separator=:
9087 hardcode_direct=yes
9088
9089 # hardcode_minus_L: Not really in the search PATH,
9090 # but as the default location of the library.
9091 hardcode_minus_L=yes
0b31b230 9092 export_dynamic_flag_spec='${wl}-E'
10946b02
AX
9093 ;;
9094
9095 hpux10*)
0b31b230
AX
9096 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9097 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9098 else
9099 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9100 fi
0b31b230
AX
9101 if test "$with_gnu_ld" = no; then
9102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9103 hardcode_libdir_flag_spec_ld='+b $libdir'
10946b02
AX
9104 hardcode_libdir_separator=:
9105 hardcode_direct=yes
9106 hardcode_direct_absolute=yes
0b31b230 9107 export_dynamic_flag_spec='${wl}-E'
10946b02
AX
9108 # hardcode_minus_L: Not really in the search PATH,
9109 # but as the default location of the library.
9110 hardcode_minus_L=yes
9111 fi
9112 ;;
9113
9114 hpux11*)
0b31b230 9115 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10946b02
AX
9116 case $host_cpu in
9117 hppa*64*)
0b31b230 9118 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9119 ;;
9120 ia64*)
0b31b230 9121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9122 ;;
9123 *)
0b31b230 9124 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9125 ;;
9126 esac
9127 else
9128 case $host_cpu in
9129 hppa*64*)
0b31b230 9130 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9131 ;;
9132 ia64*)
0b31b230 9133 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9134 ;;
9135 *)
0b31b230 9136 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9137 ;;
9138 esac
9139 fi
0b31b230
AX
9140 if test "$with_gnu_ld" = no; then
9141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10946b02
AX
9142 hardcode_libdir_separator=:
9143
9144 case $host_cpu in
9145 hppa*64*|ia64*)
9146 hardcode_direct=no
9147 hardcode_shlibpath_var=no
9148 ;;
9149 *)
9150 hardcode_direct=yes
9151 hardcode_direct_absolute=yes
0b31b230 9152 export_dynamic_flag_spec='${wl}-E'
10946b02
AX
9153
9154 # hardcode_minus_L: Not really in the search PATH,
9155 # but as the default location of the library.
9156 hardcode_minus_L=yes
9157 ;;
9158 esac
9159 fi
9160 ;;
9161
9162 irix5* | irix6* | nonstopux*)
0b31b230
AX
9163 if test "$GCC" = yes; then
9164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10946b02
AX
9165 # Try to use the -exported_symbol ld option, if it does not
9166 # work, assume that -exports_file does not work either and
9167 # implicitly export all symbols.
0b31b230
AX
9168 save_LDFLAGS="$LDFLAGS"
9169 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9170 cat >conftest.$ac_ext <<_ACEOF
9171int foo(void) {}
10946b02 9172_ACEOF
0b31b230
AX
9173rm -f conftest.$ac_objext conftest$ac_exeext
9174if { (ac_try="$ac_link"
9175case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178esac
9179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9180$as_echo "$ac_try_echo") >&5
9181 (eval "$ac_link") 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } && {
9188 test -z "$ac_c_werror_flag" ||
9189 test ! -s conftest.err
9190 } && test -s conftest$ac_exeext && {
9191 test "$cross_compiling" = yes ||
9192 $as_test_x conftest$ac_exeext
9193 }; then
9194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9195
10946b02 9196else
0b31b230
AX
9197 $as_echo "$as_me: failed program was:" >&5
9198sed 's/^/| /' conftest.$ac_ext >&5
9199
9200
10946b02 9201fi
0b31b230
AX
9202
9203rm -rf conftest.dSYM
9204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9205 conftest$ac_exeext conftest.$ac_ext
9206 LDFLAGS="$save_LDFLAGS"
10946b02 9207 else
0b31b230
AX
9208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10946b02
AX
9210 fi
9211 archive_cmds_need_lc='no'
0b31b230 9212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10946b02
AX
9213 hardcode_libdir_separator=:
9214 inherit_rpath=yes
9215 link_all_deplibs=yes
9216 ;;
9217
0b31b230 9218 netbsd*)
10946b02
AX
9219 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9221 else
9222 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9223 fi
9224 hardcode_libdir_flag_spec='-R$libdir'
9225 hardcode_direct=yes
9226 hardcode_shlibpath_var=no
9227 ;;
9228
9229 newsos6)
9230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9231 hardcode_direct=yes
0b31b230 9232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10946b02
AX
9233 hardcode_libdir_separator=:
9234 hardcode_shlibpath_var=no
9235 ;;
9236
9237 *nto* | *qnx*)
9238 ;;
9239
0b31b230 9240 openbsd*)
10946b02
AX
9241 if test -f /usr/libexec/ld.so; then
9242 hardcode_direct=yes
9243 hardcode_shlibpath_var=no
9244 hardcode_direct_absolute=yes
0b31b230 9245 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10946b02 9246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
0b31b230
AX
9247 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9249 export_dynamic_flag_spec='${wl}-E'
10946b02 9250 else
0b31b230
AX
9251 case $host_os in
9252 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9253 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9254 hardcode_libdir_flag_spec='-R$libdir'
9255 ;;
9256 *)
9257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9259 ;;
9260 esac
10946b02
AX
9261 fi
9262 else
9263 ld_shlibs=no
9264 fi
9265 ;;
9266
9267 os2*)
9268 hardcode_libdir_flag_spec='-L$libdir'
9269 hardcode_minus_L=yes
9270 allow_undefined_flag=unsupported
0b31b230
AX
9271 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9272 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10946b02
AX
9273 ;;
9274
9275 osf3*)
0b31b230
AX
9276 if test "$GCC" = yes; then
9277 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9278 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10946b02
AX
9279 else
9280 allow_undefined_flag=' -expect_unresolved \*'
0b31b230 9281 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10946b02
AX
9282 fi
9283 archive_cmds_need_lc='no'
0b31b230 9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10946b02
AX
9285 hardcode_libdir_separator=:
9286 ;;
9287
9288 osf4* | osf5*) # as osf3* with the addition of -msym flag
0b31b230
AX
9289 if test "$GCC" = yes; then
9290 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9291 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10946b02
AX
9293 else
9294 allow_undefined_flag=' -expect_unresolved \*'
0b31b230 9295 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10946b02 9296 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
0b31b230 9297 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10946b02
AX
9298
9299 # Both c and cxx compiler support -rpath directly
9300 hardcode_libdir_flag_spec='-rpath $libdir'
9301 fi
9302 archive_cmds_need_lc='no'
9303 hardcode_libdir_separator=:
9304 ;;
9305
9306 solaris*)
9307 no_undefined_flag=' -z defs'
0b31b230
AX
9308 if test "$GCC" = yes; then
9309 wlarc='${wl}'
9310 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 9311 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
0b31b230 9312 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10946b02
AX
9313 else
9314 case `$CC -V 2>&1` in
9315 *"Compilers 5.0"*)
9316 wlarc=''
0b31b230 9317 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10946b02 9318 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
0b31b230 9319 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10946b02
AX
9320 ;;
9321 *)
0b31b230
AX
9322 wlarc='${wl}'
9323 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 9324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
0b31b230 9325 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10946b02
AX
9326 ;;
9327 esac
9328 fi
9329 hardcode_libdir_flag_spec='-R$libdir'
9330 hardcode_shlibpath_var=no
9331 case $host_os in
9332 solaris2.[0-5] | solaris2.[0-5].*) ;;
9333 *)
9334 # The compiler driver will combine and reorder linker options,
0b31b230 9335 # but understands `-z linker_flag'. GCC discards it without `$wl',
10946b02
AX
9336 # but is careful enough not to reorder.
9337 # Supported since Solaris 2.6 (maybe 2.5.1?)
0b31b230
AX
9338 if test "$GCC" = yes; then
9339 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10946b02
AX
9340 else
9341 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9342 fi
9343 ;;
9344 esac
9345 link_all_deplibs=yes
9346 ;;
9347
9348 sunos4*)
0b31b230 9349 if test "x$host_vendor" = xsequent; then
10946b02
AX
9350 # Use $CC to link under sequent, because it throws in some extra .o
9351 # files that make .init and .fini sections work.
0b31b230 9352 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9353 else
9354 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9355 fi
9356 hardcode_libdir_flag_spec='-L$libdir'
9357 hardcode_direct=yes
9358 hardcode_minus_L=yes
9359 hardcode_shlibpath_var=no
9360 ;;
9361
9362 sysv4)
9363 case $host_vendor in
9364 sni)
9365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_direct=yes # is this really true???
9367 ;;
9368 siemens)
9369 ## LD is ld it makes a PLAMLIB
9370 ## CC just makes a GrossModule.
9371 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9372 reload_cmds='$CC -r -o $output$reload_objs'
9373 hardcode_direct=no
9374 ;;
9375 motorola)
9376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9378 ;;
9379 esac
9380 runpath_var='LD_RUN_PATH'
9381 hardcode_shlibpath_var=no
9382 ;;
9383
9384 sysv4.3*)
9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_shlibpath_var=no
9387 export_dynamic_flag_spec='-Bexport'
9388 ;;
9389
9390 sysv4*MP*)
9391 if test -d /usr/nec; then
9392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_shlibpath_var=no
9394 runpath_var=LD_RUN_PATH
9395 hardcode_runpath_var=yes
9396 ld_shlibs=yes
9397 fi
9398 ;;
9399
9400 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
0b31b230 9401 no_undefined_flag='${wl}-z,text'
10946b02
AX
9402 archive_cmds_need_lc=no
9403 hardcode_shlibpath_var=no
9404 runpath_var='LD_RUN_PATH'
9405
0b31b230
AX
9406 if test "$GCC" = yes; then
9407 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 9409 else
0b31b230
AX
9410 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9412 fi
9413 ;;
9414
9415 sysv5* | sco3.2v5* | sco5v6*)
0b31b230 9416 # Note: We can NOT use -z defs as we might desire, because we do not
10946b02
AX
9417 # link with -lc, and that would cause any symbols used from libc to
9418 # always be unresolved, which means just about no library would
9419 # ever link correctly. If we're not using GNU ld we use -z text
9420 # though, which does catch some bad symbols but isn't as heavy-handed
9421 # as -z defs.
0b31b230
AX
9422 no_undefined_flag='${wl}-z,text'
9423 allow_undefined_flag='${wl}-z,nodefs'
10946b02
AX
9424 archive_cmds_need_lc=no
9425 hardcode_shlibpath_var=no
0b31b230 9426 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10946b02
AX
9427 hardcode_libdir_separator=':'
9428 link_all_deplibs=yes
0b31b230 9429 export_dynamic_flag_spec='${wl}-Bexport'
10946b02
AX
9430 runpath_var='LD_RUN_PATH'
9431
0b31b230
AX
9432 if test "$GCC" = yes; then
9433 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 9435 else
0b31b230
AX
9436 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9438 fi
9439 ;;
9440
9441 uts4*)
9442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9443 hardcode_libdir_flag_spec='-L$libdir'
9444 hardcode_shlibpath_var=no
9445 ;;
9446
9447 *)
9448 ld_shlibs=no
9449 ;;
9450 esac
9451
0b31b230 9452 if test x$host_vendor = xsni; then
10946b02
AX
9453 case $host in
9454 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
0b31b230 9455 export_dynamic_flag_spec='${wl}-Blargedynsym'
10946b02
AX
9456 ;;
9457 esac
9458 fi
9459 fi
9460
0b31b230 9461{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10946b02 9462$as_echo "$ld_shlibs" >&6; }
0b31b230 9463test "$ld_shlibs" = no && can_build_shared=no
10946b02
AX
9464
9465with_gnu_ld=$with_gnu_ld
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481#
9482# Do we need to explicitly link libc?
9483#
9484case "x$archive_cmds_need_lc" in
9485x|xyes)
9486 # Assume -lc should be added
9487 archive_cmds_need_lc=yes
9488
0b31b230 9489 if test "$enable_shared" = yes && test "$GCC" = yes; then
10946b02
AX
9490 case $archive_cmds in
9491 *'~'*)
9492 # FIXME: we may have to deal with multi-command sequences.
9493 ;;
9494 '$CC '*)
9495 # Test whether the compiler implicitly links with -lc since on some
9496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9497 # to ld, don't add -lc before -lgcc.
0b31b230 9498 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10946b02 9499$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
0b31b230
AX
9500 $RM conftest*
9501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10946b02 9502
0b31b230 9503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
9504 (eval $ac_compile) 2>&5
9505 ac_status=$?
0b31b230
AX
9506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } 2>conftest.err; then
9508 soname=conftest
9509 lib=conftest
9510 libobjs=conftest.$ac_objext
9511 deplibs=
9512 wl=$lt_prog_compiler_wl
9513 pic_flag=$lt_prog_compiler_pic
9514 compiler_flags=-v
9515 linker_flags=-v
9516 verstring=
9517 output_objdir=.
9518 libname=conftest
9519 lt_save_allow_undefined_flag=$allow_undefined_flag
9520 allow_undefined_flag=
9521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10946b02
AX
9522 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9523 ac_status=$?
0b31b230
AX
9524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }
9526 then
9527 archive_cmds_need_lc=no
9528 else
9529 archive_cmds_need_lc=yes
9530 fi
9531 allow_undefined_flag=$lt_save_allow_undefined_flag
9532 else
9533 cat conftest.err 1>&5
9534 fi
9535 $RM conftest*
9536 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9537$as_echo "$archive_cmds_need_lc" >&6; }
10946b02
AX
9538 ;;
9539 esac
9540 fi
9541 ;;
9542esac
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
0b31b230
AX
9695
9696
9697
9698
9699
9700 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10946b02
AX
9701$as_echo_n "checking dynamic linker characteristics... " >&6; }
9702
0b31b230 9703if test "$GCC" = yes; then
10946b02 9704 case $host_os in
0b31b230
AX
9705 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9706 *) lt_awk_arg="/^libraries:/" ;;
10946b02 9707 esac
0b31b230
AX
9708 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9709 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10946b02
AX
9710 # if the path contains ";" then we assume it to be the separator
9711 # otherwise default to the standard path separator (i.e. ":") - it is
9712 # assumed that no part of a normal pathname contains ";" but that should
9713 # okay in the real world where ";" in dirpaths is itself problematic.
0b31b230
AX
9714 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9715 else
9716 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9717 fi
10946b02 9718 # Ok, now we have the path, separated by spaces, we can step through it
0b31b230 9719 # and add multilib dir if necessary.
10946b02 9720 lt_tmp_lt_search_path_spec=
0b31b230 9721 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10946b02 9722 for lt_sys_path in $lt_search_path_spec; do
0b31b230
AX
9723 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9724 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9725 else
10946b02
AX
9726 test -d "$lt_sys_path" && \
9727 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9728 fi
9729 done
0b31b230
AX
9730 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9731BEGIN {RS=" "; FS="/|\n";} {
9732 lt_foo="";
9733 lt_count=0;
10946b02
AX
9734 for (lt_i = NF; lt_i > 0; lt_i--) {
9735 if ($lt_i != "" && $lt_i != ".") {
9736 if ($lt_i == "..") {
9737 lt_count++;
9738 } else {
9739 if (lt_count == 0) {
0b31b230 9740 lt_foo="/" $lt_i lt_foo;
10946b02
AX
9741 } else {
9742 lt_count--;
9743 }
9744 }
9745 }
9746 }
9747 if (lt_foo != "") { lt_freq[lt_foo]++; }
9748 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9749}'`
0b31b230 9750 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10946b02
AX
9751else
9752 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9753fi
9754library_names_spec=
9755libname_spec='lib$name'
9756soname_spec=
0b31b230 9757shrext_cmds=".so"
10946b02
AX
9758postinstall_cmds=
9759postuninstall_cmds=
9760finish_cmds=
9761finish_eval=
9762shlibpath_var=
9763shlibpath_overrides_runpath=unknown
9764version_type=none
9765dynamic_linker="$host_os ld.so"
9766sys_lib_dlsearch_path_spec="/lib /usr/lib"
9767need_lib_prefix=unknown
9768hardcode_into_libs=no
9769
9770# when you set need_version to no, make sure it does not cause -set_version
9771# flags to be left without arguments
9772need_version=unknown
9773
9774case $host_os in
9775aix3*)
0b31b230
AX
9776 version_type=linux
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10946b02
AX
9778 shlibpath_var=LIBPATH
9779
9780 # AIX 3 has no versioning support, so we append a major version to the name.
0b31b230 9781 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
9782 ;;
9783
9784aix[4-9]*)
0b31b230 9785 version_type=linux
10946b02
AX
9786 need_lib_prefix=no
9787 need_version=no
9788 hardcode_into_libs=yes
0b31b230 9789 if test "$host_cpu" = ia64; then
10946b02 9790 # AIX 5 supports IA64
0b31b230 9791 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10946b02
AX
9792 shlibpath_var=LD_LIBRARY_PATH
9793 else
9794 # With GCC up to 2.95.x, collect2 would create an import file
9795 # for dependence libraries. The import file would start with
0b31b230
AX
9796 # the line `#! .'. This would cause the generated library to
9797 # depend on `.', always an invalid library. This was fixed in
10946b02
AX
9798 # development snapshots of GCC prior to 3.0.
9799 case $host_os in
9800 aix4 | aix4.[01] | aix4.[01].*)
9801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9802 echo ' yes '
0b31b230 9803 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10946b02
AX
9804 :
9805 else
9806 can_build_shared=no
9807 fi
9808 ;;
9809 esac
0b31b230 9810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10946b02
AX
9811 # soname into executable. Probably we can add versioning support to
9812 # collect2, so additional links can be useful in future.
0b31b230 9813 if test "$aix_use_runtimelinking" = yes; then
10946b02
AX
9814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9815 # instead of lib<name>.a to let people know that these are not
9816 # typical AIX shared libraries.
0b31b230
AX
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 else
10946b02
AX
9819 # We preserve .a as extension for shared libraries through AIX4.2
9820 # and later when we are not doing run time linking.
0b31b230
AX
9821 library_names_spec='${libname}${release}.a $libname.a'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 fi
10946b02
AX
9824 shlibpath_var=LIBPATH
9825 fi
9826 ;;
9827
9828amigaos*)
9829 case $host_cpu in
9830 powerpc)
9831 # Since July 2007 AmigaOS4 officially supports .so libraries.
9832 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
0b31b230 9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946b02
AX
9834 ;;
9835 m68k)
9836 library_names_spec='$libname.ixlibrary $libname.a'
9837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
0b31b230 9838 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10946b02
AX
9839 ;;
9840 esac
9841 ;;
9842
9843beos*)
0b31b230 9844 library_names_spec='${libname}${shared_ext}'
10946b02
AX
9845 dynamic_linker="$host_os ld.so"
9846 shlibpath_var=LIBRARY_PATH
9847 ;;
9848
9849bsdi[45]*)
0b31b230 9850 version_type=linux
10946b02 9851 need_version=no
0b31b230
AX
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
9854 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9855 shlibpath_var=LD_LIBRARY_PATH
9856 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9857 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9858 # the default ld.so.conf also contains /usr/contrib/lib and
9859 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9860 # libtool to hard-code these into programs
9861 ;;
9862
9863cygwin* | mingw* | pw32* | cegcc*)
9864 version_type=windows
0b31b230 9865 shrext_cmds=".dll"
10946b02
AX
9866 need_version=no
9867 need_lib_prefix=no
9868
0b31b230
AX
9869 case $GCC,$host_os in
9870 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10946b02
AX
9871 library_names_spec='$libname.dll.a'
9872 # DLL is installed to $(libdir)/../bin by postinstall_cmds
0b31b230
AX
9873 postinstall_cmds='base_file=`basename \${file}`~
9874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10946b02
AX
9875 dldir=$destdir/`dirname \$dlpath`~
9876 test -d \$dldir || mkdir -p \$dldir~
9877 $install_prog $dir/$dlname \$dldir/$dlname~
9878 chmod a+x \$dldir/$dlname~
9879 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9880 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9881 fi'
9882 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9883 dlpath=$dir/\$dldll~
9884 $RM \$dlpath'
9885 shlibpath_overrides_runpath=yes
9886
9887 case $host_os in
9888 cygwin*)
9889 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
0b31b230
AX
9890 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9891 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10946b02
AX
9892 ;;
9893 mingw* | cegcc*)
9894 # MinGW DLLs use traditional 'lib' prefix
0b31b230
AX
9895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9896 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10946b02 9897 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
0b31b230
AX
9898 # It is most probably a Windows format PATH printed by
9899 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9900 # path with ; separators, and with drive letters. We can handle the
9901 # drive letters (cygwin fileutils understands them), so leave them,
9902 # especially as we might pass files found there to a mingw objdump,
9903 # which wouldn't understand a cygwinified path. Ahh.
10946b02
AX
9904 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9905 else
0b31b230 9906 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10946b02 9907 fi
0b31b230
AX
9908 ;;
9909 pw32*)
9910 # pw32 DLLs use 'pw' prefix rather than 'lib'
9911 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10946b02
AX
9912 ;;
9913 esac
10946b02
AX
9914 ;;
9915
9916 *)
0b31b230 9917 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10946b02
AX
9918 ;;
9919 esac
0b31b230 9920 dynamic_linker='Win32 ld.exe'
10946b02
AX
9921 # FIXME: first we should search . and the directory the executable is in
9922 shlibpath_var=PATH
9923 ;;
9924
9925darwin* | rhapsody*)
9926 dynamic_linker="$host_os dyld"
9927 version_type=darwin
9928 need_lib_prefix=no
9929 need_version=no
0b31b230
AX
9930 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9931 soname_spec='${libname}${release}${major}$shared_ext'
10946b02
AX
9932 shlibpath_overrides_runpath=yes
9933 shlibpath_var=DYLD_LIBRARY_PATH
9934 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9935
9936 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9938 ;;
9939
9940dgux*)
0b31b230 9941 version_type=linux
10946b02
AX
9942 need_lib_prefix=no
9943 need_version=no
0b31b230
AX
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9945 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
9946 shlibpath_var=LD_LIBRARY_PATH
9947 ;;
9948
0b31b230
AX
9949freebsd1*)
9950 dynamic_linker=no
9951 ;;
9952
10946b02
AX
9953freebsd* | dragonfly*)
9954 # DragonFly does not have aout. When/if they implement a new
9955 # versioning mechanism, adjust this.
9956 if test -x /usr/bin/objformat; then
9957 objformat=`/usr/bin/objformat`
9958 else
9959 case $host_os in
0b31b230 9960 freebsd[123]*) objformat=aout ;;
10946b02
AX
9961 *) objformat=elf ;;
9962 esac
9963 fi
9964 version_type=freebsd-$objformat
9965 case $version_type in
9966 freebsd-elf*)
0b31b230 9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10946b02
AX
9968 need_version=no
9969 need_lib_prefix=no
9970 ;;
9971 freebsd-*)
0b31b230 9972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10946b02
AX
9973 need_version=yes
9974 ;;
9975 esac
9976 shlibpath_var=LD_LIBRARY_PATH
9977 case $host_os in
0b31b230 9978 freebsd2*)
10946b02
AX
9979 shlibpath_overrides_runpath=yes
9980 ;;
9981 freebsd3.[01]* | freebsdelf3.[01]*)
9982 shlibpath_overrides_runpath=yes
9983 hardcode_into_libs=yes
9984 ;;
9985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9987 shlibpath_overrides_runpath=no
9988 hardcode_into_libs=yes
9989 ;;
9990 *) # from 4.6 on, and DragonFly
9991 shlibpath_overrides_runpath=yes
9992 hardcode_into_libs=yes
9993 ;;
9994 esac
9995 ;;
9996
0b31b230
AX
9997gnu*)
9998 version_type=linux
10946b02
AX
9999 need_lib_prefix=no
10000 need_version=no
0b31b230
AX
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 shlibpath_var=LD_LIBRARY_PATH
10946b02
AX
10004 hardcode_into_libs=yes
10005 ;;
10006
10007hpux9* | hpux10* | hpux11*)
10008 # Give a soname corresponding to the major version so that dld.sl refuses to
10009 # link against other versions.
10010 version_type=sunos
10011 need_lib_prefix=no
10012 need_version=no
10013 case $host_cpu in
10014 ia64*)
10015 shrext_cmds='.so'
10016 hardcode_into_libs=yes
10017 dynamic_linker="$host_os dld.so"
10018 shlibpath_var=LD_LIBRARY_PATH
10019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
0b31b230
AX
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021 soname_spec='${libname}${release}${shared_ext}$major'
10022 if test "X$HPUX_IA64_MODE" = X32; then
10946b02
AX
10023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10024 else
10025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10026 fi
0b31b230 10027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10946b02
AX
10028 ;;
10029 hppa*64*)
10030 shrext_cmds='.sl'
10031 hardcode_into_libs=yes
10032 dynamic_linker="$host_os dld.sl"
10033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
0b31b230
AX
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10039 ;;
10040 *)
10041 shrext_cmds='.sl'
10042 dynamic_linker="$host_os dld.sl"
10043 shlibpath_var=SHLIB_PATH
10044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
0b31b230
AX
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10047 ;;
10048 esac
0b31b230 10049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10946b02 10050 postinstall_cmds='chmod 555 $lib'
10946b02
AX
10051 ;;
10052
10053interix[3-9]*)
0b31b230 10054 version_type=linux
10946b02
AX
10055 need_lib_prefix=no
10056 need_version=no
0b31b230
AX
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10059 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=no
10062 hardcode_into_libs=yes
10063 ;;
10064
10065irix5* | irix6* | nonstopux*)
10066 case $host_os in
10067 nonstopux*) version_type=nonstopux ;;
10068 *)
0b31b230
AX
10069 if test "$lt_cv_prog_gnu_ld" = yes; then
10070 version_type=linux
10946b02
AX
10071 else
10072 version_type=irix
10073 fi ;;
10074 esac
10075 need_lib_prefix=no
10076 need_version=no
0b31b230
AX
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10946b02
AX
10079 case $host_os in
10080 irix5* | nonstopux*)
10081 libsuff= shlibsuff=
10082 ;;
10083 *)
10084 case $LD in # libtool.m4 will add one of these switches to LD
10085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10086 libsuff= shlibsuff= libmagic=32-bit;;
10087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10088 libsuff=32 shlibsuff=N32 libmagic=N32;;
10089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10091 *) libsuff= shlibsuff= libmagic=never-match;;
10092 esac
10093 ;;
10094 esac
10095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10096 shlibpath_overrides_runpath=no
0b31b230
AX
10097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10946b02
AX
10099 hardcode_into_libs=yes
10100 ;;
10101
10102# No shared lib support for Linux oldld, aout, or coff.
10103linux*oldld* | linux*aout* | linux*coff*)
10104 dynamic_linker=no
10105 ;;
10106
0b31b230
AX
10107# This must be Linux ELF.
10108linux* | k*bsd*-gnu)
10109 version_type=linux
10946b02
AX
10110 need_lib_prefix=no
10111 need_version=no
0b31b230
AX
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10115 shlibpath_var=LD_LIBRARY_PATH
10116 shlibpath_overrides_runpath=no
10946b02 10117 # Some binutils ld are patched to set DT_RUNPATH
0b31b230
AX
10118 save_LDFLAGS=$LDFLAGS
10119 save_libdir=$libdir
10120 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10121 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10122 cat >conftest.$ac_ext <<_ACEOF
10123/* confdefs.h. */
10124_ACEOF
10125cat confdefs.h >>conftest.$ac_ext
10126cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
10127/* end confdefs.h. */
10128
10129int
10130main ()
10131{
10132
10133 ;
10134 return 0;
10135}
10136_ACEOF
0b31b230
AX
10137rm -f conftest.$ac_objext conftest$ac_exeext
10138if { (ac_try="$ac_link"
10139case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142esac
10143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10144$as_echo "$ac_try_echo") >&5
10145 (eval "$ac_link") 2>conftest.er1
10146 ac_status=$?
10147 grep -v '^ *+' conftest.er1 >conftest.err
10148 rm -f conftest.er1
10149 cat conftest.err >&5
10150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && {
10152 test -z "$ac_c_werror_flag" ||
10153 test ! -s conftest.err
10154 } && test -s conftest$ac_exeext && {
10155 test "$cross_compiling" = yes ||
10156 $as_test_x conftest$ac_exeext
10157 }; then
10158 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10159 shlibpath_overrides_runpath=yes
10946b02 10160fi
0b31b230
AX
10161
10162else
10163 $as_echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
10946b02
AX
10166
10167fi
10168
0b31b230
AX
10169rm -rf conftest.dSYM
10170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10171 conftest$ac_exeext conftest.$ac_ext
10172 LDFLAGS=$save_LDFLAGS
10173 libdir=$save_libdir
10946b02
AX
10174
10175 # This implies no fast_install, which is unacceptable.
10176 # Some rework will be needed to allow for fast_install
10177 # before this can be enabled.
10178 hardcode_into_libs=yes
10179
0b31b230
AX
10180 # Add ABI-specific directories to the system library path.
10181 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10182
10183 # Append ld.so.conf contents to the search path
10946b02 10184 if test -f /etc/ld.so.conf; then
0b31b230
AX
10185 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10186 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10946b02
AX
10187 fi
10188
10189 # We used to test for /lib/ld.so.1 and disable shared libraries on
10190 # powerpc, because MkLinux only supported shared libraries with the
10191 # GNU dynamic linker. Since this was broken with cross compilers,
10192 # most powerpc-linux boxes support dynamic linking these days and
10193 # people can always --disable-shared, the test was removed, and we
10194 # assume the GNU/Linux dynamic linker is in use.
10195 dynamic_linker='GNU/Linux ld.so'
10196 ;;
10197
10946b02
AX
10198netbsd*)
10199 version_type=sunos
10200 need_lib_prefix=no
10201 need_version=no
10202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
0b31b230 10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10946b02
AX
10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10205 dynamic_linker='NetBSD (a.out) ld.so'
10206 else
0b31b230
AX
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10209 dynamic_linker='NetBSD ld.elf_so'
10210 fi
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes
10213 hardcode_into_libs=yes
10214 ;;
10215
10216newsos6)
0b31b230
AX
10217 version_type=linux
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946b02
AX
10219 shlibpath_var=LD_LIBRARY_PATH
10220 shlibpath_overrides_runpath=yes
10221 ;;
10222
10223*nto* | *qnx*)
10224 version_type=qnx
10225 need_lib_prefix=no
10226 need_version=no
0b31b230
AX
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10229 shlibpath_var=LD_LIBRARY_PATH
10230 shlibpath_overrides_runpath=no
10231 hardcode_into_libs=yes
10232 dynamic_linker='ldqnx.so'
10233 ;;
10234
0b31b230 10235openbsd*)
10946b02 10236 version_type=sunos
0b31b230 10237 sys_lib_dlsearch_path_spec="/usr/lib"
10946b02 10238 need_lib_prefix=no
0b31b230
AX
10239 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10240 case $host_os in
10241 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10242 *) need_version=no ;;
10243 esac
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
ac9cc135
AX
10245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10246 shlibpath_var=LD_LIBRARY_PATH
0b31b230
AX
10247 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10248 case $host_os in
10249 openbsd2.[89] | openbsd2.[89].*)
10250 shlibpath_overrides_runpath=no
10251 ;;
10252 *)
10253 shlibpath_overrides_runpath=yes
10254 ;;
10255 esac
10256 else
10257 shlibpath_overrides_runpath=yes
10258 fi
10946b02
AX
10259 ;;
10260
10261os2*)
10262 libname_spec='$name'
0b31b230 10263 shrext_cmds=".dll"
10946b02 10264 need_lib_prefix=no
0b31b230 10265 library_names_spec='$libname${shared_ext} $libname.a'
10946b02 10266 dynamic_linker='OS/2 ld.exe'
0b31b230 10267 shlibpath_var=LIBPATH
10946b02
AX
10268 ;;
10269
10270osf3* | osf4* | osf5*)
10271 version_type=osf
10272 need_lib_prefix=no
10273 need_version=no
0b31b230
AX
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946b02
AX
10276 shlibpath_var=LD_LIBRARY_PATH
10277 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
0b31b230 10278 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10946b02
AX
10279 ;;
10280
10281rdos*)
10282 dynamic_linker=no
10283 ;;
10284
10285solaris*)
0b31b230 10286 version_type=linux
10946b02
AX
10287 need_lib_prefix=no
10288 need_version=no
0b31b230
AX
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=yes
10293 hardcode_into_libs=yes
10294 # ldd complains unless libraries are executable
10295 postinstall_cmds='chmod +x $lib'
10296 ;;
10297
10298sunos4*)
10299 version_type=sunos
0b31b230 10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10946b02
AX
10301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
0b31b230 10304 if test "$with_gnu_ld" = yes; then
10946b02
AX
10305 need_lib_prefix=no
10306 fi
10307 need_version=yes
10308 ;;
10309
10310sysv4 | sysv4.3*)
0b31b230
AX
10311 version_type=linux
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10314 shlibpath_var=LD_LIBRARY_PATH
10315 case $host_vendor in
10316 sni)
10317 shlibpath_overrides_runpath=no
10318 need_lib_prefix=no
10319 runpath_var=LD_RUN_PATH
10320 ;;
10321 siemens)
10322 need_lib_prefix=no
10323 ;;
10324 motorola)
10325 need_lib_prefix=no
10326 need_version=no
10327 shlibpath_overrides_runpath=no
10328 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10329 ;;
10330 esac
10331 ;;
10332
10333sysv4*MP*)
0b31b230
AX
10334 if test -d /usr/nec ;then
10335 version_type=linux
10336 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10337 soname_spec='$libname${shared_ext}.$major'
10946b02
AX
10338 shlibpath_var=LD_LIBRARY_PATH
10339 fi
10340 ;;
10341
10342sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
0b31b230 10343 version_type=freebsd-elf
10946b02
AX
10344 need_lib_prefix=no
10345 need_version=no
0b31b230
AX
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10348 shlibpath_var=LD_LIBRARY_PATH
10349 shlibpath_overrides_runpath=yes
10350 hardcode_into_libs=yes
0b31b230 10351 if test "$with_gnu_ld" = yes; then
10946b02
AX
10352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10353 else
10354 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10355 case $host_os in
10356 sco3.2v5*)
10357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10358 ;;
10359 esac
10360 fi
10361 sys_lib_dlsearch_path_spec='/usr/lib'
10362 ;;
10363
10364tpf*)
10365 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
0b31b230 10366 version_type=linux
10946b02
AX
10367 need_lib_prefix=no
10368 need_version=no
0b31b230 10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946b02
AX
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=no
10372 hardcode_into_libs=yes
10373 ;;
10374
10375uts4*)
0b31b230
AX
10376 version_type=linux
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10379 shlibpath_var=LD_LIBRARY_PATH
10380 ;;
10381
10382*)
10383 dynamic_linker=no
10384 ;;
10385esac
0b31b230 10386{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10946b02 10387$as_echo "$dynamic_linker" >&6; }
0b31b230 10388test "$dynamic_linker" = no && can_build_shared=no
10946b02
AX
10389
10390variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
0b31b230 10391if test "$GCC" = yes; then
10946b02
AX
10392 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10393fi
10394
0b31b230
AX
10395if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10396 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10946b02 10397fi
0b31b230
AX
10398if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10399 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10946b02
AX
10400fi
10401
10946b02
AX
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
0b31b230 10488 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10946b02
AX
10489$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10490hardcode_action=
10491if test -n "$hardcode_libdir_flag_spec" ||
10492 test -n "$runpath_var" ||
0b31b230 10493 test "X$hardcode_automatic" = "Xyes" ; then
10946b02
AX
10494
10495 # We can hardcode non-existent directories.
0b31b230 10496 if test "$hardcode_direct" != no &&
10946b02
AX
10497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10498 # have to relink, otherwise we might link with an installed library
10499 # when we should be linking with a yet-to-be-installed one
0b31b230
AX
10500 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10501 test "$hardcode_minus_L" != no; then
10946b02
AX
10502 # Linking always hardcodes the temporary library directory.
10503 hardcode_action=relink
10504 else
10505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10506 hardcode_action=immediate
10507 fi
10508else
10509 # We cannot hardcode anything, or else we can only hardcode existing
10510 # directories.
10511 hardcode_action=unsupported
10512fi
0b31b230 10513{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10946b02
AX
10514$as_echo "$hardcode_action" >&6; }
10515
0b31b230
AX
10516if test "$hardcode_action" = relink ||
10517 test "$inherit_rpath" = yes; then
10946b02
AX
10518 # Fast installation is not supported
10519 enable_fast_install=no
0b31b230
AX
10520elif test "$shlibpath_overrides_runpath" = yes ||
10521 test "$enable_shared" = no; then
10946b02
AX
10522 # Fast installation is not necessary
10523 enable_fast_install=needless
10524fi
10525
10526
10527
10528
10529
10530
0b31b230 10531 if test "x$enable_dlopen" != xyes; then
10946b02
AX
10532 enable_dlopen=unknown
10533 enable_dlopen_self=unknown
10534 enable_dlopen_self_static=unknown
10535else
10536 lt_cv_dlopen=no
10537 lt_cv_dlopen_libs=
10538
10539 case $host_os in
10540 beos*)
0b31b230 10541 lt_cv_dlopen="load_add_on"
10946b02
AX
10542 lt_cv_dlopen_libs=
10543 lt_cv_dlopen_self=yes
10544 ;;
10545
10546 mingw* | pw32* | cegcc*)
0b31b230 10547 lt_cv_dlopen="LoadLibrary"
10946b02
AX
10548 lt_cv_dlopen_libs=
10549 ;;
10550
10551 cygwin*)
0b31b230 10552 lt_cv_dlopen="dlopen"
10946b02
AX
10553 lt_cv_dlopen_libs=
10554 ;;
10555
10556 darwin*)
0b31b230
AX
10557 # if libdl is installed we need to link against it
10558 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10946b02 10559$as_echo_n "checking for dlopen in -ldl... " >&6; }
0b31b230 10560if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10946b02
AX
10561 $as_echo_n "(cached) " >&6
10562else
10563 ac_check_lib_save_LIBS=$LIBS
10564LIBS="-ldl $LIBS"
0b31b230
AX
10565cat >conftest.$ac_ext <<_ACEOF
10566/* confdefs.h. */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
10570/* end confdefs.h. */
10571
10572/* Override any GCC internal prototype to avoid an error.
10573 Use char because int might match the return type of a GCC
10574 builtin and then its argument prototype would still apply. */
10575#ifdef __cplusplus
10576extern "C"
10577#endif
10578char dlopen ();
10579int
10580main ()
10581{
10582return dlopen ();
10583 ;
10584 return 0;
10585}
10586_ACEOF
0b31b230
AX
10587rm -f conftest.$ac_objext conftest$ac_exeext
10588if { (ac_try="$ac_link"
10589case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592esac
10593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10594$as_echo "$ac_try_echo") >&5
10595 (eval "$ac_link") 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest$ac_exeext && {
10605 test "$cross_compiling" = yes ||
10606 $as_test_x conftest$ac_exeext
10607 }; then
10946b02
AX
10608 ac_cv_lib_dl_dlopen=yes
10609else
0b31b230
AX
10610 $as_echo "$as_me: failed program was:" >&5
10611sed 's/^/| /' conftest.$ac_ext >&5
10612
10613 ac_cv_lib_dl_dlopen=no
10946b02 10614fi
0b31b230
AX
10615
10616rm -rf conftest.dSYM
10617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10618 conftest$ac_exeext conftest.$ac_ext
10946b02
AX
10619LIBS=$ac_check_lib_save_LIBS
10620fi
0b31b230 10621{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10946b02 10622$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
0b31b230
AX
10623if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10946b02
AX
10625else
10626
0b31b230 10627 lt_cv_dlopen="dyld"
10946b02
AX
10628 lt_cv_dlopen_libs=
10629 lt_cv_dlopen_self=yes
10630
10631fi
10632
10633 ;;
10634
10635 *)
0b31b230
AX
10636 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10637$as_echo_n "checking for shl_load... " >&6; }
10638if test "${ac_cv_func_shl_load+set}" = set; then
10639 $as_echo_n "(cached) " >&6
10640else
10641 cat >conftest.$ac_ext <<_ACEOF
10642/* confdefs.h. */
10643_ACEOF
10644cat confdefs.h >>conftest.$ac_ext
10645cat >>conftest.$ac_ext <<_ACEOF
10646/* end confdefs.h. */
10647/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10649#define shl_load innocuous_shl_load
10650
10651/* System header to define __stub macros and hopefully few prototypes,
10652 which can conflict with char shl_load (); below.
10653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654 <limits.h> exists even on freestanding compilers. */
10655
10656#ifdef __STDC__
10657# include <limits.h>
10658#else
10659# include <assert.h>
10660#endif
10661
10662#undef shl_load
10663
10664/* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10667#ifdef __cplusplus
10668extern "C"
10669#endif
10670char shl_load ();
10671/* The GNU C library defines this for functions which it implements
10672 to always fail with ENOSYS. Some functions are actually named
10673 something starting with __ and the normal name is an alias. */
10674#if defined __stub_shl_load || defined __stub___shl_load
10675choke me
10676#endif
10677
10678int
10679main ()
10680{
10681return shl_load ();
10682 ;
10683 return 0;
10684}
10685_ACEOF
10686rm -f conftest.$ac_objext conftest$ac_exeext
10687if { (ac_try="$ac_link"
10688case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691esac
10692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693$as_echo "$ac_try_echo") >&5
10694 (eval "$ac_link") 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest$ac_exeext && {
10704 test "$cross_compiling" = yes ||
10705 $as_test_x conftest$ac_exeext
10706 }; then
10707 ac_cv_func_shl_load=yes
10708else
10709 $as_echo "$as_me: failed program was:" >&5
10710sed 's/^/| /' conftest.$ac_ext >&5
10711
10712 ac_cv_func_shl_load=no
10713fi
10714
10715rm -rf conftest.dSYM
10716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10718fi
10719{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10720$as_echo "$ac_cv_func_shl_load" >&6; }
10721if test "x$ac_cv_func_shl_load" = x""yes; then
10722 lt_cv_dlopen="shl_load"
10946b02 10723else
0b31b230 10724 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10946b02 10725$as_echo_n "checking for shl_load in -ldld... " >&6; }
0b31b230 10726if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10946b02
AX
10727 $as_echo_n "(cached) " >&6
10728else
10729 ac_check_lib_save_LIBS=$LIBS
10730LIBS="-ldld $LIBS"
0b31b230
AX
10731cat >conftest.$ac_ext <<_ACEOF
10732/* confdefs.h. */
10733_ACEOF
10734cat confdefs.h >>conftest.$ac_ext
10735cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
10736/* end confdefs.h. */
10737
10738/* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741#ifdef __cplusplus
10742extern "C"
10743#endif
10744char shl_load ();
10745int
10746main ()
10747{
10748return shl_load ();
10749 ;
10750 return 0;
10751}
10752_ACEOF
0b31b230
AX
10753rm -f conftest.$ac_objext conftest$ac_exeext
10754if { (ac_try="$ac_link"
10755case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758esac
10759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10760$as_echo "$ac_try_echo") >&5
10761 (eval "$ac_link") 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } && {
10768 test -z "$ac_c_werror_flag" ||
10769 test ! -s conftest.err
10770 } && test -s conftest$ac_exeext && {
10771 test "$cross_compiling" = yes ||
10772 $as_test_x conftest$ac_exeext
10773 }; then
10946b02
AX
10774 ac_cv_lib_dld_shl_load=yes
10775else
0b31b230
AX
10776 $as_echo "$as_me: failed program was:" >&5
10777sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 ac_cv_lib_dld_shl_load=no
10946b02 10780fi
0b31b230
AX
10781
10782rm -rf conftest.dSYM
10783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10784 conftest$ac_exeext conftest.$ac_ext
10946b02
AX
10785LIBS=$ac_check_lib_save_LIBS
10786fi
0b31b230 10787{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10946b02 10788$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
0b31b230
AX
10789if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10790 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10791else
10792 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10793$as_echo_n "checking for dlopen... " >&6; }
10794if test "${ac_cv_func_dlopen+set}" = set; then
10795 $as_echo_n "(cached) " >&6
10796else
10797 cat >conftest.$ac_ext <<_ACEOF
10798/* confdefs.h. */
10799_ACEOF
10800cat confdefs.h >>conftest.$ac_ext
10801cat >>conftest.$ac_ext <<_ACEOF
10802/* end confdefs.h. */
10803/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10805#define dlopen innocuous_dlopen
10806
10807/* System header to define __stub macros and hopefully few prototypes,
10808 which can conflict with char dlopen (); below.
10809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10810 <limits.h> exists even on freestanding compilers. */
10811
10812#ifdef __STDC__
10813# include <limits.h>
10814#else
10815# include <assert.h>
10816#endif
10817
10818#undef dlopen
10819
10820/* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10823#ifdef __cplusplus
10824extern "C"
10825#endif
10826char dlopen ();
10827/* The GNU C library defines this for functions which it implements
10828 to always fail with ENOSYS. Some functions are actually named
10829 something starting with __ and the normal name is an alias. */
10830#if defined __stub_dlopen || defined __stub___dlopen
10831choke me
10832#endif
10833
10834int
10835main ()
10836{
10837return dlopen ();
10838 ;
10839 return 0;
10840}
10841_ACEOF
10842rm -f conftest.$ac_objext conftest$ac_exeext
10843if { (ac_try="$ac_link"
10844case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10847esac
10848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10849$as_echo "$ac_try_echo") >&5
10850 (eval "$ac_link") 2>conftest.er1
10851 ac_status=$?
10852 grep -v '^ *+' conftest.er1 >conftest.err
10853 rm -f conftest.er1
10854 cat conftest.err >&5
10855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } && {
10857 test -z "$ac_c_werror_flag" ||
10858 test ! -s conftest.err
10859 } && test -s conftest$ac_exeext && {
10860 test "$cross_compiling" = yes ||
10861 $as_test_x conftest$ac_exeext
10862 }; then
10863 ac_cv_func_dlopen=yes
10946b02 10864else
0b31b230
AX
10865 $as_echo "$as_me: failed program was:" >&5
10866sed 's/^/| /' conftest.$ac_ext >&5
10867
10868 ac_cv_func_dlopen=no
10869fi
10870
10871rm -rf conftest.dSYM
10872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10873 conftest$ac_exeext conftest.$ac_ext
10874fi
10875{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10876$as_echo "$ac_cv_func_dlopen" >&6; }
10877if test "x$ac_cv_func_dlopen" = x""yes; then
10878 lt_cv_dlopen="dlopen"
10946b02 10879else
0b31b230 10880 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10946b02 10881$as_echo_n "checking for dlopen in -ldl... " >&6; }
0b31b230 10882if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10946b02
AX
10883 $as_echo_n "(cached) " >&6
10884else
10885 ac_check_lib_save_LIBS=$LIBS
10886LIBS="-ldl $LIBS"
0b31b230
AX
10887cat >conftest.$ac_ext <<_ACEOF
10888/* confdefs.h. */
10889_ACEOF
10890cat confdefs.h >>conftest.$ac_ext
10891cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
10892/* end confdefs.h. */
10893
10894/* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10897#ifdef __cplusplus
10898extern "C"
10899#endif
10900char dlopen ();
10901int
10902main ()
10903{
10904return dlopen ();
10905 ;
10906 return 0;
10907}
10908_ACEOF
0b31b230
AX
10909rm -f conftest.$ac_objext conftest$ac_exeext
10910if { (ac_try="$ac_link"
10911case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914esac
10915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10916$as_echo "$ac_try_echo") >&5
10917 (eval "$ac_link") 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } && {
10924 test -z "$ac_c_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest$ac_exeext && {
10927 test "$cross_compiling" = yes ||
10928 $as_test_x conftest$ac_exeext
10929 }; then
10946b02
AX
10930 ac_cv_lib_dl_dlopen=yes
10931else
0b31b230
AX
10932 $as_echo "$as_me: failed program was:" >&5
10933sed 's/^/| /' conftest.$ac_ext >&5
10934
10935 ac_cv_lib_dl_dlopen=no
10946b02 10936fi
0b31b230
AX
10937
10938rm -rf conftest.dSYM
10939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10940 conftest$ac_exeext conftest.$ac_ext
10946b02
AX
10941LIBS=$ac_check_lib_save_LIBS
10942fi
0b31b230 10943{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10946b02 10944$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
0b31b230
AX
10945if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10946b02 10947else
0b31b230 10948 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10946b02 10949$as_echo_n "checking for dlopen in -lsvld... " >&6; }
0b31b230 10950if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10946b02
AX
10951 $as_echo_n "(cached) " >&6
10952else
10953 ac_check_lib_save_LIBS=$LIBS
10954LIBS="-lsvld $LIBS"
0b31b230
AX
10955cat >conftest.$ac_ext <<_ACEOF
10956/* confdefs.h. */
10957_ACEOF
10958cat confdefs.h >>conftest.$ac_ext
10959cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
10960/* end confdefs.h. */
10961
10962/* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10965#ifdef __cplusplus
10966extern "C"
10967#endif
10968char dlopen ();
10969int
10970main ()
10971{
10972return dlopen ();
10973 ;
10974 return 0;
10975}
10976_ACEOF
0b31b230
AX
10977rm -f conftest.$ac_objext conftest$ac_exeext
10978if { (ac_try="$ac_link"
10979case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982esac
10983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10984$as_echo "$ac_try_echo") >&5
10985 (eval "$ac_link") 2>conftest.er1
10986 ac_status=$?
10987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
10990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest$ac_exeext && {
10995 test "$cross_compiling" = yes ||
10996 $as_test_x conftest$ac_exeext
10997 }; then
10946b02
AX
10998 ac_cv_lib_svld_dlopen=yes
10999else
0b31b230
AX
11000 $as_echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 ac_cv_lib_svld_dlopen=no
10946b02 11004fi
0b31b230
AX
11005
11006rm -rf conftest.dSYM
11007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
10946b02
AX
11009LIBS=$ac_check_lib_save_LIBS
11010fi
0b31b230 11011{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10946b02 11012$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
0b31b230
AX
11013if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10946b02 11015else
0b31b230 11016 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10946b02 11017$as_echo_n "checking for dld_link in -ldld... " >&6; }
0b31b230 11018if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10946b02
AX
11019 $as_echo_n "(cached) " >&6
11020else
11021 ac_check_lib_save_LIBS=$LIBS
11022LIBS="-ldld $LIBS"
0b31b230
AX
11023cat >conftest.$ac_ext <<_ACEOF
11024/* confdefs.h. */
11025_ACEOF
11026cat confdefs.h >>conftest.$ac_ext
11027cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
11028/* end confdefs.h. */
11029
11030/* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11033#ifdef __cplusplus
11034extern "C"
11035#endif
11036char dld_link ();
11037int
11038main ()
11039{
11040return dld_link ();
11041 ;
11042 return 0;
11043}
11044_ACEOF
0b31b230
AX
11045rm -f conftest.$ac_objext conftest$ac_exeext
11046if { (ac_try="$ac_link"
11047case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11050esac
11051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11052$as_echo "$ac_try_echo") >&5
11053 (eval "$ac_link") 2>conftest.er1
11054 ac_status=$?
11055 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1
11057 cat conftest.err >&5
11058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest$ac_exeext && {
11063 test "$cross_compiling" = yes ||
11064 $as_test_x conftest$ac_exeext
11065 }; then
10946b02
AX
11066 ac_cv_lib_dld_dld_link=yes
11067else
0b31b230
AX
11068 $as_echo "$as_me: failed program was:" >&5
11069sed 's/^/| /' conftest.$ac_ext >&5
11070
11071 ac_cv_lib_dld_dld_link=no
10946b02 11072fi
0b31b230
AX
11073
11074rm -rf conftest.dSYM
11075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076 conftest$ac_exeext conftest.$ac_ext
10946b02
AX
11077LIBS=$ac_check_lib_save_LIBS
11078fi
0b31b230 11079{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10946b02 11080$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
0b31b230
AX
11081if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11082 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10946b02
AX
11083fi
11084
11085
11086fi
11087
11088
11089fi
11090
11091
11092fi
11093
11094
11095fi
11096
11097
11098fi
11099
11100 ;;
11101 esac
11102
0b31b230 11103 if test "x$lt_cv_dlopen" != xno; then
ac9cc135 11104 enable_dlopen=yes
0b31b230
AX
11105 else
11106 enable_dlopen=no
10946b02
AX
11107 fi
11108
11109 case $lt_cv_dlopen in
11110 dlopen)
0b31b230
AX
11111 save_CPPFLAGS="$CPPFLAGS"
11112 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10946b02 11113
0b31b230 11114 save_LDFLAGS="$LDFLAGS"
10946b02
AX
11115 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11116
0b31b230 11117 save_LIBS="$LIBS"
10946b02
AX
11118 LIBS="$lt_cv_dlopen_libs $LIBS"
11119
0b31b230 11120 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10946b02 11121$as_echo_n "checking whether a program can dlopen itself... " >&6; }
0b31b230 11122if test "${lt_cv_dlopen_self+set}" = set; then
10946b02
AX
11123 $as_echo_n "(cached) " >&6
11124else
0b31b230 11125 if test "$cross_compiling" = yes; then :
10946b02
AX
11126 lt_cv_dlopen_self=cross
11127else
11128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11129 lt_status=$lt_dlunknown
11130 cat > conftest.$ac_ext <<_LT_EOF
0b31b230 11131#line 11131 "configure"
10946b02
AX
11132#include "confdefs.h"
11133
11134#if HAVE_DLFCN_H
11135#include <dlfcn.h>
11136#endif
11137
11138#include <stdio.h>
11139
11140#ifdef RTLD_GLOBAL
11141# define LT_DLGLOBAL RTLD_GLOBAL
11142#else
11143# ifdef DL_GLOBAL
11144# define LT_DLGLOBAL DL_GLOBAL
11145# else
11146# define LT_DLGLOBAL 0
11147# endif
11148#endif
11149
11150/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11151 find out it does not work in some platform. */
11152#ifndef LT_DLLAZY_OR_NOW
11153# ifdef RTLD_LAZY
11154# define LT_DLLAZY_OR_NOW RTLD_LAZY
11155# else
11156# ifdef DL_LAZY
11157# define LT_DLLAZY_OR_NOW DL_LAZY
11158# else
11159# ifdef RTLD_NOW
11160# define LT_DLLAZY_OR_NOW RTLD_NOW
11161# else
11162# ifdef DL_NOW
11163# define LT_DLLAZY_OR_NOW DL_NOW
11164# else
11165# define LT_DLLAZY_OR_NOW 0
11166# endif
11167# endif
11168# endif
11169# endif
11170#endif
11171
0b31b230 11172void fnord() { int i=42;}
10946b02
AX
11173int main ()
11174{
11175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11176 int status = $lt_dlunknown;
11177
11178 if (self)
11179 {
11180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
0b31b230 11181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10946b02
AX
11182 /* dlclose (self); */
11183 }
11184 else
11185 puts (dlerror ());
11186
11187 return status;
11188}
11189_LT_EOF
0b31b230 11190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946b02
AX
11191 (eval $ac_link) 2>&5
11192 ac_status=$?
0b31b230
AX
11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10946b02
AX
11195 (./conftest; exit; ) >&5 2>/dev/null
11196 lt_status=$?
11197 case x$lt_status in
11198 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11199 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11200 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11201 esac
11202 else :
11203 # compilation failed
11204 lt_cv_dlopen_self=no
11205 fi
11206fi
11207rm -fr conftest*
11208
11209
11210fi
0b31b230 11211{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10946b02
AX
11212$as_echo "$lt_cv_dlopen_self" >&6; }
11213
0b31b230 11214 if test "x$lt_cv_dlopen_self" = xyes; then
10946b02 11215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
0b31b230 11216 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10946b02 11217$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
0b31b230 11218if test "${lt_cv_dlopen_self_static+set}" = set; then
10946b02
AX
11219 $as_echo_n "(cached) " >&6
11220else
0b31b230 11221 if test "$cross_compiling" = yes; then :
10946b02
AX
11222 lt_cv_dlopen_self_static=cross
11223else
11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225 lt_status=$lt_dlunknown
11226 cat > conftest.$ac_ext <<_LT_EOF
0b31b230 11227#line 11227 "configure"
10946b02
AX
11228#include "confdefs.h"
11229
11230#if HAVE_DLFCN_H
11231#include <dlfcn.h>
11232#endif
11233
11234#include <stdio.h>
11235
11236#ifdef RTLD_GLOBAL
11237# define LT_DLGLOBAL RTLD_GLOBAL
11238#else
11239# ifdef DL_GLOBAL
11240# define LT_DLGLOBAL DL_GLOBAL
11241# else
11242# define LT_DLGLOBAL 0
11243# endif
11244#endif
11245
11246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248#ifndef LT_DLLAZY_OR_NOW
11249# ifdef RTLD_LAZY
11250# define LT_DLLAZY_OR_NOW RTLD_LAZY
11251# else
11252# ifdef DL_LAZY
11253# define LT_DLLAZY_OR_NOW DL_LAZY
11254# else
11255# ifdef RTLD_NOW
11256# define LT_DLLAZY_OR_NOW RTLD_NOW
11257# else
11258# ifdef DL_NOW
11259# define LT_DLLAZY_OR_NOW DL_NOW
11260# else
11261# define LT_DLLAZY_OR_NOW 0
11262# endif
11263# endif
11264# endif
11265# endif
11266#endif
11267
0b31b230 11268void fnord() { int i=42;}
10946b02
AX
11269int main ()
11270{
11271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11272 int status = $lt_dlunknown;
11273
11274 if (self)
11275 {
11276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
0b31b230 11277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10946b02
AX
11278 /* dlclose (self); */
11279 }
11280 else
11281 puts (dlerror ());
11282
11283 return status;
11284}
11285_LT_EOF
0b31b230 11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946b02
AX
11287 (eval $ac_link) 2>&5
11288 ac_status=$?
0b31b230
AX
11289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10946b02
AX
11291 (./conftest; exit; ) >&5 2>/dev/null
11292 lt_status=$?
11293 case x$lt_status in
11294 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11295 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11296 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11297 esac
11298 else :
11299 # compilation failed
11300 lt_cv_dlopen_self_static=no
11301 fi
11302fi
11303rm -fr conftest*
11304
11305
11306fi
0b31b230 11307{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10946b02
AX
11308$as_echo "$lt_cv_dlopen_self_static" >&6; }
11309 fi
11310
0b31b230
AX
11311 CPPFLAGS="$save_CPPFLAGS"
11312 LDFLAGS="$save_LDFLAGS"
11313 LIBS="$save_LIBS"
10946b02
AX
11314 ;;
11315 esac
11316
11317 case $lt_cv_dlopen_self in
11318 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11319 *) enable_dlopen_self=unknown ;;
11320 esac
11321
11322 case $lt_cv_dlopen_self_static in
11323 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11324 *) enable_dlopen_self_static=unknown ;;
11325 esac
11326fi
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344striplib=
11345old_striplib=
0b31b230 11346{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10946b02
AX
11347$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11348if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11349 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11350 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
0b31b230 11351 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
11352$as_echo "yes" >&6; }
11353else
11354# FIXME - insert some real tests, host_os isn't really good enough
11355 case $host_os in
11356 darwin*)
0b31b230 11357 if test -n "$STRIP" ; then
10946b02
AX
11358 striplib="$STRIP -x"
11359 old_striplib="$STRIP -S"
0b31b230 11360 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
11361$as_echo "yes" >&6; }
11362 else
0b31b230 11363 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
11364$as_echo "no" >&6; }
11365 fi
11366 ;;
11367 *)
0b31b230 11368 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
11369$as_echo "no" >&6; }
11370 ;;
11371 esac
11372fi
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
0b31b230
AX
11385 # Report which library types will actually be built
11386 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10946b02 11387$as_echo_n "checking if libtool supports shared libraries... " >&6; }
0b31b230 11388 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10946b02
AX
11389$as_echo "$can_build_shared" >&6; }
11390
0b31b230 11391 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10946b02 11392$as_echo_n "checking whether to build shared libraries... " >&6; }
0b31b230 11393 test "$can_build_shared" = "no" && enable_shared=no
10946b02
AX
11394
11395 # On AIX, shared libraries and static libraries use the same namespace, and
11396 # are all built from PIC.
11397 case $host_os in
11398 aix3*)
0b31b230 11399 test "$enable_shared" = yes && enable_static=no
10946b02
AX
11400 if test -n "$RANLIB"; then
11401 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11402 postinstall_cmds='$RANLIB $lib'
11403 fi
11404 ;;
11405
11406 aix[4-9]*)
0b31b230
AX
11407 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11408 test "$enable_shared" = yes && enable_static=no
10946b02
AX
11409 fi
11410 ;;
11411 esac
0b31b230 11412 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10946b02
AX
11413$as_echo "$enable_shared" >&6; }
11414
0b31b230 11415 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10946b02
AX
11416$as_echo_n "checking whether to build static libraries... " >&6; }
11417 # Make sure either enable_shared or enable_static is yes.
0b31b230
AX
11418 test "$enable_shared" = yes || enable_static=yes
11419 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10946b02
AX
11420$as_echo "$enable_static" >&6; }
11421
11422
11423
11424
11425fi
11426ac_ext=c
11427ac_cpp='$CPP $CPPFLAGS'
11428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11430ac_compiler_gnu=$ac_cv_c_compiler_gnu
11431
0b31b230 11432CC="$lt_save_CC"
10946b02
AX
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446 ac_config_commands="$ac_config_commands libtool"
11447
11448
11449
11450
11451# Only expand once:
11452
11453
11454
11455
0b31b230 11456 { $as_echo "$as_me:$LINENO: checking spl author" >&5
10946b02 11457$as_echo_n "checking spl author... " >&6; }
0b31b230 11458 { $as_echo "$as_me:$LINENO: result: $SPL_META_AUTHOR" >&5
10946b02
AX
11459$as_echo "$SPL_META_AUTHOR" >&6; }
11460
0b31b230 11461 { $as_echo "$as_me:$LINENO: checking spl license" >&5
10946b02 11462$as_echo_n "checking spl license... " >&6; }
0b31b230 11463 { $as_echo "$as_me:$LINENO: result: $SPL_META_LICENSE" >&5
10946b02
AX
11464$as_echo "$SPL_META_LICENSE" >&6; }
11465
11466
11467
0b31b230 11468 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
10946b02
AX
11469$as_echo_n "checking linux distribution... " >&6; }
11470 if test -f /etc/toss-release ; then
11471 VENDOR=toss ;
11472 elif test -f /etc/fedora-release ; then
11473 VENDOR=fedora ;
11474 elif test -f /etc/redhat-release ; then
11475 VENDOR=redhat ;
11476 elif test -f /etc/gentoo-release ; then
11477 VENDOR=gentoo ;
11478 elif test -f /etc/arch-release ; then
11479 VENDOR=arch ;
11480 elif test -f /etc/SuSE-release ; then
11481 VENDOR=sles ;
11482 elif test -f /etc/slackware-version ; then
11483 VENDOR=slackware ;
11484 elif test -f /etc/lunar.release ; then
11485 VENDOR=lunar ;
11486 elif test -f /etc/lsb-release ; then
11487 VENDOR=ubuntu ;
11488 elif test -f /etc/debian_version ; then
11489 VENDOR=debian ;
11490 else
11491 VENDOR= ;
11492 fi
0b31b230 11493 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
10946b02
AX
11494$as_echo "$VENDOR" >&6; }
11495
11496
0b31b230 11497 { $as_echo "$as_me:$LINENO: checking default package type" >&5
10946b02
AX
11498$as_echo_n "checking default package type... " >&6; }
11499 case "$VENDOR" in
11500 toss) DEFAULT_PACKAGE=rpm ;;
11501 redhat) DEFAULT_PACKAGE=rpm ;;
11502 fedora) DEFAULT_PACKAGE=rpm ;;
11503 gentoo) DEFAULT_PACKAGE=tgz ;;
11504 arch) DEFAULT_PACKAGE=tgz ;;
11505 sles) DEFAULT_PACKAGE=rpm ;;
11506 slackware) DEFAULT_PACKAGE=tgz ;;
11507 lunar) DEFAULT_PACKAGE=tgz ;;
11508 ubuntu) DEFAULT_PACKAGE=deb ;;
11509 debian) DEFAULT_PACKAGE=deb ;;
11510 *) DEFAULT_PACKAGE=rpm ;;
11511 esac
11512
0b31b230 11513 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
10946b02
AX
11514$as_echo "$DEFAULT_PACKAGE" >&6; }
11515
11516
11517
11518 RPM=rpm
11519 RPMBUILD=rpmbuild
11520
0b31b230 11521 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
10946b02 11522$as_echo_n "checking whether $RPM is available... " >&6; }
0b31b230 11523 if tmp=$($RPM --version 2>/dev/null); then
10946b02
AX
11524
11525 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11526 HAVE_RPM=yes
0b31b230 11527 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
10946b02
AX
11528$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11529
11530else
11531
11532 HAVE_RPM=no
0b31b230 11533 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
10946b02
AX
11534$as_echo "$HAVE_RPM" >&6; }
11535
11536fi
11537
0b31b230
AX
11538
11539 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
10946b02 11540$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
0b31b230 11541 if tmp=$($RPMBUILD --version 2>/dev/null); then
10946b02
AX
11542
11543 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11544 HAVE_RPMBUILD=yes
0b31b230 11545 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
10946b02
AX
11546$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11547
11548else
11549
11550 HAVE_RPMBUILD=no
0b31b230 11551 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
10946b02
AX
11552$as_echo "$HAVE_RPMBUILD" >&6; }
11553
11554fi
11555
0b31b230 11556
10946b02
AX
11557 RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
11558 RPM_DEFINE_UTIL=
11559 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
11560 RPM_DEFINE_DKMS=
11561
11562 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11563 SRPM_DEFINE_UTIL=
11564 SRPM_DEFINE_KMOD=
11565 SRPM_DEFINE_DKMS=
11566
11567 RPM_SPEC_DIR="rpm/generic"
11568
11569# Check whether --with-spec was given.
0b31b230 11570if test "${with_spec+set}" = set; then
10946b02
AX
11571 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11572fi
11573
11574
0b31b230 11575 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
10946b02 11576$as_echo_n "checking whether spec files are available... " >&6; }
0b31b230 11577 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
10946b02
AX
11578$as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599 DPKG=dpkg
11600 DPKGBUILD=dpkg-buildpackage
11601
0b31b230 11602 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
10946b02 11603$as_echo_n "checking whether $DPKG is available... " >&6; }
0b31b230 11604 if tmp=$($DPKG --version 2>/dev/null); then
10946b02
AX
11605
11606 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11607 HAVE_DPKG=yes
0b31b230 11608 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
10946b02
AX
11609$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11610
11611else
11612
11613 HAVE_DPKG=no
0b31b230 11614 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
10946b02
AX
11615$as_echo "$HAVE_DPKG" >&6; }
11616
11617fi
11618
0b31b230
AX
11619
11620 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
10946b02 11621$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
0b31b230 11622 if tmp=$($DPKGBUILD --version 2>/dev/null); then
10946b02
AX
11623
11624 DPKGBUILD_VERSION=$(echo $tmp | \
11625 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11626 HAVE_DPKGBUILD=yes
0b31b230 11627 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
10946b02
AX
11628$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11629
11630else
11631
11632 HAVE_DPKGBUILD=no
0b31b230 11633 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
10946b02
AX
11634$as_echo "$HAVE_DPKGBUILD" >&6; }
11635
11636fi
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
0b31b230 11647
10946b02
AX
11648 ALIEN=alien
11649
0b31b230 11650 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
10946b02 11651$as_echo_n "checking whether $ALIEN is available... " >&6; }
0b31b230 11652 if tmp=$($ALIEN --version 2>/dev/null); then
10946b02
AX
11653
11654 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11655 HAVE_ALIEN=yes
0b31b230 11656 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
10946b02
AX
11657$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11658
11659else
11660
11661 HAVE_ALIEN=no
0b31b230 11662 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
10946b02
AX
11663$as_echo "$HAVE_ALIEN" >&6; }
11664
11665fi
11666
11667
11668
11669
11670
11671
11672
0b31b230 11673
10946b02
AX
11674 SPL_CONFIG=all
11675
11676# Check whether --with-config was given.
0b31b230 11677if test "${with_config+set}" = set; then
10946b02
AX
11678 withval=$with_config; SPL_CONFIG="$withval"
11679fi
11680
11681 # Check whether --enable-linux-builtin was given.
0b31b230 11682if test "${enable_linux_builtin+set}" = set; then
10946b02
AX
11683 enableval=$enable_linux_builtin;
11684else
11685 enable_linux_builtin=no
11686fi
11687
11688
0b31b230 11689 { $as_echo "$as_me:$LINENO: checking spl config" >&5
10946b02 11690$as_echo_n "checking spl config... " >&6; }
0b31b230 11691 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
10946b02
AX
11692$as_echo "$SPL_CONFIG" >&6; };
11693
11694
11695 case "$SPL_CONFIG" in
11696 kernel)
11697
11698
11699# Check whether --with-linux was given.
0b31b230 11700if test "${with_linux+set}" = set; then
10946b02
AX
11701 withval=$with_linux; kernelsrc="$withval"
11702fi
11703
11704
11705
11706# Check whether --with-linux-obj was given.
0b31b230 11707if test "${with_linux_obj+set}" = set; then
10946b02
AX
11708 withval=$with_linux_obj; kernelbuild="$withval"
11709fi
11710
11711
0b31b230 11712 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
10946b02
AX
11713$as_echo_n "checking kernel source directory... " >&6; }
11714 if test -z "$kernelsrc"; then
11715 if test -e "/lib/modules/$(uname -r)/source"; then
11716 headersdir="/lib/modules/$(uname -r)/source"
11717 sourcelink=$(readlink -f "$headersdir")
11718 elif test -e "/lib/modules/$(uname -r)/build"; then
11719 headersdir="/lib/modules/$(uname -r)/build"
11720 sourcelink=$(readlink -f "$headersdir")
11721 else
11722 sourcelink=$(ls -1d /usr/src/kernels/* \
11723 /usr/src/linux-* \
11724 2>/dev/null | grep -v obj | tail -1)
11725 fi
11726
11727 if test -n "$sourcelink" && test -e ${sourcelink}; then
11728 kernelsrc=`readlink -f ${sourcelink}`
11729 else
11730 kernelsrc="Not found"
11731 fi
11732 else
11733 if test "$kernelsrc" = "NONE"; then
11734 kernsrcver=NONE
11735 fi
11736 fi
11737
0b31b230 11738 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
10946b02
AX
11739$as_echo "$kernelsrc" >&6; }
11740 if test ! -d "$kernelsrc"; then
0b31b230
AX
11741 { { $as_echo "$as_me:$LINENO: error:
11742 *** Please make sure the kernel devel package for your distribution
11743 *** is installed and then try again. If that fails, you can specify the
11744 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11745$as_echo "$as_me: error:
10946b02
AX
11746 *** Please make sure the kernel devel package for your distribution
11747 *** is installed and then try again. If that fails, you can specify the
0b31b230
AX
11748 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11749 { (exit 1); exit 1; }; }
10946b02
AX
11750 fi
11751
0b31b230 11752 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
10946b02
AX
11753$as_echo_n "checking kernel build directory... " >&6; }
11754 if test -z "$kernelbuild"; then
11755 if test -e "/lib/modules/$(uname -r)/build"; then
11756 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11757 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11758 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11759 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11760 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11761 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11762 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11763 else
11764 kernelbuild=${kernelsrc}
11765 fi
11766 fi
0b31b230 11767 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
10946b02
AX
11768$as_echo "$kernelbuild" >&6; }
11769
0b31b230 11770 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
10946b02
AX
11771$as_echo_n "checking kernel source version... " >&6; }
11772 utsrelease1=$kernelbuild/include/linux/version.h
11773 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11774 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11775 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11776 utsrelease=linux/version.h
11777 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11778 utsrelease=linux/utsrelease.h
11779 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11780 utsrelease=generated/utsrelease.h
11781 fi
11782
11783 if test "$utsrelease"; then
11784 kernsrcver=`(echo "#include <$utsrelease>";
11785 echo "kernsrcver=UTS_RELEASE") |
11786 cpp -I $kernelbuild/include |
11787 grep "^kernsrcver=" | cut -d \" -f 2`
11788
11789 if test -z "$kernsrcver"; then
0b31b230 11790 { $as_echo "$as_me:$LINENO: result: Not found" >&5
10946b02 11791$as_echo "Not found" >&6; }
0b31b230
AX
11792 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11793$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11794 { (exit 1); exit 1; }; }
10946b02
AX
11795 fi
11796 else
0b31b230 11797 { $as_echo "$as_me:$LINENO: result: Not found" >&5
10946b02
AX
11798$as_echo "Not found" >&6; }
11799 if test "x$enable_linux_builtin" != xyes; then
0b31b230
AX
11800 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11801$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11802 { (exit 1); exit 1; }; }
10946b02 11803 else
0b31b230
AX
11804 { { $as_echo "$as_me:$LINENO: error:
11805 *** Cannot find UTS_RELEASE definition.
11806 *** Please run 'make prepare' inside the kernel source tree." >&5
11807$as_echo "$as_me: error:
10946b02 11808 *** Cannot find UTS_RELEASE definition.
0b31b230
AX
11809 *** Please run 'make prepare' inside the kernel source tree." >&2;}
11810 { (exit 1); exit 1; }; }
10946b02
AX
11811 fi
11812 fi
11813
0b31b230 11814 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
10946b02
AX
11815$as_echo "$kernsrcver" >&6; }
11816
11817 LINUX=${kernelsrc}
11818 LINUX_OBJ=${kernelbuild}
11819 LINUX_VERSION=${kernsrcver}
11820
11821
11822
11823
11824
11825
11826 modpost=$LINUX/scripts/Makefile.modpost
0b31b230 11827 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
10946b02
AX
11828$as_echo_n "checking kernel file name for module symbols... " >&6; }
11829 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
11830 if grep -q Modules.symvers $modpost; then
11831 LINUX_SYMBOLS=Modules.symvers
11832 else
11833 LINUX_SYMBOLS=Module.symvers
11834 fi
11835
11836 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
0b31b230
AX
11837 { { $as_echo "$as_me:$LINENO: error:
11838 *** Please make sure the kernel devel package for your distribution
11839 *** is installed. If you are building with a custom kernel, make sure the
11840 *** kernel is configured, built, and the '--with-linux=PATH' configure
11841 *** option refers to the location of the kernel source." >&5
11842$as_echo "$as_me: error:
10946b02
AX
11843 *** Please make sure the kernel devel package for your distribution
11844 *** is installed. If you are building with a custom kernel, make sure the
11845 *** kernel is configured, built, and the '--with-linux=PATH' configure
0b31b230
AX
11846 *** option refers to the location of the kernel source." >&2;}
11847 { (exit 1); exit 1; }; }
10946b02
AX
11848 fi
11849 else
11850 LINUX_SYMBOLS=NONE
11851 fi
0b31b230 11852 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
10946b02
AX
11853$as_echo "$LINUX_SYMBOLS" >&6; }
11854
11855
11856
11857
11858 if test "${LINUX_OBJ}" != "${LINUX}"; then
11859 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11860 fi
11861
11862
11863 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11864
11865
11866
0b31b230 11867 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
10946b02
AX
11868$as_echo_n "checking whether debugging is enabled... " >&6; }
11869 # Check whether --enable-debug was given.
0b31b230 11870if test "${enable_debug+set}" = set; then
10946b02
AX
11871 enableval=$enable_debug;
11872else
11873 enable_debug=no
11874fi
11875
11876
0b31b230 11877 if test "x$enable_debug" = xyes; then
10946b02
AX
11878
11879 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11880 DEBUG_CFLAGS="-DDEBUG -Werror"
11881 DEBUG_SPL="_with_debug"
11882
11883else
11884
11885 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11886 DEBUG_CFLAGS="-DNDEBUG"
11887 DEBUG_SPL="_without_debug"
11888
11889fi
11890
11891
11892
0b31b230
AX
11893
11894 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
10946b02
AX
11895$as_echo "$enable_debug" >&6; }
11896
11897
11898 # Check whether --enable-debug-kmem was given.
0b31b230 11899if test "${enable_debug_kmem+set}" = set; then
10946b02
AX
11900 enableval=$enable_debug_kmem;
11901else
f6188ddd 11902 enable_debug_kmem=no
10946b02
AX
11903fi
11904
11905
0b31b230 11906 if test "x$enable_debug_kmem" = xyes; then
10946b02
AX
11907
11908 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11909 DEBUG_KMEM="_with_debug_kmem"
11910
0b31b230
AX
11911cat >>confdefs.h <<\_ACEOF
11912#define DEBUG_KMEM 1
11913_ACEOF
10946b02
AX
11914
11915
11916else
11917
11918 DEBUG_KMEM="_without_debug_kmem"
11919
11920fi
11921
11922
0b31b230
AX
11923
11924 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
10946b02 11925$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
0b31b230 11926 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
10946b02
AX
11927$as_echo "$enable_debug_kmem" >&6; }
11928
11929
11930 # Check whether --enable-debug-kmem-tracking was given.
0b31b230 11931if test "${enable_debug_kmem_tracking+set}" = set; then
10946b02
AX
11932 enableval=$enable_debug_kmem_tracking;
11933else
11934 enable_debug_kmem_tracking=no
11935fi
11936
11937
0b31b230 11938 if test "x$enable_debug_kmem_tracking" = xyes; then
10946b02
AX
11939
11940 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11941 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
11942
0b31b230
AX
11943cat >>confdefs.h <<\_ACEOF
11944#define DEBUG_KMEM_TRACKING 1
11945_ACEOF
10946b02
AX
11946
11947
11948else
11949
11950 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
11951
11952fi
11953
11954
0b31b230
AX
11955
11956 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
10946b02 11957$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
0b31b230 11958 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
10946b02
AX
11959$as_echo "$enable_debug_kmem_tracking" >&6; }
11960
0b31b230 11961 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
10946b02
AX
11962$as_echo_n "checking whether modules can be built... " >&6; }
11963
11964
11965cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
11966/* confdefs.h. */
11967_ACEOF
11968cat confdefs.h >>conftest.$ac_ext
11969cat >>conftest.$ac_ext <<_ACEOF
11970/* end confdefs.h. */
10946b02
AX
11971
11972
11973int
11974main (void)
11975{
11976
11977 ;
11978 return 0;
11979}
11980
11981_ACEOF
11982
11983
11984 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11985 echo "obj-m := conftest.o" >build/Makefile
11986 modpost_flag=''
11987 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11988 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
0b31b230
AX
11992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
0b31b230
AX
11997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
10946b02 11999
0b31b230 12000 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12001$as_echo "yes" >&6; }
12002
12003else
12004 $as_echo "$as_me: failed program was:" >&5
12005sed 's/^/| /' conftest.$ac_ext >&5
12006
0b31b230 12007 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
12008$as_echo "no" >&6; }
12009 if test "x$enable_linux_builtin" != xyes; then
0b31b230
AX
12010 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
12011$as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
12012 { (exit 1); exit 1; }; }
10946b02 12013 else
0b31b230 12014 { { $as_echo "$as_me:$LINENO: error:
10946b02 12015 *** Unable to build an empty module.
0b31b230
AX
12016 *** Please run 'make scripts' inside the kernel source tree." >&5
12017$as_echo "$as_me: error:
12018 *** Unable to build an empty module.
12019 *** Please run 'make scripts' inside the kernel source tree." >&2;}
12020 { (exit 1); exit 1; }; }
10946b02
AX
12021 fi
12022
12023
12024
12025fi
0b31b230 12026
10946b02
AX
12027 rm -Rf build
12028
12029
12030
0b31b230 12031 if test "x$cross_compiling" != xyes; then
879bbbc7 12032
0b31b230
AX
12033 if test "$cross_compiling" = yes; then
12034 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 12035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0b31b230
AX
12036{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12037See \`config.log' for more details." >&5
12038$as_echo "$as_me: error: cannot run test program while cross compiling
12039See \`config.log' for more details." >&2;}
12040 { (exit 1); exit 1; }; }; }
10946b02 12041else
0b31b230 12042 cat >conftest.$ac_ext <<_ACEOF
10946b02 12043
0b31b230
AX
12044 /* confdefs.h. */
12045_ACEOF
12046cat confdefs.h >>conftest.$ac_ext
12047cat >>conftest.$ac_ext <<_ACEOF
12048/* end confdefs.h. */
10946b02 12049
879bbbc7 12050 #include "$LINUX/include/linux/license.h"
10946b02
AX
12051
12052int
12053main ()
12054{
12055
879bbbc7
AX
12056 return !license_is_gpl_compatible(
12057 "$SPL_META_LICENSE");
10946b02 12058
0b31b230
AX
12059 ;
12060 return 0;
12061}
12062
12063_ACEOF
12064rm -f conftest$ac_exeext
12065if { (ac_try="$ac_link"
12066case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12069esac
12070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12071$as_echo "$ac_try_echo") >&5
12072 (eval "$ac_link") 2>&5
12073 ac_status=$?
12074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12076 { (case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079esac
12080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12081$as_echo "$ac_try_echo") >&5
12082 (eval "$ac_try") 2>&5
12083 ac_status=$?
12084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086
10946b02 12087
0b31b230
AX
12088cat >>confdefs.h <<\_ACEOF
12089#define SPL_IS_GPL_COMPATIBLE 1
10946b02 12090_ACEOF
10946b02
AX
12091
12092
0b31b230
AX
12093else
12094 $as_echo "$as_me: program exited with status $ac_status" >&5
12095$as_echo "$as_me: failed program was:" >&5
12096sed 's/^/| /' conftest.$ac_ext >&5
12097
12098( exit $ac_status )
10946b02
AX
12099
12100
12101fi
0b31b230
AX
12102rm -rf conftest.dSYM
12103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10946b02
AX
12104fi
12105
12106
0b31b230 12107
879bbbc7
AX
12108fi
12109
10946b02 12110
0b31b230 12111
10946b02 12112 # Check whether --enable-atomic-spinlocks was given.
0b31b230 12113if test "${enable_atomic_spinlocks+set}" = set; then
10946b02
AX
12114 enableval=$enable_atomic_spinlocks;
12115else
12116 enable_atomic_spinlocks=check
12117fi
12118
12119
12120
12121
12122cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h. */
10946b02
AX
12128
12129
12130 #include <linux/fs.h>
12131
12132int
12133main (void)
12134{
12135
12136 atomic64_t *ptr __attribute__ ((unused));
12137
12138 ;
12139 return 0;
12140}
12141
12142_ACEOF
12143
12144
12145 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12146 echo "obj-m := conftest.o" >build/Makefile
12147 modpost_flag=''
12148 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12149 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
0b31b230
AX
12153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
0b31b230
AX
12158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
10946b02
AX
12160
12161 have_atomic64_t=yes
12162
0b31b230
AX
12163cat >>confdefs.h <<\_ACEOF
12164#define HAVE_ATOMIC64_T 1
12165_ACEOF
10946b02
AX
12166
12167
12168else
12169 $as_echo "$as_me: failed program was:" >&5
12170sed 's/^/| /' conftest.$ac_ext >&5
12171
12172 have_atomic64_t=no
12173
12174
12175
12176fi
0b31b230 12177
10946b02
AX
12178 rm -Rf build
12179
12180
12181
0b31b230 12182 if test "x$enable_atomic_spinlocks" = xcheck; then
10946b02 12183
0b31b230 12184 if test "x$have_atomic64_t" = xyes; then
10946b02
AX
12185
12186 enable_atomic_spinlocks=no
12187
12188else
12189
12190 enable_atomic_spinlocks=yes
12191
12192fi
12193
0b31b230 12194
10946b02
AX
12195fi
12196
0b31b230
AX
12197
12198 if test "x$enable_atomic_spinlocks" = xyes; then
10946b02
AX
12199
12200
0b31b230
AX
12201cat >>confdefs.h <<\_ACEOF
12202#define ATOMIC_SPINLOCK 1
12203_ACEOF
10946b02
AX
12204
12205
12206else
12207
0b31b230 12208 if test "x$have_atomic64_t" = xno; then
10946b02 12209
0b31b230 12210 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 12211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0b31b230
AX
12212{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12213See \`config.log' for more details." >&5
12214$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12215See \`config.log' for more details." >&2;}
12216 { (exit 1); exit 1; }; }; }
10946b02
AX
12217
12218fi
12219
0b31b230 12220
10946b02
AX
12221fi
12222
0b31b230
AX
12223
12224 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
10946b02 12225$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
0b31b230 12226 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
10946b02
AX
12227$as_echo "$enable_atomic_spinlocks" >&6; }
12228
0b31b230 12229 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
10946b02 12230$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
0b31b230 12231 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
10946b02
AX
12232$as_echo "$have_atomic64_t" >&6; }
12233
12234
12235 tmp_flags="$EXTRA_KCFLAGS"
12236 EXTRA_KCFLAGS="-Werror"
0b31b230 12237 { $as_echo "$as_me:$LINENO: checking whether old 2-argument shrinker exists" >&5
10946b02
AX
12238$as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
12239
12240
12241cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
10946b02
AX
12247
12248
12249 #include <linux/mm.h>
12250
12251 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
12252
12253int
12254main (void)
12255{
12256
12257 struct shrinker cache_shrinker = {
12258 .shrink = shrinker_cb,
12259 .seeks = DEFAULT_SEEKS,
12260 };
12261 register_shrinker(&cache_shrinker);
12262
12263 ;
12264 return 0;
12265}
12266
12267_ACEOF
12268
12269
12270 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12271 echo "obj-m := conftest.o" >build/Makefile
12272 modpost_flag=''
12273 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12274 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
0b31b230
AX
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
0b31b230
AX
12283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
10946b02 12285
0b31b230 12286 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12287$as_echo "yes" >&6; }
12288
0b31b230
AX
12289cat >>confdefs.h <<\_ACEOF
12290#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1
12291_ACEOF
10946b02
AX
12292
12293
12294else
12295 $as_echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
0b31b230 12298 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 12299$as_echo "no" >&6; }
0b31b230 12300 { $as_echo "$as_me:$LINENO: checking whether old 3-argument shrinker exists" >&5
10946b02
AX
12301$as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
12302
12303
12304cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12305/* confdefs.h. */
12306_ACEOF
12307cat confdefs.h >>conftest.$ac_ext
12308cat >>conftest.$ac_ext <<_ACEOF
12309/* end confdefs.h. */
10946b02
AX
12310
12311
12312 #include <linux/mm.h>
12313
12314 int shrinker_cb(struct shrinker *, int nr_to_scan,
12315 gfp_t gfp_mask);
12316
12317int
12318main (void)
12319{
12320
12321 struct shrinker cache_shrinker = {
12322 .shrink = shrinker_cb,
12323 .seeks = DEFAULT_SEEKS,
12324 };
12325 register_shrinker(&cache_shrinker);
12326
12327 ;
12328 return 0;
12329}
12330
12331_ACEOF
12332
12333
12334 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12335 echo "obj-m := conftest.o" >build/Makefile
12336 modpost_flag=''
12337 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12338 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
0b31b230
AX
12342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
0b31b230
AX
12347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
10946b02 12349
0b31b230 12350 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12351$as_echo "yes" >&6; }
12352
0b31b230
AX
12353cat >>confdefs.h <<\_ACEOF
12354#define HAVE_3ARGS_SHRINKER_CALLBACK 1
12355_ACEOF
10946b02
AX
12356
12357
12358else
12359 $as_echo "$as_me: failed program was:" >&5
12360sed 's/^/| /' conftest.$ac_ext >&5
12361
0b31b230 12362 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 12363$as_echo "no" >&6; }
0b31b230 12364 { $as_echo "$as_me:$LINENO: checking whether new 2-argument shrinker exists" >&5
10946b02
AX
12365$as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
12366
12367
12368cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12369/* confdefs.h. */
12370_ACEOF
12371cat confdefs.h >>conftest.$ac_ext
12372cat >>conftest.$ac_ext <<_ACEOF
12373/* end confdefs.h. */
10946b02
AX
12374
12375
12376 #include <linux/mm.h>
12377
12378 int shrinker_cb(struct shrinker *,
12379 struct shrink_control *sc);
12380
12381int
12382main (void)
12383{
12384
12385 struct shrinker cache_shrinker = {
12386 .shrink = shrinker_cb,
12387 .seeks = DEFAULT_SEEKS,
12388 };
12389 register_shrinker(&cache_shrinker);
12390
12391 ;
12392 return 0;
12393}
12394
12395_ACEOF
12396
12397
12398 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12399 echo "obj-m := conftest.o" >build/Makefile
12400 modpost_flag=''
12401 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12402 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12404 (eval $ac_try) 2>&5
12405 ac_status=$?
0b31b230
AX
12406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
0b31b230
AX
12411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
10946b02 12413
0b31b230 12414 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12415$as_echo "yes" >&6; }
12416
0b31b230
AX
12417cat >>confdefs.h <<\_ACEOF
12418#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1
12419_ACEOF
10946b02
AX
12420
12421
12422else
12423 $as_echo "$as_me: failed program was:" >&5
12424sed 's/^/| /' conftest.$ac_ext >&5
12425
0b31b230 12426 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 12427$as_echo "no" >&6; }
0b31b230 12428 { $as_echo "$as_me:$LINENO: checking whether ->count_objects callback exists" >&5
10946b02
AX
12429$as_echo_n "checking whether ->count_objects callback exists... " >&6; }
12430
12431
12432cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12433/* confdefs.h. */
12434_ACEOF
12435cat confdefs.h >>conftest.$ac_ext
12436cat >>conftest.$ac_ext <<_ACEOF
12437/* end confdefs.h. */
10946b02
AX
12438
12439
12440 #include <linux/mm.h>
12441
12442 unsigned long shrinker_cb(
12443 struct shrinker *,
12444 struct shrink_control *sc);
12445
12446int
12447main (void)
12448{
12449
12450 struct shrinker cache_shrinker = {
12451 .count_objects = shrinker_cb,
12452 .scan_objects = shrinker_cb,
12453 .seeks = DEFAULT_SEEKS,
12454 };
12455 register_shrinker(&cache_shrinker);
12456
12457 ;
12458 return 0;
12459}
12460
12461_ACEOF
12462
12463
12464 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12465 echo "obj-m := conftest.o" >build/Makefile
12466 modpost_flag=''
12467 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12468 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
0b31b230
AX
12472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
0b31b230
AX
12477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
10946b02 12479
0b31b230 12480 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12481$as_echo "yes" >&6; }
12482
0b31b230
AX
12483cat >>confdefs.h <<\_ACEOF
12484#define HAVE_SPLIT_SHRINKER_CALLBACK 1
12485_ACEOF
10946b02
AX
12486
12487
12488else
12489 $as_echo "$as_me: failed program was:" >&5
12490sed 's/^/| /' conftest.$ac_ext >&5
12491
0b31b230
AX
12492 { { $as_echo "$as_me:$LINENO: error: error" >&5
12493$as_echo "$as_me: error: error" >&2;}
12494 { (exit 1); exit 1; }; }
10946b02
AX
12495
12496
12497
12498fi
0b31b230 12499
10946b02
AX
12500 rm -Rf build
12501
12502
12503
12504
12505
12506fi
0b31b230 12507
10946b02
AX
12508 rm -Rf build
12509
12510
12511
12512
12513
12514fi
0b31b230 12515
10946b02
AX
12516 rm -Rf build
12517
12518
12519
12520
12521
12522fi
0b31b230 12523
10946b02
AX
12524 rm -Rf build
12525
12526
12527 EXTRA_KCFLAGS="$tmp_flags"
12528
12529
0b31b230 12530 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
10946b02
AX
12531$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12532
12533
12534cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12535/* confdefs.h. */
12536_ACEOF
12537cat confdefs.h >>conftest.$ac_ext
12538cat >>conftest.$ac_ext <<_ACEOF
12539/* end confdefs.h. */
10946b02
AX
12540
12541
12542 #include <linux/sysctl.h>
12543
12544int
12545main (void)
12546{
12547
12548 struct ctl_table ctl __attribute__ ((unused));
12549 ctl.ctl_name = 0;
12550
12551 ;
12552 return 0;
12553}
12554
12555_ACEOF
12556
12557
12558 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12559 echo "obj-m := conftest.o" >build/Makefile
12560 modpost_flag=''
12561 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12562 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12564 (eval $ac_try) 2>&5
12565 ac_status=$?
0b31b230
AX
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
0b31b230
AX
12571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
10946b02 12573
0b31b230 12574 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12575$as_echo "yes" >&6; }
12576
0b31b230
AX
12577cat >>confdefs.h <<\_ACEOF
12578#define HAVE_CTL_NAME 1
12579_ACEOF
10946b02
AX
12580
12581
12582else
12583 $as_echo "$as_me: failed program was:" >&5
12584sed 's/^/| /' conftest.$ac_ext >&5
12585
0b31b230 12586 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
12587$as_echo "no" >&6; }
12588
12589
12590
12591fi
0b31b230 12592
10946b02
AX
12593 rm -Rf build
12594
12595
12596
12597
0b31b230 12598 { $as_echo "$as_me:$LINENO: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
0f836a62
AX
12599$as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
12600
12601
12602cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12603/* confdefs.h. */
12604_ACEOF
12605cat confdefs.h >>conftest.$ac_ext
12606cat >>conftest.$ac_ext <<_ACEOF
12607/* end confdefs.h. */
0f836a62
AX
12608
12609
12610 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
12611 #error CONFIG_TRIM_UNUSED_KSYMS not defined
12612 #endif
12613
12614int
12615main (void)
12616{
12617
12618 ;
12619 return 0;
12620}
12621
12622_ACEOF
12623
12624
12625 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12626 echo "obj-m := conftest.o" >build/Makefile
12627 modpost_flag=''
12628 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12629 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
0b31b230
AX
12633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
0b31b230
AX
12638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
0f836a62 12640
0b31b230 12641 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
12642$as_echo "yes" >&6; }
12643
12644else
12645 $as_echo "$as_me: failed program was:" >&5
12646sed 's/^/| /' conftest.$ac_ext >&5
12647
0b31b230 12648 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62 12649$as_echo "no" >&6; }
0b31b230
AX
12650 { { $as_echo "$as_me:$LINENO: error:
12651 *** This kernel has unused symbols trimming enabled, please disable.
12652 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&5
12653$as_echo "$as_me: error:
0f836a62 12654 *** This kernel has unused symbols trimming enabled, please disable.
0b31b230
AX
12655 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&2;}
12656 { (exit 1); exit 1; }; }
0f836a62
AX
12657
12658
12659
12660fi
0b31b230 12661
0f836a62
AX
12662 rm -Rf build
12663
12664
12665
12666
0b31b230 12667 { $as_echo "$as_me:$LINENO: checking whether PDE_DATA() is available" >&5
10946b02
AX
12668$as_echo_n "checking whether PDE_DATA() is available... " >&6; }
12669
12670
12671
12672cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12673/* confdefs.h. */
12674_ACEOF
12675cat confdefs.h >>conftest.$ac_ext
12676cat >>conftest.$ac_ext <<_ACEOF
12677/* end confdefs.h. */
10946b02
AX
12678
12679
12680 #include <linux/proc_fs.h>
12681
12682int
12683main (void)
12684{
12685
12686 PDE_DATA(NULL);
12687
12688 ;
12689 return 0;
12690}
12691
12692_ACEOF
12693
12694
12695 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12696 echo "obj-m := conftest.o" >build/Makefile
12697 modpost_flag=''
12698 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12699 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
0b31b230
AX
12703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
0b31b230
AX
12708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
10946b02
AX
12710 rc=0
12711else
12712 $as_echo "$as_me: failed program was:" >&5
12713sed 's/^/| /' conftest.$ac_ext >&5
12714 rc=1
12715
12716
12717fi
0b31b230 12718
10946b02
AX
12719 rm -Rf build
12720
12721
12722 if test $rc -ne 0; then :
12723
0b31b230 12724 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
12725$as_echo "no" >&6; }
12726
12727 else
12728 if test "x$enable_linux_builtin" != xyes; then
12729
12730 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
12731 $LINUX_OBJ/Module*.symvers 2>/dev/null
12732 rc=$?
12733 if test $rc -ne 0; then
12734 export=0
12735 for file in ; do
12736 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
12737 "$LINUX_OBJ/$file" 2>/dev/null
12738 rc=$?
12739 if test $rc -eq 0; then
12740 export=1
12741 break;
12742 fi
12743 done
12744 if test $export -eq 0; then :
12745 rc=1
12746 else :
12747 rc=0
12748 fi
12749 else :
12750 rc=0
12751 fi
12752
12753 fi
12754 if test $rc -ne 0; then :
12755
0b31b230 12756 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
12757$as_echo "no" >&6; }
12758
12759 else :
12760
0b31b230 12761 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12762$as_echo "yes" >&6; }
12763
0b31b230
AX
12764cat >>confdefs.h <<\_ACEOF
12765#define HAVE_PDE_DATA 1
12766_ACEOF
10946b02
AX
12767
12768
12769 fi
12770 fi
12771
12772
12773 tmp_flags="$EXTRA_KCFLAGS"
12774 EXTRA_KCFLAGS="-Werror"
0b31b230 12775 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() requires const struct path *" >&5
10946b02
AX
12776$as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
12777
12778
12779cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12780/* confdefs.h. */
12781_ACEOF
12782cat confdefs.h >>conftest.$ac_ext
12783cat >>conftest.$ac_ext <<_ACEOF
12784/* end confdefs.h. */
10946b02
AX
12785
12786
12787 #include <linux/spinlock.h>
12788 #include <linux/fs_struct.h>
12789 #include <linux/path.h>
12790 void (*const set_fs_pwd_func)
12791 (struct fs_struct *, const struct path *)
12792 = set_fs_pwd;
12793
12794int
12795main (void)
12796{
12797
12798 return 0;
12799
12800 ;
12801 return 0;
12802}
12803
12804_ACEOF
12805
12806
12807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12808 echo "obj-m := conftest.o" >build/Makefile
12809 modpost_flag=''
12810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12811 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
0b31b230
AX
12815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
0b31b230
AX
12820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
10946b02 12822
0b31b230 12823 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12824$as_echo "yes" >&6; }
12825
0b31b230
AX
12826cat >>confdefs.h <<\_ACEOF
12827#define HAVE_SET_FS_PWD_WITH_CONST 1
12828_ACEOF
10946b02
AX
12829
12830
12831else
12832 $as_echo "$as_me: failed program was:" >&5
12833sed 's/^/| /' conftest.$ac_ext >&5
12834
12835
12836
12837cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12838/* confdefs.h. */
12839_ACEOF
12840cat confdefs.h >>conftest.$ac_ext
12841cat >>conftest.$ac_ext <<_ACEOF
12842/* end confdefs.h. */
10946b02
AX
12843
12844
12845 #include <linux/spinlock.h>
12846 #include <linux/fs_struct.h>
12847 #include <linux/path.h>
12848 void (*const set_fs_pwd_func)
12849 (struct fs_struct *, struct path *)
12850 = set_fs_pwd;
12851
12852int
12853main (void)
12854{
12855
12856 return 0;
12857
12858 ;
12859 return 0;
12860}
12861
12862_ACEOF
12863
12864
12865 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12866 echo "obj-m := conftest.o" >build/Makefile
12867 modpost_flag=''
12868 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12869 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
0b31b230
AX
12873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
0b31b230
AX
12878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
10946b02 12880
0b31b230 12881 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
12882$as_echo "no" >&6; }
12883
12884else
12885 $as_echo "$as_me: failed program was:" >&5
12886sed 's/^/| /' conftest.$ac_ext >&5
12887
0b31b230
AX
12888 { { $as_echo "$as_me:$LINENO: error: unknown" >&5
12889$as_echo "$as_me: error: unknown" >&2;}
12890 { (exit 1); exit 1; }; }
10946b02
AX
12891
12892
12893
12894fi
0b31b230 12895
10946b02
AX
12896 rm -Rf build
12897
12898
12899
12900
12901
12902fi
0b31b230 12903
10946b02
AX
12904 rm -Rf build
12905
12906
12907 EXTRA_KCFLAGS="$tmp_flags"
12908
0b31b230 12909 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
10946b02
AX
12910$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
12911
12912
12913cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12914/* confdefs.h. */
12915_ACEOF
12916cat confdefs.h >>conftest.$ac_ext
12917cat >>conftest.$ac_ext <<_ACEOF
12918/* end confdefs.h. */
10946b02
AX
12919
12920
12921 #include <linux/fs.h>
12922
12923int
12924main (void)
12925{
12926
12927 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
12928
12929 ;
12930 return 0;
12931}
12932
12933_ACEOF
12934
12935
12936 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12937 echo "obj-m := conftest.o" >build/Makefile
12938 modpost_flag=''
12939 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12940 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12942 (eval $ac_try) 2>&5
12943 ac_status=$?
0b31b230
AX
12944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
0b31b230
AX
12949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
10946b02 12951
0b31b230 12952 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12953$as_echo "yes" >&6; }
12954
0b31b230
AX
12955cat >>confdefs.h <<\_ACEOF
12956#define HAVE_2ARGS_VFS_UNLINK 1
12957_ACEOF
10946b02
AX
12958
12959
12960else
12961 $as_echo "$as_me: failed program was:" >&5
12962sed 's/^/| /' conftest.$ac_ext >&5
12963
0b31b230 12964 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 12965$as_echo "no" >&6; }
0b31b230 12966 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 3 args" >&5
10946b02
AX
12967$as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
12968
12969
12970cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
12971/* confdefs.h. */
12972_ACEOF
12973cat confdefs.h >>conftest.$ac_ext
12974cat >>conftest.$ac_ext <<_ACEOF
12975/* end confdefs.h. */
10946b02
AX
12976
12977
12978 #include <linux/fs.h>
12979
12980int
12981main (void)
12982{
12983
12984 vfs_unlink((struct inode *) NULL,
12985 (struct dentry *) NULL,
12986 (struct inode **) NULL);
12987
12988 ;
12989 return 0;
12990}
12991
12992_ACEOF
12993
12994
12995 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12996 echo "obj-m := conftest.o" >build/Makefile
12997 modpost_flag=''
12998 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12999 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
0b31b230
AX
13003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
0b31b230
AX
13008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
10946b02 13010
0b31b230 13011 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13012$as_echo "yes" >&6; }
13013
0b31b230
AX
13014cat >>confdefs.h <<\_ACEOF
13015#define HAVE_3ARGS_VFS_UNLINK 1
13016_ACEOF
10946b02
AX
13017
13018
13019else
13020 $as_echo "$as_me: failed program was:" >&5
13021sed 's/^/| /' conftest.$ac_ext >&5
13022
0b31b230
AX
13023 { { $as_echo "$as_me:$LINENO: error: no" >&5
13024$as_echo "$as_me: error: no" >&2;}
13025 { (exit 1); exit 1; }; }
10946b02
AX
13026
13027
13028
13029fi
0b31b230 13030
10946b02
AX
13031 rm -Rf build
13032
13033
13034
13035
13036
13037
13038fi
0b31b230 13039
10946b02
AX
13040 rm -Rf build
13041
13042
13043
0b31b230 13044 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
10946b02
AX
13045$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
13046
13047
13048cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13049/* confdefs.h. */
13050_ACEOF
13051cat confdefs.h >>conftest.$ac_ext
13052cat >>conftest.$ac_ext <<_ACEOF
13053/* end confdefs.h. */
10946b02
AX
13054
13055
13056 #include <linux/fs.h>
13057
13058int
13059main (void)
13060{
13061
13062 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
13063 (struct inode *) NULL, (struct dentry *) NULL);
13064
13065 ;
13066 return 0;
13067}
13068
13069_ACEOF
13070
13071
13072 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13073 echo "obj-m := conftest.o" >build/Makefile
13074 modpost_flag=''
13075 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13076 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13078 (eval $ac_try) 2>&5
13079 ac_status=$?
0b31b230
AX
13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
0b31b230
AX
13085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
10946b02 13087
0b31b230 13088 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13089$as_echo "yes" >&6; }
13090
0b31b230
AX
13091cat >>confdefs.h <<\_ACEOF
13092#define HAVE_4ARGS_VFS_RENAME 1
13093_ACEOF
10946b02
AX
13094
13095
13096else
13097 $as_echo "$as_me: failed program was:" >&5
13098sed 's/^/| /' conftest.$ac_ext >&5
13099
0b31b230 13100 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 13101$as_echo "no" >&6; }
0b31b230 13102 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 5 args" >&5
10946b02
AX
13103$as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
13104
13105
13106cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13107/* confdefs.h. */
13108_ACEOF
13109cat confdefs.h >>conftest.$ac_ext
13110cat >>conftest.$ac_ext <<_ACEOF
13111/* end confdefs.h. */
10946b02
AX
13112
13113
13114 #include <linux/fs.h>
13115
13116int
13117main (void)
13118{
13119
13120 vfs_rename((struct inode *) NULL,
13121 (struct dentry *) NULL,
13122 (struct inode *) NULL,
13123 (struct dentry *) NULL,
13124 (struct inode **) NULL);
13125
13126 ;
13127 return 0;
13128}
13129
13130_ACEOF
13131
13132
13133 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13134 echo "obj-m := conftest.o" >build/Makefile
13135 modpost_flag=''
13136 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13137 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
0b31b230
AX
13141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
0b31b230
AX
13146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
10946b02 13148
0b31b230 13149 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13150$as_echo "yes" >&6; }
13151
0b31b230
AX
13152cat >>confdefs.h <<\_ACEOF
13153#define HAVE_5ARGS_VFS_RENAME 1
13154_ACEOF
10946b02
AX
13155
13156
13157else
13158 $as_echo "$as_me: failed program was:" >&5
13159sed 's/^/| /' conftest.$ac_ext >&5
13160
0b31b230 13161 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 13162$as_echo "no" >&6; }
0b31b230 13163 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 6 args" >&5
10946b02
AX
13164$as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
13165
13166
13167cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13168/* confdefs.h. */
13169_ACEOF
13170cat confdefs.h >>conftest.$ac_ext
13171cat >>conftest.$ac_ext <<_ACEOF
13172/* end confdefs.h. */
10946b02
AX
13173
13174
13175 #include <linux/fs.h>
13176
13177int
13178main (void)
13179{
13180
13181 vfs_rename((struct inode *) NULL,
13182 (struct dentry *) NULL,
13183 (struct inode *) NULL,
13184 (struct dentry *) NULL,
13185 (struct inode **) NULL,
13186 (unsigned int) 0);
13187
13188 ;
13189 return 0;
13190}
13191
13192_ACEOF
13193
13194
13195 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13196 echo "obj-m := conftest.o" >build/Makefile
13197 modpost_flag=''
13198 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13199 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
0b31b230
AX
13203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13206 (eval $ac_try) 2>&5
13207 ac_status=$?
0b31b230
AX
13208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
10946b02 13210
0b31b230 13211 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13212$as_echo "yes" >&6; }
13213
0b31b230
AX
13214cat >>confdefs.h <<\_ACEOF
13215#define HAVE_6ARGS_VFS_RENAME 1
13216_ACEOF
10946b02
AX
13217
13218
13219else
13220 $as_echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
0b31b230
AX
13223 { { $as_echo "$as_me:$LINENO: error: no" >&5
13224$as_echo "$as_me: error: no" >&2;}
13225 { (exit 1); exit 1; }; }
10946b02
AX
13226
13227
13228
13229fi
0b31b230 13230
10946b02
AX
13231 rm -Rf build
13232
13233
13234
13235
13236
13237fi
0b31b230 13238
10946b02
AX
13239 rm -Rf build
13240
13241
13242
13243
13244
13245fi
0b31b230 13246
10946b02
AX
13247 rm -Rf build
13248
13249
13250
13251
0b31b230 13252 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
10946b02
AX
13253$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
13254
13255
13256cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13257/* confdefs.h. */
13258_ACEOF
13259cat confdefs.h >>conftest.$ac_ext
13260cat >>conftest.$ac_ext <<_ACEOF
13261/* end confdefs.h. */
10946b02
AX
13262
13263
13264 #include <linux/fs.h>
13265
13266int
13267main (void)
13268{
13269
13270 vfs_fsync(NULL, 0);
13271
13272 ;
13273 return 0;
13274}
13275
13276_ACEOF
13277
13278
13279 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13280 echo "obj-m := conftest.o" >build/Makefile
13281 modpost_flag=''
13282 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13283 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
0b31b230
AX
13287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
0b31b230
AX
13292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; }; then
10946b02 13294
0b31b230 13295 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13296$as_echo "yes" >&6; }
13297
0b31b230
AX
13298cat >>confdefs.h <<\_ACEOF
13299#define HAVE_2ARGS_VFS_FSYNC 1
13300_ACEOF
10946b02
AX
13301
13302
13303else
13304 $as_echo "$as_me: failed program was:" >&5
13305sed 's/^/| /' conftest.$ac_ext >&5
13306
0b31b230 13307 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
13308$as_echo "no" >&6; }
13309
13310
13311
13312fi
0b31b230 13313
10946b02
AX
13314 rm -Rf build
13315
13316
13317
13318
0b31b230 13319 { $as_echo "$as_me:$LINENO: checking whether truncate_range() inode operation is available" >&5
10946b02
AX
13320$as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
13321
13322
13323cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13324/* confdefs.h. */
13325_ACEOF
13326cat confdefs.h >>conftest.$ac_ext
13327cat >>conftest.$ac_ext <<_ACEOF
13328/* end confdefs.h. */
10946b02
AX
13329
13330
13331 #include <linux/fs.h>
13332
13333int
13334main (void)
13335{
13336
13337 struct inode_operations ops;
13338 ops.truncate_range = NULL;
13339
13340 ;
13341 return 0;
13342}
13343
13344_ACEOF
13345
13346
13347 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13348 echo "obj-m := conftest.o" >build/Makefile
13349 modpost_flag=''
13350 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13351 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
0b31b230
AX
13355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
0b31b230
AX
13360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
10946b02 13362
0b31b230 13363 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13364$as_echo "yes" >&6; }
13365
0b31b230
AX
13366cat >>confdefs.h <<\_ACEOF
13367#define HAVE_INODE_TRUNCATE_RANGE 1
13368_ACEOF
10946b02
AX
13369
13370
13371else
13372 $as_echo "$as_me: failed program was:" >&5
13373sed 's/^/| /' conftest.$ac_ext >&5
13374
0b31b230 13375 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
13376$as_echo "no" >&6; }
13377
13378
13379
13380fi
0b31b230 13381
10946b02
AX
13382 rm -Rf build
13383
13384
13385
13386
0b31b230 13387 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
10946b02
AX
13388$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
13389 tmp_flags="$EXTRA_KCFLAGS"
13390 EXTRA_KCFLAGS="-Werror"
13391
13392
13393cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13394/* confdefs.h. */
13395_ACEOF
13396cat confdefs.h >>conftest.$ac_ext
13397cat >>conftest.$ac_ext <<_ACEOF
13398/* end confdefs.h. */
10946b02
AX
13399
13400
13401 #include <linux/sched.h>
13402 #include <linux/fs_struct.h>
13403
13404int
13405main (void)
13406{
13407
13408 static struct fs_struct fs;
13409 spin_lock_init(&fs.lock);
13410
13411 ;
13412 return 0;
13413}
13414
13415_ACEOF
13416
13417
13418 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13419 echo "obj-m := conftest.o" >build/Makefile
13420 modpost_flag=''
13421 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13422 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
0b31b230
AX
13426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13429 (eval $ac_try) 2>&5
13430 ac_status=$?
0b31b230
AX
13431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; }; then
10946b02 13433
0b31b230 13434 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13435$as_echo "yes" >&6; }
13436
0b31b230
AX
13437cat >>confdefs.h <<\_ACEOF
13438#define HAVE_FS_STRUCT_SPINLOCK 1
13439_ACEOF
10946b02
AX
13440
13441
13442else
13443 $as_echo "$as_me: failed program was:" >&5
13444sed 's/^/| /' conftest.$ac_ext >&5
13445
0b31b230 13446 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
13447$as_echo "no" >&6; }
13448
13449
13450
13451fi
0b31b230 13452
10946b02
AX
13453 rm -Rf build
13454
13455
13456 EXTRA_KCFLAGS="$tmp_flags"
13457
13458
0b31b230 13459 { $as_echo "$as_me:$LINENO: checking whether kuid_t/kgid_t is available" >&5
10946b02
AX
13460$as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
13461
13462
13463cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13464/* confdefs.h. */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
13468/* end confdefs.h. */
10946b02
AX
13469
13470
13471 #include <linux/uidgid.h>
13472
13473int
13474main (void)
13475{
13476
13477 kuid_t userid = KUIDT_INIT(0);
13478 kgid_t groupid = KGIDT_INIT(0);
13479
13480 ;
13481 return 0;
13482}
13483
13484_ACEOF
13485
13486
13487 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13488 echo "obj-m := conftest.o" >build/Makefile
13489 modpost_flag=''
13490 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13491 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
0b31b230
AX
13495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
0b31b230
AX
13500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
10946b02
AX
13502
13503
13504
13505cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13506/* confdefs.h. */
13507_ACEOF
13508cat confdefs.h >>conftest.$ac_ext
13509cat >>conftest.$ac_ext <<_ACEOF
13510/* end confdefs.h. */
10946b02
AX
13511
13512
13513 #include <linux/uidgid.h>
13514
13515int
13516main (void)
13517{
13518
13519 kuid_t userid = 0;
13520 kgid_t groupid = 0;
13521
13522 ;
13523 return 0;
13524}
13525
13526_ACEOF
13527
13528
13529 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13530 echo "obj-m := conftest.o" >build/Makefile
13531 modpost_flag=''
13532 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13533 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13535 (eval $ac_try) 2>&5
13536 ac_status=$?
0b31b230
AX
13537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13540 (eval $ac_try) 2>&5
13541 ac_status=$?
0b31b230
AX
13542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
10946b02 13544
0b31b230 13545 { $as_echo "$as_me:$LINENO: result: yes; optional" >&5
10946b02
AX
13546$as_echo "yes; optional" >&6; }
13547
13548else
13549 $as_echo "$as_me: failed program was:" >&5
13550sed 's/^/| /' conftest.$ac_ext >&5
13551
0b31b230 13552 { $as_echo "$as_me:$LINENO: result: yes; mandatory" >&5
10946b02
AX
13553$as_echo "yes; mandatory" >&6; }
13554
0b31b230
AX
13555cat >>confdefs.h <<\_ACEOF
13556#define HAVE_KUIDGID_T 1
13557_ACEOF
10946b02
AX
13558
13559
13560
13561
13562fi
0b31b230 13563
10946b02
AX
13564 rm -Rf build
13565
13566
13567
13568else
13569 $as_echo "$as_me: failed program was:" >&5
13570sed 's/^/| /' conftest.$ac_ext >&5
13571
0b31b230 13572 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
13573$as_echo "no" >&6; }
13574
13575
13576
13577fi
0b31b230 13578
10946b02
AX
13579 rm -Rf build
13580
13581
13582
10946b02
AX
13583
13584
0b31b230
AX
13585 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
13586$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
13587
10946b02
AX
13588
13589cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13590/* confdefs.h. */
13591_ACEOF
13592cat confdefs.h >>conftest.$ac_ext
13593cat >>conftest.$ac_ext <<_ACEOF
13594/* end confdefs.h. */
10946b02
AX
13595
13596
0b31b230 13597 #include <linux/fs.h>
10946b02
AX
13598
13599int
13600main (void)
13601{
13602
0b31b230
AX
13603 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
13604 struct file_operations fops __attribute__ ((unused)) = {
13605 .fallocate = fallocate,
13606 };
10946b02
AX
13607
13608 ;
13609 return 0;
13610}
13611
13612_ACEOF
13613
13614
13615 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13616 echo "obj-m := conftest.o" >build/Makefile
13617 modpost_flag=''
13618 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13619 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
0b31b230
AX
13623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
0b31b230
AX
13628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630
13631 { $as_echo "$as_me:$LINENO: result: yes" >&5
13632$as_echo "yes" >&6; }
13633
13634cat >>confdefs.h <<\_ACEOF
13635#define HAVE_FILE_FALLOCATE 1
13636_ACEOF
13637
13638
10946b02
AX
13639else
13640 $as_echo "$as_me: failed program was:" >&5
13641sed 's/^/| /' conftest.$ac_ext >&5
0b31b230
AX
13642
13643 { $as_echo "$as_me:$LINENO: result: no" >&5
13644$as_echo "no" >&6; }
13645
10946b02
AX
13646
13647
13648fi
0b31b230 13649
10946b02
AX
13650 rm -Rf build
13651
13652
10946b02 13653
10946b02 13654
0b31b230
AX
13655 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
13656$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
10946b02 13657
10946b02 13658
0b31b230
AX
13659cat confdefs.h - <<_ACEOF >conftest.c
13660/* confdefs.h. */
13661_ACEOF
13662cat confdefs.h >>conftest.$ac_ext
13663cat >>conftest.$ac_ext <<_ACEOF
13664/* end confdefs.h. */
10946b02 13665
10946b02 13666
0b31b230
AX
13667 #include <linux/fs.h>
13668
13669int
13670main (void)
13671{
13672
13673 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
13674 struct inode_operations fops __attribute__ ((unused)) = {
13675 .fallocate = fallocate,
13676 };
13677
13678 ;
13679 return 0;
13680}
13681
13682_ACEOF
13683
13684
13685 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13686 echo "obj-m := conftest.o" >build/Makefile
13687 modpost_flag=''
13688 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13689 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
10946b02 13700
0b31b230 13701 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13702$as_echo "yes" >&6; }
13703
0b31b230
AX
13704cat >>confdefs.h <<\_ACEOF
13705#define HAVE_INODE_FALLOCATE 1
13706_ACEOF
10946b02
AX
13707
13708
0b31b230
AX
13709else
13710 $as_echo "$as_me: failed program was:" >&5
13711sed 's/^/| /' conftest.$ac_ext >&5
13712
13713 { $as_echo "$as_me:$LINENO: result: no" >&5
13714$as_echo "no" >&6; }
13715
13716
13717
13718fi
13719
13720 rm -Rf build
10946b02
AX
13721
13722
10946b02
AX
13723
13724
0b31b230 13725 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
10946b02
AX
13726$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
13727
13728
13729cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13730/* confdefs.h. */
13731_ACEOF
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
13734/* end confdefs.h. */
10946b02
AX
13735
13736
13737 #include <linux/fs.h>
13738
13739int
13740main (void)
13741{
13742
13743 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
0b31b230 13744 struct file_operations_no_const fops __attribute__ ((unused)) = {
10946b02
AX
13745 .fallocate = fallocate,
13746 };
13747
13748 ;
13749 return 0;
13750}
13751
13752_ACEOF
13753
13754
13755 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13756 echo "obj-m := conftest.o" >build/Makefile
13757 modpost_flag=''
13758 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13759 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13761 (eval $ac_try) 2>&5
13762 ac_status=$?
0b31b230
AX
13763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13766 (eval $ac_try) 2>&5
13767 ac_status=$?
0b31b230
AX
13768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
10946b02 13770
0b31b230 13771 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13772$as_echo "yes" >&6; }
13773
0b31b230
AX
13774cat >>confdefs.h <<\_ACEOF
13775#define HAVE_FILE_FALLOCATE 1
13776_ACEOF
10946b02
AX
13777
13778
13779else
13780 $as_echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
0b31b230 13783 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
13784$as_echo "no" >&6; }
13785
13786
13787
13788fi
0b31b230 13789
10946b02
AX
13790 rm -Rf build
13791
13792
13793
13794
0b31b230
AX
13795
13796 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
13797$as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
10946b02
AX
13798
13799
13800cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13801/* confdefs.h. */
13802_ACEOF
13803cat confdefs.h >>conftest.$ac_ext
13804cat >>conftest.$ac_ext <<_ACEOF
13805/* end confdefs.h. */
10946b02
AX
13806
13807
0b31b230
AX
13808 #if !defined(CONFIG_ZLIB_INFLATE) && \
13809 !defined(CONFIG_ZLIB_INFLATE_MODULE)
13810 #error CONFIG_ZLIB_INFLATE not defined
13811 #endif
10946b02
AX
13812
13813int
13814main (void)
13815{
13816
10946b02
AX
13817 ;
13818 return 0;
13819}
13820
13821_ACEOF
13822
13823
13824 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13825 echo "obj-m := conftest.o" >build/Makefile
13826 modpost_flag=''
13827 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13828 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
0b31b230
AX
13832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13835 (eval $ac_try) 2>&5
13836 ac_status=$?
0b31b230
AX
13837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
10946b02 13839
0b31b230 13840 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13841$as_echo "yes" >&6; }
13842
10946b02
AX
13843else
13844 $as_echo "$as_me: failed program was:" >&5
13845sed 's/^/| /' conftest.$ac_ext >&5
13846
0b31b230 13847 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 13848$as_echo "no" >&6; }
0b31b230
AX
13849 { { $as_echo "$as_me:$LINENO: error:
13850 *** This kernel does not include the required zlib inflate support.
13851 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&5
13852$as_echo "$as_me: error:
13853 *** This kernel does not include the required zlib inflate support.
13854 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&2;}
13855 { (exit 1); exit 1; }; }
10946b02
AX
13856
13857
13858
13859fi
0b31b230 13860
10946b02
AX
13861 rm -Rf build
13862
13863
13864
13865
0b31b230
AX
13866 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
13867$as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
10946b02
AX
13868
13869
13870cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13871/* confdefs.h. */
13872_ACEOF
13873cat confdefs.h >>conftest.$ac_ext
13874cat >>conftest.$ac_ext <<_ACEOF
13875/* end confdefs.h. */
10946b02
AX
13876
13877
0b31b230
AX
13878 #if !defined(CONFIG_ZLIB_DEFLATE) && \
13879 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
13880 #error CONFIG_ZLIB_DEFLATE not defined
13881 #endif
10946b02
AX
13882
13883int
13884main (void)
13885{
13886
10946b02
AX
13887 ;
13888 return 0;
13889}
13890
13891_ACEOF
13892
13893
13894 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13895 echo "obj-m := conftest.o" >build/Makefile
13896 modpost_flag=''
13897 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13898 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13900 (eval $ac_try) 2>&5
13901 ac_status=$?
0b31b230
AX
13902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
0b31b230
AX
13907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
10946b02 13909
0b31b230 13910 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13911$as_echo "yes" >&6; }
13912
10946b02
AX
13913else
13914 $as_echo "$as_me: failed program was:" >&5
13915sed 's/^/| /' conftest.$ac_ext >&5
13916
0b31b230 13917 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 13918$as_echo "no" >&6; }
0b31b230
AX
13919 { { $as_echo "$as_me:$LINENO: error:
13920 *** This kernel does not include the required zlib deflate support.
13921 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&5
13922$as_echo "$as_me: error:
13923 *** This kernel does not include the required zlib deflate support.
13924 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&2;}
13925 { (exit 1); exit 1; }; }
10946b02
AX
13926
13927
13928
13929fi
10946b02 13930
0b31b230 13931 rm -Rf build
10946b02
AX
13932
13933
13934
0b31b230
AX
13935 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
13936$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
10946b02
AX
13937
13938
13939cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
13940/* confdefs.h. */
13941_ACEOF
13942cat confdefs.h >>conftest.$ac_ext
13943cat >>conftest.$ac_ext <<_ACEOF
13944/* end confdefs.h. */
10946b02
AX
13945
13946
0b31b230 13947 #include <linux/zlib.h>
10946b02
AX
13948
13949int
13950main (void)
13951{
13952
0b31b230
AX
13953 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
13954
10946b02
AX
13955 ;
13956 return 0;
13957}
13958
13959_ACEOF
13960
13961
13962 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13963 echo "obj-m := conftest.o" >build/Makefile
13964 modpost_flag=''
13965 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13966 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
0b31b230
AX
13970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
0b31b230
AX
13975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977
13978 { $as_echo "$as_me:$LINENO: result: yes" >&5
13979$as_echo "yes" >&6; }
13980
13981cat >>confdefs.h <<\_ACEOF
13982#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
13983_ACEOF
10946b02 13984
10946b02
AX
13985
13986else
13987 $as_echo "$as_me: failed program was:" >&5
13988sed 's/^/| /' conftest.$ac_ext >&5
13989
0b31b230 13990 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 13991$as_echo "no" >&6; }
10946b02
AX
13992
13993
13994
13995fi
0b31b230 13996
10946b02
AX
13997 rm -Rf build
13998
13999
14000
14001
0b31b230
AX
14002 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
14003$as_echo_n "checking whether struct shrink_control exists... " >&6; }
10946b02
AX
14004
14005
14006cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14007/* confdefs.h. */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
14011/* end confdefs.h. */
10946b02
AX
14012
14013
0b31b230 14014 #include <linux/mm.h>
10946b02
AX
14015
14016int
14017main (void)
14018{
14019
0b31b230
AX
14020 struct shrink_control sc __attribute__ ((unused));
14021
14022 sc.nr_to_scan = 0;
14023 sc.gfp_mask = GFP_KERNEL;
14024
10946b02
AX
14025 ;
14026 return 0;
14027}
14028
14029_ACEOF
14030
14031
14032 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14033 echo "obj-m := conftest.o" >build/Makefile
14034 modpost_flag=''
14035 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14036 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14038 (eval $ac_try) 2>&5
14039 ac_status=$?
0b31b230
AX
14040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
0b31b230
AX
14045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
10946b02 14047
0b31b230 14048 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14049$as_echo "yes" >&6; }
14050
0b31b230
AX
14051cat >>confdefs.h <<\_ACEOF
14052#define HAVE_SHRINK_CONTROL_STRUCT 1
14053_ACEOF
14054
14055
10946b02
AX
14056else
14057 $as_echo "$as_me: failed program was:" >&5
14058sed 's/^/| /' conftest.$ac_ext >&5
14059
0b31b230 14060 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 14061$as_echo "no" >&6; }
10946b02
AX
14062
14063
14064
14065fi
0b31b230 14066
10946b02
AX
14067 rm -Rf build
14068
14069
14070
0b31b230
AX
14071
14072 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
14073$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
14074 tmp_flags="$EXTRA_KCFLAGS"
14075 EXTRA_KCFLAGS="-Werror"
10946b02
AX
14076
14077
14078cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14079/* confdefs.h. */
14080_ACEOF
14081cat confdefs.h >>conftest.$ac_ext
14082cat >>conftest.$ac_ext <<_ACEOF
14083/* end confdefs.h. */
10946b02
AX
14084
14085
0b31b230 14086 #include <linux/rwsem.h>
10946b02
AX
14087
14088int
14089main (void)
14090{
14091
0b31b230
AX
14092 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14093 raw_spinlock_t dummy_lock __attribute__ ((unused)) =
14094 __RAW_SPIN_LOCK_INITIALIZER(dummy_lock);
14095 dummy_semaphore.wait_lock = dummy_lock;
10946b02
AX
14096
14097 ;
14098 return 0;
14099}
14100
14101_ACEOF
14102
14103
14104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14105 echo "obj-m := conftest.o" >build/Makefile
14106 modpost_flag=''
14107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14108 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
0b31b230
AX
14112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
0b31b230
AX
14117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
10946b02 14119
0b31b230 14120 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14121$as_echo "yes" >&6; }
14122
0b31b230
AX
14123cat >>confdefs.h <<\_ACEOF
14124#define RWSEM_SPINLOCK_IS_RAW 1
14125_ACEOF
10946b02
AX
14126
14127
14128else
14129 $as_echo "$as_me: failed program was:" >&5
14130sed 's/^/| /' conftest.$ac_ext >&5
14131
0b31b230 14132 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14133$as_echo "no" >&6; }
14134
14135
14136
14137fi
0b31b230 14138
10946b02
AX
14139 rm -Rf build
14140
14141
0b31b230 14142 EXTRA_KCFLAGS="$tmp_flags"
10946b02
AX
14143
14144
0b31b230
AX
14145 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has member activity" >&5
14146$as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
14147 tmp_flags="$EXTRA_KCFLAGS"
14148 EXTRA_KCFLAGS="-Werror"
10946b02
AX
14149
14150
14151cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14152/* confdefs.h. */
14153_ACEOF
14154cat confdefs.h >>conftest.$ac_ext
14155cat >>conftest.$ac_ext <<_ACEOF
14156/* end confdefs.h. */
10946b02
AX
14157
14158
0b31b230 14159 #include <linux/rwsem.h>
10946b02
AX
14160
14161int
14162main (void)
14163{
14164
0b31b230
AX
14165 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14166 dummy_semaphore.activity = 0;
10946b02
AX
14167
14168 ;
14169 return 0;
14170}
14171
14172_ACEOF
14173
14174
14175 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14176 echo "obj-m := conftest.o" >build/Makefile
14177 modpost_flag=''
14178 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14179 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
0b31b230
AX
14183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
0b31b230
AX
14188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
10946b02 14190
0b31b230 14191 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14192$as_echo "yes" >&6; }
14193
0b31b230
AX
14194cat >>confdefs.h <<\_ACEOF
14195#define HAVE_RWSEM_ACTIVITY 1
14196_ACEOF
10946b02
AX
14197
14198
14199else
14200 $as_echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
0b31b230 14203 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14204$as_echo "no" >&6; }
14205
14206
14207
14208fi
0b31b230 14209
10946b02
AX
14210 rm -Rf build
14211
14212
0b31b230 14213 EXTRA_KCFLAGS="$tmp_flags"
10946b02
AX
14214
14215
0b31b230
AX
14216 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has atomic_long_t member count" >&5
14217$as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
10946b02
AX
14218 tmp_flags="$EXTRA_KCFLAGS"
14219 EXTRA_KCFLAGS="-Werror"
14220
14221
14222cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14223/* confdefs.h. */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h. */
10946b02
AX
14228
14229
14230 #include <linux/rwsem.h>
14231
14232int
14233main (void)
14234{
14235
0b31b230
AX
14236 DECLARE_RWSEM(dummy_semaphore);
14237 (void) atomic_long_read(&dummy_semaphore.count);
10946b02
AX
14238
14239 ;
14240 return 0;
14241}
14242
14243_ACEOF
14244
14245
14246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14247 echo "obj-m := conftest.o" >build/Makefile
14248 modpost_flag=''
14249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14250 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14252 (eval $ac_try) 2>&5
14253 ac_status=$?
0b31b230
AX
14254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
0b31b230
AX
14259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
10946b02 14261
0b31b230 14262 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14263$as_echo "yes" >&6; }
14264
0b31b230
AX
14265cat >>confdefs.h <<\_ACEOF
14266#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1
14267_ACEOF
10946b02
AX
14268
14269
14270else
14271 $as_echo "$as_me: failed program was:" >&5
14272sed 's/^/| /' conftest.$ac_ext >&5
14273
0b31b230 14274 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14275$as_echo "no" >&6; }
14276
14277
14278
0f836a62 14279fi
0b31b230 14280
0f836a62
AX
14281 rm -Rf build
14282
14283
14284 EXTRA_KCFLAGS="$tmp_flags"
14285
0b31b230
AX
14286 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/rt.h exists" >&5
14287$as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
0f836a62
AX
14288
14289
14290cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14291/* confdefs.h. */
14292_ACEOF
14293cat confdefs.h >>conftest.$ac_ext
14294cat >>conftest.$ac_ext <<_ACEOF
14295/* end confdefs.h. */
0f836a62
AX
14296
14297
0b31b230
AX
14298 #include <linux/sched.h>
14299 #include <linux/sched/rt.h>
0f836a62
AX
14300
14301int
14302main (void)
14303{
14304
0b31b230 14305 return 0;
0f836a62
AX
14306
14307 ;
14308 return 0;
14309}
14310
14311_ACEOF
14312
14313
14314 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14315 echo "obj-m := conftest.o" >build/Makefile
14316 modpost_flag=''
14317 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14318 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14320 (eval $ac_try) 2>&5
14321 ac_status=$?
0b31b230
AX
14322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
0b31b230
AX
14327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
0f836a62 14329
0f836a62 14330
0b31b230
AX
14331cat >>confdefs.h <<\_ACEOF
14332#define HAVE_SCHED_RT_HEADER 1
14333_ACEOF
0f836a62 14334
0b31b230
AX
14335 { $as_echo "$as_me:$LINENO: result: yes" >&5
14336$as_echo "yes" >&6; }
0f836a62
AX
14337
14338else
14339 $as_echo "$as_me: failed program was:" >&5
14340sed 's/^/| /' conftest.$ac_ext >&5
14341
0b31b230 14342 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
14343$as_echo "no" >&6; }
14344
14345
14346
14347fi
0f836a62 14348
0b31b230 14349 rm -Rf build
0f836a62 14350
0f836a62
AX
14351
14352
0b31b230
AX
14353 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/signal.h exists" >&5
14354$as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
0f836a62
AX
14355
14356
14357cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14358/* confdefs.h. */
14359_ACEOF
14360cat confdefs.h >>conftest.$ac_ext
14361cat >>conftest.$ac_ext <<_ACEOF
14362/* end confdefs.h. */
0f836a62
AX
14363
14364
0b31b230
AX
14365 #include <linux/sched.h>
14366 #include <linux/sched/signal.h>
0f836a62
AX
14367
14368int
14369main (void)
14370{
14371
0b31b230 14372 return 0;
0f836a62
AX
14373
14374 ;
14375 return 0;
14376}
14377
14378_ACEOF
14379
14380
14381 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14382 echo "obj-m := conftest.o" >build/Makefile
14383 modpost_flag=''
14384 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14385 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
0b31b230
AX
14389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
0b31b230
AX
14394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
0f836a62 14396
0f836a62 14397
0b31b230
AX
14398cat >>confdefs.h <<\_ACEOF
14399#define HAVE_SCHED_SIGNAL_HEADER 1
14400_ACEOF
0f836a62 14401
0b31b230
AX
14402 { $as_echo "$as_me:$LINENO: result: yes" >&5
14403$as_echo "yes" >&6; }
0f836a62
AX
14404
14405else
14406 $as_echo "$as_me: failed program was:" >&5
14407sed 's/^/| /' conftest.$ac_ext >&5
14408
0b31b230 14409 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
14410$as_echo "no" >&6; }
14411
14412
14413
10946b02 14414fi
0b31b230 14415
10946b02
AX
14416 rm -Rf build
14417
14418
10946b02 14419
0b31b230
AX
14420
14421 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 4 args" >&5
14422$as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
10946b02
AX
14423
14424
14425cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14426/* confdefs.h. */
14427_ACEOF
14428cat confdefs.h >>conftest.$ac_ext
14429cat >>conftest.$ac_ext <<_ACEOF
14430/* end confdefs.h. */
10946b02
AX
14431
14432
0b31b230 14433 #include <linux/fs.h>
10946b02
AX
14434
14435int
14436main (void)
14437{
14438
0b31b230
AX
14439 vfs_getattr((const struct path *)NULL,
14440 (struct kstat *)NULL,
14441 (u32)0,
14442 (unsigned int)0);
10946b02
AX
14443
14444 ;
14445 return 0;
14446}
14447
14448_ACEOF
14449
14450
14451 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14452 echo "obj-m := conftest.o" >build/Makefile
14453 modpost_flag=''
14454 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14455 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14457 (eval $ac_try) 2>&5
14458 ac_status=$?
0b31b230
AX
14459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
0b31b230
AX
14464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
10946b02 14466
0b31b230
AX
14467 { $as_echo "$as_me:$LINENO: result: yes" >&5
14468$as_echo "yes" >&6; }
10946b02 14469
0b31b230
AX
14470cat >>confdefs.h <<\_ACEOF
14471#define HAVE_4ARGS_VFS_GETATTR 1
14472_ACEOF
10946b02 14473
10946b02
AX
14474
14475else
14476 $as_echo "$as_me: failed program was:" >&5
14477sed 's/^/| /' conftest.$ac_ext >&5
14478
0b31b230 14479 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14480$as_echo "no" >&6; }
14481
14482
14483
14484fi
0b31b230 14485
10946b02
AX
14486 rm -Rf build
14487
14488
14489
14490
0b31b230
AX
14491 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 3 args" >&5
14492$as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
10946b02
AX
14493
14494
14495cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14496/* confdefs.h. */
14497_ACEOF
14498cat confdefs.h >>conftest.$ac_ext
14499cat >>conftest.$ac_ext <<_ACEOF
14500/* end confdefs.h. */
10946b02
AX
14501
14502
14503 #include <linux/fs.h>
14504
14505int
14506main (void)
14507{
14508
0b31b230
AX
14509 vfs_getattr((struct vfsmount *)NULL,
14510 (struct dentry *)NULL,
10946b02
AX
14511 (struct kstat *)NULL);
14512
14513 ;
14514 return 0;
14515}
14516
14517_ACEOF
14518
14519
14520 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14521 echo "obj-m := conftest.o" >build/Makefile
14522 modpost_flag=''
14523 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14524 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
0b31b230
AX
14528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
0b31b230
AX
14533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
10946b02 14535
0b31b230
AX
14536 { $as_echo "$as_me:$LINENO: result: yes" >&5
14537$as_echo "yes" >&6; }
10946b02 14538
0b31b230
AX
14539cat >>confdefs.h <<\_ACEOF
14540#define HAVE_3ARGS_VFS_GETATTR 1
14541_ACEOF
10946b02
AX
14542
14543
14544else
14545 $as_echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
0b31b230
AX
14548 { $as_echo "$as_me:$LINENO: result: no" >&5
14549$as_echo "no" >&6; }
14550
14551
14552
14553fi
14554
14555 rm -Rf build
14556
14557
14558
14559
14560 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 2 args" >&5
14561$as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
10946b02
AX
14562
14563
14564cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14565/* confdefs.h. */
14566_ACEOF
14567cat confdefs.h >>conftest.$ac_ext
14568cat >>conftest.$ac_ext <<_ACEOF
14569/* end confdefs.h. */
10946b02
AX
14570
14571
0b31b230 14572 #include <linux/fs.h>
10946b02
AX
14573
14574int
14575main (void)
14576{
14577
0b31b230
AX
14578 vfs_getattr((struct path *) NULL,
14579 (struct kstat *)NULL);
10946b02
AX
14580
14581 ;
14582 return 0;
14583}
14584
14585_ACEOF
14586
14587
14588 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14589 echo "obj-m := conftest.o" >build/Makefile
14590 modpost_flag=''
14591 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14592 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
0b31b230
AX
14596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
0b31b230
AX
14601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603
14604 { $as_echo "$as_me:$LINENO: result: yes" >&5
14605$as_echo "yes" >&6; }
14606
14607cat >>confdefs.h <<\_ACEOF
14608#define HAVE_2ARGS_VFS_GETATTR 1
14609_ACEOF
10946b02 14610
10946b02
AX
14611
14612else
14613 $as_echo "$as_me: failed program was:" >&5
14614sed 's/^/| /' conftest.$ac_ext >&5
14615
0b31b230
AX
14616 { $as_echo "$as_me:$LINENO: result: no" >&5
14617$as_echo "no" >&6; }
10946b02
AX
14618
14619
14620
14621fi
10946b02 14622
10946b02
AX
14623 rm -Rf build
14624
14625
14626
14627
0b31b230 14628 { $as_echo "$as_me:$LINENO: checking whether usleep_range() is available" >&5
10946b02
AX
14629$as_echo_n "checking whether usleep_range() is available... " >&6; }
14630
14631
14632cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14633/* confdefs.h. */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
14637/* end confdefs.h. */
10946b02
AX
14638
14639
14640 #include <linux/delay.h>
14641
14642int
14643main (void)
14644{
14645
14646 usleep_range(0, 0);
14647
14648 ;
14649 return 0;
14650}
14651
14652_ACEOF
14653
14654
14655 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14656 echo "obj-m := conftest.o" >build/Makefile
14657 modpost_flag=''
14658 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14659 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14661 (eval $ac_try) 2>&5
14662 ac_status=$?
0b31b230
AX
14663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14666 (eval $ac_try) 2>&5
14667 ac_status=$?
0b31b230
AX
14668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
10946b02 14670
0b31b230 14671 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14672$as_echo "yes" >&6; }
14673
0b31b230
AX
14674cat >>confdefs.h <<\_ACEOF
14675#define HAVE_USLEEP_RANGE 1
14676_ACEOF
10946b02
AX
14677
14678
14679else
14680 $as_echo "$as_me: failed program was:" >&5
14681sed 's/^/| /' conftest.$ac_ext >&5
14682
0b31b230 14683 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14684$as_echo "no" >&6; }
14685
14686
14687
14688fi
0b31b230 14689
10946b02
AX
14690 rm -Rf build
14691
14692
14693
14694
0b31b230 14695 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has allocflags" >&5
10946b02
AX
14696$as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
14697
14698
14699cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14700/* confdefs.h. */
14701_ACEOF
14702cat confdefs.h >>conftest.$ac_ext
14703cat >>conftest.$ac_ext <<_ACEOF
14704/* end confdefs.h. */
10946b02
AX
14705
14706
14707 #include <linux/slab.h>
14708
14709int
14710main (void)
14711{
14712
14713 struct kmem_cache cachep __attribute__ ((unused));
14714 cachep.allocflags = GFP_KERNEL;
14715
14716 ;
14717 return 0;
14718}
14719
14720_ACEOF
14721
14722
14723 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14724 echo "obj-m := conftest.o" >build/Makefile
14725 modpost_flag=''
14726 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14727 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14729 (eval $ac_try) 2>&5
14730 ac_status=$?
0b31b230
AX
14731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
0b31b230
AX
14736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
10946b02 14738
0b31b230 14739 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14740$as_echo "yes" >&6; }
14741
0b31b230
AX
14742cat >>confdefs.h <<\_ACEOF
14743#define HAVE_KMEM_CACHE_ALLOCFLAGS 1
14744_ACEOF
10946b02
AX
14745
14746
14747else
14748 $as_echo "$as_me: failed program was:" >&5
14749sed 's/^/| /' conftest.$ac_ext >&5
14750
0b31b230 14751 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14752$as_echo "no" >&6; }
14753
0b31b230 14754 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has gfpflags" >&5
10946b02
AX
14755$as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
14756
14757
14758cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14759/* confdefs.h. */
14760_ACEOF
14761cat confdefs.h >>conftest.$ac_ext
14762cat >>conftest.$ac_ext <<_ACEOF
14763/* end confdefs.h. */
10946b02
AX
14764
14765
14766 #include <linux/slab.h>
14767
14768int
14769main (void)
14770{
14771
14772 struct kmem_cache cachep __attribute__ ((unused));
14773 cachep.gfpflags = GFP_KERNEL;
14774
14775 ;
14776 return 0;
14777}
14778
14779_ACEOF
14780
14781
14782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14783 echo "obj-m := conftest.o" >build/Makefile
14784 modpost_flag=''
14785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14786 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
0b31b230
AX
14790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
0b31b230
AX
14795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
10946b02 14797
0b31b230 14798 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14799$as_echo "yes" >&6; }
14800
0b31b230
AX
14801cat >>confdefs.h <<\_ACEOF
14802#define HAVE_KMEM_CACHE_GFPFLAGS 1
14803_ACEOF
10946b02
AX
14804
14805
14806else
14807 $as_echo "$as_me: failed program was:" >&5
14808sed 's/^/| /' conftest.$ac_ext >&5
14809
0b31b230 14810 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14811$as_echo "no" >&6; }
14812
14813
14814
14815fi
0b31b230 14816
10946b02
AX
14817 rm -Rf build
14818
14819
14820
14821
14822
14823fi
0b31b230 14824
10946b02
AX
14825 rm -Rf build
14826
14827
14828
14829
0b31b230 14830 { $as_echo "$as_me:$LINENO: checking whether wait_on_bit() takes an action" >&5
10946b02
AX
14831$as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
14832
14833
14834cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14835/* confdefs.h. */
14836_ACEOF
14837cat confdefs.h >>conftest.$ac_ext
14838cat >>conftest.$ac_ext <<_ACEOF
14839/* end confdefs.h. */
10946b02
AX
14840
14841
14842 #include <linux/wait.h>
14843
14844int
14845main (void)
14846{
14847
14848 int (*action)(void *) = NULL;
14849 wait_on_bit(NULL, 0, action, 0);
14850
14851 ;
14852 return 0;
14853}
14854
14855_ACEOF
14856
14857
14858 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14859 echo "obj-m := conftest.o" >build/Makefile
14860 modpost_flag=''
14861 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14862 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
0b31b230
AX
14866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
0b31b230
AX
14871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
10946b02 14873
0b31b230 14874 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14875$as_echo "yes" >&6; }
14876
0b31b230
AX
14877cat >>confdefs.h <<\_ACEOF
14878#define HAVE_WAIT_ON_BIT_ACTION 1
14879_ACEOF
10946b02
AX
14880
14881
14882else
14883 $as_echo "$as_me: failed program was:" >&5
14884sed 's/^/| /' conftest.$ac_ext >&5
14885
0b31b230 14886 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14887$as_echo "no" >&6; }
14888
14889
14890
14891fi
0b31b230 14892
10946b02
AX
14893 rm -Rf build
14894
14895
14896
0f836a62 14897
0b31b230 14898 { $as_echo "$as_me:$LINENO: checking whether inode_lock_shared() exists" >&5
0f836a62
AX
14899$as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
14900 tmp_flags="$EXTRA_KCFLAGS"
14901 EXTRA_KCFLAGS="-Werror"
14902
14903
14904cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14905/* confdefs.h. */
14906_ACEOF
14907cat confdefs.h >>conftest.$ac_ext
14908cat >>conftest.$ac_ext <<_ACEOF
14909/* end confdefs.h. */
0f836a62
AX
14910
14911
14912 #include <linux/fs.h>
14913
14914int
14915main (void)
14916{
14917
14918 struct inode *inode = NULL;
14919 inode_lock_shared(inode);
14920
14921 ;
14922 return 0;
14923}
14924
14925_ACEOF
14926
14927
14928 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14929 echo "obj-m := conftest.o" >build/Makefile
14930 modpost_flag=''
14931 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14932 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
0b31b230
AX
14936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14939 (eval $ac_try) 2>&5
14940 ac_status=$?
0b31b230
AX
14941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
0f836a62 14943
0b31b230 14944 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
14945$as_echo "yes" >&6; }
14946
0b31b230
AX
14947cat >>confdefs.h <<\_ACEOF
14948#define HAVE_INODE_LOCK_SHARED 1
14949_ACEOF
0f836a62
AX
14950
14951
14952else
14953 $as_echo "$as_me: failed program was:" >&5
14954sed 's/^/| /' conftest.$ac_ext >&5
14955
0b31b230 14956 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
14957$as_echo "no" >&6; }
14958
14959
14960
14961fi
0b31b230 14962
0f836a62
AX
14963 rm -Rf build
14964
14965
14966 EXTRA_KCFLAGS="$tmp_flags"
14967
14968
0b31b230 14969 { $as_echo "$as_me:$LINENO: checking whether mutex has owner" >&5
0f836a62
AX
14970$as_echo_n "checking whether mutex has owner... " >&6; }
14971 tmp_flags="$EXTRA_KCFLAGS"
14972 EXTRA_KCFLAGS="-Werror"
14973
14974
14975cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
14976/* confdefs.h. */
14977_ACEOF
14978cat confdefs.h >>conftest.$ac_ext
14979cat >>conftest.$ac_ext <<_ACEOF
14980/* end confdefs.h. */
0f836a62
AX
14981
14982
14983 #include <linux/mutex.h>
14984 #include <linux/spinlock.h>
14985
14986int
14987main (void)
14988{
14989
14990 DEFINE_MUTEX(m);
14991 struct task_struct *t __attribute__ ((unused));
14992 t = m.owner;
14993
14994 ;
14995 return 0;
14996}
14997
14998_ACEOF
14999
15000
15001 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15002 echo "obj-m := conftest.o" >build/Makefile
15003 modpost_flag=''
15004 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15005 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
0b31b230
AX
15009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
15012 (eval $ac_try) 2>&5
15013 ac_status=$?
0b31b230
AX
15014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
0f836a62 15016
0b31b230 15017 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
15018$as_echo "yes" >&6; }
15019
0b31b230
AX
15020cat >>confdefs.h <<\_ACEOF
15021#define HAVE_MUTEX_OWNER 1
15022_ACEOF
0f836a62
AX
15023
15024
15025else
15026 $as_echo "$as_me: failed program was:" >&5
15027sed 's/^/| /' conftest.$ac_ext >&5
15028
0b31b230 15029 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
15030$as_echo "no" >&6; }
15031
15032
15033
ac9cc135 15034fi
0b31b230 15035
ac9cc135
AX
15036 rm -Rf build
15037
15038
15039 EXTRA_KCFLAGS="$tmp_flags"
15040
15041
0b31b230 15042 { $as_echo "$as_me:$LINENO: checking whether group_info->gid exists" >&5
ac9cc135
AX
15043$as_echo_n "checking whether group_info->gid exists... " >&6; }
15044 tmp_flags="$EXTRA_KCFLAGS"
15045 EXTRA_KCFLAGS="-Werror"
15046
15047
15048cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
15049/* confdefs.h. */
15050_ACEOF
15051cat confdefs.h >>conftest.$ac_ext
15052cat >>conftest.$ac_ext <<_ACEOF
15053/* end confdefs.h. */
ac9cc135
AX
15054
15055
15056 #include <linux/cred.h>
15057
15058int
15059main (void)
15060{
15061
15062 struct group_info *gi = groups_alloc(1);
15063 gi->gid[0] = KGIDT_INIT(0);
15064
15065 ;
15066 return 0;
15067}
15068
15069_ACEOF
15070
15071
15072 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15073 echo "obj-m := conftest.o" >build/Makefile
15074 modpost_flag=''
15075 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15076 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ac9cc135
AX
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
0b31b230
AX
15080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ac9cc135
AX
15083 (eval $ac_try) 2>&5
15084 ac_status=$?
0b31b230
AX
15085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
ac9cc135 15087
0b31b230 15088 { $as_echo "$as_me:$LINENO: result: yes" >&5
ac9cc135
AX
15089$as_echo "yes" >&6; }
15090
0b31b230
AX
15091cat >>confdefs.h <<\_ACEOF
15092#define HAVE_GROUP_INFO_GID 1
15093_ACEOF
ac9cc135
AX
15094
15095
15096else
15097 $as_echo "$as_me: failed program was:" >&5
15098sed 's/^/| /' conftest.$ac_ext >&5
15099
0b31b230 15100 { $as_echo "$as_me:$LINENO: result: no" >&5
ac9cc135
AX
15101$as_echo "no" >&6; }
15102
15103
15104
0f836a62 15105fi
0b31b230 15106
0f836a62
AX
15107 rm -Rf build
15108
15109
15110 EXTRA_KCFLAGS="$tmp_flags"
15111
10946b02
AX
15112 ;;
15113 user) ;;
15114 all)
15115
15116
15117# Check whether --with-linux was given.
0b31b230 15118if test "${with_linux+set}" = set; then
10946b02
AX
15119 withval=$with_linux; kernelsrc="$withval"
15120fi
15121
15122
15123
15124# Check whether --with-linux-obj was given.
0b31b230 15125if test "${with_linux_obj+set}" = set; then
10946b02
AX
15126 withval=$with_linux_obj; kernelbuild="$withval"
15127fi
15128
15129
0b31b230 15130 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
10946b02
AX
15131$as_echo_n "checking kernel source directory... " >&6; }
15132 if test -z "$kernelsrc"; then
15133 if test -e "/lib/modules/$(uname -r)/source"; then
15134 headersdir="/lib/modules/$(uname -r)/source"
15135 sourcelink=$(readlink -f "$headersdir")
15136 elif test -e "/lib/modules/$(uname -r)/build"; then
15137 headersdir="/lib/modules/$(uname -r)/build"
15138 sourcelink=$(readlink -f "$headersdir")
15139 else
15140 sourcelink=$(ls -1d /usr/src/kernels/* \
15141 /usr/src/linux-* \
15142 2>/dev/null | grep -v obj | tail -1)
15143 fi
15144
15145 if test -n "$sourcelink" && test -e ${sourcelink}; then
15146 kernelsrc=`readlink -f ${sourcelink}`
15147 else
15148 kernelsrc="Not found"
15149 fi
15150 else
15151 if test "$kernelsrc" = "NONE"; then
15152 kernsrcver=NONE
15153 fi
15154 fi
15155
0b31b230 15156 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
10946b02
AX
15157$as_echo "$kernelsrc" >&6; }
15158 if test ! -d "$kernelsrc"; then
0b31b230
AX
15159 { { $as_echo "$as_me:$LINENO: error:
15160 *** Please make sure the kernel devel package for your distribution
15161 *** is installed and then try again. If that fails, you can specify the
15162 *** location of the kernel source with the '--with-linux=PATH' option." >&5
15163$as_echo "$as_me: error:
10946b02
AX
15164 *** Please make sure the kernel devel package for your distribution
15165 *** is installed and then try again. If that fails, you can specify the
0b31b230
AX
15166 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
15167 { (exit 1); exit 1; }; }
10946b02
AX
15168 fi
15169
0b31b230 15170 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
10946b02
AX
15171$as_echo_n "checking kernel build directory... " >&6; }
15172 if test -z "$kernelbuild"; then
15173 if test -e "/lib/modules/$(uname -r)/build"; then
15174 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15175 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15176 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15177 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15178 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15179 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15180 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15181 else
15182 kernelbuild=${kernelsrc}
15183 fi
15184 fi
0b31b230 15185 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
10946b02
AX
15186$as_echo "$kernelbuild" >&6; }
15187
0b31b230 15188 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
10946b02
AX
15189$as_echo_n "checking kernel source version... " >&6; }
15190 utsrelease1=$kernelbuild/include/linux/version.h
15191 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15192 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15193 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15194 utsrelease=linux/version.h
15195 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15196 utsrelease=linux/utsrelease.h
15197 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15198 utsrelease=generated/utsrelease.h
15199 fi
15200
15201 if test "$utsrelease"; then
15202 kernsrcver=`(echo "#include <$utsrelease>";
15203 echo "kernsrcver=UTS_RELEASE") |
15204 cpp -I $kernelbuild/include |
15205 grep "^kernsrcver=" | cut -d \" -f 2`
15206
15207 if test -z "$kernsrcver"; then
0b31b230 15208 { $as_echo "$as_me:$LINENO: result: Not found" >&5
10946b02 15209$as_echo "Not found" >&6; }
0b31b230
AX
15210 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15211$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15212 { (exit 1); exit 1; }; }
10946b02
AX
15213 fi
15214 else
0b31b230 15215 { $as_echo "$as_me:$LINENO: result: Not found" >&5
10946b02
AX
15216$as_echo "Not found" >&6; }
15217 if test "x$enable_linux_builtin" != xyes; then
0b31b230
AX
15218 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15219$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
15220 { (exit 1); exit 1; }; }
10946b02 15221 else
0b31b230
AX
15222 { { $as_echo "$as_me:$LINENO: error:
15223 *** Cannot find UTS_RELEASE definition.
15224 *** Please run 'make prepare' inside the kernel source tree." >&5
15225$as_echo "$as_me: error:
10946b02 15226 *** Cannot find UTS_RELEASE definition.
0b31b230
AX
15227 *** Please run 'make prepare' inside the kernel source tree." >&2;}
15228 { (exit 1); exit 1; }; }
10946b02
AX
15229 fi
15230 fi
15231
0b31b230 15232 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
10946b02
AX
15233$as_echo "$kernsrcver" >&6; }
15234
15235 LINUX=${kernelsrc}
15236 LINUX_OBJ=${kernelbuild}
15237 LINUX_VERSION=${kernsrcver}
15238
15239
15240
15241
15242
15243
15244 modpost=$LINUX/scripts/Makefile.modpost
0b31b230 15245 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
10946b02
AX
15246$as_echo_n "checking kernel file name for module symbols... " >&6; }
15247 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
15248 if grep -q Modules.symvers $modpost; then
15249 LINUX_SYMBOLS=Modules.symvers
15250 else
15251 LINUX_SYMBOLS=Module.symvers
15252 fi
15253
15254 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
0b31b230
AX
15255 { { $as_echo "$as_me:$LINENO: error:
15256 *** Please make sure the kernel devel package for your distribution
15257 *** is installed. If you are building with a custom kernel, make sure the
15258 *** kernel is configured, built, and the '--with-linux=PATH' configure
15259 *** option refers to the location of the kernel source." >&5
15260$as_echo "$as_me: error:
10946b02
AX
15261 *** Please make sure the kernel devel package for your distribution
15262 *** is installed. If you are building with a custom kernel, make sure the
15263 *** kernel is configured, built, and the '--with-linux=PATH' configure
0b31b230
AX
15264 *** option refers to the location of the kernel source." >&2;}
15265 { (exit 1); exit 1; }; }
10946b02
AX
15266 fi
15267 else
15268 LINUX_SYMBOLS=NONE
15269 fi
0b31b230 15270 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
10946b02
AX
15271$as_echo "$LINUX_SYMBOLS" >&6; }
15272
15273
15274
15275
15276 if test "${LINUX_OBJ}" != "${LINUX}"; then
15277 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15278 fi
15279
15280
15281 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
15282
15283
15284
0b31b230 15285 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
10946b02
AX
15286$as_echo_n "checking whether debugging is enabled... " >&6; }
15287 # Check whether --enable-debug was given.
0b31b230 15288if test "${enable_debug+set}" = set; then
10946b02
AX
15289 enableval=$enable_debug;
15290else
15291 enable_debug=no
15292fi
15293
15294
0b31b230 15295 if test "x$enable_debug" = xyes; then
10946b02
AX
15296
15297 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
15298 DEBUG_CFLAGS="-DDEBUG -Werror"
15299 DEBUG_SPL="_with_debug"
15300
15301else
15302
15303 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
15304 DEBUG_CFLAGS="-DNDEBUG"
15305 DEBUG_SPL="_without_debug"
15306
15307fi
15308
15309
15310
0b31b230
AX
15311
15312 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
10946b02
AX
15313$as_echo "$enable_debug" >&6; }
15314
15315
15316 # Check whether --enable-debug-kmem was given.
0b31b230 15317if test "${enable_debug_kmem+set}" = set; then
10946b02
AX
15318 enableval=$enable_debug_kmem;
15319else
f6188ddd 15320 enable_debug_kmem=no
10946b02
AX
15321fi
15322
15323
0b31b230 15324 if test "x$enable_debug_kmem" = xyes; then
10946b02
AX
15325
15326 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15327 DEBUG_KMEM="_with_debug_kmem"
15328
0b31b230
AX
15329cat >>confdefs.h <<\_ACEOF
15330#define DEBUG_KMEM 1
15331_ACEOF
10946b02
AX
15332
15333
15334else
15335
15336 DEBUG_KMEM="_without_debug_kmem"
15337
15338fi
15339
15340
0b31b230
AX
15341
15342 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
10946b02 15343$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
0b31b230 15344 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
10946b02
AX
15345$as_echo "$enable_debug_kmem" >&6; }
15346
15347
15348 # Check whether --enable-debug-kmem-tracking was given.
0b31b230 15349if test "${enable_debug_kmem_tracking+set}" = set; then
10946b02
AX
15350 enableval=$enable_debug_kmem_tracking;
15351else
15352 enable_debug_kmem_tracking=no
15353fi
15354
15355
0b31b230 15356 if test "x$enable_debug_kmem_tracking" = xyes; then
10946b02
AX
15357
15358 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15359 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
15360
0b31b230
AX
15361cat >>confdefs.h <<\_ACEOF
15362#define DEBUG_KMEM_TRACKING 1
15363_ACEOF
10946b02
AX
15364
15365
15366else
15367
15368 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
15369
15370fi
15371
15372
0b31b230
AX
15373
15374 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
10946b02 15375$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
0b31b230 15376 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
10946b02
AX
15377$as_echo "$enable_debug_kmem_tracking" >&6; }
15378
0b31b230 15379 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
10946b02
AX
15380$as_echo_n "checking whether modules can be built... " >&6; }
15381
15382
15383cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
15384/* confdefs.h. */
15385_ACEOF
15386cat confdefs.h >>conftest.$ac_ext
15387cat >>conftest.$ac_ext <<_ACEOF
15388/* end confdefs.h. */
10946b02
AX
15389
15390
15391int
15392main (void)
15393{
15394
15395 ;
15396 return 0;
15397}
15398
15399_ACEOF
15400
15401
15402 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15403 echo "obj-m := conftest.o" >build/Makefile
15404 modpost_flag=''
15405 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15406 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
0b31b230
AX
15410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15413 (eval $ac_try) 2>&5
15414 ac_status=$?
0b31b230
AX
15415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; }; then
10946b02 15417
0b31b230 15418 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
15419$as_echo "yes" >&6; }
15420
15421else
15422 $as_echo "$as_me: failed program was:" >&5
15423sed 's/^/| /' conftest.$ac_ext >&5
15424
0b31b230 15425 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
15426$as_echo "no" >&6; }
15427 if test "x$enable_linux_builtin" != xyes; then
0b31b230
AX
15428 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
15429$as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
15430 { (exit 1); exit 1; }; }
10946b02 15431 else
0b31b230 15432 { { $as_echo "$as_me:$LINENO: error:
10946b02 15433 *** Unable to build an empty module.
0b31b230
AX
15434 *** Please run 'make scripts' inside the kernel source tree." >&5
15435$as_echo "$as_me: error:
15436 *** Unable to build an empty module.
15437 *** Please run 'make scripts' inside the kernel source tree." >&2;}
15438 { (exit 1); exit 1; }; }
10946b02
AX
15439 fi
15440
15441
15442
15443fi
0b31b230 15444
10946b02
AX
15445 rm -Rf build
15446
15447
15448
0b31b230 15449 if test "x$cross_compiling" != xyes; then
879bbbc7 15450
0b31b230
AX
15451 if test "$cross_compiling" = yes; then
15452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 15453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0b31b230
AX
15454{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15455See \`config.log' for more details." >&5
15456$as_echo "$as_me: error: cannot run test program while cross compiling
15457See \`config.log' for more details." >&2;}
15458 { (exit 1); exit 1; }; }; }
10946b02 15459else
0b31b230 15460 cat >conftest.$ac_ext <<_ACEOF
10946b02 15461
0b31b230
AX
15462 /* confdefs.h. */
15463_ACEOF
15464cat confdefs.h >>conftest.$ac_ext
15465cat >>conftest.$ac_ext <<_ACEOF
15466/* end confdefs.h. */
10946b02 15467
879bbbc7 15468 #include "$LINUX/include/linux/license.h"
10946b02
AX
15469
15470int
15471main ()
15472{
15473
879bbbc7
AX
15474 return !license_is_gpl_compatible(
15475 "$SPL_META_LICENSE");
10946b02
AX
15476
15477 ;
15478 return 0;
15479}
15480
15481_ACEOF
0b31b230
AX
15482rm -f conftest$ac_exeext
15483if { (ac_try="$ac_link"
15484case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15487esac
15488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15489$as_echo "$ac_try_echo") >&5
15490 (eval "$ac_link") 2>&5
15491 ac_status=$?
15492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497esac
15498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15499$as_echo "$ac_try_echo") >&5
15500 (eval "$ac_try") 2>&5
15501 ac_status=$?
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504
15505
15506cat >>confdefs.h <<\_ACEOF
15507#define SPL_IS_GPL_COMPATIBLE 1
15508_ACEOF
15509
10946b02 15510
0b31b230
AX
15511else
15512 $as_echo "$as_me: program exited with status $ac_status" >&5
15513$as_echo "$as_me: failed program was:" >&5
15514sed 's/^/| /' conftest.$ac_ext >&5
10946b02 15515
0b31b230 15516( exit $ac_status )
10946b02
AX
15517
15518
15519fi
0b31b230
AX
15520rm -rf conftest.dSYM
15521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10946b02
AX
15522fi
15523
15524
0b31b230 15525
879bbbc7
AX
15526fi
15527
10946b02 15528
0b31b230 15529
10946b02 15530 # Check whether --enable-atomic-spinlocks was given.
0b31b230 15531if test "${enable_atomic_spinlocks+set}" = set; then
10946b02
AX
15532 enableval=$enable_atomic_spinlocks;
15533else
15534 enable_atomic_spinlocks=check
15535fi
15536
15537
15538
15539
15540cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
15541/* confdefs.h. */
15542_ACEOF
15543cat confdefs.h >>conftest.$ac_ext
15544cat >>conftest.$ac_ext <<_ACEOF
15545/* end confdefs.h. */
10946b02
AX
15546
15547
15548 #include <linux/fs.h>
15549
15550int
15551main (void)
15552{
15553
15554 atomic64_t *ptr __attribute__ ((unused));
15555
15556 ;
15557 return 0;
15558}
15559
15560_ACEOF
15561
15562
15563 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15564 echo "obj-m := conftest.o" >build/Makefile
15565 modpost_flag=''
15566 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15567 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
0b31b230
AX
15571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
0b31b230
AX
15576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
10946b02
AX
15578
15579 have_atomic64_t=yes
15580
0b31b230
AX
15581cat >>confdefs.h <<\_ACEOF
15582#define HAVE_ATOMIC64_T 1
15583_ACEOF
10946b02
AX
15584
15585
15586else
15587 $as_echo "$as_me: failed program was:" >&5
15588sed 's/^/| /' conftest.$ac_ext >&5
15589
15590 have_atomic64_t=no
15591
15592
15593
15594fi
0b31b230 15595
10946b02
AX
15596 rm -Rf build
15597
15598
15599
0b31b230 15600 if test "x$enable_atomic_spinlocks" = xcheck; then
10946b02 15601
0b31b230 15602 if test "x$have_atomic64_t" = xyes; then
10946b02
AX
15603
15604 enable_atomic_spinlocks=no
15605
15606else
15607
15608 enable_atomic_spinlocks=yes
15609
15610fi
15611
0b31b230 15612
10946b02
AX
15613fi
15614
0b31b230
AX
15615
15616 if test "x$enable_atomic_spinlocks" = xyes; then
10946b02
AX
15617
15618
0b31b230
AX
15619cat >>confdefs.h <<\_ACEOF
15620#define ATOMIC_SPINLOCK 1
15621_ACEOF
10946b02
AX
15622
15623
15624else
15625
0b31b230 15626 if test "x$have_atomic64_t" = xno; then
10946b02 15627
0b31b230 15628 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 15629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0b31b230
AX
15630{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15631See \`config.log' for more details." >&5
15632$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15633See \`config.log' for more details." >&2;}
15634 { (exit 1); exit 1; }; }; }
10946b02
AX
15635
15636fi
15637
0b31b230 15638
10946b02
AX
15639fi
15640
0b31b230
AX
15641
15642 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
10946b02 15643$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
0b31b230 15644 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
10946b02
AX
15645$as_echo "$enable_atomic_spinlocks" >&6; }
15646
0b31b230 15647 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
10946b02 15648$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
0b31b230 15649 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
10946b02
AX
15650$as_echo "$have_atomic64_t" >&6; }
15651
15652
15653 tmp_flags="$EXTRA_KCFLAGS"
15654 EXTRA_KCFLAGS="-Werror"
0b31b230 15655 { $as_echo "$as_me:$LINENO: checking whether old 2-argument shrinker exists" >&5
10946b02
AX
15656$as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
15657
15658
15659cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
15660/* confdefs.h. */
15661_ACEOF
15662cat confdefs.h >>conftest.$ac_ext
15663cat >>conftest.$ac_ext <<_ACEOF
15664/* end confdefs.h. */
10946b02
AX
15665
15666
15667 #include <linux/mm.h>
15668
15669 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
15670
15671int
15672main (void)
15673{
15674
15675 struct shrinker cache_shrinker = {
15676 .shrink = shrinker_cb,
15677 .seeks = DEFAULT_SEEKS,
15678 };
15679 register_shrinker(&cache_shrinker);
15680
15681 ;
15682 return 0;
15683}
15684
15685_ACEOF
15686
15687
15688 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15689 echo "obj-m := conftest.o" >build/Makefile
15690 modpost_flag=''
15691 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15692 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
0b31b230
AX
15696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
0b31b230
AX
15701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
10946b02 15703
0b31b230 15704 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
15705$as_echo "yes" >&6; }
15706
0b31b230
AX
15707cat >>confdefs.h <<\_ACEOF
15708#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1
15709_ACEOF
10946b02
AX
15710
15711
15712else
15713 $as_echo "$as_me: failed program was:" >&5
15714sed 's/^/| /' conftest.$ac_ext >&5
15715
0b31b230 15716 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 15717$as_echo "no" >&6; }
0b31b230 15718 { $as_echo "$as_me:$LINENO: checking whether old 3-argument shrinker exists" >&5
10946b02
AX
15719$as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
15720
15721
15722cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
15723/* confdefs.h. */
15724_ACEOF
15725cat confdefs.h >>conftest.$ac_ext
15726cat >>conftest.$ac_ext <<_ACEOF
15727/* end confdefs.h. */
10946b02
AX
15728
15729
15730 #include <linux/mm.h>
15731
15732 int shrinker_cb(struct shrinker *, int nr_to_scan,
15733 gfp_t gfp_mask);
15734
15735int
15736main (void)
15737{
15738
15739 struct shrinker cache_shrinker = {
15740 .shrink = shrinker_cb,
15741 .seeks = DEFAULT_SEEKS,
15742 };
15743 register_shrinker(&cache_shrinker);
15744
15745 ;
15746 return 0;
15747}
15748
15749_ACEOF
15750
15751
15752 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15753 echo "obj-m := conftest.o" >build/Makefile
15754 modpost_flag=''
15755 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15756 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
0b31b230
AX
15760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
0b31b230
AX
15765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
10946b02 15767
0b31b230 15768 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
15769$as_echo "yes" >&6; }
15770
0b31b230
AX
15771cat >>confdefs.h <<\_ACEOF
15772#define HAVE_3ARGS_SHRINKER_CALLBACK 1
15773_ACEOF
10946b02
AX
15774
15775
15776else
15777 $as_echo "$as_me: failed program was:" >&5
15778sed 's/^/| /' conftest.$ac_ext >&5
15779
0b31b230 15780 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 15781$as_echo "no" >&6; }
0b31b230 15782 { $as_echo "$as_me:$LINENO: checking whether new 2-argument shrinker exists" >&5
10946b02
AX
15783$as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
15784
15785
15786cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
15787/* confdefs.h. */
15788_ACEOF
15789cat confdefs.h >>conftest.$ac_ext
15790cat >>conftest.$ac_ext <<_ACEOF
15791/* end confdefs.h. */
10946b02
AX
15792
15793
15794 #include <linux/mm.h>
15795
15796 int shrinker_cb(struct shrinker *,
15797 struct shrink_control *sc);
15798
15799int
15800main (void)
15801{
15802
15803 struct shrinker cache_shrinker = {
15804 .shrink = shrinker_cb,
15805 .seeks = DEFAULT_SEEKS,
15806 };
15807 register_shrinker(&cache_shrinker);
15808
15809 ;
15810 return 0;
15811}
15812
15813_ACEOF
15814
15815
15816 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15817 echo "obj-m := conftest.o" >build/Makefile
15818 modpost_flag=''
15819 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15820 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15822 (eval $ac_try) 2>&5
15823 ac_status=$?
0b31b230
AX
15824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
0b31b230
AX
15829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
10946b02 15831
0b31b230 15832 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
15833$as_echo "yes" >&6; }
15834
0b31b230
AX
15835cat >>confdefs.h <<\_ACEOF
15836#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1
15837_ACEOF
10946b02
AX
15838
15839
15840else
15841 $as_echo "$as_me: failed program was:" >&5
15842sed 's/^/| /' conftest.$ac_ext >&5
15843
0b31b230 15844 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 15845$as_echo "no" >&6; }
0b31b230 15846 { $as_echo "$as_me:$LINENO: checking whether ->count_objects callback exists" >&5
10946b02
AX
15847$as_echo_n "checking whether ->count_objects callback exists... " >&6; }
15848
15849
15850cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
15851/* confdefs.h. */
15852_ACEOF
15853cat confdefs.h >>conftest.$ac_ext
15854cat >>conftest.$ac_ext <<_ACEOF
15855/* end confdefs.h. */
10946b02
AX
15856
15857
15858 #include <linux/mm.h>
15859
15860 unsigned long shrinker_cb(
15861 struct shrinker *,
15862 struct shrink_control *sc);
15863
15864int
15865main (void)
15866{
15867
15868 struct shrinker cache_shrinker = {
15869 .count_objects = shrinker_cb,
15870 .scan_objects = shrinker_cb,
15871 .seeks = DEFAULT_SEEKS,
15872 };
15873 register_shrinker(&cache_shrinker);
15874
15875 ;
15876 return 0;
15877}
15878
15879_ACEOF
15880
15881
15882 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15883 echo "obj-m := conftest.o" >build/Makefile
15884 modpost_flag=''
15885 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15886 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15888 (eval $ac_try) 2>&5
15889 ac_status=$?
0b31b230
AX
15890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
0b31b230
AX
15895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
10946b02 15897
0b31b230 15898 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
15899$as_echo "yes" >&6; }
15900
0b31b230
AX
15901cat >>confdefs.h <<\_ACEOF
15902#define HAVE_SPLIT_SHRINKER_CALLBACK 1
15903_ACEOF
10946b02
AX
15904
15905
15906else
15907 $as_echo "$as_me: failed program was:" >&5
15908sed 's/^/| /' conftest.$ac_ext >&5
15909
0b31b230
AX
15910 { { $as_echo "$as_me:$LINENO: error: error" >&5
15911$as_echo "$as_me: error: error" >&2;}
15912 { (exit 1); exit 1; }; }
10946b02
AX
15913
15914
15915
15916fi
0b31b230 15917
10946b02
AX
15918 rm -Rf build
15919
15920
15921
15922
15923
15924fi
0b31b230 15925
10946b02
AX
15926 rm -Rf build
15927
15928
15929
15930
15931
0f836a62 15932fi
0b31b230 15933
0f836a62
AX
15934 rm -Rf build
15935
15936
15937
15938
15939
15940fi
0b31b230 15941
0f836a62
AX
15942 rm -Rf build
15943
15944
15945 EXTRA_KCFLAGS="$tmp_flags"
15946
15947
0b31b230 15948 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
0f836a62
AX
15949$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
15950
15951
15952cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
15953/* confdefs.h. */
15954_ACEOF
15955cat confdefs.h >>conftest.$ac_ext
15956cat >>conftest.$ac_ext <<_ACEOF
15957/* end confdefs.h. */
0f836a62
AX
15958
15959
15960 #include <linux/sysctl.h>
15961
15962int
15963main (void)
15964{
15965
15966 struct ctl_table ctl __attribute__ ((unused));
15967 ctl.ctl_name = 0;
15968
15969 ;
15970 return 0;
15971}
15972
15973_ACEOF
15974
15975
15976 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15977 echo "obj-m := conftest.o" >build/Makefile
15978 modpost_flag=''
15979 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15980 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
15982 (eval $ac_try) 2>&5
15983 ac_status=$?
0b31b230
AX
15984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
0b31b230
AX
15989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
0f836a62 15991
0b31b230 15992 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
15993$as_echo "yes" >&6; }
15994
0b31b230
AX
15995cat >>confdefs.h <<\_ACEOF
15996#define HAVE_CTL_NAME 1
15997_ACEOF
0f836a62 15998
10946b02 15999
0f836a62
AX
16000else
16001 $as_echo "$as_me: failed program was:" >&5
16002sed 's/^/| /' conftest.$ac_ext >&5
10946b02 16003
0b31b230 16004 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62 16005$as_echo "no" >&6; }
10946b02
AX
16006
16007
16008
16009fi
0b31b230 16010
10946b02
AX
16011 rm -Rf build
16012
16013
10946b02
AX
16014
16015
0b31b230 16016 { $as_echo "$as_me:$LINENO: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
0f836a62 16017$as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
10946b02
AX
16018
16019
16020cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16021/* confdefs.h. */
16022_ACEOF
16023cat confdefs.h >>conftest.$ac_ext
16024cat >>conftest.$ac_ext <<_ACEOF
16025/* end confdefs.h. */
10946b02
AX
16026
16027
0f836a62
AX
16028 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
16029 #error CONFIG_TRIM_UNUSED_KSYMS not defined
16030 #endif
10946b02
AX
16031
16032int
16033main (void)
16034{
16035
10946b02
AX
16036 ;
16037 return 0;
16038}
16039
16040_ACEOF
16041
16042
16043 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16044 echo "obj-m := conftest.o" >build/Makefile
16045 modpost_flag=''
16046 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16047 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16049 (eval $ac_try) 2>&5
16050 ac_status=$?
0b31b230
AX
16051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
0b31b230
AX
16056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
10946b02 16058
0b31b230 16059 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16060$as_echo "yes" >&6; }
16061
10946b02
AX
16062else
16063 $as_echo "$as_me: failed program was:" >&5
16064sed 's/^/| /' conftest.$ac_ext >&5
16065
0b31b230 16066 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 16067$as_echo "no" >&6; }
0b31b230
AX
16068 { { $as_echo "$as_me:$LINENO: error:
16069 *** This kernel has unused symbols trimming enabled, please disable.
16070 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&5
16071$as_echo "$as_me: error:
0f836a62 16072 *** This kernel has unused symbols trimming enabled, please disable.
0b31b230
AX
16073 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&2;}
16074 { (exit 1); exit 1; }; }
10946b02
AX
16075
16076
16077
16078fi
0b31b230 16079
10946b02
AX
16080 rm -Rf build
16081
16082
16083
16084
0b31b230 16085 { $as_echo "$as_me:$LINENO: checking whether PDE_DATA() is available" >&5
10946b02
AX
16086$as_echo_n "checking whether PDE_DATA() is available... " >&6; }
16087
16088
16089
16090cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16091/* confdefs.h. */
16092_ACEOF
16093cat confdefs.h >>conftest.$ac_ext
16094cat >>conftest.$ac_ext <<_ACEOF
16095/* end confdefs.h. */
10946b02
AX
16096
16097
16098 #include <linux/proc_fs.h>
16099
16100int
16101main (void)
16102{
16103
16104 PDE_DATA(NULL);
16105
16106 ;
16107 return 0;
16108}
16109
16110_ACEOF
16111
16112
16113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16114 echo "obj-m := conftest.o" >build/Makefile
16115 modpost_flag=''
16116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16117 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
0b31b230
AX
16121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
0b31b230
AX
16126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
10946b02
AX
16128 rc=0
16129else
16130 $as_echo "$as_me: failed program was:" >&5
16131sed 's/^/| /' conftest.$ac_ext >&5
16132 rc=1
16133
16134
16135fi
0b31b230 16136
10946b02
AX
16137 rm -Rf build
16138
16139
16140 if test $rc -ne 0; then :
16141
0b31b230 16142 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16143$as_echo "no" >&6; }
16144
16145 else
16146 if test "x$enable_linux_builtin" != xyes; then
16147
16148 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
16149 $LINUX_OBJ/Module*.symvers 2>/dev/null
16150 rc=$?
16151 if test $rc -ne 0; then
16152 export=0
16153 for file in ; do
16154 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
16155 "$LINUX_OBJ/$file" 2>/dev/null
16156 rc=$?
16157 if test $rc -eq 0; then
16158 export=1
16159 break;
16160 fi
16161 done
16162 if test $export -eq 0; then :
16163 rc=1
16164 else :
16165 rc=0
16166 fi
16167 else :
16168 rc=0
16169 fi
16170
16171 fi
16172 if test $rc -ne 0; then :
16173
0b31b230 16174 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16175$as_echo "no" >&6; }
16176
16177 else :
16178
0b31b230 16179 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16180$as_echo "yes" >&6; }
16181
0b31b230
AX
16182cat >>confdefs.h <<\_ACEOF
16183#define HAVE_PDE_DATA 1
16184_ACEOF
10946b02
AX
16185
16186
16187 fi
16188 fi
16189
16190
16191 tmp_flags="$EXTRA_KCFLAGS"
16192 EXTRA_KCFLAGS="-Werror"
0b31b230 16193 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() requires const struct path *" >&5
10946b02
AX
16194$as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
16195
16196
16197cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16198/* confdefs.h. */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */
10946b02
AX
16203
16204
16205 #include <linux/spinlock.h>
16206 #include <linux/fs_struct.h>
16207 #include <linux/path.h>
16208 void (*const set_fs_pwd_func)
16209 (struct fs_struct *, const struct path *)
16210 = set_fs_pwd;
16211
16212int
16213main (void)
16214{
16215
16216 return 0;
16217
16218 ;
16219 return 0;
16220}
16221
16222_ACEOF
16223
16224
16225 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16226 echo "obj-m := conftest.o" >build/Makefile
16227 modpost_flag=''
16228 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16229 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
0b31b230
AX
16233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16236 (eval $ac_try) 2>&5
16237 ac_status=$?
0b31b230
AX
16238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
10946b02 16240
0b31b230 16241 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16242$as_echo "yes" >&6; }
16243
0b31b230
AX
16244cat >>confdefs.h <<\_ACEOF
16245#define HAVE_SET_FS_PWD_WITH_CONST 1
16246_ACEOF
10946b02
AX
16247
16248
16249else
16250 $as_echo "$as_me: failed program was:" >&5
16251sed 's/^/| /' conftest.$ac_ext >&5
16252
16253
16254
16255cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16256/* confdefs.h. */
16257_ACEOF
16258cat confdefs.h >>conftest.$ac_ext
16259cat >>conftest.$ac_ext <<_ACEOF
16260/* end confdefs.h. */
10946b02
AX
16261
16262
16263 #include <linux/spinlock.h>
16264 #include <linux/fs_struct.h>
16265 #include <linux/path.h>
16266 void (*const set_fs_pwd_func)
16267 (struct fs_struct *, struct path *)
16268 = set_fs_pwd;
16269
16270int
16271main (void)
16272{
16273
16274 return 0;
16275
16276 ;
16277 return 0;
16278}
16279
16280_ACEOF
16281
16282
16283 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16284 echo "obj-m := conftest.o" >build/Makefile
16285 modpost_flag=''
16286 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16287 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16289 (eval $ac_try) 2>&5
16290 ac_status=$?
0b31b230
AX
16291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
0b31b230
AX
16296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
10946b02 16298
0b31b230 16299 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16300$as_echo "no" >&6; }
16301
16302else
16303 $as_echo "$as_me: failed program was:" >&5
16304sed 's/^/| /' conftest.$ac_ext >&5
16305
0b31b230
AX
16306 { { $as_echo "$as_me:$LINENO: error: unknown" >&5
16307$as_echo "$as_me: error: unknown" >&2;}
16308 { (exit 1); exit 1; }; }
10946b02
AX
16309
16310
16311
16312fi
0b31b230 16313
10946b02
AX
16314 rm -Rf build
16315
16316
16317
16318
16319
16320fi
0b31b230 16321
10946b02
AX
16322 rm -Rf build
16323
16324
16325 EXTRA_KCFLAGS="$tmp_flags"
16326
0b31b230 16327 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
10946b02
AX
16328$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
16329
16330
16331cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16332/* confdefs.h. */
16333_ACEOF
16334cat confdefs.h >>conftest.$ac_ext
16335cat >>conftest.$ac_ext <<_ACEOF
16336/* end confdefs.h. */
10946b02
AX
16337
16338
16339 #include <linux/fs.h>
16340
16341int
16342main (void)
16343{
16344
16345 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
16346
16347 ;
16348 return 0;
16349}
16350
16351_ACEOF
16352
16353
16354 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16355 echo "obj-m := conftest.o" >build/Makefile
16356 modpost_flag=''
16357 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16358 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
0b31b230
AX
16362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
0b31b230
AX
16367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
10946b02 16369
0b31b230 16370 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16371$as_echo "yes" >&6; }
16372
0b31b230
AX
16373cat >>confdefs.h <<\_ACEOF
16374#define HAVE_2ARGS_VFS_UNLINK 1
16375_ACEOF
10946b02
AX
16376
16377
16378else
16379 $as_echo "$as_me: failed program was:" >&5
16380sed 's/^/| /' conftest.$ac_ext >&5
16381
0b31b230 16382 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 16383$as_echo "no" >&6; }
0b31b230 16384 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 3 args" >&5
10946b02
AX
16385$as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
16386
16387
16388cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16389/* confdefs.h. */
16390_ACEOF
16391cat confdefs.h >>conftest.$ac_ext
16392cat >>conftest.$ac_ext <<_ACEOF
16393/* end confdefs.h. */
10946b02
AX
16394
16395
16396 #include <linux/fs.h>
16397
16398int
16399main (void)
16400{
16401
16402 vfs_unlink((struct inode *) NULL,
16403 (struct dentry *) NULL,
16404 (struct inode **) NULL);
16405
16406 ;
16407 return 0;
16408}
16409
16410_ACEOF
16411
16412
16413 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16414 echo "obj-m := conftest.o" >build/Makefile
16415 modpost_flag=''
16416 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16417 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
0b31b230
AX
16421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
0b31b230
AX
16426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
10946b02 16428
0b31b230 16429 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16430$as_echo "yes" >&6; }
16431
0b31b230
AX
16432cat >>confdefs.h <<\_ACEOF
16433#define HAVE_3ARGS_VFS_UNLINK 1
16434_ACEOF
10946b02
AX
16435
16436
16437else
16438 $as_echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
0b31b230
AX
16441 { { $as_echo "$as_me:$LINENO: error: no" >&5
16442$as_echo "$as_me: error: no" >&2;}
16443 { (exit 1); exit 1; }; }
10946b02
AX
16444
16445
16446
16447fi
0b31b230 16448
10946b02
AX
16449 rm -Rf build
16450
16451
16452
16453
16454
16455
16456fi
0b31b230 16457
10946b02
AX
16458 rm -Rf build
16459
16460
16461
0b31b230 16462 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
10946b02
AX
16463$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
16464
16465
16466cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16467/* confdefs.h. */
16468_ACEOF
16469cat confdefs.h >>conftest.$ac_ext
16470cat >>conftest.$ac_ext <<_ACEOF
16471/* end confdefs.h. */
10946b02
AX
16472
16473
16474 #include <linux/fs.h>
16475
16476int
16477main (void)
16478{
16479
16480 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
16481 (struct inode *) NULL, (struct dentry *) NULL);
16482
16483 ;
16484 return 0;
16485}
16486
16487_ACEOF
16488
16489
16490 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16491 echo "obj-m := conftest.o" >build/Makefile
16492 modpost_flag=''
16493 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16494 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16496 (eval $ac_try) 2>&5
16497 ac_status=$?
0b31b230
AX
16498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
0b31b230
AX
16503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
10946b02 16505
0b31b230 16506 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16507$as_echo "yes" >&6; }
16508
0b31b230
AX
16509cat >>confdefs.h <<\_ACEOF
16510#define HAVE_4ARGS_VFS_RENAME 1
16511_ACEOF
10946b02
AX
16512
16513
16514else
16515 $as_echo "$as_me: failed program was:" >&5
16516sed 's/^/| /' conftest.$ac_ext >&5
16517
0b31b230 16518 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 16519$as_echo "no" >&6; }
0b31b230 16520 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 5 args" >&5
10946b02
AX
16521$as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
16522
16523
16524cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16525/* confdefs.h. */
16526_ACEOF
16527cat confdefs.h >>conftest.$ac_ext
16528cat >>conftest.$ac_ext <<_ACEOF
16529/* end confdefs.h. */
10946b02
AX
16530
16531
16532 #include <linux/fs.h>
16533
16534int
16535main (void)
16536{
16537
16538 vfs_rename((struct inode *) NULL,
16539 (struct dentry *) NULL,
16540 (struct inode *) NULL,
16541 (struct dentry *) NULL,
16542 (struct inode **) NULL);
16543
16544 ;
16545 return 0;
16546}
16547
16548_ACEOF
16549
16550
16551 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16552 echo "obj-m := conftest.o" >build/Makefile
16553 modpost_flag=''
16554 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16555 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
0b31b230
AX
16559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
0b31b230
AX
16564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
10946b02 16566
0b31b230 16567 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16568$as_echo "yes" >&6; }
16569
0b31b230
AX
16570cat >>confdefs.h <<\_ACEOF
16571#define HAVE_5ARGS_VFS_RENAME 1
16572_ACEOF
10946b02
AX
16573
16574
16575else
16576 $as_echo "$as_me: failed program was:" >&5
16577sed 's/^/| /' conftest.$ac_ext >&5
16578
0b31b230 16579 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 16580$as_echo "no" >&6; }
0b31b230 16581 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 6 args" >&5
10946b02
AX
16582$as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
16583
16584
16585cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16586/* confdefs.h. */
16587_ACEOF
16588cat confdefs.h >>conftest.$ac_ext
16589cat >>conftest.$ac_ext <<_ACEOF
16590/* end confdefs.h. */
10946b02
AX
16591
16592
16593 #include <linux/fs.h>
16594
16595int
16596main (void)
16597{
16598
16599 vfs_rename((struct inode *) NULL,
16600 (struct dentry *) NULL,
16601 (struct inode *) NULL,
16602 (struct dentry *) NULL,
16603 (struct inode **) NULL,
16604 (unsigned int) 0);
16605
16606 ;
16607 return 0;
16608}
16609
16610_ACEOF
16611
16612
16613 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16614 echo "obj-m := conftest.o" >build/Makefile
16615 modpost_flag=''
16616 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16617 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16619 (eval $ac_try) 2>&5
16620 ac_status=$?
0b31b230
AX
16621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
0b31b230
AX
16626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
10946b02 16628
0b31b230 16629 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16630$as_echo "yes" >&6; }
16631
0b31b230
AX
16632cat >>confdefs.h <<\_ACEOF
16633#define HAVE_6ARGS_VFS_RENAME 1
16634_ACEOF
10946b02
AX
16635
16636
16637else
16638 $as_echo "$as_me: failed program was:" >&5
16639sed 's/^/| /' conftest.$ac_ext >&5
16640
0b31b230
AX
16641 { { $as_echo "$as_me:$LINENO: error: no" >&5
16642$as_echo "$as_me: error: no" >&2;}
16643 { (exit 1); exit 1; }; }
10946b02
AX
16644
16645
16646
16647fi
0b31b230 16648
10946b02
AX
16649 rm -Rf build
16650
16651
16652
16653
16654
16655fi
0b31b230 16656
10946b02
AX
16657 rm -Rf build
16658
16659
16660
16661
16662
16663fi
0b31b230 16664
10946b02
AX
16665 rm -Rf build
16666
16667
16668
16669
0b31b230 16670 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
10946b02
AX
16671$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
16672
16673
16674cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16675/* confdefs.h. */
16676_ACEOF
16677cat confdefs.h >>conftest.$ac_ext
16678cat >>conftest.$ac_ext <<_ACEOF
16679/* end confdefs.h. */
10946b02
AX
16680
16681
16682 #include <linux/fs.h>
16683
16684int
16685main (void)
16686{
16687
16688 vfs_fsync(NULL, 0);
16689
16690 ;
16691 return 0;
16692}
16693
16694_ACEOF
16695
16696
16697 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16698 echo "obj-m := conftest.o" >build/Makefile
16699 modpost_flag=''
16700 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16701 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16703 (eval $ac_try) 2>&5
16704 ac_status=$?
0b31b230
AX
16705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
0b31b230
AX
16710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
10946b02 16712
0b31b230 16713 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16714$as_echo "yes" >&6; }
16715
0b31b230
AX
16716cat >>confdefs.h <<\_ACEOF
16717#define HAVE_2ARGS_VFS_FSYNC 1
16718_ACEOF
10946b02
AX
16719
16720
16721else
16722 $as_echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
0b31b230 16725 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16726$as_echo "no" >&6; }
16727
16728
16729
16730fi
0b31b230 16731
10946b02
AX
16732 rm -Rf build
16733
16734
16735
16736
0b31b230 16737 { $as_echo "$as_me:$LINENO: checking whether truncate_range() inode operation is available" >&5
10946b02
AX
16738$as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
16739
16740
16741cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16742/* confdefs.h. */
16743_ACEOF
16744cat confdefs.h >>conftest.$ac_ext
16745cat >>conftest.$ac_ext <<_ACEOF
16746/* end confdefs.h. */
10946b02
AX
16747
16748
16749 #include <linux/fs.h>
16750
16751int
16752main (void)
16753{
16754
16755 struct inode_operations ops;
16756 ops.truncate_range = NULL;
16757
16758 ;
16759 return 0;
16760}
16761
16762_ACEOF
16763
16764
16765 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16766 echo "obj-m := conftest.o" >build/Makefile
16767 modpost_flag=''
16768 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16769 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16771 (eval $ac_try) 2>&5
16772 ac_status=$?
0b31b230
AX
16773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
0b31b230
AX
16778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
10946b02 16780
0b31b230 16781 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16782$as_echo "yes" >&6; }
16783
0b31b230
AX
16784cat >>confdefs.h <<\_ACEOF
16785#define HAVE_INODE_TRUNCATE_RANGE 1
16786_ACEOF
10946b02
AX
16787
16788
16789else
16790 $as_echo "$as_me: failed program was:" >&5
16791sed 's/^/| /' conftest.$ac_ext >&5
16792
0b31b230 16793 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16794$as_echo "no" >&6; }
16795
16796
16797
16798fi
0b31b230 16799
10946b02
AX
16800 rm -Rf build
16801
16802
16803
16804
0b31b230 16805 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
10946b02
AX
16806$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
16807 tmp_flags="$EXTRA_KCFLAGS"
16808 EXTRA_KCFLAGS="-Werror"
16809
16810
16811cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16812/* confdefs.h. */
16813_ACEOF
16814cat confdefs.h >>conftest.$ac_ext
16815cat >>conftest.$ac_ext <<_ACEOF
16816/* end confdefs.h. */
10946b02
AX
16817
16818
16819 #include <linux/sched.h>
16820 #include <linux/fs_struct.h>
16821
16822int
16823main (void)
16824{
16825
16826 static struct fs_struct fs;
16827 spin_lock_init(&fs.lock);
16828
16829 ;
16830 return 0;
16831}
16832
16833_ACEOF
16834
16835
16836 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16837 echo "obj-m := conftest.o" >build/Makefile
16838 modpost_flag=''
16839 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16840 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
0b31b230
AX
16844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
0b31b230
AX
16849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
10946b02 16851
0b31b230 16852 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16853$as_echo "yes" >&6; }
16854
0b31b230
AX
16855cat >>confdefs.h <<\_ACEOF
16856#define HAVE_FS_STRUCT_SPINLOCK 1
16857_ACEOF
10946b02
AX
16858
16859
16860else
16861 $as_echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
0b31b230 16864 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16865$as_echo "no" >&6; }
16866
16867
16868
16869fi
0b31b230 16870
10946b02
AX
16871 rm -Rf build
16872
16873
16874 EXTRA_KCFLAGS="$tmp_flags"
16875
16876
0b31b230 16877 { $as_echo "$as_me:$LINENO: checking whether kuid_t/kgid_t is available" >&5
10946b02
AX
16878$as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
16879
16880
16881cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16882/* confdefs.h. */
16883_ACEOF
16884cat confdefs.h >>conftest.$ac_ext
16885cat >>conftest.$ac_ext <<_ACEOF
16886/* end confdefs.h. */
10946b02
AX
16887
16888
16889 #include <linux/uidgid.h>
16890
16891int
16892main (void)
16893{
16894
16895 kuid_t userid = KUIDT_INIT(0);
16896 kgid_t groupid = KGIDT_INIT(0);
16897
16898 ;
16899 return 0;
16900}
16901
16902_ACEOF
16903
16904
16905 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16906 echo "obj-m := conftest.o" >build/Makefile
16907 modpost_flag=''
16908 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16909 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
0b31b230
AX
16913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
0b31b230
AX
16918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
10946b02
AX
16920
16921
16922
16923cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
10946b02
AX
16929
16930
16931 #include <linux/uidgid.h>
16932
16933int
16934main (void)
16935{
16936
16937 kuid_t userid = 0;
16938 kgid_t groupid = 0;
16939
16940 ;
16941 return 0;
16942}
16943
16944_ACEOF
16945
16946
16947 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16948 echo "obj-m := conftest.o" >build/Makefile
16949 modpost_flag=''
16950 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16951 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
0b31b230
AX
16955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16958 (eval $ac_try) 2>&5
16959 ac_status=$?
0b31b230
AX
16960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
10946b02 16962
0b31b230 16963 { $as_echo "$as_me:$LINENO: result: yes; optional" >&5
10946b02
AX
16964$as_echo "yes; optional" >&6; }
16965
16966else
16967 $as_echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
0b31b230 16970 { $as_echo "$as_me:$LINENO: result: yes; mandatory" >&5
10946b02
AX
16971$as_echo "yes; mandatory" >&6; }
16972
0b31b230
AX
16973cat >>confdefs.h <<\_ACEOF
16974#define HAVE_KUIDGID_T 1
16975_ACEOF
10946b02
AX
16976
16977
16978
16979
16980fi
0b31b230 16981
10946b02
AX
16982 rm -Rf build
16983
16984
16985
16986else
16987 $as_echo "$as_me: failed program was:" >&5
16988sed 's/^/| /' conftest.$ac_ext >&5
16989
0b31b230 16990 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16991$as_echo "no" >&6; }
16992
16993
16994
16995fi
0b31b230 16996
10946b02
AX
16997 rm -Rf build
16998
16999
17000
10946b02
AX
17001
17002
0b31b230
AX
17003 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
17004$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17005
10946b02
AX
17006
17007cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
10946b02
AX
17013
17014
0b31b230 17015 #include <linux/fs.h>
10946b02
AX
17016
17017int
17018main (void)
17019{
17020
0b31b230
AX
17021 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17022 struct file_operations fops __attribute__ ((unused)) = {
17023 .fallocate = fallocate,
17024 };
10946b02
AX
17025
17026 ;
17027 return 0;
17028}
17029
17030_ACEOF
17031
17032
17033 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17034 echo "obj-m := conftest.o" >build/Makefile
17035 modpost_flag=''
17036 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17037 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17039 (eval $ac_try) 2>&5
17040 ac_status=$?
0b31b230
AX
17041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
0b31b230
AX
17046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048
17049 { $as_echo "$as_me:$LINENO: result: yes" >&5
17050$as_echo "yes" >&6; }
17051
17052cat >>confdefs.h <<\_ACEOF
17053#define HAVE_FILE_FALLOCATE 1
17054_ACEOF
17055
17056
10946b02
AX
17057else
17058 $as_echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
0b31b230
AX
17060
17061 { $as_echo "$as_me:$LINENO: result: no" >&5
17062$as_echo "no" >&6; }
17063
10946b02
AX
17064
17065
17066fi
0b31b230 17067
10946b02
AX
17068 rm -Rf build
17069
17070
10946b02 17071
10946b02 17072
0b31b230
AX
17073 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
17074$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
10946b02 17075
10946b02 17076
0b31b230
AX
17077cat confdefs.h - <<_ACEOF >conftest.c
17078/* confdefs.h. */
17079_ACEOF
17080cat confdefs.h >>conftest.$ac_ext
17081cat >>conftest.$ac_ext <<_ACEOF
17082/* end confdefs.h. */
10946b02 17083
10946b02 17084
0b31b230
AX
17085 #include <linux/fs.h>
17086
17087int
17088main (void)
17089{
10946b02 17090
0b31b230
AX
17091 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
17092 struct inode_operations fops __attribute__ ((unused)) = {
17093 .fallocate = fallocate,
17094 };
17095
17096 ;
17097 return 0;
17098}
17099
17100_ACEOF
17101
17102
17103 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17104 echo "obj-m := conftest.o" >build/Makefile
17105 modpost_flag=''
17106 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17107 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17110 ac_status=$?
17111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118
17119 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17120$as_echo "yes" >&6; }
17121
0b31b230
AX
17122cat >>confdefs.h <<\_ACEOF
17123#define HAVE_INODE_FALLOCATE 1
17124_ACEOF
17125
17126
17127else
17128 $as_echo "$as_me: failed program was:" >&5
17129sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 { $as_echo "$as_me:$LINENO: result: no" >&5
17132$as_echo "no" >&6; }
10946b02
AX
17133
17134
0b31b230
AX
17135
17136fi
17137
17138 rm -Rf build
10946b02
AX
17139
17140
10946b02
AX
17141
17142
0b31b230 17143 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
10946b02
AX
17144$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17145
17146
17147cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17148/* confdefs.h. */
17149_ACEOF
17150cat confdefs.h >>conftest.$ac_ext
17151cat >>conftest.$ac_ext <<_ACEOF
17152/* end confdefs.h. */
10946b02
AX
17153
17154
17155 #include <linux/fs.h>
17156
17157int
17158main (void)
17159{
17160
17161 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
0b31b230 17162 struct file_operations_no_const fops __attribute__ ((unused)) = {
10946b02
AX
17163 .fallocate = fallocate,
17164 };
17165
17166 ;
17167 return 0;
17168}
17169
17170_ACEOF
17171
17172
17173 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17174 echo "obj-m := conftest.o" >build/Makefile
17175 modpost_flag=''
17176 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17177 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17179 (eval $ac_try) 2>&5
17180 ac_status=$?
0b31b230
AX
17181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17184 (eval $ac_try) 2>&5
17185 ac_status=$?
0b31b230
AX
17186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
10946b02 17188
0b31b230 17189 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17190$as_echo "yes" >&6; }
17191
0b31b230
AX
17192cat >>confdefs.h <<\_ACEOF
17193#define HAVE_FILE_FALLOCATE 1
17194_ACEOF
10946b02
AX
17195
17196
17197else
17198 $as_echo "$as_me: failed program was:" >&5
17199sed 's/^/| /' conftest.$ac_ext >&5
17200
0b31b230 17201 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
17202$as_echo "no" >&6; }
17203
17204
17205
17206fi
0b31b230 17207
10946b02
AX
17208 rm -Rf build
17209
17210
17211
17212
0b31b230
AX
17213
17214 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
17215$as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
10946b02
AX
17216
17217
17218cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17219/* confdefs.h. */
17220_ACEOF
17221cat confdefs.h >>conftest.$ac_ext
17222cat >>conftest.$ac_ext <<_ACEOF
17223/* end confdefs.h. */
10946b02
AX
17224
17225
0b31b230
AX
17226 #if !defined(CONFIG_ZLIB_INFLATE) && \
17227 !defined(CONFIG_ZLIB_INFLATE_MODULE)
17228 #error CONFIG_ZLIB_INFLATE not defined
17229 #endif
10946b02
AX
17230
17231int
17232main (void)
17233{
17234
10946b02
AX
17235 ;
17236 return 0;
17237}
17238
17239_ACEOF
17240
17241
17242 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17243 echo "obj-m := conftest.o" >build/Makefile
17244 modpost_flag=''
17245 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17246 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
0b31b230
AX
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
10946b02
AX
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
0b31b230
AX
17255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
10946b02 17257
0b31b230 17258 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17259$as_echo "yes" >&6; }
17260
10946b02
AX
17261else
17262 $as_echo "$as_me: failed program was:" >&5
17263sed 's/^/| /' conftest.$ac_ext >&5
17264
0b31b230 17265 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 17266$as_echo "no" >&6; }
0b31b230
AX
17267 { { $as_echo "$as_me:$LINENO: error:
17268 *** This kernel does not include the required zlib inflate support.
17269 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&5
17270$as_echo "$as_me: error:
17271 *** This kernel does not include the required zlib inflate support.
17272 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&2;}
17273 { (exit 1); exit 1; }; }
10946b02
AX
17274
17275
17276
17277fi
0b31b230 17278
10946b02
AX
17279 rm -Rf build
17280
17281
17282
17283
0b31b230
AX
17284 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
17285$as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
10946b02
AX
17286
17287
17288cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17289/* confdefs.h. */
17290_ACEOF
17291cat confdefs.h >>conftest.$ac_ext
17292cat >>conftest.$ac_ext <<_ACEOF
17293/* end confdefs.h. */
10946b02
AX
17294
17295
0b31b230
AX
17296 #if !defined(CONFIG_ZLIB_DEFLATE) && \
17297 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
17298 #error CONFIG_ZLIB_DEFLATE not defined
17299 #endif
10946b02
AX
17300
17301int
17302main (void)
17303{
17304
10946b02
AX
17305 ;
17306 return 0;
17307}
17308
17309_ACEOF
17310
17311
17312 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17313 echo "obj-m := conftest.o" >build/Makefile
17314 modpost_flag=''
17315 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17316 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
0b31b230
AX
17320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
0b31b230
AX
17325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
10946b02 17327
0b31b230 17328 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17329$as_echo "yes" >&6; }
17330
10946b02
AX
17331else
17332 $as_echo "$as_me: failed program was:" >&5
17333sed 's/^/| /' conftest.$ac_ext >&5
17334
0b31b230 17335 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 17336$as_echo "no" >&6; }
0b31b230
AX
17337 { { $as_echo "$as_me:$LINENO: error:
17338 *** This kernel does not include the required zlib deflate support.
17339 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&5
17340$as_echo "$as_me: error:
17341 *** This kernel does not include the required zlib deflate support.
17342 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&2;}
17343 { (exit 1); exit 1; }; }
10946b02
AX
17344
17345
17346
17347fi
10946b02 17348
0b31b230 17349 rm -Rf build
10946b02
AX
17350
17351
17352
0b31b230
AX
17353 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
17354$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
10946b02
AX
17355
17356
17357cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17358/* confdefs.h. */
17359_ACEOF
17360cat confdefs.h >>conftest.$ac_ext
17361cat >>conftest.$ac_ext <<_ACEOF
17362/* end confdefs.h. */
10946b02
AX
17363
17364
0b31b230 17365 #include <linux/zlib.h>
10946b02
AX
17366
17367int
17368main (void)
17369{
17370
0b31b230
AX
17371 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
17372
10946b02
AX
17373 ;
17374 return 0;
17375}
17376
17377_ACEOF
17378
17379
17380 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17381 echo "obj-m := conftest.o" >build/Makefile
17382 modpost_flag=''
17383 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17384 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
0b31b230
AX
17388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
0b31b230
AX
17393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
10946b02 17395
0b31b230 17396 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17397$as_echo "yes" >&6; }
17398
0b31b230
AX
17399cat >>confdefs.h <<\_ACEOF
17400#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
17401_ACEOF
17402
17403
10946b02
AX
17404else
17405 $as_echo "$as_me: failed program was:" >&5
17406sed 's/^/| /' conftest.$ac_ext >&5
17407
0b31b230 17408 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 17409$as_echo "no" >&6; }
10946b02
AX
17410
17411
17412
17413fi
0b31b230 17414
10946b02
AX
17415 rm -Rf build
17416
17417
17418
17419
0b31b230
AX
17420 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
17421$as_echo_n "checking whether struct shrink_control exists... " >&6; }
10946b02
AX
17422
17423
17424cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17425/* confdefs.h. */
17426_ACEOF
17427cat confdefs.h >>conftest.$ac_ext
17428cat >>conftest.$ac_ext <<_ACEOF
17429/* end confdefs.h. */
10946b02
AX
17430
17431
0b31b230 17432 #include <linux/mm.h>
10946b02
AX
17433
17434int
17435main (void)
17436{
17437
0b31b230
AX
17438 struct shrink_control sc __attribute__ ((unused));
17439
17440 sc.nr_to_scan = 0;
17441 sc.gfp_mask = GFP_KERNEL;
17442
10946b02
AX
17443 ;
17444 return 0;
17445}
17446
17447_ACEOF
17448
17449
17450 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17451 echo "obj-m := conftest.o" >build/Makefile
17452 modpost_flag=''
17453 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17454 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17456 (eval $ac_try) 2>&5
17457 ac_status=$?
0b31b230
AX
17458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
0b31b230
AX
17463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
10946b02 17465
0b31b230 17466 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17467$as_echo "yes" >&6; }
17468
0b31b230
AX
17469cat >>confdefs.h <<\_ACEOF
17470#define HAVE_SHRINK_CONTROL_STRUCT 1
17471_ACEOF
17472
17473
10946b02
AX
17474else
17475 $as_echo "$as_me: failed program was:" >&5
17476sed 's/^/| /' conftest.$ac_ext >&5
17477
0b31b230 17478 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 17479$as_echo "no" >&6; }
10946b02
AX
17480
17481
17482
17483fi
0b31b230 17484
10946b02
AX
17485 rm -Rf build
17486
17487
17488
0b31b230
AX
17489
17490 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
17491$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
17492 tmp_flags="$EXTRA_KCFLAGS"
17493 EXTRA_KCFLAGS="-Werror"
10946b02
AX
17494
17495
17496cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17497/* confdefs.h. */
17498_ACEOF
17499cat confdefs.h >>conftest.$ac_ext
17500cat >>conftest.$ac_ext <<_ACEOF
17501/* end confdefs.h. */
10946b02
AX
17502
17503
0b31b230 17504 #include <linux/rwsem.h>
10946b02
AX
17505
17506int
17507main (void)
17508{
17509
0b31b230
AX
17510 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17511 raw_spinlock_t dummy_lock __attribute__ ((unused)) =
17512 __RAW_SPIN_LOCK_INITIALIZER(dummy_lock);
17513 dummy_semaphore.wait_lock = dummy_lock;
10946b02
AX
17514
17515 ;
17516 return 0;
17517}
17518
17519_ACEOF
17520
17521
17522 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17523 echo "obj-m := conftest.o" >build/Makefile
17524 modpost_flag=''
17525 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17526 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
0b31b230
AX
17530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17533 (eval $ac_try) 2>&5
17534 ac_status=$?
0b31b230
AX
17535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; }; then
10946b02 17537
0b31b230 17538 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17539$as_echo "yes" >&6; }
17540
0b31b230
AX
17541cat >>confdefs.h <<\_ACEOF
17542#define RWSEM_SPINLOCK_IS_RAW 1
17543_ACEOF
10946b02
AX
17544
17545
17546else
17547 $as_echo "$as_me: failed program was:" >&5
17548sed 's/^/| /' conftest.$ac_ext >&5
17549
0b31b230 17550 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
17551$as_echo "no" >&6; }
17552
17553
17554
17555fi
0b31b230 17556
10946b02
AX
17557 rm -Rf build
17558
17559
0b31b230 17560 EXTRA_KCFLAGS="$tmp_flags"
10946b02
AX
17561
17562
0b31b230
AX
17563 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has member activity" >&5
17564$as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
17565 tmp_flags="$EXTRA_KCFLAGS"
17566 EXTRA_KCFLAGS="-Werror"
10946b02
AX
17567
17568
17569cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17570/* confdefs.h. */
17571_ACEOF
17572cat confdefs.h >>conftest.$ac_ext
17573cat >>conftest.$ac_ext <<_ACEOF
17574/* end confdefs.h. */
10946b02
AX
17575
17576
0b31b230 17577 #include <linux/rwsem.h>
10946b02
AX
17578
17579int
17580main (void)
17581{
17582
0b31b230
AX
17583 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17584 dummy_semaphore.activity = 0;
10946b02
AX
17585
17586 ;
17587 return 0;
17588}
17589
17590_ACEOF
17591
17592
17593 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17594 echo "obj-m := conftest.o" >build/Makefile
17595 modpost_flag=''
17596 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17597 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
0b31b230
AX
17601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
0b31b230
AX
17606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
10946b02 17608
0b31b230 17609 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17610$as_echo "yes" >&6; }
17611
0b31b230
AX
17612cat >>confdefs.h <<\_ACEOF
17613#define HAVE_RWSEM_ACTIVITY 1
17614_ACEOF
10946b02
AX
17615
17616
17617else
17618 $as_echo "$as_me: failed program was:" >&5
17619sed 's/^/| /' conftest.$ac_ext >&5
17620
0b31b230 17621 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
17622$as_echo "no" >&6; }
17623
17624
17625
17626fi
0b31b230 17627
10946b02
AX
17628 rm -Rf build
17629
17630
0b31b230 17631 EXTRA_KCFLAGS="$tmp_flags"
10946b02
AX
17632
17633
0b31b230
AX
17634 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has atomic_long_t member count" >&5
17635$as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
10946b02
AX
17636 tmp_flags="$EXTRA_KCFLAGS"
17637 EXTRA_KCFLAGS="-Werror"
17638
17639
17640cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17641/* confdefs.h. */
17642_ACEOF
17643cat confdefs.h >>conftest.$ac_ext
17644cat >>conftest.$ac_ext <<_ACEOF
17645/* end confdefs.h. */
10946b02
AX
17646
17647
17648 #include <linux/rwsem.h>
17649
17650int
17651main (void)
17652{
17653
0b31b230
AX
17654 DECLARE_RWSEM(dummy_semaphore);
17655 (void) atomic_long_read(&dummy_semaphore.count);
10946b02
AX
17656
17657 ;
17658 return 0;
17659}
17660
17661_ACEOF
17662
17663
17664 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17665 echo "obj-m := conftest.o" >build/Makefile
17666 modpost_flag=''
17667 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17668 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
0b31b230
AX
17672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
0b31b230
AX
17677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
10946b02 17679
0b31b230 17680 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17681$as_echo "yes" >&6; }
17682
0b31b230
AX
17683cat >>confdefs.h <<\_ACEOF
17684#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1
17685_ACEOF
10946b02
AX
17686
17687
17688else
17689 $as_echo "$as_me: failed program was:" >&5
17690sed 's/^/| /' conftest.$ac_ext >&5
17691
0b31b230 17692 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
17693$as_echo "no" >&6; }
17694
17695
17696
0f836a62 17697fi
0b31b230 17698
0f836a62
AX
17699 rm -Rf build
17700
17701
17702 EXTRA_KCFLAGS="$tmp_flags"
17703
0b31b230
AX
17704 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/rt.h exists" >&5
17705$as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
0f836a62
AX
17706
17707
17708cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17709/* confdefs.h. */
17710_ACEOF
17711cat confdefs.h >>conftest.$ac_ext
17712cat >>conftest.$ac_ext <<_ACEOF
17713/* end confdefs.h. */
0f836a62
AX
17714
17715
0b31b230
AX
17716 #include <linux/sched.h>
17717 #include <linux/sched/rt.h>
0f836a62
AX
17718
17719int
17720main (void)
17721{
17722
0b31b230 17723 return 0;
0f836a62
AX
17724
17725 ;
17726 return 0;
17727}
17728
17729_ACEOF
17730
17731
17732 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17733 echo "obj-m := conftest.o" >build/Makefile
17734 modpost_flag=''
17735 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17736 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
17738 (eval $ac_try) 2>&5
17739 ac_status=$?
0b31b230
AX
17740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
0b31b230
AX
17745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
0f836a62 17747
0f836a62 17748
0b31b230
AX
17749cat >>confdefs.h <<\_ACEOF
17750#define HAVE_SCHED_RT_HEADER 1
17751_ACEOF
0f836a62 17752
0b31b230
AX
17753 { $as_echo "$as_me:$LINENO: result: yes" >&5
17754$as_echo "yes" >&6; }
0f836a62
AX
17755
17756else
17757 $as_echo "$as_me: failed program was:" >&5
17758sed 's/^/| /' conftest.$ac_ext >&5
17759
0b31b230 17760 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
17761$as_echo "no" >&6; }
17762
17763
17764
17765fi
0f836a62 17766
0b31b230 17767 rm -Rf build
0f836a62 17768
0f836a62
AX
17769
17770
0b31b230
AX
17771 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/signal.h exists" >&5
17772$as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
0f836a62
AX
17773
17774
17775cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17776/* confdefs.h. */
17777_ACEOF
17778cat confdefs.h >>conftest.$ac_ext
17779cat >>conftest.$ac_ext <<_ACEOF
17780/* end confdefs.h. */
0f836a62
AX
17781
17782
0b31b230
AX
17783 #include <linux/sched.h>
17784 #include <linux/sched/signal.h>
0f836a62
AX
17785
17786int
17787main (void)
17788{
17789
0b31b230 17790 return 0;
0f836a62
AX
17791
17792 ;
17793 return 0;
17794}
17795
17796_ACEOF
17797
17798
17799 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17800 echo "obj-m := conftest.o" >build/Makefile
17801 modpost_flag=''
17802 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17803 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
17805 (eval $ac_try) 2>&5
17806 ac_status=$?
0b31b230
AX
17807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
0b31b230
AX
17812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
0f836a62 17814
0f836a62 17815
0b31b230
AX
17816cat >>confdefs.h <<\_ACEOF
17817#define HAVE_SCHED_SIGNAL_HEADER 1
17818_ACEOF
0f836a62 17819
0b31b230
AX
17820 { $as_echo "$as_me:$LINENO: result: yes" >&5
17821$as_echo "yes" >&6; }
0f836a62
AX
17822
17823else
17824 $as_echo "$as_me: failed program was:" >&5
17825sed 's/^/| /' conftest.$ac_ext >&5
17826
0b31b230 17827 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
17828$as_echo "no" >&6; }
17829
17830
17831
10946b02 17832fi
0b31b230 17833
10946b02
AX
17834 rm -Rf build
17835
17836
10946b02 17837
0b31b230
AX
17838
17839 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 4 args" >&5
17840$as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
10946b02
AX
17841
17842
17843cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17844/* confdefs.h. */
17845_ACEOF
17846cat confdefs.h >>conftest.$ac_ext
17847cat >>conftest.$ac_ext <<_ACEOF
17848/* end confdefs.h. */
10946b02
AX
17849
17850
0b31b230 17851 #include <linux/fs.h>
10946b02
AX
17852
17853int
17854main (void)
17855{
17856
0b31b230
AX
17857 vfs_getattr((const struct path *)NULL,
17858 (struct kstat *)NULL,
17859 (u32)0,
17860 (unsigned int)0);
10946b02
AX
17861
17862 ;
17863 return 0;
17864}
17865
17866_ACEOF
17867
17868
17869 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17870 echo "obj-m := conftest.o" >build/Makefile
17871 modpost_flag=''
17872 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17873 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
0b31b230
AX
17877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
0b31b230
AX
17882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; }; then
10946b02 17884
0b31b230
AX
17885 { $as_echo "$as_me:$LINENO: result: yes" >&5
17886$as_echo "yes" >&6; }
10946b02 17887
0b31b230
AX
17888cat >>confdefs.h <<\_ACEOF
17889#define HAVE_4ARGS_VFS_GETATTR 1
17890_ACEOF
10946b02 17891
10946b02
AX
17892
17893else
17894 $as_echo "$as_me: failed program was:" >&5
17895sed 's/^/| /' conftest.$ac_ext >&5
17896
0b31b230 17897 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
17898$as_echo "no" >&6; }
17899
17900
17901
17902fi
0b31b230 17903
10946b02
AX
17904 rm -Rf build
17905
17906
17907
17908
0b31b230
AX
17909 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 3 args" >&5
17910$as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
10946b02
AX
17911
17912
17913cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17914/* confdefs.h. */
17915_ACEOF
17916cat confdefs.h >>conftest.$ac_ext
17917cat >>conftest.$ac_ext <<_ACEOF
17918/* end confdefs.h. */
10946b02
AX
17919
17920
17921 #include <linux/fs.h>
17922
17923int
17924main (void)
17925{
17926
0b31b230
AX
17927 vfs_getattr((struct vfsmount *)NULL,
17928 (struct dentry *)NULL,
10946b02
AX
17929 (struct kstat *)NULL);
17930
17931 ;
17932 return 0;
17933}
17934
17935_ACEOF
17936
17937
17938 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17939 echo "obj-m := conftest.o" >build/Makefile
17940 modpost_flag=''
17941 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17942 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
0b31b230
AX
17946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
0b31b230
AX
17951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
10946b02 17953
0b31b230
AX
17954 { $as_echo "$as_me:$LINENO: result: yes" >&5
17955$as_echo "yes" >&6; }
10946b02 17956
0b31b230
AX
17957cat >>confdefs.h <<\_ACEOF
17958#define HAVE_3ARGS_VFS_GETATTR 1
17959_ACEOF
10946b02
AX
17960
17961
17962else
17963 $as_echo "$as_me: failed program was:" >&5
17964sed 's/^/| /' conftest.$ac_ext >&5
17965
0b31b230
AX
17966 { $as_echo "$as_me:$LINENO: result: no" >&5
17967$as_echo "no" >&6; }
17968
17969
17970
17971fi
17972
17973 rm -Rf build
17974
17975
17976
17977
17978 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 2 args" >&5
17979$as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
10946b02
AX
17980
17981
17982cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
17983/* confdefs.h. */
17984_ACEOF
17985cat confdefs.h >>conftest.$ac_ext
17986cat >>conftest.$ac_ext <<_ACEOF
17987/* end confdefs.h. */
10946b02
AX
17988
17989
0b31b230 17990 #include <linux/fs.h>
10946b02
AX
17991
17992int
17993main (void)
17994{
17995
0b31b230
AX
17996 vfs_getattr((struct path *) NULL,
17997 (struct kstat *)NULL);
10946b02
AX
17998
17999 ;
18000 return 0;
18001}
18002
18003_ACEOF
18004
18005
18006 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18007 echo "obj-m := conftest.o" >build/Makefile
18008 modpost_flag=''
18009 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18010 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
0b31b230
AX
18014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
0b31b230
AX
18019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021
18022 { $as_echo "$as_me:$LINENO: result: yes" >&5
18023$as_echo "yes" >&6; }
18024
18025cat >>confdefs.h <<\_ACEOF
18026#define HAVE_2ARGS_VFS_GETATTR 1
18027_ACEOF
10946b02 18028
10946b02
AX
18029
18030else
18031 $as_echo "$as_me: failed program was:" >&5
18032sed 's/^/| /' conftest.$ac_ext >&5
18033
0b31b230
AX
18034 { $as_echo "$as_me:$LINENO: result: no" >&5
18035$as_echo "no" >&6; }
10946b02
AX
18036
18037
18038
18039fi
10946b02 18040
10946b02
AX
18041 rm -Rf build
18042
18043
18044
18045
0b31b230 18046 { $as_echo "$as_me:$LINENO: checking whether usleep_range() is available" >&5
10946b02
AX
18047$as_echo_n "checking whether usleep_range() is available... " >&6; }
18048
18049
18050cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
18051/* confdefs.h. */
18052_ACEOF
18053cat confdefs.h >>conftest.$ac_ext
18054cat >>conftest.$ac_ext <<_ACEOF
18055/* end confdefs.h. */
10946b02
AX
18056
18057
18058 #include <linux/delay.h>
18059
18060int
18061main (void)
18062{
18063
18064 usleep_range(0, 0);
18065
18066 ;
18067 return 0;
18068}
18069
18070_ACEOF
18071
18072
18073 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18074 echo "obj-m := conftest.o" >build/Makefile
18075 modpost_flag=''
18076 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18077 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
0b31b230
AX
18081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18084 (eval $ac_try) 2>&5
18085 ac_status=$?
0b31b230
AX
18086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
10946b02 18088
0b31b230 18089 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
18090$as_echo "yes" >&6; }
18091
0b31b230
AX
18092cat >>confdefs.h <<\_ACEOF
18093#define HAVE_USLEEP_RANGE 1
18094_ACEOF
10946b02
AX
18095
18096
18097else
18098 $as_echo "$as_me: failed program was:" >&5
18099sed 's/^/| /' conftest.$ac_ext >&5
18100
0b31b230 18101 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
18102$as_echo "no" >&6; }
18103
18104
18105
18106fi
0b31b230 18107
10946b02
AX
18108 rm -Rf build
18109
18110
18111
18112
0b31b230 18113 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has allocflags" >&5
10946b02
AX
18114$as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
18115
18116
18117cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
18118/* confdefs.h. */
18119_ACEOF
18120cat confdefs.h >>conftest.$ac_ext
18121cat >>conftest.$ac_ext <<_ACEOF
18122/* end confdefs.h. */
10946b02
AX
18123
18124
18125 #include <linux/slab.h>
18126
18127int
18128main (void)
18129{
18130
18131 struct kmem_cache cachep __attribute__ ((unused));
18132 cachep.allocflags = GFP_KERNEL;
18133
18134 ;
18135 return 0;
18136}
18137
18138_ACEOF
18139
18140
18141 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18142 echo "obj-m := conftest.o" >build/Makefile
18143 modpost_flag=''
18144 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18145 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
0b31b230
AX
18149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
0b31b230
AX
18154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
10946b02 18156
0b31b230 18157 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
18158$as_echo "yes" >&6; }
18159
0b31b230
AX
18160cat >>confdefs.h <<\_ACEOF
18161#define HAVE_KMEM_CACHE_ALLOCFLAGS 1
18162_ACEOF
10946b02
AX
18163
18164
18165else
18166 $as_echo "$as_me: failed program was:" >&5
18167sed 's/^/| /' conftest.$ac_ext >&5
18168
0b31b230 18169 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
18170$as_echo "no" >&6; }
18171
0b31b230 18172 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has gfpflags" >&5
10946b02
AX
18173$as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
18174
18175
18176cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
18177/* confdefs.h. */
18178_ACEOF
18179cat confdefs.h >>conftest.$ac_ext
18180cat >>conftest.$ac_ext <<_ACEOF
18181/* end confdefs.h. */
10946b02
AX
18182
18183
18184 #include <linux/slab.h>
18185
18186int
18187main (void)
18188{
18189
18190 struct kmem_cache cachep __attribute__ ((unused));
18191 cachep.gfpflags = GFP_KERNEL;
18192
18193 ;
18194 return 0;
18195}
18196
18197_ACEOF
18198
18199
18200 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18201 echo "obj-m := conftest.o" >build/Makefile
18202 modpost_flag=''
18203 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18204 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
0b31b230
AX
18208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
0b31b230
AX
18213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
10946b02 18215
0b31b230 18216 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
18217$as_echo "yes" >&6; }
18218
0b31b230
AX
18219cat >>confdefs.h <<\_ACEOF
18220#define HAVE_KMEM_CACHE_GFPFLAGS 1
18221_ACEOF
10946b02
AX
18222
18223
18224else
18225 $as_echo "$as_me: failed program was:" >&5
18226sed 's/^/| /' conftest.$ac_ext >&5
18227
0b31b230 18228 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
18229$as_echo "no" >&6; }
18230
18231
18232
18233fi
0b31b230 18234
10946b02
AX
18235 rm -Rf build
18236
18237
18238
18239
18240
18241fi
0b31b230 18242
10946b02
AX
18243 rm -Rf build
18244
18245
18246
18247
0b31b230 18248 { $as_echo "$as_me:$LINENO: checking whether wait_on_bit() takes an action" >&5
10946b02
AX
18249$as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
18250
18251
18252cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
18253/* confdefs.h. */
18254_ACEOF
18255cat confdefs.h >>conftest.$ac_ext
18256cat >>conftest.$ac_ext <<_ACEOF
18257/* end confdefs.h. */
10946b02
AX
18258
18259
18260 #include <linux/wait.h>
18261
18262int
18263main (void)
18264{
18265
18266 int (*action)(void *) = NULL;
18267 wait_on_bit(NULL, 0, action, 0);
18268
18269 ;
18270 return 0;
18271}
18272
18273_ACEOF
18274
18275
18276 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18277 echo "obj-m := conftest.o" >build/Makefile
18278 modpost_flag=''
18279 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18280 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
0b31b230
AX
18284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
0b31b230
AX
18289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
10946b02 18291
0b31b230 18292 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
18293$as_echo "yes" >&6; }
18294
0b31b230
AX
18295cat >>confdefs.h <<\_ACEOF
18296#define HAVE_WAIT_ON_BIT_ACTION 1
18297_ACEOF
10946b02
AX
18298
18299
18300else
18301 $as_echo "$as_me: failed program was:" >&5
18302sed 's/^/| /' conftest.$ac_ext >&5
18303
0b31b230 18304 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
18305$as_echo "no" >&6; }
18306
18307
18308
18309fi
0b31b230 18310
10946b02
AX
18311 rm -Rf build
18312
18313
18314
18315
0b31b230 18316 { $as_echo "$as_me:$LINENO: checking whether inode_lock_shared() exists" >&5
0f836a62
AX
18317$as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
18318 tmp_flags="$EXTRA_KCFLAGS"
18319 EXTRA_KCFLAGS="-Werror"
18320
18321
18322cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
18323/* confdefs.h. */
18324_ACEOF
18325cat confdefs.h >>conftest.$ac_ext
18326cat >>conftest.$ac_ext <<_ACEOF
18327/* end confdefs.h. */
0f836a62
AX
18328
18329
18330 #include <linux/fs.h>
18331
18332int
18333main (void)
18334{
18335
18336 struct inode *inode = NULL;
18337 inode_lock_shared(inode);
18338
18339 ;
18340 return 0;
18341}
18342
18343_ACEOF
18344
18345
18346 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18347 echo "obj-m := conftest.o" >build/Makefile
18348 modpost_flag=''
18349 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18350 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 18351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
18352 (eval $ac_try) 2>&5
18353 ac_status=$?
0b31b230
AX
18354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
0b31b230
AX
18359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
0f836a62 18361
0b31b230 18362 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
18363$as_echo "yes" >&6; }
18364
0b31b230
AX
18365cat >>confdefs.h <<\_ACEOF
18366#define HAVE_INODE_LOCK_SHARED 1
18367_ACEOF
0f836a62
AX
18368
18369
18370else
18371 $as_echo "$as_me: failed program was:" >&5
18372sed 's/^/| /' conftest.$ac_ext >&5
18373
0b31b230 18374 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
18375$as_echo "no" >&6; }
18376
18377
18378
18379fi
0b31b230 18380
0f836a62
AX
18381 rm -Rf build
18382
18383
18384 EXTRA_KCFLAGS="$tmp_flags"
18385
18386
0b31b230 18387 { $as_echo "$as_me:$LINENO: checking whether mutex has owner" >&5
0f836a62
AX
18388$as_echo_n "checking whether mutex has owner... " >&6; }
18389 tmp_flags="$EXTRA_KCFLAGS"
18390 EXTRA_KCFLAGS="-Werror"
18391
18392
18393cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
18394/* confdefs.h. */
18395_ACEOF
18396cat confdefs.h >>conftest.$ac_ext
18397cat >>conftest.$ac_ext <<_ACEOF
18398/* end confdefs.h. */
0f836a62
AX
18399
18400
18401 #include <linux/mutex.h>
18402 #include <linux/spinlock.h>
18403
18404int
18405main (void)
18406{
18407
18408 DEFINE_MUTEX(m);
18409 struct task_struct *t __attribute__ ((unused));
18410 t = m.owner;
18411
18412 ;
18413 return 0;
18414}
18415
18416_ACEOF
18417
18418
18419 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18420 echo "obj-m := conftest.o" >build/Makefile
18421 modpost_flag=''
18422 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18423 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
0b31b230
AX
18427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
0b31b230
AX
18432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; }; then
0f836a62 18434
0b31b230 18435 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
18436$as_echo "yes" >&6; }
18437
0b31b230
AX
18438cat >>confdefs.h <<\_ACEOF
18439#define HAVE_MUTEX_OWNER 1
18440_ACEOF
0f836a62
AX
18441
18442
18443else
18444 $as_echo "$as_me: failed program was:" >&5
18445sed 's/^/| /' conftest.$ac_ext >&5
18446
0b31b230 18447 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
18448$as_echo "no" >&6; }
18449
18450
18451
ac9cc135 18452fi
0b31b230 18453
ac9cc135
AX
18454 rm -Rf build
18455
18456
18457 EXTRA_KCFLAGS="$tmp_flags"
18458
18459
0b31b230 18460 { $as_echo "$as_me:$LINENO: checking whether group_info->gid exists" >&5
ac9cc135
AX
18461$as_echo_n "checking whether group_info->gid exists... " >&6; }
18462 tmp_flags="$EXTRA_KCFLAGS"
18463 EXTRA_KCFLAGS="-Werror"
18464
18465
18466cat confdefs.h - <<_ACEOF >conftest.c
0b31b230
AX
18467/* confdefs.h. */
18468_ACEOF
18469cat confdefs.h >>conftest.$ac_ext
18470cat >>conftest.$ac_ext <<_ACEOF
18471/* end confdefs.h. */
ac9cc135
AX
18472
18473
18474 #include <linux/cred.h>
18475
18476int
18477main (void)
18478{
18479
18480 struct group_info *gi = groups_alloc(1);
18481 gi->gid[0] = KGIDT_INIT(0);
18482
18483 ;
18484 return 0;
18485}
18486
18487_ACEOF
18488
18489
18490 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18491 echo "obj-m := conftest.o" >build/Makefile
18492 modpost_flag=''
18493 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18494 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
0b31b230 18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ac9cc135
AX
18496 (eval $ac_try) 2>&5
18497 ac_status=$?
0b31b230
AX
18498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ac9cc135
AX
18501 (eval $ac_try) 2>&5
18502 ac_status=$?
0b31b230
AX
18503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
ac9cc135 18505
0b31b230 18506 { $as_echo "$as_me:$LINENO: result: yes" >&5
ac9cc135
AX
18507$as_echo "yes" >&6; }
18508
0b31b230
AX
18509cat >>confdefs.h <<\_ACEOF
18510#define HAVE_GROUP_INFO_GID 1
18511_ACEOF
ac9cc135
AX
18512
18513
18514else
18515 $as_echo "$as_me: failed program was:" >&5
18516sed 's/^/| /' conftest.$ac_ext >&5
18517
0b31b230 18518 { $as_echo "$as_me:$LINENO: result: no" >&5
ac9cc135
AX
18519$as_echo "no" >&6; }
18520
18521
18522
0f836a62 18523fi
0b31b230 18524
0f836a62
AX
18525 rm -Rf build
18526
18527
18528 EXTRA_KCFLAGS="$tmp_flags"
18529
18530
10946b02
AX
18531 ;;
18532 srpm) ;;
18533 *)
0b31b230 18534 { $as_echo "$as_me:$LINENO: result: Error!" >&5
10946b02 18535$as_echo "Error!" >&6; }
0b31b230
AX
18536 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
18537 user kernel|user|all|srpm" >&5
18538$as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
18539 user kernel|user|all|srpm" >&2;}
18540 { (exit 1); exit 1; }; } ;;
10946b02
AX
18541 esac
18542
18543 if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then
18544 CONFIG_USER_TRUE=
18545 CONFIG_USER_FALSE='#'
18546else
18547 CONFIG_USER_TRUE='#'
18548 CONFIG_USER_FALSE=
18549fi
18550
18551 if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all &&
18552 test "x$enable_linux_builtin" != xyes ; then
18553 CONFIG_KERNEL_TRUE=
18554 CONFIG_KERNEL_FALSE='#'
18555else
18556 CONFIG_KERNEL_TRUE='#'
18557 CONFIG_KERNEL_FALSE=
18558fi
18559
18560
18561
18562ac_config_files="$ac_config_files Makefile man/Makefile man/man1/Makefile man/man5/Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile include/fs/Makefile include/linux/Makefile include/rpc/Makefile include/sharefs/Makefile include/sys/Makefile include/sys/fm/Makefile include/sys/fs/Makefile include/sys/sysevent/Makefile include/util/Makefile include/vm/Makefile scripts/Makefile rpm/Makefile rpm/redhat/Makefile rpm/redhat/spl.spec rpm/redhat/spl-kmod.spec rpm/redhat/spl-dkms.spec rpm/generic/Makefile rpm/generic/spl.spec rpm/generic/spl-kmod.spec rpm/generic/spl-dkms.spec spl.release"
18563
18564
18565cat >confcache <<\_ACEOF
18566# This file is a shell script that caches the results of configure
18567# tests run on this system so they can be shared between configure
18568# scripts and configure runs, see configure's option --config-cache.
18569# It is not useful on other systems. If it contains results you don't
18570# want to keep, you may remove or edit it.
18571#
18572# config.status only pays attention to the cache file if you give it
18573# the --recheck option to rerun configure.
18574#
18575# `ac_cv_env_foo' variables (set or unset) will be overridden when
18576# loading this file, other *unset* `ac_cv_foo' will be assigned the
18577# following values.
18578
18579_ACEOF
18580
18581# The following way of writing the cache mishandles newlines in values,
18582# but we know of no workaround that is simple, portable, and efficient.
18583# So, we kill variables containing newlines.
18584# Ultrix sh set writes to stderr and can't be redirected directly,
18585# and sets the high bit in the cache file unless we assign to the vars.
18586(
18587 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18588 eval ac_val=\$$ac_var
18589 case $ac_val in #(
18590 *${as_nl}*)
18591 case $ac_var in #(
0b31b230 18592 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10946b02
AX
18593$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18594 esac
18595 case $ac_var in #(
18596 _ | IFS | as_nl) ;; #(
18597 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
0b31b230 18598 *) $as_unset $ac_var ;;
10946b02
AX
18599 esac ;;
18600 esac
18601 done
18602
18603 (set) 2>&1 |
18604 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18605 *${as_nl}ac_space=\ *)
0b31b230
AX
18606 # `set' does not quote correctly, so add quotes (double-quote
18607 # substitution turns \\\\ into \\, and sed turns \\ into \).
10946b02
AX
18608 sed -n \
18609 "s/'/'\\\\''/g;
18610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18611 ;; #(
18612 *)
18613 # `set' quotes correctly as required by POSIX, so do not add quotes.
18614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18615 ;;
18616 esac |
18617 sort
18618) |
18619 sed '
18620 /^ac_cv_env_/b end
18621 t clear
18622 :clear
18623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18624 t end
18625 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18626 :end' >>confcache
18627if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18628 if test -w "$cache_file"; then
0b31b230
AX
18629 test "x$cache_file" != "x/dev/null" &&
18630 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10946b02 18631$as_echo "$as_me: updating cache $cache_file" >&6;}
0b31b230 18632 cat confcache >$cache_file
10946b02 18633 else
0b31b230 18634 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10946b02
AX
18635$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18636 fi
18637fi
18638rm -f confcache
18639
18640test "x$prefix" = xNONE && prefix=$ac_default_prefix
18641# Let make expand exec_prefix.
18642test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18643
18644DEFS=-DHAVE_CONFIG_H
18645
18646ac_libobjs=
18647ac_ltlibobjs=
10946b02
AX
18648for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18649 # 1. Remove the extension, and $U if already installed.
18650 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18651 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18653 # will be set to the directory where LIBOBJS objects are built.
0b31b230
AX
18654 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18655 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10946b02
AX
18656done
18657LIBOBJS=$ac_libobjs
18658
18659LTLIBOBJS=$ac_ltlibobjs
18660
18661
18662if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
0b31b230
AX
18663 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18664Usually this means the macro was only invoked conditionally." >&5
18665$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18666Usually this means the macro was only invoked conditionally." >&2;}
18667 { (exit 1); exit 1; }; }
18668fi
10946b02
AX
18669 if test -n "$EXEEXT"; then
18670 am__EXEEXT_TRUE=
18671 am__EXEEXT_FALSE='#'
18672else
18673 am__EXEEXT_TRUE='#'
18674 am__EXEEXT_FALSE=
18675fi
18676
18677if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
0b31b230
AX
18678 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18679Usually this means the macro was only invoked conditionally." >&5
18680$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18681Usually this means the macro was only invoked conditionally." >&2;}
18682 { (exit 1); exit 1; }; }
10946b02
AX
18683fi
18684if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
0b31b230
AX
18685 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18686Usually this means the macro was only invoked conditionally." >&5
18687$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18688Usually this means the macro was only invoked conditionally." >&2;}
18689 { (exit 1); exit 1; }; }
10946b02
AX
18690fi
18691if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
0b31b230
AX
18692 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
18693Usually this means the macro was only invoked conditionally." >&5
18694$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
18695Usually this means the macro was only invoked conditionally." >&2;}
18696 { (exit 1); exit 1; }; }
10946b02
AX
18697fi
18698if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
0b31b230
AX
18699 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
18700Usually this means the macro was only invoked conditionally." >&5
18701$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
18702Usually this means the macro was only invoked conditionally." >&2;}
18703 { (exit 1); exit 1; }; }
10946b02
AX
18704fi
18705
0b31b230 18706: ${CONFIG_STATUS=./config.status}
10946b02
AX
18707ac_write_fail=0
18708ac_clean_files_save=$ac_clean_files
18709ac_clean_files="$ac_clean_files $CONFIG_STATUS"
0b31b230 18710{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10946b02 18711$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
0b31b230 18712cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10946b02
AX
18713#! $SHELL
18714# Generated by $as_me.
18715# Run this file to recreate the current configuration.
18716# Compiler output produced by configure, useful for debugging
18717# configure, is in config.log if it exists.
18718
18719debug=false
18720ac_cs_recheck=false
18721ac_cs_silent=false
10946b02 18722SHELL=\${CONFIG_SHELL-$SHELL}
0b31b230
AX
18723_ACEOF
18724
18725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18726## --------------------- ##
18727## M4sh Initialization. ##
18728## --------------------- ##
10946b02
AX
18729
18730# Be more Bourne compatible
18731DUALCASE=1; export DUALCASE # for MKS sh
0b31b230 18732if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10946b02
AX
18733 emulate sh
18734 NULLCMD=:
18735 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18736 # is contrary to our usage. Disable this feature.
18737 alias -g '${1+"$@"}'='"$@"'
18738 setopt NO_GLOB_SUBST
18739else
0b31b230
AX
18740 case `(set -o) 2>/dev/null` in
18741 *posix*) set -o posix ;;
10946b02 18742esac
0b31b230 18743
10946b02
AX
18744fi
18745
18746
0b31b230
AX
18747
18748
18749# PATH needs CR
18750# Avoid depending upon Character Ranges.
18751as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18752as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18753as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18754as_cr_digits='0123456789'
18755as_cr_alnum=$as_cr_Letters$as_cr_digits
18756
10946b02
AX
18757as_nl='
18758'
18759export as_nl
18760# Printing a long string crashes Solaris 7 /usr/bin/printf.
18761as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18762as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18763as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
0b31b230 18764if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10946b02
AX
18765 as_echo='printf %s\n'
18766 as_echo_n='printf %s'
18767else
18768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18769 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18770 as_echo_n='/usr/ucb/echo -n'
18771 else
18772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18773 as_echo_n_body='eval
18774 arg=$1;
0b31b230 18775 case $arg in
10946b02
AX
18776 *"$as_nl"*)
18777 expr "X$arg" : "X\\(.*\\)$as_nl";
18778 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18779 esac;
18780 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18781 '
18782 export as_echo_n_body
18783 as_echo_n='sh -c $as_echo_n_body as_echo'
18784 fi
18785 export as_echo_body
18786 as_echo='sh -c $as_echo_body as_echo'
18787fi
18788
18789# The user is always right.
18790if test "${PATH_SEPARATOR+set}" != set; then
18791 PATH_SEPARATOR=:
18792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18794 PATH_SEPARATOR=';'
18795 }
18796fi
18797
0b31b230
AX
18798# Support unset when possible.
18799if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18800 as_unset=unset
18801else
18802 as_unset=false
18803fi
18804
10946b02
AX
18805
18806# IFS
18807# We need space, tab and new line, in precisely that order. Quoting is
18808# there to prevent editors from complaining about space-tab.
18809# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18810# splitting by setting IFS to empty value.)
18811IFS=" "" $as_nl"
18812
18813# Find who we are. Look in the path if we contain no directory separator.
0b31b230 18814case $0 in
10946b02
AX
18815 *[\\/]* ) as_myself=$0 ;;
18816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18817for as_dir in $PATH
18818do
18819 IFS=$as_save_IFS
18820 test -z "$as_dir" && as_dir=.
0b31b230
AX
18821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18822done
10946b02
AX
18823IFS=$as_save_IFS
18824
18825 ;;
18826esac
18827# We did not find ourselves, most probably we were run as `sh COMMAND'
18828# in which case we are not to be found in the path.
18829if test "x$as_myself" = x; then
18830 as_myself=$0
18831fi
18832if test ! -f "$as_myself"; then
18833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
0b31b230 18834 { (exit 1); exit 1; }
10946b02
AX
18835fi
18836
0b31b230
AX
18837# Work around bugs in pre-3.0 UWIN ksh.
18838for as_var in ENV MAIL MAILPATH
18839do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10946b02
AX
18840done
18841PS1='$ '
18842PS2='> '
18843PS4='+ '
18844
18845# NLS nuisances.
18846LC_ALL=C
18847export LC_ALL
18848LANGUAGE=C
18849export LANGUAGE
18850
0b31b230 18851# Required to use basename.
10946b02
AX
18852if expr a : '\(a\)' >/dev/null 2>&1 &&
18853 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18854 as_expr=expr
18855else
18856 as_expr=false
18857fi
18858
18859if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18860 as_basename=basename
18861else
18862 as_basename=false
18863fi
18864
10946b02 18865
0b31b230 18866# Name of the executable.
10946b02
AX
18867as_me=`$as_basename -- "$0" ||
18868$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18869 X"$0" : 'X\(//\)$' \| \
18870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18871$as_echo X/"$0" |
18872 sed '/^.*\/\([^/][^/]*\)\/*$/{
18873 s//\1/
18874 q
18875 }
18876 /^X\/\(\/\/\)$/{
18877 s//\1/
18878 q
18879 }
18880 /^X\/\(\/\).*/{
18881 s//\1/
18882 q
18883 }
18884 s/.*/./; q'`
18885
0b31b230
AX
18886# CDPATH.
18887$as_unset CDPATH
18888
18889
18890
18891 as_lineno_1=$LINENO
18892 as_lineno_2=$LINENO
18893 test "x$as_lineno_1" != "x$as_lineno_2" &&
18894 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18895
18896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18897 # uniformly replaced by the line number. The first 'sed' inserts a
18898 # line-number line after each line using $LINENO; the second 'sed'
18899 # does the real work. The second script uses 'N' to pair each
18900 # line-number line with the line containing $LINENO, and appends
18901 # trailing '-' during substitution so that $LINENO is not a special
18902 # case at line end.
18903 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18904 # scripts with optimization help from Paolo Bonzini. Blame Lee
18905 # E. McMahon (1931-1989) for sed's syntax. :-)
18906 sed -n '
18907 p
18908 /[$]LINENO/=
18909 ' <$as_myself |
18910 sed '
18911 s/[$]LINENO.*/&-/
18912 t lineno
18913 b
18914 :lineno
18915 N
18916 :loop
18917 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18918 t loop
18919 s/-\n.*//
18920 ' >$as_me.lineno &&
18921 chmod +x "$as_me.lineno" ||
18922 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18923 { (exit 1); exit 1; }; }
18924
18925 # Don't try to exec as it changes $[0], causing all sort of problems
18926 # (the dirname of $[0] is not the place where we might find the
18927 # original and so on. Autoconf is especially sensitive to this).
18928 . "./$as_me.lineno"
18929 # Exit status is that of the last command.
18930 exit
18931}
18932
18933
18934if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18935 as_dirname=dirname
18936else
18937 as_dirname=false
18938fi
10946b02
AX
18939
18940ECHO_C= ECHO_N= ECHO_T=
0b31b230 18941case `echo -n x` in
10946b02 18942-n*)
0b31b230 18943 case `echo 'x\c'` in
10946b02 18944 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
0b31b230 18945 *) ECHO_C='\c';;
10946b02
AX
18946 esac;;
18947*)
18948 ECHO_N='-n';;
18949esac
0b31b230
AX
18950if expr a : '\(a\)' >/dev/null 2>&1 &&
18951 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18952 as_expr=expr
18953else
18954 as_expr=false
18955fi
10946b02
AX
18956
18957rm -f conf$$ conf$$.exe conf$$.file
18958if test -d conf$$.dir; then
18959 rm -f conf$$.dir/conf$$.file
18960else
18961 rm -f conf$$.dir
18962 mkdir conf$$.dir 2>/dev/null
18963fi
18964if (echo >conf$$.file) 2>/dev/null; then
18965 if ln -s conf$$.file conf$$ 2>/dev/null; then
18966 as_ln_s='ln -s'
18967 # ... but there are two gotchas:
18968 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18969 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
0b31b230 18970 # In both cases, we have to default to `cp -p'.
10946b02 18971 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
0b31b230 18972 as_ln_s='cp -p'
10946b02
AX
18973 elif ln conf$$.file conf$$ 2>/dev/null; then
18974 as_ln_s=ln
18975 else
0b31b230 18976 as_ln_s='cp -p'
10946b02
AX
18977 fi
18978else
0b31b230 18979 as_ln_s='cp -p'
10946b02 18980fi
0b31b230
AX
18981rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18982rmdir conf$$.dir 2>/dev/null
10946b02 18983
10946b02 18984if mkdir -p . 2>/dev/null; then
0b31b230 18985 as_mkdir_p=:
10946b02
AX
18986else
18987 test -d ./-p && rmdir ./-p
18988 as_mkdir_p=false
18989fi
18990
0b31b230
AX
18991if test -x / >/dev/null 2>&1; then
18992 as_test_x='test -x'
18993else
18994 if ls -dL / >/dev/null 2>&1; then
18995 as_ls_L_option=L
18996 else
18997 as_ls_L_option=
18998 fi
18999 as_test_x='
19000 eval sh -c '\''
19001 if test -d "$1"; then
19002 test -d "$1/.";
19003 else
19004 case $1 in
19005 -*)set "./$1";;
19006 esac;
19007 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19008 ???[sx]*):;;*)false;;esac;fi
19009 '\'' sh
19010 '
19011fi
19012as_executable_p=$as_test_x
10946b02
AX
19013
19014# Sed expression to map a string onto a valid CPP name.
19015as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19016
19017# Sed expression to map a string onto a valid variable name.
19018as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19019
19020
19021exec 6>&1
10946b02 19022
0b31b230 19023# Save the log message, to keep $[0] and so on meaningful, and to
10946b02
AX
19024# report actual input values of CONFIG_FILES etc. instead of their
19025# values after options handling.
19026ac_log="
0b31b230
AX
19027This file was extended by spl $as_me 0.6.5.11, which was
19028generated by GNU Autoconf 2.63. Invocation command line was
10946b02
AX
19029
19030 CONFIG_FILES = $CONFIG_FILES
19031 CONFIG_HEADERS = $CONFIG_HEADERS
19032 CONFIG_LINKS = $CONFIG_LINKS
19033 CONFIG_COMMANDS = $CONFIG_COMMANDS
19034 $ $0 $@
19035
19036on `(hostname || uname -n) 2>/dev/null | sed 1q`
19037"
19038
19039_ACEOF
19040
19041case $ac_config_files in *"
19042"*) set x $ac_config_files; shift; ac_config_files=$*;;
19043esac
19044
19045case $ac_config_headers in *"
19046"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19047esac
19048
19049
19050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19051# Files that config.status was made for.
19052config_files="$ac_config_files"
19053config_headers="$ac_config_headers"
19054config_commands="$ac_config_commands"
19055
19056_ACEOF
19057
19058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19059ac_cs_usage="\
0b31b230
AX
19060\`$as_me' instantiates files from templates according to the
19061current configuration.
10946b02 19062
0b31b230 19063Usage: $0 [OPTION]... [FILE]...
10946b02
AX
19064
19065 -h, --help print this help, then exit
19066 -V, --version print version number and configuration settings, then exit
10946b02
AX
19067 -q, --quiet, --silent
19068 do not print progress messages
19069 -d, --debug don't remove temporary files
19070 --recheck update $as_me by reconfiguring in the same conditions
19071 --file=FILE[:TEMPLATE]
19072 instantiate the configuration file FILE
19073 --header=FILE[:TEMPLATE]
19074 instantiate the configuration header FILE
19075
19076Configuration files:
19077$config_files
19078
19079Configuration headers:
19080$config_headers
19081
19082Configuration commands:
19083$config_commands
19084
0b31b230 19085Report bugs to <bug-autoconf@gnu.org>."
10946b02
AX
19086
19087_ACEOF
19088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10946b02 19089ac_cs_version="\\
0b31b230
AX
19090spl config.status 0.6.5.11
19091configured by $0, generated by GNU Autoconf 2.63,
19092 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10946b02 19093
0b31b230 19094Copyright (C) 2008 Free Software Foundation, Inc.
10946b02
AX
19095This config.status script is free software; the Free Software Foundation
19096gives unlimited permission to copy, distribute and modify it."
19097
19098ac_pwd='$ac_pwd'
19099srcdir='$srcdir'
19100INSTALL='$INSTALL'
19101MKDIR_P='$MKDIR_P'
19102AWK='$AWK'
19103test -n "\$AWK" || AWK=awk
19104_ACEOF
19105
19106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19107# The default lists apply if the user does not specify any file.
19108ac_need_defaults=:
19109while test $# != 0
19110do
19111 case $1 in
0b31b230 19112 --*=*)
10946b02
AX
19113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19115 ac_shift=:
19116 ;;
10946b02
AX
19117 *)
19118 ac_option=$1
19119 ac_optarg=$2
19120 ac_shift=shift
19121 ;;
19122 esac
19123
19124 case $ac_option in
19125 # Handling of the options.
19126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19127 ac_cs_recheck=: ;;
19128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19129 $as_echo "$ac_cs_version"; exit ;;
10946b02
AX
19130 --debug | --debu | --deb | --de | --d | -d )
19131 debug=: ;;
19132 --file | --fil | --fi | --f )
19133 $ac_shift
19134 case $ac_optarg in
19135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10946b02 19136 esac
0b31b230 19137 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10946b02
AX
19138 ac_need_defaults=false;;
19139 --header | --heade | --head | --hea )
19140 $ac_shift
19141 case $ac_optarg in
19142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19143 esac
0b31b230 19144 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10946b02
AX
19145 ac_need_defaults=false;;
19146 --he | --h)
19147 # Conflict between --help and --header
0b31b230
AX
19148 { $as_echo "$as_me: error: ambiguous option: $1
19149Try \`$0 --help' for more information." >&2
19150 { (exit 1); exit 1; }; };;
10946b02
AX
19151 --help | --hel | -h )
19152 $as_echo "$ac_cs_usage"; exit ;;
19153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19155 ac_cs_silent=: ;;
19156
19157 # This is an error.
0b31b230
AX
19158 -*) { $as_echo "$as_me: error: unrecognized option: $1
19159Try \`$0 --help' for more information." >&2
19160 { (exit 1); exit 1; }; } ;;
10946b02 19161
0b31b230 19162 *) ac_config_targets="$ac_config_targets $1"
10946b02
AX
19163 ac_need_defaults=false ;;
19164
19165 esac
19166 shift
19167done
19168
19169ac_configure_extra_args=
19170
19171if $ac_cs_silent; then
19172 exec 6>/dev/null
19173 ac_configure_extra_args="$ac_configure_extra_args --silent"
19174fi
19175
19176_ACEOF
19177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19178if \$ac_cs_recheck; then
0b31b230 19179 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10946b02
AX
19180 shift
19181 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19182 CONFIG_SHELL='$SHELL'
19183 export CONFIG_SHELL
19184 exec "\$@"
19185fi
19186
19187_ACEOF
19188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19189exec 5>>config.log
19190{
19191 echo
19192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19193## Running $as_me. ##
19194_ASBOX
19195 $as_echo "$ac_log"
19196} >&5
19197
19198_ACEOF
19199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19200#
19201# INIT-COMMANDS
19202#
19203AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19204
19205
19206# The HP-UX ksh and POSIX shell print the target directory to stdout
19207# if CDPATH is set.
19208(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19209
19210sed_quote_subst='$sed_quote_subst'
19211double_quote_subst='$double_quote_subst'
19212delay_variable_subst='$delay_variable_subst'
0b31b230
AX
19213macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19214macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19215enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19216enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19217pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19218enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19219host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19220host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19221host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19222build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19223build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19224build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19225SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19226Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19227GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19228EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19229FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19230LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19231NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19232LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19233max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19234ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19235exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19236lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19237lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19238lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19239reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19240reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19241OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19242deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19243file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19244AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19245AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19246STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19247RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19248old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19249old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19250old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19251CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19252CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19253compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19254GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19255lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19256lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19257lt_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"`'
19258lt_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"`'
19259objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19260SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19261ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19262MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19263lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19264lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19265lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19266lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19267lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19268need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19269DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19270NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19271LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19272OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19273OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19274libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19275shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19276extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19277archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19278enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19279export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19280whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19281compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19282old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19283old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19284archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19285archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19286module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19287module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19288with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19289allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19290no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19291hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19292hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19293hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19294hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19295hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19296hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19297hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19298hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19299inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19300link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19301fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19302always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19303export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19304exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19305include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19306prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19307file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19308variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19309need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19310need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19311version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19312runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19313shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19314shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19315libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19316library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19317soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19318postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19319postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19320finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19321finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19322hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19323sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19324sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19325hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19326enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19327enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19328enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19329old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19330striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
10946b02
AX
19331
19332LTCC='$LTCC'
19333LTCFLAGS='$LTCFLAGS'
19334compiler='$compiler_DEFAULT'
19335
10946b02 19336# Quote evaled strings.
0b31b230 19337for var in SED \
10946b02
AX
19338GREP \
19339EGREP \
19340FGREP \
19341LD \
19342NM \
19343LN_S \
19344lt_SP2NL \
19345lt_NL2SP \
19346reload_flag \
19347OBJDUMP \
19348deplibs_check_method \
19349file_magic_cmd \
10946b02
AX
19350AR \
19351AR_FLAGS \
10946b02
AX
19352STRIP \
19353RANLIB \
19354CC \
19355CFLAGS \
19356compiler \
19357lt_cv_sys_global_symbol_pipe \
19358lt_cv_sys_global_symbol_to_cdecl \
19359lt_cv_sys_global_symbol_to_c_name_address \
19360lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
0b31b230
AX
19361SHELL \
19362ECHO \
10946b02 19363lt_prog_compiler_no_builtin_flag \
10946b02 19364lt_prog_compiler_wl \
0b31b230 19365lt_prog_compiler_pic \
10946b02
AX
19366lt_prog_compiler_static \
19367lt_cv_prog_compiler_c_o \
19368need_locks \
10946b02
AX
19369DSYMUTIL \
19370NMEDIT \
19371LIPO \
19372OTOOL \
19373OTOOL64 \
19374shrext_cmds \
19375export_dynamic_flag_spec \
19376whole_archive_flag_spec \
19377compiler_needs_object \
19378with_gnu_ld \
19379allow_undefined_flag \
19380no_undefined_flag \
19381hardcode_libdir_flag_spec \
0b31b230 19382hardcode_libdir_flag_spec_ld \
10946b02 19383hardcode_libdir_separator \
0b31b230 19384fix_srcfile_path \
10946b02
AX
19385exclude_expsyms \
19386include_expsyms \
19387file_list_spec \
19388variables_saved_for_relink \
19389libname_spec \
19390library_names_spec \
19391soname_spec \
10946b02
AX
19392finish_eval \
19393old_striplib \
19394striplib; do
0b31b230 19395 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10946b02 19396 *[\\\\\\\`\\"\\\$]*)
0b31b230 19397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
10946b02
AX
19398 ;;
19399 *)
19400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19401 ;;
19402 esac
19403done
19404
19405# Double-quote double-evaled strings.
19406for var in reload_cmds \
19407old_postinstall_cmds \
19408old_postuninstall_cmds \
19409old_archive_cmds \
19410extract_expsyms_cmds \
19411old_archive_from_new_cmds \
19412old_archive_from_expsyms_cmds \
19413archive_cmds \
19414archive_expsym_cmds \
19415module_cmds \
19416module_expsym_cmds \
19417export_symbols_cmds \
19418prelink_cmds \
10946b02
AX
19419postinstall_cmds \
19420postuninstall_cmds \
19421finish_cmds \
19422sys_lib_search_path_spec \
0b31b230
AX
19423sys_lib_dlsearch_path_spec; do
19424 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10946b02 19425 *[\\\\\\\`\\"\\\$]*)
0b31b230 19426 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
10946b02
AX
19427 ;;
19428 *)
19429 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19430 ;;
19431 esac
19432done
19433
0b31b230
AX
19434# Fix-up fallback echo if it was mangled by the above quoting rules.
19435case \$lt_ECHO in
19436*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19437 ;;
19438esac
19439
10946b02 19440ac_aux_dir='$ac_aux_dir'
0b31b230
AX
19441xsi_shell='$xsi_shell'
19442lt_shell_append='$lt_shell_append'
10946b02 19443
0b31b230 19444# See if we are running on zsh, and set the options which allow our
10946b02 19445# commands through without removal of \ escapes INIT.
0b31b230 19446if test -n "\${ZSH_VERSION+set}" ; then
10946b02
AX
19447 setopt NO_GLOB_SUBST
19448fi
19449
19450
19451 PACKAGE='$PACKAGE'
19452 VERSION='$VERSION'
0b31b230 19453 TIMESTAMP='$TIMESTAMP'
10946b02
AX
19454 RM='$RM'
19455 ofile='$ofile'
19456
19457
19458
19459
19460_ACEOF
19461
19462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19463
19464# Handling of arguments.
19465for ac_config_target in $ac_config_targets
19466do
19467 case $ac_config_target in
19468 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19469 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19470 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19471 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19472 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19473 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
19474 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
19475 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19476 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
19477 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19478 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19479 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19480 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19481 "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;;
19482 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
19483 "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;;
19484 "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;;
19485 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
19486 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
19487 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
19488 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
19489 "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;;
19490 "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;;
19491 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19492 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
19493 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
19494 "rpm/redhat/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl.spec" ;;
19495 "rpm/redhat/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;;
19496 "rpm/redhat/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;;
19497 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
19498 "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;;
19499 "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
19500 "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
19501 "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;;
19502
0b31b230
AX
19503 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19504$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19505 { (exit 1); exit 1; }; };;
10946b02
AX
19506 esac
19507done
19508
19509
19510# If the user did not use the arguments to specify the items to instantiate,
19511# then the envvar interface is used. Set only those that are not.
19512# We use the long form for the default assignment because of an extremely
19513# bizarre bug on SunOS 4.1.3.
19514if $ac_need_defaults; then
19515 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19516 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19517 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19518fi
19519
19520# Have a temporary directory for convenience. Make it in the build tree
19521# simply because there is no reason against having it here, and in addition,
19522# creating and moving files from /tmp can sometimes cause problems.
19523# Hook for its removal unless debugging.
19524# Note that there is a small window in which the directory will not be cleaned:
19525# after its creation but before its name has been assigned to `$tmp'.
19526$debug ||
19527{
0b31b230 19528 tmp=
10946b02 19529 trap 'exit_status=$?
0b31b230 19530 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10946b02 19531' 0
0b31b230 19532 trap '{ (exit 1); exit 1; }' 1 2 13 15
10946b02
AX
19533}
19534# Create a (secure) tmp directory for tmp files.
19535
19536{
19537 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
0b31b230 19538 test -n "$tmp" && test -d "$tmp"
10946b02
AX
19539} ||
19540{
19541 tmp=./conf$$-$RANDOM
19542 (umask 077 && mkdir "$tmp")
0b31b230
AX
19543} ||
19544{
19545 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19546 { (exit 1); exit 1; }
19547}
10946b02
AX
19548
19549# Set up the scripts for CONFIG_FILES section.
19550# No need to generate them if there are no CONFIG_FILES.
19551# This happens for instance with `./config.status config.h'.
19552if test -n "$CONFIG_FILES"; then
19553
19554
0b31b230 19555ac_cr='\r'
10946b02
AX
19556ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19557if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19558 ac_cs_awk_cr='\\r'
19559else
19560 ac_cs_awk_cr=$ac_cr
19561fi
19562
0b31b230 19563echo 'BEGIN {' >"$tmp/subs1.awk" &&
10946b02
AX
19564_ACEOF
19565
19566
19567{
19568 echo "cat >conf$$subs.awk <<_ACEOF" &&
19569 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19570 echo "_ACEOF"
19571} >conf$$subs.sh ||
0b31b230
AX
19572 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19573$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19574 { (exit 1); exit 1; }; }
19575ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10946b02
AX
19576ac_delim='%!_!# '
19577for ac_last_try in false false false false false :; do
19578 . ./conf$$subs.sh ||
0b31b230
AX
19579 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19580$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19581 { (exit 1); exit 1; }; }
10946b02
AX
19582
19583 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19584 if test $ac_delim_n = $ac_delim_num; then
19585 break
19586 elif $ac_last_try; then
0b31b230
AX
19587 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19588$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19589 { (exit 1); exit 1; }; }
10946b02
AX
19590 else
19591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19592 fi
19593done
19594rm -f conf$$subs.sh
19595
19596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
0b31b230 19597cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10946b02
AX
19598_ACEOF
19599sed -n '
19600h
19601s/^/S["/; s/!.*/"]=/
19602p
19603g
19604s/^[^!]*!//
19605:repl
19606t repl
19607s/'"$ac_delim"'$//
19608t delim
19609:nl
19610h
0b31b230 19611s/\(.\{148\}\).*/\1/
10946b02
AX
19612t more1
19613s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19614p
19615n
19616b repl
19617:more1
19618s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19619p
19620g
19621s/.\{148\}//
19622t nl
19623:delim
19624h
0b31b230 19625s/\(.\{148\}\).*/\1/
10946b02
AX
19626t more2
19627s/["\\]/\\&/g; s/^/"/; s/$/"/
19628p
19629b
19630:more2
19631s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19632p
19633g
19634s/.\{148\}//
19635t delim
19636' <conf$$subs.awk | sed '
19637/^[^""]/{
19638 N
19639 s/\n//
19640}
19641' >>$CONFIG_STATUS || ac_write_fail=1
19642rm -f conf$$subs.awk
19643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19644_ACAWK
0b31b230 19645cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10946b02
AX
19646 for (key in S) S_is_set[key] = 1
19647 FS = "\a"
19648
19649}
19650{
19651 line = $ 0
19652 nfields = split(line, field, "@")
19653 substed = 0
19654 len = length(field[1])
19655 for (i = 2; i < nfields; i++) {
19656 key = field[i]
19657 keylen = length(key)
19658 if (S_is_set[key]) {
19659 value = S[key]
19660 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19661 len += length(value) + length(field[++i])
19662 substed = 1
19663 } else
19664 len += 1 + keylen
19665 }
19666
19667 print line
19668}
19669
19670_ACAWK
19671_ACEOF
19672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19673if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19674 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19675else
19676 cat
0b31b230
AX
19677fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19678 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19679$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19680 { (exit 1); exit 1; }; }
10946b02
AX
19681_ACEOF
19682
0b31b230
AX
19683# VPATH may cause trouble with some makes, so we remove $(srcdir),
19684# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10946b02
AX
19685# trailing colons and then remove the whole line if VPATH becomes empty
19686# (actually we leave an empty line to preserve line numbers).
19687if test "x$srcdir" = x.; then
0b31b230
AX
19688 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19689s/:*\$(srcdir):*/:/
19690s/:*\${srcdir}:*/:/
19691s/:*@srcdir@:*/:/
19692s/^\([^=]*=[ ]*\):*/\1/
10946b02 19693s/:*$//
10946b02
AX
19694s/^[^=]*=[ ]*$//
19695}'
19696fi
19697
19698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19699fi # test -n "$CONFIG_FILES"
19700
19701# Set up the scripts for CONFIG_HEADERS section.
19702# No need to generate them if there are no CONFIG_HEADERS.
19703# This happens for instance with `./config.status Makefile'.
19704if test -n "$CONFIG_HEADERS"; then
0b31b230 19705cat >"$tmp/defines.awk" <<\_ACAWK ||
10946b02
AX
19706BEGIN {
19707_ACEOF
19708
19709# Transform confdefs.h into an awk script `defines.awk', embedded as
19710# here-document in config.status, that substitutes the proper values into
19711# config.h.in to produce config.h.
19712
19713# Create a delimiter string that does not exist in confdefs.h, to ease
19714# handling of long lines.
19715ac_delim='%!_!# '
19716for ac_last_try in false false :; do
0b31b230
AX
19717 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19718 if test -z "$ac_t"; then
10946b02
AX
19719 break
19720 elif $ac_last_try; then
0b31b230
AX
19721 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19722$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19723 { (exit 1); exit 1; }; }
10946b02
AX
19724 else
19725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19726 fi
19727done
19728
19729# For the awk script, D is an array of macro values keyed by name,
19730# likewise P contains macro parameters if any. Preserve backslash
19731# newline sequences.
19732
19733ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19734sed -n '
19735s/.\{148\}/&'"$ac_delim"'/g
19736t rset
19737:rset
19738s/^[ ]*#[ ]*define[ ][ ]*/ /
19739t def
19740d
19741:def
19742s/\\$//
19743t bsnl
19744s/["\\]/\\&/g
19745s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19746D["\1"]=" \3"/p
19747s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19748d
19749:bsnl
19750s/["\\]/\\&/g
19751s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19752D["\1"]=" \3\\\\\\n"\\/p
19753t cont
19754s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19755t cont
19756d
19757:cont
19758n
19759s/.\{148\}/&'"$ac_delim"'/g
19760t clear
19761:clear
19762s/\\$//
19763t bsnlc
19764s/["\\]/\\&/g; s/^/"/; s/$/"/p
19765d
19766:bsnlc
19767s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19768b cont
19769' <confdefs.h | sed '
19770s/'"$ac_delim"'/"\\\
19771"/g' >>$CONFIG_STATUS || ac_write_fail=1
19772
19773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19774 for (key in D) D_is_set[key] = 1
19775 FS = "\a"
19776}
19777/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19778 line = \$ 0
19779 split(line, arg, " ")
19780 if (arg[1] == "#") {
19781 defundef = arg[2]
19782 mac1 = arg[3]
19783 } else {
19784 defundef = substr(arg[1], 2)
19785 mac1 = arg[2]
19786 }
19787 split(mac1, mac2, "(") #)
19788 macro = mac2[1]
19789 prefix = substr(line, 1, index(line, defundef) - 1)
19790 if (D_is_set[macro]) {
19791 # Preserve the white space surrounding the "#".
19792 print prefix "define", macro P[macro] D[macro]
19793 next
19794 } else {
19795 # Replace #undef with comments. This is necessary, for example,
19796 # in the case of _POSIX_SOURCE, which is predefined and required
19797 # on some systems where configure will not decide to define it.
19798 if (defundef == "undef") {
19799 print "/*", prefix defundef, macro, "*/"
19800 next
19801 }
19802 }
19803}
19804{ print }
19805_ACAWK
19806_ACEOF
19807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
0b31b230
AX
19808 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19809$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19810 { (exit 1); exit 1; }; }
10946b02
AX
19811fi # test -n "$CONFIG_HEADERS"
19812
19813
19814eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19815shift
19816for ac_tag
19817do
19818 case $ac_tag in
19819 :[FHLC]) ac_mode=$ac_tag; continue;;
19820 esac
19821 case $ac_mode$ac_tag in
19822 :[FHL]*:*);;
0b31b230
AX
19823 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19824$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19825 { (exit 1); exit 1; }; };;
10946b02
AX
19826 :[FH]-) ac_tag=-:-;;
19827 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19828 esac
19829 ac_save_IFS=$IFS
19830 IFS=:
19831 set x $ac_tag
19832 IFS=$ac_save_IFS
19833 shift
19834 ac_file=$1
19835 shift
19836
19837 case $ac_mode in
19838 :L) ac_source=$1;;
19839 :[FH])
19840 ac_file_inputs=
19841 for ac_f
19842 do
19843 case $ac_f in
0b31b230 19844 -) ac_f="$tmp/stdin";;
10946b02
AX
19845 *) # Look for the file first in the build tree, then in the source tree
19846 # (if the path is not absolute). The absolute path cannot be DOS-style,
19847 # because $ac_f cannot contain `:'.
19848 test -f "$ac_f" ||
19849 case $ac_f in
19850 [\\/$]*) false;;
19851 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19852 esac ||
0b31b230
AX
19853 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19854$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19855 { (exit 1); exit 1; }; };;
10946b02
AX
19856 esac
19857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
0b31b230 19858 ac_file_inputs="$ac_file_inputs '$ac_f'"
10946b02
AX
19859 done
19860
19861 # Let's still pretend it is `configure' which instantiates (i.e., don't
19862 # use $as_me), people would be surprised to read:
19863 # /* config.h. Generated by config.status. */
19864 configure_input='Generated from '`
19865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19866 `' by configure.'
19867 if test x"$ac_file" != x-; then
19868 configure_input="$ac_file. $configure_input"
0b31b230 19869 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10946b02
AX
19870$as_echo "$as_me: creating $ac_file" >&6;}
19871 fi
19872 # Neutralize special characters interpreted by sed in replacement strings.
19873 case $configure_input in #(
19874 *\&* | *\|* | *\\* )
19875 ac_sed_conf_input=`$as_echo "$configure_input" |
19876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19877 *) ac_sed_conf_input=$configure_input;;
19878 esac
19879
19880 case $ac_tag in
0b31b230
AX
19881 *:-:* | *:-) cat >"$tmp/stdin" \
19882 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19883$as_echo "$as_me: error: could not create $ac_file" >&2;}
19884 { (exit 1); exit 1; }; } ;;
10946b02
AX
19885 esac
19886 ;;
19887 esac
19888
19889 ac_dir=`$as_dirname -- "$ac_file" ||
19890$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19891 X"$ac_file" : 'X\(//\)[^/]' \| \
19892 X"$ac_file" : 'X\(//\)$' \| \
19893 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19894$as_echo X"$ac_file" |
19895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19896 s//\1/
19897 q
19898 }
19899 /^X\(\/\/\)[^/].*/{
19900 s//\1/
19901 q
19902 }
19903 /^X\(\/\/\)$/{
19904 s//\1/
19905 q
19906 }
19907 /^X\(\/\).*/{
19908 s//\1/
19909 q
19910 }
19911 s/.*/./; q'`
0b31b230
AX
19912 { as_dir="$ac_dir"
19913 case $as_dir in #(
19914 -*) as_dir=./$as_dir;;
19915 esac
19916 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19917 as_dirs=
19918 while :; do
19919 case $as_dir in #(
19920 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19921 *) as_qdir=$as_dir;;
19922 esac
19923 as_dirs="'$as_qdir' $as_dirs"
19924 as_dir=`$as_dirname -- "$as_dir" ||
19925$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19926 X"$as_dir" : 'X\(//\)[^/]' \| \
19927 X"$as_dir" : 'X\(//\)$' \| \
19928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19929$as_echo X"$as_dir" |
19930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19931 s//\1/
19932 q
19933 }
19934 /^X\(\/\/\)[^/].*/{
19935 s//\1/
19936 q
19937 }
19938 /^X\(\/\/\)$/{
19939 s//\1/
19940 q
19941 }
19942 /^X\(\/\).*/{
19943 s//\1/
19944 q
19945 }
19946 s/.*/./; q'`
19947 test -d "$as_dir" && break
19948 done
19949 test -z "$as_dirs" || eval "mkdir $as_dirs"
19950 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19951$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19952 { (exit 1); exit 1; }; }; }
10946b02
AX
19953 ac_builddir=.
19954
19955case "$ac_dir" in
19956.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19957*)
19958 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19959 # A ".." for each directory in $ac_dir_suffix.
19960 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19961 case $ac_top_builddir_sub in
19962 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19963 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19964 esac ;;
19965esac
19966ac_abs_top_builddir=$ac_pwd
19967ac_abs_builddir=$ac_pwd$ac_dir_suffix
19968# for backward compatibility:
19969ac_top_builddir=$ac_top_build_prefix
19970
19971case $srcdir in
19972 .) # We are building in place.
19973 ac_srcdir=.
19974 ac_top_srcdir=$ac_top_builddir_sub
19975 ac_abs_top_srcdir=$ac_pwd ;;
19976 [\\/]* | ?:[\\/]* ) # Absolute name.
19977 ac_srcdir=$srcdir$ac_dir_suffix;
19978 ac_top_srcdir=$srcdir
19979 ac_abs_top_srcdir=$srcdir ;;
19980 *) # Relative name.
19981 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19982 ac_top_srcdir=$ac_top_build_prefix$srcdir
19983 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19984esac
19985ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19986
19987
19988 case $ac_mode in
19989 :F)
19990 #
19991 # CONFIG_FILE
19992 #
19993
19994 case $INSTALL in
19995 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19996 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19997 esac
19998 ac_MKDIR_P=$MKDIR_P
19999 case $MKDIR_P in
20000 [\\/$]* | ?:[\\/]* ) ;;
20001 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20002 esac
20003_ACEOF
20004
20005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20006# If the template does not know about datarootdir, expand it.
20007# FIXME: This hack should be removed a few years after 2.60.
20008ac_datarootdir_hack=; ac_datarootdir_seen=
0b31b230 20009
10946b02
AX
20010ac_sed_dataroot='
20011/datarootdir/ {
20012 p
20013 q
20014}
20015/@datadir@/p
20016/@docdir@/p
20017/@infodir@/p
20018/@localedir@/p
0b31b230
AX
20019/@mandir@/p
20020'
10946b02
AX
20021case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20022*datarootdir*) ac_datarootdir_seen=yes;;
20023*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
0b31b230 20024 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10946b02
AX
20025$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20026_ACEOF
20027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20028 ac_datarootdir_hack='
20029 s&@datadir@&$datadir&g
20030 s&@docdir@&$docdir&g
20031 s&@infodir@&$infodir&g
20032 s&@localedir@&$localedir&g
20033 s&@mandir@&$mandir&g
0b31b230 20034 s&\\\${datarootdir}&$datarootdir&g' ;;
10946b02
AX
20035esac
20036_ACEOF
20037
20038# Neutralize VPATH when `$srcdir' = `.'.
20039# Shell code in configure.ac might set extrasub.
20040# FIXME: do we really want to maintain this feature?
20041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20042ac_sed_extra="$ac_vpsub
20043$extrasub
20044_ACEOF
20045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20046:t
20047/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20048s|@configure_input@|$ac_sed_conf_input|;t t
20049s&@top_builddir@&$ac_top_builddir_sub&;t t
20050s&@top_build_prefix@&$ac_top_build_prefix&;t t
20051s&@srcdir@&$ac_srcdir&;t t
20052s&@abs_srcdir@&$ac_abs_srcdir&;t t
20053s&@top_srcdir@&$ac_top_srcdir&;t t
20054s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20055s&@builddir@&$ac_builddir&;t t
20056s&@abs_builddir@&$ac_abs_builddir&;t t
20057s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20058s&@INSTALL@&$ac_INSTALL&;t t
20059s&@MKDIR_P@&$ac_MKDIR_P&;t t
20060$ac_datarootdir_hack
20061"
0b31b230
AX
20062eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20063 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20064$as_echo "$as_me: error: could not create $ac_file" >&2;}
20065 { (exit 1); exit 1; }; }
10946b02
AX
20066
20067test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
0b31b230
AX
20068 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20069 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20070 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20071which seems to be undefined. Please make sure it is defined." >&5
10946b02 20072$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
0b31b230 20073which seems to be undefined. Please make sure it is defined." >&2;}
10946b02 20074
0b31b230 20075 rm -f "$tmp/stdin"
10946b02 20076 case $ac_file in
0b31b230
AX
20077 -) cat "$tmp/out" && rm -f "$tmp/out";;
20078 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10946b02 20079 esac \
0b31b230
AX
20080 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20081$as_echo "$as_me: error: could not create $ac_file" >&2;}
20082 { (exit 1); exit 1; }; }
10946b02
AX
20083 ;;
20084 :H)
20085 #
20086 # CONFIG_HEADER
20087 #
20088 if test x"$ac_file" != x-; then
20089 {
20090 $as_echo "/* $configure_input */" \
0b31b230
AX
20091 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20092 } >"$tmp/config.h" \
20093 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20094$as_echo "$as_me: error: could not create $ac_file" >&2;}
20095 { (exit 1); exit 1; }; }
20096 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20097 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10946b02
AX
20098$as_echo "$as_me: $ac_file is unchanged" >&6;}
20099 else
20100 rm -f "$ac_file"
0b31b230
AX
20101 mv "$tmp/config.h" "$ac_file" \
20102 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20103$as_echo "$as_me: error: could not create $ac_file" >&2;}
20104 { (exit 1); exit 1; }; }
10946b02
AX
20105 fi
20106 else
20107 $as_echo "/* $configure_input */" \
0b31b230
AX
20108 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20109 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
20110$as_echo "$as_me: error: could not create -" >&2;}
20111 { (exit 1); exit 1; }; }
10946b02
AX
20112 fi
20113# Compute "$ac_file"'s index in $config_headers.
20114_am_arg="$ac_file"
20115_am_stamp_count=1
20116for _am_header in $config_headers :; do
20117 case $_am_header in
20118 $_am_arg | $_am_arg:* )
20119 break ;;
20120 * )
20121 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20122 esac
20123done
20124echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20125$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20126 X"$_am_arg" : 'X\(//\)[^/]' \| \
20127 X"$_am_arg" : 'X\(//\)$' \| \
20128 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20129$as_echo X"$_am_arg" |
20130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20131 s//\1/
20132 q
20133 }
20134 /^X\(\/\/\)[^/].*/{
20135 s//\1/
20136 q
20137 }
20138 /^X\(\/\/\)$/{
20139 s//\1/
20140 q
20141 }
20142 /^X\(\/\).*/{
20143 s//\1/
20144 q
20145 }
20146 s/.*/./; q'`/stamp-h$_am_stamp_count
20147 ;;
20148
0b31b230 20149 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10946b02
AX
20150$as_echo "$as_me: executing $ac_file commands" >&6;}
20151 ;;
20152 esac
20153
20154
20155 case $ac_file$ac_mode in
20156 "spl_config.h":H)
20157 (mv spl_config.h spl_config.h.tmp &&
20158 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
20159 rm spl_config.h.tmp) || exit 1 ;;
20160 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
0b31b230 20161 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10946b02
AX
20162 # are listed without --file. Let's play safe and only enable the eval
20163 # if we detect the quoting.
20164 case $CONFIG_FILES in
20165 *\'*) eval set x "$CONFIG_FILES" ;;
20166 *) set x $CONFIG_FILES ;;
20167 esac
20168 shift
20169 for mf
20170 do
20171 # Strip MF so we end up with the name of the file.
20172 mf=`echo "$mf" | sed -e 's/:.*$//'`
20173 # Check whether this is an Automake generated Makefile or not.
0b31b230 20174 # We used to match only the files named `Makefile.in', but
10946b02
AX
20175 # some people rename them; so instead we look at the file content.
20176 # Grep'ing the first line is not enough: some people post-process
20177 # each Makefile.in and add a new line on top of each file to say so.
20178 # Grep'ing the whole file is not good either: AIX grep has a line
20179 # limit of 2048, but all sed's we know have understand at least 4000.
20180 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20181 dirpart=`$as_dirname -- "$mf" ||
20182$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20183 X"$mf" : 'X\(//\)[^/]' \| \
20184 X"$mf" : 'X\(//\)$' \| \
20185 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20186$as_echo X"$mf" |
20187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20188 s//\1/
20189 q
20190 }
20191 /^X\(\/\/\)[^/].*/{
20192 s//\1/
20193 q
20194 }
20195 /^X\(\/\/\)$/{
20196 s//\1/
20197 q
20198 }
20199 /^X\(\/\).*/{
20200 s//\1/
20201 q
20202 }
20203 s/.*/./; q'`
20204 else
20205 continue
20206 fi
20207 # Extract the definition of DEPDIR, am__include, and am__quote
0b31b230 20208 # from the Makefile without running `make'.
10946b02
AX
20209 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20210 test -z "$DEPDIR" && continue
20211 am__include=`sed -n 's/^am__include = //p' < "$mf"`
0b31b230 20212 test -z "am__include" && continue
10946b02 20213 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
0b31b230
AX
20214 # When using ansi2knr, U may be empty or an underscore; expand it
20215 U=`sed -n 's/^U = //p' < "$mf"`
10946b02
AX
20216 # Find all dependency output files, they are included files with
20217 # $(DEPDIR) in their names. We invoke sed twice because it is the
20218 # simplest approach to changing $(DEPDIR) to its actual value in the
20219 # expansion.
20220 for file in `sed -n "
20221 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
0b31b230 20222 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10946b02
AX
20223 # Make sure the directory exists.
20224 test -f "$dirpart/$file" && continue
20225 fdir=`$as_dirname -- "$file" ||
20226$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20227 X"$file" : 'X\(//\)[^/]' \| \
20228 X"$file" : 'X\(//\)$' \| \
20229 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20230$as_echo X"$file" |
20231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20232 s//\1/
20233 q
20234 }
20235 /^X\(\/\/\)[^/].*/{
20236 s//\1/
20237 q
20238 }
20239 /^X\(\/\/\)$/{
20240 s//\1/
20241 q
20242 }
20243 /^X\(\/\).*/{
20244 s//\1/
20245 q
20246 }
20247 s/.*/./; q'`
0b31b230
AX
20248 { as_dir=$dirpart/$fdir
20249 case $as_dir in #(
20250 -*) as_dir=./$as_dir;;
20251 esac
20252 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20253 as_dirs=
20254 while :; do
20255 case $as_dir in #(
20256 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20257 *) as_qdir=$as_dir;;
20258 esac
20259 as_dirs="'$as_qdir' $as_dirs"
20260 as_dir=`$as_dirname -- "$as_dir" ||
20261$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20262 X"$as_dir" : 'X\(//\)[^/]' \| \
20263 X"$as_dir" : 'X\(//\)$' \| \
20264 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20265$as_echo X"$as_dir" |
20266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20267 s//\1/
20268 q
20269 }
20270 /^X\(\/\/\)[^/].*/{
20271 s//\1/
20272 q
20273 }
20274 /^X\(\/\/\)$/{
20275 s//\1/
20276 q
20277 }
20278 /^X\(\/\).*/{
20279 s//\1/
20280 q
20281 }
20282 s/.*/./; q'`
20283 test -d "$as_dir" && break
20284 done
20285 test -z "$as_dirs" || eval "mkdir $as_dirs"
20286 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20287$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20288 { (exit 1); exit 1; }; }; }
10946b02
AX
20289 # echo "creating $dirpart/$file"
20290 echo '# dummy' > "$dirpart/$file"
20291 done
20292 done
20293}
20294 ;;
20295 "libtool":C)
20296
0b31b230 20297 # See if we are running on zsh, and set the options which allow our
10946b02 20298 # commands through without removal of \ escapes.
0b31b230 20299 if test -n "${ZSH_VERSION+set}" ; then
10946b02
AX
20300 setopt NO_GLOB_SUBST
20301 fi
20302
0b31b230 20303 cfgfile="${ofile}T"
10946b02
AX
20304 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20305 $RM "$cfgfile"
20306
20307 cat <<_LT_EOF >> "$cfgfile"
20308#! $SHELL
0b31b230
AX
20309
20310# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20311# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
10946b02
AX
20312# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20313# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20314#
0b31b230
AX
20315# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20316# 2006, 2007, 2008 Free Software Foundation, Inc.
20317# Written by Gordon Matzigkeit, 1996
20318#
20319# This file is part of GNU Libtool.
20320#
20321# GNU Libtool is free software; you can redistribute it and/or
20322# modify it under the terms of the GNU General Public License as
20323# published by the Free Software Foundation; either version 2 of
20324# the License, or (at your option) any later version.
10946b02 20325#
0b31b230
AX
20326# As a special exception to the GNU General Public License,
20327# if you distribute this file as part of a program or library that
20328# is built using GNU Libtool, you may include this file under the
20329# same distribution terms that you use for the rest of that program.
20330#
20331# GNU Libtool is distributed in the hope that it will be useful,
20332# but WITHOUT ANY WARRANTY; without even the implied warranty of
10946b02
AX
20333# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20334# GNU General Public License for more details.
20335#
20336# You should have received a copy of the GNU General Public License
0b31b230
AX
20337# along with GNU Libtool; see the file COPYING. If not, a copy
20338# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20339# obtained by writing to the Free Software Foundation, Inc.,
20340# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10946b02
AX
20341
20342
20343# The names of the tagged configurations supported by this script.
0b31b230 20344available_tags=""
10946b02
AX
20345
20346# ### BEGIN LIBTOOL CONFIG
20347
20348# Which release of libtool.m4 was used?
20349macro_version=$macro_version
20350macro_revision=$macro_revision
20351
20352# Whether or not to build shared libraries.
20353build_libtool_libs=$enable_shared
20354
20355# Whether or not to build static libraries.
20356build_old_libs=$enable_static
20357
20358# What type of objects to build.
20359pic_mode=$pic_mode
20360
20361# Whether or not to optimize for fast installation.
20362fast_install=$enable_fast_install
20363
10946b02
AX
20364# The host system.
20365host_alias=$host_alias
20366host=$host
20367host_os=$host_os
20368
20369# The build system.
20370build_alias=$build_alias
20371build=$build
20372build_os=$build_os
20373
20374# A sed program that does not truncate output.
20375SED=$lt_SED
20376
20377# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20378Xsed="\$SED -e 1s/^X//"
20379
20380# A grep program that handles long lines.
20381GREP=$lt_GREP
20382
20383# An ERE matcher.
20384EGREP=$lt_EGREP
20385
20386# A literal string matcher.
20387FGREP=$lt_FGREP
20388
20389# A BSD- or MS-compatible name lister.
20390NM=$lt_NM
20391
20392# Whether we need soft or hard links.
20393LN_S=$lt_LN_S
20394
20395# What is the maximum length of a command?
20396max_cmd_len=$max_cmd_len
20397
20398# Object file suffix (normally "o").
20399objext=$ac_objext
20400
20401# Executable file suffix (normally "").
20402exeext=$exeext
20403
20404# whether the shell understands "unset".
20405lt_unset=$lt_unset
20406
20407# turn spaces into newlines.
20408SP2NL=$lt_lt_SP2NL
20409
20410# turn newlines into spaces.
20411NL2SP=$lt_lt_NL2SP
20412
0b31b230
AX
20413# How to create reloadable object files.
20414reload_flag=$lt_reload_flag
20415reload_cmds=$lt_reload_cmds
10946b02
AX
20416
20417# An object symbol dumper.
20418OBJDUMP=$lt_OBJDUMP
20419
20420# Method to check whether dependent libraries are shared objects.
20421deplibs_check_method=$lt_deplibs_check_method
20422
0b31b230 20423# Command to use when deplibs_check_method == "file_magic".
10946b02
AX
20424file_magic_cmd=$lt_file_magic_cmd
20425
10946b02
AX
20426# The archiver.
20427AR=$lt_AR
10946b02
AX
20428AR_FLAGS=$lt_AR_FLAGS
20429
10946b02
AX
20430# A symbol stripping program.
20431STRIP=$lt_STRIP
20432
20433# Commands used to install an old-style archive.
20434RANLIB=$lt_RANLIB
20435old_postinstall_cmds=$lt_old_postinstall_cmds
20436old_postuninstall_cmds=$lt_old_postuninstall_cmds
20437
10946b02
AX
20438# A C compiler.
20439LTCC=$lt_CC
20440
20441# LTCC compiler flags.
20442LTCFLAGS=$lt_CFLAGS
20443
20444# Take the output of nm and produce a listing of raw symbols and C names.
20445global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20446
20447# Transform the output of nm in a proper C declaration.
20448global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20449
20450# Transform the output of nm in a C name address pair.
20451global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20452
20453# Transform the output of nm in a C name address pair when lib prefix is needed.
20454global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20455
10946b02
AX
20456# The name of the directory that contains temporary libtool files.
20457objdir=$objdir
20458
0b31b230
AX
20459# Shell to use when invoking shell scripts.
20460SHELL=$lt_SHELL
20461
20462# An echo program that does not interpret backslashes.
20463ECHO=$lt_ECHO
20464
10946b02
AX
20465# Used to examine libraries when file_magic_cmd begins with "file".
20466MAGIC_CMD=$MAGIC_CMD
20467
20468# Must we lock files when doing compilation?
20469need_locks=$lt_need_locks
20470
10946b02
AX
20471# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20472DSYMUTIL=$lt_DSYMUTIL
20473
20474# Tool to change global to local symbols on Mac OS X.
20475NMEDIT=$lt_NMEDIT
20476
20477# Tool to manipulate fat objects and archives on Mac OS X.
20478LIPO=$lt_LIPO
20479
20480# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20481OTOOL=$lt_OTOOL
20482
20483# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20484OTOOL64=$lt_OTOOL64
20485
20486# Old archive suffix (normally "a").
20487libext=$libext
20488
20489# Shared library suffix (normally ".so").
20490shrext_cmds=$lt_shrext_cmds
20491
20492# The commands to extract the exported symbol list from a shared archive.
20493extract_expsyms_cmds=$lt_extract_expsyms_cmds
20494
20495# Variables whose values should be saved in libtool wrapper scripts and
20496# restored at link time.
20497variables_saved_for_relink=$lt_variables_saved_for_relink
20498
20499# Do we need the "lib" prefix for modules?
20500need_lib_prefix=$need_lib_prefix
20501
20502# Do we need a version for libraries?
20503need_version=$need_version
20504
20505# Library versioning type.
20506version_type=$version_type
20507
20508# Shared library runtime path variable.
20509runpath_var=$runpath_var
20510
20511# Shared library path variable.
20512shlibpath_var=$shlibpath_var
20513
20514# Is shlibpath searched before the hard-coded library search path?
20515shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20516
20517# Format of library name prefix.
20518libname_spec=$lt_libname_spec
20519
20520# List of archive names. First name is the real one, the rest are links.
20521# The last name is the one that the linker finds with -lNAME
20522library_names_spec=$lt_library_names_spec
20523
20524# The coded name of the library, if different from the real name.
20525soname_spec=$lt_soname_spec
20526
10946b02
AX
20527# Command to use after installation of a shared archive.
20528postinstall_cmds=$lt_postinstall_cmds
20529
20530# Command to use after uninstallation of a shared archive.
20531postuninstall_cmds=$lt_postuninstall_cmds
20532
20533# Commands used to finish a libtool library installation in a directory.
20534finish_cmds=$lt_finish_cmds
20535
20536# As "finish_cmds", except a single script fragment to be evaled but
20537# not shown.
20538finish_eval=$lt_finish_eval
20539
20540# Whether we should hardcode library paths into libraries.
20541hardcode_into_libs=$hardcode_into_libs
20542
20543# Compile-time system search path for libraries.
20544sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20545
0b31b230
AX
20546# Run-time system search path for libraries.
20547sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10946b02
AX
20548
20549# Whether dlopen is supported.
20550dlopen_support=$enable_dlopen
20551
20552# Whether dlopen of programs is supported.
20553dlopen_self=$enable_dlopen_self
20554
20555# Whether dlopen of statically linked programs is supported.
20556dlopen_self_static=$enable_dlopen_self_static
20557
20558# Commands to strip libraries.
20559old_striplib=$lt_old_striplib
20560striplib=$lt_striplib
20561
20562
20563# The linker used to build libraries.
20564LD=$lt_LD
20565
10946b02
AX
20566# Commands used to build an old-style archive.
20567old_archive_cmds=$lt_old_archive_cmds
20568
20569# A language specific compiler.
20570CC=$lt_compiler
20571
20572# Is the compiler the GNU compiler?
20573with_gcc=$GCC
20574
20575# Compiler flag to turn off builtin functions.
20576no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20577
10946b02
AX
20578# How to pass a linker flag through the compiler.
20579wl=$lt_lt_prog_compiler_wl
20580
0b31b230
AX
20581# Additional compiler flags for building library objects.
20582pic_flag=$lt_lt_prog_compiler_pic
20583
10946b02
AX
20584# Compiler flag to prevent dynamic linking.
20585link_static_flag=$lt_lt_prog_compiler_static
20586
20587# Does compiler simultaneously support -c and -o options?
20588compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20589
20590# Whether or not to add -lc for building shared libraries.
20591build_libtool_need_lc=$archive_cmds_need_lc
20592
20593# Whether or not to disallow shared libs when runtime libs are static.
20594allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20595
20596# Compiler flag to allow reflexive dlopens.
20597export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20598
20599# Compiler flag to generate shared objects directly from archives.
20600whole_archive_flag_spec=$lt_whole_archive_flag_spec
20601
20602# Whether the compiler copes with passing no objects directly.
20603compiler_needs_object=$lt_compiler_needs_object
20604
20605# Create an old-style archive from a shared archive.
20606old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20607
20608# Create a temporary old-style archive to link instead of a shared archive.
20609old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20610
20611# Commands used to build a shared archive.
20612archive_cmds=$lt_archive_cmds
20613archive_expsym_cmds=$lt_archive_expsym_cmds
20614
20615# Commands used to build a loadable module if different from building
20616# a shared archive.
20617module_cmds=$lt_module_cmds
20618module_expsym_cmds=$lt_module_expsym_cmds
20619
20620# Whether we are building with GNU ld or not.
20621with_gnu_ld=$lt_with_gnu_ld
20622
20623# Flag that allows shared libraries with undefined symbols to be built.
20624allow_undefined_flag=$lt_allow_undefined_flag
20625
20626# Flag that enforces no undefined symbols.
20627no_undefined_flag=$lt_no_undefined_flag
20628
20629# Flag to hardcode \$libdir into a binary during linking.
20630# This must work even if \$libdir does not exist
20631hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20632
0b31b230
AX
20633# If ld is used when linking, flag to hardcode \$libdir into a binary
20634# during linking. This must work even if \$libdir does not exist.
20635hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20636
10946b02
AX
20637# Whether we need a single "-rpath" flag with a separated argument.
20638hardcode_libdir_separator=$lt_hardcode_libdir_separator
20639
0b31b230 20640# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
10946b02
AX
20641# DIR into the resulting binary.
20642hardcode_direct=$hardcode_direct
20643
0b31b230 20644# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
10946b02 20645# DIR into the resulting binary and the resulting library dependency is
0b31b230 20646# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
10946b02
AX
20647# library is relocated.
20648hardcode_direct_absolute=$hardcode_direct_absolute
20649
20650# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20651# into the resulting binary.
20652hardcode_minus_L=$hardcode_minus_L
20653
20654# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20655# into the resulting binary.
20656hardcode_shlibpath_var=$hardcode_shlibpath_var
20657
20658# Set to "yes" if building a shared library automatically hardcodes DIR
20659# into the library and all subsequent libraries and executables linked
20660# against it.
20661hardcode_automatic=$hardcode_automatic
20662
20663# Set to yes if linker adds runtime paths of dependent libraries
20664# to runtime path list.
20665inherit_rpath=$inherit_rpath
20666
20667# Whether libtool must link a program against all its dependency libraries.
20668link_all_deplibs=$link_all_deplibs
20669
0b31b230
AX
20670# Fix the shell variable \$srcfile for the compiler.
20671fix_srcfile_path=$lt_fix_srcfile_path
20672
10946b02
AX
20673# Set to "yes" if exported symbols are required.
20674always_export_symbols=$always_export_symbols
20675
20676# The commands to list exported symbols.
20677export_symbols_cmds=$lt_export_symbols_cmds
20678
20679# Symbols that should not be listed in the preloaded symbols.
20680exclude_expsyms=$lt_exclude_expsyms
20681
20682# Symbols that must always be exported.
20683include_expsyms=$lt_include_expsyms
20684
20685# Commands necessary for linking programs (against libraries) with templates.
20686prelink_cmds=$lt_prelink_cmds
20687
10946b02
AX
20688# Specify filename containing input files.
20689file_list_spec=$lt_file_list_spec
20690
20691# How to hardcode a shared library path into an executable.
20692hardcode_action=$hardcode_action
20693
20694# ### END LIBTOOL CONFIG
20695
20696_LT_EOF
20697
20698 case $host_os in
20699 aix3*)
20700 cat <<\_LT_EOF >> "$cfgfile"
20701# AIX sometimes has problems with the GCC collect2 program. For some
20702# reason, if we set the COLLECT_NAMES environment variable, the problems
20703# vanish in a puff of smoke.
0b31b230 20704if test "X${COLLECT_NAMES+set}" != Xset; then
10946b02
AX
20705 COLLECT_NAMES=
20706 export COLLECT_NAMES
20707fi
20708_LT_EOF
20709 ;;
20710 esac
20711
20712
0b31b230 20713ltmain="$ac_aux_dir/ltmain.sh"
10946b02
AX
20714
20715
20716 # We use sed instead of cat because bash on DJGPP gets confused if
20717 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20718 # text mode, it properly converts lines to CR/LF. This bash problem
20719 # is reportedly fixed, but why not run on old versions too?
0b31b230
AX
20720 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20721 || (rm -f "$cfgfile"; exit 1)
20722
20723 case $xsi_shell in
20724 yes)
20725 cat << \_LT_EOF >> "$cfgfile"
20726
20727# func_dirname file append nondir_replacement
20728# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20729# otherwise set result to NONDIR_REPLACEMENT.
20730func_dirname ()
20731{
20732 case ${1} in
20733 */*) func_dirname_result="${1%/*}${2}" ;;
20734 * ) func_dirname_result="${3}" ;;
20735 esac
20736}
20737
20738# func_basename file
20739func_basename ()
20740{
20741 func_basename_result="${1##*/}"
20742}
20743
20744# func_dirname_and_basename file append nondir_replacement
20745# perform func_basename and func_dirname in a single function
20746# call:
20747# dirname: Compute the dirname of FILE. If nonempty,
20748# add APPEND to the result, otherwise set result
20749# to NONDIR_REPLACEMENT.
20750# value returned in "$func_dirname_result"
20751# basename: Compute filename of FILE.
20752# value retuned in "$func_basename_result"
20753# Implementation must be kept synchronized with func_dirname
20754# and func_basename. For efficiency, we do not delegate to
20755# those functions but instead duplicate the functionality here.
20756func_dirname_and_basename ()
20757{
20758 case ${1} in
20759 */*) func_dirname_result="${1%/*}${2}" ;;
20760 * ) func_dirname_result="${3}" ;;
20761 esac
20762 func_basename_result="${1##*/}"
20763}
20764
20765# func_stripname prefix suffix name
20766# strip PREFIX and SUFFIX off of NAME.
20767# PREFIX and SUFFIX must not contain globbing or regex special
20768# characters, hashes, percent signs, but SUFFIX may contain a leading
20769# dot (in which case that matches only a dot).
20770func_stripname ()
20771{
20772 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20773 # positional parameters, so assign one to ordinary parameter first.
20774 func_stripname_result=${3}
20775 func_stripname_result=${func_stripname_result#"${1}"}
20776 func_stripname_result=${func_stripname_result%"${2}"}
20777}
20778
20779# func_opt_split
20780func_opt_split ()
20781{
20782 func_opt_split_opt=${1%%=*}
20783 func_opt_split_arg=${1#*=}
20784}
20785
20786# func_lo2o object
20787func_lo2o ()
20788{
20789 case ${1} in
20790 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20791 *) func_lo2o_result=${1} ;;
20792 esac
20793}
20794
20795# func_xform libobj-or-source
20796func_xform ()
20797{
20798 func_xform_result=${1%.*}.lo
20799}
20800
20801# func_arith arithmetic-term...
20802func_arith ()
20803{
20804 func_arith_result=$(( $* ))
20805}
20806
20807# func_len string
20808# STRING may not start with a hyphen.
20809func_len ()
20810{
20811 func_len_result=${#1}
20812}
20813
20814_LT_EOF
20815 ;;
20816 *) # Bourne compatible functions.
20817 cat << \_LT_EOF >> "$cfgfile"
20818
20819# func_dirname file append nondir_replacement
20820# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20821# otherwise set result to NONDIR_REPLACEMENT.
20822func_dirname ()
20823{
20824 # Extract subdirectory from the argument.
20825 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20826 if test "X$func_dirname_result" = "X${1}"; then
20827 func_dirname_result="${3}"
20828 else
20829 func_dirname_result="$func_dirname_result${2}"
20830 fi
20831}
20832
20833# func_basename file
20834func_basename ()
20835{
20836 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20837}
20838
20839
20840# func_stripname prefix suffix name
20841# strip PREFIX and SUFFIX off of NAME.
20842# PREFIX and SUFFIX must not contain globbing or regex special
20843# characters, hashes, percent signs, but SUFFIX may contain a leading
20844# dot (in which case that matches only a dot).
20845# func_strip_suffix prefix name
20846func_stripname ()
20847{
20848 case ${2} in
20849 .*) func_stripname_result=`$ECHO "X${3}" \
20850 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20851 *) func_stripname_result=`$ECHO "X${3}" \
20852 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20853 esac
20854}
20855
20856# sed scripts:
20857my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20858my_sed_long_arg='1s/^-[^=]*=//'
20859
20860# func_opt_split
20861func_opt_split ()
20862{
20863 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20864 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20865}
20866
20867# func_lo2o object
20868func_lo2o ()
20869{
20870 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20871}
20872
20873# func_xform libobj-or-source
20874func_xform ()
20875{
20876 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20877}
20878
20879# func_arith arithmetic-term...
20880func_arith ()
20881{
20882 func_arith_result=`expr "$@"`
20883}
20884
20885# func_len string
20886# STRING may not start with a hyphen.
20887func_len ()
20888{
20889 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20890}
20891
20892_LT_EOF
20893esac
20894
20895case $lt_shell_append in
20896 yes)
20897 cat << \_LT_EOF >> "$cfgfile"
20898
20899# func_append var value
20900# Append VALUE to the end of shell variable VAR.
20901func_append ()
20902{
20903 eval "$1+=\$2"
20904}
20905_LT_EOF
20906 ;;
20907 *)
20908 cat << \_LT_EOF >> "$cfgfile"
20909
20910# func_append var value
20911# Append VALUE to the end of shell variable VAR.
20912func_append ()
20913{
20914 eval "$1=\$$1\$2"
20915}
20916
20917_LT_EOF
20918 ;;
20919 esac
20920
20921
20922 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20923 || (rm -f "$cfgfile"; exit 1)
10946b02 20924
0b31b230 20925 mv -f "$cfgfile" "$ofile" ||
10946b02
AX
20926 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20927 chmod +x "$ofile"
20928
20929 ;;
20930
20931 esac
20932done # for ac_tag
20933
20934
0b31b230 20935{ (exit 0); exit 0; }
10946b02 20936_ACEOF
0b31b230 20937chmod +x $CONFIG_STATUS
10946b02
AX
20938ac_clean_files=$ac_clean_files_save
20939
20940test $ac_write_fail = 0 ||
0b31b230
AX
20941 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20942$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20943 { (exit 1); exit 1; }; }
10946b02
AX
20944
20945
20946# configure is writing to config.log, and then calls config.status.
20947# config.status does its own redirection, appending to config.log.
20948# Unfortunately, on DOS this fails, as config.log is still kept open
20949# by configure, so config.status won't be able to write to it; its
20950# output is simply discarded. So we exec the FD to /dev/null,
20951# effectively closing config.log, so it can be properly (re)opened and
20952# appended to by config.status. When coming back to configure, we
20953# need to make the FD available again.
20954if test "$no_create" != yes; then
20955 ac_cs_success=:
20956 ac_config_status_args=
20957 test "$silent" = yes &&
20958 ac_config_status_args="$ac_config_status_args --quiet"
20959 exec 5>/dev/null
20960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20961 exec 5>>config.log
20962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20963 # would make configure fail if this is the last instruction.
0b31b230 20964 $ac_cs_success || { (exit 1); exit 1; }
10946b02
AX
20965fi
20966if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
0b31b230 20967 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10946b02
AX
20968$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20969fi
20970