]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - spl/configure
UBUNTU: SAUCE: (noup) Update spl to 0.6.5.10-1, zfs to 0.6.5.10-1ubuntu2
[mirror_ubuntu-artful-kernel.git] / spl / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for spl 0.6.5.10.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='spl'
589 PACKAGE_TARNAME='spl'
590 PACKAGE_VERSION='0.6.5.10'
591 PACKAGE_STRING='spl 0.6.5.10'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 CONFIG_KERNEL_FALSE
636 CONFIG_KERNEL_TRUE
637 CONFIG_USER_FALSE
638 CONFIG_USER_TRUE
639 DEBUG_KMEM_TRACKING
640 DEBUG_KMEM
641 DEBUG_SPL
642 DEBUG_CFLAGS
643 KERNELCPPFLAGS
644 KERNELMAKE_PARAMS
645 LINUX_SYMBOLS
646 LINUX_VERSION
647 LINUX_OBJ
648 LINUX
649 SPL_CONFIG
650 ALIEN_VERSION
651 ALIEN
652 HAVE_ALIEN
653 DPKGBUILD_VERSION
654 DPKGBUILD
655 HAVE_DPKGBUILD
656 DPKG_VERSION
657 DPKG
658 HAVE_DPKG
659 SRPM_DEFINE_COMMON
660 SRPM_DEFINE_DKMS
661 SRPM_DEFINE_KMOD
662 SRPM_DEFINE_UTIL
663 RPM_DEFINE_COMMON
664 RPM_DEFINE_DKMS
665 RPM_DEFINE_KMOD
666 RPM_DEFINE_UTIL
667 RPM_SPEC_DIR
668 RPMBUILD_VERSION
669 RPMBUILD
670 HAVE_RPMBUILD
671 RPM_VERSION
672 RPM
673 HAVE_RPM
674 DEFAULT_PACKAGE
675 VENDOR
676 CPP
677 LT_SYS_LIBRARY_PATH
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 MANIFEST_TOOL
684 RANLIB
685 ac_ct_AR
686 AR
687 DLLTOOL
688 OBJDUMP
689 LN_S
690 NM
691 ac_ct_DUMPBIN
692 DUMPBIN
693 LD
694 FGREP
695 EGREP
696 GREP
697 SED
698 LIBTOOL
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 mkdir_p
722 MKDIR_P
723 INSTALL_STRIP_PROGRAM
724 STRIP
725 install_sh
726 MAKEINFO
727 AUTOHEADER
728 AUTOMAKE
729 AUTOCONF
730 ACLOCAL
731 VERSION
732 PACKAGE
733 CYGPATH_W
734 am__isrc
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 AM_BACKSLASH
739 AM_DEFAULT_VERBOSITY
740 AM_DEFAULT_V
741 AM_V
742 MAINT
743 MAINTAINER_MODE_FALSE
744 MAINTAINER_MODE_TRUE
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 SPL_META_LT_AGE
758 SPL_META_LT_REVISION
759 SPL_META_LT_CURRENT
760 SPL_META_AUTHOR
761 SPL_META_DATA
762 SPL_META_ALIAS
763 SPL_META_LICENSE
764 RELEASE
765 SPL_META_RELEASE
766 SPL_META_VERSION
767 SPL_META_NAME
768 AWK
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 runstatedir
789 localstatedir
790 sharedstatedir
791 sysconfdir
792 datadir
793 datarootdir
794 libexecdir
795 sbindir
796 bindir
797 program_transform_name
798 prefix
799 exec_prefix
800 PACKAGE_URL
801 PACKAGE_BUGREPORT
802 PACKAGE_STRING
803 PACKAGE_VERSION
804 PACKAGE_TARNAME
805 PACKAGE_NAME
806 PATH_SEPARATOR
807 SHELL'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_maintainer_mode
812 enable_silent_rules
813 enable_dependency_tracking
814 enable_shared
815 enable_static
816 with_pic
817 enable_fast_install
818 with_aix_soname
819 with_gnu_ld
820 with_sysroot
821 enable_libtool_lock
822 with_spec
823 with_config
824 enable_linux_builtin
825 with_linux
826 with_linux_obj
827 enable_debug
828 enable_debug_kmem
829 enable_debug_kmem_tracking
830 enable_atomic_spinlocks
831 '
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CC
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
840 LT_SYS_LIBRARY_PATH
841 CPP'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 runstatedir='${localstatedir}/run'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
902 fi
903
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
920
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
935
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
940
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
973
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1009
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1014
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1044
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1118
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -runstatedir | --runstatedir | --runstatedi | --runstated \
1134 | --runstate | --runstat | --runsta | --runst | --runs \
1135 | --run | --ru | --r)
1136 ac_prev=runstatedir ;;
1137 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1138 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1139 | --run=* | --ru=* | --r=*)
1140 runstatedir=$ac_optarg ;;
1141
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
1146 sbindir=$ac_optarg ;;
1147
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
1157 sharedstatedir=$ac_optarg ;;
1158
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
1162 site=$ac_optarg ;;
1163
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1168
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1175
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1180
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1183
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1186
1187 -with-* | --with-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=\$ac_optarg ;;
1202
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=no ;;
1218
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1222
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1229
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1236
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1239 ;;
1240
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247 esac
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1250
1251 *)
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1257 ;;
1258
1259 esac
1260 done
1261
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $? "missing argument to $ac_option"
1265 fi
1266
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1273 fi
1274
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir runstatedir
1280 do
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1294 done
1295
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $? "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $? "pwd does not report name of working directory"
1324
1325
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\).*/{
1349 s//\1/
1350 q
1351 }
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1356 fi
1357 else
1358 ac_srcdir_defaulted=no
1359 fi
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367 pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1371 fi
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures spl 0.6.5.10 to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/spl]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of spl 0.6.5.10:";;
1465 esac
1466 cat <<\_ACEOF
1467
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-maintainer-mode
1473 enable make rules and dependencies not useful (and
1474 sometimes confusing) to the casual installer
1475 --enable-silent-rules less verbose build output (undo: "make V=1")
1476 --disable-silent-rules verbose build output (undo: "make V=0")
1477 --enable-dependency-tracking
1478 do not reject slow dependency extractors
1479 --disable-dependency-tracking
1480 speeds up one-time build
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --enable-linux-builtin Configure for builtin in-tree kernel modules
1487 [default=no]
1488 --enable-debug Enable generic debug support [default=no]
1489 --enable-debug-kmem Enable basic kmem accounting [default=no]
1490 --enable-debug-kmem-tracking
1491 Enable detailed kmem tracking [default=no]
1492 --enable-atomic-spinlocks
1493 Atomic types use spinlocks [default=check]
1494
1495 Optional Packages:
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1499 both]
1500 --with-aix-soname=aix|svr4|both
1501 shared library versioning (aka "SONAME") variant to
1502 provide on AIX, [default=aix].
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1505 compiler's sysroot if not specified).
1506 --with-spec=SPEC Spec files 'generic|redhat'
1507 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1508 --with-linux=PATH Path to kernel source
1509 --with-linux-obj=PATH Path to kernel build objects
1510
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 LIBS libraries to pass to the linker, e.g. -l<library>
1517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
1519 LT_SYS_LIBRARY_PATH
1520 User-defined run-time library search path.
1521 CPP C preprocessor
1522
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1525
1526 Report bugs to the package provider.
1527 _ACEOF
1528 ac_status=$?
1529 fi
1530
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" ||
1535 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536 continue
1537 ac_builddir=.
1538
1539 case "$ac_dir" in
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *)
1542 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548 esac ;;
1549 esac
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1554
1555 case $srcdir in
1556 .) # We are building in place.
1557 ac_srcdir=.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1564 *) # Relative name.
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 esac
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1579 else
1580 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581 fi || ac_status=$?
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1583 done
1584 fi
1585
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1588 cat <<\_ACEOF
1589 spl configure 0.6.5.10
1590 generated by GNU Autoconf 2.69
1591
1592 Copyright (C) 2012 Free Software Foundation, Inc.
1593 This configure script is free software; the Free Software Foundation
1594 gives unlimited permission to copy, distribute and modify it.
1595 _ACEOF
1596 exit
1597 fi
1598
1599 ## ------------------------ ##
1600 ## Autoconf initialization. ##
1601 ## ------------------------ ##
1602
1603 # ac_fn_c_try_compile LINENO
1604 # --------------------------
1605 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_compile ()
1607 {
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext
1610 if { { ac_try="$ac_compile"
1611 case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_compile") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1623 fi
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest.$ac_objext; then :
1629 ac_retval=0
1630 else
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1633
1634 ac_retval=1
1635 fi
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1638
1639 } # ac_fn_c_try_compile
1640
1641 # ac_fn_c_try_link LINENO
1642 # -----------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_link ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext conftest$ac_exeext
1648 if { { ac_try="$ac_link"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest$ac_exeext && {
1667 test "$cross_compiling" = yes ||
1668 test -x conftest$ac_exeext
1669 }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676 fi
1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1679 # interfere with the next link command; also delete a directory that is
1680 # left behind by Apple's compiler. We do this before executing the actions.
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_link
1686
1687 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists and can be compiled using the include files in
1690 # INCLUDES, setting the cache variable VAR accordingly.
1691 ac_fn_c_check_header_compile ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698 else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 $4
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705 eval "$3=yes"
1706 else
1707 eval "$3=no"
1708 fi
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710 fi
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716 } # ac_fn_c_check_header_compile
1717
1718 # ac_fn_c_try_cpp LINENO
1719 # ----------------------
1720 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_cpp ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { { ac_try="$ac_cpp conftest.$ac_ext"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } > conftest.i && {
1740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 }; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749 fi
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_cpp
1754
1755 # ac_fn_c_try_run LINENO
1756 # ----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1758 # that executables *can* be run.
1759 ac_fn_c_try_run ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_link"
1763 case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>&5
1770 ac_status=$?
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1773 { { case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_try") 2>&5
1780 ac_status=$?
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; }; }; then :
1783 ac_retval=0
1784 else
1785 $as_echo "$as_me: program exited with status $ac_status" >&5
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=$ac_status
1790 fi
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_run
1796
1797 # ac_fn_c_check_func LINENO FUNC VAR
1798 # ----------------------------------
1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1800 ac_fn_c_check_func ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1812 #define $2 innocuous_$2
1813
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $2 (); below.
1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1817 <limits.h> exists even on freestanding compilers. */
1818
1819 #ifdef __STDC__
1820 # include <limits.h>
1821 #else
1822 # include <assert.h>
1823 #endif
1824
1825 #undef $2
1826
1827 /* Override any GCC internal prototype to avoid an error.
1828 Use char because int might match the return type of a GCC
1829 builtin and then its argument prototype would still apply. */
1830 #ifdef __cplusplus
1831 extern "C"
1832 #endif
1833 char $2 ();
1834 /* The GNU C library defines this for functions which it implements
1835 to always fail with ENOSYS. Some functions are actually named
1836 something starting with __ and the normal name is an alias. */
1837 #if defined __stub_$2 || defined __stub___$2
1838 choke me
1839 #endif
1840
1841 int
1842 main ()
1843 {
1844 return $2 ();
1845 ;
1846 return 0;
1847 }
1848 _ACEOF
1849 if ac_fn_c_try_link "$LINENO"; then :
1850 eval "$3=yes"
1851 else
1852 eval "$3=no"
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext \
1855 conftest$ac_exeext conftest.$ac_ext
1856 fi
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_func
1863 cat >config.log <<_ACEOF
1864 This file contains any messages produced by compilers while
1865 running configure, to aid debugging if configure makes a mistake.
1866
1867 It was created by spl $as_me 0.6.5.10, which was
1868 generated by GNU Autoconf 2.69. Invocation command line was
1869
1870 $ $0 $@
1871
1872 _ACEOF
1873 exec 5>>config.log
1874 {
1875 cat <<_ASUNAME
1876 ## --------- ##
1877 ## Platform. ##
1878 ## --------- ##
1879
1880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1885
1886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1888
1889 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1890 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1893 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1894 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1895 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896
1897 _ASUNAME
1898
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=.
1904 $as_echo "PATH: $as_dir"
1905 done
1906 IFS=$as_save_IFS
1907
1908 } >&5
1909
1910 cat >&5 <<_ACEOF
1911
1912
1913 ## ----------- ##
1914 ## Core tests. ##
1915 ## ----------- ##
1916
1917 _ACEOF
1918
1919
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_configure_args=
1926 ac_configure_args0=
1927 ac_configure_args1=
1928 ac_must_keep_next=false
1929 for ac_pass in 1 2
1930 do
1931 for ac_arg
1932 do
1933 case $ac_arg in
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1937 continue ;;
1938 *\'*)
1939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 esac
1941 case $ac_pass in
1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1943 2)
1944 as_fn_append ac_configure_args1 " '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1947 else
1948 case $ac_arg in
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 esac
1956 ;;
1957 -* ) ac_must_keep_next=true ;;
1958 esac
1959 fi
1960 as_fn_append ac_configure_args " '$ac_arg'"
1961 ;;
1962 esac
1963 done
1964 done
1965 { ac_configure_args0=; unset ac_configure_args0;}
1966 { ac_configure_args1=; unset ac_configure_args1;}
1967
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974 # Save into config.log some information that might help in debugging.
1975 {
1976 echo
1977
1978 $as_echo "## ---------------- ##
1979 ## Cache variables. ##
1980 ## ---------------- ##"
1981 echo
1982 # The following way of writing the cache mishandles newlines in values,
1983 (
1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in #(
1987 *${as_nl}*)
1988 case $ac_var in #(
1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1991 esac
1992 case $ac_var in #(
1993 _ | IFS | as_nl) ;; #(
1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1995 *) { eval $ac_var=; unset $ac_var;} ;;
1996 esac ;;
1997 esac
1998 done
1999 (set) 2>&1 |
2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2001 *${as_nl}ac_space=\ *)
2002 sed -n \
2003 "s/'\''/'\''\\\\'\'''\''/g;
2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 ;; #(
2006 *)
2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2008 ;;
2009 esac |
2010 sort
2011 )
2012 echo
2013
2014 $as_echo "## ----------------- ##
2015 ## Output variables. ##
2016 ## ----------------- ##"
2017 echo
2018 for ac_var in $ac_subst_vars
2019 do
2020 eval ac_val=\$$ac_var
2021 case $ac_val in
2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023 esac
2024 $as_echo "$ac_var='\''$ac_val'\''"
2025 done | sort
2026 echo
2027
2028 if test -n "$ac_subst_files"; then
2029 $as_echo "## ------------------- ##
2030 ## File substitutions. ##
2031 ## ------------------- ##"
2032 echo
2033 for ac_var in $ac_subst_files
2034 do
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2042 fi
2043
2044 if test -s confdefs.h; then
2045 $as_echo "## ----------- ##
2046 ## confdefs.h. ##
2047 ## ----------- ##"
2048 echo
2049 cat confdefs.h
2050 echo
2051 fi
2052 test "$ac_signal" != 0 &&
2053 $as_echo "$as_me: caught signal $ac_signal"
2054 $as_echo "$as_me: exit $exit_status"
2055 } >&5
2056 rm -f core *.core core.conftest.* &&
2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058 exit $exit_status
2059 ' 0
2060 for ac_signal in 1 2 13 15; do
2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2062 done
2063 ac_signal=0
2064
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2067
2068 $as_echo "/* confdefs.h */" > confdefs.h
2069
2070 # Predefined preprocessor variables.
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_NAME "$PACKAGE_NAME"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_STRING "$PACKAGE_STRING"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_URL "$PACKAGE_URL"
2094 _ACEOF
2095
2096
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2099 ac_site_file1=NONE
2100 ac_site_file2=NONE
2101 if test -n "$CONFIG_SITE"; then
2102 # We do not want a PATH search for config.site.
2103 case $CONFIG_SITE in #((
2104 -*) ac_site_file1=./$CONFIG_SITE;;
2105 */*) ac_site_file1=$CONFIG_SITE;;
2106 *) ac_site_file1=./$CONFIG_SITE;;
2107 esac
2108 elif test "x$prefix" != xNONE; then
2109 ac_site_file1=$prefix/share/config.site
2110 ac_site_file2=$prefix/etc/config.site
2111 else
2112 ac_site_file1=$ac_default_prefix/share/config.site
2113 ac_site_file2=$ac_default_prefix/etc/config.site
2114 fi
2115 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2116 do
2117 test "x$ac_site_file" = xNONE && continue
2118 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2120 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2121 sed 's/^/| /' "$ac_site_file" >&5
2122 . "$ac_site_file" \
2123 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125 as_fn_error $? "failed to load site script $ac_site_file
2126 See \`config.log' for more details" "$LINENO" 5; }
2127 fi
2128 done
2129
2130 if test -r "$cache_file"; then
2131 # Some versions of bash will fail to source /dev/null (special files
2132 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2133 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2135 $as_echo "$as_me: loading cache $cache_file" >&6;}
2136 case $cache_file in
2137 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2138 *) . "./$cache_file";;
2139 esac
2140 fi
2141 else
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2143 $as_echo "$as_me: creating cache $cache_file" >&6;}
2144 >$cache_file
2145 fi
2146
2147 # Check that the precious variables saved in the cache have kept the same
2148 # value.
2149 ac_cache_corrupted=false
2150 for ac_var in $ac_precious_vars; do
2151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2152 eval ac_new_set=\$ac_env_${ac_var}_set
2153 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2154 eval ac_new_val=\$ac_env_${ac_var}_value
2155 case $ac_old_set,$ac_new_set in
2156 set,)
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2158 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2159 ac_cache_corrupted=: ;;
2160 ,set)
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2162 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2163 ac_cache_corrupted=: ;;
2164 ,);;
2165 *)
2166 if test "x$ac_old_val" != "x$ac_new_val"; then
2167 # differences in whitespace do not lead to failure.
2168 ac_old_val_w=`echo x $ac_old_val`
2169 ac_new_val_w=`echo x $ac_new_val`
2170 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2172 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2173 ac_cache_corrupted=:
2174 else
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2176 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2177 eval $ac_var=\$ac_old_val
2178 fi
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2180 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2182 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2183 fi;;
2184 esac
2185 # Pass precious variables to config.status.
2186 if test "$ac_new_set" = set; then
2187 case $ac_new_val in
2188 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2189 *) ac_arg=$ac_var=$ac_new_val ;;
2190 esac
2191 case " $ac_configure_args " in
2192 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2193 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2194 esac
2195 fi
2196 done
2197 if $ac_cache_corrupted; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2201 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2202 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2203 fi
2204 ## -------------------- ##
2205 ## Main body of script. ##
2206 ## -------------------- ##
2207
2208 ac_ext=c
2209 ac_cpp='$CPP $CPPFLAGS'
2210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213
2214
2215 ac_ext=c
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220
2221
2222 for ac_prog in gawk mawk nawk awk
2223 do
2224 # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if ${ac_cv_prog_AWK+:} false; then :
2229 $as_echo_n "(cached) " >&6
2230 else
2231 if test -n "$AWK"; then
2232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_AWK="$ac_prog"
2242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 break 2
2244 fi
2245 done
2246 done
2247 IFS=$as_save_IFS
2248
2249 fi
2250 fi
2251 AWK=$ac_cv_prog_AWK
2252 if test -n "$AWK"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2254 $as_echo "$AWK" >&6; }
2255 else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2257 $as_echo "no" >&6; }
2258 fi
2259
2260
2261 test -n "$AWK" && break
2262 done
2263
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2265 $as_echo_n "checking metadata... " >&6; }
2266
2267 META="$srcdir/META"
2268 _spl_ac_meta_type="none"
2269 if test -f "$META"; then
2270 _spl_ac_meta_type="META file"
2271
2272 SPL_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2273 if test -n "$SPL_META_NAME"; then
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define SPL_META_NAME "$SPL_META_NAME"
2277 _ACEOF
2278
2279
2280 fi
2281
2282 SPL_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2283 if test -n "$SPL_META_VERSION"; then
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define SPL_META_VERSION "$SPL_META_VERSION"
2287 _ACEOF
2288
2289
2290 fi
2291
2292 SPL_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2293 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2294 _match="${SPL_META_NAME}-${SPL_META_VERSION}"
2295 _alias=$(git describe --match=${_match} 2>/dev/null)
2296 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2297 if test -n "${_release}"; then
2298 SPL_META_RELEASE=${_release}
2299 _spl_ac_meta_type="git describe"
2300 fi
2301 fi
2302
2303 if test -n "$SPL_META_RELEASE"; then
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2307 _ACEOF
2308
2309
2310
2311 RELEASE="$SPL_META_RELEASE"
2312
2313 fi
2314
2315 SPL_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2316 if test -n "$SPL_META_LICENSE"; then
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define SPL_META_LICENSE "$SPL_META_LICENSE"
2320 _ACEOF
2321
2322
2323 fi
2324
2325 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2326 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2327 test -n "$SPL_META_RELEASE" &&
2328 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2332 _ACEOF
2333
2334
2335 fi
2336
2337 SPL_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2338 if test -n "$SPL_META_DATA"; then
2339
2340 cat >>confdefs.h <<_ACEOF
2341 #define SPL_META_DATA "$SPL_META_DATA"
2342 _ACEOF
2343
2344
2345 fi
2346
2347 SPL_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2348 if test -n "$SPL_META_AUTHOR"; then
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2352 _ACEOF
2353
2354
2355 fi
2356
2357
2358 SPL_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2359 SPL_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2360 SPL_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2361 if test -n "$SPL_META_LT_CURRENT" \
2362 -o -n "$SPL_META_LT_REVISION" \
2363 -o -n "$SPL_META_LT_AGE"; then
2364 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2365 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2366 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2367
2368 cat >>confdefs.h <<_ACEOF
2369 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2370 _ACEOF
2371
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2375 _ACEOF
2376
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2380 _ACEOF
2381
2382
2383
2384
2385 fi
2386 fi
2387
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_spl_ac_meta_type" >&5
2389 $as_echo "$_spl_ac_meta_type" >&6; }
2390
2391
2392 ac_aux_dir=
2393 for ac_dir in config "$srcdir"/config; do
2394 if test -f "$ac_dir/install-sh"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/install-sh -c"
2397 break
2398 elif test -f "$ac_dir/install.sh"; then
2399 ac_aux_dir=$ac_dir
2400 ac_install_sh="$ac_aux_dir/install.sh -c"
2401 break
2402 elif test -f "$ac_dir/shtool"; then
2403 ac_aux_dir=$ac_dir
2404 ac_install_sh="$ac_aux_dir/shtool install -c"
2405 break
2406 fi
2407 done
2408 if test -z "$ac_aux_dir"; then
2409 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2410 fi
2411
2412 # These three variables are undocumented and unsupported,
2413 # and are intended to be withdrawn in a future Autoconf release.
2414 # They can cause serious problems if a builder's source tree is in a directory
2415 # whose full name contains unusual characters.
2416 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2417 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2418 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2419
2420
2421
2422 # Make sure we can run config.sub.
2423 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2424 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2425
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2427 $as_echo_n "checking build system type... " >&6; }
2428 if ${ac_cv_build+:} false; then :
2429 $as_echo_n "(cached) " >&6
2430 else
2431 ac_build_alias=$build_alias
2432 test "x$ac_build_alias" = x &&
2433 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434 test "x$ac_build_alias" = x &&
2435 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2436 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2438
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2441 $as_echo "$ac_cv_build" >&6; }
2442 case $ac_cv_build in
2443 *-*-*) ;;
2444 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2445 esac
2446 build=$ac_cv_build
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_build
2449 shift
2450 build_cpu=$1
2451 build_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 build_os=$*
2456 IFS=$ac_save_IFS
2457 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2458
2459
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2461 $as_echo_n "checking host system type... " >&6; }
2462 if ${ac_cv_host+:} false; then :
2463 $as_echo_n "(cached) " >&6
2464 else
2465 if test "x$host_alias" = x; then
2466 ac_cv_host=$ac_cv_build
2467 else
2468 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2470 fi
2471
2472 fi
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2474 $as_echo "$ac_cv_host" >&6; }
2475 case $ac_cv_host in
2476 *-*-*) ;;
2477 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2478 esac
2479 host=$ac_cv_host
2480 ac_save_IFS=$IFS; IFS='-'
2481 set x $ac_cv_host
2482 shift
2483 host_cpu=$1
2484 host_vendor=$2
2485 shift; shift
2486 # Remember, the first character of IFS is used to create $*,
2487 # except with old shells:
2488 host_os=$*
2489 IFS=$ac_save_IFS
2490 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2491
2492
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2494 $as_echo_n "checking target system type... " >&6; }
2495 if ${ac_cv_target+:} false; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 if test "x$target_alias" = x; then
2499 ac_cv_target=$ac_cv_host
2500 else
2501 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2502 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2503 fi
2504
2505 fi
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2507 $as_echo "$ac_cv_target" >&6; }
2508 case $ac_cv_target in
2509 *-*-*) ;;
2510 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2511 esac
2512 target=$ac_cv_target
2513 ac_save_IFS=$IFS; IFS='-'
2514 set x $ac_cv_target
2515 shift
2516 target_cpu=$1
2517 target_vendor=$2
2518 shift; shift
2519 # Remember, the first character of IFS is used to create $*,
2520 # except with old shells:
2521 target_os=$*
2522 IFS=$ac_save_IFS
2523 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2524
2525
2526 # The aliases save the names the user supplied, while $host etc.
2527 # will get canonicalized.
2528 test -n "$target_alias" &&
2529 test "$program_prefix$program_suffix$program_transform_name" = \
2530 NONENONEs,x,x, &&
2531 program_prefix=${target_alias}-
2532
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2535 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2536 # Check whether --enable-maintainer-mode was given.
2537 if test "${enable_maintainer_mode+set}" = set; then :
2538 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2539 else
2540 USE_MAINTAINER_MODE=no
2541 fi
2542
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2544 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2545 if test $USE_MAINTAINER_MODE = yes; then
2546 MAINTAINER_MODE_TRUE=
2547 MAINTAINER_MODE_FALSE='#'
2548 else
2549 MAINTAINER_MODE_TRUE='#'
2550 MAINTAINER_MODE_FALSE=
2551 fi
2552
2553 MAINT=$MAINTAINER_MODE_TRUE
2554
2555
2556 # Check whether --enable-silent-rules was given.
2557 if test "${enable_silent_rules+set}" = set; then :
2558 enableval=$enable_silent_rules;
2559 fi
2560
2561 case $enable_silent_rules in # (((
2562 yes) AM_DEFAULT_VERBOSITY=0;;
2563 no) AM_DEFAULT_VERBOSITY=1;;
2564 *) AM_DEFAULT_VERBOSITY=0;;
2565 esac
2566 am_make=${MAKE-make}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2568 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2569 if ${am_cv_make_support_nested_variables+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if $as_echo 'TRUE=$(BAR$(V))
2573 BAR0=false
2574 BAR1=true
2575 V=1
2576 am__doit:
2577 @$(TRUE)
2578 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2579 am_cv_make_support_nested_variables=yes
2580 else
2581 am_cv_make_support_nested_variables=no
2582 fi
2583 fi
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2585 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2586 if test $am_cv_make_support_nested_variables = yes; then
2587 AM_V='$(V)'
2588 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2589 else
2590 AM_V=$AM_DEFAULT_VERBOSITY
2591 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2592 fi
2593 AM_BACKSLASH='\'
2594
2595 am__api_version='1.15'
2596
2597 # Find a good install program. We prefer a C program (faster),
2598 # so one script is as good as another. But avoid the broken or
2599 # incompatible versions:
2600 # SysV /etc/install, /usr/sbin/install
2601 # SunOS /usr/etc/install
2602 # IRIX /sbin/install
2603 # AIX /bin/install
2604 # AmigaOS /C/install, which installs bootblocks on floppy discs
2605 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2606 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2607 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2608 # OS/2's system install, which has a completely different semantic
2609 # ./install, which can be erroneously created by make from ./install.sh.
2610 # Reject install programs that cannot install multiple files.
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2612 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2613 if test -z "$INSTALL"; then
2614 if ${ac_cv_path_install+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 # Account for people who put trailing slashes in PATH elements.
2623 case $as_dir/ in #((
2624 ./ | .// | /[cC]/* | \
2625 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2626 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2627 /usr/ucb/* ) ;;
2628 *)
2629 # OSF1 and SCO ODT 3.0 have their own names for install.
2630 # Don't use installbsd from OSF since it installs stuff as root
2631 # by default.
2632 for ac_prog in ginstall scoinst install; do
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2635 if test $ac_prog = install &&
2636 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2637 # AIX install. It has an incompatible calling convention.
2638 :
2639 elif test $ac_prog = install &&
2640 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2641 # program-specific install script used by HP pwplus--don't use.
2642 :
2643 else
2644 rm -rf conftest.one conftest.two conftest.dir
2645 echo one > conftest.one
2646 echo two > conftest.two
2647 mkdir conftest.dir
2648 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2649 test -s conftest.one && test -s conftest.two &&
2650 test -s conftest.dir/conftest.one &&
2651 test -s conftest.dir/conftest.two
2652 then
2653 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2654 break 3
2655 fi
2656 fi
2657 fi
2658 done
2659 done
2660 ;;
2661 esac
2662
2663 done
2664 IFS=$as_save_IFS
2665
2666 rm -rf conftest.one conftest.two conftest.dir
2667
2668 fi
2669 if test "${ac_cv_path_install+set}" = set; then
2670 INSTALL=$ac_cv_path_install
2671 else
2672 # As a last resort, use the slow shell script. Don't cache a
2673 # value for INSTALL within a source directory, because that will
2674 # break other packages using the cache if that directory is
2675 # removed, or if the value is a relative name.
2676 INSTALL=$ac_install_sh
2677 fi
2678 fi
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2680 $as_echo "$INSTALL" >&6; }
2681
2682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2683 # It thinks the first close brace ends the variable substitution.
2684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2685
2686 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2687
2688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2689
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2691 $as_echo_n "checking whether build environment is sane... " >&6; }
2692 # Reject unsafe characters in $srcdir or the absolute working directory
2693 # name. Accept space and tab only in the latter.
2694 am_lf='
2695 '
2696 case `pwd` in
2697 *[\\\"\#\$\&\'\`$am_lf]*)
2698 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2699 esac
2700 case $srcdir in
2701 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2702 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2703 esac
2704
2705 # Do 'set' in a subshell so we don't clobber the current shell's
2706 # arguments. Must try -L first in case configure is actually a
2707 # symlink; some systems play weird games with the mod time of symlinks
2708 # (eg FreeBSD returns the mod time of the symlink's containing
2709 # directory).
2710 if (
2711 am_has_slept=no
2712 for am_try in 1 2; do
2713 echo "timestamp, slept: $am_has_slept" > conftest.file
2714 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2715 if test "$*" = "X"; then
2716 # -L didn't work.
2717 set X `ls -t "$srcdir/configure" conftest.file`
2718 fi
2719 if test "$*" != "X $srcdir/configure conftest.file" \
2720 && test "$*" != "X conftest.file $srcdir/configure"; then
2721
2722 # If neither matched, then we have a broken ls. This can happen
2723 # if, for instance, CONFIG_SHELL is bash and it inherits a
2724 # broken ls alias from the environment. This has actually
2725 # happened. Such a system could not be considered "sane".
2726 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2727 alias in your environment" "$LINENO" 5
2728 fi
2729 if test "$2" = conftest.file || test $am_try -eq 2; then
2730 break
2731 fi
2732 # Just in case.
2733 sleep 1
2734 am_has_slept=yes
2735 done
2736 test "$2" = conftest.file
2737 )
2738 then
2739 # Ok.
2740 :
2741 else
2742 as_fn_error $? "newly created file is older than distributed files!
2743 Check your system clock" "$LINENO" 5
2744 fi
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746 $as_echo "yes" >&6; }
2747 # If we didn't sleep, we still need to ensure time stamps of config.status and
2748 # generated files are strictly newer.
2749 am_sleep_pid=
2750 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2751 ( sleep 1 ) &
2752 am_sleep_pid=$!
2753 fi
2754
2755 rm -f conftest.file
2756
2757 test "$program_prefix" != NONE &&
2758 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2759 # Use a double $ so make ignores it.
2760 test "$program_suffix" != NONE &&
2761 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2762 # Double any \ or $.
2763 # By default was `s,x,x', remove it if useless.
2764 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2765 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2766
2767 # Expand $ac_aux_dir to an absolute path.
2768 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2769
2770 if test x"${MISSING+set}" != xset; then
2771 case $am_aux_dir in
2772 *\ * | *\ *)
2773 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2774 *)
2775 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2776 esac
2777 fi
2778 # Use eval to expand $SHELL
2779 if eval "$MISSING --is-lightweight"; then
2780 am_missing_run="$MISSING "
2781 else
2782 am_missing_run=
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2784 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2785 fi
2786
2787 if test x"${install_sh+set}" != xset; then
2788 case $am_aux_dir in
2789 *\ * | *\ *)
2790 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2791 *)
2792 install_sh="\${SHELL} $am_aux_dir/install-sh"
2793 esac
2794 fi
2795
2796 # Installed binaries are usually stripped using 'strip' when the user
2797 # run "make install-strip". However 'strip' might not be the right
2798 # tool to use in cross-compilation environments, therefore Automake
2799 # will honor the 'STRIP' environment variable to overrule this program.
2800 if test "$cross_compiling" != no; then
2801 if test -n "$ac_tool_prefix"; then
2802 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2803 set dummy ${ac_tool_prefix}strip; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_STRIP+:} false; then :
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test -n "$STRIP"; then
2810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 STRIP=$ac_cv_prog_STRIP
2830 if test -n "$STRIP"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2832 $as_echo "$STRIP" >&6; }
2833 else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838
2839 fi
2840 if test -z "$ac_cv_prog_STRIP"; then
2841 ac_ct_STRIP=$STRIP
2842 # Extract the first word of "strip", so it can be a program name with args.
2843 set dummy strip; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test -n "$ac_ct_STRIP"; then
2850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_STRIP="strip"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2870 if test -n "$ac_ct_STRIP"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2872 $as_echo "$ac_ct_STRIP" >&6; }
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878 if test "x$ac_ct_STRIP" = x; then
2879 STRIP=":"
2880 else
2881 case $cross_compiling:$ac_tool_warned in
2882 yes:)
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885 ac_tool_warned=yes ;;
2886 esac
2887 STRIP=$ac_ct_STRIP
2888 fi
2889 else
2890 STRIP="$ac_cv_prog_STRIP"
2891 fi
2892
2893 fi
2894 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2895
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2897 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2898 if test -z "$MKDIR_P"; then
2899 if ${ac_cv_path_mkdir+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_prog in mkdir gmkdir; do
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2910 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2911 'mkdir (GNU coreutils) '* | \
2912 'mkdir (coreutils) '* | \
2913 'mkdir (fileutils) '4.1*)
2914 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2915 break 3;;
2916 esac
2917 done
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 fi
2923
2924 test -d ./--version && rmdir ./--version
2925 if test "${ac_cv_path_mkdir+set}" = set; then
2926 MKDIR_P="$ac_cv_path_mkdir -p"
2927 else
2928 # As a last resort, use the slow shell script. Don't cache a
2929 # value for MKDIR_P within a source directory, because that will
2930 # break other packages using the cache if that directory is
2931 # removed, or if the value is a relative name.
2932 MKDIR_P="$ac_install_sh -d"
2933 fi
2934 fi
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2936 $as_echo "$MKDIR_P" >&6; }
2937
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2939 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2940 set x ${MAKE-make}
2941 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2942 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 cat >conftest.make <<\_ACEOF
2946 SHELL = /bin/sh
2947 all:
2948 @echo '@@@%%%=$(MAKE)=@@@%%%'
2949 _ACEOF
2950 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2951 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2952 *@@@%%%=?*=@@@%%%*)
2953 eval ac_cv_prog_make_${ac_make}_set=yes;;
2954 *)
2955 eval ac_cv_prog_make_${ac_make}_set=no;;
2956 esac
2957 rm -f conftest.make
2958 fi
2959 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2961 $as_echo "yes" >&6; }
2962 SET_MAKE=
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 SET_MAKE="MAKE=${MAKE-make}"
2967 fi
2968
2969 rm -rf .tst 2>/dev/null
2970 mkdir .tst 2>/dev/null
2971 if test -d .tst; then
2972 am__leading_dot=.
2973 else
2974 am__leading_dot=_
2975 fi
2976 rmdir .tst 2>/dev/null
2977
2978 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2979 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2980 # is not polluted with repeated "-I."
2981 am__isrc=' -I$(srcdir)'
2982 # test to see if srcdir already configured
2983 if test -f $srcdir/config.status; then
2984 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2985 fi
2986 fi
2987
2988 # test whether we have cygpath
2989 if test -z "$CYGPATH_W"; then
2990 if (cygpath --version) >/dev/null 2>/dev/null; then
2991 CYGPATH_W='cygpath -w'
2992 else
2993 CYGPATH_W=echo
2994 fi
2995 fi
2996
2997
2998 # Define the identity of the package.
2999 PACKAGE='spl'
3000 VERSION='0.6.5.10'
3001
3002
3003 cat >>confdefs.h <<_ACEOF
3004 #define PACKAGE "$PACKAGE"
3005 _ACEOF
3006
3007
3008 cat >>confdefs.h <<_ACEOF
3009 #define VERSION "$VERSION"
3010 _ACEOF
3011
3012 # Some tools Automake needs.
3013
3014 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3015
3016
3017 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3018
3019
3020 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3021
3022
3023 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3024
3025
3026 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3027
3028 # For better backward compatibility. To be removed once Automake 1.9.x
3029 # dies out for good. For more background, see:
3030 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3031 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3032 mkdir_p='$(MKDIR_P)'
3033
3034 # We need awk for the "check" target (and possibly the TAP driver). The
3035 # system "awk" is bad on some platforms.
3036 # Always define AMTAR for backward compatibility. Yes, it's still used
3037 # in the wild :-( We should find a proper way to deprecate it ...
3038 AMTAR='$${TAR-tar}'
3039
3040
3041 # We'll loop over all known methods to create a tar archive until one works.
3042 _am_tools='gnutar pax cpio none'
3043
3044 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3045
3046
3047
3048
3049
3050
3051 # POSIX will say in a future version that running "rm -f" with no argument
3052 # is OK; and we want to be able to make that assumption in our Makefile
3053 # recipes. So use an aggressive probe to check that the usage we want is
3054 # actually supported "in the wild" to an acceptable degree.
3055 # See automake bug#10828.
3056 # To make any issue more visible, cause the running configure to be aborted
3057 # by default if the 'rm' program in use doesn't match our expectations; the
3058 # user can still override this though.
3059 if rm -f && rm -fr && rm -rf; then : OK; else
3060 cat >&2 <<'END'
3061 Oops!
3062
3063 Your 'rm' program seems unable to run without file operands specified
3064 on the command line, even when the '-f' option is present. This is contrary
3065 to the behaviour of most rm programs out there, and not conforming with
3066 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3067
3068 Please tell bug-automake@gnu.org about your system, including the value
3069 of your $PATH and any error possibly output before this message. This
3070 can help us improve future automake versions.
3071
3072 END
3073 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3074 echo 'Configuration will proceed anyway, since you have set the' >&2
3075 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3076 echo >&2
3077 else
3078 cat >&2 <<'END'
3079 Aborting the configuration process, to ensure you take notice of the issue.
3080
3081 You can download and install GNU coreutils to get an 'rm' implementation
3082 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3083
3084 If you want to complete the configuration process using your problematic
3085 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3086 to "yes", and re-run configure.
3087
3088 END
3089 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3090 fi
3091 fi
3092
3093 ac_config_headers="$ac_config_headers spl_config.h"
3094
3095
3096
3097 ac_ext=c
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 if test -n "$ac_tool_prefix"; then
3103 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3104 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_CC+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140 fi
3141 if test -z "$ac_cv_prog_CC"; then
3142 ac_ct_CC=$CC
3143 # Extract the first word of "gcc", so it can be a program name with args.
3144 set dummy gcc; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test -n "$ac_ct_CC"; then
3151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160 ac_cv_prog_ac_ct_CC="gcc"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164 done
3165 done
3166 IFS=$as_save_IFS
3167
3168 fi
3169 fi
3170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171 if test -n "$ac_ct_CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3173 $as_echo "$ac_ct_CC" >&6; }
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 fi
3178
3179 if test "x$ac_ct_CC" = x; then
3180 CC=""
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183 yes:)
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3187 esac
3188 CC=$ac_ct_CC
3189 fi
3190 else
3191 CC="$ac_cv_prog_CC"
3192 fi
3193
3194 if test -z "$CC"; then
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3197 set dummy ${ac_tool_prefix}cc; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_CC="${ac_tool_prefix}cc"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 CC=$ac_cv_prog_CC
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233 fi
3234 fi
3235 if test -z "$CC"; then
3236 # Extract the first word of "cc", so it can be a program name with args.
3237 set dummy cc; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 ac_prog_rejected=no
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3255 ac_prog_rejected=yes
3256 continue
3257 fi
3258 ac_cv_prog_CC="cc"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262 done
3263 done
3264 IFS=$as_save_IFS
3265
3266 if test $ac_prog_rejected = yes; then
3267 # We found a bogon in the path, so make sure we never use it.
3268 set dummy $ac_cv_prog_CC
3269 shift
3270 if test $# != 0; then
3271 # We chose a different compiler from the bogus one.
3272 # However, it has the same basename, so the bogon will be chosen
3273 # first if we set CC to just the basename; use the full file name.
3274 shift
3275 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3276 fi
3277 fi
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 fi
3291 if test -z "$CC"; then
3292 if test -n "$ac_tool_prefix"; then
3293 for ac_prog in cl.exe
3294 do
3295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if ${ac_cv_prog_CC+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 if test -n "$CC"; then
3303 ac_cv_prog_CC="$CC" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 break 2
3315 fi
3316 done
3317 done
3318 IFS=$as_save_IFS
3319
3320 fi
3321 fi
3322 CC=$ac_cv_prog_CC
3323 if test -n "$CC"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329 fi
3330
3331
3332 test -n "$CC" && break
3333 done
3334 fi
3335 if test -z "$CC"; then
3336 ac_ct_CC=$CC
3337 for ac_prog in cl.exe
3338 do
3339 # Extract the first word of "$ac_prog", so it can be a program name with args.
3340 set dummy $ac_prog; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_ac_ct_CC="$ac_prog"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360 done
3361 done
3362 IFS=$as_save_IFS
3363
3364 fi
3365 fi
3366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 fi
3374
3375
3376 test -n "$ac_ct_CC" && break
3377 done
3378
3379 if test "x$ac_ct_CC" = x; then
3380 CC=""
3381 else
3382 case $cross_compiling:$ac_tool_warned in
3383 yes:)
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3387 esac
3388 CC=$ac_ct_CC
3389 fi
3390 fi
3391
3392 fi
3393
3394
3395 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "no acceptable C compiler found in \$PATH
3398 See \`config.log' for more details" "$LINENO" 5; }
3399
3400 # Provide some information about the compiler.
3401 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3402 set X $ac_compile
3403 ac_compiler=$2
3404 for ac_option in --version -v -V -qversion; do
3405 { { ac_try="$ac_compiler $ac_option >&5"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3413 ac_status=$?
3414 if test -s conftest.err; then
3415 sed '10a\
3416 ... rest of stderr output deleted ...
3417 10q' conftest.err >conftest.er1
3418 cat conftest.er1 >&5
3419 fi
3420 rm -f conftest.er1 conftest.err
3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422 test $ac_status = 0; }
3423 done
3424
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427
3428 int
3429 main ()
3430 {
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 ac_clean_files_save=$ac_clean_files
3437 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3438 # Try to create an executable without -o first, disregard a.out.
3439 # It will help us diagnose broken compilers, and finding out an intuition
3440 # of exeext.
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3442 $as_echo_n "checking whether the C compiler works... " >&6; }
3443 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3444
3445 # The possible output files:
3446 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3447
3448 ac_rmfiles=
3449 for ac_file in $ac_files
3450 do
3451 case $ac_file in
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3453 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3454 esac
3455 done
3456 rm -f $ac_rmfiles
3457
3458 if { { ac_try="$ac_link_default"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_link_default") 2>&5
3466 ac_status=$?
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }; then :
3469 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3470 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3471 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3472 # so that the user can short-circuit this test for compilers unknown to
3473 # Autoconf.
3474 for ac_file in $ac_files ''
3475 do
3476 test -f "$ac_file" || continue
3477 case $ac_file in
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3479 ;;
3480 [ab].out )
3481 # We found the default executable, but exeext='' is most
3482 # certainly right.
3483 break;;
3484 *.* )
3485 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3486 then :; else
3487 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3488 fi
3489 # We set ac_cv_exeext here because the later test for it is not
3490 # safe: cross compilers may not add the suffix if given an `-o'
3491 # argument, so we may need to know it at that point already.
3492 # Even if this section looks crufty: it has the advantage of
3493 # actually working.
3494 break;;
3495 * )
3496 break;;
3497 esac
3498 done
3499 test "$ac_cv_exeext" = no && ac_cv_exeext=
3500
3501 else
3502 ac_file=''
3503 fi
3504 if test -z "$ac_file"; then :
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 $as_echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error 77 "C compiler cannot create executables
3513 See \`config.log' for more details" "$LINENO" 5; }
3514 else
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516 $as_echo "yes" >&6; }
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3519 $as_echo_n "checking for C compiler default output file name... " >&6; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3521 $as_echo "$ac_file" >&6; }
3522 ac_exeext=$ac_cv_exeext
3523
3524 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3525 ac_clean_files=$ac_clean_files_save
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3527 $as_echo_n "checking for suffix of executables... " >&6; }
3528 if { { ac_try="$ac_link"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_link") 2>&5
3536 ac_status=$?
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; then :
3539 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3540 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3541 # work properly (i.e., refer to `conftest.exe'), while it won't with
3542 # `rm'.
3543 for ac_file in conftest.exe conftest conftest.*; do
3544 test -f "$ac_file" || continue
3545 case $ac_file in
3546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3547 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548 break;;
3549 * ) break;;
3550 esac
3551 done
3552 else
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3556 See \`config.log' for more details" "$LINENO" 5; }
3557 fi
3558 rm -f conftest conftest$ac_cv_exeext
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3560 $as_echo "$ac_cv_exeext" >&6; }
3561
3562 rm -f conftest.$ac_ext
3563 EXEEXT=$ac_cv_exeext
3564 ac_exeext=$EXEEXT
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567 #include <stdio.h>
3568 int
3569 main ()
3570 {
3571 FILE *f = fopen ("conftest.out", "w");
3572 return ferror (f) || fclose (f) != 0;
3573
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 ac_clean_files="$ac_clean_files conftest.out"
3579 # Check that the compiler produces executables we can run. If not, either
3580 # the compiler is broken, or we cross compile.
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3582 $as_echo_n "checking whether we are cross compiling... " >&6; }
3583 if test "$cross_compiling" != yes; then
3584 { { ac_try="$ac_link"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_link") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }
3595 if { ac_try='./conftest$ac_cv_exeext'
3596 { { case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_try") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }; }; then
3606 cross_compiling=no
3607 else
3608 if test "$cross_compiling" = maybe; then
3609 cross_compiling=yes
3610 else
3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error $? "cannot run C compiled programs.
3614 If you meant to cross compile, use \`--host'.
3615 See \`config.log' for more details" "$LINENO" 5; }
3616 fi
3617 fi
3618 fi
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3620 $as_echo "$cross_compiling" >&6; }
3621
3622 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3623 ac_clean_files=$ac_clean_files_save
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3625 $as_echo_n "checking for suffix of object files... " >&6; }
3626 if ${ac_cv_objext+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3631
3632 int
3633 main ()
3634 {
3635
3636 ;
3637 return 0;
3638 }
3639 _ACEOF
3640 rm -f conftest.o conftest.obj
3641 if { { ac_try="$ac_compile"
3642 case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_compile") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; then :
3652 for ac_file in conftest.o conftest.obj conftest.*; do
3653 test -f "$ac_file" || continue;
3654 case $ac_file in
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3657 break;;
3658 esac
3659 done
3660 else
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error $? "cannot compute suffix of object files: cannot compile
3667 See \`config.log' for more details" "$LINENO" 5; }
3668 fi
3669 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3672 $as_echo "$ac_cv_objext" >&6; }
3673 OBJEXT=$ac_cv_objext
3674 ac_objext=$OBJEXT
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3676 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3677 if ${ac_cv_c_compiler_gnu+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682
3683 int
3684 main ()
3685 {
3686 #ifndef __GNUC__
3687 choke me
3688 #endif
3689
3690 ;
3691 return 0;
3692 }
3693 _ACEOF
3694 if ac_fn_c_try_compile "$LINENO"; then :
3695 ac_compiler_gnu=yes
3696 else
3697 ac_compiler_gnu=no
3698 fi
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3701
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3704 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3705 if test $ac_compiler_gnu = yes; then
3706 GCC=yes
3707 else
3708 GCC=
3709 fi
3710 ac_test_CFLAGS=${CFLAGS+set}
3711 ac_save_CFLAGS=$CFLAGS
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3713 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3714 if ${ac_cv_prog_cc_g+:} false; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 ac_save_c_werror_flag=$ac_c_werror_flag
3718 ac_c_werror_flag=yes
3719 ac_cv_prog_cc_g=no
3720 CFLAGS="-g"
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3723
3724 int
3725 main ()
3726 {
3727
3728 ;
3729 return 0;
3730 }
3731 _ACEOF
3732 if ac_fn_c_try_compile "$LINENO"; then :
3733 ac_cv_prog_cc_g=yes
3734 else
3735 CFLAGS=""
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748
3749 else
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3751 CFLAGS="-g"
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754
3755 int
3756 main ()
3757 {
3758
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764 ac_cv_prog_cc_g=yes
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 fi
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 ac_c_werror_flag=$ac_save_c_werror_flag
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3774 $as_echo "$ac_cv_prog_cc_g" >&6; }
3775 if test "$ac_test_CFLAGS" = set; then
3776 CFLAGS=$ac_save_CFLAGS
3777 elif test $ac_cv_prog_cc_g = yes; then
3778 if test "$GCC" = yes; then
3779 CFLAGS="-g -O2"
3780 else
3781 CFLAGS="-g"
3782 fi
3783 else
3784 if test "$GCC" = yes; then
3785 CFLAGS="-O2"
3786 else
3787 CFLAGS=
3788 fi
3789 fi
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3791 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3792 if ${ac_cv_prog_cc_c89+:} false; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 ac_cv_prog_cc_c89=no
3796 ac_save_CC=$CC
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3799 #include <stdarg.h>
3800 #include <stdio.h>
3801 struct stat;
3802 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3803 struct buf { int x; };
3804 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3805 static char *e (p, i)
3806 char **p;
3807 int i;
3808 {
3809 return p[i];
3810 }
3811 static char *f (char * (*g) (char **, int), char **p, ...)
3812 {
3813 char *s;
3814 va_list v;
3815 va_start (v,p);
3816 s = g (p, va_arg (v,int));
3817 va_end (v);
3818 return s;
3819 }
3820
3821 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3822 function prototypes and stuff, but not '\xHH' hex character constants.
3823 These don't provoke an error unfortunately, instead are silently treated
3824 as 'x'. The following induces an error, until -std is added to get
3825 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3826 array size at least. It's necessary to write '\x00'==0 to get something
3827 that's true only with -std. */
3828 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3829
3830 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3831 inside strings and character constants. */
3832 #define FOO(x) 'x'
3833 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3834
3835 int test (int i, double x);
3836 struct s1 {int (*f) (int a);};
3837 struct s2 {int (*f) (double a);};
3838 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3839 int argc;
3840 char **argv;
3841 int
3842 main ()
3843 {
3844 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3845 ;
3846 return 0;
3847 }
3848 _ACEOF
3849 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3850 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3851 do
3852 CC="$ac_save_CC $ac_arg"
3853 if ac_fn_c_try_compile "$LINENO"; then :
3854 ac_cv_prog_cc_c89=$ac_arg
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext
3857 test "x$ac_cv_prog_cc_c89" != "xno" && break
3858 done
3859 rm -f conftest.$ac_ext
3860 CC=$ac_save_CC
3861
3862 fi
3863 # AC_CACHE_VAL
3864 case "x$ac_cv_prog_cc_c89" in
3865 x)
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3867 $as_echo "none needed" >&6; } ;;
3868 xno)
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3870 $as_echo "unsupported" >&6; } ;;
3871 *)
3872 CC="$CC $ac_cv_prog_cc_c89"
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3874 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3875 esac
3876 if test "x$ac_cv_prog_cc_c89" != xno; then :
3877
3878 fi
3879
3880 ac_ext=c
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885
3886 ac_ext=c
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3892 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3893 if ${am_cv_prog_cc_c_o+:} false; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898
3899 int
3900 main ()
3901 {
3902
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 # Make sure it works both with $CC and with simple cc.
3908 # Following AC_PROG_CC_C_O, we do the test twice because some
3909 # compilers refuse to overwrite an existing .o file with -o,
3910 # though they will create one.
3911 am_cv_prog_cc_c_o=yes
3912 for am_i in 1 2; do
3913 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3914 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } \
3918 && test -f conftest2.$ac_objext; then
3919 : OK
3920 else
3921 am_cv_prog_cc_c_o=no
3922 break
3923 fi
3924 done
3925 rm -f core conftest*
3926 unset am_i
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3929 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3930 if test "$am_cv_prog_cc_c_o" != yes; then
3931 # Losing compiler, so override with the script.
3932 # FIXME: It is wrong to rewrite CC.
3933 # But if we don't then we get into trouble of one sort or another.
3934 # A longer-term fix would be to have automake use am__CC in this case,
3935 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3936 CC="$am_aux_dir/compile $CC"
3937 fi
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944 DEPDIR="${am__leading_dot}deps"
3945
3946 ac_config_commands="$ac_config_commands depfiles"
3947
3948
3949 am_make=${MAKE-make}
3950 cat > confinc << 'END'
3951 am__doit:
3952 @echo this is the am__doit target
3953 .PHONY: am__doit
3954 END
3955 # If we don't find an include directive, just comment out the code.
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3957 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3958 am__include="#"
3959 am__quote=
3960 _am_result=none
3961 # First try GNU make style include.
3962 echo "include confinc" > confmf
3963 # Ignore all kinds of additional output from 'make'.
3964 case `$am_make -s -f confmf 2> /dev/null` in #(
3965 *the\ am__doit\ target*)
3966 am__include=include
3967 am__quote=
3968 _am_result=GNU
3969 ;;
3970 esac
3971 # Now try BSD make style include.
3972 if test "$am__include" = "#"; then
3973 echo '.include "confinc"' > confmf
3974 case `$am_make -s -f confmf 2> /dev/null` in #(
3975 *the\ am__doit\ target*)
3976 am__include=.include
3977 am__quote="\""
3978 _am_result=BSD
3979 ;;
3980 esac
3981 fi
3982
3983
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3985 $as_echo "$_am_result" >&6; }
3986 rm -f confinc confmf
3987
3988 # Check whether --enable-dependency-tracking was given.
3989 if test "${enable_dependency_tracking+set}" = set; then :
3990 enableval=$enable_dependency_tracking;
3991 fi
3992
3993 if test "x$enable_dependency_tracking" != xno; then
3994 am_depcomp="$ac_aux_dir/depcomp"
3995 AMDEPBACKSLASH='\'
3996 am__nodep='_no'
3997 fi
3998 if test "x$enable_dependency_tracking" != xno; then
3999 AMDEP_TRUE=
4000 AMDEP_FALSE='#'
4001 else
4002 AMDEP_TRUE='#'
4003 AMDEP_FALSE=
4004 fi
4005
4006
4007
4008 depcc="$CC" am_compiler_list=
4009
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4011 $as_echo_n "checking dependency style of $depcc... " >&6; }
4012 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4016 # We make a subdir and do the tests there. Otherwise we can end up
4017 # making bogus files that we don't know about and never remove. For
4018 # instance it was reported that on HP-UX the gcc test will end up
4019 # making a dummy file named 'D' -- because '-MD' means "put the output
4020 # in D".
4021 rm -rf conftest.dir
4022 mkdir conftest.dir
4023 # Copy depcomp to subdir because otherwise we won't find it if we're
4024 # using a relative directory.
4025 cp "$am_depcomp" conftest.dir
4026 cd conftest.dir
4027 # We will build objects and dependencies in a subdirectory because
4028 # it helps to detect inapplicable dependency modes. For instance
4029 # both Tru64's cc and ICC support -MD to output dependencies as a
4030 # side effect of compilation, but ICC will put the dependencies in
4031 # the current directory while Tru64 will put them in the object
4032 # directory.
4033 mkdir sub
4034
4035 am_cv_CC_dependencies_compiler_type=none
4036 if test "$am_compiler_list" = ""; then
4037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4038 fi
4039 am__universal=false
4040 case " $depcc " in #(
4041 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4042 esac
4043
4044 for depmode in $am_compiler_list; do
4045 # Setup a source with many dependencies, because some compilers
4046 # like to wrap large dependency lists on column 80 (with \), and
4047 # we should not choose a depcomp mode which is confused by this.
4048 #
4049 # We need to recreate these files for each test, as the compiler may
4050 # overwrite some of them when testing with obscure command lines.
4051 # This happens at least with the AIX C compiler.
4052 : > sub/conftest.c
4053 for i in 1 2 3 4 5 6; do
4054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4055 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4056 # Solaris 10 /bin/sh.
4057 echo '/* dummy */' > sub/conftst$i.h
4058 done
4059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4060
4061 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4062 # mode. It turns out that the SunPro C++ compiler does not properly
4063 # handle '-M -o', and we need to detect this. Also, some Intel
4064 # versions had trouble with output in subdirs.
4065 am__obj=sub/conftest.${OBJEXT-o}
4066 am__minus_obj="-o $am__obj"
4067 case $depmode in
4068 gcc)
4069 # This depmode causes a compiler race in universal mode.
4070 test "$am__universal" = false || continue
4071 ;;
4072 nosideeffect)
4073 # After this tag, mechanisms are not by side-effect, so they'll
4074 # only be used when explicitly requested.
4075 if test "x$enable_dependency_tracking" = xyes; then
4076 continue
4077 else
4078 break
4079 fi
4080 ;;
4081 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4082 # This compiler won't grok '-c -o', but also, the minuso test has
4083 # not run yet. These depmodes are late enough in the game, and
4084 # so weak that their functioning should not be impacted.
4085 am__obj=conftest.${OBJEXT-o}
4086 am__minus_obj=
4087 ;;
4088 none) break ;;
4089 esac
4090 if depmode=$depmode \
4091 source=sub/conftest.c object=$am__obj \
4092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4094 >/dev/null 2>conftest.err &&
4095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4099 # icc doesn't choke on unknown options, it will just issue warnings
4100 # or remarks (even with -Werror). So we grep stderr for any message
4101 # that says an option was ignored or not supported.
4102 # When given -MP, icc 7.0 and 7.1 complain thusly:
4103 # icc: Command line warning: ignoring option '-M'; no argument required
4104 # The diagnosis changed in icc 8.0:
4105 # icc: Command line remark: option '-MP' not supported
4106 if (grep 'ignoring option' conftest.err ||
4107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4108 am_cv_CC_dependencies_compiler_type=$depmode
4109 break
4110 fi
4111 fi
4112 done
4113
4114 cd ..
4115 rm -rf conftest.dir
4116 else
4117 am_cv_CC_dependencies_compiler_type=none
4118 fi
4119
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4122 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4123 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4124
4125 if
4126 test "x$enable_dependency_tracking" != xno \
4127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4128 am__fastdepCC_TRUE=
4129 am__fastdepCC_FALSE='#'
4130 else
4131 am__fastdepCC_TRUE='#'
4132 am__fastdepCC_FALSE=
4133 fi
4134
4135
4136 case `pwd` in
4137 *\ * | *\ *)
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4139 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4140 esac
4141
4142
4143
4144 macro_version='2.4.6'
4145 macro_revision='2.4.6'
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159 ltmain=$ac_aux_dir/ltmain.sh
4160
4161 # Backslashify metacharacters that are still active within
4162 # double-quoted strings.
4163 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4164
4165 # Same as above, but do not quote variable references.
4166 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4167
4168 # Sed substitution to delay expansion of an escaped shell variable in a
4169 # double_quote_subst'ed string.
4170 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4171
4172 # Sed substitution to delay expansion of an escaped single quote.
4173 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4174
4175 # Sed substitution to avoid accidental globbing in evaled expressions
4176 no_glob_subst='s/\*/\\\*/g'
4177
4178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4179 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4180 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4183 $as_echo_n "checking how to print strings... " >&6; }
4184 # Test print first, because it will be a builtin if present.
4185 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4186 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4187 ECHO='print -r --'
4188 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4189 ECHO='printf %s\n'
4190 else
4191 # Use this function as a fallback that always works.
4192 func_fallback_echo ()
4193 {
4194 eval 'cat <<_LTECHO_EOF
4195 $1
4196 _LTECHO_EOF'
4197 }
4198 ECHO='func_fallback_echo'
4199 fi
4200
4201 # func_echo_all arg...
4202 # Invoke $ECHO with all args, space-separated.
4203 func_echo_all ()
4204 {
4205 $ECHO ""
4206 }
4207
4208 case $ECHO in
4209 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4210 $as_echo "printf" >&6; } ;;
4211 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4212 $as_echo "print -r" >&6; } ;;
4213 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4214 $as_echo "cat" >&6; } ;;
4215 esac
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4231 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4232 if ${ac_cv_path_SED+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4236 for ac_i in 1 2 3 4 5 6 7; do
4237 ac_script="$ac_script$as_nl$ac_script"
4238 done
4239 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4240 { ac_script=; unset ac_script;}
4241 if test -z "$SED"; then
4242 ac_path_SED_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in sed gsed; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4252 as_fn_executable_p "$ac_path_SED" || continue
4253 # Check for GNU ac_path_SED and select it if it is found.
4254 # Check for GNU $ac_path_SED
4255 case `"$ac_path_SED" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4258 *)
4259 ac_count=0
4260 $as_echo_n 0123456789 >"conftest.in"
4261 while :
4262 do
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo '' >> "conftest.nl"
4267 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 as_fn_arith $ac_count + 1 && ac_count=$as_val
4270 if test $ac_count -gt ${ac_path_SED_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_SED="$ac_path_SED"
4273 ac_path_SED_max=$ac_count
4274 fi
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4280
4281 $ac_path_SED_found && break 3
4282 done
4283 done
4284 done
4285 IFS=$as_save_IFS
4286 if test -z "$ac_cv_path_SED"; then
4287 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4288 fi
4289 else
4290 ac_cv_path_SED=$SED
4291 fi
4292
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4295 $as_echo "$ac_cv_path_SED" >&6; }
4296 SED="$ac_cv_path_SED"
4297 rm -f conftest.sed
4298
4299 test -z "$SED" && SED=sed
4300 Xsed="$SED -e 1s/^X//"
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4313 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4314 if ${ac_cv_path_GREP+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -z "$GREP"; then
4318 ac_path_GREP_found=false
4319 # Loop through the user's path and test for each of PROGNAME-LIST
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_prog in grep ggrep; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4328 as_fn_executable_p "$ac_path_GREP" || continue
4329 # Check for GNU ac_path_GREP and select it if it is found.
4330 # Check for GNU $ac_path_GREP
4331 case `"$ac_path_GREP" --version 2>&1` in
4332 *GNU*)
4333 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4334 *)
4335 ac_count=0
4336 $as_echo_n 0123456789 >"conftest.in"
4337 while :
4338 do
4339 cat "conftest.in" "conftest.in" >"conftest.tmp"
4340 mv "conftest.tmp" "conftest.in"
4341 cp "conftest.in" "conftest.nl"
4342 $as_echo 'GREP' >> "conftest.nl"
4343 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345 as_fn_arith $ac_count + 1 && ac_count=$as_val
4346 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4347 # Best one so far, save it but keep looking for a better one
4348 ac_cv_path_GREP="$ac_path_GREP"
4349 ac_path_GREP_max=$ac_count
4350 fi
4351 # 10*(2^10) chars as input seems more than enough
4352 test $ac_count -gt 10 && break
4353 done
4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 esac
4356
4357 $ac_path_GREP_found && break 3
4358 done
4359 done
4360 done
4361 IFS=$as_save_IFS
4362 if test -z "$ac_cv_path_GREP"; then
4363 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364 fi
4365 else
4366 ac_cv_path_GREP=$GREP
4367 fi
4368
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4371 $as_echo "$ac_cv_path_GREP" >&6; }
4372 GREP="$ac_cv_path_GREP"
4373
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4376 $as_echo_n "checking for egrep... " >&6; }
4377 if ${ac_cv_path_EGREP+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4381 then ac_cv_path_EGREP="$GREP -E"
4382 else
4383 if test -z "$EGREP"; then
4384 ac_path_EGREP_found=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4388 do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_prog in egrep; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4394 as_fn_executable_p "$ac_path_EGREP" || continue
4395 # Check for GNU ac_path_EGREP and select it if it is found.
4396 # Check for GNU $ac_path_EGREP
4397 case `"$ac_path_EGREP" --version 2>&1` in
4398 *GNU*)
4399 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4400 *)
4401 ac_count=0
4402 $as_echo_n 0123456789 >"conftest.in"
4403 while :
4404 do
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 $as_echo 'EGREP' >> "conftest.nl"
4409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4411 as_fn_arith $ac_count + 1 && ac_count=$as_val
4412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_EGREP="$ac_path_EGREP"
4415 ac_path_EGREP_max=$ac_count
4416 fi
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4419 done
4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421 esac
4422
4423 $ac_path_EGREP_found && break 3
4424 done
4425 done
4426 done
4427 IFS=$as_save_IFS
4428 if test -z "$ac_cv_path_EGREP"; then
4429 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4430 fi
4431 else
4432 ac_cv_path_EGREP=$EGREP
4433 fi
4434
4435 fi
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4438 $as_echo "$ac_cv_path_EGREP" >&6; }
4439 EGREP="$ac_cv_path_EGREP"
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4443 $as_echo_n "checking for fgrep... " >&6; }
4444 if ${ac_cv_path_FGREP+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4448 then ac_cv_path_FGREP="$GREP -F"
4449 else
4450 if test -z "$FGREP"; then
4451 ac_path_FGREP_found=false
4452 # Loop through the user's path and test for each of PROGNAME-LIST
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4455 do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_prog in fgrep; do
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4461 as_fn_executable_p "$ac_path_FGREP" || continue
4462 # Check for GNU ac_path_FGREP and select it if it is found.
4463 # Check for GNU $ac_path_FGREP
4464 case `"$ac_path_FGREP" --version 2>&1` in
4465 *GNU*)
4466 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4467 *)
4468 ac_count=0
4469 $as_echo_n 0123456789 >"conftest.in"
4470 while :
4471 do
4472 cat "conftest.in" "conftest.in" >"conftest.tmp"
4473 mv "conftest.tmp" "conftest.in"
4474 cp "conftest.in" "conftest.nl"
4475 $as_echo 'FGREP' >> "conftest.nl"
4476 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4478 as_fn_arith $ac_count + 1 && ac_count=$as_val
4479 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4480 # Best one so far, save it but keep looking for a better one
4481 ac_cv_path_FGREP="$ac_path_FGREP"
4482 ac_path_FGREP_max=$ac_count
4483 fi
4484 # 10*(2^10) chars as input seems more than enough
4485 test $ac_count -gt 10 && break
4486 done
4487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4488 esac
4489
4490 $ac_path_FGREP_found && break 3
4491 done
4492 done
4493 done
4494 IFS=$as_save_IFS
4495 if test -z "$ac_cv_path_FGREP"; then
4496 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4497 fi
4498 else
4499 ac_cv_path_FGREP=$FGREP
4500 fi
4501
4502 fi
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4505 $as_echo "$ac_cv_path_FGREP" >&6; }
4506 FGREP="$ac_cv_path_FGREP"
4507
4508
4509 test -z "$GREP" && GREP=grep
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529 # Check whether --with-gnu-ld was given.
4530 if test "${with_gnu_ld+set}" = set; then :
4531 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4532 else
4533 with_gnu_ld=no
4534 fi
4535
4536 ac_prog=ld
4537 if test yes = "$GCC"; then
4538 # Check if gcc -print-prog-name=ld gives a path.
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4540 $as_echo_n "checking for ld used by $CC... " >&6; }
4541 case $host in
4542 *-*-mingw*)
4543 # gcc leaves a trailing carriage return, which upsets mingw
4544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4545 *)
4546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4547 esac
4548 case $ac_prog in
4549 # Accept absolute paths.
4550 [\\/]* | ?:[\\/]*)
4551 re_direlt='/[^/][^/]*/\.\./'
4552 # Canonicalize the pathname of ld
4553 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4554 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4555 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4556 done
4557 test -z "$LD" && LD=$ac_prog
4558 ;;
4559 "")
4560 # If it fails, then pretend we aren't using GCC.
4561 ac_prog=ld
4562 ;;
4563 *)
4564 # If it is relative, then search for the first ld in PATH.
4565 with_gnu_ld=unknown
4566 ;;
4567 esac
4568 elif test yes = "$with_gnu_ld"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4570 $as_echo_n "checking for GNU ld... " >&6; }
4571 else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4573 $as_echo_n "checking for non-GNU ld... " >&6; }
4574 fi
4575 if ${lt_cv_path_LD+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -z "$LD"; then
4579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4580 for ac_dir in $PATH; do
4581 IFS=$lt_save_ifs
4582 test -z "$ac_dir" && ac_dir=.
4583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4584 lt_cv_path_LD=$ac_dir/$ac_prog
4585 # Check to see if the program is GNU ld. I'd rather use --version,
4586 # but apparently some variants of GNU ld only accept -v.
4587 # Break only if it was the GNU/non-GNU ld that we prefer.
4588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4589 *GNU* | *'with BFD'*)
4590 test no != "$with_gnu_ld" && break
4591 ;;
4592 *)
4593 test yes != "$with_gnu_ld" && break
4594 ;;
4595 esac
4596 fi
4597 done
4598 IFS=$lt_save_ifs
4599 else
4600 lt_cv_path_LD=$LD # Let the user override the test with a path.
4601 fi
4602 fi
4603
4604 LD=$lt_cv_path_LD
4605 if test -n "$LD"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4607 $as_echo "$LD" >&6; }
4608 else
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4611 fi
4612 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4614 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4615 if ${lt_cv_prog_gnu_ld+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4619 case `$LD -v 2>&1 </dev/null` in
4620 *GNU* | *'with BFD'*)
4621 lt_cv_prog_gnu_ld=yes
4622 ;;
4623 *)
4624 lt_cv_prog_gnu_ld=no
4625 ;;
4626 esac
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4629 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4630 with_gnu_ld=$lt_cv_prog_gnu_ld
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4641 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4642 if ${lt_cv_path_NM+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$NM"; then
4646 # Let the user override the test.
4647 lt_cv_path_NM=$NM
4648 else
4649 lt_nm_to_check=${ac_tool_prefix}nm
4650 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4651 lt_nm_to_check="$lt_nm_to_check nm"
4652 fi
4653 for lt_tmp_nm in $lt_nm_to_check; do
4654 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4655 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4656 IFS=$lt_save_ifs
4657 test -z "$ac_dir" && ac_dir=.
4658 tmp_nm=$ac_dir/$lt_tmp_nm
4659 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4660 # Check to see if the nm accepts a BSD-compat flag.
4661 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4662 # nm: unknown option "B" ignored
4663 # Tru64's nm complains that /dev/null is an invalid object file
4664 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4665 case $build_os in
4666 mingw*) lt_bad_file=conftest.nm/nofile ;;
4667 *) lt_bad_file=/dev/null ;;
4668 esac
4669 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4670 *$lt_bad_file* | *'Invalid file or object type'*)
4671 lt_cv_path_NM="$tmp_nm -B"
4672 break 2
4673 ;;
4674 *)
4675 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4676 */dev/null*)
4677 lt_cv_path_NM="$tmp_nm -p"
4678 break 2
4679 ;;
4680 *)
4681 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4682 continue # so that we can try to find one that supports BSD flags
4683 ;;
4684 esac
4685 ;;
4686 esac
4687 fi
4688 done
4689 IFS=$lt_save_ifs
4690 done
4691 : ${lt_cv_path_NM=no}
4692 fi
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4695 $as_echo "$lt_cv_path_NM" >&6; }
4696 if test no != "$lt_cv_path_NM"; then
4697 NM=$lt_cv_path_NM
4698 else
4699 # Didn't find any BSD compatible name lister, look for dumpbin.
4700 if test -n "$DUMPBIN"; then :
4701 # Let the user override the test.
4702 else
4703 if test -n "$ac_tool_prefix"; then
4704 for ac_prog in dumpbin "link -dump"
4705 do
4706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_prog_DUMPBIN+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 if test -n "$DUMPBIN"; then
4714 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 DUMPBIN=$ac_cv_prog_DUMPBIN
4734 if test -n "$DUMPBIN"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4736 $as_echo "$DUMPBIN" >&6; }
4737 else
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4740 fi
4741
4742
4743 test -n "$DUMPBIN" && break
4744 done
4745 fi
4746 if test -z "$DUMPBIN"; then
4747 ac_ct_DUMPBIN=$DUMPBIN
4748 for ac_prog in dumpbin "link -dump"
4749 do
4750 # Extract the first word of "$ac_prog", so it can be a program name with args.
4751 set dummy $ac_prog; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if test -n "$ac_ct_DUMPBIN"; then
4758 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4770 fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4778 if test -n "$ac_ct_DUMPBIN"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4780 $as_echo "$ac_ct_DUMPBIN" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786
4787 test -n "$ac_ct_DUMPBIN" && break
4788 done
4789
4790 if test "x$ac_ct_DUMPBIN" = x; then
4791 DUMPBIN=":"
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794 yes:)
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4797 ac_tool_warned=yes ;;
4798 esac
4799 DUMPBIN=$ac_ct_DUMPBIN
4800 fi
4801 fi
4802
4803 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4804 *COFF*)
4805 DUMPBIN="$DUMPBIN -symbols -headers"
4806 ;;
4807 *)
4808 DUMPBIN=:
4809 ;;
4810 esac
4811 fi
4812
4813 if test : != "$DUMPBIN"; then
4814 NM=$DUMPBIN
4815 fi
4816 fi
4817 test -z "$NM" && NM=nm
4818
4819
4820
4821
4822
4823
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4825 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4826 if ${lt_cv_nm_interface+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 lt_cv_nm_interface="BSD nm"
4830 echo "int some_variable = 0;" > conftest.$ac_ext
4831 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4832 (eval "$ac_compile" 2>conftest.err)
4833 cat conftest.err >&5
4834 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4835 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4836 cat conftest.err >&5
4837 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4838 cat conftest.out >&5
4839 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4840 lt_cv_nm_interface="MS dumpbin"
4841 fi
4842 rm -f conftest*
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4845 $as_echo "$lt_cv_nm_interface" >&6; }
4846
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4848 $as_echo_n "checking whether ln -s works... " >&6; }
4849 LN_S=$as_ln_s
4850 if test "$LN_S" = "ln -s"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4852 $as_echo "yes" >&6; }
4853 else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4855 $as_echo "no, using $LN_S" >&6; }
4856 fi
4857
4858 # find the maximum length of command line arguments
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4860 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4861 if ${lt_cv_sys_max_cmd_len+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 i=0
4865 teststring=ABCD
4866
4867 case $build_os in
4868 msdosdjgpp*)
4869 # On DJGPP, this test can blow up pretty badly due to problems in libc
4870 # (any single argument exceeding 2000 bytes causes a buffer overrun
4871 # during glob expansion). Even if it were fixed, the result of this
4872 # check would be larger than it should be.
4873 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4874 ;;
4875
4876 gnu*)
4877 # Under GNU Hurd, this test is not required because there is
4878 # no limit to the length of command line arguments.
4879 # Libtool will interpret -1 as no limit whatsoever
4880 lt_cv_sys_max_cmd_len=-1;
4881 ;;
4882
4883 cygwin* | mingw* | cegcc*)
4884 # On Win9x/ME, this test blows up -- it succeeds, but takes
4885 # about 5 minutes as the teststring grows exponentially.
4886 # Worse, since 9x/ME are not pre-emptively multitasking,
4887 # you end up with a "frozen" computer, even though with patience
4888 # the test eventually succeeds (with a max line length of 256k).
4889 # Instead, let's just punt: use the minimum linelength reported by
4890 # all of the supported platforms: 8192 (on NT/2K/XP).
4891 lt_cv_sys_max_cmd_len=8192;
4892 ;;
4893
4894 mint*)
4895 # On MiNT this can take a long time and run out of memory.
4896 lt_cv_sys_max_cmd_len=8192;
4897 ;;
4898
4899 amigaos*)
4900 # On AmigaOS with pdksh, this test takes hours, literally.
4901 # So we just punt and use a minimum line length of 8192.
4902 lt_cv_sys_max_cmd_len=8192;
4903 ;;
4904
4905 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4906 # This has been around since 386BSD, at least. Likely further.
4907 if test -x /sbin/sysctl; then
4908 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4909 elif test -x /usr/sbin/sysctl; then
4910 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4911 else
4912 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4913 fi
4914 # And add a safety zone
4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4917 ;;
4918
4919 interix*)
4920 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4921 lt_cv_sys_max_cmd_len=196608
4922 ;;
4923
4924 os2*)
4925 # The test takes a long time on OS/2.
4926 lt_cv_sys_max_cmd_len=8192
4927 ;;
4928
4929 osf*)
4930 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4931 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4932 # nice to cause kernel panics so lets avoid the loop below.
4933 # First set a reasonable default.
4934 lt_cv_sys_max_cmd_len=16384
4935 #
4936 if test -x /sbin/sysconfig; then
4937 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4938 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4939 esac
4940 fi
4941 ;;
4942 sco3.2v5*)
4943 lt_cv_sys_max_cmd_len=102400
4944 ;;
4945 sysv5* | sco5v6* | sysv4.2uw2*)
4946 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4947 if test -n "$kargmax"; then
4948 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4949 else
4950 lt_cv_sys_max_cmd_len=32768
4951 fi
4952 ;;
4953 *)
4954 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4955 if test -n "$lt_cv_sys_max_cmd_len" && \
4956 test undefined != "$lt_cv_sys_max_cmd_len"; then
4957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4959 else
4960 # Make teststring a little bigger before we do anything with it.
4961 # a 1K string should be a reasonable start.
4962 for i in 1 2 3 4 5 6 7 8; do
4963 teststring=$teststring$teststring
4964 done
4965 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4966 # If test is not a shell built-in, we'll probably end up computing a
4967 # maximum length that is only half of the actual maximum length, but
4968 # we can't tell.
4969 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4970 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4971 test 17 != "$i" # 1/2 MB should be enough
4972 do
4973 i=`expr $i + 1`
4974 teststring=$teststring$teststring
4975 done
4976 # Only check the string length outside the loop.
4977 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4978 teststring=
4979 # Add a significant safety factor because C++ compilers can tack on
4980 # massive amounts of additional arguments before passing them to the
4981 # linker. It appears as though 1/2 is a usable value.
4982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4983 fi
4984 ;;
4985 esac
4986
4987 fi
4988
4989 if test -n "$lt_cv_sys_max_cmd_len"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4991 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4994 $as_echo "none" >&6; }
4995 fi
4996 max_cmd_len=$lt_cv_sys_max_cmd_len
4997
4998
4999
5000
5001
5002
5003 : ${CP="cp -f"}
5004 : ${MV="mv -f"}
5005 : ${RM="rm -f"}
5006
5007 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5008 lt_unset=unset
5009 else
5010 lt_unset=false
5011 fi
5012
5013
5014
5015
5016
5017 # test EBCDIC or ASCII
5018 case `echo X|tr X '\101'` in
5019 A) # ASCII based system
5020 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5021 lt_SP2NL='tr \040 \012'
5022 lt_NL2SP='tr \015\012 \040\040'
5023 ;;
5024 *) # EBCDIC based system
5025 lt_SP2NL='tr \100 \n'
5026 lt_NL2SP='tr \r\n \100\100'
5027 ;;
5028 esac
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5039 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5040 if ${lt_cv_to_host_file_cmd+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 case $host in
5044 *-*-mingw* )
5045 case $build in
5046 *-*-mingw* ) # actually msys
5047 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5048 ;;
5049 *-*-cygwin* )
5050 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5051 ;;
5052 * ) # otherwise, assume *nix
5053 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5054 ;;
5055 esac
5056 ;;
5057 *-*-cygwin* )
5058 case $build in
5059 *-*-mingw* ) # actually msys
5060 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5061 ;;
5062 *-*-cygwin* )
5063 lt_cv_to_host_file_cmd=func_convert_file_noop
5064 ;;
5065 * ) # otherwise, assume *nix
5066 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5067 ;;
5068 esac
5069 ;;
5070 * ) # unhandled hosts (and "normal" native builds)
5071 lt_cv_to_host_file_cmd=func_convert_file_noop
5072 ;;
5073 esac
5074
5075 fi
5076
5077 to_host_file_cmd=$lt_cv_to_host_file_cmd
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5079 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5080
5081
5082
5083
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5086 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5087 if ${lt_cv_to_tool_file_cmd+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 #assume ordinary cross tools, or native build.
5091 lt_cv_to_tool_file_cmd=func_convert_file_noop
5092 case $host in
5093 *-*-mingw* )
5094 case $build in
5095 *-*-mingw* ) # actually msys
5096 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5097 ;;
5098 esac
5099 ;;
5100 esac
5101
5102 fi
5103
5104 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5106 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5107
5108
5109
5110
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5113 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5114 if ${lt_cv_ld_reload_flag+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 lt_cv_ld_reload_flag='-r'
5118 fi
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5120 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5121 reload_flag=$lt_cv_ld_reload_flag
5122 case $reload_flag in
5123 "" | " "*) ;;
5124 *) reload_flag=" $reload_flag" ;;
5125 esac
5126 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5127 case $host_os in
5128 cygwin* | mingw* | pw32* | cegcc*)
5129 if test yes != "$GCC"; then
5130 reload_cmds=false
5131 fi
5132 ;;
5133 darwin*)
5134 if test yes = "$GCC"; then
5135 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5136 else
5137 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5138 fi
5139 ;;
5140 esac
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150 if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5152 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_OBJDUMP+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$OBJDUMP"; then
5159 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174 IFS=$as_save_IFS
5175
5176 fi
5177 fi
5178 OBJDUMP=$ac_cv_prog_OBJDUMP
5179 if test -n "$OBJDUMP"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5181 $as_echo "$OBJDUMP" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5185 fi
5186
5187
5188 fi
5189 if test -z "$ac_cv_prog_OBJDUMP"; then
5190 ac_ct_OBJDUMP=$OBJDUMP
5191 # Extract the first word of "objdump", so it can be a program name with args.
5192 set dummy objdump; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test -n "$ac_ct_OBJDUMP"; then
5199 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212 done
5213 done
5214 IFS=$as_save_IFS
5215
5216 fi
5217 fi
5218 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5219 if test -n "$ac_ct_OBJDUMP"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5221 $as_echo "$ac_ct_OBJDUMP" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227 if test "x$ac_ct_OBJDUMP" = x; then
5228 OBJDUMP="false"
5229 else
5230 case $cross_compiling:$ac_tool_warned in
5231 yes:)
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5234 ac_tool_warned=yes ;;
5235 esac
5236 OBJDUMP=$ac_ct_OBJDUMP
5237 fi
5238 else
5239 OBJDUMP="$ac_cv_prog_OBJDUMP"
5240 fi
5241
5242 test -z "$OBJDUMP" && OBJDUMP=objdump
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5253 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5254 if ${lt_cv_deplibs_check_method+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 lt_cv_file_magic_cmd='$MAGIC_CMD'
5258 lt_cv_file_magic_test_file=
5259 lt_cv_deplibs_check_method='unknown'
5260 # Need to set the preceding variable on all platforms that support
5261 # interlibrary dependencies.
5262 # 'none' -- dependencies not supported.
5263 # 'unknown' -- same as none, but documents that we really don't know.
5264 # 'pass_all' -- all dependencies passed with no checks.
5265 # 'test_compile' -- check by making test program.
5266 # 'file_magic [[regex]]' -- check by looking for files in library path
5267 # that responds to the $file_magic_cmd with a given extended regex.
5268 # If you have 'file' or equivalent on your system and you're not sure
5269 # whether 'pass_all' will *always* work, you probably want this one.
5270
5271 case $host_os in
5272 aix[4-9]*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275
5276 beos*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280 bsdi[45]*)
5281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5282 lt_cv_file_magic_cmd='/usr/bin/file -L'
5283 lt_cv_file_magic_test_file=/shlib/libc.so
5284 ;;
5285
5286 cygwin*)
5287 # func_win32_libid is a shell function defined in ltmain.sh
5288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5289 lt_cv_file_magic_cmd='func_win32_libid'
5290 ;;
5291
5292 mingw* | pw32*)
5293 # Base MSYS/MinGW do not provide the 'file' command needed by
5294 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5295 # unless we find 'file', for example because we are cross-compiling.
5296 if ( file / ) >/dev/null 2>&1; then
5297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5298 lt_cv_file_magic_cmd='func_win32_libid'
5299 else
5300 # Keep this pattern in sync with the one in func_win32_libid.
5301 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5302 lt_cv_file_magic_cmd='$OBJDUMP -f'
5303 fi
5304 ;;
5305
5306 cegcc*)
5307 # use the weaker test based on 'objdump'. See mingw*.
5308 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5309 lt_cv_file_magic_cmd='$OBJDUMP -f'
5310 ;;
5311
5312 darwin* | rhapsody*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316 freebsd* | dragonfly*)
5317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5318 case $host_cpu in
5319 i*86 )
5320 # Not sure whether the presence of OpenBSD here was a mistake.
5321 # Let's accept both of them until this is cleared up.
5322 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5323 lt_cv_file_magic_cmd=/usr/bin/file
5324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5325 ;;
5326 esac
5327 else
5328 lt_cv_deplibs_check_method=pass_all
5329 fi
5330 ;;
5331
5332 haiku*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335
5336 hpux10.20* | hpux11*)
5337 lt_cv_file_magic_cmd=/usr/bin/file
5338 case $host_cpu in
5339 ia64*)
5340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5341 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5342 ;;
5343 hppa*64*)
5344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5345 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5346 ;;
5347 *)
5348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5349 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5350 ;;
5351 esac
5352 ;;
5353
5354 interix[3-9]*)
5355 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5357 ;;
5358
5359 irix5* | irix6* | nonstopux*)
5360 case $LD in
5361 *-32|*"-32 ") libmagic=32-bit;;
5362 *-n32|*"-n32 ") libmagic=N32;;
5363 *-64|*"-64 ") libmagic=64-bit;;
5364 *) libmagic=never-match;;
5365 esac
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
5368
5369 # This must be glibc/ELF.
5370 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374 netbsd* | netbsdelf*-gnu)
5375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5377 else
5378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5379 fi
5380 ;;
5381
5382 newos6*)
5383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5384 lt_cv_file_magic_cmd=/usr/bin/file
5385 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5386 ;;
5387
5388 *nto* | *qnx*)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391
5392 openbsd* | bitrig*)
5393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5395 else
5396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5397 fi
5398 ;;
5399
5400 osf3* | osf4* | osf5*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403
5404 rdos*)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407
5408 solaris*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415
5416 sysv4 | sysv4.3*)
5417 case $host_vendor in
5418 motorola)
5419 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]'
5420 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5421 ;;
5422 ncr)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425 sequent)
5426 lt_cv_file_magic_cmd='/bin/file'
5427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5428 ;;
5429 sni)
5430 lt_cv_file_magic_cmd='/bin/file'
5431 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5432 lt_cv_file_magic_test_file=/lib/libc.so
5433 ;;
5434 siemens)
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
5437 pc)
5438 lt_cv_deplibs_check_method=pass_all
5439 ;;
5440 esac
5441 ;;
5442
5443 tpf*)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
5446 os2*)
5447 lt_cv_deplibs_check_method=pass_all
5448 ;;
5449 esac
5450
5451 fi
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5453 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5454
5455 file_magic_glob=
5456 want_nocaseglob=no
5457 if test "$build" = "$host"; then
5458 case $host_os in
5459 mingw* | pw32*)
5460 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5461 want_nocaseglob=yes
5462 else
5463 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5464 fi
5465 ;;
5466 esac
5467 fi
5468
5469 file_magic_cmd=$lt_cv_file_magic_cmd
5470 deplibs_check_method=$lt_cv_deplibs_check_method
5471 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494 if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5496 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_DLLTOOL+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$DLLTOOL"; then
5503 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5512 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 DLLTOOL=$ac_cv_prog_DLLTOOL
5523 if test -n "$DLLTOOL"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5525 $as_echo "$DLLTOOL" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 fi
5533 if test -z "$ac_cv_prog_DLLTOOL"; then
5534 ac_ct_DLLTOOL=$DLLTOOL
5535 # Extract the first word of "dlltool", so it can be a program name with args.
5536 set dummy dlltool; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$ac_ct_DLLTOOL"; then
5543 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556 done
5557 done
5558 IFS=$as_save_IFS
5559
5560 fi
5561 fi
5562 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5563 if test -n "$ac_ct_DLLTOOL"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5565 $as_echo "$ac_ct_DLLTOOL" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5569 fi
5570
5571 if test "x$ac_ct_DLLTOOL" = x; then
5572 DLLTOOL="false"
5573 else
5574 case $cross_compiling:$ac_tool_warned in
5575 yes:)
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5578 ac_tool_warned=yes ;;
5579 esac
5580 DLLTOOL=$ac_ct_DLLTOOL
5581 fi
5582 else
5583 DLLTOOL="$ac_cv_prog_DLLTOOL"
5584 fi
5585
5586 test -z "$DLLTOOL" && DLLTOOL=dlltool
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5598 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5599 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 lt_cv_sharedlib_from_linklib_cmd='unknown'
5603
5604 case $host_os in
5605 cygwin* | mingw* | pw32* | cegcc*)
5606 # two different shell functions defined in ltmain.sh;
5607 # decide which one to use based on capabilities of $DLLTOOL
5608 case `$DLLTOOL --help 2>&1` in
5609 *--identify-strict*)
5610 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5611 ;;
5612 *)
5613 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5614 ;;
5615 esac
5616 ;;
5617 *)
5618 # fallback: assume linklib IS sharedlib
5619 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5620 ;;
5621 esac
5622
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5625 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5626 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5627 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5628
5629
5630
5631
5632
5633
5634
5635
5636 if test -n "$ac_tool_prefix"; then
5637 for ac_prog in ar
5638 do
5639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_AR+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test -n "$AR"; then
5647 ac_cv_prog_AR="$AR" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660 done
5661 done
5662 IFS=$as_save_IFS
5663
5664 fi
5665 fi
5666 AR=$ac_cv_prog_AR
5667 if test -n "$AR"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5669 $as_echo "$AR" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674
5675
5676 test -n "$AR" && break
5677 done
5678 fi
5679 if test -z "$AR"; then
5680 ac_ct_AR=$AR
5681 for ac_prog in ar
5682 do
5683 # Extract the first word of "$ac_prog", so it can be a program name with args.
5684 set dummy $ac_prog; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 if test -n "$ac_ct_AR"; then
5691 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_ac_ct_AR="$ac_prog"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5711 if test -n "$ac_ct_AR"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5713 $as_echo "$ac_ct_AR" >&6; }
5714 else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 fi
5718
5719
5720 test -n "$ac_ct_AR" && break
5721 done
5722
5723 if test "x$ac_ct_AR" = x; then
5724 AR="false"
5725 else
5726 case $cross_compiling:$ac_tool_warned in
5727 yes:)
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5730 ac_tool_warned=yes ;;
5731 esac
5732 AR=$ac_ct_AR
5733 fi
5734 fi
5735
5736 : ${AR=ar}
5737 : ${AR_FLAGS=cru}
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5750 $as_echo_n "checking for archiver @FILE support... " >&6; }
5751 if ${lt_cv_ar_at_file+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 lt_cv_ar_at_file=no
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757
5758 int
5759 main ()
5760 {
5761
5762 ;
5763 return 0;
5764 }
5765 _ACEOF
5766 if ac_fn_c_try_compile "$LINENO"; then :
5767 echo conftest.$ac_objext > conftest.lst
5768 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5770 (eval $lt_ar_try) 2>&5
5771 ac_status=$?
5772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5773 test $ac_status = 0; }
5774 if test 0 -eq "$ac_status"; then
5775 # Ensure the archiver fails upon bogus file names.
5776 rm -f conftest.$ac_objext libconftest.a
5777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5778 (eval $lt_ar_try) 2>&5
5779 ac_status=$?
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }
5782 if test 0 -ne "$ac_status"; then
5783 lt_cv_ar_at_file=@
5784 fi
5785 fi
5786 rm -f conftest.* libconftest.a
5787
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5793 $as_echo "$lt_cv_ar_at_file" >&6; }
5794
5795 if test no = "$lt_cv_ar_at_file"; then
5796 archiver_list_spec=
5797 else
5798 archiver_list_spec=$lt_cv_ar_at_file
5799 fi
5800
5801
5802
5803
5804
5805
5806
5807 if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}strip; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if ${ac_cv_prog_STRIP+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 if test -n "$STRIP"; then
5816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829 done
5830 done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
5835 STRIP=$ac_cv_prog_STRIP
5836 if test -n "$STRIP"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5838 $as_echo "$STRIP" >&6; }
5839 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843
5844
5845 fi
5846 if test -z "$ac_cv_prog_STRIP"; then
5847 ac_ct_STRIP=$STRIP
5848 # Extract the first word of "strip", so it can be a program name with args.
5849 set dummy strip; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if test -n "$ac_ct_STRIP"; then
5856 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_ac_ct_STRIP="strip"
5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5868 fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5876 if test -n "$ac_ct_STRIP"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5878 $as_echo "$ac_ct_STRIP" >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5882 fi
5883
5884 if test "x$ac_ct_STRIP" = x; then
5885 STRIP=":"
5886 else
5887 case $cross_compiling:$ac_tool_warned in
5888 yes:)
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891 ac_tool_warned=yes ;;
5892 esac
5893 STRIP=$ac_ct_STRIP
5894 fi
5895 else
5896 STRIP="$ac_cv_prog_STRIP"
5897 fi
5898
5899 test -z "$STRIP" && STRIP=:
5900
5901
5902
5903
5904
5905
5906 if test -n "$ac_tool_prefix"; then
5907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5908 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if ${ac_cv_prog_RANLIB+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if test -n "$RANLIB"; then
5915 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 RANLIB=$ac_cv_prog_RANLIB
5935 if test -n "$RANLIB"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5937 $as_echo "$RANLIB" >&6; }
5938 else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5941 fi
5942
5943
5944 fi
5945 if test -z "$ac_cv_prog_RANLIB"; then
5946 ac_ct_RANLIB=$RANLIB
5947 # Extract the first word of "ranlib", so it can be a program name with args.
5948 set dummy ranlib; ac_word=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 if test -n "$ac_ct_RANLIB"; then
5955 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964 ac_cv_prog_ac_ct_RANLIB="ranlib"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968 done
5969 done
5970 IFS=$as_save_IFS
5971
5972 fi
5973 fi
5974 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5975 if test -n "$ac_ct_RANLIB"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5977 $as_echo "$ac_ct_RANLIB" >&6; }
5978 else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982
5983 if test "x$ac_ct_RANLIB" = x; then
5984 RANLIB=":"
5985 else
5986 case $cross_compiling:$ac_tool_warned in
5987 yes:)
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992 RANLIB=$ac_ct_RANLIB
5993 fi
5994 else
5995 RANLIB="$ac_cv_prog_RANLIB"
5996 fi
5997
5998 test -z "$RANLIB" && RANLIB=:
5999
6000
6001
6002
6003
6004
6005 # Determine commands to create old-style static archives.
6006 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6007 old_postinstall_cmds='chmod 644 $oldlib'
6008 old_postuninstall_cmds=
6009
6010 if test -n "$RANLIB"; then
6011 case $host_os in
6012 bitrig* | openbsd*)
6013 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6014 ;;
6015 *)
6016 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6017 ;;
6018 esac
6019 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6020 fi
6021
6022 case $host_os in
6023 darwin*)
6024 lock_old_archive_extraction=yes ;;
6025 *)
6026 lock_old_archive_extraction=no ;;
6027 esac
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067 # If no C compiler was specified, use CC.
6068 LTCC=${LTCC-"$CC"}
6069
6070 # If no C compiler flags were specified, use CFLAGS.
6071 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6072
6073 # Allow CC to be a program name with arguments.
6074 compiler=$CC
6075
6076
6077 # Check for command to grab the raw symbol name followed by C symbol from nm.
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6079 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6080 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083
6084 # These are sane defaults that work on at least a few old systems.
6085 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6086
6087 # Character class describing NM global symbol codes.
6088 symcode='[BCDEGRST]'
6089
6090 # Regexp to match symbols that can be accessed directly from C.
6091 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6092
6093 # Define system-specific variables.
6094 case $host_os in
6095 aix*)
6096 symcode='[BCDT]'
6097 ;;
6098 cygwin* | mingw* | pw32* | cegcc*)
6099 symcode='[ABCDGISTW]'
6100 ;;
6101 hpux*)
6102 if test ia64 = "$host_cpu"; then
6103 symcode='[ABCDEGRST]'
6104 fi
6105 ;;
6106 irix* | nonstopux*)
6107 symcode='[BCDEGRST]'
6108 ;;
6109 osf*)
6110 symcode='[BCDEGQRST]'
6111 ;;
6112 solaris*)
6113 symcode='[BDRT]'
6114 ;;
6115 sco3.2v5*)
6116 symcode='[DT]'
6117 ;;
6118 sysv4.2uw2*)
6119 symcode='[DT]'
6120 ;;
6121 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6122 symcode='[ABDT]'
6123 ;;
6124 sysv4)
6125 symcode='[DFNSTU]'
6126 ;;
6127 esac
6128
6129 # If we're using GNU nm, then use its standard symbol codes.
6130 case `$NM -V 2>&1` in
6131 *GNU* | *'with BFD'*)
6132 symcode='[ABCDGIRSTW]' ;;
6133 esac
6134
6135 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6136 # Gets list of data symbols to import.
6137 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6138 # Adjust the below global symbol transforms to fixup imported variables.
6139 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6140 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6141 lt_c_name_lib_hook="\
6142 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6143 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6144 else
6145 # Disable hooks by default.
6146 lt_cv_sys_global_symbol_to_import=
6147 lt_cdecl_hook=
6148 lt_c_name_hook=
6149 lt_c_name_lib_hook=
6150 fi
6151
6152 # Transform an extracted symbol line into a proper C declaration.
6153 # Some systems (esp. on ia64) link data and code symbols differently,
6154 # so use this general approach.
6155 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6156 $lt_cdecl_hook\
6157 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6158 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6159
6160 # Transform an extracted symbol line into symbol name and symbol address
6161 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6162 $lt_c_name_hook\
6163 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6164 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6165
6166 # Transform an extracted symbol line into symbol name with lib prefix and
6167 # symbol address.
6168 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6169 $lt_c_name_lib_hook\
6170 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6171 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6172 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6173
6174 # Handle CRLF in mingw tool chain
6175 opt_cr=
6176 case $build_os in
6177 mingw*)
6178 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6179 ;;
6180 esac
6181
6182 # Try without a prefix underscore, then with it.
6183 for ac_symprfx in "" "_"; do
6184
6185 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6186 symxfrm="\\1 $ac_symprfx\\2 \\2"
6187
6188 # Write the raw and C identifiers.
6189 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6190 # Fake it for dumpbin and say T for any non-static function,
6191 # D for any global variable and I for any imported variable.
6192 # Also find C++ and __fastcall symbols from MSVC++,
6193 # which start with @ or ?.
6194 lt_cv_sys_global_symbol_pipe="$AWK '"\
6195 " {last_section=section; section=\$ 3};"\
6196 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6197 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6198 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6199 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6200 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6201 " \$ 0!~/External *\|/{next};"\
6202 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6203 " {if(hide[section]) next};"\
6204 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6205 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6206 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6207 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6208 " ' prfx=^$ac_symprfx"
6209 else
6210 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6211 fi
6212 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6213
6214 # Check to see that the pipe works correctly.
6215 pipe_works=no
6216
6217 rm -f conftest*
6218 cat > conftest.$ac_ext <<_LT_EOF
6219 #ifdef __cplusplus
6220 extern "C" {
6221 #endif
6222 char nm_test_var;
6223 void nm_test_func(void);
6224 void nm_test_func(void){}
6225 #ifdef __cplusplus
6226 }
6227 #endif
6228 int main(){nm_test_var='a';nm_test_func();return(0);}
6229 _LT_EOF
6230
6231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6232 (eval $ac_compile) 2>&5
6233 ac_status=$?
6234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6235 test $ac_status = 0; }; then
6236 # Now try to grab the symbols.
6237 nlist=conftest.nm
6238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6239 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6240 ac_status=$?
6241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242 test $ac_status = 0; } && test -s "$nlist"; then
6243 # Try sorting and uniquifying the output.
6244 if sort "$nlist" | uniq > "$nlist"T; then
6245 mv -f "$nlist"T "$nlist"
6246 else
6247 rm -f "$nlist"T
6248 fi
6249
6250 # Make sure that we snagged all the symbols we need.
6251 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6252 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6253 cat <<_LT_EOF > conftest.$ac_ext
6254 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6255 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6256 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6257 relocations are performed -- see ld's documentation on pseudo-relocs. */
6258 # define LT_DLSYM_CONST
6259 #elif defined __osf__
6260 /* This system does not cope well with relocations in const data. */
6261 # define LT_DLSYM_CONST
6262 #else
6263 # define LT_DLSYM_CONST const
6264 #endif
6265
6266 #ifdef __cplusplus
6267 extern "C" {
6268 #endif
6269
6270 _LT_EOF
6271 # Now generate the symbol file.
6272 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6273
6274 cat <<_LT_EOF >> conftest.$ac_ext
6275
6276 /* The mapping between symbol names and symbols. */
6277 LT_DLSYM_CONST struct {
6278 const char *name;
6279 void *address;
6280 }
6281 lt__PROGRAM__LTX_preloaded_symbols[] =
6282 {
6283 { "@PROGRAM@", (void *) 0 },
6284 _LT_EOF
6285 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6286 cat <<\_LT_EOF >> conftest.$ac_ext
6287 {0, (void *) 0}
6288 };
6289
6290 /* This works around a problem in FreeBSD linker */
6291 #ifdef FREEBSD_WORKAROUND
6292 static const void *lt_preloaded_setup() {
6293 return lt__PROGRAM__LTX_preloaded_symbols;
6294 }
6295 #endif
6296
6297 #ifdef __cplusplus
6298 }
6299 #endif
6300 _LT_EOF
6301 # Now try linking the two files.
6302 mv conftest.$ac_objext conftstm.$ac_objext
6303 lt_globsym_save_LIBS=$LIBS
6304 lt_globsym_save_CFLAGS=$CFLAGS
6305 LIBS=conftstm.$ac_objext
6306 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6308 (eval $ac_link) 2>&5
6309 ac_status=$?
6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6312 pipe_works=yes
6313 fi
6314 LIBS=$lt_globsym_save_LIBS
6315 CFLAGS=$lt_globsym_save_CFLAGS
6316 else
6317 echo "cannot find nm_test_func in $nlist" >&5
6318 fi
6319 else
6320 echo "cannot find nm_test_var in $nlist" >&5
6321 fi
6322 else
6323 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6324 fi
6325 else
6326 echo "$progname: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6328 fi
6329 rm -rf conftest* conftst*
6330
6331 # Do not use the global_symbol_pipe unless it works.
6332 if test yes = "$pipe_works"; then
6333 break
6334 else
6335 lt_cv_sys_global_symbol_pipe=
6336 fi
6337 done
6338
6339 fi
6340
6341 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6342 lt_cv_sys_global_symbol_to_cdecl=
6343 fi
6344 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6346 $as_echo "failed" >&6; }
6347 else
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6349 $as_echo "ok" >&6; }
6350 fi
6351
6352 # Response file support.
6353 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6354 nm_file_list_spec='@'
6355 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6356 nm_file_list_spec='@'
6357 fi
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6396 $as_echo_n "checking for sysroot... " >&6; }
6397
6398 # Check whether --with-sysroot was given.
6399 if test "${with_sysroot+set}" = set; then :
6400 withval=$with_sysroot;
6401 else
6402 with_sysroot=no
6403 fi
6404
6405
6406 lt_sysroot=
6407 case $with_sysroot in #(
6408 yes)
6409 if test yes = "$GCC"; then
6410 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6411 fi
6412 ;; #(
6413 /*)
6414 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6415 ;; #(
6416 no|'')
6417 ;; #(
6418 *)
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6420 $as_echo "$with_sysroot" >&6; }
6421 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6422 ;;
6423 esac
6424
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6426 $as_echo "${lt_sysroot:-no}" >&6; }
6427
6428
6429
6430
6431
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6433 $as_echo_n "checking for a working dd... " >&6; }
6434 if ${ac_cv_path_lt_DD+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 printf 0123456789abcdef0123456789abcdef >conftest.i
6438 cat conftest.i conftest.i >conftest2.i
6439 : ${lt_DD:=$DD}
6440 if test -z "$lt_DD"; then
6441 ac_path_lt_DD_found=false
6442 # Loop through the user's path and test for each of PROGNAME-LIST
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_prog in dd; do
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6451 as_fn_executable_p "$ac_path_lt_DD" || continue
6452 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6453 cmp -s conftest.i conftest.out \
6454 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6455 fi
6456 $ac_path_lt_DD_found && break 3
6457 done
6458 done
6459 done
6460 IFS=$as_save_IFS
6461 if test -z "$ac_cv_path_lt_DD"; then
6462 :
6463 fi
6464 else
6465 ac_cv_path_lt_DD=$lt_DD
6466 fi
6467
6468 rm -f conftest.i conftest2.i conftest.out
6469 fi
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6471 $as_echo "$ac_cv_path_lt_DD" >&6; }
6472
6473
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6475 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6476 if ${lt_cv_truncate_bin+:} false; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 printf 0123456789abcdef0123456789abcdef >conftest.i
6480 cat conftest.i conftest.i >conftest2.i
6481 lt_cv_truncate_bin=
6482 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6483 cmp -s conftest.i conftest.out \
6484 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6485 fi
6486 rm -f conftest.i conftest2.i conftest.out
6487 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6488 fi
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6490 $as_echo "$lt_cv_truncate_bin" >&6; }
6491
6492
6493
6494
6495
6496
6497
6498 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6499 func_cc_basename ()
6500 {
6501 for cc_temp in $*""; do
6502 case $cc_temp in
6503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6505 \-*) ;;
6506 *) break;;
6507 esac
6508 done
6509 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6510 }
6511
6512 # Check whether --enable-libtool-lock was given.
6513 if test "${enable_libtool_lock+set}" = set; then :
6514 enableval=$enable_libtool_lock;
6515 fi
6516
6517 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6518
6519 # Some flags need to be propagated to the compiler or linker for good
6520 # libtool support.
6521 case $host in
6522 ia64-*-hpux*)
6523 # Find out what ABI is being produced by ac_compile, and set mode
6524 # options accordingly.
6525 echo 'int i;' > conftest.$ac_ext
6526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6527 (eval $ac_compile) 2>&5
6528 ac_status=$?
6529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6530 test $ac_status = 0; }; then
6531 case `/usr/bin/file conftest.$ac_objext` in
6532 *ELF-32*)
6533 HPUX_IA64_MODE=32
6534 ;;
6535 *ELF-64*)
6536 HPUX_IA64_MODE=64
6537 ;;
6538 esac
6539 fi
6540 rm -rf conftest*
6541 ;;
6542 *-*-irix6*)
6543 # Find out what ABI is being produced by ac_compile, and set linker
6544 # options accordingly.
6545 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6547 (eval $ac_compile) 2>&5
6548 ac_status=$?
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550 test $ac_status = 0; }; then
6551 if test yes = "$lt_cv_prog_gnu_ld"; then
6552 case `/usr/bin/file conftest.$ac_objext` in
6553 *32-bit*)
6554 LD="${LD-ld} -melf32bsmip"
6555 ;;
6556 *N32*)
6557 LD="${LD-ld} -melf32bmipn32"
6558 ;;
6559 *64-bit*)
6560 LD="${LD-ld} -melf64bmip"
6561 ;;
6562 esac
6563 else
6564 case `/usr/bin/file conftest.$ac_objext` in
6565 *32-bit*)
6566 LD="${LD-ld} -32"
6567 ;;
6568 *N32*)
6569 LD="${LD-ld} -n32"
6570 ;;
6571 *64-bit*)
6572 LD="${LD-ld} -64"
6573 ;;
6574 esac
6575 fi
6576 fi
6577 rm -rf conftest*
6578 ;;
6579
6580 mips64*-*linux*)
6581 # Find out what ABI is being produced by ac_compile, and set linker
6582 # options accordingly.
6583 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6585 (eval $ac_compile) 2>&5
6586 ac_status=$?
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588 test $ac_status = 0; }; then
6589 emul=elf
6590 case `/usr/bin/file conftest.$ac_objext` in
6591 *32-bit*)
6592 emul="${emul}32"
6593 ;;
6594 *64-bit*)
6595 emul="${emul}64"
6596 ;;
6597 esac
6598 case `/usr/bin/file conftest.$ac_objext` in
6599 *MSB*)
6600 emul="${emul}btsmip"
6601 ;;
6602 *LSB*)
6603 emul="${emul}ltsmip"
6604 ;;
6605 esac
6606 case `/usr/bin/file conftest.$ac_objext` in
6607 *N32*)
6608 emul="${emul}n32"
6609 ;;
6610 esac
6611 LD="${LD-ld} -m $emul"
6612 fi
6613 rm -rf conftest*
6614 ;;
6615
6616 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6617 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6618 # Find out what ABI is being produced by ac_compile, and set linker
6619 # options accordingly. Note that the listed cases only cover the
6620 # situations where additional linker options are needed (such as when
6621 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6622 # vice versa); the common cases where no linker options are needed do
6623 # not appear in the list.
6624 echo 'int i;' > conftest.$ac_ext
6625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6626 (eval $ac_compile) 2>&5
6627 ac_status=$?
6628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629 test $ac_status = 0; }; then
6630 case `/usr/bin/file conftest.o` in
6631 *32-bit*)
6632 case $host in
6633 x86_64-*kfreebsd*-gnu)
6634 LD="${LD-ld} -m elf_i386_fbsd"
6635 ;;
6636 x86_64-*linux*)
6637 case `/usr/bin/file conftest.o` in
6638 *x86-64*)
6639 LD="${LD-ld} -m elf32_x86_64"
6640 ;;
6641 *)
6642 LD="${LD-ld} -m elf_i386"
6643 ;;
6644 esac
6645 ;;
6646 powerpc64le-*linux*)
6647 LD="${LD-ld} -m elf32lppclinux"
6648 ;;
6649 powerpc64-*linux*)
6650 LD="${LD-ld} -m elf32ppclinux"
6651 ;;
6652 s390x-*linux*)
6653 LD="${LD-ld} -m elf_s390"
6654 ;;
6655 sparc64-*linux*)
6656 LD="${LD-ld} -m elf32_sparc"
6657 ;;
6658 esac
6659 ;;
6660 *64-bit*)
6661 case $host in
6662 x86_64-*kfreebsd*-gnu)
6663 LD="${LD-ld} -m elf_x86_64_fbsd"
6664 ;;
6665 x86_64-*linux*)
6666 LD="${LD-ld} -m elf_x86_64"
6667 ;;
6668 powerpcle-*linux*)
6669 LD="${LD-ld} -m elf64lppc"
6670 ;;
6671 powerpc-*linux*)
6672 LD="${LD-ld} -m elf64ppc"
6673 ;;
6674 s390*-*linux*|s390*-*tpf*)
6675 LD="${LD-ld} -m elf64_s390"
6676 ;;
6677 sparc*-*linux*)
6678 LD="${LD-ld} -m elf64_sparc"
6679 ;;
6680 esac
6681 ;;
6682 esac
6683 fi
6684 rm -rf conftest*
6685 ;;
6686
6687 *-*-sco3.2v5*)
6688 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6689 SAVE_CFLAGS=$CFLAGS
6690 CFLAGS="$CFLAGS -belf"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6692 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6693 if ${lt_cv_cc_needs_belf+:} false; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 ac_ext=c
6697 ac_cpp='$CPP $CPPFLAGS'
6698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704
6705 int
6706 main ()
6707 {
6708
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 if ac_fn_c_try_link "$LINENO"; then :
6714 lt_cv_cc_needs_belf=yes
6715 else
6716 lt_cv_cc_needs_belf=no
6717 fi
6718 rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6720 ac_ext=c
6721 ac_cpp='$CPP $CPPFLAGS'
6722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6725
6726 fi
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6728 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6729 if test yes != "$lt_cv_cc_needs_belf"; then
6730 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6731 CFLAGS=$SAVE_CFLAGS
6732 fi
6733 ;;
6734 *-*solaris*)
6735 # Find out what ABI is being produced by ac_compile, and set linker
6736 # options accordingly.
6737 echo 'int i;' > conftest.$ac_ext
6738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6739 (eval $ac_compile) 2>&5
6740 ac_status=$?
6741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6742 test $ac_status = 0; }; then
6743 case `/usr/bin/file conftest.o` in
6744 *64-bit*)
6745 case $lt_cv_prog_gnu_ld in
6746 yes*)
6747 case $host in
6748 i?86-*-solaris*|x86_64-*-solaris*)
6749 LD="${LD-ld} -m elf_x86_64"
6750 ;;
6751 sparc*-*-solaris*)
6752 LD="${LD-ld} -m elf64_sparc"
6753 ;;
6754 esac
6755 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6756 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6757 LD=${LD-ld}_sol2
6758 fi
6759 ;;
6760 *)
6761 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6762 LD="${LD-ld} -64"
6763 fi
6764 ;;
6765 esac
6766 ;;
6767 esac
6768 fi
6769 rm -rf conftest*
6770 ;;
6771 esac
6772
6773 need_locks=$enable_libtool_lock
6774
6775 if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}mt; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 if test -n "$MANIFEST_TOOL"; then
6784 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6793 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801 fi
6802 fi
6803 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6804 if test -n "$MANIFEST_TOOL"; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6806 $as_echo "$MANIFEST_TOOL" >&6; }
6807 else
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809 $as_echo "no" >&6; }
6810 fi
6811
6812
6813 fi
6814 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6815 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6816 # Extract the first word of "mt", so it can be a program name with args.
6817 set dummy mt; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$ac_ct_MANIFEST_TOOL"; then
6824 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6844 if test -n "$ac_ct_MANIFEST_TOOL"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6846 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851
6852 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6853 MANIFEST_TOOL=":"
6854 else
6855 case $cross_compiling:$ac_tool_warned in
6856 yes:)
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6859 ac_tool_warned=yes ;;
6860 esac
6861 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6862 fi
6863 else
6864 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6865 fi
6866
6867 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6869 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6870 if ${lt_cv_path_mainfest_tool+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 lt_cv_path_mainfest_tool=no
6874 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6875 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6876 cat conftest.err >&5
6877 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6878 lt_cv_path_mainfest_tool=yes
6879 fi
6880 rm -f conftest*
6881 fi
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6883 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6884 if test yes != "$lt_cv_path_mainfest_tool"; then
6885 MANIFEST_TOOL=:
6886 fi
6887
6888
6889
6890
6891
6892
6893 case $host_os in
6894 rhapsody* | darwin*)
6895 if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 if test -n "$DSYMUTIL"; then
6904 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6916 fi
6917 done
6918 done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6924 if test -n "$DSYMUTIL"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6926 $as_echo "$DSYMUTIL" >&6; }
6927 else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932
6933 fi
6934 if test -z "$ac_cv_prog_DSYMUTIL"; then
6935 ac_ct_DSYMUTIL=$DSYMUTIL
6936 # Extract the first word of "dsymutil", so it can be a program name with args.
6937 set dummy dsymutil; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$ac_ct_DSYMUTIL"; then
6944 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6964 if test -n "$ac_ct_DSYMUTIL"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6966 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972 if test "x$ac_ct_DSYMUTIL" = x; then
6973 DSYMUTIL=":"
6974 else
6975 case $cross_compiling:$ac_tool_warned in
6976 yes:)
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979 ac_tool_warned=yes ;;
6980 esac
6981 DSYMUTIL=$ac_ct_DSYMUTIL
6982 fi
6983 else
6984 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6985 fi
6986
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if ${ac_cv_prog_NMEDIT+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 if test -n "$NMEDIT"; then
6996 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 NMEDIT=$ac_cv_prog_NMEDIT
7016 if test -n "$NMEDIT"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7018 $as_echo "$NMEDIT" >&6; }
7019 else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7022 fi
7023
7024
7025 fi
7026 if test -z "$ac_cv_prog_NMEDIT"; then
7027 ac_ct_NMEDIT=$NMEDIT
7028 # Extract the first word of "nmedit", so it can be a program name with args.
7029 set dummy nmedit; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$ac_ct_NMEDIT"; then
7036 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7056 if test -n "$ac_ct_NMEDIT"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7058 $as_echo "$ac_ct_NMEDIT" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064 if test "x$ac_ct_NMEDIT" = x; then
7065 NMEDIT=":"
7066 else
7067 case $cross_compiling:$ac_tool_warned in
7068 yes:)
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071 ac_tool_warned=yes ;;
7072 esac
7073 NMEDIT=$ac_ct_NMEDIT
7074 fi
7075 else
7076 NMEDIT="$ac_cv_prog_NMEDIT"
7077 fi
7078
7079 if test -n "$ac_tool_prefix"; then
7080 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7081 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_prog_LIPO+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 if test -n "$LIPO"; then
7088 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101 done
7102 done
7103 IFS=$as_save_IFS
7104
7105 fi
7106 fi
7107 LIPO=$ac_cv_prog_LIPO
7108 if test -n "$LIPO"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7110 $as_echo "$LIPO" >&6; }
7111 else
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7114 fi
7115
7116
7117 fi
7118 if test -z "$ac_cv_prog_LIPO"; then
7119 ac_ct_LIPO=$LIPO
7120 # Extract the first word of "lipo", so it can be a program name with args.
7121 set dummy lipo; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 if test -n "$ac_ct_LIPO"; then
7128 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_ac_ct_LIPO="lipo"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7148 if test -n "$ac_ct_LIPO"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7150 $as_echo "$ac_ct_LIPO" >&6; }
7151 else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156 if test "x$ac_ct_LIPO" = x; then
7157 LIPO=":"
7158 else
7159 case $cross_compiling:$ac_tool_warned in
7160 yes:)
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163 ac_tool_warned=yes ;;
7164 esac
7165 LIPO=$ac_ct_LIPO
7166 fi
7167 else
7168 LIPO="$ac_cv_prog_LIPO"
7169 fi
7170
7171 if test -n "$ac_tool_prefix"; then
7172 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7173 set dummy ${ac_tool_prefix}otool; ac_word=$2
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175 $as_echo_n "checking for $ac_word... " >&6; }
7176 if ${ac_cv_prog_OTOOL+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 if test -n "$OTOOL"; then
7180 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193 done
7194 done
7195 IFS=$as_save_IFS
7196
7197 fi
7198 fi
7199 OTOOL=$ac_cv_prog_OTOOL
7200 if test -n "$OTOOL"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7202 $as_echo "$OTOOL" >&6; }
7203 else
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 $as_echo "no" >&6; }
7206 fi
7207
7208
7209 fi
7210 if test -z "$ac_cv_prog_OTOOL"; then
7211 ac_ct_OTOOL=$OTOOL
7212 # Extract the first word of "otool", so it can be a program name with args.
7213 set dummy otool; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 if test -n "$ac_ct_OTOOL"; then
7220 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7221 else
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7224 do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_ac_ct_OTOOL="otool"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233 done
7234 done
7235 IFS=$as_save_IFS
7236
7237 fi
7238 fi
7239 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7240 if test -n "$ac_ct_OTOOL"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7242 $as_echo "$ac_ct_OTOOL" >&6; }
7243 else
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7246 fi
7247
7248 if test "x$ac_ct_OTOOL" = x; then
7249 OTOOL=":"
7250 else
7251 case $cross_compiling:$ac_tool_warned in
7252 yes:)
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7255 ac_tool_warned=yes ;;
7256 esac
7257 OTOOL=$ac_ct_OTOOL
7258 fi
7259 else
7260 OTOOL="$ac_cv_prog_OTOOL"
7261 fi
7262
7263 if test -n "$ac_tool_prefix"; then
7264 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7265 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_prog_OTOOL64+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 if test -n "$OTOOL64"; then
7272 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7273 else
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285 done
7286 done
7287 IFS=$as_save_IFS
7288
7289 fi
7290 fi
7291 OTOOL64=$ac_cv_prog_OTOOL64
7292 if test -n "$OTOOL64"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7294 $as_echo "$OTOOL64" >&6; }
7295 else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7298 fi
7299
7300
7301 fi
7302 if test -z "$ac_cv_prog_OTOOL64"; then
7303 ac_ct_OTOOL64=$OTOOL64
7304 # Extract the first word of "otool64", so it can be a program name with args.
7305 set dummy otool64; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test -n "$ac_ct_OTOOL64"; then
7312 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_ac_ct_OTOOL64="otool64"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7324 fi
7325 done
7326 done
7327 IFS=$as_save_IFS
7328
7329 fi
7330 fi
7331 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7332 if test -n "$ac_ct_OTOOL64"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7334 $as_echo "$ac_ct_OTOOL64" >&6; }
7335 else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339
7340 if test "x$ac_ct_OTOOL64" = x; then
7341 OTOOL64=":"
7342 else
7343 case $cross_compiling:$ac_tool_warned in
7344 yes:)
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7347 ac_tool_warned=yes ;;
7348 esac
7349 OTOOL64=$ac_ct_OTOOL64
7350 fi
7351 else
7352 OTOOL64="$ac_cv_prog_OTOOL64"
7353 fi
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7382 $as_echo_n "checking for -single_module linker flag... " >&6; }
7383 if ${lt_cv_apple_cc_single_mod+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 lt_cv_apple_cc_single_mod=no
7387 if test -z "$LT_MULTI_MODULE"; then
7388 # By default we will add the -single_module flag. You can override
7389 # by either setting the environment variable LT_MULTI_MODULE
7390 # non-empty at configure time, or by adding -multi_module to the
7391 # link flags.
7392 rm -rf libconftest.dylib*
7393 echo "int foo(void){return 1;}" > conftest.c
7394 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7395 -dynamiclib -Wl,-single_module conftest.c" >&5
7396 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7397 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7398 _lt_result=$?
7399 # If there is a non-empty error log, and "single_module"
7400 # appears in it, assume the flag caused a linker warning
7401 if test -s conftest.err && $GREP single_module conftest.err; then
7402 cat conftest.err >&5
7403 # Otherwise, if the output was created with a 0 exit code from
7404 # the compiler, it worked.
7405 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7406 lt_cv_apple_cc_single_mod=yes
7407 else
7408 cat conftest.err >&5
7409 fi
7410 rm -rf libconftest.dylib*
7411 rm -f conftest.*
7412 fi
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7415 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7418 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7419 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 lt_cv_ld_exported_symbols_list=no
7423 save_LDFLAGS=$LDFLAGS
7424 echo "_main" > conftest.sym
7425 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428
7429 int
7430 main ()
7431 {
7432
7433 ;
7434 return 0;
7435 }
7436 _ACEOF
7437 if ac_fn_c_try_link "$LINENO"; then :
7438 lt_cv_ld_exported_symbols_list=yes
7439 else
7440 lt_cv_ld_exported_symbols_list=no
7441 fi
7442 rm -f core conftest.err conftest.$ac_objext \
7443 conftest$ac_exeext conftest.$ac_ext
7444 LDFLAGS=$save_LDFLAGS
7445
7446 fi
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7448 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7449
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7451 $as_echo_n "checking for -force_load linker flag... " >&6; }
7452 if ${lt_cv_ld_force_load+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 lt_cv_ld_force_load=no
7456 cat > conftest.c << _LT_EOF
7457 int forced_loaded() { return 2;}
7458 _LT_EOF
7459 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7460 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7461 echo "$AR cru libconftest.a conftest.o" >&5
7462 $AR cru libconftest.a conftest.o 2>&5
7463 echo "$RANLIB libconftest.a" >&5
7464 $RANLIB libconftest.a 2>&5
7465 cat > conftest.c << _LT_EOF
7466 int main() { return 0;}
7467 _LT_EOF
7468 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7469 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7470 _lt_result=$?
7471 if test -s conftest.err && $GREP force_load conftest.err; then
7472 cat conftest.err >&5
7473 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7474 lt_cv_ld_force_load=yes
7475 else
7476 cat conftest.err >&5
7477 fi
7478 rm -f conftest.err libconftest.a conftest conftest.c
7479 rm -rf conftest.dSYM
7480
7481 fi
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7483 $as_echo "$lt_cv_ld_force_load" >&6; }
7484 case $host_os in
7485 rhapsody* | darwin1.[012])
7486 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7487 darwin1.*)
7488 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7489 darwin*) # darwin 5.x on
7490 # if running on 10.5 or later, the deployment target defaults
7491 # to the OS version, if on x86, and 10.4, the deployment
7492 # target defaults to 10.4. Don't you love it?
7493 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7494 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7495 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7496 10.[012][,.]*)
7497 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7498 10.*)
7499 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7500 esac
7501 ;;
7502 esac
7503 if test yes = "$lt_cv_apple_cc_single_mod"; then
7504 _lt_dar_single_mod='$single_module'
7505 fi
7506 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7507 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7508 else
7509 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7510 fi
7511 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7512 _lt_dsymutil='~$DSYMUTIL $lib || :'
7513 else
7514 _lt_dsymutil=
7515 fi
7516 ;;
7517 esac
7518
7519 # func_munge_path_list VARIABLE PATH
7520 # -----------------------------------
7521 # VARIABLE is name of variable containing _space_ separated list of
7522 # directories to be munged by the contents of PATH, which is string
7523 # having a format:
7524 # "DIR[:DIR]:"
7525 # string "DIR[ DIR]" will be prepended to VARIABLE
7526 # ":DIR[:DIR]"
7527 # string "DIR[ DIR]" will be appended to VARIABLE
7528 # "DIRP[:DIRP]::[DIRA:]DIRA"
7529 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7530 # "DIRA[ DIRA]" will be appended to VARIABLE
7531 # "DIR[:DIR]"
7532 # VARIABLE will be replaced by "DIR[ DIR]"
7533 func_munge_path_list ()
7534 {
7535 case x$2 in
7536 x)
7537 ;;
7538 *:)
7539 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7540 ;;
7541 x:*)
7542 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7543 ;;
7544 *::*)
7545 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7546 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7547 ;;
7548 *)
7549 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7550 ;;
7551 esac
7552 }
7553
7554 ac_ext=c
7555 ac_cpp='$CPP $CPPFLAGS'
7556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7560 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7561 # On Suns, sometimes $CPP names a directory.
7562 if test -n "$CPP" && test -d "$CPP"; then
7563 CPP=
7564 fi
7565 if test -z "$CPP"; then
7566 if ${ac_cv_prog_CPP+:} false; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 # Double quotes because CPP needs to be expanded
7570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7571 do
7572 ac_preproc_ok=false
7573 for ac_c_preproc_warn_flag in '' yes
7574 do
7575 # Use a header file that comes with gcc, so configuring glibc
7576 # with a fresh cross-compiler works.
7577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7578 # <limits.h> exists even on freestanding compilers.
7579 # On the NeXT, cc -E runs the code through the compiler's parser,
7580 # not just through cpp. "Syntax error" is here to catch this case.
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 #ifdef __STDC__
7584 # include <limits.h>
7585 #else
7586 # include <assert.h>
7587 #endif
7588 Syntax error
7589 _ACEOF
7590 if ac_fn_c_try_cpp "$LINENO"; then :
7591
7592 else
7593 # Broken: fails on valid input.
7594 continue
7595 fi
7596 rm -f conftest.err conftest.i conftest.$ac_ext
7597
7598 # OK, works on sane cases. Now check whether nonexistent headers
7599 # can be detected and how.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 #include <ac_nonexistent.h>
7603 _ACEOF
7604 if ac_fn_c_try_cpp "$LINENO"; then :
7605 # Broken: success on invalid input.
7606 continue
7607 else
7608 # Passes both tests.
7609 ac_preproc_ok=:
7610 break
7611 fi
7612 rm -f conftest.err conftest.i conftest.$ac_ext
7613
7614 done
7615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7616 rm -f conftest.i conftest.err conftest.$ac_ext
7617 if $ac_preproc_ok; then :
7618 break
7619 fi
7620
7621 done
7622 ac_cv_prog_CPP=$CPP
7623
7624 fi
7625 CPP=$ac_cv_prog_CPP
7626 else
7627 ac_cv_prog_CPP=$CPP
7628 fi
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7630 $as_echo "$CPP" >&6; }
7631 ac_preproc_ok=false
7632 for ac_c_preproc_warn_flag in '' yes
7633 do
7634 # Use a header file that comes with gcc, so configuring glibc
7635 # with a fresh cross-compiler works.
7636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7637 # <limits.h> exists even on freestanding compilers.
7638 # On the NeXT, cc -E runs the code through the compiler's parser,
7639 # not just through cpp. "Syntax error" is here to catch this case.
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 #ifdef __STDC__
7643 # include <limits.h>
7644 #else
7645 # include <assert.h>
7646 #endif
7647 Syntax error
7648 _ACEOF
7649 if ac_fn_c_try_cpp "$LINENO"; then :
7650
7651 else
7652 # Broken: fails on valid input.
7653 continue
7654 fi
7655 rm -f conftest.err conftest.i conftest.$ac_ext
7656
7657 # OK, works on sane cases. Now check whether nonexistent headers
7658 # can be detected and how.
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7661 #include <ac_nonexistent.h>
7662 _ACEOF
7663 if ac_fn_c_try_cpp "$LINENO"; then :
7664 # Broken: success on invalid input.
7665 continue
7666 else
7667 # Passes both tests.
7668 ac_preproc_ok=:
7669 break
7670 fi
7671 rm -f conftest.err conftest.i conftest.$ac_ext
7672
7673 done
7674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7675 rm -f conftest.i conftest.err conftest.$ac_ext
7676 if $ac_preproc_ok; then :
7677
7678 else
7679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7681 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7682 See \`config.log' for more details" "$LINENO" 5; }
7683 fi
7684
7685 ac_ext=c
7686 ac_cpp='$CPP $CPPFLAGS'
7687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7690
7691
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7693 $as_echo_n "checking for ANSI C header files... " >&6; }
7694 if ${ac_cv_header_stdc+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 #include <stdlib.h>
7700 #include <stdarg.h>
7701 #include <string.h>
7702 #include <float.h>
7703
7704 int
7705 main ()
7706 {
7707
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713 ac_cv_header_stdc=yes
7714 else
7715 ac_cv_header_stdc=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718
7719 if test $ac_cv_header_stdc = yes; then
7720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 #include <string.h>
7724
7725 _ACEOF
7726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727 $EGREP "memchr" >/dev/null 2>&1; then :
7728
7729 else
7730 ac_cv_header_stdc=no
7731 fi
7732 rm -f conftest*
7733
7734 fi
7735
7736 if test $ac_cv_header_stdc = yes; then
7737 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7740 #include <stdlib.h>
7741
7742 _ACEOF
7743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7744 $EGREP "free" >/dev/null 2>&1; then :
7745
7746 else
7747 ac_cv_header_stdc=no
7748 fi
7749 rm -f conftest*
7750
7751 fi
7752
7753 if test $ac_cv_header_stdc = yes; then
7754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7755 if test "$cross_compiling" = yes; then :
7756 :
7757 else
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7760 #include <ctype.h>
7761 #include <stdlib.h>
7762 #if ((' ' & 0x0FF) == 0x020)
7763 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7764 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7765 #else
7766 # define ISLOWER(c) \
7767 (('a' <= (c) && (c) <= 'i') \
7768 || ('j' <= (c) && (c) <= 'r') \
7769 || ('s' <= (c) && (c) <= 'z'))
7770 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7771 #endif
7772
7773 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7774 int
7775 main ()
7776 {
7777 int i;
7778 for (i = 0; i < 256; i++)
7779 if (XOR (islower (i), ISLOWER (i))
7780 || toupper (i) != TOUPPER (i))
7781 return 2;
7782 return 0;
7783 }
7784 _ACEOF
7785 if ac_fn_c_try_run "$LINENO"; then :
7786
7787 else
7788 ac_cv_header_stdc=no
7789 fi
7790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7791 conftest.$ac_objext conftest.beam conftest.$ac_ext
7792 fi
7793
7794 fi
7795 fi
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7797 $as_echo "$ac_cv_header_stdc" >&6; }
7798 if test $ac_cv_header_stdc = yes; then
7799
7800 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7801
7802 fi
7803
7804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7805 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7806 inttypes.h stdint.h unistd.h
7807 do :
7808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7809 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7810 "
7811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7812 cat >>confdefs.h <<_ACEOF
7813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7814 _ACEOF
7815
7816 fi
7817
7818 done
7819
7820
7821 for ac_header in dlfcn.h
7822 do :
7823 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7824 "
7825 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7826 cat >>confdefs.h <<_ACEOF
7827 #define HAVE_DLFCN_H 1
7828 _ACEOF
7829
7830 fi
7831
7832 done
7833
7834
7835
7836
7837
7838 # Set options
7839
7840
7841
7842 enable_dlopen=no
7843
7844
7845 enable_win32_dll=no
7846
7847
7848 # Check whether --enable-shared was given.
7849 if test "${enable_shared+set}" = set; then :
7850 enableval=$enable_shared; p=${PACKAGE-default}
7851 case $enableval in
7852 yes) enable_shared=yes ;;
7853 no) enable_shared=no ;;
7854 *)
7855 enable_shared=no
7856 # Look at the argument we got. We use all the common list separators.
7857 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7858 for pkg in $enableval; do
7859 IFS=$lt_save_ifs
7860 if test "X$pkg" = "X$p"; then
7861 enable_shared=yes
7862 fi
7863 done
7864 IFS=$lt_save_ifs
7865 ;;
7866 esac
7867 else
7868 enable_shared=yes
7869 fi
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879 # Check whether --enable-static was given.
7880 if test "${enable_static+set}" = set; then :
7881 enableval=$enable_static; p=${PACKAGE-default}
7882 case $enableval in
7883 yes) enable_static=yes ;;
7884 no) enable_static=no ;;
7885 *)
7886 enable_static=no
7887 # Look at the argument we got. We use all the common list separators.
7888 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7889 for pkg in $enableval; do
7890 IFS=$lt_save_ifs
7891 if test "X$pkg" = "X$p"; then
7892 enable_static=yes
7893 fi
7894 done
7895 IFS=$lt_save_ifs
7896 ;;
7897 esac
7898 else
7899 enable_static=yes
7900 fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911 # Check whether --with-pic was given.
7912 if test "${with_pic+set}" = set; then :
7913 withval=$with_pic; lt_p=${PACKAGE-default}
7914 case $withval in
7915 yes|no) pic_mode=$withval ;;
7916 *)
7917 pic_mode=default
7918 # Look at the argument we got. We use all the common list separators.
7919 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7920 for lt_pkg in $withval; do
7921 IFS=$lt_save_ifs
7922 if test "X$lt_pkg" = "X$lt_p"; then
7923 pic_mode=yes
7924 fi
7925 done
7926 IFS=$lt_save_ifs
7927 ;;
7928 esac
7929 else
7930 pic_mode=default
7931 fi
7932
7933
7934
7935
7936
7937
7938
7939
7940 # Check whether --enable-fast-install was given.
7941 if test "${enable_fast_install+set}" = set; then :
7942 enableval=$enable_fast_install; p=${PACKAGE-default}
7943 case $enableval in
7944 yes) enable_fast_install=yes ;;
7945 no) enable_fast_install=no ;;
7946 *)
7947 enable_fast_install=no
7948 # Look at the argument we got. We use all the common list separators.
7949 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7950 for pkg in $enableval; do
7951 IFS=$lt_save_ifs
7952 if test "X$pkg" = "X$p"; then
7953 enable_fast_install=yes
7954 fi
7955 done
7956 IFS=$lt_save_ifs
7957 ;;
7958 esac
7959 else
7960 enable_fast_install=yes
7961 fi
7962
7963
7964
7965
7966
7967
7968
7969
7970 shared_archive_member_spec=
7971 case $host,$enable_shared in
7972 power*-*-aix[5-9]*,yes)
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7974 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7975
7976 # Check whether --with-aix-soname was given.
7977 if test "${with_aix_soname+set}" = set; then :
7978 withval=$with_aix_soname; case $withval in
7979 aix|svr4|both)
7980 ;;
7981 *)
7982 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7983 ;;
7984 esac
7985 lt_cv_with_aix_soname=$with_aix_soname
7986 else
7987 if ${lt_cv_with_aix_soname+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 lt_cv_with_aix_soname=aix
7991 fi
7992
7993 with_aix_soname=$lt_cv_with_aix_soname
7994 fi
7995
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7997 $as_echo "$with_aix_soname" >&6; }
7998 if test aix != "$with_aix_soname"; then
7999 # For the AIX way of multilib, we name the shared archive member
8000 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8001 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8002 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8003 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8004 if test 64 = "${OBJECT_MODE-32}"; then
8005 shared_archive_member_spec=shr_64
8006 else
8007 shared_archive_member_spec=shr
8008 fi
8009 fi
8010 ;;
8011 *)
8012 with_aix_soname=aix
8013 ;;
8014 esac
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 # This can be used to rebuild libtool when needed
8026 LIBTOOL_DEPS=$ltmain
8027
8028 # Always use our own libtool.
8029 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060 test -z "$LN_S" && LN_S="ln -s"
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075 if test -n "${ZSH_VERSION+set}"; then
8076 setopt NO_GLOB_SUBST
8077 fi
8078
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8080 $as_echo_n "checking for objdir... " >&6; }
8081 if ${lt_cv_objdir+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 rm -f .libs 2>/dev/null
8085 mkdir .libs 2>/dev/null
8086 if test -d .libs; then
8087 lt_cv_objdir=.libs
8088 else
8089 # MS-DOS does not allow filenames that begin with a dot.
8090 lt_cv_objdir=_libs
8091 fi
8092 rmdir .libs 2>/dev/null
8093 fi
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8095 $as_echo "$lt_cv_objdir" >&6; }
8096 objdir=$lt_cv_objdir
8097
8098
8099
8100
8101
8102 cat >>confdefs.h <<_ACEOF
8103 #define LT_OBJDIR "$lt_cv_objdir/"
8104 _ACEOF
8105
8106
8107
8108
8109 case $host_os in
8110 aix3*)
8111 # AIX sometimes has problems with the GCC collect2 program. For some
8112 # reason, if we set the COLLECT_NAMES environment variable, the problems
8113 # vanish in a puff of smoke.
8114 if test set != "${COLLECT_NAMES+set}"; then
8115 COLLECT_NAMES=
8116 export COLLECT_NAMES
8117 fi
8118 ;;
8119 esac
8120
8121 # Global variables:
8122 ofile=libtool
8123 can_build_shared=yes
8124
8125 # All known linkers require a '.a' archive for static linking (except MSVC,
8126 # which needs '.lib').
8127 libext=a
8128
8129 with_gnu_ld=$lt_cv_prog_gnu_ld
8130
8131 old_CC=$CC
8132 old_CFLAGS=$CFLAGS
8133
8134 # Set sane defaults for various variables
8135 test -z "$CC" && CC=cc
8136 test -z "$LTCC" && LTCC=$CC
8137 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8138 test -z "$LD" && LD=ld
8139 test -z "$ac_objext" && ac_objext=o
8140
8141 func_cc_basename $compiler
8142 cc_basename=$func_cc_basename_result
8143
8144
8145 # Only perform the check for file, if the check method requires it
8146 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8147 case $deplibs_check_method in
8148 file_magic*)
8149 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8151 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8152 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 case $MAGIC_CMD in
8156 [\\/*] | ?:[\\/]*)
8157 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8158 ;;
8159 *)
8160 lt_save_MAGIC_CMD=$MAGIC_CMD
8161 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8162 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8163 for ac_dir in $ac_dummy; do
8164 IFS=$lt_save_ifs
8165 test -z "$ac_dir" && ac_dir=.
8166 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8167 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8168 if test -n "$file_magic_test_file"; then
8169 case $deplibs_check_method in
8170 "file_magic "*)
8171 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8172 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8173 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8174 $EGREP "$file_magic_regex" > /dev/null; then
8175 :
8176 else
8177 cat <<_LT_EOF 1>&2
8178
8179 *** Warning: the command libtool uses to detect shared libraries,
8180 *** $file_magic_cmd, produces output that libtool cannot recognize.
8181 *** The result is that libtool may fail to recognize shared libraries
8182 *** as such. This will affect the creation of libtool libraries that
8183 *** depend on shared libraries, but programs linked with such libtool
8184 *** libraries will work regardless of this problem. Nevertheless, you
8185 *** may want to report the problem to your system manager and/or to
8186 *** bug-libtool@gnu.org
8187
8188 _LT_EOF
8189 fi ;;
8190 esac
8191 fi
8192 break
8193 fi
8194 done
8195 IFS=$lt_save_ifs
8196 MAGIC_CMD=$lt_save_MAGIC_CMD
8197 ;;
8198 esac
8199 fi
8200
8201 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8202 if test -n "$MAGIC_CMD"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8204 $as_echo "$MAGIC_CMD" >&6; }
8205 else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8208 fi
8209
8210
8211
8212
8213
8214 if test -z "$lt_cv_path_MAGIC_CMD"; then
8215 if test -n "$ac_tool_prefix"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8217 $as_echo_n "checking for file... " >&6; }
8218 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 case $MAGIC_CMD in
8222 [\\/*] | ?:[\\/]*)
8223 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8224 ;;
8225 *)
8226 lt_save_MAGIC_CMD=$MAGIC_CMD
8227 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8229 for ac_dir in $ac_dummy; do
8230 IFS=$lt_save_ifs
8231 test -z "$ac_dir" && ac_dir=.
8232 if test -f "$ac_dir/file"; then
8233 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8234 if test -n "$file_magic_test_file"; then
8235 case $deplibs_check_method in
8236 "file_magic "*)
8237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8238 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8240 $EGREP "$file_magic_regex" > /dev/null; then
8241 :
8242 else
8243 cat <<_LT_EOF 1>&2
8244
8245 *** Warning: the command libtool uses to detect shared libraries,
8246 *** $file_magic_cmd, produces output that libtool cannot recognize.
8247 *** The result is that libtool may fail to recognize shared libraries
8248 *** as such. This will affect the creation of libtool libraries that
8249 *** depend on shared libraries, but programs linked with such libtool
8250 *** libraries will work regardless of this problem. Nevertheless, you
8251 *** may want to report the problem to your system manager and/or to
8252 *** bug-libtool@gnu.org
8253
8254 _LT_EOF
8255 fi ;;
8256 esac
8257 fi
8258 break
8259 fi
8260 done
8261 IFS=$lt_save_ifs
8262 MAGIC_CMD=$lt_save_MAGIC_CMD
8263 ;;
8264 esac
8265 fi
8266
8267 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8268 if test -n "$MAGIC_CMD"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8270 $as_echo "$MAGIC_CMD" >&6; }
8271 else
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8274 fi
8275
8276
8277 else
8278 MAGIC_CMD=:
8279 fi
8280 fi
8281
8282 fi
8283 ;;
8284 esac
8285
8286 # Use C for the default configuration in the libtool script
8287
8288 lt_save_CC=$CC
8289 ac_ext=c
8290 ac_cpp='$CPP $CPPFLAGS'
8291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8294
8295
8296 # Source file extension for C test sources.
8297 ac_ext=c
8298
8299 # Object file extension for compiled C test sources.
8300 objext=o
8301 objext=$objext
8302
8303 # Code to be used in simple compile tests
8304 lt_simple_compile_test_code="int some_variable = 0;"
8305
8306 # Code to be used in simple link tests
8307 lt_simple_link_test_code='int main(){return(0);}'
8308
8309
8310
8311
8312
8313
8314
8315 # If no C compiler was specified, use CC.
8316 LTCC=${LTCC-"$CC"}
8317
8318 # If no C compiler flags were specified, use CFLAGS.
8319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8320
8321 # Allow CC to be a program name with arguments.
8322 compiler=$CC
8323
8324 # Save the default compiler, since it gets overwritten when the other
8325 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8326 compiler_DEFAULT=$CC
8327
8328 # save warnings/boilerplate of simple test code
8329 ac_outfile=conftest.$ac_objext
8330 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8331 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8332 _lt_compiler_boilerplate=`cat conftest.err`
8333 $RM conftest*
8334
8335 ac_outfile=conftest.$ac_objext
8336 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8337 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8338 _lt_linker_boilerplate=`cat conftest.err`
8339 $RM -r conftest*
8340
8341
8342 ## CAVEAT EMPTOR:
8343 ## There is no encapsulation within the following macros, do not change
8344 ## the running order or otherwise move them around unless you know exactly
8345 ## what you are doing...
8346 if test -n "$compiler"; then
8347
8348 lt_prog_compiler_no_builtin_flag=
8349
8350 if test yes = "$GCC"; then
8351 case $cc_basename in
8352 nvcc*)
8353 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8354 *)
8355 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8356 esac
8357
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8359 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8360 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 lt_cv_prog_compiler_rtti_exceptions=no
8364 ac_outfile=conftest.$ac_objext
8365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8366 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8367 # Insert the option either (1) after the last *FLAGS variable, or
8368 # (2) before a word containing "conftest.", or (3) at the end.
8369 # Note that $ac_compile itself does not contain backslashes and begins
8370 # with a dollar sign (not a hyphen), so the echo should work correctly.
8371 # The option is referenced via a variable to avoid confusing sed.
8372 lt_compile=`echo "$ac_compile" | $SED \
8373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8375 -e 's:$: $lt_compiler_flag:'`
8376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8377 (eval "$lt_compile" 2>conftest.err)
8378 ac_status=$?
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 if (exit $ac_status) && test -s "$ac_outfile"; then
8382 # The compiler can only warn and ignore the option if not recognized
8383 # So say no if there are warnings other than the usual output.
8384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8386 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8387 lt_cv_prog_compiler_rtti_exceptions=yes
8388 fi
8389 fi
8390 $RM conftest*
8391
8392 fi
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8394 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8395
8396 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8397 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8398 else
8399 :
8400 fi
8401
8402 fi
8403
8404
8405
8406
8407
8408
8409 lt_prog_compiler_wl=
8410 lt_prog_compiler_pic=
8411 lt_prog_compiler_static=
8412
8413
8414 if test yes = "$GCC"; then
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_static='-static'
8417
8418 case $host_os in
8419 aix*)
8420 # All AIX code is PIC.
8421 if test ia64 = "$host_cpu"; then
8422 # AIX 5 now supports IA64 processor
8423 lt_prog_compiler_static='-Bstatic'
8424 fi
8425 lt_prog_compiler_pic='-fPIC'
8426 ;;
8427
8428 amigaos*)
8429 case $host_cpu in
8430 powerpc)
8431 # see comment about AmigaOS4 .so support
8432 lt_prog_compiler_pic='-fPIC'
8433 ;;
8434 m68k)
8435 # FIXME: we need at least 68020 code to build shared libraries, but
8436 # adding the '-m68020' flag to GCC prevents building anything better,
8437 # like '-m68040'.
8438 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8439 ;;
8440 esac
8441 ;;
8442
8443 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8444 # PIC is the default for these OSes.
8445 ;;
8446
8447 mingw* | cygwin* | pw32* | os2* | cegcc*)
8448 # This hack is so that the source file can tell whether it is being
8449 # built for inclusion in a dll (and should export symbols for example).
8450 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8451 # (--disable-auto-import) libraries
8452 lt_prog_compiler_pic='-DDLL_EXPORT'
8453 case $host_os in
8454 os2*)
8455 lt_prog_compiler_static='$wl-static'
8456 ;;
8457 esac
8458 ;;
8459
8460 darwin* | rhapsody*)
8461 # PIC is the default on this platform
8462 # Common symbols not allowed in MH_DYLIB files
8463 lt_prog_compiler_pic='-fno-common'
8464 ;;
8465
8466 haiku*)
8467 # PIC is the default for Haiku.
8468 # The "-static" flag exists, but is broken.
8469 lt_prog_compiler_static=
8470 ;;
8471
8472 hpux*)
8473 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8474 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8475 # sets the default TLS model and affects inlining.
8476 case $host_cpu in
8477 hppa*64*)
8478 # +Z the default
8479 ;;
8480 *)
8481 lt_prog_compiler_pic='-fPIC'
8482 ;;
8483 esac
8484 ;;
8485
8486 interix[3-9]*)
8487 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8488 # Instead, we relocate shared libraries at runtime.
8489 ;;
8490
8491 msdosdjgpp*)
8492 # Just because we use GCC doesn't mean we suddenly get shared libraries
8493 # on systems that don't support them.
8494 lt_prog_compiler_can_build_shared=no
8495 enable_shared=no
8496 ;;
8497
8498 *nto* | *qnx*)
8499 # QNX uses GNU C++, but need to define -shared option too, otherwise
8500 # it will coredump.
8501 lt_prog_compiler_pic='-fPIC -shared'
8502 ;;
8503
8504 sysv4*MP*)
8505 if test -d /usr/nec; then
8506 lt_prog_compiler_pic=-Kconform_pic
8507 fi
8508 ;;
8509
8510 *)
8511 lt_prog_compiler_pic='-fPIC'
8512 ;;
8513 esac
8514
8515 case $cc_basename in
8516 nvcc*) # Cuda Compiler Driver 2.2
8517 lt_prog_compiler_wl='-Xlinker '
8518 if test -n "$lt_prog_compiler_pic"; then
8519 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8520 fi
8521 ;;
8522 esac
8523 else
8524 # PORTME Check for flag to pass linker flags through the system compiler.
8525 case $host_os in
8526 aix*)
8527 lt_prog_compiler_wl='-Wl,'
8528 if test ia64 = "$host_cpu"; then
8529 # AIX 5 now supports IA64 processor
8530 lt_prog_compiler_static='-Bstatic'
8531 else
8532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8533 fi
8534 ;;
8535
8536 darwin* | rhapsody*)
8537 # PIC is the default on this platform
8538 # Common symbols not allowed in MH_DYLIB files
8539 lt_prog_compiler_pic='-fno-common'
8540 case $cc_basename in
8541 nagfor*)
8542 # NAG Fortran compiler
8543 lt_prog_compiler_wl='-Wl,-Wl,,'
8544 lt_prog_compiler_pic='-PIC'
8545 lt_prog_compiler_static='-Bstatic'
8546 ;;
8547 esac
8548 ;;
8549
8550 mingw* | cygwin* | pw32* | os2* | cegcc*)
8551 # This hack is so that the source file can tell whether it is being
8552 # built for inclusion in a dll (and should export symbols for example).
8553 lt_prog_compiler_pic='-DDLL_EXPORT'
8554 case $host_os in
8555 os2*)
8556 lt_prog_compiler_static='$wl-static'
8557 ;;
8558 esac
8559 ;;
8560
8561 hpux9* | hpux10* | hpux11*)
8562 lt_prog_compiler_wl='-Wl,'
8563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8564 # not for PA HP-UX.
8565 case $host_cpu in
8566 hppa*64*|ia64*)
8567 # +Z the default
8568 ;;
8569 *)
8570 lt_prog_compiler_pic='+Z'
8571 ;;
8572 esac
8573 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8574 lt_prog_compiler_static='$wl-a ${wl}archive'
8575 ;;
8576
8577 irix5* | irix6* | nonstopux*)
8578 lt_prog_compiler_wl='-Wl,'
8579 # PIC (with -KPIC) is the default.
8580 lt_prog_compiler_static='-non_shared'
8581 ;;
8582
8583 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8584 case $cc_basename in
8585 # old Intel for x86_64, which still supported -KPIC.
8586 ecc*)
8587 lt_prog_compiler_wl='-Wl,'
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-static'
8590 ;;
8591 # icc used to be incompatible with GCC.
8592 # ICC 10 doesn't accept -KPIC any more.
8593 icc* | ifort*)
8594 lt_prog_compiler_wl='-Wl,'
8595 lt_prog_compiler_pic='-fPIC'
8596 lt_prog_compiler_static='-static'
8597 ;;
8598 # Lahey Fortran 8.1.
8599 lf95*)
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='--shared'
8602 lt_prog_compiler_static='--static'
8603 ;;
8604 nagfor*)
8605 # NAG Fortran compiler
8606 lt_prog_compiler_wl='-Wl,-Wl,,'
8607 lt_prog_compiler_pic='-PIC'
8608 lt_prog_compiler_static='-Bstatic'
8609 ;;
8610 tcc*)
8611 # Fabrice Bellard et al's Tiny C Compiler
8612 lt_prog_compiler_wl='-Wl,'
8613 lt_prog_compiler_pic='-fPIC'
8614 lt_prog_compiler_static='-static'
8615 ;;
8616 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8617 # Portland Group compilers (*not* the Pentium gcc compiler,
8618 # which looks to be a dead project)
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_pic='-fpic'
8621 lt_prog_compiler_static='-Bstatic'
8622 ;;
8623 ccc*)
8624 lt_prog_compiler_wl='-Wl,'
8625 # All Alpha code is PIC.
8626 lt_prog_compiler_static='-non_shared'
8627 ;;
8628 xl* | bgxl* | bgf* | mpixl*)
8629 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8630 lt_prog_compiler_wl='-Wl,'
8631 lt_prog_compiler_pic='-qpic'
8632 lt_prog_compiler_static='-qstaticlink'
8633 ;;
8634 *)
8635 case `$CC -V 2>&1 | sed 5q` in
8636 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8637 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8638 lt_prog_compiler_pic='-KPIC'
8639 lt_prog_compiler_static='-Bstatic'
8640 lt_prog_compiler_wl=''
8641 ;;
8642 *Sun\ F* | *Sun*Fortran*)
8643 lt_prog_compiler_pic='-KPIC'
8644 lt_prog_compiler_static='-Bstatic'
8645 lt_prog_compiler_wl='-Qoption ld '
8646 ;;
8647 *Sun\ C*)
8648 # Sun C 5.9
8649 lt_prog_compiler_pic='-KPIC'
8650 lt_prog_compiler_static='-Bstatic'
8651 lt_prog_compiler_wl='-Wl,'
8652 ;;
8653 *Intel*\ [CF]*Compiler*)
8654 lt_prog_compiler_wl='-Wl,'
8655 lt_prog_compiler_pic='-fPIC'
8656 lt_prog_compiler_static='-static'
8657 ;;
8658 *Portland\ Group*)
8659 lt_prog_compiler_wl='-Wl,'
8660 lt_prog_compiler_pic='-fpic'
8661 lt_prog_compiler_static='-Bstatic'
8662 ;;
8663 esac
8664 ;;
8665 esac
8666 ;;
8667
8668 newsos6)
8669 lt_prog_compiler_pic='-KPIC'
8670 lt_prog_compiler_static='-Bstatic'
8671 ;;
8672
8673 *nto* | *qnx*)
8674 # QNX uses GNU C++, but need to define -shared option too, otherwise
8675 # it will coredump.
8676 lt_prog_compiler_pic='-fPIC -shared'
8677 ;;
8678
8679 osf3* | osf4* | osf5*)
8680 lt_prog_compiler_wl='-Wl,'
8681 # All OSF/1 code is PIC.
8682 lt_prog_compiler_static='-non_shared'
8683 ;;
8684
8685 rdos*)
8686 lt_prog_compiler_static='-non_shared'
8687 ;;
8688
8689 solaris*)
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-Bstatic'
8692 case $cc_basename in
8693 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8694 lt_prog_compiler_wl='-Qoption ld ';;
8695 *)
8696 lt_prog_compiler_wl='-Wl,';;
8697 esac
8698 ;;
8699
8700 sunos4*)
8701 lt_prog_compiler_wl='-Qoption ld '
8702 lt_prog_compiler_pic='-PIC'
8703 lt_prog_compiler_static='-Bstatic'
8704 ;;
8705
8706 sysv4 | sysv4.2uw2* | sysv4.3*)
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_pic='-KPIC'
8709 lt_prog_compiler_static='-Bstatic'
8710 ;;
8711
8712 sysv4*MP*)
8713 if test -d /usr/nec; then
8714 lt_prog_compiler_pic='-Kconform_pic'
8715 lt_prog_compiler_static='-Bstatic'
8716 fi
8717 ;;
8718
8719 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8720 lt_prog_compiler_wl='-Wl,'
8721 lt_prog_compiler_pic='-KPIC'
8722 lt_prog_compiler_static='-Bstatic'
8723 ;;
8724
8725 unicos*)
8726 lt_prog_compiler_wl='-Wl,'
8727 lt_prog_compiler_can_build_shared=no
8728 ;;
8729
8730 uts4*)
8731 lt_prog_compiler_pic='-pic'
8732 lt_prog_compiler_static='-Bstatic'
8733 ;;
8734
8735 *)
8736 lt_prog_compiler_can_build_shared=no
8737 ;;
8738 esac
8739 fi
8740
8741 case $host_os in
8742 # For platforms that do not support PIC, -DPIC is meaningless:
8743 *djgpp*)
8744 lt_prog_compiler_pic=
8745 ;;
8746 *)
8747 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8748 ;;
8749 esac
8750
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8752 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8753 if ${lt_cv_prog_compiler_pic+:} false; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8759 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8760 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8761
8762 #
8763 # Check to make sure the PIC flag actually works.
8764 #
8765 if test -n "$lt_prog_compiler_pic"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8767 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8768 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 lt_cv_prog_compiler_pic_works=no
8772 ac_outfile=conftest.$ac_objext
8773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8774 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8775 # Insert the option either (1) after the last *FLAGS variable, or
8776 # (2) before a word containing "conftest.", or (3) at the end.
8777 # Note that $ac_compile itself does not contain backslashes and begins
8778 # with a dollar sign (not a hyphen), so the echo should work correctly.
8779 # The option is referenced via a variable to avoid confusing sed.
8780 lt_compile=`echo "$ac_compile" | $SED \
8781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8783 -e 's:$: $lt_compiler_flag:'`
8784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8785 (eval "$lt_compile" 2>conftest.err)
8786 ac_status=$?
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 if (exit $ac_status) && test -s "$ac_outfile"; then
8790 # The compiler can only warn and ignore the option if not recognized
8791 # So say no if there are warnings other than the usual output.
8792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8795 lt_cv_prog_compiler_pic_works=yes
8796 fi
8797 fi
8798 $RM conftest*
8799
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8802 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8803
8804 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8805 case $lt_prog_compiler_pic in
8806 "" | " "*) ;;
8807 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8808 esac
8809 else
8810 lt_prog_compiler_pic=
8811 lt_prog_compiler_can_build_shared=no
8812 fi
8813
8814 fi
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826 #
8827 # Check to make sure the static flag actually works.
8828 #
8829 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8831 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8832 if ${lt_cv_prog_compiler_static_works+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 lt_cv_prog_compiler_static_works=no
8836 save_LDFLAGS=$LDFLAGS
8837 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8838 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8839 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8840 # The linker can only warn and ignore the option if not recognized
8841 # So say no if there are warnings
8842 if test -s conftest.err; then
8843 # Append any errors to the config.log.
8844 cat conftest.err 1>&5
8845 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8847 if diff conftest.exp conftest.er2 >/dev/null; then
8848 lt_cv_prog_compiler_static_works=yes
8849 fi
8850 else
8851 lt_cv_prog_compiler_static_works=yes
8852 fi
8853 fi
8854 $RM -r conftest*
8855 LDFLAGS=$save_LDFLAGS
8856
8857 fi
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8859 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8860
8861 if test yes = "$lt_cv_prog_compiler_static_works"; then
8862 :
8863 else
8864 lt_prog_compiler_static=
8865 fi
8866
8867
8868
8869
8870
8871
8872
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8874 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8875 if ${lt_cv_prog_compiler_c_o+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 lt_cv_prog_compiler_c_o=no
8879 $RM -r conftest 2>/dev/null
8880 mkdir conftest
8881 cd conftest
8882 mkdir out
8883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884
8885 lt_compiler_flag="-o out/conftest2.$ac_objext"
8886 # Insert the option either (1) after the last *FLAGS variable, or
8887 # (2) before a word containing "conftest.", or (3) at the end.
8888 # Note that $ac_compile itself does not contain backslashes and begins
8889 # with a dollar sign (not a hyphen), so the echo should work correctly.
8890 lt_compile=`echo "$ac_compile" | $SED \
8891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8893 -e 's:$: $lt_compiler_flag:'`
8894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8895 (eval "$lt_compile" 2>out/conftest.err)
8896 ac_status=$?
8897 cat out/conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8900 then
8901 # The compiler can only warn and ignore the option if not recognized
8902 # So say no if there are warnings
8903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8906 lt_cv_prog_compiler_c_o=yes
8907 fi
8908 fi
8909 chmod u+w . 2>&5
8910 $RM conftest*
8911 # SGI C++ compiler will create directory out/ii_files/ for
8912 # template instantiation
8913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8914 $RM out/* && rmdir out
8915 cd ..
8916 $RM -r conftest
8917 $RM conftest*
8918
8919 fi
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8921 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8922
8923
8924
8925
8926
8927
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8930 if ${lt_cv_prog_compiler_c_o+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 lt_cv_prog_compiler_c_o=no
8934 $RM -r conftest 2>/dev/null
8935 mkdir conftest
8936 cd conftest
8937 mkdir out
8938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939
8940 lt_compiler_flag="-o out/conftest2.$ac_objext"
8941 # Insert the option either (1) after the last *FLAGS variable, or
8942 # (2) before a word containing "conftest.", or (3) at the end.
8943 # Note that $ac_compile itself does not contain backslashes and begins
8944 # with a dollar sign (not a hyphen), so the echo should work correctly.
8945 lt_compile=`echo "$ac_compile" | $SED \
8946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948 -e 's:$: $lt_compiler_flag:'`
8949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8950 (eval "$lt_compile" 2>out/conftest.err)
8951 ac_status=$?
8952 cat out/conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8955 then
8956 # The compiler can only warn and ignore the option if not recognized
8957 # So say no if there are warnings
8958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8961 lt_cv_prog_compiler_c_o=yes
8962 fi
8963 fi
8964 chmod u+w . 2>&5
8965 $RM conftest*
8966 # SGI C++ compiler will create directory out/ii_files/ for
8967 # template instantiation
8968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8969 $RM out/* && rmdir out
8970 cd ..
8971 $RM -r conftest
8972 $RM conftest*
8973
8974 fi
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8977
8978
8979
8980
8981 hard_links=nottested
8982 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8983 # do not overwrite the value of need_locks provided by the user
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8985 $as_echo_n "checking if we can lock with hard links... " >&6; }
8986 hard_links=yes
8987 $RM conftest*
8988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8989 touch conftest.a
8990 ln conftest.a conftest.b 2>&5 || hard_links=no
8991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8993 $as_echo "$hard_links" >&6; }
8994 if test no = "$hard_links"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8996 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8997 need_locks=warn
8998 fi
8999 else
9000 need_locks=no
9001 fi
9002
9003
9004
9005
9006
9007
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9009 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9010
9011 runpath_var=
9012 allow_undefined_flag=
9013 always_export_symbols=no
9014 archive_cmds=
9015 archive_expsym_cmds=
9016 compiler_needs_object=no
9017 enable_shared_with_static_runtimes=no
9018 export_dynamic_flag_spec=
9019 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9020 hardcode_automatic=no
9021 hardcode_direct=no
9022 hardcode_direct_absolute=no
9023 hardcode_libdir_flag_spec=
9024 hardcode_libdir_separator=
9025 hardcode_minus_L=no
9026 hardcode_shlibpath_var=unsupported
9027 inherit_rpath=no
9028 link_all_deplibs=unknown
9029 module_cmds=
9030 module_expsym_cmds=
9031 old_archive_from_new_cmds=
9032 old_archive_from_expsyms_cmds=
9033 thread_safe_flag_spec=
9034 whole_archive_flag_spec=
9035 # include_expsyms should be a list of space-separated symbols to be *always*
9036 # included in the symbol list
9037 include_expsyms=
9038 # exclude_expsyms can be an extended regexp of symbols to exclude
9039 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9040 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9041 # as well as any symbol that contains 'd'.
9042 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9044 # platforms (ab)use it in PIC code, but their linkers get confused if
9045 # the symbol is explicitly referenced. Since portable code cannot
9046 # rely on this symbol name, it's probably fine to never include it in
9047 # preloaded symbol tables.
9048 # Exclude shared library initialization/finalization symbols.
9049 extract_expsyms_cmds=
9050
9051 case $host_os in
9052 cygwin* | mingw* | pw32* | cegcc*)
9053 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9054 # When not using gcc, we currently assume that we are using
9055 # Microsoft Visual C++.
9056 if test yes != "$GCC"; then
9057 with_gnu_ld=no
9058 fi
9059 ;;
9060 interix*)
9061 # we just hope/assume this is gcc and not c89 (= MSVC++)
9062 with_gnu_ld=yes
9063 ;;
9064 openbsd* | bitrig*)
9065 with_gnu_ld=no
9066 ;;
9067 linux* | k*bsd*-gnu | gnu*)
9068 link_all_deplibs=no
9069 ;;
9070 esac
9071
9072 ld_shlibs=yes
9073
9074 # On some targets, GNU ld is compatible enough with the native linker
9075 # that we're better off using the native interface for both.
9076 lt_use_gnu_ld_interface=no
9077 if test yes = "$with_gnu_ld"; then
9078 case $host_os in
9079 aix*)
9080 # The AIX port of GNU ld has always aspired to compatibility
9081 # with the native linker. However, as the warning in the GNU ld
9082 # block says, versions before 2.19.5* couldn't really create working
9083 # shared libraries, regardless of the interface used.
9084 case `$LD -v 2>&1` in
9085 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9086 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9087 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9088 *)
9089 lt_use_gnu_ld_interface=yes
9090 ;;
9091 esac
9092 ;;
9093 *)
9094 lt_use_gnu_ld_interface=yes
9095 ;;
9096 esac
9097 fi
9098
9099 if test yes = "$lt_use_gnu_ld_interface"; then
9100 # If archive_cmds runs LD, not CC, wlarc should be empty
9101 wlarc='$wl'
9102
9103 # Set some defaults for GNU ld with shared library support. These
9104 # are reset later if shared libraries are not supported. Putting them
9105 # here allows them to be overridden if necessary.
9106 runpath_var=LD_RUN_PATH
9107 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9108 export_dynamic_flag_spec='$wl--export-dynamic'
9109 # ancient GNU ld didn't support --whole-archive et. al.
9110 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9111 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9112 else
9113 whole_archive_flag_spec=
9114 fi
9115 supports_anon_versioning=no
9116 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9117 *GNU\ gold*) supports_anon_versioning=yes ;;
9118 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9119 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9120 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9121 *\ 2.11.*) ;; # other 2.11 versions
9122 *) supports_anon_versioning=yes ;;
9123 esac
9124
9125 # See if GNU ld supports shared libraries.
9126 case $host_os in
9127 aix[3-9]*)
9128 # On AIX/PPC, the GNU linker is very broken
9129 if test ia64 != "$host_cpu"; then
9130 ld_shlibs=no
9131 cat <<_LT_EOF 1>&2
9132
9133 *** Warning: the GNU linker, at least up to release 2.19, is reported
9134 *** to be unable to reliably create shared libraries on AIX.
9135 *** Therefore, libtool is disabling shared libraries support. If you
9136 *** really care for shared libraries, you may want to install binutils
9137 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9138 *** You will then need to restart the configuration process.
9139
9140 _LT_EOF
9141 fi
9142 ;;
9143
9144 amigaos*)
9145 case $host_cpu in
9146 powerpc)
9147 # see comment about AmigaOS4 .so support
9148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9149 archive_expsym_cmds=''
9150 ;;
9151 m68k)
9152 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)'
9153 hardcode_libdir_flag_spec='-L$libdir'
9154 hardcode_minus_L=yes
9155 ;;
9156 esac
9157 ;;
9158
9159 beos*)
9160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9161 allow_undefined_flag=unsupported
9162 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9163 # support --undefined. This deserves some investigation. FIXME
9164 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9165 else
9166 ld_shlibs=no
9167 fi
9168 ;;
9169
9170 cygwin* | mingw* | pw32* | cegcc*)
9171 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9172 # as there is no search path for DLLs.
9173 hardcode_libdir_flag_spec='-L$libdir'
9174 export_dynamic_flag_spec='$wl--export-all-symbols'
9175 allow_undefined_flag=unsupported
9176 always_export_symbols=no
9177 enable_shared_with_static_runtimes=yes
9178 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9179 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9180
9181 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9183 # If the export-symbols file already is a .def file, use it as
9184 # is; otherwise, prepend EXPORTS...
9185 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9186 cp $export_symbols $output_objdir/$soname.def;
9187 else
9188 echo EXPORTS > $output_objdir/$soname.def;
9189 cat $export_symbols >> $output_objdir/$soname.def;
9190 fi~
9191 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9192 else
9193 ld_shlibs=no
9194 fi
9195 ;;
9196
9197 haiku*)
9198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9199 link_all_deplibs=yes
9200 ;;
9201
9202 os2*)
9203 hardcode_libdir_flag_spec='-L$libdir'
9204 hardcode_minus_L=yes
9205 allow_undefined_flag=unsupported
9206 shrext_cmds=.dll
9207 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9208 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9209 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9210 $ECHO EXPORTS >> $output_objdir/$libname.def~
9211 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9212 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9213 emximp -o $lib $output_objdir/$libname.def'
9214 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9215 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9216 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9217 $ECHO EXPORTS >> $output_objdir/$libname.def~
9218 prefix_cmds="$SED"~
9219 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9220 prefix_cmds="$prefix_cmds -e 1d";
9221 fi~
9222 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9223 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9224 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9225 emximp -o $lib $output_objdir/$libname.def'
9226 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9227 enable_shared_with_static_runtimes=yes
9228 ;;
9229
9230 interix[3-9]*)
9231 hardcode_direct=no
9232 hardcode_shlibpath_var=no
9233 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9234 export_dynamic_flag_spec='$wl-E'
9235 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9236 # Instead, shared libraries are loaded at an image base (0x10000000 by
9237 # default) and relocated if they conflict, which is a slow very memory
9238 # consuming and fragmenting process. To avoid this, we pick a random,
9239 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9240 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9241 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9242 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'
9243 ;;
9244
9245 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9246 tmp_diet=no
9247 if test linux-dietlibc = "$host_os"; then
9248 case $cc_basename in
9249 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9250 esac
9251 fi
9252 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9253 && test no = "$tmp_diet"
9254 then
9255 tmp_addflag=' $pic_flag'
9256 tmp_sharedflag='-shared'
9257 case $cc_basename,$host_cpu in
9258 pgcc*) # Portland Group C compiler
9259 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9260 tmp_addflag=' $pic_flag'
9261 ;;
9262 pgf77* | pgf90* | pgf95* | pgfortran*)
9263 # Portland Group f77 and f90 compilers
9264 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9265 tmp_addflag=' $pic_flag -Mnomain' ;;
9266 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9267 tmp_addflag=' -i_dynamic' ;;
9268 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9269 tmp_addflag=' -i_dynamic -nofor_main' ;;
9270 ifc* | ifort*) # Intel Fortran compiler
9271 tmp_addflag=' -nofor_main' ;;
9272 lf95*) # Lahey Fortran 8.1
9273 whole_archive_flag_spec=
9274 tmp_sharedflag='--shared' ;;
9275 nagfor*) # NAGFOR 5.3
9276 tmp_sharedflag='-Wl,-shared' ;;
9277 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9278 tmp_sharedflag='-qmkshrobj'
9279 tmp_addflag= ;;
9280 nvcc*) # Cuda Compiler Driver 2.2
9281 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9282 compiler_needs_object=yes
9283 ;;
9284 esac
9285 case `$CC -V 2>&1 | sed 5q` in
9286 *Sun\ C*) # Sun C 5.9
9287 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9288 compiler_needs_object=yes
9289 tmp_sharedflag='-G' ;;
9290 *Sun\ F*) # Sun Fortran 8.3
9291 tmp_sharedflag='-G' ;;
9292 esac
9293 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9294
9295 if test yes = "$supports_anon_versioning"; then
9296 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9298 echo "local: *; };" >> $output_objdir/$libname.ver~
9299 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9300 fi
9301
9302 case $cc_basename in
9303 tcc*)
9304 export_dynamic_flag_spec='-rdynamic'
9305 ;;
9306 xlf* | bgf* | bgxlf* | mpixlf*)
9307 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9308 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9309 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9310 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9311 if test yes = "$supports_anon_versioning"; then
9312 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9314 echo "local: *; };" >> $output_objdir/$libname.ver~
9315 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9316 fi
9317 ;;
9318 esac
9319 else
9320 ld_shlibs=no
9321 fi
9322 ;;
9323
9324 netbsd* | netbsdelf*-gnu)
9325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9326 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9327 wlarc=
9328 else
9329 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9330 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9331 fi
9332 ;;
9333
9334 solaris*)
9335 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9336 ld_shlibs=no
9337 cat <<_LT_EOF 1>&2
9338
9339 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9340 *** create shared libraries on Solaris systems. Therefore, libtool
9341 *** is disabling shared libraries support. We urge you to upgrade GNU
9342 *** binutils to release 2.9.1 or newer. Another option is to modify
9343 *** your PATH or compiler configuration so that the native linker is
9344 *** used, and then restart.
9345
9346 _LT_EOF
9347 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9349 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9350 else
9351 ld_shlibs=no
9352 fi
9353 ;;
9354
9355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9356 case `$LD -v 2>&1` in
9357 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9358 ld_shlibs=no
9359 cat <<_LT_EOF 1>&2
9360
9361 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9362 *** reliably create shared libraries on SCO systems. Therefore, libtool
9363 *** is disabling shared libraries support. We urge you to upgrade GNU
9364 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9365 *** your PATH or compiler configuration so that the native linker is
9366 *** used, and then restart.
9367
9368 _LT_EOF
9369 ;;
9370 *)
9371 # For security reasons, it is highly recommended that you always
9372 # use absolute paths for naming shared libraries, and exclude the
9373 # DT_RUNPATH tag from executables and libraries. But doing so
9374 # requires that you compile everything twice, which is a pain.
9375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9376 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9379 else
9380 ld_shlibs=no
9381 fi
9382 ;;
9383 esac
9384 ;;
9385
9386 sunos4*)
9387 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9388 wlarc=
9389 hardcode_direct=yes
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 *)
9394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9395 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9396 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9397 else
9398 ld_shlibs=no
9399 fi
9400 ;;
9401 esac
9402
9403 if test no = "$ld_shlibs"; then
9404 runpath_var=
9405 hardcode_libdir_flag_spec=
9406 export_dynamic_flag_spec=
9407 whole_archive_flag_spec=
9408 fi
9409 else
9410 # PORTME fill in a description of your system's linker (not GNU ld)
9411 case $host_os in
9412 aix3*)
9413 allow_undefined_flag=unsupported
9414 always_export_symbols=yes
9415 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'
9416 # Note: this linker hardcodes the directories in LIBPATH if there
9417 # are no directories specified by -L.
9418 hardcode_minus_L=yes
9419 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9420 # Neither direct hardcoding nor static linking is supported with a
9421 # broken collect2.
9422 hardcode_direct=unsupported
9423 fi
9424 ;;
9425
9426 aix[4-9]*)
9427 if test ia64 = "$host_cpu"; then
9428 # On IA64, the linker does run time linking by default, so we don't
9429 # have to do anything special.
9430 aix_use_runtimelinking=no
9431 exp_sym_flag='-Bexport'
9432 no_entry_flag=
9433 else
9434 # If we're using GNU nm, then we don't want the "-C" option.
9435 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9436 # Without the "-l" option, or with the "-B" option, AIX nm treats
9437 # weak defined symbols like other global defined symbols, whereas
9438 # GNU nm marks them as "W".
9439 # While the 'weak' keyword is ignored in the Export File, we need
9440 # it in the Import File for the 'aix-soname' feature, so we have
9441 # to replace the "-B" option with "-P" for AIX nm.
9442 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9443 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9444 else
9445 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9446 fi
9447 aix_use_runtimelinking=no
9448
9449 # Test if we are trying to use run time linking or normal
9450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9451 # have runtime linking enabled, and use it for executables.
9452 # For shared libraries, we enable/disable runtime linking
9453 # depending on the kind of the shared library created -
9454 # when "with_aix_soname,aix_use_runtimelinking" is:
9455 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9456 # "aix,yes" lib.so shared, rtl:yes, for executables
9457 # lib.a static archive
9458 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9459 # lib.a(lib.so.V) shared, rtl:no, for executables
9460 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9461 # lib.a(lib.so.V) shared, rtl:no
9462 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9463 # lib.a static archive
9464 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9465 for ld_flag in $LDFLAGS; do
9466 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9467 aix_use_runtimelinking=yes
9468 break
9469 fi
9470 done
9471 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9472 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9473 # so we don't have lib.a shared libs to link our executables.
9474 # We have to force runtime linking in this case.
9475 aix_use_runtimelinking=yes
9476 LDFLAGS="$LDFLAGS -Wl,-brtl"
9477 fi
9478 ;;
9479 esac
9480
9481 exp_sym_flag='-bexport'
9482 no_entry_flag='-bnoentry'
9483 fi
9484
9485 # When large executables or shared objects are built, AIX ld can
9486 # have problems creating the table of contents. If linking a library
9487 # or program results in "error TOC overflow" add -mminimal-toc to
9488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9490
9491 archive_cmds=''
9492 hardcode_direct=yes
9493 hardcode_direct_absolute=yes
9494 hardcode_libdir_separator=':'
9495 link_all_deplibs=yes
9496 file_list_spec='$wl-f,'
9497 case $with_aix_soname,$aix_use_runtimelinking in
9498 aix,*) ;; # traditional, no import file
9499 svr4,* | *,yes) # use import file
9500 # The Import File defines what to hardcode.
9501 hardcode_direct=no
9502 hardcode_direct_absolute=no
9503 ;;
9504 esac
9505
9506 if test yes = "$GCC"; then
9507 case $host_os in aix4.[012]|aix4.[012].*)
9508 # We only want to do this on AIX 4.2 and lower, the check
9509 # below for broken collect2 doesn't work under 4.3+
9510 collect2name=`$CC -print-prog-name=collect2`
9511 if test -f "$collect2name" &&
9512 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9513 then
9514 # We have reworked collect2
9515 :
9516 else
9517 # We have old collect2
9518 hardcode_direct=unsupported
9519 # It fails to find uninstalled libraries when the uninstalled
9520 # path is not listed in the libpath. Setting hardcode_minus_L
9521 # to unsupported forces relinking
9522 hardcode_minus_L=yes
9523 hardcode_libdir_flag_spec='-L$libdir'
9524 hardcode_libdir_separator=
9525 fi
9526 ;;
9527 esac
9528 shared_flag='-shared'
9529 if test yes = "$aix_use_runtimelinking"; then
9530 shared_flag="$shared_flag "'$wl-G'
9531 fi
9532 # Need to ensure runtime linking is disabled for the traditional
9533 # shared library, or the linker may eventually find shared libraries
9534 # /with/ Import File - we do not want to mix them.
9535 shared_flag_aix='-shared'
9536 shared_flag_svr4='-shared $wl-G'
9537 else
9538 # not using gcc
9539 if test ia64 = "$host_cpu"; then
9540 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9541 # chokes on -Wl,-G. The following line is correct:
9542 shared_flag='-G'
9543 else
9544 if test yes = "$aix_use_runtimelinking"; then
9545 shared_flag='$wl-G'
9546 else
9547 shared_flag='$wl-bM:SRE'
9548 fi
9549 shared_flag_aix='$wl-bM:SRE'
9550 shared_flag_svr4='$wl-G'
9551 fi
9552 fi
9553
9554 export_dynamic_flag_spec='$wl-bexpall'
9555 # It seems that -bexpall does not export symbols beginning with
9556 # underscore (_), so it is better to generate a list of symbols to export.
9557 always_export_symbols=yes
9558 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9559 # Warning - without using the other runtime loading flags (-brtl),
9560 # -berok will link without error, but may produce a broken library.
9561 allow_undefined_flag='-berok'
9562 # Determine the default libpath from the value encoded in an
9563 # empty executable.
9564 if test set = "${lt_cv_aix_libpath+set}"; then
9565 aix_libpath=$lt_cv_aix_libpath
9566 else
9567 if ${lt_cv_aix_libpath_+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572
9573 int
9574 main ()
9575 {
9576
9577 ;
9578 return 0;
9579 }
9580 _ACEOF
9581 if ac_fn_c_try_link "$LINENO"; then :
9582
9583 lt_aix_libpath_sed='
9584 /Import File Strings/,/^$/ {
9585 /^0/ {
9586 s/^0 *\([^ ]*\) *$/\1/
9587 p
9588 }
9589 }'
9590 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9591 # Check for a 64-bit object if we didn't find anything.
9592 if test -z "$lt_cv_aix_libpath_"; then
9593 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9594 fi
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9598 if test -z "$lt_cv_aix_libpath_"; then
9599 lt_cv_aix_libpath_=/usr/lib:/lib
9600 fi
9601
9602 fi
9603
9604 aix_libpath=$lt_cv_aix_libpath_
9605 fi
9606
9607 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9608 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9609 else
9610 if test ia64 = "$host_cpu"; then
9611 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9612 allow_undefined_flag="-z nodefs"
9613 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"
9614 else
9615 # Determine the default libpath from the value encoded in an
9616 # empty executable.
9617 if test set = "${lt_cv_aix_libpath+set}"; then
9618 aix_libpath=$lt_cv_aix_libpath
9619 else
9620 if ${lt_cv_aix_libpath_+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624 /* end confdefs.h. */
9625
9626 int
9627 main ()
9628 {
9629
9630 ;
9631 return 0;
9632 }
9633 _ACEOF
9634 if ac_fn_c_try_link "$LINENO"; then :
9635
9636 lt_aix_libpath_sed='
9637 /Import File Strings/,/^$/ {
9638 /^0/ {
9639 s/^0 *\([^ ]*\) *$/\1/
9640 p
9641 }
9642 }'
9643 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9644 # Check for a 64-bit object if we didn't find anything.
9645 if test -z "$lt_cv_aix_libpath_"; then
9646 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9647 fi
9648 fi
9649 rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9651 if test -z "$lt_cv_aix_libpath_"; then
9652 lt_cv_aix_libpath_=/usr/lib:/lib
9653 fi
9654
9655 fi
9656
9657 aix_libpath=$lt_cv_aix_libpath_
9658 fi
9659
9660 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9661 # Warning - without using the other run time loading flags,
9662 # -berok will link without error, but may produce a broken library.
9663 no_undefined_flag=' $wl-bernotok'
9664 allow_undefined_flag=' $wl-berok'
9665 if test yes = "$with_gnu_ld"; then
9666 # We only use this code for GNU lds that support --whole-archive.
9667 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9668 else
9669 # Exported symbols can be pulled into shared objects from archives
9670 whole_archive_flag_spec='$convenience'
9671 fi
9672 archive_cmds_need_lc=yes
9673 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9674 # -brtl affects multiple linker settings, -berok does not and is overridden later
9675 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9676 if test svr4 != "$with_aix_soname"; then
9677 # This is similar to how AIX traditionally builds its shared libraries.
9678 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9679 fi
9680 if test aix != "$with_aix_soname"; then
9681 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9682 else
9683 # used by -dlpreopen to get the symbols
9684 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9685 fi
9686 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9687 fi
9688 fi
9689 ;;
9690
9691 amigaos*)
9692 case $host_cpu in
9693 powerpc)
9694 # see comment about AmigaOS4 .so support
9695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9696 archive_expsym_cmds=''
9697 ;;
9698 m68k)
9699 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)'
9700 hardcode_libdir_flag_spec='-L$libdir'
9701 hardcode_minus_L=yes
9702 ;;
9703 esac
9704 ;;
9705
9706 bsdi[45]*)
9707 export_dynamic_flag_spec=-rdynamic
9708 ;;
9709
9710 cygwin* | mingw* | pw32* | cegcc*)
9711 # When not using gcc, we currently assume that we are using
9712 # Microsoft Visual C++.
9713 # hardcode_libdir_flag_spec is actually meaningless, as there is
9714 # no search path for DLLs.
9715 case $cc_basename in
9716 cl*)
9717 # Native MSVC
9718 hardcode_libdir_flag_spec=' '
9719 allow_undefined_flag=unsupported
9720 always_export_symbols=yes
9721 file_list_spec='@'
9722 # Tell ltmain to make .lib files, not .a files.
9723 libext=lib
9724 # Tell ltmain to make .dll files, not .so files.
9725 shrext_cmds=.dll
9726 # FIXME: Setting linknames here is a bad hack.
9727 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9728 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9729 cp "$export_symbols" "$output_objdir/$soname.def";
9730 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9731 else
9732 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9733 fi~
9734 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9735 linknames='
9736 # The linker will not automatically build a static lib if we build a DLL.
9737 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9738 enable_shared_with_static_runtimes=yes
9739 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9741 # Don't use ranlib
9742 old_postinstall_cmds='chmod 644 $oldlib'
9743 postlink_cmds='lt_outputfile="@OUTPUT@"~
9744 lt_tool_outputfile="@TOOL_OUTPUT@"~
9745 case $lt_outputfile in
9746 *.exe|*.EXE) ;;
9747 *)
9748 lt_outputfile=$lt_outputfile.exe
9749 lt_tool_outputfile=$lt_tool_outputfile.exe
9750 ;;
9751 esac~
9752 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9753 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9754 $RM "$lt_outputfile.manifest";
9755 fi'
9756 ;;
9757 *)
9758 # Assume MSVC wrapper
9759 hardcode_libdir_flag_spec=' '
9760 allow_undefined_flag=unsupported
9761 # Tell ltmain to make .lib files, not .a files.
9762 libext=lib
9763 # Tell ltmain to make .dll files, not .so files.
9764 shrext_cmds=.dll
9765 # FIXME: Setting linknames here is a bad hack.
9766 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9767 # The linker will automatically build a .lib file if we build a DLL.
9768 old_archive_from_new_cmds='true'
9769 # FIXME: Should let the user specify the lib program.
9770 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9771 enable_shared_with_static_runtimes=yes
9772 ;;
9773 esac
9774 ;;
9775
9776 darwin* | rhapsody*)
9777
9778
9779 archive_cmds_need_lc=no
9780 hardcode_direct=no
9781 hardcode_automatic=yes
9782 hardcode_shlibpath_var=unsupported
9783 if test yes = "$lt_cv_ld_force_load"; then
9784 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9785
9786 else
9787 whole_archive_flag_spec=''
9788 fi
9789 link_all_deplibs=yes
9790 allow_undefined_flag=$_lt_dar_allow_undefined
9791 case $cc_basename in
9792 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9793 *) _lt_dar_can_shared=$GCC ;;
9794 esac
9795 if test yes = "$_lt_dar_can_shared"; then
9796 output_verbose_link_cmd=func_echo_all
9797 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9798 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9799 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"
9800 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"
9801
9802 else
9803 ld_shlibs=no
9804 fi
9805
9806 ;;
9807
9808 dgux*)
9809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810 hardcode_libdir_flag_spec='-L$libdir'
9811 hardcode_shlibpath_var=no
9812 ;;
9813
9814 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9815 # support. Future versions do this automatically, but an explicit c++rt0.o
9816 # does not break anything, and helps significantly (at the cost of a little
9817 # extra space).
9818 freebsd2.2*)
9819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9820 hardcode_libdir_flag_spec='-R$libdir'
9821 hardcode_direct=yes
9822 hardcode_shlibpath_var=no
9823 ;;
9824
9825 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9826 freebsd2.*)
9827 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9828 hardcode_direct=yes
9829 hardcode_minus_L=yes
9830 hardcode_shlibpath_var=no
9831 ;;
9832
9833 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9834 freebsd* | dragonfly*)
9835 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9836 hardcode_libdir_flag_spec='-R$libdir'
9837 hardcode_direct=yes
9838 hardcode_shlibpath_var=no
9839 ;;
9840
9841 hpux9*)
9842 if test yes = "$GCC"; then
9843 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9844 else
9845 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9846 fi
9847 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9848 hardcode_libdir_separator=:
9849 hardcode_direct=yes
9850
9851 # hardcode_minus_L: Not really in the search PATH,
9852 # but as the default location of the library.
9853 hardcode_minus_L=yes
9854 export_dynamic_flag_spec='$wl-E'
9855 ;;
9856
9857 hpux10*)
9858 if test yes,no = "$GCC,$with_gnu_ld"; then
9859 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9860 else
9861 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9862 fi
9863 if test no = "$with_gnu_ld"; then
9864 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9865 hardcode_libdir_separator=:
9866 hardcode_direct=yes
9867 hardcode_direct_absolute=yes
9868 export_dynamic_flag_spec='$wl-E'
9869 # hardcode_minus_L: Not really in the search PATH,
9870 # but as the default location of the library.
9871 hardcode_minus_L=yes
9872 fi
9873 ;;
9874
9875 hpux11*)
9876 if test yes,no = "$GCC,$with_gnu_ld"; then
9877 case $host_cpu in
9878 hppa*64*)
9879 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9880 ;;
9881 ia64*)
9882 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9883 ;;
9884 *)
9885 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9886 ;;
9887 esac
9888 else
9889 case $host_cpu in
9890 hppa*64*)
9891 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9892 ;;
9893 ia64*)
9894 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9895 ;;
9896 *)
9897
9898 # Older versions of the 11.00 compiler do not understand -b yet
9899 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9901 $as_echo_n "checking if $CC understands -b... " >&6; }
9902 if ${lt_cv_prog_compiler__b+:} false; then :
9903 $as_echo_n "(cached) " >&6
9904 else
9905 lt_cv_prog_compiler__b=no
9906 save_LDFLAGS=$LDFLAGS
9907 LDFLAGS="$LDFLAGS -b"
9908 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9909 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9910 # The linker can only warn and ignore the option if not recognized
9911 # So say no if there are warnings
9912 if test -s conftest.err; then
9913 # Append any errors to the config.log.
9914 cat conftest.err 1>&5
9915 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9917 if diff conftest.exp conftest.er2 >/dev/null; then
9918 lt_cv_prog_compiler__b=yes
9919 fi
9920 else
9921 lt_cv_prog_compiler__b=yes
9922 fi
9923 fi
9924 $RM -r conftest*
9925 LDFLAGS=$save_LDFLAGS
9926
9927 fi
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9929 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9930
9931 if test yes = "$lt_cv_prog_compiler__b"; then
9932 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9933 else
9934 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9935 fi
9936
9937 ;;
9938 esac
9939 fi
9940 if test no = "$with_gnu_ld"; then
9941 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9942 hardcode_libdir_separator=:
9943
9944 case $host_cpu in
9945 hppa*64*|ia64*)
9946 hardcode_direct=no
9947 hardcode_shlibpath_var=no
9948 ;;
9949 *)
9950 hardcode_direct=yes
9951 hardcode_direct_absolute=yes
9952 export_dynamic_flag_spec='$wl-E'
9953
9954 # hardcode_minus_L: Not really in the search PATH,
9955 # but as the default location of the library.
9956 hardcode_minus_L=yes
9957 ;;
9958 esac
9959 fi
9960 ;;
9961
9962 irix5* | irix6* | nonstopux*)
9963 if test yes = "$GCC"; then
9964 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9965 # Try to use the -exported_symbol ld option, if it does not
9966 # work, assume that -exports_file does not work either and
9967 # implicitly export all symbols.
9968 # This should be the same for all languages, so no per-tag cache variable.
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9970 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9971 if ${lt_cv_irix_exported_symbol+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 save_LDFLAGS=$LDFLAGS
9975 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h. */
9978 int foo (void) { return 0; }
9979 _ACEOF
9980 if ac_fn_c_try_link "$LINENO"; then :
9981 lt_cv_irix_exported_symbol=yes
9982 else
9983 lt_cv_irix_exported_symbol=no
9984 fi
9985 rm -f core conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987 LDFLAGS=$save_LDFLAGS
9988 fi
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9990 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9991 if test yes = "$lt_cv_irix_exported_symbol"; then
9992 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9993 fi
9994 link_all_deplibs=no
9995 else
9996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9998 fi
9999 archive_cmds_need_lc='no'
10000 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10001 hardcode_libdir_separator=:
10002 inherit_rpath=yes
10003 link_all_deplibs=yes
10004 ;;
10005
10006 linux*)
10007 case $cc_basename in
10008 tcc*)
10009 # Fabrice Bellard et al's Tiny C Compiler
10010 ld_shlibs=yes
10011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10012 ;;
10013 esac
10014 ;;
10015
10016 netbsd* | netbsdelf*-gnu)
10017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10019 else
10020 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10021 fi
10022 hardcode_libdir_flag_spec='-R$libdir'
10023 hardcode_direct=yes
10024 hardcode_shlibpath_var=no
10025 ;;
10026
10027 newsos6)
10028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029 hardcode_direct=yes
10030 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10031 hardcode_libdir_separator=:
10032 hardcode_shlibpath_var=no
10033 ;;
10034
10035 *nto* | *qnx*)
10036 ;;
10037
10038 openbsd* | bitrig*)
10039 if test -f /usr/libexec/ld.so; then
10040 hardcode_direct=yes
10041 hardcode_shlibpath_var=no
10042 hardcode_direct_absolute=yes
10043 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10046 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10047 export_dynamic_flag_spec='$wl-E'
10048 else
10049 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10050 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10051 fi
10052 else
10053 ld_shlibs=no
10054 fi
10055 ;;
10056
10057 os2*)
10058 hardcode_libdir_flag_spec='-L$libdir'
10059 hardcode_minus_L=yes
10060 allow_undefined_flag=unsupported
10061 shrext_cmds=.dll
10062 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10063 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10064 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10065 $ECHO EXPORTS >> $output_objdir/$libname.def~
10066 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10067 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10068 emximp -o $lib $output_objdir/$libname.def'
10069 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10070 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10071 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10072 $ECHO EXPORTS >> $output_objdir/$libname.def~
10073 prefix_cmds="$SED"~
10074 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10075 prefix_cmds="$prefix_cmds -e 1d";
10076 fi~
10077 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10078 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10079 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10080 emximp -o $lib $output_objdir/$libname.def'
10081 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10082 enable_shared_with_static_runtimes=yes
10083 ;;
10084
10085 osf3*)
10086 if test yes = "$GCC"; then
10087 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10088 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10089 else
10090 allow_undefined_flag=' -expect_unresolved \*'
10091 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10092 fi
10093 archive_cmds_need_lc='no'
10094 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10095 hardcode_libdir_separator=:
10096 ;;
10097
10098 osf4* | osf5*) # as osf3* with the addition of -msym flag
10099 if test yes = "$GCC"; then
10100 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10101 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10102 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10103 else
10104 allow_undefined_flag=' -expect_unresolved \*'
10105 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10106 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~
10107 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10108
10109 # Both c and cxx compiler support -rpath directly
10110 hardcode_libdir_flag_spec='-rpath $libdir'
10111 fi
10112 archive_cmds_need_lc='no'
10113 hardcode_libdir_separator=:
10114 ;;
10115
10116 solaris*)
10117 no_undefined_flag=' -z defs'
10118 if test yes = "$GCC"; then
10119 wlarc='$wl'
10120 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10122 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10123 else
10124 case `$CC -V 2>&1` in
10125 *"Compilers 5.0"*)
10126 wlarc=''
10127 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10129 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10130 ;;
10131 *)
10132 wlarc='$wl'
10133 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10134 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10135 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10136 ;;
10137 esac
10138 fi
10139 hardcode_libdir_flag_spec='-R$libdir'
10140 hardcode_shlibpath_var=no
10141 case $host_os in
10142 solaris2.[0-5] | solaris2.[0-5].*) ;;
10143 *)
10144 # The compiler driver will combine and reorder linker options,
10145 # but understands '-z linker_flag'. GCC discards it without '$wl',
10146 # but is careful enough not to reorder.
10147 # Supported since Solaris 2.6 (maybe 2.5.1?)
10148 if test yes = "$GCC"; then
10149 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10150 else
10151 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10152 fi
10153 ;;
10154 esac
10155 link_all_deplibs=yes
10156 ;;
10157
10158 sunos4*)
10159 if test sequent = "$host_vendor"; then
10160 # Use $CC to link under sequent, because it throws in some extra .o
10161 # files that make .init and .fini sections work.
10162 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10163 else
10164 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10165 fi
10166 hardcode_libdir_flag_spec='-L$libdir'
10167 hardcode_direct=yes
10168 hardcode_minus_L=yes
10169 hardcode_shlibpath_var=no
10170 ;;
10171
10172 sysv4)
10173 case $host_vendor in
10174 sni)
10175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176 hardcode_direct=yes # is this really true???
10177 ;;
10178 siemens)
10179 ## LD is ld it makes a PLAMLIB
10180 ## CC just makes a GrossModule.
10181 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10182 reload_cmds='$CC -r -o $output$reload_objs'
10183 hardcode_direct=no
10184 ;;
10185 motorola)
10186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10188 ;;
10189 esac
10190 runpath_var='LD_RUN_PATH'
10191 hardcode_shlibpath_var=no
10192 ;;
10193
10194 sysv4.3*)
10195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196 hardcode_shlibpath_var=no
10197 export_dynamic_flag_spec='-Bexport'
10198 ;;
10199
10200 sysv4*MP*)
10201 if test -d /usr/nec; then
10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_shlibpath_var=no
10204 runpath_var=LD_RUN_PATH
10205 hardcode_runpath_var=yes
10206 ld_shlibs=yes
10207 fi
10208 ;;
10209
10210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10211 no_undefined_flag='$wl-z,text'
10212 archive_cmds_need_lc=no
10213 hardcode_shlibpath_var=no
10214 runpath_var='LD_RUN_PATH'
10215
10216 if test yes = "$GCC"; then
10217 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219 else
10220 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 fi
10223 ;;
10224
10225 sysv5* | sco3.2v5* | sco5v6*)
10226 # Note: We CANNOT use -z defs as we might desire, because we do not
10227 # link with -lc, and that would cause any symbols used from libc to
10228 # always be unresolved, which means just about no library would
10229 # ever link correctly. If we're not using GNU ld we use -z text
10230 # though, which does catch some bad symbols but isn't as heavy-handed
10231 # as -z defs.
10232 no_undefined_flag='$wl-z,text'
10233 allow_undefined_flag='$wl-z,nodefs'
10234 archive_cmds_need_lc=no
10235 hardcode_shlibpath_var=no
10236 hardcode_libdir_flag_spec='$wl-R,$libdir'
10237 hardcode_libdir_separator=':'
10238 link_all_deplibs=yes
10239 export_dynamic_flag_spec='$wl-Bexport'
10240 runpath_var='LD_RUN_PATH'
10241
10242 if test yes = "$GCC"; then
10243 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10245 else
10246 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 fi
10249 ;;
10250
10251 uts4*)
10252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253 hardcode_libdir_flag_spec='-L$libdir'
10254 hardcode_shlibpath_var=no
10255 ;;
10256
10257 *)
10258 ld_shlibs=no
10259 ;;
10260 esac
10261
10262 if test sni = "$host_vendor"; then
10263 case $host in
10264 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10265 export_dynamic_flag_spec='$wl-Blargedynsym'
10266 ;;
10267 esac
10268 fi
10269 fi
10270
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10272 $as_echo "$ld_shlibs" >&6; }
10273 test no = "$ld_shlibs" && can_build_shared=no
10274
10275 with_gnu_ld=$with_gnu_ld
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291 #
10292 # Do we need to explicitly link libc?
10293 #
10294 case "x$archive_cmds_need_lc" in
10295 x|xyes)
10296 # Assume -lc should be added
10297 archive_cmds_need_lc=yes
10298
10299 if test yes,yes = "$GCC,$enable_shared"; then
10300 case $archive_cmds in
10301 *'~'*)
10302 # FIXME: we may have to deal with multi-command sequences.
10303 ;;
10304 '$CC '*)
10305 # Test whether the compiler implicitly links with -lc since on some
10306 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10307 # to ld, don't add -lc before -lgcc.
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10309 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10310 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 $RM conftest*
10314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10315
10316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10317 (eval $ac_compile) 2>&5
10318 ac_status=$?
10319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10320 test $ac_status = 0; } 2>conftest.err; then
10321 soname=conftest
10322 lib=conftest
10323 libobjs=conftest.$ac_objext
10324 deplibs=
10325 wl=$lt_prog_compiler_wl
10326 pic_flag=$lt_prog_compiler_pic
10327 compiler_flags=-v
10328 linker_flags=-v
10329 verstring=
10330 output_objdir=.
10331 libname=conftest
10332 lt_save_allow_undefined_flag=$allow_undefined_flag
10333 allow_undefined_flag=
10334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10335 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10336 ac_status=$?
10337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10338 test $ac_status = 0; }
10339 then
10340 lt_cv_archive_cmds_need_lc=no
10341 else
10342 lt_cv_archive_cmds_need_lc=yes
10343 fi
10344 allow_undefined_flag=$lt_save_allow_undefined_flag
10345 else
10346 cat conftest.err 1>&5
10347 fi
10348 $RM conftest*
10349
10350 fi
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10352 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10353 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10354 ;;
10355 esac
10356 fi
10357 ;;
10358 esac
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10512 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10513
10514 if test yes = "$GCC"; then
10515 case $host_os in
10516 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10517 *) lt_awk_arg='/^libraries:/' ;;
10518 esac
10519 case $host_os in
10520 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10521 *) lt_sed_strip_eq='s|=/|/|g' ;;
10522 esac
10523 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10524 case $lt_search_path_spec in
10525 *\;*)
10526 # if the path contains ";" then we assume it to be the separator
10527 # otherwise default to the standard path separator (i.e. ":") - it is
10528 # assumed that no part of a normal pathname contains ";" but that should
10529 # okay in the real world where ";" in dirpaths is itself problematic.
10530 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10531 ;;
10532 *)
10533 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10534 ;;
10535 esac
10536 # Ok, now we have the path, separated by spaces, we can step through it
10537 # and add multilib dir if necessary...
10538 lt_tmp_lt_search_path_spec=
10539 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10540 # ...but if some path component already ends with the multilib dir we assume
10541 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10542 case "$lt_multi_os_dir; $lt_search_path_spec " in
10543 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10544 lt_multi_os_dir=
10545 ;;
10546 esac
10547 for lt_sys_path in $lt_search_path_spec; do
10548 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10549 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10550 elif test -n "$lt_multi_os_dir"; then
10551 test -d "$lt_sys_path" && \
10552 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10553 fi
10554 done
10555 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10556 BEGIN {RS = " "; FS = "/|\n";} {
10557 lt_foo = "";
10558 lt_count = 0;
10559 for (lt_i = NF; lt_i > 0; lt_i--) {
10560 if ($lt_i != "" && $lt_i != ".") {
10561 if ($lt_i == "..") {
10562 lt_count++;
10563 } else {
10564 if (lt_count == 0) {
10565 lt_foo = "/" $lt_i lt_foo;
10566 } else {
10567 lt_count--;
10568 }
10569 }
10570 }
10571 }
10572 if (lt_foo != "") { lt_freq[lt_foo]++; }
10573 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10574 }'`
10575 # AWK program above erroneously prepends '/' to C:/dos/paths
10576 # for these hosts.
10577 case $host_os in
10578 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10579 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10580 esac
10581 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10582 else
10583 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10584 fi
10585 library_names_spec=
10586 libname_spec='lib$name'
10587 soname_spec=
10588 shrext_cmds=.so
10589 postinstall_cmds=
10590 postuninstall_cmds=
10591 finish_cmds=
10592 finish_eval=
10593 shlibpath_var=
10594 shlibpath_overrides_runpath=unknown
10595 version_type=none
10596 dynamic_linker="$host_os ld.so"
10597 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10598 need_lib_prefix=unknown
10599 hardcode_into_libs=no
10600
10601 # when you set need_version to no, make sure it does not cause -set_version
10602 # flags to be left without arguments
10603 need_version=unknown
10604
10605
10606
10607 case $host_os in
10608 aix3*)
10609 version_type=linux # correct to gnu/linux during the next big refactor
10610 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10611 shlibpath_var=LIBPATH
10612
10613 # AIX 3 has no versioning support, so we append a major version to the name.
10614 soname_spec='$libname$release$shared_ext$major'
10615 ;;
10616
10617 aix[4-9]*)
10618 version_type=linux # correct to gnu/linux during the next big refactor
10619 need_lib_prefix=no
10620 need_version=no
10621 hardcode_into_libs=yes
10622 if test ia64 = "$host_cpu"; then
10623 # AIX 5 supports IA64
10624 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 else
10627 # With GCC up to 2.95.x, collect2 would create an import file
10628 # for dependence libraries. The import file would start with
10629 # the line '#! .'. This would cause the generated library to
10630 # depend on '.', always an invalid library. This was fixed in
10631 # development snapshots of GCC prior to 3.0.
10632 case $host_os in
10633 aix4 | aix4.[01] | aix4.[01].*)
10634 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10635 echo ' yes '
10636 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10637 :
10638 else
10639 can_build_shared=no
10640 fi
10641 ;;
10642 esac
10643 # Using Import Files as archive members, it is possible to support
10644 # filename-based versioning of shared library archives on AIX. While
10645 # this would work for both with and without runtime linking, it will
10646 # prevent static linking of such archives. So we do filename-based
10647 # shared library versioning with .so extension only, which is used
10648 # when both runtime linking and shared linking is enabled.
10649 # Unfortunately, runtime linking may impact performance, so we do
10650 # not want this to be the default eventually. Also, we use the
10651 # versioned .so libs for executables only if there is the -brtl
10652 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10653 # To allow for filename-based versioning support, we need to create
10654 # libNAME.so.V as an archive file, containing:
10655 # *) an Import File, referring to the versioned filename of the
10656 # archive as well as the shared archive member, telling the
10657 # bitwidth (32 or 64) of that shared object, and providing the
10658 # list of exported symbols of that shared object, eventually
10659 # decorated with the 'weak' keyword
10660 # *) the shared object with the F_LOADONLY flag set, to really avoid
10661 # it being seen by the linker.
10662 # At run time we better use the real file rather than another symlink,
10663 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10664
10665 case $with_aix_soname,$aix_use_runtimelinking in
10666 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10667 # soname into executable. Probably we can add versioning support to
10668 # collect2, so additional links can be useful in future.
10669 aix,yes) # traditional libtool
10670 dynamic_linker='AIX unversionable lib.so'
10671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10672 # instead of lib<name>.a to let people know that these are not
10673 # typical AIX shared libraries.
10674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10675 ;;
10676 aix,no) # traditional AIX only
10677 dynamic_linker='AIX lib.a(lib.so.V)'
10678 # We preserve .a as extension for shared libraries through AIX4.2
10679 # and later when we are not doing run time linking.
10680 library_names_spec='$libname$release.a $libname.a'
10681 soname_spec='$libname$release$shared_ext$major'
10682 ;;
10683 svr4,*) # full svr4 only
10684 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10685 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10686 # We do not specify a path in Import Files, so LIBPATH fires.
10687 shlibpath_overrides_runpath=yes
10688 ;;
10689 *,yes) # both, prefer svr4
10690 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10691 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10692 # unpreferred sharedlib libNAME.a needs extra handling
10693 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10694 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10695 # We do not specify a path in Import Files, so LIBPATH fires.
10696 shlibpath_overrides_runpath=yes
10697 ;;
10698 *,no) # both, prefer aix
10699 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10700 library_names_spec='$libname$release.a $libname.a'
10701 soname_spec='$libname$release$shared_ext$major'
10702 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10703 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10704 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10705 ;;
10706 esac
10707 shlibpath_var=LIBPATH
10708 fi
10709 ;;
10710
10711 amigaos*)
10712 case $host_cpu in
10713 powerpc)
10714 # Since July 2007 AmigaOS4 officially supports .so libraries.
10715 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10717 ;;
10718 m68k)
10719 library_names_spec='$libname.ixlibrary $libname.a'
10720 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10721 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10722 ;;
10723 esac
10724 ;;
10725
10726 beos*)
10727 library_names_spec='$libname$shared_ext'
10728 dynamic_linker="$host_os ld.so"
10729 shlibpath_var=LIBRARY_PATH
10730 ;;
10731
10732 bsdi[45]*)
10733 version_type=linux # correct to gnu/linux during the next big refactor
10734 need_version=no
10735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10736 soname_spec='$libname$release$shared_ext$major'
10737 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10740 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10741 # the default ld.so.conf also contains /usr/contrib/lib and
10742 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10743 # libtool to hard-code these into programs
10744 ;;
10745
10746 cygwin* | mingw* | pw32* | cegcc*)
10747 version_type=windows
10748 shrext_cmds=.dll
10749 need_version=no
10750 need_lib_prefix=no
10751
10752 case $GCC,$cc_basename in
10753 yes,*)
10754 # gcc
10755 library_names_spec='$libname.dll.a'
10756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10757 postinstall_cmds='base_file=`basename \$file`~
10758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10759 dldir=$destdir/`dirname \$dlpath`~
10760 test -d \$dldir || mkdir -p \$dldir~
10761 $install_prog $dir/$dlname \$dldir/$dlname~
10762 chmod a+x \$dldir/$dlname~
10763 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10764 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10765 fi'
10766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10767 dlpath=$dir/\$dldll~
10768 $RM \$dlpath'
10769 shlibpath_overrides_runpath=yes
10770
10771 case $host_os in
10772 cygwin*)
10773 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10774 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10775
10776 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10777 ;;
10778 mingw* | cegcc*)
10779 # MinGW DLLs use traditional 'lib' prefix
10780 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10781 ;;
10782 pw32*)
10783 # pw32 DLLs use 'pw' prefix rather than 'lib'
10784 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10785 ;;
10786 esac
10787 dynamic_linker='Win32 ld.exe'
10788 ;;
10789
10790 *,cl*)
10791 # Native MSVC
10792 libname_spec='$name'
10793 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10794 library_names_spec='$libname.dll.lib'
10795
10796 case $build_os in
10797 mingw*)
10798 sys_lib_search_path_spec=
10799 lt_save_ifs=$IFS
10800 IFS=';'
10801 for lt_path in $LIB
10802 do
10803 IFS=$lt_save_ifs
10804 # Let DOS variable expansion print the short 8.3 style file name.
10805 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10806 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10807 done
10808 IFS=$lt_save_ifs
10809 # Convert to MSYS style.
10810 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10811 ;;
10812 cygwin*)
10813 # Convert to unix form, then to dos form, then back to unix form
10814 # but this time dos style (no spaces!) so that the unix form looks
10815 # like /cygdrive/c/PROGRA~1:/cygdr...
10816 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10817 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10818 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10819 ;;
10820 *)
10821 sys_lib_search_path_spec=$LIB
10822 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10823 # It is most probably a Windows format PATH.
10824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10825 else
10826 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10827 fi
10828 # FIXME: find the short name or the path components, as spaces are
10829 # common. (e.g. "Program Files" -> "PROGRA~1")
10830 ;;
10831 esac
10832
10833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10834 postinstall_cmds='base_file=`basename \$file`~
10835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10836 dldir=$destdir/`dirname \$dlpath`~
10837 test -d \$dldir || mkdir -p \$dldir~
10838 $install_prog $dir/$dlname \$dldir/$dlname'
10839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10840 dlpath=$dir/\$dldll~
10841 $RM \$dlpath'
10842 shlibpath_overrides_runpath=yes
10843 dynamic_linker='Win32 link.exe'
10844 ;;
10845
10846 *)
10847 # Assume MSVC wrapper
10848 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10849 dynamic_linker='Win32 ld.exe'
10850 ;;
10851 esac
10852 # FIXME: first we should search . and the directory the executable is in
10853 shlibpath_var=PATH
10854 ;;
10855
10856 darwin* | rhapsody*)
10857 dynamic_linker="$host_os dyld"
10858 version_type=darwin
10859 need_lib_prefix=no
10860 need_version=no
10861 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10862 soname_spec='$libname$release$major$shared_ext'
10863 shlibpath_overrides_runpath=yes
10864 shlibpath_var=DYLD_LIBRARY_PATH
10865 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10866
10867 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10868 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10869 ;;
10870
10871 dgux*)
10872 version_type=linux # correct to gnu/linux during the next big refactor
10873 need_lib_prefix=no
10874 need_version=no
10875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10876 soname_spec='$libname$release$shared_ext$major'
10877 shlibpath_var=LD_LIBRARY_PATH
10878 ;;
10879
10880 freebsd* | dragonfly*)
10881 # DragonFly does not have aout. When/if they implement a new
10882 # versioning mechanism, adjust this.
10883 if test -x /usr/bin/objformat; then
10884 objformat=`/usr/bin/objformat`
10885 else
10886 case $host_os in
10887 freebsd[23].*) objformat=aout ;;
10888 *) objformat=elf ;;
10889 esac
10890 fi
10891 version_type=freebsd-$objformat
10892 case $version_type in
10893 freebsd-elf*)
10894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10895 soname_spec='$libname$release$shared_ext$major'
10896 need_version=no
10897 need_lib_prefix=no
10898 ;;
10899 freebsd-*)
10900 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10901 need_version=yes
10902 ;;
10903 esac
10904 shlibpath_var=LD_LIBRARY_PATH
10905 case $host_os in
10906 freebsd2.*)
10907 shlibpath_overrides_runpath=yes
10908 ;;
10909 freebsd3.[01]* | freebsdelf3.[01]*)
10910 shlibpath_overrides_runpath=yes
10911 hardcode_into_libs=yes
10912 ;;
10913 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10914 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10915 shlibpath_overrides_runpath=no
10916 hardcode_into_libs=yes
10917 ;;
10918 *) # from 4.6 on, and DragonFly
10919 shlibpath_overrides_runpath=yes
10920 hardcode_into_libs=yes
10921 ;;
10922 esac
10923 ;;
10924
10925 haiku*)
10926 version_type=linux # correct to gnu/linux during the next big refactor
10927 need_lib_prefix=no
10928 need_version=no
10929 dynamic_linker="$host_os runtime_loader"
10930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10931 soname_spec='$libname$release$shared_ext$major'
10932 shlibpath_var=LIBRARY_PATH
10933 shlibpath_overrides_runpath=no
10934 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10935 hardcode_into_libs=yes
10936 ;;
10937
10938 hpux9* | hpux10* | hpux11*)
10939 # Give a soname corresponding to the major version so that dld.sl refuses to
10940 # link against other versions.
10941 version_type=sunos
10942 need_lib_prefix=no
10943 need_version=no
10944 case $host_cpu in
10945 ia64*)
10946 shrext_cmds='.so'
10947 hardcode_into_libs=yes
10948 dynamic_linker="$host_os dld.so"
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10952 soname_spec='$libname$release$shared_ext$major'
10953 if test 32 = "$HPUX_IA64_MODE"; then
10954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10955 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10956 else
10957 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10958 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10959 fi
10960 ;;
10961 hppa*64*)
10962 shrext_cmds='.sl'
10963 hardcode_into_libs=yes
10964 dynamic_linker="$host_os dld.sl"
10965 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10966 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10968 soname_spec='$libname$release$shared_ext$major'
10969 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10971 ;;
10972 *)
10973 shrext_cmds='.sl'
10974 dynamic_linker="$host_os dld.sl"
10975 shlibpath_var=SHLIB_PATH
10976 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10978 soname_spec='$libname$release$shared_ext$major'
10979 ;;
10980 esac
10981 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10982 postinstall_cmds='chmod 555 $lib'
10983 # or fails outright, so override atomically:
10984 install_override_mode=555
10985 ;;
10986
10987 interix[3-9]*)
10988 version_type=linux # correct to gnu/linux during the next big refactor
10989 need_lib_prefix=no
10990 need_version=no
10991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10992 soname_spec='$libname$release$shared_ext$major'
10993 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10994 shlibpath_var=LD_LIBRARY_PATH
10995 shlibpath_overrides_runpath=no
10996 hardcode_into_libs=yes
10997 ;;
10998
10999 irix5* | irix6* | nonstopux*)
11000 case $host_os in
11001 nonstopux*) version_type=nonstopux ;;
11002 *)
11003 if test yes = "$lt_cv_prog_gnu_ld"; then
11004 version_type=linux # correct to gnu/linux during the next big refactor
11005 else
11006 version_type=irix
11007 fi ;;
11008 esac
11009 need_lib_prefix=no
11010 need_version=no
11011 soname_spec='$libname$release$shared_ext$major'
11012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11013 case $host_os in
11014 irix5* | nonstopux*)
11015 libsuff= shlibsuff=
11016 ;;
11017 *)
11018 case $LD in # libtool.m4 will add one of these switches to LD
11019 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11020 libsuff= shlibsuff= libmagic=32-bit;;
11021 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11022 libsuff=32 shlibsuff=N32 libmagic=N32;;
11023 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11024 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11025 *) libsuff= shlibsuff= libmagic=never-match;;
11026 esac
11027 ;;
11028 esac
11029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11030 shlibpath_overrides_runpath=no
11031 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11032 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11033 hardcode_into_libs=yes
11034 ;;
11035
11036 # No shared lib support for Linux oldld, aout, or coff.
11037 linux*oldld* | linux*aout* | linux*coff*)
11038 dynamic_linker=no
11039 ;;
11040
11041 linux*android*)
11042 version_type=none # Android doesn't support versioned libraries.
11043 need_lib_prefix=no
11044 need_version=no
11045 library_names_spec='$libname$release$shared_ext'
11046 soname_spec='$libname$release$shared_ext'
11047 finish_cmds=
11048 shlibpath_var=LD_LIBRARY_PATH
11049 shlibpath_overrides_runpath=yes
11050
11051 # This implies no fast_install, which is unacceptable.
11052 # Some rework will be needed to allow for fast_install
11053 # before this can be enabled.
11054 hardcode_into_libs=yes
11055
11056 dynamic_linker='Android linker'
11057 # Don't embed -rpath directories since the linker doesn't support them.
11058 hardcode_libdir_flag_spec='-L$libdir'
11059 ;;
11060
11061 # This must be glibc/ELF.
11062 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11063 version_type=linux # correct to gnu/linux during the next big refactor
11064 need_lib_prefix=no
11065 need_version=no
11066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11067 soname_spec='$libname$release$shared_ext$major'
11068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=no
11071
11072 # Some binutils ld are patched to set DT_RUNPATH
11073 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076 lt_cv_shlibpath_overrides_runpath=no
11077 save_LDFLAGS=$LDFLAGS
11078 save_libdir=$libdir
11079 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11080 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11083
11084 int
11085 main ()
11086 {
11087
11088 ;
11089 return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_c_try_link "$LINENO"; then :
11093 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11094 lt_cv_shlibpath_overrides_runpath=yes
11095 fi
11096 fi
11097 rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LDFLAGS=$save_LDFLAGS
11100 libdir=$save_libdir
11101
11102 fi
11103
11104 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11105
11106 # This implies no fast_install, which is unacceptable.
11107 # Some rework will be needed to allow for fast_install
11108 # before this can be enabled.
11109 hardcode_into_libs=yes
11110
11111 # Ideally, we could use ldconfig to report *all* directores which are
11112 # searched for libraries, however this is still not possible. Aside from not
11113 # being certain /sbin/ldconfig is available, command
11114 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11115 # even though it is searched at run-time. Try to do the best guess by
11116 # appending ld.so.conf contents (and includes) to the search path.
11117 if test -f /etc/ld.so.conf; then
11118 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;s/"//g;/^$/d' | tr '\n' ' '`
11119 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11120 fi
11121
11122 # We used to test for /lib/ld.so.1 and disable shared libraries on
11123 # powerpc, because MkLinux only supported shared libraries with the
11124 # GNU dynamic linker. Since this was broken with cross compilers,
11125 # most powerpc-linux boxes support dynamic linking these days and
11126 # people can always --disable-shared, the test was removed, and we
11127 # assume the GNU/Linux dynamic linker is in use.
11128 dynamic_linker='GNU/Linux ld.so'
11129 ;;
11130
11131 netbsdelf*-gnu)
11132 version_type=linux
11133 need_lib_prefix=no
11134 need_version=no
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=no
11139 hardcode_into_libs=yes
11140 dynamic_linker='NetBSD ld.elf_so'
11141 ;;
11142
11143 netbsd*)
11144 version_type=sunos
11145 need_lib_prefix=no
11146 need_version=no
11147 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11148 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11150 dynamic_linker='NetBSD (a.out) ld.so'
11151 else
11152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153 soname_spec='$libname$release$shared_ext$major'
11154 dynamic_linker='NetBSD ld.elf_so'
11155 fi
11156 shlibpath_var=LD_LIBRARY_PATH
11157 shlibpath_overrides_runpath=yes
11158 hardcode_into_libs=yes
11159 ;;
11160
11161 newsos6)
11162 version_type=linux # correct to gnu/linux during the next big refactor
11163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=yes
11166 ;;
11167
11168 *nto* | *qnx*)
11169 version_type=qnx
11170 need_lib_prefix=no
11171 need_version=no
11172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11173 soname_spec='$libname$release$shared_ext$major'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=no
11176 hardcode_into_libs=yes
11177 dynamic_linker='ldqnx.so'
11178 ;;
11179
11180 openbsd* | bitrig*)
11181 version_type=sunos
11182 sys_lib_dlsearch_path_spec=/usr/lib
11183 need_lib_prefix=no
11184 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11185 need_version=no
11186 else
11187 need_version=yes
11188 fi
11189 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 shlibpath_overrides_runpath=yes
11193 ;;
11194
11195 os2*)
11196 libname_spec='$name'
11197 version_type=windows
11198 shrext_cmds=.dll
11199 need_version=no
11200 need_lib_prefix=no
11201 # OS/2 can only load a DLL with a base name of 8 characters or less.
11202 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11203 v=$($ECHO $release$versuffix | tr -d .-);
11204 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11205 $ECHO $n$v`$shared_ext'
11206 library_names_spec='${libname}_dll.$libext'
11207 dynamic_linker='OS/2 ld.exe'
11208 shlibpath_var=BEGINLIBPATH
11209 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11211 postinstall_cmds='base_file=`basename \$file`~
11212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11213 dldir=$destdir/`dirname \$dlpath`~
11214 test -d \$dldir || mkdir -p \$dldir~
11215 $install_prog $dir/$dlname \$dldir/$dlname~
11216 chmod a+x \$dldir/$dlname~
11217 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11218 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11219 fi'
11220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11221 dlpath=$dir/\$dldll~
11222 $RM \$dlpath'
11223 ;;
11224
11225 osf3* | osf4* | osf5*)
11226 version_type=osf
11227 need_lib_prefix=no
11228 need_version=no
11229 soname_spec='$libname$release$shared_ext$major'
11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11234 ;;
11235
11236 rdos*)
11237 dynamic_linker=no
11238 ;;
11239
11240 solaris*)
11241 version_type=linux # correct to gnu/linux during the next big refactor
11242 need_lib_prefix=no
11243 need_version=no
11244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11245 soname_spec='$libname$release$shared_ext$major'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 shlibpath_overrides_runpath=yes
11248 hardcode_into_libs=yes
11249 # ldd complains unless libraries are executable
11250 postinstall_cmds='chmod +x $lib'
11251 ;;
11252
11253 sunos4*)
11254 version_type=sunos
11255 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11257 shlibpath_var=LD_LIBRARY_PATH
11258 shlibpath_overrides_runpath=yes
11259 if test yes = "$with_gnu_ld"; then
11260 need_lib_prefix=no
11261 fi
11262 need_version=yes
11263 ;;
11264
11265 sysv4 | sysv4.3*)
11266 version_type=linux # correct to gnu/linux during the next big refactor
11267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11268 soname_spec='$libname$release$shared_ext$major'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 case $host_vendor in
11271 sni)
11272 shlibpath_overrides_runpath=no
11273 need_lib_prefix=no
11274 runpath_var=LD_RUN_PATH
11275 ;;
11276 siemens)
11277 need_lib_prefix=no
11278 ;;
11279 motorola)
11280 need_lib_prefix=no
11281 need_version=no
11282 shlibpath_overrides_runpath=no
11283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11284 ;;
11285 esac
11286 ;;
11287
11288 sysv4*MP*)
11289 if test -d /usr/nec; then
11290 version_type=linux # correct to gnu/linux during the next big refactor
11291 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11292 soname_spec='$libname$shared_ext.$major'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 fi
11295 ;;
11296
11297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11298 version_type=sco
11299 need_lib_prefix=no
11300 need_version=no
11301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11302 soname_spec='$libname$release$shared_ext$major'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 shlibpath_overrides_runpath=yes
11305 hardcode_into_libs=yes
11306 if test yes = "$with_gnu_ld"; then
11307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11308 else
11309 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11310 case $host_os in
11311 sco3.2v5*)
11312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11313 ;;
11314 esac
11315 fi
11316 sys_lib_dlsearch_path_spec='/usr/lib'
11317 ;;
11318
11319 tpf*)
11320 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11321 version_type=linux # correct to gnu/linux during the next big refactor
11322 need_lib_prefix=no
11323 need_version=no
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=no
11327 hardcode_into_libs=yes
11328 ;;
11329
11330 uts4*)
11331 version_type=linux # correct to gnu/linux during the next big refactor
11332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11333 soname_spec='$libname$release$shared_ext$major'
11334 shlibpath_var=LD_LIBRARY_PATH
11335 ;;
11336
11337 *)
11338 dynamic_linker=no
11339 ;;
11340 esac
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11342 $as_echo "$dynamic_linker" >&6; }
11343 test no = "$dynamic_linker" && can_build_shared=no
11344
11345 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11346 if test yes = "$GCC"; then
11347 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11348 fi
11349
11350 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11351 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11352 fi
11353
11354 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11355 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11356 fi
11357
11358 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11359 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11360
11361 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11362 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11363
11364 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11365 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11464 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11465 hardcode_action=
11466 if test -n "$hardcode_libdir_flag_spec" ||
11467 test -n "$runpath_var" ||
11468 test yes = "$hardcode_automatic"; then
11469
11470 # We can hardcode non-existent directories.
11471 if test no != "$hardcode_direct" &&
11472 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11473 # have to relink, otherwise we might link with an installed library
11474 # when we should be linking with a yet-to-be-installed one
11475 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11476 test no != "$hardcode_minus_L"; then
11477 # Linking always hardcodes the temporary library directory.
11478 hardcode_action=relink
11479 else
11480 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11481 hardcode_action=immediate
11482 fi
11483 else
11484 # We cannot hardcode anything, or else we can only hardcode existing
11485 # directories.
11486 hardcode_action=unsupported
11487 fi
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11489 $as_echo "$hardcode_action" >&6; }
11490
11491 if test relink = "$hardcode_action" ||
11492 test yes = "$inherit_rpath"; then
11493 # Fast installation is not supported
11494 enable_fast_install=no
11495 elif test yes = "$shlibpath_overrides_runpath" ||
11496 test no = "$enable_shared"; then
11497 # Fast installation is not necessary
11498 enable_fast_install=needless
11499 fi
11500
11501
11502
11503
11504
11505
11506 if test yes != "$enable_dlopen"; then
11507 enable_dlopen=unknown
11508 enable_dlopen_self=unknown
11509 enable_dlopen_self_static=unknown
11510 else
11511 lt_cv_dlopen=no
11512 lt_cv_dlopen_libs=
11513
11514 case $host_os in
11515 beos*)
11516 lt_cv_dlopen=load_add_on
11517 lt_cv_dlopen_libs=
11518 lt_cv_dlopen_self=yes
11519 ;;
11520
11521 mingw* | pw32* | cegcc*)
11522 lt_cv_dlopen=LoadLibrary
11523 lt_cv_dlopen_libs=
11524 ;;
11525
11526 cygwin*)
11527 lt_cv_dlopen=dlopen
11528 lt_cv_dlopen_libs=
11529 ;;
11530
11531 darwin*)
11532 # if libdl is installed we need to link against it
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11534 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11535 if ${ac_cv_lib_dl_dlopen+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-ldl $LIBS"
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11542
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 char dlopen ();
11550 int
11551 main ()
11552 {
11553 return dlopen ();
11554 ;
11555 return 0;
11556 }
11557 _ACEOF
11558 if ac_fn_c_try_link "$LINENO"; then :
11559 ac_cv_lib_dl_dlopen=yes
11560 else
11561 ac_cv_lib_dl_dlopen=no
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11566 fi
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11568 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11569 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11570 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11571 else
11572
11573 lt_cv_dlopen=dyld
11574 lt_cv_dlopen_libs=
11575 lt_cv_dlopen_self=yes
11576
11577 fi
11578
11579 ;;
11580
11581 tpf*)
11582 # Don't try to run any link tests for TPF. We know it's impossible
11583 # because TPF is a cross-compiler, and we know how we open DSOs.
11584 lt_cv_dlopen=dlopen
11585 lt_cv_dlopen_libs=
11586 lt_cv_dlopen_self=no
11587 ;;
11588
11589 *)
11590 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11591 if test "x$ac_cv_func_shl_load" = xyes; then :
11592 lt_cv_dlopen=shl_load
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11595 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11596 if ${ac_cv_lib_dld_shl_load+:} false; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-ldld $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11603
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 char shl_load ();
11611 int
11612 main ()
11613 {
11614 return shl_load ();
11615 ;
11616 return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_dld_shl_load=yes
11621 else
11622 ac_cv_lib_dld_shl_load=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11629 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11630 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11631 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11632 else
11633 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11634 if test "x$ac_cv_func_dlopen" = xyes; then :
11635 lt_cv_dlopen=dlopen
11636 else
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11638 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11639 if ${ac_cv_lib_dl_dlopen+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 ac_check_lib_save_LIBS=$LIBS
11643 LIBS="-ldl $LIBS"
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char dlopen ();
11654 int
11655 main ()
11656 {
11657 return dlopen ();
11658 ;
11659 return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 ac_cv_lib_dl_dlopen=yes
11664 else
11665 ac_cv_lib_dl_dlopen=no
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11672 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11673 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11674 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11675 else
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11677 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11678 if ${ac_cv_lib_svld_dlopen+:} false; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 ac_check_lib_save_LIBS=$LIBS
11682 LIBS="-lsvld $LIBS"
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11685
11686 /* Override any GCC internal prototype to avoid an error.
11687 Use char because int might match the return type of a GCC
11688 builtin and then its argument prototype would still apply. */
11689 #ifdef __cplusplus
11690 extern "C"
11691 #endif
11692 char dlopen ();
11693 int
11694 main ()
11695 {
11696 return dlopen ();
11697 ;
11698 return 0;
11699 }
11700 _ACEOF
11701 if ac_fn_c_try_link "$LINENO"; then :
11702 ac_cv_lib_svld_dlopen=yes
11703 else
11704 ac_cv_lib_svld_dlopen=no
11705 fi
11706 rm -f core conftest.err conftest.$ac_objext \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11709 fi
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11711 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11712 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11713 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11714 else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11716 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11717 if ${ac_cv_lib_dld_dld_link+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 ac_check_lib_save_LIBS=$LIBS
11721 LIBS="-ldld $LIBS"
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11724
11725 /* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 char dld_link ();
11732 int
11733 main ()
11734 {
11735 return dld_link ();
11736 ;
11737 return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_c_try_link "$LINENO"; then :
11741 ac_cv_lib_dld_dld_link=yes
11742 else
11743 ac_cv_lib_dld_dld_link=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11750 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11751 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11752 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11753 fi
11754
11755
11756 fi
11757
11758
11759 fi
11760
11761
11762 fi
11763
11764
11765 fi
11766
11767
11768 fi
11769
11770 ;;
11771 esac
11772
11773 if test no = "$lt_cv_dlopen"; then
11774 enable_dlopen=no
11775 else
11776 enable_dlopen=yes
11777 fi
11778
11779 case $lt_cv_dlopen in
11780 dlopen)
11781 save_CPPFLAGS=$CPPFLAGS
11782 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11783
11784 save_LDFLAGS=$LDFLAGS
11785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11786
11787 save_LIBS=$LIBS
11788 LIBS="$lt_cv_dlopen_libs $LIBS"
11789
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11791 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11792 if ${lt_cv_dlopen_self+:} false; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 if test yes = "$cross_compiling"; then :
11796 lt_cv_dlopen_self=cross
11797 else
11798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11799 lt_status=$lt_dlunknown
11800 cat > conftest.$ac_ext <<_LT_EOF
11801 #line $LINENO "configure"
11802 #include "confdefs.h"
11803
11804 #if HAVE_DLFCN_H
11805 #include <dlfcn.h>
11806 #endif
11807
11808 #include <stdio.h>
11809
11810 #ifdef RTLD_GLOBAL
11811 # define LT_DLGLOBAL RTLD_GLOBAL
11812 #else
11813 # ifdef DL_GLOBAL
11814 # define LT_DLGLOBAL DL_GLOBAL
11815 # else
11816 # define LT_DLGLOBAL 0
11817 # endif
11818 #endif
11819
11820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11821 find out it does not work in some platform. */
11822 #ifndef LT_DLLAZY_OR_NOW
11823 # ifdef RTLD_LAZY
11824 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11825 # else
11826 # ifdef DL_LAZY
11827 # define LT_DLLAZY_OR_NOW DL_LAZY
11828 # else
11829 # ifdef RTLD_NOW
11830 # define LT_DLLAZY_OR_NOW RTLD_NOW
11831 # else
11832 # ifdef DL_NOW
11833 # define LT_DLLAZY_OR_NOW DL_NOW
11834 # else
11835 # define LT_DLLAZY_OR_NOW 0
11836 # endif
11837 # endif
11838 # endif
11839 # endif
11840 #endif
11841
11842 /* When -fvisibility=hidden is used, assume the code has been annotated
11843 correspondingly for the symbols needed. */
11844 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11845 int fnord () __attribute__((visibility("default")));
11846 #endif
11847
11848 int fnord () { return 42; }
11849 int main ()
11850 {
11851 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11852 int status = $lt_dlunknown;
11853
11854 if (self)
11855 {
11856 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11857 else
11858 {
11859 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11860 else puts (dlerror ());
11861 }
11862 /* dlclose (self); */
11863 }
11864 else
11865 puts (dlerror ());
11866
11867 return status;
11868 }
11869 _LT_EOF
11870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11871 (eval $ac_link) 2>&5
11872 ac_status=$?
11873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11874 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11875 (./conftest; exit; ) >&5 2>/dev/null
11876 lt_status=$?
11877 case x$lt_status in
11878 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11879 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11880 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11881 esac
11882 else :
11883 # compilation failed
11884 lt_cv_dlopen_self=no
11885 fi
11886 fi
11887 rm -fr conftest*
11888
11889
11890 fi
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11892 $as_echo "$lt_cv_dlopen_self" >&6; }
11893
11894 if test yes = "$lt_cv_dlopen_self"; then
11895 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11897 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11898 if ${lt_cv_dlopen_self_static+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 if test yes = "$cross_compiling"; then :
11902 lt_cv_dlopen_self_static=cross
11903 else
11904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11905 lt_status=$lt_dlunknown
11906 cat > conftest.$ac_ext <<_LT_EOF
11907 #line $LINENO "configure"
11908 #include "confdefs.h"
11909
11910 #if HAVE_DLFCN_H
11911 #include <dlfcn.h>
11912 #endif
11913
11914 #include <stdio.h>
11915
11916 #ifdef RTLD_GLOBAL
11917 # define LT_DLGLOBAL RTLD_GLOBAL
11918 #else
11919 # ifdef DL_GLOBAL
11920 # define LT_DLGLOBAL DL_GLOBAL
11921 # else
11922 # define LT_DLGLOBAL 0
11923 # endif
11924 #endif
11925
11926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11927 find out it does not work in some platform. */
11928 #ifndef LT_DLLAZY_OR_NOW
11929 # ifdef RTLD_LAZY
11930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11931 # else
11932 # ifdef DL_LAZY
11933 # define LT_DLLAZY_OR_NOW DL_LAZY
11934 # else
11935 # ifdef RTLD_NOW
11936 # define LT_DLLAZY_OR_NOW RTLD_NOW
11937 # else
11938 # ifdef DL_NOW
11939 # define LT_DLLAZY_OR_NOW DL_NOW
11940 # else
11941 # define LT_DLLAZY_OR_NOW 0
11942 # endif
11943 # endif
11944 # endif
11945 # endif
11946 #endif
11947
11948 /* When -fvisibility=hidden is used, assume the code has been annotated
11949 correspondingly for the symbols needed. */
11950 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11951 int fnord () __attribute__((visibility("default")));
11952 #endif
11953
11954 int fnord () { return 42; }
11955 int main ()
11956 {
11957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11958 int status = $lt_dlunknown;
11959
11960 if (self)
11961 {
11962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11963 else
11964 {
11965 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11966 else puts (dlerror ());
11967 }
11968 /* dlclose (self); */
11969 }
11970 else
11971 puts (dlerror ());
11972
11973 return status;
11974 }
11975 _LT_EOF
11976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11977 (eval $ac_link) 2>&5
11978 ac_status=$?
11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11981 (./conftest; exit; ) >&5 2>/dev/null
11982 lt_status=$?
11983 case x$lt_status in
11984 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11985 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11986 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11987 esac
11988 else :
11989 # compilation failed
11990 lt_cv_dlopen_self_static=no
11991 fi
11992 fi
11993 rm -fr conftest*
11994
11995
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11998 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11999 fi
12000
12001 CPPFLAGS=$save_CPPFLAGS
12002 LDFLAGS=$save_LDFLAGS
12003 LIBS=$save_LIBS
12004 ;;
12005 esac
12006
12007 case $lt_cv_dlopen_self in
12008 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12009 *) enable_dlopen_self=unknown ;;
12010 esac
12011
12012 case $lt_cv_dlopen_self_static in
12013 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12014 *) enable_dlopen_self_static=unknown ;;
12015 esac
12016 fi
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034 striplib=
12035 old_striplib=
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12037 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12038 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12039 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12040 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12042 $as_echo "yes" >&6; }
12043 else
12044 # FIXME - insert some real tests, host_os isn't really good enough
12045 case $host_os in
12046 darwin*)
12047 if test -n "$STRIP"; then
12048 striplib="$STRIP -x"
12049 old_striplib="$STRIP -S"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12051 $as_echo "yes" >&6; }
12052 else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054 $as_echo "no" >&6; }
12055 fi
12056 ;;
12057 *)
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12060 ;;
12061 esac
12062 fi
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075 # Report what library types will actually be built
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12077 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12079 $as_echo "$can_build_shared" >&6; }
12080
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12082 $as_echo_n "checking whether to build shared libraries... " >&6; }
12083 test no = "$can_build_shared" && enable_shared=no
12084
12085 # On AIX, shared libraries and static libraries use the same namespace, and
12086 # are all built from PIC.
12087 case $host_os in
12088 aix3*)
12089 test yes = "$enable_shared" && enable_static=no
12090 if test -n "$RANLIB"; then
12091 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12092 postinstall_cmds='$RANLIB $lib'
12093 fi
12094 ;;
12095
12096 aix[4-9]*)
12097 if test ia64 != "$host_cpu"; then
12098 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12099 yes,aix,yes) ;; # shared object as lib.so file only
12100 yes,svr4,*) ;; # shared object as lib.so archive member only
12101 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12102 esac
12103 fi
12104 ;;
12105 esac
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12107 $as_echo "$enable_shared" >&6; }
12108
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12110 $as_echo_n "checking whether to build static libraries... " >&6; }
12111 # Make sure either enable_shared or enable_static is yes.
12112 test yes = "$enable_shared" || enable_static=yes
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12114 $as_echo "$enable_static" >&6; }
12115
12116
12117
12118
12119 fi
12120 ac_ext=c
12121 ac_cpp='$CPP $CPPFLAGS'
12122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12125
12126 CC=$lt_save_CC
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142 ac_config_commands="$ac_config_commands libtool"
12143
12144
12145
12146
12147 # Only expand once:
12148
12149
12150
12151
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl author" >&5
12153 $as_echo_n "checking spl author... " >&6; }
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_AUTHOR" >&5
12155 $as_echo "$SPL_META_AUTHOR" >&6; }
12156
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl license" >&5
12158 $as_echo_n "checking spl license... " >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_LICENSE" >&5
12160 $as_echo "$SPL_META_LICENSE" >&6; }
12161
12162
12163
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12165 $as_echo_n "checking linux distribution... " >&6; }
12166 if test -f /etc/toss-release ; then
12167 VENDOR=toss ;
12168 elif test -f /etc/fedora-release ; then
12169 VENDOR=fedora ;
12170 elif test -f /etc/redhat-release ; then
12171 VENDOR=redhat ;
12172 elif test -f /etc/gentoo-release ; then
12173 VENDOR=gentoo ;
12174 elif test -f /etc/arch-release ; then
12175 VENDOR=arch ;
12176 elif test -f /etc/SuSE-release ; then
12177 VENDOR=sles ;
12178 elif test -f /etc/slackware-version ; then
12179 VENDOR=slackware ;
12180 elif test -f /etc/lunar.release ; then
12181 VENDOR=lunar ;
12182 elif test -f /etc/lsb-release ; then
12183 VENDOR=ubuntu ;
12184 elif test -f /etc/debian_version ; then
12185 VENDOR=debian ;
12186 else
12187 VENDOR= ;
12188 fi
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12190 $as_echo "$VENDOR" >&6; }
12191
12192
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12194 $as_echo_n "checking default package type... " >&6; }
12195 case "$VENDOR" in
12196 toss) DEFAULT_PACKAGE=rpm ;;
12197 redhat) DEFAULT_PACKAGE=rpm ;;
12198 fedora) DEFAULT_PACKAGE=rpm ;;
12199 gentoo) DEFAULT_PACKAGE=tgz ;;
12200 arch) DEFAULT_PACKAGE=tgz ;;
12201 sles) DEFAULT_PACKAGE=rpm ;;
12202 slackware) DEFAULT_PACKAGE=tgz ;;
12203 lunar) DEFAULT_PACKAGE=tgz ;;
12204 ubuntu) DEFAULT_PACKAGE=deb ;;
12205 debian) DEFAULT_PACKAGE=deb ;;
12206 *) DEFAULT_PACKAGE=rpm ;;
12207 esac
12208
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12210 $as_echo "$DEFAULT_PACKAGE" >&6; }
12211
12212
12213
12214 RPM=rpm
12215 RPMBUILD=rpmbuild
12216
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12218 $as_echo_n "checking whether $RPM is available... " >&6; }
12219 if tmp=$($RPM --version 2>/dev/null); then :
12220
12221 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12222 HAVE_RPM=yes
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12224 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12225
12226 else
12227
12228 HAVE_RPM=no
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12230 $as_echo "$HAVE_RPM" >&6; }
12231
12232 fi
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12235 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12236 if tmp=$($RPMBUILD --version 2>/dev/null); then :
12237
12238 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12239 HAVE_RPMBUILD=yes
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12241 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12242
12243 else
12244
12245 HAVE_RPMBUILD=no
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12247 $as_echo "$HAVE_RPMBUILD" >&6; }
12248
12249 fi
12250
12251 RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
12252 RPM_DEFINE_UTIL=
12253 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
12254 RPM_DEFINE_DKMS=
12255
12256 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
12257 SRPM_DEFINE_UTIL=
12258 SRPM_DEFINE_KMOD=
12259 SRPM_DEFINE_DKMS=
12260
12261 RPM_SPEC_DIR="rpm/generic"
12262
12263 # Check whether --with-spec was given.
12264 if test "${with_spec+set}" = set; then :
12265 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12266 fi
12267
12268
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12270 $as_echo_n "checking whether spec files are available... " >&6; }
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12272 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293 DPKG=dpkg
12294 DPKGBUILD=dpkg-buildpackage
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12297 $as_echo_n "checking whether $DPKG is available... " >&6; }
12298 if tmp=$($DPKG --version 2>/dev/null); then :
12299
12300 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12301 HAVE_DPKG=yes
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12303 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12304
12305 else
12306
12307 HAVE_DPKG=no
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12309 $as_echo "$HAVE_DPKG" >&6; }
12310
12311 fi
12312
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12314 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12315 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
12316
12317 DPKGBUILD_VERSION=$(echo $tmp | \
12318 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12319 HAVE_DPKGBUILD=yes
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12321 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12322
12323 else
12324
12325 HAVE_DPKGBUILD=no
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12327 $as_echo "$HAVE_DPKGBUILD" >&6; }
12328
12329 fi
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340 ALIEN=alien
12341
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12343 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12344 if tmp=$($ALIEN --version 2>/dev/null); then :
12345
12346 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12347 HAVE_ALIEN=yes
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12349 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12350
12351 else
12352
12353 HAVE_ALIEN=no
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12355 $as_echo "$HAVE_ALIEN" >&6; }
12356
12357 fi
12358
12359
12360
12361
12362
12363
12364
12365 SPL_CONFIG=all
12366
12367 # Check whether --with-config was given.
12368 if test "${with_config+set}" = set; then :
12369 withval=$with_config; SPL_CONFIG="$withval"
12370 fi
12371
12372 # Check whether --enable-linux-builtin was given.
12373 if test "${enable_linux_builtin+set}" = set; then :
12374 enableval=$enable_linux_builtin;
12375 else
12376 enable_linux_builtin=no
12377 fi
12378
12379
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl config" >&5
12381 $as_echo_n "checking spl config... " >&6; }
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_CONFIG" >&5
12383 $as_echo "$SPL_CONFIG" >&6; };
12384
12385
12386 case "$SPL_CONFIG" in
12387 kernel)
12388
12389
12390 # Check whether --with-linux was given.
12391 if test "${with_linux+set}" = set; then :
12392 withval=$with_linux; kernelsrc="$withval"
12393 fi
12394
12395
12396
12397 # Check whether --with-linux-obj was given.
12398 if test "${with_linux_obj+set}" = set; then :
12399 withval=$with_linux_obj; kernelbuild="$withval"
12400 fi
12401
12402
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
12404 $as_echo_n "checking kernel source directory... " >&6; }
12405 if test -z "$kernelsrc"; then
12406 if test -e "/lib/modules/$(uname -r)/source"; then
12407 headersdir="/lib/modules/$(uname -r)/source"
12408 sourcelink=$(readlink -f "$headersdir")
12409 elif test -e "/lib/modules/$(uname -r)/build"; then
12410 headersdir="/lib/modules/$(uname -r)/build"
12411 sourcelink=$(readlink -f "$headersdir")
12412 else
12413 sourcelink=$(ls -1d /usr/src/kernels/* \
12414 /usr/src/linux-* \
12415 2>/dev/null | grep -v obj | tail -1)
12416 fi
12417
12418 if test -n "$sourcelink" && test -e ${sourcelink}; then
12419 kernelsrc=`readlink -f ${sourcelink}`
12420 else
12421 kernelsrc="Not found"
12422 fi
12423 else
12424 if test "$kernelsrc" = "NONE"; then
12425 kernsrcver=NONE
12426 fi
12427 fi
12428
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
12430 $as_echo "$kernelsrc" >&6; }
12431 if test ! -d "$kernelsrc"; then
12432 as_fn_error $? "
12433 *** Please make sure the kernel devel package for your distribution
12434 *** is installed and then try again. If that fails, you can specify the
12435 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
12436 fi
12437
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
12439 $as_echo_n "checking kernel build directory... " >&6; }
12440 if test -z "$kernelbuild"; then
12441 if test -e "/lib/modules/$(uname -r)/build"; then
12442 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12443 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12444 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12445 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12446 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12447 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12448 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12449 else
12450 kernelbuild=${kernelsrc}
12451 fi
12452 fi
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
12454 $as_echo "$kernelbuild" >&6; }
12455
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
12457 $as_echo_n "checking kernel source version... " >&6; }
12458 utsrelease1=$kernelbuild/include/linux/version.h
12459 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12460 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12461 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12462 utsrelease=linux/version.h
12463 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12464 utsrelease=linux/utsrelease.h
12465 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12466 utsrelease=generated/utsrelease.h
12467 fi
12468
12469 if test "$utsrelease"; then
12470 kernsrcver=`(echo "#include <$utsrelease>";
12471 echo "kernsrcver=UTS_RELEASE") |
12472 cpp -I $kernelbuild/include |
12473 grep "^kernsrcver=" | cut -d \" -f 2`
12474
12475 if test -z "$kernsrcver"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12477 $as_echo "Not found" >&6; }
12478 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
12479 fi
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12482 $as_echo "Not found" >&6; }
12483 if test "x$enable_linux_builtin" != xyes; then
12484 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
12485 else
12486 as_fn_error $? "
12487 *** Cannot find UTS_RELEASE definition.
12488 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
12489 fi
12490 fi
12491
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
12493 $as_echo "$kernsrcver" >&6; }
12494
12495 LINUX=${kernelsrc}
12496 LINUX_OBJ=${kernelbuild}
12497 LINUX_VERSION=${kernsrcver}
12498
12499
12500
12501
12502
12503
12504 modpost=$LINUX/scripts/Makefile.modpost
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
12506 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12507 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
12508 if grep -q Modules.symvers $modpost; then
12509 LINUX_SYMBOLS=Modules.symvers
12510 else
12511 LINUX_SYMBOLS=Module.symvers
12512 fi
12513
12514 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12515 as_fn_error $? "
12516 *** Please make sure the kernel devel package for your distribution
12517 *** is installed. If you are building with a custom kernel, make sure the
12518 *** kernel is configured, built, and the '--with-linux=PATH' configure
12519 *** option refers to the location of the kernel source." "$LINENO" 5
12520 fi
12521 else
12522 LINUX_SYMBOLS=NONE
12523 fi
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
12525 $as_echo "$LINUX_SYMBOLS" >&6; }
12526
12527
12528
12529
12530 if test "${LINUX_OBJ}" != "${LINUX}"; then
12531 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
12532 fi
12533
12534
12535 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
12536
12537
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
12540 $as_echo_n "checking whether debugging is enabled... " >&6; }
12541 # Check whether --enable-debug was given.
12542 if test "${enable_debug+set}" = set; then :
12543 enableval=$enable_debug;
12544 else
12545 enable_debug=no
12546 fi
12547
12548
12549 if test "x$enable_debug" = xyes; then :
12550
12551 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
12552 DEBUG_CFLAGS="-DDEBUG -Werror"
12553 DEBUG_SPL="_with_debug"
12554
12555 else
12556
12557 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
12558 DEBUG_CFLAGS="-DNDEBUG"
12559 DEBUG_SPL="_without_debug"
12560
12561 fi
12562
12563
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
12566 $as_echo "$enable_debug" >&6; }
12567
12568
12569 # Check whether --enable-debug-kmem was given.
12570 if test "${enable_debug_kmem+set}" = set; then :
12571 enableval=$enable_debug_kmem;
12572 else
12573 enable_debug_kmem=no
12574 fi
12575
12576
12577 if test "x$enable_debug_kmem" = xyes; then :
12578
12579 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
12580 DEBUG_KMEM="_with_debug_kmem"
12581
12582 $as_echo "#define DEBUG_KMEM 1" >>confdefs.h
12583
12584
12585 else
12586
12587 DEBUG_KMEM="_without_debug_kmem"
12588
12589 fi
12590
12591
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
12593 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
12595 $as_echo "$enable_debug_kmem" >&6; }
12596
12597
12598 # Check whether --enable-debug-kmem-tracking was given.
12599 if test "${enable_debug_kmem_tracking+set}" = set; then :
12600 enableval=$enable_debug_kmem_tracking;
12601 else
12602 enable_debug_kmem_tracking=no
12603 fi
12604
12605
12606 if test "x$enable_debug_kmem_tracking" = xyes; then :
12607
12608 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
12609 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
12610
12611 $as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
12612
12613
12614 else
12615
12616 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
12617
12618 fi
12619
12620
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
12622 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
12624 $as_echo "$enable_debug_kmem_tracking" >&6; }
12625
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
12627 $as_echo_n "checking whether modules can be built... " >&6; }
12628
12629
12630 cat confdefs.h - <<_ACEOF >conftest.c
12631
12632
12633 int
12634 main (void)
12635 {
12636
12637 ;
12638 return 0;
12639 }
12640
12641 _ACEOF
12642
12643
12644 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12645 echo "obj-m := conftest.o" >build/Makefile
12646 modpost_flag=''
12647 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12648 if { 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'
12649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12653 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12658 test $ac_status = 0; }; }; then :
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12661 $as_echo "yes" >&6; }
12662
12663 else
12664 $as_echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12669 if test "x$enable_linux_builtin" != xyes; then
12670 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
12671 else
12672 as_fn_error $? "
12673 *** Unable to build an empty module.
12674 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
12675 fi
12676
12677
12678
12679 fi
12680 rm -Rf build
12681
12682
12683
12684 if test "x$cross_compiling" != xyes; then :
12685
12686 if test "$cross_compiling" = yes; then :
12687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12689 as_fn_error $? "cannot run test program while cross compiling
12690 See \`config.log' for more details" "$LINENO" 5; }
12691 else
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12694
12695
12696 #include "$LINUX/include/linux/license.h"
12697
12698 int
12699 main ()
12700 {
12701
12702 return !license_is_gpl_compatible(
12703 "$SPL_META_LICENSE");
12704
12705 ;
12706 return 0;
12707 }
12708
12709 _ACEOF
12710 if ac_fn_c_try_run "$LINENO"; then :
12711
12712
12713 $as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h
12714
12715
12716 fi
12717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12718 conftest.$ac_objext conftest.beam conftest.$ac_ext
12719 fi
12720
12721
12722 fi
12723
12724
12725 # Check whether --enable-atomic-spinlocks was given.
12726 if test "${enable_atomic_spinlocks+set}" = set; then :
12727 enableval=$enable_atomic_spinlocks;
12728 else
12729 enable_atomic_spinlocks=check
12730 fi
12731
12732
12733
12734
12735 cat confdefs.h - <<_ACEOF >conftest.c
12736
12737
12738 #include <linux/fs.h>
12739
12740 int
12741 main (void)
12742 {
12743
12744 atomic64_t *ptr __attribute__ ((unused));
12745
12746 ;
12747 return 0;
12748 }
12749
12750 _ACEOF
12751
12752
12753 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12754 echo "obj-m := conftest.o" >build/Makefile
12755 modpost_flag=''
12756 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12757 if { 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'
12758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12762 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12764 (eval $ac_try) 2>&5
12765 ac_status=$?
12766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12767 test $ac_status = 0; }; }; then :
12768
12769 have_atomic64_t=yes
12770
12771 $as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
12772
12773
12774 else
12775 $as_echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 have_atomic64_t=no
12779
12780
12781
12782 fi
12783 rm -Rf build
12784
12785
12786
12787 if test "x$enable_atomic_spinlocks" = xcheck; then :
12788
12789 if test "x$have_atomic64_t" = xyes; then :
12790
12791 enable_atomic_spinlocks=no
12792
12793 else
12794
12795 enable_atomic_spinlocks=yes
12796
12797 fi
12798
12799 fi
12800
12801 if test "x$enable_atomic_spinlocks" = xyes; then :
12802
12803
12804 $as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
12805
12806
12807 else
12808
12809 if test "x$have_atomic64_t" = xno; then :
12810
12811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12813 as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
12814 See \`config.log' for more details" "$LINENO" 5; }
12815
12816 fi
12817
12818 fi
12819
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
12821 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
12823 $as_echo "$enable_atomic_spinlocks" >&6; }
12824
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
12826 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
12828 $as_echo "$have_atomic64_t" >&6; }
12829
12830
12831 tmp_flags="$EXTRA_KCFLAGS"
12832 EXTRA_KCFLAGS="-Werror"
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5
12834 $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
12835
12836
12837 cat confdefs.h - <<_ACEOF >conftest.c
12838
12839
12840 #include <linux/mm.h>
12841
12842 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
12843
12844 int
12845 main (void)
12846 {
12847
12848 struct shrinker cache_shrinker = {
12849 .shrink = shrinker_cb,
12850 .seeks = DEFAULT_SEEKS,
12851 };
12852 register_shrinker(&cache_shrinker);
12853
12854 ;
12855 return 0;
12856 }
12857
12858 _ACEOF
12859
12860
12861 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12862 echo "obj-m := conftest.o" >build/Makefile
12863 modpost_flag=''
12864 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12865 if { 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'
12866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12870 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12875 test $ac_status = 0; }; }; then :
12876
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12878 $as_echo "yes" >&6; }
12879
12880 $as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h
12881
12882
12883 else
12884 $as_echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12886
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5
12890 $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
12891
12892
12893 cat confdefs.h - <<_ACEOF >conftest.c
12894
12895
12896 #include <linux/mm.h>
12897
12898 int shrinker_cb(struct shrinker *, int nr_to_scan,
12899 gfp_t gfp_mask);
12900
12901 int
12902 main (void)
12903 {
12904
12905 struct shrinker cache_shrinker = {
12906 .shrink = shrinker_cb,
12907 .seeks = DEFAULT_SEEKS,
12908 };
12909 register_shrinker(&cache_shrinker);
12910
12911 ;
12912 return 0;
12913 }
12914
12915 _ACEOF
12916
12917
12918 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12919 echo "obj-m := conftest.o" >build/Makefile
12920 modpost_flag=''
12921 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12922 if { 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'
12923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12927 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12932 test $ac_status = 0; }; }; then :
12933
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12935 $as_echo "yes" >&6; }
12936
12937 $as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
12938
12939
12940 else
12941 $as_echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12943
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5
12947 $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
12948
12949
12950 cat confdefs.h - <<_ACEOF >conftest.c
12951
12952
12953 #include <linux/mm.h>
12954
12955 int shrinker_cb(struct shrinker *,
12956 struct shrink_control *sc);
12957
12958 int
12959 main (void)
12960 {
12961
12962 struct shrinker cache_shrinker = {
12963 .shrink = shrinker_cb,
12964 .seeks = DEFAULT_SEEKS,
12965 };
12966 register_shrinker(&cache_shrinker);
12967
12968 ;
12969 return 0;
12970 }
12971
12972 _ACEOF
12973
12974
12975 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12976 echo "obj-m := conftest.o" >build/Makefile
12977 modpost_flag=''
12978 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12979 if { 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'
12980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12984 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12989 test $ac_status = 0; }; }; then :
12990
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12992 $as_echo "yes" >&6; }
12993
12994 $as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h
12995
12996
12997 else
12998 $as_echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5
13004 $as_echo_n "checking whether ->count_objects callback exists... " >&6; }
13005
13006
13007 cat confdefs.h - <<_ACEOF >conftest.c
13008
13009
13010 #include <linux/mm.h>
13011
13012 unsigned long shrinker_cb(
13013 struct shrinker *,
13014 struct shrink_control *sc);
13015
13016 int
13017 main (void)
13018 {
13019
13020 struct shrinker cache_shrinker = {
13021 .count_objects = shrinker_cb,
13022 .scan_objects = shrinker_cb,
13023 .seeks = DEFAULT_SEEKS,
13024 };
13025 register_shrinker(&cache_shrinker);
13026
13027 ;
13028 return 0;
13029 }
13030
13031 _ACEOF
13032
13033
13034 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13035 echo "obj-m := conftest.o" >build/Makefile
13036 modpost_flag=''
13037 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13038 if { 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'
13039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13040 (eval $ac_try) 2>&5
13041 ac_status=$?
13042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13043 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13045 (eval $ac_try) 2>&5
13046 ac_status=$?
13047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13048 test $ac_status = 0; }; }; then :
13049
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13051 $as_echo "yes" >&6; }
13052
13053 $as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h
13054
13055
13056 else
13057 $as_echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13059
13060 as_fn_error $? "error" "$LINENO" 5
13061
13062
13063
13064 fi
13065 rm -Rf build
13066
13067
13068
13069
13070
13071 fi
13072 rm -Rf build
13073
13074
13075
13076
13077
13078 fi
13079 rm -Rf build
13080
13081
13082
13083
13084
13085 fi
13086 rm -Rf build
13087
13088
13089 EXTRA_KCFLAGS="$tmp_flags"
13090
13091
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
13093 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
13094
13095
13096 cat confdefs.h - <<_ACEOF >conftest.c
13097
13098
13099 #include <linux/sysctl.h>
13100
13101 int
13102 main (void)
13103 {
13104
13105 struct ctl_table ctl __attribute__ ((unused));
13106 ctl.ctl_name = 0;
13107
13108 ;
13109 return 0;
13110 }
13111
13112 _ACEOF
13113
13114
13115 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13116 echo "obj-m := conftest.o" >build/Makefile
13117 modpost_flag=''
13118 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13119 if { 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'
13120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13121 (eval $ac_try) 2>&5
13122 ac_status=$?
13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13129 test $ac_status = 0; }; }; then :
13130
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13132 $as_echo "yes" >&6; }
13133
13134 $as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
13135
13136
13137 else
13138 $as_echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142 $as_echo "no" >&6; }
13143
13144
13145
13146 fi
13147 rm -Rf build
13148
13149
13150
13151
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
13153 $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
13154
13155
13156 cat confdefs.h - <<_ACEOF >conftest.c
13157
13158
13159 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
13160 #error CONFIG_TRIM_UNUSED_KSYMS not defined
13161 #endif
13162
13163 int
13164 main (void)
13165 {
13166
13167 ;
13168 return 0;
13169 }
13170
13171 _ACEOF
13172
13173
13174 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13175 echo "obj-m := conftest.o" >build/Makefile
13176 modpost_flag=''
13177 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13178 if { 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'
13179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13185 (eval $ac_try) 2>&5
13186 ac_status=$?
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; }; }; then :
13189
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13191 $as_echo "yes" >&6; }
13192
13193 else
13194 $as_echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13196
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198 $as_echo "no" >&6; }
13199 as_fn_error $? "
13200 *** This kernel has unused symbols trimming enabled, please disable.
13201 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." "$LINENO" 5
13202
13203
13204
13205 fi
13206 rm -Rf build
13207
13208
13209
13210
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5
13212 $as_echo_n "checking whether PDE_DATA() is available... " >&6; }
13213
13214
13215
13216 cat confdefs.h - <<_ACEOF >conftest.c
13217
13218
13219 #include <linux/proc_fs.h>
13220
13221 int
13222 main (void)
13223 {
13224
13225 PDE_DATA(NULL);
13226
13227 ;
13228 return 0;
13229 }
13230
13231 _ACEOF
13232
13233
13234 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13235 echo "obj-m := conftest.o" >build/Makefile
13236 modpost_flag=''
13237 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13238 if { 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'
13239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13240 (eval $ac_try) 2>&5
13241 ac_status=$?
13242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13243 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13245 (eval $ac_try) 2>&5
13246 ac_status=$?
13247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13248 test $ac_status = 0; }; }; then :
13249 rc=0
13250 else
13251 $as_echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253 rc=1
13254
13255
13256 fi
13257 rm -Rf build
13258
13259
13260 if test $rc -ne 0; then :
13261
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13264
13265 else
13266 if test "x$enable_linux_builtin" != xyes; then
13267
13268 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
13269 $LINUX_OBJ/Module*.symvers 2>/dev/null
13270 rc=$?
13271 if test $rc -ne 0; then
13272 export=0
13273 for file in ; do
13274 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
13275 "$LINUX_OBJ/$file" 2>/dev/null
13276 rc=$?
13277 if test $rc -eq 0; then
13278 export=1
13279 break;
13280 fi
13281 done
13282 if test $export -eq 0; then :
13283 rc=1
13284 else :
13285 rc=0
13286 fi
13287 else :
13288 rc=0
13289 fi
13290
13291 fi
13292 if test $rc -ne 0; then :
13293
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296
13297 else :
13298
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13300 $as_echo "yes" >&6; }
13301
13302 $as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h
13303
13304
13305 fi
13306 fi
13307
13308
13309 tmp_flags="$EXTRA_KCFLAGS"
13310 EXTRA_KCFLAGS="-Werror"
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
13312 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
13313
13314
13315 cat confdefs.h - <<_ACEOF >conftest.c
13316
13317
13318 #include <linux/spinlock.h>
13319 #include <linux/fs_struct.h>
13320 #include <linux/path.h>
13321 void (*const set_fs_pwd_func)
13322 (struct fs_struct *, const struct path *)
13323 = set_fs_pwd;
13324
13325 int
13326 main (void)
13327 {
13328
13329 return 0;
13330
13331 ;
13332 return 0;
13333 }
13334
13335 _ACEOF
13336
13337
13338 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13339 echo "obj-m := conftest.o" >build/Makefile
13340 modpost_flag=''
13341 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13342 if { 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'
13343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13347 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13349 (eval $ac_try) 2>&5
13350 ac_status=$?
13351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13352 test $ac_status = 0; }; }; then :
13353
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13355 $as_echo "yes" >&6; }
13356
13357 $as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
13358
13359
13360 else
13361 $as_echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13363
13364
13365
13366 cat confdefs.h - <<_ACEOF >conftest.c
13367
13368
13369 #include <linux/spinlock.h>
13370 #include <linux/fs_struct.h>
13371 #include <linux/path.h>
13372 void (*const set_fs_pwd_func)
13373 (struct fs_struct *, struct path *)
13374 = set_fs_pwd;
13375
13376 int
13377 main (void)
13378 {
13379
13380 return 0;
13381
13382 ;
13383 return 0;
13384 }
13385
13386 _ACEOF
13387
13388
13389 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13390 echo "obj-m := conftest.o" >build/Makefile
13391 modpost_flag=''
13392 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13393 if { 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'
13394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13398 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13400 (eval $ac_try) 2>&5
13401 ac_status=$?
13402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13403 test $ac_status = 0; }; }; then :
13404
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13407
13408 else
13409 $as_echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 as_fn_error $? "unknown" "$LINENO" 5
13413
13414
13415
13416 fi
13417 rm -Rf build
13418
13419
13420
13421
13422
13423 fi
13424 rm -Rf build
13425
13426
13427 EXTRA_KCFLAGS="$tmp_flags"
13428
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
13430 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
13431
13432
13433 cat confdefs.h - <<_ACEOF >conftest.c
13434
13435
13436 #include <linux/fs.h>
13437
13438 int
13439 main (void)
13440 {
13441
13442 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
13443
13444 ;
13445 return 0;
13446 }
13447
13448 _ACEOF
13449
13450
13451 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13452 echo "obj-m := conftest.o" >build/Makefile
13453 modpost_flag=''
13454 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13455 if { 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'
13456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13457 (eval $ac_try) 2>&5
13458 ac_status=$?
13459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13460 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13465 test $ac_status = 0; }; }; then :
13466
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13468 $as_echo "yes" >&6; }
13469
13470 $as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
13471
13472
13473 else
13474 $as_echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5
13480 $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
13481
13482
13483 cat confdefs.h - <<_ACEOF >conftest.c
13484
13485
13486 #include <linux/fs.h>
13487
13488 int
13489 main (void)
13490 {
13491
13492 vfs_unlink((struct inode *) NULL,
13493 (struct dentry *) NULL,
13494 (struct inode **) NULL);
13495
13496 ;
13497 return 0;
13498 }
13499
13500 _ACEOF
13501
13502
13503 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13504 echo "obj-m := conftest.o" >build/Makefile
13505 modpost_flag=''
13506 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13507 if { 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'
13508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13512 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13514 (eval $ac_try) 2>&5
13515 ac_status=$?
13516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13517 test $ac_status = 0; }; }; then :
13518
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13520 $as_echo "yes" >&6; }
13521
13522 $as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h
13523
13524
13525 else
13526 $as_echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 as_fn_error $? "no" "$LINENO" 5
13530
13531
13532
13533 fi
13534 rm -Rf build
13535
13536
13537
13538
13539
13540
13541 fi
13542 rm -Rf build
13543
13544
13545
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
13547 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
13548
13549
13550 cat confdefs.h - <<_ACEOF >conftest.c
13551
13552
13553 #include <linux/fs.h>
13554
13555 int
13556 main (void)
13557 {
13558
13559 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
13560 (struct inode *) NULL, (struct dentry *) NULL);
13561
13562 ;
13563 return 0;
13564 }
13565
13566 _ACEOF
13567
13568
13569 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13570 echo "obj-m := conftest.o" >build/Makefile
13571 modpost_flag=''
13572 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13573 if { 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'
13574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13578 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13583 test $ac_status = 0; }; }; then :
13584
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13586 $as_echo "yes" >&6; }
13587
13588 $as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
13589
13590
13591 else
13592 $as_echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13594
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5
13598 $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
13599
13600
13601 cat confdefs.h - <<_ACEOF >conftest.c
13602
13603
13604 #include <linux/fs.h>
13605
13606 int
13607 main (void)
13608 {
13609
13610 vfs_rename((struct inode *) NULL,
13611 (struct dentry *) NULL,
13612 (struct inode *) NULL,
13613 (struct dentry *) NULL,
13614 (struct inode **) NULL);
13615
13616 ;
13617 return 0;
13618 }
13619
13620 _ACEOF
13621
13622
13623 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13624 echo "obj-m := conftest.o" >build/Makefile
13625 modpost_flag=''
13626 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13627 if { 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'
13628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13632 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637 test $ac_status = 0; }; }; then :
13638
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13640 $as_echo "yes" >&6; }
13641
13642 $as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h
13643
13644
13645 else
13646 $as_echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13648
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5
13652 $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
13653
13654
13655 cat confdefs.h - <<_ACEOF >conftest.c
13656
13657
13658 #include <linux/fs.h>
13659
13660 int
13661 main (void)
13662 {
13663
13664 vfs_rename((struct inode *) NULL,
13665 (struct dentry *) NULL,
13666 (struct inode *) NULL,
13667 (struct dentry *) NULL,
13668 (struct inode **) NULL,
13669 (unsigned int) 0);
13670
13671 ;
13672 return 0;
13673 }
13674
13675 _ACEOF
13676
13677
13678 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13679 echo "obj-m := conftest.o" >build/Makefile
13680 modpost_flag=''
13681 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13682 if { 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'
13683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13687 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13692 test $ac_status = 0; }; }; then :
13693
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13695 $as_echo "yes" >&6; }
13696
13697 $as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h
13698
13699
13700 else
13701 $as_echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704 as_fn_error $? "no" "$LINENO" 5
13705
13706
13707
13708 fi
13709 rm -Rf build
13710
13711
13712
13713
13714
13715 fi
13716 rm -Rf build
13717
13718
13719
13720
13721
13722 fi
13723 rm -Rf build
13724
13725
13726
13727
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
13729 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
13730
13731
13732 cat confdefs.h - <<_ACEOF >conftest.c
13733
13734
13735 #include <linux/fs.h>
13736
13737 int
13738 main (void)
13739 {
13740
13741 vfs_fsync(NULL, 0);
13742
13743 ;
13744 return 0;
13745 }
13746
13747 _ACEOF
13748
13749
13750 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13751 echo "obj-m := conftest.o" >build/Makefile
13752 modpost_flag=''
13753 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13754 if { 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'
13755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13759 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13761 (eval $ac_try) 2>&5
13762 ac_status=$?
13763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13764 test $ac_status = 0; }; }; then :
13765
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13767 $as_echo "yes" >&6; }
13768
13769 $as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
13770
13771
13772 else
13773 $as_echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13778
13779
13780
13781 fi
13782 rm -Rf build
13783
13784
13785
13786
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
13788 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
13789
13790
13791 cat confdefs.h - <<_ACEOF >conftest.c
13792
13793
13794 #include <linux/fs.h>
13795
13796 int
13797 main (void)
13798 {
13799
13800 struct inode_operations ops;
13801 ops.truncate_range = NULL;
13802
13803 ;
13804 return 0;
13805 }
13806
13807 _ACEOF
13808
13809
13810 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13811 echo "obj-m := conftest.o" >build/Makefile
13812 modpost_flag=''
13813 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13814 if { 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'
13815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13819 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13821 (eval $ac_try) 2>&5
13822 ac_status=$?
13823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13824 test $ac_status = 0; }; }; then :
13825
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13827 $as_echo "yes" >&6; }
13828
13829 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
13830
13831
13832 else
13833 $as_echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13835
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 $as_echo "no" >&6; }
13838
13839
13840
13841 fi
13842 rm -Rf build
13843
13844
13845
13846
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
13848 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
13849 tmp_flags="$EXTRA_KCFLAGS"
13850 EXTRA_KCFLAGS="-Werror"
13851
13852
13853 cat confdefs.h - <<_ACEOF >conftest.c
13854
13855
13856 #include <linux/sched.h>
13857 #include <linux/fs_struct.h>
13858
13859 int
13860 main (void)
13861 {
13862
13863 static struct fs_struct fs;
13864 spin_lock_init(&fs.lock);
13865
13866 ;
13867 return 0;
13868 }
13869
13870 _ACEOF
13871
13872
13873 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13874 echo "obj-m := conftest.o" >build/Makefile
13875 modpost_flag=''
13876 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13877 if { 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'
13878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13879 (eval $ac_try) 2>&5
13880 ac_status=$?
13881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13882 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13887 test $ac_status = 0; }; }; then :
13888
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13890 $as_echo "yes" >&6; }
13891
13892 $as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
13893
13894
13895 else
13896 $as_echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13898
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900 $as_echo "no" >&6; }
13901
13902
13903
13904 fi
13905 rm -Rf build
13906
13907
13908 EXTRA_KCFLAGS="$tmp_flags"
13909
13910
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5
13912 $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
13913
13914
13915 cat confdefs.h - <<_ACEOF >conftest.c
13916
13917
13918 #include <linux/uidgid.h>
13919
13920 int
13921 main (void)
13922 {
13923
13924 kuid_t userid = KUIDT_INIT(0);
13925 kgid_t groupid = KGIDT_INIT(0);
13926
13927 ;
13928 return 0;
13929 }
13930
13931 _ACEOF
13932
13933
13934 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13935 echo "obj-m := conftest.o" >build/Makefile
13936 modpost_flag=''
13937 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13938 if { 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'
13939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13940 (eval $ac_try) 2>&5
13941 ac_status=$?
13942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13943 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13945 (eval $ac_try) 2>&5
13946 ac_status=$?
13947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13948 test $ac_status = 0; }; }; then :
13949
13950
13951
13952 cat confdefs.h - <<_ACEOF >conftest.c
13953
13954
13955 #include <linux/uidgid.h>
13956
13957 int
13958 main (void)
13959 {
13960
13961 kuid_t userid = 0;
13962 kgid_t groupid = 0;
13963
13964 ;
13965 return 0;
13966 }
13967
13968 _ACEOF
13969
13970
13971 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13972 echo "obj-m := conftest.o" >build/Makefile
13973 modpost_flag=''
13974 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13975 if { 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'
13976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13977 (eval $ac_try) 2>&5
13978 ac_status=$?
13979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13980 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13985 test $ac_status = 0; }; }; then :
13986
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5
13988 $as_echo "yes; optional" >&6; }
13989
13990 else
13991 $as_echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13993
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5
13995 $as_echo "yes; mandatory" >&6; }
13996
13997 $as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h
13998
13999
14000
14001
14002 fi
14003 rm -Rf build
14004
14005
14006
14007 else
14008 $as_echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14010
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012 $as_echo "no" >&6; }
14013
14014
14015
14016 fi
14017 rm -Rf build
14018
14019
14020
14021
14022
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
14024 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
14025
14026
14027 cat confdefs.h - <<_ACEOF >conftest.c
14028
14029
14030 #include <linux/fs.h>
14031
14032 int
14033 main (void)
14034 {
14035
14036 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
14037 struct file_operations fops __attribute__ ((unused)) = {
14038 .fallocate = fallocate,
14039 };
14040
14041 ;
14042 return 0;
14043 }
14044
14045 _ACEOF
14046
14047
14048 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14049 echo "obj-m := conftest.o" >build/Makefile
14050 modpost_flag=''
14051 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14052 if { 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'
14053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14054 (eval $ac_try) 2>&5
14055 ac_status=$?
14056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14057 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14062 test $ac_status = 0; }; }; then :
14063
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14065 $as_echo "yes" >&6; }
14066
14067 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
14068
14069
14070 else
14071 $as_echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14073
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14075 $as_echo "no" >&6; }
14076
14077
14078
14079 fi
14080 rm -Rf build
14081
14082
14083
14084
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
14086 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
14087
14088
14089 cat confdefs.h - <<_ACEOF >conftest.c
14090
14091
14092 #include <linux/fs.h>
14093
14094 int
14095 main (void)
14096 {
14097
14098 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
14099 struct inode_operations fops __attribute__ ((unused)) = {
14100 .fallocate = fallocate,
14101 };
14102
14103 ;
14104 return 0;
14105 }
14106
14107 _ACEOF
14108
14109
14110 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14111 echo "obj-m := conftest.o" >build/Makefile
14112 modpost_flag=''
14113 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14114 if { 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'
14115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14119 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14121 (eval $ac_try) 2>&5
14122 ac_status=$?
14123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14124 test $ac_status = 0; }; }; then :
14125
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14127 $as_echo "yes" >&6; }
14128
14129 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
14130
14131
14132 else
14133 $as_echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14137 $as_echo "no" >&6; }
14138
14139
14140
14141 fi
14142 rm -Rf build
14143
14144
14145
14146
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
14148 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
14149
14150
14151 cat confdefs.h - <<_ACEOF >conftest.c
14152
14153
14154 #include <linux/fs.h>
14155
14156 int
14157 main (void)
14158 {
14159
14160 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
14161 struct file_operations_no_const fops __attribute__ ((unused)) = {
14162 .fallocate = fallocate,
14163 };
14164
14165 ;
14166 return 0;
14167 }
14168
14169 _ACEOF
14170
14171
14172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14173 echo "obj-m := conftest.o" >build/Makefile
14174 modpost_flag=''
14175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14176 if { 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'
14177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14181 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14186 test $ac_status = 0; }; }; then :
14187
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14189 $as_echo "yes" >&6; }
14190
14191 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
14192
14193
14194 else
14195 $as_echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14197
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14200
14201
14202
14203 fi
14204 rm -Rf build
14205
14206
14207
14208
14209
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
14211 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
14212
14213
14214 cat confdefs.h - <<_ACEOF >conftest.c
14215
14216
14217 #if !defined(CONFIG_ZLIB_INFLATE) && \
14218 !defined(CONFIG_ZLIB_INFLATE_MODULE)
14219 #error CONFIG_ZLIB_INFLATE not defined
14220 #endif
14221
14222 int
14223 main (void)
14224 {
14225
14226 ;
14227 return 0;
14228 }
14229
14230 _ACEOF
14231
14232
14233 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14234 echo "obj-m := conftest.o" >build/Makefile
14235 modpost_flag=''
14236 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14237 if { 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'
14238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14242 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14244 (eval $ac_try) 2>&5
14245 ac_status=$?
14246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14247 test $ac_status = 0; }; }; then :
14248
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14250 $as_echo "yes" >&6; }
14251
14252 else
14253 $as_echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14255
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14258 as_fn_error $? "
14259 *** This kernel does not include the required zlib inflate support.
14260 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
14261
14262
14263
14264 fi
14265 rm -Rf build
14266
14267
14268
14269
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
14271 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
14272
14273
14274 cat confdefs.h - <<_ACEOF >conftest.c
14275
14276
14277 #if !defined(CONFIG_ZLIB_DEFLATE) && \
14278 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
14279 #error CONFIG_ZLIB_DEFLATE not defined
14280 #endif
14281
14282 int
14283 main (void)
14284 {
14285
14286 ;
14287 return 0;
14288 }
14289
14290 _ACEOF
14291
14292
14293 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14294 echo "obj-m := conftest.o" >build/Makefile
14295 modpost_flag=''
14296 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14297 if { 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'
14298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14302 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14304 (eval $ac_try) 2>&5
14305 ac_status=$?
14306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14307 test $ac_status = 0; }; }; then :
14308
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14310 $as_echo "yes" >&6; }
14311
14312 else
14313 $as_echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14317 $as_echo "no" >&6; }
14318 as_fn_error $? "
14319 *** This kernel does not include the required zlib deflate support.
14320 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
14321
14322
14323
14324 fi
14325 rm -Rf build
14326
14327
14328
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
14330 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
14331
14332
14333 cat confdefs.h - <<_ACEOF >conftest.c
14334
14335
14336 #include <linux/zlib.h>
14337
14338 int
14339 main (void)
14340 {
14341
14342 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
14343
14344 ;
14345 return 0;
14346 }
14347
14348 _ACEOF
14349
14350
14351 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14352 echo "obj-m := conftest.o" >build/Makefile
14353 modpost_flag=''
14354 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14355 if { 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'
14356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14360 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14365 test $ac_status = 0; }; }; then :
14366
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14368 $as_echo "yes" >&6; }
14369
14370 $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
14371
14372
14373 else
14374 $as_echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14376
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14378 $as_echo "no" >&6; }
14379
14380
14381
14382 fi
14383 rm -Rf build
14384
14385
14386
14387
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
14389 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
14390
14391
14392 cat confdefs.h - <<_ACEOF >conftest.c
14393
14394
14395 #include <linux/mm.h>
14396
14397 int
14398 main (void)
14399 {
14400
14401 struct shrink_control sc __attribute__ ((unused));
14402
14403 sc.nr_to_scan = 0;
14404 sc.gfp_mask = GFP_KERNEL;
14405
14406 ;
14407 return 0;
14408 }
14409
14410 _ACEOF
14411
14412
14413 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14414 echo "obj-m := conftest.o" >build/Makefile
14415 modpost_flag=''
14416 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14417 if { 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'
14418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14419 (eval $ac_try) 2>&5
14420 ac_status=$?
14421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14422 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14427 test $ac_status = 0; }; }; then :
14428
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14430 $as_echo "yes" >&6; }
14431
14432 $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
14433
14434
14435 else
14436 $as_echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440 $as_echo "no" >&6; }
14441
14442
14443
14444 fi
14445 rm -Rf build
14446
14447
14448
14449
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
14451 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
14452 tmp_flags="$EXTRA_KCFLAGS"
14453 EXTRA_KCFLAGS="-Werror"
14454
14455
14456 cat confdefs.h - <<_ACEOF >conftest.c
14457
14458
14459 #include <linux/rwsem.h>
14460
14461 int
14462 main (void)
14463 {
14464
14465 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14466 raw_spinlock_t dummy_lock __attribute__ ((unused));
14467 dummy_semaphore.wait_lock = dummy_lock;
14468
14469 ;
14470 return 0;
14471 }
14472
14473 _ACEOF
14474
14475
14476 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14477 echo "obj-m := conftest.o" >build/Makefile
14478 modpost_flag=''
14479 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14480 if { 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'
14481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14485 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14490 test $ac_status = 0; }; }; then :
14491
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14493 $as_echo "yes" >&6; }
14494
14495 $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
14496
14497
14498 else
14499 $as_echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14504
14505
14506
14507 fi
14508 rm -Rf build
14509
14510
14511 EXTRA_KCFLAGS="$tmp_flags"
14512
14513
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5
14515 $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
14516 tmp_flags="$EXTRA_KCFLAGS"
14517 EXTRA_KCFLAGS="-Werror"
14518
14519
14520 cat confdefs.h - <<_ACEOF >conftest.c
14521
14522
14523 #include <linux/rwsem.h>
14524
14525 int
14526 main (void)
14527 {
14528
14529 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14530 dummy_semaphore.activity = 0;
14531
14532 ;
14533 return 0;
14534 }
14535
14536 _ACEOF
14537
14538
14539 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14540 echo "obj-m := conftest.o" >build/Makefile
14541 modpost_flag=''
14542 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14543 if { 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'
14544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14548 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14550 (eval $ac_try) 2>&5
14551 ac_status=$?
14552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14553 test $ac_status = 0; }; }; then :
14554
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14556 $as_echo "yes" >&6; }
14557
14558 $as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h
14559
14560
14561 else
14562 $as_echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14564
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14567
14568
14569
14570 fi
14571 rm -Rf build
14572
14573
14574 EXTRA_KCFLAGS="$tmp_flags"
14575
14576
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5
14578 $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
14579 tmp_flags="$EXTRA_KCFLAGS"
14580 EXTRA_KCFLAGS="-Werror"
14581
14582
14583 cat confdefs.h - <<_ACEOF >conftest.c
14584
14585
14586 #include <linux/rwsem.h>
14587
14588 int
14589 main (void)
14590 {
14591
14592 DECLARE_RWSEM(dummy_semaphore);
14593 (void) atomic_long_read(&dummy_semaphore.count);
14594
14595 ;
14596 return 0;
14597 }
14598
14599 _ACEOF
14600
14601
14602 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14603 echo "obj-m := conftest.o" >build/Makefile
14604 modpost_flag=''
14605 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14606 if { 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'
14607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14611 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14613 (eval $ac_try) 2>&5
14614 ac_status=$?
14615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14616 test $ac_status = 0; }; }; then :
14617
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14619 $as_echo "yes" >&6; }
14620
14621 $as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h
14622
14623
14624 else
14625 $as_echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14627
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14629 $as_echo "no" >&6; }
14630
14631
14632
14633 fi
14634 rm -Rf build
14635
14636
14637 EXTRA_KCFLAGS="$tmp_flags"
14638
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
14640 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
14641
14642
14643 cat confdefs.h - <<_ACEOF >conftest.c
14644
14645
14646 #include <linux/sched.h>
14647 #include <linux/sched/rt.h>
14648
14649 int
14650 main (void)
14651 {
14652
14653 return 0;
14654
14655 ;
14656 return 0;
14657 }
14658
14659 _ACEOF
14660
14661
14662 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14663 echo "obj-m := conftest.o" >build/Makefile
14664 modpost_flag=''
14665 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14666 if { 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'
14667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14671 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14676 test $ac_status = 0; }; }; then :
14677
14678
14679 $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
14680
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14682 $as_echo "yes" >&6; }
14683
14684 else
14685 $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689 $as_echo "no" >&6; }
14690
14691
14692
14693 fi
14694 rm -Rf build
14695
14696
14697
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/signal.h exists" >&5
14699 $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
14700
14701
14702 cat confdefs.h - <<_ACEOF >conftest.c
14703
14704
14705 #include <linux/sched.h>
14706 #include <linux/sched/signal.h>
14707
14708 int
14709 main (void)
14710 {
14711
14712 return 0;
14713
14714 ;
14715 return 0;
14716 }
14717
14718 _ACEOF
14719
14720
14721 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14722 echo "obj-m := conftest.o" >build/Makefile
14723 modpost_flag=''
14724 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14725 if { 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'
14726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14727 (eval $ac_try) 2>&5
14728 ac_status=$?
14729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14730 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14735 test $ac_status = 0; }; }; then :
14736
14737
14738 $as_echo "#define HAVE_SCHED_SIGNAL_HEADER 1" >>confdefs.h
14739
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14741 $as_echo "yes" >&6; }
14742
14743 else
14744 $as_echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14746
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 $as_echo "no" >&6; }
14749
14750
14751
14752 fi
14753 rm -Rf build
14754
14755
14756
14757
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 4 args" >&5
14759 $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
14760
14761
14762 cat confdefs.h - <<_ACEOF >conftest.c
14763
14764
14765 #include <linux/fs.h>
14766
14767 int
14768 main (void)
14769 {
14770
14771 vfs_getattr((const struct path *)NULL,
14772 (struct kstat *)NULL,
14773 (u32)0,
14774 (unsigned int)0);
14775
14776 ;
14777 return 0;
14778 }
14779
14780 _ACEOF
14781
14782
14783 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14784 echo "obj-m := conftest.o" >build/Makefile
14785 modpost_flag=''
14786 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14787 if { 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'
14788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14789 (eval $ac_try) 2>&5
14790 ac_status=$?
14791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14792 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14797 test $ac_status = 0; }; }; then :
14798
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14800 $as_echo "yes" >&6; }
14801
14802 $as_echo "#define HAVE_4ARGS_VFS_GETATTR 1" >>confdefs.h
14803
14804
14805 else
14806 $as_echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810 $as_echo "no" >&6; }
14811
14812
14813
14814 fi
14815 rm -Rf build
14816
14817
14818
14819
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 3 args" >&5
14821 $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
14822
14823
14824 cat confdefs.h - <<_ACEOF >conftest.c
14825
14826
14827 #include <linux/fs.h>
14828
14829 int
14830 main (void)
14831 {
14832
14833 vfs_getattr((struct vfsmount *)NULL,
14834 (struct dentry *)NULL,
14835 (struct kstat *)NULL);
14836
14837 ;
14838 return 0;
14839 }
14840
14841 _ACEOF
14842
14843
14844 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14845 echo "obj-m := conftest.o" >build/Makefile
14846 modpost_flag=''
14847 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14848 if { 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'
14849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
14852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14853 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14858 test $ac_status = 0; }; }; then :
14859
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14861 $as_echo "yes" >&6; }
14862
14863 $as_echo "#define HAVE_3ARGS_VFS_GETATTR 1" >>confdefs.h
14864
14865
14866 else
14867 $as_echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14871 $as_echo "no" >&6; }
14872
14873
14874
14875 fi
14876 rm -Rf build
14877
14878
14879
14880
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 2 args" >&5
14882 $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
14883
14884
14885 cat confdefs.h - <<_ACEOF >conftest.c
14886
14887
14888 #include <linux/fs.h>
14889
14890 int
14891 main (void)
14892 {
14893
14894 vfs_getattr((struct path *) NULL,
14895 (struct kstat *)NULL);
14896
14897 ;
14898 return 0;
14899 }
14900
14901 _ACEOF
14902
14903
14904 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14905 echo "obj-m := conftest.o" >build/Makefile
14906 modpost_flag=''
14907 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14908 if { 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'
14909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14913 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14915 (eval $ac_try) 2>&5
14916 ac_status=$?
14917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14918 test $ac_status = 0; }; }; then :
14919
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14921 $as_echo "yes" >&6; }
14922
14923 $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
14924
14925
14926 else
14927 $as_echo "$as_me: failed program was:" >&5
14928 sed 's/^/| /' conftest.$ac_ext >&5
14929
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14931 $as_echo "no" >&6; }
14932
14933
14934
14935 fi
14936 rm -Rf build
14937
14938
14939
14940
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5
14942 $as_echo_n "checking whether usleep_range() is available... " >&6; }
14943
14944
14945 cat confdefs.h - <<_ACEOF >conftest.c
14946
14947
14948 #include <linux/delay.h>
14949
14950 int
14951 main (void)
14952 {
14953
14954 usleep_range(0, 0);
14955
14956 ;
14957 return 0;
14958 }
14959
14960 _ACEOF
14961
14962
14963 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14964 echo "obj-m := conftest.o" >build/Makefile
14965 modpost_flag=''
14966 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14967 if { 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'
14968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14972 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14977 test $ac_status = 0; }; }; then :
14978
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14980 $as_echo "yes" >&6; }
14981
14982 $as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h
14983
14984
14985 else
14986 $as_echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990 $as_echo "no" >&6; }
14991
14992
14993
14994 fi
14995 rm -Rf build
14996
14997
14998
14999
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5
15001 $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
15002
15003
15004 cat confdefs.h - <<_ACEOF >conftest.c
15005
15006
15007 #include <linux/slab.h>
15008
15009 int
15010 main (void)
15011 {
15012
15013 struct kmem_cache cachep __attribute__ ((unused));
15014 cachep.allocflags = GFP_KERNEL;
15015
15016 ;
15017 return 0;
15018 }
15019
15020 _ACEOF
15021
15022
15023 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15024 echo "obj-m := conftest.o" >build/Makefile
15025 modpost_flag=''
15026 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15027 if { 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'
15028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15032 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15037 test $ac_status = 0; }; }; then :
15038
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15040 $as_echo "yes" >&6; }
15041
15042 $as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h
15043
15044
15045 else
15046 $as_echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050 $as_echo "no" >&6; }
15051
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5
15053 $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
15054
15055
15056 cat confdefs.h - <<_ACEOF >conftest.c
15057
15058
15059 #include <linux/slab.h>
15060
15061 int
15062 main (void)
15063 {
15064
15065 struct kmem_cache cachep __attribute__ ((unused));
15066 cachep.gfpflags = GFP_KERNEL;
15067
15068 ;
15069 return 0;
15070 }
15071
15072 _ACEOF
15073
15074
15075 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15076 echo "obj-m := conftest.o" >build/Makefile
15077 modpost_flag=''
15078 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15079 if { 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'
15080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15084 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15086 (eval $ac_try) 2>&5
15087 ac_status=$?
15088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15089 test $ac_status = 0; }; }; then :
15090
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15092 $as_echo "yes" >&6; }
15093
15094 $as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h
15095
15096
15097 else
15098 $as_echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15100
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15103
15104
15105
15106 fi
15107 rm -Rf build
15108
15109
15110
15111
15112
15113 fi
15114 rm -Rf build
15115
15116
15117
15118
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5
15120 $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
15121
15122
15123 cat confdefs.h - <<_ACEOF >conftest.c
15124
15125
15126 #include <linux/wait.h>
15127
15128 int
15129 main (void)
15130 {
15131
15132 int (*action)(void *) = NULL;
15133 wait_on_bit(NULL, 0, action, 0);
15134
15135 ;
15136 return 0;
15137 }
15138
15139 _ACEOF
15140
15141
15142 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15143 echo "obj-m := conftest.o" >build/Makefile
15144 modpost_flag=''
15145 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15146 if { 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'
15147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15151 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15153 (eval $ac_try) 2>&5
15154 ac_status=$?
15155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15156 test $ac_status = 0; }; }; then :
15157
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15159 $as_echo "yes" >&6; }
15160
15161 $as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h
15162
15163
15164 else
15165 $as_echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15167
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15169 $as_echo "no" >&6; }
15170
15171
15172
15173 fi
15174 rm -Rf build
15175
15176
15177
15178
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5
15180 $as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
15181 tmp_flags="$EXTRA_KCFLAGS"
15182 EXTRA_KCFLAGS="-Werror"
15183
15184
15185 cat confdefs.h - <<_ACEOF >conftest.c
15186
15187
15188 #include <linux/fs.h>
15189
15190 int
15191 main (void)
15192 {
15193
15194 struct inode *inode = NULL;
15195 inode_lock_shared(inode);
15196
15197 ;
15198 return 0;
15199 }
15200
15201 _ACEOF
15202
15203
15204 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15205 echo "obj-m := conftest.o" >build/Makefile
15206 modpost_flag=''
15207 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15208 if { 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'
15209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15210 (eval $ac_try) 2>&5
15211 ac_status=$?
15212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15213 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15218 test $ac_status = 0; }; }; then :
15219
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15221 $as_echo "yes" >&6; }
15222
15223 $as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h
15224
15225
15226 else
15227 $as_echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15229
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15231 $as_echo "no" >&6; }
15232
15233
15234
15235 fi
15236 rm -Rf build
15237
15238
15239 EXTRA_KCFLAGS="$tmp_flags"
15240
15241
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex has owner" >&5
15243 $as_echo_n "checking whether mutex has owner... " >&6; }
15244 tmp_flags="$EXTRA_KCFLAGS"
15245 EXTRA_KCFLAGS="-Werror"
15246
15247
15248 cat confdefs.h - <<_ACEOF >conftest.c
15249
15250
15251 #include <linux/mutex.h>
15252 #include <linux/spinlock.h>
15253
15254 int
15255 main (void)
15256 {
15257
15258 DEFINE_MUTEX(m);
15259 struct task_struct *t __attribute__ ((unused));
15260 t = m.owner;
15261
15262 ;
15263 return 0;
15264 }
15265
15266 _ACEOF
15267
15268
15269 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15270 echo "obj-m := conftest.o" >build/Makefile
15271 modpost_flag=''
15272 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15273 if { 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'
15274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15278 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15283 test $ac_status = 0; }; }; then :
15284
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15286 $as_echo "yes" >&6; }
15287
15288 $as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
15289
15290
15291 else
15292 $as_echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15294
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15296 $as_echo "no" >&6; }
15297
15298
15299
15300 fi
15301 rm -Rf build
15302
15303
15304 EXTRA_KCFLAGS="$tmp_flags"
15305
15306
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether group_info->gid exists" >&5
15308 $as_echo_n "checking whether group_info->gid exists... " >&6; }
15309 tmp_flags="$EXTRA_KCFLAGS"
15310 EXTRA_KCFLAGS="-Werror"
15311
15312
15313 cat confdefs.h - <<_ACEOF >conftest.c
15314
15315
15316 #include <linux/cred.h>
15317
15318 int
15319 main (void)
15320 {
15321
15322 struct group_info *gi = groups_alloc(1);
15323 gi->gid[0] = KGIDT_INIT(0);
15324
15325 ;
15326 return 0;
15327 }
15328
15329 _ACEOF
15330
15331
15332 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15333 echo "obj-m := conftest.o" >build/Makefile
15334 modpost_flag=''
15335 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15336 if { 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'
15337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15341 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15343 (eval $ac_try) 2>&5
15344 ac_status=$?
15345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15346 test $ac_status = 0; }; }; then :
15347
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15349 $as_echo "yes" >&6; }
15350
15351 $as_echo "#define HAVE_GROUP_INFO_GID 1" >>confdefs.h
15352
15353
15354 else
15355 $as_echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15357
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359 $as_echo "no" >&6; }
15360
15361
15362
15363 fi
15364 rm -Rf build
15365
15366
15367 EXTRA_KCFLAGS="$tmp_flags"
15368
15369 ;;
15370 user) ;;
15371 all)
15372
15373
15374 # Check whether --with-linux was given.
15375 if test "${with_linux+set}" = set; then :
15376 withval=$with_linux; kernelsrc="$withval"
15377 fi
15378
15379
15380
15381 # Check whether --with-linux-obj was given.
15382 if test "${with_linux_obj+set}" = set; then :
15383 withval=$with_linux_obj; kernelbuild="$withval"
15384 fi
15385
15386
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
15388 $as_echo_n "checking kernel source directory... " >&6; }
15389 if test -z "$kernelsrc"; then
15390 if test -e "/lib/modules/$(uname -r)/source"; then
15391 headersdir="/lib/modules/$(uname -r)/source"
15392 sourcelink=$(readlink -f "$headersdir")
15393 elif test -e "/lib/modules/$(uname -r)/build"; then
15394 headersdir="/lib/modules/$(uname -r)/build"
15395 sourcelink=$(readlink -f "$headersdir")
15396 else
15397 sourcelink=$(ls -1d /usr/src/kernels/* \
15398 /usr/src/linux-* \
15399 2>/dev/null | grep -v obj | tail -1)
15400 fi
15401
15402 if test -n "$sourcelink" && test -e ${sourcelink}; then
15403 kernelsrc=`readlink -f ${sourcelink}`
15404 else
15405 kernelsrc="Not found"
15406 fi
15407 else
15408 if test "$kernelsrc" = "NONE"; then
15409 kernsrcver=NONE
15410 fi
15411 fi
15412
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
15414 $as_echo "$kernelsrc" >&6; }
15415 if test ! -d "$kernelsrc"; then
15416 as_fn_error $? "
15417 *** Please make sure the kernel devel package for your distribution
15418 *** is installed and then try again. If that fails, you can specify the
15419 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
15420 fi
15421
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
15423 $as_echo_n "checking kernel build directory... " >&6; }
15424 if test -z "$kernelbuild"; then
15425 if test -e "/lib/modules/$(uname -r)/build"; then
15426 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15427 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15428 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15429 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15430 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15431 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15432 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15433 else
15434 kernelbuild=${kernelsrc}
15435 fi
15436 fi
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
15438 $as_echo "$kernelbuild" >&6; }
15439
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
15441 $as_echo_n "checking kernel source version... " >&6; }
15442 utsrelease1=$kernelbuild/include/linux/version.h
15443 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15444 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15445 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15446 utsrelease=linux/version.h
15447 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15448 utsrelease=linux/utsrelease.h
15449 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15450 utsrelease=generated/utsrelease.h
15451 fi
15452
15453 if test "$utsrelease"; then
15454 kernsrcver=`(echo "#include <$utsrelease>";
15455 echo "kernsrcver=UTS_RELEASE") |
15456 cpp -I $kernelbuild/include |
15457 grep "^kernsrcver=" | cut -d \" -f 2`
15458
15459 if test -z "$kernsrcver"; then
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
15461 $as_echo "Not found" >&6; }
15462 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
15463 fi
15464 else
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
15466 $as_echo "Not found" >&6; }
15467 if test "x$enable_linux_builtin" != xyes; then
15468 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
15469 else
15470 as_fn_error $? "
15471 *** Cannot find UTS_RELEASE definition.
15472 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
15473 fi
15474 fi
15475
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
15477 $as_echo "$kernsrcver" >&6; }
15478
15479 LINUX=${kernelsrc}
15480 LINUX_OBJ=${kernelbuild}
15481 LINUX_VERSION=${kernsrcver}
15482
15483
15484
15485
15486
15487
15488 modpost=$LINUX/scripts/Makefile.modpost
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
15490 $as_echo_n "checking kernel file name for module symbols... " >&6; }
15491 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
15492 if grep -q Modules.symvers $modpost; then
15493 LINUX_SYMBOLS=Modules.symvers
15494 else
15495 LINUX_SYMBOLS=Module.symvers
15496 fi
15497
15498 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
15499 as_fn_error $? "
15500 *** Please make sure the kernel devel package for your distribution
15501 *** is installed. If you are building with a custom kernel, make sure the
15502 *** kernel is configured, built, and the '--with-linux=PATH' configure
15503 *** option refers to the location of the kernel source." "$LINENO" 5
15504 fi
15505 else
15506 LINUX_SYMBOLS=NONE
15507 fi
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
15509 $as_echo "$LINUX_SYMBOLS" >&6; }
15510
15511
15512
15513
15514 if test "${LINUX_OBJ}" != "${LINUX}"; then
15515 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15516 fi
15517
15518
15519 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
15520
15521
15522
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
15524 $as_echo_n "checking whether debugging is enabled... " >&6; }
15525 # Check whether --enable-debug was given.
15526 if test "${enable_debug+set}" = set; then :
15527 enableval=$enable_debug;
15528 else
15529 enable_debug=no
15530 fi
15531
15532
15533 if test "x$enable_debug" = xyes; then :
15534
15535 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
15536 DEBUG_CFLAGS="-DDEBUG -Werror"
15537 DEBUG_SPL="_with_debug"
15538
15539 else
15540
15541 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
15542 DEBUG_CFLAGS="-DNDEBUG"
15543 DEBUG_SPL="_without_debug"
15544
15545 fi
15546
15547
15548
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
15550 $as_echo "$enable_debug" >&6; }
15551
15552
15553 # Check whether --enable-debug-kmem was given.
15554 if test "${enable_debug_kmem+set}" = set; then :
15555 enableval=$enable_debug_kmem;
15556 else
15557 enable_debug_kmem=no
15558 fi
15559
15560
15561 if test "x$enable_debug_kmem" = xyes; then :
15562
15563 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15564 DEBUG_KMEM="_with_debug_kmem"
15565
15566 $as_echo "#define DEBUG_KMEM 1" >>confdefs.h
15567
15568
15569 else
15570
15571 DEBUG_KMEM="_without_debug_kmem"
15572
15573 fi
15574
15575
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
15577 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
15579 $as_echo "$enable_debug_kmem" >&6; }
15580
15581
15582 # Check whether --enable-debug-kmem-tracking was given.
15583 if test "${enable_debug_kmem_tracking+set}" = set; then :
15584 enableval=$enable_debug_kmem_tracking;
15585 else
15586 enable_debug_kmem_tracking=no
15587 fi
15588
15589
15590 if test "x$enable_debug_kmem_tracking" = xyes; then :
15591
15592 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15593 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
15594
15595 $as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
15596
15597
15598 else
15599
15600 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
15601
15602 fi
15603
15604
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
15606 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
15608 $as_echo "$enable_debug_kmem_tracking" >&6; }
15609
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
15611 $as_echo_n "checking whether modules can be built... " >&6; }
15612
15613
15614 cat confdefs.h - <<_ACEOF >conftest.c
15615
15616
15617 int
15618 main (void)
15619 {
15620
15621 ;
15622 return 0;
15623 }
15624
15625 _ACEOF
15626
15627
15628 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15629 echo "obj-m := conftest.o" >build/Makefile
15630 modpost_flag=''
15631 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15632 if { 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'
15633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15637 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
15641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15642 test $ac_status = 0; }; }; then :
15643
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15645 $as_echo "yes" >&6; }
15646
15647 else
15648 $as_echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15650
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652 $as_echo "no" >&6; }
15653 if test "x$enable_linux_builtin" != xyes; then
15654 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
15655 else
15656 as_fn_error $? "
15657 *** Unable to build an empty module.
15658 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
15659 fi
15660
15661
15662
15663 fi
15664 rm -Rf build
15665
15666
15667
15668 if test "x$cross_compiling" != xyes; then :
15669
15670 if test "$cross_compiling" = yes; then :
15671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15673 as_fn_error $? "cannot run test program while cross compiling
15674 See \`config.log' for more details" "$LINENO" 5; }
15675 else
15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15678
15679
15680 #include "$LINUX/include/linux/license.h"
15681
15682 int
15683 main ()
15684 {
15685
15686 return !license_is_gpl_compatible(
15687 "$SPL_META_LICENSE");
15688
15689 ;
15690 return 0;
15691 }
15692
15693 _ACEOF
15694 if ac_fn_c_try_run "$LINENO"; then :
15695
15696
15697 $as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h
15698
15699
15700 fi
15701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15702 conftest.$ac_objext conftest.beam conftest.$ac_ext
15703 fi
15704
15705
15706 fi
15707
15708
15709 # Check whether --enable-atomic-spinlocks was given.
15710 if test "${enable_atomic_spinlocks+set}" = set; then :
15711 enableval=$enable_atomic_spinlocks;
15712 else
15713 enable_atomic_spinlocks=check
15714 fi
15715
15716
15717
15718
15719 cat confdefs.h - <<_ACEOF >conftest.c
15720
15721
15722 #include <linux/fs.h>
15723
15724 int
15725 main (void)
15726 {
15727
15728 atomic64_t *ptr __attribute__ ((unused));
15729
15730 ;
15731 return 0;
15732 }
15733
15734 _ACEOF
15735
15736
15737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15738 echo "obj-m := conftest.o" >build/Makefile
15739 modpost_flag=''
15740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15741 if { 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'
15742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15743 (eval $ac_try) 2>&5
15744 ac_status=$?
15745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15746 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15751 test $ac_status = 0; }; }; then :
15752
15753 have_atomic64_t=yes
15754
15755 $as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
15756
15757
15758 else
15759 $as_echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15761
15762 have_atomic64_t=no
15763
15764
15765
15766 fi
15767 rm -Rf build
15768
15769
15770
15771 if test "x$enable_atomic_spinlocks" = xcheck; then :
15772
15773 if test "x$have_atomic64_t" = xyes; then :
15774
15775 enable_atomic_spinlocks=no
15776
15777 else
15778
15779 enable_atomic_spinlocks=yes
15780
15781 fi
15782
15783 fi
15784
15785 if test "x$enable_atomic_spinlocks" = xyes; then :
15786
15787
15788 $as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
15789
15790
15791 else
15792
15793 if test "x$have_atomic64_t" = xno; then :
15794
15795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15797 as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
15798 See \`config.log' for more details" "$LINENO" 5; }
15799
15800 fi
15801
15802 fi
15803
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
15805 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
15807 $as_echo "$enable_atomic_spinlocks" >&6; }
15808
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
15810 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
15812 $as_echo "$have_atomic64_t" >&6; }
15813
15814
15815 tmp_flags="$EXTRA_KCFLAGS"
15816 EXTRA_KCFLAGS="-Werror"
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5
15818 $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
15819
15820
15821 cat confdefs.h - <<_ACEOF >conftest.c
15822
15823
15824 #include <linux/mm.h>
15825
15826 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
15827
15828 int
15829 main (void)
15830 {
15831
15832 struct shrinker cache_shrinker = {
15833 .shrink = shrinker_cb,
15834 .seeks = DEFAULT_SEEKS,
15835 };
15836 register_shrinker(&cache_shrinker);
15837
15838 ;
15839 return 0;
15840 }
15841
15842 _ACEOF
15843
15844
15845 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15846 echo "obj-m := conftest.o" >build/Makefile
15847 modpost_flag=''
15848 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15849 if { 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'
15850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15854 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15859 test $ac_status = 0; }; }; then :
15860
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15862 $as_echo "yes" >&6; }
15863
15864 $as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h
15865
15866
15867 else
15868 $as_echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15870
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15872 $as_echo "no" >&6; }
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5
15874 $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
15875
15876
15877 cat confdefs.h - <<_ACEOF >conftest.c
15878
15879
15880 #include <linux/mm.h>
15881
15882 int shrinker_cb(struct shrinker *, int nr_to_scan,
15883 gfp_t gfp_mask);
15884
15885 int
15886 main (void)
15887 {
15888
15889 struct shrinker cache_shrinker = {
15890 .shrink = shrinker_cb,
15891 .seeks = DEFAULT_SEEKS,
15892 };
15893 register_shrinker(&cache_shrinker);
15894
15895 ;
15896 return 0;
15897 }
15898
15899 _ACEOF
15900
15901
15902 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15903 echo "obj-m := conftest.o" >build/Makefile
15904 modpost_flag=''
15905 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15906 if { 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'
15907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15911 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15916 test $ac_status = 0; }; }; then :
15917
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15919 $as_echo "yes" >&6; }
15920
15921 $as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
15922
15923
15924 else
15925 $as_echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15927
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15929 $as_echo "no" >&6; }
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5
15931 $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
15932
15933
15934 cat confdefs.h - <<_ACEOF >conftest.c
15935
15936
15937 #include <linux/mm.h>
15938
15939 int shrinker_cb(struct shrinker *,
15940 struct shrink_control *sc);
15941
15942 int
15943 main (void)
15944 {
15945
15946 struct shrinker cache_shrinker = {
15947 .shrink = shrinker_cb,
15948 .seeks = DEFAULT_SEEKS,
15949 };
15950 register_shrinker(&cache_shrinker);
15951
15952 ;
15953 return 0;
15954 }
15955
15956 _ACEOF
15957
15958
15959 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15960 echo "obj-m := conftest.o" >build/Makefile
15961 modpost_flag=''
15962 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15963 if { 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'
15964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15968 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15970 (eval $ac_try) 2>&5
15971 ac_status=$?
15972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15973 test $ac_status = 0; }; }; then :
15974
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15976 $as_echo "yes" >&6; }
15977
15978 $as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h
15979
15980
15981 else
15982 $as_echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15986 $as_echo "no" >&6; }
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5
15988 $as_echo_n "checking whether ->count_objects callback exists... " >&6; }
15989
15990
15991 cat confdefs.h - <<_ACEOF >conftest.c
15992
15993
15994 #include <linux/mm.h>
15995
15996 unsigned long shrinker_cb(
15997 struct shrinker *,
15998 struct shrink_control *sc);
15999
16000 int
16001 main (void)
16002 {
16003
16004 struct shrinker cache_shrinker = {
16005 .count_objects = shrinker_cb,
16006 .scan_objects = shrinker_cb,
16007 .seeks = DEFAULT_SEEKS,
16008 };
16009 register_shrinker(&cache_shrinker);
16010
16011 ;
16012 return 0;
16013 }
16014
16015 _ACEOF
16016
16017
16018 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16019 echo "obj-m := conftest.o" >build/Makefile
16020 modpost_flag=''
16021 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16022 if { 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'
16023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16024 (eval $ac_try) 2>&5
16025 ac_status=$?
16026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16027 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16029 (eval $ac_try) 2>&5
16030 ac_status=$?
16031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16032 test $ac_status = 0; }; }; then :
16033
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16035 $as_echo "yes" >&6; }
16036
16037 $as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h
16038
16039
16040 else
16041 $as_echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 as_fn_error $? "error" "$LINENO" 5
16045
16046
16047
16048 fi
16049 rm -Rf build
16050
16051
16052
16053
16054
16055 fi
16056 rm -Rf build
16057
16058
16059
16060
16061
16062 fi
16063 rm -Rf build
16064
16065
16066
16067
16068
16069 fi
16070 rm -Rf build
16071
16072
16073 EXTRA_KCFLAGS="$tmp_flags"
16074
16075
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
16077 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
16078
16079
16080 cat confdefs.h - <<_ACEOF >conftest.c
16081
16082
16083 #include <linux/sysctl.h>
16084
16085 int
16086 main (void)
16087 {
16088
16089 struct ctl_table ctl __attribute__ ((unused));
16090 ctl.ctl_name = 0;
16091
16092 ;
16093 return 0;
16094 }
16095
16096 _ACEOF
16097
16098
16099 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16100 echo "obj-m := conftest.o" >build/Makefile
16101 modpost_flag=''
16102 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16103 if { 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'
16104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16108 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16110 (eval $ac_try) 2>&5
16111 ac_status=$?
16112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16113 test $ac_status = 0; }; }; then :
16114
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16116 $as_echo "yes" >&6; }
16117
16118 $as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
16119
16120
16121 else
16122 $as_echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16124
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16127
16128
16129
16130 fi
16131 rm -Rf build
16132
16133
16134
16135
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
16137 $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
16138
16139
16140 cat confdefs.h - <<_ACEOF >conftest.c
16141
16142
16143 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
16144 #error CONFIG_TRIM_UNUSED_KSYMS not defined
16145 #endif
16146
16147 int
16148 main (void)
16149 {
16150
16151 ;
16152 return 0;
16153 }
16154
16155 _ACEOF
16156
16157
16158 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16159 echo "obj-m := conftest.o" >build/Makefile
16160 modpost_flag=''
16161 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16162 if { 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'
16163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16164 (eval $ac_try) 2>&5
16165 ac_status=$?
16166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16167 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
16171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16172 test $ac_status = 0; }; }; then :
16173
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16175 $as_echo "yes" >&6; }
16176
16177 else
16178 $as_echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16180
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16182 $as_echo "no" >&6; }
16183 as_fn_error $? "
16184 *** This kernel has unused symbols trimming enabled, please disable.
16185 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." "$LINENO" 5
16186
16187
16188
16189 fi
16190 rm -Rf build
16191
16192
16193
16194
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5
16196 $as_echo_n "checking whether PDE_DATA() is available... " >&6; }
16197
16198
16199
16200 cat confdefs.h - <<_ACEOF >conftest.c
16201
16202
16203 #include <linux/proc_fs.h>
16204
16205 int
16206 main (void)
16207 {
16208
16209 PDE_DATA(NULL);
16210
16211 ;
16212 return 0;
16213 }
16214
16215 _ACEOF
16216
16217
16218 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16219 echo "obj-m := conftest.o" >build/Makefile
16220 modpost_flag=''
16221 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16222 if { 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'
16223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16227 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16229 (eval $ac_try) 2>&5
16230 ac_status=$?
16231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16232 test $ac_status = 0; }; }; then :
16233 rc=0
16234 else
16235 $as_echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237 rc=1
16238
16239
16240 fi
16241 rm -Rf build
16242
16243
16244 if test $rc -ne 0; then :
16245
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247 $as_echo "no" >&6; }
16248
16249 else
16250 if test "x$enable_linux_builtin" != xyes; then
16251
16252 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
16253 $LINUX_OBJ/Module*.symvers 2>/dev/null
16254 rc=$?
16255 if test $rc -ne 0; then
16256 export=0
16257 for file in ; do
16258 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
16259 "$LINUX_OBJ/$file" 2>/dev/null
16260 rc=$?
16261 if test $rc -eq 0; then
16262 export=1
16263 break;
16264 fi
16265 done
16266 if test $export -eq 0; then :
16267 rc=1
16268 else :
16269 rc=0
16270 fi
16271 else :
16272 rc=0
16273 fi
16274
16275 fi
16276 if test $rc -ne 0; then :
16277
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16279 $as_echo "no" >&6; }
16280
16281 else :
16282
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16284 $as_echo "yes" >&6; }
16285
16286 $as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h
16287
16288
16289 fi
16290 fi
16291
16292
16293 tmp_flags="$EXTRA_KCFLAGS"
16294 EXTRA_KCFLAGS="-Werror"
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
16296 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
16297
16298
16299 cat confdefs.h - <<_ACEOF >conftest.c
16300
16301
16302 #include <linux/spinlock.h>
16303 #include <linux/fs_struct.h>
16304 #include <linux/path.h>
16305 void (*const set_fs_pwd_func)
16306 (struct fs_struct *, const struct path *)
16307 = set_fs_pwd;
16308
16309 int
16310 main (void)
16311 {
16312
16313 return 0;
16314
16315 ;
16316 return 0;
16317 }
16318
16319 _ACEOF
16320
16321
16322 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16323 echo "obj-m := conftest.o" >build/Makefile
16324 modpost_flag=''
16325 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16326 if { 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'
16327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16328 (eval $ac_try) 2>&5
16329 ac_status=$?
16330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16331 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16336 test $ac_status = 0; }; }; then :
16337
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16339 $as_echo "yes" >&6; }
16340
16341 $as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
16342
16343
16344 else
16345 $as_echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16347
16348
16349
16350 cat confdefs.h - <<_ACEOF >conftest.c
16351
16352
16353 #include <linux/spinlock.h>
16354 #include <linux/fs_struct.h>
16355 #include <linux/path.h>
16356 void (*const set_fs_pwd_func)
16357 (struct fs_struct *, struct path *)
16358 = set_fs_pwd;
16359
16360 int
16361 main (void)
16362 {
16363
16364 return 0;
16365
16366 ;
16367 return 0;
16368 }
16369
16370 _ACEOF
16371
16372
16373 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16374 echo "obj-m := conftest.o" >build/Makefile
16375 modpost_flag=''
16376 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16377 if { 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'
16378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16382 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16384 (eval $ac_try) 2>&5
16385 ac_status=$?
16386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16387 test $ac_status = 0; }; }; then :
16388
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390 $as_echo "no" >&6; }
16391
16392 else
16393 $as_echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 as_fn_error $? "unknown" "$LINENO" 5
16397
16398
16399
16400 fi
16401 rm -Rf build
16402
16403
16404
16405
16406
16407 fi
16408 rm -Rf build
16409
16410
16411 EXTRA_KCFLAGS="$tmp_flags"
16412
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
16414 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
16415
16416
16417 cat confdefs.h - <<_ACEOF >conftest.c
16418
16419
16420 #include <linux/fs.h>
16421
16422 int
16423 main (void)
16424 {
16425
16426 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
16427
16428 ;
16429 return 0;
16430 }
16431
16432 _ACEOF
16433
16434
16435 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16436 echo "obj-m := conftest.o" >build/Makefile
16437 modpost_flag=''
16438 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16439 if { 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'
16440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16441 (eval $ac_try) 2>&5
16442 ac_status=$?
16443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16444 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16449 test $ac_status = 0; }; }; then :
16450
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16452 $as_echo "yes" >&6; }
16453
16454 $as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
16455
16456
16457 else
16458 $as_echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16460
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16462 $as_echo "no" >&6; }
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5
16464 $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
16465
16466
16467 cat confdefs.h - <<_ACEOF >conftest.c
16468
16469
16470 #include <linux/fs.h>
16471
16472 int
16473 main (void)
16474 {
16475
16476 vfs_unlink((struct inode *) NULL,
16477 (struct dentry *) NULL,
16478 (struct inode **) NULL);
16479
16480 ;
16481 return 0;
16482 }
16483
16484 _ACEOF
16485
16486
16487 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16488 echo "obj-m := conftest.o" >build/Makefile
16489 modpost_flag=''
16490 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16491 if { 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'
16492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16496 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16501 test $ac_status = 0; }; }; then :
16502
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16504 $as_echo "yes" >&6; }
16505
16506 $as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h
16507
16508
16509 else
16510 $as_echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513 as_fn_error $? "no" "$LINENO" 5
16514
16515
16516
16517 fi
16518 rm -Rf build
16519
16520
16521
16522
16523
16524
16525 fi
16526 rm -Rf build
16527
16528
16529
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
16531 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
16532
16533
16534 cat confdefs.h - <<_ACEOF >conftest.c
16535
16536
16537 #include <linux/fs.h>
16538
16539 int
16540 main (void)
16541 {
16542
16543 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
16544 (struct inode *) NULL, (struct dentry *) NULL);
16545
16546 ;
16547 return 0;
16548 }
16549
16550 _ACEOF
16551
16552
16553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16554 echo "obj-m := conftest.o" >build/Makefile
16555 modpost_flag=''
16556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16557 if { 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'
16558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16559 (eval $ac_try) 2>&5
16560 ac_status=$?
16561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16562 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16564 (eval $ac_try) 2>&5
16565 ac_status=$?
16566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16567 test $ac_status = 0; }; }; then :
16568
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16570 $as_echo "yes" >&6; }
16571
16572 $as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
16573
16574
16575 else
16576 $as_echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16580 $as_echo "no" >&6; }
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5
16582 $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
16583
16584
16585 cat confdefs.h - <<_ACEOF >conftest.c
16586
16587
16588 #include <linux/fs.h>
16589
16590 int
16591 main (void)
16592 {
16593
16594 vfs_rename((struct inode *) NULL,
16595 (struct dentry *) NULL,
16596 (struct inode *) NULL,
16597 (struct dentry *) NULL,
16598 (struct inode **) NULL);
16599
16600 ;
16601 return 0;
16602 }
16603
16604 _ACEOF
16605
16606
16607 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16608 echo "obj-m := conftest.o" >build/Makefile
16609 modpost_flag=''
16610 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16611 if { 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'
16612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16616 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16618 (eval $ac_try) 2>&5
16619 ac_status=$?
16620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16621 test $ac_status = 0; }; }; then :
16622
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16624 $as_echo "yes" >&6; }
16625
16626 $as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h
16627
16628
16629 else
16630 $as_echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16634 $as_echo "no" >&6; }
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5
16636 $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
16637
16638
16639 cat confdefs.h - <<_ACEOF >conftest.c
16640
16641
16642 #include <linux/fs.h>
16643
16644 int
16645 main (void)
16646 {
16647
16648 vfs_rename((struct inode *) NULL,
16649 (struct dentry *) NULL,
16650 (struct inode *) NULL,
16651 (struct dentry *) NULL,
16652 (struct inode **) NULL,
16653 (unsigned int) 0);
16654
16655 ;
16656 return 0;
16657 }
16658
16659 _ACEOF
16660
16661
16662 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16663 echo "obj-m := conftest.o" >build/Makefile
16664 modpost_flag=''
16665 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16666 if { 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'
16667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16671 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16673 (eval $ac_try) 2>&5
16674 ac_status=$?
16675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16676 test $ac_status = 0; }; }; then :
16677
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16679 $as_echo "yes" >&6; }
16680
16681 $as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h
16682
16683
16684 else
16685 $as_echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688 as_fn_error $? "no" "$LINENO" 5
16689
16690
16691
16692 fi
16693 rm -Rf build
16694
16695
16696
16697
16698
16699 fi
16700 rm -Rf build
16701
16702
16703
16704
16705
16706 fi
16707 rm -Rf build
16708
16709
16710
16711
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
16713 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
16714
16715
16716 cat confdefs.h - <<_ACEOF >conftest.c
16717
16718
16719 #include <linux/fs.h>
16720
16721 int
16722 main (void)
16723 {
16724
16725 vfs_fsync(NULL, 0);
16726
16727 ;
16728 return 0;
16729 }
16730
16731 _ACEOF
16732
16733
16734 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16735 echo "obj-m := conftest.o" >build/Makefile
16736 modpost_flag=''
16737 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16738 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16743 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16748 test $ac_status = 0; }; }; then :
16749
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16751 $as_echo "yes" >&6; }
16752
16753 $as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
16754
16755
16756 else
16757 $as_echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761 $as_echo "no" >&6; }
16762
16763
16764
16765 fi
16766 rm -Rf build
16767
16768
16769
16770
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
16772 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
16773
16774
16775 cat confdefs.h - <<_ACEOF >conftest.c
16776
16777
16778 #include <linux/fs.h>
16779
16780 int
16781 main (void)
16782 {
16783
16784 struct inode_operations ops;
16785 ops.truncate_range = NULL;
16786
16787 ;
16788 return 0;
16789 }
16790
16791 _ACEOF
16792
16793
16794 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16795 echo "obj-m := conftest.o" >build/Makefile
16796 modpost_flag=''
16797 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16798 if { 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'
16799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16803 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16808 test $ac_status = 0; }; }; then :
16809
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16811 $as_echo "yes" >&6; }
16812
16813 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
16814
16815
16816 else
16817 $as_echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821 $as_echo "no" >&6; }
16822
16823
16824
16825 fi
16826 rm -Rf build
16827
16828
16829
16830
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
16832 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
16833 tmp_flags="$EXTRA_KCFLAGS"
16834 EXTRA_KCFLAGS="-Werror"
16835
16836
16837 cat confdefs.h - <<_ACEOF >conftest.c
16838
16839
16840 #include <linux/sched.h>
16841 #include <linux/fs_struct.h>
16842
16843 int
16844 main (void)
16845 {
16846
16847 static struct fs_struct fs;
16848 spin_lock_init(&fs.lock);
16849
16850 ;
16851 return 0;
16852 }
16853
16854 _ACEOF
16855
16856
16857 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16858 echo "obj-m := conftest.o" >build/Makefile
16859 modpost_flag=''
16860 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16861 if { 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'
16862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16866 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16871 test $ac_status = 0; }; }; then :
16872
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16874 $as_echo "yes" >&6; }
16875
16876 $as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
16877
16878
16879 else
16880 $as_echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16882
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16884 $as_echo "no" >&6; }
16885
16886
16887
16888 fi
16889 rm -Rf build
16890
16891
16892 EXTRA_KCFLAGS="$tmp_flags"
16893
16894
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5
16896 $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
16897
16898
16899 cat confdefs.h - <<_ACEOF >conftest.c
16900
16901
16902 #include <linux/uidgid.h>
16903
16904 int
16905 main (void)
16906 {
16907
16908 kuid_t userid = KUIDT_INIT(0);
16909 kgid_t groupid = KGIDT_INIT(0);
16910
16911 ;
16912 return 0;
16913 }
16914
16915 _ACEOF
16916
16917
16918 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16919 echo "obj-m := conftest.o" >build/Makefile
16920 modpost_flag=''
16921 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16922 if { 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'
16923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16927 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16929 (eval $ac_try) 2>&5
16930 ac_status=$?
16931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16932 test $ac_status = 0; }; }; then :
16933
16934
16935
16936 cat confdefs.h - <<_ACEOF >conftest.c
16937
16938
16939 #include <linux/uidgid.h>
16940
16941 int
16942 main (void)
16943 {
16944
16945 kuid_t userid = 0;
16946 kgid_t groupid = 0;
16947
16948 ;
16949 return 0;
16950 }
16951
16952 _ACEOF
16953
16954
16955 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16956 echo "obj-m := conftest.o" >build/Makefile
16957 modpost_flag=''
16958 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16959 if { 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'
16960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16961 (eval $ac_try) 2>&5
16962 ac_status=$?
16963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16964 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16969 test $ac_status = 0; }; }; then :
16970
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5
16972 $as_echo "yes; optional" >&6; }
16973
16974 else
16975 $as_echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16977
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5
16979 $as_echo "yes; mandatory" >&6; }
16980
16981 $as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h
16982
16983
16984
16985
16986 fi
16987 rm -Rf build
16988
16989
16990
16991 else
16992 $as_echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16996 $as_echo "no" >&6; }
16997
16998
16999
17000 fi
17001 rm -Rf build
17002
17003
17004
17005
17006
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
17008 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17009
17010
17011 cat confdefs.h - <<_ACEOF >conftest.c
17012
17013
17014 #include <linux/fs.h>
17015
17016 int
17017 main (void)
17018 {
17019
17020 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17021 struct file_operations fops __attribute__ ((unused)) = {
17022 .fallocate = fallocate,
17023 };
17024
17025 ;
17026 return 0;
17027 }
17028
17029 _ACEOF
17030
17031
17032 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17033 echo "obj-m := conftest.o" >build/Makefile
17034 modpost_flag=''
17035 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17036 if { 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'
17037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17041 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17046 test $ac_status = 0; }; }; then :
17047
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17049 $as_echo "yes" >&6; }
17050
17051 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
17052
17053
17054 else
17055 $as_echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17059 $as_echo "no" >&6; }
17060
17061
17062
17063 fi
17064 rm -Rf build
17065
17066
17067
17068
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
17070 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
17071
17072
17073 cat confdefs.h - <<_ACEOF >conftest.c
17074
17075
17076 #include <linux/fs.h>
17077
17078 int
17079 main (void)
17080 {
17081
17082 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
17083 struct inode_operations fops __attribute__ ((unused)) = {
17084 .fallocate = fallocate,
17085 };
17086
17087 ;
17088 return 0;
17089 }
17090
17091 _ACEOF
17092
17093
17094 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17095 echo "obj-m := conftest.o" >build/Makefile
17096 modpost_flag=''
17097 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17098 if { 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'
17099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17103 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17108 test $ac_status = 0; }; }; then :
17109
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17111 $as_echo "yes" >&6; }
17112
17113 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
17114
17115
17116 else
17117 $as_echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17119
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17121 $as_echo "no" >&6; }
17122
17123
17124
17125 fi
17126 rm -Rf build
17127
17128
17129
17130
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
17132 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17133
17134
17135 cat confdefs.h - <<_ACEOF >conftest.c
17136
17137
17138 #include <linux/fs.h>
17139
17140 int
17141 main (void)
17142 {
17143
17144 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17145 struct file_operations_no_const fops __attribute__ ((unused)) = {
17146 .fallocate = fallocate,
17147 };
17148
17149 ;
17150 return 0;
17151 }
17152
17153 _ACEOF
17154
17155
17156 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17157 echo "obj-m := conftest.o" >build/Makefile
17158 modpost_flag=''
17159 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17160 if { 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'
17161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17162 (eval $ac_try) 2>&5
17163 ac_status=$?
17164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17165 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17170 test $ac_status = 0; }; }; then :
17171
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17173 $as_echo "yes" >&6; }
17174
17175 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
17176
17177
17178 else
17179 $as_echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17183 $as_echo "no" >&6; }
17184
17185
17186
17187 fi
17188 rm -Rf build
17189
17190
17191
17192
17193
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
17195 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
17196
17197
17198 cat confdefs.h - <<_ACEOF >conftest.c
17199
17200
17201 #if !defined(CONFIG_ZLIB_INFLATE) && \
17202 !defined(CONFIG_ZLIB_INFLATE_MODULE)
17203 #error CONFIG_ZLIB_INFLATE not defined
17204 #endif
17205
17206 int
17207 main (void)
17208 {
17209
17210 ;
17211 return 0;
17212 }
17213
17214 _ACEOF
17215
17216
17217 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17218 echo "obj-m := conftest.o" >build/Makefile
17219 modpost_flag=''
17220 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17221 if { 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'
17222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17226 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17231 test $ac_status = 0; }; }; then :
17232
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17234 $as_echo "yes" >&6; }
17235
17236 else
17237 $as_echo "$as_me: failed program was:" >&5
17238 sed 's/^/| /' conftest.$ac_ext >&5
17239
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17241 $as_echo "no" >&6; }
17242 as_fn_error $? "
17243 *** This kernel does not include the required zlib inflate support.
17244 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
17245
17246
17247
17248 fi
17249 rm -Rf build
17250
17251
17252
17253
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
17255 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
17256
17257
17258 cat confdefs.h - <<_ACEOF >conftest.c
17259
17260
17261 #if !defined(CONFIG_ZLIB_DEFLATE) && \
17262 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
17263 #error CONFIG_ZLIB_DEFLATE not defined
17264 #endif
17265
17266 int
17267 main (void)
17268 {
17269
17270 ;
17271 return 0;
17272 }
17273
17274 _ACEOF
17275
17276
17277 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17278 echo "obj-m := conftest.o" >build/Makefile
17279 modpost_flag=''
17280 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17281 if { 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'
17282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17283 (eval $ac_try) 2>&5
17284 ac_status=$?
17285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17286 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17291 test $ac_status = 0; }; }; then :
17292
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17294 $as_echo "yes" >&6; }
17295
17296 else
17297 $as_echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17299
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17301 $as_echo "no" >&6; }
17302 as_fn_error $? "
17303 *** This kernel does not include the required zlib deflate support.
17304 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
17305
17306
17307
17308 fi
17309 rm -Rf build
17310
17311
17312
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
17314 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
17315
17316
17317 cat confdefs.h - <<_ACEOF >conftest.c
17318
17319
17320 #include <linux/zlib.h>
17321
17322 int
17323 main (void)
17324 {
17325
17326 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
17327
17328 ;
17329 return 0;
17330 }
17331
17332 _ACEOF
17333
17334
17335 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17336 echo "obj-m := conftest.o" >build/Makefile
17337 modpost_flag=''
17338 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17339 if { 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'
17340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17341 (eval $ac_try) 2>&5
17342 ac_status=$?
17343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17344 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17346 (eval $ac_try) 2>&5
17347 ac_status=$?
17348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17349 test $ac_status = 0; }; }; then :
17350
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17352 $as_echo "yes" >&6; }
17353
17354 $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
17355
17356
17357 else
17358 $as_echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17360
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17362 $as_echo "no" >&6; }
17363
17364
17365
17366 fi
17367 rm -Rf build
17368
17369
17370
17371
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
17373 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
17374
17375
17376 cat confdefs.h - <<_ACEOF >conftest.c
17377
17378
17379 #include <linux/mm.h>
17380
17381 int
17382 main (void)
17383 {
17384
17385 struct shrink_control sc __attribute__ ((unused));
17386
17387 sc.nr_to_scan = 0;
17388 sc.gfp_mask = GFP_KERNEL;
17389
17390 ;
17391 return 0;
17392 }
17393
17394 _ACEOF
17395
17396
17397 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17398 echo "obj-m := conftest.o" >build/Makefile
17399 modpost_flag=''
17400 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17401 if { 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'
17402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17406 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17408 (eval $ac_try) 2>&5
17409 ac_status=$?
17410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17411 test $ac_status = 0; }; }; then :
17412
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17414 $as_echo "yes" >&6; }
17415
17416 $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
17417
17418
17419 else
17420 $as_echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17422
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17424 $as_echo "no" >&6; }
17425
17426
17427
17428 fi
17429 rm -Rf build
17430
17431
17432
17433
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
17435 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
17436 tmp_flags="$EXTRA_KCFLAGS"
17437 EXTRA_KCFLAGS="-Werror"
17438
17439
17440 cat confdefs.h - <<_ACEOF >conftest.c
17441
17442
17443 #include <linux/rwsem.h>
17444
17445 int
17446 main (void)
17447 {
17448
17449 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17450 raw_spinlock_t dummy_lock __attribute__ ((unused));
17451 dummy_semaphore.wait_lock = dummy_lock;
17452
17453 ;
17454 return 0;
17455 }
17456
17457 _ACEOF
17458
17459
17460 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17461 echo "obj-m := conftest.o" >build/Makefile
17462 modpost_flag=''
17463 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17464 if { 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'
17465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17469 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17474 test $ac_status = 0; }; }; then :
17475
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17477 $as_echo "yes" >&6; }
17478
17479 $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
17480
17481
17482 else
17483 $as_echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17485
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17487 $as_echo "no" >&6; }
17488
17489
17490
17491 fi
17492 rm -Rf build
17493
17494
17495 EXTRA_KCFLAGS="$tmp_flags"
17496
17497
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5
17499 $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
17500 tmp_flags="$EXTRA_KCFLAGS"
17501 EXTRA_KCFLAGS="-Werror"
17502
17503
17504 cat confdefs.h - <<_ACEOF >conftest.c
17505
17506
17507 #include <linux/rwsem.h>
17508
17509 int
17510 main (void)
17511 {
17512
17513 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17514 dummy_semaphore.activity = 0;
17515
17516 ;
17517 return 0;
17518 }
17519
17520 _ACEOF
17521
17522
17523 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17524 echo "obj-m := conftest.o" >build/Makefile
17525 modpost_flag=''
17526 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17527 if { 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'
17528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17532 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17537 test $ac_status = 0; }; }; then :
17538
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17540 $as_echo "yes" >&6; }
17541
17542 $as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h
17543
17544
17545 else
17546 $as_echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17548
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17550 $as_echo "no" >&6; }
17551
17552
17553
17554 fi
17555 rm -Rf build
17556
17557
17558 EXTRA_KCFLAGS="$tmp_flags"
17559
17560
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5
17562 $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
17563 tmp_flags="$EXTRA_KCFLAGS"
17564 EXTRA_KCFLAGS="-Werror"
17565
17566
17567 cat confdefs.h - <<_ACEOF >conftest.c
17568
17569
17570 #include <linux/rwsem.h>
17571
17572 int
17573 main (void)
17574 {
17575
17576 DECLARE_RWSEM(dummy_semaphore);
17577 (void) atomic_long_read(&dummy_semaphore.count);
17578
17579 ;
17580 return 0;
17581 }
17582
17583 _ACEOF
17584
17585
17586 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17587 echo "obj-m := conftest.o" >build/Makefile
17588 modpost_flag=''
17589 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17590 if { 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'
17591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17595 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17600 test $ac_status = 0; }; }; then :
17601
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17603 $as_echo "yes" >&6; }
17604
17605 $as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h
17606
17607
17608 else
17609 $as_echo "$as_me: failed program was:" >&5
17610 sed 's/^/| /' conftest.$ac_ext >&5
17611
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17613 $as_echo "no" >&6; }
17614
17615
17616
17617 fi
17618 rm -Rf build
17619
17620
17621 EXTRA_KCFLAGS="$tmp_flags"
17622
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
17624 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
17625
17626
17627 cat confdefs.h - <<_ACEOF >conftest.c
17628
17629
17630 #include <linux/sched.h>
17631 #include <linux/sched/rt.h>
17632
17633 int
17634 main (void)
17635 {
17636
17637 return 0;
17638
17639 ;
17640 return 0;
17641 }
17642
17643 _ACEOF
17644
17645
17646 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17647 echo "obj-m := conftest.o" >build/Makefile
17648 modpost_flag=''
17649 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17650 if { 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'
17651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17655 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17657 (eval $ac_try) 2>&5
17658 ac_status=$?
17659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17660 test $ac_status = 0; }; }; then :
17661
17662
17663 $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
17664
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17666 $as_echo "yes" >&6; }
17667
17668 else
17669 $as_echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17671
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17673 $as_echo "no" >&6; }
17674
17675
17676
17677 fi
17678 rm -Rf build
17679
17680
17681
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/signal.h exists" >&5
17683 $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
17684
17685
17686 cat confdefs.h - <<_ACEOF >conftest.c
17687
17688
17689 #include <linux/sched.h>
17690 #include <linux/sched/signal.h>
17691
17692 int
17693 main (void)
17694 {
17695
17696 return 0;
17697
17698 ;
17699 return 0;
17700 }
17701
17702 _ACEOF
17703
17704
17705 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17706 echo "obj-m := conftest.o" >build/Makefile
17707 modpost_flag=''
17708 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17709 if { 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'
17710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17714 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17719 test $ac_status = 0; }; }; then :
17720
17721
17722 $as_echo "#define HAVE_SCHED_SIGNAL_HEADER 1" >>confdefs.h
17723
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17725 $as_echo "yes" >&6; }
17726
17727 else
17728 $as_echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17732 $as_echo "no" >&6; }
17733
17734
17735
17736 fi
17737 rm -Rf build
17738
17739
17740
17741
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 4 args" >&5
17743 $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
17744
17745
17746 cat confdefs.h - <<_ACEOF >conftest.c
17747
17748
17749 #include <linux/fs.h>
17750
17751 int
17752 main (void)
17753 {
17754
17755 vfs_getattr((const struct path *)NULL,
17756 (struct kstat *)NULL,
17757 (u32)0,
17758 (unsigned int)0);
17759
17760 ;
17761 return 0;
17762 }
17763
17764 _ACEOF
17765
17766
17767 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17768 echo "obj-m := conftest.o" >build/Makefile
17769 modpost_flag=''
17770 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17771 if { 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'
17772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17776 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17781 test $ac_status = 0; }; }; then :
17782
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17784 $as_echo "yes" >&6; }
17785
17786 $as_echo "#define HAVE_4ARGS_VFS_GETATTR 1" >>confdefs.h
17787
17788
17789 else
17790 $as_echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17792
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17794 $as_echo "no" >&6; }
17795
17796
17797
17798 fi
17799 rm -Rf build
17800
17801
17802
17803
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 3 args" >&5
17805 $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
17806
17807
17808 cat confdefs.h - <<_ACEOF >conftest.c
17809
17810
17811 #include <linux/fs.h>
17812
17813 int
17814 main (void)
17815 {
17816
17817 vfs_getattr((struct vfsmount *)NULL,
17818 (struct dentry *)NULL,
17819 (struct kstat *)NULL);
17820
17821 ;
17822 return 0;
17823 }
17824
17825 _ACEOF
17826
17827
17828 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17829 echo "obj-m := conftest.o" >build/Makefile
17830 modpost_flag=''
17831 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17832 if { 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'
17833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17837 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17839 (eval $ac_try) 2>&5
17840 ac_status=$?
17841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17842 test $ac_status = 0; }; }; then :
17843
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17845 $as_echo "yes" >&6; }
17846
17847 $as_echo "#define HAVE_3ARGS_VFS_GETATTR 1" >>confdefs.h
17848
17849
17850 else
17851 $as_echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17853
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855 $as_echo "no" >&6; }
17856
17857
17858
17859 fi
17860 rm -Rf build
17861
17862
17863
17864
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 2 args" >&5
17866 $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
17867
17868
17869 cat confdefs.h - <<_ACEOF >conftest.c
17870
17871
17872 #include <linux/fs.h>
17873
17874 int
17875 main (void)
17876 {
17877
17878 vfs_getattr((struct path *) NULL,
17879 (struct kstat *)NULL);
17880
17881 ;
17882 return 0;
17883 }
17884
17885 _ACEOF
17886
17887
17888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17889 echo "obj-m := conftest.o" >build/Makefile
17890 modpost_flag=''
17891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17892 if { 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'
17893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17897 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17899 (eval $ac_try) 2>&5
17900 ac_status=$?
17901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17902 test $ac_status = 0; }; }; then :
17903
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17905 $as_echo "yes" >&6; }
17906
17907 $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
17908
17909
17910 else
17911 $as_echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17913
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17915 $as_echo "no" >&6; }
17916
17917
17918
17919 fi
17920 rm -Rf build
17921
17922
17923
17924
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5
17926 $as_echo_n "checking whether usleep_range() is available... " >&6; }
17927
17928
17929 cat confdefs.h - <<_ACEOF >conftest.c
17930
17931
17932 #include <linux/delay.h>
17933
17934 int
17935 main (void)
17936 {
17937
17938 usleep_range(0, 0);
17939
17940 ;
17941 return 0;
17942 }
17943
17944 _ACEOF
17945
17946
17947 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17948 echo "obj-m := conftest.o" >build/Makefile
17949 modpost_flag=''
17950 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17951 if { 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'
17952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17956 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17958 (eval $ac_try) 2>&5
17959 ac_status=$?
17960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17961 test $ac_status = 0; }; }; then :
17962
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17964 $as_echo "yes" >&6; }
17965
17966 $as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h
17967
17968
17969 else
17970 $as_echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17974 $as_echo "no" >&6; }
17975
17976
17977
17978 fi
17979 rm -Rf build
17980
17981
17982
17983
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5
17985 $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
17986
17987
17988 cat confdefs.h - <<_ACEOF >conftest.c
17989
17990
17991 #include <linux/slab.h>
17992
17993 int
17994 main (void)
17995 {
17996
17997 struct kmem_cache cachep __attribute__ ((unused));
17998 cachep.allocflags = GFP_KERNEL;
17999
18000 ;
18001 return 0;
18002 }
18003
18004 _ACEOF
18005
18006
18007 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18008 echo "obj-m := conftest.o" >build/Makefile
18009 modpost_flag=''
18010 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18011 if { 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'
18012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18016 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18021 test $ac_status = 0; }; }; then :
18022
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18024 $as_echo "yes" >&6; }
18025
18026 $as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h
18027
18028
18029 else
18030 $as_echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18032
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18034 $as_echo "no" >&6; }
18035
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5
18037 $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
18038
18039
18040 cat confdefs.h - <<_ACEOF >conftest.c
18041
18042
18043 #include <linux/slab.h>
18044
18045 int
18046 main (void)
18047 {
18048
18049 struct kmem_cache cachep __attribute__ ((unused));
18050 cachep.gfpflags = GFP_KERNEL;
18051
18052 ;
18053 return 0;
18054 }
18055
18056 _ACEOF
18057
18058
18059 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18060 echo "obj-m := conftest.o" >build/Makefile
18061 modpost_flag=''
18062 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18063 if { 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'
18064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18068 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18073 test $ac_status = 0; }; }; then :
18074
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18076 $as_echo "yes" >&6; }
18077
18078 $as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h
18079
18080
18081 else
18082 $as_echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18084
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18086 $as_echo "no" >&6; }
18087
18088
18089
18090 fi
18091 rm -Rf build
18092
18093
18094
18095
18096
18097 fi
18098 rm -Rf build
18099
18100
18101
18102
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5
18104 $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
18105
18106
18107 cat confdefs.h - <<_ACEOF >conftest.c
18108
18109
18110 #include <linux/wait.h>
18111
18112 int
18113 main (void)
18114 {
18115
18116 int (*action)(void *) = NULL;
18117 wait_on_bit(NULL, 0, action, 0);
18118
18119 ;
18120 return 0;
18121 }
18122
18123 _ACEOF
18124
18125
18126 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18127 echo "obj-m := conftest.o" >build/Makefile
18128 modpost_flag=''
18129 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18130 if { 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'
18131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18135 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18140 test $ac_status = 0; }; }; then :
18141
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18143 $as_echo "yes" >&6; }
18144
18145 $as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h
18146
18147
18148 else
18149 $as_echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18151
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18153 $as_echo "no" >&6; }
18154
18155
18156
18157 fi
18158 rm -Rf build
18159
18160
18161
18162
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5
18164 $as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
18165 tmp_flags="$EXTRA_KCFLAGS"
18166 EXTRA_KCFLAGS="-Werror"
18167
18168
18169 cat confdefs.h - <<_ACEOF >conftest.c
18170
18171
18172 #include <linux/fs.h>
18173
18174 int
18175 main (void)
18176 {
18177
18178 struct inode *inode = NULL;
18179 inode_lock_shared(inode);
18180
18181 ;
18182 return 0;
18183 }
18184
18185 _ACEOF
18186
18187
18188 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18189 echo "obj-m := conftest.o" >build/Makefile
18190 modpost_flag=''
18191 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18192 if { 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'
18193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18194 (eval $ac_try) 2>&5
18195 ac_status=$?
18196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18197 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18199 (eval $ac_try) 2>&5
18200 ac_status=$?
18201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18202 test $ac_status = 0; }; }; then :
18203
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18205 $as_echo "yes" >&6; }
18206
18207 $as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h
18208
18209
18210 else
18211 $as_echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18213
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18215 $as_echo "no" >&6; }
18216
18217
18218
18219 fi
18220 rm -Rf build
18221
18222
18223 EXTRA_KCFLAGS="$tmp_flags"
18224
18225
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex has owner" >&5
18227 $as_echo_n "checking whether mutex has owner... " >&6; }
18228 tmp_flags="$EXTRA_KCFLAGS"
18229 EXTRA_KCFLAGS="-Werror"
18230
18231
18232 cat confdefs.h - <<_ACEOF >conftest.c
18233
18234
18235 #include <linux/mutex.h>
18236 #include <linux/spinlock.h>
18237
18238 int
18239 main (void)
18240 {
18241
18242 DEFINE_MUTEX(m);
18243 struct task_struct *t __attribute__ ((unused));
18244 t = m.owner;
18245
18246 ;
18247 return 0;
18248 }
18249
18250 _ACEOF
18251
18252
18253 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18254 echo "obj-m := conftest.o" >build/Makefile
18255 modpost_flag=''
18256 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18257 if { 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'
18258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18259 (eval $ac_try) 2>&5
18260 ac_status=$?
18261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18262 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18267 test $ac_status = 0; }; }; then :
18268
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18270 $as_echo "yes" >&6; }
18271
18272 $as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
18273
18274
18275 else
18276 $as_echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18278
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18280 $as_echo "no" >&6; }
18281
18282
18283
18284 fi
18285 rm -Rf build
18286
18287
18288 EXTRA_KCFLAGS="$tmp_flags"
18289
18290
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether group_info->gid exists" >&5
18292 $as_echo_n "checking whether group_info->gid exists... " >&6; }
18293 tmp_flags="$EXTRA_KCFLAGS"
18294 EXTRA_KCFLAGS="-Werror"
18295
18296
18297 cat confdefs.h - <<_ACEOF >conftest.c
18298
18299
18300 #include <linux/cred.h>
18301
18302 int
18303 main (void)
18304 {
18305
18306 struct group_info *gi = groups_alloc(1);
18307 gi->gid[0] = KGIDT_INIT(0);
18308
18309 ;
18310 return 0;
18311 }
18312
18313 _ACEOF
18314
18315
18316 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18317 echo "obj-m := conftest.o" >build/Makefile
18318 modpost_flag=''
18319 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18320 if { 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'
18321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18325 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18327 (eval $ac_try) 2>&5
18328 ac_status=$?
18329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18330 test $ac_status = 0; }; }; then :
18331
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18333 $as_echo "yes" >&6; }
18334
18335 $as_echo "#define HAVE_GROUP_INFO_GID 1" >>confdefs.h
18336
18337
18338 else
18339 $as_echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.$ac_ext >&5
18341
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343 $as_echo "no" >&6; }
18344
18345
18346
18347 fi
18348 rm -Rf build
18349
18350
18351 EXTRA_KCFLAGS="$tmp_flags"
18352
18353
18354 ;;
18355 srpm) ;;
18356 *)
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
18358 $as_echo "Error!" >&6; }
18359 as_fn_error $? "Bad value \"$SPL_CONFIG\" for --with-config,
18360 user kernel|user|all|srpm" "$LINENO" 5 ;;
18361 esac
18362
18363 if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then
18364 CONFIG_USER_TRUE=
18365 CONFIG_USER_FALSE='#'
18366 else
18367 CONFIG_USER_TRUE='#'
18368 CONFIG_USER_FALSE=
18369 fi
18370
18371 if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all &&
18372 test "x$enable_linux_builtin" != xyes ; then
18373 CONFIG_KERNEL_TRUE=
18374 CONFIG_KERNEL_FALSE='#'
18375 else
18376 CONFIG_KERNEL_TRUE='#'
18377 CONFIG_KERNEL_FALSE=
18378 fi
18379
18380
18381
18382 ac_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"
18383
18384
18385 cat >confcache <<\_ACEOF
18386 # This file is a shell script that caches the results of configure
18387 # tests run on this system so they can be shared between configure
18388 # scripts and configure runs, see configure's option --config-cache.
18389 # It is not useful on other systems. If it contains results you don't
18390 # want to keep, you may remove or edit it.
18391 #
18392 # config.status only pays attention to the cache file if you give it
18393 # the --recheck option to rerun configure.
18394 #
18395 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18397 # following values.
18398
18399 _ACEOF
18400
18401 # The following way of writing the cache mishandles newlines in values,
18402 # but we know of no workaround that is simple, portable, and efficient.
18403 # So, we kill variables containing newlines.
18404 # Ultrix sh set writes to stderr and can't be redirected directly,
18405 # and sets the high bit in the cache file unless we assign to the vars.
18406 (
18407 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18408 eval ac_val=\$$ac_var
18409 case $ac_val in #(
18410 *${as_nl}*)
18411 case $ac_var in #(
18412 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18413 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18414 esac
18415 case $ac_var in #(
18416 _ | IFS | as_nl) ;; #(
18417 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18418 *) { eval $ac_var=; unset $ac_var;} ;;
18419 esac ;;
18420 esac
18421 done
18422
18423 (set) 2>&1 |
18424 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18425 *${as_nl}ac_space=\ *)
18426 # `set' does not quote correctly, so add quotes: double-quote
18427 # substitution turns \\\\ into \\, and sed turns \\ into \.
18428 sed -n \
18429 "s/'/'\\\\''/g;
18430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18431 ;; #(
18432 *)
18433 # `set' quotes correctly as required by POSIX, so do not add quotes.
18434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18435 ;;
18436 esac |
18437 sort
18438 ) |
18439 sed '
18440 /^ac_cv_env_/b end
18441 t clear
18442 :clear
18443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18444 t end
18445 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18446 :end' >>confcache
18447 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18448 if test -w "$cache_file"; then
18449 if test "x$cache_file" != "x/dev/null"; then
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18451 $as_echo "$as_me: updating cache $cache_file" >&6;}
18452 if test ! -f "$cache_file" || test -h "$cache_file"; then
18453 cat confcache >"$cache_file"
18454 else
18455 case $cache_file in #(
18456 */* | ?:*)
18457 mv -f confcache "$cache_file"$$ &&
18458 mv -f "$cache_file"$$ "$cache_file" ;; #(
18459 *)
18460 mv -f confcache "$cache_file" ;;
18461 esac
18462 fi
18463 fi
18464 else
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18466 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18467 fi
18468 fi
18469 rm -f confcache
18470
18471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18472 # Let make expand exec_prefix.
18473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18474
18475 DEFS=-DHAVE_CONFIG_H
18476
18477 ac_libobjs=
18478 ac_ltlibobjs=
18479 U=
18480 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18481 # 1. Remove the extension, and $U if already installed.
18482 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18483 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18484 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18485 # will be set to the directory where LIBOBJS objects are built.
18486 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18487 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18488 done
18489 LIBOBJS=$ac_libobjs
18490
18491 LTLIBOBJS=$ac_ltlibobjs
18492
18493
18494 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18495 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18497 fi
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18499 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18500 if test -n "$am_sleep_pid"; then
18501 # Hide warnings about reused PIDs.
18502 wait $am_sleep_pid 2>/dev/null
18503 fi
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18505 $as_echo "done" >&6; }
18506 if test -n "$EXEEXT"; then
18507 am__EXEEXT_TRUE=
18508 am__EXEEXT_FALSE='#'
18509 else
18510 am__EXEEXT_TRUE='#'
18511 am__EXEEXT_FALSE=
18512 fi
18513
18514 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18515 as_fn_error $? "conditional \"AMDEP\" was never defined.
18516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18517 fi
18518 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18519 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18521 fi
18522 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18523 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
18524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18525 fi
18526 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18527 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
18528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18529 fi
18530
18531 : "${CONFIG_STATUS=./config.status}"
18532 ac_write_fail=0
18533 ac_clean_files_save=$ac_clean_files
18534 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18536 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18537 as_write_fail=0
18538 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18539 #! $SHELL
18540 # Generated by $as_me.
18541 # Run this file to recreate the current configuration.
18542 # Compiler output produced by configure, useful for debugging
18543 # configure, is in config.log if it exists.
18544
18545 debug=false
18546 ac_cs_recheck=false
18547 ac_cs_silent=false
18548
18549 SHELL=\${CONFIG_SHELL-$SHELL}
18550 export SHELL
18551 _ASEOF
18552 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18553 ## -------------------- ##
18554 ## M4sh Initialization. ##
18555 ## -------------------- ##
18556
18557 # Be more Bourne compatible
18558 DUALCASE=1; export DUALCASE # for MKS sh
18559 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18560 emulate sh
18561 NULLCMD=:
18562 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18563 # is contrary to our usage. Disable this feature.
18564 alias -g '${1+"$@"}'='"$@"'
18565 setopt NO_GLOB_SUBST
18566 else
18567 case `(set -o) 2>/dev/null` in #(
18568 *posix*) :
18569 set -o posix ;; #(
18570 *) :
18571 ;;
18572 esac
18573 fi
18574
18575
18576 as_nl='
18577 '
18578 export as_nl
18579 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18580 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18581 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18582 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18583 # Prefer a ksh shell builtin over an external printf program on Solaris,
18584 # but without wasting forks for bash or zsh.
18585 if test -z "$BASH_VERSION$ZSH_VERSION" \
18586 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18587 as_echo='print -r --'
18588 as_echo_n='print -rn --'
18589 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18590 as_echo='printf %s\n'
18591 as_echo_n='printf %s'
18592 else
18593 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18594 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18595 as_echo_n='/usr/ucb/echo -n'
18596 else
18597 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18598 as_echo_n_body='eval
18599 arg=$1;
18600 case $arg in #(
18601 *"$as_nl"*)
18602 expr "X$arg" : "X\\(.*\\)$as_nl";
18603 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18604 esac;
18605 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18606 '
18607 export as_echo_n_body
18608 as_echo_n='sh -c $as_echo_n_body as_echo'
18609 fi
18610 export as_echo_body
18611 as_echo='sh -c $as_echo_body as_echo'
18612 fi
18613
18614 # The user is always right.
18615 if test "${PATH_SEPARATOR+set}" != set; then
18616 PATH_SEPARATOR=:
18617 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18618 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18619 PATH_SEPARATOR=';'
18620 }
18621 fi
18622
18623
18624 # IFS
18625 # We need space, tab and new line, in precisely that order. Quoting is
18626 # there to prevent editors from complaining about space-tab.
18627 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18628 # splitting by setting IFS to empty value.)
18629 IFS=" "" $as_nl"
18630
18631 # Find who we are. Look in the path if we contain no directory separator.
18632 as_myself=
18633 case $0 in #((
18634 *[\\/]* ) as_myself=$0 ;;
18635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18636 for as_dir in $PATH
18637 do
18638 IFS=$as_save_IFS
18639 test -z "$as_dir" && as_dir=.
18640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18641 done
18642 IFS=$as_save_IFS
18643
18644 ;;
18645 esac
18646 # We did not find ourselves, most probably we were run as `sh COMMAND'
18647 # in which case we are not to be found in the path.
18648 if test "x$as_myself" = x; then
18649 as_myself=$0
18650 fi
18651 if test ! -f "$as_myself"; then
18652 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18653 exit 1
18654 fi
18655
18656 # Unset variables that we do not need and which cause bugs (e.g. in
18657 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18658 # suppresses any "Segmentation fault" message there. '((' could
18659 # trigger a bug in pdksh 5.2.14.
18660 for as_var in BASH_ENV ENV MAIL MAILPATH
18661 do eval test x\${$as_var+set} = xset \
18662 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18663 done
18664 PS1='$ '
18665 PS2='> '
18666 PS4='+ '
18667
18668 # NLS nuisances.
18669 LC_ALL=C
18670 export LC_ALL
18671 LANGUAGE=C
18672 export LANGUAGE
18673
18674 # CDPATH.
18675 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18676
18677
18678 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18679 # ----------------------------------------
18680 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18681 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18682 # script with STATUS, using 1 if that was 0.
18683 as_fn_error ()
18684 {
18685 as_status=$1; test $as_status -eq 0 && as_status=1
18686 if test "$4"; then
18687 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18688 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18689 fi
18690 $as_echo "$as_me: error: $2" >&2
18691 as_fn_exit $as_status
18692 } # as_fn_error
18693
18694
18695 # as_fn_set_status STATUS
18696 # -----------------------
18697 # Set $? to STATUS, without forking.
18698 as_fn_set_status ()
18699 {
18700 return $1
18701 } # as_fn_set_status
18702
18703 # as_fn_exit STATUS
18704 # -----------------
18705 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18706 as_fn_exit ()
18707 {
18708 set +e
18709 as_fn_set_status $1
18710 exit $1
18711 } # as_fn_exit
18712
18713 # as_fn_unset VAR
18714 # ---------------
18715 # Portably unset VAR.
18716 as_fn_unset ()
18717 {
18718 { eval $1=; unset $1;}
18719 }
18720 as_unset=as_fn_unset
18721 # as_fn_append VAR VALUE
18722 # ----------------------
18723 # Append the text in VALUE to the end of the definition contained in VAR. Take
18724 # advantage of any shell optimizations that allow amortized linear growth over
18725 # repeated appends, instead of the typical quadratic growth present in naive
18726 # implementations.
18727 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18728 eval 'as_fn_append ()
18729 {
18730 eval $1+=\$2
18731 }'
18732 else
18733 as_fn_append ()
18734 {
18735 eval $1=\$$1\$2
18736 }
18737 fi # as_fn_append
18738
18739 # as_fn_arith ARG...
18740 # ------------------
18741 # Perform arithmetic evaluation on the ARGs, and store the result in the
18742 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18743 # must be portable across $(()) and expr.
18744 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18745 eval 'as_fn_arith ()
18746 {
18747 as_val=$(( $* ))
18748 }'
18749 else
18750 as_fn_arith ()
18751 {
18752 as_val=`expr "$@" || test $? -eq 1`
18753 }
18754 fi # as_fn_arith
18755
18756
18757 if expr a : '\(a\)' >/dev/null 2>&1 &&
18758 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18759 as_expr=expr
18760 else
18761 as_expr=false
18762 fi
18763
18764 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18765 as_basename=basename
18766 else
18767 as_basename=false
18768 fi
18769
18770 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18771 as_dirname=dirname
18772 else
18773 as_dirname=false
18774 fi
18775
18776 as_me=`$as_basename -- "$0" ||
18777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18778 X"$0" : 'X\(//\)$' \| \
18779 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18780 $as_echo X/"$0" |
18781 sed '/^.*\/\([^/][^/]*\)\/*$/{
18782 s//\1/
18783 q
18784 }
18785 /^X\/\(\/\/\)$/{
18786 s//\1/
18787 q
18788 }
18789 /^X\/\(\/\).*/{
18790 s//\1/
18791 q
18792 }
18793 s/.*/./; q'`
18794
18795 # Avoid depending upon Character Ranges.
18796 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18797 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18798 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18799 as_cr_digits='0123456789'
18800 as_cr_alnum=$as_cr_Letters$as_cr_digits
18801
18802 ECHO_C= ECHO_N= ECHO_T=
18803 case `echo -n x` in #(((((
18804 -n*)
18805 case `echo 'xy\c'` in
18806 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18807 xy) ECHO_C='\c';;
18808 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18809 ECHO_T=' ';;
18810 esac;;
18811 *)
18812 ECHO_N='-n';;
18813 esac
18814
18815 rm -f conf$$ conf$$.exe conf$$.file
18816 if test -d conf$$.dir; then
18817 rm -f conf$$.dir/conf$$.file
18818 else
18819 rm -f conf$$.dir
18820 mkdir conf$$.dir 2>/dev/null
18821 fi
18822 if (echo >conf$$.file) 2>/dev/null; then
18823 if ln -s conf$$.file conf$$ 2>/dev/null; then
18824 as_ln_s='ln -s'
18825 # ... but there are two gotchas:
18826 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18827 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18828 # In both cases, we have to default to `cp -pR'.
18829 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18830 as_ln_s='cp -pR'
18831 elif ln conf$$.file conf$$ 2>/dev/null; then
18832 as_ln_s=ln
18833 else
18834 as_ln_s='cp -pR'
18835 fi
18836 else
18837 as_ln_s='cp -pR'
18838 fi
18839 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18840 rmdir conf$$.dir 2>/dev/null
18841
18842
18843 # as_fn_mkdir_p
18844 # -------------
18845 # Create "$as_dir" as a directory, including parents if necessary.
18846 as_fn_mkdir_p ()
18847 {
18848
18849 case $as_dir in #(
18850 -*) as_dir=./$as_dir;;
18851 esac
18852 test -d "$as_dir" || eval $as_mkdir_p || {
18853 as_dirs=
18854 while :; do
18855 case $as_dir in #(
18856 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18857 *) as_qdir=$as_dir;;
18858 esac
18859 as_dirs="'$as_qdir' $as_dirs"
18860 as_dir=`$as_dirname -- "$as_dir" ||
18861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18862 X"$as_dir" : 'X\(//\)[^/]' \| \
18863 X"$as_dir" : 'X\(//\)$' \| \
18864 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18865 $as_echo X"$as_dir" |
18866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18867 s//\1/
18868 q
18869 }
18870 /^X\(\/\/\)[^/].*/{
18871 s//\1/
18872 q
18873 }
18874 /^X\(\/\/\)$/{
18875 s//\1/
18876 q
18877 }
18878 /^X\(\/\).*/{
18879 s//\1/
18880 q
18881 }
18882 s/.*/./; q'`
18883 test -d "$as_dir" && break
18884 done
18885 test -z "$as_dirs" || eval "mkdir $as_dirs"
18886 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18887
18888
18889 } # as_fn_mkdir_p
18890 if mkdir -p . 2>/dev/null; then
18891 as_mkdir_p='mkdir -p "$as_dir"'
18892 else
18893 test -d ./-p && rmdir ./-p
18894 as_mkdir_p=false
18895 fi
18896
18897
18898 # as_fn_executable_p FILE
18899 # -----------------------
18900 # Test if FILE is an executable regular file.
18901 as_fn_executable_p ()
18902 {
18903 test -f "$1" && test -x "$1"
18904 } # as_fn_executable_p
18905 as_test_x='test -x'
18906 as_executable_p=as_fn_executable_p
18907
18908 # Sed expression to map a string onto a valid CPP name.
18909 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18910
18911 # Sed expression to map a string onto a valid variable name.
18912 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18913
18914
18915 exec 6>&1
18916 ## ----------------------------------- ##
18917 ## Main body of $CONFIG_STATUS script. ##
18918 ## ----------------------------------- ##
18919 _ASEOF
18920 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18921
18922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18923 # Save the log message, to keep $0 and so on meaningful, and to
18924 # report actual input values of CONFIG_FILES etc. instead of their
18925 # values after options handling.
18926 ac_log="
18927 This file was extended by spl $as_me 0.6.5.10, which was
18928 generated by GNU Autoconf 2.69. Invocation command line was
18929
18930 CONFIG_FILES = $CONFIG_FILES
18931 CONFIG_HEADERS = $CONFIG_HEADERS
18932 CONFIG_LINKS = $CONFIG_LINKS
18933 CONFIG_COMMANDS = $CONFIG_COMMANDS
18934 $ $0 $@
18935
18936 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18937 "
18938
18939 _ACEOF
18940
18941 case $ac_config_files in *"
18942 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18943 esac
18944
18945 case $ac_config_headers in *"
18946 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18947 esac
18948
18949
18950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18951 # Files that config.status was made for.
18952 config_files="$ac_config_files"
18953 config_headers="$ac_config_headers"
18954 config_commands="$ac_config_commands"
18955
18956 _ACEOF
18957
18958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18959 ac_cs_usage="\
18960 \`$as_me' instantiates files and other configuration actions
18961 from templates according to the current configuration. Unless the files
18962 and actions are specified as TAGs, all are instantiated by default.
18963
18964 Usage: $0 [OPTION]... [TAG]...
18965
18966 -h, --help print this help, then exit
18967 -V, --version print version number and configuration settings, then exit
18968 --config print configuration, then exit
18969 -q, --quiet, --silent
18970 do not print progress messages
18971 -d, --debug don't remove temporary files
18972 --recheck update $as_me by reconfiguring in the same conditions
18973 --file=FILE[:TEMPLATE]
18974 instantiate the configuration file FILE
18975 --header=FILE[:TEMPLATE]
18976 instantiate the configuration header FILE
18977
18978 Configuration files:
18979 $config_files
18980
18981 Configuration headers:
18982 $config_headers
18983
18984 Configuration commands:
18985 $config_commands
18986
18987 Report bugs to the package provider."
18988
18989 _ACEOF
18990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18991 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18992 ac_cs_version="\\
18993 spl config.status 0.6.5.10
18994 configured by $0, generated by GNU Autoconf 2.69,
18995 with options \\"\$ac_cs_config\\"
18996
18997 Copyright (C) 2012 Free Software Foundation, Inc.
18998 This config.status script is free software; the Free Software Foundation
18999 gives unlimited permission to copy, distribute and modify it."
19000
19001 ac_pwd='$ac_pwd'
19002 srcdir='$srcdir'
19003 INSTALL='$INSTALL'
19004 MKDIR_P='$MKDIR_P'
19005 AWK='$AWK'
19006 test -n "\$AWK" || AWK=awk
19007 _ACEOF
19008
19009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19010 # The default lists apply if the user does not specify any file.
19011 ac_need_defaults=:
19012 while test $# != 0
19013 do
19014 case $1 in
19015 --*=?*)
19016 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19017 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19018 ac_shift=:
19019 ;;
19020 --*=)
19021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19022 ac_optarg=
19023 ac_shift=:
19024 ;;
19025 *)
19026 ac_option=$1
19027 ac_optarg=$2
19028 ac_shift=shift
19029 ;;
19030 esac
19031
19032 case $ac_option in
19033 # Handling of the options.
19034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19035 ac_cs_recheck=: ;;
19036 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19037 $as_echo "$ac_cs_version"; exit ;;
19038 --config | --confi | --conf | --con | --co | --c )
19039 $as_echo "$ac_cs_config"; exit ;;
19040 --debug | --debu | --deb | --de | --d | -d )
19041 debug=: ;;
19042 --file | --fil | --fi | --f )
19043 $ac_shift
19044 case $ac_optarg in
19045 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19046 '') as_fn_error $? "missing file argument" ;;
19047 esac
19048 as_fn_append CONFIG_FILES " '$ac_optarg'"
19049 ac_need_defaults=false;;
19050 --header | --heade | --head | --hea )
19051 $ac_shift
19052 case $ac_optarg in
19053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19054 esac
19055 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19056 ac_need_defaults=false;;
19057 --he | --h)
19058 # Conflict between --help and --header
19059 as_fn_error $? "ambiguous option: \`$1'
19060 Try \`$0 --help' for more information.";;
19061 --help | --hel | -h )
19062 $as_echo "$ac_cs_usage"; exit ;;
19063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19064 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19065 ac_cs_silent=: ;;
19066
19067 # This is an error.
19068 -*) as_fn_error $? "unrecognized option: \`$1'
19069 Try \`$0 --help' for more information." ;;
19070
19071 *) as_fn_append ac_config_targets " $1"
19072 ac_need_defaults=false ;;
19073
19074 esac
19075 shift
19076 done
19077
19078 ac_configure_extra_args=
19079
19080 if $ac_cs_silent; then
19081 exec 6>/dev/null
19082 ac_configure_extra_args="$ac_configure_extra_args --silent"
19083 fi
19084
19085 _ACEOF
19086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19087 if \$ac_cs_recheck; then
19088 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19089 shift
19090 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19091 CONFIG_SHELL='$SHELL'
19092 export CONFIG_SHELL
19093 exec "\$@"
19094 fi
19095
19096 _ACEOF
19097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19098 exec 5>>config.log
19099 {
19100 echo
19101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19102 ## Running $as_me. ##
19103 _ASBOX
19104 $as_echo "$ac_log"
19105 } >&5
19106
19107 _ACEOF
19108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19109 #
19110 # INIT-COMMANDS
19111 #
19112 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19113
19114
19115 # The HP-UX ksh and POSIX shell print the target directory to stdout
19116 # if CDPATH is set.
19117 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19118
19119 sed_quote_subst='$sed_quote_subst'
19120 double_quote_subst='$double_quote_subst'
19121 delay_variable_subst='$delay_variable_subst'
19122 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19123 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19124 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19125 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19126 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19127 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19128 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19129 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19130 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19131 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19132 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19133 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19134 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19135 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19136 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19137 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19138 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19139 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19140 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19141 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19142 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19143 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19144 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19145 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19146 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19147 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19148 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19149 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19150 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19151 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19152 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19153 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19154 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19155 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19156 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19157 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19158 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19159 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19160 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19161 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19162 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19163 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19164 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19165 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19166 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19167 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19168 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19169 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19170 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19171 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19172 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19173 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19174 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19175 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19176 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19177 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19178 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19179 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19180 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19181 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19182 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19183 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19184 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19185 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19186 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19187 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19188 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19189 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19190 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19191 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19192 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19193 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19194 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19195 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19196 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19197 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19198 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19199 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19200 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19201 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19202 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19203 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19204 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19205 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19206 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19207 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19208 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19209 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19210 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19211 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19212 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19213 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19214 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19215 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19216 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19217 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19218 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19219 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19220 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19221 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19222 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19223 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19224 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19225 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19226 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19227 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19228 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19229 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19230 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19231 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19232 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19233 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19234 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19235 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19236 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19237 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19238 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19239 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19240 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19241 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19242 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19243 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19244 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19245 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19246 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19247 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19248 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19249 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19250 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19251 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19252 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19253 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19254 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19255 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19256 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19257
19258 LTCC='$LTCC'
19259 LTCFLAGS='$LTCFLAGS'
19260 compiler='$compiler_DEFAULT'
19261
19262 # A function that is used when there is no print builtin or printf.
19263 func_fallback_echo ()
19264 {
19265 eval 'cat <<_LTECHO_EOF
19266 \$1
19267 _LTECHO_EOF'
19268 }
19269
19270 # Quote evaled strings.
19271 for var in SHELL \
19272 ECHO \
19273 PATH_SEPARATOR \
19274 SED \
19275 GREP \
19276 EGREP \
19277 FGREP \
19278 LD \
19279 NM \
19280 LN_S \
19281 lt_SP2NL \
19282 lt_NL2SP \
19283 reload_flag \
19284 OBJDUMP \
19285 deplibs_check_method \
19286 file_magic_cmd \
19287 file_magic_glob \
19288 want_nocaseglob \
19289 DLLTOOL \
19290 sharedlib_from_linklib_cmd \
19291 AR \
19292 AR_FLAGS \
19293 archiver_list_spec \
19294 STRIP \
19295 RANLIB \
19296 CC \
19297 CFLAGS \
19298 compiler \
19299 lt_cv_sys_global_symbol_pipe \
19300 lt_cv_sys_global_symbol_to_cdecl \
19301 lt_cv_sys_global_symbol_to_import \
19302 lt_cv_sys_global_symbol_to_c_name_address \
19303 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19304 lt_cv_nm_interface \
19305 nm_file_list_spec \
19306 lt_cv_truncate_bin \
19307 lt_prog_compiler_no_builtin_flag \
19308 lt_prog_compiler_pic \
19309 lt_prog_compiler_wl \
19310 lt_prog_compiler_static \
19311 lt_cv_prog_compiler_c_o \
19312 need_locks \
19313 MANIFEST_TOOL \
19314 DSYMUTIL \
19315 NMEDIT \
19316 LIPO \
19317 OTOOL \
19318 OTOOL64 \
19319 shrext_cmds \
19320 export_dynamic_flag_spec \
19321 whole_archive_flag_spec \
19322 compiler_needs_object \
19323 with_gnu_ld \
19324 allow_undefined_flag \
19325 no_undefined_flag \
19326 hardcode_libdir_flag_spec \
19327 hardcode_libdir_separator \
19328 exclude_expsyms \
19329 include_expsyms \
19330 file_list_spec \
19331 variables_saved_for_relink \
19332 libname_spec \
19333 library_names_spec \
19334 soname_spec \
19335 install_override_mode \
19336 finish_eval \
19337 old_striplib \
19338 striplib; do
19339 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19340 *[\\\\\\\`\\"\\\$]*)
19341 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19342 ;;
19343 *)
19344 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19345 ;;
19346 esac
19347 done
19348
19349 # Double-quote double-evaled strings.
19350 for var in reload_cmds \
19351 old_postinstall_cmds \
19352 old_postuninstall_cmds \
19353 old_archive_cmds \
19354 extract_expsyms_cmds \
19355 old_archive_from_new_cmds \
19356 old_archive_from_expsyms_cmds \
19357 archive_cmds \
19358 archive_expsym_cmds \
19359 module_cmds \
19360 module_expsym_cmds \
19361 export_symbols_cmds \
19362 prelink_cmds \
19363 postlink_cmds \
19364 postinstall_cmds \
19365 postuninstall_cmds \
19366 finish_cmds \
19367 sys_lib_search_path_spec \
19368 configure_time_dlsearch_path \
19369 configure_time_lt_sys_library_path; do
19370 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19371 *[\\\\\\\`\\"\\\$]*)
19372 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19373 ;;
19374 *)
19375 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19376 ;;
19377 esac
19378 done
19379
19380 ac_aux_dir='$ac_aux_dir'
19381
19382 # See if we are running on zsh, and set the options that allow our
19383 # commands through without removal of \ escapes INIT.
19384 if test -n "\${ZSH_VERSION+set}"; then
19385 setopt NO_GLOB_SUBST
19386 fi
19387
19388
19389 PACKAGE='$PACKAGE'
19390 VERSION='$VERSION'
19391 RM='$RM'
19392 ofile='$ofile'
19393
19394
19395
19396
19397 _ACEOF
19398
19399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19400
19401 # Handling of arguments.
19402 for ac_config_target in $ac_config_targets
19403 do
19404 case $ac_config_target in
19405 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19406 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19407 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19408 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19409 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19410 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
19411 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
19412 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19413 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
19414 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19415 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19416 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19417 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19418 "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;;
19419 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
19420 "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;;
19421 "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;;
19422 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
19423 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
19424 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
19425 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
19426 "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;;
19427 "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;;
19428 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19429 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
19430 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
19431 "rpm/redhat/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl.spec" ;;
19432 "rpm/redhat/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;;
19433 "rpm/redhat/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;;
19434 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
19435 "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;;
19436 "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
19437 "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
19438 "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;;
19439
19440 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19441 esac
19442 done
19443
19444
19445 # If the user did not use the arguments to specify the items to instantiate,
19446 # then the envvar interface is used. Set only those that are not.
19447 # We use the long form for the default assignment because of an extremely
19448 # bizarre bug on SunOS 4.1.3.
19449 if $ac_need_defaults; then
19450 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19451 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19452 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19453 fi
19454
19455 # Have a temporary directory for convenience. Make it in the build tree
19456 # simply because there is no reason against having it here, and in addition,
19457 # creating and moving files from /tmp can sometimes cause problems.
19458 # Hook for its removal unless debugging.
19459 # Note that there is a small window in which the directory will not be cleaned:
19460 # after its creation but before its name has been assigned to `$tmp'.
19461 $debug ||
19462 {
19463 tmp= ac_tmp=
19464 trap 'exit_status=$?
19465 : "${ac_tmp:=$tmp}"
19466 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19467 ' 0
19468 trap 'as_fn_exit 1' 1 2 13 15
19469 }
19470 # Create a (secure) tmp directory for tmp files.
19471
19472 {
19473 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19474 test -d "$tmp"
19475 } ||
19476 {
19477 tmp=./conf$$-$RANDOM
19478 (umask 077 && mkdir "$tmp")
19479 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19480 ac_tmp=$tmp
19481
19482 # Set up the scripts for CONFIG_FILES section.
19483 # No need to generate them if there are no CONFIG_FILES.
19484 # This happens for instance with `./config.status config.h'.
19485 if test -n "$CONFIG_FILES"; then
19486
19487
19488 ac_cr=`echo X | tr X '\015'`
19489 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19490 # But we know of no other shell where ac_cr would be empty at this
19491 # point, so we can use a bashism as a fallback.
19492 if test "x$ac_cr" = x; then
19493 eval ac_cr=\$\'\\r\'
19494 fi
19495 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19496 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19497 ac_cs_awk_cr='\\r'
19498 else
19499 ac_cs_awk_cr=$ac_cr
19500 fi
19501
19502 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19503 _ACEOF
19504
19505
19506 {
19507 echo "cat >conf$$subs.awk <<_ACEOF" &&
19508 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19509 echo "_ACEOF"
19510 } >conf$$subs.sh ||
19511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19512 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19513 ac_delim='%!_!# '
19514 for ac_last_try in false false false false false :; do
19515 . ./conf$$subs.sh ||
19516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19517
19518 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19519 if test $ac_delim_n = $ac_delim_num; then
19520 break
19521 elif $ac_last_try; then
19522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19523 else
19524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19525 fi
19526 done
19527 rm -f conf$$subs.sh
19528
19529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19530 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19531 _ACEOF
19532 sed -n '
19533 h
19534 s/^/S["/; s/!.*/"]=/
19535 p
19536 g
19537 s/^[^!]*!//
19538 :repl
19539 t repl
19540 s/'"$ac_delim"'$//
19541 t delim
19542 :nl
19543 h
19544 s/\(.\{148\}\)..*/\1/
19545 t more1
19546 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19547 p
19548 n
19549 b repl
19550 :more1
19551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19552 p
19553 g
19554 s/.\{148\}//
19555 t nl
19556 :delim
19557 h
19558 s/\(.\{148\}\)..*/\1/
19559 t more2
19560 s/["\\]/\\&/g; s/^/"/; s/$/"/
19561 p
19562 b
19563 :more2
19564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19565 p
19566 g
19567 s/.\{148\}//
19568 t delim
19569 ' <conf$$subs.awk | sed '
19570 /^[^""]/{
19571 N
19572 s/\n//
19573 }
19574 ' >>$CONFIG_STATUS || ac_write_fail=1
19575 rm -f conf$$subs.awk
19576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19577 _ACAWK
19578 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19579 for (key in S) S_is_set[key] = 1
19580 FS = "\a"
19581
19582 }
19583 {
19584 line = $ 0
19585 nfields = split(line, field, "@")
19586 substed = 0
19587 len = length(field[1])
19588 for (i = 2; i < nfields; i++) {
19589 key = field[i]
19590 keylen = length(key)
19591 if (S_is_set[key]) {
19592 value = S[key]
19593 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19594 len += length(value) + length(field[++i])
19595 substed = 1
19596 } else
19597 len += 1 + keylen
19598 }
19599
19600 print line
19601 }
19602
19603 _ACAWK
19604 _ACEOF
19605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19606 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19607 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19608 else
19609 cat
19610 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19611 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19612 _ACEOF
19613
19614 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19615 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19616 # trailing colons and then remove the whole line if VPATH becomes empty
19617 # (actually we leave an empty line to preserve line numbers).
19618 if test "x$srcdir" = x.; then
19619 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19620 h
19621 s///
19622 s/^/:/
19623 s/[ ]*$/:/
19624 s/:\$(srcdir):/:/g
19625 s/:\${srcdir}:/:/g
19626 s/:@srcdir@:/:/g
19627 s/^:*//
19628 s/:*$//
19629 x
19630 s/\(=[ ]*\).*/\1/
19631 G
19632 s/\n//
19633 s/^[^=]*=[ ]*$//
19634 }'
19635 fi
19636
19637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19638 fi # test -n "$CONFIG_FILES"
19639
19640 # Set up the scripts for CONFIG_HEADERS section.
19641 # No need to generate them if there are no CONFIG_HEADERS.
19642 # This happens for instance with `./config.status Makefile'.
19643 if test -n "$CONFIG_HEADERS"; then
19644 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19645 BEGIN {
19646 _ACEOF
19647
19648 # Transform confdefs.h into an awk script `defines.awk', embedded as
19649 # here-document in config.status, that substitutes the proper values into
19650 # config.h.in to produce config.h.
19651
19652 # Create a delimiter string that does not exist in confdefs.h, to ease
19653 # handling of long lines.
19654 ac_delim='%!_!# '
19655 for ac_last_try in false false :; do
19656 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19657 if test -z "$ac_tt"; then
19658 break
19659 elif $ac_last_try; then
19660 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19661 else
19662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19663 fi
19664 done
19665
19666 # For the awk script, D is an array of macro values keyed by name,
19667 # likewise P contains macro parameters if any. Preserve backslash
19668 # newline sequences.
19669
19670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19671 sed -n '
19672 s/.\{148\}/&'"$ac_delim"'/g
19673 t rset
19674 :rset
19675 s/^[ ]*#[ ]*define[ ][ ]*/ /
19676 t def
19677 d
19678 :def
19679 s/\\$//
19680 t bsnl
19681 s/["\\]/\\&/g
19682 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19683 D["\1"]=" \3"/p
19684 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19685 d
19686 :bsnl
19687 s/["\\]/\\&/g
19688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19689 D["\1"]=" \3\\\\\\n"\\/p
19690 t cont
19691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19692 t cont
19693 d
19694 :cont
19695 n
19696 s/.\{148\}/&'"$ac_delim"'/g
19697 t clear
19698 :clear
19699 s/\\$//
19700 t bsnlc
19701 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19702 d
19703 :bsnlc
19704 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19705 b cont
19706 ' <confdefs.h | sed '
19707 s/'"$ac_delim"'/"\\\
19708 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19709
19710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19711 for (key in D) D_is_set[key] = 1
19712 FS = "\a"
19713 }
19714 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19715 line = \$ 0
19716 split(line, arg, " ")
19717 if (arg[1] == "#") {
19718 defundef = arg[2]
19719 mac1 = arg[3]
19720 } else {
19721 defundef = substr(arg[1], 2)
19722 mac1 = arg[2]
19723 }
19724 split(mac1, mac2, "(") #)
19725 macro = mac2[1]
19726 prefix = substr(line, 1, index(line, defundef) - 1)
19727 if (D_is_set[macro]) {
19728 # Preserve the white space surrounding the "#".
19729 print prefix "define", macro P[macro] D[macro]
19730 next
19731 } else {
19732 # Replace #undef with comments. This is necessary, for example,
19733 # in the case of _POSIX_SOURCE, which is predefined and required
19734 # on some systems where configure will not decide to define it.
19735 if (defundef == "undef") {
19736 print "/*", prefix defundef, macro, "*/"
19737 next
19738 }
19739 }
19740 }
19741 { print }
19742 _ACAWK
19743 _ACEOF
19744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19745 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19746 fi # test -n "$CONFIG_HEADERS"
19747
19748
19749 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19750 shift
19751 for ac_tag
19752 do
19753 case $ac_tag in
19754 :[FHLC]) ac_mode=$ac_tag; continue;;
19755 esac
19756 case $ac_mode$ac_tag in
19757 :[FHL]*:*);;
19758 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19759 :[FH]-) ac_tag=-:-;;
19760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19761 esac
19762 ac_save_IFS=$IFS
19763 IFS=:
19764 set x $ac_tag
19765 IFS=$ac_save_IFS
19766 shift
19767 ac_file=$1
19768 shift
19769
19770 case $ac_mode in
19771 :L) ac_source=$1;;
19772 :[FH])
19773 ac_file_inputs=
19774 for ac_f
19775 do
19776 case $ac_f in
19777 -) ac_f="$ac_tmp/stdin";;
19778 *) # Look for the file first in the build tree, then in the source tree
19779 # (if the path is not absolute). The absolute path cannot be DOS-style,
19780 # because $ac_f cannot contain `:'.
19781 test -f "$ac_f" ||
19782 case $ac_f in
19783 [\\/$]*) false;;
19784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19785 esac ||
19786 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19787 esac
19788 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19789 as_fn_append ac_file_inputs " '$ac_f'"
19790 done
19791
19792 # Let's still pretend it is `configure' which instantiates (i.e., don't
19793 # use $as_me), people would be surprised to read:
19794 # /* config.h. Generated by config.status. */
19795 configure_input='Generated from '`
19796 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19797 `' by configure.'
19798 if test x"$ac_file" != x-; then
19799 configure_input="$ac_file. $configure_input"
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19801 $as_echo "$as_me: creating $ac_file" >&6;}
19802 fi
19803 # Neutralize special characters interpreted by sed in replacement strings.
19804 case $configure_input in #(
19805 *\&* | *\|* | *\\* )
19806 ac_sed_conf_input=`$as_echo "$configure_input" |
19807 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19808 *) ac_sed_conf_input=$configure_input;;
19809 esac
19810
19811 case $ac_tag in
19812 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19814 esac
19815 ;;
19816 esac
19817
19818 ac_dir=`$as_dirname -- "$ac_file" ||
19819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19820 X"$ac_file" : 'X\(//\)[^/]' \| \
19821 X"$ac_file" : 'X\(//\)$' \| \
19822 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19823 $as_echo X"$ac_file" |
19824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19825 s//\1/
19826 q
19827 }
19828 /^X\(\/\/\)[^/].*/{
19829 s//\1/
19830 q
19831 }
19832 /^X\(\/\/\)$/{
19833 s//\1/
19834 q
19835 }
19836 /^X\(\/\).*/{
19837 s//\1/
19838 q
19839 }
19840 s/.*/./; q'`
19841 as_dir="$ac_dir"; as_fn_mkdir_p
19842 ac_builddir=.
19843
19844 case "$ac_dir" in
19845 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19846 *)
19847 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19848 # A ".." for each directory in $ac_dir_suffix.
19849 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19850 case $ac_top_builddir_sub in
19851 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19852 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19853 esac ;;
19854 esac
19855 ac_abs_top_builddir=$ac_pwd
19856 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19857 # for backward compatibility:
19858 ac_top_builddir=$ac_top_build_prefix
19859
19860 case $srcdir in
19861 .) # We are building in place.
19862 ac_srcdir=.
19863 ac_top_srcdir=$ac_top_builddir_sub
19864 ac_abs_top_srcdir=$ac_pwd ;;
19865 [\\/]* | ?:[\\/]* ) # Absolute name.
19866 ac_srcdir=$srcdir$ac_dir_suffix;
19867 ac_top_srcdir=$srcdir
19868 ac_abs_top_srcdir=$srcdir ;;
19869 *) # Relative name.
19870 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19871 ac_top_srcdir=$ac_top_build_prefix$srcdir
19872 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19873 esac
19874 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19875
19876
19877 case $ac_mode in
19878 :F)
19879 #
19880 # CONFIG_FILE
19881 #
19882
19883 case $INSTALL in
19884 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19885 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19886 esac
19887 ac_MKDIR_P=$MKDIR_P
19888 case $MKDIR_P in
19889 [\\/$]* | ?:[\\/]* ) ;;
19890 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19891 esac
19892 _ACEOF
19893
19894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19895 # If the template does not know about datarootdir, expand it.
19896 # FIXME: This hack should be removed a few years after 2.60.
19897 ac_datarootdir_hack=; ac_datarootdir_seen=
19898 ac_sed_dataroot='
19899 /datarootdir/ {
19900 p
19901 q
19902 }
19903 /@datadir@/p
19904 /@docdir@/p
19905 /@infodir@/p
19906 /@localedir@/p
19907 /@mandir@/p'
19908 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19909 *datarootdir*) ac_datarootdir_seen=yes;;
19910 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19912 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19913 _ACEOF
19914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19915 ac_datarootdir_hack='
19916 s&@datadir@&$datadir&g
19917 s&@docdir@&$docdir&g
19918 s&@infodir@&$infodir&g
19919 s&@localedir@&$localedir&g
19920 s&@mandir@&$mandir&g
19921 s&\\\${datarootdir}&$datarootdir&g' ;;
19922 esac
19923 _ACEOF
19924
19925 # Neutralize VPATH when `$srcdir' = `.'.
19926 # Shell code in configure.ac might set extrasub.
19927 # FIXME: do we really want to maintain this feature?
19928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19929 ac_sed_extra="$ac_vpsub
19930 $extrasub
19931 _ACEOF
19932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19933 :t
19934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19935 s|@configure_input@|$ac_sed_conf_input|;t t
19936 s&@top_builddir@&$ac_top_builddir_sub&;t t
19937 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19938 s&@srcdir@&$ac_srcdir&;t t
19939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19940 s&@top_srcdir@&$ac_top_srcdir&;t t
19941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19942 s&@builddir@&$ac_builddir&;t t
19943 s&@abs_builddir@&$ac_abs_builddir&;t t
19944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19945 s&@INSTALL@&$ac_INSTALL&;t t
19946 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19947 $ac_datarootdir_hack
19948 "
19949 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19950 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19951
19952 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19953 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19955 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19957 which seems to be undefined. Please make sure it is defined" >&5
19958 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19959 which seems to be undefined. Please make sure it is defined" >&2;}
19960
19961 rm -f "$ac_tmp/stdin"
19962 case $ac_file in
19963 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19964 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19965 esac \
19966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19967 ;;
19968 :H)
19969 #
19970 # CONFIG_HEADER
19971 #
19972 if test x"$ac_file" != x-; then
19973 {
19974 $as_echo "/* $configure_input */" \
19975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19976 } >"$ac_tmp/config.h" \
19977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19978 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19980 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19981 else
19982 rm -f "$ac_file"
19983 mv "$ac_tmp/config.h" "$ac_file" \
19984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19985 fi
19986 else
19987 $as_echo "/* $configure_input */" \
19988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19989 || as_fn_error $? "could not create -" "$LINENO" 5
19990 fi
19991 # Compute "$ac_file"'s index in $config_headers.
19992 _am_arg="$ac_file"
19993 _am_stamp_count=1
19994 for _am_header in $config_headers :; do
19995 case $_am_header in
19996 $_am_arg | $_am_arg:* )
19997 break ;;
19998 * )
19999 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20000 esac
20001 done
20002 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20003 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20004 X"$_am_arg" : 'X\(//\)[^/]' \| \
20005 X"$_am_arg" : 'X\(//\)$' \| \
20006 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20007 $as_echo X"$_am_arg" |
20008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20009 s//\1/
20010 q
20011 }
20012 /^X\(\/\/\)[^/].*/{
20013 s//\1/
20014 q
20015 }
20016 /^X\(\/\/\)$/{
20017 s//\1/
20018 q
20019 }
20020 /^X\(\/\).*/{
20021 s//\1/
20022 q
20023 }
20024 s/.*/./; q'`/stamp-h$_am_stamp_count
20025 ;;
20026
20027 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20028 $as_echo "$as_me: executing $ac_file commands" >&6;}
20029 ;;
20030 esac
20031
20032
20033 case $ac_file$ac_mode in
20034 "spl_config.h":H)
20035 (mv spl_config.h spl_config.h.tmp &&
20036 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
20037 rm spl_config.h.tmp) || exit 1 ;;
20038 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20039 # Older Autoconf quotes --file arguments for eval, but not when files
20040 # are listed without --file. Let's play safe and only enable the eval
20041 # if we detect the quoting.
20042 case $CONFIG_FILES in
20043 *\'*) eval set x "$CONFIG_FILES" ;;
20044 *) set x $CONFIG_FILES ;;
20045 esac
20046 shift
20047 for mf
20048 do
20049 # Strip MF so we end up with the name of the file.
20050 mf=`echo "$mf" | sed -e 's/:.*$//'`
20051 # Check whether this is an Automake generated Makefile or not.
20052 # We used to match only the files named 'Makefile.in', but
20053 # some people rename them; so instead we look at the file content.
20054 # Grep'ing the first line is not enough: some people post-process
20055 # each Makefile.in and add a new line on top of each file to say so.
20056 # Grep'ing the whole file is not good either: AIX grep has a line
20057 # limit of 2048, but all sed's we know have understand at least 4000.
20058 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20059 dirpart=`$as_dirname -- "$mf" ||
20060 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20061 X"$mf" : 'X\(//\)[^/]' \| \
20062 X"$mf" : 'X\(//\)$' \| \
20063 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20064 $as_echo X"$mf" |
20065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20066 s//\1/
20067 q
20068 }
20069 /^X\(\/\/\)[^/].*/{
20070 s//\1/
20071 q
20072 }
20073 /^X\(\/\/\)$/{
20074 s//\1/
20075 q
20076 }
20077 /^X\(\/\).*/{
20078 s//\1/
20079 q
20080 }
20081 s/.*/./; q'`
20082 else
20083 continue
20084 fi
20085 # Extract the definition of DEPDIR, am__include, and am__quote
20086 # from the Makefile without running 'make'.
20087 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20088 test -z "$DEPDIR" && continue
20089 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20090 test -z "$am__include" && continue
20091 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20092 # Find all dependency output files, they are included files with
20093 # $(DEPDIR) in their names. We invoke sed twice because it is the
20094 # simplest approach to changing $(DEPDIR) to its actual value in the
20095 # expansion.
20096 for file in `sed -n "
20097 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20098 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20099 # Make sure the directory exists.
20100 test -f "$dirpart/$file" && continue
20101 fdir=`$as_dirname -- "$file" ||
20102 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20103 X"$file" : 'X\(//\)[^/]' \| \
20104 X"$file" : 'X\(//\)$' \| \
20105 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20106 $as_echo X"$file" |
20107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20108 s//\1/
20109 q
20110 }
20111 /^X\(\/\/\)[^/].*/{
20112 s//\1/
20113 q
20114 }
20115 /^X\(\/\/\)$/{
20116 s//\1/
20117 q
20118 }
20119 /^X\(\/\).*/{
20120 s//\1/
20121 q
20122 }
20123 s/.*/./; q'`
20124 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20125 # echo "creating $dirpart/$file"
20126 echo '# dummy' > "$dirpart/$file"
20127 done
20128 done
20129 }
20130 ;;
20131 "libtool":C)
20132
20133 # See if we are running on zsh, and set the options that allow our
20134 # commands through without removal of \ escapes.
20135 if test -n "${ZSH_VERSION+set}"; then
20136 setopt NO_GLOB_SUBST
20137 fi
20138
20139 cfgfile=${ofile}T
20140 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20141 $RM "$cfgfile"
20142
20143 cat <<_LT_EOF >> "$cfgfile"
20144 #! $SHELL
20145 # Generated automatically by $as_me ($PACKAGE) $VERSION
20146 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20147
20148 # Provide generalized library-building support services.
20149 # Written by Gordon Matzigkeit, 1996
20150
20151 # Copyright (C) 2014 Free Software Foundation, Inc.
20152 # This is free software; see the source for copying conditions. There is NO
20153 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20154
20155 # GNU Libtool is free software; you can redistribute it and/or modify
20156 # it under the terms of the GNU General Public License as published by
20157 # the Free Software Foundation; either version 2 of of the License, or
20158 # (at your option) any later version.
20159 #
20160 # As a special exception to the GNU General Public License, if you
20161 # distribute this file as part of a program or library that is built
20162 # using GNU Libtool, you may include this file under the same
20163 # distribution terms that you use for the rest of that program.
20164 #
20165 # GNU Libtool is distributed in the hope that it will be useful, but
20166 # WITHOUT ANY WARRANTY; without even the implied warranty of
20167 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20168 # GNU General Public License for more details.
20169 #
20170 # You should have received a copy of the GNU General Public License
20171 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20172
20173
20174 # The names of the tagged configurations supported by this script.
20175 available_tags=''
20176
20177 # Configured defaults for sys_lib_dlsearch_path munging.
20178 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20179
20180 # ### BEGIN LIBTOOL CONFIG
20181
20182 # Which release of libtool.m4 was used?
20183 macro_version=$macro_version
20184 macro_revision=$macro_revision
20185
20186 # Whether or not to build shared libraries.
20187 build_libtool_libs=$enable_shared
20188
20189 # Whether or not to build static libraries.
20190 build_old_libs=$enable_static
20191
20192 # What type of objects to build.
20193 pic_mode=$pic_mode
20194
20195 # Whether or not to optimize for fast installation.
20196 fast_install=$enable_fast_install
20197
20198 # Shared archive member basename,for filename based shared library versioning on AIX.
20199 shared_archive_member_spec=$shared_archive_member_spec
20200
20201 # Shell to use when invoking shell scripts.
20202 SHELL=$lt_SHELL
20203
20204 # An echo program that protects backslashes.
20205 ECHO=$lt_ECHO
20206
20207 # The PATH separator for the build system.
20208 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20209
20210 # The host system.
20211 host_alias=$host_alias
20212 host=$host
20213 host_os=$host_os
20214
20215 # The build system.
20216 build_alias=$build_alias
20217 build=$build
20218 build_os=$build_os
20219
20220 # A sed program that does not truncate output.
20221 SED=$lt_SED
20222
20223 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20224 Xsed="\$SED -e 1s/^X//"
20225
20226 # A grep program that handles long lines.
20227 GREP=$lt_GREP
20228
20229 # An ERE matcher.
20230 EGREP=$lt_EGREP
20231
20232 # A literal string matcher.
20233 FGREP=$lt_FGREP
20234
20235 # A BSD- or MS-compatible name lister.
20236 NM=$lt_NM
20237
20238 # Whether we need soft or hard links.
20239 LN_S=$lt_LN_S
20240
20241 # What is the maximum length of a command?
20242 max_cmd_len=$max_cmd_len
20243
20244 # Object file suffix (normally "o").
20245 objext=$ac_objext
20246
20247 # Executable file suffix (normally "").
20248 exeext=$exeext
20249
20250 # whether the shell understands "unset".
20251 lt_unset=$lt_unset
20252
20253 # turn spaces into newlines.
20254 SP2NL=$lt_lt_SP2NL
20255
20256 # turn newlines into spaces.
20257 NL2SP=$lt_lt_NL2SP
20258
20259 # convert \$build file names to \$host format.
20260 to_host_file_cmd=$lt_cv_to_host_file_cmd
20261
20262 # convert \$build files to toolchain format.
20263 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20264
20265 # An object symbol dumper.
20266 OBJDUMP=$lt_OBJDUMP
20267
20268 # Method to check whether dependent libraries are shared objects.
20269 deplibs_check_method=$lt_deplibs_check_method
20270
20271 # Command to use when deplibs_check_method = "file_magic".
20272 file_magic_cmd=$lt_file_magic_cmd
20273
20274 # How to find potential files when deplibs_check_method = "file_magic".
20275 file_magic_glob=$lt_file_magic_glob
20276
20277 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20278 want_nocaseglob=$lt_want_nocaseglob
20279
20280 # DLL creation program.
20281 DLLTOOL=$lt_DLLTOOL
20282
20283 # Command to associate shared and link libraries.
20284 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20285
20286 # The archiver.
20287 AR=$lt_AR
20288
20289 # Flags to create an archive.
20290 AR_FLAGS=$lt_AR_FLAGS
20291
20292 # How to feed a file listing to the archiver.
20293 archiver_list_spec=$lt_archiver_list_spec
20294
20295 # A symbol stripping program.
20296 STRIP=$lt_STRIP
20297
20298 # Commands used to install an old-style archive.
20299 RANLIB=$lt_RANLIB
20300 old_postinstall_cmds=$lt_old_postinstall_cmds
20301 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20302
20303 # Whether to use a lock for old archive extraction.
20304 lock_old_archive_extraction=$lock_old_archive_extraction
20305
20306 # A C compiler.
20307 LTCC=$lt_CC
20308
20309 # LTCC compiler flags.
20310 LTCFLAGS=$lt_CFLAGS
20311
20312 # Take the output of nm and produce a listing of raw symbols and C names.
20313 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20314
20315 # Transform the output of nm in a proper C declaration.
20316 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20317
20318 # Transform the output of nm into a list of symbols to manually relocate.
20319 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20320
20321 # Transform the output of nm in a C name address pair.
20322 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20323
20324 # Transform the output of nm in a C name address pair when lib prefix is needed.
20325 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20326
20327 # The name lister interface.
20328 nm_interface=$lt_lt_cv_nm_interface
20329
20330 # Specify filename containing input files for \$NM.
20331 nm_file_list_spec=$lt_nm_file_list_spec
20332
20333 # The root where to search for dependent libraries,and where our libraries should be installed.
20334 lt_sysroot=$lt_sysroot
20335
20336 # Command to truncate a binary pipe.
20337 lt_truncate_bin=$lt_lt_cv_truncate_bin
20338
20339 # The name of the directory that contains temporary libtool files.
20340 objdir=$objdir
20341
20342 # Used to examine libraries when file_magic_cmd begins with "file".
20343 MAGIC_CMD=$MAGIC_CMD
20344
20345 # Must we lock files when doing compilation?
20346 need_locks=$lt_need_locks
20347
20348 # Manifest tool.
20349 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20350
20351 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20352 DSYMUTIL=$lt_DSYMUTIL
20353
20354 # Tool to change global to local symbols on Mac OS X.
20355 NMEDIT=$lt_NMEDIT
20356
20357 # Tool to manipulate fat objects and archives on Mac OS X.
20358 LIPO=$lt_LIPO
20359
20360 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20361 OTOOL=$lt_OTOOL
20362
20363 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20364 OTOOL64=$lt_OTOOL64
20365
20366 # Old archive suffix (normally "a").
20367 libext=$libext
20368
20369 # Shared library suffix (normally ".so").
20370 shrext_cmds=$lt_shrext_cmds
20371
20372 # The commands to extract the exported symbol list from a shared archive.
20373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20374
20375 # Variables whose values should be saved in libtool wrapper scripts and
20376 # restored at link time.
20377 variables_saved_for_relink=$lt_variables_saved_for_relink
20378
20379 # Do we need the "lib" prefix for modules?
20380 need_lib_prefix=$need_lib_prefix
20381
20382 # Do we need a version for libraries?
20383 need_version=$need_version
20384
20385 # Library versioning type.
20386 version_type=$version_type
20387
20388 # Shared library runtime path variable.
20389 runpath_var=$runpath_var
20390
20391 # Shared library path variable.
20392 shlibpath_var=$shlibpath_var
20393
20394 # Is shlibpath searched before the hard-coded library search path?
20395 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20396
20397 # Format of library name prefix.
20398 libname_spec=$lt_libname_spec
20399
20400 # List of archive names. First name is the real one, the rest are links.
20401 # The last name is the one that the linker finds with -lNAME
20402 library_names_spec=$lt_library_names_spec
20403
20404 # The coded name of the library, if different from the real name.
20405 soname_spec=$lt_soname_spec
20406
20407 # Permission mode override for installation of shared libraries.
20408 install_override_mode=$lt_install_override_mode
20409
20410 # Command to use after installation of a shared archive.
20411 postinstall_cmds=$lt_postinstall_cmds
20412
20413 # Command to use after uninstallation of a shared archive.
20414 postuninstall_cmds=$lt_postuninstall_cmds
20415
20416 # Commands used to finish a libtool library installation in a directory.
20417 finish_cmds=$lt_finish_cmds
20418
20419 # As "finish_cmds", except a single script fragment to be evaled but
20420 # not shown.
20421 finish_eval=$lt_finish_eval
20422
20423 # Whether we should hardcode library paths into libraries.
20424 hardcode_into_libs=$hardcode_into_libs
20425
20426 # Compile-time system search path for libraries.
20427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20428
20429 # Detected run-time system search path for libraries.
20430 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20431
20432 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20433 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20434
20435 # Whether dlopen is supported.
20436 dlopen_support=$enable_dlopen
20437
20438 # Whether dlopen of programs is supported.
20439 dlopen_self=$enable_dlopen_self
20440
20441 # Whether dlopen of statically linked programs is supported.
20442 dlopen_self_static=$enable_dlopen_self_static
20443
20444 # Commands to strip libraries.
20445 old_striplib=$lt_old_striplib
20446 striplib=$lt_striplib
20447
20448
20449 # The linker used to build libraries.
20450 LD=$lt_LD
20451
20452 # How to create reloadable object files.
20453 reload_flag=$lt_reload_flag
20454 reload_cmds=$lt_reload_cmds
20455
20456 # Commands used to build an old-style archive.
20457 old_archive_cmds=$lt_old_archive_cmds
20458
20459 # A language specific compiler.
20460 CC=$lt_compiler
20461
20462 # Is the compiler the GNU compiler?
20463 with_gcc=$GCC
20464
20465 # Compiler flag to turn off builtin functions.
20466 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20467
20468 # Additional compiler flags for building library objects.
20469 pic_flag=$lt_lt_prog_compiler_pic
20470
20471 # How to pass a linker flag through the compiler.
20472 wl=$lt_lt_prog_compiler_wl
20473
20474 # Compiler flag to prevent dynamic linking.
20475 link_static_flag=$lt_lt_prog_compiler_static
20476
20477 # Does compiler simultaneously support -c and -o options?
20478 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20479
20480 # Whether or not to add -lc for building shared libraries.
20481 build_libtool_need_lc=$archive_cmds_need_lc
20482
20483 # Whether or not to disallow shared libs when runtime libs are static.
20484 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20485
20486 # Compiler flag to allow reflexive dlopens.
20487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20488
20489 # Compiler flag to generate shared objects directly from archives.
20490 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20491
20492 # Whether the compiler copes with passing no objects directly.
20493 compiler_needs_object=$lt_compiler_needs_object
20494
20495 # Create an old-style archive from a shared archive.
20496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20497
20498 # Create a temporary old-style archive to link instead of a shared archive.
20499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20500
20501 # Commands used to build a shared archive.
20502 archive_cmds=$lt_archive_cmds
20503 archive_expsym_cmds=$lt_archive_expsym_cmds
20504
20505 # Commands used to build a loadable module if different from building
20506 # a shared archive.
20507 module_cmds=$lt_module_cmds
20508 module_expsym_cmds=$lt_module_expsym_cmds
20509
20510 # Whether we are building with GNU ld or not.
20511 with_gnu_ld=$lt_with_gnu_ld
20512
20513 # Flag that allows shared libraries with undefined symbols to be built.
20514 allow_undefined_flag=$lt_allow_undefined_flag
20515
20516 # Flag that enforces no undefined symbols.
20517 no_undefined_flag=$lt_no_undefined_flag
20518
20519 # Flag to hardcode \$libdir into a binary during linking.
20520 # This must work even if \$libdir does not exist
20521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20522
20523 # Whether we need a single "-rpath" flag with a separated argument.
20524 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20525
20526 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20527 # DIR into the resulting binary.
20528 hardcode_direct=$hardcode_direct
20529
20530 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20531 # DIR into the resulting binary and the resulting library dependency is
20532 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20533 # library is relocated.
20534 hardcode_direct_absolute=$hardcode_direct_absolute
20535
20536 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20537 # into the resulting binary.
20538 hardcode_minus_L=$hardcode_minus_L
20539
20540 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20541 # into the resulting binary.
20542 hardcode_shlibpath_var=$hardcode_shlibpath_var
20543
20544 # Set to "yes" if building a shared library automatically hardcodes DIR
20545 # into the library and all subsequent libraries and executables linked
20546 # against it.
20547 hardcode_automatic=$hardcode_automatic
20548
20549 # Set to yes if linker adds runtime paths of dependent libraries
20550 # to runtime path list.
20551 inherit_rpath=$inherit_rpath
20552
20553 # Whether libtool must link a program against all its dependency libraries.
20554 link_all_deplibs=$link_all_deplibs
20555
20556 # Set to "yes" if exported symbols are required.
20557 always_export_symbols=$always_export_symbols
20558
20559 # The commands to list exported symbols.
20560 export_symbols_cmds=$lt_export_symbols_cmds
20561
20562 # Symbols that should not be listed in the preloaded symbols.
20563 exclude_expsyms=$lt_exclude_expsyms
20564
20565 # Symbols that must always be exported.
20566 include_expsyms=$lt_include_expsyms
20567
20568 # Commands necessary for linking programs (against libraries) with templates.
20569 prelink_cmds=$lt_prelink_cmds
20570
20571 # Commands necessary for finishing linking programs.
20572 postlink_cmds=$lt_postlink_cmds
20573
20574 # Specify filename containing input files.
20575 file_list_spec=$lt_file_list_spec
20576
20577 # How to hardcode a shared library path into an executable.
20578 hardcode_action=$hardcode_action
20579
20580 # ### END LIBTOOL CONFIG
20581
20582 _LT_EOF
20583
20584 cat <<'_LT_EOF' >> "$cfgfile"
20585
20586 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20587
20588 # func_munge_path_list VARIABLE PATH
20589 # -----------------------------------
20590 # VARIABLE is name of variable containing _space_ separated list of
20591 # directories to be munged by the contents of PATH, which is string
20592 # having a format:
20593 # "DIR[:DIR]:"
20594 # string "DIR[ DIR]" will be prepended to VARIABLE
20595 # ":DIR[:DIR]"
20596 # string "DIR[ DIR]" will be appended to VARIABLE
20597 # "DIRP[:DIRP]::[DIRA:]DIRA"
20598 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20599 # "DIRA[ DIRA]" will be appended to VARIABLE
20600 # "DIR[:DIR]"
20601 # VARIABLE will be replaced by "DIR[ DIR]"
20602 func_munge_path_list ()
20603 {
20604 case x$2 in
20605 x)
20606 ;;
20607 *:)
20608 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20609 ;;
20610 x:*)
20611 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20612 ;;
20613 *::*)
20614 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20615 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20616 ;;
20617 *)
20618 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20619 ;;
20620 esac
20621 }
20622
20623
20624 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20625 func_cc_basename ()
20626 {
20627 for cc_temp in $*""; do
20628 case $cc_temp in
20629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20631 \-*) ;;
20632 *) break;;
20633 esac
20634 done
20635 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20636 }
20637
20638
20639 # ### END FUNCTIONS SHARED WITH CONFIGURE
20640
20641 _LT_EOF
20642
20643 case $host_os in
20644 aix3*)
20645 cat <<\_LT_EOF >> "$cfgfile"
20646 # AIX sometimes has problems with the GCC collect2 program. For some
20647 # reason, if we set the COLLECT_NAMES environment variable, the problems
20648 # vanish in a puff of smoke.
20649 if test set != "${COLLECT_NAMES+set}"; then
20650 COLLECT_NAMES=
20651 export COLLECT_NAMES
20652 fi
20653 _LT_EOF
20654 ;;
20655 esac
20656
20657
20658 ltmain=$ac_aux_dir/ltmain.sh
20659
20660
20661 # We use sed instead of cat because bash on DJGPP gets confused if
20662 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20663 # text mode, it properly converts lines to CR/LF. This bash problem
20664 # is reportedly fixed, but why not run on old versions too?
20665 sed '$q' "$ltmain" >> "$cfgfile" \
20666 || (rm -f "$cfgfile"; exit 1)
20667
20668 mv -f "$cfgfile" "$ofile" ||
20669 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20670 chmod +x "$ofile"
20671
20672 ;;
20673
20674 esac
20675 done # for ac_tag
20676
20677
20678 as_fn_exit 0
20679 _ACEOF
20680 ac_clean_files=$ac_clean_files_save
20681
20682 test $ac_write_fail = 0 ||
20683 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20684
20685
20686 # configure is writing to config.log, and then calls config.status.
20687 # config.status does its own redirection, appending to config.log.
20688 # Unfortunately, on DOS this fails, as config.log is still kept open
20689 # by configure, so config.status won't be able to write to it; its
20690 # output is simply discarded. So we exec the FD to /dev/null,
20691 # effectively closing config.log, so it can be properly (re)opened and
20692 # appended to by config.status. When coming back to configure, we
20693 # need to make the FD available again.
20694 if test "$no_create" != yes; then
20695 ac_cs_success=:
20696 ac_config_status_args=
20697 test "$silent" = yes &&
20698 ac_config_status_args="$ac_config_status_args --quiet"
20699 exec 5>/dev/null
20700 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20701 exec 5>>config.log
20702 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20703 # would make configure fail if this is the last instruction.
20704 $ac_cs_success || as_fn_exit 1
20705 fi
20706 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20708 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20709 fi
20710