]> git.proxmox.com Git - mirror_spl-debian.git/blame - configure
New upstream version 0.6.5.10
[mirror_spl-debian.git] / configure
CommitLineData
10946b02
AX
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
2ea56c1d 3# Generated by GNU Autoconf 2.69 for spl 0.6.5.10.
10946b02
AX
4#
5#
ac9cc135 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10946b02
AX
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
ac9cc135
AX
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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
10946b02
AX
160if 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
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
ac9cc135
AX
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
10946b02
AX
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
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
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
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
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
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
ac9cc135
AX
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.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $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
265exit 255
10946b02
AX
266fi
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
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_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.
313as_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.
323as_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
ac9cc135
AX
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
10946b02
AX
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.
381if (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 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # 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.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # 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.
416as_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
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_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.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_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
ac9cc135
AX
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
10946b02
AX
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
508ECHO_C= ECHO_N= ECHO_T=
509case `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';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (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.
ac9cc135 534 # In both cases, we have to default to `cp -pR'.
10946b02 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ac9cc135 536 as_ln_s='cp -pR'
10946b02
AX
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
ac9cc135 540 as_ln_s='cp -pR'
10946b02
AX
541 fi
542else
ac9cc135 543 as_ln_s='cp -pR'
10946b02
AX
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
ac9cc135
AX
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
10946b02
AX
557
558# Sed expression to map a string onto a valid CPP name.
559as_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.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 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.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='spl'
589PACKAGE_TARNAME='spl'
2ea56c1d
AX
590PACKAGE_VERSION='0.6.5.10'
591PACKAGE_STRING='spl 0.6.5.10'
10946b02
AX
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_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
631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
635CONFIG_KERNEL_FALSE
636CONFIG_KERNEL_TRUE
637CONFIG_USER_FALSE
638CONFIG_USER_TRUE
639DEBUG_KMEM_TRACKING
640DEBUG_KMEM
641DEBUG_SPL
642DEBUG_CFLAGS
643KERNELCPPFLAGS
644KERNELMAKE_PARAMS
645LINUX_SYMBOLS
646LINUX_VERSION
647LINUX_OBJ
648LINUX
649SPL_CONFIG
650ALIEN_VERSION
651ALIEN
652HAVE_ALIEN
653DPKGBUILD_VERSION
654DPKGBUILD
655HAVE_DPKGBUILD
656DPKG_VERSION
657DPKG
658HAVE_DPKG
659SRPM_DEFINE_COMMON
660SRPM_DEFINE_DKMS
661SRPM_DEFINE_KMOD
662SRPM_DEFINE_UTIL
663RPM_DEFINE_COMMON
664RPM_DEFINE_DKMS
665RPM_DEFINE_KMOD
666RPM_DEFINE_UTIL
667RPM_SPEC_DIR
668RPMBUILD_VERSION
669RPMBUILD
670HAVE_RPMBUILD
671RPM_VERSION
672RPM
673HAVE_RPM
674DEFAULT_PACKAGE
675VENDOR
676CPP
ac9cc135 677LT_SYS_LIBRARY_PATH
10946b02
AX
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
683MANIFEST_TOOL
684RANLIB
685ac_ct_AR
686AR
687DLLTOOL
688OBJDUMP
689LN_S
690NM
691ac_ct_DUMPBIN
692DUMPBIN
693LD
694FGREP
695EGREP
696GREP
697SED
698LIBTOOL
699am__fastdepCC_FALSE
700am__fastdepCC_TRUE
701CCDEPMODE
702am__nodep
703AMDEPBACKSLASH
704AMDEP_FALSE
705AMDEP_TRUE
706am__quote
707am__include
708DEPDIR
709OBJEXT
710EXEEXT
711ac_ct_CC
712CPPFLAGS
713LDFLAGS
714CFLAGS
715CC
716am__untar
717am__tar
718AMTAR
719am__leading_dot
720SET_MAKE
721mkdir_p
722MKDIR_P
723INSTALL_STRIP_PROGRAM
724STRIP
725install_sh
726MAKEINFO
727AUTOHEADER
728AUTOMAKE
729AUTOCONF
730ACLOCAL
731VERSION
732PACKAGE
733CYGPATH_W
734am__isrc
735INSTALL_DATA
736INSTALL_SCRIPT
737INSTALL_PROGRAM
738AM_BACKSLASH
739AM_DEFAULT_VERBOSITY
740AM_DEFAULT_V
741AM_V
742MAINT
743MAINTAINER_MODE_FALSE
744MAINTAINER_MODE_TRUE
745target_os
746target_vendor
747target_cpu
748target
749host_os
750host_vendor
751host_cpu
752host
753build_os
754build_vendor
755build_cpu
756build
757SPL_META_LT_AGE
758SPL_META_LT_REVISION
759SPL_META_LT_CURRENT
760SPL_META_AUTHOR
761SPL_META_DATA
762SPL_META_ALIAS
763SPL_META_LICENSE
764RELEASE
765SPL_META_RELEASE
766SPL_META_VERSION
767SPL_META_NAME
768AWK
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL'
807ac_subst_files=''
808ac_user_opts='
809enable_option_checking
810enable_maintainer_mode
811enable_silent_rules
812enable_dependency_tracking
813enable_shared
814enable_static
815with_pic
816enable_fast_install
ac9cc135 817with_aix_soname
10946b02
AX
818with_gnu_ld
819with_sysroot
820enable_libtool_lock
821with_spec
822with_config
823enable_linux_builtin
824with_linux
825with_linux_obj
826enable_debug
827enable_debug_kmem
828enable_debug_kmem_tracking
829enable_atomic_spinlocks
830'
831 ac_precious_vars='build_alias
832host_alias
833target_alias
834CC
835CFLAGS
836LDFLAGS
837LIBS
838CPPFLAGS
ac9cc135 839LT_SYS_LIBRARY_PATH
10946b02
AX
840CPP'
841
842
843# Initialize some variables set by options.
844ac_init_help=
845ac_init_version=false
846ac_unrecognized_opts=
847ac_unrecognized_sep=
848# The variables have the same names as the options, with
849# dashes changed to underlines.
850cache_file=/dev/null
851exec_prefix=NONE
852no_create=
853no_recursion=
854prefix=NONE
855program_prefix=NONE
856program_suffix=NONE
857program_transform_name=s,x,x,
858silent=
859site=
860srcdir=
861verbose=
862x_includes=NONE
863x_libraries=NONE
864
865# Installation directory options.
866# These are left unexpanded so users can "make install exec_prefix=/foo"
867# and all the variables that are supposed to be based on exec_prefix
868# by default will actually change.
869# Use braces instead of parens because sh, perl, etc. also accept them.
870# (The list follows the same order as the GNU Coding Standards.)
871bindir='${exec_prefix}/bin'
872sbindir='${exec_prefix}/sbin'
873libexecdir='${exec_prefix}/libexec'
874datarootdir='${prefix}/share'
875datadir='${datarootdir}'
876sysconfdir='${prefix}/etc'
877sharedstatedir='${prefix}/com'
878localstatedir='${prefix}/var'
879includedir='${prefix}/include'
880oldincludedir='/usr/include'
881docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882infodir='${datarootdir}/info'
883htmldir='${docdir}'
884dvidir='${docdir}'
885pdfdir='${docdir}'
886psdir='${docdir}'
887libdir='${exec_prefix}/lib'
888localedir='${datarootdir}/locale'
889mandir='${datarootdir}/man'
890
891ac_prev=
892ac_dashdash=
893for ac_option
894do
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
900 fi
901
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
907
908 # Accept the important Cygnus configure options, so we can diagnose typos.
909
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
938
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955"enable_$ac_useropt"
956"*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
971
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981"enable_$ac_useropt"
982"*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1116
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1136
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1147
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1152
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1157
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1164
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1169
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1172
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1175
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185"with_$ac_useropt"
1186"*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1191
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1207
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1211
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1218
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1225
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227Try \`$0 --help' for more information"
1228 ;;
1229
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1239
1240 *)
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 ;;
1247
1248 esac
1249done
1250
1251if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $? "missing argument to $ac_option"
1254fi
1255
1256if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1262fi
1263
1264# Check all directory arguments for consistency.
1265for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2ea56c1d 1268 libdir localedir mandir
10946b02
AX
1269do
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283done
1284
1285# There might be people who depend on the old broken behavior: `$host'
1286# used to hold the argument of --host etc.
1287# FIXME: To remove some day.
1288build=$build_alias
1289host=$host_alias
1290target=$target_alias
1291
1292# FIXME: To remove some day.
1293if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
10946b02
AX
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1298 fi
1299fi
1300
1301ac_tool_prefix=
1302test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304test "$silent" = yes && exec 6>/dev/null
1305
1306
1307ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308ac_ls_di=`ls -di .` &&
1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error $? "working directory cannot be determined"
1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error $? "pwd does not report name of working directory"
1313
1314
1315# Find the source files, if location was not specified.
1316if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324$as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1345 fi
1346else
1347 ac_srcdir_defaulted=no
1348fi
1349if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1352fi
1353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354ac_abs_confdir=`(
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 pwd)`
1357# When building in place, set srcdir=.
1358if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360fi
1361# Remove unnecessary trailing slashes from srcdir.
1362# Double slashes in file names in object file debugging info
1363# mess up M-x gdb in Emacs.
1364case $srcdir in
1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366esac
1367for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372done
1373
1374#
1375# Report the --help message.
1376#
1377if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
2ea56c1d 1381\`configure' configures spl 0.6.5.10 to adapt to many kinds of systems.
10946b02
AX
1382
1383Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386VAR=VALUE. See below for descriptions of some of the useful variables.
1387
1388Defaults for the options are specified in brackets.
1389
1390Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking ...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400
1401Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1406
1407By default, \`make install' will install all the files in
1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410for instance \`--prefix=\$HOME'.
1411
1412For better control, use the options below.
1413
1414Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/spl]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434_ACEOF
1435
1436 cat <<\_ACEOF
1437
1438Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442
1443System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 --target=TARGET configure for building compilers for TARGET [HOST]
1447_ACEOF
1448fi
1449
1450if test -n "$ac_init_help"; then
1451 case $ac_init_help in
2ea56c1d 1452 short | recursive ) echo "Configuration of spl 0.6.5.10:";;
10946b02
AX
1453 esac
1454 cat <<\_ACEOF
1455
1456Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ac9cc135
AX
1460 --enable-maintainer-mode
1461 enable make rules and dependencies not useful (and
1462 sometimes confusing) to the casual installer
1463 --enable-silent-rules less verbose build output (undo: "make V=1")
1464 --disable-silent-rules verbose build output (undo: "make V=0")
1465 --enable-dependency-tracking
1466 do not reject slow dependency extractors
1467 --disable-dependency-tracking
1468 speeds up one-time build
10946b02
AX
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --enable-linux-builtin Configure for builtin in-tree kernel modules
1475 [default=no]
1476 --enable-debug Enable generic debug support [default=no]
f6188ddd 1477 --enable-debug-kmem Enable basic kmem accounting [default=no]
10946b02
AX
1478 --enable-debug-kmem-tracking
1479 Enable detailed kmem tracking [default=no]
1480 --enable-atomic-spinlocks
1481 Atomic types use spinlocks [default=check]
1482
1483Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1487 both]
ac9cc135
AX
1488 --with-aix-soname=aix|svr4|both
1489 shared library versioning (aka "SONAME") variant to
1490 provide on AIX, [default=aix].
10946b02 1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ac9cc135
AX
1492 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1493 compiler's sysroot if not specified).
10946b02
AX
1494 --with-spec=SPEC Spec files 'generic|redhat'
1495 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1496 --with-linux=PATH Path to kernel source
1497 --with-linux-obj=PATH Path to kernel build objects
1498
1499Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
ac9cc135
AX
1507 LT_SYS_LIBRARY_PATH
1508 User-defined run-time library search path.
10946b02
AX
1509 CPP C preprocessor
1510
1511Use these variables to override the choices made by `configure' or to help
1512it to find libraries and programs with nonstandard names/locations.
1513
1514Report bugs to the package provider.
1515_ACEOF
1516ac_status=$?
1517fi
1518
1519if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1526
1527case "$ac_dir" in
1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529*)
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537esac
1538ac_abs_top_builddir=$ac_pwd
1539ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540# for backward compatibility:
1541ac_top_builddir=$ac_top_build_prefix
1542
1543case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556esac
1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1567 else
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1571 done
1572fi
1573
1574test -n "$ac_init_help" && exit $ac_status
1575if $ac_init_version; then
1576 cat <<\_ACEOF
2ea56c1d 1577spl configure 0.6.5.10
ac9cc135 1578generated by GNU Autoconf 2.69
10946b02 1579
ac9cc135 1580Copyright (C) 2012 Free Software Foundation, Inc.
10946b02
AX
1581This configure script is free software; the Free Software Foundation
1582gives unlimited permission to copy, distribute and modify it.
1583_ACEOF
1584 exit
1585fi
1586
1587## ------------------------ ##
1588## Autoconf initialization. ##
1589## ------------------------ ##
1590
1591# ac_fn_c_try_compile LINENO
1592# --------------------------
1593# Try to compile conftest.$ac_ext, and return whether this succeeded.
1594ac_fn_c_try_compile ()
1595{
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1599case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602esac
1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604$as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1617 ac_retval=0
1618else
1619 $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627} # ac_fn_c_try_compile
1628
1629# ac_fn_c_try_link LINENO
1630# -----------------------
1631# Try to link conftest.$ac_ext, and return whether this succeeded.
1632ac_fn_c_try_link ()
1633{
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext conftest$ac_exeext
1636 if { { ac_try="$ac_link"
1637case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640esac
1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642$as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest$ac_exeext && {
1655 test "$cross_compiling" = yes ||
ac9cc135 1656 test -x conftest$ac_exeext
10946b02
AX
1657 }; then :
1658 ac_retval=0
1659else
1660 $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664fi
1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1667 # interfere with the next link command; also delete a directory that is
1668 # left behind by Apple's compiler. We do this before executing the actions.
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_link
1674
1675# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676# -------------------------------------------------------
1677# Tests whether HEADER exists and can be compiled using the include files in
1678# INCLUDES, setting the cache variable VAR accordingly.
1679ac_fn_c_check_header_compile ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683$as_echo_n "checking for $2... " >&6; }
1684if eval \${$3+:} false; then :
1685 $as_echo_n "(cached) " >&6
1686else
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688/* end confdefs.h. */
1689$4
1690#include <$2>
1691_ACEOF
1692if ac_fn_c_try_compile "$LINENO"; then :
1693 eval "$3=yes"
1694else
1695 eval "$3=no"
1696fi
1697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698fi
1699eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701$as_echo "$ac_res" >&6; }
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704} # ac_fn_c_check_header_compile
1705
1706# ac_fn_c_try_cpp LINENO
1707# ----------------------
1708# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_cpp ()
1710{
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } > conftest.i && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 }; then :
1731 ac_retval=0
1732else
1733 $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737fi
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741} # ac_fn_c_try_cpp
1742
1743# ac_fn_c_try_run LINENO
1744# ----------------------
1745# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746# that executables *can* be run.
1747ac_fn_c_try_run ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=$ac_status
1778fi
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783} # ac_fn_c_try_run
1784
1785# ac_fn_c_check_func LINENO FUNC VAR
1786# ----------------------------------
1787# Tests whether FUNC exists, setting the cache variable VAR accordingly
1788ac_fn_c_check_func ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1800#define $2 innocuous_$2
1801
1802/* System header to define __stub macros and hopefully few prototypes,
1803 which can conflict with char $2 (); below.
1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1805 <limits.h> exists even on freestanding compilers. */
1806
1807#ifdef __STDC__
1808# include <limits.h>
1809#else
1810# include <assert.h>
1811#endif
1812
1813#undef $2
1814
1815/* Override any GCC internal prototype to avoid an error.
1816 Use char because int might match the return type of a GCC
1817 builtin and then its argument prototype would still apply. */
1818#ifdef __cplusplus
1819extern "C"
1820#endif
1821char $2 ();
1822/* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825#if defined __stub_$2 || defined __stub___$2
1826choke me
1827#endif
1828
1829int
1830main ()
1831{
1832return $2 ();
1833 ;
1834 return 0;
1835}
1836_ACEOF
1837if ac_fn_c_try_link "$LINENO"; then :
1838 eval "$3=yes"
1839else
1840 eval "$3=no"
1841fi
1842rm -f core conftest.err conftest.$ac_objext \
1843 conftest$ac_exeext conftest.$ac_ext
1844fi
1845eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847$as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850} # ac_fn_c_check_func
1851cat >config.log <<_ACEOF
1852This file contains any messages produced by compilers while
1853running configure, to aid debugging if configure makes a mistake.
1854
2ea56c1d 1855It was created by spl $as_me 0.6.5.10, which was
ac9cc135 1856generated by GNU Autoconf 2.69. Invocation command line was
10946b02
AX
1857
1858 $ $0 $@
1859
1860_ACEOF
1861exec 5>>config.log
1862{
1863cat <<_ASUNAME
1864## --------- ##
1865## Platform. ##
1866## --------- ##
1867
1868hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1869uname -m = `(uname -m) 2>/dev/null || echo unknown`
1870uname -r = `(uname -r) 2>/dev/null || echo unknown`
1871uname -s = `(uname -s) 2>/dev/null || echo unknown`
1872uname -v = `(uname -v) 2>/dev/null || echo unknown`
1873
1874/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1875/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1876
1877/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1878/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1879/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1880/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1881/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1882/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1883/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1884
1885_ASUNAME
1886
1887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888for as_dir in $PATH
1889do
1890 IFS=$as_save_IFS
1891 test -z "$as_dir" && as_dir=.
1892 $as_echo "PATH: $as_dir"
1893 done
1894IFS=$as_save_IFS
1895
1896} >&5
1897
1898cat >&5 <<_ACEOF
1899
1900
1901## ----------- ##
1902## Core tests. ##
1903## ----------- ##
1904
1905_ACEOF
1906
1907
1908# Keep a trace of the command line.
1909# Strip out --no-create and --no-recursion so they do not pile up.
1910# Strip out --silent because we don't want to record it for future runs.
1911# Also quote any args containing shell meta-characters.
1912# Make two passes to allow for proper duplicate-argument suppression.
1913ac_configure_args=
1914ac_configure_args0=
1915ac_configure_args1=
1916ac_must_keep_next=false
1917for ac_pass in 1 2
1918do
1919 for ac_arg
1920 do
1921 case $ac_arg in
1922 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1924 | -silent | --silent | --silen | --sile | --sil)
1925 continue ;;
1926 *\'*)
1927 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928 esac
1929 case $ac_pass in
1930 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1931 2)
1932 as_fn_append ac_configure_args1 " '$ac_arg'"
1933 if test $ac_must_keep_next = true; then
1934 ac_must_keep_next=false # Got value, back to normal.
1935 else
1936 case $ac_arg in
1937 *=* | --config-cache | -C | -disable-* | --disable-* \
1938 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1939 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1940 | -with-* | --with-* | -without-* | --without-* | --x)
1941 case "$ac_configure_args0 " in
1942 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943 esac
1944 ;;
1945 -* ) ac_must_keep_next=true ;;
1946 esac
1947 fi
1948 as_fn_append ac_configure_args " '$ac_arg'"
1949 ;;
1950 esac
1951 done
1952done
1953{ ac_configure_args0=; unset ac_configure_args0;}
1954{ ac_configure_args1=; unset ac_configure_args1;}
1955
1956# When interrupted or exit'd, cleanup temporary files, and complete
1957# config.log. We remove comments because anyway the quotes in there
1958# would cause problems or look ugly.
1959# WARNING: Use '\'' to represent an apostrophe within the trap.
1960# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1961trap 'exit_status=$?
1962 # Save into config.log some information that might help in debugging.
1963 {
1964 echo
1965
1966 $as_echo "## ---------------- ##
1967## Cache variables. ##
1968## ---------------- ##"
1969 echo
1970 # The following way of writing the cache mishandles newlines in values,
1971(
1972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973 eval ac_val=\$$ac_var
1974 case $ac_val in #(
1975 *${as_nl}*)
1976 case $ac_var in #(
1977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1978$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1979 esac
1980 case $ac_var in #(
1981 _ | IFS | as_nl) ;; #(
1982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1983 *) { eval $ac_var=; unset $ac_var;} ;;
1984 esac ;;
1985 esac
1986 done
1987 (set) 2>&1 |
1988 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1989 *${as_nl}ac_space=\ *)
1990 sed -n \
1991 "s/'\''/'\''\\\\'\'''\''/g;
1992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1993 ;; #(
1994 *)
1995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1996 ;;
1997 esac |
1998 sort
1999)
2000 echo
2001
2002 $as_echo "## ----------------- ##
2003## Output variables. ##
2004## ----------------- ##"
2005 echo
2006 for ac_var in $ac_subst_vars
2007 do
2008 eval ac_val=\$$ac_var
2009 case $ac_val in
2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011 esac
2012 $as_echo "$ac_var='\''$ac_val'\''"
2013 done | sort
2014 echo
2015
2016 if test -n "$ac_subst_files"; then
2017 $as_echo "## ------------------- ##
2018## File substitutions. ##
2019## ------------------- ##"
2020 echo
2021 for ac_var in $ac_subst_files
2022 do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in
2025 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 esac
2027 $as_echo "$ac_var='\''$ac_val'\''"
2028 done | sort
2029 echo
2030 fi
2031
2032 if test -s confdefs.h; then
2033 $as_echo "## ----------- ##
2034## confdefs.h. ##
2035## ----------- ##"
2036 echo
2037 cat confdefs.h
2038 echo
2039 fi
2040 test "$ac_signal" != 0 &&
2041 $as_echo "$as_me: caught signal $ac_signal"
2042 $as_echo "$as_me: exit $exit_status"
2043 } >&5
2044 rm -f core *.core core.conftest.* &&
2045 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2046 exit $exit_status
2047' 0
2048for ac_signal in 1 2 13 15; do
2049 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2050done
2051ac_signal=0
2052
2053# confdefs.h avoids OS command line length limits that DEFS can exceed.
2054rm -f -r conftest* confdefs.h
2055
2056$as_echo "/* confdefs.h */" > confdefs.h
2057
2058# Predefined preprocessor variables.
2059
2060cat >>confdefs.h <<_ACEOF
2061#define PACKAGE_NAME "$PACKAGE_NAME"
2062_ACEOF
2063
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2066_ACEOF
2067
2068cat >>confdefs.h <<_ACEOF
2069#define PACKAGE_VERSION "$PACKAGE_VERSION"
2070_ACEOF
2071
2072cat >>confdefs.h <<_ACEOF
2073#define PACKAGE_STRING "$PACKAGE_STRING"
2074_ACEOF
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2078_ACEOF
2079
2080cat >>confdefs.h <<_ACEOF
2081#define PACKAGE_URL "$PACKAGE_URL"
2082_ACEOF
2083
2084
2085# Let the site file select an alternate cache file if it wants to.
2086# Prefer an explicitly selected file to automatically selected ones.
2087ac_site_file1=NONE
2088ac_site_file2=NONE
2089if test -n "$CONFIG_SITE"; then
2090 # We do not want a PATH search for config.site.
2091 case $CONFIG_SITE in #((
2092 -*) ac_site_file1=./$CONFIG_SITE;;
2093 */*) ac_site_file1=$CONFIG_SITE;;
2094 *) ac_site_file1=./$CONFIG_SITE;;
2095 esac
2096elif test "x$prefix" != xNONE; then
2097 ac_site_file1=$prefix/share/config.site
2098 ac_site_file2=$prefix/etc/config.site
2099else
2100 ac_site_file1=$ac_default_prefix/share/config.site
2101 ac_site_file2=$ac_default_prefix/etc/config.site
2102fi
2103for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2104do
2105 test "x$ac_site_file" = xNONE && continue
2106 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2108$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2109 sed 's/^/| /' "$ac_site_file" >&5
2110 . "$ac_site_file" \
2111 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2113as_fn_error $? "failed to load site script $ac_site_file
2114See \`config.log' for more details" "$LINENO" 5; }
2115 fi
2116done
2117
2118if test -r "$cache_file"; then
2119 # Some versions of bash will fail to source /dev/null (special files
2120 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2121 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2123$as_echo "$as_me: loading cache $cache_file" >&6;}
2124 case $cache_file in
2125 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2126 *) . "./$cache_file";;
2127 esac
2128 fi
2129else
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2131$as_echo "$as_me: creating cache $cache_file" >&6;}
2132 >$cache_file
2133fi
2134
2135# Check that the precious variables saved in the cache have kept the same
2136# value.
2137ac_cache_corrupted=false
2138for ac_var in $ac_precious_vars; do
2139 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2140 eval ac_new_set=\$ac_env_${ac_var}_set
2141 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2142 eval ac_new_val=\$ac_env_${ac_var}_value
2143 case $ac_old_set,$ac_new_set in
2144 set,)
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2146$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2147 ac_cache_corrupted=: ;;
2148 ,set)
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2150$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2151 ac_cache_corrupted=: ;;
2152 ,);;
2153 *)
2154 if test "x$ac_old_val" != "x$ac_new_val"; then
2155 # differences in whitespace do not lead to failure.
2156 ac_old_val_w=`echo x $ac_old_val`
2157 ac_new_val_w=`echo x $ac_new_val`
2158 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2160$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2161 ac_cache_corrupted=:
2162 else
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2164$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2165 eval $ac_var=\$ac_old_val
2166 fi
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2168$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2170$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2171 fi;;
2172 esac
2173 # Pass precious variables to config.status.
2174 if test "$ac_new_set" = set; then
2175 case $ac_new_val in
2176 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 *) ac_arg=$ac_var=$ac_new_val ;;
2178 esac
2179 case " $ac_configure_args " in
2180 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2181 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2182 esac
2183 fi
2184done
2185if $ac_cache_corrupted; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2189$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2190 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2191fi
2192## -------------------- ##
2193## Main body of script. ##
2194## -------------------- ##
2195
2196ac_ext=c
2197ac_cpp='$CPP $CPPFLAGS'
2198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2200ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201
2202
2203ac_ext=c
2204ac_cpp='$CPP $CPPFLAGS'
2205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2207ac_compiler_gnu=$ac_cv_c_compiler_gnu
2208
2209
2210 for ac_prog in gawk mawk nawk awk
2211do
2212 # Extract the first word of "$ac_prog", so it can be a program name with args.
2213set dummy $ac_prog; ac_word=$2
2214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2215$as_echo_n "checking for $ac_word... " >&6; }
2216if ${ac_cv_prog_AWK+:} false; then :
2217 $as_echo_n "(cached) " >&6
2218else
2219 if test -n "$AWK"; then
2220 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2221else
2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223for as_dir in $PATH
2224do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 2228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
2229 ac_cv_prog_AWK="$ac_prog"
2230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2232 fi
2233done
2234 done
2235IFS=$as_save_IFS
2236
2237fi
2238fi
2239AWK=$ac_cv_prog_AWK
2240if test -n "$AWK"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2242$as_echo "$AWK" >&6; }
2243else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2245$as_echo "no" >&6; }
2246fi
2247
2248
2249 test -n "$AWK" && break
2250done
2251
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2253$as_echo_n "checking metadata... " >&6; }
2254
2255 META="$srcdir/META"
2256 _spl_ac_meta_type="none"
2257 if test -f "$META"; then
2258 _spl_ac_meta_type="META file"
2259
2260 SPL_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2261 if test -n "$SPL_META_NAME"; then
2262
2263cat >>confdefs.h <<_ACEOF
2264#define SPL_META_NAME "$SPL_META_NAME"
2265_ACEOF
2266
2267
2268 fi
2269
2270 SPL_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2271 if test -n "$SPL_META_VERSION"; then
2272
2273cat >>confdefs.h <<_ACEOF
2274#define SPL_META_VERSION "$SPL_META_VERSION"
2275_ACEOF
2276
2277
2278 fi
2279
2280 SPL_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2281 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2282 _match="${SPL_META_NAME}-${SPL_META_VERSION}"
2283 _alias=$(git describe --match=${_match} 2>/dev/null)
2284 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2285 if test -n "${_release}"; then
2286 SPL_META_RELEASE=${_release}
2287 _spl_ac_meta_type="git describe"
2288 fi
2289 fi
2290
2291 if test -n "$SPL_META_RELEASE"; then
2292
2293cat >>confdefs.h <<_ACEOF
2294#define SPL_META_RELEASE "$SPL_META_RELEASE"
2295_ACEOF
2296
2297
2298
2299 RELEASE="$SPL_META_RELEASE"
2300
2301 fi
2302
2303 SPL_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2304 if test -n "$SPL_META_LICENSE"; then
2305
2306cat >>confdefs.h <<_ACEOF
2307#define SPL_META_LICENSE "$SPL_META_LICENSE"
2308_ACEOF
2309
2310
2311 fi
2312
2313 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2314 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2315 test -n "$SPL_META_RELEASE" &&
2316 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2317
2318cat >>confdefs.h <<_ACEOF
2319#define SPL_META_ALIAS "$SPL_META_ALIAS"
2320_ACEOF
2321
2322
2323 fi
2324
2325 SPL_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2326 if test -n "$SPL_META_DATA"; then
2327
2328cat >>confdefs.h <<_ACEOF
2329#define SPL_META_DATA "$SPL_META_DATA"
2330_ACEOF
2331
2332
2333 fi
2334
2335 SPL_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2336 if test -n "$SPL_META_AUTHOR"; then
2337
2338cat >>confdefs.h <<_ACEOF
2339#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2340_ACEOF
2341
2342
2343 fi
2344
2345
2346 SPL_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2347 SPL_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2348 SPL_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2349 if test -n "$SPL_META_LT_CURRENT" \
2350 -o -n "$SPL_META_LT_REVISION" \
2351 -o -n "$SPL_META_LT_AGE"; then
2352 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2353 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2354 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2355
2356cat >>confdefs.h <<_ACEOF
2357#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2358_ACEOF
2359
2360
2361cat >>confdefs.h <<_ACEOF
2362#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2363_ACEOF
2364
2365
2366cat >>confdefs.h <<_ACEOF
2367#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2368_ACEOF
2369
2370
2371
2372
2373 fi
2374 fi
2375
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_spl_ac_meta_type" >&5
2377$as_echo "$_spl_ac_meta_type" >&6; }
2378
2379
2380ac_aux_dir=
2381for ac_dir in config "$srcdir"/config; do
2382 if test -f "$ac_dir/install-sh"; then
2383 ac_aux_dir=$ac_dir
2384 ac_install_sh="$ac_aux_dir/install-sh -c"
2385 break
2386 elif test -f "$ac_dir/install.sh"; then
2387 ac_aux_dir=$ac_dir
2388 ac_install_sh="$ac_aux_dir/install.sh -c"
2389 break
2390 elif test -f "$ac_dir/shtool"; then
2391 ac_aux_dir=$ac_dir
2392 ac_install_sh="$ac_aux_dir/shtool install -c"
2393 break
2394 fi
2395done
2396if test -z "$ac_aux_dir"; then
2397 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2398fi
2399
2400# These three variables are undocumented and unsupported,
2401# and are intended to be withdrawn in a future Autoconf release.
2402# They can cause serious problems if a builder's source tree is in a directory
2403# whose full name contains unusual characters.
2404ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2405ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2406ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2407
2408
2409
2410# Make sure we can run config.sub.
2411$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2412 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2413
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2415$as_echo_n "checking build system type... " >&6; }
2416if ${ac_cv_build+:} false; then :
2417 $as_echo_n "(cached) " >&6
2418else
2419 ac_build_alias=$build_alias
2420test "x$ac_build_alias" = x &&
2421 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2422test "x$ac_build_alias" = x &&
2423 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2424ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2425 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2426
2427fi
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2429$as_echo "$ac_cv_build" >&6; }
2430case $ac_cv_build in
2431*-*-*) ;;
2432*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2433esac
2434build=$ac_cv_build
2435ac_save_IFS=$IFS; IFS='-'
2436set x $ac_cv_build
2437shift
2438build_cpu=$1
2439build_vendor=$2
2440shift; shift
2441# Remember, the first character of IFS is used to create $*,
2442# except with old shells:
2443build_os=$*
2444IFS=$ac_save_IFS
2445case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2446
2447
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2449$as_echo_n "checking host system type... " >&6; }
2450if ${ac_cv_host+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452else
2453 if test "x$host_alias" = x; then
2454 ac_cv_host=$ac_cv_build
2455else
2456 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2457 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2458fi
2459
2460fi
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2462$as_echo "$ac_cv_host" >&6; }
2463case $ac_cv_host in
2464*-*-*) ;;
2465*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2466esac
2467host=$ac_cv_host
2468ac_save_IFS=$IFS; IFS='-'
2469set x $ac_cv_host
2470shift
2471host_cpu=$1
2472host_vendor=$2
2473shift; shift
2474# Remember, the first character of IFS is used to create $*,
2475# except with old shells:
2476host_os=$*
2477IFS=$ac_save_IFS
2478case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2479
2480
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2482$as_echo_n "checking target system type... " >&6; }
2483if ${ac_cv_target+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485else
2486 if test "x$target_alias" = x; then
2487 ac_cv_target=$ac_cv_host
2488else
2489 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2491fi
2492
2493fi
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2495$as_echo "$ac_cv_target" >&6; }
2496case $ac_cv_target in
2497*-*-*) ;;
2498*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2499esac
2500target=$ac_cv_target
2501ac_save_IFS=$IFS; IFS='-'
2502set x $ac_cv_target
2503shift
2504target_cpu=$1
2505target_vendor=$2
2506shift; shift
2507# Remember, the first character of IFS is used to create $*,
2508# except with old shells:
2509target_os=$*
2510IFS=$ac_save_IFS
2511case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2512
2513
2514# The aliases save the names the user supplied, while $host etc.
2515# will get canonicalized.
2516test -n "$target_alias" &&
2517 test "$program_prefix$program_suffix$program_transform_name" = \
2518 NONENONEs,x,x, &&
2519 program_prefix=${target_alias}-
2520
2521
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2523$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2524 # Check whether --enable-maintainer-mode was given.
2525if test "${enable_maintainer_mode+set}" = set; then :
2526 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2527else
2528 USE_MAINTAINER_MODE=no
2529fi
2530
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2532$as_echo "$USE_MAINTAINER_MODE" >&6; }
2533 if test $USE_MAINTAINER_MODE = yes; then
2534 MAINTAINER_MODE_TRUE=
2535 MAINTAINER_MODE_FALSE='#'
2536else
2537 MAINTAINER_MODE_TRUE='#'
2538 MAINTAINER_MODE_FALSE=
2539fi
2540
2541 MAINT=$MAINTAINER_MODE_TRUE
2542
2543
2544# Check whether --enable-silent-rules was given.
2545if test "${enable_silent_rules+set}" = set; then :
2546 enableval=$enable_silent_rules;
2547fi
2548
ac9cc135
AX
2549case $enable_silent_rules in # (((
2550 yes) AM_DEFAULT_VERBOSITY=0;;
2551 no) AM_DEFAULT_VERBOSITY=1;;
2552 *) AM_DEFAULT_VERBOSITY=0;;
10946b02
AX
2553esac
2554am_make=${MAKE-make}
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2556$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2557if ${am_cv_make_support_nested_variables+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559else
2560 if $as_echo 'TRUE=$(BAR$(V))
2561BAR0=false
2562BAR1=true
2563V=1
2564am__doit:
2565 @$(TRUE)
2566.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2567 am_cv_make_support_nested_variables=yes
2568else
2569 am_cv_make_support_nested_variables=no
2570fi
2571fi
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2573$as_echo "$am_cv_make_support_nested_variables" >&6; }
2574if test $am_cv_make_support_nested_variables = yes; then
2575 AM_V='$(V)'
2576 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2577else
2578 AM_V=$AM_DEFAULT_VERBOSITY
2579 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2580fi
2581AM_BACKSLASH='\'
2582
ac9cc135 2583am__api_version='1.15'
10946b02
AX
2584
2585# Find a good install program. We prefer a C program (faster),
2586# so one script is as good as another. But avoid the broken or
2587# incompatible versions:
2588# SysV /etc/install, /usr/sbin/install
2589# SunOS /usr/etc/install
2590# IRIX /sbin/install
2591# AIX /bin/install
2592# AmigaOS /C/install, which installs bootblocks on floppy discs
2593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2594# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2596# OS/2's system install, which has a completely different semantic
2597# ./install, which can be erroneously created by make from ./install.sh.
2598# Reject install programs that cannot install multiple files.
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2600$as_echo_n "checking for a BSD-compatible install... " >&6; }
2601if test -z "$INSTALL"; then
2602if ${ac_cv_path_install+:} false; then :
2603 $as_echo_n "(cached) " >&6
2604else
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 # Account for people who put trailing slashes in PATH elements.
2611case $as_dir/ in #((
2612 ./ | .// | /[cC]/* | \
2613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2614 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2615 /usr/ucb/* ) ;;
2616 *)
2617 # OSF1 and SCO ODT 3.0 have their own names for install.
2618 # Don't use installbsd from OSF since it installs stuff as root
2619 # by default.
2620 for ac_prog in ginstall scoinst install; do
2621 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 2622 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10946b02
AX
2623 if test $ac_prog = install &&
2624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2625 # AIX install. It has an incompatible calling convention.
2626 :
2627 elif test $ac_prog = install &&
2628 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2629 # program-specific install script used by HP pwplus--don't use.
2630 :
2631 else
2632 rm -rf conftest.one conftest.two conftest.dir
2633 echo one > conftest.one
2634 echo two > conftest.two
2635 mkdir conftest.dir
2636 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2637 test -s conftest.one && test -s conftest.two &&
2638 test -s conftest.dir/conftest.one &&
2639 test -s conftest.dir/conftest.two
2640 then
2641 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2642 break 3
2643 fi
2644 fi
2645 fi
2646 done
2647 done
2648 ;;
2649esac
2650
2651 done
2652IFS=$as_save_IFS
2653
2654rm -rf conftest.one conftest.two conftest.dir
2655
2656fi
2657 if test "${ac_cv_path_install+set}" = set; then
2658 INSTALL=$ac_cv_path_install
2659 else
2660 # As a last resort, use the slow shell script. Don't cache a
2661 # value for INSTALL within a source directory, because that will
2662 # break other packages using the cache if that directory is
2663 # removed, or if the value is a relative name.
2664 INSTALL=$ac_install_sh
2665 fi
2666fi
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2668$as_echo "$INSTALL" >&6; }
2669
2670# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2671# It thinks the first close brace ends the variable substitution.
2672test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2673
2674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2675
2676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2677
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2679$as_echo_n "checking whether build environment is sane... " >&6; }
10946b02
AX
2680# Reject unsafe characters in $srcdir or the absolute working directory
2681# name. Accept space and tab only in the latter.
2682am_lf='
2683'
2684case `pwd` in
2685 *[\\\"\#\$\&\'\`$am_lf]*)
2686 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2687esac
2688case $srcdir in
2689 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
ac9cc135 2690 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10946b02
AX
2691esac
2692
ac9cc135 2693# Do 'set' in a subshell so we don't clobber the current shell's
10946b02
AX
2694# arguments. Must try -L first in case configure is actually a
2695# symlink; some systems play weird games with the mod time of symlinks
2696# (eg FreeBSD returns the mod time of the symlink's containing
2697# directory).
2698if (
ac9cc135
AX
2699 am_has_slept=no
2700 for am_try in 1 2; do
2701 echo "timestamp, slept: $am_has_slept" > conftest.file
2702 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2703 if test "$*" = "X"; then
2704 # -L didn't work.
2705 set X `ls -t "$srcdir/configure" conftest.file`
2706 fi
2707 if test "$*" != "X $srcdir/configure conftest.file" \
2708 && test "$*" != "X conftest.file $srcdir/configure"; then
2709
2710 # If neither matched, then we have a broken ls. This can happen
2711 # if, for instance, CONFIG_SHELL is bash and it inherits a
2712 # broken ls alias from the environment. This has actually
2713 # happened. Such a system could not be considered "sane".
2714 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2715 alias in your environment" "$LINENO" 5
2716 fi
2717 if test "$2" = conftest.file || test $am_try -eq 2; then
2718 break
2719 fi
2720 # Just in case.
2721 sleep 1
2722 am_has_slept=yes
2723 done
10946b02
AX
2724 test "$2" = conftest.file
2725 )
2726then
2727 # Ok.
2728 :
2729else
2730 as_fn_error $? "newly created file is older than distributed files!
2731Check your system clock" "$LINENO" 5
2732fi
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734$as_echo "yes" >&6; }
ac9cc135
AX
2735# If we didn't sleep, we still need to ensure time stamps of config.status and
2736# generated files are strictly newer.
2737am_sleep_pid=
2738if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2739 ( sleep 1 ) &
2740 am_sleep_pid=$!
2741fi
2742
2743rm -f conftest.file
2744
10946b02
AX
2745test "$program_prefix" != NONE &&
2746 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2747# Use a double $ so make ignores it.
2748test "$program_suffix" != NONE &&
2749 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2750# Double any \ or $.
2751# By default was `s,x,x', remove it if useless.
2752ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2753program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2754
ac9cc135
AX
2755# Expand $ac_aux_dir to an absolute path.
2756am_aux_dir=`cd "$ac_aux_dir" && pwd`
10946b02
AX
2757
2758if test x"${MISSING+set}" != xset; then
2759 case $am_aux_dir in
2760 *\ * | *\ *)
2761 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2762 *)
2763 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2764 esac
2765fi
2766# Use eval to expand $SHELL
ac9cc135
AX
2767if eval "$MISSING --is-lightweight"; then
2768 am_missing_run="$MISSING "
10946b02
AX
2769else
2770 am_missing_run=
ac9cc135
AX
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2772$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
10946b02
AX
2773fi
2774
ac9cc135 2775if test x"${install_sh+set}" != xset; then
10946b02
AX
2776 case $am_aux_dir in
2777 *\ * | *\ *)
2778 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2779 *)
2780 install_sh="\${SHELL} $am_aux_dir/install-sh"
2781 esac
2782fi
2783
ac9cc135
AX
2784# Installed binaries are usually stripped using 'strip' when the user
2785# run "make install-strip". However 'strip' might not be the right
10946b02 2786# tool to use in cross-compilation environments, therefore Automake
ac9cc135 2787# will honor the 'STRIP' environment variable to overrule this program.
10946b02
AX
2788if test "$cross_compiling" != no; then
2789 if test -n "$ac_tool_prefix"; then
2790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2791set dummy ${ac_tool_prefix}strip; ac_word=$2
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793$as_echo_n "checking for $ac_word... " >&6; }
2794if ${ac_cv_prog_STRIP+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796else
2797 if test -n "$STRIP"; then
2798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
2807 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811done
2812 done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817STRIP=$ac_cv_prog_STRIP
2818if test -n "$STRIP"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2820$as_echo "$STRIP" >&6; }
2821else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
2824fi
2825
2826
2827fi
2828if test -z "$ac_cv_prog_STRIP"; then
2829 ac_ct_STRIP=$STRIP
2830 # Extract the first word of "strip", so it can be a program name with args.
2831set dummy strip; ac_word=$2
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833$as_echo_n "checking for $ac_word... " >&6; }
2834if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836else
2837 if test -n "$ac_ct_STRIP"; then
2838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
2847 ac_cv_prog_ac_ct_STRIP="strip"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851done
2852 done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2858if test -n "$ac_ct_STRIP"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2860$as_echo "$ac_ct_STRIP" >&6; }
2861else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866 if test "x$ac_ct_STRIP" = x; then
2867 STRIP=":"
2868 else
2869 case $cross_compiling:$ac_tool_warned in
2870yes:)
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873ac_tool_warned=yes ;;
2874esac
2875 STRIP=$ac_ct_STRIP
2876 fi
2877else
2878 STRIP="$ac_cv_prog_STRIP"
2879fi
2880
2881fi
2882INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2883
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2885$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2886if test -z "$MKDIR_P"; then
2887 if ${ac_cv_path_mkdir+:} false; then :
2888 $as_echo_n "(cached) " >&6
2889else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2892do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_prog in mkdir gmkdir; do
2896 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 2897 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
10946b02
AX
2898 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2899 'mkdir (GNU coreutils) '* | \
2900 'mkdir (coreutils) '* | \
2901 'mkdir (fileutils) '4.1*)
2902 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2903 break 3;;
2904 esac
2905 done
2906 done
2907 done
2908IFS=$as_save_IFS
2909
2910fi
2911
2912 test -d ./--version && rmdir ./--version
2913 if test "${ac_cv_path_mkdir+set}" = set; then
2914 MKDIR_P="$ac_cv_path_mkdir -p"
2915 else
2916 # As a last resort, use the slow shell script. Don't cache a
2917 # value for MKDIR_P within a source directory, because that will
2918 # break other packages using the cache if that directory is
2919 # removed, or if the value is a relative name.
2920 MKDIR_P="$ac_install_sh -d"
2921 fi
2922fi
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2924$as_echo "$MKDIR_P" >&6; }
2925
10946b02
AX
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2927$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2928set x ${MAKE-make}
2929ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2930if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932else
2933 cat >conftest.make <<\_ACEOF
2934SHELL = /bin/sh
2935all:
2936 @echo '@@@%%%=$(MAKE)=@@@%%%'
2937_ACEOF
2938# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2939case `${MAKE-make} -f conftest.make 2>/dev/null` in
2940 *@@@%%%=?*=@@@%%%*)
2941 eval ac_cv_prog_make_${ac_make}_set=yes;;
2942 *)
2943 eval ac_cv_prog_make_${ac_make}_set=no;;
2944esac
2945rm -f conftest.make
2946fi
2947if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949$as_echo "yes" >&6; }
2950 SET_MAKE=
2951else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
2954 SET_MAKE="MAKE=${MAKE-make}"
2955fi
2956
2957rm -rf .tst 2>/dev/null
2958mkdir .tst 2>/dev/null
2959if test -d .tst; then
2960 am__leading_dot=.
2961else
2962 am__leading_dot=_
2963fi
2964rmdir .tst 2>/dev/null
2965
2966if test "`cd $srcdir && pwd`" != "`pwd`"; then
2967 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2968 # is not polluted with repeated "-I."
2969 am__isrc=' -I$(srcdir)'
2970 # test to see if srcdir already configured
2971 if test -f $srcdir/config.status; then
2972 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2973 fi
2974fi
2975
2976# test whether we have cygpath
2977if test -z "$CYGPATH_W"; then
2978 if (cygpath --version) >/dev/null 2>/dev/null; then
2979 CYGPATH_W='cygpath -w'
2980 else
2981 CYGPATH_W=echo
2982 fi
2983fi
2984
2985
2986# Define the identity of the package.
2987 PACKAGE='spl'
2ea56c1d 2988 VERSION='0.6.5.10'
10946b02
AX
2989
2990
2991cat >>confdefs.h <<_ACEOF
2992#define PACKAGE "$PACKAGE"
2993_ACEOF
2994
2995
2996cat >>confdefs.h <<_ACEOF
2997#define VERSION "$VERSION"
2998_ACEOF
2999
3000# Some tools Automake needs.
3001
3002ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3003
3004
3005AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3006
3007
3008AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3009
3010
3011AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3012
3013
3014MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3015
ac9cc135
AX
3016# For better backward compatibility. To be removed once Automake 1.9.x
3017# dies out for good. For more background, see:
3018# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3019# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3020mkdir_p='$(MKDIR_P)'
3021
3022# We need awk for the "check" target (and possibly the TAP driver). The
3023# system "awk" is bad on some platforms.
10946b02
AX
3024# Always define AMTAR for backward compatibility. Yes, it's still used
3025# in the wild :-( We should find a proper way to deprecate it ...
3026AMTAR='$${TAR-tar}'
3027
ac9cc135
AX
3028
3029# We'll loop over all known methods to create a tar archive until one works.
3030_am_tools='gnutar pax cpio none'
3031
10946b02
AX
3032am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3033
3034
3035
3036
3037
ac9cc135
AX
3038
3039# POSIX will say in a future version that running "rm -f" with no argument
3040# is OK; and we want to be able to make that assumption in our Makefile
3041# recipes. So use an aggressive probe to check that the usage we want is
3042# actually supported "in the wild" to an acceptable degree.
3043# See automake bug#10828.
3044# To make any issue more visible, cause the running configure to be aborted
3045# by default if the 'rm' program in use doesn't match our expectations; the
3046# user can still override this though.
3047if rm -f && rm -fr && rm -rf; then : OK; else
3048 cat >&2 <<'END'
3049Oops!
3050
3051Your 'rm' program seems unable to run without file operands specified
3052on the command line, even when the '-f' option is present. This is contrary
3053to the behaviour of most rm programs out there, and not conforming with
3054the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3055
3056Please tell bug-automake@gnu.org about your system, including the value
3057of your $PATH and any error possibly output before this message. This
3058can help us improve future automake versions.
3059
3060END
3061 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3062 echo 'Configuration will proceed anyway, since you have set the' >&2
3063 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3064 echo >&2
3065 else
3066 cat >&2 <<'END'
3067Aborting the configuration process, to ensure you take notice of the issue.
3068
3069You can download and install GNU coreutils to get an 'rm' implementation
3070that behaves properly: <http://www.gnu.org/software/coreutils/>.
3071
3072If you want to complete the configuration process using your problematic
3073'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3074to "yes", and re-run configure.
3075
3076END
3077 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3078 fi
3079fi
3080
10946b02
AX
3081ac_config_headers="$ac_config_headers spl_config.h"
3082
3083
3084
3085ac_ext=c
3086ac_cpp='$CPP $CPPFLAGS'
3087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090if test -n "$ac_tool_prefix"; then
3091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3092set dummy ${ac_tool_prefix}gcc; ac_word=$2
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094$as_echo_n "checking for $ac_word... " >&6; }
3095if ${ac_cv_prog_CC+:} false; then :
3096 $as_echo_n "(cached) " >&6
3097else
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3100else
3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 3107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
3108 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112done
3113 done
3114IFS=$as_save_IFS
3115
3116fi
3117fi
3118CC=$ac_cv_prog_CC
3119if test -n "$CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121$as_echo "$CC" >&6; }
3122else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124$as_echo "no" >&6; }
3125fi
3126
3127
3128fi
3129if test -z "$ac_cv_prog_CC"; then
3130 ac_ct_CC=$CC
3131 # Extract the first word of "gcc", so it can be a program name with args.
3132set dummy gcc; ac_word=$2
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134$as_echo_n "checking for $ac_word... " >&6; }
3135if ${ac_cv_prog_ac_ct_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137else
3138 if test -n "$ac_ct_CC"; then
3139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140else
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
3148 ac_cv_prog_ac_ct_CC="gcc"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152done
3153 done
3154IFS=$as_save_IFS
3155
3156fi
3157fi
3158ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159if test -n "$ac_ct_CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3161$as_echo "$ac_ct_CC" >&6; }
3162else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164$as_echo "no" >&6; }
3165fi
3166
3167 if test "x$ac_ct_CC" = x; then
3168 CC=""
3169 else
3170 case $cross_compiling:$ac_tool_warned in
3171yes:)
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174ac_tool_warned=yes ;;
3175esac
3176 CC=$ac_ct_CC
3177 fi
3178else
3179 CC="$ac_cv_prog_CC"
3180fi
3181
3182if test -z "$CC"; then
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3185set dummy ${ac_tool_prefix}cc; ac_word=$2
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187$as_echo_n "checking for $ac_word... " >&6; }
3188if ${ac_cv_prog_CC+:} false; then :
3189 $as_echo_n "(cached) " >&6
3190else
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3193else
3194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195for as_dir in $PATH
3196do
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
3201 ac_cv_prog_CC="${ac_tool_prefix}cc"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 break 2
3204 fi
3205done
3206 done
3207IFS=$as_save_IFS
3208
3209fi
3210fi
3211CC=$ac_cv_prog_CC
3212if test -n "$CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214$as_echo "$CC" >&6; }
3215else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217$as_echo "no" >&6; }
3218fi
3219
3220
3221 fi
3222fi
3223if test -z "$CC"; then
3224 # Extract the first word of "cc", so it can be a program name with args.
3225set dummy cc; ac_word=$2
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227$as_echo_n "checking for $ac_word... " >&6; }
3228if ${ac_cv_prog_CC+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230else
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233else
3234 ac_prog_rejected=no
3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH
3237do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
3242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3243 ac_prog_rejected=yes
3244 continue
3245 fi
3246 ac_cv_prog_CC="cc"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250done
3251 done
3252IFS=$as_save_IFS
3253
3254if test $ac_prog_rejected = yes; then
3255 # We found a bogon in the path, so make sure we never use it.
3256 set dummy $ac_cv_prog_CC
3257 shift
3258 if test $# != 0; then
3259 # We chose a different compiler from the bogus one.
3260 # However, it has the same basename, so the bogon will be chosen
3261 # first if we set CC to just the basename; use the full file name.
3262 shift
3263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3264 fi
3265fi
3266fi
3267fi
3268CC=$ac_cv_prog_CC
3269if test -n "$CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271$as_echo "$CC" >&6; }
3272else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275fi
3276
3277
3278fi
3279if test -z "$CC"; then
3280 if test -n "$ac_tool_prefix"; then
3281 for ac_prog in cl.exe
3282 do
3283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3284set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286$as_echo_n "checking for $ac_word... " >&6; }
3287if ${ac_cv_prog_CC+:} false; then :
3288 $as_echo_n "(cached) " >&6
3289else
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3292else
3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH
3295do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 3299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
3300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304done
3305 done
3306IFS=$as_save_IFS
3307
3308fi
3309fi
3310CC=$ac_cv_prog_CC
3311if test -n "$CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313$as_echo "$CC" >&6; }
3314else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316$as_echo "no" >&6; }
3317fi
3318
3319
3320 test -n "$CC" && break
3321 done
3322fi
3323if test -z "$CC"; then
3324 ac_ct_CC=$CC
3325 for ac_prog in cl.exe
3326do
3327 # Extract the first word of "$ac_prog", so it can be a program name with args.
3328set dummy $ac_prog; ac_word=$2
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330$as_echo_n "checking for $ac_word... " >&6; }
3331if ${ac_cv_prog_ac_ct_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3333else
3334 if test -n "$ac_ct_CC"; then
3335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
3344 ac_cv_prog_ac_ct_CC="$ac_prog"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3347 fi
3348done
3349 done
3350IFS=$as_save_IFS
3351
3352fi
3353fi
3354ac_ct_CC=$ac_cv_prog_ac_ct_CC
3355if test -n "$ac_ct_CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3357$as_echo "$ac_ct_CC" >&6; }
3358else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360$as_echo "no" >&6; }
3361fi
3362
3363
3364 test -n "$ac_ct_CC" && break
3365done
3366
3367 if test "x$ac_ct_CC" = x; then
3368 CC=""
3369 else
3370 case $cross_compiling:$ac_tool_warned in
3371yes:)
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3374ac_tool_warned=yes ;;
3375esac
3376 CC=$ac_ct_CC
3377 fi
3378fi
3379
3380fi
3381
3382
3383test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385as_fn_error $? "no acceptable C compiler found in \$PATH
3386See \`config.log' for more details" "$LINENO" 5; }
3387
3388# Provide some information about the compiler.
3389$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3390set X $ac_compile
3391ac_compiler=$2
3392for ac_option in --version -v -V -qversion; do
3393 { { ac_try="$ac_compiler $ac_option >&5"
3394case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397esac
3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3401 ac_status=$?
3402 if test -s conftest.err; then
3403 sed '10a\
3404... rest of stderr output deleted ...
3405 10q' conftest.err >conftest.er1
3406 cat conftest.er1 >&5
3407 fi
3408 rm -f conftest.er1 conftest.err
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }
3411done
3412
3413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h. */
3415
3416int
3417main ()
3418{
3419
3420 ;
3421 return 0;
3422}
3423_ACEOF
3424ac_clean_files_save=$ac_clean_files
3425ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3426# Try to create an executable without -o first, disregard a.out.
3427# It will help us diagnose broken compilers, and finding out an intuition
3428# of exeext.
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3430$as_echo_n "checking whether the C compiler works... " >&6; }
3431ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3432
3433# The possible output files:
3434ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3435
3436ac_rmfiles=
3437for ac_file in $ac_files
3438do
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3441 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3442 esac
3443done
3444rm -f $ac_rmfiles
3445
3446if { { ac_try="$ac_link_default"
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452$as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_link_default") 2>&5
3454 ac_status=$?
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3458# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3459# in a Makefile. We should not override ac_cv_exeext if it was cached,
3460# so that the user can short-circuit this test for compilers unknown to
3461# Autoconf.
3462for ac_file in $ac_files ''
3463do
3464 test -f "$ac_file" || continue
3465 case $ac_file in
3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3467 ;;
3468 [ab].out )
3469 # We found the default executable, but exeext='' is most
3470 # certainly right.
3471 break;;
3472 *.* )
3473 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3474 then :; else
3475 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3476 fi
3477 # We set ac_cv_exeext here because the later test for it is not
3478 # safe: cross compilers may not add the suffix if given an `-o'
3479 # argument, so we may need to know it at that point already.
3480 # Even if this section looks crufty: it has the advantage of
3481 # actually working.
3482 break;;
3483 * )
3484 break;;
3485 esac
3486done
3487test "$ac_cv_exeext" = no && ac_cv_exeext=
3488
3489else
3490 ac_file=''
3491fi
3492if test -z "$ac_file"; then :
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494$as_echo "no" >&6; }
3495$as_echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500as_fn_error 77 "C compiler cannot create executables
3501See \`config.log' for more details" "$LINENO" 5; }
3502else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3504$as_echo "yes" >&6; }
3505fi
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3507$as_echo_n "checking for C compiler default output file name... " >&6; }
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3509$as_echo "$ac_file" >&6; }
3510ac_exeext=$ac_cv_exeext
3511
3512rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3513ac_clean_files=$ac_clean_files_save
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3515$as_echo_n "checking for suffix of executables... " >&6; }
3516if { { ac_try="$ac_link"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522$as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_link") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
3527 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3528# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3529# work properly (i.e., refer to `conftest.exe'), while it won't with
3530# `rm'.
3531for ac_file in conftest.exe conftest conftest.*; do
3532 test -f "$ac_file" || continue
3533 case $ac_file in
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536 break;;
3537 * ) break;;
3538 esac
3539done
3540else
3541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3544See \`config.log' for more details" "$LINENO" 5; }
3545fi
3546rm -f conftest conftest$ac_cv_exeext
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3548$as_echo "$ac_cv_exeext" >&6; }
3549
3550rm -f conftest.$ac_ext
3551EXEEXT=$ac_cv_exeext
3552ac_exeext=$EXEEXT
3553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554/* end confdefs.h. */
3555#include <stdio.h>
3556int
3557main ()
3558{
3559FILE *f = fopen ("conftest.out", "w");
3560 return ferror (f) || fclose (f) != 0;
3561
3562 ;
3563 return 0;
3564}
3565_ACEOF
3566ac_clean_files="$ac_clean_files conftest.out"
3567# Check that the compiler produces executables we can run. If not, either
3568# the compiler is broken, or we cross compile.
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3570$as_echo_n "checking whether we are cross compiling... " >&6; }
3571if test "$cross_compiling" != yes; then
3572 { { ac_try="$ac_link"
3573case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576esac
3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578$as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_link") 2>&5
3580 ac_status=$?
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }
3583 if { ac_try='./conftest$ac_cv_exeext'
3584 { { case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587esac
3588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589$as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_try") 2>&5
3591 ac_status=$?
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; }; then
3594 cross_compiling=no
3595 else
3596 if test "$cross_compiling" = maybe; then
3597 cross_compiling=yes
3598 else
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601as_fn_error $? "cannot run C compiled programs.
3602If you meant to cross compile, use \`--host'.
3603See \`config.log' for more details" "$LINENO" 5; }
3604 fi
3605 fi
3606fi
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3608$as_echo "$cross_compiling" >&6; }
3609
3610rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3611ac_clean_files=$ac_clean_files_save
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3613$as_echo_n "checking for suffix of object files... " >&6; }
3614if ${ac_cv_objext+:} false; then :
3615 $as_echo_n "(cached) " >&6
3616else
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618/* end confdefs.h. */
3619
3620int
3621main ()
3622{
3623
3624 ;
3625 return 0;
3626}
3627_ACEOF
3628rm -f conftest.o conftest.obj
3629if { { ac_try="$ac_compile"
3630case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633esac
3634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635$as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compile") 2>&5
3637 ac_status=$?
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }; then :
3640 for ac_file in conftest.o conftest.obj conftest.*; do
3641 test -f "$ac_file" || continue;
3642 case $ac_file in
3643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3644 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3645 break;;
3646 esac
3647done
3648else
3649 $as_echo "$as_me: failed program was:" >&5
3650sed 's/^/| /' conftest.$ac_ext >&5
3651
3652{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654as_fn_error $? "cannot compute suffix of object files: cannot compile
3655See \`config.log' for more details" "$LINENO" 5; }
3656fi
3657rm -f conftest.$ac_cv_objext conftest.$ac_ext
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3660$as_echo "$ac_cv_objext" >&6; }
3661OBJEXT=$ac_cv_objext
3662ac_objext=$OBJEXT
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3664$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3665if ${ac_cv_c_compiler_gnu+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667else
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669/* end confdefs.h. */
3670
3671int
3672main ()
3673{
3674#ifndef __GNUC__
3675 choke me
3676#endif
3677
3678 ;
3679 return 0;
3680}
3681_ACEOF
3682if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_compiler_gnu=yes
3684else
3685 ac_compiler_gnu=no
3686fi
3687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688ac_cv_c_compiler_gnu=$ac_compiler_gnu
3689
3690fi
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3692$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3693if test $ac_compiler_gnu = yes; then
3694 GCC=yes
3695else
3696 GCC=
3697fi
3698ac_test_CFLAGS=${CFLAGS+set}
3699ac_save_CFLAGS=$CFLAGS
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3701$as_echo_n "checking whether $CC accepts -g... " >&6; }
3702if ${ac_cv_prog_cc_g+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704else
3705 ac_save_c_werror_flag=$ac_c_werror_flag
3706 ac_c_werror_flag=yes
3707 ac_cv_prog_cc_g=no
3708 CFLAGS="-g"
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710/* end confdefs.h. */
3711
3712int
3713main ()
3714{
3715
3716 ;
3717 return 0;
3718}
3719_ACEOF
3720if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_cv_prog_cc_g=yes
3722else
3723 CFLAGS=""
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h. */
3726
3727int
3728main ()
3729{
3730
3731 ;
3732 return 0;
3733}
3734_ACEOF
3735if ac_fn_c_try_compile "$LINENO"; then :
3736
3737else
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3739 CFLAGS="-g"
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741/* end confdefs.h. */
3742
3743int
3744main ()
3745{
3746
3747 ;
3748 return 0;
3749}
3750_ACEOF
3751if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_cv_prog_cc_g=yes
3753fi
3754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755fi
3756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757fi
3758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 ac_c_werror_flag=$ac_save_c_werror_flag
3760fi
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3762$as_echo "$ac_cv_prog_cc_g" >&6; }
3763if test "$ac_test_CFLAGS" = set; then
3764 CFLAGS=$ac_save_CFLAGS
3765elif test $ac_cv_prog_cc_g = yes; then
3766 if test "$GCC" = yes; then
3767 CFLAGS="-g -O2"
3768 else
3769 CFLAGS="-g"
3770 fi
3771else
3772 if test "$GCC" = yes; then
3773 CFLAGS="-O2"
3774 else
3775 CFLAGS=
3776 fi
3777fi
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3779$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3780if ${ac_cv_prog_cc_c89+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782else
3783 ac_cv_prog_cc_c89=no
3784ac_save_CC=$CC
3785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h. */
3787#include <stdarg.h>
3788#include <stdio.h>
ac9cc135 3789struct stat;
10946b02
AX
3790/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3791struct buf { int x; };
3792FILE * (*rcsopen) (struct buf *, struct stat *, int);
3793static char *e (p, i)
3794 char **p;
3795 int i;
3796{
3797 return p[i];
3798}
3799static char *f (char * (*g) (char **, int), char **p, ...)
3800{
3801 char *s;
3802 va_list v;
3803 va_start (v,p);
3804 s = g (p, va_arg (v,int));
3805 va_end (v);
3806 return s;
3807}
3808
3809/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3810 function prototypes and stuff, but not '\xHH' hex character constants.
3811 These don't provoke an error unfortunately, instead are silently treated
3812 as 'x'. The following induces an error, until -std is added to get
3813 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3814 array size at least. It's necessary to write '\x00'==0 to get something
3815 that's true only with -std. */
3816int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3817
3818/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3819 inside strings and character constants. */
3820#define FOO(x) 'x'
3821int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3822
3823int test (int i, double x);
3824struct s1 {int (*f) (int a);};
3825struct s2 {int (*f) (double a);};
3826int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3827int argc;
3828char **argv;
3829int
3830main ()
3831{
3832return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3833 ;
3834 return 0;
3835}
3836_ACEOF
3837for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3838 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3839do
3840 CC="$ac_save_CC $ac_arg"
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_prog_cc_c89=$ac_arg
3843fi
3844rm -f core conftest.err conftest.$ac_objext
3845 test "x$ac_cv_prog_cc_c89" != "xno" && break
3846done
3847rm -f conftest.$ac_ext
3848CC=$ac_save_CC
3849
3850fi
3851# AC_CACHE_VAL
3852case "x$ac_cv_prog_cc_c89" in
3853 x)
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3855$as_echo "none needed" >&6; } ;;
3856 xno)
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3858$as_echo "unsupported" >&6; } ;;
3859 *)
3860 CC="$CC $ac_cv_prog_cc_c89"
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3862$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3863esac
3864if test "x$ac_cv_prog_cc_c89" != xno; then :
3865
3866fi
3867
3868ac_ext=c
3869ac_cpp='$CPP $CPPFLAGS'
3870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac9cc135
AX
3873
3874ac_ext=c
3875ac_cpp='$CPP $CPPFLAGS'
3876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3880$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3881if ${am_cv_prog_cc_c_o+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883else
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h. */
3886
3887int
3888main ()
3889{
3890
3891 ;
3892 return 0;
3893}
3894_ACEOF
3895 # Make sure it works both with $CC and with simple cc.
3896 # Following AC_PROG_CC_C_O, we do the test twice because some
3897 # compilers refuse to overwrite an existing .o file with -o,
3898 # though they will create one.
3899 am_cv_prog_cc_c_o=yes
3900 for am_i in 1 2; do
3901 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3902 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } \
3906 && test -f conftest2.$ac_objext; then
3907 : OK
3908 else
3909 am_cv_prog_cc_c_o=no
3910 break
3911 fi
3912 done
3913 rm -f core conftest*
3914 unset am_i
3915fi
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3917$as_echo "$am_cv_prog_cc_c_o" >&6; }
3918if test "$am_cv_prog_cc_c_o" != yes; then
3919 # Losing compiler, so override with the script.
3920 # FIXME: It is wrong to rewrite CC.
3921 # But if we don't then we get into trouble of one sort or another.
3922 # A longer-term fix would be to have automake use am__CC in this case,
3923 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3924 CC="$am_aux_dir/compile $CC"
3925fi
3926ac_ext=c
3927ac_cpp='$CPP $CPPFLAGS'
3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
10946b02
AX
3932DEPDIR="${am__leading_dot}deps"
3933
3934ac_config_commands="$ac_config_commands depfiles"
3935
3936
3937am_make=${MAKE-make}
3938cat > confinc << 'END'
3939am__doit:
3940 @echo this is the am__doit target
3941.PHONY: am__doit
3942END
3943# If we don't find an include directive, just comment out the code.
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3945$as_echo_n "checking for style of include used by $am_make... " >&6; }
3946am__include="#"
3947am__quote=
3948_am_result=none
3949# First try GNU make style include.
3950echo "include confinc" > confmf
ac9cc135 3951# Ignore all kinds of additional output from 'make'.
10946b02
AX
3952case `$am_make -s -f confmf 2> /dev/null` in #(
3953*the\ am__doit\ target*)
3954 am__include=include
3955 am__quote=
3956 _am_result=GNU
3957 ;;
3958esac
3959# Now try BSD make style include.
3960if test "$am__include" = "#"; then
3961 echo '.include "confinc"' > confmf
3962 case `$am_make -s -f confmf 2> /dev/null` in #(
3963 *the\ am__doit\ target*)
3964 am__include=.include
3965 am__quote="\""
3966 _am_result=BSD
3967 ;;
3968 esac
3969fi
3970
3971
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3973$as_echo "$_am_result" >&6; }
3974rm -f confinc confmf
3975
3976# Check whether --enable-dependency-tracking was given.
3977if test "${enable_dependency_tracking+set}" = set; then :
3978 enableval=$enable_dependency_tracking;
3979fi
3980
3981if test "x$enable_dependency_tracking" != xno; then
3982 am_depcomp="$ac_aux_dir/depcomp"
3983 AMDEPBACKSLASH='\'
3984 am__nodep='_no'
3985fi
3986 if test "x$enable_dependency_tracking" != xno; then
3987 AMDEP_TRUE=
3988 AMDEP_FALSE='#'
3989else
3990 AMDEP_TRUE='#'
3991 AMDEP_FALSE=
3992fi
3993
3994
3995
3996depcc="$CC" am_compiler_list=
3997
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3999$as_echo_n "checking dependency style of $depcc... " >&6; }
4000if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002else
4003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4004 # We make a subdir and do the tests there. Otherwise we can end up
4005 # making bogus files that we don't know about and never remove. For
4006 # instance it was reported that on HP-UX the gcc test will end up
ac9cc135
AX
4007 # making a dummy file named 'D' -- because '-MD' means "put the output
4008 # in D".
10946b02
AX
4009 rm -rf conftest.dir
4010 mkdir conftest.dir
4011 # Copy depcomp to subdir because otherwise we won't find it if we're
4012 # using a relative directory.
4013 cp "$am_depcomp" conftest.dir
4014 cd conftest.dir
4015 # We will build objects and dependencies in a subdirectory because
4016 # it helps to detect inapplicable dependency modes. For instance
4017 # both Tru64's cc and ICC support -MD to output dependencies as a
4018 # side effect of compilation, but ICC will put the dependencies in
4019 # the current directory while Tru64 will put them in the object
4020 # directory.
4021 mkdir sub
4022
4023 am_cv_CC_dependencies_compiler_type=none
4024 if test "$am_compiler_list" = ""; then
4025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4026 fi
4027 am__universal=false
4028 case " $depcc " in #(
4029 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4030 esac
4031
4032 for depmode in $am_compiler_list; do
4033 # Setup a source with many dependencies, because some compilers
4034 # like to wrap large dependency lists on column 80 (with \), and
4035 # we should not choose a depcomp mode which is confused by this.
4036 #
4037 # We need to recreate these files for each test, as the compiler may
4038 # overwrite some of them when testing with obscure command lines.
4039 # This happens at least with the AIX C compiler.
4040 : > sub/conftest.c
4041 for i in 1 2 3 4 5 6; do
4042 echo '#include "conftst'$i'.h"' >> sub/conftest.c
ac9cc135
AX
4043 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4044 # Solaris 10 /bin/sh.
4045 echo '/* dummy */' > sub/conftst$i.h
10946b02
AX
4046 done
4047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4048
ac9cc135 4049 # We check with '-c' and '-o' for the sake of the "dashmstdout"
10946b02 4050 # mode. It turns out that the SunPro C++ compiler does not properly
ac9cc135
AX
4051 # handle '-M -o', and we need to detect this. Also, some Intel
4052 # versions had trouble with output in subdirs.
10946b02
AX
4053 am__obj=sub/conftest.${OBJEXT-o}
4054 am__minus_obj="-o $am__obj"
4055 case $depmode in
4056 gcc)
4057 # This depmode causes a compiler race in universal mode.
4058 test "$am__universal" = false || continue
4059 ;;
4060 nosideeffect)
ac9cc135
AX
4061 # After this tag, mechanisms are not by side-effect, so they'll
4062 # only be used when explicitly requested.
10946b02
AX
4063 if test "x$enable_dependency_tracking" = xyes; then
4064 continue
4065 else
4066 break
4067 fi
4068 ;;
4069 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
ac9cc135 4070 # This compiler won't grok '-c -o', but also, the minuso test has
10946b02
AX
4071 # not run yet. These depmodes are late enough in the game, and
4072 # so weak that their functioning should not be impacted.
4073 am__obj=conftest.${OBJEXT-o}
4074 am__minus_obj=
4075 ;;
4076 none) break ;;
4077 esac
4078 if depmode=$depmode \
4079 source=sub/conftest.c object=$am__obj \
4080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4081 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4082 >/dev/null 2>conftest.err &&
4083 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4084 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4085 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4086 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4087 # icc doesn't choke on unknown options, it will just issue warnings
4088 # or remarks (even with -Werror). So we grep stderr for any message
4089 # that says an option was ignored or not supported.
4090 # When given -MP, icc 7.0 and 7.1 complain thusly:
4091 # icc: Command line warning: ignoring option '-M'; no argument required
4092 # The diagnosis changed in icc 8.0:
4093 # icc: Command line remark: option '-MP' not supported
4094 if (grep 'ignoring option' conftest.err ||
4095 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4096 am_cv_CC_dependencies_compiler_type=$depmode
4097 break
4098 fi
4099 fi
4100 done
4101
4102 cd ..
4103 rm -rf conftest.dir
4104else
4105 am_cv_CC_dependencies_compiler_type=none
4106fi
4107
4108fi
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4110$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4111CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4112
4113 if
4114 test "x$enable_dependency_tracking" != xno \
4115 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4116 am__fastdepCC_TRUE=
4117 am__fastdepCC_FALSE='#'
4118else
4119 am__fastdepCC_TRUE='#'
4120 am__fastdepCC_FALSE=
4121fi
4122
4123
4124case `pwd` in
4125 *\ * | *\ *)
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4127$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4128esac
4129
4130
4131
ac9cc135
AX
4132macro_version='2.4.6'
4133macro_revision='2.4.6'
10946b02
AX
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
ac9cc135 4147ltmain=$ac_aux_dir/ltmain.sh
10946b02
AX
4148
4149# Backslashify metacharacters that are still active within
4150# double-quoted strings.
4151sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4152
4153# Same as above, but do not quote variable references.
4154double_quote_subst='s/\(["`\\]\)/\\\1/g'
4155
4156# Sed substitution to delay expansion of an escaped shell variable in a
4157# double_quote_subst'ed string.
4158delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4159
4160# Sed substitution to delay expansion of an escaped single quote.
4161delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4162
4163# Sed substitution to avoid accidental globbing in evaled expressions
4164no_glob_subst='s/\*/\\\*/g'
4165
4166ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4167ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4168ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4169
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4171$as_echo_n "checking how to print strings... " >&6; }
4172# Test print first, because it will be a builtin if present.
4173if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4174 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4175 ECHO='print -r --'
4176elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4177 ECHO='printf %s\n'
4178else
4179 # Use this function as a fallback that always works.
4180 func_fallback_echo ()
4181 {
4182 eval 'cat <<_LTECHO_EOF
4183$1
4184_LTECHO_EOF'
4185 }
4186 ECHO='func_fallback_echo'
4187fi
4188
4189# func_echo_all arg...
4190# Invoke $ECHO with all args, space-separated.
4191func_echo_all ()
4192{
4193 $ECHO ""
4194}
4195
ac9cc135 4196case $ECHO in
10946b02
AX
4197 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4198$as_echo "printf" >&6; } ;;
4199 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4200$as_echo "print -r" >&6; } ;;
4201 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4202$as_echo "cat" >&6; } ;;
4203esac
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4219$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4220if ${ac_cv_path_SED+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222else
4223 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4224 for ac_i in 1 2 3 4 5 6 7; do
4225 ac_script="$ac_script$as_nl$ac_script"
4226 done
4227 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4228 { ac_script=; unset ac_script;}
4229 if test -z "$SED"; then
4230 ac_path_SED_found=false
4231 # Loop through the user's path and test for each of PROGNAME-LIST
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_prog in sed gsed; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
ac9cc135 4240 as_fn_executable_p "$ac_path_SED" || continue
10946b02
AX
4241# Check for GNU ac_path_SED and select it if it is found.
4242 # Check for GNU $ac_path_SED
4243case `"$ac_path_SED" --version 2>&1` in
4244*GNU*)
4245 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4246*)
4247 ac_count=0
4248 $as_echo_n 0123456789 >"conftest.in"
4249 while :
4250 do
4251 cat "conftest.in" "conftest.in" >"conftest.tmp"
4252 mv "conftest.tmp" "conftest.in"
4253 cp "conftest.in" "conftest.nl"
4254 $as_echo '' >> "conftest.nl"
4255 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4257 as_fn_arith $ac_count + 1 && ac_count=$as_val
4258 if test $ac_count -gt ${ac_path_SED_max-0}; then
4259 # Best one so far, save it but keep looking for a better one
4260 ac_cv_path_SED="$ac_path_SED"
4261 ac_path_SED_max=$ac_count
4262 fi
4263 # 10*(2^10) chars as input seems more than enough
4264 test $ac_count -gt 10 && break
4265 done
4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4267esac
4268
4269 $ac_path_SED_found && break 3
4270 done
4271 done
4272 done
4273IFS=$as_save_IFS
4274 if test -z "$ac_cv_path_SED"; then
4275 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4276 fi
4277else
4278 ac_cv_path_SED=$SED
4279fi
4280
4281fi
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4283$as_echo "$ac_cv_path_SED" >&6; }
4284 SED="$ac_cv_path_SED"
4285 rm -f conftest.sed
4286
4287test -z "$SED" && SED=sed
4288Xsed="$SED -e 1s/^X//"
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4301$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4302if ${ac_cv_path_GREP+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304else
4305 if test -z "$GREP"; then
4306 ac_path_GREP_found=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_prog in grep ggrep; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
ac9cc135 4316 as_fn_executable_p "$ac_path_GREP" || continue
10946b02
AX
4317# Check for GNU ac_path_GREP and select it if it is found.
4318 # Check for GNU $ac_path_GREP
4319case `"$ac_path_GREP" --version 2>&1` in
4320*GNU*)
4321 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4322*)
4323 ac_count=0
4324 $as_echo_n 0123456789 >"conftest.in"
4325 while :
4326 do
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'GREP' >> "conftest.nl"
4331 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333 as_fn_arith $ac_count + 1 && ac_count=$as_val
4334 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_GREP="$ac_path_GREP"
4337 ac_path_GREP_max=$ac_count
4338 fi
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4341 done
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343esac
4344
4345 $ac_path_GREP_found && break 3
4346 done
4347 done
4348 done
4349IFS=$as_save_IFS
4350 if test -z "$ac_cv_path_GREP"; then
4351 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4352 fi
4353else
4354 ac_cv_path_GREP=$GREP
4355fi
4356
4357fi
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4359$as_echo "$ac_cv_path_GREP" >&6; }
4360 GREP="$ac_cv_path_GREP"
4361
4362
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4364$as_echo_n "checking for egrep... " >&6; }
4365if ${ac_cv_path_EGREP+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367else
4368 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4369 then ac_cv_path_EGREP="$GREP -E"
4370 else
4371 if test -z "$EGREP"; then
4372 ac_path_EGREP_found=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4376do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_prog in egrep; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
ac9cc135 4382 as_fn_executable_p "$ac_path_EGREP" || continue
10946b02
AX
4383# Check for GNU ac_path_EGREP and select it if it is found.
4384 # Check for GNU $ac_path_EGREP
4385case `"$ac_path_EGREP" --version 2>&1` in
4386*GNU*)
4387 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4388*)
4389 ac_count=0
4390 $as_echo_n 0123456789 >"conftest.in"
4391 while :
4392 do
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 $as_echo 'EGREP' >> "conftest.nl"
4397 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399 as_fn_arith $ac_count + 1 && ac_count=$as_val
4400 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_EGREP="$ac_path_EGREP"
4403 ac_path_EGREP_max=$ac_count
4404 fi
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4407 done
4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4409esac
4410
4411 $ac_path_EGREP_found && break 3
4412 done
4413 done
4414 done
4415IFS=$as_save_IFS
4416 if test -z "$ac_cv_path_EGREP"; then
4417 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4418 fi
4419else
4420 ac_cv_path_EGREP=$EGREP
4421fi
4422
4423 fi
4424fi
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4426$as_echo "$ac_cv_path_EGREP" >&6; }
4427 EGREP="$ac_cv_path_EGREP"
4428
4429
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4431$as_echo_n "checking for fgrep... " >&6; }
4432if ${ac_cv_path_FGREP+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434else
4435 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4436 then ac_cv_path_FGREP="$GREP -F"
4437 else
4438 if test -z "$FGREP"; then
4439 ac_path_FGREP_found=false
4440 # Loop through the user's path and test for each of PROGNAME-LIST
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_prog in fgrep; do
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
ac9cc135 4449 as_fn_executable_p "$ac_path_FGREP" || continue
10946b02
AX
4450# Check for GNU ac_path_FGREP and select it if it is found.
4451 # Check for GNU $ac_path_FGREP
4452case `"$ac_path_FGREP" --version 2>&1` in
4453*GNU*)
4454 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4455*)
4456 ac_count=0
4457 $as_echo_n 0123456789 >"conftest.in"
4458 while :
4459 do
4460 cat "conftest.in" "conftest.in" >"conftest.tmp"
4461 mv "conftest.tmp" "conftest.in"
4462 cp "conftest.in" "conftest.nl"
4463 $as_echo 'FGREP' >> "conftest.nl"
4464 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4466 as_fn_arith $ac_count + 1 && ac_count=$as_val
4467 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4468 # Best one so far, save it but keep looking for a better one
4469 ac_cv_path_FGREP="$ac_path_FGREP"
4470 ac_path_FGREP_max=$ac_count
4471 fi
4472 # 10*(2^10) chars as input seems more than enough
4473 test $ac_count -gt 10 && break
4474 done
4475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476esac
4477
4478 $ac_path_FGREP_found && break 3
4479 done
4480 done
4481 done
4482IFS=$as_save_IFS
4483 if test -z "$ac_cv_path_FGREP"; then
4484 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4485 fi
4486else
4487 ac_cv_path_FGREP=$FGREP
4488fi
4489
4490 fi
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4493$as_echo "$ac_cv_path_FGREP" >&6; }
4494 FGREP="$ac_cv_path_FGREP"
4495
4496
4497test -z "$GREP" && GREP=grep
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517# Check whether --with-gnu-ld was given.
4518if test "${with_gnu_ld+set}" = set; then :
ac9cc135 4519 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
10946b02
AX
4520else
4521 with_gnu_ld=no
4522fi
4523
4524ac_prog=ld
ac9cc135 4525if test yes = "$GCC"; then
10946b02
AX
4526 # Check if gcc -print-prog-name=ld gives a path.
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4528$as_echo_n "checking for ld used by $CC... " >&6; }
4529 case $host in
4530 *-*-mingw*)
ac9cc135 4531 # gcc leaves a trailing carriage return, which upsets mingw
10946b02
AX
4532 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4533 *)
4534 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4535 esac
4536 case $ac_prog in
4537 # Accept absolute paths.
4538 [\\/]* | ?:[\\/]*)
4539 re_direlt='/[^/][^/]*/\.\./'
4540 # Canonicalize the pathname of ld
4541 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4542 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4543 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4544 done
ac9cc135 4545 test -z "$LD" && LD=$ac_prog
10946b02
AX
4546 ;;
4547 "")
4548 # If it fails, then pretend we aren't using GCC.
4549 ac_prog=ld
4550 ;;
4551 *)
4552 # If it is relative, then search for the first ld in PATH.
4553 with_gnu_ld=unknown
4554 ;;
4555 esac
ac9cc135 4556elif test yes = "$with_gnu_ld"; then
10946b02
AX
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4558$as_echo_n "checking for GNU ld... " >&6; }
4559else
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4561$as_echo_n "checking for non-GNU ld... " >&6; }
4562fi
4563if ${lt_cv_path_LD+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565else
4566 if test -z "$LD"; then
ac9cc135 4567 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10946b02 4568 for ac_dir in $PATH; do
ac9cc135 4569 IFS=$lt_save_ifs
10946b02
AX
4570 test -z "$ac_dir" && ac_dir=.
4571 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
ac9cc135 4572 lt_cv_path_LD=$ac_dir/$ac_prog
10946b02
AX
4573 # Check to see if the program is GNU ld. I'd rather use --version,
4574 # but apparently some variants of GNU ld only accept -v.
4575 # Break only if it was the GNU/non-GNU ld that we prefer.
4576 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4577 *GNU* | *'with BFD'*)
ac9cc135 4578 test no != "$with_gnu_ld" && break
10946b02
AX
4579 ;;
4580 *)
ac9cc135 4581 test yes != "$with_gnu_ld" && break
10946b02
AX
4582 ;;
4583 esac
4584 fi
4585 done
ac9cc135 4586 IFS=$lt_save_ifs
10946b02 4587else
ac9cc135 4588 lt_cv_path_LD=$LD # Let the user override the test with a path.
10946b02
AX
4589fi
4590fi
4591
ac9cc135 4592LD=$lt_cv_path_LD
10946b02
AX
4593if test -n "$LD"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4595$as_echo "$LD" >&6; }
4596else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598$as_echo "no" >&6; }
4599fi
4600test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4602$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4603if ${lt_cv_prog_gnu_ld+:} false; then :
4604 $as_echo_n "(cached) " >&6
4605else
4606 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4607case `$LD -v 2>&1 </dev/null` in
4608*GNU* | *'with BFD'*)
4609 lt_cv_prog_gnu_ld=yes
4610 ;;
4611*)
4612 lt_cv_prog_gnu_ld=no
4613 ;;
4614esac
4615fi
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4617$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4618with_gnu_ld=$lt_cv_prog_gnu_ld
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4629$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4630if ${lt_cv_path_NM+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632else
4633 if test -n "$NM"; then
4634 # Let the user override the test.
ac9cc135 4635 lt_cv_path_NM=$NM
10946b02 4636else
ac9cc135 4637 lt_nm_to_check=${ac_tool_prefix}nm
10946b02
AX
4638 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4639 lt_nm_to_check="$lt_nm_to_check nm"
4640 fi
4641 for lt_tmp_nm in $lt_nm_to_check; do
ac9cc135 4642 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10946b02 4643 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
ac9cc135 4644 IFS=$lt_save_ifs
10946b02 4645 test -z "$ac_dir" && ac_dir=.
ac9cc135
AX
4646 tmp_nm=$ac_dir/$lt_tmp_nm
4647 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
10946b02 4648 # Check to see if the nm accepts a BSD-compat flag.
ac9cc135 4649 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
10946b02
AX
4650 # nm: unknown option "B" ignored
4651 # Tru64's nm complains that /dev/null is an invalid object file
ac9cc135
AX
4652 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4653 case $build_os in
4654 mingw*) lt_bad_file=conftest.nm/nofile ;;
4655 *) lt_bad_file=/dev/null ;;
4656 esac
4657 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4658 *$lt_bad_file* | *'Invalid file or object type'*)
10946b02 4659 lt_cv_path_NM="$tmp_nm -B"
ac9cc135 4660 break 2
10946b02
AX
4661 ;;
4662 *)
4663 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4664 */dev/null*)
4665 lt_cv_path_NM="$tmp_nm -p"
ac9cc135 4666 break 2
10946b02
AX
4667 ;;
4668 *)
4669 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4670 continue # so that we can try to find one that supports BSD flags
4671 ;;
4672 esac
4673 ;;
4674 esac
4675 fi
4676 done
ac9cc135 4677 IFS=$lt_save_ifs
10946b02
AX
4678 done
4679 : ${lt_cv_path_NM=no}
4680fi
4681fi
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4683$as_echo "$lt_cv_path_NM" >&6; }
ac9cc135
AX
4684if test no != "$lt_cv_path_NM"; then
4685 NM=$lt_cv_path_NM
10946b02
AX
4686else
4687 # Didn't find any BSD compatible name lister, look for dumpbin.
4688 if test -n "$DUMPBIN"; then :
4689 # Let the user override the test.
4690 else
4691 if test -n "$ac_tool_prefix"; then
4692 for ac_prog in dumpbin "link -dump"
4693 do
4694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697$as_echo_n "checking for $ac_word... " >&6; }
4698if ${ac_cv_prog_DUMPBIN+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700else
4701 if test -n "$DUMPBIN"; then
4702 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 4710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
4711 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4714 fi
4715done
4716 done
4717IFS=$as_save_IFS
4718
4719fi
4720fi
4721DUMPBIN=$ac_cv_prog_DUMPBIN
4722if test -n "$DUMPBIN"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4724$as_echo "$DUMPBIN" >&6; }
4725else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727$as_echo "no" >&6; }
4728fi
4729
4730
4731 test -n "$DUMPBIN" && break
4732 done
4733fi
4734if test -z "$DUMPBIN"; then
4735 ac_ct_DUMPBIN=$DUMPBIN
4736 for ac_prog in dumpbin "link -dump"
4737do
4738 # Extract the first word of "$ac_prog", so it can be a program name with args.
4739set dummy $ac_prog; ac_word=$2
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741$as_echo_n "checking for $ac_word... " >&6; }
4742if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4743 $as_echo_n "(cached) " >&6
4744else
4745 if test -n "$ac_ct_DUMPBIN"; then
4746 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 4754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
4755 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4758 fi
4759done
4760 done
4761IFS=$as_save_IFS
4762
4763fi
4764fi
4765ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4766if test -n "$ac_ct_DUMPBIN"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4768$as_echo "$ac_ct_DUMPBIN" >&6; }
4769else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771$as_echo "no" >&6; }
4772fi
4773
4774
4775 test -n "$ac_ct_DUMPBIN" && break
4776done
4777
4778 if test "x$ac_ct_DUMPBIN" = x; then
4779 DUMPBIN=":"
4780 else
4781 case $cross_compiling:$ac_tool_warned in
4782yes:)
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4785ac_tool_warned=yes ;;
4786esac
4787 DUMPBIN=$ac_ct_DUMPBIN
4788 fi
4789fi
4790
ac9cc135 4791 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
10946b02 4792 *COFF*)
ac9cc135 4793 DUMPBIN="$DUMPBIN -symbols -headers"
10946b02
AX
4794 ;;
4795 *)
4796 DUMPBIN=:
4797 ;;
4798 esac
4799 fi
4800
ac9cc135
AX
4801 if test : != "$DUMPBIN"; then
4802 NM=$DUMPBIN
10946b02
AX
4803 fi
4804fi
4805test -z "$NM" && NM=nm
4806
4807
4808
4809
4810
4811
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4813$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4814if ${lt_cv_nm_interface+:} false; then :
4815 $as_echo_n "(cached) " >&6
4816else
4817 lt_cv_nm_interface="BSD nm"
4818 echo "int some_variable = 0;" > conftest.$ac_ext
4819 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4820 (eval "$ac_compile" 2>conftest.err)
4821 cat conftest.err >&5
4822 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4823 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4824 cat conftest.err >&5
4825 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4826 cat conftest.out >&5
4827 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4828 lt_cv_nm_interface="MS dumpbin"
4829 fi
4830 rm -f conftest*
4831fi
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4833$as_echo "$lt_cv_nm_interface" >&6; }
4834
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4836$as_echo_n "checking whether ln -s works... " >&6; }
4837LN_S=$as_ln_s
4838if test "$LN_S" = "ln -s"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4840$as_echo "yes" >&6; }
4841else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4843$as_echo "no, using $LN_S" >&6; }
4844fi
4845
4846# find the maximum length of command line arguments
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4848$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4849if ${lt_cv_sys_max_cmd_len+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851else
4852 i=0
ac9cc135 4853 teststring=ABCD
10946b02
AX
4854
4855 case $build_os in
4856 msdosdjgpp*)
4857 # On DJGPP, this test can blow up pretty badly due to problems in libc
4858 # (any single argument exceeding 2000 bytes causes a buffer overrun
4859 # during glob expansion). Even if it were fixed, the result of this
4860 # check would be larger than it should be.
4861 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4862 ;;
4863
4864 gnu*)
4865 # Under GNU Hurd, this test is not required because there is
4866 # no limit to the length of command line arguments.
4867 # Libtool will interpret -1 as no limit whatsoever
4868 lt_cv_sys_max_cmd_len=-1;
4869 ;;
4870
4871 cygwin* | mingw* | cegcc*)
4872 # On Win9x/ME, this test blows up -- it succeeds, but takes
4873 # about 5 minutes as the teststring grows exponentially.
4874 # Worse, since 9x/ME are not pre-emptively multitasking,
4875 # you end up with a "frozen" computer, even though with patience
4876 # the test eventually succeeds (with a max line length of 256k).
4877 # Instead, let's just punt: use the minimum linelength reported by
4878 # all of the supported platforms: 8192 (on NT/2K/XP).
4879 lt_cv_sys_max_cmd_len=8192;
4880 ;;
4881
4882 mint*)
4883 # On MiNT this can take a long time and run out of memory.
4884 lt_cv_sys_max_cmd_len=8192;
4885 ;;
4886
4887 amigaos*)
4888 # On AmigaOS with pdksh, this test takes hours, literally.
4889 # So we just punt and use a minimum line length of 8192.
4890 lt_cv_sys_max_cmd_len=8192;
4891 ;;
4892
ac9cc135 4893 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
10946b02
AX
4894 # This has been around since 386BSD, at least. Likely further.
4895 if test -x /sbin/sysctl; then
4896 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4897 elif test -x /usr/sbin/sysctl; then
4898 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4899 else
4900 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4901 fi
4902 # And add a safety zone
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4905 ;;
4906
4907 interix*)
4908 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4909 lt_cv_sys_max_cmd_len=196608
4910 ;;
4911
4912 os2*)
4913 # The test takes a long time on OS/2.
4914 lt_cv_sys_max_cmd_len=8192
4915 ;;
4916
4917 osf*)
4918 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4919 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4920 # nice to cause kernel panics so lets avoid the loop below.
4921 # First set a reasonable default.
4922 lt_cv_sys_max_cmd_len=16384
4923 #
4924 if test -x /sbin/sysconfig; then
4925 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4926 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4927 esac
4928 fi
4929 ;;
4930 sco3.2v5*)
4931 lt_cv_sys_max_cmd_len=102400
4932 ;;
4933 sysv5* | sco5v6* | sysv4.2uw2*)
4934 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4935 if test -n "$kargmax"; then
4936 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4937 else
4938 lt_cv_sys_max_cmd_len=32768
4939 fi
4940 ;;
4941 *)
4942 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
ac9cc135
AX
4943 if test -n "$lt_cv_sys_max_cmd_len" && \
4944 test undefined != "$lt_cv_sys_max_cmd_len"; then
10946b02
AX
4945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4947 else
4948 # Make teststring a little bigger before we do anything with it.
4949 # a 1K string should be a reasonable start.
ac9cc135 4950 for i in 1 2 3 4 5 6 7 8; do
10946b02
AX
4951 teststring=$teststring$teststring
4952 done
4953 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4954 # If test is not a shell built-in, we'll probably end up computing a
4955 # maximum length that is only half of the actual maximum length, but
4956 # we can't tell.
ac9cc135 4957 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
10946b02 4958 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
ac9cc135 4959 test 17 != "$i" # 1/2 MB should be enough
10946b02
AX
4960 do
4961 i=`expr $i + 1`
4962 teststring=$teststring$teststring
4963 done
4964 # Only check the string length outside the loop.
4965 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4966 teststring=
4967 # Add a significant safety factor because C++ compilers can tack on
4968 # massive amounts of additional arguments before passing them to the
4969 # linker. It appears as though 1/2 is a usable value.
4970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4971 fi
4972 ;;
4973 esac
4974
4975fi
4976
ac9cc135 4977if test -n "$lt_cv_sys_max_cmd_len"; then
10946b02
AX
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4979$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4980else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4982$as_echo "none" >&6; }
4983fi
4984max_cmd_len=$lt_cv_sys_max_cmd_len
4985
4986
4987
4988
4989
4990
4991: ${CP="cp -f"}
4992: ${MV="mv -f"}
4993: ${RM="rm -f"}
4994
10946b02
AX
4995if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4996 lt_unset=unset
4997else
4998 lt_unset=false
4999fi
5000
5001
5002
5003
5004
5005# test EBCDIC or ASCII
5006case `echo X|tr X '\101'` in
5007 A) # ASCII based system
5008 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5009 lt_SP2NL='tr \040 \012'
5010 lt_NL2SP='tr \015\012 \040\040'
5011 ;;
5012 *) # EBCDIC based system
5013 lt_SP2NL='tr \100 \n'
5014 lt_NL2SP='tr \r\n \100\100'
5015 ;;
5016esac
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5027$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5028if ${lt_cv_to_host_file_cmd+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030else
5031 case $host in
5032 *-*-mingw* )
5033 case $build in
5034 *-*-mingw* ) # actually msys
5035 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5036 ;;
5037 *-*-cygwin* )
5038 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5039 ;;
5040 * ) # otherwise, assume *nix
5041 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5042 ;;
5043 esac
5044 ;;
5045 *-*-cygwin* )
5046 case $build in
5047 *-*-mingw* ) # actually msys
5048 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5049 ;;
5050 *-*-cygwin* )
5051 lt_cv_to_host_file_cmd=func_convert_file_noop
5052 ;;
5053 * ) # otherwise, assume *nix
5054 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5055 ;;
5056 esac
5057 ;;
5058 * ) # unhandled hosts (and "normal" native builds)
5059 lt_cv_to_host_file_cmd=func_convert_file_noop
5060 ;;
5061esac
5062
5063fi
5064
5065to_host_file_cmd=$lt_cv_to_host_file_cmd
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5067$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5068
5069
5070
5071
5072
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5074$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5075if ${lt_cv_to_tool_file_cmd+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077else
5078 #assume ordinary cross tools, or native build.
5079lt_cv_to_tool_file_cmd=func_convert_file_noop
5080case $host in
5081 *-*-mingw* )
5082 case $build in
5083 *-*-mingw* ) # actually msys
5084 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5085 ;;
5086 esac
5087 ;;
5088esac
5089
5090fi
5091
5092to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5094$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5095
5096
5097
5098
5099
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5101$as_echo_n "checking for $LD option to reload object files... " >&6; }
5102if ${lt_cv_ld_reload_flag+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104else
5105 lt_cv_ld_reload_flag='-r'
5106fi
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5108$as_echo "$lt_cv_ld_reload_flag" >&6; }
5109reload_flag=$lt_cv_ld_reload_flag
5110case $reload_flag in
5111"" | " "*) ;;
5112*) reload_flag=" $reload_flag" ;;
5113esac
5114reload_cmds='$LD$reload_flag -o $output$reload_objs'
5115case $host_os in
5116 cygwin* | mingw* | pw32* | cegcc*)
ac9cc135 5117 if test yes != "$GCC"; then
10946b02
AX
5118 reload_cmds=false
5119 fi
5120 ;;
5121 darwin*)
ac9cc135
AX
5122 if test yes = "$GCC"; then
5123 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
10946b02
AX
5124 else
5125 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5126 fi
5127 ;;
5128esac
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138if test -n "$ac_tool_prefix"; then
5139 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5140set dummy ${ac_tool_prefix}objdump; ac_word=$2
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142$as_echo_n "checking for $ac_word... " >&6; }
5143if ${ac_cv_prog_OBJDUMP+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145else
5146 if test -n "$OBJDUMP"; then
5147 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5148else
5149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
5156 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160done
5161 done
5162IFS=$as_save_IFS
5163
5164fi
5165fi
5166OBJDUMP=$ac_cv_prog_OBJDUMP
5167if test -n "$OBJDUMP"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5169$as_echo "$OBJDUMP" >&6; }
5170else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172$as_echo "no" >&6; }
5173fi
5174
5175
5176fi
5177if test -z "$ac_cv_prog_OBJDUMP"; then
5178 ac_ct_OBJDUMP=$OBJDUMP
5179 # Extract the first word of "objdump", so it can be a program name with args.
5180set dummy objdump; ac_word=$2
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182$as_echo_n "checking for $ac_word... " >&6; }
5183if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185else
5186 if test -n "$ac_ct_OBJDUMP"; then
5187 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
5196 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200done
5201 done
5202IFS=$as_save_IFS
5203
5204fi
5205fi
5206ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5207if test -n "$ac_ct_OBJDUMP"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5209$as_echo "$ac_ct_OBJDUMP" >&6; }
5210else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212$as_echo "no" >&6; }
5213fi
5214
5215 if test "x$ac_ct_OBJDUMP" = x; then
5216 OBJDUMP="false"
5217 else
5218 case $cross_compiling:$ac_tool_warned in
5219yes:)
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5222ac_tool_warned=yes ;;
5223esac
5224 OBJDUMP=$ac_ct_OBJDUMP
5225 fi
5226else
5227 OBJDUMP="$ac_cv_prog_OBJDUMP"
5228fi
5229
5230test -z "$OBJDUMP" && OBJDUMP=objdump
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5241$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5242if ${lt_cv_deplibs_check_method+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244else
5245 lt_cv_file_magic_cmd='$MAGIC_CMD'
5246lt_cv_file_magic_test_file=
5247lt_cv_deplibs_check_method='unknown'
5248# Need to set the preceding variable on all platforms that support
5249# interlibrary dependencies.
5250# 'none' -- dependencies not supported.
ac9cc135 5251# 'unknown' -- same as none, but documents that we really don't know.
10946b02
AX
5252# 'pass_all' -- all dependencies passed with no checks.
5253# 'test_compile' -- check by making test program.
5254# 'file_magic [[regex]]' -- check by looking for files in library path
ac9cc135
AX
5255# that responds to the $file_magic_cmd with a given extended regex.
5256# If you have 'file' or equivalent on your system and you're not sure
5257# whether 'pass_all' will *always* work, you probably want this one.
10946b02
AX
5258
5259case $host_os in
5260aix[4-9]*)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264beos*)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5267
5268bsdi[45]*)
5269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5270 lt_cv_file_magic_cmd='/usr/bin/file -L'
5271 lt_cv_file_magic_test_file=/shlib/libc.so
5272 ;;
5273
5274cygwin*)
5275 # func_win32_libid is a shell function defined in ltmain.sh
5276 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5277 lt_cv_file_magic_cmd='func_win32_libid'
5278 ;;
5279
5280mingw* | pw32*)
5281 # Base MSYS/MinGW do not provide the 'file' command needed by
5282 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5283 # unless we find 'file', for example because we are cross-compiling.
ac9cc135 5284 if ( file / ) >/dev/null 2>&1; then
10946b02
AX
5285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5286 lt_cv_file_magic_cmd='func_win32_libid'
5287 else
5288 # Keep this pattern in sync with the one in func_win32_libid.
5289 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5290 lt_cv_file_magic_cmd='$OBJDUMP -f'
5291 fi
5292 ;;
5293
5294cegcc*)
5295 # use the weaker test based on 'objdump'. See mingw*.
5296 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5297 lt_cv_file_magic_cmd='$OBJDUMP -f'
5298 ;;
5299
5300darwin* | rhapsody*)
5301 lt_cv_deplibs_check_method=pass_all
5302 ;;
5303
5304freebsd* | dragonfly*)
5305 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5306 case $host_cpu in
5307 i*86 )
5308 # Not sure whether the presence of OpenBSD here was a mistake.
5309 # Let's accept both of them until this is cleared up.
5310 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5311 lt_cv_file_magic_cmd=/usr/bin/file
5312 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5313 ;;
5314 esac
5315 else
5316 lt_cv_deplibs_check_method=pass_all
5317 fi
5318 ;;
5319
10946b02
AX
5320haiku*)
5321 lt_cv_deplibs_check_method=pass_all
5322 ;;
5323
5324hpux10.20* | hpux11*)
5325 lt_cv_file_magic_cmd=/usr/bin/file
5326 case $host_cpu in
5327 ia64*)
5328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5329 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5330 ;;
5331 hppa*64*)
5332 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]'
5333 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5334 ;;
5335 *)
5336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5337 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5338 ;;
5339 esac
5340 ;;
5341
5342interix[3-9]*)
5343 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5345 ;;
5346
5347irix5* | irix6* | nonstopux*)
5348 case $LD in
5349 *-32|*"-32 ") libmagic=32-bit;;
5350 *-n32|*"-n32 ") libmagic=N32;;
5351 *-64|*"-64 ") libmagic=64-bit;;
5352 *) libmagic=never-match;;
5353 esac
5354 lt_cv_deplibs_check_method=pass_all
5355 ;;
5356
5357# This must be glibc/ELF.
ac9cc135 5358linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10946b02
AX
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361
2ea56c1d 5362netbsd*)
10946b02
AX
5363 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5365 else
5366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5367 fi
5368 ;;
5369
5370newos6*)
5371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5372 lt_cv_file_magic_cmd=/usr/bin/file
5373 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5374 ;;
5375
5376*nto* | *qnx*)
5377 lt_cv_deplibs_check_method=pass_all
5378 ;;
5379
ac9cc135
AX
5380openbsd* | bitrig*)
5381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10946b02
AX
5382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5383 else
5384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5385 fi
5386 ;;
5387
5388osf3* | osf4* | osf5*)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391
5392rdos*)
5393 lt_cv_deplibs_check_method=pass_all
5394 ;;
5395
5396solaris*)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
5399
5400sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403
5404sysv4 | sysv4.3*)
5405 case $host_vendor in
5406 motorola)
5407 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]'
5408 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5409 ;;
5410 ncr)
5411 lt_cv_deplibs_check_method=pass_all
5412 ;;
5413 sequent)
5414 lt_cv_file_magic_cmd='/bin/file'
5415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5416 ;;
5417 sni)
5418 lt_cv_file_magic_cmd='/bin/file'
5419 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5420 lt_cv_file_magic_test_file=/lib/libc.so
5421 ;;
5422 siemens)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425 pc)
5426 lt_cv_deplibs_check_method=pass_all
5427 ;;
5428 esac
5429 ;;
5430
5431tpf*)
5432 lt_cv_deplibs_check_method=pass_all
5433 ;;
ac9cc135
AX
5434os2*)
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
10946b02
AX
5437esac
5438
5439fi
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5441$as_echo "$lt_cv_deplibs_check_method" >&6; }
5442
5443file_magic_glob=
5444want_nocaseglob=no
5445if test "$build" = "$host"; then
5446 case $host_os in
5447 mingw* | pw32*)
5448 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5449 want_nocaseglob=yes
5450 else
5451 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5452 fi
5453 ;;
5454 esac
5455fi
5456
5457file_magic_cmd=$lt_cv_file_magic_cmd
5458deplibs_check_method=$lt_cv_deplibs_check_method
5459test -z "$deplibs_check_method" && deplibs_check_method=unknown
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482if test -n "$ac_tool_prefix"; then
5483 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5484set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486$as_echo_n "checking for $ac_word... " >&6; }
5487if ${ac_cv_prog_DLLTOOL+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489else
5490 if test -n "$DLLTOOL"; then
5491 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
5500 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504done
5505 done
5506IFS=$as_save_IFS
5507
5508fi
5509fi
5510DLLTOOL=$ac_cv_prog_DLLTOOL
5511if test -n "$DLLTOOL"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5513$as_echo "$DLLTOOL" >&6; }
5514else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516$as_echo "no" >&6; }
5517fi
5518
5519
5520fi
5521if test -z "$ac_cv_prog_DLLTOOL"; then
5522 ac_ct_DLLTOOL=$DLLTOOL
5523 # Extract the first word of "dlltool", so it can be a program name with args.
5524set dummy dlltool; ac_word=$2
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526$as_echo_n "checking for $ac_word... " >&6; }
5527if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529else
5530 if test -n "$ac_ct_DLLTOOL"; then
5531 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5532else
5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH
5535do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
5540 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544done
5545 done
5546IFS=$as_save_IFS
5547
5548fi
5549fi
5550ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5551if test -n "$ac_ct_DLLTOOL"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5553$as_echo "$ac_ct_DLLTOOL" >&6; }
5554else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }
5557fi
5558
5559 if test "x$ac_ct_DLLTOOL" = x; then
5560 DLLTOOL="false"
5561 else
5562 case $cross_compiling:$ac_tool_warned in
5563yes:)
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5566ac_tool_warned=yes ;;
5567esac
5568 DLLTOOL=$ac_ct_DLLTOOL
5569 fi
5570else
5571 DLLTOOL="$ac_cv_prog_DLLTOOL"
5572fi
5573
5574test -z "$DLLTOOL" && DLLTOOL=dlltool
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5586$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5587if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589else
5590 lt_cv_sharedlib_from_linklib_cmd='unknown'
5591
5592case $host_os in
5593cygwin* | mingw* | pw32* | cegcc*)
ac9cc135
AX
5594 # two different shell functions defined in ltmain.sh;
5595 # decide which one to use based on capabilities of $DLLTOOL
10946b02
AX
5596 case `$DLLTOOL --help 2>&1` in
5597 *--identify-strict*)
5598 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5599 ;;
5600 *)
5601 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5602 ;;
5603 esac
5604 ;;
5605*)
5606 # fallback: assume linklib IS sharedlib
ac9cc135 5607 lt_cv_sharedlib_from_linklib_cmd=$ECHO
10946b02
AX
5608 ;;
5609esac
5610
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5613$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5614sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5615test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5616
5617
5618
5619
5620
5621
5622
5623
5624if test -n "$ac_tool_prefix"; then
5625 for ac_prog in ar
5626 do
5627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5628set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630$as_echo_n "checking for $ac_word... " >&6; }
5631if ${ac_cv_prog_AR+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633else
5634 if test -n "$AR"; then
5635 ac_cv_prog_AR="$AR" # Let the user override the test.
5636else
5637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH
5639do
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 5643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
5644 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 break 2
5647 fi
5648done
5649 done
5650IFS=$as_save_IFS
5651
5652fi
5653fi
5654AR=$ac_cv_prog_AR
5655if test -n "$AR"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5657$as_echo "$AR" >&6; }
5658else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660$as_echo "no" >&6; }
5661fi
5662
5663
5664 test -n "$AR" && break
5665 done
5666fi
5667if test -z "$AR"; then
5668 ac_ct_AR=$AR
5669 for ac_prog in ar
5670do
5671 # Extract the first word of "$ac_prog", so it can be a program name with args.
5672set dummy $ac_prog; ac_word=$2
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674$as_echo_n "checking for $ac_word... " >&6; }
5675if ${ac_cv_prog_ac_ct_AR+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677else
5678 if test -n "$ac_ct_AR"; then
5679 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5680else
5681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682for as_dir in $PATH
5683do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
5688 ac_cv_prog_ac_ct_AR="$ac_prog"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692done
5693 done
5694IFS=$as_save_IFS
5695
5696fi
5697fi
5698ac_ct_AR=$ac_cv_prog_ac_ct_AR
5699if test -n "$ac_ct_AR"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5701$as_echo "$ac_ct_AR" >&6; }
5702else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704$as_echo "no" >&6; }
5705fi
5706
5707
5708 test -n "$ac_ct_AR" && break
5709done
5710
5711 if test "x$ac_ct_AR" = x; then
5712 AR="false"
5713 else
5714 case $cross_compiling:$ac_tool_warned in
5715yes:)
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5718ac_tool_warned=yes ;;
5719esac
5720 AR=$ac_ct_AR
5721 fi
5722fi
5723
5724: ${AR=ar}
5725: ${AR_FLAGS=cru}
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5738$as_echo_n "checking for archiver @FILE support... " >&6; }
5739if ${lt_cv_ar_at_file+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741else
5742 lt_cv_ar_at_file=no
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744/* end confdefs.h. */
5745
5746int
5747main ()
5748{
5749
5750 ;
5751 return 0;
5752}
5753_ACEOF
5754if ac_fn_c_try_compile "$LINENO"; then :
5755 echo conftest.$ac_objext > conftest.lst
5756 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5758 (eval $lt_ar_try) 2>&5
5759 ac_status=$?
5760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5761 test $ac_status = 0; }
ac9cc135 5762 if test 0 -eq "$ac_status"; then
10946b02
AX
5763 # Ensure the archiver fails upon bogus file names.
5764 rm -f conftest.$ac_objext libconftest.a
5765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5766 (eval $lt_ar_try) 2>&5
5767 ac_status=$?
5768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769 test $ac_status = 0; }
ac9cc135 5770 if test 0 -ne "$ac_status"; then
10946b02
AX
5771 lt_cv_ar_at_file=@
5772 fi
5773 fi
5774 rm -f conftest.* libconftest.a
5775
5776fi
5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778
5779fi
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5781$as_echo "$lt_cv_ar_at_file" >&6; }
5782
ac9cc135 5783if test no = "$lt_cv_ar_at_file"; then
10946b02
AX
5784 archiver_list_spec=
5785else
5786 archiver_list_spec=$lt_cv_ar_at_file
5787fi
5788
5789
5790
5791
5792
5793
5794
5795if test -n "$ac_tool_prefix"; then
5796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5797set dummy ${ac_tool_prefix}strip; ac_word=$2
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799$as_echo_n "checking for $ac_word... " >&6; }
5800if ${ac_cv_prog_STRIP+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802else
5803 if test -n "$STRIP"; then
5804 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 5812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
5813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5816 fi
5817done
5818 done
5819IFS=$as_save_IFS
5820
5821fi
5822fi
5823STRIP=$ac_cv_prog_STRIP
5824if test -n "$STRIP"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5826$as_echo "$STRIP" >&6; }
5827else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829$as_echo "no" >&6; }
5830fi
5831
5832
5833fi
5834if test -z "$ac_cv_prog_STRIP"; then
5835 ac_ct_STRIP=$STRIP
5836 # Extract the first word of "strip", so it can be a program name with args.
5837set dummy strip; ac_word=$2
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839$as_echo_n "checking for $ac_word... " >&6; }
5840if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842else
5843 if test -n "$ac_ct_STRIP"; then
5844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5845else
5846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847for as_dir in $PATH
5848do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 5852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
5853 ac_cv_prog_ac_ct_STRIP="strip"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857done
5858 done
5859IFS=$as_save_IFS
5860
5861fi
5862fi
5863ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5864if test -n "$ac_ct_STRIP"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5866$as_echo "$ac_ct_STRIP" >&6; }
5867else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869$as_echo "no" >&6; }
5870fi
5871
5872 if test "x$ac_ct_STRIP" = x; then
5873 STRIP=":"
5874 else
5875 case $cross_compiling:$ac_tool_warned in
5876yes:)
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879ac_tool_warned=yes ;;
5880esac
5881 STRIP=$ac_ct_STRIP
5882 fi
5883else
5884 STRIP="$ac_cv_prog_STRIP"
5885fi
5886
5887test -z "$STRIP" && STRIP=:
5888
5889
5890
5891
5892
5893
5894if test -n "$ac_tool_prefix"; then
5895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5896set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898$as_echo_n "checking for $ac_word... " >&6; }
5899if ${ac_cv_prog_RANLIB+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901else
5902 if test -n "$RANLIB"; then
5903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 5911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
5912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916done
5917 done
5918IFS=$as_save_IFS
5919
5920fi
5921fi
5922RANLIB=$ac_cv_prog_RANLIB
5923if test -n "$RANLIB"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5925$as_echo "$RANLIB" >&6; }
5926else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928$as_echo "no" >&6; }
5929fi
5930
5931
5932fi
5933if test -z "$ac_cv_prog_RANLIB"; then
5934 ac_ct_RANLIB=$RANLIB
5935 # Extract the first word of "ranlib", so it can be a program name with args.
5936set dummy ranlib; ac_word=$2
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938$as_echo_n "checking for $ac_word... " >&6; }
5939if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941else
5942 if test -n "$ac_ct_RANLIB"; then
5943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5944else
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 5951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
5952 ac_cv_prog_ac_ct_RANLIB="ranlib"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5955 fi
5956done
5957 done
5958IFS=$as_save_IFS
5959
5960fi
5961fi
5962ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5963if test -n "$ac_ct_RANLIB"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5965$as_echo "$ac_ct_RANLIB" >&6; }
5966else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968$as_echo "no" >&6; }
5969fi
5970
5971 if test "x$ac_ct_RANLIB" = x; then
5972 RANLIB=":"
5973 else
5974 case $cross_compiling:$ac_tool_warned in
5975yes:)
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5978ac_tool_warned=yes ;;
5979esac
5980 RANLIB=$ac_ct_RANLIB
5981 fi
5982else
5983 RANLIB="$ac_cv_prog_RANLIB"
5984fi
5985
5986test -z "$RANLIB" && RANLIB=:
5987
5988
5989
5990
5991
5992
5993# Determine commands to create old-style static archives.
5994old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5995old_postinstall_cmds='chmod 644 $oldlib'
5996old_postuninstall_cmds=
5997
5998if test -n "$RANLIB"; then
5999 case $host_os in
ac9cc135 6000 bitrig* | openbsd*)
10946b02
AX
6001 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6002 ;;
6003 *)
6004 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6005 ;;
6006 esac
6007 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6008fi
6009
6010case $host_os in
6011 darwin*)
6012 lock_old_archive_extraction=yes ;;
6013 *)
6014 lock_old_archive_extraction=no ;;
6015esac
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
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# If no C compiler was specified, use CC.
6056LTCC=${LTCC-"$CC"}
6057
6058# If no C compiler flags were specified, use CFLAGS.
6059LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6060
6061# Allow CC to be a program name with arguments.
6062compiler=$CC
6063
6064
6065# Check for command to grab the raw symbol name followed by C symbol from nm.
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6067$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6068if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6069 $as_echo_n "(cached) " >&6
6070else
6071
6072# These are sane defaults that work on at least a few old systems.
6073# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6074
6075# Character class describing NM global symbol codes.
6076symcode='[BCDEGRST]'
6077
6078# Regexp to match symbols that can be accessed directly from C.
6079sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6080
6081# Define system-specific variables.
6082case $host_os in
6083aix*)
6084 symcode='[BCDT]'
6085 ;;
6086cygwin* | mingw* | pw32* | cegcc*)
6087 symcode='[ABCDGISTW]'
6088 ;;
6089hpux*)
ac9cc135 6090 if test ia64 = "$host_cpu"; then
10946b02
AX
6091 symcode='[ABCDEGRST]'
6092 fi
6093 ;;
6094irix* | nonstopux*)
6095 symcode='[BCDEGRST]'
6096 ;;
6097osf*)
6098 symcode='[BCDEGQRST]'
6099 ;;
6100solaris*)
6101 symcode='[BDRT]'
6102 ;;
6103sco3.2v5*)
6104 symcode='[DT]'
6105 ;;
6106sysv4.2uw2*)
6107 symcode='[DT]'
6108 ;;
6109sysv5* | sco5v6* | unixware* | OpenUNIX*)
6110 symcode='[ABDT]'
6111 ;;
6112sysv4)
6113 symcode='[DFNSTU]'
6114 ;;
6115esac
6116
6117# If we're using GNU nm, then use its standard symbol codes.
6118case `$NM -V 2>&1` in
6119*GNU* | *'with BFD'*)
6120 symcode='[ABCDGIRSTW]' ;;
6121esac
6122
ac9cc135
AX
6123if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6124 # Gets list of data symbols to import.
6125 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6126 # Adjust the below global symbol transforms to fixup imported variables.
6127 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6128 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6129 lt_c_name_lib_hook="\
6130 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6131 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6132else
6133 # Disable hooks by default.
6134 lt_cv_sys_global_symbol_to_import=
6135 lt_cdecl_hook=
6136 lt_c_name_hook=
6137 lt_c_name_lib_hook=
6138fi
6139
10946b02
AX
6140# Transform an extracted symbol line into a proper C declaration.
6141# Some systems (esp. on ia64) link data and code symbols differently,
6142# so use this general approach.
ac9cc135
AX
6143lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6144$lt_cdecl_hook\
6145" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6146" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10946b02
AX
6147
6148# Transform an extracted symbol line into symbol name and symbol address
ac9cc135
AX
6149lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6150$lt_c_name_hook\
6151" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6152" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6153
6154# Transform an extracted symbol line into symbol name with lib prefix and
6155# symbol address.
6156lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6157$lt_c_name_lib_hook\
6158" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6159" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6160" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10946b02
AX
6161
6162# Handle CRLF in mingw tool chain
6163opt_cr=
6164case $build_os in
6165mingw*)
6166 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6167 ;;
6168esac
6169
6170# Try without a prefix underscore, then with it.
6171for ac_symprfx in "" "_"; do
6172
6173 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6174 symxfrm="\\1 $ac_symprfx\\2 \\2"
6175
6176 # Write the raw and C identifiers.
6177 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
ac9cc135
AX
6178 # Fake it for dumpbin and say T for any non-static function,
6179 # D for any global variable and I for any imported variable.
10946b02
AX
6180 # Also find C++ and __fastcall symbols from MSVC++,
6181 # which start with @ or ?.
6182 lt_cv_sys_global_symbol_pipe="$AWK '"\
6183" {last_section=section; section=\$ 3};"\
6184" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6185" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
ac9cc135
AX
6186" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6187" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6188" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10946b02
AX
6189" \$ 0!~/External *\|/{next};"\
6190" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6191" {if(hide[section]) next};"\
ac9cc135
AX
6192" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6193" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6194" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6195" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10946b02
AX
6196" ' prfx=^$ac_symprfx"
6197 else
6198 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6199 fi
6200 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6201
6202 # Check to see that the pipe works correctly.
6203 pipe_works=no
6204
6205 rm -f conftest*
6206 cat > conftest.$ac_ext <<_LT_EOF
6207#ifdef __cplusplus
6208extern "C" {
6209#endif
6210char nm_test_var;
6211void nm_test_func(void);
6212void nm_test_func(void){}
6213#ifdef __cplusplus
6214}
6215#endif
6216int main(){nm_test_var='a';nm_test_func();return(0);}
6217_LT_EOF
6218
6219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6220 (eval $ac_compile) 2>&5
6221 ac_status=$?
6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223 test $ac_status = 0; }; then
6224 # Now try to grab the symbols.
6225 nlist=conftest.nm
6226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6227 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6228 ac_status=$?
6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230 test $ac_status = 0; } && test -s "$nlist"; then
6231 # Try sorting and uniquifying the output.
6232 if sort "$nlist" | uniq > "$nlist"T; then
6233 mv -f "$nlist"T "$nlist"
6234 else
6235 rm -f "$nlist"T
6236 fi
6237
6238 # Make sure that we snagged all the symbols we need.
6239 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6240 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6241 cat <<_LT_EOF > conftest.$ac_ext
6242/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
ac9cc135
AX
6243#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6244/* DATA imports from DLLs on WIN32 can't be const, because runtime
10946b02
AX
6245 relocations are performed -- see ld's documentation on pseudo-relocs. */
6246# define LT_DLSYM_CONST
ac9cc135 6247#elif defined __osf__
10946b02
AX
6248/* This system does not cope well with relocations in const data. */
6249# define LT_DLSYM_CONST
6250#else
6251# define LT_DLSYM_CONST const
6252#endif
6253
6254#ifdef __cplusplus
6255extern "C" {
6256#endif
6257
6258_LT_EOF
6259 # Now generate the symbol file.
6260 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6261
6262 cat <<_LT_EOF >> conftest.$ac_ext
6263
6264/* The mapping between symbol names and symbols. */
6265LT_DLSYM_CONST struct {
6266 const char *name;
6267 void *address;
6268}
6269lt__PROGRAM__LTX_preloaded_symbols[] =
6270{
6271 { "@PROGRAM@", (void *) 0 },
6272_LT_EOF
ac9cc135 6273 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10946b02
AX
6274 cat <<\_LT_EOF >> conftest.$ac_ext
6275 {0, (void *) 0}
6276};
6277
6278/* This works around a problem in FreeBSD linker */
6279#ifdef FREEBSD_WORKAROUND
6280static const void *lt_preloaded_setup() {
6281 return lt__PROGRAM__LTX_preloaded_symbols;
6282}
6283#endif
6284
6285#ifdef __cplusplus
6286}
6287#endif
6288_LT_EOF
6289 # Now try linking the two files.
6290 mv conftest.$ac_objext conftstm.$ac_objext
6291 lt_globsym_save_LIBS=$LIBS
6292 lt_globsym_save_CFLAGS=$CFLAGS
ac9cc135 6293 LIBS=conftstm.$ac_objext
10946b02
AX
6294 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6296 (eval $ac_link) 2>&5
6297 ac_status=$?
6298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
ac9cc135 6299 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10946b02
AX
6300 pipe_works=yes
6301 fi
6302 LIBS=$lt_globsym_save_LIBS
6303 CFLAGS=$lt_globsym_save_CFLAGS
6304 else
6305 echo "cannot find nm_test_func in $nlist" >&5
6306 fi
6307 else
6308 echo "cannot find nm_test_var in $nlist" >&5
6309 fi
6310 else
6311 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6312 fi
6313 else
6314 echo "$progname: failed program was:" >&5
6315 cat conftest.$ac_ext >&5
6316 fi
6317 rm -rf conftest* conftst*
6318
6319 # Do not use the global_symbol_pipe unless it works.
ac9cc135 6320 if test yes = "$pipe_works"; then
10946b02
AX
6321 break
6322 else
6323 lt_cv_sys_global_symbol_pipe=
6324 fi
6325done
6326
6327fi
6328
6329if test -z "$lt_cv_sys_global_symbol_pipe"; then
6330 lt_cv_sys_global_symbol_to_cdecl=
6331fi
6332if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6334$as_echo "failed" >&6; }
6335else
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6337$as_echo "ok" >&6; }
6338fi
6339
6340# Response file support.
6341if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6342 nm_file_list_spec='@'
6343elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6344 nm_file_list_spec='@'
6345fi
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
ac9cc135
AX
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
10946b02
AX
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6384$as_echo_n "checking for sysroot... " >&6; }
6385
6386# Check whether --with-sysroot was given.
6387if test "${with_sysroot+set}" = set; then :
6388 withval=$with_sysroot;
6389else
6390 with_sysroot=no
6391fi
6392
6393
6394lt_sysroot=
ac9cc135 6395case $with_sysroot in #(
10946b02 6396 yes)
ac9cc135 6397 if test yes = "$GCC"; then
10946b02
AX
6398 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6399 fi
6400 ;; #(
6401 /*)
6402 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6403 ;; #(
6404 no|'')
6405 ;; #(
6406 *)
ac9cc135
AX
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6408$as_echo "$with_sysroot" >&6; }
10946b02
AX
6409 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6410 ;;
6411esac
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6414$as_echo "${lt_sysroot:-no}" >&6; }
6415
6416
6417
6418
6419
ac9cc135
AX
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6421$as_echo_n "checking for a working dd... " >&6; }
6422if ${ac_cv_path_lt_DD+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424else
6425 printf 0123456789abcdef0123456789abcdef >conftest.i
6426cat conftest.i conftest.i >conftest2.i
6427: ${lt_DD:=$DD}
6428if test -z "$lt_DD"; then
6429 ac_path_lt_DD_found=false
6430 # Loop through the user's path and test for each of PROGNAME-LIST
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_prog in dd; do
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6439 as_fn_executable_p "$ac_path_lt_DD" || continue
6440if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6441 cmp -s conftest.i conftest.out \
6442 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6443fi
6444 $ac_path_lt_DD_found && break 3
6445 done
6446 done
6447 done
6448IFS=$as_save_IFS
6449 if test -z "$ac_cv_path_lt_DD"; then
6450 :
6451 fi
6452else
6453 ac_cv_path_lt_DD=$lt_DD
6454fi
6455
6456rm -f conftest.i conftest2.i conftest.out
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6459$as_echo "$ac_cv_path_lt_DD" >&6; }
6460
6461
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6463$as_echo_n "checking how to truncate binary pipes... " >&6; }
6464if ${lt_cv_truncate_bin+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466else
6467 printf 0123456789abcdef0123456789abcdef >conftest.i
6468cat conftest.i conftest.i >conftest2.i
6469lt_cv_truncate_bin=
6470if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6471 cmp -s conftest.i conftest.out \
6472 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6473fi
6474rm -f conftest.i conftest2.i conftest.out
6475test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6476fi
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6478$as_echo "$lt_cv_truncate_bin" >&6; }
6479
6480
6481
6482
6483
6484
6485
6486# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6487func_cc_basename ()
6488{
6489 for cc_temp in $*""; do
6490 case $cc_temp in
6491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6493 \-*) ;;
6494 *) break;;
6495 esac
6496 done
6497 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6498}
6499
10946b02
AX
6500# Check whether --enable-libtool-lock was given.
6501if test "${enable_libtool_lock+set}" = set; then :
6502 enableval=$enable_libtool_lock;
6503fi
6504
ac9cc135 6505test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10946b02
AX
6506
6507# Some flags need to be propagated to the compiler or linker for good
6508# libtool support.
6509case $host in
6510ia64-*-hpux*)
ac9cc135
AX
6511 # Find out what ABI is being produced by ac_compile, and set mode
6512 # options accordingly.
10946b02
AX
6513 echo 'int i;' > conftest.$ac_ext
6514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6515 (eval $ac_compile) 2>&5
6516 ac_status=$?
6517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6518 test $ac_status = 0; }; then
6519 case `/usr/bin/file conftest.$ac_objext` in
6520 *ELF-32*)
ac9cc135 6521 HPUX_IA64_MODE=32
10946b02
AX
6522 ;;
6523 *ELF-64*)
ac9cc135 6524 HPUX_IA64_MODE=64
10946b02
AX
6525 ;;
6526 esac
6527 fi
6528 rm -rf conftest*
6529 ;;
6530*-*-irix6*)
ac9cc135
AX
6531 # Find out what ABI is being produced by ac_compile, and set linker
6532 # options accordingly.
10946b02
AX
6533 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6535 (eval $ac_compile) 2>&5
6536 ac_status=$?
6537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6538 test $ac_status = 0; }; then
ac9cc135 6539 if test yes = "$lt_cv_prog_gnu_ld"; then
10946b02
AX
6540 case `/usr/bin/file conftest.$ac_objext` in
6541 *32-bit*)
6542 LD="${LD-ld} -melf32bsmip"
6543 ;;
6544 *N32*)
6545 LD="${LD-ld} -melf32bmipn32"
6546 ;;
6547 *64-bit*)
6548 LD="${LD-ld} -melf64bmip"
6549 ;;
6550 esac
6551 else
6552 case `/usr/bin/file conftest.$ac_objext` in
6553 *32-bit*)
6554 LD="${LD-ld} -32"
6555 ;;
6556 *N32*)
6557 LD="${LD-ld} -n32"
6558 ;;
6559 *64-bit*)
6560 LD="${LD-ld} -64"
6561 ;;
6562 esac
6563 fi
6564 fi
6565 rm -rf conftest*
6566 ;;
6567
ac9cc135
AX
6568mips64*-*linux*)
6569 # Find out what ABI is being produced by ac_compile, and set linker
6570 # options accordingly.
6571 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6573 (eval $ac_compile) 2>&5
6574 ac_status=$?
6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576 test $ac_status = 0; }; then
6577 emul=elf
6578 case `/usr/bin/file conftest.$ac_objext` in
6579 *32-bit*)
6580 emul="${emul}32"
6581 ;;
6582 *64-bit*)
6583 emul="${emul}64"
6584 ;;
6585 esac
6586 case `/usr/bin/file conftest.$ac_objext` in
6587 *MSB*)
6588 emul="${emul}btsmip"
6589 ;;
6590 *LSB*)
6591 emul="${emul}ltsmip"
6592 ;;
6593 esac
6594 case `/usr/bin/file conftest.$ac_objext` in
6595 *N32*)
6596 emul="${emul}n32"
6597 ;;
6598 esac
6599 LD="${LD-ld} -m $emul"
6600 fi
6601 rm -rf conftest*
6602 ;;
6603
6604x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10946b02 6605s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
ac9cc135
AX
6606 # Find out what ABI is being produced by ac_compile, and set linker
6607 # options accordingly. Note that the listed cases only cover the
6608 # situations where additional linker options are needed (such as when
6609 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6610 # vice versa); the common cases where no linker options are needed do
6611 # not appear in the list.
10946b02
AX
6612 echo 'int i;' > conftest.$ac_ext
6613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6614 (eval $ac_compile) 2>&5
6615 ac_status=$?
6616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6617 test $ac_status = 0; }; then
6618 case `/usr/bin/file conftest.o` in
6619 *32-bit*)
6620 case $host in
6621 x86_64-*kfreebsd*-gnu)
6622 LD="${LD-ld} -m elf_i386_fbsd"
6623 ;;
6624 x86_64-*linux*)
ac9cc135
AX
6625 case `/usr/bin/file conftest.o` in
6626 *x86-64*)
6627 LD="${LD-ld} -m elf32_x86_64"
6628 ;;
6629 *)
6630 LD="${LD-ld} -m elf_i386"
6631 ;;
6632 esac
10946b02 6633 ;;
ac9cc135
AX
6634 powerpc64le-*linux*)
6635 LD="${LD-ld} -m elf32lppclinux"
6636 ;;
6637 powerpc64-*linux*)
10946b02
AX
6638 LD="${LD-ld} -m elf32ppclinux"
6639 ;;
6640 s390x-*linux*)
6641 LD="${LD-ld} -m elf_s390"
6642 ;;
6643 sparc64-*linux*)
6644 LD="${LD-ld} -m elf32_sparc"
6645 ;;
6646 esac
6647 ;;
6648 *64-bit*)
6649 case $host in
6650 x86_64-*kfreebsd*-gnu)
6651 LD="${LD-ld} -m elf_x86_64_fbsd"
6652 ;;
6653 x86_64-*linux*)
6654 LD="${LD-ld} -m elf_x86_64"
6655 ;;
ac9cc135
AX
6656 powerpcle-*linux*)
6657 LD="${LD-ld} -m elf64lppc"
6658 ;;
6659 powerpc-*linux*)
10946b02
AX
6660 LD="${LD-ld} -m elf64ppc"
6661 ;;
6662 s390*-*linux*|s390*-*tpf*)
6663 LD="${LD-ld} -m elf64_s390"
6664 ;;
6665 sparc*-*linux*)
6666 LD="${LD-ld} -m elf64_sparc"
6667 ;;
6668 esac
6669 ;;
6670 esac
6671 fi
6672 rm -rf conftest*
6673 ;;
6674
6675*-*-sco3.2v5*)
6676 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
ac9cc135 6677 SAVE_CFLAGS=$CFLAGS
10946b02
AX
6678 CFLAGS="$CFLAGS -belf"
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6680$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6681if ${lt_cv_cc_needs_belf+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683else
6684 ac_ext=c
6685ac_cpp='$CPP $CPPFLAGS'
6686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6688ac_compiler_gnu=$ac_cv_c_compiler_gnu
6689
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h. */
6692
6693int
6694main ()
6695{
6696
6697 ;
6698 return 0;
6699}
6700_ACEOF
6701if ac_fn_c_try_link "$LINENO"; then :
6702 lt_cv_cc_needs_belf=yes
6703else
6704 lt_cv_cc_needs_belf=no
6705fi
6706rm -f core conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
6708 ac_ext=c
6709ac_cpp='$CPP $CPPFLAGS'
6710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712ac_compiler_gnu=$ac_cv_c_compiler_gnu
6713
6714fi
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6716$as_echo "$lt_cv_cc_needs_belf" >&6; }
ac9cc135 6717 if test yes != "$lt_cv_cc_needs_belf"; then
10946b02 6718 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
ac9cc135 6719 CFLAGS=$SAVE_CFLAGS
10946b02
AX
6720 fi
6721 ;;
6722*-*solaris*)
ac9cc135
AX
6723 # Find out what ABI is being produced by ac_compile, and set linker
6724 # options accordingly.
10946b02
AX
6725 echo 'int i;' > conftest.$ac_ext
6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6727 (eval $ac_compile) 2>&5
6728 ac_status=$?
6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; }; then
6731 case `/usr/bin/file conftest.o` in
6732 *64-bit*)
6733 case $lt_cv_prog_gnu_ld in
6734 yes*)
6735 case $host in
ac9cc135 6736 i?86-*-solaris*|x86_64-*-solaris*)
10946b02
AX
6737 LD="${LD-ld} -m elf_x86_64"
6738 ;;
6739 sparc*-*-solaris*)
6740 LD="${LD-ld} -m elf64_sparc"
6741 ;;
6742 esac
6743 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6744 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
ac9cc135 6745 LD=${LD-ld}_sol2
10946b02
AX
6746 fi
6747 ;;
6748 *)
6749 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6750 LD="${LD-ld} -64"
6751 fi
6752 ;;
6753 esac
6754 ;;
6755 esac
6756 fi
6757 rm -rf conftest*
6758 ;;
6759esac
6760
ac9cc135 6761need_locks=$enable_libtool_lock
10946b02
AX
6762
6763if test -n "$ac_tool_prefix"; then
6764 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6765set dummy ${ac_tool_prefix}mt; ac_word=$2
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767$as_echo_n "checking for $ac_word... " >&6; }
6768if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770else
6771 if test -n "$MANIFEST_TOOL"; then
6772 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6773else
6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 6780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
6781 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785done
6786 done
6787IFS=$as_save_IFS
6788
6789fi
6790fi
6791MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6792if test -n "$MANIFEST_TOOL"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6794$as_echo "$MANIFEST_TOOL" >&6; }
6795else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797$as_echo "no" >&6; }
6798fi
6799
6800
6801fi
6802if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6803 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6804 # Extract the first word of "mt", so it can be a program name with args.
6805set dummy mt; ac_word=$2
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807$as_echo_n "checking for $ac_word... " >&6; }
6808if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810else
6811 if test -n "$ac_ct_MANIFEST_TOOL"; then
6812 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6813else
6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 6820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
6821 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825done
6826 done
6827IFS=$as_save_IFS
6828
6829fi
6830fi
6831ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6832if test -n "$ac_ct_MANIFEST_TOOL"; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6834$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6835else
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837$as_echo "no" >&6; }
6838fi
6839
6840 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6841 MANIFEST_TOOL=":"
6842 else
6843 case $cross_compiling:$ac_tool_warned in
6844yes:)
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6847ac_tool_warned=yes ;;
6848esac
6849 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6850 fi
6851else
6852 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6853fi
6854
6855test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6857$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6858if ${lt_cv_path_mainfest_tool+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860else
6861 lt_cv_path_mainfest_tool=no
6862 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6863 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6864 cat conftest.err >&5
6865 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6866 lt_cv_path_mainfest_tool=yes
6867 fi
6868 rm -f conftest*
6869fi
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6871$as_echo "$lt_cv_path_mainfest_tool" >&6; }
ac9cc135 6872if test yes != "$lt_cv_path_mainfest_tool"; then
10946b02
AX
6873 MANIFEST_TOOL=:
6874fi
6875
6876
6877
6878
6879
6880
6881 case $host_os in
6882 rhapsody* | darwin*)
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6885set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887$as_echo_n "checking for $ac_word... " >&6; }
6888if ${ac_cv_prog_DSYMUTIL+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890else
6891 if test -n "$DSYMUTIL"; then
6892 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6893else
6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
6901 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906 done
6907IFS=$as_save_IFS
6908
6909fi
6910fi
6911DSYMUTIL=$ac_cv_prog_DSYMUTIL
6912if test -n "$DSYMUTIL"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6914$as_echo "$DSYMUTIL" >&6; }
6915else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917$as_echo "no" >&6; }
6918fi
6919
6920
6921fi
6922if test -z "$ac_cv_prog_DSYMUTIL"; then
6923 ac_ct_DSYMUTIL=$DSYMUTIL
6924 # Extract the first word of "dsymutil", so it can be a program name with args.
6925set dummy dsymutil; ac_word=$2
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927$as_echo_n "checking for $ac_word... " >&6; }
6928if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930else
6931 if test -n "$ac_ct_DSYMUTIL"; then
6932 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6933else
6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
6941 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945done
6946 done
6947IFS=$as_save_IFS
6948
6949fi
6950fi
6951ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6952if test -n "$ac_ct_DSYMUTIL"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6954$as_echo "$ac_ct_DSYMUTIL" >&6; }
6955else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957$as_echo "no" >&6; }
6958fi
6959
6960 if test "x$ac_ct_DSYMUTIL" = x; then
6961 DSYMUTIL=":"
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964yes:)
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967ac_tool_warned=yes ;;
6968esac
6969 DSYMUTIL=$ac_ct_DSYMUTIL
6970 fi
6971else
6972 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6973fi
6974
6975 if test -n "$ac_tool_prefix"; then
6976 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6977set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979$as_echo_n "checking for $ac_word... " >&6; }
6980if ${ac_cv_prog_NMEDIT+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982else
6983 if test -n "$NMEDIT"; then
6984 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6985else
6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
6993 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997done
6998 done
6999IFS=$as_save_IFS
7000
7001fi
7002fi
7003NMEDIT=$ac_cv_prog_NMEDIT
7004if test -n "$NMEDIT"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7006$as_echo "$NMEDIT" >&6; }
7007else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009$as_echo "no" >&6; }
7010fi
7011
7012
7013fi
7014if test -z "$ac_cv_prog_NMEDIT"; then
7015 ac_ct_NMEDIT=$NMEDIT
7016 # Extract the first word of "nmedit", so it can be a program name with args.
7017set dummy nmedit; ac_word=$2
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019$as_echo_n "checking for $ac_word... " >&6; }
7020if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022else
7023 if test -n "$ac_ct_NMEDIT"; then
7024 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7025else
7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
7033 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037done
7038 done
7039IFS=$as_save_IFS
7040
7041fi
7042fi
7043ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7044if test -n "$ac_ct_NMEDIT"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7046$as_echo "$ac_ct_NMEDIT" >&6; }
7047else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049$as_echo "no" >&6; }
7050fi
7051
7052 if test "x$ac_ct_NMEDIT" = x; then
7053 NMEDIT=":"
7054 else
7055 case $cross_compiling:$ac_tool_warned in
7056yes:)
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059ac_tool_warned=yes ;;
7060esac
7061 NMEDIT=$ac_ct_NMEDIT
7062 fi
7063else
7064 NMEDIT="$ac_cv_prog_NMEDIT"
7065fi
7066
7067 if test -n "$ac_tool_prefix"; then
7068 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7069set dummy ${ac_tool_prefix}lipo; ac_word=$2
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071$as_echo_n "checking for $ac_word... " >&6; }
7072if ${ac_cv_prog_LIPO+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074else
7075 if test -n "$LIPO"; then
7076 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
7085 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089done
7090 done
7091IFS=$as_save_IFS
7092
7093fi
7094fi
7095LIPO=$ac_cv_prog_LIPO
7096if test -n "$LIPO"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7098$as_echo "$LIPO" >&6; }
7099else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102fi
7103
7104
7105fi
7106if test -z "$ac_cv_prog_LIPO"; then
7107 ac_ct_LIPO=$LIPO
7108 # Extract the first word of "lipo", so it can be a program name with args.
7109set dummy lipo; ac_word=$2
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111$as_echo_n "checking for $ac_word... " >&6; }
7112if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114else
7115 if test -n "$ac_ct_LIPO"; then
7116 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 7124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
7125 ac_cv_prog_ac_ct_LIPO="lipo"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129done
7130 done
7131IFS=$as_save_IFS
7132
7133fi
7134fi
7135ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7136if test -n "$ac_ct_LIPO"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7138$as_echo "$ac_ct_LIPO" >&6; }
7139else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141$as_echo "no" >&6; }
7142fi
7143
7144 if test "x$ac_ct_LIPO" = x; then
7145 LIPO=":"
7146 else
7147 case $cross_compiling:$ac_tool_warned in
7148yes:)
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151ac_tool_warned=yes ;;
7152esac
7153 LIPO=$ac_ct_LIPO
7154 fi
7155else
7156 LIPO="$ac_cv_prog_LIPO"
7157fi
7158
7159 if test -n "$ac_tool_prefix"; then
7160 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7161set dummy ${ac_tool_prefix}otool; ac_word=$2
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163$as_echo_n "checking for $ac_word... " >&6; }
7164if ${ac_cv_prog_OTOOL+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166else
7167 if test -n "$OTOOL"; then
7168 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7169else
7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
7177 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181done
7182 done
7183IFS=$as_save_IFS
7184
7185fi
7186fi
7187OTOOL=$ac_cv_prog_OTOOL
7188if test -n "$OTOOL"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7190$as_echo "$OTOOL" >&6; }
7191else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193$as_echo "no" >&6; }
7194fi
7195
7196
7197fi
7198if test -z "$ac_cv_prog_OTOOL"; then
7199 ac_ct_OTOOL=$OTOOL
7200 # Extract the first word of "otool", so it can be a program name with args.
7201set dummy otool; ac_word=$2
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203$as_echo_n "checking for $ac_word... " >&6; }
7204if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206else
7207 if test -n "$ac_ct_OTOOL"; then
7208 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7209else
7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 7216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
7217 ac_cv_prog_ac_ct_OTOOL="otool"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7220 fi
7221done
7222 done
7223IFS=$as_save_IFS
7224
7225fi
7226fi
7227ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7228if test -n "$ac_ct_OTOOL"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7230$as_echo "$ac_ct_OTOOL" >&6; }
7231else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233$as_echo "no" >&6; }
7234fi
7235
7236 if test "x$ac_ct_OTOOL" = x; then
7237 OTOOL=":"
7238 else
7239 case $cross_compiling:$ac_tool_warned in
7240yes:)
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7243ac_tool_warned=yes ;;
7244esac
7245 OTOOL=$ac_ct_OTOOL
7246 fi
7247else
7248 OTOOL="$ac_cv_prog_OTOOL"
7249fi
7250
7251 if test -n "$ac_tool_prefix"; then
7252 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7253set dummy ${ac_tool_prefix}otool64; ac_word=$2
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255$as_echo_n "checking for $ac_word... " >&6; }
7256if ${ac_cv_prog_OTOOL64+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258else
7259 if test -n "$OTOOL64"; then
7260 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7261else
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 7268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
7269 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273done
7274 done
7275IFS=$as_save_IFS
7276
7277fi
7278fi
7279OTOOL64=$ac_cv_prog_OTOOL64
7280if test -n "$OTOOL64"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7282$as_echo "$OTOOL64" >&6; }
7283else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285$as_echo "no" >&6; }
7286fi
7287
7288
7289fi
7290if test -z "$ac_cv_prog_OTOOL64"; then
7291 ac_ct_OTOOL64=$OTOOL64
7292 # Extract the first word of "otool64", so it can be a program name with args.
7293set dummy otool64; ac_word=$2
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295$as_echo_n "checking for $ac_word... " >&6; }
7296if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298else
7299 if test -n "$ac_ct_OTOOL64"; then
7300 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7301else
7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
ac9cc135 7308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10946b02
AX
7309 ac_cv_prog_ac_ct_OTOOL64="otool64"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7312 fi
7313done
7314 done
7315IFS=$as_save_IFS
7316
7317fi
7318fi
7319ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7320if test -n "$ac_ct_OTOOL64"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7322$as_echo "$ac_ct_OTOOL64" >&6; }
7323else
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325$as_echo "no" >&6; }
7326fi
7327
7328 if test "x$ac_ct_OTOOL64" = x; then
7329 OTOOL64=":"
7330 else
7331 case $cross_compiling:$ac_tool_warned in
7332yes:)
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7335ac_tool_warned=yes ;;
7336esac
7337 OTOOL64=$ac_ct_OTOOL64
7338 fi
7339else
7340 OTOOL64="$ac_cv_prog_OTOOL64"
7341fi
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7370$as_echo_n "checking for -single_module linker flag... " >&6; }
7371if ${lt_cv_apple_cc_single_mod+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373else
7374 lt_cv_apple_cc_single_mod=no
ac9cc135 7375 if test -z "$LT_MULTI_MODULE"; then
10946b02
AX
7376 # By default we will add the -single_module flag. You can override
7377 # by either setting the environment variable LT_MULTI_MODULE
7378 # non-empty at configure time, or by adding -multi_module to the
7379 # link flags.
7380 rm -rf libconftest.dylib*
7381 echo "int foo(void){return 1;}" > conftest.c
7382 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7383-dynamiclib -Wl,-single_module conftest.c" >&5
7384 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7385 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7386 _lt_result=$?
7387 # If there is a non-empty error log, and "single_module"
7388 # appears in it, assume the flag caused a linker warning
7389 if test -s conftest.err && $GREP single_module conftest.err; then
7390 cat conftest.err >&5
7391 # Otherwise, if the output was created with a 0 exit code from
7392 # the compiler, it worked.
ac9cc135 7393 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10946b02
AX
7394 lt_cv_apple_cc_single_mod=yes
7395 else
7396 cat conftest.err >&5
7397 fi
7398 rm -rf libconftest.dylib*
7399 rm -f conftest.*
7400 fi
7401fi
7402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7403$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7404
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7406$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7407if ${lt_cv_ld_exported_symbols_list+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409else
7410 lt_cv_ld_exported_symbols_list=no
7411 save_LDFLAGS=$LDFLAGS
7412 echo "_main" > conftest.sym
7413 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415/* end confdefs.h. */
7416
7417int
7418main ()
7419{
7420
7421 ;
7422 return 0;
7423}
7424_ACEOF
7425if ac_fn_c_try_link "$LINENO"; then :
7426 lt_cv_ld_exported_symbols_list=yes
7427else
7428 lt_cv_ld_exported_symbols_list=no
7429fi
7430rm -f core conftest.err conftest.$ac_objext \
7431 conftest$ac_exeext conftest.$ac_ext
ac9cc135 7432 LDFLAGS=$save_LDFLAGS
10946b02
AX
7433
7434fi
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7436$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7437
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7439$as_echo_n "checking for -force_load linker flag... " >&6; }
7440if ${lt_cv_ld_force_load+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442else
7443 lt_cv_ld_force_load=no
7444 cat > conftest.c << _LT_EOF
7445int forced_loaded() { return 2;}
7446_LT_EOF
7447 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7448 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7449 echo "$AR cru libconftest.a conftest.o" >&5
7450 $AR cru libconftest.a conftest.o 2>&5
7451 echo "$RANLIB libconftest.a" >&5
7452 $RANLIB libconftest.a 2>&5
7453 cat > conftest.c << _LT_EOF
7454int main() { return 0;}
7455_LT_EOF
7456 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7457 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7458 _lt_result=$?
7459 if test -s conftest.err && $GREP force_load conftest.err; then
7460 cat conftest.err >&5
ac9cc135 7461 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10946b02
AX
7462 lt_cv_ld_force_load=yes
7463 else
7464 cat conftest.err >&5
7465 fi
7466 rm -f conftest.err libconftest.a conftest conftest.c
7467 rm -rf conftest.dSYM
7468
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7471$as_echo "$lt_cv_ld_force_load" >&6; }
7472 case $host_os in
7473 rhapsody* | darwin1.[012])
ac9cc135 7474 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10946b02 7475 darwin1.*)
ac9cc135 7476 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10946b02
AX
7477 darwin*) # darwin 5.x on
7478 # if running on 10.5 or later, the deployment target defaults
7479 # to the OS version, if on x86, and 10.4, the deployment
7480 # target defaults to 10.4. Don't you love it?
7481 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7482 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
ac9cc135
AX
7483 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7484 10.[012][,.]*)
7485 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10946b02 7486 10.*)
ac9cc135 7487 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10946b02
AX
7488 esac
7489 ;;
7490 esac
ac9cc135 7491 if test yes = "$lt_cv_apple_cc_single_mod"; then
10946b02
AX
7492 _lt_dar_single_mod='$single_module'
7493 fi
ac9cc135
AX
7494 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7495 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10946b02 7496 else
ac9cc135 7497 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10946b02 7498 fi
ac9cc135 7499 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10946b02
AX
7500 _lt_dsymutil='~$DSYMUTIL $lib || :'
7501 else
7502 _lt_dsymutil=
7503 fi
7504 ;;
7505 esac
7506
ac9cc135
AX
7507# func_munge_path_list VARIABLE PATH
7508# -----------------------------------
7509# VARIABLE is name of variable containing _space_ separated list of
7510# directories to be munged by the contents of PATH, which is string
7511# having a format:
7512# "DIR[:DIR]:"
7513# string "DIR[ DIR]" will be prepended to VARIABLE
7514# ":DIR[:DIR]"
7515# string "DIR[ DIR]" will be appended to VARIABLE
7516# "DIRP[:DIRP]::[DIRA:]DIRA"
7517# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7518# "DIRA[ DIRA]" will be appended to VARIABLE
7519# "DIR[:DIR]"
7520# VARIABLE will be replaced by "DIR[ DIR]"
7521func_munge_path_list ()
7522{
7523 case x$2 in
7524 x)
7525 ;;
7526 *:)
7527 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7528 ;;
7529 x:*)
7530 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7531 ;;
7532 *::*)
7533 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7534 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7535 ;;
7536 *)
7537 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7538 ;;
7539 esac
7540}
7541
10946b02
AX
7542ac_ext=c
7543ac_cpp='$CPP $CPPFLAGS'
7544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7546ac_compiler_gnu=$ac_cv_c_compiler_gnu
7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7548$as_echo_n "checking how to run the C preprocessor... " >&6; }
7549# On Suns, sometimes $CPP names a directory.
7550if test -n "$CPP" && test -d "$CPP"; then
7551 CPP=
7552fi
7553if test -z "$CPP"; then
7554 if ${ac_cv_prog_CPP+:} false; then :
7555 $as_echo_n "(cached) " >&6
7556else
7557 # Double quotes because CPP needs to be expanded
7558 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7559 do
7560 ac_preproc_ok=false
7561for ac_c_preproc_warn_flag in '' yes
7562do
7563 # Use a header file that comes with gcc, so configuring glibc
7564 # with a fresh cross-compiler works.
7565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7566 # <limits.h> exists even on freestanding compilers.
7567 # On the NeXT, cc -E runs the code through the compiler's parser,
7568 # not just through cpp. "Syntax error" is here to catch this case.
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570/* end confdefs.h. */
7571#ifdef __STDC__
7572# include <limits.h>
7573#else
7574# include <assert.h>
7575#endif
7576 Syntax error
7577_ACEOF
7578if ac_fn_c_try_cpp "$LINENO"; then :
7579
7580else
7581 # Broken: fails on valid input.
7582continue
7583fi
7584rm -f conftest.err conftest.i conftest.$ac_ext
7585
7586 # OK, works on sane cases. Now check whether nonexistent headers
7587 # can be detected and how.
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589/* end confdefs.h. */
7590#include <ac_nonexistent.h>
7591_ACEOF
7592if ac_fn_c_try_cpp "$LINENO"; then :
7593 # Broken: success on invalid input.
7594continue
7595else
7596 # Passes both tests.
7597ac_preproc_ok=:
7598break
7599fi
7600rm -f conftest.err conftest.i conftest.$ac_ext
7601
7602done
7603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7604rm -f conftest.i conftest.err conftest.$ac_ext
7605if $ac_preproc_ok; then :
7606 break
7607fi
7608
7609 done
7610 ac_cv_prog_CPP=$CPP
7611
7612fi
7613 CPP=$ac_cv_prog_CPP
7614else
7615 ac_cv_prog_CPP=$CPP
7616fi
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7618$as_echo "$CPP" >&6; }
7619ac_preproc_ok=false
7620for ac_c_preproc_warn_flag in '' yes
7621do
7622 # Use a header file that comes with gcc, so configuring glibc
7623 # with a fresh cross-compiler works.
7624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7625 # <limits.h> exists even on freestanding compilers.
7626 # On the NeXT, cc -E runs the code through the compiler's parser,
7627 # not just through cpp. "Syntax error" is here to catch this case.
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h. */
7630#ifdef __STDC__
7631# include <limits.h>
7632#else
7633# include <assert.h>
7634#endif
7635 Syntax error
7636_ACEOF
7637if ac_fn_c_try_cpp "$LINENO"; then :
7638
7639else
7640 # Broken: fails on valid input.
7641continue
7642fi
7643rm -f conftest.err conftest.i conftest.$ac_ext
7644
7645 # OK, works on sane cases. Now check whether nonexistent headers
7646 # can be detected and how.
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648/* end confdefs.h. */
7649#include <ac_nonexistent.h>
7650_ACEOF
7651if ac_fn_c_try_cpp "$LINENO"; then :
7652 # Broken: success on invalid input.
7653continue
7654else
7655 # Passes both tests.
7656ac_preproc_ok=:
7657break
7658fi
7659rm -f conftest.err conftest.i conftest.$ac_ext
7660
7661done
7662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7663rm -f conftest.i conftest.err conftest.$ac_ext
7664if $ac_preproc_ok; then :
7665
7666else
7667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7669as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7670See \`config.log' for more details" "$LINENO" 5; }
7671fi
7672
7673ac_ext=c
7674ac_cpp='$CPP $CPPFLAGS'
7675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7677ac_compiler_gnu=$ac_cv_c_compiler_gnu
7678
7679
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7681$as_echo_n "checking for ANSI C header files... " >&6; }
7682if ${ac_cv_header_stdc+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684else
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686/* end confdefs.h. */
7687#include <stdlib.h>
7688#include <stdarg.h>
7689#include <string.h>
7690#include <float.h>
7691
7692int
7693main ()
7694{
7695
7696 ;
7697 return 0;
7698}
7699_ACEOF
7700if ac_fn_c_try_compile "$LINENO"; then :
7701 ac_cv_header_stdc=yes
7702else
7703 ac_cv_header_stdc=no
7704fi
7705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706
7707if test $ac_cv_header_stdc = yes; then
7708 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h. */
7711#include <string.h>
7712
7713_ACEOF
7714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7715 $EGREP "memchr" >/dev/null 2>&1; then :
7716
7717else
7718 ac_cv_header_stdc=no
7719fi
7720rm -f conftest*
7721
7722fi
7723
7724if test $ac_cv_header_stdc = yes; then
7725 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727/* end confdefs.h. */
7728#include <stdlib.h>
7729
7730_ACEOF
7731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7732 $EGREP "free" >/dev/null 2>&1; then :
7733
7734else
7735 ac_cv_header_stdc=no
7736fi
7737rm -f conftest*
7738
7739fi
7740
7741if test $ac_cv_header_stdc = yes; then
7742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7743 if test "$cross_compiling" = yes; then :
7744 :
7745else
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h. */
7748#include <ctype.h>
7749#include <stdlib.h>
7750#if ((' ' & 0x0FF) == 0x020)
7751# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7752# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7753#else
7754# define ISLOWER(c) \
7755 (('a' <= (c) && (c) <= 'i') \
7756 || ('j' <= (c) && (c) <= 'r') \
7757 || ('s' <= (c) && (c) <= 'z'))
7758# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7759#endif
7760
7761#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7762int
7763main ()
7764{
7765 int i;
7766 for (i = 0; i < 256; i++)
7767 if (XOR (islower (i), ISLOWER (i))
7768 || toupper (i) != TOUPPER (i))
7769 return 2;
7770 return 0;
7771}
7772_ACEOF
7773if ac_fn_c_try_run "$LINENO"; then :
7774
7775else
7776 ac_cv_header_stdc=no
7777fi
7778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7779 conftest.$ac_objext conftest.beam conftest.$ac_ext
7780fi
7781
7782fi
7783fi
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7785$as_echo "$ac_cv_header_stdc" >&6; }
7786if test $ac_cv_header_stdc = yes; then
7787
7788$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7789
7790fi
7791
7792# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7793for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7794 inttypes.h stdint.h unistd.h
7795do :
7796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7797ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7798"
7799if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7800 cat >>confdefs.h <<_ACEOF
7801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7802_ACEOF
7803
7804fi
7805
7806done
7807
7808
7809for ac_header in dlfcn.h
7810do :
7811 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7812"
7813if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7814 cat >>confdefs.h <<_ACEOF
7815#define HAVE_DLFCN_H 1
7816_ACEOF
7817
7818fi
7819
7820done
7821
7822
7823
7824
7825
7826# Set options
7827
7828
7829
7830 enable_dlopen=no
7831
7832
7833 enable_win32_dll=no
7834
7835
7836 # Check whether --enable-shared was given.
7837if test "${enable_shared+set}" = set; then :
7838 enableval=$enable_shared; p=${PACKAGE-default}
7839 case $enableval in
7840 yes) enable_shared=yes ;;
7841 no) enable_shared=no ;;
7842 *)
7843 enable_shared=no
7844 # Look at the argument we got. We use all the common list separators.
ac9cc135 7845 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10946b02 7846 for pkg in $enableval; do
ac9cc135 7847 IFS=$lt_save_ifs
10946b02
AX
7848 if test "X$pkg" = "X$p"; then
7849 enable_shared=yes
7850 fi
7851 done
ac9cc135 7852 IFS=$lt_save_ifs
10946b02
AX
7853 ;;
7854 esac
7855else
7856 enable_shared=yes
7857fi
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867 # Check whether --enable-static was given.
7868if test "${enable_static+set}" = set; then :
7869 enableval=$enable_static; p=${PACKAGE-default}
7870 case $enableval in
7871 yes) enable_static=yes ;;
7872 no) enable_static=no ;;
7873 *)
7874 enable_static=no
7875 # Look at the argument we got. We use all the common list separators.
ac9cc135 7876 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10946b02 7877 for pkg in $enableval; do
ac9cc135 7878 IFS=$lt_save_ifs
10946b02
AX
7879 if test "X$pkg" = "X$p"; then
7880 enable_static=yes
7881 fi
7882 done
ac9cc135 7883 IFS=$lt_save_ifs
10946b02
AX
7884 ;;
7885 esac
7886else
7887 enable_static=yes
7888fi
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899# Check whether --with-pic was given.
7900if test "${with_pic+set}" = set; then :
7901 withval=$with_pic; lt_p=${PACKAGE-default}
7902 case $withval in
7903 yes|no) pic_mode=$withval ;;
7904 *)
7905 pic_mode=default
7906 # Look at the argument we got. We use all the common list separators.
ac9cc135 7907 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10946b02 7908 for lt_pkg in $withval; do
ac9cc135 7909 IFS=$lt_save_ifs
10946b02
AX
7910 if test "X$lt_pkg" = "X$lt_p"; then
7911 pic_mode=yes
7912 fi
7913 done
ac9cc135 7914 IFS=$lt_save_ifs
10946b02
AX
7915 ;;
7916 esac
7917else
7918 pic_mode=default
7919fi
7920
7921
10946b02
AX
7922
7923
7924
7925
7926
7927
7928 # Check whether --enable-fast-install was given.
7929if test "${enable_fast_install+set}" = set; then :
7930 enableval=$enable_fast_install; p=${PACKAGE-default}
7931 case $enableval in
7932 yes) enable_fast_install=yes ;;
7933 no) enable_fast_install=no ;;
7934 *)
7935 enable_fast_install=no
7936 # Look at the argument we got. We use all the common list separators.
ac9cc135 7937 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10946b02 7938 for pkg in $enableval; do
ac9cc135 7939 IFS=$lt_save_ifs
10946b02
AX
7940 if test "X$pkg" = "X$p"; then
7941 enable_fast_install=yes
7942 fi
7943 done
ac9cc135 7944 IFS=$lt_save_ifs
10946b02
AX
7945 ;;
7946 esac
7947else
7948 enable_fast_install=yes
7949fi
7950
7951
7952
7953
7954
7955
7956
7957
ac9cc135
AX
7958 shared_archive_member_spec=
7959case $host,$enable_shared in
7960power*-*-aix[5-9]*,yes)
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7962$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7963
7964# Check whether --with-aix-soname was given.
7965if test "${with_aix_soname+set}" = set; then :
7966 withval=$with_aix_soname; case $withval in
7967 aix|svr4|both)
7968 ;;
7969 *)
7970 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7971 ;;
7972 esac
7973 lt_cv_with_aix_soname=$with_aix_soname
7974else
7975 if ${lt_cv_with_aix_soname+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977else
7978 lt_cv_with_aix_soname=aix
7979fi
7980
7981 with_aix_soname=$lt_cv_with_aix_soname
7982fi
7983
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7985$as_echo "$with_aix_soname" >&6; }
7986 if test aix != "$with_aix_soname"; then
7987 # For the AIX way of multilib, we name the shared archive member
7988 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7989 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7990 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7991 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7992 if test 64 = "${OBJECT_MODE-32}"; then
7993 shared_archive_member_spec=shr_64
7994 else
7995 shared_archive_member_spec=shr
7996 fi
7997 fi
7998 ;;
7999*)
8000 with_aix_soname=aix
8001 ;;
8002esac
8003
8004
8005
8006
8007
8008
8009
10946b02
AX
8010
8011
8012
8013# This can be used to rebuild libtool when needed
ac9cc135 8014LIBTOOL_DEPS=$ltmain
10946b02
AX
8015
8016# Always use our own libtool.
8017LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048test -z "$LN_S" && LN_S="ln -s"
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
ac9cc135 8063if test -n "${ZSH_VERSION+set}"; then
10946b02
AX
8064 setopt NO_GLOB_SUBST
8065fi
8066
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8068$as_echo_n "checking for objdir... " >&6; }
8069if ${lt_cv_objdir+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071else
8072 rm -f .libs 2>/dev/null
8073mkdir .libs 2>/dev/null
8074if test -d .libs; then
8075 lt_cv_objdir=.libs
8076else
8077 # MS-DOS does not allow filenames that begin with a dot.
8078 lt_cv_objdir=_libs
8079fi
8080rmdir .libs 2>/dev/null
8081fi
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8083$as_echo "$lt_cv_objdir" >&6; }
8084objdir=$lt_cv_objdir
8085
8086
8087
8088
8089
8090cat >>confdefs.h <<_ACEOF
8091#define LT_OBJDIR "$lt_cv_objdir/"
8092_ACEOF
8093
8094
8095
8096
8097case $host_os in
8098aix3*)
8099 # AIX sometimes has problems with the GCC collect2 program. For some
8100 # reason, if we set the COLLECT_NAMES environment variable, the problems
8101 # vanish in a puff of smoke.
ac9cc135 8102 if test set != "${COLLECT_NAMES+set}"; then
10946b02
AX
8103 COLLECT_NAMES=
8104 export COLLECT_NAMES
8105 fi
8106 ;;
8107esac
8108
8109# Global variables:
8110ofile=libtool
8111can_build_shared=yes
8112
ac9cc135 8113# All known linkers require a '.a' archive for static linking (except MSVC,
10946b02
AX
8114# which needs '.lib').
8115libext=a
8116
ac9cc135 8117with_gnu_ld=$lt_cv_prog_gnu_ld
10946b02 8118
ac9cc135
AX
8119old_CC=$CC
8120old_CFLAGS=$CFLAGS
10946b02
AX
8121
8122# Set sane defaults for various variables
8123test -z "$CC" && CC=cc
8124test -z "$LTCC" && LTCC=$CC
8125test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8126test -z "$LD" && LD=ld
8127test -z "$ac_objext" && ac_objext=o
8128
ac9cc135
AX
8129func_cc_basename $compiler
8130cc_basename=$func_cc_basename_result
10946b02
AX
8131
8132
8133# Only perform the check for file, if the check method requires it
8134test -z "$MAGIC_CMD" && MAGIC_CMD=file
8135case $deplibs_check_method in
8136file_magic*)
8137 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8139$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8140if ${lt_cv_path_MAGIC_CMD+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142else
8143 case $MAGIC_CMD in
8144[\\/*] | ?:[\\/]*)
ac9cc135 8145 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10946b02
AX
8146 ;;
8147*)
ac9cc135
AX
8148 lt_save_MAGIC_CMD=$MAGIC_CMD
8149 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10946b02
AX
8150 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8151 for ac_dir in $ac_dummy; do
ac9cc135 8152 IFS=$lt_save_ifs
10946b02 8153 test -z "$ac_dir" && ac_dir=.
ac9cc135
AX
8154 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8155 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10946b02
AX
8156 if test -n "$file_magic_test_file"; then
8157 case $deplibs_check_method in
8158 "file_magic "*)
8159 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
ac9cc135 8160 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10946b02
AX
8161 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8162 $EGREP "$file_magic_regex" > /dev/null; then
8163 :
8164 else
8165 cat <<_LT_EOF 1>&2
8166
8167*** Warning: the command libtool uses to detect shared libraries,
8168*** $file_magic_cmd, produces output that libtool cannot recognize.
8169*** The result is that libtool may fail to recognize shared libraries
8170*** as such. This will affect the creation of libtool libraries that
8171*** depend on shared libraries, but programs linked with such libtool
8172*** libraries will work regardless of this problem. Nevertheless, you
8173*** may want to report the problem to your system manager and/or to
8174*** bug-libtool@gnu.org
8175
8176_LT_EOF
8177 fi ;;
8178 esac
8179 fi
8180 break
8181 fi
8182 done
ac9cc135
AX
8183 IFS=$lt_save_ifs
8184 MAGIC_CMD=$lt_save_MAGIC_CMD
10946b02
AX
8185 ;;
8186esac
8187fi
8188
ac9cc135 8189MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10946b02
AX
8190if test -n "$MAGIC_CMD"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8192$as_echo "$MAGIC_CMD" >&6; }
8193else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195$as_echo "no" >&6; }
8196fi
8197
8198
8199
8200
8201
8202if test -z "$lt_cv_path_MAGIC_CMD"; then
8203 if test -n "$ac_tool_prefix"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8205$as_echo_n "checking for file... " >&6; }
8206if ${lt_cv_path_MAGIC_CMD+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208else
8209 case $MAGIC_CMD in
8210[\\/*] | ?:[\\/]*)
ac9cc135 8211 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10946b02
AX
8212 ;;
8213*)
ac9cc135
AX
8214 lt_save_MAGIC_CMD=$MAGIC_CMD
8215 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10946b02
AX
8216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8217 for ac_dir in $ac_dummy; do
ac9cc135 8218 IFS=$lt_save_ifs
10946b02 8219 test -z "$ac_dir" && ac_dir=.
ac9cc135
AX
8220 if test -f "$ac_dir/file"; then
8221 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10946b02
AX
8222 if test -n "$file_magic_test_file"; then
8223 case $deplibs_check_method in
8224 "file_magic "*)
8225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
ac9cc135 8226 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10946b02
AX
8227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8228 $EGREP "$file_magic_regex" > /dev/null; then
8229 :
8230 else
8231 cat <<_LT_EOF 1>&2
8232
8233*** Warning: the command libtool uses to detect shared libraries,
8234*** $file_magic_cmd, produces output that libtool cannot recognize.
8235*** The result is that libtool may fail to recognize shared libraries
8236*** as such. This will affect the creation of libtool libraries that
8237*** depend on shared libraries, but programs linked with such libtool
8238*** libraries will work regardless of this problem. Nevertheless, you
8239*** may want to report the problem to your system manager and/or to
8240*** bug-libtool@gnu.org
8241
8242_LT_EOF
8243 fi ;;
8244 esac
8245 fi
8246 break
8247 fi
8248 done
ac9cc135
AX
8249 IFS=$lt_save_ifs
8250 MAGIC_CMD=$lt_save_MAGIC_CMD
10946b02
AX
8251 ;;
8252esac
8253fi
8254
ac9cc135 8255MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10946b02
AX
8256if test -n "$MAGIC_CMD"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8258$as_echo "$MAGIC_CMD" >&6; }
8259else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261$as_echo "no" >&6; }
8262fi
8263
8264
8265 else
8266 MAGIC_CMD=:
8267 fi
8268fi
8269
8270 fi
8271 ;;
8272esac
8273
8274# Use C for the default configuration in the libtool script
8275
ac9cc135 8276lt_save_CC=$CC
10946b02
AX
8277ac_ext=c
8278ac_cpp='$CPP $CPPFLAGS'
8279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281ac_compiler_gnu=$ac_cv_c_compiler_gnu
8282
8283
8284# Source file extension for C test sources.
8285ac_ext=c
8286
8287# Object file extension for compiled C test sources.
8288objext=o
8289objext=$objext
8290
8291# Code to be used in simple compile tests
8292lt_simple_compile_test_code="int some_variable = 0;"
8293
8294# Code to be used in simple link tests
8295lt_simple_link_test_code='int main(){return(0);}'
8296
8297
8298
8299
8300
8301
8302
8303# If no C compiler was specified, use CC.
8304LTCC=${LTCC-"$CC"}
8305
8306# If no C compiler flags were specified, use CFLAGS.
8307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8308
8309# Allow CC to be a program name with arguments.
8310compiler=$CC
8311
8312# Save the default compiler, since it gets overwritten when the other
8313# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8314compiler_DEFAULT=$CC
8315
8316# save warnings/boilerplate of simple test code
8317ac_outfile=conftest.$ac_objext
8318echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8319eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8320_lt_compiler_boilerplate=`cat conftest.err`
8321$RM conftest*
8322
8323ac_outfile=conftest.$ac_objext
8324echo "$lt_simple_link_test_code" >conftest.$ac_ext
8325eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8326_lt_linker_boilerplate=`cat conftest.err`
8327$RM -r conftest*
8328
8329
8330## CAVEAT EMPTOR:
8331## There is no encapsulation within the following macros, do not change
8332## the running order or otherwise move them around unless you know exactly
8333## what you are doing...
8334if test -n "$compiler"; then
8335
8336lt_prog_compiler_no_builtin_flag=
8337
ac9cc135 8338if test yes = "$GCC"; then
10946b02
AX
8339 case $cc_basename in
8340 nvcc*)
8341 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8342 *)
8343 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8344 esac
8345
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8347$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8348if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350else
8351 lt_cv_prog_compiler_rtti_exceptions=no
8352 ac_outfile=conftest.$ac_objext
8353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ac9cc135 8354 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10946b02
AX
8355 # Insert the option either (1) after the last *FLAGS variable, or
8356 # (2) before a word containing "conftest.", or (3) at the end.
8357 # Note that $ac_compile itself does not contain backslashes and begins
8358 # with a dollar sign (not a hyphen), so the echo should work correctly.
8359 # The option is referenced via a variable to avoid confusing sed.
8360 lt_compile=`echo "$ac_compile" | $SED \
8361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8363 -e 's:$: $lt_compiler_flag:'`
8364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8365 (eval "$lt_compile" 2>conftest.err)
8366 ac_status=$?
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 if (exit $ac_status) && test -s "$ac_outfile"; then
8370 # The compiler can only warn and ignore the option if not recognized
8371 # So say no if there are warnings other than the usual output.
8372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8375 lt_cv_prog_compiler_rtti_exceptions=yes
8376 fi
8377 fi
8378 $RM conftest*
8379
8380fi
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8382$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8383
ac9cc135 8384if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10946b02
AX
8385 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8386else
8387 :
8388fi
8389
8390fi
8391
8392
8393
8394
8395
8396
8397 lt_prog_compiler_wl=
8398lt_prog_compiler_pic=
8399lt_prog_compiler_static=
8400
8401
ac9cc135 8402 if test yes = "$GCC"; then
10946b02
AX
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_static='-static'
8405
8406 case $host_os in
8407 aix*)
8408 # All AIX code is PIC.
ac9cc135 8409 if test ia64 = "$host_cpu"; then
10946b02
AX
8410 # AIX 5 now supports IA64 processor
8411 lt_prog_compiler_static='-Bstatic'
8412 fi
ac9cc135 8413 lt_prog_compiler_pic='-fPIC'
10946b02
AX
8414 ;;
8415
8416 amigaos*)
8417 case $host_cpu in
8418 powerpc)
8419 # see comment about AmigaOS4 .so support
8420 lt_prog_compiler_pic='-fPIC'
8421 ;;
8422 m68k)
8423 # FIXME: we need at least 68020 code to build shared libraries, but
ac9cc135
AX
8424 # adding the '-m68020' flag to GCC prevents building anything better,
8425 # like '-m68040'.
10946b02
AX
8426 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8427 ;;
8428 esac
8429 ;;
8430
8431 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8432 # PIC is the default for these OSes.
8433 ;;
8434
8435 mingw* | cygwin* | pw32* | os2* | cegcc*)
8436 # This hack is so that the source file can tell whether it is being
8437 # built for inclusion in a dll (and should export symbols for example).
8438 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8439 # (--disable-auto-import) libraries
8440 lt_prog_compiler_pic='-DDLL_EXPORT'
ac9cc135
AX
8441 case $host_os in
8442 os2*)
8443 lt_prog_compiler_static='$wl-static'
8444 ;;
8445 esac
10946b02
AX
8446 ;;
8447
8448 darwin* | rhapsody*)
8449 # PIC is the default on this platform
8450 # Common symbols not allowed in MH_DYLIB files
8451 lt_prog_compiler_pic='-fno-common'
8452 ;;
8453
8454 haiku*)
8455 # PIC is the default for Haiku.
8456 # The "-static" flag exists, but is broken.
8457 lt_prog_compiler_static=
8458 ;;
8459
8460 hpux*)
8461 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8462 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8463 # sets the default TLS model and affects inlining.
8464 case $host_cpu in
8465 hppa*64*)
8466 # +Z the default
8467 ;;
8468 *)
8469 lt_prog_compiler_pic='-fPIC'
8470 ;;
8471 esac
8472 ;;
8473
8474 interix[3-9]*)
8475 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8476 # Instead, we relocate shared libraries at runtime.
8477 ;;
8478
8479 msdosdjgpp*)
8480 # Just because we use GCC doesn't mean we suddenly get shared libraries
8481 # on systems that don't support them.
8482 lt_prog_compiler_can_build_shared=no
8483 enable_shared=no
8484 ;;
8485
8486 *nto* | *qnx*)
8487 # QNX uses GNU C++, but need to define -shared option too, otherwise
8488 # it will coredump.
8489 lt_prog_compiler_pic='-fPIC -shared'
8490 ;;
8491
8492 sysv4*MP*)
8493 if test -d /usr/nec; then
8494 lt_prog_compiler_pic=-Kconform_pic
8495 fi
8496 ;;
8497
8498 *)
8499 lt_prog_compiler_pic='-fPIC'
8500 ;;
8501 esac
8502
8503 case $cc_basename in
8504 nvcc*) # Cuda Compiler Driver 2.2
8505 lt_prog_compiler_wl='-Xlinker '
8506 if test -n "$lt_prog_compiler_pic"; then
8507 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8508 fi
8509 ;;
8510 esac
8511 else
8512 # PORTME Check for flag to pass linker flags through the system compiler.
8513 case $host_os in
8514 aix*)
8515 lt_prog_compiler_wl='-Wl,'
ac9cc135 8516 if test ia64 = "$host_cpu"; then
10946b02
AX
8517 # AIX 5 now supports IA64 processor
8518 lt_prog_compiler_static='-Bstatic'
8519 else
8520 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8521 fi
8522 ;;
8523
ac9cc135
AX
8524 darwin* | rhapsody*)
8525 # PIC is the default on this platform
8526 # Common symbols not allowed in MH_DYLIB files
8527 lt_prog_compiler_pic='-fno-common'
8528 case $cc_basename in
8529 nagfor*)
8530 # NAG Fortran compiler
8531 lt_prog_compiler_wl='-Wl,-Wl,,'
8532 lt_prog_compiler_pic='-PIC'
8533 lt_prog_compiler_static='-Bstatic'
8534 ;;
8535 esac
8536 ;;
8537
10946b02
AX
8538 mingw* | cygwin* | pw32* | os2* | cegcc*)
8539 # This hack is so that the source file can tell whether it is being
8540 # built for inclusion in a dll (and should export symbols for example).
8541 lt_prog_compiler_pic='-DDLL_EXPORT'
ac9cc135
AX
8542 case $host_os in
8543 os2*)
8544 lt_prog_compiler_static='$wl-static'
8545 ;;
8546 esac
10946b02
AX
8547 ;;
8548
8549 hpux9* | hpux10* | hpux11*)
8550 lt_prog_compiler_wl='-Wl,'
8551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8552 # not for PA HP-UX.
8553 case $host_cpu in
8554 hppa*64*|ia64*)
8555 # +Z the default
8556 ;;
8557 *)
8558 lt_prog_compiler_pic='+Z'
8559 ;;
8560 esac
8561 # Is there a better lt_prog_compiler_static that works with the bundled CC?
ac9cc135 8562 lt_prog_compiler_static='$wl-a ${wl}archive'
10946b02
AX
8563 ;;
8564
8565 irix5* | irix6* | nonstopux*)
8566 lt_prog_compiler_wl='-Wl,'
8567 # PIC (with -KPIC) is the default.
8568 lt_prog_compiler_static='-non_shared'
8569 ;;
8570
ac9cc135 8571 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10946b02 8572 case $cc_basename in
ac9cc135 8573 # old Intel for x86_64, which still supported -KPIC.
10946b02
AX
8574 ecc*)
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-KPIC'
8577 lt_prog_compiler_static='-static'
8578 ;;
8579 # icc used to be incompatible with GCC.
8580 # ICC 10 doesn't accept -KPIC any more.
8581 icc* | ifort*)
8582 lt_prog_compiler_wl='-Wl,'
8583 lt_prog_compiler_pic='-fPIC'
8584 lt_prog_compiler_static='-static'
8585 ;;
8586 # Lahey Fortran 8.1.
8587 lf95*)
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_pic='--shared'
8590 lt_prog_compiler_static='--static'
8591 ;;
8592 nagfor*)
8593 # NAG Fortran compiler
8594 lt_prog_compiler_wl='-Wl,-Wl,,'
8595 lt_prog_compiler_pic='-PIC'
8596 lt_prog_compiler_static='-Bstatic'
8597 ;;
ac9cc135
AX
8598 tcc*)
8599 # Fabrice Bellard et al's Tiny C Compiler
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='-fPIC'
8602 lt_prog_compiler_static='-static'
8603 ;;
10946b02
AX
8604 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8605 # Portland Group compilers (*not* the Pentium gcc compiler,
8606 # which looks to be a dead project)
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_pic='-fpic'
8609 lt_prog_compiler_static='-Bstatic'
8610 ;;
8611 ccc*)
8612 lt_prog_compiler_wl='-Wl,'
8613 # All Alpha code is PIC.
8614 lt_prog_compiler_static='-non_shared'
8615 ;;
8616 xl* | bgxl* | bgf* | mpixl*)
8617 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8618 lt_prog_compiler_wl='-Wl,'
8619 lt_prog_compiler_pic='-qpic'
8620 lt_prog_compiler_static='-qstaticlink'
8621 ;;
8622 *)
8623 case `$CC -V 2>&1 | sed 5q` in
8624 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8625 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8626 lt_prog_compiler_pic='-KPIC'
8627 lt_prog_compiler_static='-Bstatic'
8628 lt_prog_compiler_wl=''
8629 ;;
8630 *Sun\ F* | *Sun*Fortran*)
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8633 lt_prog_compiler_wl='-Qoption ld '
8634 ;;
8635 *Sun\ C*)
8636 # Sun C 5.9
8637 lt_prog_compiler_pic='-KPIC'
8638 lt_prog_compiler_static='-Bstatic'
8639 lt_prog_compiler_wl='-Wl,'
8640 ;;
8641 *Intel*\ [CF]*Compiler*)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='-fPIC'
8644 lt_prog_compiler_static='-static'
8645 ;;
8646 *Portland\ Group*)
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_pic='-fpic'
8649 lt_prog_compiler_static='-Bstatic'
8650 ;;
8651 esac
8652 ;;
8653 esac
8654 ;;
8655
8656 newsos6)
8657 lt_prog_compiler_pic='-KPIC'
8658 lt_prog_compiler_static='-Bstatic'
8659 ;;
8660
8661 *nto* | *qnx*)
8662 # QNX uses GNU C++, but need to define -shared option too, otherwise
8663 # it will coredump.
8664 lt_prog_compiler_pic='-fPIC -shared'
8665 ;;
8666
8667 osf3* | osf4* | osf5*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # All OSF/1 code is PIC.
8670 lt_prog_compiler_static='-non_shared'
8671 ;;
8672
8673 rdos*)
8674 lt_prog_compiler_static='-non_shared'
8675 ;;
8676
8677 solaris*)
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-Bstatic'
8680 case $cc_basename in
8681 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8682 lt_prog_compiler_wl='-Qoption ld ';;
8683 *)
8684 lt_prog_compiler_wl='-Wl,';;
8685 esac
8686 ;;
8687
8688 sunos4*)
8689 lt_prog_compiler_wl='-Qoption ld '
8690 lt_prog_compiler_pic='-PIC'
8691 lt_prog_compiler_static='-Bstatic'
8692 ;;
8693
8694 sysv4 | sysv4.2uw2* | sysv4.3*)
8695 lt_prog_compiler_wl='-Wl,'
8696 lt_prog_compiler_pic='-KPIC'
8697 lt_prog_compiler_static='-Bstatic'
8698 ;;
8699
8700 sysv4*MP*)
ac9cc135 8701 if test -d /usr/nec; then
10946b02
AX
8702 lt_prog_compiler_pic='-Kconform_pic'
8703 lt_prog_compiler_static='-Bstatic'
8704 fi
8705 ;;
8706
8707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_pic='-KPIC'
8710 lt_prog_compiler_static='-Bstatic'
8711 ;;
8712
8713 unicos*)
8714 lt_prog_compiler_wl='-Wl,'
8715 lt_prog_compiler_can_build_shared=no
8716 ;;
8717
8718 uts4*)
8719 lt_prog_compiler_pic='-pic'
8720 lt_prog_compiler_static='-Bstatic'
8721 ;;
8722
8723 *)
8724 lt_prog_compiler_can_build_shared=no
8725 ;;
8726 esac
8727 fi
8728
8729case $host_os in
ac9cc135 8730 # For platforms that do not support PIC, -DPIC is meaningless:
10946b02
AX
8731 *djgpp*)
8732 lt_prog_compiler_pic=
8733 ;;
8734 *)
8735 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8736 ;;
8737esac
8738
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8740$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8741if ${lt_cv_prog_compiler_pic+:} false; then :
8742 $as_echo_n "(cached) " >&6
8743else
8744 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8745fi
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8747$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8748lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8749
8750#
8751# Check to make sure the PIC flag actually works.
8752#
8753if test -n "$lt_prog_compiler_pic"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8755$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8756if ${lt_cv_prog_compiler_pic_works+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758else
8759 lt_cv_prog_compiler_pic_works=no
8760 ac_outfile=conftest.$ac_objext
8761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ac9cc135 8762 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10946b02
AX
8763 # Insert the option either (1) after the last *FLAGS variable, or
8764 # (2) before a word containing "conftest.", or (3) at the end.
8765 # Note that $ac_compile itself does not contain backslashes and begins
8766 # with a dollar sign (not a hyphen), so the echo should work correctly.
8767 # The option is referenced via a variable to avoid confusing sed.
8768 lt_compile=`echo "$ac_compile" | $SED \
8769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8771 -e 's:$: $lt_compiler_flag:'`
8772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8773 (eval "$lt_compile" 2>conftest.err)
8774 ac_status=$?
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 if (exit $ac_status) && test -s "$ac_outfile"; then
8778 # The compiler can only warn and ignore the option if not recognized
8779 # So say no if there are warnings other than the usual output.
8780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8783 lt_cv_prog_compiler_pic_works=yes
8784 fi
8785 fi
8786 $RM conftest*
8787
8788fi
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8790$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8791
ac9cc135 8792if test yes = "$lt_cv_prog_compiler_pic_works"; then
10946b02
AX
8793 case $lt_prog_compiler_pic in
8794 "" | " "*) ;;
8795 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8796 esac
8797else
8798 lt_prog_compiler_pic=
8799 lt_prog_compiler_can_build_shared=no
8800fi
8801
8802fi
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814#
8815# Check to make sure the static flag actually works.
8816#
8817wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8819$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8820if ${lt_cv_prog_compiler_static_works+:} false; then :
8821 $as_echo_n "(cached) " >&6
8822else
8823 lt_cv_prog_compiler_static_works=no
ac9cc135 8824 save_LDFLAGS=$LDFLAGS
10946b02
AX
8825 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8826 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8828 # The linker can only warn and ignore the option if not recognized
8829 # So say no if there are warnings
8830 if test -s conftest.err; then
8831 # Append any errors to the config.log.
8832 cat conftest.err 1>&5
8833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8835 if diff conftest.exp conftest.er2 >/dev/null; then
8836 lt_cv_prog_compiler_static_works=yes
8837 fi
8838 else
8839 lt_cv_prog_compiler_static_works=yes
8840 fi
8841 fi
8842 $RM -r conftest*
ac9cc135 8843 LDFLAGS=$save_LDFLAGS
10946b02
AX
8844
8845fi
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8847$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8848
ac9cc135 8849if test yes = "$lt_cv_prog_compiler_static_works"; then
10946b02
AX
8850 :
8851else
8852 lt_prog_compiler_static=
8853fi
8854
8855
8856
8857
8858
8859
8860
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8862$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8863if ${lt_cv_prog_compiler_c_o+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865else
8866 lt_cv_prog_compiler_c_o=no
8867 $RM -r conftest 2>/dev/null
8868 mkdir conftest
8869 cd conftest
8870 mkdir out
8871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8872
8873 lt_compiler_flag="-o out/conftest2.$ac_objext"
8874 # Insert the option either (1) after the last *FLAGS variable, or
8875 # (2) before a word containing "conftest.", or (3) at the end.
8876 # Note that $ac_compile itself does not contain backslashes and begins
8877 # with a dollar sign (not a hyphen), so the echo should work correctly.
8878 lt_compile=`echo "$ac_compile" | $SED \
8879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8881 -e 's:$: $lt_compiler_flag:'`
8882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8883 (eval "$lt_compile" 2>out/conftest.err)
8884 ac_status=$?
8885 cat out/conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8888 then
8889 # The compiler can only warn and ignore the option if not recognized
8890 # So say no if there are warnings
8891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8894 lt_cv_prog_compiler_c_o=yes
8895 fi
8896 fi
8897 chmod u+w . 2>&5
8898 $RM conftest*
8899 # SGI C++ compiler will create directory out/ii_files/ for
8900 # template instantiation
8901 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8902 $RM out/* && rmdir out
8903 cd ..
8904 $RM -r conftest
8905 $RM conftest*
8906
8907fi
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8909$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8910
8911
8912
8913
8914
8915
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8917$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8918if ${lt_cv_prog_compiler_c_o+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920else
8921 lt_cv_prog_compiler_c_o=no
8922 $RM -r conftest 2>/dev/null
8923 mkdir conftest
8924 cd conftest
8925 mkdir out
8926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8927
8928 lt_compiler_flag="-o out/conftest2.$ac_objext"
8929 # Insert the option either (1) after the last *FLAGS variable, or
8930 # (2) before a word containing "conftest.", or (3) at the end.
8931 # Note that $ac_compile itself does not contain backslashes and begins
8932 # with a dollar sign (not a hyphen), so the echo should work correctly.
8933 lt_compile=`echo "$ac_compile" | $SED \
8934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8936 -e 's:$: $lt_compiler_flag:'`
8937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8938 (eval "$lt_compile" 2>out/conftest.err)
8939 ac_status=$?
8940 cat out/conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8943 then
8944 # The compiler can only warn and ignore the option if not recognized
8945 # So say no if there are warnings
8946 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8947 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8948 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8949 lt_cv_prog_compiler_c_o=yes
8950 fi
8951 fi
8952 chmod u+w . 2>&5
8953 $RM conftest*
8954 # SGI C++ compiler will create directory out/ii_files/ for
8955 # template instantiation
8956 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8957 $RM out/* && rmdir out
8958 cd ..
8959 $RM -r conftest
8960 $RM conftest*
8961
8962fi
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8964$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8965
8966
8967
8968
ac9cc135
AX
8969hard_links=nottested
8970if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10946b02
AX
8971 # do not overwrite the value of need_locks provided by the user
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8973$as_echo_n "checking if we can lock with hard links... " >&6; }
8974 hard_links=yes
8975 $RM conftest*
8976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8977 touch conftest.a
8978 ln conftest.a conftest.b 2>&5 || hard_links=no
8979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8981$as_echo "$hard_links" >&6; }
ac9cc135
AX
8982 if test no = "$hard_links"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8984$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10946b02
AX
8985 need_locks=warn
8986 fi
8987else
8988 need_locks=no
8989fi
8990
8991
8992
8993
8994
8995
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8997$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8998
8999 runpath_var=
9000 allow_undefined_flag=
9001 always_export_symbols=no
9002 archive_cmds=
9003 archive_expsym_cmds=
9004 compiler_needs_object=no
9005 enable_shared_with_static_runtimes=no
9006 export_dynamic_flag_spec=
9007 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9008 hardcode_automatic=no
9009 hardcode_direct=no
9010 hardcode_direct_absolute=no
9011 hardcode_libdir_flag_spec=
9012 hardcode_libdir_separator=
9013 hardcode_minus_L=no
9014 hardcode_shlibpath_var=unsupported
9015 inherit_rpath=no
9016 link_all_deplibs=unknown
9017 module_cmds=
9018 module_expsym_cmds=
9019 old_archive_from_new_cmds=
9020 old_archive_from_expsyms_cmds=
9021 thread_safe_flag_spec=
9022 whole_archive_flag_spec=
9023 # include_expsyms should be a list of space-separated symbols to be *always*
9024 # included in the symbol list
9025 include_expsyms=
9026 # exclude_expsyms can be an extended regexp of symbols to exclude
ac9cc135
AX
9027 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9028 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9029 # as well as any symbol that contains 'd'.
10946b02
AX
9030 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9032 # platforms (ab)use it in PIC code, but their linkers get confused if
9033 # the symbol is explicitly referenced. Since portable code cannot
9034 # rely on this symbol name, it's probably fine to never include it in
9035 # preloaded symbol tables.
9036 # Exclude shared library initialization/finalization symbols.
9037 extract_expsyms_cmds=
9038
9039 case $host_os in
9040 cygwin* | mingw* | pw32* | cegcc*)
9041 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9042 # When not using gcc, we currently assume that we are using
9043 # Microsoft Visual C++.
ac9cc135 9044 if test yes != "$GCC"; then
10946b02
AX
9045 with_gnu_ld=no
9046 fi
9047 ;;
9048 interix*)
9049 # we just hope/assume this is gcc and not c89 (= MSVC++)
9050 with_gnu_ld=yes
9051 ;;
ac9cc135 9052 openbsd* | bitrig*)
10946b02
AX
9053 with_gnu_ld=no
9054 ;;
10946b02
AX
9055 esac
9056
9057 ld_shlibs=yes
9058
9059 # On some targets, GNU ld is compatible enough with the native linker
9060 # that we're better off using the native interface for both.
9061 lt_use_gnu_ld_interface=no
ac9cc135 9062 if test yes = "$with_gnu_ld"; then
10946b02
AX
9063 case $host_os in
9064 aix*)
9065 # The AIX port of GNU ld has always aspired to compatibility
9066 # with the native linker. However, as the warning in the GNU ld
9067 # block says, versions before 2.19.5* couldn't really create working
9068 # shared libraries, regardless of the interface used.
9069 case `$LD -v 2>&1` in
9070 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9071 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9072 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9073 *)
9074 lt_use_gnu_ld_interface=yes
9075 ;;
9076 esac
9077 ;;
9078 *)
9079 lt_use_gnu_ld_interface=yes
9080 ;;
9081 esac
9082 fi
9083
ac9cc135 9084 if test yes = "$lt_use_gnu_ld_interface"; then
10946b02 9085 # If archive_cmds runs LD, not CC, wlarc should be empty
ac9cc135 9086 wlarc='$wl'
10946b02
AX
9087
9088 # Set some defaults for GNU ld with shared library support. These
9089 # are reset later if shared libraries are not supported. Putting them
9090 # here allows them to be overridden if necessary.
9091 runpath_var=LD_RUN_PATH
ac9cc135
AX
9092 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9093 export_dynamic_flag_spec='$wl--export-dynamic'
10946b02
AX
9094 # ancient GNU ld didn't support --whole-archive et. al.
9095 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
ac9cc135 9096 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10946b02
AX
9097 else
9098 whole_archive_flag_spec=
9099 fi
9100 supports_anon_versioning=no
ac9cc135 9101 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10946b02
AX
9102 *GNU\ gold*) supports_anon_versioning=yes ;;
9103 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9104 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9105 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9106 *\ 2.11.*) ;; # other 2.11 versions
9107 *) supports_anon_versioning=yes ;;
9108 esac
9109
9110 # See if GNU ld supports shared libraries.
9111 case $host_os in
9112 aix[3-9]*)
9113 # On AIX/PPC, the GNU linker is very broken
ac9cc135 9114 if test ia64 != "$host_cpu"; then
10946b02
AX
9115 ld_shlibs=no
9116 cat <<_LT_EOF 1>&2
9117
9118*** Warning: the GNU linker, at least up to release 2.19, is reported
9119*** to be unable to reliably create shared libraries on AIX.
9120*** Therefore, libtool is disabling shared libraries support. If you
9121*** really care for shared libraries, you may want to install binutils
9122*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9123*** You will then need to restart the configuration process.
9124
9125_LT_EOF
9126 fi
9127 ;;
9128
9129 amigaos*)
9130 case $host_cpu in
9131 powerpc)
9132 # see comment about AmigaOS4 .so support
ac9cc135 9133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10946b02
AX
9134 archive_expsym_cmds=''
9135 ;;
9136 m68k)
9137 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)'
9138 hardcode_libdir_flag_spec='-L$libdir'
9139 hardcode_minus_L=yes
9140 ;;
9141 esac
9142 ;;
9143
9144 beos*)
9145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9146 allow_undefined_flag=unsupported
9147 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9148 # support --undefined. This deserves some investigation. FIXME
ac9cc135 9149 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10946b02
AX
9150 else
9151 ld_shlibs=no
9152 fi
9153 ;;
9154
9155 cygwin* | mingw* | pw32* | cegcc*)
9156 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9157 # as there is no search path for DLLs.
9158 hardcode_libdir_flag_spec='-L$libdir'
ac9cc135 9159 export_dynamic_flag_spec='$wl--export-all-symbols'
10946b02
AX
9160 allow_undefined_flag=unsupported
9161 always_export_symbols=no
9162 enable_shared_with_static_runtimes=yes
9163 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'
9164 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9165
9166 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
ac9cc135
AX
9167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9168 # If the export-symbols file already is a .def file, use it as
9169 # is; otherwise, prepend EXPORTS...
9170 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9171 cp $export_symbols $output_objdir/$soname.def;
9172 else
9173 echo EXPORTS > $output_objdir/$soname.def;
9174 cat $export_symbols >> $output_objdir/$soname.def;
9175 fi~
9176 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10946b02
AX
9177 else
9178 ld_shlibs=no
9179 fi
9180 ;;
9181
9182 haiku*)
ac9cc135 9183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10946b02
AX
9184 link_all_deplibs=yes
9185 ;;
9186
ac9cc135
AX
9187 os2*)
9188 hardcode_libdir_flag_spec='-L$libdir'
9189 hardcode_minus_L=yes
9190 allow_undefined_flag=unsupported
9191 shrext_cmds=.dll
9192 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9193 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9194 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9195 $ECHO EXPORTS >> $output_objdir/$libname.def~
9196 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9197 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9198 emximp -o $lib $output_objdir/$libname.def'
9199 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9200 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9201 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9202 $ECHO EXPORTS >> $output_objdir/$libname.def~
9203 prefix_cmds="$SED"~
9204 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9205 prefix_cmds="$prefix_cmds -e 1d";
9206 fi~
9207 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9208 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9209 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9210 emximp -o $lib $output_objdir/$libname.def'
9211 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9212 enable_shared_with_static_runtimes=yes
9213 ;;
9214
10946b02
AX
9215 interix[3-9]*)
9216 hardcode_direct=no
9217 hardcode_shlibpath_var=no
ac9cc135
AX
9218 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9219 export_dynamic_flag_spec='$wl-E'
10946b02
AX
9220 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9221 # Instead, shared libraries are loaded at an image base (0x10000000 by
9222 # default) and relocated if they conflict, which is a slow very memory
9223 # consuming and fragmenting process. To avoid this, we pick a random,
9224 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9225 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
ac9cc135
AX
9226 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9227 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10946b02
AX
9228 ;;
9229
9230 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9231 tmp_diet=no
ac9cc135 9232 if test linux-dietlibc = "$host_os"; then
10946b02
AX
9233 case $cc_basename in
9234 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9235 esac
9236 fi
9237 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
ac9cc135 9238 && test no = "$tmp_diet"
10946b02
AX
9239 then
9240 tmp_addflag=' $pic_flag'
9241 tmp_sharedflag='-shared'
9242 case $cc_basename,$host_cpu in
9243 pgcc*) # Portland Group C compiler
ac9cc135 9244 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'
10946b02
AX
9245 tmp_addflag=' $pic_flag'
9246 ;;
9247 pgf77* | pgf90* | pgf95* | pgfortran*)
9248 # Portland Group f77 and f90 compilers
ac9cc135 9249 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'
10946b02
AX
9250 tmp_addflag=' $pic_flag -Mnomain' ;;
9251 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9252 tmp_addflag=' -i_dynamic' ;;
9253 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9254 tmp_addflag=' -i_dynamic -nofor_main' ;;
9255 ifc* | ifort*) # Intel Fortran compiler
9256 tmp_addflag=' -nofor_main' ;;
9257 lf95*) # Lahey Fortran 8.1
9258 whole_archive_flag_spec=
9259 tmp_sharedflag='--shared' ;;
ac9cc135
AX
9260 nagfor*) # NAGFOR 5.3
9261 tmp_sharedflag='-Wl,-shared' ;;
10946b02
AX
9262 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9263 tmp_sharedflag='-qmkshrobj'
9264 tmp_addflag= ;;
9265 nvcc*) # Cuda Compiler Driver 2.2
ac9cc135 9266 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'
10946b02
AX
9267 compiler_needs_object=yes
9268 ;;
9269 esac
9270 case `$CC -V 2>&1 | sed 5q` in
9271 *Sun\ C*) # Sun C 5.9
ac9cc135 9272 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'
10946b02
AX
9273 compiler_needs_object=yes
9274 tmp_sharedflag='-G' ;;
9275 *Sun\ F*) # Sun Fortran 8.3
9276 tmp_sharedflag='-G' ;;
9277 esac
ac9cc135 9278 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10946b02 9279
ac9cc135 9280 if test yes = "$supports_anon_versioning"; then
10946b02 9281 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
ac9cc135
AX
9282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9283 echo "local: *; };" >> $output_objdir/$libname.ver~
9284 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10946b02
AX
9285 fi
9286
9287 case $cc_basename in
ac9cc135
AX
9288 tcc*)
9289 export_dynamic_flag_spec='-rdynamic'
9290 ;;
10946b02
AX
9291 xlf* | bgf* | bgxlf* | mpixlf*)
9292 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9293 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
ac9cc135 9294 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10946b02 9295 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
ac9cc135 9296 if test yes = "$supports_anon_versioning"; then
10946b02 9297 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
ac9cc135
AX
9298 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9299 echo "local: *; };" >> $output_objdir/$libname.ver~
9300 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10946b02
AX
9301 fi
9302 ;;
9303 esac
9304 else
9305 ld_shlibs=no
9306 fi
9307 ;;
9308
2ea56c1d 9309 netbsd*)
10946b02
AX
9310 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9311 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9312 wlarc=
9313 else
ac9cc135
AX
9314 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9315 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
9316 fi
9317 ;;
9318
9319 solaris*)
9320 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9321 ld_shlibs=no
9322 cat <<_LT_EOF 1>&2
9323
9324*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9325*** create shared libraries on Solaris systems. Therefore, libtool
9326*** is disabling shared libraries support. We urge you to upgrade GNU
9327*** binutils to release 2.9.1 or newer. Another option is to modify
9328*** your PATH or compiler configuration so that the native linker is
9329*** used, and then restart.
9330
9331_LT_EOF
9332 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
ac9cc135
AX
9333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9334 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
9335 else
9336 ld_shlibs=no
9337 fi
9338 ;;
9339
9340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9341 case `$LD -v 2>&1` in
9342 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9343 ld_shlibs=no
9344 cat <<_LT_EOF 1>&2
9345
ac9cc135 9346*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10946b02
AX
9347*** reliably create shared libraries on SCO systems. Therefore, libtool
9348*** is disabling shared libraries support. We urge you to upgrade GNU
9349*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9350*** your PATH or compiler configuration so that the native linker is
9351*** used, and then restart.
9352
9353_LT_EOF
9354 ;;
9355 *)
9356 # For security reasons, it is highly recommended that you always
9357 # use absolute paths for naming shared libraries, and exclude the
9358 # DT_RUNPATH tag from executables and libraries. But doing so
9359 # requires that you compile everything twice, which is a pain.
9360 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
ac9cc135
AX
9361 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
9364 else
9365 ld_shlibs=no
9366 fi
9367 ;;
9368 esac
9369 ;;
9370
9371 sunos4*)
9372 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9373 wlarc=
9374 hardcode_direct=yes
9375 hardcode_shlibpath_var=no
9376 ;;
9377
9378 *)
9379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
ac9cc135
AX
9380 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9381 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
9382 else
9383 ld_shlibs=no
9384 fi
9385 ;;
9386 esac
9387
ac9cc135 9388 if test no = "$ld_shlibs"; then
10946b02
AX
9389 runpath_var=
9390 hardcode_libdir_flag_spec=
9391 export_dynamic_flag_spec=
9392 whole_archive_flag_spec=
9393 fi
9394 else
9395 # PORTME fill in a description of your system's linker (not GNU ld)
9396 case $host_os in
9397 aix3*)
9398 allow_undefined_flag=unsupported
9399 always_export_symbols=yes
9400 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'
9401 # Note: this linker hardcodes the directories in LIBPATH if there
9402 # are no directories specified by -L.
9403 hardcode_minus_L=yes
ac9cc135 9404 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10946b02
AX
9405 # Neither direct hardcoding nor static linking is supported with a
9406 # broken collect2.
9407 hardcode_direct=unsupported
9408 fi
9409 ;;
9410
9411 aix[4-9]*)
ac9cc135 9412 if test ia64 = "$host_cpu"; then
10946b02
AX
9413 # On IA64, the linker does run time linking by default, so we don't
9414 # have to do anything special.
9415 aix_use_runtimelinking=no
9416 exp_sym_flag='-Bexport'
ac9cc135 9417 no_entry_flag=
10946b02
AX
9418 else
9419 # If we're using GNU nm, then we don't want the "-C" option.
ac9cc135
AX
9420 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9421 # Without the "-l" option, or with the "-B" option, AIX nm treats
9422 # weak defined symbols like other global defined symbols, whereas
9423 # GNU nm marks them as "W".
9424 # While the 'weak' keyword is ignored in the Export File, we need
9425 # it in the Import File for the 'aix-soname' feature, so we have
9426 # to replace the "-B" option with "-P" for AIX nm.
10946b02 9427 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ac9cc135 9428 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'
10946b02 9429 else
ac9cc135 9430 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'
10946b02
AX
9431 fi
9432 aix_use_runtimelinking=no
9433
9434 # Test if we are trying to use run time linking or normal
9435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
ac9cc135
AX
9436 # have runtime linking enabled, and use it for executables.
9437 # For shared libraries, we enable/disable runtime linking
9438 # depending on the kind of the shared library created -
9439 # when "with_aix_soname,aix_use_runtimelinking" is:
9440 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9441 # "aix,yes" lib.so shared, rtl:yes, for executables
9442 # lib.a static archive
9443 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9444 # lib.a(lib.so.V) shared, rtl:no, for executables
9445 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9446 # lib.a(lib.so.V) shared, rtl:no
9447 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9448 # lib.a static archive
10946b02
AX
9449 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9450 for ld_flag in $LDFLAGS; do
ac9cc135 9451 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10946b02
AX
9452 aix_use_runtimelinking=yes
9453 break
9454 fi
9455 done
ac9cc135
AX
9456 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9457 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9458 # so we don't have lib.a shared libs to link our executables.
9459 # We have to force runtime linking in this case.
9460 aix_use_runtimelinking=yes
9461 LDFLAGS="$LDFLAGS -Wl,-brtl"
9462 fi
10946b02
AX
9463 ;;
9464 esac
9465
9466 exp_sym_flag='-bexport'
9467 no_entry_flag='-bnoentry'
9468 fi
9469
9470 # When large executables or shared objects are built, AIX ld can
9471 # have problems creating the table of contents. If linking a library
9472 # or program results in "error TOC overflow" add -mminimal-toc to
9473 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9474 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9475
9476 archive_cmds=''
9477 hardcode_direct=yes
9478 hardcode_direct_absolute=yes
9479 hardcode_libdir_separator=':'
9480 link_all_deplibs=yes
ac9cc135
AX
9481 file_list_spec='$wl-f,'
9482 case $with_aix_soname,$aix_use_runtimelinking in
9483 aix,*) ;; # traditional, no import file
9484 svr4,* | *,yes) # use import file
9485 # The Import File defines what to hardcode.
9486 hardcode_direct=no
9487 hardcode_direct_absolute=no
9488 ;;
9489 esac
10946b02 9490
ac9cc135 9491 if test yes = "$GCC"; then
10946b02
AX
9492 case $host_os in aix4.[012]|aix4.[012].*)
9493 # We only want to do this on AIX 4.2 and lower, the check
9494 # below for broken collect2 doesn't work under 4.3+
ac9cc135 9495 collect2name=`$CC -print-prog-name=collect2`
10946b02
AX
9496 if test -f "$collect2name" &&
9497 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9498 then
9499 # We have reworked collect2
9500 :
9501 else
9502 # We have old collect2
9503 hardcode_direct=unsupported
9504 # It fails to find uninstalled libraries when the uninstalled
9505 # path is not listed in the libpath. Setting hardcode_minus_L
9506 # to unsupported forces relinking
9507 hardcode_minus_L=yes
9508 hardcode_libdir_flag_spec='-L$libdir'
9509 hardcode_libdir_separator=
9510 fi
9511 ;;
9512 esac
9513 shared_flag='-shared'
ac9cc135
AX
9514 if test yes = "$aix_use_runtimelinking"; then
9515 shared_flag="$shared_flag "'$wl-G'
10946b02 9516 fi
ac9cc135
AX
9517 # Need to ensure runtime linking is disabled for the traditional
9518 # shared library, or the linker may eventually find shared libraries
9519 # /with/ Import File - we do not want to mix them.
9520 shared_flag_aix='-shared'
9521 shared_flag_svr4='-shared $wl-G'
10946b02
AX
9522 else
9523 # not using gcc
ac9cc135 9524 if test ia64 = "$host_cpu"; then
10946b02
AX
9525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9526 # chokes on -Wl,-G. The following line is correct:
9527 shared_flag='-G'
9528 else
ac9cc135
AX
9529 if test yes = "$aix_use_runtimelinking"; then
9530 shared_flag='$wl-G'
10946b02 9531 else
ac9cc135 9532 shared_flag='$wl-bM:SRE'
10946b02 9533 fi
ac9cc135
AX
9534 shared_flag_aix='$wl-bM:SRE'
9535 shared_flag_svr4='$wl-G'
10946b02
AX
9536 fi
9537 fi
9538
ac9cc135 9539 export_dynamic_flag_spec='$wl-bexpall'
10946b02
AX
9540 # It seems that -bexpall does not export symbols beginning with
9541 # underscore (_), so it is better to generate a list of symbols to export.
9542 always_export_symbols=yes
ac9cc135 9543 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10946b02
AX
9544 # Warning - without using the other runtime loading flags (-brtl),
9545 # -berok will link without error, but may produce a broken library.
9546 allow_undefined_flag='-berok'
9547 # Determine the default libpath from the value encoded in an
9548 # empty executable.
ac9cc135 9549 if test set = "${lt_cv_aix_libpath+set}"; then
10946b02
AX
9550 aix_libpath=$lt_cv_aix_libpath
9551else
9552 if ${lt_cv_aix_libpath_+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554else
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556/* end confdefs.h. */
9557
9558int
9559main ()
9560{
9561
9562 ;
9563 return 0;
9564}
9565_ACEOF
9566if ac_fn_c_try_link "$LINENO"; then :
9567
9568 lt_aix_libpath_sed='
9569 /Import File Strings/,/^$/ {
9570 /^0/ {
9571 s/^0 *\([^ ]*\) *$/\1/
9572 p
9573 }
9574 }'
9575 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9576 # Check for a 64-bit object if we didn't find anything.
9577 if test -z "$lt_cv_aix_libpath_"; then
9578 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9579 fi
9580fi
9581rm -f core conftest.err conftest.$ac_objext \
9582 conftest$ac_exeext conftest.$ac_ext
9583 if test -z "$lt_cv_aix_libpath_"; then
ac9cc135 9584 lt_cv_aix_libpath_=/usr/lib:/lib
10946b02
AX
9585 fi
9586
9587fi
9588
9589 aix_libpath=$lt_cv_aix_libpath_
9590fi
9591
ac9cc135
AX
9592 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9593 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
10946b02 9594 else
ac9cc135
AX
9595 if test ia64 = "$host_cpu"; then
9596 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10946b02 9597 allow_undefined_flag="-z nodefs"
ac9cc135 9598 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10946b02
AX
9599 else
9600 # Determine the default libpath from the value encoded in an
9601 # empty executable.
ac9cc135 9602 if test set = "${lt_cv_aix_libpath+set}"; then
10946b02
AX
9603 aix_libpath=$lt_cv_aix_libpath
9604else
9605 if ${lt_cv_aix_libpath_+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607else
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609/* end confdefs.h. */
9610
9611int
9612main ()
9613{
9614
9615 ;
9616 return 0;
9617}
9618_ACEOF
9619if ac_fn_c_try_link "$LINENO"; then :
9620
9621 lt_aix_libpath_sed='
9622 /Import File Strings/,/^$/ {
9623 /^0/ {
9624 s/^0 *\([^ ]*\) *$/\1/
9625 p
9626 }
9627 }'
9628 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9629 # Check for a 64-bit object if we didn't find anything.
9630 if test -z "$lt_cv_aix_libpath_"; then
9631 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9632 fi
9633fi
9634rm -f core conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636 if test -z "$lt_cv_aix_libpath_"; then
ac9cc135 9637 lt_cv_aix_libpath_=/usr/lib:/lib
10946b02
AX
9638 fi
9639
9640fi
9641
9642 aix_libpath=$lt_cv_aix_libpath_
9643fi
9644
ac9cc135 9645 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10946b02
AX
9646 # Warning - without using the other run time loading flags,
9647 # -berok will link without error, but may produce a broken library.
ac9cc135
AX
9648 no_undefined_flag=' $wl-bernotok'
9649 allow_undefined_flag=' $wl-berok'
9650 if test yes = "$with_gnu_ld"; then
10946b02 9651 # We only use this code for GNU lds that support --whole-archive.
ac9cc135 9652 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10946b02
AX
9653 else
9654 # Exported symbols can be pulled into shared objects from archives
9655 whole_archive_flag_spec='$convenience'
9656 fi
9657 archive_cmds_need_lc=yes
ac9cc135
AX
9658 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9659 # -brtl affects multiple linker settings, -berok does not and is overridden later
9660 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9661 if test svr4 != "$with_aix_soname"; then
9662 # This is similar to how AIX traditionally builds its shared libraries.
9663 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'
9664 fi
9665 if test aix != "$with_aix_soname"; then
9666 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'
9667 else
9668 # used by -dlpreopen to get the symbols
9669 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9670 fi
9671 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10946b02
AX
9672 fi
9673 fi
9674 ;;
9675
9676 amigaos*)
9677 case $host_cpu in
9678 powerpc)
9679 # see comment about AmigaOS4 .so support
ac9cc135 9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10946b02
AX
9681 archive_expsym_cmds=''
9682 ;;
9683 m68k)
9684 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)'
9685 hardcode_libdir_flag_spec='-L$libdir'
9686 hardcode_minus_L=yes
9687 ;;
9688 esac
9689 ;;
9690
9691 bsdi[45]*)
9692 export_dynamic_flag_spec=-rdynamic
9693 ;;
9694
9695 cygwin* | mingw* | pw32* | cegcc*)
9696 # When not using gcc, we currently assume that we are using
9697 # Microsoft Visual C++.
9698 # hardcode_libdir_flag_spec is actually meaningless, as there is
9699 # no search path for DLLs.
9700 case $cc_basename in
9701 cl*)
9702 # Native MSVC
9703 hardcode_libdir_flag_spec=' '
9704 allow_undefined_flag=unsupported
9705 always_export_symbols=yes
9706 file_list_spec='@'
9707 # Tell ltmain to make .lib files, not .a files.
9708 libext=lib
9709 # Tell ltmain to make .dll files, not .so files.
ac9cc135 9710 shrext_cmds=.dll
10946b02 9711 # FIXME: Setting linknames here is a bad hack.
ac9cc135
AX
9712 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9713 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9714 cp "$export_symbols" "$output_objdir/$soname.def";
9715 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9716 else
9717 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9718 fi~
9719 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9720 linknames='
10946b02
AX
9721 # The linker will not automatically build a static lib if we build a DLL.
9722 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9723 enable_shared_with_static_runtimes=yes
9724 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9725 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9726 # Don't use ranlib
9727 old_postinstall_cmds='chmod 644 $oldlib'
9728 postlink_cmds='lt_outputfile="@OUTPUT@"~
ac9cc135
AX
9729 lt_tool_outputfile="@TOOL_OUTPUT@"~
9730 case $lt_outputfile in
9731 *.exe|*.EXE) ;;
9732 *)
9733 lt_outputfile=$lt_outputfile.exe
9734 lt_tool_outputfile=$lt_tool_outputfile.exe
9735 ;;
9736 esac~
9737 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9738 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9739 $RM "$lt_outputfile.manifest";
9740 fi'
10946b02
AX
9741 ;;
9742 *)
9743 # Assume MSVC wrapper
9744 hardcode_libdir_flag_spec=' '
9745 allow_undefined_flag=unsupported
9746 # Tell ltmain to make .lib files, not .a files.
9747 libext=lib
9748 # Tell ltmain to make .dll files, not .so files.
ac9cc135 9749 shrext_cmds=.dll
10946b02
AX
9750 # FIXME: Setting linknames here is a bad hack.
9751 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9752 # The linker will automatically build a .lib file if we build a DLL.
9753 old_archive_from_new_cmds='true'
9754 # FIXME: Should let the user specify the lib program.
9755 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9756 enable_shared_with_static_runtimes=yes
9757 ;;
9758 esac
9759 ;;
9760
9761 darwin* | rhapsody*)
9762
9763
9764 archive_cmds_need_lc=no
9765 hardcode_direct=no
9766 hardcode_automatic=yes
9767 hardcode_shlibpath_var=unsupported
ac9cc135
AX
9768 if test yes = "$lt_cv_ld_force_load"; then
9769 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\"`'
10946b02
AX
9770
9771 else
9772 whole_archive_flag_spec=''
9773 fi
9774 link_all_deplibs=yes
ac9cc135 9775 allow_undefined_flag=$_lt_dar_allow_undefined
10946b02 9776 case $cc_basename in
ac9cc135 9777 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10946b02
AX
9778 *) _lt_dar_can_shared=$GCC ;;
9779 esac
ac9cc135 9780 if test yes = "$_lt_dar_can_shared"; then
10946b02 9781 output_verbose_link_cmd=func_echo_all
ac9cc135
AX
9782 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9783 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9784 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"
9785 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10946b02
AX
9786
9787 else
9788 ld_shlibs=no
9789 fi
9790
9791 ;;
9792
9793 dgux*)
9794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9795 hardcode_libdir_flag_spec='-L$libdir'
9796 hardcode_shlibpath_var=no
9797 ;;
9798
9799 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9800 # support. Future versions do this automatically, but an explicit c++rt0.o
9801 # does not break anything, and helps significantly (at the cost of a little
9802 # extra space).
9803 freebsd2.2*)
9804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9805 hardcode_libdir_flag_spec='-R$libdir'
9806 hardcode_direct=yes
9807 hardcode_shlibpath_var=no
9808 ;;
9809
9810 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9811 freebsd2.*)
9812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9813 hardcode_direct=yes
9814 hardcode_minus_L=yes
9815 hardcode_shlibpath_var=no
9816 ;;
9817
9818 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9819 freebsd* | dragonfly*)
9820 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9821 hardcode_libdir_flag_spec='-R$libdir'
9822 hardcode_direct=yes
9823 hardcode_shlibpath_var=no
9824 ;;
9825
9826 hpux9*)
ac9cc135
AX
9827 if test yes = "$GCC"; then
9828 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'
10946b02 9829 else
ac9cc135 9830 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'
10946b02 9831 fi
ac9cc135 9832 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10946b02
AX
9833 hardcode_libdir_separator=:
9834 hardcode_direct=yes
9835
9836 # hardcode_minus_L: Not really in the search PATH,
9837 # but as the default location of the library.
9838 hardcode_minus_L=yes
ac9cc135 9839 export_dynamic_flag_spec='$wl-E'
10946b02
AX
9840 ;;
9841
9842 hpux10*)
ac9cc135
AX
9843 if test yes,no = "$GCC,$with_gnu_ld"; then
9844 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9845 else
9846 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9847 fi
ac9cc135
AX
9848 if test no = "$with_gnu_ld"; then
9849 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10946b02
AX
9850 hardcode_libdir_separator=:
9851 hardcode_direct=yes
9852 hardcode_direct_absolute=yes
ac9cc135 9853 export_dynamic_flag_spec='$wl-E'
10946b02
AX
9854 # hardcode_minus_L: Not really in the search PATH,
9855 # but as the default location of the library.
9856 hardcode_minus_L=yes
9857 fi
9858 ;;
9859
9860 hpux11*)
ac9cc135 9861 if test yes,no = "$GCC,$with_gnu_ld"; then
10946b02
AX
9862 case $host_cpu in
9863 hppa*64*)
ac9cc135 9864 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9865 ;;
9866 ia64*)
ac9cc135 9867 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9868 ;;
9869 *)
ac9cc135 9870 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9871 ;;
9872 esac
9873 else
9874 case $host_cpu in
9875 hppa*64*)
ac9cc135 9876 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9877 ;;
9878 ia64*)
ac9cc135 9879 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9880 ;;
9881 *)
9882
9883 # Older versions of the 11.00 compiler do not understand -b yet
9884 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9886$as_echo_n "checking if $CC understands -b... " >&6; }
9887if ${lt_cv_prog_compiler__b+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889else
9890 lt_cv_prog_compiler__b=no
ac9cc135 9891 save_LDFLAGS=$LDFLAGS
10946b02
AX
9892 LDFLAGS="$LDFLAGS -b"
9893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9895 # The linker can only warn and ignore the option if not recognized
9896 # So say no if there are warnings
9897 if test -s conftest.err; then
9898 # Append any errors to the config.log.
9899 cat conftest.err 1>&5
9900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9902 if diff conftest.exp conftest.er2 >/dev/null; then
9903 lt_cv_prog_compiler__b=yes
9904 fi
9905 else
9906 lt_cv_prog_compiler__b=yes
9907 fi
9908 fi
9909 $RM -r conftest*
ac9cc135 9910 LDFLAGS=$save_LDFLAGS
10946b02
AX
9911
9912fi
9913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9914$as_echo "$lt_cv_prog_compiler__b" >&6; }
9915
ac9cc135
AX
9916if test yes = "$lt_cv_prog_compiler__b"; then
9917 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9918else
9919 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9920fi
9921
9922 ;;
9923 esac
9924 fi
ac9cc135
AX
9925 if test no = "$with_gnu_ld"; then
9926 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10946b02
AX
9927 hardcode_libdir_separator=:
9928
9929 case $host_cpu in
9930 hppa*64*|ia64*)
9931 hardcode_direct=no
9932 hardcode_shlibpath_var=no
9933 ;;
9934 *)
9935 hardcode_direct=yes
9936 hardcode_direct_absolute=yes
ac9cc135 9937 export_dynamic_flag_spec='$wl-E'
10946b02
AX
9938
9939 # hardcode_minus_L: Not really in the search PATH,
9940 # but as the default location of the library.
9941 hardcode_minus_L=yes
9942 ;;
9943 esac
9944 fi
9945 ;;
9946
9947 irix5* | irix6* | nonstopux*)
ac9cc135
AX
9948 if test yes = "$GCC"; then
9949 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'
10946b02
AX
9950 # Try to use the -exported_symbol ld option, if it does not
9951 # work, assume that -exports_file does not work either and
9952 # implicitly export all symbols.
9953 # This should be the same for all languages, so no per-tag cache variable.
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9955$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9956if ${lt_cv_irix_exported_symbol+:} false; then :
9957 $as_echo_n "(cached) " >&6
9958else
ac9cc135
AX
9959 save_LDFLAGS=$LDFLAGS
9960 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10946b02
AX
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962/* end confdefs.h. */
9963int foo (void) { return 0; }
9964_ACEOF
9965if ac_fn_c_try_link "$LINENO"; then :
9966 lt_cv_irix_exported_symbol=yes
9967else
9968 lt_cv_irix_exported_symbol=no
9969fi
9970rm -f core conftest.err conftest.$ac_objext \
9971 conftest$ac_exeext conftest.$ac_ext
ac9cc135 9972 LDFLAGS=$save_LDFLAGS
10946b02
AX
9973fi
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9975$as_echo "$lt_cv_irix_exported_symbol" >&6; }
ac9cc135
AX
9976 if test yes = "$lt_cv_irix_exported_symbol"; then
9977 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'
10946b02
AX
9978 fi
9979 else
ac9cc135
AX
9980 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'
9981 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'
10946b02
AX
9982 fi
9983 archive_cmds_need_lc='no'
ac9cc135 9984 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10946b02
AX
9985 hardcode_libdir_separator=:
9986 inherit_rpath=yes
9987 link_all_deplibs=yes
9988 ;;
9989
ac9cc135
AX
9990 linux*)
9991 case $cc_basename in
9992 tcc*)
9993 # Fabrice Bellard et al's Tiny C Compiler
9994 ld_shlibs=yes
9995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9996 ;;
9997 esac
9998 ;;
9999
2ea56c1d 10000 netbsd*)
10946b02
AX
10001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10003 else
10004 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10005 fi
10006 hardcode_libdir_flag_spec='-R$libdir'
10007 hardcode_direct=yes
10008 hardcode_shlibpath_var=no
10009 ;;
10010
10011 newsos6)
10012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_direct=yes
ac9cc135 10014 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10946b02
AX
10015 hardcode_libdir_separator=:
10016 hardcode_shlibpath_var=no
10017 ;;
10018
10019 *nto* | *qnx*)
10020 ;;
10021
ac9cc135 10022 openbsd* | bitrig*)
10946b02
AX
10023 if test -f /usr/libexec/ld.so; then
10024 hardcode_direct=yes
10025 hardcode_shlibpath_var=no
10026 hardcode_direct_absolute=yes
ac9cc135 10027 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10946b02 10028 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
ac9cc135
AX
10029 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10030 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10031 export_dynamic_flag_spec='$wl-E'
10946b02 10032 else
ac9cc135
AX
10033 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10034 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10946b02
AX
10035 fi
10036 else
10037 ld_shlibs=no
10038 fi
10039 ;;
10040
10041 os2*)
10042 hardcode_libdir_flag_spec='-L$libdir'
10043 hardcode_minus_L=yes
10044 allow_undefined_flag=unsupported
ac9cc135
AX
10045 shrext_cmds=.dll
10046 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10047 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10048 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10049 $ECHO EXPORTS >> $output_objdir/$libname.def~
10050 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10051 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10052 emximp -o $lib $output_objdir/$libname.def'
10053 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10054 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10055 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10056 $ECHO EXPORTS >> $output_objdir/$libname.def~
10057 prefix_cmds="$SED"~
10058 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10059 prefix_cmds="$prefix_cmds -e 1d";
10060 fi~
10061 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10062 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10063 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10064 emximp -o $lib $output_objdir/$libname.def'
10065 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10066 enable_shared_with_static_runtimes=yes
10946b02
AX
10067 ;;
10068
10069 osf3*)
ac9cc135
AX
10070 if test yes = "$GCC"; then
10071 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10072 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'
10946b02
AX
10073 else
10074 allow_undefined_flag=' -expect_unresolved \*'
ac9cc135 10075 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'
10946b02
AX
10076 fi
10077 archive_cmds_need_lc='no'
ac9cc135 10078 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10946b02
AX
10079 hardcode_libdir_separator=:
10080 ;;
10081
10082 osf4* | osf5*) # as osf3* with the addition of -msym flag
ac9cc135
AX
10083 if test yes = "$GCC"; then
10084 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10085 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'
10086 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10946b02
AX
10087 else
10088 allow_undefined_flag=' -expect_unresolved \*'
ac9cc135 10089 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'
10946b02 10090 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~
ac9cc135 10091 $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'
10946b02
AX
10092
10093 # Both c and cxx compiler support -rpath directly
10094 hardcode_libdir_flag_spec='-rpath $libdir'
10095 fi
10096 archive_cmds_need_lc='no'
10097 hardcode_libdir_separator=:
10098 ;;
10099
10100 solaris*)
10101 no_undefined_flag=' -z defs'
ac9cc135
AX
10102 if test yes = "$GCC"; then
10103 wlarc='$wl'
10104 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 10105 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ac9cc135 10106 $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'
10946b02
AX
10107 else
10108 case `$CC -V 2>&1` in
10109 *"Compilers 5.0"*)
10110 wlarc=''
ac9cc135 10111 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10946b02 10112 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ac9cc135 10113 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10946b02
AX
10114 ;;
10115 *)
ac9cc135
AX
10116 wlarc='$wl'
10117 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 10118 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ac9cc135 10119 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10946b02
AX
10120 ;;
10121 esac
10122 fi
10123 hardcode_libdir_flag_spec='-R$libdir'
10124 hardcode_shlibpath_var=no
10125 case $host_os in
10126 solaris2.[0-5] | solaris2.[0-5].*) ;;
10127 *)
10128 # The compiler driver will combine and reorder linker options,
ac9cc135 10129 # but understands '-z linker_flag'. GCC discards it without '$wl',
10946b02
AX
10130 # but is careful enough not to reorder.
10131 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac9cc135
AX
10132 if test yes = "$GCC"; then
10133 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10946b02
AX
10134 else
10135 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10136 fi
10137 ;;
10138 esac
10139 link_all_deplibs=yes
10140 ;;
10141
10142 sunos4*)
ac9cc135 10143 if test sequent = "$host_vendor"; then
10946b02
AX
10144 # Use $CC to link under sequent, because it throws in some extra .o
10145 # files that make .init and .fini sections work.
ac9cc135 10146 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
10147 else
10148 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10149 fi
10150 hardcode_libdir_flag_spec='-L$libdir'
10151 hardcode_direct=yes
10152 hardcode_minus_L=yes
10153 hardcode_shlibpath_var=no
10154 ;;
10155
10156 sysv4)
10157 case $host_vendor in
10158 sni)
10159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160 hardcode_direct=yes # is this really true???
10161 ;;
10162 siemens)
10163 ## LD is ld it makes a PLAMLIB
10164 ## CC just makes a GrossModule.
10165 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10166 reload_cmds='$CC -r -o $output$reload_objs'
10167 hardcode_direct=no
10168 ;;
10169 motorola)
10170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10171 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10172 ;;
10173 esac
10174 runpath_var='LD_RUN_PATH'
10175 hardcode_shlibpath_var=no
10176 ;;
10177
10178 sysv4.3*)
10179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180 hardcode_shlibpath_var=no
10181 export_dynamic_flag_spec='-Bexport'
10182 ;;
10183
10184 sysv4*MP*)
10185 if test -d /usr/nec; then
10186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187 hardcode_shlibpath_var=no
10188 runpath_var=LD_RUN_PATH
10189 hardcode_runpath_var=yes
10190 ld_shlibs=yes
10191 fi
10192 ;;
10193
10194 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
ac9cc135 10195 no_undefined_flag='$wl-z,text'
10946b02
AX
10196 archive_cmds_need_lc=no
10197 hardcode_shlibpath_var=no
10198 runpath_var='LD_RUN_PATH'
10199
ac9cc135
AX
10200 if test yes = "$GCC"; then
10201 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10202 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 10203 else
ac9cc135
AX
10204 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
10206 fi
10207 ;;
10208
10209 sysv5* | sco3.2v5* | sco5v6*)
ac9cc135 10210 # Note: We CANNOT use -z defs as we might desire, because we do not
10946b02
AX
10211 # link with -lc, and that would cause any symbols used from libc to
10212 # always be unresolved, which means just about no library would
10213 # ever link correctly. If we're not using GNU ld we use -z text
10214 # though, which does catch some bad symbols but isn't as heavy-handed
10215 # as -z defs.
ac9cc135
AX
10216 no_undefined_flag='$wl-z,text'
10217 allow_undefined_flag='$wl-z,nodefs'
10946b02
AX
10218 archive_cmds_need_lc=no
10219 hardcode_shlibpath_var=no
ac9cc135 10220 hardcode_libdir_flag_spec='$wl-R,$libdir'
10946b02
AX
10221 hardcode_libdir_separator=':'
10222 link_all_deplibs=yes
ac9cc135 10223 export_dynamic_flag_spec='$wl-Bexport'
10946b02
AX
10224 runpath_var='LD_RUN_PATH'
10225
ac9cc135
AX
10226 if test yes = "$GCC"; then
10227 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10228 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 10229 else
ac9cc135
AX
10230 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
10232 fi
10233 ;;
10234
10235 uts4*)
10236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10237 hardcode_libdir_flag_spec='-L$libdir'
10238 hardcode_shlibpath_var=no
10239 ;;
10240
10241 *)
10242 ld_shlibs=no
10243 ;;
10244 esac
10245
ac9cc135 10246 if test sni = "$host_vendor"; then
10946b02
AX
10247 case $host in
10248 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
ac9cc135 10249 export_dynamic_flag_spec='$wl-Blargedynsym'
10946b02
AX
10250 ;;
10251 esac
10252 fi
10253 fi
10254
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10256$as_echo "$ld_shlibs" >&6; }
ac9cc135 10257test no = "$ld_shlibs" && can_build_shared=no
10946b02
AX
10258
10259with_gnu_ld=$with_gnu_ld
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275#
10276# Do we need to explicitly link libc?
10277#
10278case "x$archive_cmds_need_lc" in
10279x|xyes)
10280 # Assume -lc should be added
10281 archive_cmds_need_lc=yes
10282
ac9cc135 10283 if test yes,yes = "$GCC,$enable_shared"; then
10946b02
AX
10284 case $archive_cmds in
10285 *'~'*)
10286 # FIXME: we may have to deal with multi-command sequences.
10287 ;;
10288 '$CC '*)
10289 # Test whether the compiler implicitly links with -lc since on some
10290 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10291 # to ld, don't add -lc before -lgcc.
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10293$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10294if ${lt_cv_archive_cmds_need_lc+:} false; then :
10295 $as_echo_n "(cached) " >&6
10296else
10297 $RM conftest*
10298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10299
10300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10301 (eval $ac_compile) 2>&5
10302 ac_status=$?
10303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10304 test $ac_status = 0; } 2>conftest.err; then
10305 soname=conftest
10306 lib=conftest
10307 libobjs=conftest.$ac_objext
10308 deplibs=
10309 wl=$lt_prog_compiler_wl
10310 pic_flag=$lt_prog_compiler_pic
10311 compiler_flags=-v
10312 linker_flags=-v
10313 verstring=
10314 output_objdir=.
10315 libname=conftest
10316 lt_save_allow_undefined_flag=$allow_undefined_flag
10317 allow_undefined_flag=
10318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10319 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10320 ac_status=$?
10321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10322 test $ac_status = 0; }
10323 then
10324 lt_cv_archive_cmds_need_lc=no
10325 else
10326 lt_cv_archive_cmds_need_lc=yes
10327 fi
10328 allow_undefined_flag=$lt_save_allow_undefined_flag
10329 else
10330 cat conftest.err 1>&5
10331 fi
10332 $RM conftest*
10333
10334fi
10335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10336$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10337 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10338 ;;
10339 esac
10340 fi
10341 ;;
10342esac
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10496$as_echo_n "checking dynamic linker characteristics... " >&6; }
10497
ac9cc135 10498if test yes = "$GCC"; then
10946b02 10499 case $host_os in
ac9cc135
AX
10500 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10501 *) lt_awk_arg='/^libraries:/' ;;
10946b02
AX
10502 esac
10503 case $host_os in
ac9cc135
AX
10504 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10505 *) lt_sed_strip_eq='s|=/|/|g' ;;
10946b02
AX
10506 esac
10507 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10508 case $lt_search_path_spec in
10509 *\;*)
10510 # if the path contains ";" then we assume it to be the separator
10511 # otherwise default to the standard path separator (i.e. ":") - it is
10512 # assumed that no part of a normal pathname contains ";" but that should
10513 # okay in the real world where ";" in dirpaths is itself problematic.
10514 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10515 ;;
10516 *)
10517 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10518 ;;
10519 esac
10520 # Ok, now we have the path, separated by spaces, we can step through it
ac9cc135 10521 # and add multilib dir if necessary...
10946b02 10522 lt_tmp_lt_search_path_spec=
ac9cc135
AX
10523 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10524 # ...but if some path component already ends with the multilib dir we assume
10525 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10526 case "$lt_multi_os_dir; $lt_search_path_spec " in
10527 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10528 lt_multi_os_dir=
10529 ;;
10530 esac
10946b02 10531 for lt_sys_path in $lt_search_path_spec; do
ac9cc135
AX
10532 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10533 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10534 elif test -n "$lt_multi_os_dir"; then
10946b02
AX
10535 test -d "$lt_sys_path" && \
10536 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10537 fi
10538 done
10539 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ac9cc135
AX
10540BEGIN {RS = " "; FS = "/|\n";} {
10541 lt_foo = "";
10542 lt_count = 0;
10946b02
AX
10543 for (lt_i = NF; lt_i > 0; lt_i--) {
10544 if ($lt_i != "" && $lt_i != ".") {
10545 if ($lt_i == "..") {
10546 lt_count++;
10547 } else {
10548 if (lt_count == 0) {
ac9cc135 10549 lt_foo = "/" $lt_i lt_foo;
10946b02
AX
10550 } else {
10551 lt_count--;
10552 }
10553 }
10554 }
10555 }
10556 if (lt_foo != "") { lt_freq[lt_foo]++; }
10557 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10558}'`
10559 # AWK program above erroneously prepends '/' to C:/dos/paths
10560 # for these hosts.
10561 case $host_os in
10562 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
ac9cc135 10563 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10946b02
AX
10564 esac
10565 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10566else
10567 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10568fi
10569library_names_spec=
10570libname_spec='lib$name'
10571soname_spec=
ac9cc135 10572shrext_cmds=.so
10946b02
AX
10573postinstall_cmds=
10574postuninstall_cmds=
10575finish_cmds=
10576finish_eval=
10577shlibpath_var=
10578shlibpath_overrides_runpath=unknown
10579version_type=none
10580dynamic_linker="$host_os ld.so"
10581sys_lib_dlsearch_path_spec="/lib /usr/lib"
10582need_lib_prefix=unknown
10583hardcode_into_libs=no
10584
10585# when you set need_version to no, make sure it does not cause -set_version
10586# flags to be left without arguments
10587need_version=unknown
10588
ac9cc135
AX
10589
10590
10946b02
AX
10591case $host_os in
10592aix3*)
10593 version_type=linux # correct to gnu/linux during the next big refactor
ac9cc135 10594 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10946b02
AX
10595 shlibpath_var=LIBPATH
10596
10597 # AIX 3 has no versioning support, so we append a major version to the name.
ac9cc135 10598 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
10599 ;;
10600
10601aix[4-9]*)
10602 version_type=linux # correct to gnu/linux during the next big refactor
10603 need_lib_prefix=no
10604 need_version=no
10605 hardcode_into_libs=yes
ac9cc135 10606 if test ia64 = "$host_cpu"; then
10946b02 10607 # AIX 5 supports IA64
ac9cc135 10608 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10946b02
AX
10609 shlibpath_var=LD_LIBRARY_PATH
10610 else
10611 # With GCC up to 2.95.x, collect2 would create an import file
10612 # for dependence libraries. The import file would start with
ac9cc135
AX
10613 # the line '#! .'. This would cause the generated library to
10614 # depend on '.', always an invalid library. This was fixed in
10946b02
AX
10615 # development snapshots of GCC prior to 3.0.
10616 case $host_os in
10617 aix4 | aix4.[01] | aix4.[01].*)
10618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10619 echo ' yes '
ac9cc135 10620 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10946b02
AX
10621 :
10622 else
10623 can_build_shared=no
10624 fi
10625 ;;
10626 esac
ac9cc135
AX
10627 # Using Import Files as archive members, it is possible to support
10628 # filename-based versioning of shared library archives on AIX. While
10629 # this would work for both with and without runtime linking, it will
10630 # prevent static linking of such archives. So we do filename-based
10631 # shared library versioning with .so extension only, which is used
10632 # when both runtime linking and shared linking is enabled.
10633 # Unfortunately, runtime linking may impact performance, so we do
10634 # not want this to be the default eventually. Also, we use the
10635 # versioned .so libs for executables only if there is the -brtl
10636 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10637 # To allow for filename-based versioning support, we need to create
10638 # libNAME.so.V as an archive file, containing:
10639 # *) an Import File, referring to the versioned filename of the
10640 # archive as well as the shared archive member, telling the
10641 # bitwidth (32 or 64) of that shared object, and providing the
10642 # list of exported symbols of that shared object, eventually
10643 # decorated with the 'weak' keyword
10644 # *) the shared object with the F_LOADONLY flag set, to really avoid
10645 # it being seen by the linker.
10646 # At run time we better use the real file rather than another symlink,
10647 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10648
10649 case $with_aix_soname,$aix_use_runtimelinking in
10650 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10946b02
AX
10651 # soname into executable. Probably we can add versioning support to
10652 # collect2, so additional links can be useful in future.
ac9cc135
AX
10653 aix,yes) # traditional libtool
10654 dynamic_linker='AIX unversionable lib.so'
10946b02
AX
10655 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10656 # instead of lib<name>.a to let people know that these are not
10657 # typical AIX shared libraries.
ac9cc135
AX
10658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10659 ;;
10660 aix,no) # traditional AIX only
10661 dynamic_linker='AIX lib.a(lib.so.V)'
10946b02
AX
10662 # We preserve .a as extension for shared libraries through AIX4.2
10663 # and later when we are not doing run time linking.
ac9cc135
AX
10664 library_names_spec='$libname$release.a $libname.a'
10665 soname_spec='$libname$release$shared_ext$major'
10666 ;;
10667 svr4,*) # full svr4 only
10668 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10669 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10670 # We do not specify a path in Import Files, so LIBPATH fires.
10671 shlibpath_overrides_runpath=yes
10672 ;;
10673 *,yes) # both, prefer svr4
10674 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10675 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10676 # unpreferred sharedlib libNAME.a needs extra handling
10677 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"'
10678 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"'
10679 # We do not specify a path in Import Files, so LIBPATH fires.
10680 shlibpath_overrides_runpath=yes
10681 ;;
10682 *,no) # both, prefer aix
10683 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10684 library_names_spec='$libname$release.a $libname.a'
10685 soname_spec='$libname$release$shared_ext$major'
10686 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10687 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)'
10688 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"'
10689 ;;
10690 esac
10946b02
AX
10691 shlibpath_var=LIBPATH
10692 fi
10693 ;;
10694
10695amigaos*)
10696 case $host_cpu in
10697 powerpc)
10698 # Since July 2007 AmigaOS4 officially supports .so libraries.
10699 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
ac9cc135 10700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10946b02
AX
10701 ;;
10702 m68k)
10703 library_names_spec='$libname.ixlibrary $libname.a'
10704 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ac9cc135 10705 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'
10946b02
AX
10706 ;;
10707 esac
10708 ;;
10709
10710beos*)
ac9cc135 10711 library_names_spec='$libname$shared_ext'
10946b02
AX
10712 dynamic_linker="$host_os ld.so"
10713 shlibpath_var=LIBRARY_PATH
10714 ;;
10715
10716bsdi[45]*)
10717 version_type=linux # correct to gnu/linux during the next big refactor
10718 need_version=no
ac9cc135
AX
10719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10720 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
10721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10725 # the default ld.so.conf also contains /usr/contrib/lib and
10726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10727 # libtool to hard-code these into programs
10728 ;;
10729
10730cygwin* | mingw* | pw32* | cegcc*)
10731 version_type=windows
ac9cc135 10732 shrext_cmds=.dll
10946b02
AX
10733 need_version=no
10734 need_lib_prefix=no
10735
10736 case $GCC,$cc_basename in
10737 yes,*)
10738 # gcc
10739 library_names_spec='$libname.dll.a'
10740 # DLL is installed to $(libdir)/../bin by postinstall_cmds
ac9cc135
AX
10741 postinstall_cmds='base_file=`basename \$file`~
10742 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10946b02
AX
10743 dldir=$destdir/`dirname \$dlpath`~
10744 test -d \$dldir || mkdir -p \$dldir~
10745 $install_prog $dir/$dlname \$dldir/$dlname~
10746 chmod a+x \$dldir/$dlname~
10747 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10748 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10749 fi'
10750 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10751 dlpath=$dir/\$dldll~
10752 $RM \$dlpath'
10753 shlibpath_overrides_runpath=yes
10754
10755 case $host_os in
10756 cygwin*)
10757 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
ac9cc135 10758 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10946b02
AX
10759
10760 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10761 ;;
10762 mingw* | cegcc*)
10763 # MinGW DLLs use traditional 'lib' prefix
ac9cc135 10764 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10946b02
AX
10765 ;;
10766 pw32*)
10767 # pw32 DLLs use 'pw' prefix rather than 'lib'
ac9cc135 10768 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10946b02
AX
10769 ;;
10770 esac
10771 dynamic_linker='Win32 ld.exe'
10772 ;;
10773
10774 *,cl*)
10775 # Native MSVC
10776 libname_spec='$name'
ac9cc135
AX
10777 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10778 library_names_spec='$libname.dll.lib'
10946b02
AX
10779
10780 case $build_os in
10781 mingw*)
10782 sys_lib_search_path_spec=
10783 lt_save_ifs=$IFS
10784 IFS=';'
10785 for lt_path in $LIB
10786 do
10787 IFS=$lt_save_ifs
10788 # Let DOS variable expansion print the short 8.3 style file name.
10789 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10790 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10791 done
10792 IFS=$lt_save_ifs
10793 # Convert to MSYS style.
10794 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10795 ;;
10796 cygwin*)
10797 # Convert to unix form, then to dos form, then back to unix form
10798 # but this time dos style (no spaces!) so that the unix form looks
10799 # like /cygdrive/c/PROGRA~1:/cygdr...
10800 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10801 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10802 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10803 ;;
10804 *)
ac9cc135 10805 sys_lib_search_path_spec=$LIB
10946b02
AX
10806 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10807 # It is most probably a Windows format PATH.
10808 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10809 else
10810 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10811 fi
10812 # FIXME: find the short name or the path components, as spaces are
10813 # common. (e.g. "Program Files" -> "PROGRA~1")
10814 ;;
10815 esac
10816
10817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
ac9cc135
AX
10818 postinstall_cmds='base_file=`basename \$file`~
10819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10946b02
AX
10820 dldir=$destdir/`dirname \$dlpath`~
10821 test -d \$dldir || mkdir -p \$dldir~
10822 $install_prog $dir/$dlname \$dldir/$dlname'
10823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10824 dlpath=$dir/\$dldll~
10825 $RM \$dlpath'
10826 shlibpath_overrides_runpath=yes
10827 dynamic_linker='Win32 link.exe'
10828 ;;
10829
10830 *)
10831 # Assume MSVC wrapper
ac9cc135 10832 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10946b02
AX
10833 dynamic_linker='Win32 ld.exe'
10834 ;;
10835 esac
10836 # FIXME: first we should search . and the directory the executable is in
10837 shlibpath_var=PATH
10838 ;;
10839
10840darwin* | rhapsody*)
10841 dynamic_linker="$host_os dyld"
10842 version_type=darwin
10843 need_lib_prefix=no
10844 need_version=no
ac9cc135
AX
10845 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10846 soname_spec='$libname$release$major$shared_ext'
10946b02
AX
10847 shlibpath_overrides_runpath=yes
10848 shlibpath_var=DYLD_LIBRARY_PATH
10849 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10850
10851 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10852 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10853 ;;
10854
10855dgux*)
10856 version_type=linux # correct to gnu/linux during the next big refactor
10857 need_lib_prefix=no
10858 need_version=no
ac9cc135
AX
10859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10860 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
10861 shlibpath_var=LD_LIBRARY_PATH
10862 ;;
10863
10864freebsd* | dragonfly*)
10865 # DragonFly does not have aout. When/if they implement a new
10866 # versioning mechanism, adjust this.
10867 if test -x /usr/bin/objformat; then
10868 objformat=`/usr/bin/objformat`
10869 else
10870 case $host_os in
10871 freebsd[23].*) objformat=aout ;;
10872 *) objformat=elf ;;
10873 esac
10874 fi
10875 version_type=freebsd-$objformat
10876 case $version_type in
10877 freebsd-elf*)
ac9cc135
AX
10878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10879 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
10880 need_version=no
10881 need_lib_prefix=no
10882 ;;
10883 freebsd-*)
ac9cc135 10884 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10946b02
AX
10885 need_version=yes
10886 ;;
10887 esac
10888 shlibpath_var=LD_LIBRARY_PATH
10889 case $host_os in
10890 freebsd2.*)
10891 shlibpath_overrides_runpath=yes
10892 ;;
10893 freebsd3.[01]* | freebsdelf3.[01]*)
10894 shlibpath_overrides_runpath=yes
10895 hardcode_into_libs=yes
10896 ;;
10897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10899 shlibpath_overrides_runpath=no
10900 hardcode_into_libs=yes
10901 ;;
10902 *) # from 4.6 on, and DragonFly
10903 shlibpath_overrides_runpath=yes
10904 hardcode_into_libs=yes
10905 ;;
10906 esac
10907 ;;
10908
10946b02
AX
10909haiku*)
10910 version_type=linux # correct to gnu/linux during the next big refactor
10911 need_lib_prefix=no
10912 need_version=no
10913 dynamic_linker="$host_os runtime_loader"
ac9cc135
AX
10914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10915 soname_spec='$libname$release$shared_ext$major'
10946b02 10916 shlibpath_var=LIBRARY_PATH
ac9cc135 10917 shlibpath_overrides_runpath=no
10946b02
AX
10918 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10919 hardcode_into_libs=yes
10920 ;;
10921
10922hpux9* | hpux10* | hpux11*)
10923 # Give a soname corresponding to the major version so that dld.sl refuses to
10924 # link against other versions.
10925 version_type=sunos
10926 need_lib_prefix=no
10927 need_version=no
10928 case $host_cpu in
10929 ia64*)
10930 shrext_cmds='.so'
10931 hardcode_into_libs=yes
10932 dynamic_linker="$host_os dld.so"
10933 shlibpath_var=LD_LIBRARY_PATH
10934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
ac9cc135
AX
10935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10936 soname_spec='$libname$release$shared_ext$major'
10937 if test 32 = "$HPUX_IA64_MODE"; then
10946b02 10938 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
ac9cc135 10939 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10946b02
AX
10940 else
10941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
ac9cc135 10942 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10946b02 10943 fi
10946b02
AX
10944 ;;
10945 hppa*64*)
10946 shrext_cmds='.sl'
10947 hardcode_into_libs=yes
10948 dynamic_linker="$host_os dld.sl"
10949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
ac9cc135
AX
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'
10946b02
AX
10953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10955 ;;
10956 *)
10957 shrext_cmds='.sl'
10958 dynamic_linker="$host_os dld.sl"
10959 shlibpath_var=SHLIB_PATH
10960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
ac9cc135
AX
10961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10962 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
10963 ;;
10964 esac
10965 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10966 postinstall_cmds='chmod 555 $lib'
10967 # or fails outright, so override atomically:
10968 install_override_mode=555
10969 ;;
10970
10971interix[3-9]*)
10972 version_type=linux # correct to gnu/linux during the next big refactor
10973 need_lib_prefix=no
10974 need_version=no
ac9cc135
AX
10975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10976 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
10977 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=no
10980 hardcode_into_libs=yes
10981 ;;
10982
10983irix5* | irix6* | nonstopux*)
10984 case $host_os in
10985 nonstopux*) version_type=nonstopux ;;
10986 *)
ac9cc135 10987 if test yes = "$lt_cv_prog_gnu_ld"; then
10946b02
AX
10988 version_type=linux # correct to gnu/linux during the next big refactor
10989 else
10990 version_type=irix
10991 fi ;;
10992 esac
10993 need_lib_prefix=no
10994 need_version=no
ac9cc135
AX
10995 soname_spec='$libname$release$shared_ext$major'
10996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10946b02
AX
10997 case $host_os in
10998 irix5* | nonstopux*)
10999 libsuff= shlibsuff=
11000 ;;
11001 *)
11002 case $LD in # libtool.m4 will add one of these switches to LD
11003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11004 libsuff= shlibsuff= libmagic=32-bit;;
11005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11006 libsuff=32 shlibsuff=N32 libmagic=N32;;
11007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11008 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11009 *) libsuff= shlibsuff= libmagic=never-match;;
11010 esac
11011 ;;
11012 esac
11013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11014 shlibpath_overrides_runpath=no
ac9cc135
AX
11015 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11016 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10946b02
AX
11017 hardcode_into_libs=yes
11018 ;;
11019
11020# No shared lib support for Linux oldld, aout, or coff.
11021linux*oldld* | linux*aout* | linux*coff*)
11022 dynamic_linker=no
11023 ;;
11024
ac9cc135
AX
11025linux*android*)
11026 version_type=none # Android doesn't support versioned libraries.
11027 need_lib_prefix=no
11028 need_version=no
11029 library_names_spec='$libname$release$shared_ext'
11030 soname_spec='$libname$release$shared_ext'
11031 finish_cmds=
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=yes
11034
11035 # This implies no fast_install, which is unacceptable.
11036 # Some rework will be needed to allow for fast_install
11037 # before this can be enabled.
11038 hardcode_into_libs=yes
11039
11040 dynamic_linker='Android linker'
11041 # Don't embed -rpath directories since the linker doesn't support them.
11042 hardcode_libdir_flag_spec='-L$libdir'
11043 ;;
11044
10946b02 11045# This must be glibc/ELF.
ac9cc135 11046linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10946b02
AX
11047 version_type=linux # correct to gnu/linux during the next big refactor
11048 need_lib_prefix=no
11049 need_version=no
ac9cc135
AX
11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11051 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
11052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=no
11055
11056 # Some binutils ld are patched to set DT_RUNPATH
11057 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11058 $as_echo_n "(cached) " >&6
11059else
11060 lt_cv_shlibpath_overrides_runpath=no
11061 save_LDFLAGS=$LDFLAGS
11062 save_libdir=$libdir
11063 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11064 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066/* end confdefs.h. */
11067
11068int
11069main ()
11070{
11071
11072 ;
11073 return 0;
11074}
11075_ACEOF
11076if ac_fn_c_try_link "$LINENO"; then :
11077 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11078 lt_cv_shlibpath_overrides_runpath=yes
11079fi
11080fi
11081rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 LDFLAGS=$save_LDFLAGS
11084 libdir=$save_libdir
11085
11086fi
11087
11088 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11089
11090 # This implies no fast_install, which is unacceptable.
11091 # Some rework will be needed to allow for fast_install
11092 # before this can be enabled.
11093 hardcode_into_libs=yes
11094
2ea56c1d
AX
11095 # Add ABI-specific directories to the system library path.
11096 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11097
ac9cc135
AX
11098 # Ideally, we could use ldconfig to report *all* directores which are
11099 # searched for libraries, however this is still not possible. Aside from not
11100 # being certain /sbin/ldconfig is available, command
11101 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11102 # even though it is searched at run-time. Try to do the best guess by
11103 # appending ld.so.conf contents (and includes) to the search path.
10946b02
AX
11104 if test -f /etc/ld.so.conf; then
11105 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' ' '`
2ea56c1d 11106 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10946b02
AX
11107 fi
11108
11109 # We used to test for /lib/ld.so.1 and disable shared libraries on
11110 # powerpc, because MkLinux only supported shared libraries with the
11111 # GNU dynamic linker. Since this was broken with cross compilers,
11112 # most powerpc-linux boxes support dynamic linking these days and
11113 # people can always --disable-shared, the test was removed, and we
11114 # assume the GNU/Linux dynamic linker is in use.
11115 dynamic_linker='GNU/Linux ld.so'
11116 ;;
11117
10946b02
AX
11118netbsd*)
11119 version_type=sunos
11120 need_lib_prefix=no
11121 need_version=no
11122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
ac9cc135 11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10946b02
AX
11124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11125 dynamic_linker='NetBSD (a.out) ld.so'
11126 else
ac9cc135
AX
11127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11128 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
11129 dynamic_linker='NetBSD ld.elf_so'
11130 fi
11131 shlibpath_var=LD_LIBRARY_PATH
11132 shlibpath_overrides_runpath=yes
11133 hardcode_into_libs=yes
11134 ;;
11135
11136newsos6)
11137 version_type=linux # correct to gnu/linux during the next big refactor
ac9cc135 11138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10946b02
AX
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=yes
11141 ;;
11142
11143*nto* | *qnx*)
11144 version_type=qnx
11145 need_lib_prefix=no
11146 need_version=no
ac9cc135
AX
11147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11148 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
11149 shlibpath_var=LD_LIBRARY_PATH
11150 shlibpath_overrides_runpath=no
11151 hardcode_into_libs=yes
11152 dynamic_linker='ldqnx.so'
11153 ;;
11154
ac9cc135 11155openbsd* | bitrig*)
10946b02 11156 version_type=sunos
ac9cc135 11157 sys_lib_dlsearch_path_spec=/usr/lib
10946b02 11158 need_lib_prefix=no
ac9cc135
AX
11159 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11160 need_version=no
10946b02 11161 else
ac9cc135 11162 need_version=yes
10946b02 11163 fi
ac9cc135
AX
11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=yes
10946b02
AX
11168 ;;
11169
11170os2*)
11171 libname_spec='$name'
ac9cc135
AX
11172 version_type=windows
11173 shrext_cmds=.dll
11174 need_version=no
10946b02 11175 need_lib_prefix=no
ac9cc135
AX
11176 # OS/2 can only load a DLL with a base name of 8 characters or less.
11177 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11178 v=$($ECHO $release$versuffix | tr -d .-);
11179 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11180 $ECHO $n$v`$shared_ext'
11181 library_names_spec='${libname}_dll.$libext'
10946b02 11182 dynamic_linker='OS/2 ld.exe'
ac9cc135
AX
11183 shlibpath_var=BEGINLIBPATH
11184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11186 postinstall_cmds='base_file=`basename \$file`~
11187 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11188 dldir=$destdir/`dirname \$dlpath`~
11189 test -d \$dldir || mkdir -p \$dldir~
11190 $install_prog $dir/$dlname \$dldir/$dlname~
11191 chmod a+x \$dldir/$dlname~
11192 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11193 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11194 fi'
11195 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11196 dlpath=$dir/\$dldll~
11197 $RM \$dlpath'
10946b02
AX
11198 ;;
11199
11200osf3* | osf4* | osf5*)
11201 version_type=osf
11202 need_lib_prefix=no
11203 need_version=no
ac9cc135
AX
11204 soname_spec='$libname$release$shared_ext$major'
11205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10946b02
AX
11206 shlibpath_var=LD_LIBRARY_PATH
11207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
ac9cc135 11208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10946b02
AX
11209 ;;
11210
11211rdos*)
11212 dynamic_linker=no
11213 ;;
11214
11215solaris*)
11216 version_type=linux # correct to gnu/linux during the next big refactor
11217 need_lib_prefix=no
11218 need_version=no
ac9cc135
AX
11219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
11221 shlibpath_var=LD_LIBRARY_PATH
11222 shlibpath_overrides_runpath=yes
11223 hardcode_into_libs=yes
11224 # ldd complains unless libraries are executable
11225 postinstall_cmds='chmod +x $lib'
11226 ;;
11227
11228sunos4*)
11229 version_type=sunos
ac9cc135 11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10946b02
AX
11231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11232 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes
ac9cc135 11234 if test yes = "$with_gnu_ld"; then
10946b02
AX
11235 need_lib_prefix=no
11236 fi
11237 need_version=yes
11238 ;;
11239
11240sysv4 | sysv4.3*)
11241 version_type=linux # correct to gnu/linux during the next big refactor
ac9cc135
AX
11242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11243 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
11244 shlibpath_var=LD_LIBRARY_PATH
11245 case $host_vendor in
11246 sni)
11247 shlibpath_overrides_runpath=no
11248 need_lib_prefix=no
11249 runpath_var=LD_RUN_PATH
11250 ;;
11251 siemens)
11252 need_lib_prefix=no
11253 ;;
11254 motorola)
11255 need_lib_prefix=no
11256 need_version=no
11257 shlibpath_overrides_runpath=no
11258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11259 ;;
11260 esac
11261 ;;
11262
11263sysv4*MP*)
ac9cc135 11264 if test -d /usr/nec; then
10946b02 11265 version_type=linux # correct to gnu/linux during the next big refactor
ac9cc135
AX
11266 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11267 soname_spec='$libname$shared_ext.$major'
10946b02
AX
11268 shlibpath_var=LD_LIBRARY_PATH
11269 fi
11270 ;;
11271
11272sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
ac9cc135 11273 version_type=sco
10946b02
AX
11274 need_lib_prefix=no
11275 need_version=no
ac9cc135
AX
11276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11277 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
11278 shlibpath_var=LD_LIBRARY_PATH
11279 shlibpath_overrides_runpath=yes
11280 hardcode_into_libs=yes
ac9cc135 11281 if test yes = "$with_gnu_ld"; then
10946b02
AX
11282 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11283 else
11284 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11285 case $host_os in
11286 sco3.2v5*)
11287 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11288 ;;
11289 esac
11290 fi
11291 sys_lib_dlsearch_path_spec='/usr/lib'
11292 ;;
11293
11294tpf*)
11295 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11296 version_type=linux # correct to gnu/linux during the next big refactor
11297 need_lib_prefix=no
11298 need_version=no
ac9cc135 11299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10946b02
AX
11300 shlibpath_var=LD_LIBRARY_PATH
11301 shlibpath_overrides_runpath=no
11302 hardcode_into_libs=yes
11303 ;;
11304
11305uts4*)
11306 version_type=linux # correct to gnu/linux during the next big refactor
ac9cc135
AX
11307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11308 soname_spec='$libname$release$shared_ext$major'
10946b02
AX
11309 shlibpath_var=LD_LIBRARY_PATH
11310 ;;
11311
11312*)
11313 dynamic_linker=no
11314 ;;
11315esac
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11317$as_echo "$dynamic_linker" >&6; }
ac9cc135 11318test no = "$dynamic_linker" && can_build_shared=no
10946b02
AX
11319
11320variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
ac9cc135 11321if test yes = "$GCC"; then
10946b02
AX
11322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11323fi
11324
ac9cc135
AX
11325if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11326 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10946b02 11327fi
ac9cc135
AX
11328
11329if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11330 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10946b02
AX
11331fi
11332
ac9cc135
AX
11333# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11334configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11335
11336# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11337func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11338
11339# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11340configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11341
11342
11343
11344
11345
11346
10946b02
AX
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11439$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11440hardcode_action=
11441if test -n "$hardcode_libdir_flag_spec" ||
11442 test -n "$runpath_var" ||
ac9cc135 11443 test yes = "$hardcode_automatic"; then
10946b02
AX
11444
11445 # We can hardcode non-existent directories.
ac9cc135 11446 if test no != "$hardcode_direct" &&
10946b02
AX
11447 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11448 # have to relink, otherwise we might link with an installed library
11449 # when we should be linking with a yet-to-be-installed one
ac9cc135
AX
11450 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11451 test no != "$hardcode_minus_L"; then
10946b02
AX
11452 # Linking always hardcodes the temporary library directory.
11453 hardcode_action=relink
11454 else
11455 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11456 hardcode_action=immediate
11457 fi
11458else
11459 # We cannot hardcode anything, or else we can only hardcode existing
11460 # directories.
11461 hardcode_action=unsupported
11462fi
11463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11464$as_echo "$hardcode_action" >&6; }
11465
ac9cc135
AX
11466if test relink = "$hardcode_action" ||
11467 test yes = "$inherit_rpath"; then
10946b02
AX
11468 # Fast installation is not supported
11469 enable_fast_install=no
ac9cc135
AX
11470elif test yes = "$shlibpath_overrides_runpath" ||
11471 test no = "$enable_shared"; then
10946b02
AX
11472 # Fast installation is not necessary
11473 enable_fast_install=needless
11474fi
11475
11476
11477
11478
11479
11480
ac9cc135 11481 if test yes != "$enable_dlopen"; then
10946b02
AX
11482 enable_dlopen=unknown
11483 enable_dlopen_self=unknown
11484 enable_dlopen_self_static=unknown
11485else
11486 lt_cv_dlopen=no
11487 lt_cv_dlopen_libs=
11488
11489 case $host_os in
11490 beos*)
ac9cc135 11491 lt_cv_dlopen=load_add_on
10946b02
AX
11492 lt_cv_dlopen_libs=
11493 lt_cv_dlopen_self=yes
11494 ;;
11495
11496 mingw* | pw32* | cegcc*)
ac9cc135 11497 lt_cv_dlopen=LoadLibrary
10946b02
AX
11498 lt_cv_dlopen_libs=
11499 ;;
11500
11501 cygwin*)
ac9cc135 11502 lt_cv_dlopen=dlopen
10946b02
AX
11503 lt_cv_dlopen_libs=
11504 ;;
11505
11506 darwin*)
ac9cc135 11507 # if libdl is installed we need to link against it
10946b02
AX
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11509$as_echo_n "checking for dlopen in -ldl... " >&6; }
11510if ${ac_cv_lib_dl_dlopen+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512else
11513 ac_check_lib_save_LIBS=$LIBS
11514LIBS="-ldl $LIBS"
11515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516/* end confdefs.h. */
11517
11518/* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521#ifdef __cplusplus
11522extern "C"
11523#endif
11524char dlopen ();
11525int
11526main ()
11527{
11528return dlopen ();
11529 ;
11530 return 0;
11531}
11532_ACEOF
11533if ac_fn_c_try_link "$LINENO"; then :
11534 ac_cv_lib_dl_dlopen=yes
11535else
11536 ac_cv_lib_dl_dlopen=no
11537fi
11538rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540LIBS=$ac_check_lib_save_LIBS
11541fi
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11543$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11544if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ac9cc135 11545 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10946b02
AX
11546else
11547
ac9cc135 11548 lt_cv_dlopen=dyld
10946b02
AX
11549 lt_cv_dlopen_libs=
11550 lt_cv_dlopen_self=yes
11551
11552fi
11553
11554 ;;
11555
ac9cc135
AX
11556 tpf*)
11557 # Don't try to run any link tests for TPF. We know it's impossible
11558 # because TPF is a cross-compiler, and we know how we open DSOs.
11559 lt_cv_dlopen=dlopen
11560 lt_cv_dlopen_libs=
11561 lt_cv_dlopen_self=no
11562 ;;
11563
10946b02
AX
11564 *)
11565 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11566if test "x$ac_cv_func_shl_load" = xyes; then :
ac9cc135 11567 lt_cv_dlopen=shl_load
10946b02
AX
11568else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11570$as_echo_n "checking for shl_load in -ldld... " >&6; }
11571if ${ac_cv_lib_dld_shl_load+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573else
11574 ac_check_lib_save_LIBS=$LIBS
11575LIBS="-ldld $LIBS"
11576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577/* end confdefs.h. */
11578
11579/* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11582#ifdef __cplusplus
11583extern "C"
11584#endif
11585char shl_load ();
11586int
11587main ()
11588{
11589return shl_load ();
11590 ;
11591 return 0;
11592}
11593_ACEOF
11594if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_dld_shl_load=yes
11596else
11597 ac_cv_lib_dld_shl_load=no
11598fi
11599rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601LIBS=$ac_check_lib_save_LIBS
11602fi
11603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11604$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11605if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
ac9cc135 11606 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10946b02
AX
11607else
11608 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11609if test "x$ac_cv_func_dlopen" = xyes; then :
ac9cc135 11610 lt_cv_dlopen=dlopen
10946b02
AX
11611else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11613$as_echo_n "checking for dlopen in -ldl... " >&6; }
11614if ${ac_cv_lib_dl_dlopen+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616else
11617 ac_check_lib_save_LIBS=$LIBS
11618LIBS="-ldl $LIBS"
11619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620/* end confdefs.h. */
11621
11622/* Override any GCC internal prototype to avoid an error.
11623 Use char because int might match the return type of a GCC
11624 builtin and then its argument prototype would still apply. */
11625#ifdef __cplusplus
11626extern "C"
11627#endif
11628char dlopen ();
11629int
11630main ()
11631{
11632return dlopen ();
11633 ;
11634 return 0;
11635}
11636_ACEOF
11637if ac_fn_c_try_link "$LINENO"; then :
11638 ac_cv_lib_dl_dlopen=yes
11639else
11640 ac_cv_lib_dl_dlopen=no
11641fi
11642rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644LIBS=$ac_check_lib_save_LIBS
11645fi
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11647$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11648if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ac9cc135 11649 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10946b02
AX
11650else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11652$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11653if ${ac_cv_lib_svld_dlopen+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655else
11656 ac_check_lib_save_LIBS=$LIBS
11657LIBS="-lsvld $LIBS"
11658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659/* end confdefs.h. */
11660
11661/* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11664#ifdef __cplusplus
11665extern "C"
11666#endif
11667char dlopen ();
11668int
11669main ()
11670{
11671return dlopen ();
11672 ;
11673 return 0;
11674}
11675_ACEOF
11676if ac_fn_c_try_link "$LINENO"; then :
11677 ac_cv_lib_svld_dlopen=yes
11678else
11679 ac_cv_lib_svld_dlopen=no
11680fi
11681rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683LIBS=$ac_check_lib_save_LIBS
11684fi
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11686$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11687if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
ac9cc135 11688 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
10946b02
AX
11689else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11691$as_echo_n "checking for dld_link in -ldld... " >&6; }
11692if ${ac_cv_lib_dld_dld_link+:} false; then :
11693 $as_echo_n "(cached) " >&6
11694else
11695 ac_check_lib_save_LIBS=$LIBS
11696LIBS="-ldld $LIBS"
11697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698/* end confdefs.h. */
11699
11700/* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706char dld_link ();
11707int
11708main ()
11709{
11710return dld_link ();
11711 ;
11712 return 0;
11713}
11714_ACEOF
11715if ac_fn_c_try_link "$LINENO"; then :
11716 ac_cv_lib_dld_dld_link=yes
11717else
11718 ac_cv_lib_dld_dld_link=no
11719fi
11720rm -f core conftest.err conftest.$ac_objext \
11721 conftest$ac_exeext conftest.$ac_ext
11722LIBS=$ac_check_lib_save_LIBS
11723fi
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11725$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11726if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
ac9cc135 11727 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
10946b02
AX
11728fi
11729
11730
11731fi
11732
11733
11734fi
11735
11736
11737fi
11738
11739
11740fi
11741
11742
11743fi
11744
11745 ;;
11746 esac
11747
ac9cc135 11748 if test no = "$lt_cv_dlopen"; then
10946b02 11749 enable_dlopen=no
ac9cc135
AX
11750 else
11751 enable_dlopen=yes
10946b02
AX
11752 fi
11753
11754 case $lt_cv_dlopen in
11755 dlopen)
ac9cc135
AX
11756 save_CPPFLAGS=$CPPFLAGS
11757 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10946b02 11758
ac9cc135 11759 save_LDFLAGS=$LDFLAGS
10946b02
AX
11760 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11761
ac9cc135 11762 save_LIBS=$LIBS
10946b02
AX
11763 LIBS="$lt_cv_dlopen_libs $LIBS"
11764
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11766$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11767if ${lt_cv_dlopen_self+:} false; then :
11768 $as_echo_n "(cached) " >&6
11769else
ac9cc135 11770 if test yes = "$cross_compiling"; then :
10946b02
AX
11771 lt_cv_dlopen_self=cross
11772else
11773 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11774 lt_status=$lt_dlunknown
11775 cat > conftest.$ac_ext <<_LT_EOF
11776#line $LINENO "configure"
11777#include "confdefs.h"
11778
11779#if HAVE_DLFCN_H
11780#include <dlfcn.h>
11781#endif
11782
11783#include <stdio.h>
11784
11785#ifdef RTLD_GLOBAL
11786# define LT_DLGLOBAL RTLD_GLOBAL
11787#else
11788# ifdef DL_GLOBAL
11789# define LT_DLGLOBAL DL_GLOBAL
11790# else
11791# define LT_DLGLOBAL 0
11792# endif
11793#endif
11794
11795/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11796 find out it does not work in some platform. */
11797#ifndef LT_DLLAZY_OR_NOW
11798# ifdef RTLD_LAZY
11799# define LT_DLLAZY_OR_NOW RTLD_LAZY
11800# else
11801# ifdef DL_LAZY
11802# define LT_DLLAZY_OR_NOW DL_LAZY
11803# else
11804# ifdef RTLD_NOW
11805# define LT_DLLAZY_OR_NOW RTLD_NOW
11806# else
11807# ifdef DL_NOW
11808# define LT_DLLAZY_OR_NOW DL_NOW
11809# else
11810# define LT_DLLAZY_OR_NOW 0
11811# endif
11812# endif
11813# endif
11814# endif
11815#endif
11816
ac9cc135 11817/* When -fvisibility=hidden is used, assume the code has been annotated
10946b02 11818 correspondingly for the symbols needed. */
ac9cc135 11819#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10946b02
AX
11820int fnord () __attribute__((visibility("default")));
11821#endif
11822
11823int fnord () { return 42; }
11824int main ()
11825{
11826 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11827 int status = $lt_dlunknown;
11828
11829 if (self)
11830 {
11831 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11832 else
11833 {
11834 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11835 else puts (dlerror ());
11836 }
11837 /* dlclose (self); */
11838 }
11839 else
11840 puts (dlerror ());
11841
11842 return status;
11843}
11844_LT_EOF
11845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11846 (eval $ac_link) 2>&5
11847 ac_status=$?
11848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
ac9cc135 11849 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
10946b02
AX
11850 (./conftest; exit; ) >&5 2>/dev/null
11851 lt_status=$?
11852 case x$lt_status in
11853 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11854 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11855 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11856 esac
11857 else :
11858 # compilation failed
11859 lt_cv_dlopen_self=no
11860 fi
11861fi
11862rm -fr conftest*
11863
11864
11865fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11867$as_echo "$lt_cv_dlopen_self" >&6; }
11868
ac9cc135 11869 if test yes = "$lt_cv_dlopen_self"; then
10946b02
AX
11870 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11872$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11873if ${lt_cv_dlopen_self_static+:} false; then :
11874 $as_echo_n "(cached) " >&6
11875else
ac9cc135 11876 if test yes = "$cross_compiling"; then :
10946b02
AX
11877 lt_cv_dlopen_self_static=cross
11878else
11879 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11880 lt_status=$lt_dlunknown
11881 cat > conftest.$ac_ext <<_LT_EOF
11882#line $LINENO "configure"
11883#include "confdefs.h"
11884
11885#if HAVE_DLFCN_H
11886#include <dlfcn.h>
11887#endif
11888
11889#include <stdio.h>
11890
11891#ifdef RTLD_GLOBAL
11892# define LT_DLGLOBAL RTLD_GLOBAL
11893#else
11894# ifdef DL_GLOBAL
11895# define LT_DLGLOBAL DL_GLOBAL
11896# else
11897# define LT_DLGLOBAL 0
11898# endif
11899#endif
11900
11901/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11902 find out it does not work in some platform. */
11903#ifndef LT_DLLAZY_OR_NOW
11904# ifdef RTLD_LAZY
11905# define LT_DLLAZY_OR_NOW RTLD_LAZY
11906# else
11907# ifdef DL_LAZY
11908# define LT_DLLAZY_OR_NOW DL_LAZY
11909# else
11910# ifdef RTLD_NOW
11911# define LT_DLLAZY_OR_NOW RTLD_NOW
11912# else
11913# ifdef DL_NOW
11914# define LT_DLLAZY_OR_NOW DL_NOW
11915# else
11916# define LT_DLLAZY_OR_NOW 0
11917# endif
11918# endif
11919# endif
11920# endif
11921#endif
11922
ac9cc135 11923/* When -fvisibility=hidden is used, assume the code has been annotated
10946b02 11924 correspondingly for the symbols needed. */
ac9cc135 11925#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10946b02
AX
11926int fnord () __attribute__((visibility("default")));
11927#endif
11928
11929int fnord () { return 42; }
11930int main ()
11931{
11932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11933 int status = $lt_dlunknown;
11934
11935 if (self)
11936 {
11937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11938 else
11939 {
11940 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11941 else puts (dlerror ());
11942 }
11943 /* dlclose (self); */
11944 }
11945 else
11946 puts (dlerror ());
11947
11948 return status;
11949}
11950_LT_EOF
11951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11952 (eval $ac_link) 2>&5
11953 ac_status=$?
11954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
ac9cc135 11955 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
10946b02
AX
11956 (./conftest; exit; ) >&5 2>/dev/null
11957 lt_status=$?
11958 case x$lt_status in
11959 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11960 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11961 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11962 esac
11963 else :
11964 # compilation failed
11965 lt_cv_dlopen_self_static=no
11966 fi
11967fi
11968rm -fr conftest*
11969
11970
11971fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11973$as_echo "$lt_cv_dlopen_self_static" >&6; }
11974 fi
11975
ac9cc135
AX
11976 CPPFLAGS=$save_CPPFLAGS
11977 LDFLAGS=$save_LDFLAGS
11978 LIBS=$save_LIBS
10946b02
AX
11979 ;;
11980 esac
11981
11982 case $lt_cv_dlopen_self in
11983 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11984 *) enable_dlopen_self=unknown ;;
11985 esac
11986
11987 case $lt_cv_dlopen_self_static in
11988 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11989 *) enable_dlopen_self_static=unknown ;;
11990 esac
11991fi
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009striplib=
12010old_striplib=
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12012$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12013if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12014 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12015 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12017$as_echo "yes" >&6; }
12018else
12019# FIXME - insert some real tests, host_os isn't really good enough
12020 case $host_os in
12021 darwin*)
ac9cc135 12022 if test -n "$STRIP"; then
10946b02
AX
12023 striplib="$STRIP -x"
12024 old_striplib="$STRIP -S"
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12026$as_echo "yes" >&6; }
12027 else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
12030 fi
12031 ;;
12032 *)
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034$as_echo "no" >&6; }
12035 ;;
12036 esac
12037fi
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
ac9cc135 12050 # Report what library types will actually be built
10946b02
AX
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12052$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12054$as_echo "$can_build_shared" >&6; }
12055
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12057$as_echo_n "checking whether to build shared libraries... " >&6; }
ac9cc135 12058 test no = "$can_build_shared" && enable_shared=no
10946b02
AX
12059
12060 # On AIX, shared libraries and static libraries use the same namespace, and
12061 # are all built from PIC.
12062 case $host_os in
12063 aix3*)
ac9cc135 12064 test yes = "$enable_shared" && enable_static=no
10946b02
AX
12065 if test -n "$RANLIB"; then
12066 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12067 postinstall_cmds='$RANLIB $lib'
12068 fi
12069 ;;
12070
12071 aix[4-9]*)
ac9cc135
AX
12072 if test ia64 != "$host_cpu"; then
12073 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12074 yes,aix,yes) ;; # shared object as lib.so file only
12075 yes,svr4,*) ;; # shared object as lib.so archive member only
12076 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12077 esac
10946b02
AX
12078 fi
12079 ;;
12080 esac
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12082$as_echo "$enable_shared" >&6; }
12083
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12085$as_echo_n "checking whether to build static libraries... " >&6; }
12086 # Make sure either enable_shared or enable_static is yes.
ac9cc135 12087 test yes = "$enable_shared" || enable_static=yes
10946b02
AX
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12089$as_echo "$enable_static" >&6; }
12090
12091
12092
12093
12094fi
12095ac_ext=c
12096ac_cpp='$CPP $CPPFLAGS'
12097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12099ac_compiler_gnu=$ac_cv_c_compiler_gnu
12100
ac9cc135 12101CC=$lt_save_CC
10946b02
AX
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117 ac_config_commands="$ac_config_commands libtool"
12118
12119
12120
12121
12122# Only expand once:
12123
12124
12125
12126
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl author" >&5
12128$as_echo_n "checking spl author... " >&6; }
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_AUTHOR" >&5
12130$as_echo "$SPL_META_AUTHOR" >&6; }
12131
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl license" >&5
12133$as_echo_n "checking spl license... " >&6; }
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_LICENSE" >&5
12135$as_echo "$SPL_META_LICENSE" >&6; }
12136
12137
12138
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12140$as_echo_n "checking linux distribution... " >&6; }
12141 if test -f /etc/toss-release ; then
12142 VENDOR=toss ;
12143 elif test -f /etc/fedora-release ; then
12144 VENDOR=fedora ;
12145 elif test -f /etc/redhat-release ; then
12146 VENDOR=redhat ;
12147 elif test -f /etc/gentoo-release ; then
12148 VENDOR=gentoo ;
12149 elif test -f /etc/arch-release ; then
12150 VENDOR=arch ;
12151 elif test -f /etc/SuSE-release ; then
12152 VENDOR=sles ;
12153 elif test -f /etc/slackware-version ; then
12154 VENDOR=slackware ;
12155 elif test -f /etc/lunar.release ; then
12156 VENDOR=lunar ;
12157 elif test -f /etc/lsb-release ; then
12158 VENDOR=ubuntu ;
12159 elif test -f /etc/debian_version ; then
12160 VENDOR=debian ;
12161 else
12162 VENDOR= ;
12163 fi
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12165$as_echo "$VENDOR" >&6; }
12166
12167
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12169$as_echo_n "checking default package type... " >&6; }
12170 case "$VENDOR" in
12171 toss) DEFAULT_PACKAGE=rpm ;;
12172 redhat) DEFAULT_PACKAGE=rpm ;;
12173 fedora) DEFAULT_PACKAGE=rpm ;;
12174 gentoo) DEFAULT_PACKAGE=tgz ;;
12175 arch) DEFAULT_PACKAGE=tgz ;;
12176 sles) DEFAULT_PACKAGE=rpm ;;
12177 slackware) DEFAULT_PACKAGE=tgz ;;
12178 lunar) DEFAULT_PACKAGE=tgz ;;
12179 ubuntu) DEFAULT_PACKAGE=deb ;;
12180 debian) DEFAULT_PACKAGE=deb ;;
12181 *) DEFAULT_PACKAGE=rpm ;;
12182 esac
12183
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12185$as_echo "$DEFAULT_PACKAGE" >&6; }
12186
12187
12188
12189 RPM=rpm
12190 RPMBUILD=rpmbuild
12191
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12193$as_echo_n "checking whether $RPM is available... " >&6; }
12194 if tmp=$($RPM --version 2>/dev/null); then :
12195
12196 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12197 HAVE_RPM=yes
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12199$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12200
12201else
12202
12203 HAVE_RPM=no
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12205$as_echo "$HAVE_RPM" >&6; }
12206
12207fi
12208
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12210$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12211 if tmp=$($RPMBUILD --version 2>/dev/null); then :
12212
12213 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
12214 HAVE_RPMBUILD=yes
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12216$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12217
12218else
12219
12220 HAVE_RPMBUILD=no
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12222$as_echo "$HAVE_RPMBUILD" >&6; }
12223
12224fi
12225
12226 RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
12227 RPM_DEFINE_UTIL=
12228 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
12229 RPM_DEFINE_DKMS=
12230
12231 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
12232 SRPM_DEFINE_UTIL=
12233 SRPM_DEFINE_KMOD=
12234 SRPM_DEFINE_DKMS=
12235
12236 RPM_SPEC_DIR="rpm/generic"
12237
12238# Check whether --with-spec was given.
12239if test "${with_spec+set}" = set; then :
12240 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
12241fi
12242
12243
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12245$as_echo_n "checking whether spec files are available... " >&6; }
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12247$as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268 DPKG=dpkg
12269 DPKGBUILD=dpkg-buildpackage
12270
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12272$as_echo_n "checking whether $DPKG is available... " >&6; }
12273 if tmp=$($DPKG --version 2>/dev/null); then :
12274
12275 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12276 HAVE_DPKG=yes
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12278$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12279
12280else
12281
12282 HAVE_DPKG=no
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12284$as_echo "$HAVE_DPKG" >&6; }
12285
12286fi
12287
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12289$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12290 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
12291
12292 DPKGBUILD_VERSION=$(echo $tmp | \
12293 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12294 HAVE_DPKGBUILD=yes
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12296$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12297
12298else
12299
12300 HAVE_DPKGBUILD=no
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12302$as_echo "$HAVE_DPKGBUILD" >&6; }
12303
12304fi
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315 ALIEN=alien
12316
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12318$as_echo_n "checking whether $ALIEN is available... " >&6; }
12319 if tmp=$($ALIEN --version 2>/dev/null); then :
12320
12321 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12322 HAVE_ALIEN=yes
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12324$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12325
12326else
12327
12328 HAVE_ALIEN=no
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12330$as_echo "$HAVE_ALIEN" >&6; }
12331
12332fi
12333
12334
12335
12336
12337
12338
12339
12340 SPL_CONFIG=all
12341
12342# Check whether --with-config was given.
12343if test "${with_config+set}" = set; then :
12344 withval=$with_config; SPL_CONFIG="$withval"
12345fi
12346
12347 # Check whether --enable-linux-builtin was given.
12348if test "${enable_linux_builtin+set}" = set; then :
12349 enableval=$enable_linux_builtin;
12350else
12351 enable_linux_builtin=no
12352fi
12353
12354
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl config" >&5
12356$as_echo_n "checking spl config... " >&6; }
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_CONFIG" >&5
12358$as_echo "$SPL_CONFIG" >&6; };
12359
12360
12361 case "$SPL_CONFIG" in
12362 kernel)
12363
12364
12365# Check whether --with-linux was given.
12366if test "${with_linux+set}" = set; then :
12367 withval=$with_linux; kernelsrc="$withval"
12368fi
12369
12370
12371
12372# Check whether --with-linux-obj was given.
12373if test "${with_linux_obj+set}" = set; then :
12374 withval=$with_linux_obj; kernelbuild="$withval"
12375fi
12376
12377
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
12379$as_echo_n "checking kernel source directory... " >&6; }
12380 if test -z "$kernelsrc"; then
12381 if test -e "/lib/modules/$(uname -r)/source"; then
12382 headersdir="/lib/modules/$(uname -r)/source"
12383 sourcelink=$(readlink -f "$headersdir")
12384 elif test -e "/lib/modules/$(uname -r)/build"; then
12385 headersdir="/lib/modules/$(uname -r)/build"
12386 sourcelink=$(readlink -f "$headersdir")
12387 else
12388 sourcelink=$(ls -1d /usr/src/kernels/* \
12389 /usr/src/linux-* \
12390 2>/dev/null | grep -v obj | tail -1)
12391 fi
12392
12393 if test -n "$sourcelink" && test -e ${sourcelink}; then
12394 kernelsrc=`readlink -f ${sourcelink}`
12395 else
12396 kernelsrc="Not found"
12397 fi
12398 else
12399 if test "$kernelsrc" = "NONE"; then
12400 kernsrcver=NONE
12401 fi
12402 fi
12403
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
12405$as_echo "$kernelsrc" >&6; }
12406 if test ! -d "$kernelsrc"; then
12407 as_fn_error $? "
12408 *** Please make sure the kernel devel package for your distribution
12409 *** is installed and then try again. If that fails, you can specify the
12410 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
12411 fi
12412
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
12414$as_echo_n "checking kernel build directory... " >&6; }
12415 if test -z "$kernelbuild"; then
12416 if test -e "/lib/modules/$(uname -r)/build"; then
12417 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12418 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12419 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12420 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12421 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12422 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12423 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12424 else
12425 kernelbuild=${kernelsrc}
12426 fi
12427 fi
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
12429$as_echo "$kernelbuild" >&6; }
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
12432$as_echo_n "checking kernel source version... " >&6; }
12433 utsrelease1=$kernelbuild/include/linux/version.h
12434 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12435 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12436 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12437 utsrelease=linux/version.h
12438 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12439 utsrelease=linux/utsrelease.h
12440 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12441 utsrelease=generated/utsrelease.h
12442 fi
12443
12444 if test "$utsrelease"; then
12445 kernsrcver=`(echo "#include <$utsrelease>";
12446 echo "kernsrcver=UTS_RELEASE") |
12447 cpp -I $kernelbuild/include |
12448 grep "^kernsrcver=" | cut -d \" -f 2`
12449
12450 if test -z "$kernsrcver"; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12452$as_echo "Not found" >&6; }
12453 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
12454 fi
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12457$as_echo "Not found" >&6; }
12458 if test "x$enable_linux_builtin" != xyes; then
12459 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
12460 else
12461 as_fn_error $? "
12462 *** Cannot find UTS_RELEASE definition.
12463 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
12464 fi
12465 fi
12466
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
12468$as_echo "$kernsrcver" >&6; }
12469
12470 LINUX=${kernelsrc}
12471 LINUX_OBJ=${kernelbuild}
12472 LINUX_VERSION=${kernsrcver}
12473
12474
12475
12476
12477
12478
12479 modpost=$LINUX/scripts/Makefile.modpost
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
12481$as_echo_n "checking kernel file name for module symbols... " >&6; }
12482 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
12483 if grep -q Modules.symvers $modpost; then
12484 LINUX_SYMBOLS=Modules.symvers
12485 else
12486 LINUX_SYMBOLS=Module.symvers
12487 fi
12488
12489 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12490 as_fn_error $? "
12491 *** Please make sure the kernel devel package for your distribution
12492 *** is installed. If you are building with a custom kernel, make sure the
12493 *** kernel is configured, built, and the '--with-linux=PATH' configure
12494 *** option refers to the location of the kernel source." "$LINENO" 5
12495 fi
12496 else
12497 LINUX_SYMBOLS=NONE
12498 fi
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
12500$as_echo "$LINUX_SYMBOLS" >&6; }
12501
12502
12503
12504
12505 if test "${LINUX_OBJ}" != "${LINUX}"; then
12506 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
12507 fi
12508
12509
12510 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
12511
12512
12513
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
12515$as_echo_n "checking whether debugging is enabled... " >&6; }
12516 # Check whether --enable-debug was given.
12517if test "${enable_debug+set}" = set; then :
12518 enableval=$enable_debug;
12519else
12520 enable_debug=no
12521fi
12522
12523
12524 if test "x$enable_debug" = xyes; then :
12525
12526 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
12527 DEBUG_CFLAGS="-DDEBUG -Werror"
12528 DEBUG_SPL="_with_debug"
12529
12530else
12531
12532 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
12533 DEBUG_CFLAGS="-DNDEBUG"
12534 DEBUG_SPL="_without_debug"
12535
12536fi
12537
12538
12539
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
12541$as_echo "$enable_debug" >&6; }
12542
12543
12544 # Check whether --enable-debug-kmem was given.
12545if test "${enable_debug_kmem+set}" = set; then :
12546 enableval=$enable_debug_kmem;
12547else
f6188ddd 12548 enable_debug_kmem=no
10946b02
AX
12549fi
12550
12551
12552 if test "x$enable_debug_kmem" = xyes; then :
12553
12554 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
12555 DEBUG_KMEM="_with_debug_kmem"
12556
12557$as_echo "#define DEBUG_KMEM 1" >>confdefs.h
12558
12559
12560else
12561
12562 DEBUG_KMEM="_without_debug_kmem"
12563
12564fi
12565
12566
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
12568$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
12570$as_echo "$enable_debug_kmem" >&6; }
12571
12572
12573 # Check whether --enable-debug-kmem-tracking was given.
12574if test "${enable_debug_kmem_tracking+set}" = set; then :
12575 enableval=$enable_debug_kmem_tracking;
12576else
12577 enable_debug_kmem_tracking=no
12578fi
12579
12580
12581 if test "x$enable_debug_kmem_tracking" = xyes; then :
12582
12583 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
12584 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
12585
12586$as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
12587
12588
12589else
12590
12591 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
12592
12593fi
12594
12595
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
12597$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
12599$as_echo "$enable_debug_kmem_tracking" >&6; }
12600
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
12602$as_echo_n "checking whether modules can be built... " >&6; }
12603
12604
12605cat confdefs.h - <<_ACEOF >conftest.c
12606
12607
12608int
12609main (void)
12610{
12611
12612 ;
12613 return 0;
12614}
12615
12616_ACEOF
12617
12618
12619 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12620 echo "obj-m := conftest.o" >build/Makefile
12621 modpost_flag=''
12622 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12623 if { 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'
12624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12628 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12633 test $ac_status = 0; }; }; then :
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12636$as_echo "yes" >&6; }
12637
12638else
12639 $as_echo "$as_me: failed program was:" >&5
12640sed 's/^/| /' conftest.$ac_ext >&5
12641
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643$as_echo "no" >&6; }
12644 if test "x$enable_linux_builtin" != xyes; then
12645 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
12646 else
12647 as_fn_error $? "
12648 *** Unable to build an empty module.
12649 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
12650 fi
12651
12652
12653
12654fi
12655 rm -Rf build
12656
12657
12658
879bbbc7
AX
12659 if test "x$cross_compiling" != xyes; then :
12660
12661 if test "$cross_compiling" = yes; then :
10946b02
AX
12662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12664as_fn_error $? "cannot run test program while cross compiling
12665See \`config.log' for more details" "$LINENO" 5; }
12666else
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668/* end confdefs.h. */
12669
12670
879bbbc7 12671 #include "$LINUX/include/linux/license.h"
10946b02
AX
12672
12673int
12674main ()
12675{
12676
879bbbc7
AX
12677 return !license_is_gpl_compatible(
12678 "$SPL_META_LICENSE");
10946b02
AX
12679
12680 ;
12681 return 0;
12682}
12683
12684_ACEOF
12685if ac_fn_c_try_run "$LINENO"; then :
12686
12687
12688$as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h
12689
12690
12691fi
12692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12693 conftest.$ac_objext conftest.beam conftest.$ac_ext
12694fi
12695
12696
879bbbc7
AX
12697fi
12698
10946b02
AX
12699
12700 # Check whether --enable-atomic-spinlocks was given.
12701if test "${enable_atomic_spinlocks+set}" = set; then :
12702 enableval=$enable_atomic_spinlocks;
12703else
12704 enable_atomic_spinlocks=check
12705fi
12706
12707
12708
12709
12710cat confdefs.h - <<_ACEOF >conftest.c
12711
12712
12713 #include <linux/fs.h>
12714
12715int
12716main (void)
12717{
12718
12719 atomic64_t *ptr __attribute__ ((unused));
12720
12721 ;
12722 return 0;
12723}
12724
12725_ACEOF
12726
12727
12728 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12729 echo "obj-m := conftest.o" >build/Makefile
12730 modpost_flag=''
12731 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12732 if { 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'
12733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12737 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12742 test $ac_status = 0; }; }; then :
12743
12744 have_atomic64_t=yes
12745
12746$as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
12747
12748
12749else
12750 $as_echo "$as_me: failed program was:" >&5
12751sed 's/^/| /' conftest.$ac_ext >&5
12752
12753 have_atomic64_t=no
12754
12755
12756
12757fi
12758 rm -Rf build
12759
12760
12761
12762 if test "x$enable_atomic_spinlocks" = xcheck; then :
12763
12764 if test "x$have_atomic64_t" = xyes; then :
12765
12766 enable_atomic_spinlocks=no
12767
12768else
12769
12770 enable_atomic_spinlocks=yes
12771
12772fi
12773
12774fi
12775
12776 if test "x$enable_atomic_spinlocks" = xyes; then :
12777
12778
12779$as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
12780
12781
12782else
12783
12784 if test "x$have_atomic64_t" = xno; then :
12785
12786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12788as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
12789See \`config.log' for more details" "$LINENO" 5; }
12790
12791fi
12792
12793fi
12794
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
12796$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
12798$as_echo "$enable_atomic_spinlocks" >&6; }
12799
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
12801$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
12803$as_echo "$have_atomic64_t" >&6; }
12804
12805
12806 tmp_flags="$EXTRA_KCFLAGS"
12807 EXTRA_KCFLAGS="-Werror"
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5
12809$as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
12810
12811
12812cat confdefs.h - <<_ACEOF >conftest.c
12813
12814
12815 #include <linux/mm.h>
12816
12817 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
12818
12819int
12820main (void)
12821{
12822
12823 struct shrinker cache_shrinker = {
12824 .shrink = shrinker_cb,
12825 .seeks = DEFAULT_SEEKS,
12826 };
12827 register_shrinker(&cache_shrinker);
12828
12829 ;
12830 return 0;
12831}
12832
12833_ACEOF
12834
12835
12836 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12837 echo "obj-m := conftest.o" >build/Makefile
12838 modpost_flag=''
12839 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12840 if { 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'
12841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12850 test $ac_status = 0; }; }; then :
12851
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12853$as_echo "yes" >&6; }
12854
12855$as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h
12856
12857
12858else
12859 $as_echo "$as_me: failed program was:" >&5
12860sed 's/^/| /' conftest.$ac_ext >&5
12861
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863$as_echo "no" >&6; }
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5
12865$as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
12866
12867
12868cat confdefs.h - <<_ACEOF >conftest.c
12869
12870
12871 #include <linux/mm.h>
12872
12873 int shrinker_cb(struct shrinker *, int nr_to_scan,
12874 gfp_t gfp_mask);
12875
12876int
12877main (void)
12878{
12879
12880 struct shrinker cache_shrinker = {
12881 .shrink = shrinker_cb,
12882 .seeks = DEFAULT_SEEKS,
12883 };
12884 register_shrinker(&cache_shrinker);
12885
12886 ;
12887 return 0;
12888}
12889
12890_ACEOF
12891
12892
12893 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12894 echo "obj-m := conftest.o" >build/Makefile
12895 modpost_flag=''
12896 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12897 if { 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'
12898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12902 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12907 test $ac_status = 0; }; }; then :
12908
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910$as_echo "yes" >&6; }
12911
12912$as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
12913
12914
12915else
12916 $as_echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920$as_echo "no" >&6; }
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5
12922$as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
12923
12924
12925cat confdefs.h - <<_ACEOF >conftest.c
12926
12927
12928 #include <linux/mm.h>
12929
12930 int shrinker_cb(struct shrinker *,
12931 struct shrink_control *sc);
12932
12933int
12934main (void)
12935{
12936
12937 struct shrinker cache_shrinker = {
12938 .shrink = shrinker_cb,
12939 .seeks = DEFAULT_SEEKS,
12940 };
12941 register_shrinker(&cache_shrinker);
12942
12943 ;
12944 return 0;
12945}
12946
12947_ACEOF
12948
12949
12950 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12951 echo "obj-m := conftest.o" >build/Makefile
12952 modpost_flag=''
12953 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12954 if { 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'
12955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12959 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12964 test $ac_status = 0; }; }; then :
12965
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12967$as_echo "yes" >&6; }
12968
12969$as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h
12970
12971
12972else
12973 $as_echo "$as_me: failed program was:" >&5
12974sed 's/^/| /' conftest.$ac_ext >&5
12975
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12977$as_echo "no" >&6; }
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5
12979$as_echo_n "checking whether ->count_objects callback exists... " >&6; }
12980
12981
12982cat confdefs.h - <<_ACEOF >conftest.c
12983
12984
12985 #include <linux/mm.h>
12986
12987 unsigned long shrinker_cb(
12988 struct shrinker *,
12989 struct shrink_control *sc);
12990
12991int
12992main (void)
12993{
12994
12995 struct shrinker cache_shrinker = {
12996 .count_objects = shrinker_cb,
12997 .scan_objects = shrinker_cb,
12998 .seeks = DEFAULT_SEEKS,
12999 };
13000 register_shrinker(&cache_shrinker);
13001
13002 ;
13003 return 0;
13004}
13005
13006_ACEOF
13007
13008
13009 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13010 echo "obj-m := conftest.o" >build/Makefile
13011 modpost_flag=''
13012 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13013 if { 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'
13014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13018 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13020 (eval $ac_try) 2>&5
13021 ac_status=$?
13022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13023 test $ac_status = 0; }; }; then :
13024
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13026$as_echo "yes" >&6; }
13027
13028$as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h
13029
13030
13031else
13032 $as_echo "$as_me: failed program was:" >&5
13033sed 's/^/| /' conftest.$ac_ext >&5
13034
13035 as_fn_error $? "error" "$LINENO" 5
13036
13037
13038
13039fi
13040 rm -Rf build
13041
13042
13043
13044
13045
13046fi
13047 rm -Rf build
13048
13049
13050
13051
13052
13053fi
13054 rm -Rf build
13055
13056
13057
13058
13059
13060fi
13061 rm -Rf build
13062
13063
13064 EXTRA_KCFLAGS="$tmp_flags"
13065
13066
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
13068$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
13069
13070
13071cat confdefs.h - <<_ACEOF >conftest.c
13072
13073
13074 #include <linux/sysctl.h>
13075
13076int
13077main (void)
13078{
13079
13080 struct ctl_table ctl __attribute__ ((unused));
13081 ctl.ctl_name = 0;
13082
13083 ;
13084 return 0;
13085}
13086
13087_ACEOF
13088
13089
13090 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13091 echo "obj-m := conftest.o" >build/Makefile
13092 modpost_flag=''
13093 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13094 if { 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'
13095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13099 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13104 test $ac_status = 0; }; }; then :
13105
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13107$as_echo "yes" >&6; }
13108
13109$as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
13110
13111
13112else
13113 $as_echo "$as_me: failed program was:" >&5
13114sed 's/^/| /' conftest.$ac_ext >&5
13115
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117$as_echo "no" >&6; }
13118
13119
13120
13121fi
13122 rm -Rf build
13123
13124
13125
13126
0f836a62
AX
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
13128$as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
13129
13130
13131cat confdefs.h - <<_ACEOF >conftest.c
13132
13133
13134 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
13135 #error CONFIG_TRIM_UNUSED_KSYMS not defined
13136 #endif
13137
13138int
13139main (void)
13140{
13141
13142 ;
13143 return 0;
13144}
13145
13146_ACEOF
13147
13148
13149 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13150 echo "obj-m := conftest.o" >build/Makefile
13151 modpost_flag=''
13152 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13153 if { 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'
13154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13158 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13163 test $ac_status = 0; }; }; then :
13164
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13166$as_echo "yes" >&6; }
13167
13168else
13169 $as_echo "$as_me: failed program was:" >&5
13170sed 's/^/| /' conftest.$ac_ext >&5
13171
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173$as_echo "no" >&6; }
13174 as_fn_error $? "
13175 *** This kernel has unused symbols trimming enabled, please disable.
13176 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." "$LINENO" 5
13177
13178
13179
13180fi
13181 rm -Rf build
13182
13183
13184
13185
10946b02
AX
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5
13187$as_echo_n "checking whether PDE_DATA() is available... " >&6; }
13188
13189
13190
13191cat confdefs.h - <<_ACEOF >conftest.c
13192
13193
13194 #include <linux/proc_fs.h>
13195
13196int
13197main (void)
13198{
13199
13200 PDE_DATA(NULL);
13201
13202 ;
13203 return 0;
13204}
13205
13206_ACEOF
13207
13208
13209 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13210 echo "obj-m := conftest.o" >build/Makefile
13211 modpost_flag=''
13212 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13213 if { 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'
13214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13218 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13223 test $ac_status = 0; }; }; then :
13224 rc=0
13225else
13226 $as_echo "$as_me: failed program was:" >&5
13227sed 's/^/| /' conftest.$ac_ext >&5
13228 rc=1
13229
13230
13231fi
13232 rm -Rf build
13233
13234
13235 if test $rc -ne 0; then :
13236
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238$as_echo "no" >&6; }
13239
13240 else
13241 if test "x$enable_linux_builtin" != xyes; then
13242
13243 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
13244 $LINUX_OBJ/Module*.symvers 2>/dev/null
13245 rc=$?
13246 if test $rc -ne 0; then
13247 export=0
13248 for file in ; do
13249 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
13250 "$LINUX_OBJ/$file" 2>/dev/null
13251 rc=$?
13252 if test $rc -eq 0; then
13253 export=1
13254 break;
13255 fi
13256 done
13257 if test $export -eq 0; then :
13258 rc=1
13259 else :
13260 rc=0
13261 fi
13262 else :
13263 rc=0
13264 fi
13265
13266 fi
13267 if test $rc -ne 0; then :
13268
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270$as_echo "no" >&6; }
13271
13272 else :
13273
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13275$as_echo "yes" >&6; }
13276
13277$as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h
13278
13279
13280 fi
13281 fi
13282
13283
13284 tmp_flags="$EXTRA_KCFLAGS"
13285 EXTRA_KCFLAGS="-Werror"
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
13287$as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
13288
13289
13290cat confdefs.h - <<_ACEOF >conftest.c
13291
13292
13293 #include <linux/spinlock.h>
13294 #include <linux/fs_struct.h>
13295 #include <linux/path.h>
13296 void (*const set_fs_pwd_func)
13297 (struct fs_struct *, const struct path *)
13298 = set_fs_pwd;
13299
13300int
13301main (void)
13302{
13303
13304 return 0;
13305
13306 ;
13307 return 0;
13308}
13309
13310_ACEOF
13311
13312
13313 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13314 echo "obj-m := conftest.o" >build/Makefile
13315 modpost_flag=''
13316 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13317 if { 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'
13318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13319 (eval $ac_try) 2>&5
13320 ac_status=$?
13321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13322 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13324 (eval $ac_try) 2>&5
13325 ac_status=$?
13326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13327 test $ac_status = 0; }; }; then :
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13330$as_echo "yes" >&6; }
13331
13332$as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
13333
13334
13335else
13336 $as_echo "$as_me: failed program was:" >&5
13337sed 's/^/| /' conftest.$ac_ext >&5
13338
13339
13340
13341cat confdefs.h - <<_ACEOF >conftest.c
13342
13343
13344 #include <linux/spinlock.h>
13345 #include <linux/fs_struct.h>
13346 #include <linux/path.h>
13347 void (*const set_fs_pwd_func)
13348 (struct fs_struct *, struct path *)
13349 = set_fs_pwd;
13350
13351int
13352main (void)
13353{
13354
13355 return 0;
13356
13357 ;
13358 return 0;
13359}
13360
13361_ACEOF
13362
13363
13364 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13365 echo "obj-m := conftest.o" >build/Makefile
13366 modpost_flag=''
13367 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13368 if { 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'
13369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13373 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13375 (eval $ac_try) 2>&5
13376 ac_status=$?
13377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13378 test $ac_status = 0; }; }; then :
13379
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381$as_echo "no" >&6; }
13382
13383else
13384 $as_echo "$as_me: failed program was:" >&5
13385sed 's/^/| /' conftest.$ac_ext >&5
13386
13387 as_fn_error $? "unknown" "$LINENO" 5
13388
13389
13390
13391fi
13392 rm -Rf build
13393
13394
13395
13396
13397
13398fi
13399 rm -Rf build
13400
13401
13402 EXTRA_KCFLAGS="$tmp_flags"
13403
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
13405$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
13406
13407
13408cat confdefs.h - <<_ACEOF >conftest.c
13409
13410
13411 #include <linux/fs.h>
13412
13413int
13414main (void)
13415{
13416
13417 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
13418
13419 ;
13420 return 0;
13421}
13422
13423_ACEOF
13424
13425
13426 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13427 echo "obj-m := conftest.o" >build/Makefile
13428 modpost_flag=''
13429 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13430 if { 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'
13431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13435 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13440 test $ac_status = 0; }; }; then :
13441
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13443$as_echo "yes" >&6; }
13444
13445$as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
13446
13447
13448else
13449 $as_echo "$as_me: failed program was:" >&5
13450sed 's/^/| /' conftest.$ac_ext >&5
13451
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5
13455$as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
13456
13457
13458cat confdefs.h - <<_ACEOF >conftest.c
13459
13460
13461 #include <linux/fs.h>
13462
13463int
13464main (void)
13465{
13466
13467 vfs_unlink((struct inode *) NULL,
13468 (struct dentry *) NULL,
13469 (struct inode **) NULL);
13470
13471 ;
13472 return 0;
13473}
13474
13475_ACEOF
13476
13477
13478 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13479 echo "obj-m := conftest.o" >build/Makefile
13480 modpost_flag=''
13481 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13482 if { 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'
13483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13487 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13492 test $ac_status = 0; }; }; then :
13493
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13495$as_echo "yes" >&6; }
13496
13497$as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h
13498
13499
13500else
13501 $as_echo "$as_me: failed program was:" >&5
13502sed 's/^/| /' conftest.$ac_ext >&5
13503
13504 as_fn_error $? "no" "$LINENO" 5
13505
13506
13507
13508fi
13509 rm -Rf build
13510
13511
13512
13513
13514
13515
13516fi
13517 rm -Rf build
13518
13519
13520
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
13522$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
13523
13524
13525cat confdefs.h - <<_ACEOF >conftest.c
13526
13527
13528 #include <linux/fs.h>
13529
13530int
13531main (void)
13532{
13533
13534 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
13535 (struct inode *) NULL, (struct dentry *) NULL);
13536
13537 ;
13538 return 0;
13539}
13540
13541_ACEOF
13542
13543
13544 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13545 echo "obj-m := conftest.o" >build/Makefile
13546 modpost_flag=''
13547 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13548 if { 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'
13549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13553 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13555 (eval $ac_try) 2>&5
13556 ac_status=$?
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558 test $ac_status = 0; }; }; then :
13559
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13561$as_echo "yes" >&6; }
13562
13563$as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
13564
13565
13566else
13567 $as_echo "$as_me: failed program was:" >&5
13568sed 's/^/| /' conftest.$ac_ext >&5
13569
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571$as_echo "no" >&6; }
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5
13573$as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
13574
13575
13576cat confdefs.h - <<_ACEOF >conftest.c
13577
13578
13579 #include <linux/fs.h>
13580
13581int
13582main (void)
13583{
13584
13585 vfs_rename((struct inode *) NULL,
13586 (struct dentry *) NULL,
13587 (struct inode *) NULL,
13588 (struct dentry *) NULL,
13589 (struct inode **) NULL);
13590
13591 ;
13592 return 0;
13593}
13594
13595_ACEOF
13596
13597
13598 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13599 echo "obj-m := conftest.o" >build/Makefile
13600 modpost_flag=''
13601 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13602 if { 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'
13603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13607 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13612 test $ac_status = 0; }; }; then :
13613
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13615$as_echo "yes" >&6; }
13616
13617$as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h
13618
13619
13620else
13621 $as_echo "$as_me: failed program was:" >&5
13622sed 's/^/| /' conftest.$ac_ext >&5
13623
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625$as_echo "no" >&6; }
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5
13627$as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
13628
13629
13630cat confdefs.h - <<_ACEOF >conftest.c
13631
13632
13633 #include <linux/fs.h>
13634
13635int
13636main (void)
13637{
13638
13639 vfs_rename((struct inode *) NULL,
13640 (struct dentry *) NULL,
13641 (struct inode *) NULL,
13642 (struct dentry *) NULL,
13643 (struct inode **) NULL,
13644 (unsigned int) 0);
13645
13646 ;
13647 return 0;
13648}
13649
13650_ACEOF
13651
13652
13653 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13654 echo "obj-m := conftest.o" >build/Makefile
13655 modpost_flag=''
13656 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13657 if { 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'
13658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13659 (eval $ac_try) 2>&5
13660 ac_status=$?
13661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13662 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13667 test $ac_status = 0; }; }; then :
13668
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13670$as_echo "yes" >&6; }
13671
13672$as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h
13673
13674
13675else
13676 $as_echo "$as_me: failed program was:" >&5
13677sed 's/^/| /' conftest.$ac_ext >&5
13678
13679 as_fn_error $? "no" "$LINENO" 5
13680
13681
13682
13683fi
13684 rm -Rf build
13685
13686
13687
13688
13689
13690fi
13691 rm -Rf build
13692
13693
13694
13695
13696
13697fi
13698 rm -Rf build
13699
13700
13701
13702
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
13704$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
13705
13706
13707cat confdefs.h - <<_ACEOF >conftest.c
13708
13709
13710 #include <linux/fs.h>
13711
13712int
13713main (void)
13714{
13715
13716 vfs_fsync(NULL, 0);
13717
13718 ;
13719 return 0;
13720}
13721
13722_ACEOF
13723
13724
13725 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13726 echo "obj-m := conftest.o" >build/Makefile
13727 modpost_flag=''
13728 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13729 if { 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'
13730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13736 (eval $ac_try) 2>&5
13737 ac_status=$?
13738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13739 test $ac_status = 0; }; }; then :
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13742$as_echo "yes" >&6; }
13743
13744$as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
13745
13746
13747else
13748 $as_echo "$as_me: failed program was:" >&5
13749sed 's/^/| /' conftest.$ac_ext >&5
13750
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13752$as_echo "no" >&6; }
13753
13754
13755
13756fi
13757 rm -Rf build
13758
13759
13760
13761
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
13763$as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
13764
13765
13766cat confdefs.h - <<_ACEOF >conftest.c
13767
13768
13769 #include <linux/fs.h>
13770
13771int
13772main (void)
13773{
13774
13775 struct inode_operations ops;
13776 ops.truncate_range = NULL;
13777
13778 ;
13779 return 0;
13780}
13781
13782_ACEOF
13783
13784
13785 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13786 echo "obj-m := conftest.o" >build/Makefile
13787 modpost_flag=''
13788 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13789 if { 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'
13790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13791 (eval $ac_try) 2>&5
13792 ac_status=$?
13793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13794 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13796 (eval $ac_try) 2>&5
13797 ac_status=$?
13798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13799 test $ac_status = 0; }; }; then :
13800
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13802$as_echo "yes" >&6; }
13803
13804$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
13805
13806
13807else
13808 $as_echo "$as_me: failed program was:" >&5
13809sed 's/^/| /' conftest.$ac_ext >&5
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812$as_echo "no" >&6; }
13813
13814
13815
13816fi
13817 rm -Rf build
13818
13819
13820
13821
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
13823$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
13824 tmp_flags="$EXTRA_KCFLAGS"
13825 EXTRA_KCFLAGS="-Werror"
13826
13827
13828cat confdefs.h - <<_ACEOF >conftest.c
13829
13830
13831 #include <linux/sched.h>
13832 #include <linux/fs_struct.h>
13833
13834int
13835main (void)
13836{
13837
13838 static struct fs_struct fs;
13839 spin_lock_init(&fs.lock);
13840
13841 ;
13842 return 0;
13843}
13844
13845_ACEOF
13846
13847
13848 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13849 echo "obj-m := conftest.o" >build/Makefile
13850 modpost_flag=''
13851 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13852 if { 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'
13853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13857 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13859 (eval $ac_try) 2>&5
13860 ac_status=$?
13861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13862 test $ac_status = 0; }; }; then :
13863
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13865$as_echo "yes" >&6; }
13866
13867$as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
13868
13869
13870else
13871 $as_echo "$as_me: failed program was:" >&5
13872sed 's/^/| /' conftest.$ac_ext >&5
13873
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875$as_echo "no" >&6; }
13876
13877
13878
13879fi
13880 rm -Rf build
13881
13882
13883 EXTRA_KCFLAGS="$tmp_flags"
13884
13885
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5
13887$as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
13888
13889
13890cat confdefs.h - <<_ACEOF >conftest.c
13891
13892
13893 #include <linux/uidgid.h>
13894
13895int
13896main (void)
13897{
13898
13899 kuid_t userid = KUIDT_INIT(0);
13900 kgid_t groupid = KGIDT_INIT(0);
13901
13902 ;
13903 return 0;
13904}
13905
13906_ACEOF
13907
13908
13909 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13910 echo "obj-m := conftest.o" >build/Makefile
13911 modpost_flag=''
13912 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13913 if { 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'
13914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13918 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13923 test $ac_status = 0; }; }; then :
13924
13925
13926
13927cat confdefs.h - <<_ACEOF >conftest.c
13928
13929
13930 #include <linux/uidgid.h>
13931
13932int
13933main (void)
13934{
13935
13936 kuid_t userid = 0;
13937 kgid_t groupid = 0;
13938
13939 ;
13940 return 0;
13941}
13942
13943_ACEOF
13944
13945
13946 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13947 echo "obj-m := conftest.o" >build/Makefile
13948 modpost_flag=''
13949 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13950 if { 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'
13951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13955 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13957 (eval $ac_try) 2>&5
13958 ac_status=$?
13959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13960 test $ac_status = 0; }; }; then :
13961
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5
13963$as_echo "yes; optional" >&6; }
13964
13965else
13966 $as_echo "$as_me: failed program was:" >&5
13967sed 's/^/| /' conftest.$ac_ext >&5
13968
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5
13970$as_echo "yes; mandatory" >&6; }
13971
13972$as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h
13973
13974
13975
13976
13977fi
13978 rm -Rf build
13979
13980
13981
13982else
13983 $as_echo "$as_me: failed program was:" >&5
13984sed 's/^/| /' conftest.$ac_ext >&5
13985
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13987$as_echo "no" >&6; }
13988
13989
13990
13991fi
13992 rm -Rf build
13993
13994
13995
10946b02
AX
13996
13997
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
13999$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
14000
14001
14002cat confdefs.h - <<_ACEOF >conftest.c
14003
14004
14005 #include <linux/fs.h>
14006
14007int
14008main (void)
14009{
14010
14011 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
14012 struct file_operations fops __attribute__ ((unused)) = {
14013 .fallocate = fallocate,
14014 };
14015
14016 ;
14017 return 0;
14018}
14019
14020_ACEOF
14021
14022
14023 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14024 echo "obj-m := conftest.o" >build/Makefile
14025 modpost_flag=''
14026 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14027 if { 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'
14028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14032 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14034 (eval $ac_try) 2>&5
14035 ac_status=$?
14036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14037 test $ac_status = 0; }; }; then :
14038
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14040$as_echo "yes" >&6; }
14041
14042$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
14043
14044
14045else
14046 $as_echo "$as_me: failed program was:" >&5
14047sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050$as_echo "no" >&6; }
14051
14052
14053
14054fi
14055 rm -Rf build
14056
14057
14058
14059
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
14061$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
14062
14063
14064cat confdefs.h - <<_ACEOF >conftest.c
14065
14066
14067 #include <linux/fs.h>
14068
14069int
14070main (void)
14071{
14072
14073 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
14074 struct inode_operations fops __attribute__ ((unused)) = {
14075 .fallocate = fallocate,
14076 };
14077
14078 ;
14079 return 0;
14080}
14081
14082_ACEOF
14083
14084
14085 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14086 echo "obj-m := conftest.o" >build/Makefile
14087 modpost_flag=''
14088 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14089 if { 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'
14090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14094 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14099 test $ac_status = 0; }; }; then :
14100
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14102$as_echo "yes" >&6; }
14103
14104$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
14105
14106
14107else
14108 $as_echo "$as_me: failed program was:" >&5
14109sed 's/^/| /' conftest.$ac_ext >&5
14110
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112$as_echo "no" >&6; }
14113
14114
14115
14116fi
14117 rm -Rf build
14118
14119
14120
14121
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
14123$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
14124
14125
14126cat confdefs.h - <<_ACEOF >conftest.c
14127
14128
14129 #include <linux/fs.h>
14130
14131int
14132main (void)
14133{
14134
14135 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
14136 struct file_operations_no_const fops __attribute__ ((unused)) = {
14137 .fallocate = fallocate,
14138 };
14139
14140 ;
14141 return 0;
14142}
14143
14144_ACEOF
14145
14146
14147 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14148 echo "obj-m := conftest.o" >build/Makefile
14149 modpost_flag=''
14150 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14151 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14153 (eval $ac_try) 2>&5
14154 ac_status=$?
14155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14156 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14158 (eval $ac_try) 2>&5
14159 ac_status=$?
14160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14161 test $ac_status = 0; }; }; then :
14162
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14164$as_echo "yes" >&6; }
14165
14166$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
14167
14168
14169else
14170 $as_echo "$as_me: failed program was:" >&5
14171sed 's/^/| /' conftest.$ac_ext >&5
14172
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174$as_echo "no" >&6; }
14175
14176
14177
14178fi
14179 rm -Rf build
14180
14181
14182
14183
14184
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
14186$as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
14187
14188
14189cat confdefs.h - <<_ACEOF >conftest.c
14190
14191
14192 #if !defined(CONFIG_ZLIB_INFLATE) && \
14193 !defined(CONFIG_ZLIB_INFLATE_MODULE)
14194 #error CONFIG_ZLIB_INFLATE not defined
14195 #endif
14196
14197int
14198main (void)
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
14227else
14228 $as_echo "$as_me: failed program was:" >&5
14229sed 's/^/| /' conftest.$ac_ext >&5
14230
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232$as_echo "no" >&6; }
14233 as_fn_error $? "
14234 *** This kernel does not include the required zlib inflate support.
14235 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
14236
14237
14238
14239fi
14240 rm -Rf build
14241
14242
14243
14244
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
14246$as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
14247
14248
14249cat confdefs.h - <<_ACEOF >conftest.c
14250
14251
14252 #if !defined(CONFIG_ZLIB_DEFLATE) && \
14253 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
14254 #error CONFIG_ZLIB_DEFLATE not defined
14255 #endif
14256
14257int
14258main (void)
14259{
14260
14261 ;
14262 return 0;
14263}
14264
14265_ACEOF
14266
14267
14268 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14269 echo "obj-m := conftest.o" >build/Makefile
14270 modpost_flag=''
14271 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14272 if { 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'
14273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14277 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14279 (eval $ac_try) 2>&5
14280 ac_status=$?
14281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14282 test $ac_status = 0; }; }; then :
14283
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14285$as_echo "yes" >&6; }
14286
14287else
14288 $as_echo "$as_me: failed program was:" >&5
14289sed 's/^/| /' conftest.$ac_ext >&5
14290
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292$as_echo "no" >&6; }
14293 as_fn_error $? "
14294 *** This kernel does not include the required zlib deflate support.
14295 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
14296
14297
14298
14299fi
14300 rm -Rf build
14301
14302
14303
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
14305$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
14306
14307
14308cat confdefs.h - <<_ACEOF >conftest.c
14309
14310
14311 #include <linux/zlib.h>
14312
14313int
14314main (void)
14315{
14316
14317 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
14318
14319 ;
14320 return 0;
14321}
14322
14323_ACEOF
14324
14325
14326 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14327 echo "obj-m := conftest.o" >build/Makefile
14328 modpost_flag=''
14329 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14330 if { 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'
14331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14335 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
14341
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14343$as_echo "yes" >&6; }
14344
14345$as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
14346
14347
14348else
14349 $as_echo "$as_me: failed program was:" >&5
14350sed 's/^/| /' conftest.$ac_ext >&5
14351
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14353$as_echo "no" >&6; }
14354
14355
14356
14357fi
14358 rm -Rf build
14359
14360
14361
14362
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
14364$as_echo_n "checking whether struct shrink_control exists... " >&6; }
14365
14366
14367cat confdefs.h - <<_ACEOF >conftest.c
14368
14369
14370 #include <linux/mm.h>
14371
14372int
14373main (void)
14374{
14375
14376 struct shrink_control sc __attribute__ ((unused));
14377
14378 sc.nr_to_scan = 0;
14379 sc.gfp_mask = GFP_KERNEL;
14380
14381 ;
14382 return 0;
14383}
14384
14385_ACEOF
14386
14387
14388 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14389 echo "obj-m := conftest.o" >build/Makefile
14390 modpost_flag=''
14391 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14392 if { 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'
14393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14394 (eval $ac_try) 2>&5
14395 ac_status=$?
14396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14397 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14402 test $ac_status = 0; }; }; then :
14403
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14405$as_echo "yes" >&6; }
14406
14407$as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
14408
14409
14410else
14411 $as_echo "$as_me: failed program was:" >&5
14412sed 's/^/| /' conftest.$ac_ext >&5
14413
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415$as_echo "no" >&6; }
14416
14417
14418
14419fi
14420 rm -Rf build
14421
14422
14423
14424
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
14426$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
14427 tmp_flags="$EXTRA_KCFLAGS"
14428 EXTRA_KCFLAGS="-Werror"
14429
14430
14431cat confdefs.h - <<_ACEOF >conftest.c
14432
14433
14434 #include <linux/rwsem.h>
14435
14436int
14437main (void)
14438{
14439
14440 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14441 raw_spinlock_t dummy_lock __attribute__ ((unused));
14442 dummy_semaphore.wait_lock = dummy_lock;
14443
14444 ;
14445 return 0;
14446}
14447
14448_ACEOF
14449
14450
14451 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14452 echo "obj-m := conftest.o" >build/Makefile
14453 modpost_flag=''
14454 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14455 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14457 (eval $ac_try) 2>&5
14458 ac_status=$?
14459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14460 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14465 test $ac_status = 0; }; }; then :
14466
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14468$as_echo "yes" >&6; }
14469
14470$as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
14471
14472
14473else
14474 $as_echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14478$as_echo "no" >&6; }
14479
14480
14481
0f836a62
AX
14482fi
14483 rm -Rf build
14484
14485
14486 EXTRA_KCFLAGS="$tmp_flags"
14487
14488
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5
14490$as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
14491 tmp_flags="$EXTRA_KCFLAGS"
14492 EXTRA_KCFLAGS="-Werror"
14493
14494
14495cat confdefs.h - <<_ACEOF >conftest.c
14496
14497
14498 #include <linux/rwsem.h>
14499
14500int
14501main (void)
14502{
14503
14504 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
14505 dummy_semaphore.activity = 0;
14506
14507 ;
14508 return 0;
14509}
14510
14511_ACEOF
14512
14513
14514 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14515 echo "obj-m := conftest.o" >build/Makefile
14516 modpost_flag=''
14517 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14518 if { 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'
14519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14523 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14528 test $ac_status = 0; }; }; then :
14529
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14531$as_echo "yes" >&6; }
14532
14533$as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h
14534
14535
14536else
14537 $as_echo "$as_me: failed program was:" >&5
14538sed 's/^/| /' conftest.$ac_ext >&5
14539
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14541$as_echo "no" >&6; }
14542
14543
14544
14545fi
14546 rm -Rf build
14547
14548
14549 EXTRA_KCFLAGS="$tmp_flags"
14550
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5
14553$as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
14554 tmp_flags="$EXTRA_KCFLAGS"
14555 EXTRA_KCFLAGS="-Werror"
14556
14557
14558cat confdefs.h - <<_ACEOF >conftest.c
14559
14560
14561 #include <linux/rwsem.h>
14562
14563int
14564main (void)
14565{
14566
14567 DECLARE_RWSEM(dummy_semaphore);
14568 (void) atomic_long_read(&dummy_semaphore.count);
14569
14570 ;
14571 return 0;
14572}
14573
14574_ACEOF
14575
14576
14577 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14578 echo "obj-m := conftest.o" >build/Makefile
14579 modpost_flag=''
14580 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14581 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14586 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591 test $ac_status = 0; }; }; then :
14592
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14594$as_echo "yes" >&6; }
14595
14596$as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h
14597
14598
14599else
14600 $as_echo "$as_me: failed program was:" >&5
14601sed 's/^/| /' conftest.$ac_ext >&5
14602
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14604$as_echo "no" >&6; }
14605
14606
14607
10946b02
AX
14608fi
14609 rm -Rf build
14610
14611
14612 EXTRA_KCFLAGS="$tmp_flags"
14613
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
14615$as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
14616
14617
14618cat confdefs.h - <<_ACEOF >conftest.c
14619
14620
14621 #include <linux/sched.h>
14622 #include <linux/sched/rt.h>
14623
14624int
14625main (void)
14626{
14627
14628 return 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
14654$as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
14655
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14657$as_echo "yes" >&6; }
14658
14659else
14660 $as_echo "$as_me: failed program was:" >&5
14661sed '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
2ea56c1d
AX
14668fi
14669 rm -Rf build
14670
14671
14672
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/signal.h exists" >&5
14674$as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
14675
14676
14677cat confdefs.h - <<_ACEOF >conftest.c
14678
14679
14680 #include <linux/sched.h>
14681 #include <linux/sched/signal.h>
14682
14683int
14684main (void)
14685{
14686
14687 return 0;
14688
14689 ;
14690 return 0;
14691}
14692
14693_ACEOF
14694
14695
14696 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14697 echo "obj-m := conftest.o" >build/Makefile
14698 modpost_flag=''
14699 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14700 if { 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'
14701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14705 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14707 (eval $ac_try) 2>&5
14708 ac_status=$?
14709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14710 test $ac_status = 0; }; }; then :
14711
14712
14713$as_echo "#define HAVE_SCHED_SIGNAL_HEADER 1" >>confdefs.h
14714
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14716$as_echo "yes" >&6; }
14717
14718else
14719 $as_echo "$as_me: failed program was:" >&5
14720sed 's/^/| /' conftest.$ac_ext >&5
14721
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14723$as_echo "no" >&6; }
14724
14725
14726
10946b02
AX
14727fi
14728 rm -Rf build
14729
14730
14731
14732
2ea56c1d
AX
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 4 args" >&5
14734$as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
10946b02
AX
14735
14736
14737cat confdefs.h - <<_ACEOF >conftest.c
14738
14739
14740 #include <linux/fs.h>
14741
14742int
14743main (void)
14744{
14745
2ea56c1d
AX
14746 vfs_getattr((const struct path *)NULL,
14747 (struct kstat *)NULL,
14748 (u32)0,
14749 (unsigned int)0);
10946b02
AX
14750
14751 ;
14752 return 0;
14753}
14754
14755_ACEOF
14756
14757
14758 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14759 echo "obj-m := conftest.o" >build/Makefile
14760 modpost_flag=''
14761 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14762 if { 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'
14763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14764 (eval $ac_try) 2>&5
14765 ac_status=$?
14766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14767 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14772 test $ac_status = 0; }; }; then :
14773
2ea56c1d
AX
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14775$as_echo "yes" >&6; }
10946b02 14776
2ea56c1d 14777$as_echo "#define HAVE_4ARGS_VFS_GETATTR 1" >>confdefs.h
10946b02
AX
14778
14779
14780else
14781 $as_echo "$as_me: failed program was:" >&5
14782sed 's/^/| /' conftest.$ac_ext >&5
14783
2ea56c1d
AX
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785$as_echo "no" >&6; }
14786
14787
14788
14789fi
14790 rm -Rf build
14791
14792
14793
14794
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 3 args" >&5
14796$as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
10946b02
AX
14797
14798
14799cat confdefs.h - <<_ACEOF >conftest.c
14800
14801
2ea56c1d 14802 #include <linux/fs.h>
10946b02
AX
14803
14804int
14805main (void)
14806{
14807
2ea56c1d
AX
14808 vfs_getattr((struct vfsmount *)NULL,
14809 (struct dentry *)NULL,
14810 (struct kstat *)NULL);
10946b02
AX
14811
14812 ;
14813 return 0;
14814}
14815
14816_ACEOF
14817
14818
14819 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14820 echo "obj-m := conftest.o" >build/Makefile
14821 modpost_flag=''
14822 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14823 if { 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'
14824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14825 (eval $ac_try) 2>&5
14826 ac_status=$?
14827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14828 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14833 test $ac_status = 0; }; }; then :
14834
2ea56c1d
AX
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14836$as_echo "yes" >&6; }
14837
14838$as_echo "#define HAVE_3ARGS_VFS_GETATTR 1" >>confdefs.h
14839
10946b02
AX
14840
14841else
14842 $as_echo "$as_me: failed program was:" >&5
14843sed 's/^/| /' conftest.$ac_ext >&5
14844
2ea56c1d
AX
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14846$as_echo "no" >&6; }
10946b02
AX
14847
14848
14849
14850fi
14851 rm -Rf build
14852
14853
14854
14855
2ea56c1d
AX
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 2 args" >&5
14857$as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
14858
14859
14860cat confdefs.h - <<_ACEOF >conftest.c
14861
14862
14863 #include <linux/fs.h>
14864
14865int
14866main (void)
14867{
14868
14869 vfs_getattr((struct path *) NULL,
14870 (struct kstat *)NULL);
14871
14872 ;
14873 return 0;
14874}
14875
14876_ACEOF
14877
14878
14879 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14880 echo "obj-m := conftest.o" >build/Makefile
14881 modpost_flag=''
14882 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14883 if { 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'
14884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14888 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14893 test $ac_status = 0; }; }; then :
14894
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14896$as_echo "yes" >&6; }
14897
14898$as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
14899
14900
14901else
14902 $as_echo "$as_me: failed program was:" >&5
14903sed 's/^/| /' conftest.$ac_ext >&5
14904
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906$as_echo "no" >&6; }
14907
14908
10946b02
AX
14909
14910fi
14911 rm -Rf build
14912
14913
14914
14915
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5
14917$as_echo_n "checking whether usleep_range() is available... " >&6; }
14918
14919
14920cat confdefs.h - <<_ACEOF >conftest.c
14921
14922
14923 #include <linux/delay.h>
14924
14925int
14926main (void)
14927{
14928
14929 usleep_range(0, 0);
14930
14931 ;
14932 return 0;
14933}
14934
14935_ACEOF
14936
14937
14938 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14939 echo "obj-m := conftest.o" >build/Makefile
14940 modpost_flag=''
14941 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14942 if { 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'
14943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14947 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14949 (eval $ac_try) 2>&5
14950 ac_status=$?
14951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14952 test $ac_status = 0; }; }; then :
14953
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14955$as_echo "yes" >&6; }
14956
14957$as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h
14958
14959
14960else
14961 $as_echo "$as_me: failed program was:" >&5
14962sed 's/^/| /' conftest.$ac_ext >&5
14963
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14965$as_echo "no" >&6; }
14966
14967
14968
14969fi
14970 rm -Rf build
14971
14972
14973
14974
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5
14976$as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
14977
14978
14979cat confdefs.h - <<_ACEOF >conftest.c
14980
14981
14982 #include <linux/slab.h>
14983
14984int
14985main (void)
14986{
14987
14988 struct kmem_cache cachep __attribute__ ((unused));
14989 cachep.allocflags = GFP_KERNEL;
14990
14991 ;
14992 return 0;
14993}
14994
14995_ACEOF
14996
14997
14998 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14999 echo "obj-m := conftest.o" >build/Makefile
15000 modpost_flag=''
15001 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15002 if { 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'
15003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15007 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15012 test $ac_status = 0; }; }; then :
15013
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15015$as_echo "yes" >&6; }
15016
15017$as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h
15018
15019
15020else
15021 $as_echo "$as_me: failed program was:" >&5
15022sed 's/^/| /' conftest.$ac_ext >&5
15023
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15025$as_echo "no" >&6; }
15026
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5
15028$as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
15029
15030
15031cat confdefs.h - <<_ACEOF >conftest.c
15032
15033
15034 #include <linux/slab.h>
15035
15036int
15037main (void)
15038{
15039
15040 struct kmem_cache cachep __attribute__ ((unused));
15041 cachep.gfpflags = GFP_KERNEL;
15042
15043 ;
15044 return 0;
15045}
15046
15047_ACEOF
15048
15049
15050 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15051 echo "obj-m := conftest.o" >build/Makefile
15052 modpost_flag=''
15053 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15054 if { 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'
15055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15056 (eval $ac_try) 2>&5
15057 ac_status=$?
15058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15059 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15061 (eval $ac_try) 2>&5
15062 ac_status=$?
15063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15064 test $ac_status = 0; }; }; then :
15065
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15067$as_echo "yes" >&6; }
15068
15069$as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h
15070
15071
15072else
15073 $as_echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15077$as_echo "no" >&6; }
15078
15079
15080
15081fi
15082 rm -Rf build
15083
15084
15085
15086
15087
15088fi
15089 rm -Rf build
15090
15091
15092
15093
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5
15095$as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
15096
15097
15098cat confdefs.h - <<_ACEOF >conftest.c
15099
15100
15101 #include <linux/wait.h>
15102
15103int
15104main (void)
15105{
15106
15107 int (*action)(void *) = NULL;
15108 wait_on_bit(NULL, 0, action, 0);
15109
15110 ;
15111 return 0;
15112}
15113
15114_ACEOF
15115
15116
15117 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15118 echo "obj-m := conftest.o" >build/Makefile
15119 modpost_flag=''
15120 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15121 if { 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'
15122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15123 (eval $ac_try) 2>&5
15124 ac_status=$?
15125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15126 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15131 test $ac_status = 0; }; }; then :
15132
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15134$as_echo "yes" >&6; }
15135
15136$as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h
15137
15138
15139else
15140 $as_echo "$as_me: failed program was:" >&5
15141sed 's/^/| /' conftest.$ac_ext >&5
15142
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144$as_echo "no" >&6; }
15145
15146
15147
15148fi
15149 rm -Rf build
15150
15151
15152
0f836a62
AX
15153
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5
15155$as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
15156 tmp_flags="$EXTRA_KCFLAGS"
15157 EXTRA_KCFLAGS="-Werror"
15158
15159
15160cat confdefs.h - <<_ACEOF >conftest.c
15161
15162
15163 #include <linux/fs.h>
15164
15165int
15166main (void)
15167{
15168
15169 struct inode *inode = NULL;
15170 inode_lock_shared(inode);
15171
15172 ;
15173 return 0;
15174}
15175
15176_ACEOF
15177
15178
15179 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15180 echo "obj-m := conftest.o" >build/Makefile
15181 modpost_flag=''
15182 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15183 if { 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'
15184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15188 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15190 (eval $ac_try) 2>&5
15191 ac_status=$?
15192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15193 test $ac_status = 0; }; }; then :
15194
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15196$as_echo "yes" >&6; }
15197
15198$as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h
15199
15200
15201else
15202 $as_echo "$as_me: failed program was:" >&5
15203sed 's/^/| /' conftest.$ac_ext >&5
15204
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15206$as_echo "no" >&6; }
15207
15208
15209
15210fi
15211 rm -Rf build
15212
15213
15214 EXTRA_KCFLAGS="$tmp_flags"
15215
15216
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex has owner" >&5
15218$as_echo_n "checking whether mutex has owner... " >&6; }
15219 tmp_flags="$EXTRA_KCFLAGS"
15220 EXTRA_KCFLAGS="-Werror"
15221
15222
15223cat confdefs.h - <<_ACEOF >conftest.c
15224
15225
15226 #include <linux/mutex.h>
15227 #include <linux/spinlock.h>
15228
15229int
15230main (void)
15231{
15232
15233 DEFINE_MUTEX(m);
15234 struct task_struct *t __attribute__ ((unused));
15235 t = m.owner;
15236
15237 ;
15238 return 0;
15239}
15240
15241_ACEOF
15242
15243
15244 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15245 echo "obj-m := conftest.o" >build/Makefile
15246 modpost_flag=''
15247 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15248 if { 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'
15249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15250 (eval $ac_try) 2>&5
15251 ac_status=$?
15252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15253 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15255 (eval $ac_try) 2>&5
15256 ac_status=$?
15257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15258 test $ac_status = 0; }; }; then :
15259
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15261$as_echo "yes" >&6; }
15262
15263$as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
15264
15265
15266else
15267 $as_echo "$as_me: failed program was:" >&5
15268sed 's/^/| /' conftest.$ac_ext >&5
15269
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271$as_echo "no" >&6; }
15272
15273
15274
ac9cc135
AX
15275fi
15276 rm -Rf build
15277
15278
15279 EXTRA_KCFLAGS="$tmp_flags"
15280
15281
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether group_info->gid exists" >&5
15283$as_echo_n "checking whether group_info->gid exists... " >&6; }
15284 tmp_flags="$EXTRA_KCFLAGS"
15285 EXTRA_KCFLAGS="-Werror"
15286
15287
15288cat confdefs.h - <<_ACEOF >conftest.c
15289
15290
15291 #include <linux/cred.h>
15292
15293int
15294main (void)
15295{
15296
15297 struct group_info *gi = groups_alloc(1);
15298 gi->gid[0] = KGIDT_INIT(0);
15299
15300 ;
15301 return 0;
15302}
15303
15304_ACEOF
15305
15306
15307 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15308 echo "obj-m := conftest.o" >build/Makefile
15309 modpost_flag=''
15310 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15311 if { 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'
15312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15313 (eval $ac_try) 2>&5
15314 ac_status=$?
15315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15316 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15321 test $ac_status = 0; }; }; then :
15322
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15324$as_echo "yes" >&6; }
15325
15326$as_echo "#define HAVE_GROUP_INFO_GID 1" >>confdefs.h
15327
15328
15329else
15330 $as_echo "$as_me: failed program was:" >&5
15331sed 's/^/| /' conftest.$ac_ext >&5
15332
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334$as_echo "no" >&6; }
15335
15336
15337
0f836a62
AX
15338fi
15339 rm -Rf build
15340
15341
15342 EXTRA_KCFLAGS="$tmp_flags"
15343
10946b02
AX
15344 ;;
15345 user) ;;
15346 all)
15347
15348
15349# Check whether --with-linux was given.
15350if test "${with_linux+set}" = set; then :
15351 withval=$with_linux; kernelsrc="$withval"
15352fi
15353
15354
15355
15356# Check whether --with-linux-obj was given.
15357if test "${with_linux_obj+set}" = set; then :
15358 withval=$with_linux_obj; kernelbuild="$withval"
15359fi
15360
15361
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
15363$as_echo_n "checking kernel source directory... " >&6; }
15364 if test -z "$kernelsrc"; then
15365 if test -e "/lib/modules/$(uname -r)/source"; then
15366 headersdir="/lib/modules/$(uname -r)/source"
15367 sourcelink=$(readlink -f "$headersdir")
15368 elif test -e "/lib/modules/$(uname -r)/build"; then
15369 headersdir="/lib/modules/$(uname -r)/build"
15370 sourcelink=$(readlink -f "$headersdir")
15371 else
15372 sourcelink=$(ls -1d /usr/src/kernels/* \
15373 /usr/src/linux-* \
15374 2>/dev/null | grep -v obj | tail -1)
15375 fi
15376
15377 if test -n "$sourcelink" && test -e ${sourcelink}; then
15378 kernelsrc=`readlink -f ${sourcelink}`
15379 else
15380 kernelsrc="Not found"
15381 fi
15382 else
15383 if test "$kernelsrc" = "NONE"; then
15384 kernsrcver=NONE
15385 fi
15386 fi
15387
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
15389$as_echo "$kernelsrc" >&6; }
15390 if test ! -d "$kernelsrc"; then
15391 as_fn_error $? "
15392 *** Please make sure the kernel devel package for your distribution
15393 *** is installed and then try again. If that fails, you can specify the
15394 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
15395 fi
15396
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
15398$as_echo_n "checking kernel build directory... " >&6; }
15399 if test -z "$kernelbuild"; then
15400 if test -e "/lib/modules/$(uname -r)/build"; then
15401 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15402 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15403 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15404 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15405 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15406 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15407 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15408 else
15409 kernelbuild=${kernelsrc}
15410 fi
15411 fi
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
15413$as_echo "$kernelbuild" >&6; }
15414
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
15416$as_echo_n "checking kernel source version... " >&6; }
15417 utsrelease1=$kernelbuild/include/linux/version.h
15418 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15419 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15420 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15421 utsrelease=linux/version.h
15422 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15423 utsrelease=linux/utsrelease.h
15424 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15425 utsrelease=generated/utsrelease.h
15426 fi
15427
15428 if test "$utsrelease"; then
15429 kernsrcver=`(echo "#include <$utsrelease>";
15430 echo "kernsrcver=UTS_RELEASE") |
15431 cpp -I $kernelbuild/include |
15432 grep "^kernsrcver=" | cut -d \" -f 2`
15433
15434 if test -z "$kernsrcver"; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
15436$as_echo "Not found" >&6; }
15437 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
15438 fi
15439 else
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
15441$as_echo "Not found" >&6; }
15442 if test "x$enable_linux_builtin" != xyes; then
15443 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
15444 else
15445 as_fn_error $? "
15446 *** Cannot find UTS_RELEASE definition.
15447 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
15448 fi
15449 fi
15450
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
15452$as_echo "$kernsrcver" >&6; }
15453
15454 LINUX=${kernelsrc}
15455 LINUX_OBJ=${kernelbuild}
15456 LINUX_VERSION=${kernsrcver}
15457
15458
15459
15460
15461
15462
15463 modpost=$LINUX/scripts/Makefile.modpost
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
15465$as_echo_n "checking kernel file name for module symbols... " >&6; }
15466 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
15467 if grep -q Modules.symvers $modpost; then
15468 LINUX_SYMBOLS=Modules.symvers
15469 else
15470 LINUX_SYMBOLS=Module.symvers
15471 fi
15472
15473 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
15474 as_fn_error $? "
15475 *** Please make sure the kernel devel package for your distribution
15476 *** is installed. If you are building with a custom kernel, make sure the
15477 *** kernel is configured, built, and the '--with-linux=PATH' configure
15478 *** option refers to the location of the kernel source." "$LINENO" 5
15479 fi
15480 else
15481 LINUX_SYMBOLS=NONE
15482 fi
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
15484$as_echo "$LINUX_SYMBOLS" >&6; }
15485
15486
15487
15488
15489 if test "${LINUX_OBJ}" != "${LINUX}"; then
15490 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15491 fi
15492
15493
15494 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
15495
15496
15497
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
15499$as_echo_n "checking whether debugging is enabled... " >&6; }
15500 # Check whether --enable-debug was given.
15501if test "${enable_debug+set}" = set; then :
15502 enableval=$enable_debug;
15503else
15504 enable_debug=no
15505fi
15506
15507
15508 if test "x$enable_debug" = xyes; then :
15509
15510 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
15511 DEBUG_CFLAGS="-DDEBUG -Werror"
15512 DEBUG_SPL="_with_debug"
15513
15514else
15515
15516 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
15517 DEBUG_CFLAGS="-DNDEBUG"
15518 DEBUG_SPL="_without_debug"
15519
15520fi
15521
15522
15523
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
15525$as_echo "$enable_debug" >&6; }
15526
15527
15528 # Check whether --enable-debug-kmem was given.
15529if test "${enable_debug_kmem+set}" = set; then :
15530 enableval=$enable_debug_kmem;
15531else
f6188ddd 15532 enable_debug_kmem=no
10946b02
AX
15533fi
15534
15535
15536 if test "x$enable_debug_kmem" = xyes; then :
15537
15538 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15539 DEBUG_KMEM="_with_debug_kmem"
15540
15541$as_echo "#define DEBUG_KMEM 1" >>confdefs.h
15542
15543
15544else
15545
15546 DEBUG_KMEM="_without_debug_kmem"
15547
15548fi
15549
15550
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
15552$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
15554$as_echo "$enable_debug_kmem" >&6; }
15555
15556
15557 # Check whether --enable-debug-kmem-tracking was given.
15558if test "${enable_debug_kmem_tracking+set}" = set; then :
15559 enableval=$enable_debug_kmem_tracking;
15560else
15561 enable_debug_kmem_tracking=no
15562fi
15563
15564
15565 if test "x$enable_debug_kmem_tracking" = xyes; then :
15566
15567 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15568 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
15569
15570$as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
15571
15572
15573else
15574
15575 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
15576
15577fi
15578
15579
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
15581$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
15583$as_echo "$enable_debug_kmem_tracking" >&6; }
15584
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
15586$as_echo_n "checking whether modules can be built... " >&6; }
15587
15588
15589cat confdefs.h - <<_ACEOF >conftest.c
15590
15591
15592int
15593main (void)
15594{
15595
15596 ;
15597 return 0;
15598}
15599
15600_ACEOF
15601
15602
15603 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15604 echo "obj-m := conftest.o" >build/Makefile
15605 modpost_flag=''
15606 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15607 if { 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'
15608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15609 (eval $ac_try) 2>&5
15610 ac_status=$?
15611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15612 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15617 test $ac_status = 0; }; }; then :
15618
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15620$as_echo "yes" >&6; }
15621
15622else
15623 $as_echo "$as_me: failed program was:" >&5
15624sed 's/^/| /' conftest.$ac_ext >&5
15625
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15627$as_echo "no" >&6; }
15628 if test "x$enable_linux_builtin" != xyes; then
15629 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
15630 else
15631 as_fn_error $? "
15632 *** Unable to build an empty module.
15633 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
15634 fi
15635
15636
15637
15638fi
15639 rm -Rf build
15640
15641
15642
879bbbc7
AX
15643 if test "x$cross_compiling" != xyes; then :
15644
15645 if test "$cross_compiling" = yes; then :
10946b02
AX
15646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15648as_fn_error $? "cannot run test program while cross compiling
15649See \`config.log' for more details" "$LINENO" 5; }
15650else
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652/* end confdefs.h. */
15653
15654
879bbbc7 15655 #include "$LINUX/include/linux/license.h"
10946b02
AX
15656
15657int
15658main ()
15659{
15660
879bbbc7
AX
15661 return !license_is_gpl_compatible(
15662 "$SPL_META_LICENSE");
10946b02
AX
15663
15664 ;
15665 return 0;
15666}
15667
15668_ACEOF
15669if ac_fn_c_try_run "$LINENO"; then :
15670
15671
15672$as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h
15673
15674
15675fi
15676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15677 conftest.$ac_objext conftest.beam conftest.$ac_ext
15678fi
15679
15680
879bbbc7
AX
15681fi
15682
10946b02
AX
15683
15684 # Check whether --enable-atomic-spinlocks was given.
15685if test "${enable_atomic_spinlocks+set}" = set; then :
15686 enableval=$enable_atomic_spinlocks;
15687else
15688 enable_atomic_spinlocks=check
15689fi
15690
15691
15692
15693
15694cat confdefs.h - <<_ACEOF >conftest.c
15695
15696
15697 #include <linux/fs.h>
15698
15699int
15700main (void)
15701{
15702
15703 atomic64_t *ptr __attribute__ ((unused));
15704
15705 ;
15706 return 0;
15707}
15708
15709_ACEOF
15710
15711
15712 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15713 echo "obj-m := conftest.o" >build/Makefile
15714 modpost_flag=''
15715 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15716 if { 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'
15717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15721 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15726 test $ac_status = 0; }; }; then :
15727
15728 have_atomic64_t=yes
15729
15730$as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
15731
15732
15733else
15734 $as_echo "$as_me: failed program was:" >&5
15735sed 's/^/| /' conftest.$ac_ext >&5
15736
15737 have_atomic64_t=no
15738
15739
15740
15741fi
15742 rm -Rf build
15743
15744
15745
15746 if test "x$enable_atomic_spinlocks" = xcheck; then :
15747
15748 if test "x$have_atomic64_t" = xyes; then :
15749
15750 enable_atomic_spinlocks=no
15751
15752else
15753
15754 enable_atomic_spinlocks=yes
15755
15756fi
15757
15758fi
15759
15760 if test "x$enable_atomic_spinlocks" = xyes; then :
15761
15762
15763$as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
15764
15765
15766else
15767
15768 if test "x$have_atomic64_t" = xno; then :
15769
15770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15772as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
15773See \`config.log' for more details" "$LINENO" 5; }
15774
15775fi
15776
15777fi
15778
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
15780$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
15782$as_echo "$enable_atomic_spinlocks" >&6; }
15783
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
15785$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
15787$as_echo "$have_atomic64_t" >&6; }
15788
15789
15790 tmp_flags="$EXTRA_KCFLAGS"
15791 EXTRA_KCFLAGS="-Werror"
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5
15793$as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
15794
15795
15796cat confdefs.h - <<_ACEOF >conftest.c
15797
15798
15799 #include <linux/mm.h>
15800
15801 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
15802
15803int
15804main (void)
15805{
15806
15807 struct shrinker cache_shrinker = {
15808 .shrink = shrinker_cb,
15809 .seeks = DEFAULT_SEEKS,
15810 };
15811 register_shrinker(&cache_shrinker);
15812
15813 ;
15814 return 0;
15815}
15816
15817_ACEOF
15818
15819
15820 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15821 echo "obj-m := conftest.o" >build/Makefile
15822 modpost_flag=''
15823 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15824 if { 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'
15825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15829 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15831 (eval $ac_try) 2>&5
15832 ac_status=$?
15833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15834 test $ac_status = 0; }; }; then :
15835
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15837$as_echo "yes" >&6; }
15838
15839$as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h
15840
15841
15842else
15843 $as_echo "$as_me: failed program was:" >&5
15844sed 's/^/| /' conftest.$ac_ext >&5
15845
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15847$as_echo "no" >&6; }
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5
15849$as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
15850
15851
15852cat confdefs.h - <<_ACEOF >conftest.c
15853
15854
15855 #include <linux/mm.h>
15856
15857 int shrinker_cb(struct shrinker *, int nr_to_scan,
15858 gfp_t gfp_mask);
15859
15860int
15861main (void)
15862{
15863
15864 struct shrinker cache_shrinker = {
15865 .shrink = shrinker_cb,
15866 .seeks = DEFAULT_SEEKS,
15867 };
15868 register_shrinker(&cache_shrinker);
15869
15870 ;
15871 return 0;
15872}
15873
15874_ACEOF
15875
15876
15877 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15878 echo "obj-m := conftest.o" >build/Makefile
15879 modpost_flag=''
15880 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15881 if { 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'
15882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15886 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15888 (eval $ac_try) 2>&5
15889 ac_status=$?
15890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15891 test $ac_status = 0; }; }; then :
15892
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15894$as_echo "yes" >&6; }
15895
15896$as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
15897
15898
15899else
15900 $as_echo "$as_me: failed program was:" >&5
15901sed 's/^/| /' conftest.$ac_ext >&5
15902
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15904$as_echo "no" >&6; }
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5
15906$as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
15907
15908
15909cat confdefs.h - <<_ACEOF >conftest.c
15910
15911
15912 #include <linux/mm.h>
15913
15914 int shrinker_cb(struct shrinker *,
15915 struct shrink_control *sc);
15916
15917int
15918main (void)
15919{
15920
15921 struct shrinker cache_shrinker = {
15922 .shrink = shrinker_cb,
15923 .seeks = DEFAULT_SEEKS,
15924 };
15925 register_shrinker(&cache_shrinker);
15926
15927 ;
15928 return 0;
15929}
15930
15931_ACEOF
15932
15933
15934 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15935 echo "obj-m := conftest.o" >build/Makefile
15936 modpost_flag=''
15937 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15938 if { 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'
15939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15940 (eval $ac_try) 2>&5
15941 ac_status=$?
15942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15943 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15948 test $ac_status = 0; }; }; then :
15949
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15951$as_echo "yes" >&6; }
15952
15953$as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h
15954
15955
15956else
15957 $as_echo "$as_me: failed program was:" >&5
15958sed 's/^/| /' conftest.$ac_ext >&5
15959
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961$as_echo "no" >&6; }
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5
15963$as_echo_n "checking whether ->count_objects callback exists... " >&6; }
15964
15965
15966cat confdefs.h - <<_ACEOF >conftest.c
15967
15968
15969 #include <linux/mm.h>
15970
15971 unsigned long shrinker_cb(
15972 struct shrinker *,
15973 struct shrink_control *sc);
15974
15975int
15976main (void)
15977{
15978
15979 struct shrinker cache_shrinker = {
15980 .count_objects = shrinker_cb,
15981 .scan_objects = shrinker_cb,
15982 .seeks = DEFAULT_SEEKS,
15983 };
15984 register_shrinker(&cache_shrinker);
15985
15986 ;
15987 return 0;
15988}
15989
15990_ACEOF
15991
15992
15993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15994 echo "obj-m := conftest.o" >build/Makefile
15995 modpost_flag=''
15996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15997 if { 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'
15998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15999 (eval $ac_try) 2>&5
16000 ac_status=$?
16001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16002 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16007 test $ac_status = 0; }; }; then :
16008
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16010$as_echo "yes" >&6; }
16011
16012$as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h
16013
16014
16015else
16016 $as_echo "$as_me: failed program was:" >&5
16017sed 's/^/| /' conftest.$ac_ext >&5
16018
16019 as_fn_error $? "error" "$LINENO" 5
16020
16021
16022
16023fi
16024 rm -Rf build
16025
16026
16027
16028
16029
16030fi
16031 rm -Rf build
16032
16033
16034
16035
16036
0f836a62
AX
16037fi
16038 rm -Rf build
16039
16040
16041
16042
16043
16044fi
16045 rm -Rf build
16046
16047
16048 EXTRA_KCFLAGS="$tmp_flags"
16049
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
16052$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
16053
16054
16055cat confdefs.h - <<_ACEOF >conftest.c
16056
16057
16058 #include <linux/sysctl.h>
16059
16060int
16061main (void)
16062{
16063
16064 struct ctl_table ctl __attribute__ ((unused));
16065 ctl.ctl_name = 0;
16066
16067 ;
16068 return 0;
16069}
16070
16071_ACEOF
16072
16073
16074 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16075 echo "obj-m := conftest.o" >build/Makefile
16076 modpost_flag=''
16077 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16078 if { 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'
16079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16080 (eval $ac_try) 2>&5
16081 ac_status=$?
16082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16083 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16088 test $ac_status = 0; }; }; then :
16089
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16091$as_echo "yes" >&6; }
16092
16093$as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
16094
10946b02 16095
0f836a62
AX
16096else
16097 $as_echo "$as_me: failed program was:" >&5
16098sed 's/^/| /' conftest.$ac_ext >&5
10946b02 16099
0f836a62
AX
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16101$as_echo "no" >&6; }
10946b02
AX
16102
16103
16104
16105fi
16106 rm -Rf build
16107
16108
10946b02
AX
16109
16110
0f836a62
AX
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
16112$as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
10946b02
AX
16113
16114
16115cat confdefs.h - <<_ACEOF >conftest.c
16116
16117
0f836a62
AX
16118 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
16119 #error CONFIG_TRIM_UNUSED_KSYMS not defined
16120 #endif
10946b02
AX
16121
16122int
16123main (void)
16124{
16125
10946b02
AX
16126 ;
16127 return 0;
16128}
16129
16130_ACEOF
16131
16132
16133 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16134 echo "obj-m := conftest.o" >build/Makefile
16135 modpost_flag=''
16136 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16137 if { 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'
16138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16139 (eval $ac_try) 2>&5
16140 ac_status=$?
16141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16142 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16147 test $ac_status = 0; }; }; then :
16148
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16150$as_echo "yes" >&6; }
16151
10946b02
AX
16152else
16153 $as_echo "$as_me: failed program was:" >&5
16154sed 's/^/| /' conftest.$ac_ext >&5
16155
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16157$as_echo "no" >&6; }
0f836a62
AX
16158 as_fn_error $? "
16159 *** This kernel has unused symbols trimming enabled, please disable.
16160 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." "$LINENO" 5
10946b02
AX
16161
16162
16163
16164fi
16165 rm -Rf build
16166
16167
16168
16169
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5
16171$as_echo_n "checking whether PDE_DATA() is available... " >&6; }
16172
16173
16174
16175cat confdefs.h - <<_ACEOF >conftest.c
16176
16177
16178 #include <linux/proc_fs.h>
16179
16180int
16181main (void)
16182{
16183
16184 PDE_DATA(NULL);
16185
16186 ;
16187 return 0;
16188}
16189
16190_ACEOF
16191
16192
16193 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16194 echo "obj-m := conftest.o" >build/Makefile
16195 modpost_flag=''
16196 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16197 if { 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'
16198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16202 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16204 (eval $ac_try) 2>&5
16205 ac_status=$?
16206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16207 test $ac_status = 0; }; }; then :
16208 rc=0
16209else
16210 $as_echo "$as_me: failed program was:" >&5
16211sed 's/^/| /' conftest.$ac_ext >&5
16212 rc=1
16213
16214
16215fi
16216 rm -Rf build
16217
16218
16219 if test $rc -ne 0; then :
16220
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222$as_echo "no" >&6; }
16223
16224 else
16225 if test "x$enable_linux_builtin" != xyes; then
16226
16227 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
16228 $LINUX_OBJ/Module*.symvers 2>/dev/null
16229 rc=$?
16230 if test $rc -ne 0; then
16231 export=0
16232 for file in ; do
16233 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
16234 "$LINUX_OBJ/$file" 2>/dev/null
16235 rc=$?
16236 if test $rc -eq 0; then
16237 export=1
16238 break;
16239 fi
16240 done
16241 if test $export -eq 0; then :
16242 rc=1
16243 else :
16244 rc=0
16245 fi
16246 else :
16247 rc=0
16248 fi
16249
16250 fi
16251 if test $rc -ne 0; then :
16252
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16254$as_echo "no" >&6; }
16255
16256 else :
16257
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16259$as_echo "yes" >&6; }
16260
16261$as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h
16262
16263
16264 fi
16265 fi
16266
16267
16268 tmp_flags="$EXTRA_KCFLAGS"
16269 EXTRA_KCFLAGS="-Werror"
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
16271$as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
16272
16273
16274cat confdefs.h - <<_ACEOF >conftest.c
16275
16276
16277 #include <linux/spinlock.h>
16278 #include <linux/fs_struct.h>
16279 #include <linux/path.h>
16280 void (*const set_fs_pwd_func)
16281 (struct fs_struct *, const struct path *)
16282 = set_fs_pwd;
16283
16284int
16285main (void)
16286{
16287
16288 return 0;
16289
16290 ;
16291 return 0;
16292}
16293
16294_ACEOF
16295
16296
16297 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16298 echo "obj-m := conftest.o" >build/Makefile
16299 modpost_flag=''
16300 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16301 if { 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'
16302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16303 (eval $ac_try) 2>&5
16304 ac_status=$?
16305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16306 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16311 test $ac_status = 0; }; }; then :
16312
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16314$as_echo "yes" >&6; }
16315
16316$as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
16317
16318
16319else
16320 $as_echo "$as_me: failed program was:" >&5
16321sed 's/^/| /' conftest.$ac_ext >&5
16322
16323
16324
16325cat confdefs.h - <<_ACEOF >conftest.c
16326
16327
16328 #include <linux/spinlock.h>
16329 #include <linux/fs_struct.h>
16330 #include <linux/path.h>
16331 void (*const set_fs_pwd_func)
16332 (struct fs_struct *, struct path *)
16333 = set_fs_pwd;
16334
16335int
16336main (void)
16337{
16338
16339 return 0;
16340
16341 ;
16342 return 0;
16343}
16344
16345_ACEOF
16346
16347
16348 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16349 echo "obj-m := conftest.o" >build/Makefile
16350 modpost_flag=''
16351 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16352 if { 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'
16353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16357 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16362 test $ac_status = 0; }; }; then :
16363
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365$as_echo "no" >&6; }
16366
16367else
16368 $as_echo "$as_me: failed program was:" >&5
16369sed 's/^/| /' conftest.$ac_ext >&5
16370
16371 as_fn_error $? "unknown" "$LINENO" 5
16372
16373
16374
16375fi
16376 rm -Rf build
16377
16378
16379
16380
16381
16382fi
16383 rm -Rf build
16384
16385
16386 EXTRA_KCFLAGS="$tmp_flags"
16387
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
16389$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
16390
16391
16392cat confdefs.h - <<_ACEOF >conftest.c
16393
16394
16395 #include <linux/fs.h>
16396
16397int
16398main (void)
16399{
16400
16401 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
16402
16403 ;
16404 return 0;
16405}
16406
16407_ACEOF
16408
16409
16410 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16411 echo "obj-m := conftest.o" >build/Makefile
16412 modpost_flag=''
16413 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16414 if { 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'
16415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16416 (eval $ac_try) 2>&5
16417 ac_status=$?
16418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16419 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16421 (eval $ac_try) 2>&5
16422 ac_status=$?
16423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16424 test $ac_status = 0; }; }; then :
16425
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16427$as_echo "yes" >&6; }
16428
16429$as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
16430
16431
16432else
16433 $as_echo "$as_me: failed program was:" >&5
16434sed 's/^/| /' conftest.$ac_ext >&5
16435
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16437$as_echo "no" >&6; }
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5
16439$as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
16440
16441
16442cat confdefs.h - <<_ACEOF >conftest.c
16443
16444
16445 #include <linux/fs.h>
16446
16447int
16448main (void)
16449{
16450
16451 vfs_unlink((struct inode *) NULL,
16452 (struct dentry *) NULL,
16453 (struct inode **) NULL);
16454
16455 ;
16456 return 0;
16457}
16458
16459_ACEOF
16460
16461
16462 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16463 echo "obj-m := conftest.o" >build/Makefile
16464 modpost_flag=''
16465 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16466 if { 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'
16467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16468 (eval $ac_try) 2>&5
16469 ac_status=$?
16470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16471 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16473 (eval $ac_try) 2>&5
16474 ac_status=$?
16475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16476 test $ac_status = 0; }; }; then :
16477
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16479$as_echo "yes" >&6; }
16480
16481$as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h
16482
16483
16484else
16485 $as_echo "$as_me: failed program was:" >&5
16486sed 's/^/| /' conftest.$ac_ext >&5
16487
16488 as_fn_error $? "no" "$LINENO" 5
16489
16490
16491
16492fi
16493 rm -Rf build
16494
16495
16496
16497
16498
16499
16500fi
16501 rm -Rf build
16502
16503
16504
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
16506$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
16507
16508
16509cat confdefs.h - <<_ACEOF >conftest.c
16510
16511
16512 #include <linux/fs.h>
16513
16514int
16515main (void)
16516{
16517
16518 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
16519 (struct inode *) NULL, (struct dentry *) NULL);
16520
16521 ;
16522 return 0;
16523}
16524
16525_ACEOF
16526
16527
16528 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16529 echo "obj-m := conftest.o" >build/Makefile
16530 modpost_flag=''
16531 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16532 if { 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'
16533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16534 (eval $ac_try) 2>&5
16535 ac_status=$?
16536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16537 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16542 test $ac_status = 0; }; }; then :
16543
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16545$as_echo "yes" >&6; }
16546
16547$as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
16548
16549
16550else
16551 $as_echo "$as_me: failed program was:" >&5
16552sed 's/^/| /' conftest.$ac_ext >&5
16553
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16555$as_echo "no" >&6; }
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5
16557$as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
16558
16559
16560cat confdefs.h - <<_ACEOF >conftest.c
16561
16562
16563 #include <linux/fs.h>
16564
16565int
16566main (void)
16567{
16568
16569 vfs_rename((struct inode *) NULL,
16570 (struct dentry *) NULL,
16571 (struct inode *) NULL,
16572 (struct dentry *) NULL,
16573 (struct inode **) NULL);
16574
16575 ;
16576 return 0;
16577}
16578
16579_ACEOF
16580
16581
16582 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16583 echo "obj-m := conftest.o" >build/Makefile
16584 modpost_flag=''
16585 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16586 if { 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'
16587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16588 (eval $ac_try) 2>&5
16589 ac_status=$?
16590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16591 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
16595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16596 test $ac_status = 0; }; }; then :
16597
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16599$as_echo "yes" >&6; }
16600
16601$as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h
16602
16603
16604else
16605 $as_echo "$as_me: failed program was:" >&5
16606sed 's/^/| /' conftest.$ac_ext >&5
16607
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16609$as_echo "no" >&6; }
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5
16611$as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
16612
16613
16614cat confdefs.h - <<_ACEOF >conftest.c
16615
16616
16617 #include <linux/fs.h>
16618
16619int
16620main (void)
16621{
16622
16623 vfs_rename((struct inode *) NULL,
16624 (struct dentry *) NULL,
16625 (struct inode *) NULL,
16626 (struct dentry *) NULL,
16627 (struct inode **) NULL,
16628 (unsigned int) 0);
16629
16630 ;
16631 return 0;
16632}
16633
16634_ACEOF
16635
16636
16637 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16638 echo "obj-m := conftest.o" >build/Makefile
16639 modpost_flag=''
16640 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16641 if { 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'
16642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16643 (eval $ac_try) 2>&5
16644 ac_status=$?
16645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16646 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16651 test $ac_status = 0; }; }; then :
16652
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16654$as_echo "yes" >&6; }
16655
16656$as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h
16657
16658
16659else
16660 $as_echo "$as_me: failed program was:" >&5
16661sed 's/^/| /' conftest.$ac_ext >&5
16662
16663 as_fn_error $? "no" "$LINENO" 5
16664
16665
16666
16667fi
16668 rm -Rf build
16669
16670
16671
16672
16673
16674fi
16675 rm -Rf build
16676
16677
16678
16679
16680
16681fi
16682 rm -Rf build
16683
16684
16685
16686
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
16688$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
16689
16690
16691cat confdefs.h - <<_ACEOF >conftest.c
16692
16693
16694 #include <linux/fs.h>
16695
16696int
16697main (void)
16698{
16699
16700 vfs_fsync(NULL, 0);
16701
16702 ;
16703 return 0;
16704}
16705
16706_ACEOF
16707
16708
16709 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16710 echo "obj-m := conftest.o" >build/Makefile
16711 modpost_flag=''
16712 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16713 if { 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'
16714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16718 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16723 test $ac_status = 0; }; }; then :
16724
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16726$as_echo "yes" >&6; }
16727
16728$as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
16729
16730
16731else
16732 $as_echo "$as_me: failed program was:" >&5
16733sed 's/^/| /' conftest.$ac_ext >&5
16734
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16736$as_echo "no" >&6; }
16737
16738
16739
16740fi
16741 rm -Rf build
16742
16743
16744
16745
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
16747$as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
16748
16749
16750cat confdefs.h - <<_ACEOF >conftest.c
16751
16752
16753 #include <linux/fs.h>
16754
16755int
16756main (void)
16757{
16758
16759 struct inode_operations ops;
16760 ops.truncate_range = NULL;
16761
16762 ;
16763 return 0;
16764}
16765
16766_ACEOF
16767
16768
16769 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16770 echo "obj-m := conftest.o" >build/Makefile
16771 modpost_flag=''
16772 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16773 if { 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'
16774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16778 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16780 (eval $ac_try) 2>&5
16781 ac_status=$?
16782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16783 test $ac_status = 0; }; }; then :
16784
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16786$as_echo "yes" >&6; }
16787
16788$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
16789
16790
16791else
16792 $as_echo "$as_me: failed program was:" >&5
16793sed 's/^/| /' conftest.$ac_ext >&5
16794
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16796$as_echo "no" >&6; }
16797
16798
16799
16800fi
16801 rm -Rf build
16802
16803
16804
16805
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
16807$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
16808 tmp_flags="$EXTRA_KCFLAGS"
16809 EXTRA_KCFLAGS="-Werror"
16810
16811
16812cat confdefs.h - <<_ACEOF >conftest.c
16813
16814
16815 #include <linux/sched.h>
16816 #include <linux/fs_struct.h>
16817
16818int
16819main (void)
16820{
16821
16822 static struct fs_struct fs;
16823 spin_lock_init(&fs.lock);
16824
16825 ;
16826 return 0;
16827}
16828
16829_ACEOF
16830
16831
16832 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16833 echo "obj-m := conftest.o" >build/Makefile
16834 modpost_flag=''
16835 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16836 if { 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'
16837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16841 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16846 test $ac_status = 0; }; }; then :
16847
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16849$as_echo "yes" >&6; }
16850
16851$as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
16852
16853
16854else
16855 $as_echo "$as_me: failed program was:" >&5
16856sed 's/^/| /' conftest.$ac_ext >&5
16857
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16859$as_echo "no" >&6; }
16860
16861
16862
16863fi
16864 rm -Rf build
16865
16866
16867 EXTRA_KCFLAGS="$tmp_flags"
16868
16869
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5
16871$as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
16872
16873
16874cat confdefs.h - <<_ACEOF >conftest.c
16875
16876
16877 #include <linux/uidgid.h>
16878
16879int
16880main (void)
16881{
16882
16883 kuid_t userid = KUIDT_INIT(0);
16884 kgid_t groupid = KGIDT_INIT(0);
16885
16886 ;
16887 return 0;
16888}
16889
16890_ACEOF
16891
16892
16893 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16894 echo "obj-m := conftest.o" >build/Makefile
16895 modpost_flag=''
16896 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16897 if { 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'
16898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16899 (eval $ac_try) 2>&5
16900 ac_status=$?
16901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16902 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16907 test $ac_status = 0; }; }; then :
16908
16909
16910
16911cat confdefs.h - <<_ACEOF >conftest.c
16912
16913
16914 #include <linux/uidgid.h>
16915
16916int
16917main (void)
16918{
16919
16920 kuid_t userid = 0;
16921 kgid_t groupid = 0;
16922
16923 ;
16924 return 0;
16925}
16926
16927_ACEOF
16928
16929
16930 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16931 echo "obj-m := conftest.o" >build/Makefile
16932 modpost_flag=''
16933 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16934 if { 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'
16935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16939 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16941 (eval $ac_try) 2>&5
16942 ac_status=$?
16943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16944 test $ac_status = 0; }; }; then :
16945
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5
16947$as_echo "yes; optional" >&6; }
16948
16949else
16950 $as_echo "$as_me: failed program was:" >&5
16951sed 's/^/| /' conftest.$ac_ext >&5
16952
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5
16954$as_echo "yes; mandatory" >&6; }
16955
16956$as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h
16957
16958
16959
16960
16961fi
16962 rm -Rf build
16963
16964
16965
16966else
16967 $as_echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16971$as_echo "no" >&6; }
16972
16973
16974
16975fi
16976 rm -Rf build
16977
16978
16979
10946b02
AX
16980
16981
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
16983$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16984
16985
16986cat confdefs.h - <<_ACEOF >conftest.c
16987
16988
16989 #include <linux/fs.h>
16990
16991int
16992main (void)
16993{
16994
16995 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16996 struct file_operations fops __attribute__ ((unused)) = {
16997 .fallocate = fallocate,
16998 };
16999
17000 ;
17001 return 0;
17002}
17003
17004_ACEOF
17005
17006
17007 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17008 echo "obj-m := conftest.o" >build/Makefile
17009 modpost_flag=''
17010 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17011 if { 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'
17012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17016 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17021 test $ac_status = 0; }; }; then :
17022
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17024$as_echo "yes" >&6; }
17025
17026$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
17027
17028
17029else
17030 $as_echo "$as_me: failed program was:" >&5
17031sed 's/^/| /' conftest.$ac_ext >&5
17032
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17034$as_echo "no" >&6; }
17035
17036
17037
17038fi
17039 rm -Rf build
17040
17041
17042
17043
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
17045$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
17046
17047
17048cat confdefs.h - <<_ACEOF >conftest.c
17049
17050
17051 #include <linux/fs.h>
17052
17053int
17054main (void)
17055{
17056
17057 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
17058 struct inode_operations fops __attribute__ ((unused)) = {
17059 .fallocate = fallocate,
17060 };
17061
17062 ;
17063 return 0;
17064}
17065
17066_ACEOF
17067
17068
17069 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17070 echo "obj-m := conftest.o" >build/Makefile
17071 modpost_flag=''
17072 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17073 if { 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'
17074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17078 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17083 test $ac_status = 0; }; }; then :
17084
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17086$as_echo "yes" >&6; }
17087
17088$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
17089
17090
17091else
17092 $as_echo "$as_me: failed program was:" >&5
17093sed 's/^/| /' conftest.$ac_ext >&5
17094
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17096$as_echo "no" >&6; }
17097
17098
17099
17100fi
17101 rm -Rf build
17102
17103
17104
17105
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
17107$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17108
17109
17110cat confdefs.h - <<_ACEOF >conftest.c
17111
17112
17113 #include <linux/fs.h>
17114
17115int
17116main (void)
17117{
17118
17119 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
17120 struct file_operations_no_const fops __attribute__ ((unused)) = {
17121 .fallocate = fallocate,
17122 };
17123
17124 ;
17125 return 0;
17126}
17127
17128_ACEOF
17129
17130
17131 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17132 echo "obj-m := conftest.o" >build/Makefile
17133 modpost_flag=''
17134 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17135 if { 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'
17136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17140 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17145 test $ac_status = 0; }; }; then :
17146
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17148$as_echo "yes" >&6; }
17149
17150$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
17151
17152
17153else
17154 $as_echo "$as_me: failed program was:" >&5
17155sed 's/^/| /' conftest.$ac_ext >&5
17156
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17158$as_echo "no" >&6; }
17159
17160
17161
17162fi
17163 rm -Rf build
17164
17165
17166
17167
17168
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
17170$as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
17171
17172
17173cat confdefs.h - <<_ACEOF >conftest.c
17174
17175
17176 #if !defined(CONFIG_ZLIB_INFLATE) && \
17177 !defined(CONFIG_ZLIB_INFLATE_MODULE)
17178 #error CONFIG_ZLIB_INFLATE not defined
17179 #endif
17180
17181int
17182main (void)
17183{
17184
17185 ;
17186 return 0;
17187}
17188
17189_ACEOF
17190
17191
17192 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17193 echo "obj-m := conftest.o" >build/Makefile
17194 modpost_flag=''
17195 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17196 if { 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'
17197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17201 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17206 test $ac_status = 0; }; }; then :
17207
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17209$as_echo "yes" >&6; }
17210
17211else
17212 $as_echo "$as_me: failed program was:" >&5
17213sed 's/^/| /' conftest.$ac_ext >&5
17214
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17216$as_echo "no" >&6; }
17217 as_fn_error $? "
17218 *** This kernel does not include the required zlib inflate support.
17219 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
17220
17221
17222
17223fi
17224 rm -Rf build
17225
17226
17227
17228
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
17230$as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
17231
17232
17233cat confdefs.h - <<_ACEOF >conftest.c
17234
17235
17236 #if !defined(CONFIG_ZLIB_DEFLATE) && \
17237 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
17238 #error CONFIG_ZLIB_DEFLATE not defined
17239 #endif
17240
17241int
17242main (void)
17243{
17244
17245 ;
17246 return 0;
17247}
17248
17249_ACEOF
17250
17251
17252 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17253 echo "obj-m := conftest.o" >build/Makefile
17254 modpost_flag=''
17255 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17256 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17261 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17266 test $ac_status = 0; }; }; then :
17267
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17269$as_echo "yes" >&6; }
17270
17271else
17272 $as_echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17276$as_echo "no" >&6; }
17277 as_fn_error $? "
17278 *** This kernel does not include the required zlib deflate support.
17279 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
17280
17281
17282
17283fi
17284 rm -Rf build
17285
17286
17287
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
17289$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
17290
17291
17292cat confdefs.h - <<_ACEOF >conftest.c
17293
17294
17295 #include <linux/zlib.h>
17296
17297int
17298main (void)
17299{
17300
17301 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
17302
17303 ;
17304 return 0;
17305}
17306
17307_ACEOF
17308
17309
17310 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17311 echo "obj-m := conftest.o" >build/Makefile
17312 modpost_flag=''
17313 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17314 if { 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'
17315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17319 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17321 (eval $ac_try) 2>&5
17322 ac_status=$?
17323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17324 test $ac_status = 0; }; }; then :
17325
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17327$as_echo "yes" >&6; }
17328
17329$as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
17330
17331
17332else
17333 $as_echo "$as_me: failed program was:" >&5
17334sed 's/^/| /' conftest.$ac_ext >&5
17335
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17337$as_echo "no" >&6; }
17338
17339
17340
17341fi
17342 rm -Rf build
17343
17344
17345
17346
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
17348$as_echo_n "checking whether struct shrink_control exists... " >&6; }
17349
17350
17351cat confdefs.h - <<_ACEOF >conftest.c
17352
17353
17354 #include <linux/mm.h>
17355
17356int
17357main (void)
17358{
17359
17360 struct shrink_control sc __attribute__ ((unused));
17361
17362 sc.nr_to_scan = 0;
17363 sc.gfp_mask = GFP_KERNEL;
17364
17365 ;
17366 return 0;
17367}
17368
17369_ACEOF
17370
17371
17372 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17373 echo "obj-m := conftest.o" >build/Makefile
17374 modpost_flag=''
17375 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17376 if { 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'
17377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17381 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17383 (eval $ac_try) 2>&5
17384 ac_status=$?
17385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17386 test $ac_status = 0; }; }; then :
17387
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17389$as_echo "yes" >&6; }
17390
17391$as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
17392
17393
17394else
17395 $as_echo "$as_me: failed program was:" >&5
17396sed 's/^/| /' conftest.$ac_ext >&5
17397
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17399$as_echo "no" >&6; }
17400
17401
17402
17403fi
17404 rm -Rf build
17405
17406
17407
17408
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
17410$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
17411 tmp_flags="$EXTRA_KCFLAGS"
17412 EXTRA_KCFLAGS="-Werror"
17413
17414
17415cat confdefs.h - <<_ACEOF >conftest.c
17416
17417
17418 #include <linux/rwsem.h>
17419
17420int
17421main (void)
17422{
17423
17424 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17425 raw_spinlock_t dummy_lock __attribute__ ((unused));
17426 dummy_semaphore.wait_lock = dummy_lock;
17427
17428 ;
17429 return 0;
17430}
17431
17432_ACEOF
17433
17434
17435 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17436 echo "obj-m := conftest.o" >build/Makefile
17437 modpost_flag=''
17438 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17439 if { 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'
17440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17444 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17449 test $ac_status = 0; }; }; then :
17450
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17452$as_echo "yes" >&6; }
17453
17454$as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
17455
17456
17457else
17458 $as_echo "$as_me: failed program was:" >&5
17459sed 's/^/| /' conftest.$ac_ext >&5
17460
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462$as_echo "no" >&6; }
17463
17464
17465
0f836a62
AX
17466fi
17467 rm -Rf build
17468
17469
17470 EXTRA_KCFLAGS="$tmp_flags"
17471
17472
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5
17474$as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
17475 tmp_flags="$EXTRA_KCFLAGS"
17476 EXTRA_KCFLAGS="-Werror"
17477
17478
17479cat confdefs.h - <<_ACEOF >conftest.c
17480
17481
17482 #include <linux/rwsem.h>
17483
17484int
17485main (void)
17486{
17487
17488 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17489 dummy_semaphore.activity = 0;
17490
17491 ;
17492 return 0;
17493}
17494
17495_ACEOF
17496
17497
17498 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17499 echo "obj-m := conftest.o" >build/Makefile
17500 modpost_flag=''
17501 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17502 if { 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'
17503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17507 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17509 (eval $ac_try) 2>&5
17510 ac_status=$?
17511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17512 test $ac_status = 0; }; }; then :
17513
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17515$as_echo "yes" >&6; }
17516
17517$as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h
17518
17519
17520else
17521 $as_echo "$as_me: failed program was:" >&5
17522sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525$as_echo "no" >&6; }
17526
17527
17528
17529fi
17530 rm -Rf build
17531
17532
17533 EXTRA_KCFLAGS="$tmp_flags"
17534
17535
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5
17537$as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
17538 tmp_flags="$EXTRA_KCFLAGS"
17539 EXTRA_KCFLAGS="-Werror"
17540
17541
17542cat confdefs.h - <<_ACEOF >conftest.c
17543
17544
17545 #include <linux/rwsem.h>
17546
17547int
17548main (void)
17549{
17550
17551 DECLARE_RWSEM(dummy_semaphore);
17552 (void) atomic_long_read(&dummy_semaphore.count);
17553
17554 ;
17555 return 0;
17556}
17557
17558_ACEOF
17559
17560
17561 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17562 echo "obj-m := conftest.o" >build/Makefile
17563 modpost_flag=''
17564 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17565 if { 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'
17566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17570 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17575 test $ac_status = 0; }; }; then :
17576
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17578$as_echo "yes" >&6; }
17579
17580$as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h
17581
17582
17583else
17584 $as_echo "$as_me: failed program was:" >&5
17585sed 's/^/| /' conftest.$ac_ext >&5
17586
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17588$as_echo "no" >&6; }
17589
17590
17591
10946b02
AX
17592fi
17593 rm -Rf build
17594
17595
17596 EXTRA_KCFLAGS="$tmp_flags"
17597
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
17599$as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
17600
17601
17602cat confdefs.h - <<_ACEOF >conftest.c
17603
17604
17605 #include <linux/sched.h>
17606 #include <linux/sched/rt.h>
17607
17608int
17609main (void)
17610{
17611
17612 return 0;
17613
17614 ;
17615 return 0;
17616}
17617
17618_ACEOF
17619
17620
17621 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17622 echo "obj-m := conftest.o" >build/Makefile
17623 modpost_flag=''
17624 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17625 if { 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'
17626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
17629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17630 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17632 (eval $ac_try) 2>&5
17633 ac_status=$?
17634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17635 test $ac_status = 0; }; }; then :
17636
17637
17638$as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
17639
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17641$as_echo "yes" >&6; }
17642
17643else
17644 $as_echo "$as_me: failed program was:" >&5
17645sed 's/^/| /' conftest.$ac_ext >&5
17646
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17648$as_echo "no" >&6; }
17649
17650
17651
17652fi
17653 rm -Rf build
17654
17655
17656
2ea56c1d
AX
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/signal.h exists" >&5
17658$as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
17659
17660
17661cat confdefs.h - <<_ACEOF >conftest.c
17662
17663
17664 #include <linux/sched.h>
17665 #include <linux/sched/signal.h>
17666
17667int
17668main (void)
17669{
17670
17671 return 0;
17672
17673 ;
17674 return 0;
17675}
10946b02 17676
2ea56c1d
AX
17677_ACEOF
17678
17679
17680 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17681 echo "obj-m := conftest.o" >build/Makefile
17682 modpost_flag=''
17683 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17684 if { 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'
17685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17689 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17694 test $ac_status = 0; }; }; then :
17695
17696
17697$as_echo "#define HAVE_SCHED_SIGNAL_HEADER 1" >>confdefs.h
17698
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17700$as_echo "yes" >&6; }
17701
17702else
17703 $as_echo "$as_me: failed program was:" >&5
17704sed 's/^/| /' conftest.$ac_ext >&5
17705
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17707$as_echo "no" >&6; }
17708
17709
17710
17711fi
17712 rm -Rf build
17713
17714
17715
17716
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 4 args" >&5
17718$as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
10946b02
AX
17719
17720
17721cat confdefs.h - <<_ACEOF >conftest.c
17722
17723
17724 #include <linux/fs.h>
17725
17726int
17727main (void)
17728{
17729
2ea56c1d
AX
17730 vfs_getattr((const struct path *)NULL,
17731 (struct kstat *)NULL,
17732 (u32)0,
17733 (unsigned int)0);
10946b02
AX
17734
17735 ;
17736 return 0;
17737}
17738
17739_ACEOF
17740
17741
17742 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17743 echo "obj-m := conftest.o" >build/Makefile
17744 modpost_flag=''
17745 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17746 if { 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'
17747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17751 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17756 test $ac_status = 0; }; }; then :
17757
2ea56c1d
AX
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17759$as_echo "yes" >&6; }
10946b02 17760
2ea56c1d 17761$as_echo "#define HAVE_4ARGS_VFS_GETATTR 1" >>confdefs.h
10946b02
AX
17762
17763
17764else
17765 $as_echo "$as_me: failed program was:" >&5
17766sed 's/^/| /' conftest.$ac_ext >&5
17767
2ea56c1d
AX
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17769$as_echo "no" >&6; }
17770
17771
17772
17773fi
17774 rm -Rf build
17775
17776
17777
17778
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 3 args" >&5
17780$as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
10946b02
AX
17781
17782
17783cat confdefs.h - <<_ACEOF >conftest.c
17784
17785
2ea56c1d 17786 #include <linux/fs.h>
10946b02
AX
17787
17788int
17789main (void)
17790{
17791
2ea56c1d
AX
17792 vfs_getattr((struct vfsmount *)NULL,
17793 (struct dentry *)NULL,
17794 (struct kstat *)NULL);
10946b02
AX
17795
17796 ;
17797 return 0;
17798}
17799
17800_ACEOF
17801
17802
17803 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17804 echo "obj-m := conftest.o" >build/Makefile
17805 modpost_flag=''
17806 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17807 if { 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'
17808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17809 (eval $ac_try) 2>&5
17810 ac_status=$?
17811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17812 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17817 test $ac_status = 0; }; }; then :
17818
2ea56c1d
AX
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17820$as_echo "yes" >&6; }
17821
17822$as_echo "#define HAVE_3ARGS_VFS_GETATTR 1" >>confdefs.h
17823
10946b02
AX
17824
17825else
17826 $as_echo "$as_me: failed program was:" >&5
17827sed 's/^/| /' conftest.$ac_ext >&5
17828
2ea56c1d
AX
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17830$as_echo "no" >&6; }
10946b02
AX
17831
17832
17833
17834fi
17835 rm -Rf build
17836
17837
17838
17839
2ea56c1d
AX
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 2 args" >&5
17841$as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
17842
17843
17844cat confdefs.h - <<_ACEOF >conftest.c
17845
17846
17847 #include <linux/fs.h>
17848
17849int
17850main (void)
17851{
17852
17853 vfs_getattr((struct path *) NULL,
17854 (struct kstat *)NULL);
17855
17856 ;
17857 return 0;
17858}
17859
17860_ACEOF
17861
17862
17863 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17864 echo "obj-m := conftest.o" >build/Makefile
17865 modpost_flag=''
17866 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17867 if { 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'
17868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17869 (eval $ac_try) 2>&5
17870 ac_status=$?
17871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17872 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17877 test $ac_status = 0; }; }; then :
17878
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17880$as_echo "yes" >&6; }
17881
17882$as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
17883
17884
17885else
17886 $as_echo "$as_me: failed program was:" >&5
17887sed 's/^/| /' conftest.$ac_ext >&5
17888
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17890$as_echo "no" >&6; }
17891
17892
10946b02
AX
17893
17894fi
17895 rm -Rf build
17896
17897
17898
17899
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5
17901$as_echo_n "checking whether usleep_range() is available... " >&6; }
17902
17903
17904cat confdefs.h - <<_ACEOF >conftest.c
17905
17906
17907 #include <linux/delay.h>
17908
17909int
17910main (void)
17911{
17912
17913 usleep_range(0, 0);
17914
17915 ;
17916 return 0;
17917}
17918
17919_ACEOF
17920
17921
17922 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17923 echo "obj-m := conftest.o" >build/Makefile
17924 modpost_flag=''
17925 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17926 if { 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'
17927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17931 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17933 (eval $ac_try) 2>&5
17934 ac_status=$?
17935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17936 test $ac_status = 0; }; }; then :
17937
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17939$as_echo "yes" >&6; }
17940
17941$as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h
17942
17943
17944else
17945 $as_echo "$as_me: failed program was:" >&5
17946sed 's/^/| /' conftest.$ac_ext >&5
17947
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17949$as_echo "no" >&6; }
17950
17951
17952
17953fi
17954 rm -Rf build
17955
17956
17957
17958
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5
17960$as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
17961
17962
17963cat confdefs.h - <<_ACEOF >conftest.c
17964
17965
17966 #include <linux/slab.h>
17967
17968int
17969main (void)
17970{
17971
17972 struct kmem_cache cachep __attribute__ ((unused));
17973 cachep.allocflags = GFP_KERNEL;
17974
17975 ;
17976 return 0;
17977}
17978
17979_ACEOF
17980
17981
17982 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17983 echo "obj-m := conftest.o" >build/Makefile
17984 modpost_flag=''
17985 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17986 if { 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'
17987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17988 (eval $ac_try) 2>&5
17989 ac_status=$?
17990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17991 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17993 (eval $ac_try) 2>&5
17994 ac_status=$?
17995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17996 test $ac_status = 0; }; }; then :
17997
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17999$as_echo "yes" >&6; }
18000
18001$as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h
18002
18003
18004else
18005 $as_echo "$as_me: failed program was:" >&5
18006sed 's/^/| /' conftest.$ac_ext >&5
18007
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18009$as_echo "no" >&6; }
18010
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5
18012$as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
18013
18014
18015cat confdefs.h - <<_ACEOF >conftest.c
18016
18017
18018 #include <linux/slab.h>
18019
18020int
18021main (void)
18022{
18023
18024 struct kmem_cache cachep __attribute__ ((unused));
18025 cachep.gfpflags = GFP_KERNEL;
18026
18027 ;
18028 return 0;
18029}
18030
18031_ACEOF
18032
18033
18034 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18035 echo "obj-m := conftest.o" >build/Makefile
18036 modpost_flag=''
18037 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18038 if { 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'
18039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18040 (eval $ac_try) 2>&5
18041 ac_status=$?
18042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18043 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18045 (eval $ac_try) 2>&5
18046 ac_status=$?
18047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18048 test $ac_status = 0; }; }; then :
18049
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18051$as_echo "yes" >&6; }
18052
18053$as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h
18054
18055
18056else
18057 $as_echo "$as_me: failed program was:" >&5
18058sed 's/^/| /' conftest.$ac_ext >&5
18059
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18061$as_echo "no" >&6; }
18062
18063
18064
18065fi
18066 rm -Rf build
18067
18068
18069
18070
18071
18072fi
18073 rm -Rf build
18074
18075
18076
18077
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5
18079$as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
18080
18081
18082cat confdefs.h - <<_ACEOF >conftest.c
18083
18084
18085 #include <linux/wait.h>
18086
18087int
18088main (void)
18089{
18090
18091 int (*action)(void *) = NULL;
18092 wait_on_bit(NULL, 0, action, 0);
18093
18094 ;
18095 return 0;
18096}
18097
18098_ACEOF
18099
18100
18101 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18102 echo "obj-m := conftest.o" >build/Makefile
18103 modpost_flag=''
18104 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18105 if { 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'
18106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18110 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18112 (eval $ac_try) 2>&5
18113 ac_status=$?
18114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18115 test $ac_status = 0; }; }; then :
18116
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18118$as_echo "yes" >&6; }
18119
18120$as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h
18121
18122
18123else
18124 $as_echo "$as_me: failed program was:" >&5
18125sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18128$as_echo "no" >&6; }
18129
18130
18131
18132fi
18133 rm -Rf build
18134
18135
18136
18137
0f836a62
AX
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5
18139$as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
18140 tmp_flags="$EXTRA_KCFLAGS"
18141 EXTRA_KCFLAGS="-Werror"
18142
18143
18144cat confdefs.h - <<_ACEOF >conftest.c
18145
18146
18147 #include <linux/fs.h>
18148
18149int
18150main (void)
18151{
18152
18153 struct inode *inode = NULL;
18154 inode_lock_shared(inode);
18155
18156 ;
18157 return 0;
18158}
18159
18160_ACEOF
18161
18162
18163 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18164 echo "obj-m := conftest.o" >build/Makefile
18165 modpost_flag=''
18166 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18167 if { 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'
18168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18169 (eval $ac_try) 2>&5
18170 ac_status=$?
18171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18172 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18177 test $ac_status = 0; }; }; then :
18178
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18180$as_echo "yes" >&6; }
18181
18182$as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h
18183
18184
18185else
18186 $as_echo "$as_me: failed program was:" >&5
18187sed 's/^/| /' conftest.$ac_ext >&5
18188
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18190$as_echo "no" >&6; }
18191
18192
18193
18194fi
18195 rm -Rf build
18196
18197
18198 EXTRA_KCFLAGS="$tmp_flags"
18199
18200
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex has owner" >&5
18202$as_echo_n "checking whether mutex has owner... " >&6; }
18203 tmp_flags="$EXTRA_KCFLAGS"
18204 EXTRA_KCFLAGS="-Werror"
18205
18206
18207cat confdefs.h - <<_ACEOF >conftest.c
18208
18209
18210 #include <linux/mutex.h>
18211 #include <linux/spinlock.h>
18212
18213int
18214main (void)
18215{
18216
18217 DEFINE_MUTEX(m);
18218 struct task_struct *t __attribute__ ((unused));
18219 t = m.owner;
18220
18221 ;
18222 return 0;
18223}
18224
18225_ACEOF
18226
18227
18228 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18229 echo "obj-m := conftest.o" >build/Makefile
18230 modpost_flag=''
18231 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18232 if { 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'
18233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
18236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18237 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18242 test $ac_status = 0; }; }; then :
18243
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18245$as_echo "yes" >&6; }
18246
18247$as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
18248
18249
18250else
18251 $as_echo "$as_me: failed program was:" >&5
18252sed 's/^/| /' conftest.$ac_ext >&5
18253
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18255$as_echo "no" >&6; }
18256
18257
18258
ac9cc135
AX
18259fi
18260 rm -Rf build
18261
18262
18263 EXTRA_KCFLAGS="$tmp_flags"
18264
18265
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether group_info->gid exists" >&5
18267$as_echo_n "checking whether group_info->gid exists... " >&6; }
18268 tmp_flags="$EXTRA_KCFLAGS"
18269 EXTRA_KCFLAGS="-Werror"
18270
18271
18272cat confdefs.h - <<_ACEOF >conftest.c
18273
18274
18275 #include <linux/cred.h>
18276
18277int
18278main (void)
18279{
18280
18281 struct group_info *gi = groups_alloc(1);
18282 gi->gid[0] = KGIDT_INIT(0);
18283
18284 ;
18285 return 0;
18286}
18287
18288_ACEOF
18289
18290
18291 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18292 echo "obj-m := conftest.o" >build/Makefile
18293 modpost_flag=''
18294 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18295 if { 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'
18296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18300 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18305 test $ac_status = 0; }; }; then :
18306
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18308$as_echo "yes" >&6; }
18309
18310$as_echo "#define HAVE_GROUP_INFO_GID 1" >>confdefs.h
18311
18312
18313else
18314 $as_echo "$as_me: failed program was:" >&5
18315sed 's/^/| /' conftest.$ac_ext >&5
18316
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18318$as_echo "no" >&6; }
18319
18320
18321
0f836a62
AX
18322fi
18323 rm -Rf build
18324
18325
18326 EXTRA_KCFLAGS="$tmp_flags"
18327
18328
10946b02
AX
18329 ;;
18330 srpm) ;;
18331 *)
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
18333$as_echo "Error!" >&6; }
18334 as_fn_error $? "Bad value \"$SPL_CONFIG\" for --with-config,
18335 user kernel|user|all|srpm" "$LINENO" 5 ;;
18336 esac
18337
18338 if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then
18339 CONFIG_USER_TRUE=
18340 CONFIG_USER_FALSE='#'
18341else
18342 CONFIG_USER_TRUE='#'
18343 CONFIG_USER_FALSE=
18344fi
18345
18346 if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all &&
18347 test "x$enable_linux_builtin" != xyes ; then
18348 CONFIG_KERNEL_TRUE=
18349 CONFIG_KERNEL_FALSE='#'
18350else
18351 CONFIG_KERNEL_TRUE='#'
18352 CONFIG_KERNEL_FALSE=
18353fi
18354
18355
18356
18357ac_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"
18358
18359
18360cat >confcache <<\_ACEOF
18361# This file is a shell script that caches the results of configure
18362# tests run on this system so they can be shared between configure
18363# scripts and configure runs, see configure's option --config-cache.
18364# It is not useful on other systems. If it contains results you don't
18365# want to keep, you may remove or edit it.
18366#
18367# config.status only pays attention to the cache file if you give it
18368# the --recheck option to rerun configure.
18369#
18370# `ac_cv_env_foo' variables (set or unset) will be overridden when
18371# loading this file, other *unset* `ac_cv_foo' will be assigned the
18372# following values.
18373
18374_ACEOF
18375
18376# The following way of writing the cache mishandles newlines in values,
18377# but we know of no workaround that is simple, portable, and efficient.
18378# So, we kill variables containing newlines.
18379# Ultrix sh set writes to stderr and can't be redirected directly,
18380# and sets the high bit in the cache file unless we assign to the vars.
18381(
18382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18383 eval ac_val=\$$ac_var
18384 case $ac_val in #(
18385 *${as_nl}*)
18386 case $ac_var in #(
18387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18388$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18389 esac
18390 case $ac_var in #(
18391 _ | IFS | as_nl) ;; #(
18392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18393 *) { eval $ac_var=; unset $ac_var;} ;;
18394 esac ;;
18395 esac
18396 done
18397
18398 (set) 2>&1 |
18399 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18400 *${as_nl}ac_space=\ *)
18401 # `set' does not quote correctly, so add quotes: double-quote
18402 # substitution turns \\\\ into \\, and sed turns \\ into \.
18403 sed -n \
18404 "s/'/'\\\\''/g;
18405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18406 ;; #(
18407 *)
18408 # `set' quotes correctly as required by POSIX, so do not add quotes.
18409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18410 ;;
18411 esac |
18412 sort
18413) |
18414 sed '
18415 /^ac_cv_env_/b end
18416 t clear
18417 :clear
18418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18419 t end
18420 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18421 :end' >>confcache
18422if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18423 if test -w "$cache_file"; then
18424 if test "x$cache_file" != "x/dev/null"; then
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18426$as_echo "$as_me: updating cache $cache_file" >&6;}
18427 if test ! -f "$cache_file" || test -h "$cache_file"; then
18428 cat confcache >"$cache_file"
18429 else
18430 case $cache_file in #(
18431 */* | ?:*)
18432 mv -f confcache "$cache_file"$$ &&
18433 mv -f "$cache_file"$$ "$cache_file" ;; #(
18434 *)
18435 mv -f confcache "$cache_file" ;;
18436 esac
18437 fi
18438 fi
18439 else
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18441$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18442 fi
18443fi
18444rm -f confcache
18445
18446test "x$prefix" = xNONE && prefix=$ac_default_prefix
18447# Let make expand exec_prefix.
18448test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18449
18450DEFS=-DHAVE_CONFIG_H
18451
18452ac_libobjs=
18453ac_ltlibobjs=
18454U=
18455for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18456 # 1. Remove the extension, and $U if already installed.
18457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18458 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18460 # will be set to the directory where LIBOBJS objects are built.
18461 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18462 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18463done
18464LIBOBJS=$ac_libobjs
18465
18466LTLIBOBJS=$ac_ltlibobjs
18467
18468
18469if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18470 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18471Usually this means the macro was only invoked conditionally." "$LINENO" 5
18472fi
ac9cc135
AX
18473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18474$as_echo_n "checking that generated files are newer than configure... " >&6; }
18475 if test -n "$am_sleep_pid"; then
18476 # Hide warnings about reused PIDs.
18477 wait $am_sleep_pid 2>/dev/null
18478 fi
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18480$as_echo "done" >&6; }
10946b02
AX
18481 if test -n "$EXEEXT"; then
18482 am__EXEEXT_TRUE=
18483 am__EXEEXT_FALSE='#'
18484else
18485 am__EXEEXT_TRUE='#'
18486 am__EXEEXT_FALSE=
18487fi
18488
18489if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18490 as_fn_error $? "conditional \"AMDEP\" was never defined.
18491Usually this means the macro was only invoked conditionally." "$LINENO" 5
18492fi
18493if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18494 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18495Usually this means the macro was only invoked conditionally." "$LINENO" 5
18496fi
18497if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18498 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
18499Usually this means the macro was only invoked conditionally." "$LINENO" 5
18500fi
18501if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18502 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
18503Usually this means the macro was only invoked conditionally." "$LINENO" 5
18504fi
18505
18506: "${CONFIG_STATUS=./config.status}"
18507ac_write_fail=0
18508ac_clean_files_save=$ac_clean_files
18509ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18510{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18511$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18512as_write_fail=0
18513cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18514#! $SHELL
18515# Generated by $as_me.
18516# Run this file to recreate the current configuration.
18517# Compiler output produced by configure, useful for debugging
18518# configure, is in config.log if it exists.
18519
18520debug=false
18521ac_cs_recheck=false
18522ac_cs_silent=false
18523
18524SHELL=\${CONFIG_SHELL-$SHELL}
18525export SHELL
18526_ASEOF
18527cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18528## -------------------- ##
18529## M4sh Initialization. ##
18530## -------------------- ##
18531
18532# Be more Bourne compatible
18533DUALCASE=1; export DUALCASE # for MKS sh
18534if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18535 emulate sh
18536 NULLCMD=:
18537 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18538 # is contrary to our usage. Disable this feature.
18539 alias -g '${1+"$@"}'='"$@"'
18540 setopt NO_GLOB_SUBST
18541else
18542 case `(set -o) 2>/dev/null` in #(
18543 *posix*) :
18544 set -o posix ;; #(
18545 *) :
18546 ;;
18547esac
18548fi
18549
18550
18551as_nl='
18552'
18553export as_nl
18554# Printing a long string crashes Solaris 7 /usr/bin/printf.
18555as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18556as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18557as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18558# Prefer a ksh shell builtin over an external printf program on Solaris,
18559# but without wasting forks for bash or zsh.
18560if test -z "$BASH_VERSION$ZSH_VERSION" \
18561 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18562 as_echo='print -r --'
18563 as_echo_n='print -rn --'
18564elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18565 as_echo='printf %s\n'
18566 as_echo_n='printf %s'
18567else
18568 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18569 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18570 as_echo_n='/usr/ucb/echo -n'
18571 else
18572 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18573 as_echo_n_body='eval
18574 arg=$1;
18575 case $arg in #(
18576 *"$as_nl"*)
18577 expr "X$arg" : "X\\(.*\\)$as_nl";
18578 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18579 esac;
18580 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18581 '
18582 export as_echo_n_body
18583 as_echo_n='sh -c $as_echo_n_body as_echo'
18584 fi
18585 export as_echo_body
18586 as_echo='sh -c $as_echo_body as_echo'
18587fi
18588
18589# The user is always right.
18590if test "${PATH_SEPARATOR+set}" != set; then
18591 PATH_SEPARATOR=:
18592 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18593 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18594 PATH_SEPARATOR=';'
18595 }
18596fi
18597
18598
18599# IFS
18600# We need space, tab and new line, in precisely that order. Quoting is
18601# there to prevent editors from complaining about space-tab.
18602# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18603# splitting by setting IFS to empty value.)
18604IFS=" "" $as_nl"
18605
18606# Find who we are. Look in the path if we contain no directory separator.
18607as_myself=
18608case $0 in #((
18609 *[\\/]* ) as_myself=$0 ;;
18610 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18611for as_dir in $PATH
18612do
18613 IFS=$as_save_IFS
18614 test -z "$as_dir" && as_dir=.
18615 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18616 done
18617IFS=$as_save_IFS
18618
18619 ;;
18620esac
18621# We did not find ourselves, most probably we were run as `sh COMMAND'
18622# in which case we are not to be found in the path.
18623if test "x$as_myself" = x; then
18624 as_myself=$0
18625fi
18626if test ! -f "$as_myself"; then
18627 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18628 exit 1
18629fi
18630
18631# Unset variables that we do not need and which cause bugs (e.g. in
18632# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18633# suppresses any "Segmentation fault" message there. '((' could
18634# trigger a bug in pdksh 5.2.14.
18635for as_var in BASH_ENV ENV MAIL MAILPATH
18636do eval test x\${$as_var+set} = xset \
18637 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18638done
18639PS1='$ '
18640PS2='> '
18641PS4='+ '
18642
18643# NLS nuisances.
18644LC_ALL=C
18645export LC_ALL
18646LANGUAGE=C
18647export LANGUAGE
18648
18649# CDPATH.
18650(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18651
18652
18653# as_fn_error STATUS ERROR [LINENO LOG_FD]
18654# ----------------------------------------
18655# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18656# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18657# script with STATUS, using 1 if that was 0.
18658as_fn_error ()
18659{
18660 as_status=$1; test $as_status -eq 0 && as_status=1
18661 if test "$4"; then
18662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18664 fi
18665 $as_echo "$as_me: error: $2" >&2
18666 as_fn_exit $as_status
18667} # as_fn_error
18668
18669
18670# as_fn_set_status STATUS
18671# -----------------------
18672# Set $? to STATUS, without forking.
18673as_fn_set_status ()
18674{
18675 return $1
18676} # as_fn_set_status
18677
18678# as_fn_exit STATUS
18679# -----------------
18680# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18681as_fn_exit ()
18682{
18683 set +e
18684 as_fn_set_status $1
18685 exit $1
18686} # as_fn_exit
18687
18688# as_fn_unset VAR
18689# ---------------
18690# Portably unset VAR.
18691as_fn_unset ()
18692{
18693 { eval $1=; unset $1;}
18694}
18695as_unset=as_fn_unset
18696# as_fn_append VAR VALUE
18697# ----------------------
18698# Append the text in VALUE to the end of the definition contained in VAR. Take
18699# advantage of any shell optimizations that allow amortized linear growth over
18700# repeated appends, instead of the typical quadratic growth present in naive
18701# implementations.
18702if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18703 eval 'as_fn_append ()
18704 {
18705 eval $1+=\$2
18706 }'
18707else
18708 as_fn_append ()
18709 {
18710 eval $1=\$$1\$2
18711 }
18712fi # as_fn_append
18713
18714# as_fn_arith ARG...
18715# ------------------
18716# Perform arithmetic evaluation on the ARGs, and store the result in the
18717# global $as_val. Take advantage of shells that can avoid forks. The arguments
18718# must be portable across $(()) and expr.
18719if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18720 eval 'as_fn_arith ()
18721 {
18722 as_val=$(( $* ))
18723 }'
18724else
18725 as_fn_arith ()
18726 {
18727 as_val=`expr "$@" || test $? -eq 1`
18728 }
18729fi # as_fn_arith
18730
18731
18732if expr a : '\(a\)' >/dev/null 2>&1 &&
18733 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18734 as_expr=expr
18735else
18736 as_expr=false
18737fi
18738
18739if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18740 as_basename=basename
18741else
18742 as_basename=false
18743fi
18744
18745if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18746 as_dirname=dirname
18747else
18748 as_dirname=false
18749fi
18750
18751as_me=`$as_basename -- "$0" ||
18752$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18753 X"$0" : 'X\(//\)$' \| \
18754 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18755$as_echo X/"$0" |
18756 sed '/^.*\/\([^/][^/]*\)\/*$/{
18757 s//\1/
18758 q
18759 }
18760 /^X\/\(\/\/\)$/{
18761 s//\1/
18762 q
18763 }
18764 /^X\/\(\/\).*/{
18765 s//\1/
18766 q
18767 }
18768 s/.*/./; q'`
18769
18770# Avoid depending upon Character Ranges.
18771as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18772as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18773as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18774as_cr_digits='0123456789'
18775as_cr_alnum=$as_cr_Letters$as_cr_digits
18776
18777ECHO_C= ECHO_N= ECHO_T=
18778case `echo -n x` in #(((((
18779-n*)
18780 case `echo 'xy\c'` in
18781 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18782 xy) ECHO_C='\c';;
18783 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18784 ECHO_T=' ';;
18785 esac;;
18786*)
18787 ECHO_N='-n';;
18788esac
18789
18790rm -f conf$$ conf$$.exe conf$$.file
18791if test -d conf$$.dir; then
18792 rm -f conf$$.dir/conf$$.file
18793else
18794 rm -f conf$$.dir
18795 mkdir conf$$.dir 2>/dev/null
18796fi
18797if (echo >conf$$.file) 2>/dev/null; then
18798 if ln -s conf$$.file conf$$ 2>/dev/null; then
18799 as_ln_s='ln -s'
18800 # ... but there are two gotchas:
18801 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18802 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
ac9cc135 18803 # In both cases, we have to default to `cp -pR'.
10946b02 18804 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ac9cc135 18805 as_ln_s='cp -pR'
10946b02
AX
18806 elif ln conf$$.file conf$$ 2>/dev/null; then
18807 as_ln_s=ln
18808 else
ac9cc135 18809 as_ln_s='cp -pR'
10946b02
AX
18810 fi
18811else
ac9cc135 18812 as_ln_s='cp -pR'
10946b02
AX
18813fi
18814rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18815rmdir conf$$.dir 2>/dev/null
18816
18817
18818# as_fn_mkdir_p
18819# -------------
18820# Create "$as_dir" as a directory, including parents if necessary.
18821as_fn_mkdir_p ()
18822{
18823
18824 case $as_dir in #(
18825 -*) as_dir=./$as_dir;;
18826 esac
18827 test -d "$as_dir" || eval $as_mkdir_p || {
18828 as_dirs=
18829 while :; do
18830 case $as_dir in #(
18831 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18832 *) as_qdir=$as_dir;;
18833 esac
18834 as_dirs="'$as_qdir' $as_dirs"
18835 as_dir=`$as_dirname -- "$as_dir" ||
18836$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18837 X"$as_dir" : 'X\(//\)[^/]' \| \
18838 X"$as_dir" : 'X\(//\)$' \| \
18839 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18840$as_echo X"$as_dir" |
18841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18842 s//\1/
18843 q
18844 }
18845 /^X\(\/\/\)[^/].*/{
18846 s//\1/
18847 q
18848 }
18849 /^X\(\/\/\)$/{
18850 s//\1/
18851 q
18852 }
18853 /^X\(\/\).*/{
18854 s//\1/
18855 q
18856 }
18857 s/.*/./; q'`
18858 test -d "$as_dir" && break
18859 done
18860 test -z "$as_dirs" || eval "mkdir $as_dirs"
18861 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18862
18863
18864} # as_fn_mkdir_p
18865if mkdir -p . 2>/dev/null; then
18866 as_mkdir_p='mkdir -p "$as_dir"'
18867else
18868 test -d ./-p && rmdir ./-p
18869 as_mkdir_p=false
18870fi
18871
ac9cc135
AX
18872
18873# as_fn_executable_p FILE
18874# -----------------------
18875# Test if FILE is an executable regular file.
18876as_fn_executable_p ()
18877{
18878 test -f "$1" && test -x "$1"
18879} # as_fn_executable_p
18880as_test_x='test -x'
18881as_executable_p=as_fn_executable_p
10946b02
AX
18882
18883# Sed expression to map a string onto a valid CPP name.
18884as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18885
18886# Sed expression to map a string onto a valid variable name.
18887as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18888
18889
18890exec 6>&1
18891## ----------------------------------- ##
18892## Main body of $CONFIG_STATUS script. ##
18893## ----------------------------------- ##
18894_ASEOF
18895test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18896
18897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18898# Save the log message, to keep $0 and so on meaningful, and to
18899# report actual input values of CONFIG_FILES etc. instead of their
18900# values after options handling.
18901ac_log="
2ea56c1d 18902This file was extended by spl $as_me 0.6.5.10, which was
ac9cc135 18903generated by GNU Autoconf 2.69. Invocation command line was
10946b02
AX
18904
18905 CONFIG_FILES = $CONFIG_FILES
18906 CONFIG_HEADERS = $CONFIG_HEADERS
18907 CONFIG_LINKS = $CONFIG_LINKS
18908 CONFIG_COMMANDS = $CONFIG_COMMANDS
18909 $ $0 $@
18910
18911on `(hostname || uname -n) 2>/dev/null | sed 1q`
18912"
18913
18914_ACEOF
18915
18916case $ac_config_files in *"
18917"*) set x $ac_config_files; shift; ac_config_files=$*;;
18918esac
18919
18920case $ac_config_headers in *"
18921"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18922esac
18923
18924
18925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18926# Files that config.status was made for.
18927config_files="$ac_config_files"
18928config_headers="$ac_config_headers"
18929config_commands="$ac_config_commands"
18930
18931_ACEOF
18932
18933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18934ac_cs_usage="\
18935\`$as_me' instantiates files and other configuration actions
18936from templates according to the current configuration. Unless the files
18937and actions are specified as TAGs, all are instantiated by default.
18938
18939Usage: $0 [OPTION]... [TAG]...
18940
18941 -h, --help print this help, then exit
18942 -V, --version print version number and configuration settings, then exit
18943 --config print configuration, then exit
18944 -q, --quiet, --silent
18945 do not print progress messages
18946 -d, --debug don't remove temporary files
18947 --recheck update $as_me by reconfiguring in the same conditions
18948 --file=FILE[:TEMPLATE]
18949 instantiate the configuration file FILE
18950 --header=FILE[:TEMPLATE]
18951 instantiate the configuration header FILE
18952
18953Configuration files:
18954$config_files
18955
18956Configuration headers:
18957$config_headers
18958
18959Configuration commands:
18960$config_commands
18961
18962Report bugs to the package provider."
18963
18964_ACEOF
18965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18966ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18967ac_cs_version="\\
2ea56c1d 18968spl config.status 0.6.5.10
ac9cc135 18969configured by $0, generated by GNU Autoconf 2.69,
10946b02
AX
18970 with options \\"\$ac_cs_config\\"
18971
ac9cc135 18972Copyright (C) 2012 Free Software Foundation, Inc.
10946b02
AX
18973This config.status script is free software; the Free Software Foundation
18974gives unlimited permission to copy, distribute and modify it."
18975
18976ac_pwd='$ac_pwd'
18977srcdir='$srcdir'
18978INSTALL='$INSTALL'
18979MKDIR_P='$MKDIR_P'
18980AWK='$AWK'
18981test -n "\$AWK" || AWK=awk
18982_ACEOF
18983
18984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18985# The default lists apply if the user does not specify any file.
18986ac_need_defaults=:
18987while test $# != 0
18988do
18989 case $1 in
18990 --*=?*)
18991 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18992 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18993 ac_shift=:
18994 ;;
18995 --*=)
18996 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18997 ac_optarg=
18998 ac_shift=:
18999 ;;
19000 *)
19001 ac_option=$1
19002 ac_optarg=$2
19003 ac_shift=shift
19004 ;;
19005 esac
19006
19007 case $ac_option in
19008 # Handling of the options.
19009 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19010 ac_cs_recheck=: ;;
19011 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19012 $as_echo "$ac_cs_version"; exit ;;
19013 --config | --confi | --conf | --con | --co | --c )
19014 $as_echo "$ac_cs_config"; exit ;;
19015 --debug | --debu | --deb | --de | --d | -d )
19016 debug=: ;;
19017 --file | --fil | --fi | --f )
19018 $ac_shift
19019 case $ac_optarg in
19020 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19021 '') as_fn_error $? "missing file argument" ;;
19022 esac
19023 as_fn_append CONFIG_FILES " '$ac_optarg'"
19024 ac_need_defaults=false;;
19025 --header | --heade | --head | --hea )
19026 $ac_shift
19027 case $ac_optarg in
19028 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19029 esac
19030 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19031 ac_need_defaults=false;;
19032 --he | --h)
19033 # Conflict between --help and --header
19034 as_fn_error $? "ambiguous option: \`$1'
19035Try \`$0 --help' for more information.";;
19036 --help | --hel | -h )
19037 $as_echo "$ac_cs_usage"; exit ;;
19038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19039 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19040 ac_cs_silent=: ;;
19041
19042 # This is an error.
19043 -*) as_fn_error $? "unrecognized option: \`$1'
19044Try \`$0 --help' for more information." ;;
19045
19046 *) as_fn_append ac_config_targets " $1"
19047 ac_need_defaults=false ;;
19048
19049 esac
19050 shift
19051done
19052
19053ac_configure_extra_args=
19054
19055if $ac_cs_silent; then
19056 exec 6>/dev/null
19057 ac_configure_extra_args="$ac_configure_extra_args --silent"
19058fi
19059
19060_ACEOF
19061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19062if \$ac_cs_recheck; then
ac9cc135 19063 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10946b02
AX
19064 shift
19065 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19066 CONFIG_SHELL='$SHELL'
19067 export CONFIG_SHELL
19068 exec "\$@"
19069fi
19070
19071_ACEOF
19072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19073exec 5>>config.log
19074{
19075 echo
19076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19077## Running $as_me. ##
19078_ASBOX
19079 $as_echo "$ac_log"
19080} >&5
19081
19082_ACEOF
19083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19084#
19085# INIT-COMMANDS
19086#
19087AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19088
19089
19090# The HP-UX ksh and POSIX shell print the target directory to stdout
19091# if CDPATH is set.
19092(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19093
19094sed_quote_subst='$sed_quote_subst'
19095double_quote_subst='$double_quote_subst'
19096delay_variable_subst='$delay_variable_subst'
19097macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19098macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19099enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19100enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19101pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19102enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
ac9cc135 19103shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
10946b02
AX
19104SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19105ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19106PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19107host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19108host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19109host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19110build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19111build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19112build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19113SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19114Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19115GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19116EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19117FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19118LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19119NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19120LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19121max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19122ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19123exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19124lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19125lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19126lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19127lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19128lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19129reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19130reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19131OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19132deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19133file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19134file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19135want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19136DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19137sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19138AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19139AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19140archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19141STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19142RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19143old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19144old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19145old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19146lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19147CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19148CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19149compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19150GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19151lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19152lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
ac9cc135 19153lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
10946b02
AX
19154lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19155lt_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"`'
ac9cc135 19156lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
10946b02
AX
19157nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19158lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
ac9cc135 19159lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
10946b02
AX
19160objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19161MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19162lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19163lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19164lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19165lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19166lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19167need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19168MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19169DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19170NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19171LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19172OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19173OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19174libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19175shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19176extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19177archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19178enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19179export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19180whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19181compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19182old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19183old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19184archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19185archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19186module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19187module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19188with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19189allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19190no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19191hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19192hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19193hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19194hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19195hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19196hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19197hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19198inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19199link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19200always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19201export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19202exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19203include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19204prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19205postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19206file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19207variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19208need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19209need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19210version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19211runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19212shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19213shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19214libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19215library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19216soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19217install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19218postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19219postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19220finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19221finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19222hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19223sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
ac9cc135
AX
19224configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19225configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
10946b02
AX
19226hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19227enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19228enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19229enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19230old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19231striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19232
19233LTCC='$LTCC'
19234LTCFLAGS='$LTCFLAGS'
19235compiler='$compiler_DEFAULT'
19236
19237# A function that is used when there is no print builtin or printf.
19238func_fallback_echo ()
19239{
19240 eval 'cat <<_LTECHO_EOF
19241\$1
19242_LTECHO_EOF'
19243}
19244
19245# Quote evaled strings.
19246for var in SHELL \
19247ECHO \
19248PATH_SEPARATOR \
19249SED \
19250GREP \
19251EGREP \
19252FGREP \
19253LD \
19254NM \
19255LN_S \
19256lt_SP2NL \
19257lt_NL2SP \
19258reload_flag \
19259OBJDUMP \
19260deplibs_check_method \
19261file_magic_cmd \
19262file_magic_glob \
19263want_nocaseglob \
19264DLLTOOL \
19265sharedlib_from_linklib_cmd \
19266AR \
19267AR_FLAGS \
19268archiver_list_spec \
19269STRIP \
19270RANLIB \
19271CC \
19272CFLAGS \
19273compiler \
19274lt_cv_sys_global_symbol_pipe \
19275lt_cv_sys_global_symbol_to_cdecl \
ac9cc135 19276lt_cv_sys_global_symbol_to_import \
10946b02
AX
19277lt_cv_sys_global_symbol_to_c_name_address \
19278lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ac9cc135 19279lt_cv_nm_interface \
10946b02 19280nm_file_list_spec \
ac9cc135 19281lt_cv_truncate_bin \
10946b02
AX
19282lt_prog_compiler_no_builtin_flag \
19283lt_prog_compiler_pic \
19284lt_prog_compiler_wl \
19285lt_prog_compiler_static \
19286lt_cv_prog_compiler_c_o \
19287need_locks \
19288MANIFEST_TOOL \
19289DSYMUTIL \
19290NMEDIT \
19291LIPO \
19292OTOOL \
19293OTOOL64 \
19294shrext_cmds \
19295export_dynamic_flag_spec \
19296whole_archive_flag_spec \
19297compiler_needs_object \
19298with_gnu_ld \
19299allow_undefined_flag \
19300no_undefined_flag \
19301hardcode_libdir_flag_spec \
19302hardcode_libdir_separator \
19303exclude_expsyms \
19304include_expsyms \
19305file_list_spec \
19306variables_saved_for_relink \
19307libname_spec \
19308library_names_spec \
19309soname_spec \
19310install_override_mode \
19311finish_eval \
19312old_striplib \
19313striplib; do
19314 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19315 *[\\\\\\\`\\"\\\$]*)
ac9cc135 19316 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
10946b02
AX
19317 ;;
19318 *)
19319 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19320 ;;
19321 esac
19322done
19323
19324# Double-quote double-evaled strings.
19325for var in reload_cmds \
19326old_postinstall_cmds \
19327old_postuninstall_cmds \
19328old_archive_cmds \
19329extract_expsyms_cmds \
19330old_archive_from_new_cmds \
19331old_archive_from_expsyms_cmds \
19332archive_cmds \
19333archive_expsym_cmds \
19334module_cmds \
19335module_expsym_cmds \
19336export_symbols_cmds \
19337prelink_cmds \
19338postlink_cmds \
19339postinstall_cmds \
19340postuninstall_cmds \
19341finish_cmds \
19342sys_lib_search_path_spec \
ac9cc135
AX
19343configure_time_dlsearch_path \
19344configure_time_lt_sys_library_path; do
10946b02
AX
19345 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19346 *[\\\\\\\`\\"\\\$]*)
ac9cc135 19347 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
10946b02
AX
19348 ;;
19349 *)
19350 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19351 ;;
19352 esac
19353done
19354
19355ac_aux_dir='$ac_aux_dir'
10946b02 19356
ac9cc135 19357# See if we are running on zsh, and set the options that allow our
10946b02 19358# commands through without removal of \ escapes INIT.
ac9cc135 19359if test -n "\${ZSH_VERSION+set}"; then
10946b02
AX
19360 setopt NO_GLOB_SUBST
19361fi
19362
19363
19364 PACKAGE='$PACKAGE'
19365 VERSION='$VERSION'
10946b02
AX
19366 RM='$RM'
19367 ofile='$ofile'
19368
19369
19370
19371
19372_ACEOF
19373
19374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19375
19376# Handling of arguments.
19377for ac_config_target in $ac_config_targets
19378do
19379 case $ac_config_target in
19380 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19381 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19382 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19383 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19384 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19385 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
19386 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
19387 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19388 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
19389 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19390 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19391 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19392 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19393 "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;;
19394 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
19395 "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;;
19396 "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;;
19397 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
19398 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
19399 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
19400 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
19401 "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;;
19402 "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;;
19403 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19404 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
19405 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
19406 "rpm/redhat/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl.spec" ;;
19407 "rpm/redhat/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;;
19408 "rpm/redhat/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;;
19409 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
19410 "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;;
19411 "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
19412 "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
19413 "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;;
19414
19415 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19416 esac
19417done
19418
19419
19420# If the user did not use the arguments to specify the items to instantiate,
19421# then the envvar interface is used. Set only those that are not.
19422# We use the long form for the default assignment because of an extremely
19423# bizarre bug on SunOS 4.1.3.
19424if $ac_need_defaults; then
19425 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19426 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19427 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19428fi
19429
19430# Have a temporary directory for convenience. Make it in the build tree
19431# simply because there is no reason against having it here, and in addition,
19432# creating and moving files from /tmp can sometimes cause problems.
19433# Hook for its removal unless debugging.
19434# Note that there is a small window in which the directory will not be cleaned:
19435# after its creation but before its name has been assigned to `$tmp'.
19436$debug ||
19437{
19438 tmp= ac_tmp=
19439 trap 'exit_status=$?
19440 : "${ac_tmp:=$tmp}"
19441 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19442' 0
19443 trap 'as_fn_exit 1' 1 2 13 15
19444}
19445# Create a (secure) tmp directory for tmp files.
19446
19447{
19448 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19449 test -d "$tmp"
19450} ||
19451{
19452 tmp=./conf$$-$RANDOM
19453 (umask 077 && mkdir "$tmp")
19454} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19455ac_tmp=$tmp
19456
19457# Set up the scripts for CONFIG_FILES section.
19458# No need to generate them if there are no CONFIG_FILES.
19459# This happens for instance with `./config.status config.h'.
19460if test -n "$CONFIG_FILES"; then
19461
19462
19463ac_cr=`echo X | tr X '\015'`
19464# On cygwin, bash can eat \r inside `` if the user requested igncr.
19465# But we know of no other shell where ac_cr would be empty at this
19466# point, so we can use a bashism as a fallback.
19467if test "x$ac_cr" = x; then
19468 eval ac_cr=\$\'\\r\'
19469fi
19470ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19471if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19472 ac_cs_awk_cr='\\r'
19473else
19474 ac_cs_awk_cr=$ac_cr
19475fi
19476
19477echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19478_ACEOF
19479
19480
19481{
19482 echo "cat >conf$$subs.awk <<_ACEOF" &&
19483 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19484 echo "_ACEOF"
19485} >conf$$subs.sh ||
19486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19487ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19488ac_delim='%!_!# '
19489for ac_last_try in false false false false false :; do
19490 . ./conf$$subs.sh ||
19491 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19492
19493 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19494 if test $ac_delim_n = $ac_delim_num; then
19495 break
19496 elif $ac_last_try; then
19497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19498 else
19499 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19500 fi
19501done
19502rm -f conf$$subs.sh
19503
19504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19505cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19506_ACEOF
19507sed -n '
19508h
19509s/^/S["/; s/!.*/"]=/
19510p
19511g
19512s/^[^!]*!//
19513:repl
19514t repl
19515s/'"$ac_delim"'$//
19516t delim
19517:nl
19518h
19519s/\(.\{148\}\)..*/\1/
19520t more1
19521s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19522p
19523n
19524b repl
19525:more1
19526s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19527p
19528g
19529s/.\{148\}//
19530t nl
19531:delim
19532h
19533s/\(.\{148\}\)..*/\1/
19534t more2
19535s/["\\]/\\&/g; s/^/"/; s/$/"/
19536p
19537b
19538:more2
19539s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19540p
19541g
19542s/.\{148\}//
19543t delim
19544' <conf$$subs.awk | sed '
19545/^[^""]/{
19546 N
19547 s/\n//
19548}
19549' >>$CONFIG_STATUS || ac_write_fail=1
19550rm -f conf$$subs.awk
19551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19552_ACAWK
19553cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19554 for (key in S) S_is_set[key] = 1
19555 FS = "\a"
19556
19557}
19558{
19559 line = $ 0
19560 nfields = split(line, field, "@")
19561 substed = 0
19562 len = length(field[1])
19563 for (i = 2; i < nfields; i++) {
19564 key = field[i]
19565 keylen = length(key)
19566 if (S_is_set[key]) {
19567 value = S[key]
19568 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19569 len += length(value) + length(field[++i])
19570 substed = 1
19571 } else
19572 len += 1 + keylen
19573 }
19574
19575 print line
19576}
19577
19578_ACAWK
19579_ACEOF
19580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19581if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19582 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19583else
19584 cat
19585fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19586 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19587_ACEOF
19588
19589# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19590# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19591# trailing colons and then remove the whole line if VPATH becomes empty
19592# (actually we leave an empty line to preserve line numbers).
19593if test "x$srcdir" = x.; then
19594 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19595h
19596s///
19597s/^/:/
19598s/[ ]*$/:/
19599s/:\$(srcdir):/:/g
19600s/:\${srcdir}:/:/g
19601s/:@srcdir@:/:/g
19602s/^:*//
19603s/:*$//
19604x
19605s/\(=[ ]*\).*/\1/
19606G
19607s/\n//
19608s/^[^=]*=[ ]*$//
19609}'
19610fi
19611
19612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19613fi # test -n "$CONFIG_FILES"
19614
19615# Set up the scripts for CONFIG_HEADERS section.
19616# No need to generate them if there are no CONFIG_HEADERS.
19617# This happens for instance with `./config.status Makefile'.
19618if test -n "$CONFIG_HEADERS"; then
19619cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19620BEGIN {
19621_ACEOF
19622
19623# Transform confdefs.h into an awk script `defines.awk', embedded as
19624# here-document in config.status, that substitutes the proper values into
19625# config.h.in to produce config.h.
19626
19627# Create a delimiter string that does not exist in confdefs.h, to ease
19628# handling of long lines.
19629ac_delim='%!_!# '
19630for ac_last_try in false false :; do
19631 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19632 if test -z "$ac_tt"; then
19633 break
19634 elif $ac_last_try; then
19635 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19636 else
19637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19638 fi
19639done
19640
19641# For the awk script, D is an array of macro values keyed by name,
19642# likewise P contains macro parameters if any. Preserve backslash
19643# newline sequences.
19644
19645ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19646sed -n '
19647s/.\{148\}/&'"$ac_delim"'/g
19648t rset
19649:rset
19650s/^[ ]*#[ ]*define[ ][ ]*/ /
19651t def
19652d
19653:def
19654s/\\$//
19655t bsnl
19656s/["\\]/\\&/g
19657s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19658D["\1"]=" \3"/p
19659s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19660d
19661:bsnl
19662s/["\\]/\\&/g
19663s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19664D["\1"]=" \3\\\\\\n"\\/p
19665t cont
19666s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19667t cont
19668d
19669:cont
19670n
19671s/.\{148\}/&'"$ac_delim"'/g
19672t clear
19673:clear
19674s/\\$//
19675t bsnlc
19676s/["\\]/\\&/g; s/^/"/; s/$/"/p
19677d
19678:bsnlc
19679s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19680b cont
19681' <confdefs.h | sed '
19682s/'"$ac_delim"'/"\\\
19683"/g' >>$CONFIG_STATUS || ac_write_fail=1
19684
19685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19686 for (key in D) D_is_set[key] = 1
19687 FS = "\a"
19688}
19689/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19690 line = \$ 0
19691 split(line, arg, " ")
19692 if (arg[1] == "#") {
19693 defundef = arg[2]
19694 mac1 = arg[3]
19695 } else {
19696 defundef = substr(arg[1], 2)
19697 mac1 = arg[2]
19698 }
19699 split(mac1, mac2, "(") #)
19700 macro = mac2[1]
19701 prefix = substr(line, 1, index(line, defundef) - 1)
19702 if (D_is_set[macro]) {
19703 # Preserve the white space surrounding the "#".
19704 print prefix "define", macro P[macro] D[macro]
19705 next
19706 } else {
19707 # Replace #undef with comments. This is necessary, for example,
19708 # in the case of _POSIX_SOURCE, which is predefined and required
19709 # on some systems where configure will not decide to define it.
19710 if (defundef == "undef") {
19711 print "/*", prefix defundef, macro, "*/"
19712 next
19713 }
19714 }
19715}
19716{ print }
19717_ACAWK
19718_ACEOF
19719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19720 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19721fi # test -n "$CONFIG_HEADERS"
19722
19723
19724eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19725shift
19726for ac_tag
19727do
19728 case $ac_tag in
19729 :[FHLC]) ac_mode=$ac_tag; continue;;
19730 esac
19731 case $ac_mode$ac_tag in
19732 :[FHL]*:*);;
19733 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19734 :[FH]-) ac_tag=-:-;;
19735 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19736 esac
19737 ac_save_IFS=$IFS
19738 IFS=:
19739 set x $ac_tag
19740 IFS=$ac_save_IFS
19741 shift
19742 ac_file=$1
19743 shift
19744
19745 case $ac_mode in
19746 :L) ac_source=$1;;
19747 :[FH])
19748 ac_file_inputs=
19749 for ac_f
19750 do
19751 case $ac_f in
19752 -) ac_f="$ac_tmp/stdin";;
19753 *) # Look for the file first in the build tree, then in the source tree
19754 # (if the path is not absolute). The absolute path cannot be DOS-style,
19755 # because $ac_f cannot contain `:'.
19756 test -f "$ac_f" ||
19757 case $ac_f in
19758 [\\/$]*) false;;
19759 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19760 esac ||
19761 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19762 esac
19763 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19764 as_fn_append ac_file_inputs " '$ac_f'"
19765 done
19766
19767 # Let's still pretend it is `configure' which instantiates (i.e., don't
19768 # use $as_me), people would be surprised to read:
19769 # /* config.h. Generated by config.status. */
19770 configure_input='Generated from '`
19771 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19772 `' by configure.'
19773 if test x"$ac_file" != x-; then
19774 configure_input="$ac_file. $configure_input"
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19776$as_echo "$as_me: creating $ac_file" >&6;}
19777 fi
19778 # Neutralize special characters interpreted by sed in replacement strings.
19779 case $configure_input in #(
19780 *\&* | *\|* | *\\* )
19781 ac_sed_conf_input=`$as_echo "$configure_input" |
19782 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19783 *) ac_sed_conf_input=$configure_input;;
19784 esac
19785
19786 case $ac_tag in
19787 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19789 esac
19790 ;;
19791 esac
19792
19793 ac_dir=`$as_dirname -- "$ac_file" ||
19794$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19795 X"$ac_file" : 'X\(//\)[^/]' \| \
19796 X"$ac_file" : 'X\(//\)$' \| \
19797 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19798$as_echo X"$ac_file" |
19799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19800 s//\1/
19801 q
19802 }
19803 /^X\(\/\/\)[^/].*/{
19804 s//\1/
19805 q
19806 }
19807 /^X\(\/\/\)$/{
19808 s//\1/
19809 q
19810 }
19811 /^X\(\/\).*/{
19812 s//\1/
19813 q
19814 }
19815 s/.*/./; q'`
19816 as_dir="$ac_dir"; as_fn_mkdir_p
19817 ac_builddir=.
19818
19819case "$ac_dir" in
19820.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19821*)
19822 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19823 # A ".." for each directory in $ac_dir_suffix.
19824 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19825 case $ac_top_builddir_sub in
19826 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19827 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19828 esac ;;
19829esac
19830ac_abs_top_builddir=$ac_pwd
19831ac_abs_builddir=$ac_pwd$ac_dir_suffix
19832# for backward compatibility:
19833ac_top_builddir=$ac_top_build_prefix
19834
19835case $srcdir in
19836 .) # We are building in place.
19837 ac_srcdir=.
19838 ac_top_srcdir=$ac_top_builddir_sub
19839 ac_abs_top_srcdir=$ac_pwd ;;
19840 [\\/]* | ?:[\\/]* ) # Absolute name.
19841 ac_srcdir=$srcdir$ac_dir_suffix;
19842 ac_top_srcdir=$srcdir
19843 ac_abs_top_srcdir=$srcdir ;;
19844 *) # Relative name.
19845 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19846 ac_top_srcdir=$ac_top_build_prefix$srcdir
19847 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19848esac
19849ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19850
19851
19852 case $ac_mode in
19853 :F)
19854 #
19855 # CONFIG_FILE
19856 #
19857
19858 case $INSTALL in
19859 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19860 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19861 esac
19862 ac_MKDIR_P=$MKDIR_P
19863 case $MKDIR_P in
19864 [\\/$]* | ?:[\\/]* ) ;;
19865 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19866 esac
19867_ACEOF
19868
19869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19870# If the template does not know about datarootdir, expand it.
19871# FIXME: This hack should be removed a few years after 2.60.
19872ac_datarootdir_hack=; ac_datarootdir_seen=
19873ac_sed_dataroot='
19874/datarootdir/ {
19875 p
19876 q
19877}
19878/@datadir@/p
19879/@docdir@/p
19880/@infodir@/p
19881/@localedir@/p
19882/@mandir@/p'
19883case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19884*datarootdir*) ac_datarootdir_seen=yes;;
19885*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19887$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19888_ACEOF
19889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19890 ac_datarootdir_hack='
19891 s&@datadir@&$datadir&g
19892 s&@docdir@&$docdir&g
19893 s&@infodir@&$infodir&g
19894 s&@localedir@&$localedir&g
19895 s&@mandir@&$mandir&g
19896 s&\\\${datarootdir}&$datarootdir&g' ;;
19897esac
19898_ACEOF
19899
19900# Neutralize VPATH when `$srcdir' = `.'.
19901# Shell code in configure.ac might set extrasub.
19902# FIXME: do we really want to maintain this feature?
19903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19904ac_sed_extra="$ac_vpsub
19905$extrasub
19906_ACEOF
19907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19908:t
19909/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19910s|@configure_input@|$ac_sed_conf_input|;t t
19911s&@top_builddir@&$ac_top_builddir_sub&;t t
19912s&@top_build_prefix@&$ac_top_build_prefix&;t t
19913s&@srcdir@&$ac_srcdir&;t t
19914s&@abs_srcdir@&$ac_abs_srcdir&;t t
19915s&@top_srcdir@&$ac_top_srcdir&;t t
19916s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19917s&@builddir@&$ac_builddir&;t t
19918s&@abs_builddir@&$ac_abs_builddir&;t t
19919s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19920s&@INSTALL@&$ac_INSTALL&;t t
19921s&@MKDIR_P@&$ac_MKDIR_P&;t t
19922$ac_datarootdir_hack
19923"
19924eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19925 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19926
19927test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19928 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19929 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19930 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19932which seems to be undefined. Please make sure it is defined" >&5
19933$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19934which seems to be undefined. Please make sure it is defined" >&2;}
19935
19936 rm -f "$ac_tmp/stdin"
19937 case $ac_file in
19938 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19939 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19940 esac \
19941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19942 ;;
19943 :H)
19944 #
19945 # CONFIG_HEADER
19946 #
19947 if test x"$ac_file" != x-; then
19948 {
19949 $as_echo "/* $configure_input */" \
19950 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19951 } >"$ac_tmp/config.h" \
19952 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19953 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19955$as_echo "$as_me: $ac_file is unchanged" >&6;}
19956 else
19957 rm -f "$ac_file"
19958 mv "$ac_tmp/config.h" "$ac_file" \
19959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19960 fi
19961 else
19962 $as_echo "/* $configure_input */" \
19963 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19964 || as_fn_error $? "could not create -" "$LINENO" 5
19965 fi
19966# Compute "$ac_file"'s index in $config_headers.
19967_am_arg="$ac_file"
19968_am_stamp_count=1
19969for _am_header in $config_headers :; do
19970 case $_am_header in
19971 $_am_arg | $_am_arg:* )
19972 break ;;
19973 * )
19974 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19975 esac
19976done
19977echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19978$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19979 X"$_am_arg" : 'X\(//\)[^/]' \| \
19980 X"$_am_arg" : 'X\(//\)$' \| \
19981 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19982$as_echo X"$_am_arg" |
19983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19984 s//\1/
19985 q
19986 }
19987 /^X\(\/\/\)[^/].*/{
19988 s//\1/
19989 q
19990 }
19991 /^X\(\/\/\)$/{
19992 s//\1/
19993 q
19994 }
19995 /^X\(\/\).*/{
19996 s//\1/
19997 q
19998 }
19999 s/.*/./; q'`/stamp-h$_am_stamp_count
20000 ;;
20001
20002 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20003$as_echo "$as_me: executing $ac_file commands" >&6;}
20004 ;;
20005 esac
20006
20007
20008 case $ac_file$ac_mode in
20009 "spl_config.h":H)
20010 (mv spl_config.h spl_config.h.tmp &&
20011 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
20012 rm spl_config.h.tmp) || exit 1 ;;
20013 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
ac9cc135 20014 # Older Autoconf quotes --file arguments for eval, but not when files
10946b02
AX
20015 # are listed without --file. Let's play safe and only enable the eval
20016 # if we detect the quoting.
20017 case $CONFIG_FILES in
20018 *\'*) eval set x "$CONFIG_FILES" ;;
20019 *) set x $CONFIG_FILES ;;
20020 esac
20021 shift
20022 for mf
20023 do
20024 # Strip MF so we end up with the name of the file.
20025 mf=`echo "$mf" | sed -e 's/:.*$//'`
20026 # Check whether this is an Automake generated Makefile or not.
ac9cc135 20027 # We used to match only the files named 'Makefile.in', but
10946b02
AX
20028 # some people rename them; so instead we look at the file content.
20029 # Grep'ing the first line is not enough: some people post-process
20030 # each Makefile.in and add a new line on top of each file to say so.
20031 # Grep'ing the whole file is not good either: AIX grep has a line
20032 # limit of 2048, but all sed's we know have understand at least 4000.
20033 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20034 dirpart=`$as_dirname -- "$mf" ||
20035$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20036 X"$mf" : 'X\(//\)[^/]' \| \
20037 X"$mf" : 'X\(//\)$' \| \
20038 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20039$as_echo X"$mf" |
20040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20041 s//\1/
20042 q
20043 }
20044 /^X\(\/\/\)[^/].*/{
20045 s//\1/
20046 q
20047 }
20048 /^X\(\/\/\)$/{
20049 s//\1/
20050 q
20051 }
20052 /^X\(\/\).*/{
20053 s//\1/
20054 q
20055 }
20056 s/.*/./; q'`
20057 else
20058 continue
20059 fi
20060 # Extract the definition of DEPDIR, am__include, and am__quote
ac9cc135 20061 # from the Makefile without running 'make'.
10946b02
AX
20062 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20063 test -z "$DEPDIR" && continue
20064 am__include=`sed -n 's/^am__include = //p' < "$mf"`
ac9cc135 20065 test -z "$am__include" && continue
10946b02 20066 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10946b02
AX
20067 # Find all dependency output files, they are included files with
20068 # $(DEPDIR) in their names. We invoke sed twice because it is the
20069 # simplest approach to changing $(DEPDIR) to its actual value in the
20070 # expansion.
20071 for file in `sed -n "
20072 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
ac9cc135 20073 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10946b02
AX
20074 # Make sure the directory exists.
20075 test -f "$dirpart/$file" && continue
20076 fdir=`$as_dirname -- "$file" ||
20077$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20078 X"$file" : 'X\(//\)[^/]' \| \
20079 X"$file" : 'X\(//\)$' \| \
20080 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20081$as_echo X"$file" |
20082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20083 s//\1/
20084 q
20085 }
20086 /^X\(\/\/\)[^/].*/{
20087 s//\1/
20088 q
20089 }
20090 /^X\(\/\/\)$/{
20091 s//\1/
20092 q
20093 }
20094 /^X\(\/\).*/{
20095 s//\1/
20096 q
20097 }
20098 s/.*/./; q'`
20099 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20100 # echo "creating $dirpart/$file"
20101 echo '# dummy' > "$dirpart/$file"
20102 done
20103 done
20104}
20105 ;;
20106 "libtool":C)
20107
ac9cc135 20108 # See if we are running on zsh, and set the options that allow our
10946b02 20109 # commands through without removal of \ escapes.
ac9cc135 20110 if test -n "${ZSH_VERSION+set}"; then
10946b02
AX
20111 setopt NO_GLOB_SUBST
20112 fi
20113
ac9cc135 20114 cfgfile=${ofile}T
10946b02
AX
20115 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20116 $RM "$cfgfile"
20117
20118 cat <<_LT_EOF >> "$cfgfile"
20119#! $SHELL
ac9cc135 20120# Generated automatically by $as_me ($PACKAGE) $VERSION
10946b02
AX
20121# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20122# NOTE: Changes made to this file will be lost: look at ltmain.sh.
ac9cc135
AX
20123
20124# Provide generalized library-building support services.
20125# Written by Gordon Matzigkeit, 1996
20126
20127# Copyright (C) 2014 Free Software Foundation, Inc.
20128# This is free software; see the source for copying conditions. There is NO
20129# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20130
20131# GNU Libtool is free software; you can redistribute it and/or modify
20132# it under the terms of the GNU General Public License as published by
20133# the Free Software Foundation; either version 2 of of the License, or
20134# (at your option) any later version.
10946b02 20135#
ac9cc135
AX
20136# As a special exception to the GNU General Public License, if you
20137# distribute this file as part of a program or library that is built
20138# using GNU Libtool, you may include this file under the same
20139# distribution terms that you use for the rest of that program.
10946b02 20140#
ac9cc135
AX
20141# GNU Libtool is distributed in the hope that it will be useful, but
20142# WITHOUT ANY WARRANTY; without even the implied warranty of
10946b02
AX
20143# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20144# GNU General Public License for more details.
20145#
20146# You should have received a copy of the GNU General Public License
ac9cc135 20147# along with this program. If not, see <http://www.gnu.org/licenses/>.
10946b02
AX
20148
20149
20150# The names of the tagged configurations supported by this script.
ac9cc135
AX
20151available_tags=''
20152
20153# Configured defaults for sys_lib_dlsearch_path munging.
20154: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
10946b02
AX
20155
20156# ### BEGIN LIBTOOL CONFIG
20157
20158# Which release of libtool.m4 was used?
20159macro_version=$macro_version
20160macro_revision=$macro_revision
20161
20162# Whether or not to build shared libraries.
20163build_libtool_libs=$enable_shared
20164
20165# Whether or not to build static libraries.
20166build_old_libs=$enable_static
20167
20168# What type of objects to build.
20169pic_mode=$pic_mode
20170
20171# Whether or not to optimize for fast installation.
20172fast_install=$enable_fast_install
20173
ac9cc135
AX
20174# Shared archive member basename,for filename based shared library versioning on AIX.
20175shared_archive_member_spec=$shared_archive_member_spec
20176
10946b02
AX
20177# Shell to use when invoking shell scripts.
20178SHELL=$lt_SHELL
20179
20180# An echo program that protects backslashes.
20181ECHO=$lt_ECHO
20182
20183# The PATH separator for the build system.
20184PATH_SEPARATOR=$lt_PATH_SEPARATOR
20185
20186# The host system.
20187host_alias=$host_alias
20188host=$host
20189host_os=$host_os
20190
20191# The build system.
20192build_alias=$build_alias
20193build=$build
20194build_os=$build_os
20195
20196# A sed program that does not truncate output.
20197SED=$lt_SED
20198
20199# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20200Xsed="\$SED -e 1s/^X//"
20201
20202# A grep program that handles long lines.
20203GREP=$lt_GREP
20204
20205# An ERE matcher.
20206EGREP=$lt_EGREP
20207
20208# A literal string matcher.
20209FGREP=$lt_FGREP
20210
20211# A BSD- or MS-compatible name lister.
20212NM=$lt_NM
20213
20214# Whether we need soft or hard links.
20215LN_S=$lt_LN_S
20216
20217# What is the maximum length of a command?
20218max_cmd_len=$max_cmd_len
20219
20220# Object file suffix (normally "o").
20221objext=$ac_objext
20222
20223# Executable file suffix (normally "").
20224exeext=$exeext
20225
20226# whether the shell understands "unset".
20227lt_unset=$lt_unset
20228
20229# turn spaces into newlines.
20230SP2NL=$lt_lt_SP2NL
20231
20232# turn newlines into spaces.
20233NL2SP=$lt_lt_NL2SP
20234
20235# convert \$build file names to \$host format.
20236to_host_file_cmd=$lt_cv_to_host_file_cmd
20237
20238# convert \$build files to toolchain format.
20239to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20240
20241# An object symbol dumper.
20242OBJDUMP=$lt_OBJDUMP
20243
20244# Method to check whether dependent libraries are shared objects.
20245deplibs_check_method=$lt_deplibs_check_method
20246
20247# Command to use when deplibs_check_method = "file_magic".
20248file_magic_cmd=$lt_file_magic_cmd
20249
20250# How to find potential files when deplibs_check_method = "file_magic".
20251file_magic_glob=$lt_file_magic_glob
20252
20253# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20254want_nocaseglob=$lt_want_nocaseglob
20255
20256# DLL creation program.
20257DLLTOOL=$lt_DLLTOOL
20258
20259# Command to associate shared and link libraries.
20260sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20261
20262# The archiver.
20263AR=$lt_AR
20264
20265# Flags to create an archive.
20266AR_FLAGS=$lt_AR_FLAGS
20267
20268# How to feed a file listing to the archiver.
20269archiver_list_spec=$lt_archiver_list_spec
20270
20271# A symbol stripping program.
20272STRIP=$lt_STRIP
20273
20274# Commands used to install an old-style archive.
20275RANLIB=$lt_RANLIB
20276old_postinstall_cmds=$lt_old_postinstall_cmds
20277old_postuninstall_cmds=$lt_old_postuninstall_cmds
20278
20279# Whether to use a lock for old archive extraction.
20280lock_old_archive_extraction=$lock_old_archive_extraction
20281
20282# A C compiler.
20283LTCC=$lt_CC
20284
20285# LTCC compiler flags.
20286LTCFLAGS=$lt_CFLAGS
20287
20288# Take the output of nm and produce a listing of raw symbols and C names.
20289global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20290
20291# Transform the output of nm in a proper C declaration.
20292global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20293
ac9cc135
AX
20294# Transform the output of nm into a list of symbols to manually relocate.
20295global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20296
10946b02
AX
20297# Transform the output of nm in a C name address pair.
20298global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20299
20300# Transform the output of nm in a C name address pair when lib prefix is needed.
20301global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20302
ac9cc135
AX
20303# The name lister interface.
20304nm_interface=$lt_lt_cv_nm_interface
20305
10946b02
AX
20306# Specify filename containing input files for \$NM.
20307nm_file_list_spec=$lt_nm_file_list_spec
20308
ac9cc135 20309# The root where to search for dependent libraries,and where our libraries should be installed.
10946b02
AX
20310lt_sysroot=$lt_sysroot
20311
ac9cc135
AX
20312# Command to truncate a binary pipe.
20313lt_truncate_bin=$lt_lt_cv_truncate_bin
20314
10946b02
AX
20315# The name of the directory that contains temporary libtool files.
20316objdir=$objdir
20317
20318# Used to examine libraries when file_magic_cmd begins with "file".
20319MAGIC_CMD=$MAGIC_CMD
20320
20321# Must we lock files when doing compilation?
20322need_locks=$lt_need_locks
20323
20324# Manifest tool.
20325MANIFEST_TOOL=$lt_MANIFEST_TOOL
20326
20327# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20328DSYMUTIL=$lt_DSYMUTIL
20329
20330# Tool to change global to local symbols on Mac OS X.
20331NMEDIT=$lt_NMEDIT
20332
20333# Tool to manipulate fat objects and archives on Mac OS X.
20334LIPO=$lt_LIPO
20335
20336# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20337OTOOL=$lt_OTOOL
20338
20339# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20340OTOOL64=$lt_OTOOL64
20341
20342# Old archive suffix (normally "a").
20343libext=$libext
20344
20345# Shared library suffix (normally ".so").
20346shrext_cmds=$lt_shrext_cmds
20347
20348# The commands to extract the exported symbol list from a shared archive.
20349extract_expsyms_cmds=$lt_extract_expsyms_cmds
20350
20351# Variables whose values should be saved in libtool wrapper scripts and
20352# restored at link time.
20353variables_saved_for_relink=$lt_variables_saved_for_relink
20354
20355# Do we need the "lib" prefix for modules?
20356need_lib_prefix=$need_lib_prefix
20357
20358# Do we need a version for libraries?
20359need_version=$need_version
20360
20361# Library versioning type.
20362version_type=$version_type
20363
20364# Shared library runtime path variable.
20365runpath_var=$runpath_var
20366
20367# Shared library path variable.
20368shlibpath_var=$shlibpath_var
20369
20370# Is shlibpath searched before the hard-coded library search path?
20371shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20372
20373# Format of library name prefix.
20374libname_spec=$lt_libname_spec
20375
20376# List of archive names. First name is the real one, the rest are links.
20377# The last name is the one that the linker finds with -lNAME
20378library_names_spec=$lt_library_names_spec
20379
20380# The coded name of the library, if different from the real name.
20381soname_spec=$lt_soname_spec
20382
20383# Permission mode override for installation of shared libraries.
20384install_override_mode=$lt_install_override_mode
20385
20386# Command to use after installation of a shared archive.
20387postinstall_cmds=$lt_postinstall_cmds
20388
20389# Command to use after uninstallation of a shared archive.
20390postuninstall_cmds=$lt_postuninstall_cmds
20391
20392# Commands used to finish a libtool library installation in a directory.
20393finish_cmds=$lt_finish_cmds
20394
20395# As "finish_cmds", except a single script fragment to be evaled but
20396# not shown.
20397finish_eval=$lt_finish_eval
20398
20399# Whether we should hardcode library paths into libraries.
20400hardcode_into_libs=$hardcode_into_libs
20401
20402# Compile-time system search path for libraries.
20403sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20404
ac9cc135
AX
20405# Detected run-time system search path for libraries.
20406sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20407
20408# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20409configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
10946b02
AX
20410
20411# Whether dlopen is supported.
20412dlopen_support=$enable_dlopen
20413
20414# Whether dlopen of programs is supported.
20415dlopen_self=$enable_dlopen_self
20416
20417# Whether dlopen of statically linked programs is supported.
20418dlopen_self_static=$enable_dlopen_self_static
20419
20420# Commands to strip libraries.
20421old_striplib=$lt_old_striplib
20422striplib=$lt_striplib
20423
20424
20425# The linker used to build libraries.
20426LD=$lt_LD
20427
20428# How to create reloadable object files.
20429reload_flag=$lt_reload_flag
20430reload_cmds=$lt_reload_cmds
20431
20432# Commands used to build an old-style archive.
20433old_archive_cmds=$lt_old_archive_cmds
20434
20435# A language specific compiler.
20436CC=$lt_compiler
20437
20438# Is the compiler the GNU compiler?
20439with_gcc=$GCC
20440
20441# Compiler flag to turn off builtin functions.
20442no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20443
20444# Additional compiler flags for building library objects.
20445pic_flag=$lt_lt_prog_compiler_pic
20446
20447# How to pass a linker flag through the compiler.
20448wl=$lt_lt_prog_compiler_wl
20449
20450# Compiler flag to prevent dynamic linking.
20451link_static_flag=$lt_lt_prog_compiler_static
20452
20453# Does compiler simultaneously support -c and -o options?
20454compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20455
20456# Whether or not to add -lc for building shared libraries.
20457build_libtool_need_lc=$archive_cmds_need_lc
20458
20459# Whether or not to disallow shared libs when runtime libs are static.
20460allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20461
20462# Compiler flag to allow reflexive dlopens.
20463export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20464
20465# Compiler flag to generate shared objects directly from archives.
20466whole_archive_flag_spec=$lt_whole_archive_flag_spec
20467
20468# Whether the compiler copes with passing no objects directly.
20469compiler_needs_object=$lt_compiler_needs_object
20470
20471# Create an old-style archive from a shared archive.
20472old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20473
20474# Create a temporary old-style archive to link instead of a shared archive.
20475old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20476
20477# Commands used to build a shared archive.
20478archive_cmds=$lt_archive_cmds
20479archive_expsym_cmds=$lt_archive_expsym_cmds
20480
20481# Commands used to build a loadable module if different from building
20482# a shared archive.
20483module_cmds=$lt_module_cmds
20484module_expsym_cmds=$lt_module_expsym_cmds
20485
20486# Whether we are building with GNU ld or not.
20487with_gnu_ld=$lt_with_gnu_ld
20488
20489# Flag that allows shared libraries with undefined symbols to be built.
20490allow_undefined_flag=$lt_allow_undefined_flag
20491
20492# Flag that enforces no undefined symbols.
20493no_undefined_flag=$lt_no_undefined_flag
20494
20495# Flag to hardcode \$libdir into a binary during linking.
20496# This must work even if \$libdir does not exist
20497hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20498
20499# Whether we need a single "-rpath" flag with a separated argument.
20500hardcode_libdir_separator=$lt_hardcode_libdir_separator
20501
ac9cc135 20502# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
10946b02
AX
20503# DIR into the resulting binary.
20504hardcode_direct=$hardcode_direct
20505
ac9cc135 20506# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
10946b02 20507# DIR into the resulting binary and the resulting library dependency is
ac9cc135 20508# "absolute",i.e impossible to change by setting \$shlibpath_var if the
10946b02
AX
20509# library is relocated.
20510hardcode_direct_absolute=$hardcode_direct_absolute
20511
20512# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20513# into the resulting binary.
20514hardcode_minus_L=$hardcode_minus_L
20515
20516# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20517# into the resulting binary.
20518hardcode_shlibpath_var=$hardcode_shlibpath_var
20519
20520# Set to "yes" if building a shared library automatically hardcodes DIR
20521# into the library and all subsequent libraries and executables linked
20522# against it.
20523hardcode_automatic=$hardcode_automatic
20524
20525# Set to yes if linker adds runtime paths of dependent libraries
20526# to runtime path list.
20527inherit_rpath=$inherit_rpath
20528
20529# Whether libtool must link a program against all its dependency libraries.
20530link_all_deplibs=$link_all_deplibs
20531
20532# Set to "yes" if exported symbols are required.
20533always_export_symbols=$always_export_symbols
20534
20535# The commands to list exported symbols.
20536export_symbols_cmds=$lt_export_symbols_cmds
20537
20538# Symbols that should not be listed in the preloaded symbols.
20539exclude_expsyms=$lt_exclude_expsyms
20540
20541# Symbols that must always be exported.
20542include_expsyms=$lt_include_expsyms
20543
20544# Commands necessary for linking programs (against libraries) with templates.
20545prelink_cmds=$lt_prelink_cmds
20546
20547# Commands necessary for finishing linking programs.
20548postlink_cmds=$lt_postlink_cmds
20549
20550# Specify filename containing input files.
20551file_list_spec=$lt_file_list_spec
20552
20553# How to hardcode a shared library path into an executable.
20554hardcode_action=$hardcode_action
20555
20556# ### END LIBTOOL CONFIG
20557
ac9cc135
AX
20558_LT_EOF
20559
20560 cat <<'_LT_EOF' >> "$cfgfile"
20561
20562# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20563
20564# func_munge_path_list VARIABLE PATH
20565# -----------------------------------
20566# VARIABLE is name of variable containing _space_ separated list of
20567# directories to be munged by the contents of PATH, which is string
20568# having a format:
20569# "DIR[:DIR]:"
20570# string "DIR[ DIR]" will be prepended to VARIABLE
20571# ":DIR[:DIR]"
20572# string "DIR[ DIR]" will be appended to VARIABLE
20573# "DIRP[:DIRP]::[DIRA:]DIRA"
20574# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20575# "DIRA[ DIRA]" will be appended to VARIABLE
20576# "DIR[:DIR]"
20577# VARIABLE will be replaced by "DIR[ DIR]"
20578func_munge_path_list ()
20579{
20580 case x$2 in
20581 x)
20582 ;;
20583 *:)
20584 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20585 ;;
20586 x:*)
20587 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20588 ;;
20589 *::*)
20590 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20591 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20592 ;;
20593 *)
20594 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20595 ;;
20596 esac
20597}
20598
20599
20600# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20601func_cc_basename ()
20602{
20603 for cc_temp in $*""; do
20604 case $cc_temp in
20605 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20606 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20607 \-*) ;;
20608 *) break;;
20609 esac
20610 done
20611 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20612}
20613
20614
20615# ### END FUNCTIONS SHARED WITH CONFIGURE
20616
10946b02
AX
20617_LT_EOF
20618
20619 case $host_os in
20620 aix3*)
20621 cat <<\_LT_EOF >> "$cfgfile"
20622# AIX sometimes has problems with the GCC collect2 program. For some
20623# reason, if we set the COLLECT_NAMES environment variable, the problems
20624# vanish in a puff of smoke.
ac9cc135 20625if test set != "${COLLECT_NAMES+set}"; then
10946b02
AX
20626 COLLECT_NAMES=
20627 export COLLECT_NAMES
20628fi
20629_LT_EOF
20630 ;;
20631 esac
20632
20633
ac9cc135 20634ltmain=$ac_aux_dir/ltmain.sh
10946b02
AX
20635
20636
20637 # We use sed instead of cat because bash on DJGPP gets confused if
20638 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20639 # text mode, it properly converts lines to CR/LF. This bash problem
20640 # is reportedly fixed, but why not run on old versions too?
20641 sed '$q' "$ltmain" >> "$cfgfile" \
20642 || (rm -f "$cfgfile"; exit 1)
20643
10946b02
AX
20644 mv -f "$cfgfile" "$ofile" ||
20645 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20646 chmod +x "$ofile"
20647
20648 ;;
20649
20650 esac
20651done # for ac_tag
20652
20653
20654as_fn_exit 0
20655_ACEOF
20656ac_clean_files=$ac_clean_files_save
20657
20658test $ac_write_fail = 0 ||
20659 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20660
20661
20662# configure is writing to config.log, and then calls config.status.
20663# config.status does its own redirection, appending to config.log.
20664# Unfortunately, on DOS this fails, as config.log is still kept open
20665# by configure, so config.status won't be able to write to it; its
20666# output is simply discarded. So we exec the FD to /dev/null,
20667# effectively closing config.log, so it can be properly (re)opened and
20668# appended to by config.status. When coming back to configure, we
20669# need to make the FD available again.
20670if test "$no_create" != yes; then
20671 ac_cs_success=:
20672 ac_config_status_args=
20673 test "$silent" = yes &&
20674 ac_config_status_args="$ac_config_status_args --quiet"
20675 exec 5>/dev/null
20676 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20677 exec 5>>config.log
20678 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20679 # would make configure fail if this is the last instruction.
20680 $ac_cs_success || as_fn_exit 1
20681fi
20682if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20684$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20685fi
20686