]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
Imported Upstream version 0.6.5.9
[mirror_spl-debian.git] / 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.9.
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.9'
591 PACKAGE_STRING='spl 0.6.5.9'
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.9 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.9:";;
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.9
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.9, 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.9'
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __put_task_struct() is available" >&5
14022 $as_echo_n "checking whether __put_task_struct() is available... " >&6; }
14023
14024
14025
14026 cat confdefs.h - <<_ACEOF >conftest.c
14027
14028
14029 #include <linux/sched.h>
14030
14031 int
14032 main (void)
14033 {
14034
14035 __put_task_struct(NULL);
14036
14037 ;
14038 return 0;
14039 }
14040
14041 _ACEOF
14042
14043
14044 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14045 echo "obj-m := conftest.o" >build/Makefile
14046 modpost_flag=''
14047 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14048 if { 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'
14049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14050 (eval $ac_try) 2>&5
14051 ac_status=$?
14052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14053 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14058 test $ac_status = 0; }; }; then :
14059 rc=0
14060 else
14061 $as_echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14063 rc=1
14064
14065
14066 fi
14067 rm -Rf build
14068
14069
14070 if test $rc -ne 0; then :
14071
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14073 $as_echo "no" >&6; }
14074
14075 else
14076 if test "x$enable_linux_builtin" != xyes; then
14077
14078 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
14079 $LINUX_OBJ/Module*.symvers 2>/dev/null
14080 rc=$?
14081 if test $rc -ne 0; then
14082 export=0
14083 for file in ; do
14084 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
14085 "$LINUX_OBJ/$file" 2>/dev/null
14086 rc=$?
14087 if test $rc -eq 0; then
14088 export=1
14089 break;
14090 fi
14091 done
14092 if test $export -eq 0; then :
14093 rc=1
14094 else :
14095 rc=0
14096 fi
14097 else :
14098 rc=0
14099 fi
14100
14101 fi
14102 if test $rc -ne 0; then :
14103
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14105 $as_echo "no" >&6; }
14106
14107 else :
14108
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14110 $as_echo "yes" >&6; }
14111
14112 $as_echo "#define HAVE_PUT_TASK_STRUCT 1" >>confdefs.h
14113
14114
14115 fi
14116 fi
14117
14118
14119
14120
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
14122 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
14123
14124
14125 cat confdefs.h - <<_ACEOF >conftest.c
14126
14127
14128 #include <linux/fs.h>
14129
14130 int
14131 main (void)
14132 {
14133
14134 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
14135 struct file_operations fops __attribute__ ((unused)) = {
14136 .fallocate = fallocate,
14137 };
14138
14139 ;
14140 return 0;
14141 }
14142
14143 _ACEOF
14144
14145
14146 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14147 echo "obj-m := conftest.o" >build/Makefile
14148 modpost_flag=''
14149 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14150 if { 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'
14151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14155 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14160 test $ac_status = 0; }; }; then :
14161
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14163 $as_echo "yes" >&6; }
14164
14165 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
14166
14167
14168 else
14169 $as_echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14173 $as_echo "no" >&6; }
14174
14175
14176
14177 fi
14178 rm -Rf build
14179
14180
14181
14182
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
14184 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
14185
14186
14187 cat confdefs.h - <<_ACEOF >conftest.c
14188
14189
14190 #include <linux/fs.h>
14191
14192 int
14193 main (void)
14194 {
14195
14196 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
14197 struct inode_operations fops __attribute__ ((unused)) = {
14198 .fallocate = fallocate,
14199 };
14200
14201 ;
14202 return 0;
14203 }
14204
14205 _ACEOF
14206
14207
14208 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14209 echo "obj-m := conftest.o" >build/Makefile
14210 modpost_flag=''
14211 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14212 if { 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'
14213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14214 (eval $ac_try) 2>&5
14215 ac_status=$?
14216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14217 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14219 (eval $ac_try) 2>&5
14220 ac_status=$?
14221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14222 test $ac_status = 0; }; }; then :
14223
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14225 $as_echo "yes" >&6; }
14226
14227 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
14228
14229
14230 else
14231 $as_echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14233
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14235 $as_echo "no" >&6; }
14236
14237
14238
14239 fi
14240 rm -Rf build
14241
14242
14243
14244
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
14246 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
14247
14248
14249 cat confdefs.h - <<_ACEOF >conftest.c
14250
14251
14252 #include <linux/fs.h>
14253
14254 int
14255 main (void)
14256 {
14257
14258 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
14259 struct file_operations_no_const fops __attribute__ ((unused)) = {
14260 .fallocate = fallocate,
14261 };
14262
14263 ;
14264 return 0;
14265 }
14266
14267 _ACEOF
14268
14269
14270 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14271 echo "obj-m := conftest.o" >build/Makefile
14272 modpost_flag=''
14273 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14274 if { 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'
14275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14279 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14284 test $ac_status = 0; }; }; then :
14285
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14287 $as_echo "yes" >&6; }
14288
14289 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
14290
14291
14292 else
14293 $as_echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14297 $as_echo "no" >&6; }
14298
14299
14300
14301 fi
14302 rm -Rf build
14303
14304
14305
14306
14307
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
14309 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
14310
14311
14312 cat confdefs.h - <<_ACEOF >conftest.c
14313
14314
14315 #if !defined(CONFIG_ZLIB_INFLATE) && \
14316 !defined(CONFIG_ZLIB_INFLATE_MODULE)
14317 #error CONFIG_ZLIB_INFLATE not defined
14318 #endif
14319
14320 int
14321 main (void)
14322 {
14323
14324 ;
14325 return 0;
14326 }
14327
14328 _ACEOF
14329
14330
14331 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14332 echo "obj-m := conftest.o" >build/Makefile
14333 modpost_flag=''
14334 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14335 if { 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'
14336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14340 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14345 test $ac_status = 0; }; }; then :
14346
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14348 $as_echo "yes" >&6; }
14349
14350 else
14351 $as_echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14353
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14356 as_fn_error $? "
14357 *** This kernel does not include the required zlib inflate support.
14358 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
14359
14360
14361
14362 fi
14363 rm -Rf build
14364
14365
14366
14367
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
14369 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
14370
14371
14372 cat confdefs.h - <<_ACEOF >conftest.c
14373
14374
14375 #if !defined(CONFIG_ZLIB_DEFLATE) && \
14376 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
14377 #error CONFIG_ZLIB_DEFLATE not defined
14378 #endif
14379
14380 int
14381 main (void)
14382 {
14383
14384 ;
14385 return 0;
14386 }
14387
14388 _ACEOF
14389
14390
14391 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14392 echo "obj-m := conftest.o" >build/Makefile
14393 modpost_flag=''
14394 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14395 if { 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'
14396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14397 (eval $ac_try) 2>&5
14398 ac_status=$?
14399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14400 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14402 (eval $ac_try) 2>&5
14403 ac_status=$?
14404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14405 test $ac_status = 0; }; }; then :
14406
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14408 $as_echo "yes" >&6; }
14409
14410 else
14411 $as_echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415 $as_echo "no" >&6; }
14416 as_fn_error $? "
14417 *** This kernel does not include the required zlib deflate support.
14418 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
14419
14420
14421
14422 fi
14423 rm -Rf build
14424
14425
14426
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
14428 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
14429
14430
14431 cat confdefs.h - <<_ACEOF >conftest.c
14432
14433
14434 #include <linux/zlib.h>
14435
14436 int
14437 main (void)
14438 {
14439
14440 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
14441
14442 ;
14443 return 0;
14444 }
14445
14446 _ACEOF
14447
14448
14449 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14450 echo "obj-m := conftest.o" >build/Makefile
14451 modpost_flag=''
14452 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14453 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14455 (eval $ac_try) 2>&5
14456 ac_status=$?
14457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14458 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14463 test $ac_status = 0; }; }; then :
14464
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14466 $as_echo "yes" >&6; }
14467
14468 $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
14469
14470
14471 else
14472 $as_echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14474
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476 $as_echo "no" >&6; }
14477
14478
14479
14480 fi
14481 rm -Rf build
14482
14483
14484
14485
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
14487 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
14488
14489
14490 cat confdefs.h - <<_ACEOF >conftest.c
14491
14492
14493 #include <linux/mm.h>
14494
14495 int
14496 main (void)
14497 {
14498
14499 struct shrink_control sc __attribute__ ((unused));
14500
14501 sc.nr_to_scan = 0;
14502 sc.gfp_mask = GFP_KERNEL;
14503
14504 ;
14505 return 0;
14506 }
14507
14508 _ACEOF
14509
14510
14511 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14512 echo "obj-m := conftest.o" >build/Makefile
14513 modpost_flag=''
14514 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14515 if { 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'
14516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14520 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14522 (eval $ac_try) 2>&5
14523 ac_status=$?
14524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14525 test $ac_status = 0; }; }; then :
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14528 $as_echo "yes" >&6; }
14529
14530 $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
14531
14532
14533 else
14534 $as_echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14536
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14538 $as_echo "no" >&6; }
14539
14540
14541
14542 fi
14543 rm -Rf build
14544
14545
14546
14547
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
14549 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
14550 tmp_flags="$EXTRA_KCFLAGS"
14551 EXTRA_KCFLAGS="-Werror"
14552
14553
14554 cat confdefs.h - <<_ACEOF >conftest.c
14555
14556
14557 #include <linux/rwsem.h>
14558
14559 int
14560 main (void)
14561 {
14562
14563 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14564 raw_spinlock_t dummy_lock __attribute__ ((unused));
14565 dummy_semaphore.wait_lock = dummy_lock;
14566
14567 ;
14568 return 0;
14569 }
14570
14571 _ACEOF
14572
14573
14574 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14575 echo "obj-m := conftest.o" >build/Makefile
14576 modpost_flag=''
14577 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14578 if { 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'
14579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14583 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14585 (eval $ac_try) 2>&5
14586 ac_status=$?
14587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14588 test $ac_status = 0; }; }; then :
14589
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14591 $as_echo "yes" >&6; }
14592
14593 $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
14594
14595
14596 else
14597 $as_echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14599
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14601 $as_echo "no" >&6; }
14602
14603
14604
14605 fi
14606 rm -Rf build
14607
14608
14609 EXTRA_KCFLAGS="$tmp_flags"
14610
14611
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5
14613 $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
14614 tmp_flags="$EXTRA_KCFLAGS"
14615 EXTRA_KCFLAGS="-Werror"
14616
14617
14618 cat confdefs.h - <<_ACEOF >conftest.c
14619
14620
14621 #include <linux/rwsem.h>
14622
14623 int
14624 main (void)
14625 {
14626
14627 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14628 dummy_semaphore.activity = 0;
14629
14630 ;
14631 return 0;
14632 }
14633
14634 _ACEOF
14635
14636
14637 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14638 echo "obj-m := conftest.o" >build/Makefile
14639 modpost_flag=''
14640 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14641 if { 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'
14642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14643 (eval $ac_try) 2>&5
14644 ac_status=$?
14645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14646 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14651 test $ac_status = 0; }; }; then :
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14654 $as_echo "yes" >&6; }
14655
14656 $as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h
14657
14658
14659 else
14660 $as_echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14662
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664 $as_echo "no" >&6; }
14665
14666
14667
14668 fi
14669 rm -Rf build
14670
14671
14672 EXTRA_KCFLAGS="$tmp_flags"
14673
14674
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5
14676 $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
14677 tmp_flags="$EXTRA_KCFLAGS"
14678 EXTRA_KCFLAGS="-Werror"
14679
14680
14681 cat confdefs.h - <<_ACEOF >conftest.c
14682
14683
14684 #include <linux/rwsem.h>
14685
14686 int
14687 main (void)
14688 {
14689
14690 DECLARE_RWSEM(dummy_semaphore);
14691 (void) atomic_long_read(&dummy_semaphore.count);
14692
14693 ;
14694 return 0;
14695 }
14696
14697 _ACEOF
14698
14699
14700 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14701 echo "obj-m := conftest.o" >build/Makefile
14702 modpost_flag=''
14703 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14704 if { 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'
14705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14709 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14711 (eval $ac_try) 2>&5
14712 ac_status=$?
14713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14714 test $ac_status = 0; }; }; then :
14715
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14717 $as_echo "yes" >&6; }
14718
14719 $as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h
14720
14721
14722 else
14723 $as_echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14727 $as_echo "no" >&6; }
14728
14729
14730
14731 fi
14732 rm -Rf build
14733
14734
14735 EXTRA_KCFLAGS="$tmp_flags"
14736
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
14738 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
14739
14740
14741 cat confdefs.h - <<_ACEOF >conftest.c
14742
14743
14744 #include <linux/sched.h>
14745 #include <linux/sched/rt.h>
14746
14747 int
14748 main (void)
14749 {
14750
14751 return 0;
14752
14753 ;
14754 return 0;
14755 }
14756
14757 _ACEOF
14758
14759
14760 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14761 echo "obj-m := conftest.o" >build/Makefile
14762 modpost_flag=''
14763 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14764 if { 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'
14765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14766 (eval $ac_try) 2>&5
14767 ac_status=$?
14768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14774 test $ac_status = 0; }; }; then :
14775
14776
14777 $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14780 $as_echo "yes" >&6; }
14781
14782 else
14783 $as_echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14785
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787 $as_echo "no" >&6; }
14788
14789
14790
14791 fi
14792 rm -Rf build
14793
14794
14795
14796
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants" >&5
14798 $as_echo_n "checking whether vfs_getattr() wants... " >&6; }
14799
14800
14801 cat confdefs.h - <<_ACEOF >conftest.c
14802
14803
14804 #include <linux/fs.h>
14805
14806 int
14807 main (void)
14808 {
14809
14810 vfs_getattr((struct path *) NULL,
14811 (struct kstat *)NULL);
14812
14813 ;
14814 return 0;
14815 }
14816
14817 _ACEOF
14818
14819
14820 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14821 echo "obj-m := conftest.o" >build/Makefile
14822 modpost_flag=''
14823 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14824 if { 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'
14825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14826 (eval $ac_try) 2>&5
14827 ac_status=$?
14828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14829 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14834 test $ac_status = 0; }; }; then :
14835
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2 args" >&5
14837 $as_echo "2 args" >&6; }
14838
14839 $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
14840
14841
14842 else
14843 $as_echo "$as_me: failed program was:" >&5
14844 sed 's/^/| /' conftest.$ac_ext >&5
14845
14846
14847
14848 cat confdefs.h - <<_ACEOF >conftest.c
14849
14850
14851 #include <linux/fs.h>
14852
14853 int
14854 main (void)
14855 {
14856
14857 vfs_getattr((struct vfsmount *)NULL,
14858 (struct dentry *)NULL,
14859 (struct kstat *)NULL);
14860
14861 ;
14862 return 0;
14863 }
14864
14865 _ACEOF
14866
14867
14868 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14869 echo "obj-m := conftest.o" >build/Makefile
14870 modpost_flag=''
14871 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14872 if { 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'
14873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14877 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14879 (eval $ac_try) 2>&5
14880 ac_status=$?
14881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14882 test $ac_status = 0; }; }; then :
14883
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3 args" >&5
14885 $as_echo "3 args" >&6; }
14886
14887 else
14888 $as_echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14890
14891 as_fn_error $? "unknown" "$LINENO" 5
14892
14893
14894
14895 fi
14896 rm -Rf build
14897
14898
14899
14900
14901
14902 fi
14903 rm -Rf build
14904
14905
14906
14907
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5
14909 $as_echo_n "checking whether usleep_range() is available... " >&6; }
14910
14911
14912 cat confdefs.h - <<_ACEOF >conftest.c
14913
14914
14915 #include <linux/delay.h>
14916
14917 int
14918 main (void)
14919 {
14920
14921 usleep_range(0, 0);
14922
14923 ;
14924 return 0;
14925 }
14926
14927 _ACEOF
14928
14929
14930 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14931 echo "obj-m := conftest.o" >build/Makefile
14932 modpost_flag=''
14933 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14934 if { 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'
14935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14939 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14944 test $ac_status = 0; }; }; then :
14945
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14947 $as_echo "yes" >&6; }
14948
14949 $as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h
14950
14951
14952 else
14953 $as_echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14957 $as_echo "no" >&6; }
14958
14959
14960
14961 fi
14962 rm -Rf build
14963
14964
14965
14966
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5
14968 $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
14969
14970
14971 cat confdefs.h - <<_ACEOF >conftest.c
14972
14973
14974 #include <linux/slab.h>
14975
14976 int
14977 main (void)
14978 {
14979
14980 struct kmem_cache cachep __attribute__ ((unused));
14981 cachep.allocflags = GFP_KERNEL;
14982
14983 ;
14984 return 0;
14985 }
14986
14987 _ACEOF
14988
14989
14990 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14991 echo "obj-m := conftest.o" >build/Makefile
14992 modpost_flag=''
14993 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14994 if { 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'
14995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14996 (eval $ac_try) 2>&5
14997 ac_status=$?
14998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14999 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15001 (eval $ac_try) 2>&5
15002 ac_status=$?
15003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15004 test $ac_status = 0; }; }; then :
15005
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15007 $as_echo "yes" >&6; }
15008
15009 $as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h
15010
15011
15012 else
15013 $as_echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15015
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15017 $as_echo "no" >&6; }
15018
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5
15020 $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
15021
15022
15023 cat confdefs.h - <<_ACEOF >conftest.c
15024
15025
15026 #include <linux/slab.h>
15027
15028 int
15029 main (void)
15030 {
15031
15032 struct kmem_cache cachep __attribute__ ((unused));
15033 cachep.gfpflags = GFP_KERNEL;
15034
15035 ;
15036 return 0;
15037 }
15038
15039 _ACEOF
15040
15041
15042 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15043 echo "obj-m := conftest.o" >build/Makefile
15044 modpost_flag=''
15045 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15046 if { 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'
15047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15048 (eval $ac_try) 2>&5
15049 ac_status=$?
15050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15051 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15056 test $ac_status = 0; }; }; then :
15057
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15059 $as_echo "yes" >&6; }
15060
15061 $as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h
15062
15063
15064 else
15065 $as_echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15069 $as_echo "no" >&6; }
15070
15071
15072
15073 fi
15074 rm -Rf build
15075
15076
15077
15078
15079
15080 fi
15081 rm -Rf build
15082
15083
15084
15085
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5
15087 $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
15088
15089
15090 cat confdefs.h - <<_ACEOF >conftest.c
15091
15092
15093 #include <linux/wait.h>
15094
15095 int
15096 main (void)
15097 {
15098
15099 int (*action)(void *) = NULL;
15100 wait_on_bit(NULL, 0, action, 0);
15101
15102 ;
15103 return 0;
15104 }
15105
15106 _ACEOF
15107
15108
15109 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15110 echo "obj-m := conftest.o" >build/Makefile
15111 modpost_flag=''
15112 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15113 if { 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'
15114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15118 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15123 test $ac_status = 0; }; }; then :
15124
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15126 $as_echo "yes" >&6; }
15127
15128 $as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h
15129
15130
15131 else
15132 $as_echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15134
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15136 $as_echo "no" >&6; }
15137
15138
15139
15140 fi
15141 rm -Rf build
15142
15143
15144
15145
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5
15147 $as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
15148 tmp_flags="$EXTRA_KCFLAGS"
15149 EXTRA_KCFLAGS="-Werror"
15150
15151
15152 cat confdefs.h - <<_ACEOF >conftest.c
15153
15154
15155 #include <linux/fs.h>
15156
15157 int
15158 main (void)
15159 {
15160
15161 struct inode *inode = NULL;
15162 inode_lock_shared(inode);
15163
15164 ;
15165 return 0;
15166 }
15167
15168 _ACEOF
15169
15170
15171 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15172 echo "obj-m := conftest.o" >build/Makefile
15173 modpost_flag=''
15174 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15175 if { 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'
15176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15180 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
15184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15185 test $ac_status = 0; }; }; then :
15186
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15188 $as_echo "yes" >&6; }
15189
15190 $as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h
15191
15192
15193 else
15194 $as_echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15198 $as_echo "no" >&6; }
15199
15200
15201
15202 fi
15203 rm -Rf build
15204
15205
15206 EXTRA_KCFLAGS="$tmp_flags"
15207
15208
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex has owner" >&5
15210 $as_echo_n "checking whether mutex has owner... " >&6; }
15211 tmp_flags="$EXTRA_KCFLAGS"
15212 EXTRA_KCFLAGS="-Werror"
15213
15214
15215 cat confdefs.h - <<_ACEOF >conftest.c
15216
15217
15218 #include <linux/mutex.h>
15219 #include <linux/spinlock.h>
15220
15221 int
15222 main (void)
15223 {
15224
15225 DEFINE_MUTEX(m);
15226 struct task_struct *t __attribute__ ((unused));
15227 t = m.owner;
15228
15229 ;
15230 return 0;
15231 }
15232
15233 _ACEOF
15234
15235
15236 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15237 echo "obj-m := conftest.o" >build/Makefile
15238 modpost_flag=''
15239 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15240 if { 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'
15241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15245 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15247 (eval $ac_try) 2>&5
15248 ac_status=$?
15249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15250 test $ac_status = 0; }; }; then :
15251
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15253 $as_echo "yes" >&6; }
15254
15255 $as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
15256
15257
15258 else
15259 $as_echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15263 $as_echo "no" >&6; }
15264
15265
15266
15267 fi
15268 rm -Rf build
15269
15270
15271 EXTRA_KCFLAGS="$tmp_flags"
15272
15273
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether group_info->gid exists" >&5
15275 $as_echo_n "checking whether group_info->gid exists... " >&6; }
15276 tmp_flags="$EXTRA_KCFLAGS"
15277 EXTRA_KCFLAGS="-Werror"
15278
15279
15280 cat confdefs.h - <<_ACEOF >conftest.c
15281
15282
15283 #include <linux/cred.h>
15284
15285 int
15286 main (void)
15287 {
15288
15289 struct group_info *gi = groups_alloc(1);
15290 gi->gid[0] = KGIDT_INIT(0);
15291
15292 ;
15293 return 0;
15294 }
15295
15296 _ACEOF
15297
15298
15299 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15300 echo "obj-m := conftest.o" >build/Makefile
15301 modpost_flag=''
15302 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15303 if { 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'
15304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15305 (eval $ac_try) 2>&5
15306 ac_status=$?
15307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15308 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15313 test $ac_status = 0; }; }; then :
15314
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15316 $as_echo "yes" >&6; }
15317
15318 $as_echo "#define HAVE_GROUP_INFO_GID 1" >>confdefs.h
15319
15320
15321 else
15322 $as_echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15324
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15326 $as_echo "no" >&6; }
15327
15328
15329
15330 fi
15331 rm -Rf build
15332
15333
15334 EXTRA_KCFLAGS="$tmp_flags"
15335
15336 ;;
15337 user) ;;
15338 all)
15339
15340
15341 # Check whether --with-linux was given.
15342 if test "${with_linux+set}" = set; then :
15343 withval=$with_linux; kernelsrc="$withval"
15344 fi
15345
15346
15347
15348 # Check whether --with-linux-obj was given.
15349 if test "${with_linux_obj+set}" = set; then :
15350 withval=$with_linux_obj; kernelbuild="$withval"
15351 fi
15352
15353
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
15355 $as_echo_n "checking kernel source directory... " >&6; }
15356 if test -z "$kernelsrc"; then
15357 if test -e "/lib/modules/$(uname -r)/source"; then
15358 headersdir="/lib/modules/$(uname -r)/source"
15359 sourcelink=$(readlink -f "$headersdir")
15360 elif test -e "/lib/modules/$(uname -r)/build"; then
15361 headersdir="/lib/modules/$(uname -r)/build"
15362 sourcelink=$(readlink -f "$headersdir")
15363 else
15364 sourcelink=$(ls -1d /usr/src/kernels/* \
15365 /usr/src/linux-* \
15366 2>/dev/null | grep -v obj | tail -1)
15367 fi
15368
15369 if test -n "$sourcelink" && test -e ${sourcelink}; then
15370 kernelsrc=`readlink -f ${sourcelink}`
15371 else
15372 kernelsrc="Not found"
15373 fi
15374 else
15375 if test "$kernelsrc" = "NONE"; then
15376 kernsrcver=NONE
15377 fi
15378 fi
15379
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
15381 $as_echo "$kernelsrc" >&6; }
15382 if test ! -d "$kernelsrc"; then
15383 as_fn_error $? "
15384 *** Please make sure the kernel devel package for your distribution
15385 *** is installed and then try again. If that fails, you can specify the
15386 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
15387 fi
15388
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
15390 $as_echo_n "checking kernel build directory... " >&6; }
15391 if test -z "$kernelbuild"; then
15392 if test -e "/lib/modules/$(uname -r)/build"; then
15393 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15394 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15395 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15396 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15397 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15398 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15399 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15400 else
15401 kernelbuild=${kernelsrc}
15402 fi
15403 fi
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
15405 $as_echo "$kernelbuild" >&6; }
15406
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
15408 $as_echo_n "checking kernel source version... " >&6; }
15409 utsrelease1=$kernelbuild/include/linux/version.h
15410 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15411 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15412 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15413 utsrelease=linux/version.h
15414 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15415 utsrelease=linux/utsrelease.h
15416 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15417 utsrelease=generated/utsrelease.h
15418 fi
15419
15420 if test "$utsrelease"; then
15421 kernsrcver=`(echo "#include <$utsrelease>";
15422 echo "kernsrcver=UTS_RELEASE") |
15423 cpp -I $kernelbuild/include |
15424 grep "^kernsrcver=" | cut -d \" -f 2`
15425
15426 if test -z "$kernsrcver"; then
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
15428 $as_echo "Not found" >&6; }
15429 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
15430 fi
15431 else
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
15433 $as_echo "Not found" >&6; }
15434 if test "x$enable_linux_builtin" != xyes; then
15435 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
15436 else
15437 as_fn_error $? "
15438 *** Cannot find UTS_RELEASE definition.
15439 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
15440 fi
15441 fi
15442
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
15444 $as_echo "$kernsrcver" >&6; }
15445
15446 LINUX=${kernelsrc}
15447 LINUX_OBJ=${kernelbuild}
15448 LINUX_VERSION=${kernsrcver}
15449
15450
15451
15452
15453
15454
15455 modpost=$LINUX/scripts/Makefile.modpost
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
15457 $as_echo_n "checking kernel file name for module symbols... " >&6; }
15458 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
15459 if grep -q Modules.symvers $modpost; then
15460 LINUX_SYMBOLS=Modules.symvers
15461 else
15462 LINUX_SYMBOLS=Module.symvers
15463 fi
15464
15465 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
15466 as_fn_error $? "
15467 *** Please make sure the kernel devel package for your distribution
15468 *** is installed. If you are building with a custom kernel, make sure the
15469 *** kernel is configured, built, and the '--with-linux=PATH' configure
15470 *** option refers to the location of the kernel source." "$LINENO" 5
15471 fi
15472 else
15473 LINUX_SYMBOLS=NONE
15474 fi
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
15476 $as_echo "$LINUX_SYMBOLS" >&6; }
15477
15478
15479
15480
15481 if test "${LINUX_OBJ}" != "${LINUX}"; then
15482 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15483 fi
15484
15485
15486 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
15487
15488
15489
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
15491 $as_echo_n "checking whether debugging is enabled... " >&6; }
15492 # Check whether --enable-debug was given.
15493 if test "${enable_debug+set}" = set; then :
15494 enableval=$enable_debug;
15495 else
15496 enable_debug=no
15497 fi
15498
15499
15500 if test "x$enable_debug" = xyes; then :
15501
15502 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
15503 DEBUG_CFLAGS="-DDEBUG -Werror"
15504 DEBUG_SPL="_with_debug"
15505
15506 else
15507
15508 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
15509 DEBUG_CFLAGS="-DNDEBUG"
15510 DEBUG_SPL="_without_debug"
15511
15512 fi
15513
15514
15515
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
15517 $as_echo "$enable_debug" >&6; }
15518
15519
15520 # Check whether --enable-debug-kmem was given.
15521 if test "${enable_debug_kmem+set}" = set; then :
15522 enableval=$enable_debug_kmem;
15523 else
15524 enable_debug_kmem=no
15525 fi
15526
15527
15528 if test "x$enable_debug_kmem" = xyes; then :
15529
15530 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15531 DEBUG_KMEM="_with_debug_kmem"
15532
15533 $as_echo "#define DEBUG_KMEM 1" >>confdefs.h
15534
15535
15536 else
15537
15538 DEBUG_KMEM="_without_debug_kmem"
15539
15540 fi
15541
15542
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
15544 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
15546 $as_echo "$enable_debug_kmem" >&6; }
15547
15548
15549 # Check whether --enable-debug-kmem-tracking was given.
15550 if test "${enable_debug_kmem_tracking+set}" = set; then :
15551 enableval=$enable_debug_kmem_tracking;
15552 else
15553 enable_debug_kmem_tracking=no
15554 fi
15555
15556
15557 if test "x$enable_debug_kmem_tracking" = xyes; then :
15558
15559 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15560 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
15561
15562 $as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
15563
15564
15565 else
15566
15567 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
15568
15569 fi
15570
15571
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
15573 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
15575 $as_echo "$enable_debug_kmem_tracking" >&6; }
15576
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
15578 $as_echo_n "checking whether modules can be built... " >&6; }
15579
15580
15581 cat confdefs.h - <<_ACEOF >conftest.c
15582
15583
15584 int
15585 main (void)
15586 {
15587
15588 ;
15589 return 0;
15590 }
15591
15592 _ACEOF
15593
15594
15595 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15596 echo "obj-m := conftest.o" >build/Makefile
15597 modpost_flag=''
15598 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15599 if { 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'
15600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15604 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15609 test $ac_status = 0; }; }; then :
15610
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15612 $as_echo "yes" >&6; }
15613
15614 else
15615 $as_echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15619 $as_echo "no" >&6; }
15620 if test "x$enable_linux_builtin" != xyes; then
15621 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
15622 else
15623 as_fn_error $? "
15624 *** Unable to build an empty module.
15625 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
15626 fi
15627
15628
15629
15630 fi
15631 rm -Rf build
15632
15633
15634
15635 if test "x$cross_compiling" != xyes; then :
15636
15637 if test "$cross_compiling" = yes; then :
15638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15640 as_fn_error $? "cannot run test program while cross compiling
15641 See \`config.log' for more details" "$LINENO" 5; }
15642 else
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15645
15646
15647 #include "$LINUX/include/linux/license.h"
15648
15649 int
15650 main ()
15651 {
15652
15653 return !license_is_gpl_compatible(
15654 "$SPL_META_LICENSE");
15655
15656 ;
15657 return 0;
15658 }
15659
15660 _ACEOF
15661 if ac_fn_c_try_run "$LINENO"; then :
15662
15663
15664 $as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h
15665
15666
15667 fi
15668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15669 conftest.$ac_objext conftest.beam conftest.$ac_ext
15670 fi
15671
15672
15673 fi
15674
15675
15676 # Check whether --enable-atomic-spinlocks was given.
15677 if test "${enable_atomic_spinlocks+set}" = set; then :
15678 enableval=$enable_atomic_spinlocks;
15679 else
15680 enable_atomic_spinlocks=check
15681 fi
15682
15683
15684
15685
15686 cat confdefs.h - <<_ACEOF >conftest.c
15687
15688
15689 #include <linux/fs.h>
15690
15691 int
15692 main (void)
15693 {
15694
15695 atomic64_t *ptr __attribute__ ((unused));
15696
15697 ;
15698 return 0;
15699 }
15700
15701 _ACEOF
15702
15703
15704 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15705 echo "obj-m := conftest.o" >build/Makefile
15706 modpost_flag=''
15707 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15708 if { 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'
15709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15713 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15715 (eval $ac_try) 2>&5
15716 ac_status=$?
15717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15718 test $ac_status = 0; }; }; then :
15719
15720 have_atomic64_t=yes
15721
15722 $as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
15723
15724
15725 else
15726 $as_echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15728
15729 have_atomic64_t=no
15730
15731
15732
15733 fi
15734 rm -Rf build
15735
15736
15737
15738 if test "x$enable_atomic_spinlocks" = xcheck; then :
15739
15740 if test "x$have_atomic64_t" = xyes; then :
15741
15742 enable_atomic_spinlocks=no
15743
15744 else
15745
15746 enable_atomic_spinlocks=yes
15747
15748 fi
15749
15750 fi
15751
15752 if test "x$enable_atomic_spinlocks" = xyes; then :
15753
15754
15755 $as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
15756
15757
15758 else
15759
15760 if test "x$have_atomic64_t" = xno; then :
15761
15762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15764 as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
15765 See \`config.log' for more details" "$LINENO" 5; }
15766
15767 fi
15768
15769 fi
15770
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
15772 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
15774 $as_echo "$enable_atomic_spinlocks" >&6; }
15775
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
15777 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
15779 $as_echo "$have_atomic64_t" >&6; }
15780
15781
15782 tmp_flags="$EXTRA_KCFLAGS"
15783 EXTRA_KCFLAGS="-Werror"
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5
15785 $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
15786
15787
15788 cat confdefs.h - <<_ACEOF >conftest.c
15789
15790
15791 #include <linux/mm.h>
15792
15793 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
15794
15795 int
15796 main (void)
15797 {
15798
15799 struct shrinker cache_shrinker = {
15800 .shrink = shrinker_cb,
15801 .seeks = DEFAULT_SEEKS,
15802 };
15803 register_shrinker(&cache_shrinker);
15804
15805 ;
15806 return 0;
15807 }
15808
15809 _ACEOF
15810
15811
15812 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15813 echo "obj-m := conftest.o" >build/Makefile
15814 modpost_flag=''
15815 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15816 if { 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'
15817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15821 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15826 test $ac_status = 0; }; }; then :
15827
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15829 $as_echo "yes" >&6; }
15830
15831 $as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h
15832
15833
15834 else
15835 $as_echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15837
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15839 $as_echo "no" >&6; }
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5
15841 $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
15842
15843
15844 cat confdefs.h - <<_ACEOF >conftest.c
15845
15846
15847 #include <linux/mm.h>
15848
15849 int shrinker_cb(struct shrinker *, int nr_to_scan,
15850 gfp_t gfp_mask);
15851
15852 int
15853 main (void)
15854 {
15855
15856 struct shrinker cache_shrinker = {
15857 .shrink = shrinker_cb,
15858 .seeks = DEFAULT_SEEKS,
15859 };
15860 register_shrinker(&cache_shrinker);
15861
15862 ;
15863 return 0;
15864 }
15865
15866 _ACEOF
15867
15868
15869 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15870 echo "obj-m := conftest.o" >build/Makefile
15871 modpost_flag=''
15872 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15873 if { 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'
15874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15878 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15883 test $ac_status = 0; }; }; then :
15884
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15886 $as_echo "yes" >&6; }
15887
15888 $as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
15889
15890
15891 else
15892 $as_echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15894
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15896 $as_echo "no" >&6; }
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5
15898 $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
15899
15900
15901 cat confdefs.h - <<_ACEOF >conftest.c
15902
15903
15904 #include <linux/mm.h>
15905
15906 int shrinker_cb(struct shrinker *,
15907 struct shrink_control *sc);
15908
15909 int
15910 main (void)
15911 {
15912
15913 struct shrinker cache_shrinker = {
15914 .shrink = shrinker_cb,
15915 .seeks = DEFAULT_SEEKS,
15916 };
15917 register_shrinker(&cache_shrinker);
15918
15919 ;
15920 return 0;
15921 }
15922
15923 _ACEOF
15924
15925
15926 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15927 echo "obj-m := conftest.o" >build/Makefile
15928 modpost_flag=''
15929 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15930 if { 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'
15931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15935 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15937 (eval $ac_try) 2>&5
15938 ac_status=$?
15939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15940 test $ac_status = 0; }; }; then :
15941
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15943 $as_echo "yes" >&6; }
15944
15945 $as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h
15946
15947
15948 else
15949 $as_echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15953 $as_echo "no" >&6; }
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5
15955 $as_echo_n "checking whether ->count_objects callback exists... " >&6; }
15956
15957
15958 cat confdefs.h - <<_ACEOF >conftest.c
15959
15960
15961 #include <linux/mm.h>
15962
15963 unsigned long shrinker_cb(
15964 struct shrinker *,
15965 struct shrink_control *sc);
15966
15967 int
15968 main (void)
15969 {
15970
15971 struct shrinker cache_shrinker = {
15972 .count_objects = shrinker_cb,
15973 .scan_objects = shrinker_cb,
15974 .seeks = DEFAULT_SEEKS,
15975 };
15976 register_shrinker(&cache_shrinker);
15977
15978 ;
15979 return 0;
15980 }
15981
15982 _ACEOF
15983
15984
15985 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15986 echo "obj-m := conftest.o" >build/Makefile
15987 modpost_flag=''
15988 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15989 if { 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'
15990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15994 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15999 test $ac_status = 0; }; }; then :
16000
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16002 $as_echo "yes" >&6; }
16003
16004 $as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h
16005
16006
16007 else
16008 $as_echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16010
16011 as_fn_error $? "error" "$LINENO" 5
16012
16013
16014
16015 fi
16016 rm -Rf build
16017
16018
16019
16020
16021
16022 fi
16023 rm -Rf build
16024
16025
16026
16027
16028
16029 fi
16030 rm -Rf build
16031
16032
16033
16034
16035
16036 fi
16037 rm -Rf build
16038
16039
16040 EXTRA_KCFLAGS="$tmp_flags"
16041
16042
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
16044 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
16045
16046
16047 cat confdefs.h - <<_ACEOF >conftest.c
16048
16049
16050 #include <linux/sysctl.h>
16051
16052 int
16053 main (void)
16054 {
16055
16056 struct ctl_table ctl __attribute__ ((unused));
16057 ctl.ctl_name = 0;
16058
16059 ;
16060 return 0;
16061 }
16062
16063 _ACEOF
16064
16065
16066 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16067 echo "obj-m := conftest.o" >build/Makefile
16068 modpost_flag=''
16069 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16070 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16072 (eval $ac_try) 2>&5
16073 ac_status=$?
16074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16075 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16077 (eval $ac_try) 2>&5
16078 ac_status=$?
16079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16080 test $ac_status = 0; }; }; then :
16081
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16083 $as_echo "yes" >&6; }
16084
16085 $as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
16086
16087
16088 else
16089 $as_echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16091
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093 $as_echo "no" >&6; }
16094
16095
16096
16097 fi
16098 rm -Rf build
16099
16100
16101
16102
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
16104 $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
16105
16106
16107 cat confdefs.h - <<_ACEOF >conftest.c
16108
16109
16110 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
16111 #error CONFIG_TRIM_UNUSED_KSYMS not defined
16112 #endif
16113
16114 int
16115 main (void)
16116 {
16117
16118 ;
16119 return 0;
16120 }
16121
16122 _ACEOF
16123
16124
16125 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16126 echo "obj-m := conftest.o" >build/Makefile
16127 modpost_flag=''
16128 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16129 if { 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'
16130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16134 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16139 test $ac_status = 0; }; }; then :
16140
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16142 $as_echo "yes" >&6; }
16143
16144 else
16145 $as_echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.$ac_ext >&5
16147
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 $as_echo "no" >&6; }
16150 as_fn_error $? "
16151 *** This kernel has unused symbols trimming enabled, please disable.
16152 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." "$LINENO" 5
16153
16154
16155
16156 fi
16157 rm -Rf build
16158
16159
16160
16161
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5
16163 $as_echo_n "checking whether PDE_DATA() is available... " >&6; }
16164
16165
16166
16167 cat confdefs.h - <<_ACEOF >conftest.c
16168
16169
16170 #include <linux/proc_fs.h>
16171
16172 int
16173 main (void)
16174 {
16175
16176 PDE_DATA(NULL);
16177
16178 ;
16179 return 0;
16180 }
16181
16182 _ACEOF
16183
16184
16185 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16186 echo "obj-m := conftest.o" >build/Makefile
16187 modpost_flag=''
16188 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16189 if { 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'
16190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16194 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16196 (eval $ac_try) 2>&5
16197 ac_status=$?
16198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16199 test $ac_status = 0; }; }; then :
16200 rc=0
16201 else
16202 $as_echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16204 rc=1
16205
16206
16207 fi
16208 rm -Rf build
16209
16210
16211 if test $rc -ne 0; then :
16212
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214 $as_echo "no" >&6; }
16215
16216 else
16217 if test "x$enable_linux_builtin" != xyes; then
16218
16219 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
16220 $LINUX_OBJ/Module*.symvers 2>/dev/null
16221 rc=$?
16222 if test $rc -ne 0; then
16223 export=0
16224 for file in ; do
16225 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
16226 "$LINUX_OBJ/$file" 2>/dev/null
16227 rc=$?
16228 if test $rc -eq 0; then
16229 export=1
16230 break;
16231 fi
16232 done
16233 if test $export -eq 0; then :
16234 rc=1
16235 else :
16236 rc=0
16237 fi
16238 else :
16239 rc=0
16240 fi
16241
16242 fi
16243 if test $rc -ne 0; then :
16244
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16246 $as_echo "no" >&6; }
16247
16248 else :
16249
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16251 $as_echo "yes" >&6; }
16252
16253 $as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h
16254
16255
16256 fi
16257 fi
16258
16259
16260 tmp_flags="$EXTRA_KCFLAGS"
16261 EXTRA_KCFLAGS="-Werror"
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
16263 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
16264
16265
16266 cat confdefs.h - <<_ACEOF >conftest.c
16267
16268
16269 #include <linux/spinlock.h>
16270 #include <linux/fs_struct.h>
16271 #include <linux/path.h>
16272 void (*const set_fs_pwd_func)
16273 (struct fs_struct *, const struct path *)
16274 = set_fs_pwd;
16275
16276 int
16277 main (void)
16278 {
16279
16280 return 0;
16281
16282 ;
16283 return 0;
16284 }
16285
16286 _ACEOF
16287
16288
16289 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16290 echo "obj-m := conftest.o" >build/Makefile
16291 modpost_flag=''
16292 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16293 if { 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'
16294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16295 (eval $ac_try) 2>&5
16296 ac_status=$?
16297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16298 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16303 test $ac_status = 0; }; }; then :
16304
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16306 $as_echo "yes" >&6; }
16307
16308 $as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
16309
16310
16311 else
16312 $as_echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16314
16315
16316
16317 cat confdefs.h - <<_ACEOF >conftest.c
16318
16319
16320 #include <linux/spinlock.h>
16321 #include <linux/fs_struct.h>
16322 #include <linux/path.h>
16323 void (*const set_fs_pwd_func)
16324 (struct fs_struct *, struct path *)
16325 = set_fs_pwd;
16326
16327 int
16328 main (void)
16329 {
16330
16331 return 0;
16332
16333 ;
16334 return 0;
16335 }
16336
16337 _ACEOF
16338
16339
16340 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16341 echo "obj-m := conftest.o" >build/Makefile
16342 modpost_flag=''
16343 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16344 if { 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'
16345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16349 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16351 (eval $ac_try) 2>&5
16352 ac_status=$?
16353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16354 test $ac_status = 0; }; }; then :
16355
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357 $as_echo "no" >&6; }
16358
16359 else
16360 $as_echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 as_fn_error $? "unknown" "$LINENO" 5
16364
16365
16366
16367 fi
16368 rm -Rf build
16369
16370
16371
16372
16373
16374 fi
16375 rm -Rf build
16376
16377
16378 EXTRA_KCFLAGS="$tmp_flags"
16379
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
16381 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
16382
16383
16384 cat confdefs.h - <<_ACEOF >conftest.c
16385
16386
16387 #include <linux/fs.h>
16388
16389 int
16390 main (void)
16391 {
16392
16393 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
16394
16395 ;
16396 return 0;
16397 }
16398
16399 _ACEOF
16400
16401
16402 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16403 echo "obj-m := conftest.o" >build/Makefile
16404 modpost_flag=''
16405 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16406 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16411 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16416 test $ac_status = 0; }; }; then :
16417
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16419 $as_echo "yes" >&6; }
16420
16421 $as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
16422
16423
16424 else
16425 $as_echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16427
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16429 $as_echo "no" >&6; }
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5
16431 $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
16432
16433
16434 cat confdefs.h - <<_ACEOF >conftest.c
16435
16436
16437 #include <linux/fs.h>
16438
16439 int
16440 main (void)
16441 {
16442
16443 vfs_unlink((struct inode *) NULL,
16444 (struct dentry *) NULL,
16445 (struct inode **) NULL);
16446
16447 ;
16448 return 0;
16449 }
16450
16451 _ACEOF
16452
16453
16454 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16455 echo "obj-m := conftest.o" >build/Makefile
16456 modpost_flag=''
16457 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16458 if { 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'
16459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16463 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16468 test $ac_status = 0; }; }; then :
16469
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16471 $as_echo "yes" >&6; }
16472
16473 $as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h
16474
16475
16476 else
16477 $as_echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16479
16480 as_fn_error $? "no" "$LINENO" 5
16481
16482
16483
16484 fi
16485 rm -Rf build
16486
16487
16488
16489
16490
16491
16492 fi
16493 rm -Rf build
16494
16495
16496
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
16498 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
16499
16500
16501 cat confdefs.h - <<_ACEOF >conftest.c
16502
16503
16504 #include <linux/fs.h>
16505
16506 int
16507 main (void)
16508 {
16509
16510 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
16511 (struct inode *) NULL, (struct dentry *) NULL);
16512
16513 ;
16514 return 0;
16515 }
16516
16517 _ACEOF
16518
16519
16520 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16521 echo "obj-m := conftest.o" >build/Makefile
16522 modpost_flag=''
16523 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16524 if { 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'
16525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16526 (eval $ac_try) 2>&5
16527 ac_status=$?
16528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16529 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16534 test $ac_status = 0; }; }; then :
16535
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16537 $as_echo "yes" >&6; }
16538
16539 $as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
16540
16541
16542 else
16543 $as_echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16547 $as_echo "no" >&6; }
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5
16549 $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
16550
16551
16552 cat confdefs.h - <<_ACEOF >conftest.c
16553
16554
16555 #include <linux/fs.h>
16556
16557 int
16558 main (void)
16559 {
16560
16561 vfs_rename((struct inode *) NULL,
16562 (struct dentry *) NULL,
16563 (struct inode *) NULL,
16564 (struct dentry *) NULL,
16565 (struct inode **) NULL);
16566
16567 ;
16568 return 0;
16569 }
16570
16571 _ACEOF
16572
16573
16574 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16575 echo "obj-m := conftest.o" >build/Makefile
16576 modpost_flag=''
16577 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16578 if { 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'
16579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16583 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16588 test $ac_status = 0; }; }; then :
16589
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16591 $as_echo "yes" >&6; }
16592
16593 $as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h
16594
16595
16596 else
16597 $as_echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16601 $as_echo "no" >&6; }
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5
16603 $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
16604
16605
16606 cat confdefs.h - <<_ACEOF >conftest.c
16607
16608
16609 #include <linux/fs.h>
16610
16611 int
16612 main (void)
16613 {
16614
16615 vfs_rename((struct inode *) NULL,
16616 (struct dentry *) NULL,
16617 (struct inode *) NULL,
16618 (struct dentry *) NULL,
16619 (struct inode **) NULL,
16620 (unsigned int) 0);
16621
16622 ;
16623 return 0;
16624 }
16625
16626 _ACEOF
16627
16628
16629 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16630 echo "obj-m := conftest.o" >build/Makefile
16631 modpost_flag=''
16632 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16633 if { 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'
16634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16635 (eval $ac_try) 2>&5
16636 ac_status=$?
16637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16638 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16643 test $ac_status = 0; }; }; then :
16644
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16646 $as_echo "yes" >&6; }
16647
16648 $as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h
16649
16650
16651 else
16652 $as_echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16654
16655 as_fn_error $? "no" "$LINENO" 5
16656
16657
16658
16659 fi
16660 rm -Rf build
16661
16662
16663
16664
16665
16666 fi
16667 rm -Rf build
16668
16669
16670
16671
16672
16673 fi
16674 rm -Rf build
16675
16676
16677
16678
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
16680 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
16681
16682
16683 cat confdefs.h - <<_ACEOF >conftest.c
16684
16685
16686 #include <linux/fs.h>
16687
16688 int
16689 main (void)
16690 {
16691
16692 vfs_fsync(NULL, 0);
16693
16694 ;
16695 return 0;
16696 }
16697
16698 _ACEOF
16699
16700
16701 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16702 echo "obj-m := conftest.o" >build/Makefile
16703 modpost_flag=''
16704 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16705 if { 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'
16706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16707 (eval $ac_try) 2>&5
16708 ac_status=$?
16709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16710 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16715 test $ac_status = 0; }; }; then :
16716
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16718 $as_echo "yes" >&6; }
16719
16720 $as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
16721
16722
16723 else
16724 $as_echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.$ac_ext >&5
16726
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16728 $as_echo "no" >&6; }
16729
16730
16731
16732 fi
16733 rm -Rf build
16734
16735
16736
16737
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
16739 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
16740
16741
16742 cat confdefs.h - <<_ACEOF >conftest.c
16743
16744
16745 #include <linux/fs.h>
16746
16747 int
16748 main (void)
16749 {
16750
16751 struct inode_operations ops;
16752 ops.truncate_range = NULL;
16753
16754 ;
16755 return 0;
16756 }
16757
16758 _ACEOF
16759
16760
16761 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16762 echo "obj-m := conftest.o" >build/Makefile
16763 modpost_flag=''
16764 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16765 if { 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'
16766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16770 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16772 (eval $ac_try) 2>&5
16773 ac_status=$?
16774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16775 test $ac_status = 0; }; }; then :
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16778 $as_echo "yes" >&6; }
16779
16780 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
16781
16782
16783 else
16784 $as_echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16786
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788 $as_echo "no" >&6; }
16789
16790
16791
16792 fi
16793 rm -Rf build
16794
16795
16796
16797
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
16799 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
16800 tmp_flags="$EXTRA_KCFLAGS"
16801 EXTRA_KCFLAGS="-Werror"
16802
16803
16804 cat confdefs.h - <<_ACEOF >conftest.c
16805
16806
16807 #include <linux/sched.h>
16808 #include <linux/fs_struct.h>
16809
16810 int
16811 main (void)
16812 {
16813
16814 static struct fs_struct fs;
16815 spin_lock_init(&fs.lock);
16816
16817 ;
16818 return 0;
16819 }
16820
16821 _ACEOF
16822
16823
16824 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16825 echo "obj-m := conftest.o" >build/Makefile
16826 modpost_flag=''
16827 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16828 if { 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'
16829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16833 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16838 test $ac_status = 0; }; }; then :
16839
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16841 $as_echo "yes" >&6; }
16842
16843 $as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
16844
16845
16846 else
16847 $as_echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16852
16853
16854
16855 fi
16856 rm -Rf build
16857
16858
16859 EXTRA_KCFLAGS="$tmp_flags"
16860
16861
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5
16863 $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
16864
16865
16866 cat confdefs.h - <<_ACEOF >conftest.c
16867
16868
16869 #include <linux/uidgid.h>
16870
16871 int
16872 main (void)
16873 {
16874
16875 kuid_t userid = KUIDT_INIT(0);
16876 kgid_t groupid = KGIDT_INIT(0);
16877
16878 ;
16879 return 0;
16880 }
16881
16882 _ACEOF
16883
16884
16885 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16886 echo "obj-m := conftest.o" >build/Makefile
16887 modpost_flag=''
16888 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16889 if { 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'
16890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16891 (eval $ac_try) 2>&5
16892 ac_status=$?
16893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16894 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16899 test $ac_status = 0; }; }; then :
16900
16901
16902
16903 cat confdefs.h - <<_ACEOF >conftest.c
16904
16905
16906 #include <linux/uidgid.h>
16907
16908 int
16909 main (void)
16910 {
16911
16912 kuid_t userid = 0;
16913 kgid_t groupid = 0;
16914
16915 ;
16916 return 0;
16917 }
16918
16919 _ACEOF
16920
16921
16922 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16923 echo "obj-m := conftest.o" >build/Makefile
16924 modpost_flag=''
16925 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16926 if { 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'
16927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16931 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16936 test $ac_status = 0; }; }; then :
16937
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5
16939 $as_echo "yes; optional" >&6; }
16940
16941 else
16942 $as_echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16944
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5
16946 $as_echo "yes; mandatory" >&6; }
16947
16948 $as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h
16949
16950
16951
16952
16953 fi
16954 rm -Rf build
16955
16956
16957
16958 else
16959 $as_echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16961
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16963 $as_echo "no" >&6; }
16964
16965
16966
16967 fi
16968 rm -Rf build
16969
16970
16971
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __put_task_struct() is available" >&5
16973 $as_echo_n "checking whether __put_task_struct() is available... " >&6; }
16974
16975
16976
16977 cat confdefs.h - <<_ACEOF >conftest.c
16978
16979
16980 #include <linux/sched.h>
16981
16982 int
16983 main (void)
16984 {
16985
16986 __put_task_struct(NULL);
16987
16988 ;
16989 return 0;
16990 }
16991
16992 _ACEOF
16993
16994
16995 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16996 echo "obj-m := conftest.o" >build/Makefile
16997 modpost_flag=''
16998 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16999 if { 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'
17000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17004 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17009 test $ac_status = 0; }; }; then :
17010 rc=0
17011 else
17012 $as_echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17014 rc=1
17015
17016
17017 fi
17018 rm -Rf build
17019
17020
17021 if test $rc -ne 0; then :
17022
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024 $as_echo "no" >&6; }
17025
17026 else
17027 if test "x$enable_linux_builtin" != xyes; then
17028
17029 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
17030 $LINUX_OBJ/Module*.symvers 2>/dev/null
17031 rc=$?
17032 if test $rc -ne 0; then
17033 export=0
17034 for file in ; do
17035 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
17036 "$LINUX_OBJ/$file" 2>/dev/null
17037 rc=$?
17038 if test $rc -eq 0; then
17039 export=1
17040 break;
17041 fi
17042 done
17043 if test $export -eq 0; then :
17044 rc=1
17045 else :
17046 rc=0
17047 fi
17048 else :
17049 rc=0
17050 fi
17051
17052 fi
17053 if test $rc -ne 0; then :
17054
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17056 $as_echo "no" >&6; }
17057
17058 else :
17059
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17061 $as_echo "yes" >&6; }
17062
17063 $as_echo "#define HAVE_PUT_TASK_STRUCT 1" >>confdefs.h
17064
17065
17066 fi
17067 fi
17068
17069
17070
17071
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
17073 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17074
17075
17076 cat confdefs.h - <<_ACEOF >conftest.c
17077
17078
17079 #include <linux/fs.h>
17080
17081 int
17082 main (void)
17083 {
17084
17085 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17086 struct file_operations fops __attribute__ ((unused)) = {
17087 .fallocate = fallocate,
17088 };
17089
17090 ;
17091 return 0;
17092 }
17093
17094 _ACEOF
17095
17096
17097 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17098 echo "obj-m := conftest.o" >build/Makefile
17099 modpost_flag=''
17100 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17101 if { 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'
17102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17106 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17108 (eval $ac_try) 2>&5
17109 ac_status=$?
17110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17111 test $ac_status = 0; }; }; then :
17112
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17114 $as_echo "yes" >&6; }
17115
17116 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
17117
17118
17119 else
17120 $as_echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17122
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17124 $as_echo "no" >&6; }
17125
17126
17127
17128 fi
17129 rm -Rf build
17130
17131
17132
17133
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
17135 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
17136
17137
17138 cat confdefs.h - <<_ACEOF >conftest.c
17139
17140
17141 #include <linux/fs.h>
17142
17143 int
17144 main (void)
17145 {
17146
17147 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
17148 struct inode_operations fops __attribute__ ((unused)) = {
17149 .fallocate = fallocate,
17150 };
17151
17152 ;
17153 return 0;
17154 }
17155
17156 _ACEOF
17157
17158
17159 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17160 echo "obj-m := conftest.o" >build/Makefile
17161 modpost_flag=''
17162 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17163 if { 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'
17164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17168 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17173 test $ac_status = 0; }; }; then :
17174
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17176 $as_echo "yes" >&6; }
17177
17178 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
17179
17180
17181 else
17182 $as_echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17184
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186 $as_echo "no" >&6; }
17187
17188
17189
17190 fi
17191 rm -Rf build
17192
17193
17194
17195
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
17197 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17198
17199
17200 cat confdefs.h - <<_ACEOF >conftest.c
17201
17202
17203 #include <linux/fs.h>
17204
17205 int
17206 main (void)
17207 {
17208
17209 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17210 struct file_operations_no_const fops __attribute__ ((unused)) = {
17211 .fallocate = fallocate,
17212 };
17213
17214 ;
17215 return 0;
17216 }
17217
17218 _ACEOF
17219
17220
17221 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17222 echo "obj-m := conftest.o" >build/Makefile
17223 modpost_flag=''
17224 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17225 if { 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'
17226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17227 (eval $ac_try) 2>&5
17228 ac_status=$?
17229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17230 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17232 (eval $ac_try) 2>&5
17233 ac_status=$?
17234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17235 test $ac_status = 0; }; }; then :
17236
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17238 $as_echo "yes" >&6; }
17239
17240 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
17241
17242
17243 else
17244 $as_echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17248 $as_echo "no" >&6; }
17249
17250
17251
17252 fi
17253 rm -Rf build
17254
17255
17256
17257
17258
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
17260 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
17261
17262
17263 cat confdefs.h - <<_ACEOF >conftest.c
17264
17265
17266 #if !defined(CONFIG_ZLIB_INFLATE) && \
17267 !defined(CONFIG_ZLIB_INFLATE_MODULE)
17268 #error CONFIG_ZLIB_INFLATE not defined
17269 #endif
17270
17271 int
17272 main (void)
17273 {
17274
17275 ;
17276 return 0;
17277 }
17278
17279 _ACEOF
17280
17281
17282 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17283 echo "obj-m := conftest.o" >build/Makefile
17284 modpost_flag=''
17285 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17286 if { 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'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17296 test $ac_status = 0; }; }; then :
17297
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17299 $as_echo "yes" >&6; }
17300
17301 else
17302 $as_echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17304
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17306 $as_echo "no" >&6; }
17307 as_fn_error $? "
17308 *** This kernel does not include the required zlib inflate support.
17309 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
17310
17311
17312
17313 fi
17314 rm -Rf build
17315
17316
17317
17318
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
17320 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
17321
17322
17323 cat confdefs.h - <<_ACEOF >conftest.c
17324
17325
17326 #if !defined(CONFIG_ZLIB_DEFLATE) && \
17327 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
17328 #error CONFIG_ZLIB_DEFLATE not defined
17329 #endif
17330
17331 int
17332 main (void)
17333 {
17334
17335 ;
17336 return 0;
17337 }
17338
17339 _ACEOF
17340
17341
17342 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17343 echo "obj-m := conftest.o" >build/Makefile
17344 modpost_flag=''
17345 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17346 if { 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'
17347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17348 (eval $ac_try) 2>&5
17349 ac_status=$?
17350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17351 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17353 (eval $ac_try) 2>&5
17354 ac_status=$?
17355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17356 test $ac_status = 0; }; }; then :
17357
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17359 $as_echo "yes" >&6; }
17360
17361 else
17362 $as_echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17364
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17366 $as_echo "no" >&6; }
17367 as_fn_error $? "
17368 *** This kernel does not include the required zlib deflate support.
17369 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
17370
17371
17372
17373 fi
17374 rm -Rf build
17375
17376
17377
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
17379 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
17380
17381
17382 cat confdefs.h - <<_ACEOF >conftest.c
17383
17384
17385 #include <linux/zlib.h>
17386
17387 int
17388 main (void)
17389 {
17390
17391 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
17392
17393 ;
17394 return 0;
17395 }
17396
17397 _ACEOF
17398
17399
17400 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17401 echo "obj-m := conftest.o" >build/Makefile
17402 modpost_flag=''
17403 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17404 if { 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'
17405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17409 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17414 test $ac_status = 0; }; }; then :
17415
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17417 $as_echo "yes" >&6; }
17418
17419 $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
17420
17421
17422 else
17423 $as_echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17425
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17427 $as_echo "no" >&6; }
17428
17429
17430
17431 fi
17432 rm -Rf build
17433
17434
17435
17436
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
17438 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
17439
17440
17441 cat confdefs.h - <<_ACEOF >conftest.c
17442
17443
17444 #include <linux/mm.h>
17445
17446 int
17447 main (void)
17448 {
17449
17450 struct shrink_control sc __attribute__ ((unused));
17451
17452 sc.nr_to_scan = 0;
17453 sc.gfp_mask = GFP_KERNEL;
17454
17455 ;
17456 return 0;
17457 }
17458
17459 _ACEOF
17460
17461
17462 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17463 echo "obj-m := conftest.o" >build/Makefile
17464 modpost_flag=''
17465 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17466 if { 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'
17467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17471 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17476 test $ac_status = 0; }; }; then :
17477
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17479 $as_echo "yes" >&6; }
17480
17481 $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
17482
17483
17484 else
17485 $as_echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17487
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17489 $as_echo "no" >&6; }
17490
17491
17492
17493 fi
17494 rm -Rf build
17495
17496
17497
17498
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
17500 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
17501 tmp_flags="$EXTRA_KCFLAGS"
17502 EXTRA_KCFLAGS="-Werror"
17503
17504
17505 cat confdefs.h - <<_ACEOF >conftest.c
17506
17507
17508 #include <linux/rwsem.h>
17509
17510 int
17511 main (void)
17512 {
17513
17514 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17515 raw_spinlock_t dummy_lock __attribute__ ((unused));
17516 dummy_semaphore.wait_lock = dummy_lock;
17517
17518 ;
17519 return 0;
17520 }
17521
17522 _ACEOF
17523
17524
17525 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17526 echo "obj-m := conftest.o" >build/Makefile
17527 modpost_flag=''
17528 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17529 if { 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'
17530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17531 (eval $ac_try) 2>&5
17532 ac_status=$?
17533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17534 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17539 test $ac_status = 0; }; }; then :
17540
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17542 $as_echo "yes" >&6; }
17543
17544 $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
17545
17546
17547 else
17548 $as_echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17550
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17552 $as_echo "no" >&6; }
17553
17554
17555
17556 fi
17557 rm -Rf build
17558
17559
17560 EXTRA_KCFLAGS="$tmp_flags"
17561
17562
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5
17564 $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
17565 tmp_flags="$EXTRA_KCFLAGS"
17566 EXTRA_KCFLAGS="-Werror"
17567
17568
17569 cat confdefs.h - <<_ACEOF >conftest.c
17570
17571
17572 #include <linux/rwsem.h>
17573
17574 int
17575 main (void)
17576 {
17577
17578 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17579 dummy_semaphore.activity = 0;
17580
17581 ;
17582 return 0;
17583 }
17584
17585 _ACEOF
17586
17587
17588 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17589 echo "obj-m := conftest.o" >build/Makefile
17590 modpost_flag=''
17591 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17592 if { 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'
17593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17597 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17602 test $ac_status = 0; }; }; then :
17603
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17605 $as_echo "yes" >&6; }
17606
17607 $as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h
17608
17609
17610 else
17611 $as_echo "$as_me: failed program was:" >&5
17612 sed 's/^/| /' conftest.$ac_ext >&5
17613
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17615 $as_echo "no" >&6; }
17616
17617
17618
17619 fi
17620 rm -Rf build
17621
17622
17623 EXTRA_KCFLAGS="$tmp_flags"
17624
17625
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5
17627 $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
17628 tmp_flags="$EXTRA_KCFLAGS"
17629 EXTRA_KCFLAGS="-Werror"
17630
17631
17632 cat confdefs.h - <<_ACEOF >conftest.c
17633
17634
17635 #include <linux/rwsem.h>
17636
17637 int
17638 main (void)
17639 {
17640
17641 DECLARE_RWSEM(dummy_semaphore);
17642 (void) atomic_long_read(&dummy_semaphore.count);
17643
17644 ;
17645 return 0;
17646 }
17647
17648 _ACEOF
17649
17650
17651 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17652 echo "obj-m := conftest.o" >build/Makefile
17653 modpost_flag=''
17654 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17655 if { 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'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17665 test $ac_status = 0; }; }; then :
17666
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17668 $as_echo "yes" >&6; }
17669
17670 $as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h
17671
17672
17673 else
17674 $as_echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17676
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17678 $as_echo "no" >&6; }
17679
17680
17681
17682 fi
17683 rm -Rf build
17684
17685
17686 EXTRA_KCFLAGS="$tmp_flags"
17687
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
17689 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
17690
17691
17692 cat confdefs.h - <<_ACEOF >conftest.c
17693
17694
17695 #include <linux/sched.h>
17696 #include <linux/sched/rt.h>
17697
17698 int
17699 main (void)
17700 {
17701
17702 return 0;
17703
17704 ;
17705 return 0;
17706 }
17707
17708 _ACEOF
17709
17710
17711 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17712 echo "obj-m := conftest.o" >build/Makefile
17713 modpost_flag=''
17714 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17715 if { 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'
17716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17720 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17725 test $ac_status = 0; }; }; then :
17726
17727
17728 $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
17729
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17731 $as_echo "yes" >&6; }
17732
17733 else
17734 $as_echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17736
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17738 $as_echo "no" >&6; }
17739
17740
17741
17742 fi
17743 rm -Rf build
17744
17745
17746
17747
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants" >&5
17749 $as_echo_n "checking whether vfs_getattr() wants... " >&6; }
17750
17751
17752 cat confdefs.h - <<_ACEOF >conftest.c
17753
17754
17755 #include <linux/fs.h>
17756
17757 int
17758 main (void)
17759 {
17760
17761 vfs_getattr((struct path *) NULL,
17762 (struct kstat *)NULL);
17763
17764 ;
17765 return 0;
17766 }
17767
17768 _ACEOF
17769
17770
17771 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17772 echo "obj-m := conftest.o" >build/Makefile
17773 modpost_flag=''
17774 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17775 if { 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'
17776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17777 (eval $ac_try) 2>&5
17778 ac_status=$?
17779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17780 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17785 test $ac_status = 0; }; }; then :
17786
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2 args" >&5
17788 $as_echo "2 args" >&6; }
17789
17790 $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
17791
17792
17793 else
17794 $as_echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17796
17797
17798
17799 cat confdefs.h - <<_ACEOF >conftest.c
17800
17801
17802 #include <linux/fs.h>
17803
17804 int
17805 main (void)
17806 {
17807
17808 vfs_getattr((struct vfsmount *)NULL,
17809 (struct dentry *)NULL,
17810 (struct kstat *)NULL);
17811
17812 ;
17813 return 0;
17814 }
17815
17816 _ACEOF
17817
17818
17819 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17820 echo "obj-m := conftest.o" >build/Makefile
17821 modpost_flag=''
17822 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17823 if { 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'
17824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17828 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17830 (eval $ac_try) 2>&5
17831 ac_status=$?
17832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17833 test $ac_status = 0; }; }; then :
17834
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3 args" >&5
17836 $as_echo "3 args" >&6; }
17837
17838 else
17839 $as_echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17841
17842 as_fn_error $? "unknown" "$LINENO" 5
17843
17844
17845
17846 fi
17847 rm -Rf build
17848
17849
17850
17851
17852
17853 fi
17854 rm -Rf build
17855
17856
17857
17858
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5
17860 $as_echo_n "checking whether usleep_range() is available... " >&6; }
17861
17862
17863 cat confdefs.h - <<_ACEOF >conftest.c
17864
17865
17866 #include <linux/delay.h>
17867
17868 int
17869 main (void)
17870 {
17871
17872 usleep_range(0, 0);
17873
17874 ;
17875 return 0;
17876 }
17877
17878 _ACEOF
17879
17880
17881 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17882 echo "obj-m := conftest.o" >build/Makefile
17883 modpost_flag=''
17884 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17885 if { 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'
17886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17887 (eval $ac_try) 2>&5
17888 ac_status=$?
17889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17890 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17895 test $ac_status = 0; }; }; then :
17896
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17898 $as_echo "yes" >&6; }
17899
17900 $as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h
17901
17902
17903 else
17904 $as_echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17908 $as_echo "no" >&6; }
17909
17910
17911
17912 fi
17913 rm -Rf build
17914
17915
17916
17917
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5
17919 $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
17920
17921
17922 cat confdefs.h - <<_ACEOF >conftest.c
17923
17924
17925 #include <linux/slab.h>
17926
17927 int
17928 main (void)
17929 {
17930
17931 struct kmem_cache cachep __attribute__ ((unused));
17932 cachep.allocflags = GFP_KERNEL;
17933
17934 ;
17935 return 0;
17936 }
17937
17938 _ACEOF
17939
17940
17941 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17942 echo "obj-m := conftest.o" >build/Makefile
17943 modpost_flag=''
17944 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17945 if { 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'
17946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17950 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17952 (eval $ac_try) 2>&5
17953 ac_status=$?
17954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17955 test $ac_status = 0; }; }; then :
17956
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17958 $as_echo "yes" >&6; }
17959
17960 $as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h
17961
17962
17963 else
17964 $as_echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17966
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17968 $as_echo "no" >&6; }
17969
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5
17971 $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
17972
17973
17974 cat confdefs.h - <<_ACEOF >conftest.c
17975
17976
17977 #include <linux/slab.h>
17978
17979 int
17980 main (void)
17981 {
17982
17983 struct kmem_cache cachep __attribute__ ((unused));
17984 cachep.gfpflags = GFP_KERNEL;
17985
17986 ;
17987 return 0;
17988 }
17989
17990 _ACEOF
17991
17992
17993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17994 echo "obj-m := conftest.o" >build/Makefile
17995 modpost_flag=''
17996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17997 if { 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'
17998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17999 (eval $ac_try) 2>&5
18000 ac_status=$?
18001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18002 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18007 test $ac_status = 0; }; }; then :
18008
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18010 $as_echo "yes" >&6; }
18011
18012 $as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h
18013
18014
18015 else
18016 $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18020 $as_echo "no" >&6; }
18021
18022
18023
18024 fi
18025 rm -Rf build
18026
18027
18028
18029
18030
18031 fi
18032 rm -Rf build
18033
18034
18035
18036
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5
18038 $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
18039
18040
18041 cat confdefs.h - <<_ACEOF >conftest.c
18042
18043
18044 #include <linux/wait.h>
18045
18046 int
18047 main (void)
18048 {
18049
18050 int (*action)(void *) = NULL;
18051 wait_on_bit(NULL, 0, action, 0);
18052
18053 ;
18054 return 0;
18055 }
18056
18057 _ACEOF
18058
18059
18060 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18061 echo "obj-m := conftest.o" >build/Makefile
18062 modpost_flag=''
18063 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18064 if { 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'
18065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18069 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18074 test $ac_status = 0; }; }; then :
18075
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18077 $as_echo "yes" >&6; }
18078
18079 $as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h
18080
18081
18082 else
18083 $as_echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18085
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18087 $as_echo "no" >&6; }
18088
18089
18090
18091 fi
18092 rm -Rf build
18093
18094
18095
18096
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5
18098 $as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
18099 tmp_flags="$EXTRA_KCFLAGS"
18100 EXTRA_KCFLAGS="-Werror"
18101
18102
18103 cat confdefs.h - <<_ACEOF >conftest.c
18104
18105
18106 #include <linux/fs.h>
18107
18108 int
18109 main (void)
18110 {
18111
18112 struct inode *inode = NULL;
18113 inode_lock_shared(inode);
18114
18115 ;
18116 return 0;
18117 }
18118
18119 _ACEOF
18120
18121
18122 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18123 echo "obj-m := conftest.o" >build/Makefile
18124 modpost_flag=''
18125 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18126 if { 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'
18127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18128 (eval $ac_try) 2>&5
18129 ac_status=$?
18130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18131 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18136 test $ac_status = 0; }; }; then :
18137
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18139 $as_echo "yes" >&6; }
18140
18141 $as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h
18142
18143
18144 else
18145 $as_echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18147
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18149 $as_echo "no" >&6; }
18150
18151
18152
18153 fi
18154 rm -Rf build
18155
18156
18157 EXTRA_KCFLAGS="$tmp_flags"
18158
18159
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex has owner" >&5
18161 $as_echo_n "checking whether mutex has owner... " >&6; }
18162 tmp_flags="$EXTRA_KCFLAGS"
18163 EXTRA_KCFLAGS="-Werror"
18164
18165
18166 cat confdefs.h - <<_ACEOF >conftest.c
18167
18168
18169 #include <linux/mutex.h>
18170 #include <linux/spinlock.h>
18171
18172 int
18173 main (void)
18174 {
18175
18176 DEFINE_MUTEX(m);
18177 struct task_struct *t __attribute__ ((unused));
18178 t = m.owner;
18179
18180 ;
18181 return 0;
18182 }
18183
18184 _ACEOF
18185
18186
18187 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18188 echo "obj-m := conftest.o" >build/Makefile
18189 modpost_flag=''
18190 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18191 if { 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'
18192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18193 (eval $ac_try) 2>&5
18194 ac_status=$?
18195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18196 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18198 (eval $ac_try) 2>&5
18199 ac_status=$?
18200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18201 test $ac_status = 0; }; }; then :
18202
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18204 $as_echo "yes" >&6; }
18205
18206 $as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
18207
18208
18209 else
18210 $as_echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18212
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18214 $as_echo "no" >&6; }
18215
18216
18217
18218 fi
18219 rm -Rf build
18220
18221
18222 EXTRA_KCFLAGS="$tmp_flags"
18223
18224
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether group_info->gid exists" >&5
18226 $as_echo_n "checking whether group_info->gid exists... " >&6; }
18227 tmp_flags="$EXTRA_KCFLAGS"
18228 EXTRA_KCFLAGS="-Werror"
18229
18230
18231 cat confdefs.h - <<_ACEOF >conftest.c
18232
18233
18234 #include <linux/cred.h>
18235
18236 int
18237 main (void)
18238 {
18239
18240 struct group_info *gi = groups_alloc(1);
18241 gi->gid[0] = KGIDT_INIT(0);
18242
18243 ;
18244 return 0;
18245 }
18246
18247 _ACEOF
18248
18249
18250 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18251 echo "obj-m := conftest.o" >build/Makefile
18252 modpost_flag=''
18253 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18254 if { 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'
18255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18256 (eval $ac_try) 2>&5
18257 ac_status=$?
18258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18259 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18261 (eval $ac_try) 2>&5
18262 ac_status=$?
18263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18264 test $ac_status = 0; }; }; then :
18265
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18267 $as_echo "yes" >&6; }
18268
18269 $as_echo "#define HAVE_GROUP_INFO_GID 1" >>confdefs.h
18270
18271
18272 else
18273 $as_echo "$as_me: failed program was:" >&5
18274 sed 's/^/| /' conftest.$ac_ext >&5
18275
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18277 $as_echo "no" >&6; }
18278
18279
18280
18281 fi
18282 rm -Rf build
18283
18284
18285 EXTRA_KCFLAGS="$tmp_flags"
18286
18287
18288 ;;
18289 srpm) ;;
18290 *)
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
18292 $as_echo "Error!" >&6; }
18293 as_fn_error $? "Bad value \"$SPL_CONFIG\" for --with-config,
18294 user kernel|user|all|srpm" "$LINENO" 5 ;;
18295 esac
18296
18297 if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then
18298 CONFIG_USER_TRUE=
18299 CONFIG_USER_FALSE='#'
18300 else
18301 CONFIG_USER_TRUE='#'
18302 CONFIG_USER_FALSE=
18303 fi
18304
18305 if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all &&
18306 test "x$enable_linux_builtin" != xyes ; then
18307 CONFIG_KERNEL_TRUE=
18308 CONFIG_KERNEL_FALSE='#'
18309 else
18310 CONFIG_KERNEL_TRUE='#'
18311 CONFIG_KERNEL_FALSE=
18312 fi
18313
18314
18315
18316 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"
18317
18318
18319 cat >confcache <<\_ACEOF
18320 # This file is a shell script that caches the results of configure
18321 # tests run on this system so they can be shared between configure
18322 # scripts and configure runs, see configure's option --config-cache.
18323 # It is not useful on other systems. If it contains results you don't
18324 # want to keep, you may remove or edit it.
18325 #
18326 # config.status only pays attention to the cache file if you give it
18327 # the --recheck option to rerun configure.
18328 #
18329 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18330 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18331 # following values.
18332
18333 _ACEOF
18334
18335 # The following way of writing the cache mishandles newlines in values,
18336 # but we know of no workaround that is simple, portable, and efficient.
18337 # So, we kill variables containing newlines.
18338 # Ultrix sh set writes to stderr and can't be redirected directly,
18339 # and sets the high bit in the cache file unless we assign to the vars.
18340 (
18341 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18342 eval ac_val=\$$ac_var
18343 case $ac_val in #(
18344 *${as_nl}*)
18345 case $ac_var in #(
18346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18348 esac
18349 case $ac_var in #(
18350 _ | IFS | as_nl) ;; #(
18351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18352 *) { eval $ac_var=; unset $ac_var;} ;;
18353 esac ;;
18354 esac
18355 done
18356
18357 (set) 2>&1 |
18358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18359 *${as_nl}ac_space=\ *)
18360 # `set' does not quote correctly, so add quotes: double-quote
18361 # substitution turns \\\\ into \\, and sed turns \\ into \.
18362 sed -n \
18363 "s/'/'\\\\''/g;
18364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18365 ;; #(
18366 *)
18367 # `set' quotes correctly as required by POSIX, so do not add quotes.
18368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18369 ;;
18370 esac |
18371 sort
18372 ) |
18373 sed '
18374 /^ac_cv_env_/b end
18375 t clear
18376 :clear
18377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18378 t end
18379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18380 :end' >>confcache
18381 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18382 if test -w "$cache_file"; then
18383 if test "x$cache_file" != "x/dev/null"; then
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18385 $as_echo "$as_me: updating cache $cache_file" >&6;}
18386 if test ! -f "$cache_file" || test -h "$cache_file"; then
18387 cat confcache >"$cache_file"
18388 else
18389 case $cache_file in #(
18390 */* | ?:*)
18391 mv -f confcache "$cache_file"$$ &&
18392 mv -f "$cache_file"$$ "$cache_file" ;; #(
18393 *)
18394 mv -f confcache "$cache_file" ;;
18395 esac
18396 fi
18397 fi
18398 else
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18400 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18401 fi
18402 fi
18403 rm -f confcache
18404
18405 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18406 # Let make expand exec_prefix.
18407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18408
18409 DEFS=-DHAVE_CONFIG_H
18410
18411 ac_libobjs=
18412 ac_ltlibobjs=
18413 U=
18414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18415 # 1. Remove the extension, and $U if already installed.
18416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18417 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18419 # will be set to the directory where LIBOBJS objects are built.
18420 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18421 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18422 done
18423 LIBOBJS=$ac_libobjs
18424
18425 LTLIBOBJS=$ac_ltlibobjs
18426
18427
18428 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18429 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18431 fi
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18433 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18434 if test -n "$am_sleep_pid"; then
18435 # Hide warnings about reused PIDs.
18436 wait $am_sleep_pid 2>/dev/null
18437 fi
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18439 $as_echo "done" >&6; }
18440 if test -n "$EXEEXT"; then
18441 am__EXEEXT_TRUE=
18442 am__EXEEXT_FALSE='#'
18443 else
18444 am__EXEEXT_TRUE='#'
18445 am__EXEEXT_FALSE=
18446 fi
18447
18448 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18449 as_fn_error $? "conditional \"AMDEP\" was never defined.
18450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18451 fi
18452 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18453 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18455 fi
18456 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18457 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
18458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18459 fi
18460 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18461 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
18462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18463 fi
18464
18465 : "${CONFIG_STATUS=./config.status}"
18466 ac_write_fail=0
18467 ac_clean_files_save=$ac_clean_files
18468 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18470 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18471 as_write_fail=0
18472 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18473 #! $SHELL
18474 # Generated by $as_me.
18475 # Run this file to recreate the current configuration.
18476 # Compiler output produced by configure, useful for debugging
18477 # configure, is in config.log if it exists.
18478
18479 debug=false
18480 ac_cs_recheck=false
18481 ac_cs_silent=false
18482
18483 SHELL=\${CONFIG_SHELL-$SHELL}
18484 export SHELL
18485 _ASEOF
18486 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18487 ## -------------------- ##
18488 ## M4sh Initialization. ##
18489 ## -------------------- ##
18490
18491 # Be more Bourne compatible
18492 DUALCASE=1; export DUALCASE # for MKS sh
18493 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18494 emulate sh
18495 NULLCMD=:
18496 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18497 # is contrary to our usage. Disable this feature.
18498 alias -g '${1+"$@"}'='"$@"'
18499 setopt NO_GLOB_SUBST
18500 else
18501 case `(set -o) 2>/dev/null` in #(
18502 *posix*) :
18503 set -o posix ;; #(
18504 *) :
18505 ;;
18506 esac
18507 fi
18508
18509
18510 as_nl='
18511 '
18512 export as_nl
18513 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18514 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18515 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18516 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18517 # Prefer a ksh shell builtin over an external printf program on Solaris,
18518 # but without wasting forks for bash or zsh.
18519 if test -z "$BASH_VERSION$ZSH_VERSION" \
18520 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18521 as_echo='print -r --'
18522 as_echo_n='print -rn --'
18523 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18524 as_echo='printf %s\n'
18525 as_echo_n='printf %s'
18526 else
18527 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18528 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18529 as_echo_n='/usr/ucb/echo -n'
18530 else
18531 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18532 as_echo_n_body='eval
18533 arg=$1;
18534 case $arg in #(
18535 *"$as_nl"*)
18536 expr "X$arg" : "X\\(.*\\)$as_nl";
18537 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18538 esac;
18539 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18540 '
18541 export as_echo_n_body
18542 as_echo_n='sh -c $as_echo_n_body as_echo'
18543 fi
18544 export as_echo_body
18545 as_echo='sh -c $as_echo_body as_echo'
18546 fi
18547
18548 # The user is always right.
18549 if test "${PATH_SEPARATOR+set}" != set; then
18550 PATH_SEPARATOR=:
18551 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18552 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18553 PATH_SEPARATOR=';'
18554 }
18555 fi
18556
18557
18558 # IFS
18559 # We need space, tab and new line, in precisely that order. Quoting is
18560 # there to prevent editors from complaining about space-tab.
18561 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18562 # splitting by setting IFS to empty value.)
18563 IFS=" "" $as_nl"
18564
18565 # Find who we are. Look in the path if we contain no directory separator.
18566 as_myself=
18567 case $0 in #((
18568 *[\\/]* ) as_myself=$0 ;;
18569 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18570 for as_dir in $PATH
18571 do
18572 IFS=$as_save_IFS
18573 test -z "$as_dir" && as_dir=.
18574 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18575 done
18576 IFS=$as_save_IFS
18577
18578 ;;
18579 esac
18580 # We did not find ourselves, most probably we were run as `sh COMMAND'
18581 # in which case we are not to be found in the path.
18582 if test "x$as_myself" = x; then
18583 as_myself=$0
18584 fi
18585 if test ! -f "$as_myself"; then
18586 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18587 exit 1
18588 fi
18589
18590 # Unset variables that we do not need and which cause bugs (e.g. in
18591 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18592 # suppresses any "Segmentation fault" message there. '((' could
18593 # trigger a bug in pdksh 5.2.14.
18594 for as_var in BASH_ENV ENV MAIL MAILPATH
18595 do eval test x\${$as_var+set} = xset \
18596 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18597 done
18598 PS1='$ '
18599 PS2='> '
18600 PS4='+ '
18601
18602 # NLS nuisances.
18603 LC_ALL=C
18604 export LC_ALL
18605 LANGUAGE=C
18606 export LANGUAGE
18607
18608 # CDPATH.
18609 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18610
18611
18612 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18613 # ----------------------------------------
18614 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18615 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18616 # script with STATUS, using 1 if that was 0.
18617 as_fn_error ()
18618 {
18619 as_status=$1; test $as_status -eq 0 && as_status=1
18620 if test "$4"; then
18621 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18622 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18623 fi
18624 $as_echo "$as_me: error: $2" >&2
18625 as_fn_exit $as_status
18626 } # as_fn_error
18627
18628
18629 # as_fn_set_status STATUS
18630 # -----------------------
18631 # Set $? to STATUS, without forking.
18632 as_fn_set_status ()
18633 {
18634 return $1
18635 } # as_fn_set_status
18636
18637 # as_fn_exit STATUS
18638 # -----------------
18639 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18640 as_fn_exit ()
18641 {
18642 set +e
18643 as_fn_set_status $1
18644 exit $1
18645 } # as_fn_exit
18646
18647 # as_fn_unset VAR
18648 # ---------------
18649 # Portably unset VAR.
18650 as_fn_unset ()
18651 {
18652 { eval $1=; unset $1;}
18653 }
18654 as_unset=as_fn_unset
18655 # as_fn_append VAR VALUE
18656 # ----------------------
18657 # Append the text in VALUE to the end of the definition contained in VAR. Take
18658 # advantage of any shell optimizations that allow amortized linear growth over
18659 # repeated appends, instead of the typical quadratic growth present in naive
18660 # implementations.
18661 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18662 eval 'as_fn_append ()
18663 {
18664 eval $1+=\$2
18665 }'
18666 else
18667 as_fn_append ()
18668 {
18669 eval $1=\$$1\$2
18670 }
18671 fi # as_fn_append
18672
18673 # as_fn_arith ARG...
18674 # ------------------
18675 # Perform arithmetic evaluation on the ARGs, and store the result in the
18676 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18677 # must be portable across $(()) and expr.
18678 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18679 eval 'as_fn_arith ()
18680 {
18681 as_val=$(( $* ))
18682 }'
18683 else
18684 as_fn_arith ()
18685 {
18686 as_val=`expr "$@" || test $? -eq 1`
18687 }
18688 fi # as_fn_arith
18689
18690
18691 if expr a : '\(a\)' >/dev/null 2>&1 &&
18692 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18693 as_expr=expr
18694 else
18695 as_expr=false
18696 fi
18697
18698 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18699 as_basename=basename
18700 else
18701 as_basename=false
18702 fi
18703
18704 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18705 as_dirname=dirname
18706 else
18707 as_dirname=false
18708 fi
18709
18710 as_me=`$as_basename -- "$0" ||
18711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18712 X"$0" : 'X\(//\)$' \| \
18713 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18714 $as_echo X/"$0" |
18715 sed '/^.*\/\([^/][^/]*\)\/*$/{
18716 s//\1/
18717 q
18718 }
18719 /^X\/\(\/\/\)$/{
18720 s//\1/
18721 q
18722 }
18723 /^X\/\(\/\).*/{
18724 s//\1/
18725 q
18726 }
18727 s/.*/./; q'`
18728
18729 # Avoid depending upon Character Ranges.
18730 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18731 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18732 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18733 as_cr_digits='0123456789'
18734 as_cr_alnum=$as_cr_Letters$as_cr_digits
18735
18736 ECHO_C= ECHO_N= ECHO_T=
18737 case `echo -n x` in #(((((
18738 -n*)
18739 case `echo 'xy\c'` in
18740 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18741 xy) ECHO_C='\c';;
18742 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18743 ECHO_T=' ';;
18744 esac;;
18745 *)
18746 ECHO_N='-n';;
18747 esac
18748
18749 rm -f conf$$ conf$$.exe conf$$.file
18750 if test -d conf$$.dir; then
18751 rm -f conf$$.dir/conf$$.file
18752 else
18753 rm -f conf$$.dir
18754 mkdir conf$$.dir 2>/dev/null
18755 fi
18756 if (echo >conf$$.file) 2>/dev/null; then
18757 if ln -s conf$$.file conf$$ 2>/dev/null; then
18758 as_ln_s='ln -s'
18759 # ... but there are two gotchas:
18760 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18761 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18762 # In both cases, we have to default to `cp -pR'.
18763 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18764 as_ln_s='cp -pR'
18765 elif ln conf$$.file conf$$ 2>/dev/null; then
18766 as_ln_s=ln
18767 else
18768 as_ln_s='cp -pR'
18769 fi
18770 else
18771 as_ln_s='cp -pR'
18772 fi
18773 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18774 rmdir conf$$.dir 2>/dev/null
18775
18776
18777 # as_fn_mkdir_p
18778 # -------------
18779 # Create "$as_dir" as a directory, including parents if necessary.
18780 as_fn_mkdir_p ()
18781 {
18782
18783 case $as_dir in #(
18784 -*) as_dir=./$as_dir;;
18785 esac
18786 test -d "$as_dir" || eval $as_mkdir_p || {
18787 as_dirs=
18788 while :; do
18789 case $as_dir in #(
18790 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18791 *) as_qdir=$as_dir;;
18792 esac
18793 as_dirs="'$as_qdir' $as_dirs"
18794 as_dir=`$as_dirname -- "$as_dir" ||
18795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18796 X"$as_dir" : 'X\(//\)[^/]' \| \
18797 X"$as_dir" : 'X\(//\)$' \| \
18798 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18799 $as_echo X"$as_dir" |
18800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18801 s//\1/
18802 q
18803 }
18804 /^X\(\/\/\)[^/].*/{
18805 s//\1/
18806 q
18807 }
18808 /^X\(\/\/\)$/{
18809 s//\1/
18810 q
18811 }
18812 /^X\(\/\).*/{
18813 s//\1/
18814 q
18815 }
18816 s/.*/./; q'`
18817 test -d "$as_dir" && break
18818 done
18819 test -z "$as_dirs" || eval "mkdir $as_dirs"
18820 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18821
18822
18823 } # as_fn_mkdir_p
18824 if mkdir -p . 2>/dev/null; then
18825 as_mkdir_p='mkdir -p "$as_dir"'
18826 else
18827 test -d ./-p && rmdir ./-p
18828 as_mkdir_p=false
18829 fi
18830
18831
18832 # as_fn_executable_p FILE
18833 # -----------------------
18834 # Test if FILE is an executable regular file.
18835 as_fn_executable_p ()
18836 {
18837 test -f "$1" && test -x "$1"
18838 } # as_fn_executable_p
18839 as_test_x='test -x'
18840 as_executable_p=as_fn_executable_p
18841
18842 # Sed expression to map a string onto a valid CPP name.
18843 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18844
18845 # Sed expression to map a string onto a valid variable name.
18846 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18847
18848
18849 exec 6>&1
18850 ## ----------------------------------- ##
18851 ## Main body of $CONFIG_STATUS script. ##
18852 ## ----------------------------------- ##
18853 _ASEOF
18854 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18855
18856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18857 # Save the log message, to keep $0 and so on meaningful, and to
18858 # report actual input values of CONFIG_FILES etc. instead of their
18859 # values after options handling.
18860 ac_log="
18861 This file was extended by spl $as_me 0.6.5.9, which was
18862 generated by GNU Autoconf 2.69. Invocation command line was
18863
18864 CONFIG_FILES = $CONFIG_FILES
18865 CONFIG_HEADERS = $CONFIG_HEADERS
18866 CONFIG_LINKS = $CONFIG_LINKS
18867 CONFIG_COMMANDS = $CONFIG_COMMANDS
18868 $ $0 $@
18869
18870 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18871 "
18872
18873 _ACEOF
18874
18875 case $ac_config_files in *"
18876 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18877 esac
18878
18879 case $ac_config_headers in *"
18880 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18881 esac
18882
18883
18884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18885 # Files that config.status was made for.
18886 config_files="$ac_config_files"
18887 config_headers="$ac_config_headers"
18888 config_commands="$ac_config_commands"
18889
18890 _ACEOF
18891
18892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18893 ac_cs_usage="\
18894 \`$as_me' instantiates files and other configuration actions
18895 from templates according to the current configuration. Unless the files
18896 and actions are specified as TAGs, all are instantiated by default.
18897
18898 Usage: $0 [OPTION]... [TAG]...
18899
18900 -h, --help print this help, then exit
18901 -V, --version print version number and configuration settings, then exit
18902 --config print configuration, then exit
18903 -q, --quiet, --silent
18904 do not print progress messages
18905 -d, --debug don't remove temporary files
18906 --recheck update $as_me by reconfiguring in the same conditions
18907 --file=FILE[:TEMPLATE]
18908 instantiate the configuration file FILE
18909 --header=FILE[:TEMPLATE]
18910 instantiate the configuration header FILE
18911
18912 Configuration files:
18913 $config_files
18914
18915 Configuration headers:
18916 $config_headers
18917
18918 Configuration commands:
18919 $config_commands
18920
18921 Report bugs to the package provider."
18922
18923 _ACEOF
18924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18925 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18926 ac_cs_version="\\
18927 spl config.status 0.6.5.9
18928 configured by $0, generated by GNU Autoconf 2.69,
18929 with options \\"\$ac_cs_config\\"
18930
18931 Copyright (C) 2012 Free Software Foundation, Inc.
18932 This config.status script is free software; the Free Software Foundation
18933 gives unlimited permission to copy, distribute and modify it."
18934
18935 ac_pwd='$ac_pwd'
18936 srcdir='$srcdir'
18937 INSTALL='$INSTALL'
18938 MKDIR_P='$MKDIR_P'
18939 AWK='$AWK'
18940 test -n "\$AWK" || AWK=awk
18941 _ACEOF
18942
18943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18944 # The default lists apply if the user does not specify any file.
18945 ac_need_defaults=:
18946 while test $# != 0
18947 do
18948 case $1 in
18949 --*=?*)
18950 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18951 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18952 ac_shift=:
18953 ;;
18954 --*=)
18955 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18956 ac_optarg=
18957 ac_shift=:
18958 ;;
18959 *)
18960 ac_option=$1
18961 ac_optarg=$2
18962 ac_shift=shift
18963 ;;
18964 esac
18965
18966 case $ac_option in
18967 # Handling of the options.
18968 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18969 ac_cs_recheck=: ;;
18970 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18971 $as_echo "$ac_cs_version"; exit ;;
18972 --config | --confi | --conf | --con | --co | --c )
18973 $as_echo "$ac_cs_config"; exit ;;
18974 --debug | --debu | --deb | --de | --d | -d )
18975 debug=: ;;
18976 --file | --fil | --fi | --f )
18977 $ac_shift
18978 case $ac_optarg in
18979 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18980 '') as_fn_error $? "missing file argument" ;;
18981 esac
18982 as_fn_append CONFIG_FILES " '$ac_optarg'"
18983 ac_need_defaults=false;;
18984 --header | --heade | --head | --hea )
18985 $ac_shift
18986 case $ac_optarg in
18987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18988 esac
18989 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18990 ac_need_defaults=false;;
18991 --he | --h)
18992 # Conflict between --help and --header
18993 as_fn_error $? "ambiguous option: \`$1'
18994 Try \`$0 --help' for more information.";;
18995 --help | --hel | -h )
18996 $as_echo "$ac_cs_usage"; exit ;;
18997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18998 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18999 ac_cs_silent=: ;;
19000
19001 # This is an error.
19002 -*) as_fn_error $? "unrecognized option: \`$1'
19003 Try \`$0 --help' for more information." ;;
19004
19005 *) as_fn_append ac_config_targets " $1"
19006 ac_need_defaults=false ;;
19007
19008 esac
19009 shift
19010 done
19011
19012 ac_configure_extra_args=
19013
19014 if $ac_cs_silent; then
19015 exec 6>/dev/null
19016 ac_configure_extra_args="$ac_configure_extra_args --silent"
19017 fi
19018
19019 _ACEOF
19020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19021 if \$ac_cs_recheck; then
19022 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19023 shift
19024 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19025 CONFIG_SHELL='$SHELL'
19026 export CONFIG_SHELL
19027 exec "\$@"
19028 fi
19029
19030 _ACEOF
19031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19032 exec 5>>config.log
19033 {
19034 echo
19035 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19036 ## Running $as_me. ##
19037 _ASBOX
19038 $as_echo "$ac_log"
19039 } >&5
19040
19041 _ACEOF
19042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19043 #
19044 # INIT-COMMANDS
19045 #
19046 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19047
19048
19049 # The HP-UX ksh and POSIX shell print the target directory to stdout
19050 # if CDPATH is set.
19051 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19052
19053 sed_quote_subst='$sed_quote_subst'
19054 double_quote_subst='$double_quote_subst'
19055 delay_variable_subst='$delay_variable_subst'
19056 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19057 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19058 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19059 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19060 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19061 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19062 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19063 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19064 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19065 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19066 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19067 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19068 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19069 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19070 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19071 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19072 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19073 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19074 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19075 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19076 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19077 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19078 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19079 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19080 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19081 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19082 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19083 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19084 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19085 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19086 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19087 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19088 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19089 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19090 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19091 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19092 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19093 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19094 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19095 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19096 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19097 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19098 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19099 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19100 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19101 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19102 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19103 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19104 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19105 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19106 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19107 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19108 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19109 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19110 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19111 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19112 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19113 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19114 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"`'
19115 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19116 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19117 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19118 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19119 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19120 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19121 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19122 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19123 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19124 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19125 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19126 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19127 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19128 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19129 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19130 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19131 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19132 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19133 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19134 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19135 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19136 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19137 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19138 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19139 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19140 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19141 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19142 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19143 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19144 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19145 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19146 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19147 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19148 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19149 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19150 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19151 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19152 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19153 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19154 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19155 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19156 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19157 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19158 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19159 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19160 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19161 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19162 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19163 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19164 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19165 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19166 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19167 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19168 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19169 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19170 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19171 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19172 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19173 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19174 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19175 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19176 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19177 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19178 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19179 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19180 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19181 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19182 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19183 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19184 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19185 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19186 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19187 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19188 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19189 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19190 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19191
19192 LTCC='$LTCC'
19193 LTCFLAGS='$LTCFLAGS'
19194 compiler='$compiler_DEFAULT'
19195
19196 # A function that is used when there is no print builtin or printf.
19197 func_fallback_echo ()
19198 {
19199 eval 'cat <<_LTECHO_EOF
19200 \$1
19201 _LTECHO_EOF'
19202 }
19203
19204 # Quote evaled strings.
19205 for var in SHELL \
19206 ECHO \
19207 PATH_SEPARATOR \
19208 SED \
19209 GREP \
19210 EGREP \
19211 FGREP \
19212 LD \
19213 NM \
19214 LN_S \
19215 lt_SP2NL \
19216 lt_NL2SP \
19217 reload_flag \
19218 OBJDUMP \
19219 deplibs_check_method \
19220 file_magic_cmd \
19221 file_magic_glob \
19222 want_nocaseglob \
19223 DLLTOOL \
19224 sharedlib_from_linklib_cmd \
19225 AR \
19226 AR_FLAGS \
19227 archiver_list_spec \
19228 STRIP \
19229 RANLIB \
19230 CC \
19231 CFLAGS \
19232 compiler \
19233 lt_cv_sys_global_symbol_pipe \
19234 lt_cv_sys_global_symbol_to_cdecl \
19235 lt_cv_sys_global_symbol_to_import \
19236 lt_cv_sys_global_symbol_to_c_name_address \
19237 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19238 lt_cv_nm_interface \
19239 nm_file_list_spec \
19240 lt_cv_truncate_bin \
19241 lt_prog_compiler_no_builtin_flag \
19242 lt_prog_compiler_pic \
19243 lt_prog_compiler_wl \
19244 lt_prog_compiler_static \
19245 lt_cv_prog_compiler_c_o \
19246 need_locks \
19247 MANIFEST_TOOL \
19248 DSYMUTIL \
19249 NMEDIT \
19250 LIPO \
19251 OTOOL \
19252 OTOOL64 \
19253 shrext_cmds \
19254 export_dynamic_flag_spec \
19255 whole_archive_flag_spec \
19256 compiler_needs_object \
19257 with_gnu_ld \
19258 allow_undefined_flag \
19259 no_undefined_flag \
19260 hardcode_libdir_flag_spec \
19261 hardcode_libdir_separator \
19262 exclude_expsyms \
19263 include_expsyms \
19264 file_list_spec \
19265 variables_saved_for_relink \
19266 libname_spec \
19267 library_names_spec \
19268 soname_spec \
19269 install_override_mode \
19270 finish_eval \
19271 old_striplib \
19272 striplib; do
19273 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19274 *[\\\\\\\`\\"\\\$]*)
19275 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19276 ;;
19277 *)
19278 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19279 ;;
19280 esac
19281 done
19282
19283 # Double-quote double-evaled strings.
19284 for var in reload_cmds \
19285 old_postinstall_cmds \
19286 old_postuninstall_cmds \
19287 old_archive_cmds \
19288 extract_expsyms_cmds \
19289 old_archive_from_new_cmds \
19290 old_archive_from_expsyms_cmds \
19291 archive_cmds \
19292 archive_expsym_cmds \
19293 module_cmds \
19294 module_expsym_cmds \
19295 export_symbols_cmds \
19296 prelink_cmds \
19297 postlink_cmds \
19298 postinstall_cmds \
19299 postuninstall_cmds \
19300 finish_cmds \
19301 sys_lib_search_path_spec \
19302 configure_time_dlsearch_path \
19303 configure_time_lt_sys_library_path; do
19304 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19305 *[\\\\\\\`\\"\\\$]*)
19306 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19307 ;;
19308 *)
19309 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19310 ;;
19311 esac
19312 done
19313
19314 ac_aux_dir='$ac_aux_dir'
19315
19316 # See if we are running on zsh, and set the options that allow our
19317 # commands through without removal of \ escapes INIT.
19318 if test -n "\${ZSH_VERSION+set}"; then
19319 setopt NO_GLOB_SUBST
19320 fi
19321
19322
19323 PACKAGE='$PACKAGE'
19324 VERSION='$VERSION'
19325 RM='$RM'
19326 ofile='$ofile'
19327
19328
19329
19330
19331 _ACEOF
19332
19333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19334
19335 # Handling of arguments.
19336 for ac_config_target in $ac_config_targets
19337 do
19338 case $ac_config_target in
19339 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19340 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19341 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19342 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19343 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19344 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
19345 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
19346 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19347 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
19348 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19349 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19350 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19351 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19352 "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;;
19353 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
19354 "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;;
19355 "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;;
19356 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
19357 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
19358 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
19359 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
19360 "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;;
19361 "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;;
19362 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19363 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
19364 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
19365 "rpm/redhat/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl.spec" ;;
19366 "rpm/redhat/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;;
19367 "rpm/redhat/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;;
19368 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
19369 "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;;
19370 "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
19371 "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
19372 "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;;
19373
19374 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19375 esac
19376 done
19377
19378
19379 # If the user did not use the arguments to specify the items to instantiate,
19380 # then the envvar interface is used. Set only those that are not.
19381 # We use the long form for the default assignment because of an extremely
19382 # bizarre bug on SunOS 4.1.3.
19383 if $ac_need_defaults; then
19384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19385 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19386 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19387 fi
19388
19389 # Have a temporary directory for convenience. Make it in the build tree
19390 # simply because there is no reason against having it here, and in addition,
19391 # creating and moving files from /tmp can sometimes cause problems.
19392 # Hook for its removal unless debugging.
19393 # Note that there is a small window in which the directory will not be cleaned:
19394 # after its creation but before its name has been assigned to `$tmp'.
19395 $debug ||
19396 {
19397 tmp= ac_tmp=
19398 trap 'exit_status=$?
19399 : "${ac_tmp:=$tmp}"
19400 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19401 ' 0
19402 trap 'as_fn_exit 1' 1 2 13 15
19403 }
19404 # Create a (secure) tmp directory for tmp files.
19405
19406 {
19407 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19408 test -d "$tmp"
19409 } ||
19410 {
19411 tmp=./conf$$-$RANDOM
19412 (umask 077 && mkdir "$tmp")
19413 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19414 ac_tmp=$tmp
19415
19416 # Set up the scripts for CONFIG_FILES section.
19417 # No need to generate them if there are no CONFIG_FILES.
19418 # This happens for instance with `./config.status config.h'.
19419 if test -n "$CONFIG_FILES"; then
19420
19421
19422 ac_cr=`echo X | tr X '\015'`
19423 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19424 # But we know of no other shell where ac_cr would be empty at this
19425 # point, so we can use a bashism as a fallback.
19426 if test "x$ac_cr" = x; then
19427 eval ac_cr=\$\'\\r\'
19428 fi
19429 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19430 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19431 ac_cs_awk_cr='\\r'
19432 else
19433 ac_cs_awk_cr=$ac_cr
19434 fi
19435
19436 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19437 _ACEOF
19438
19439
19440 {
19441 echo "cat >conf$$subs.awk <<_ACEOF" &&
19442 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19443 echo "_ACEOF"
19444 } >conf$$subs.sh ||
19445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19446 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19447 ac_delim='%!_!# '
19448 for ac_last_try in false false false false false :; do
19449 . ./conf$$subs.sh ||
19450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19451
19452 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19453 if test $ac_delim_n = $ac_delim_num; then
19454 break
19455 elif $ac_last_try; then
19456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19457 else
19458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19459 fi
19460 done
19461 rm -f conf$$subs.sh
19462
19463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19464 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19465 _ACEOF
19466 sed -n '
19467 h
19468 s/^/S["/; s/!.*/"]=/
19469 p
19470 g
19471 s/^[^!]*!//
19472 :repl
19473 t repl
19474 s/'"$ac_delim"'$//
19475 t delim
19476 :nl
19477 h
19478 s/\(.\{148\}\)..*/\1/
19479 t more1
19480 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19481 p
19482 n
19483 b repl
19484 :more1
19485 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19486 p
19487 g
19488 s/.\{148\}//
19489 t nl
19490 :delim
19491 h
19492 s/\(.\{148\}\)..*/\1/
19493 t more2
19494 s/["\\]/\\&/g; s/^/"/; s/$/"/
19495 p
19496 b
19497 :more2
19498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19499 p
19500 g
19501 s/.\{148\}//
19502 t delim
19503 ' <conf$$subs.awk | sed '
19504 /^[^""]/{
19505 N
19506 s/\n//
19507 }
19508 ' >>$CONFIG_STATUS || ac_write_fail=1
19509 rm -f conf$$subs.awk
19510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19511 _ACAWK
19512 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19513 for (key in S) S_is_set[key] = 1
19514 FS = "\a"
19515
19516 }
19517 {
19518 line = $ 0
19519 nfields = split(line, field, "@")
19520 substed = 0
19521 len = length(field[1])
19522 for (i = 2; i < nfields; i++) {
19523 key = field[i]
19524 keylen = length(key)
19525 if (S_is_set[key]) {
19526 value = S[key]
19527 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19528 len += length(value) + length(field[++i])
19529 substed = 1
19530 } else
19531 len += 1 + keylen
19532 }
19533
19534 print line
19535 }
19536
19537 _ACAWK
19538 _ACEOF
19539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19540 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19541 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19542 else
19543 cat
19544 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19545 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19546 _ACEOF
19547
19548 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19549 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19550 # trailing colons and then remove the whole line if VPATH becomes empty
19551 # (actually we leave an empty line to preserve line numbers).
19552 if test "x$srcdir" = x.; then
19553 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19554 h
19555 s///
19556 s/^/:/
19557 s/[ ]*$/:/
19558 s/:\$(srcdir):/:/g
19559 s/:\${srcdir}:/:/g
19560 s/:@srcdir@:/:/g
19561 s/^:*//
19562 s/:*$//
19563 x
19564 s/\(=[ ]*\).*/\1/
19565 G
19566 s/\n//
19567 s/^[^=]*=[ ]*$//
19568 }'
19569 fi
19570
19571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19572 fi # test -n "$CONFIG_FILES"
19573
19574 # Set up the scripts for CONFIG_HEADERS section.
19575 # No need to generate them if there are no CONFIG_HEADERS.
19576 # This happens for instance with `./config.status Makefile'.
19577 if test -n "$CONFIG_HEADERS"; then
19578 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19579 BEGIN {
19580 _ACEOF
19581
19582 # Transform confdefs.h into an awk script `defines.awk', embedded as
19583 # here-document in config.status, that substitutes the proper values into
19584 # config.h.in to produce config.h.
19585
19586 # Create a delimiter string that does not exist in confdefs.h, to ease
19587 # handling of long lines.
19588 ac_delim='%!_!# '
19589 for ac_last_try in false false :; do
19590 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19591 if test -z "$ac_tt"; then
19592 break
19593 elif $ac_last_try; then
19594 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19595 else
19596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19597 fi
19598 done
19599
19600 # For the awk script, D is an array of macro values keyed by name,
19601 # likewise P contains macro parameters if any. Preserve backslash
19602 # newline sequences.
19603
19604 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19605 sed -n '
19606 s/.\{148\}/&'"$ac_delim"'/g
19607 t rset
19608 :rset
19609 s/^[ ]*#[ ]*define[ ][ ]*/ /
19610 t def
19611 d
19612 :def
19613 s/\\$//
19614 t bsnl
19615 s/["\\]/\\&/g
19616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19617 D["\1"]=" \3"/p
19618 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19619 d
19620 :bsnl
19621 s/["\\]/\\&/g
19622 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19623 D["\1"]=" \3\\\\\\n"\\/p
19624 t cont
19625 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19626 t cont
19627 d
19628 :cont
19629 n
19630 s/.\{148\}/&'"$ac_delim"'/g
19631 t clear
19632 :clear
19633 s/\\$//
19634 t bsnlc
19635 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19636 d
19637 :bsnlc
19638 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19639 b cont
19640 ' <confdefs.h | sed '
19641 s/'"$ac_delim"'/"\\\
19642 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19643
19644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19645 for (key in D) D_is_set[key] = 1
19646 FS = "\a"
19647 }
19648 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19649 line = \$ 0
19650 split(line, arg, " ")
19651 if (arg[1] == "#") {
19652 defundef = arg[2]
19653 mac1 = arg[3]
19654 } else {
19655 defundef = substr(arg[1], 2)
19656 mac1 = arg[2]
19657 }
19658 split(mac1, mac2, "(") #)
19659 macro = mac2[1]
19660 prefix = substr(line, 1, index(line, defundef) - 1)
19661 if (D_is_set[macro]) {
19662 # Preserve the white space surrounding the "#".
19663 print prefix "define", macro P[macro] D[macro]
19664 next
19665 } else {
19666 # Replace #undef with comments. This is necessary, for example,
19667 # in the case of _POSIX_SOURCE, which is predefined and required
19668 # on some systems where configure will not decide to define it.
19669 if (defundef == "undef") {
19670 print "/*", prefix defundef, macro, "*/"
19671 next
19672 }
19673 }
19674 }
19675 { print }
19676 _ACAWK
19677 _ACEOF
19678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19679 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19680 fi # test -n "$CONFIG_HEADERS"
19681
19682
19683 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19684 shift
19685 for ac_tag
19686 do
19687 case $ac_tag in
19688 :[FHLC]) ac_mode=$ac_tag; continue;;
19689 esac
19690 case $ac_mode$ac_tag in
19691 :[FHL]*:*);;
19692 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19693 :[FH]-) ac_tag=-:-;;
19694 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19695 esac
19696 ac_save_IFS=$IFS
19697 IFS=:
19698 set x $ac_tag
19699 IFS=$ac_save_IFS
19700 shift
19701 ac_file=$1
19702 shift
19703
19704 case $ac_mode in
19705 :L) ac_source=$1;;
19706 :[FH])
19707 ac_file_inputs=
19708 for ac_f
19709 do
19710 case $ac_f in
19711 -) ac_f="$ac_tmp/stdin";;
19712 *) # Look for the file first in the build tree, then in the source tree
19713 # (if the path is not absolute). The absolute path cannot be DOS-style,
19714 # because $ac_f cannot contain `:'.
19715 test -f "$ac_f" ||
19716 case $ac_f in
19717 [\\/$]*) false;;
19718 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19719 esac ||
19720 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19721 esac
19722 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19723 as_fn_append ac_file_inputs " '$ac_f'"
19724 done
19725
19726 # Let's still pretend it is `configure' which instantiates (i.e., don't
19727 # use $as_me), people would be surprised to read:
19728 # /* config.h. Generated by config.status. */
19729 configure_input='Generated from '`
19730 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19731 `' by configure.'
19732 if test x"$ac_file" != x-; then
19733 configure_input="$ac_file. $configure_input"
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19735 $as_echo "$as_me: creating $ac_file" >&6;}
19736 fi
19737 # Neutralize special characters interpreted by sed in replacement strings.
19738 case $configure_input in #(
19739 *\&* | *\|* | *\\* )
19740 ac_sed_conf_input=`$as_echo "$configure_input" |
19741 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19742 *) ac_sed_conf_input=$configure_input;;
19743 esac
19744
19745 case $ac_tag in
19746 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19748 esac
19749 ;;
19750 esac
19751
19752 ac_dir=`$as_dirname -- "$ac_file" ||
19753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19754 X"$ac_file" : 'X\(//\)[^/]' \| \
19755 X"$ac_file" : 'X\(//\)$' \| \
19756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19757 $as_echo X"$ac_file" |
19758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19759 s//\1/
19760 q
19761 }
19762 /^X\(\/\/\)[^/].*/{
19763 s//\1/
19764 q
19765 }
19766 /^X\(\/\/\)$/{
19767 s//\1/
19768 q
19769 }
19770 /^X\(\/\).*/{
19771 s//\1/
19772 q
19773 }
19774 s/.*/./; q'`
19775 as_dir="$ac_dir"; as_fn_mkdir_p
19776 ac_builddir=.
19777
19778 case "$ac_dir" in
19779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19780 *)
19781 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19782 # A ".." for each directory in $ac_dir_suffix.
19783 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19784 case $ac_top_builddir_sub in
19785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19787 esac ;;
19788 esac
19789 ac_abs_top_builddir=$ac_pwd
19790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19791 # for backward compatibility:
19792 ac_top_builddir=$ac_top_build_prefix
19793
19794 case $srcdir in
19795 .) # We are building in place.
19796 ac_srcdir=.
19797 ac_top_srcdir=$ac_top_builddir_sub
19798 ac_abs_top_srcdir=$ac_pwd ;;
19799 [\\/]* | ?:[\\/]* ) # Absolute name.
19800 ac_srcdir=$srcdir$ac_dir_suffix;
19801 ac_top_srcdir=$srcdir
19802 ac_abs_top_srcdir=$srcdir ;;
19803 *) # Relative name.
19804 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19805 ac_top_srcdir=$ac_top_build_prefix$srcdir
19806 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19807 esac
19808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19809
19810
19811 case $ac_mode in
19812 :F)
19813 #
19814 # CONFIG_FILE
19815 #
19816
19817 case $INSTALL in
19818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19820 esac
19821 ac_MKDIR_P=$MKDIR_P
19822 case $MKDIR_P in
19823 [\\/$]* | ?:[\\/]* ) ;;
19824 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19825 esac
19826 _ACEOF
19827
19828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19829 # If the template does not know about datarootdir, expand it.
19830 # FIXME: This hack should be removed a few years after 2.60.
19831 ac_datarootdir_hack=; ac_datarootdir_seen=
19832 ac_sed_dataroot='
19833 /datarootdir/ {
19834 p
19835 q
19836 }
19837 /@datadir@/p
19838 /@docdir@/p
19839 /@infodir@/p
19840 /@localedir@/p
19841 /@mandir@/p'
19842 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19843 *datarootdir*) ac_datarootdir_seen=yes;;
19844 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19846 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19847 _ACEOF
19848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19849 ac_datarootdir_hack='
19850 s&@datadir@&$datadir&g
19851 s&@docdir@&$docdir&g
19852 s&@infodir@&$infodir&g
19853 s&@localedir@&$localedir&g
19854 s&@mandir@&$mandir&g
19855 s&\\\${datarootdir}&$datarootdir&g' ;;
19856 esac
19857 _ACEOF
19858
19859 # Neutralize VPATH when `$srcdir' = `.'.
19860 # Shell code in configure.ac might set extrasub.
19861 # FIXME: do we really want to maintain this feature?
19862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19863 ac_sed_extra="$ac_vpsub
19864 $extrasub
19865 _ACEOF
19866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19867 :t
19868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19869 s|@configure_input@|$ac_sed_conf_input|;t t
19870 s&@top_builddir@&$ac_top_builddir_sub&;t t
19871 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19872 s&@srcdir@&$ac_srcdir&;t t
19873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19874 s&@top_srcdir@&$ac_top_srcdir&;t t
19875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19876 s&@builddir@&$ac_builddir&;t t
19877 s&@abs_builddir@&$ac_abs_builddir&;t t
19878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19879 s&@INSTALL@&$ac_INSTALL&;t t
19880 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19881 $ac_datarootdir_hack
19882 "
19883 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19884 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19885
19886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19887 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19889 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19891 which seems to be undefined. Please make sure it is defined" >&5
19892 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19893 which seems to be undefined. Please make sure it is defined" >&2;}
19894
19895 rm -f "$ac_tmp/stdin"
19896 case $ac_file in
19897 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19898 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19899 esac \
19900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19901 ;;
19902 :H)
19903 #
19904 # CONFIG_HEADER
19905 #
19906 if test x"$ac_file" != x-; then
19907 {
19908 $as_echo "/* $configure_input */" \
19909 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19910 } >"$ac_tmp/config.h" \
19911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19912 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19914 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19915 else
19916 rm -f "$ac_file"
19917 mv "$ac_tmp/config.h" "$ac_file" \
19918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19919 fi
19920 else
19921 $as_echo "/* $configure_input */" \
19922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19923 || as_fn_error $? "could not create -" "$LINENO" 5
19924 fi
19925 # Compute "$ac_file"'s index in $config_headers.
19926 _am_arg="$ac_file"
19927 _am_stamp_count=1
19928 for _am_header in $config_headers :; do
19929 case $_am_header in
19930 $_am_arg | $_am_arg:* )
19931 break ;;
19932 * )
19933 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19934 esac
19935 done
19936 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19937 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19938 X"$_am_arg" : 'X\(//\)[^/]' \| \
19939 X"$_am_arg" : 'X\(//\)$' \| \
19940 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19941 $as_echo X"$_am_arg" |
19942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19943 s//\1/
19944 q
19945 }
19946 /^X\(\/\/\)[^/].*/{
19947 s//\1/
19948 q
19949 }
19950 /^X\(\/\/\)$/{
19951 s//\1/
19952 q
19953 }
19954 /^X\(\/\).*/{
19955 s//\1/
19956 q
19957 }
19958 s/.*/./; q'`/stamp-h$_am_stamp_count
19959 ;;
19960
19961 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19962 $as_echo "$as_me: executing $ac_file commands" >&6;}
19963 ;;
19964 esac
19965
19966
19967 case $ac_file$ac_mode in
19968 "spl_config.h":H)
19969 (mv spl_config.h spl_config.h.tmp &&
19970 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
19971 rm spl_config.h.tmp) || exit 1 ;;
19972 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19973 # Older Autoconf quotes --file arguments for eval, but not when files
19974 # are listed without --file. Let's play safe and only enable the eval
19975 # if we detect the quoting.
19976 case $CONFIG_FILES in
19977 *\'*) eval set x "$CONFIG_FILES" ;;
19978 *) set x $CONFIG_FILES ;;
19979 esac
19980 shift
19981 for mf
19982 do
19983 # Strip MF so we end up with the name of the file.
19984 mf=`echo "$mf" | sed -e 's/:.*$//'`
19985 # Check whether this is an Automake generated Makefile or not.
19986 # We used to match only the files named 'Makefile.in', but
19987 # some people rename them; so instead we look at the file content.
19988 # Grep'ing the first line is not enough: some people post-process
19989 # each Makefile.in and add a new line on top of each file to say so.
19990 # Grep'ing the whole file is not good either: AIX grep has a line
19991 # limit of 2048, but all sed's we know have understand at least 4000.
19992 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19993 dirpart=`$as_dirname -- "$mf" ||
19994 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19995 X"$mf" : 'X\(//\)[^/]' \| \
19996 X"$mf" : 'X\(//\)$' \| \
19997 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19998 $as_echo X"$mf" |
19999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20000 s//\1/
20001 q
20002 }
20003 /^X\(\/\/\)[^/].*/{
20004 s//\1/
20005 q
20006 }
20007 /^X\(\/\/\)$/{
20008 s//\1/
20009 q
20010 }
20011 /^X\(\/\).*/{
20012 s//\1/
20013 q
20014 }
20015 s/.*/./; q'`
20016 else
20017 continue
20018 fi
20019 # Extract the definition of DEPDIR, am__include, and am__quote
20020 # from the Makefile without running 'make'.
20021 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20022 test -z "$DEPDIR" && continue
20023 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20024 test -z "$am__include" && continue
20025 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20026 # Find all dependency output files, they are included files with
20027 # $(DEPDIR) in their names. We invoke sed twice because it is the
20028 # simplest approach to changing $(DEPDIR) to its actual value in the
20029 # expansion.
20030 for file in `sed -n "
20031 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20032 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20033 # Make sure the directory exists.
20034 test -f "$dirpart/$file" && continue
20035 fdir=`$as_dirname -- "$file" ||
20036 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20037 X"$file" : 'X\(//\)[^/]' \| \
20038 X"$file" : 'X\(//\)$' \| \
20039 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20040 $as_echo X"$file" |
20041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20042 s//\1/
20043 q
20044 }
20045 /^X\(\/\/\)[^/].*/{
20046 s//\1/
20047 q
20048 }
20049 /^X\(\/\/\)$/{
20050 s//\1/
20051 q
20052 }
20053 /^X\(\/\).*/{
20054 s//\1/
20055 q
20056 }
20057 s/.*/./; q'`
20058 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20059 # echo "creating $dirpart/$file"
20060 echo '# dummy' > "$dirpart/$file"
20061 done
20062 done
20063 }
20064 ;;
20065 "libtool":C)
20066
20067 # See if we are running on zsh, and set the options that allow our
20068 # commands through without removal of \ escapes.
20069 if test -n "${ZSH_VERSION+set}"; then
20070 setopt NO_GLOB_SUBST
20071 fi
20072
20073 cfgfile=${ofile}T
20074 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20075 $RM "$cfgfile"
20076
20077 cat <<_LT_EOF >> "$cfgfile"
20078 #! $SHELL
20079 # Generated automatically by $as_me ($PACKAGE) $VERSION
20080 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20081 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20082
20083 # Provide generalized library-building support services.
20084 # Written by Gordon Matzigkeit, 1996
20085
20086 # Copyright (C) 2014 Free Software Foundation, Inc.
20087 # This is free software; see the source for copying conditions. There is NO
20088 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20089
20090 # GNU Libtool is free software; you can redistribute it and/or modify
20091 # it under the terms of the GNU General Public License as published by
20092 # the Free Software Foundation; either version 2 of of the License, or
20093 # (at your option) any later version.
20094 #
20095 # As a special exception to the GNU General Public License, if you
20096 # distribute this file as part of a program or library that is built
20097 # using GNU Libtool, you may include this file under the same
20098 # distribution terms that you use for the rest of that program.
20099 #
20100 # GNU Libtool is distributed in the hope that it will be useful, but
20101 # WITHOUT ANY WARRANTY; without even the implied warranty of
20102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20103 # GNU General Public License for more details.
20104 #
20105 # You should have received a copy of the GNU General Public License
20106 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20107
20108
20109 # The names of the tagged configurations supported by this script.
20110 available_tags=''
20111
20112 # Configured defaults for sys_lib_dlsearch_path munging.
20113 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20114
20115 # ### BEGIN LIBTOOL CONFIG
20116
20117 # Which release of libtool.m4 was used?
20118 macro_version=$macro_version
20119 macro_revision=$macro_revision
20120
20121 # Whether or not to build shared libraries.
20122 build_libtool_libs=$enable_shared
20123
20124 # Whether or not to build static libraries.
20125 build_old_libs=$enable_static
20126
20127 # What type of objects to build.
20128 pic_mode=$pic_mode
20129
20130 # Whether or not to optimize for fast installation.
20131 fast_install=$enable_fast_install
20132
20133 # Shared archive member basename,for filename based shared library versioning on AIX.
20134 shared_archive_member_spec=$shared_archive_member_spec
20135
20136 # Shell to use when invoking shell scripts.
20137 SHELL=$lt_SHELL
20138
20139 # An echo program that protects backslashes.
20140 ECHO=$lt_ECHO
20141
20142 # The PATH separator for the build system.
20143 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20144
20145 # The host system.
20146 host_alias=$host_alias
20147 host=$host
20148 host_os=$host_os
20149
20150 # The build system.
20151 build_alias=$build_alias
20152 build=$build
20153 build_os=$build_os
20154
20155 # A sed program that does not truncate output.
20156 SED=$lt_SED
20157
20158 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20159 Xsed="\$SED -e 1s/^X//"
20160
20161 # A grep program that handles long lines.
20162 GREP=$lt_GREP
20163
20164 # An ERE matcher.
20165 EGREP=$lt_EGREP
20166
20167 # A literal string matcher.
20168 FGREP=$lt_FGREP
20169
20170 # A BSD- or MS-compatible name lister.
20171 NM=$lt_NM
20172
20173 # Whether we need soft or hard links.
20174 LN_S=$lt_LN_S
20175
20176 # What is the maximum length of a command?
20177 max_cmd_len=$max_cmd_len
20178
20179 # Object file suffix (normally "o").
20180 objext=$ac_objext
20181
20182 # Executable file suffix (normally "").
20183 exeext=$exeext
20184
20185 # whether the shell understands "unset".
20186 lt_unset=$lt_unset
20187
20188 # turn spaces into newlines.
20189 SP2NL=$lt_lt_SP2NL
20190
20191 # turn newlines into spaces.
20192 NL2SP=$lt_lt_NL2SP
20193
20194 # convert \$build file names to \$host format.
20195 to_host_file_cmd=$lt_cv_to_host_file_cmd
20196
20197 # convert \$build files to toolchain format.
20198 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20199
20200 # An object symbol dumper.
20201 OBJDUMP=$lt_OBJDUMP
20202
20203 # Method to check whether dependent libraries are shared objects.
20204 deplibs_check_method=$lt_deplibs_check_method
20205
20206 # Command to use when deplibs_check_method = "file_magic".
20207 file_magic_cmd=$lt_file_magic_cmd
20208
20209 # How to find potential files when deplibs_check_method = "file_magic".
20210 file_magic_glob=$lt_file_magic_glob
20211
20212 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20213 want_nocaseglob=$lt_want_nocaseglob
20214
20215 # DLL creation program.
20216 DLLTOOL=$lt_DLLTOOL
20217
20218 # Command to associate shared and link libraries.
20219 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20220
20221 # The archiver.
20222 AR=$lt_AR
20223
20224 # Flags to create an archive.
20225 AR_FLAGS=$lt_AR_FLAGS
20226
20227 # How to feed a file listing to the archiver.
20228 archiver_list_spec=$lt_archiver_list_spec
20229
20230 # A symbol stripping program.
20231 STRIP=$lt_STRIP
20232
20233 # Commands used to install an old-style archive.
20234 RANLIB=$lt_RANLIB
20235 old_postinstall_cmds=$lt_old_postinstall_cmds
20236 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20237
20238 # Whether to use a lock for old archive extraction.
20239 lock_old_archive_extraction=$lock_old_archive_extraction
20240
20241 # A C compiler.
20242 LTCC=$lt_CC
20243
20244 # LTCC compiler flags.
20245 LTCFLAGS=$lt_CFLAGS
20246
20247 # Take the output of nm and produce a listing of raw symbols and C names.
20248 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20249
20250 # Transform the output of nm in a proper C declaration.
20251 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20252
20253 # Transform the output of nm into a list of symbols to manually relocate.
20254 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20255
20256 # Transform the output of nm in a C name address pair.
20257 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20258
20259 # Transform the output of nm in a C name address pair when lib prefix is needed.
20260 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20261
20262 # The name lister interface.
20263 nm_interface=$lt_lt_cv_nm_interface
20264
20265 # Specify filename containing input files for \$NM.
20266 nm_file_list_spec=$lt_nm_file_list_spec
20267
20268 # The root where to search for dependent libraries,and where our libraries should be installed.
20269 lt_sysroot=$lt_sysroot
20270
20271 # Command to truncate a binary pipe.
20272 lt_truncate_bin=$lt_lt_cv_truncate_bin
20273
20274 # The name of the directory that contains temporary libtool files.
20275 objdir=$objdir
20276
20277 # Used to examine libraries when file_magic_cmd begins with "file".
20278 MAGIC_CMD=$MAGIC_CMD
20279
20280 # Must we lock files when doing compilation?
20281 need_locks=$lt_need_locks
20282
20283 # Manifest tool.
20284 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20285
20286 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20287 DSYMUTIL=$lt_DSYMUTIL
20288
20289 # Tool to change global to local symbols on Mac OS X.
20290 NMEDIT=$lt_NMEDIT
20291
20292 # Tool to manipulate fat objects and archives on Mac OS X.
20293 LIPO=$lt_LIPO
20294
20295 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20296 OTOOL=$lt_OTOOL
20297
20298 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20299 OTOOL64=$lt_OTOOL64
20300
20301 # Old archive suffix (normally "a").
20302 libext=$libext
20303
20304 # Shared library suffix (normally ".so").
20305 shrext_cmds=$lt_shrext_cmds
20306
20307 # The commands to extract the exported symbol list from a shared archive.
20308 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20309
20310 # Variables whose values should be saved in libtool wrapper scripts and
20311 # restored at link time.
20312 variables_saved_for_relink=$lt_variables_saved_for_relink
20313
20314 # Do we need the "lib" prefix for modules?
20315 need_lib_prefix=$need_lib_prefix
20316
20317 # Do we need a version for libraries?
20318 need_version=$need_version
20319
20320 # Library versioning type.
20321 version_type=$version_type
20322
20323 # Shared library runtime path variable.
20324 runpath_var=$runpath_var
20325
20326 # Shared library path variable.
20327 shlibpath_var=$shlibpath_var
20328
20329 # Is shlibpath searched before the hard-coded library search path?
20330 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20331
20332 # Format of library name prefix.
20333 libname_spec=$lt_libname_spec
20334
20335 # List of archive names. First name is the real one, the rest are links.
20336 # The last name is the one that the linker finds with -lNAME
20337 library_names_spec=$lt_library_names_spec
20338
20339 # The coded name of the library, if different from the real name.
20340 soname_spec=$lt_soname_spec
20341
20342 # Permission mode override for installation of shared libraries.
20343 install_override_mode=$lt_install_override_mode
20344
20345 # Command to use after installation of a shared archive.
20346 postinstall_cmds=$lt_postinstall_cmds
20347
20348 # Command to use after uninstallation of a shared archive.
20349 postuninstall_cmds=$lt_postuninstall_cmds
20350
20351 # Commands used to finish a libtool library installation in a directory.
20352 finish_cmds=$lt_finish_cmds
20353
20354 # As "finish_cmds", except a single script fragment to be evaled but
20355 # not shown.
20356 finish_eval=$lt_finish_eval
20357
20358 # Whether we should hardcode library paths into libraries.
20359 hardcode_into_libs=$hardcode_into_libs
20360
20361 # Compile-time system search path for libraries.
20362 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20363
20364 # Detected run-time system search path for libraries.
20365 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20366
20367 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20368 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20369
20370 # Whether dlopen is supported.
20371 dlopen_support=$enable_dlopen
20372
20373 # Whether dlopen of programs is supported.
20374 dlopen_self=$enable_dlopen_self
20375
20376 # Whether dlopen of statically linked programs is supported.
20377 dlopen_self_static=$enable_dlopen_self_static
20378
20379 # Commands to strip libraries.
20380 old_striplib=$lt_old_striplib
20381 striplib=$lt_striplib
20382
20383
20384 # The linker used to build libraries.
20385 LD=$lt_LD
20386
20387 # How to create reloadable object files.
20388 reload_flag=$lt_reload_flag
20389 reload_cmds=$lt_reload_cmds
20390
20391 # Commands used to build an old-style archive.
20392 old_archive_cmds=$lt_old_archive_cmds
20393
20394 # A language specific compiler.
20395 CC=$lt_compiler
20396
20397 # Is the compiler the GNU compiler?
20398 with_gcc=$GCC
20399
20400 # Compiler flag to turn off builtin functions.
20401 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20402
20403 # Additional compiler flags for building library objects.
20404 pic_flag=$lt_lt_prog_compiler_pic
20405
20406 # How to pass a linker flag through the compiler.
20407 wl=$lt_lt_prog_compiler_wl
20408
20409 # Compiler flag to prevent dynamic linking.
20410 link_static_flag=$lt_lt_prog_compiler_static
20411
20412 # Does compiler simultaneously support -c and -o options?
20413 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20414
20415 # Whether or not to add -lc for building shared libraries.
20416 build_libtool_need_lc=$archive_cmds_need_lc
20417
20418 # Whether or not to disallow shared libs when runtime libs are static.
20419 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20420
20421 # Compiler flag to allow reflexive dlopens.
20422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20423
20424 # Compiler flag to generate shared objects directly from archives.
20425 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20426
20427 # Whether the compiler copes with passing no objects directly.
20428 compiler_needs_object=$lt_compiler_needs_object
20429
20430 # Create an old-style archive from a shared archive.
20431 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20432
20433 # Create a temporary old-style archive to link instead of a shared archive.
20434 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20435
20436 # Commands used to build a shared archive.
20437 archive_cmds=$lt_archive_cmds
20438 archive_expsym_cmds=$lt_archive_expsym_cmds
20439
20440 # Commands used to build a loadable module if different from building
20441 # a shared archive.
20442 module_cmds=$lt_module_cmds
20443 module_expsym_cmds=$lt_module_expsym_cmds
20444
20445 # Whether we are building with GNU ld or not.
20446 with_gnu_ld=$lt_with_gnu_ld
20447
20448 # Flag that allows shared libraries with undefined symbols to be built.
20449 allow_undefined_flag=$lt_allow_undefined_flag
20450
20451 # Flag that enforces no undefined symbols.
20452 no_undefined_flag=$lt_no_undefined_flag
20453
20454 # Flag to hardcode \$libdir into a binary during linking.
20455 # This must work even if \$libdir does not exist
20456 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20457
20458 # Whether we need a single "-rpath" flag with a separated argument.
20459 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20460
20461 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20462 # DIR into the resulting binary.
20463 hardcode_direct=$hardcode_direct
20464
20465 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20466 # DIR into the resulting binary and the resulting library dependency is
20467 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20468 # library is relocated.
20469 hardcode_direct_absolute=$hardcode_direct_absolute
20470
20471 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20472 # into the resulting binary.
20473 hardcode_minus_L=$hardcode_minus_L
20474
20475 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20476 # into the resulting binary.
20477 hardcode_shlibpath_var=$hardcode_shlibpath_var
20478
20479 # Set to "yes" if building a shared library automatically hardcodes DIR
20480 # into the library and all subsequent libraries and executables linked
20481 # against it.
20482 hardcode_automatic=$hardcode_automatic
20483
20484 # Set to yes if linker adds runtime paths of dependent libraries
20485 # to runtime path list.
20486 inherit_rpath=$inherit_rpath
20487
20488 # Whether libtool must link a program against all its dependency libraries.
20489 link_all_deplibs=$link_all_deplibs
20490
20491 # Set to "yes" if exported symbols are required.
20492 always_export_symbols=$always_export_symbols
20493
20494 # The commands to list exported symbols.
20495 export_symbols_cmds=$lt_export_symbols_cmds
20496
20497 # Symbols that should not be listed in the preloaded symbols.
20498 exclude_expsyms=$lt_exclude_expsyms
20499
20500 # Symbols that must always be exported.
20501 include_expsyms=$lt_include_expsyms
20502
20503 # Commands necessary for linking programs (against libraries) with templates.
20504 prelink_cmds=$lt_prelink_cmds
20505
20506 # Commands necessary for finishing linking programs.
20507 postlink_cmds=$lt_postlink_cmds
20508
20509 # Specify filename containing input files.
20510 file_list_spec=$lt_file_list_spec
20511
20512 # How to hardcode a shared library path into an executable.
20513 hardcode_action=$hardcode_action
20514
20515 # ### END LIBTOOL CONFIG
20516
20517 _LT_EOF
20518
20519 cat <<'_LT_EOF' >> "$cfgfile"
20520
20521 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20522
20523 # func_munge_path_list VARIABLE PATH
20524 # -----------------------------------
20525 # VARIABLE is name of variable containing _space_ separated list of
20526 # directories to be munged by the contents of PATH, which is string
20527 # having a format:
20528 # "DIR[:DIR]:"
20529 # string "DIR[ DIR]" will be prepended to VARIABLE
20530 # ":DIR[:DIR]"
20531 # string "DIR[ DIR]" will be appended to VARIABLE
20532 # "DIRP[:DIRP]::[DIRA:]DIRA"
20533 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20534 # "DIRA[ DIRA]" will be appended to VARIABLE
20535 # "DIR[:DIR]"
20536 # VARIABLE will be replaced by "DIR[ DIR]"
20537 func_munge_path_list ()
20538 {
20539 case x$2 in
20540 x)
20541 ;;
20542 *:)
20543 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20544 ;;
20545 x:*)
20546 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20547 ;;
20548 *::*)
20549 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20550 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20551 ;;
20552 *)
20553 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20554 ;;
20555 esac
20556 }
20557
20558
20559 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20560 func_cc_basename ()
20561 {
20562 for cc_temp in $*""; do
20563 case $cc_temp in
20564 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20565 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20566 \-*) ;;
20567 *) break;;
20568 esac
20569 done
20570 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20571 }
20572
20573
20574 # ### END FUNCTIONS SHARED WITH CONFIGURE
20575
20576 _LT_EOF
20577
20578 case $host_os in
20579 aix3*)
20580 cat <<\_LT_EOF >> "$cfgfile"
20581 # AIX sometimes has problems with the GCC collect2 program. For some
20582 # reason, if we set the COLLECT_NAMES environment variable, the problems
20583 # vanish in a puff of smoke.
20584 if test set != "${COLLECT_NAMES+set}"; then
20585 COLLECT_NAMES=
20586 export COLLECT_NAMES
20587 fi
20588 _LT_EOF
20589 ;;
20590 esac
20591
20592
20593 ltmain=$ac_aux_dir/ltmain.sh
20594
20595
20596 # We use sed instead of cat because bash on DJGPP gets confused if
20597 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20598 # text mode, it properly converts lines to CR/LF. This bash problem
20599 # is reportedly fixed, but why not run on old versions too?
20600 sed '$q' "$ltmain" >> "$cfgfile" \
20601 || (rm -f "$cfgfile"; exit 1)
20602
20603 mv -f "$cfgfile" "$ofile" ||
20604 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20605 chmod +x "$ofile"
20606
20607 ;;
20608
20609 esac
20610 done # for ac_tag
20611
20612
20613 as_fn_exit 0
20614 _ACEOF
20615 ac_clean_files=$ac_clean_files_save
20616
20617 test $ac_write_fail = 0 ||
20618 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20619
20620
20621 # configure is writing to config.log, and then calls config.status.
20622 # config.status does its own redirection, appending to config.log.
20623 # Unfortunately, on DOS this fails, as config.log is still kept open
20624 # by configure, so config.status won't be able to write to it; its
20625 # output is simply discarded. So we exec the FD to /dev/null,
20626 # effectively closing config.log, so it can be properly (re)opened and
20627 # appended to by config.status. When coming back to configure, we
20628 # need to make the FD available again.
20629 if test "$no_create" != yes; then
20630 ac_cs_success=:
20631 ac_config_status_args=
20632 test "$silent" = yes &&
20633 ac_config_status_args="$ac_config_status_args --quiet"
20634 exec 5>/dev/null
20635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20636 exec 5>>config.log
20637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20638 # would make configure fail if this is the last instruction.
20639 $ac_cs_success || as_fn_exit 1
20640 fi
20641 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20643 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20644 fi
20645