]>
Commit | Line | Data |
---|---|---|
70e083d2 TG |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
b3a88519 | 3 | # Generated by GNU Autoconf 2.69 for spl 0.7.5. |
70e083d2 TG |
4 | # |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
7 | # | |
8 | # | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | as_myself= | |
91 | case $0 in #(( | |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
127 | LC_ALL=C | |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
135 | # Use a proper internal environment variable to ensure we don't fall | |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
160 | if test "x$CONFIG_SHELL" = x; then | |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
193 | test x\$exitcode = x0 || exit 1 | |
194 | test -x / || exit 1" | |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | ||
200 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
201 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
202 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | PATH=/empty FPATH=/empty; export PATH FPATH | |
205 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
206 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
207 | test \$(( 1 + 1 )) = 2 || exit 1" | |
208 | if (eval "$as_required") 2>/dev/null; then : | |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
219 | do | |
220 | IFS=$as_save_IFS | |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
247 | export CONFIG_SHELL | |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
266 | fi | |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
274 | else | |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
279 | fi | |
280 | exit 1 | |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
364 | ||
365 | ||
366 | } # as_fn_mkdir_p | |
367 | ||
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
375 | # as_fn_append VAR VALUE | |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
412 | # ---------------------------------------- | |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
415 | # script with STATUS, using 1 if that was 0. | |
416 | as_fn_error () | |
417 | { | |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
422 | fi | |
423 | $as_echo "$as_me: error: $2" >&2 | |
424 | as_fn_exit $as_status | |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
429 | as_expr=expr | |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
435 | as_basename=basename | |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
445 | ||
446 | as_me=`$as_basename -- "$0" || | |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
448 | X"$0" : 'X\(//\)$' \| \ | |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
464 | ||
465 | # Avoid depending upon Character Ranges. | |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
472 | ||
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
482 | sed ' | |
483 | s/[$]LINENO.*/&-/ | |
484 | t lineno | |
485 | b | |
486 | :lineno | |
487 | N | |
488 | :loop | |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
490 | t loop | |
491 | s/-\n.*// | |
492 | ' >$as_me.lineno && | |
493 | chmod +x "$as_me.lineno" || | |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
495 | ||
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
500 | # Don't try to exec as it changes $[0], causing all sort of problems | |
501 | # (the dirname of $[0] is not the place where we might find the | |
502 | # original and so on. Autoconf is especially sensitive to this). | |
503 | . "./$as_me.lineno" | |
504 | # Exit status is that of the last command. | |
505 | exit | |
506 | } | |
507 | ||
508 | ECHO_C= ECHO_N= ECHO_T= | |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
519 | esac | |
520 | ||
521 | rm -f conf$$ conf$$.exe conf$$.file | |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
524 | else | |
525 | rm -f conf$$.dir | |
526 | mkdir conf$$.dir 2>/dev/null | |
527 | fi | |
528 | if (echo >conf$$.file) 2>/dev/null; then | |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s='ln -s' | |
531 | # ... but there are two gotchas: | |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
534 | # In both cases, we have to default to `cp -pR'. | |
535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
536 | as_ln_s='cp -pR' | |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
538 | as_ln_s=ln | |
539 | else | |
540 | as_ln_s='cp -pR' | |
541 | fi | |
542 | else | |
543 | as_ln_s='cp -pR' | |
544 | fi | |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
546 | rmdir conf$$.dir 2>/dev/null | |
547 | ||
548 | if mkdir -p . 2>/dev/null; then | |
549 | as_mkdir_p='mkdir -p "$as_dir"' | |
550 | else | |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
555 | as_test_x='test -x' | |
556 | as_executable_p=as_fn_executable_p | |
557 | ||
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
564 | SHELL=${CONFIG_SHELL-/bin/sh} | |
565 | ||
566 | ||
567 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
568 | exec 6>&1 | |
569 | ||
570 | # Name of the host. | |
571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
572 | # so uname gets run too. | |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
575 | # | |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
579 | ac_clean_files= | |
580 | ac_config_libobj_dir=. | |
581 | LIBOBJS= | |
582 | cross_compiling=no | |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
586 | ||
587 | # Identity of this package. | |
588 | PACKAGE_NAME='spl' | |
589 | PACKAGE_TARNAME='spl' | |
b3a88519 CIK |
590 | PACKAGE_VERSION='0.7.5' |
591 | PACKAGE_STRING='spl 0.7.5' | |
70e083d2 TG |
592 | PACKAGE_BUGREPORT='' |
593 | PACKAGE_URL='' | |
594 | ||
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
598 | #ifdef HAVE_SYS_TYPES_H | |
599 | # include <sys/types.h> | |
600 | #endif | |
601 | #ifdef HAVE_SYS_STAT_H | |
602 | # include <sys/stat.h> | |
603 | #endif | |
604 | #ifdef STDC_HEADERS | |
605 | # include <stdlib.h> | |
606 | # include <stddef.h> | |
607 | #else | |
608 | # ifdef HAVE_STDLIB_H | |
609 | # include <stdlib.h> | |
610 | # endif | |
611 | #endif | |
612 | #ifdef HAVE_STRING_H | |
613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
614 | # include <memory.h> | |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
618 | #ifdef HAVE_STRINGS_H | |
619 | # include <strings.h> | |
620 | #endif | |
621 | #ifdef HAVE_INTTYPES_H | |
622 | # include <inttypes.h> | |
623 | #endif | |
624 | #ifdef HAVE_STDINT_H | |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
628 | # include <unistd.h> | |
629 | #endif" | |
630 | ||
631 | ac_subst_vars='am__EXEEXT_FALSE | |
632 | am__EXEEXT_TRUE | |
633 | LTLIBOBJS | |
634 | LIBOBJS | |
635 | CONFIG_KERNEL_FALSE | |
636 | CONFIG_KERNEL_TRUE | |
637 | CONFIG_USER_FALSE | |
638 | CONFIG_USER_TRUE | |
639 | DEBUG_KMEM_TRACKING | |
640 | DEBUG_KMEM | |
641 | DEBUG_SPL | |
642 | DEBUG_CFLAGS | |
643 | KERNELCPPFLAGS | |
644 | KERNELMAKE_PARAMS | |
645 | LINUX_SYMBOLS | |
646 | LINUX_VERSION | |
647 | LINUX_OBJ | |
648 | LINUX | |
649 | SPL_CONFIG | |
650 | ALIEN_VERSION | |
651 | ALIEN | |
652 | HAVE_ALIEN | |
653 | DPKGBUILD_VERSION | |
654 | DPKGBUILD | |
655 | HAVE_DPKGBUILD | |
656 | DPKG_VERSION | |
657 | DPKG | |
658 | HAVE_DPKG | |
659 | SRPM_DEFINE_COMMON | |
660 | SRPM_DEFINE_DKMS | |
661 | SRPM_DEFINE_KMOD | |
662 | SRPM_DEFINE_UTIL | |
663 | RPM_DEFINE_COMMON | |
664 | RPM_DEFINE_DKMS | |
665 | RPM_DEFINE_KMOD | |
666 | RPM_DEFINE_UTIL | |
667 | RPM_SPEC_DIR | |
668 | RPMBUILD_VERSION | |
669 | RPMBUILD | |
670 | HAVE_RPMBUILD | |
671 | RPM_VERSION | |
672 | RPM | |
673 | HAVE_RPM | |
674 | DEFAULT_PACKAGE | |
675 | VENDOR | |
676 | CPP | |
677 | LT_SYS_LIBRARY_PATH | |
678 | OTOOL64 | |
679 | OTOOL | |
680 | LIPO | |
681 | NMEDIT | |
682 | DSYMUTIL | |
683 | MANIFEST_TOOL | |
684 | RANLIB | |
685 | ac_ct_AR | |
686 | AR | |
687 | DLLTOOL | |
688 | OBJDUMP | |
689 | LN_S | |
690 | NM | |
691 | ac_ct_DUMPBIN | |
692 | DUMPBIN | |
693 | LD | |
694 | FGREP | |
695 | EGREP | |
696 | GREP | |
697 | SED | |
698 | LIBTOOL | |
699 | am__fastdepCC_FALSE | |
700 | am__fastdepCC_TRUE | |
701 | CCDEPMODE | |
702 | am__nodep | |
703 | AMDEPBACKSLASH | |
704 | AMDEP_FALSE | |
705 | AMDEP_TRUE | |
706 | am__quote | |
707 | am__include | |
708 | DEPDIR | |
709 | OBJEXT | |
710 | EXEEXT | |
711 | ac_ct_CC | |
712 | CPPFLAGS | |
713 | LDFLAGS | |
714 | CFLAGS | |
715 | CC | |
716 | am__untar | |
717 | am__tar | |
718 | AMTAR | |
719 | am__leading_dot | |
720 | SET_MAKE | |
721 | mkdir_p | |
722 | MKDIR_P | |
723 | INSTALL_STRIP_PROGRAM | |
724 | STRIP | |
725 | install_sh | |
726 | MAKEINFO | |
727 | AUTOHEADER | |
728 | AUTOMAKE | |
729 | AUTOCONF | |
730 | ACLOCAL | |
731 | VERSION | |
732 | PACKAGE | |
733 | CYGPATH_W | |
734 | am__isrc | |
735 | INSTALL_DATA | |
736 | INSTALL_SCRIPT | |
737 | INSTALL_PROGRAM | |
738 | AM_BACKSLASH | |
739 | AM_DEFAULT_VERBOSITY | |
740 | AM_DEFAULT_V | |
741 | AM_V | |
742 | MAINT | |
743 | MAINTAINER_MODE_FALSE | |
744 | MAINTAINER_MODE_TRUE | |
745 | target_os | |
746 | target_vendor | |
747 | target_cpu | |
748 | target | |
749 | host_os | |
750 | host_vendor | |
751 | host_cpu | |
752 | host | |
753 | build_os | |
754 | build_vendor | |
755 | build_cpu | |
756 | build | |
757 | SPL_META_LT_AGE | |
758 | SPL_META_LT_REVISION | |
759 | SPL_META_LT_CURRENT | |
760 | SPL_META_AUTHOR | |
761 | SPL_META_DATA | |
762 | SPL_META_ALIAS | |
763 | SPL_META_LICENSE | |
764 | RELEASE | |
765 | SPL_META_RELEASE | |
766 | SPL_META_VERSION | |
767 | SPL_META_NAME | |
768 | AWK | |
769 | target_alias | |
770 | host_alias | |
771 | build_alias | |
772 | LIBS | |
773 | ECHO_T | |
774 | ECHO_N | |
775 | ECHO_C | |
776 | DEFS | |
777 | mandir | |
778 | localedir | |
779 | libdir | |
780 | psdir | |
781 | pdfdir | |
782 | dvidir | |
783 | htmldir | |
784 | infodir | |
785 | docdir | |
786 | oldincludedir | |
787 | includedir | |
788 | runstatedir | |
789 | localstatedir | |
790 | sharedstatedir | |
791 | sysconfdir | |
792 | datadir | |
793 | datarootdir | |
794 | libexecdir | |
795 | sbindir | |
796 | bindir | |
797 | program_transform_name | |
798 | prefix | |
799 | exec_prefix | |
800 | PACKAGE_URL | |
801 | PACKAGE_BUGREPORT | |
802 | PACKAGE_STRING | |
803 | PACKAGE_VERSION | |
804 | PACKAGE_TARNAME | |
805 | PACKAGE_NAME | |
806 | PATH_SEPARATOR | |
807 | SHELL' | |
808 | ac_subst_files='' | |
809 | ac_user_opts=' | |
810 | enable_option_checking | |
811 | enable_maintainer_mode | |
812 | enable_silent_rules | |
813 | enable_dependency_tracking | |
814 | enable_shared | |
815 | enable_static | |
816 | with_pic | |
817 | enable_fast_install | |
818 | with_aix_soname | |
819 | with_gnu_ld | |
820 | with_sysroot | |
821 | enable_libtool_lock | |
822 | with_spec | |
823 | with_config | |
824 | enable_linux_builtin | |
825 | with_linux | |
826 | with_linux_obj | |
827 | enable_debug | |
828 | enable_debug_kmem | |
829 | enable_debug_kmem_tracking | |
830 | enable_atomic_spinlocks | |
831 | ' | |
832 | ac_precious_vars='build_alias | |
833 | host_alias | |
834 | target_alias | |
835 | CC | |
836 | CFLAGS | |
837 | LDFLAGS | |
838 | LIBS | |
839 | CPPFLAGS | |
840 | LT_SYS_LIBRARY_PATH | |
841 | CPP' | |
842 | ||
843 | ||
844 | # Initialize some variables set by options. | |
845 | ac_init_help= | |
846 | ac_init_version=false | |
847 | ac_unrecognized_opts= | |
848 | ac_unrecognized_sep= | |
849 | # The variables have the same names as the options, with | |
850 | # dashes changed to underlines. | |
851 | cache_file=/dev/null | |
852 | exec_prefix=NONE | |
853 | no_create= | |
854 | no_recursion= | |
855 | prefix=NONE | |
856 | program_prefix=NONE | |
857 | program_suffix=NONE | |
858 | program_transform_name=s,x,x, | |
859 | silent= | |
860 | site= | |
861 | srcdir= | |
862 | verbose= | |
863 | x_includes=NONE | |
864 | x_libraries=NONE | |
865 | ||
866 | # Installation directory options. | |
867 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
868 | # and all the variables that are supposed to be based on exec_prefix | |
869 | # by default will actually change. | |
870 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
871 | # (The list follows the same order as the GNU Coding Standards.) | |
872 | bindir='${exec_prefix}/bin' | |
873 | sbindir='${exec_prefix}/sbin' | |
874 | libexecdir='${exec_prefix}/libexec' | |
875 | datarootdir='${prefix}/share' | |
876 | datadir='${datarootdir}' | |
877 | sysconfdir='${prefix}/etc' | |
878 | sharedstatedir='${prefix}/com' | |
879 | localstatedir='${prefix}/var' | |
880 | runstatedir='${localstatedir}/run' | |
881 | includedir='${prefix}/include' | |
882 | oldincludedir='/usr/include' | |
883 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
884 | infodir='${datarootdir}/info' | |
885 | htmldir='${docdir}' | |
886 | dvidir='${docdir}' | |
887 | pdfdir='${docdir}' | |
888 | psdir='${docdir}' | |
889 | libdir='${exec_prefix}/lib' | |
890 | localedir='${datarootdir}/locale' | |
891 | mandir='${datarootdir}/man' | |
892 | ||
893 | ac_prev= | |
894 | ac_dashdash= | |
895 | for ac_option | |
896 | do | |
897 | # If the previous option needs an argument, assign it. | |
898 | if test -n "$ac_prev"; then | |
899 | eval $ac_prev=\$ac_option | |
900 | ac_prev= | |
901 | continue | |
902 | fi | |
903 | ||
904 | case $ac_option in | |
905 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
906 | *=) ac_optarg= ;; | |
907 | *) ac_optarg=yes ;; | |
908 | esac | |
909 | ||
910 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
911 | ||
912 | case $ac_dashdash$ac_option in | |
913 | --) | |
914 | ac_dashdash=yes ;; | |
915 | ||
916 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
917 | ac_prev=bindir ;; | |
918 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
919 | bindir=$ac_optarg ;; | |
920 | ||
921 | -build | --build | --buil | --bui | --bu) | |
922 | ac_prev=build_alias ;; | |
923 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
924 | build_alias=$ac_optarg ;; | |
925 | ||
926 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
927 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
928 | ac_prev=cache_file ;; | |
929 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
930 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
931 | cache_file=$ac_optarg ;; | |
932 | ||
933 | --config-cache | -C) | |
934 | cache_file=config.cache ;; | |
935 | ||
936 | -datadir | --datadir | --datadi | --datad) | |
937 | ac_prev=datadir ;; | |
938 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
939 | datadir=$ac_optarg ;; | |
940 | ||
941 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
942 | | --dataroo | --dataro | --datar) | |
943 | ac_prev=datarootdir ;; | |
944 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
945 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
946 | datarootdir=$ac_optarg ;; | |
947 | ||
948 | -disable-* | --disable-*) | |
949 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
950 | # Reject names that are not valid shell variable names. | |
951 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
952 | as_fn_error $? "invalid feature name: $ac_useropt" | |
953 | ac_useropt_orig=$ac_useropt | |
954 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
955 | case $ac_user_opts in | |
956 | *" | |
957 | "enable_$ac_useropt" | |
958 | "*) ;; | |
959 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
960 | ac_unrecognized_sep=', ';; | |
961 | esac | |
962 | eval enable_$ac_useropt=no ;; | |
963 | ||
964 | -docdir | --docdir | --docdi | --doc | --do) | |
965 | ac_prev=docdir ;; | |
966 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
967 | docdir=$ac_optarg ;; | |
968 | ||
969 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
970 | ac_prev=dvidir ;; | |
971 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
972 | dvidir=$ac_optarg ;; | |
973 | ||
974 | -enable-* | --enable-*) | |
975 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
976 | # Reject names that are not valid shell variable names. | |
977 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
978 | as_fn_error $? "invalid feature name: $ac_useropt" | |
979 | ac_useropt_orig=$ac_useropt | |
980 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
981 | case $ac_user_opts in | |
982 | *" | |
983 | "enable_$ac_useropt" | |
984 | "*) ;; | |
985 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
986 | ac_unrecognized_sep=', ';; | |
987 | esac | |
988 | eval enable_$ac_useropt=\$ac_optarg ;; | |
989 | ||
990 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
991 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
992 | | --exec | --exe | --ex) | |
993 | ac_prev=exec_prefix ;; | |
994 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
995 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
996 | | --exec=* | --exe=* | --ex=*) | |
997 | exec_prefix=$ac_optarg ;; | |
998 | ||
999 | -gas | --gas | --ga | --g) | |
1000 | # Obsolete; use --with-gas. | |
1001 | with_gas=yes ;; | |
1002 | ||
1003 | -help | --help | --hel | --he | -h) | |
1004 | ac_init_help=long ;; | |
1005 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1006 | ac_init_help=recursive ;; | |
1007 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1008 | ac_init_help=short ;; | |
1009 | ||
1010 | -host | --host | --hos | --ho) | |
1011 | ac_prev=host_alias ;; | |
1012 | -host=* | --host=* | --hos=* | --ho=*) | |
1013 | host_alias=$ac_optarg ;; | |
1014 | ||
1015 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1016 | ac_prev=htmldir ;; | |
1017 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1018 | | --ht=*) | |
1019 | htmldir=$ac_optarg ;; | |
1020 | ||
1021 | -includedir | --includedir | --includedi | --included | --include \ | |
1022 | | --includ | --inclu | --incl | --inc) | |
1023 | ac_prev=includedir ;; | |
1024 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1025 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1026 | includedir=$ac_optarg ;; | |
1027 | ||
1028 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1029 | ac_prev=infodir ;; | |
1030 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1031 | infodir=$ac_optarg ;; | |
1032 | ||
1033 | -libdir | --libdir | --libdi | --libd) | |
1034 | ac_prev=libdir ;; | |
1035 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1036 | libdir=$ac_optarg ;; | |
1037 | ||
1038 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1039 | | --libexe | --libex | --libe) | |
1040 | ac_prev=libexecdir ;; | |
1041 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1042 | | --libexe=* | --libex=* | --libe=*) | |
1043 | libexecdir=$ac_optarg ;; | |
1044 | ||
1045 | -localedir | --localedir | --localedi | --localed | --locale) | |
1046 | ac_prev=localedir ;; | |
1047 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1048 | localedir=$ac_optarg ;; | |
1049 | ||
1050 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1051 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1052 | ac_prev=localstatedir ;; | |
1053 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1054 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1055 | localstatedir=$ac_optarg ;; | |
1056 | ||
1057 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1058 | ac_prev=mandir ;; | |
1059 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1060 | mandir=$ac_optarg ;; | |
1061 | ||
1062 | -nfp | --nfp | --nf) | |
1063 | # Obsolete; use --without-fp. | |
1064 | with_fp=no ;; | |
1065 | ||
1066 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1067 | | --no-cr | --no-c | -n) | |
1068 | no_create=yes ;; | |
1069 | ||
1070 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1071 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1072 | no_recursion=yes ;; | |
1073 | ||
1074 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1075 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1076 | | --oldin | --oldi | --old | --ol | --o) | |
1077 | ac_prev=oldincludedir ;; | |
1078 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1079 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1080 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1081 | oldincludedir=$ac_optarg ;; | |
1082 | ||
1083 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1084 | ac_prev=prefix ;; | |
1085 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1086 | prefix=$ac_optarg ;; | |
1087 | ||
1088 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1089 | | --program-pre | --program-pr | --program-p) | |
1090 | ac_prev=program_prefix ;; | |
1091 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1092 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1093 | program_prefix=$ac_optarg ;; | |
1094 | ||
1095 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1096 | | --program-suf | --program-su | --program-s) | |
1097 | ac_prev=program_suffix ;; | |
1098 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1099 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1100 | program_suffix=$ac_optarg ;; | |
1101 | ||
1102 | -program-transform-name | --program-transform-name \ | |
1103 | | --program-transform-nam | --program-transform-na \ | |
1104 | | --program-transform-n | --program-transform- \ | |
1105 | | --program-transform | --program-transfor \ | |
1106 | | --program-transfo | --program-transf \ | |
1107 | | --program-trans | --program-tran \ | |
1108 | | --progr-tra | --program-tr | --program-t) | |
1109 | ac_prev=program_transform_name ;; | |
1110 | -program-transform-name=* | --program-transform-name=* \ | |
1111 | | --program-transform-nam=* | --program-transform-na=* \ | |
1112 | | --program-transform-n=* | --program-transform-=* \ | |
1113 | | --program-transform=* | --program-transfor=* \ | |
1114 | | --program-transfo=* | --program-transf=* \ | |
1115 | | --program-trans=* | --program-tran=* \ | |
1116 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1117 | program_transform_name=$ac_optarg ;; | |
1118 | ||
1119 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1120 | ac_prev=pdfdir ;; | |
1121 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1122 | pdfdir=$ac_optarg ;; | |
1123 | ||
1124 | -psdir | --psdir | --psdi | --psd | --ps) | |
1125 | ac_prev=psdir ;; | |
1126 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1127 | psdir=$ac_optarg ;; | |
1128 | ||
1129 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1130 | | -silent | --silent | --silen | --sile | --sil) | |
1131 | silent=yes ;; | |
1132 | ||
1133 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
1134 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1135 | | --run | --ru | --r) | |
1136 | ac_prev=runstatedir ;; | |
1137 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1138 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1139 | | --run=* | --ru=* | --r=*) | |
1140 | runstatedir=$ac_optarg ;; | |
1141 | ||
1142 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1143 | ac_prev=sbindir ;; | |
1144 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1145 | | --sbi=* | --sb=*) | |
1146 | sbindir=$ac_optarg ;; | |
1147 | ||
1148 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1149 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1150 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1151 | | --sha | --sh) | |
1152 | ac_prev=sharedstatedir ;; | |
1153 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1154 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1155 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1156 | | --sha=* | --sh=*) | |
1157 | sharedstatedir=$ac_optarg ;; | |
1158 | ||
1159 | -site | --site | --sit) | |
1160 | ac_prev=site ;; | |
1161 | -site=* | --site=* | --sit=*) | |
1162 | site=$ac_optarg ;; | |
1163 | ||
1164 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1165 | ac_prev=srcdir ;; | |
1166 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1167 | srcdir=$ac_optarg ;; | |
1168 | ||
1169 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1170 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1171 | ac_prev=sysconfdir ;; | |
1172 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1173 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1174 | sysconfdir=$ac_optarg ;; | |
1175 | ||
1176 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1177 | ac_prev=target_alias ;; | |
1178 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1179 | target_alias=$ac_optarg ;; | |
1180 | ||
1181 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1182 | verbose=yes ;; | |
1183 | ||
1184 | -version | --version | --versio | --versi | --vers | -V) | |
1185 | ac_init_version=: ;; | |
1186 | ||
1187 | -with-* | --with-*) | |
1188 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1189 | # Reject names that are not valid shell variable names. | |
1190 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1191 | as_fn_error $? "invalid package name: $ac_useropt" | |
1192 | ac_useropt_orig=$ac_useropt | |
1193 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1194 | case $ac_user_opts in | |
1195 | *" | |
1196 | "with_$ac_useropt" | |
1197 | "*) ;; | |
1198 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1199 | ac_unrecognized_sep=', ';; | |
1200 | esac | |
1201 | eval with_$ac_useropt=\$ac_optarg ;; | |
1202 | ||
1203 | -without-* | --without-*) | |
1204 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1205 | # Reject names that are not valid shell variable names. | |
1206 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1207 | as_fn_error $? "invalid package name: $ac_useropt" | |
1208 | ac_useropt_orig=$ac_useropt | |
1209 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1210 | case $ac_user_opts in | |
1211 | *" | |
1212 | "with_$ac_useropt" | |
1213 | "*) ;; | |
1214 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1215 | ac_unrecognized_sep=', ';; | |
1216 | esac | |
1217 | eval with_$ac_useropt=no ;; | |
1218 | ||
1219 | --x) | |
1220 | # Obsolete; use --with-x. | |
1221 | with_x=yes ;; | |
1222 | ||
1223 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1224 | | --x-incl | --x-inc | --x-in | --x-i) | |
1225 | ac_prev=x_includes ;; | |
1226 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1227 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1228 | x_includes=$ac_optarg ;; | |
1229 | ||
1230 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1231 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1232 | ac_prev=x_libraries ;; | |
1233 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1234 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1235 | x_libraries=$ac_optarg ;; | |
1236 | ||
1237 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1238 | Try \`$0 --help' for more information" | |
1239 | ;; | |
1240 | ||
1241 | *=*) | |
1242 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1243 | # Reject names that are not valid shell variable names. | |
1244 | case $ac_envvar in #( | |
1245 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1246 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1247 | esac | |
1248 | eval $ac_envvar=\$ac_optarg | |
1249 | export $ac_envvar ;; | |
1250 | ||
1251 | *) | |
1252 | # FIXME: should be removed in autoconf 3.0. | |
1253 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1254 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1255 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1256 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1257 | ;; | |
1258 | ||
1259 | esac | |
1260 | done | |
1261 | ||
1262 | if test -n "$ac_prev"; then | |
1263 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1264 | as_fn_error $? "missing argument to $ac_option" | |
1265 | fi | |
1266 | ||
1267 | if test -n "$ac_unrecognized_opts"; then | |
1268 | case $enable_option_checking in | |
1269 | no) ;; | |
1270 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1271 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1272 | esac | |
1273 | fi | |
1274 | ||
1275 | # Check all directory arguments for consistency. | |
1276 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1277 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1278 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1279 | libdir localedir mandir runstatedir | |
1280 | do | |
1281 | eval ac_val=\$$ac_var | |
1282 | # Remove trailing slashes. | |
1283 | case $ac_val in | |
1284 | */ ) | |
1285 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1286 | eval $ac_var=\$ac_val;; | |
1287 | esac | |
1288 | # Be sure to have absolute directory names. | |
1289 | case $ac_val in | |
1290 | [\\/$]* | ?:[\\/]* ) continue;; | |
1291 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1292 | esac | |
1293 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1294 | done | |
1295 | ||
1296 | # There might be people who depend on the old broken behavior: `$host' | |
1297 | # used to hold the argument of --host etc. | |
1298 | # FIXME: To remove some day. | |
1299 | build=$build_alias | |
1300 | host=$host_alias | |
1301 | target=$target_alias | |
1302 | ||
1303 | # FIXME: To remove some day. | |
1304 | if test "x$host_alias" != x; then | |
1305 | if test "x$build_alias" = x; then | |
1306 | cross_compiling=maybe | |
1307 | elif test "x$build_alias" != "x$host_alias"; then | |
1308 | cross_compiling=yes | |
1309 | fi | |
1310 | fi | |
1311 | ||
1312 | ac_tool_prefix= | |
1313 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1314 | ||
1315 | test "$silent" = yes && exec 6>/dev/null | |
1316 | ||
1317 | ||
1318 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1319 | ac_ls_di=`ls -di .` && | |
1320 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1321 | as_fn_error $? "working directory cannot be determined" | |
1322 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1323 | as_fn_error $? "pwd does not report name of working directory" | |
1324 | ||
1325 | ||
1326 | # Find the source files, if location was not specified. | |
1327 | if test -z "$srcdir"; then | |
1328 | ac_srcdir_defaulted=yes | |
1329 | # Try the directory containing this script, then the parent directory. | |
1330 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1331 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1332 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1333 | X"$as_myself" : 'X\(//\)$' \| \ | |
1334 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1335 | $as_echo X"$as_myself" | | |
1336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | /^X\(\/\/\)[^/].*/{ | |
1341 | s//\1/ | |
1342 | q | |
1343 | } | |
1344 | /^X\(\/\/\)$/{ | |
1345 | s//\1/ | |
1346 | q | |
1347 | } | |
1348 | /^X\(\/\).*/{ | |
1349 | s//\1/ | |
1350 | q | |
1351 | } | |
1352 | s/.*/./; q'` | |
1353 | srcdir=$ac_confdir | |
1354 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1355 | srcdir=.. | |
1356 | fi | |
1357 | else | |
1358 | ac_srcdir_defaulted=no | |
1359 | fi | |
1360 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1361 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1362 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1363 | fi | |
1364 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1365 | ac_abs_confdir=`( | |
1366 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1367 | pwd)` | |
1368 | # When building in place, set srcdir=. | |
1369 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1370 | srcdir=. | |
1371 | fi | |
1372 | # Remove unnecessary trailing slashes from srcdir. | |
1373 | # Double slashes in file names in object file debugging info | |
1374 | # mess up M-x gdb in Emacs. | |
1375 | case $srcdir in | |
1376 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1377 | esac | |
1378 | for ac_var in $ac_precious_vars; do | |
1379 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1380 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1381 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1382 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1383 | done | |
1384 | ||
1385 | # | |
1386 | # Report the --help message. | |
1387 | # | |
1388 | if test "$ac_init_help" = "long"; then | |
1389 | # Omit some internal or obsolete options to make the list less imposing. | |
1390 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1391 | cat <<_ACEOF | |
b3a88519 | 1392 | \`configure' configures spl 0.7.5 to adapt to many kinds of systems. |
70e083d2 TG |
1393 | |
1394 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1395 | ||
1396 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1397 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1398 | ||
1399 | Defaults for the options are specified in brackets. | |
1400 | ||
1401 | Configuration: | |
1402 | -h, --help display this help and exit | |
1403 | --help=short display options specific to this package | |
1404 | --help=recursive display the short help of all the included packages | |
1405 | -V, --version display version information and exit | |
1406 | -q, --quiet, --silent do not print \`checking ...' messages | |
1407 | --cache-file=FILE cache test results in FILE [disabled] | |
1408 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1409 | -n, --no-create do not create output files | |
1410 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1411 | ||
1412 | Installation directories: | |
1413 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1414 | [$ac_default_prefix] | |
1415 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1416 | [PREFIX] | |
1417 | ||
1418 | By default, \`make install' will install all the files in | |
1419 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1420 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1421 | for instance \`--prefix=\$HOME'. | |
1422 | ||
1423 | For better control, use the options below. | |
1424 | ||
1425 | Fine tuning of the installation directories: | |
1426 | --bindir=DIR user executables [EPREFIX/bin] | |
1427 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1428 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1429 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1430 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1431 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1432 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
1433 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1434 | --includedir=DIR C header files [PREFIX/include] | |
1435 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1436 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1437 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1438 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1439 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1440 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1441 | --docdir=DIR documentation root [DATAROOTDIR/doc/spl] | |
1442 | --htmldir=DIR html documentation [DOCDIR] | |
1443 | --dvidir=DIR dvi documentation [DOCDIR] | |
1444 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1445 | --psdir=DIR ps documentation [DOCDIR] | |
1446 | _ACEOF | |
1447 | ||
1448 | cat <<\_ACEOF | |
1449 | ||
1450 | Program names: | |
1451 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1452 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1453 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1454 | ||
1455 | System types: | |
1456 | --build=BUILD configure for building on BUILD [guessed] | |
1457 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1458 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1459 | _ACEOF | |
1460 | fi | |
1461 | ||
1462 | if test -n "$ac_init_help"; then | |
1463 | case $ac_init_help in | |
b3a88519 | 1464 | short | recursive ) echo "Configuration of spl 0.7.5:";; |
70e083d2 TG |
1465 | esac |
1466 | cat <<\_ACEOF | |
1467 | ||
1468 | Optional Features: | |
1469 | --disable-option-checking ignore unrecognized --enable/--with options | |
1470 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1471 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1472 | --enable-maintainer-mode | |
1473 | enable make rules and dependencies not useful (and | |
1474 | sometimes confusing) to the casual installer | |
1475 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1476 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1477 | --enable-dependency-tracking | |
1478 | do not reject slow dependency extractors | |
1479 | --disable-dependency-tracking | |
1480 | speeds up one-time build | |
1481 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1482 | --enable-static[=PKGS] build static libraries [default=yes] | |
1483 | --enable-fast-install[=PKGS] | |
1484 | optimize for fast installation [default=yes] | |
1485 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1486 | --enable-linux-builtin Configure for builtin in-tree kernel modules | |
1487 | [default=no] | |
1488 | --enable-debug Enable generic debug support [default=no] | |
1489 | --enable-debug-kmem Enable basic kmem accounting [default=no] | |
1490 | --enable-debug-kmem-tracking | |
1491 | Enable detailed kmem tracking [default=no] | |
1492 | --enable-atomic-spinlocks | |
1493 | Atomic types use spinlocks [default=check] | |
1494 | ||
1495 | Optional Packages: | |
1496 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1497 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1498 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1499 | both] | |
1500 | --with-aix-soname=aix|svr4|both | |
1501 | shared library versioning (aka "SONAME") variant to | |
1502 | provide on AIX, [default=aix]. | |
1503 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1504 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the | |
1505 | compiler's sysroot if not specified). | |
1506 | --with-spec=SPEC Spec files 'generic|redhat' | |
1507 | --with-config=CONFIG Config file 'kernel|user|all|srpm' | |
1508 | --with-linux=PATH Path to kernel source | |
1509 | --with-linux-obj=PATH Path to kernel build objects | |
1510 | ||
1511 | Some influential environment variables: | |
1512 | CC C compiler command | |
1513 | CFLAGS C compiler flags | |
1514 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1515 | nonstandard directory <lib dir> | |
1516 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1517 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1518 | you have headers in a nonstandard directory <include dir> | |
1519 | LT_SYS_LIBRARY_PATH | |
1520 | User-defined run-time library search path. | |
1521 | CPP C preprocessor | |
1522 | ||
1523 | Use these variables to override the choices made by `configure' or to help | |
1524 | it to find libraries and programs with nonstandard names/locations. | |
1525 | ||
1526 | Report bugs to the package provider. | |
1527 | _ACEOF | |
1528 | ac_status=$? | |
1529 | fi | |
1530 | ||
1531 | if test "$ac_init_help" = "recursive"; then | |
1532 | # If there are subdirs, report their specific --help. | |
1533 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1534 | test -d "$ac_dir" || | |
1535 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1536 | continue | |
1537 | ac_builddir=. | |
1538 | ||
1539 | case "$ac_dir" in | |
1540 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1541 | *) | |
1542 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1543 | # A ".." for each directory in $ac_dir_suffix. | |
1544 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1545 | case $ac_top_builddir_sub in | |
1546 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1547 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1548 | esac ;; | |
1549 | esac | |
1550 | ac_abs_top_builddir=$ac_pwd | |
1551 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1552 | # for backward compatibility: | |
1553 | ac_top_builddir=$ac_top_build_prefix | |
1554 | ||
1555 | case $srcdir in | |
1556 | .) # We are building in place. | |
1557 | ac_srcdir=. | |
1558 | ac_top_srcdir=$ac_top_builddir_sub | |
1559 | ac_abs_top_srcdir=$ac_pwd ;; | |
1560 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1561 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1562 | ac_top_srcdir=$srcdir | |
1563 | ac_abs_top_srcdir=$srcdir ;; | |
1564 | *) # Relative name. | |
1565 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1566 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1567 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1568 | esac | |
1569 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1570 | ||
1571 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1572 | # Check for guested configure. | |
1573 | if test -f "$ac_srcdir/configure.gnu"; then | |
1574 | echo && | |
1575 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1576 | elif test -f "$ac_srcdir/configure"; then | |
1577 | echo && | |
1578 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1579 | else | |
1580 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1581 | fi || ac_status=$? | |
1582 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1583 | done | |
1584 | fi | |
1585 | ||
1586 | test -n "$ac_init_help" && exit $ac_status | |
1587 | if $ac_init_version; then | |
1588 | cat <<\_ACEOF | |
b3a88519 | 1589 | spl configure 0.7.5 |
70e083d2 TG |
1590 | generated by GNU Autoconf 2.69 |
1591 | ||
1592 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1593 | This configure script is free software; the Free Software Foundation | |
1594 | gives unlimited permission to copy, distribute and modify it. | |
1595 | _ACEOF | |
1596 | exit | |
1597 | fi | |
1598 | ||
1599 | ## ------------------------ ## | |
1600 | ## Autoconf initialization. ## | |
1601 | ## ------------------------ ## | |
1602 | ||
1603 | # ac_fn_c_try_compile LINENO | |
1604 | # -------------------------- | |
1605 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1606 | ac_fn_c_try_compile () | |
1607 | { | |
1608 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1609 | rm -f conftest.$ac_objext | |
1610 | if { { ac_try="$ac_compile" | |
1611 | case "(($ac_try" in | |
1612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1613 | *) ac_try_echo=$ac_try;; | |
1614 | esac | |
1615 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1616 | $as_echo "$ac_try_echo"; } >&5 | |
1617 | (eval "$ac_compile") 2>conftest.err | |
1618 | ac_status=$? | |
1619 | if test -s conftest.err; then | |
1620 | grep -v '^ *+' conftest.err >conftest.er1 | |
1621 | cat conftest.er1 >&5 | |
1622 | mv -f conftest.er1 conftest.err | |
1623 | fi | |
1624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1625 | test $ac_status = 0; } && { | |
1626 | test -z "$ac_c_werror_flag" || | |
1627 | test ! -s conftest.err | |
1628 | } && test -s conftest.$ac_objext; then : | |
1629 | ac_retval=0 | |
1630 | else | |
1631 | $as_echo "$as_me: failed program was:" >&5 | |
1632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1633 | ||
1634 | ac_retval=1 | |
1635 | fi | |
1636 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1637 | as_fn_set_status $ac_retval | |
1638 | ||
1639 | } # ac_fn_c_try_compile | |
1640 | ||
1641 | # ac_fn_c_try_link LINENO | |
1642 | # ----------------------- | |
1643 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1644 | ac_fn_c_try_link () | |
1645 | { | |
1646 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1648 | if { { ac_try="$ac_link" | |
1649 | case "(($ac_try" in | |
1650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1651 | *) ac_try_echo=$ac_try;; | |
1652 | esac | |
1653 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1654 | $as_echo "$ac_try_echo"; } >&5 | |
1655 | (eval "$ac_link") 2>conftest.err | |
1656 | ac_status=$? | |
1657 | if test -s conftest.err; then | |
1658 | grep -v '^ *+' conftest.err >conftest.er1 | |
1659 | cat conftest.er1 >&5 | |
1660 | mv -f conftest.er1 conftest.err | |
1661 | fi | |
1662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1663 | test $ac_status = 0; } && { | |
1664 | test -z "$ac_c_werror_flag" || | |
1665 | test ! -s conftest.err | |
1666 | } && test -s conftest$ac_exeext && { | |
1667 | test "$cross_compiling" = yes || | |
1668 | test -x conftest$ac_exeext | |
1669 | }; then : | |
1670 | ac_retval=0 | |
1671 | else | |
1672 | $as_echo "$as_me: failed program was:" >&5 | |
1673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1674 | ||
1675 | ac_retval=1 | |
1676 | fi | |
1677 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1678 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1679 | # interfere with the next link command; also delete a directory that is | |
1680 | # left behind by Apple's compiler. We do this before executing the actions. | |
1681 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1682 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1683 | as_fn_set_status $ac_retval | |
1684 | ||
1685 | } # ac_fn_c_try_link | |
1686 | ||
1687 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1688 | # ------------------------------------------------------- | |
1689 | # Tests whether HEADER exists and can be compiled using the include files in | |
1690 | # INCLUDES, setting the cache variable VAR accordingly. | |
1691 | ac_fn_c_check_header_compile () | |
1692 | { | |
1693 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1695 | $as_echo_n "checking for $2... " >&6; } | |
1696 | if eval \${$3+:} false; then : | |
1697 | $as_echo_n "(cached) " >&6 | |
1698 | else | |
1699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1700 | /* end confdefs.h. */ | |
1701 | $4 | |
1702 | #include <$2> | |
1703 | _ACEOF | |
1704 | if ac_fn_c_try_compile "$LINENO"; then : | |
1705 | eval "$3=yes" | |
1706 | else | |
1707 | eval "$3=no" | |
1708 | fi | |
1709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1710 | fi | |
1711 | eval ac_res=\$$3 | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1713 | $as_echo "$ac_res" >&6; } | |
1714 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1715 | ||
1716 | } # ac_fn_c_check_header_compile | |
1717 | ||
1718 | # ac_fn_c_try_cpp LINENO | |
1719 | # ---------------------- | |
1720 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1721 | ac_fn_c_try_cpp () | |
1722 | { | |
1723 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1724 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1725 | case "(($ac_try" in | |
1726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1727 | *) ac_try_echo=$ac_try;; | |
1728 | esac | |
1729 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1730 | $as_echo "$ac_try_echo"; } >&5 | |
1731 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1732 | ac_status=$? | |
1733 | if test -s conftest.err; then | |
1734 | grep -v '^ *+' conftest.err >conftest.er1 | |
1735 | cat conftest.er1 >&5 | |
1736 | mv -f conftest.er1 conftest.err | |
1737 | fi | |
1738 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1739 | test $ac_status = 0; } > conftest.i && { | |
1740 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1741 | test ! -s conftest.err | |
1742 | }; then : | |
1743 | ac_retval=0 | |
1744 | else | |
1745 | $as_echo "$as_me: failed program was:" >&5 | |
1746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1747 | ||
1748 | ac_retval=1 | |
1749 | fi | |
1750 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1751 | as_fn_set_status $ac_retval | |
1752 | ||
1753 | } # ac_fn_c_try_cpp | |
1754 | ||
1755 | # ac_fn_c_try_run LINENO | |
1756 | # ---------------------- | |
1757 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1758 | # that executables *can* be run. | |
1759 | ac_fn_c_try_run () | |
1760 | { | |
1761 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1762 | if { { ac_try="$ac_link" | |
1763 | case "(($ac_try" in | |
1764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1765 | *) ac_try_echo=$ac_try;; | |
1766 | esac | |
1767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1768 | $as_echo "$ac_try_echo"; } >&5 | |
1769 | (eval "$ac_link") 2>&5 | |
1770 | ac_status=$? | |
1771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1772 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1773 | { { case "(($ac_try" in | |
1774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1775 | *) ac_try_echo=$ac_try;; | |
1776 | esac | |
1777 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1778 | $as_echo "$ac_try_echo"; } >&5 | |
1779 | (eval "$ac_try") 2>&5 | |
1780 | ac_status=$? | |
1781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1782 | test $ac_status = 0; }; }; then : | |
1783 | ac_retval=0 | |
1784 | else | |
1785 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1786 | $as_echo "$as_me: failed program was:" >&5 | |
1787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1788 | ||
1789 | ac_retval=$ac_status | |
1790 | fi | |
1791 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1792 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1793 | as_fn_set_status $ac_retval | |
1794 | ||
1795 | } # ac_fn_c_try_run | |
1796 | ||
1797 | # ac_fn_c_check_func LINENO FUNC VAR | |
1798 | # ---------------------------------- | |
1799 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1800 | ac_fn_c_check_func () | |
1801 | { | |
1802 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1804 | $as_echo_n "checking for $2... " >&6; } | |
1805 | if eval \${$3+:} false; then : | |
1806 | $as_echo_n "(cached) " >&6 | |
1807 | else | |
1808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1809 | /* end confdefs.h. */ | |
1810 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1811 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1812 | #define $2 innocuous_$2 | |
1813 | ||
1814 | /* System header to define __stub macros and hopefully few prototypes, | |
1815 | which can conflict with char $2 (); below. | |
1816 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1817 | <limits.h> exists even on freestanding compilers. */ | |
1818 | ||
1819 | #ifdef __STDC__ | |
1820 | # include <limits.h> | |
1821 | #else | |
1822 | # include <assert.h> | |
1823 | #endif | |
1824 | ||
1825 | #undef $2 | |
1826 | ||
1827 | /* Override any GCC internal prototype to avoid an error. | |
1828 | Use char because int might match the return type of a GCC | |
1829 | builtin and then its argument prototype would still apply. */ | |
1830 | #ifdef __cplusplus | |
1831 | extern "C" | |
1832 | #endif | |
1833 | char $2 (); | |
1834 | /* The GNU C library defines this for functions which it implements | |
1835 | to always fail with ENOSYS. Some functions are actually named | |
1836 | something starting with __ and the normal name is an alias. */ | |
1837 | #if defined __stub_$2 || defined __stub___$2 | |
1838 | choke me | |
1839 | #endif | |
1840 | ||
1841 | int | |
1842 | main () | |
1843 | { | |
1844 | return $2 (); | |
1845 | ; | |
1846 | return 0; | |
1847 | } | |
1848 | _ACEOF | |
1849 | if ac_fn_c_try_link "$LINENO"; then : | |
1850 | eval "$3=yes" | |
1851 | else | |
1852 | eval "$3=no" | |
1853 | fi | |
1854 | rm -f core conftest.err conftest.$ac_objext \ | |
1855 | conftest$ac_exeext conftest.$ac_ext | |
1856 | fi | |
1857 | eval ac_res=\$$3 | |
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1859 | $as_echo "$ac_res" >&6; } | |
1860 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1861 | ||
1862 | } # ac_fn_c_check_func | |
1863 | cat >config.log <<_ACEOF | |
1864 | This file contains any messages produced by compilers while | |
1865 | running configure, to aid debugging if configure makes a mistake. | |
1866 | ||
b3a88519 | 1867 | It was created by spl $as_me 0.7.5, which was |
70e083d2 TG |
1868 | generated by GNU Autoconf 2.69. Invocation command line was |
1869 | ||
1870 | $ $0 $@ | |
1871 | ||
1872 | _ACEOF | |
1873 | exec 5>>config.log | |
1874 | { | |
1875 | cat <<_ASUNAME | |
1876 | ## --------- ## | |
1877 | ## Platform. ## | |
1878 | ## --------- ## | |
1879 | ||
1880 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1881 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1882 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1883 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1884 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1885 | ||
1886 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1887 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1888 | ||
1889 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1890 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1891 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1892 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1893 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1894 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1895 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1896 | ||
1897 | _ASUNAME | |
1898 | ||
1899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1900 | for as_dir in $PATH | |
1901 | do | |
1902 | IFS=$as_save_IFS | |
1903 | test -z "$as_dir" && as_dir=. | |
1904 | $as_echo "PATH: $as_dir" | |
1905 | done | |
1906 | IFS=$as_save_IFS | |
1907 | ||
1908 | } >&5 | |
1909 | ||
1910 | cat >&5 <<_ACEOF | |
1911 | ||
1912 | ||
1913 | ## ----------- ## | |
1914 | ## Core tests. ## | |
1915 | ## ----------- ## | |
1916 | ||
1917 | _ACEOF | |
1918 | ||
1919 | ||
1920 | # Keep a trace of the command line. | |
1921 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1922 | # Strip out --silent because we don't want to record it for future runs. | |
1923 | # Also quote any args containing shell meta-characters. | |
1924 | # Make two passes to allow for proper duplicate-argument suppression. | |
1925 | ac_configure_args= | |
1926 | ac_configure_args0= | |
1927 | ac_configure_args1= | |
1928 | ac_must_keep_next=false | |
1929 | for ac_pass in 1 2 | |
1930 | do | |
1931 | for ac_arg | |
1932 | do | |
1933 | case $ac_arg in | |
1934 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1935 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1936 | | -silent | --silent | --silen | --sile | --sil) | |
1937 | continue ;; | |
1938 | *\'*) | |
1939 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1940 | esac | |
1941 | case $ac_pass in | |
1942 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1943 | 2) | |
1944 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1945 | if test $ac_must_keep_next = true; then | |
1946 | ac_must_keep_next=false # Got value, back to normal. | |
1947 | else | |
1948 | case $ac_arg in | |
1949 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1950 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1951 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1952 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1953 | case "$ac_configure_args0 " in | |
1954 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1955 | esac | |
1956 | ;; | |
1957 | -* ) ac_must_keep_next=true ;; | |
1958 | esac | |
1959 | fi | |
1960 | as_fn_append ac_configure_args " '$ac_arg'" | |
1961 | ;; | |
1962 | esac | |
1963 | done | |
1964 | done | |
1965 | { ac_configure_args0=; unset ac_configure_args0;} | |
1966 | { ac_configure_args1=; unset ac_configure_args1;} | |
1967 | ||
1968 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1969 | # config.log. We remove comments because anyway the quotes in there | |
1970 | # would cause problems or look ugly. | |
1971 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1972 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1973 | trap 'exit_status=$? | |
1974 | # Save into config.log some information that might help in debugging. | |
1975 | { | |
1976 | echo | |
1977 | ||
1978 | $as_echo "## ---------------- ## | |
1979 | ## Cache variables. ## | |
1980 | ## ---------------- ##" | |
1981 | echo | |
1982 | # The following way of writing the cache mishandles newlines in values, | |
1983 | ( | |
1984 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1985 | eval ac_val=\$$ac_var | |
1986 | case $ac_val in #( | |
1987 | *${as_nl}*) | |
1988 | case $ac_var in #( | |
1989 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1990 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1991 | esac | |
1992 | case $ac_var in #( | |
1993 | _ | IFS | as_nl) ;; #( | |
1994 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1995 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1996 | esac ;; | |
1997 | esac | |
1998 | done | |
1999 | (set) 2>&1 | | |
2000 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2001 | *${as_nl}ac_space=\ *) | |
2002 | sed -n \ | |
2003 | "s/'\''/'\''\\\\'\'''\''/g; | |
2004 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2005 | ;; #( | |
2006 | *) | |
2007 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2008 | ;; | |
2009 | esac | | |
2010 | sort | |
2011 | ) | |
2012 | echo | |
2013 | ||
2014 | $as_echo "## ----------------- ## | |
2015 | ## Output variables. ## | |
2016 | ## ----------------- ##" | |
2017 | echo | |
2018 | for ac_var in $ac_subst_vars | |
2019 | do | |
2020 | eval ac_val=\$$ac_var | |
2021 | case $ac_val in | |
2022 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2023 | esac | |
2024 | $as_echo "$ac_var='\''$ac_val'\''" | |
2025 | done | sort | |
2026 | echo | |
2027 | ||
2028 | if test -n "$ac_subst_files"; then | |
2029 | $as_echo "## ------------------- ## | |
2030 | ## File substitutions. ## | |
2031 | ## ------------------- ##" | |
2032 | echo | |
2033 | for ac_var in $ac_subst_files | |
2034 | do | |
2035 | eval ac_val=\$$ac_var | |
2036 | case $ac_val in | |
2037 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2038 | esac | |
2039 | $as_echo "$ac_var='\''$ac_val'\''" | |
2040 | done | sort | |
2041 | echo | |
2042 | fi | |
2043 | ||
2044 | if test -s confdefs.h; then | |
2045 | $as_echo "## ----------- ## | |
2046 | ## confdefs.h. ## | |
2047 | ## ----------- ##" | |
2048 | echo | |
2049 | cat confdefs.h | |
2050 | echo | |
2051 | fi | |
2052 | test "$ac_signal" != 0 && | |
2053 | $as_echo "$as_me: caught signal $ac_signal" | |
2054 | $as_echo "$as_me: exit $exit_status" | |
2055 | } >&5 | |
2056 | rm -f core *.core core.conftest.* && | |
2057 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2058 | exit $exit_status | |
2059 | ' 0 | |
2060 | for ac_signal in 1 2 13 15; do | |
2061 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2062 | done | |
2063 | ac_signal=0 | |
2064 | ||
2065 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2066 | rm -f -r conftest* confdefs.h | |
2067 | ||
2068 | $as_echo "/* confdefs.h */" > confdefs.h | |
2069 | ||
2070 | # Predefined preprocessor variables. | |
2071 | ||
2072 | cat >>confdefs.h <<_ACEOF | |
2073 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2074 | _ACEOF | |
2075 | ||
2076 | cat >>confdefs.h <<_ACEOF | |
2077 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2078 | _ACEOF | |
2079 | ||
2080 | cat >>confdefs.h <<_ACEOF | |
2081 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2082 | _ACEOF | |
2083 | ||
2084 | cat >>confdefs.h <<_ACEOF | |
2085 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2086 | _ACEOF | |
2087 | ||
2088 | cat >>confdefs.h <<_ACEOF | |
2089 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2090 | _ACEOF | |
2091 | ||
2092 | cat >>confdefs.h <<_ACEOF | |
2093 | #define PACKAGE_URL "$PACKAGE_URL" | |
2094 | _ACEOF | |
2095 | ||
2096 | ||
2097 | # Let the site file select an alternate cache file if it wants to. | |
2098 | # Prefer an explicitly selected file to automatically selected ones. | |
2099 | ac_site_file1=NONE | |
2100 | ac_site_file2=NONE | |
2101 | if test -n "$CONFIG_SITE"; then | |
2102 | # We do not want a PATH search for config.site. | |
2103 | case $CONFIG_SITE in #(( | |
2104 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2105 | */*) ac_site_file1=$CONFIG_SITE;; | |
2106 | *) ac_site_file1=./$CONFIG_SITE;; | |
2107 | esac | |
2108 | elif test "x$prefix" != xNONE; then | |
2109 | ac_site_file1=$prefix/share/config.site | |
2110 | ac_site_file2=$prefix/etc/config.site | |
2111 | else | |
2112 | ac_site_file1=$ac_default_prefix/share/config.site | |
2113 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2114 | fi | |
2115 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2116 | do | |
2117 | test "x$ac_site_file" = xNONE && continue | |
2118 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2120 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2121 | sed 's/^/| /' "$ac_site_file" >&5 | |
2122 | . "$ac_site_file" \ | |
2123 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2124 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2125 | as_fn_error $? "failed to load site script $ac_site_file | |
2126 | See \`config.log' for more details" "$LINENO" 5; } | |
2127 | fi | |
2128 | done | |
2129 | ||
2130 | if test -r "$cache_file"; then | |
2131 | # Some versions of bash will fail to source /dev/null (special files | |
2132 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2133 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2135 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2136 | case $cache_file in | |
2137 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2138 | *) . "./$cache_file";; | |
2139 | esac | |
2140 | fi | |
2141 | else | |
2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2143 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2144 | >$cache_file | |
2145 | fi | |
2146 | ||
2147 | # Check that the precious variables saved in the cache have kept the same | |
2148 | # value. | |
2149 | ac_cache_corrupted=false | |
2150 | for ac_var in $ac_precious_vars; do | |
2151 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2152 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2153 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2154 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2155 | case $ac_old_set,$ac_new_set in | |
2156 | set,) | |
2157 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2158 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2159 | ac_cache_corrupted=: ;; | |
2160 | ,set) | |
2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2162 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2163 | ac_cache_corrupted=: ;; | |
2164 | ,);; | |
2165 | *) | |
2166 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2167 | # differences in whitespace do not lead to failure. | |
2168 | ac_old_val_w=`echo x $ac_old_val` | |
2169 | ac_new_val_w=`echo x $ac_new_val` | |
2170 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2172 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2173 | ac_cache_corrupted=: | |
2174 | else | |
2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2176 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2177 | eval $ac_var=\$ac_old_val | |
2178 | fi | |
2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2180 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2181 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2182 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2183 | fi;; | |
2184 | esac | |
2185 | # Pass precious variables to config.status. | |
2186 | if test "$ac_new_set" = set; then | |
2187 | case $ac_new_val in | |
2188 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2189 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2190 | esac | |
2191 | case " $ac_configure_args " in | |
2192 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2193 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2194 | esac | |
2195 | fi | |
2196 | done | |
2197 | if $ac_cache_corrupted; then | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2199 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2201 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2202 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2203 | fi | |
2204 | ## -------------------- ## | |
2205 | ## Main body of script. ## | |
2206 | ## -------------------- ## | |
2207 | ||
2208 | ac_ext=c | |
2209 | ac_cpp='$CPP $CPPFLAGS' | |
2210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2213 | ||
2214 | ||
2215 | ac_ext=c | |
2216 | ac_cpp='$CPP $CPPFLAGS' | |
2217 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2218 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2219 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2220 | ||
2221 | ||
2222 | for ac_prog in gawk mawk nawk awk | |
2223 | do | |
2224 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2225 | set dummy $ac_prog; ac_word=$2 | |
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2227 | $as_echo_n "checking for $ac_word... " >&6; } | |
2228 | if ${ac_cv_prog_AWK+:} false; then : | |
2229 | $as_echo_n "(cached) " >&6 | |
2230 | else | |
2231 | if test -n "$AWK"; then | |
2232 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2233 | else | |
2234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2235 | for as_dir in $PATH | |
2236 | do | |
2237 | IFS=$as_save_IFS | |
2238 | test -z "$as_dir" && as_dir=. | |
2239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2241 | ac_cv_prog_AWK="$ac_prog" | |
2242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2243 | break 2 | |
2244 | fi | |
2245 | done | |
2246 | done | |
2247 | IFS=$as_save_IFS | |
2248 | ||
2249 | fi | |
2250 | fi | |
2251 | AWK=$ac_cv_prog_AWK | |
2252 | if test -n "$AWK"; then | |
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2254 | $as_echo "$AWK" >&6; } | |
2255 | else | |
2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2257 | $as_echo "no" >&6; } | |
2258 | fi | |
2259 | ||
2260 | ||
2261 | test -n "$AWK" && break | |
2262 | done | |
2263 | ||
2264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5 | |
2265 | $as_echo_n "checking metadata... " >&6; } | |
2266 | ||
2267 | META="$srcdir/META" | |
2268 | _spl_ac_meta_type="none" | |
2269 | if test -f "$META"; then | |
2270 | _spl_ac_meta_type="META file" | |
2271 | ||
2272 | SPL_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`; | |
2273 | if test -n "$SPL_META_NAME"; then | |
2274 | ||
2275 | cat >>confdefs.h <<_ACEOF | |
2276 | #define SPL_META_NAME "$SPL_META_NAME" | |
2277 | _ACEOF | |
2278 | ||
2279 | ||
2280 | fi | |
2281 | ||
2282 | SPL_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`; | |
2283 | if test -n "$SPL_META_VERSION"; then | |
2284 | ||
2285 | cat >>confdefs.h <<_ACEOF | |
2286 | #define SPL_META_VERSION "$SPL_META_VERSION" | |
2287 | _ACEOF | |
2288 | ||
2289 | ||
2290 | fi | |
2291 | ||
2292 | SPL_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`; | |
2293 | if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then | |
2294 | _match="${SPL_META_NAME}-${SPL_META_VERSION}" | |
2295 | _alias=$(git describe --match=${_match} 2>/dev/null) | |
2296 | _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g') | |
2297 | if test -n "${_release}"; then | |
2298 | SPL_META_RELEASE=${_release} | |
2299 | _spl_ac_meta_type="git describe" | |
86e3c28a CIK |
2300 | else |
2301 | _match="${SPL_META_NAME}-${SPL_META_VERSION}-${SPL_META_RELEASE}" | |
2302 | _alias=$(git describe --match=${_match} 2>/dev/null) | |
2303 | _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g') | |
2304 | if test -n "${_release}"; then | |
2305 | SPL_META_RELEASE=${_release} | |
2306 | _spl_ac_meta_type="git describe" | |
2307 | fi | |
70e083d2 TG |
2308 | fi |
2309 | fi | |
2310 | ||
2311 | if test -n "$SPL_META_RELEASE"; then | |
2312 | ||
2313 | cat >>confdefs.h <<_ACEOF | |
2314 | #define SPL_META_RELEASE "$SPL_META_RELEASE" | |
2315 | _ACEOF | |
2316 | ||
2317 | ||
2318 | ||
2319 | RELEASE="$SPL_META_RELEASE" | |
2320 | ||
2321 | fi | |
2322 | ||
2323 | SPL_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`; | |
2324 | if test -n "$SPL_META_LICENSE"; then | |
2325 | ||
2326 | cat >>confdefs.h <<_ACEOF | |
2327 | #define SPL_META_LICENSE "$SPL_META_LICENSE" | |
2328 | _ACEOF | |
2329 | ||
2330 | ||
2331 | fi | |
2332 | ||
2333 | if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then | |
2334 | SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION" | |
2335 | test -n "$SPL_META_RELEASE" && | |
2336 | SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE" | |
2337 | ||
2338 | cat >>confdefs.h <<_ACEOF | |
2339 | #define SPL_META_ALIAS "$SPL_META_ALIAS" | |
2340 | _ACEOF | |
2341 | ||
2342 | ||
2343 | fi | |
2344 | ||
2345 | SPL_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`; | |
2346 | if test -n "$SPL_META_DATA"; then | |
2347 | ||
2348 | cat >>confdefs.h <<_ACEOF | |
2349 | #define SPL_META_DATA "$SPL_META_DATA" | |
2350 | _ACEOF | |
2351 | ||
2352 | ||
2353 | fi | |
2354 | ||
2355 | SPL_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`; | |
2356 | if test -n "$SPL_META_AUTHOR"; then | |
2357 | ||
2358 | cat >>confdefs.h <<_ACEOF | |
2359 | #define SPL_META_AUTHOR "$SPL_META_AUTHOR" | |
2360 | _ACEOF | |
2361 | ||
2362 | ||
2363 | fi | |
2364 | ||
2365 | ||
2366 | SPL_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`; | |
2367 | SPL_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`; | |
2368 | SPL_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`; | |
2369 | if test -n "$SPL_META_LT_CURRENT" \ | |
2370 | -o -n "$SPL_META_LT_REVISION" \ | |
2371 | -o -n "$SPL_META_LT_AGE"; then | |
2372 | test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0" | |
2373 | test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0" | |
2374 | test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0" | |
2375 | ||
2376 | cat >>confdefs.h <<_ACEOF | |
2377 | #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT" | |
2378 | _ACEOF | |
2379 | ||
2380 | ||
2381 | cat >>confdefs.h <<_ACEOF | |
2382 | #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION" | |
2383 | _ACEOF | |
2384 | ||
2385 | ||
2386 | cat >>confdefs.h <<_ACEOF | |
2387 | #define SPL_META_LT_AGE "$SPL_META_LT_AGE" | |
2388 | _ACEOF | |
2389 | ||
2390 | ||
2391 | ||
2392 | ||
2393 | fi | |
2394 | fi | |
2395 | ||
2396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_spl_ac_meta_type" >&5 | |
2397 | $as_echo "$_spl_ac_meta_type" >&6; } | |
2398 | ||
2399 | ||
2400 | ac_aux_dir= | |
2401 | for ac_dir in config "$srcdir"/config; do | |
2402 | if test -f "$ac_dir/install-sh"; then | |
2403 | ac_aux_dir=$ac_dir | |
2404 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2405 | break | |
2406 | elif test -f "$ac_dir/install.sh"; then | |
2407 | ac_aux_dir=$ac_dir | |
2408 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2409 | break | |
2410 | elif test -f "$ac_dir/shtool"; then | |
2411 | ac_aux_dir=$ac_dir | |
2412 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2413 | break | |
2414 | fi | |
2415 | done | |
2416 | if test -z "$ac_aux_dir"; then | |
2417 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 | |
2418 | fi | |
2419 | ||
2420 | # These three variables are undocumented and unsupported, | |
2421 | # and are intended to be withdrawn in a future Autoconf release. | |
2422 | # They can cause serious problems if a builder's source tree is in a directory | |
2423 | # whose full name contains unusual characters. | |
2424 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2425 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2426 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2427 | ||
2428 | ||
2429 | ||
2430 | # Make sure we can run config.sub. | |
2431 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2432 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2433 | ||
2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2435 | $as_echo_n "checking build system type... " >&6; } | |
2436 | if ${ac_cv_build+:} false; then : | |
2437 | $as_echo_n "(cached) " >&6 | |
2438 | else | |
2439 | ac_build_alias=$build_alias | |
2440 | test "x$ac_build_alias" = x && | |
2441 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2442 | test "x$ac_build_alias" = x && | |
2443 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2444 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2445 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2446 | ||
2447 | fi | |
2448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2449 | $as_echo "$ac_cv_build" >&6; } | |
2450 | case $ac_cv_build in | |
2451 | *-*-*) ;; | |
2452 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2453 | esac | |
2454 | build=$ac_cv_build | |
2455 | ac_save_IFS=$IFS; IFS='-' | |
2456 | set x $ac_cv_build | |
2457 | shift | |
2458 | build_cpu=$1 | |
2459 | build_vendor=$2 | |
2460 | shift; shift | |
2461 | # Remember, the first character of IFS is used to create $*, | |
2462 | # except with old shells: | |
2463 | build_os=$* | |
2464 | IFS=$ac_save_IFS | |
2465 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2466 | ||
2467 | ||
2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2469 | $as_echo_n "checking host system type... " >&6; } | |
2470 | if ${ac_cv_host+:} false; then : | |
2471 | $as_echo_n "(cached) " >&6 | |
2472 | else | |
2473 | if test "x$host_alias" = x; then | |
2474 | ac_cv_host=$ac_cv_build | |
2475 | else | |
2476 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2477 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2478 | fi | |
2479 | ||
2480 | fi | |
2481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2482 | $as_echo "$ac_cv_host" >&6; } | |
2483 | case $ac_cv_host in | |
2484 | *-*-*) ;; | |
2485 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2486 | esac | |
2487 | host=$ac_cv_host | |
2488 | ac_save_IFS=$IFS; IFS='-' | |
2489 | set x $ac_cv_host | |
2490 | shift | |
2491 | host_cpu=$1 | |
2492 | host_vendor=$2 | |
2493 | shift; shift | |
2494 | # Remember, the first character of IFS is used to create $*, | |
2495 | # except with old shells: | |
2496 | host_os=$* | |
2497 | IFS=$ac_save_IFS | |
2498 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2499 | ||
2500 | ||
2501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2502 | $as_echo_n "checking target system type... " >&6; } | |
2503 | if ${ac_cv_target+:} false; then : | |
2504 | $as_echo_n "(cached) " >&6 | |
2505 | else | |
2506 | if test "x$target_alias" = x; then | |
2507 | ac_cv_target=$ac_cv_host | |
2508 | else | |
2509 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2510 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2511 | fi | |
2512 | ||
2513 | fi | |
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2515 | $as_echo "$ac_cv_target" >&6; } | |
2516 | case $ac_cv_target in | |
2517 | *-*-*) ;; | |
2518 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2519 | esac | |
2520 | target=$ac_cv_target | |
2521 | ac_save_IFS=$IFS; IFS='-' | |
2522 | set x $ac_cv_target | |
2523 | shift | |
2524 | target_cpu=$1 | |
2525 | target_vendor=$2 | |
2526 | shift; shift | |
2527 | # Remember, the first character of IFS is used to create $*, | |
2528 | # except with old shells: | |
2529 | target_os=$* | |
2530 | IFS=$ac_save_IFS | |
2531 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2532 | ||
2533 | ||
2534 | # The aliases save the names the user supplied, while $host etc. | |
2535 | # will get canonicalized. | |
2536 | test -n "$target_alias" && | |
2537 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2538 | NONENONEs,x,x, && | |
2539 | program_prefix=${target_alias}- | |
2540 | ||
2541 | ||
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2543 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2544 | # Check whether --enable-maintainer-mode was given. | |
2545 | if test "${enable_maintainer_mode+set}" = set; then : | |
2546 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2547 | else | |
2548 | USE_MAINTAINER_MODE=no | |
2549 | fi | |
2550 | ||
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2552 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2553 | if test $USE_MAINTAINER_MODE = yes; then | |
2554 | MAINTAINER_MODE_TRUE= | |
2555 | MAINTAINER_MODE_FALSE='#' | |
2556 | else | |
2557 | MAINTAINER_MODE_TRUE='#' | |
2558 | MAINTAINER_MODE_FALSE= | |
2559 | fi | |
2560 | ||
2561 | MAINT=$MAINTAINER_MODE_TRUE | |
2562 | ||
2563 | ||
2564 | # Check whether --enable-silent-rules was given. | |
2565 | if test "${enable_silent_rules+set}" = set; then : | |
2566 | enableval=$enable_silent_rules; | |
2567 | fi | |
2568 | ||
2569 | case $enable_silent_rules in # ((( | |
2570 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2571 | no) AM_DEFAULT_VERBOSITY=1;; | |
2572 | *) AM_DEFAULT_VERBOSITY=0;; | |
2573 | esac | |
2574 | am_make=${MAKE-make} | |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2576 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2577 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2578 | $as_echo_n "(cached) " >&6 | |
2579 | else | |
2580 | if $as_echo 'TRUE=$(BAR$(V)) | |
2581 | BAR0=false | |
2582 | BAR1=true | |
2583 | V=1 | |
2584 | am__doit: | |
2585 | @$(TRUE) | |
2586 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2587 | am_cv_make_support_nested_variables=yes | |
2588 | else | |
2589 | am_cv_make_support_nested_variables=no | |
2590 | fi | |
2591 | fi | |
2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2593 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2594 | if test $am_cv_make_support_nested_variables = yes; then | |
2595 | AM_V='$(V)' | |
2596 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2597 | else | |
2598 | AM_V=$AM_DEFAULT_VERBOSITY | |
2599 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2600 | fi | |
2601 | AM_BACKSLASH='\' | |
2602 | ||
2603 | am__api_version='1.15' | |
2604 | ||
2605 | # Find a good install program. We prefer a C program (faster), | |
2606 | # so one script is as good as another. But avoid the broken or | |
2607 | # incompatible versions: | |
2608 | # SysV /etc/install, /usr/sbin/install | |
2609 | # SunOS /usr/etc/install | |
2610 | # IRIX /sbin/install | |
2611 | # AIX /bin/install | |
2612 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2613 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2614 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2615 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2616 | # OS/2's system install, which has a completely different semantic | |
2617 | # ./install, which can be erroneously created by make from ./install.sh. | |
2618 | # Reject install programs that cannot install multiple files. | |
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2620 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2621 | if test -z "$INSTALL"; then | |
2622 | if ${ac_cv_path_install+:} false; then : | |
2623 | $as_echo_n "(cached) " >&6 | |
2624 | else | |
2625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2626 | for as_dir in $PATH | |
2627 | do | |
2628 | IFS=$as_save_IFS | |
2629 | test -z "$as_dir" && as_dir=. | |
2630 | # Account for people who put trailing slashes in PATH elements. | |
2631 | case $as_dir/ in #(( | |
2632 | ./ | .// | /[cC]/* | \ | |
2633 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2634 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2635 | /usr/ucb/* ) ;; | |
2636 | *) | |
2637 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2638 | # Don't use installbsd from OSF since it installs stuff as root | |
2639 | # by default. | |
2640 | for ac_prog in ginstall scoinst install; do | |
2641 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2642 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2643 | if test $ac_prog = install && | |
2644 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2645 | # AIX install. It has an incompatible calling convention. | |
2646 | : | |
2647 | elif test $ac_prog = install && | |
2648 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2649 | # program-specific install script used by HP pwplus--don't use. | |
2650 | : | |
2651 | else | |
2652 | rm -rf conftest.one conftest.two conftest.dir | |
2653 | echo one > conftest.one | |
2654 | echo two > conftest.two | |
2655 | mkdir conftest.dir | |
2656 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2657 | test -s conftest.one && test -s conftest.two && | |
2658 | test -s conftest.dir/conftest.one && | |
2659 | test -s conftest.dir/conftest.two | |
2660 | then | |
2661 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2662 | break 3 | |
2663 | fi | |
2664 | fi | |
2665 | fi | |
2666 | done | |
2667 | done | |
2668 | ;; | |
2669 | esac | |
2670 | ||
2671 | done | |
2672 | IFS=$as_save_IFS | |
2673 | ||
2674 | rm -rf conftest.one conftest.two conftest.dir | |
2675 | ||
2676 | fi | |
2677 | if test "${ac_cv_path_install+set}" = set; then | |
2678 | INSTALL=$ac_cv_path_install | |
2679 | else | |
2680 | # As a last resort, use the slow shell script. Don't cache a | |
2681 | # value for INSTALL within a source directory, because that will | |
2682 | # break other packages using the cache if that directory is | |
2683 | # removed, or if the value is a relative name. | |
2684 | INSTALL=$ac_install_sh | |
2685 | fi | |
2686 | fi | |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2688 | $as_echo "$INSTALL" >&6; } | |
2689 | ||
2690 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2691 | # It thinks the first close brace ends the variable substitution. | |
2692 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2693 | ||
2694 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2695 | ||
2696 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2697 | ||
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2699 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2700 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2701 | # name. Accept space and tab only in the latter. | |
2702 | am_lf=' | |
2703 | ' | |
2704 | case `pwd` in | |
2705 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2706 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2707 | esac | |
2708 | case $srcdir in | |
2709 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2710 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2711 | esac | |
2712 | ||
2713 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2714 | # arguments. Must try -L first in case configure is actually a | |
2715 | # symlink; some systems play weird games with the mod time of symlinks | |
2716 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2717 | # directory). | |
2718 | if ( | |
2719 | am_has_slept=no | |
2720 | for am_try in 1 2; do | |
2721 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2722 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2723 | if test "$*" = "X"; then | |
2724 | # -L didn't work. | |
2725 | set X `ls -t "$srcdir/configure" conftest.file` | |
2726 | fi | |
2727 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2728 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2729 | ||
2730 | # If neither matched, then we have a broken ls. This can happen | |
2731 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2732 | # broken ls alias from the environment. This has actually | |
2733 | # happened. Such a system could not be considered "sane". | |
2734 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2735 | alias in your environment" "$LINENO" 5 | |
2736 | fi | |
2737 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2738 | break | |
2739 | fi | |
2740 | # Just in case. | |
2741 | sleep 1 | |
2742 | am_has_slept=yes | |
2743 | done | |
2744 | test "$2" = conftest.file | |
2745 | ) | |
2746 | then | |
2747 | # Ok. | |
2748 | : | |
2749 | else | |
2750 | as_fn_error $? "newly created file is older than distributed files! | |
2751 | Check your system clock" "$LINENO" 5 | |
2752 | fi | |
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2754 | $as_echo "yes" >&6; } | |
2755 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2756 | # generated files are strictly newer. | |
2757 | am_sleep_pid= | |
2758 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2759 | ( sleep 1 ) & | |
2760 | am_sleep_pid=$! | |
2761 | fi | |
2762 | ||
2763 | rm -f conftest.file | |
2764 | ||
2765 | test "$program_prefix" != NONE && | |
2766 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2767 | # Use a double $ so make ignores it. | |
2768 | test "$program_suffix" != NONE && | |
2769 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2770 | # Double any \ or $. | |
2771 | # By default was `s,x,x', remove it if useless. | |
2772 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2773 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2774 | ||
2775 | # Expand $ac_aux_dir to an absolute path. | |
2776 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2777 | ||
2778 | if test x"${MISSING+set}" != xset; then | |
2779 | case $am_aux_dir in | |
2780 | *\ * | *\ *) | |
2781 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2782 | *) | |
2783 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2784 | esac | |
2785 | fi | |
2786 | # Use eval to expand $SHELL | |
2787 | if eval "$MISSING --is-lightweight"; then | |
2788 | am_missing_run="$MISSING " | |
2789 | else | |
2790 | am_missing_run= | |
2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2792 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2793 | fi | |
2794 | ||
2795 | if test x"${install_sh+set}" != xset; then | |
2796 | case $am_aux_dir in | |
2797 | *\ * | *\ *) | |
2798 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2799 | *) | |
2800 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2801 | esac | |
2802 | fi | |
2803 | ||
2804 | # Installed binaries are usually stripped using 'strip' when the user | |
2805 | # run "make install-strip". However 'strip' might not be the right | |
2806 | # tool to use in cross-compilation environments, therefore Automake | |
2807 | # will honor the 'STRIP' environment variable to overrule this program. | |
2808 | if test "$cross_compiling" != no; then | |
2809 | if test -n "$ac_tool_prefix"; then | |
2810 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2811 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2813 | $as_echo_n "checking for $ac_word... " >&6; } | |
2814 | if ${ac_cv_prog_STRIP+:} false; then : | |
2815 | $as_echo_n "(cached) " >&6 | |
2816 | else | |
2817 | if test -n "$STRIP"; then | |
2818 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2819 | else | |
2820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2821 | for as_dir in $PATH | |
2822 | do | |
2823 | IFS=$as_save_IFS | |
2824 | test -z "$as_dir" && as_dir=. | |
2825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2827 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2829 | break 2 | |
2830 | fi | |
2831 | done | |
2832 | done | |
2833 | IFS=$as_save_IFS | |
2834 | ||
2835 | fi | |
2836 | fi | |
2837 | STRIP=$ac_cv_prog_STRIP | |
2838 | if test -n "$STRIP"; then | |
2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2840 | $as_echo "$STRIP" >&6; } | |
2841 | else | |
2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2843 | $as_echo "no" >&6; } | |
2844 | fi | |
2845 | ||
2846 | ||
2847 | fi | |
2848 | if test -z "$ac_cv_prog_STRIP"; then | |
2849 | ac_ct_STRIP=$STRIP | |
2850 | # Extract the first word of "strip", so it can be a program name with args. | |
2851 | set dummy strip; ac_word=$2 | |
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2853 | $as_echo_n "checking for $ac_word... " >&6; } | |
2854 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2855 | $as_echo_n "(cached) " >&6 | |
2856 | else | |
2857 | if test -n "$ac_ct_STRIP"; then | |
2858 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2859 | else | |
2860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2861 | for as_dir in $PATH | |
2862 | do | |
2863 | IFS=$as_save_IFS | |
2864 | test -z "$as_dir" && as_dir=. | |
2865 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2867 | ac_cv_prog_ac_ct_STRIP="strip" | |
2868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2869 | break 2 | |
2870 | fi | |
2871 | done | |
2872 | done | |
2873 | IFS=$as_save_IFS | |
2874 | ||
2875 | fi | |
2876 | fi | |
2877 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2878 | if test -n "$ac_ct_STRIP"; then | |
2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2880 | $as_echo "$ac_ct_STRIP" >&6; } | |
2881 | else | |
2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2883 | $as_echo "no" >&6; } | |
2884 | fi | |
2885 | ||
2886 | if test "x$ac_ct_STRIP" = x; then | |
2887 | STRIP=":" | |
2888 | else | |
2889 | case $cross_compiling:$ac_tool_warned in | |
2890 | yes:) | |
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2892 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2893 | ac_tool_warned=yes ;; | |
2894 | esac | |
2895 | STRIP=$ac_ct_STRIP | |
2896 | fi | |
2897 | else | |
2898 | STRIP="$ac_cv_prog_STRIP" | |
2899 | fi | |
2900 | ||
2901 | fi | |
2902 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2903 | ||
2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2905 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2906 | if test -z "$MKDIR_P"; then | |
2907 | if ${ac_cv_path_mkdir+:} false; then : | |
2908 | $as_echo_n "(cached) " >&6 | |
2909 | else | |
2910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2911 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2912 | do | |
2913 | IFS=$as_save_IFS | |
2914 | test -z "$as_dir" && as_dir=. | |
2915 | for ac_prog in mkdir gmkdir; do | |
2916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2917 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2918 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2919 | 'mkdir (GNU coreutils) '* | \ | |
2920 | 'mkdir (coreutils) '* | \ | |
2921 | 'mkdir (fileutils) '4.1*) | |
2922 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2923 | break 3;; | |
2924 | esac | |
2925 | done | |
2926 | done | |
2927 | done | |
2928 | IFS=$as_save_IFS | |
2929 | ||
2930 | fi | |
2931 | ||
2932 | test -d ./--version && rmdir ./--version | |
2933 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2934 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2935 | else | |
2936 | # As a last resort, use the slow shell script. Don't cache a | |
2937 | # value for MKDIR_P within a source directory, because that will | |
2938 | # break other packages using the cache if that directory is | |
2939 | # removed, or if the value is a relative name. | |
2940 | MKDIR_P="$ac_install_sh -d" | |
2941 | fi | |
2942 | fi | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2944 | $as_echo "$MKDIR_P" >&6; } | |
2945 | ||
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2947 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2948 | set x ${MAKE-make} | |
2949 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2950 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2951 | $as_echo_n "(cached) " >&6 | |
2952 | else | |
2953 | cat >conftest.make <<\_ACEOF | |
2954 | SHELL = /bin/sh | |
2955 | all: | |
2956 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2957 | _ACEOF | |
2958 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2959 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2960 | *@@@%%%=?*=@@@%%%*) | |
2961 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2962 | *) | |
2963 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2964 | esac | |
2965 | rm -f conftest.make | |
2966 | fi | |
2967 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2969 | $as_echo "yes" >&6; } | |
2970 | SET_MAKE= | |
2971 | else | |
2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2973 | $as_echo "no" >&6; } | |
2974 | SET_MAKE="MAKE=${MAKE-make}" | |
2975 | fi | |
2976 | ||
2977 | rm -rf .tst 2>/dev/null | |
2978 | mkdir .tst 2>/dev/null | |
2979 | if test -d .tst; then | |
2980 | am__leading_dot=. | |
2981 | else | |
2982 | am__leading_dot=_ | |
2983 | fi | |
2984 | rmdir .tst 2>/dev/null | |
2985 | ||
2986 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2987 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2988 | # is not polluted with repeated "-I." | |
2989 | am__isrc=' -I$(srcdir)' | |
2990 | # test to see if srcdir already configured | |
2991 | if test -f $srcdir/config.status; then | |
2992 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2993 | fi | |
2994 | fi | |
2995 | ||
2996 | # test whether we have cygpath | |
2997 | if test -z "$CYGPATH_W"; then | |
2998 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2999 | CYGPATH_W='cygpath -w' | |
3000 | else | |
3001 | CYGPATH_W=echo | |
3002 | fi | |
3003 | fi | |
3004 | ||
3005 | ||
3006 | # Define the identity of the package. | |
3007 | PACKAGE='spl' | |
b3a88519 | 3008 | VERSION='0.7.5' |
70e083d2 TG |
3009 | |
3010 | ||
3011 | cat >>confdefs.h <<_ACEOF | |
3012 | #define PACKAGE "$PACKAGE" | |
3013 | _ACEOF | |
3014 | ||
3015 | ||
3016 | cat >>confdefs.h <<_ACEOF | |
3017 | #define VERSION "$VERSION" | |
3018 | _ACEOF | |
3019 | ||
3020 | # Some tools Automake needs. | |
3021 | ||
3022 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3023 | ||
3024 | ||
3025 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3026 | ||
3027 | ||
3028 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3029 | ||
3030 | ||
3031 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3032 | ||
3033 | ||
3034 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3035 | ||
3036 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3037 | # dies out for good. For more background, see: | |
3038 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3039 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3040 | mkdir_p='$(MKDIR_P)' | |
3041 | ||
3042 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3043 | # system "awk" is bad on some platforms. | |
3044 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3045 | # in the wild :-( We should find a proper way to deprecate it ... | |
3046 | AMTAR='$${TAR-tar}' | |
3047 | ||
3048 | ||
3049 | # We'll loop over all known methods to create a tar archive until one works. | |
3050 | _am_tools='gnutar pax cpio none' | |
3051 | ||
3052 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3053 | ||
3054 | ||
3055 | ||
3056 | ||
3057 | ||
3058 | ||
3059 | # POSIX will say in a future version that running "rm -f" with no argument | |
3060 | # is OK; and we want to be able to make that assumption in our Makefile | |
3061 | # recipes. So use an aggressive probe to check that the usage we want is | |
3062 | # actually supported "in the wild" to an acceptable degree. | |
3063 | # See automake bug#10828. | |
3064 | # To make any issue more visible, cause the running configure to be aborted | |
3065 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3066 | # user can still override this though. | |
3067 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3068 | cat >&2 <<'END' | |
3069 | Oops! | |
3070 | ||
3071 | Your 'rm' program seems unable to run without file operands specified | |
3072 | on the command line, even when the '-f' option is present. This is contrary | |
3073 | to the behaviour of most rm programs out there, and not conforming with | |
3074 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3075 | ||
3076 | Please tell bug-automake@gnu.org about your system, including the value | |
3077 | of your $PATH and any error possibly output before this message. This | |
3078 | can help us improve future automake versions. | |
3079 | ||
3080 | END | |
3081 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3082 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3083 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3084 | echo >&2 | |
3085 | else | |
3086 | cat >&2 <<'END' | |
3087 | Aborting the configuration process, to ensure you take notice of the issue. | |
3088 | ||
3089 | You can download and install GNU coreutils to get an 'rm' implementation | |
3090 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3091 | ||
3092 | If you want to complete the configuration process using your problematic | |
3093 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3094 | to "yes", and re-run configure. | |
3095 | ||
3096 | END | |
3097 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3098 | fi | |
3099 | fi | |
3100 | ||
3101 | ac_config_headers="$ac_config_headers spl_config.h" | |
3102 | ||
3103 | ||
3104 | ||
3105 | ac_ext=c | |
3106 | ac_cpp='$CPP $CPPFLAGS' | |
3107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3110 | if test -n "$ac_tool_prefix"; then | |
3111 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3112 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3114 | $as_echo_n "checking for $ac_word... " >&6; } | |
3115 | if ${ac_cv_prog_CC+:} false; then : | |
3116 | $as_echo_n "(cached) " >&6 | |
3117 | else | |
3118 | if test -n "$CC"; then | |
3119 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3120 | else | |
3121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3122 | for as_dir in $PATH | |
3123 | do | |
3124 | IFS=$as_save_IFS | |
3125 | test -z "$as_dir" && as_dir=. | |
3126 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3128 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3130 | break 2 | |
3131 | fi | |
3132 | done | |
3133 | done | |
3134 | IFS=$as_save_IFS | |
3135 | ||
3136 | fi | |
3137 | fi | |
3138 | CC=$ac_cv_prog_CC | |
3139 | if test -n "$CC"; then | |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3141 | $as_echo "$CC" >&6; } | |
3142 | else | |
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3144 | $as_echo "no" >&6; } | |
3145 | fi | |
3146 | ||
3147 | ||
3148 | fi | |
3149 | if test -z "$ac_cv_prog_CC"; then | |
3150 | ac_ct_CC=$CC | |
3151 | # Extract the first word of "gcc", so it can be a program name with args. | |
3152 | set dummy gcc; ac_word=$2 | |
3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3154 | $as_echo_n "checking for $ac_word... " >&6; } | |
3155 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3156 | $as_echo_n "(cached) " >&6 | |
3157 | else | |
3158 | if test -n "$ac_ct_CC"; then | |
3159 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3160 | else | |
3161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3162 | for as_dir in $PATH | |
3163 | do | |
3164 | IFS=$as_save_IFS | |
3165 | test -z "$as_dir" && as_dir=. | |
3166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3168 | ac_cv_prog_ac_ct_CC="gcc" | |
3169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3170 | break 2 | |
3171 | fi | |
3172 | done | |
3173 | done | |
3174 | IFS=$as_save_IFS | |
3175 | ||
3176 | fi | |
3177 | fi | |
3178 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3179 | if test -n "$ac_ct_CC"; then | |
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3181 | $as_echo "$ac_ct_CC" >&6; } | |
3182 | else | |
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3184 | $as_echo "no" >&6; } | |
3185 | fi | |
3186 | ||
3187 | if test "x$ac_ct_CC" = x; then | |
3188 | CC="" | |
3189 | else | |
3190 | case $cross_compiling:$ac_tool_warned in | |
3191 | yes:) | |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3193 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3194 | ac_tool_warned=yes ;; | |
3195 | esac | |
3196 | CC=$ac_ct_CC | |
3197 | fi | |
3198 | else | |
3199 | CC="$ac_cv_prog_CC" | |
3200 | fi | |
3201 | ||
3202 | if test -z "$CC"; then | |
3203 | if test -n "$ac_tool_prefix"; then | |
3204 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3205 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3207 | $as_echo_n "checking for $ac_word... " >&6; } | |
3208 | if ${ac_cv_prog_CC+:} false; then : | |
3209 | $as_echo_n "(cached) " >&6 | |
3210 | else | |
3211 | if test -n "$CC"; then | |
3212 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3213 | else | |
3214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3215 | for as_dir in $PATH | |
3216 | do | |
3217 | IFS=$as_save_IFS | |
3218 | test -z "$as_dir" && as_dir=. | |
3219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3221 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3223 | break 2 | |
3224 | fi | |
3225 | done | |
3226 | done | |
3227 | IFS=$as_save_IFS | |
3228 | ||
3229 | fi | |
3230 | fi | |
3231 | CC=$ac_cv_prog_CC | |
3232 | if test -n "$CC"; then | |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3234 | $as_echo "$CC" >&6; } | |
3235 | else | |
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3237 | $as_echo "no" >&6; } | |
3238 | fi | |
3239 | ||
3240 | ||
3241 | fi | |
3242 | fi | |
3243 | if test -z "$CC"; then | |
3244 | # Extract the first word of "cc", so it can be a program name with args. | |
3245 | set dummy cc; ac_word=$2 | |
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3247 | $as_echo_n "checking for $ac_word... " >&6; } | |
3248 | if ${ac_cv_prog_CC+:} false; then : | |
3249 | $as_echo_n "(cached) " >&6 | |
3250 | else | |
3251 | if test -n "$CC"; then | |
3252 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3253 | else | |
3254 | ac_prog_rejected=no | |
3255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3256 | for as_dir in $PATH | |
3257 | do | |
3258 | IFS=$as_save_IFS | |
3259 | test -z "$as_dir" && as_dir=. | |
3260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3261 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3262 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3263 | ac_prog_rejected=yes | |
3264 | continue | |
3265 | fi | |
3266 | ac_cv_prog_CC="cc" | |
3267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3268 | break 2 | |
3269 | fi | |
3270 | done | |
3271 | done | |
3272 | IFS=$as_save_IFS | |
3273 | ||
3274 | if test $ac_prog_rejected = yes; then | |
3275 | # We found a bogon in the path, so make sure we never use it. | |
3276 | set dummy $ac_cv_prog_CC | |
3277 | shift | |
3278 | if test $# != 0; then | |
3279 | # We chose a different compiler from the bogus one. | |
3280 | # However, it has the same basename, so the bogon will be chosen | |
3281 | # first if we set CC to just the basename; use the full file name. | |
3282 | shift | |
3283 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3284 | fi | |
3285 | fi | |
3286 | fi | |
3287 | fi | |
3288 | CC=$ac_cv_prog_CC | |
3289 | if test -n "$CC"; then | |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3291 | $as_echo "$CC" >&6; } | |
3292 | else | |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3294 | $as_echo "no" >&6; } | |
3295 | fi | |
3296 | ||
3297 | ||
3298 | fi | |
3299 | if test -z "$CC"; then | |
3300 | if test -n "$ac_tool_prefix"; then | |
3301 | for ac_prog in cl.exe | |
3302 | do | |
3303 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3304 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3306 | $as_echo_n "checking for $ac_word... " >&6; } | |
3307 | if ${ac_cv_prog_CC+:} false; then : | |
3308 | $as_echo_n "(cached) " >&6 | |
3309 | else | |
3310 | if test -n "$CC"; then | |
3311 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3312 | else | |
3313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3314 | for as_dir in $PATH | |
3315 | do | |
3316 | IFS=$as_save_IFS | |
3317 | test -z "$as_dir" && as_dir=. | |
3318 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3319 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3320 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3322 | break 2 | |
3323 | fi | |
3324 | done | |
3325 | done | |
3326 | IFS=$as_save_IFS | |
3327 | ||
3328 | fi | |
3329 | fi | |
3330 | CC=$ac_cv_prog_CC | |
3331 | if test -n "$CC"; then | |
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3333 | $as_echo "$CC" >&6; } | |
3334 | else | |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3336 | $as_echo "no" >&6; } | |
3337 | fi | |
3338 | ||
3339 | ||
3340 | test -n "$CC" && break | |
3341 | done | |
3342 | fi | |
3343 | if test -z "$CC"; then | |
3344 | ac_ct_CC=$CC | |
3345 | for ac_prog in cl.exe | |
3346 | do | |
3347 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3348 | set dummy $ac_prog; ac_word=$2 | |
3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3350 | $as_echo_n "checking for $ac_word... " >&6; } | |
3351 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3352 | $as_echo_n "(cached) " >&6 | |
3353 | else | |
3354 | if test -n "$ac_ct_CC"; then | |
3355 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3356 | else | |
3357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3358 | for as_dir in $PATH | |
3359 | do | |
3360 | IFS=$as_save_IFS | |
3361 | test -z "$as_dir" && as_dir=. | |
3362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3363 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3364 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3366 | break 2 | |
3367 | fi | |
3368 | done | |
3369 | done | |
3370 | IFS=$as_save_IFS | |
3371 | ||
3372 | fi | |
3373 | fi | |
3374 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3375 | if test -n "$ac_ct_CC"; then | |
3376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3377 | $as_echo "$ac_ct_CC" >&6; } | |
3378 | else | |
3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3380 | $as_echo "no" >&6; } | |
3381 | fi | |
3382 | ||
3383 | ||
3384 | test -n "$ac_ct_CC" && break | |
3385 | done | |
3386 | ||
3387 | if test "x$ac_ct_CC" = x; then | |
3388 | CC="" | |
3389 | else | |
3390 | case $cross_compiling:$ac_tool_warned in | |
3391 | yes:) | |
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3393 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3394 | ac_tool_warned=yes ;; | |
3395 | esac | |
3396 | CC=$ac_ct_CC | |
3397 | fi | |
3398 | fi | |
3399 | ||
3400 | fi | |
3401 | ||
3402 | ||
3403 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3405 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3406 | See \`config.log' for more details" "$LINENO" 5; } | |
3407 | ||
3408 | # Provide some information about the compiler. | |
3409 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3410 | set X $ac_compile | |
3411 | ac_compiler=$2 | |
3412 | for ac_option in --version -v -V -qversion; do | |
3413 | { { ac_try="$ac_compiler $ac_option >&5" | |
3414 | case "(($ac_try" in | |
3415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3416 | *) ac_try_echo=$ac_try;; | |
3417 | esac | |
3418 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3419 | $as_echo "$ac_try_echo"; } >&5 | |
3420 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3421 | ac_status=$? | |
3422 | if test -s conftest.err; then | |
3423 | sed '10a\ | |
3424 | ... rest of stderr output deleted ... | |
3425 | 10q' conftest.err >conftest.er1 | |
3426 | cat conftest.er1 >&5 | |
3427 | fi | |
3428 | rm -f conftest.er1 conftest.err | |
3429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3430 | test $ac_status = 0; } | |
3431 | done | |
3432 | ||
3433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3434 | /* end confdefs.h. */ | |
3435 | ||
3436 | int | |
3437 | main () | |
3438 | { | |
3439 | ||
3440 | ; | |
3441 | return 0; | |
3442 | } | |
3443 | _ACEOF | |
3444 | ac_clean_files_save=$ac_clean_files | |
3445 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3446 | # Try to create an executable without -o first, disregard a.out. | |
3447 | # It will help us diagnose broken compilers, and finding out an intuition | |
3448 | # of exeext. | |
3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3450 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3451 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3452 | ||
3453 | # The possible output files: | |
3454 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3455 | ||
3456 | ac_rmfiles= | |
3457 | for ac_file in $ac_files | |
3458 | do | |
3459 | case $ac_file in | |
3460 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3461 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3462 | esac | |
3463 | done | |
3464 | rm -f $ac_rmfiles | |
3465 | ||
3466 | if { { ac_try="$ac_link_default" | |
3467 | case "(($ac_try" in | |
3468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3469 | *) ac_try_echo=$ac_try;; | |
3470 | esac | |
3471 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3472 | $as_echo "$ac_try_echo"; } >&5 | |
3473 | (eval "$ac_link_default") 2>&5 | |
3474 | ac_status=$? | |
3475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3476 | test $ac_status = 0; }; then : | |
3477 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3478 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3479 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3480 | # so that the user can short-circuit this test for compilers unknown to | |
3481 | # Autoconf. | |
3482 | for ac_file in $ac_files '' | |
3483 | do | |
3484 | test -f "$ac_file" || continue | |
3485 | case $ac_file in | |
3486 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3487 | ;; | |
3488 | [ab].out ) | |
3489 | # We found the default executable, but exeext='' is most | |
3490 | # certainly right. | |
3491 | break;; | |
3492 | *.* ) | |
3493 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3494 | then :; else | |
3495 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3496 | fi | |
3497 | # We set ac_cv_exeext here because the later test for it is not | |
3498 | # safe: cross compilers may not add the suffix if given an `-o' | |
3499 | # argument, so we may need to know it at that point already. | |
3500 | # Even if this section looks crufty: it has the advantage of | |
3501 | # actually working. | |
3502 | break;; | |
3503 | * ) | |
3504 | break;; | |
3505 | esac | |
3506 | done | |
3507 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3508 | ||
3509 | else | |
3510 | ac_file='' | |
3511 | fi | |
3512 | if test -z "$ac_file"; then : | |
3513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3514 | $as_echo "no" >&6; } | |
3515 | $as_echo "$as_me: failed program was:" >&5 | |
3516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3517 | ||
3518 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3519 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3520 | as_fn_error 77 "C compiler cannot create executables | |
3521 | See \`config.log' for more details" "$LINENO" 5; } | |
3522 | else | |
3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3524 | $as_echo "yes" >&6; } | |
3525 | fi | |
3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3527 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3529 | $as_echo "$ac_file" >&6; } | |
3530 | ac_exeext=$ac_cv_exeext | |
3531 | ||
3532 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3533 | ac_clean_files=$ac_clean_files_save | |
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3535 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3536 | if { { ac_try="$ac_link" | |
3537 | case "(($ac_try" in | |
3538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3539 | *) ac_try_echo=$ac_try;; | |
3540 | esac | |
3541 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3542 | $as_echo "$ac_try_echo"; } >&5 | |
3543 | (eval "$ac_link") 2>&5 | |
3544 | ac_status=$? | |
3545 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3546 | test $ac_status = 0; }; then : | |
3547 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3548 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3549 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3550 | # `rm'. | |
3551 | for ac_file in conftest.exe conftest conftest.*; do | |
3552 | test -f "$ac_file" || continue | |
3553 | case $ac_file in | |
3554 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3555 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3556 | break;; | |
3557 | * ) break;; | |
3558 | esac | |
3559 | done | |
3560 | else | |
3561 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3562 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3563 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3564 | See \`config.log' for more details" "$LINENO" 5; } | |
3565 | fi | |
3566 | rm -f conftest conftest$ac_cv_exeext | |
3567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3568 | $as_echo "$ac_cv_exeext" >&6; } | |
3569 | ||
3570 | rm -f conftest.$ac_ext | |
3571 | EXEEXT=$ac_cv_exeext | |
3572 | ac_exeext=$EXEEXT | |
3573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3574 | /* end confdefs.h. */ | |
3575 | #include <stdio.h> | |
3576 | int | |
3577 | main () | |
3578 | { | |
3579 | FILE *f = fopen ("conftest.out", "w"); | |
3580 | return ferror (f) || fclose (f) != 0; | |
3581 | ||
3582 | ; | |
3583 | return 0; | |
3584 | } | |
3585 | _ACEOF | |
3586 | ac_clean_files="$ac_clean_files conftest.out" | |
3587 | # Check that the compiler produces executables we can run. If not, either | |
3588 | # the compiler is broken, or we cross compile. | |
3589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3590 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3591 | if test "$cross_compiling" != yes; then | |
3592 | { { ac_try="$ac_link" | |
3593 | case "(($ac_try" in | |
3594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3595 | *) ac_try_echo=$ac_try;; | |
3596 | esac | |
3597 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3598 | $as_echo "$ac_try_echo"; } >&5 | |
3599 | (eval "$ac_link") 2>&5 | |
3600 | ac_status=$? | |
3601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3602 | test $ac_status = 0; } | |
3603 | if { ac_try='./conftest$ac_cv_exeext' | |
3604 | { { case "(($ac_try" in | |
3605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3606 | *) ac_try_echo=$ac_try;; | |
3607 | esac | |
3608 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3609 | $as_echo "$ac_try_echo"; } >&5 | |
3610 | (eval "$ac_try") 2>&5 | |
3611 | ac_status=$? | |
3612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3613 | test $ac_status = 0; }; }; then | |
3614 | cross_compiling=no | |
3615 | else | |
3616 | if test "$cross_compiling" = maybe; then | |
3617 | cross_compiling=yes | |
3618 | else | |
3619 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3620 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3621 | as_fn_error $? "cannot run C compiled programs. | |
3622 | If you meant to cross compile, use \`--host'. | |
3623 | See \`config.log' for more details" "$LINENO" 5; } | |
3624 | fi | |
3625 | fi | |
3626 | fi | |
3627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3628 | $as_echo "$cross_compiling" >&6; } | |
3629 | ||
3630 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3631 | ac_clean_files=$ac_clean_files_save | |
3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3633 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3634 | if ${ac_cv_objext+:} false; then : | |
3635 | $as_echo_n "(cached) " >&6 | |
3636 | else | |
3637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3638 | /* end confdefs.h. */ | |
3639 | ||
3640 | int | |
3641 | main () | |
3642 | { | |
3643 | ||
3644 | ; | |
3645 | return 0; | |
3646 | } | |
3647 | _ACEOF | |
3648 | rm -f conftest.o conftest.obj | |
3649 | if { { ac_try="$ac_compile" | |
3650 | case "(($ac_try" in | |
3651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3652 | *) ac_try_echo=$ac_try;; | |
3653 | esac | |
3654 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3655 | $as_echo "$ac_try_echo"; } >&5 | |
3656 | (eval "$ac_compile") 2>&5 | |
3657 | ac_status=$? | |
3658 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3659 | test $ac_status = 0; }; then : | |
3660 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3661 | test -f "$ac_file" || continue; | |
3662 | case $ac_file in | |
3663 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3664 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3665 | break;; | |
3666 | esac | |
3667 | done | |
3668 | else | |
3669 | $as_echo "$as_me: failed program was:" >&5 | |
3670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3671 | ||
3672 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3673 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3674 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3675 | See \`config.log' for more details" "$LINENO" 5; } | |
3676 | fi | |
3677 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3678 | fi | |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3680 | $as_echo "$ac_cv_objext" >&6; } | |
3681 | OBJEXT=$ac_cv_objext | |
3682 | ac_objext=$OBJEXT | |
3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3684 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3685 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3686 | $as_echo_n "(cached) " >&6 | |
3687 | else | |
3688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3689 | /* end confdefs.h. */ | |
3690 | ||
3691 | int | |
3692 | main () | |
3693 | { | |
3694 | #ifndef __GNUC__ | |
3695 | choke me | |
3696 | #endif | |
3697 | ||
3698 | ; | |
3699 | return 0; | |
3700 | } | |
3701 | _ACEOF | |
3702 | if ac_fn_c_try_compile "$LINENO"; then : | |
3703 | ac_compiler_gnu=yes | |
3704 | else | |
3705 | ac_compiler_gnu=no | |
3706 | fi | |
3707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3708 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3709 | ||
3710 | fi | |
3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3712 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3713 | if test $ac_compiler_gnu = yes; then | |
3714 | GCC=yes | |
3715 | else | |
3716 | GCC= | |
3717 | fi | |
3718 | ac_test_CFLAGS=${CFLAGS+set} | |
3719 | ac_save_CFLAGS=$CFLAGS | |
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3721 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3722 | if ${ac_cv_prog_cc_g+:} false; then : | |
3723 | $as_echo_n "(cached) " >&6 | |
3724 | else | |
3725 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3726 | ac_c_werror_flag=yes | |
3727 | ac_cv_prog_cc_g=no | |
3728 | CFLAGS="-g" | |
3729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3730 | /* end confdefs.h. */ | |
3731 | ||
3732 | int | |
3733 | main () | |
3734 | { | |
3735 | ||
3736 | ; | |
3737 | return 0; | |
3738 | } | |
3739 | _ACEOF | |
3740 | if ac_fn_c_try_compile "$LINENO"; then : | |
3741 | ac_cv_prog_cc_g=yes | |
3742 | else | |
3743 | CFLAGS="" | |
3744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3745 | /* end confdefs.h. */ | |
3746 | ||
3747 | int | |
3748 | main () | |
3749 | { | |
3750 | ||
3751 | ; | |
3752 | return 0; | |
3753 | } | |
3754 | _ACEOF | |
3755 | if ac_fn_c_try_compile "$LINENO"; then : | |
3756 | ||
3757 | else | |
3758 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3759 | CFLAGS="-g" | |
3760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3761 | /* end confdefs.h. */ | |
3762 | ||
3763 | int | |
3764 | main () | |
3765 | { | |
3766 | ||
3767 | ; | |
3768 | return 0; | |
3769 | } | |
3770 | _ACEOF | |
3771 | if ac_fn_c_try_compile "$LINENO"; then : | |
3772 | ac_cv_prog_cc_g=yes | |
3773 | fi | |
3774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3775 | fi | |
3776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3777 | fi | |
3778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3779 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3780 | fi | |
3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3782 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3783 | if test "$ac_test_CFLAGS" = set; then | |
3784 | CFLAGS=$ac_save_CFLAGS | |
3785 | elif test $ac_cv_prog_cc_g = yes; then | |
3786 | if test "$GCC" = yes; then | |
3787 | CFLAGS="-g -O2" | |
3788 | else | |
3789 | CFLAGS="-g" | |
3790 | fi | |
3791 | else | |
3792 | if test "$GCC" = yes; then | |
3793 | CFLAGS="-O2" | |
3794 | else | |
3795 | CFLAGS= | |
3796 | fi | |
3797 | fi | |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3799 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3800 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3801 | $as_echo_n "(cached) " >&6 | |
3802 | else | |
3803 | ac_cv_prog_cc_c89=no | |
3804 | ac_save_CC=$CC | |
3805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3806 | /* end confdefs.h. */ | |
3807 | #include <stdarg.h> | |
3808 | #include <stdio.h> | |
3809 | struct stat; | |
3810 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3811 | struct buf { int x; }; | |
3812 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3813 | static char *e (p, i) | |
3814 | char **p; | |
3815 | int i; | |
3816 | { | |
3817 | return p[i]; | |
3818 | } | |
3819 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3820 | { | |
3821 | char *s; | |
3822 | va_list v; | |
3823 | va_start (v,p); | |
3824 | s = g (p, va_arg (v,int)); | |
3825 | va_end (v); | |
3826 | return s; | |
3827 | } | |
3828 | ||
3829 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3830 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3831 | These don't provoke an error unfortunately, instead are silently treated | |
3832 | as 'x'. The following induces an error, until -std is added to get | |
3833 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3834 | array size at least. It's necessary to write '\x00'==0 to get something | |
3835 | that's true only with -std. */ | |
3836 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3837 | ||
3838 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3839 | inside strings and character constants. */ | |
3840 | #define FOO(x) 'x' | |
3841 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3842 | ||
3843 | int test (int i, double x); | |
3844 | struct s1 {int (*f) (int a);}; | |
3845 | struct s2 {int (*f) (double a);}; | |
3846 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3847 | int argc; | |
3848 | char **argv; | |
3849 | int | |
3850 | main () | |
3851 | { | |
3852 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3853 | ; | |
3854 | return 0; | |
3855 | } | |
3856 | _ACEOF | |
3857 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3858 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3859 | do | |
3860 | CC="$ac_save_CC $ac_arg" | |
3861 | if ac_fn_c_try_compile "$LINENO"; then : | |
3862 | ac_cv_prog_cc_c89=$ac_arg | |
3863 | fi | |
3864 | rm -f core conftest.err conftest.$ac_objext | |
3865 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3866 | done | |
3867 | rm -f conftest.$ac_ext | |
3868 | CC=$ac_save_CC | |
3869 | ||
3870 | fi | |
3871 | # AC_CACHE_VAL | |
3872 | case "x$ac_cv_prog_cc_c89" in | |
3873 | x) | |
3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3875 | $as_echo "none needed" >&6; } ;; | |
3876 | xno) | |
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3878 | $as_echo "unsupported" >&6; } ;; | |
3879 | *) | |
3880 | CC="$CC $ac_cv_prog_cc_c89" | |
3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3882 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3883 | esac | |
3884 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3885 | ||
3886 | fi | |
3887 | ||
3888 | ac_ext=c | |
3889 | ac_cpp='$CPP $CPPFLAGS' | |
3890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3893 | ||
3894 | ac_ext=c | |
3895 | ac_cpp='$CPP $CPPFLAGS' | |
3896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3900 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3901 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3902 | $as_echo_n "(cached) " >&6 | |
3903 | else | |
3904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3905 | /* end confdefs.h. */ | |
3906 | ||
3907 | int | |
3908 | main () | |
3909 | { | |
3910 | ||
3911 | ; | |
3912 | return 0; | |
3913 | } | |
3914 | _ACEOF | |
3915 | # Make sure it works both with $CC and with simple cc. | |
3916 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3917 | # compilers refuse to overwrite an existing .o file with -o, | |
3918 | # though they will create one. | |
3919 | am_cv_prog_cc_c_o=yes | |
3920 | for am_i in 1 2; do | |
3921 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3922 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3923 | ac_status=$? | |
3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3925 | (exit $ac_status); } \ | |
3926 | && test -f conftest2.$ac_objext; then | |
3927 | : OK | |
3928 | else | |
3929 | am_cv_prog_cc_c_o=no | |
3930 | break | |
3931 | fi | |
3932 | done | |
3933 | rm -f core conftest* | |
3934 | unset am_i | |
3935 | fi | |
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3937 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3938 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3939 | # Losing compiler, so override with the script. | |
3940 | # FIXME: It is wrong to rewrite CC. | |
3941 | # But if we don't then we get into trouble of one sort or another. | |
3942 | # A longer-term fix would be to have automake use am__CC in this case, | |
3943 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3944 | CC="$am_aux_dir/compile $CC" | |
3945 | fi | |
3946 | ac_ext=c | |
3947 | ac_cpp='$CPP $CPPFLAGS' | |
3948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3951 | ||
3952 | DEPDIR="${am__leading_dot}deps" | |
3953 | ||
3954 | ac_config_commands="$ac_config_commands depfiles" | |
3955 | ||
3956 | ||
3957 | am_make=${MAKE-make} | |
3958 | cat > confinc << 'END' | |
3959 | am__doit: | |
3960 | @echo this is the am__doit target | |
3961 | .PHONY: am__doit | |
3962 | END | |
3963 | # If we don't find an include directive, just comment out the code. | |
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3965 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3966 | am__include="#" | |
3967 | am__quote= | |
3968 | _am_result=none | |
3969 | # First try GNU make style include. | |
3970 | echo "include confinc" > confmf | |
3971 | # Ignore all kinds of additional output from 'make'. | |
3972 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3973 | *the\ am__doit\ target*) | |
3974 | am__include=include | |
3975 | am__quote= | |
3976 | _am_result=GNU | |
3977 | ;; | |
3978 | esac | |
3979 | # Now try BSD make style include. | |
3980 | if test "$am__include" = "#"; then | |
3981 | echo '.include "confinc"' > confmf | |
3982 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3983 | *the\ am__doit\ target*) | |
3984 | am__include=.include | |
3985 | am__quote="\"" | |
3986 | _am_result=BSD | |
3987 | ;; | |
3988 | esac | |
3989 | fi | |
3990 | ||
3991 | ||
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3993 | $as_echo "$_am_result" >&6; } | |
3994 | rm -f confinc confmf | |
3995 | ||
3996 | # Check whether --enable-dependency-tracking was given. | |
3997 | if test "${enable_dependency_tracking+set}" = set; then : | |
3998 | enableval=$enable_dependency_tracking; | |
3999 | fi | |
4000 | ||
4001 | if test "x$enable_dependency_tracking" != xno; then | |
4002 | am_depcomp="$ac_aux_dir/depcomp" | |
4003 | AMDEPBACKSLASH='\' | |
4004 | am__nodep='_no' | |
4005 | fi | |
4006 | if test "x$enable_dependency_tracking" != xno; then | |
4007 | AMDEP_TRUE= | |
4008 | AMDEP_FALSE='#' | |
4009 | else | |
4010 | AMDEP_TRUE='#' | |
4011 | AMDEP_FALSE= | |
4012 | fi | |
4013 | ||
4014 | ||
4015 | ||
4016 | depcc="$CC" am_compiler_list= | |
4017 | ||
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4019 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4020 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4021 | $as_echo_n "(cached) " >&6 | |
4022 | else | |
4023 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4024 | # We make a subdir and do the tests there. Otherwise we can end up | |
4025 | # making bogus files that we don't know about and never remove. For | |
4026 | # instance it was reported that on HP-UX the gcc test will end up | |
4027 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4028 | # in D". | |
4029 | rm -rf conftest.dir | |
4030 | mkdir conftest.dir | |
4031 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4032 | # using a relative directory. | |
4033 | cp "$am_depcomp" conftest.dir | |
4034 | cd conftest.dir | |
4035 | # We will build objects and dependencies in a subdirectory because | |
4036 | # it helps to detect inapplicable dependency modes. For instance | |
4037 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4038 | # side effect of compilation, but ICC will put the dependencies in | |
4039 | # the current directory while Tru64 will put them in the object | |
4040 | # directory. | |
4041 | mkdir sub | |
4042 | ||
4043 | am_cv_CC_dependencies_compiler_type=none | |
4044 | if test "$am_compiler_list" = ""; then | |
4045 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4046 | fi | |
4047 | am__universal=false | |
4048 | case " $depcc " in #( | |
4049 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4050 | esac | |
4051 | ||
4052 | for depmode in $am_compiler_list; do | |
4053 | # Setup a source with many dependencies, because some compilers | |
4054 | # like to wrap large dependency lists on column 80 (with \), and | |
4055 | # we should not choose a depcomp mode which is confused by this. | |
4056 | # | |
4057 | # We need to recreate these files for each test, as the compiler may | |
4058 | # overwrite some of them when testing with obscure command lines. | |
4059 | # This happens at least with the AIX C compiler. | |
4060 | : > sub/conftest.c | |
4061 | for i in 1 2 3 4 5 6; do | |
4062 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4063 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4064 | # Solaris 10 /bin/sh. | |
4065 | echo '/* dummy */' > sub/conftst$i.h | |
4066 | done | |
4067 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4068 | ||
4069 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4070 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4071 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4072 | # versions had trouble with output in subdirs. | |
4073 | am__obj=sub/conftest.${OBJEXT-o} | |
4074 | am__minus_obj="-o $am__obj" | |
4075 | case $depmode in | |
4076 | gcc) | |
4077 | # This depmode causes a compiler race in universal mode. | |
4078 | test "$am__universal" = false || continue | |
4079 | ;; | |
4080 | nosideeffect) | |
4081 | # After this tag, mechanisms are not by side-effect, so they'll | |
4082 | # only be used when explicitly requested. | |
4083 | if test "x$enable_dependency_tracking" = xyes; then | |
4084 | continue | |
4085 | else | |
4086 | break | |
4087 | fi | |
4088 | ;; | |
4089 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4090 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4091 | # not run yet. These depmodes are late enough in the game, and | |
4092 | # so weak that their functioning should not be impacted. | |
4093 | am__obj=conftest.${OBJEXT-o} | |
4094 | am__minus_obj= | |
4095 | ;; | |
4096 | none) break ;; | |
4097 | esac | |
4098 | if depmode=$depmode \ | |
4099 | source=sub/conftest.c object=$am__obj \ | |
4100 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4101 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4102 | >/dev/null 2>conftest.err && | |
4103 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4104 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4105 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4106 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4107 | # icc doesn't choke on unknown options, it will just issue warnings | |
4108 | # or remarks (even with -Werror). So we grep stderr for any message | |
4109 | # that says an option was ignored or not supported. | |
4110 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4111 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4112 | # The diagnosis changed in icc 8.0: | |
4113 | # icc: Command line remark: option '-MP' not supported | |
4114 | if (grep 'ignoring option' conftest.err || | |
4115 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4116 | am_cv_CC_dependencies_compiler_type=$depmode | |
4117 | break | |
4118 | fi | |
4119 | fi | |
4120 | done | |
4121 | ||
4122 | cd .. | |
4123 | rm -rf conftest.dir | |
4124 | else | |
4125 | am_cv_CC_dependencies_compiler_type=none | |
4126 | fi | |
4127 | ||
4128 | fi | |
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4130 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4131 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4132 | ||
4133 | if | |
4134 | test "x$enable_dependency_tracking" != xno \ | |
4135 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4136 | am__fastdepCC_TRUE= | |
4137 | am__fastdepCC_FALSE='#' | |
4138 | else | |
4139 | am__fastdepCC_TRUE='#' | |
4140 | am__fastdepCC_FALSE= | |
4141 | fi | |
4142 | ||
4143 | ||
4144 | case `pwd` in | |
4145 | *\ * | *\ *) | |
4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4147 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4148 | esac | |
4149 | ||
4150 | ||
4151 | ||
4152 | macro_version='2.4.6' | |
4153 | macro_revision='2.4.6' | |
4154 | ||
4155 | ||
4156 | ||
4157 | ||
4158 | ||
4159 | ||
4160 | ||
4161 | ||
4162 | ||
4163 | ||
4164 | ||
4165 | ||
4166 | ||
4167 | ltmain=$ac_aux_dir/ltmain.sh | |
4168 | ||
4169 | # Backslashify metacharacters that are still active within | |
4170 | # double-quoted strings. | |
4171 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4172 | ||
4173 | # Same as above, but do not quote variable references. | |
4174 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4175 | ||
4176 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4177 | # double_quote_subst'ed string. | |
4178 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4179 | ||
4180 | # Sed substitution to delay expansion of an escaped single quote. | |
4181 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4182 | ||
4183 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4184 | no_glob_subst='s/\*/\\\*/g' | |
4185 | ||
4186 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4187 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4188 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4189 | ||
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4191 | $as_echo_n "checking how to print strings... " >&6; } | |
4192 | # Test print first, because it will be a builtin if present. | |
4193 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4194 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4195 | ECHO='print -r --' | |
4196 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4197 | ECHO='printf %s\n' | |
4198 | else | |
4199 | # Use this function as a fallback that always works. | |
4200 | func_fallback_echo () | |
4201 | { | |
4202 | eval 'cat <<_LTECHO_EOF | |
4203 | $1 | |
4204 | _LTECHO_EOF' | |
4205 | } | |
4206 | ECHO='func_fallback_echo' | |
4207 | fi | |
4208 | ||
4209 | # func_echo_all arg... | |
4210 | # Invoke $ECHO with all args, space-separated. | |
4211 | func_echo_all () | |
4212 | { | |
4213 | $ECHO "" | |
4214 | } | |
4215 | ||
4216 | case $ECHO in | |
4217 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4218 | $as_echo "printf" >&6; } ;; | |
4219 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4220 | $as_echo "print -r" >&6; } ;; | |
4221 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4222 | $as_echo "cat" >&6; } ;; | |
4223 | esac | |
4224 | ||
4225 | ||
4226 | ||
4227 | ||
4228 | ||
4229 | ||
4230 | ||
4231 | ||
4232 | ||
4233 | ||
4234 | ||
4235 | ||
4236 | ||
4237 | ||
4238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4239 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4240 | if ${ac_cv_path_SED+:} false; then : | |
4241 | $as_echo_n "(cached) " >&6 | |
4242 | else | |
4243 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4244 | for ac_i in 1 2 3 4 5 6 7; do | |
4245 | ac_script="$ac_script$as_nl$ac_script" | |
4246 | done | |
4247 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4248 | { ac_script=; unset ac_script;} | |
4249 | if test -z "$SED"; then | |
4250 | ac_path_SED_found=false | |
4251 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4253 | for as_dir in $PATH | |
4254 | do | |
4255 | IFS=$as_save_IFS | |
4256 | test -z "$as_dir" && as_dir=. | |
4257 | for ac_prog in sed gsed; do | |
4258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4259 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4260 | as_fn_executable_p "$ac_path_SED" || continue | |
4261 | # Check for GNU ac_path_SED and select it if it is found. | |
4262 | # Check for GNU $ac_path_SED | |
4263 | case `"$ac_path_SED" --version 2>&1` in | |
4264 | *GNU*) | |
4265 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4266 | *) | |
4267 | ac_count=0 | |
4268 | $as_echo_n 0123456789 >"conftest.in" | |
4269 | while : | |
4270 | do | |
4271 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4272 | mv "conftest.tmp" "conftest.in" | |
4273 | cp "conftest.in" "conftest.nl" | |
4274 | $as_echo '' >> "conftest.nl" | |
4275 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4276 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4277 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4278 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4279 | # Best one so far, save it but keep looking for a better one | |
4280 | ac_cv_path_SED="$ac_path_SED" | |
4281 | ac_path_SED_max=$ac_count | |
4282 | fi | |
4283 | # 10*(2^10) chars as input seems more than enough | |
4284 | test $ac_count -gt 10 && break | |
4285 | done | |
4286 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4287 | esac | |
4288 | ||
4289 | $ac_path_SED_found && break 3 | |
4290 | done | |
4291 | done | |
4292 | done | |
4293 | IFS=$as_save_IFS | |
4294 | if test -z "$ac_cv_path_SED"; then | |
4295 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4296 | fi | |
4297 | else | |
4298 | ac_cv_path_SED=$SED | |
4299 | fi | |
4300 | ||
4301 | fi | |
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4303 | $as_echo "$ac_cv_path_SED" >&6; } | |
4304 | SED="$ac_cv_path_SED" | |
4305 | rm -f conftest.sed | |
4306 | ||
4307 | test -z "$SED" && SED=sed | |
4308 | Xsed="$SED -e 1s/^X//" | |
4309 | ||
4310 | ||
4311 | ||
4312 | ||
4313 | ||
4314 | ||
4315 | ||
4316 | ||
4317 | ||
4318 | ||
4319 | ||
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4321 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4322 | if ${ac_cv_path_GREP+:} false; then : | |
4323 | $as_echo_n "(cached) " >&6 | |
4324 | else | |
4325 | if test -z "$GREP"; then | |
4326 | ac_path_GREP_found=false | |
4327 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4329 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4330 | do | |
4331 | IFS=$as_save_IFS | |
4332 | test -z "$as_dir" && as_dir=. | |
4333 | for ac_prog in grep ggrep; do | |
4334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4335 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4336 | as_fn_executable_p "$ac_path_GREP" || continue | |
4337 | # Check for GNU ac_path_GREP and select it if it is found. | |
4338 | # Check for GNU $ac_path_GREP | |
4339 | case `"$ac_path_GREP" --version 2>&1` in | |
4340 | *GNU*) | |
4341 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4342 | *) | |
4343 | ac_count=0 | |
4344 | $as_echo_n 0123456789 >"conftest.in" | |
4345 | while : | |
4346 | do | |
4347 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4348 | mv "conftest.tmp" "conftest.in" | |
4349 | cp "conftest.in" "conftest.nl" | |
4350 | $as_echo 'GREP' >> "conftest.nl" | |
4351 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4352 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4353 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4354 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4355 | # Best one so far, save it but keep looking for a better one | |
4356 | ac_cv_path_GREP="$ac_path_GREP" | |
4357 | ac_path_GREP_max=$ac_count | |
4358 | fi | |
4359 | # 10*(2^10) chars as input seems more than enough | |
4360 | test $ac_count -gt 10 && break | |
4361 | done | |
4362 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4363 | esac | |
4364 | ||
4365 | $ac_path_GREP_found && break 3 | |
4366 | done | |
4367 | done | |
4368 | done | |
4369 | IFS=$as_save_IFS | |
4370 | if test -z "$ac_cv_path_GREP"; then | |
4371 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4372 | fi | |
4373 | else | |
4374 | ac_cv_path_GREP=$GREP | |
4375 | fi | |
4376 | ||
4377 | fi | |
4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4379 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4380 | GREP="$ac_cv_path_GREP" | |
4381 | ||
4382 | ||
4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4384 | $as_echo_n "checking for egrep... " >&6; } | |
4385 | if ${ac_cv_path_EGREP+:} false; then : | |
4386 | $as_echo_n "(cached) " >&6 | |
4387 | else | |
4388 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4389 | then ac_cv_path_EGREP="$GREP -E" | |
4390 | else | |
4391 | if test -z "$EGREP"; then | |
4392 | ac_path_EGREP_found=false | |
4393 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4395 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4396 | do | |
4397 | IFS=$as_save_IFS | |
4398 | test -z "$as_dir" && as_dir=. | |
4399 | for ac_prog in egrep; do | |
4400 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4401 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4402 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4403 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4404 | # Check for GNU $ac_path_EGREP | |
4405 | case `"$ac_path_EGREP" --version 2>&1` in | |
4406 | *GNU*) | |
4407 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4408 | *) | |
4409 | ac_count=0 | |
4410 | $as_echo_n 0123456789 >"conftest.in" | |
4411 | while : | |
4412 | do | |
4413 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4414 | mv "conftest.tmp" "conftest.in" | |
4415 | cp "conftest.in" "conftest.nl" | |
4416 | $as_echo 'EGREP' >> "conftest.nl" | |
4417 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4418 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4419 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4420 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4421 | # Best one so far, save it but keep looking for a better one | |
4422 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4423 | ac_path_EGREP_max=$ac_count | |
4424 | fi | |
4425 | # 10*(2^10) chars as input seems more than enough | |
4426 | test $ac_count -gt 10 && break | |
4427 | done | |
4428 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4429 | esac | |
4430 | ||
4431 | $ac_path_EGREP_found && break 3 | |
4432 | done | |
4433 | done | |
4434 | done | |
4435 | IFS=$as_save_IFS | |
4436 | if test -z "$ac_cv_path_EGREP"; then | |
4437 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4438 | fi | |
4439 | else | |
4440 | ac_cv_path_EGREP=$EGREP | |
4441 | fi | |
4442 | ||
4443 | fi | |
4444 | fi | |
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4446 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4447 | EGREP="$ac_cv_path_EGREP" | |
4448 | ||
4449 | ||
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4451 | $as_echo_n "checking for fgrep... " >&6; } | |
4452 | if ${ac_cv_path_FGREP+:} false; then : | |
4453 | $as_echo_n "(cached) " >&6 | |
4454 | else | |
4455 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4456 | then ac_cv_path_FGREP="$GREP -F" | |
4457 | else | |
4458 | if test -z "$FGREP"; then | |
4459 | ac_path_FGREP_found=false | |
4460 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4462 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4463 | do | |
4464 | IFS=$as_save_IFS | |
4465 | test -z "$as_dir" && as_dir=. | |
4466 | for ac_prog in fgrep; do | |
4467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4468 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4469 | as_fn_executable_p "$ac_path_FGREP" || continue | |
4470 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4471 | # Check for GNU $ac_path_FGREP | |
4472 | case `"$ac_path_FGREP" --version 2>&1` in | |
4473 | *GNU*) | |
4474 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4475 | *) | |
4476 | ac_count=0 | |
4477 | $as_echo_n 0123456789 >"conftest.in" | |
4478 | while : | |
4479 | do | |
4480 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4481 | mv "conftest.tmp" "conftest.in" | |
4482 | cp "conftest.in" "conftest.nl" | |
4483 | $as_echo 'FGREP' >> "conftest.nl" | |
4484 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4485 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4486 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4487 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4488 | # Best one so far, save it but keep looking for a better one | |
4489 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4490 | ac_path_FGREP_max=$ac_count | |
4491 | fi | |
4492 | # 10*(2^10) chars as input seems more than enough | |
4493 | test $ac_count -gt 10 && break | |
4494 | done | |
4495 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4496 | esac | |
4497 | ||
4498 | $ac_path_FGREP_found && break 3 | |
4499 | done | |
4500 | done | |
4501 | done | |
4502 | IFS=$as_save_IFS | |
4503 | if test -z "$ac_cv_path_FGREP"; then | |
4504 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4505 | fi | |
4506 | else | |
4507 | ac_cv_path_FGREP=$FGREP | |
4508 | fi | |
4509 | ||
4510 | fi | |
4511 | fi | |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4513 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4514 | FGREP="$ac_cv_path_FGREP" | |
4515 | ||
4516 | ||
4517 | test -z "$GREP" && GREP=grep | |
4518 | ||
4519 | ||
4520 | ||
4521 | ||
4522 | ||
4523 | ||
4524 | ||
4525 | ||
4526 | ||
4527 | ||
4528 | ||
4529 | ||
4530 | ||
4531 | ||
4532 | ||
4533 | ||
4534 | ||
4535 | ||
4536 | ||
4537 | # Check whether --with-gnu-ld was given. | |
4538 | if test "${with_gnu_ld+set}" = set; then : | |
4539 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
4540 | else | |
4541 | with_gnu_ld=no | |
4542 | fi | |
4543 | ||
4544 | ac_prog=ld | |
4545 | if test yes = "$GCC"; then | |
4546 | # Check if gcc -print-prog-name=ld gives a path. | |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4548 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4549 | case $host in | |
4550 | *-*-mingw*) | |
4551 | # gcc leaves a trailing carriage return, which upsets mingw | |
4552 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4553 | *) | |
4554 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4555 | esac | |
4556 | case $ac_prog in | |
4557 | # Accept absolute paths. | |
4558 | [\\/]* | ?:[\\/]*) | |
4559 | re_direlt='/[^/][^/]*/\.\./' | |
4560 | # Canonicalize the pathname of ld | |
4561 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4562 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4563 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4564 | done | |
4565 | test -z "$LD" && LD=$ac_prog | |
4566 | ;; | |
4567 | "") | |
4568 | # If it fails, then pretend we aren't using GCC. | |
4569 | ac_prog=ld | |
4570 | ;; | |
4571 | *) | |
4572 | # If it is relative, then search for the first ld in PATH. | |
4573 | with_gnu_ld=unknown | |
4574 | ;; | |
4575 | esac | |
4576 | elif test yes = "$with_gnu_ld"; then | |
4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4578 | $as_echo_n "checking for GNU ld... " >&6; } | |
4579 | else | |
4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4581 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4582 | fi | |
4583 | if ${lt_cv_path_LD+:} false; then : | |
4584 | $as_echo_n "(cached) " >&6 | |
4585 | else | |
4586 | if test -z "$LD"; then | |
4587 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
4588 | for ac_dir in $PATH; do | |
4589 | IFS=$lt_save_ifs | |
4590 | test -z "$ac_dir" && ac_dir=. | |
4591 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4592 | lt_cv_path_LD=$ac_dir/$ac_prog | |
4593 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4594 | # but apparently some variants of GNU ld only accept -v. | |
4595 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4596 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4597 | *GNU* | *'with BFD'*) | |
4598 | test no != "$with_gnu_ld" && break | |
4599 | ;; | |
4600 | *) | |
4601 | test yes != "$with_gnu_ld" && break | |
4602 | ;; | |
4603 | esac | |
4604 | fi | |
4605 | done | |
4606 | IFS=$lt_save_ifs | |
4607 | else | |
4608 | lt_cv_path_LD=$LD # Let the user override the test with a path. | |
4609 | fi | |
4610 | fi | |
4611 | ||
4612 | LD=$lt_cv_path_LD | |
4613 | if test -n "$LD"; then | |
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4615 | $as_echo "$LD" >&6; } | |
4616 | else | |
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4618 | $as_echo "no" >&6; } | |
4619 | fi | |
4620 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4622 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4623 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
4624 | $as_echo_n "(cached) " >&6 | |
4625 | else | |
4626 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4627 | case `$LD -v 2>&1 </dev/null` in | |
4628 | *GNU* | *'with BFD'*) | |
4629 | lt_cv_prog_gnu_ld=yes | |
4630 | ;; | |
4631 | *) | |
4632 | lt_cv_prog_gnu_ld=no | |
4633 | ;; | |
4634 | esac | |
4635 | fi | |
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4637 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4638 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4639 | ||
4640 | ||
4641 | ||
4642 | ||
4643 | ||
4644 | ||
4645 | ||
4646 | ||
4647 | ||
4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4649 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4650 | if ${lt_cv_path_NM+:} false; then : | |
4651 | $as_echo_n "(cached) " >&6 | |
4652 | else | |
4653 | if test -n "$NM"; then | |
4654 | # Let the user override the test. | |
4655 | lt_cv_path_NM=$NM | |
4656 | else | |
4657 | lt_nm_to_check=${ac_tool_prefix}nm | |
4658 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4659 | lt_nm_to_check="$lt_nm_to_check nm" | |
4660 | fi | |
4661 | for lt_tmp_nm in $lt_nm_to_check; do | |
4662 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
4663 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4664 | IFS=$lt_save_ifs | |
4665 | test -z "$ac_dir" && ac_dir=. | |
4666 | tmp_nm=$ac_dir/$lt_tmp_nm | |
4667 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
4668 | # Check to see if the nm accepts a BSD-compat flag. | |
4669 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: | |
4670 | # nm: unknown option "B" ignored | |
4671 | # Tru64's nm complains that /dev/null is an invalid object file | |
4672 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty | |
4673 | case $build_os in | |
4674 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4675 | *) lt_bad_file=/dev/null ;; | |
4676 | esac | |
4677 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4678 | *$lt_bad_file* | *'Invalid file or object type'*) | |
4679 | lt_cv_path_NM="$tmp_nm -B" | |
4680 | break 2 | |
4681 | ;; | |
4682 | *) | |
4683 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4684 | */dev/null*) | |
4685 | lt_cv_path_NM="$tmp_nm -p" | |
4686 | break 2 | |
4687 | ;; | |
4688 | *) | |
4689 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4690 | continue # so that we can try to find one that supports BSD flags | |
4691 | ;; | |
4692 | esac | |
4693 | ;; | |
4694 | esac | |
4695 | fi | |
4696 | done | |
4697 | IFS=$lt_save_ifs | |
4698 | done | |
4699 | : ${lt_cv_path_NM=no} | |
4700 | fi | |
4701 | fi | |
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4703 | $as_echo "$lt_cv_path_NM" >&6; } | |
4704 | if test no != "$lt_cv_path_NM"; then | |
4705 | NM=$lt_cv_path_NM | |
4706 | else | |
4707 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4708 | if test -n "$DUMPBIN"; then : | |
4709 | # Let the user override the test. | |
4710 | else | |
4711 | if test -n "$ac_tool_prefix"; then | |
4712 | for ac_prog in dumpbin "link -dump" | |
4713 | do | |
4714 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4715 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4717 | $as_echo_n "checking for $ac_word... " >&6; } | |
4718 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
4719 | $as_echo_n "(cached) " >&6 | |
4720 | else | |
4721 | if test -n "$DUMPBIN"; then | |
4722 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4723 | else | |
4724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4725 | for as_dir in $PATH | |
4726 | do | |
4727 | IFS=$as_save_IFS | |
4728 | test -z "$as_dir" && as_dir=. | |
4729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4731 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4733 | break 2 | |
4734 | fi | |
4735 | done | |
4736 | done | |
4737 | IFS=$as_save_IFS | |
4738 | ||
4739 | fi | |
4740 | fi | |
4741 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4742 | if test -n "$DUMPBIN"; then | |
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4744 | $as_echo "$DUMPBIN" >&6; } | |
4745 | else | |
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4747 | $as_echo "no" >&6; } | |
4748 | fi | |
4749 | ||
4750 | ||
4751 | test -n "$DUMPBIN" && break | |
4752 | done | |
4753 | fi | |
4754 | if test -z "$DUMPBIN"; then | |
4755 | ac_ct_DUMPBIN=$DUMPBIN | |
4756 | for ac_prog in dumpbin "link -dump" | |
4757 | do | |
4758 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4759 | set dummy $ac_prog; ac_word=$2 | |
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4761 | $as_echo_n "checking for $ac_word... " >&6; } | |
4762 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
4763 | $as_echo_n "(cached) " >&6 | |
4764 | else | |
4765 | if test -n "$ac_ct_DUMPBIN"; then | |
4766 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4767 | else | |
4768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4769 | for as_dir in $PATH | |
4770 | do | |
4771 | IFS=$as_save_IFS | |
4772 | test -z "$as_dir" && as_dir=. | |
4773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4775 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4777 | break 2 | |
4778 | fi | |
4779 | done | |
4780 | done | |
4781 | IFS=$as_save_IFS | |
4782 | ||
4783 | fi | |
4784 | fi | |
4785 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4786 | if test -n "$ac_ct_DUMPBIN"; then | |
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4788 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4789 | else | |
4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4791 | $as_echo "no" >&6; } | |
4792 | fi | |
4793 | ||
4794 | ||
4795 | test -n "$ac_ct_DUMPBIN" && break | |
4796 | done | |
4797 | ||
4798 | if test "x$ac_ct_DUMPBIN" = x; then | |
4799 | DUMPBIN=":" | |
4800 | else | |
4801 | case $cross_compiling:$ac_tool_warned in | |
4802 | yes:) | |
4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4804 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4805 | ac_tool_warned=yes ;; | |
4806 | esac | |
4807 | DUMPBIN=$ac_ct_DUMPBIN | |
4808 | fi | |
4809 | fi | |
4810 | ||
4811 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in | |
4812 | *COFF*) | |
4813 | DUMPBIN="$DUMPBIN -symbols -headers" | |
4814 | ;; | |
4815 | *) | |
4816 | DUMPBIN=: | |
4817 | ;; | |
4818 | esac | |
4819 | fi | |
4820 | ||
4821 | if test : != "$DUMPBIN"; then | |
4822 | NM=$DUMPBIN | |
4823 | fi | |
4824 | fi | |
4825 | test -z "$NM" && NM=nm | |
4826 | ||
4827 | ||
4828 | ||
4829 | ||
4830 | ||
4831 | ||
4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4833 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4834 | if ${lt_cv_nm_interface+:} false; then : | |
4835 | $as_echo_n "(cached) " >&6 | |
4836 | else | |
4837 | lt_cv_nm_interface="BSD nm" | |
4838 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4839 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
4840 | (eval "$ac_compile" 2>conftest.err) | |
4841 | cat conftest.err >&5 | |
4842 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4843 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4844 | cat conftest.err >&5 | |
4845 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
4846 | cat conftest.out >&5 | |
4847 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4848 | lt_cv_nm_interface="MS dumpbin" | |
4849 | fi | |
4850 | rm -f conftest* | |
4851 | fi | |
4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
4853 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4854 | ||
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4856 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4857 | LN_S=$as_ln_s | |
4858 | if test "$LN_S" = "ln -s"; then | |
4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4860 | $as_echo "yes" >&6; } | |
4861 | else | |
4862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4863 | $as_echo "no, using $LN_S" >&6; } | |
4864 | fi | |
4865 | ||
4866 | # find the maximum length of command line arguments | |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4868 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4869 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
4870 | $as_echo_n "(cached) " >&6 | |
4871 | else | |
4872 | i=0 | |
4873 | teststring=ABCD | |
4874 | ||
4875 | case $build_os in | |
4876 | msdosdjgpp*) | |
4877 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4878 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4879 | # during glob expansion). Even if it were fixed, the result of this | |
4880 | # check would be larger than it should be. | |
4881 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4882 | ;; | |
4883 | ||
4884 | gnu*) | |
4885 | # Under GNU Hurd, this test is not required because there is | |
4886 | # no limit to the length of command line arguments. | |
4887 | # Libtool will interpret -1 as no limit whatsoever | |
4888 | lt_cv_sys_max_cmd_len=-1; | |
4889 | ;; | |
4890 | ||
4891 | cygwin* | mingw* | cegcc*) | |
4892 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4893 | # about 5 minutes as the teststring grows exponentially. | |
4894 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4895 | # you end up with a "frozen" computer, even though with patience | |
4896 | # the test eventually succeeds (with a max line length of 256k). | |
4897 | # Instead, let's just punt: use the minimum linelength reported by | |
4898 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4899 | lt_cv_sys_max_cmd_len=8192; | |
4900 | ;; | |
4901 | ||
4902 | mint*) | |
4903 | # On MiNT this can take a long time and run out of memory. | |
4904 | lt_cv_sys_max_cmd_len=8192; | |
4905 | ;; | |
4906 | ||
4907 | amigaos*) | |
4908 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4909 | # So we just punt and use a minimum line length of 8192. | |
4910 | lt_cv_sys_max_cmd_len=8192; | |
4911 | ;; | |
4912 | ||
4913 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) | |
4914 | # This has been around since 386BSD, at least. Likely further. | |
4915 | if test -x /sbin/sysctl; then | |
4916 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4917 | elif test -x /usr/sbin/sysctl; then | |
4918 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4919 | else | |
4920 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4921 | fi | |
4922 | # And add a safety zone | |
4923 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4924 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4925 | ;; | |
4926 | ||
4927 | interix*) | |
4928 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4929 | lt_cv_sys_max_cmd_len=196608 | |
4930 | ;; | |
4931 | ||
4932 | os2*) | |
4933 | # The test takes a long time on OS/2. | |
4934 | lt_cv_sys_max_cmd_len=8192 | |
4935 | ;; | |
4936 | ||
4937 | osf*) | |
4938 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4939 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4940 | # nice to cause kernel panics so lets avoid the loop below. | |
4941 | # First set a reasonable default. | |
4942 | lt_cv_sys_max_cmd_len=16384 | |
4943 | # | |
4944 | if test -x /sbin/sysconfig; then | |
4945 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4946 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4947 | esac | |
4948 | fi | |
4949 | ;; | |
4950 | sco3.2v5*) | |
4951 | lt_cv_sys_max_cmd_len=102400 | |
4952 | ;; | |
4953 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4954 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4955 | if test -n "$kargmax"; then | |
4956 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4957 | else | |
4958 | lt_cv_sys_max_cmd_len=32768 | |
4959 | fi | |
4960 | ;; | |
4961 | *) | |
4962 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4963 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
4964 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
4965 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4966 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4967 | else | |
4968 | # Make teststring a little bigger before we do anything with it. | |
4969 | # a 1K string should be a reasonable start. | |
4970 | for i in 1 2 3 4 5 6 7 8; do | |
4971 | teststring=$teststring$teststring | |
4972 | done | |
4973 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4974 | # If test is not a shell built-in, we'll probably end up computing a | |
4975 | # maximum length that is only half of the actual maximum length, but | |
4976 | # we can't tell. | |
4977 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ | |
4978 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
4979 | test 17 != "$i" # 1/2 MB should be enough | |
4980 | do | |
4981 | i=`expr $i + 1` | |
4982 | teststring=$teststring$teststring | |
4983 | done | |
4984 | # Only check the string length outside the loop. | |
4985 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4986 | teststring= | |
4987 | # Add a significant safety factor because C++ compilers can tack on | |
4988 | # massive amounts of additional arguments before passing them to the | |
4989 | # linker. It appears as though 1/2 is a usable value. | |
4990 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4991 | fi | |
4992 | ;; | |
4993 | esac | |
4994 | ||
4995 | fi | |
4996 | ||
4997 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4999 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5000 | else | |
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5002 | $as_echo "none" >&6; } | |
5003 | fi | |
5004 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5005 | ||
5006 | ||
5007 | ||
5008 | ||
5009 | ||
5010 | ||
5011 | : ${CP="cp -f"} | |
5012 | : ${MV="mv -f"} | |
5013 | : ${RM="rm -f"} | |
5014 | ||
5015 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5016 | lt_unset=unset | |
5017 | else | |
5018 | lt_unset=false | |
5019 | fi | |
5020 | ||
5021 | ||
5022 | ||
5023 | ||
5024 | ||
5025 | # test EBCDIC or ASCII | |
5026 | case `echo X|tr X '\101'` in | |
5027 | A) # ASCII based system | |
5028 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5029 | lt_SP2NL='tr \040 \012' | |
5030 | lt_NL2SP='tr \015\012 \040\040' | |
5031 | ;; | |
5032 | *) # EBCDIC based system | |
5033 | lt_SP2NL='tr \100 \n' | |
5034 | lt_NL2SP='tr \r\n \100\100' | |
5035 | ;; | |
5036 | esac | |
5037 | ||
5038 | ||
5039 | ||
5040 | ||
5041 | ||
5042 | ||
5043 | ||
5044 | ||
5045 | ||
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5047 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5048 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5049 | $as_echo_n "(cached) " >&6 | |
5050 | else | |
5051 | case $host in | |
5052 | *-*-mingw* ) | |
5053 | case $build in | |
5054 | *-*-mingw* ) # actually msys | |
5055 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5056 | ;; | |
5057 | *-*-cygwin* ) | |
5058 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5059 | ;; | |
5060 | * ) # otherwise, assume *nix | |
5061 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5062 | ;; | |
5063 | esac | |
5064 | ;; | |
5065 | *-*-cygwin* ) | |
5066 | case $build in | |
5067 | *-*-mingw* ) # actually msys | |
5068 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5069 | ;; | |
5070 | *-*-cygwin* ) | |
5071 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5072 | ;; | |
5073 | * ) # otherwise, assume *nix | |
5074 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5075 | ;; | |
5076 | esac | |
5077 | ;; | |
5078 | * ) # unhandled hosts (and "normal" native builds) | |
5079 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5080 | ;; | |
5081 | esac | |
5082 | ||
5083 | fi | |
5084 | ||
5085 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5087 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5088 | ||
5089 | ||
5090 | ||
5091 | ||
5092 | ||
5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5094 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5095 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5096 | $as_echo_n "(cached) " >&6 | |
5097 | else | |
5098 | #assume ordinary cross tools, or native build. | |
5099 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5100 | case $host in | |
5101 | *-*-mingw* ) | |
5102 | case $build in | |
5103 | *-*-mingw* ) # actually msys | |
5104 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5105 | ;; | |
5106 | esac | |
5107 | ;; | |
5108 | esac | |
5109 | ||
5110 | fi | |
5111 | ||
5112 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5114 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5115 | ||
5116 | ||
5117 | ||
5118 | ||
5119 | ||
5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5121 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5122 | if ${lt_cv_ld_reload_flag+:} false; then : | |
5123 | $as_echo_n "(cached) " >&6 | |
5124 | else | |
5125 | lt_cv_ld_reload_flag='-r' | |
5126 | fi | |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5128 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5129 | reload_flag=$lt_cv_ld_reload_flag | |
5130 | case $reload_flag in | |
5131 | "" | " "*) ;; | |
5132 | *) reload_flag=" $reload_flag" ;; | |
5133 | esac | |
5134 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5135 | case $host_os in | |
5136 | cygwin* | mingw* | pw32* | cegcc*) | |
5137 | if test yes != "$GCC"; then | |
5138 | reload_cmds=false | |
5139 | fi | |
5140 | ;; | |
5141 | darwin*) | |
5142 | if test yes = "$GCC"; then | |
5143 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
5144 | else | |
5145 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5146 | fi | |
5147 | ;; | |
5148 | esac | |
5149 | ||
5150 | ||
5151 | ||
5152 | ||
5153 | ||
5154 | ||
5155 | ||
5156 | ||
5157 | ||
5158 | if test -n "$ac_tool_prefix"; then | |
5159 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5160 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5162 | $as_echo_n "checking for $ac_word... " >&6; } | |
5163 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5164 | $as_echo_n "(cached) " >&6 | |
5165 | else | |
5166 | if test -n "$OBJDUMP"; then | |
5167 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5168 | else | |
5169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5170 | for as_dir in $PATH | |
5171 | do | |
5172 | IFS=$as_save_IFS | |
5173 | test -z "$as_dir" && as_dir=. | |
5174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5176 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5178 | break 2 | |
5179 | fi | |
5180 | done | |
5181 | done | |
5182 | IFS=$as_save_IFS | |
5183 | ||
5184 | fi | |
5185 | fi | |
5186 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5187 | if test -n "$OBJDUMP"; then | |
5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5189 | $as_echo "$OBJDUMP" >&6; } | |
5190 | else | |
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5192 | $as_echo "no" >&6; } | |
5193 | fi | |
5194 | ||
5195 | ||
5196 | fi | |
5197 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5198 | ac_ct_OBJDUMP=$OBJDUMP | |
5199 | # Extract the first word of "objdump", so it can be a program name with args. | |
5200 | set dummy objdump; ac_word=$2 | |
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5202 | $as_echo_n "checking for $ac_word... " >&6; } | |
5203 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5204 | $as_echo_n "(cached) " >&6 | |
5205 | else | |
5206 | if test -n "$ac_ct_OBJDUMP"; then | |
5207 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5208 | else | |
5209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5210 | for as_dir in $PATH | |
5211 | do | |
5212 | IFS=$as_save_IFS | |
5213 | test -z "$as_dir" && as_dir=. | |
5214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5215 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5216 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5218 | break 2 | |
5219 | fi | |
5220 | done | |
5221 | done | |
5222 | IFS=$as_save_IFS | |
5223 | ||
5224 | fi | |
5225 | fi | |
5226 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5227 | if test -n "$ac_ct_OBJDUMP"; then | |
5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5229 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5230 | else | |
5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5232 | $as_echo "no" >&6; } | |
5233 | fi | |
5234 | ||
5235 | if test "x$ac_ct_OBJDUMP" = x; then | |
5236 | OBJDUMP="false" | |
5237 | else | |
5238 | case $cross_compiling:$ac_tool_warned in | |
5239 | yes:) | |
5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5241 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5242 | ac_tool_warned=yes ;; | |
5243 | esac | |
5244 | OBJDUMP=$ac_ct_OBJDUMP | |
5245 | fi | |
5246 | else | |
5247 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5248 | fi | |
5249 | ||
5250 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5251 | ||
5252 | ||
5253 | ||
5254 | ||
5255 | ||
5256 | ||
5257 | ||
5258 | ||
5259 | ||
5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5261 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5262 | if ${lt_cv_deplibs_check_method+:} false; then : | |
5263 | $as_echo_n "(cached) " >&6 | |
5264 | else | |
5265 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5266 | lt_cv_file_magic_test_file= | |
5267 | lt_cv_deplibs_check_method='unknown' | |
5268 | # Need to set the preceding variable on all platforms that support | |
5269 | # interlibrary dependencies. | |
5270 | # 'none' -- dependencies not supported. | |
5271 | # 'unknown' -- same as none, but documents that we really don't know. | |
5272 | # 'pass_all' -- all dependencies passed with no checks. | |
5273 | # 'test_compile' -- check by making test program. | |
5274 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5275 | # that responds to the $file_magic_cmd with a given extended regex. | |
5276 | # If you have 'file' or equivalent on your system and you're not sure | |
5277 | # whether 'pass_all' will *always* work, you probably want this one. | |
5278 | ||
5279 | case $host_os in | |
5280 | aix[4-9]*) | |
5281 | lt_cv_deplibs_check_method=pass_all | |
5282 | ;; | |
5283 | ||
5284 | beos*) | |
5285 | lt_cv_deplibs_check_method=pass_all | |
5286 | ;; | |
5287 | ||
5288 | bsdi[45]*) | |
5289 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5290 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5291 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5292 | ;; | |
5293 | ||
5294 | cygwin*) | |
5295 | # func_win32_libid is a shell function defined in ltmain.sh | |
5296 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5297 | lt_cv_file_magic_cmd='func_win32_libid' | |
5298 | ;; | |
5299 | ||
5300 | mingw* | pw32*) | |
5301 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5302 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5303 | # unless we find 'file', for example because we are cross-compiling. | |
5304 | if ( file / ) >/dev/null 2>&1; then | |
5305 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5306 | lt_cv_file_magic_cmd='func_win32_libid' | |
5307 | else | |
5308 | # Keep this pattern in sync with the one in func_win32_libid. | |
5309 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5310 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5311 | fi | |
5312 | ;; | |
5313 | ||
5314 | cegcc*) | |
5315 | # use the weaker test based on 'objdump'. See mingw*. | |
5316 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5317 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5318 | ;; | |
5319 | ||
5320 | darwin* | rhapsody*) | |
5321 | lt_cv_deplibs_check_method=pass_all | |
5322 | ;; | |
5323 | ||
5324 | freebsd* | dragonfly*) | |
5325 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5326 | case $host_cpu in | |
5327 | i*86 ) | |
5328 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5329 | # Let's accept both of them until this is cleared up. | |
5330 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5331 | lt_cv_file_magic_cmd=/usr/bin/file | |
5332 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5333 | ;; | |
5334 | esac | |
5335 | else | |
5336 | lt_cv_deplibs_check_method=pass_all | |
5337 | fi | |
5338 | ;; | |
5339 | ||
5340 | haiku*) | |
5341 | lt_cv_deplibs_check_method=pass_all | |
5342 | ;; | |
5343 | ||
5344 | hpux10.20* | hpux11*) | |
5345 | lt_cv_file_magic_cmd=/usr/bin/file | |
5346 | case $host_cpu in | |
5347 | ia64*) | |
5348 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5349 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5350 | ;; | |
5351 | hppa*64*) | |
5352 | 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]' | |
5353 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5354 | ;; | |
5355 | *) | |
5356 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5357 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5358 | ;; | |
5359 | esac | |
5360 | ;; | |
5361 | ||
5362 | interix[3-9]*) | |
5363 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5364 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5365 | ;; | |
5366 | ||
5367 | irix5* | irix6* | nonstopux*) | |
5368 | case $LD in | |
5369 | *-32|*"-32 ") libmagic=32-bit;; | |
5370 | *-n32|*"-n32 ") libmagic=N32;; | |
5371 | *-64|*"-64 ") libmagic=64-bit;; | |
5372 | *) libmagic=never-match;; | |
5373 | esac | |
5374 | lt_cv_deplibs_check_method=pass_all | |
5375 | ;; | |
5376 | ||
5377 | # This must be glibc/ELF. | |
5378 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
5379 | lt_cv_deplibs_check_method=pass_all | |
5380 | ;; | |
5381 | ||
5382 | netbsd* | netbsdelf*-gnu) | |
5383 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5384 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5385 | else | |
5386 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5387 | fi | |
5388 | ;; | |
5389 | ||
5390 | newos6*) | |
5391 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5392 | lt_cv_file_magic_cmd=/usr/bin/file | |
5393 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5394 | ;; | |
5395 | ||
5396 | *nto* | *qnx*) | |
5397 | lt_cv_deplibs_check_method=pass_all | |
5398 | ;; | |
5399 | ||
5400 | openbsd* | bitrig*) | |
5401 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
5402 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5403 | else | |
5404 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5405 | fi | |
5406 | ;; | |
5407 | ||
5408 | osf3* | osf4* | osf5*) | |
5409 | lt_cv_deplibs_check_method=pass_all | |
5410 | ;; | |
5411 | ||
5412 | rdos*) | |
5413 | lt_cv_deplibs_check_method=pass_all | |
5414 | ;; | |
5415 | ||
5416 | solaris*) | |
5417 | lt_cv_deplibs_check_method=pass_all | |
5418 | ;; | |
5419 | ||
5420 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5421 | lt_cv_deplibs_check_method=pass_all | |
5422 | ;; | |
5423 | ||
5424 | sysv4 | sysv4.3*) | |
5425 | case $host_vendor in | |
5426 | motorola) | |
5427 | 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]' | |
5428 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5429 | ;; | |
5430 | ncr) | |
5431 | lt_cv_deplibs_check_method=pass_all | |
5432 | ;; | |
5433 | sequent) | |
5434 | lt_cv_file_magic_cmd='/bin/file' | |
5435 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5436 | ;; | |
5437 | sni) | |
5438 | lt_cv_file_magic_cmd='/bin/file' | |
5439 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5440 | lt_cv_file_magic_test_file=/lib/libc.so | |
5441 | ;; | |
5442 | siemens) | |
5443 | lt_cv_deplibs_check_method=pass_all | |
5444 | ;; | |
5445 | pc) | |
5446 | lt_cv_deplibs_check_method=pass_all | |
5447 | ;; | |
5448 | esac | |
5449 | ;; | |
5450 | ||
5451 | tpf*) | |
5452 | lt_cv_deplibs_check_method=pass_all | |
5453 | ;; | |
5454 | os2*) | |
5455 | lt_cv_deplibs_check_method=pass_all | |
5456 | ;; | |
5457 | esac | |
5458 | ||
5459 | fi | |
5460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5461 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5462 | ||
5463 | file_magic_glob= | |
5464 | want_nocaseglob=no | |
5465 | if test "$build" = "$host"; then | |
5466 | case $host_os in | |
5467 | mingw* | pw32*) | |
5468 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5469 | want_nocaseglob=yes | |
5470 | else | |
5471 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5472 | fi | |
5473 | ;; | |
5474 | esac | |
5475 | fi | |
5476 | ||
5477 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5478 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5479 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5480 | ||
5481 | ||
5482 | ||
5483 | ||
5484 | ||
5485 | ||
5486 | ||
5487 | ||
5488 | ||
5489 | ||
5490 | ||
5491 | ||
5492 | ||
5493 | ||
5494 | ||
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | ||
5500 | ||
5501 | ||
5502 | if test -n "$ac_tool_prefix"; then | |
5503 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5504 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5506 | $as_echo_n "checking for $ac_word... " >&6; } | |
5507 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5508 | $as_echo_n "(cached) " >&6 | |
5509 | else | |
5510 | if test -n "$DLLTOOL"; then | |
5511 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5512 | else | |
5513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5514 | for as_dir in $PATH | |
5515 | do | |
5516 | IFS=$as_save_IFS | |
5517 | test -z "$as_dir" && as_dir=. | |
5518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5519 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5520 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5521 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5522 | break 2 | |
5523 | fi | |
5524 | done | |
5525 | done | |
5526 | IFS=$as_save_IFS | |
5527 | ||
5528 | fi | |
5529 | fi | |
5530 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5531 | if test -n "$DLLTOOL"; then | |
5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5533 | $as_echo "$DLLTOOL" >&6; } | |
5534 | else | |
5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5536 | $as_echo "no" >&6; } | |
5537 | fi | |
5538 | ||
5539 | ||
5540 | fi | |
5541 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5542 | ac_ct_DLLTOOL=$DLLTOOL | |
5543 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5544 | set dummy dlltool; ac_word=$2 | |
5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5546 | $as_echo_n "checking for $ac_word... " >&6; } | |
5547 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5548 | $as_echo_n "(cached) " >&6 | |
5549 | else | |
5550 | if test -n "$ac_ct_DLLTOOL"; then | |
5551 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5552 | else | |
5553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5554 | for as_dir in $PATH | |
5555 | do | |
5556 | IFS=$as_save_IFS | |
5557 | test -z "$as_dir" && as_dir=. | |
5558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5559 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5560 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5562 | break 2 | |
5563 | fi | |
5564 | done | |
5565 | done | |
5566 | IFS=$as_save_IFS | |
5567 | ||
5568 | fi | |
5569 | fi | |
5570 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5571 | if test -n "$ac_ct_DLLTOOL"; then | |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5573 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5574 | else | |
5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5576 | $as_echo "no" >&6; } | |
5577 | fi | |
5578 | ||
5579 | if test "x$ac_ct_DLLTOOL" = x; then | |
5580 | DLLTOOL="false" | |
5581 | else | |
5582 | case $cross_compiling:$ac_tool_warned in | |
5583 | yes:) | |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5585 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5586 | ac_tool_warned=yes ;; | |
5587 | esac | |
5588 | DLLTOOL=$ac_ct_DLLTOOL | |
5589 | fi | |
5590 | else | |
5591 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5592 | fi | |
5593 | ||
5594 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5595 | ||
5596 | ||
5597 | ||
5598 | ||
5599 | ||
5600 | ||
5601 | ||
5602 | ||
5603 | ||
5604 | ||
5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5606 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5607 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5608 | $as_echo_n "(cached) " >&6 | |
5609 | else | |
5610 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5611 | ||
5612 | case $host_os in | |
5613 | cygwin* | mingw* | pw32* | cegcc*) | |
5614 | # two different shell functions defined in ltmain.sh; | |
5615 | # decide which one to use based on capabilities of $DLLTOOL | |
5616 | case `$DLLTOOL --help 2>&1` in | |
5617 | *--identify-strict*) | |
5618 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5619 | ;; | |
5620 | *) | |
5621 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5622 | ;; | |
5623 | esac | |
5624 | ;; | |
5625 | *) | |
5626 | # fallback: assume linklib IS sharedlib | |
5627 | lt_cv_sharedlib_from_linklib_cmd=$ECHO | |
5628 | ;; | |
5629 | esac | |
5630 | ||
5631 | fi | |
5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5633 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5634 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5635 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5636 | ||
5637 | ||
5638 | ||
5639 | ||
5640 | ||
5641 | ||
5642 | ||
5643 | ||
5644 | if test -n "$ac_tool_prefix"; then | |
5645 | for ac_prog in ar | |
5646 | do | |
5647 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5648 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5650 | $as_echo_n "checking for $ac_word... " >&6; } | |
5651 | if ${ac_cv_prog_AR+:} false; then : | |
5652 | $as_echo_n "(cached) " >&6 | |
5653 | else | |
5654 | if test -n "$AR"; then | |
5655 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5656 | else | |
5657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5658 | for as_dir in $PATH | |
5659 | do | |
5660 | IFS=$as_save_IFS | |
5661 | test -z "$as_dir" && as_dir=. | |
5662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5663 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5664 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5666 | break 2 | |
5667 | fi | |
5668 | done | |
5669 | done | |
5670 | IFS=$as_save_IFS | |
5671 | ||
5672 | fi | |
5673 | fi | |
5674 | AR=$ac_cv_prog_AR | |
5675 | if test -n "$AR"; then | |
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5677 | $as_echo "$AR" >&6; } | |
5678 | else | |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5680 | $as_echo "no" >&6; } | |
5681 | fi | |
5682 | ||
5683 | ||
5684 | test -n "$AR" && break | |
5685 | done | |
5686 | fi | |
5687 | if test -z "$AR"; then | |
5688 | ac_ct_AR=$AR | |
5689 | for ac_prog in ar | |
5690 | do | |
5691 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5692 | set dummy $ac_prog; ac_word=$2 | |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5694 | $as_echo_n "checking for $ac_word... " >&6; } | |
5695 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5696 | $as_echo_n "(cached) " >&6 | |
5697 | else | |
5698 | if test -n "$ac_ct_AR"; then | |
5699 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5700 | else | |
5701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5702 | for as_dir in $PATH | |
5703 | do | |
5704 | IFS=$as_save_IFS | |
5705 | test -z "$as_dir" && as_dir=. | |
5706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5707 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5708 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5710 | break 2 | |
5711 | fi | |
5712 | done | |
5713 | done | |
5714 | IFS=$as_save_IFS | |
5715 | ||
5716 | fi | |
5717 | fi | |
5718 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5719 | if test -n "$ac_ct_AR"; then | |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5721 | $as_echo "$ac_ct_AR" >&6; } | |
5722 | else | |
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5724 | $as_echo "no" >&6; } | |
5725 | fi | |
5726 | ||
5727 | ||
5728 | test -n "$ac_ct_AR" && break | |
5729 | done | |
5730 | ||
5731 | if test "x$ac_ct_AR" = x; then | |
5732 | AR="false" | |
5733 | else | |
5734 | case $cross_compiling:$ac_tool_warned in | |
5735 | yes:) | |
5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5737 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5738 | ac_tool_warned=yes ;; | |
5739 | esac | |
5740 | AR=$ac_ct_AR | |
5741 | fi | |
5742 | fi | |
5743 | ||
5744 | : ${AR=ar} | |
5745 | : ${AR_FLAGS=cru} | |
5746 | ||
5747 | ||
5748 | ||
5749 | ||
5750 | ||
5751 | ||
5752 | ||
5753 | ||
5754 | ||
5755 | ||
5756 | ||
5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5758 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5759 | if ${lt_cv_ar_at_file+:} false; then : | |
5760 | $as_echo_n "(cached) " >&6 | |
5761 | else | |
5762 | lt_cv_ar_at_file=no | |
5763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5764 | /* end confdefs.h. */ | |
5765 | ||
5766 | int | |
5767 | main () | |
5768 | { | |
5769 | ||
5770 | ; | |
5771 | return 0; | |
5772 | } | |
5773 | _ACEOF | |
5774 | if ac_fn_c_try_compile "$LINENO"; then : | |
5775 | echo conftest.$ac_objext > conftest.lst | |
5776 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5777 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5778 | (eval $lt_ar_try) 2>&5 | |
5779 | ac_status=$? | |
5780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5781 | test $ac_status = 0; } | |
5782 | if test 0 -eq "$ac_status"; then | |
5783 | # Ensure the archiver fails upon bogus file names. | |
5784 | rm -f conftest.$ac_objext libconftest.a | |
5785 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5786 | (eval $lt_ar_try) 2>&5 | |
5787 | ac_status=$? | |
5788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5789 | test $ac_status = 0; } | |
5790 | if test 0 -ne "$ac_status"; then | |
5791 | lt_cv_ar_at_file=@ | |
5792 | fi | |
5793 | fi | |
5794 | rm -f conftest.* libconftest.a | |
5795 | ||
5796 | fi | |
5797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5798 | ||
5799 | fi | |
5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5801 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5802 | ||
5803 | if test no = "$lt_cv_ar_at_file"; then | |
5804 | archiver_list_spec= | |
5805 | else | |
5806 | archiver_list_spec=$lt_cv_ar_at_file | |
5807 | fi | |
5808 | ||
5809 | ||
5810 | ||
5811 | ||
5812 | ||
5813 | ||
5814 | ||
5815 | if test -n "$ac_tool_prefix"; then | |
5816 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5817 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5819 | $as_echo_n "checking for $ac_word... " >&6; } | |
5820 | if ${ac_cv_prog_STRIP+:} false; then : | |
5821 | $as_echo_n "(cached) " >&6 | |
5822 | else | |
5823 | if test -n "$STRIP"; then | |
5824 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5825 | else | |
5826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5827 | for as_dir in $PATH | |
5828 | do | |
5829 | IFS=$as_save_IFS | |
5830 | test -z "$as_dir" && as_dir=. | |
5831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5832 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5833 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5835 | break 2 | |
5836 | fi | |
5837 | done | |
5838 | done | |
5839 | IFS=$as_save_IFS | |
5840 | ||
5841 | fi | |
5842 | fi | |
5843 | STRIP=$ac_cv_prog_STRIP | |
5844 | if test -n "$STRIP"; then | |
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5846 | $as_echo "$STRIP" >&6; } | |
5847 | else | |
5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5849 | $as_echo "no" >&6; } | |
5850 | fi | |
5851 | ||
5852 | ||
5853 | fi | |
5854 | if test -z "$ac_cv_prog_STRIP"; then | |
5855 | ac_ct_STRIP=$STRIP | |
5856 | # Extract the first word of "strip", so it can be a program name with args. | |
5857 | set dummy strip; ac_word=$2 | |
5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5859 | $as_echo_n "checking for $ac_word... " >&6; } | |
5860 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
5861 | $as_echo_n "(cached) " >&6 | |
5862 | else | |
5863 | if test -n "$ac_ct_STRIP"; then | |
5864 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5865 | else | |
5866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5867 | for as_dir in $PATH | |
5868 | do | |
5869 | IFS=$as_save_IFS | |
5870 | test -z "$as_dir" && as_dir=. | |
5871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5872 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5873 | ac_cv_prog_ac_ct_STRIP="strip" | |
5874 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5875 | break 2 | |
5876 | fi | |
5877 | done | |
5878 | done | |
5879 | IFS=$as_save_IFS | |
5880 | ||
5881 | fi | |
5882 | fi | |
5883 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5884 | if test -n "$ac_ct_STRIP"; then | |
5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
5886 | $as_echo "$ac_ct_STRIP" >&6; } | |
5887 | else | |
5888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5889 | $as_echo "no" >&6; } | |
5890 | fi | |
5891 | ||
5892 | if test "x$ac_ct_STRIP" = x; then | |
5893 | STRIP=":" | |
5894 | else | |
5895 | case $cross_compiling:$ac_tool_warned in | |
5896 | yes:) | |
5897 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5898 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5899 | ac_tool_warned=yes ;; | |
5900 | esac | |
5901 | STRIP=$ac_ct_STRIP | |
5902 | fi | |
5903 | else | |
5904 | STRIP="$ac_cv_prog_STRIP" | |
5905 | fi | |
5906 | ||
5907 | test -z "$STRIP" && STRIP=: | |
5908 | ||
5909 | ||
5910 | ||
5911 | ||
5912 | ||
5913 | ||
5914 | if test -n "$ac_tool_prefix"; then | |
5915 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5916 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5918 | $as_echo_n "checking for $ac_word... " >&6; } | |
5919 | if ${ac_cv_prog_RANLIB+:} false; then : | |
5920 | $as_echo_n "(cached) " >&6 | |
5921 | else | |
5922 | if test -n "$RANLIB"; then | |
5923 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5924 | else | |
5925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5926 | for as_dir in $PATH | |
5927 | do | |
5928 | IFS=$as_save_IFS | |
5929 | test -z "$as_dir" && as_dir=. | |
5930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5931 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5932 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5934 | break 2 | |
5935 | fi | |
5936 | done | |
5937 | done | |
5938 | IFS=$as_save_IFS | |
5939 | ||
5940 | fi | |
5941 | fi | |
5942 | RANLIB=$ac_cv_prog_RANLIB | |
5943 | if test -n "$RANLIB"; then | |
5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5945 | $as_echo "$RANLIB" >&6; } | |
5946 | else | |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5948 | $as_echo "no" >&6; } | |
5949 | fi | |
5950 | ||
5951 | ||
5952 | fi | |
5953 | if test -z "$ac_cv_prog_RANLIB"; then | |
5954 | ac_ct_RANLIB=$RANLIB | |
5955 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5956 | set dummy ranlib; ac_word=$2 | |
5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5958 | $as_echo_n "checking for $ac_word... " >&6; } | |
5959 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5960 | $as_echo_n "(cached) " >&6 | |
5961 | else | |
5962 | if test -n "$ac_ct_RANLIB"; then | |
5963 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5964 | else | |
5965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5966 | for as_dir in $PATH | |
5967 | do | |
5968 | IFS=$as_save_IFS | |
5969 | test -z "$as_dir" && as_dir=. | |
5970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5972 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5974 | break 2 | |
5975 | fi | |
5976 | done | |
5977 | done | |
5978 | IFS=$as_save_IFS | |
5979 | ||
5980 | fi | |
5981 | fi | |
5982 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5983 | if test -n "$ac_ct_RANLIB"; then | |
5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5985 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5986 | else | |
5987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5988 | $as_echo "no" >&6; } | |
5989 | fi | |
5990 | ||
5991 | if test "x$ac_ct_RANLIB" = x; then | |
5992 | RANLIB=":" | |
5993 | else | |
5994 | case $cross_compiling:$ac_tool_warned in | |
5995 | yes:) | |
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5997 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5998 | ac_tool_warned=yes ;; | |
5999 | esac | |
6000 | RANLIB=$ac_ct_RANLIB | |
6001 | fi | |
6002 | else | |
6003 | RANLIB="$ac_cv_prog_RANLIB" | |
6004 | fi | |
6005 | ||
6006 | test -z "$RANLIB" && RANLIB=: | |
6007 | ||
6008 | ||
6009 | ||
6010 | ||
6011 | ||
6012 | ||
6013 | # Determine commands to create old-style static archives. | |
6014 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6015 | old_postinstall_cmds='chmod 644 $oldlib' | |
6016 | old_postuninstall_cmds= | |
6017 | ||
6018 | if test -n "$RANLIB"; then | |
6019 | case $host_os in | |
6020 | bitrig* | openbsd*) | |
6021 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6022 | ;; | |
6023 | *) | |
6024 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6025 | ;; | |
6026 | esac | |
6027 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
6028 | fi | |
6029 | ||
6030 | case $host_os in | |
6031 | darwin*) | |
6032 | lock_old_archive_extraction=yes ;; | |
6033 | *) | |
6034 | lock_old_archive_extraction=no ;; | |
6035 | esac | |
6036 | ||
6037 | ||
6038 | ||
6039 | ||
6040 | ||
6041 | ||
6042 | ||
6043 | ||
6044 | ||
6045 | ||
6046 | ||
6047 | ||
6048 | ||
6049 | ||
6050 | ||
6051 | ||
6052 | ||
6053 | ||
6054 | ||
6055 | ||
6056 | ||
6057 | ||
6058 | ||
6059 | ||
6060 | ||
6061 | ||
6062 | ||
6063 | ||
6064 | ||
6065 | ||
6066 | ||
6067 | ||
6068 | ||
6069 | ||
6070 | ||
6071 | ||
6072 | ||
6073 | ||
6074 | ||
6075 | # If no C compiler was specified, use CC. | |
6076 | LTCC=${LTCC-"$CC"} | |
6077 | ||
6078 | # If no C compiler flags were specified, use CFLAGS. | |
6079 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6080 | ||
6081 | # Allow CC to be a program name with arguments. | |
6082 | compiler=$CC | |
6083 | ||
6084 | ||
6085 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6087 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6088 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6089 | $as_echo_n "(cached) " >&6 | |
6090 | else | |
6091 | ||
6092 | # These are sane defaults that work on at least a few old systems. | |
6093 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6094 | ||
6095 | # Character class describing NM global symbol codes. | |
6096 | symcode='[BCDEGRST]' | |
6097 | ||
6098 | # Regexp to match symbols that can be accessed directly from C. | |
6099 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6100 | ||
6101 | # Define system-specific variables. | |
6102 | case $host_os in | |
6103 | aix*) | |
6104 | symcode='[BCDT]' | |
6105 | ;; | |
6106 | cygwin* | mingw* | pw32* | cegcc*) | |
6107 | symcode='[ABCDGISTW]' | |
6108 | ;; | |
6109 | hpux*) | |
6110 | if test ia64 = "$host_cpu"; then | |
6111 | symcode='[ABCDEGRST]' | |
6112 | fi | |
6113 | ;; | |
6114 | irix* | nonstopux*) | |
6115 | symcode='[BCDEGRST]' | |
6116 | ;; | |
6117 | osf*) | |
6118 | symcode='[BCDEGQRST]' | |
6119 | ;; | |
6120 | solaris*) | |
6121 | symcode='[BDRT]' | |
6122 | ;; | |
6123 | sco3.2v5*) | |
6124 | symcode='[DT]' | |
6125 | ;; | |
6126 | sysv4.2uw2*) | |
6127 | symcode='[DT]' | |
6128 | ;; | |
6129 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6130 | symcode='[ABDT]' | |
6131 | ;; | |
6132 | sysv4) | |
6133 | symcode='[DFNSTU]' | |
6134 | ;; | |
6135 | esac | |
6136 | ||
6137 | # If we're using GNU nm, then use its standard symbol codes. | |
6138 | case `$NM -V 2>&1` in | |
6139 | *GNU* | *'with BFD'*) | |
6140 | symcode='[ABCDGIRSTW]' ;; | |
6141 | esac | |
6142 | ||
6143 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6144 | # Gets list of data symbols to import. | |
6145 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6146 | # Adjust the below global symbol transforms to fixup imported variables. | |
6147 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6148 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6149 | lt_c_name_lib_hook="\ | |
6150 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6151 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6152 | else | |
6153 | # Disable hooks by default. | |
6154 | lt_cv_sys_global_symbol_to_import= | |
6155 | lt_cdecl_hook= | |
6156 | lt_c_name_hook= | |
6157 | lt_c_name_lib_hook= | |
6158 | fi | |
6159 | ||
6160 | # Transform an extracted symbol line into a proper C declaration. | |
6161 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6162 | # so use this general approach. | |
6163 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ | |
6164 | $lt_cdecl_hook\ | |
6165 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6166 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
6167 | ||
6168 | # Transform an extracted symbol line into symbol name and symbol address | |
6169 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ | |
6170 | $lt_c_name_hook\ | |
6171 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6172 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6173 | ||
6174 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6175 | # symbol address. | |
6176 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6177 | $lt_c_name_lib_hook\ | |
6178 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6179 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6180 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
6181 | ||
6182 | # Handle CRLF in mingw tool chain | |
6183 | opt_cr= | |
6184 | case $build_os in | |
6185 | mingw*) | |
6186 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6187 | ;; | |
6188 | esac | |
6189 | ||
6190 | # Try without a prefix underscore, then with it. | |
6191 | for ac_symprfx in "" "_"; do | |
6192 | ||
6193 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6194 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6195 | ||
6196 | # Write the raw and C identifiers. | |
6197 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6198 | # Fake it for dumpbin and say T for any non-static function, | |
6199 | # D for any global variable and I for any imported variable. | |
6200 | # Also find C++ and __fastcall symbols from MSVC++, | |
6201 | # which start with @ or ?. | |
6202 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6203 | " {last_section=section; section=\$ 3};"\ | |
6204 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
6205 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6206 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ | |
6207 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6208 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
6209 | " \$ 0!~/External *\|/{next};"\ | |
6210 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6211 | " {if(hide[section]) next};"\ | |
6212 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ | |
6213 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6214 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6215 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
6216 | " ' prfx=^$ac_symprfx" | |
6217 | else | |
6218 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6219 | fi | |
6220 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6221 | ||
6222 | # Check to see that the pipe works correctly. | |
6223 | pipe_works=no | |
6224 | ||
6225 | rm -f conftest* | |
6226 | cat > conftest.$ac_ext <<_LT_EOF | |
6227 | #ifdef __cplusplus | |
6228 | extern "C" { | |
6229 | #endif | |
6230 | char nm_test_var; | |
6231 | void nm_test_func(void); | |
6232 | void nm_test_func(void){} | |
6233 | #ifdef __cplusplus | |
6234 | } | |
6235 | #endif | |
6236 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6237 | _LT_EOF | |
6238 | ||
6239 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6240 | (eval $ac_compile) 2>&5 | |
6241 | ac_status=$? | |
6242 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6243 | test $ac_status = 0; }; then | |
6244 | # Now try to grab the symbols. | |
6245 | nlist=conftest.nm | |
6246 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6247 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6248 | ac_status=$? | |
6249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6250 | test $ac_status = 0; } && test -s "$nlist"; then | |
6251 | # Try sorting and uniquifying the output. | |
6252 | if sort "$nlist" | uniq > "$nlist"T; then | |
6253 | mv -f "$nlist"T "$nlist" | |
6254 | else | |
6255 | rm -f "$nlist"T | |
6256 | fi | |
6257 | ||
6258 | # Make sure that we snagged all the symbols we need. | |
6259 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6260 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6261 | cat <<_LT_EOF > conftest.$ac_ext | |
6262 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6263 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE | |
6264 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
6265 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6266 | # define LT_DLSYM_CONST | |
6267 | #elif defined __osf__ | |
6268 | /* This system does not cope well with relocations in const data. */ | |
6269 | # define LT_DLSYM_CONST | |
6270 | #else | |
6271 | # define LT_DLSYM_CONST const | |
6272 | #endif | |
6273 | ||
6274 | #ifdef __cplusplus | |
6275 | extern "C" { | |
6276 | #endif | |
6277 | ||
6278 | _LT_EOF | |
6279 | # Now generate the symbol file. | |
6280 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6281 | ||
6282 | cat <<_LT_EOF >> conftest.$ac_ext | |
6283 | ||
6284 | /* The mapping between symbol names and symbols. */ | |
6285 | LT_DLSYM_CONST struct { | |
6286 | const char *name; | |
6287 | void *address; | |
6288 | } | |
6289 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6290 | { | |
6291 | { "@PROGRAM@", (void *) 0 }, | |
6292 | _LT_EOF | |
6293 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6294 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6295 | {0, (void *) 0} | |
6296 | }; | |
6297 | ||
6298 | /* This works around a problem in FreeBSD linker */ | |
6299 | #ifdef FREEBSD_WORKAROUND | |
6300 | static const void *lt_preloaded_setup() { | |
6301 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6302 | } | |
6303 | #endif | |
6304 | ||
6305 | #ifdef __cplusplus | |
6306 | } | |
6307 | #endif | |
6308 | _LT_EOF | |
6309 | # Now try linking the two files. | |
6310 | mv conftest.$ac_objext conftstm.$ac_objext | |
6311 | lt_globsym_save_LIBS=$LIBS | |
6312 | lt_globsym_save_CFLAGS=$CFLAGS | |
6313 | LIBS=conftstm.$ac_objext | |
6314 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6315 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6316 | (eval $ac_link) 2>&5 | |
6317 | ac_status=$? | |
6318 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6319 | test $ac_status = 0; } && test -s conftest$ac_exeext; then | |
6320 | pipe_works=yes | |
6321 | fi | |
6322 | LIBS=$lt_globsym_save_LIBS | |
6323 | CFLAGS=$lt_globsym_save_CFLAGS | |
6324 | else | |
6325 | echo "cannot find nm_test_func in $nlist" >&5 | |
6326 | fi | |
6327 | else | |
6328 | echo "cannot find nm_test_var in $nlist" >&5 | |
6329 | fi | |
6330 | else | |
6331 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6332 | fi | |
6333 | else | |
6334 | echo "$progname: failed program was:" >&5 | |
6335 | cat conftest.$ac_ext >&5 | |
6336 | fi | |
6337 | rm -rf conftest* conftst* | |
6338 | ||
6339 | # Do not use the global_symbol_pipe unless it works. | |
6340 | if test yes = "$pipe_works"; then | |
6341 | break | |
6342 | else | |
6343 | lt_cv_sys_global_symbol_pipe= | |
6344 | fi | |
6345 | done | |
6346 | ||
6347 | fi | |
6348 | ||
6349 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6350 | lt_cv_sys_global_symbol_to_cdecl= | |
6351 | fi | |
6352 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6354 | $as_echo "failed" >&6; } | |
6355 | else | |
6356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6357 | $as_echo "ok" >&6; } | |
6358 | fi | |
6359 | ||
6360 | # Response file support. | |
6361 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6362 | nm_file_list_spec='@' | |
6363 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6364 | nm_file_list_spec='@' | |
6365 | fi | |
6366 | ||
6367 | ||
6368 | ||
6369 | ||
6370 | ||
6371 | ||
6372 | ||
6373 | ||
6374 | ||
6375 | ||
6376 | ||
6377 | ||
6378 | ||
6379 | ||
6380 | ||
6381 | ||
6382 | ||
6383 | ||
6384 | ||
6385 | ||
6386 | ||
6387 | ||
6388 | ||
6389 | ||
6390 | ||
6391 | ||
6392 | ||
6393 | ||
6394 | ||
6395 | ||
6396 | ||
6397 | ||
6398 | ||
6399 | ||
6400 | ||
6401 | ||
6402 | ||
6403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6404 | $as_echo_n "checking for sysroot... " >&6; } | |
6405 | ||
6406 | # Check whether --with-sysroot was given. | |
6407 | if test "${with_sysroot+set}" = set; then : | |
6408 | withval=$with_sysroot; | |
6409 | else | |
6410 | with_sysroot=no | |
6411 | fi | |
6412 | ||
6413 | ||
6414 | lt_sysroot= | |
6415 | case $with_sysroot in #( | |
6416 | yes) | |
6417 | if test yes = "$GCC"; then | |
6418 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6419 | fi | |
6420 | ;; #( | |
6421 | /*) | |
6422 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6423 | ;; #( | |
6424 | no|'') | |
6425 | ;; #( | |
6426 | *) | |
6427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 | |
6428 | $as_echo "$with_sysroot" >&6; } | |
6429 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6430 | ;; | |
6431 | esac | |
6432 | ||
6433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6434 | $as_echo "${lt_sysroot:-no}" >&6; } | |
6435 | ||
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 | |
6441 | $as_echo_n "checking for a working dd... " >&6; } | |
6442 | if ${ac_cv_path_lt_DD+:} false; then : | |
6443 | $as_echo_n "(cached) " >&6 | |
6444 | else | |
6445 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6446 | cat conftest.i conftest.i >conftest2.i | |
6447 | : ${lt_DD:=$DD} | |
6448 | if test -z "$lt_DD"; then | |
6449 | ac_path_lt_DD_found=false | |
6450 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6452 | for as_dir in $PATH | |
6453 | do | |
6454 | IFS=$as_save_IFS | |
6455 | test -z "$as_dir" && as_dir=. | |
6456 | for ac_prog in dd; do | |
6457 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6458 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6459 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6460 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6461 | cmp -s conftest.i conftest.out \ | |
6462 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6463 | fi | |
6464 | $ac_path_lt_DD_found && break 3 | |
6465 | done | |
6466 | done | |
6467 | done | |
6468 | IFS=$as_save_IFS | |
6469 | if test -z "$ac_cv_path_lt_DD"; then | |
6470 | : | |
6471 | fi | |
6472 | else | |
6473 | ac_cv_path_lt_DD=$lt_DD | |
6474 | fi | |
6475 | ||
6476 | rm -f conftest.i conftest2.i conftest.out | |
6477 | fi | |
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6479 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6480 | ||
6481 | ||
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6483 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6484 | if ${lt_cv_truncate_bin+:} false; then : | |
6485 | $as_echo_n "(cached) " >&6 | |
6486 | else | |
6487 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6488 | cat conftest.i conftest.i >conftest2.i | |
6489 | lt_cv_truncate_bin= | |
6490 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6491 | cmp -s conftest.i conftest.out \ | |
6492 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6493 | fi | |
6494 | rm -f conftest.i conftest2.i conftest.out | |
6495 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6496 | fi | |
6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6498 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6507 | func_cc_basename () | |
6508 | { | |
6509 | for cc_temp in $*""; do | |
6510 | case $cc_temp in | |
6511 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6512 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6513 | \-*) ;; | |
6514 | *) break;; | |
6515 | esac | |
6516 | done | |
6517 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6518 | } | |
6519 | ||
6520 | # Check whether --enable-libtool-lock was given. | |
6521 | if test "${enable_libtool_lock+set}" = set; then : | |
6522 | enableval=$enable_libtool_lock; | |
6523 | fi | |
6524 | ||
6525 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes | |
6526 | ||
6527 | # Some flags need to be propagated to the compiler or linker for good | |
6528 | # libtool support. | |
6529 | case $host in | |
6530 | ia64-*-hpux*) | |
6531 | # Find out what ABI is being produced by ac_compile, and set mode | |
6532 | # options accordingly. | |
6533 | echo 'int i;' > 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 | |
6539 | case `/usr/bin/file conftest.$ac_objext` in | |
6540 | *ELF-32*) | |
6541 | HPUX_IA64_MODE=32 | |
6542 | ;; | |
6543 | *ELF-64*) | |
6544 | HPUX_IA64_MODE=64 | |
6545 | ;; | |
6546 | esac | |
6547 | fi | |
6548 | rm -rf conftest* | |
6549 | ;; | |
6550 | *-*-irix6*) | |
6551 | # Find out what ABI is being produced by ac_compile, and set linker | |
6552 | # options accordingly. | |
6553 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6554 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6555 | (eval $ac_compile) 2>&5 | |
6556 | ac_status=$? | |
6557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6558 | test $ac_status = 0; }; then | |
6559 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
6560 | case `/usr/bin/file conftest.$ac_objext` in | |
6561 | *32-bit*) | |
6562 | LD="${LD-ld} -melf32bsmip" | |
6563 | ;; | |
6564 | *N32*) | |
6565 | LD="${LD-ld} -melf32bmipn32" | |
6566 | ;; | |
6567 | *64-bit*) | |
6568 | LD="${LD-ld} -melf64bmip" | |
6569 | ;; | |
6570 | esac | |
6571 | else | |
6572 | case `/usr/bin/file conftest.$ac_objext` in | |
6573 | *32-bit*) | |
6574 | LD="${LD-ld} -32" | |
6575 | ;; | |
6576 | *N32*) | |
6577 | LD="${LD-ld} -n32" | |
6578 | ;; | |
6579 | *64-bit*) | |
6580 | LD="${LD-ld} -64" | |
6581 | ;; | |
6582 | esac | |
6583 | fi | |
6584 | fi | |
6585 | rm -rf conftest* | |
6586 | ;; | |
6587 | ||
6588 | mips64*-*linux*) | |
6589 | # Find out what ABI is being produced by ac_compile, and set linker | |
6590 | # options accordingly. | |
6591 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6592 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6593 | (eval $ac_compile) 2>&5 | |
6594 | ac_status=$? | |
6595 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6596 | test $ac_status = 0; }; then | |
6597 | emul=elf | |
6598 | case `/usr/bin/file conftest.$ac_objext` in | |
6599 | *32-bit*) | |
6600 | emul="${emul}32" | |
6601 | ;; | |
6602 | *64-bit*) | |
6603 | emul="${emul}64" | |
6604 | ;; | |
6605 | esac | |
6606 | case `/usr/bin/file conftest.$ac_objext` in | |
6607 | *MSB*) | |
6608 | emul="${emul}btsmip" | |
6609 | ;; | |
6610 | *LSB*) | |
6611 | emul="${emul}ltsmip" | |
6612 | ;; | |
6613 | esac | |
6614 | case `/usr/bin/file conftest.$ac_objext` in | |
6615 | *N32*) | |
6616 | emul="${emul}n32" | |
6617 | ;; | |
6618 | esac | |
6619 | LD="${LD-ld} -m $emul" | |
6620 | fi | |
6621 | rm -rf conftest* | |
6622 | ;; | |
6623 | ||
6624 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
6625 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6626 | # Find out what ABI is being produced by ac_compile, and set linker | |
6627 | # options accordingly. Note that the listed cases only cover the | |
6628 | # situations where additional linker options are needed (such as when | |
6629 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6630 | # vice versa); the common cases where no linker options are needed do | |
6631 | # not appear in the list. | |
6632 | echo 'int i;' > conftest.$ac_ext | |
6633 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6634 | (eval $ac_compile) 2>&5 | |
6635 | ac_status=$? | |
6636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6637 | test $ac_status = 0; }; then | |
6638 | case `/usr/bin/file conftest.o` in | |
6639 | *32-bit*) | |
6640 | case $host in | |
6641 | x86_64-*kfreebsd*-gnu) | |
6642 | LD="${LD-ld} -m elf_i386_fbsd" | |
6643 | ;; | |
6644 | x86_64-*linux*) | |
6645 | case `/usr/bin/file conftest.o` in | |
6646 | *x86-64*) | |
6647 | LD="${LD-ld} -m elf32_x86_64" | |
6648 | ;; | |
6649 | *) | |
6650 | LD="${LD-ld} -m elf_i386" | |
6651 | ;; | |
6652 | esac | |
6653 | ;; | |
6654 | powerpc64le-*linux*) | |
6655 | LD="${LD-ld} -m elf32lppclinux" | |
6656 | ;; | |
6657 | powerpc64-*linux*) | |
6658 | LD="${LD-ld} -m elf32ppclinux" | |
6659 | ;; | |
6660 | s390x-*linux*) | |
6661 | LD="${LD-ld} -m elf_s390" | |
6662 | ;; | |
6663 | sparc64-*linux*) | |
6664 | LD="${LD-ld} -m elf32_sparc" | |
6665 | ;; | |
6666 | esac | |
6667 | ;; | |
6668 | *64-bit*) | |
6669 | case $host in | |
6670 | x86_64-*kfreebsd*-gnu) | |
6671 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6672 | ;; | |
6673 | x86_64-*linux*) | |
6674 | LD="${LD-ld} -m elf_x86_64" | |
6675 | ;; | |
6676 | powerpcle-*linux*) | |
6677 | LD="${LD-ld} -m elf64lppc" | |
6678 | ;; | |
6679 | powerpc-*linux*) | |
6680 | LD="${LD-ld} -m elf64ppc" | |
6681 | ;; | |
6682 | s390*-*linux*|s390*-*tpf*) | |
6683 | LD="${LD-ld} -m elf64_s390" | |
6684 | ;; | |
6685 | sparc*-*linux*) | |
6686 | LD="${LD-ld} -m elf64_sparc" | |
6687 | ;; | |
6688 | esac | |
6689 | ;; | |
6690 | esac | |
6691 | fi | |
6692 | rm -rf conftest* | |
6693 | ;; | |
6694 | ||
6695 | *-*-sco3.2v5*) | |
6696 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6697 | SAVE_CFLAGS=$CFLAGS | |
6698 | CFLAGS="$CFLAGS -belf" | |
6699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6700 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6701 | if ${lt_cv_cc_needs_belf+:} false; then : | |
6702 | $as_echo_n "(cached) " >&6 | |
6703 | else | |
6704 | ac_ext=c | |
6705 | ac_cpp='$CPP $CPPFLAGS' | |
6706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6709 | ||
6710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6711 | /* end confdefs.h. */ | |
6712 | ||
6713 | int | |
6714 | main () | |
6715 | { | |
6716 | ||
6717 | ; | |
6718 | return 0; | |
6719 | } | |
6720 | _ACEOF | |
6721 | if ac_fn_c_try_link "$LINENO"; then : | |
6722 | lt_cv_cc_needs_belf=yes | |
6723 | else | |
6724 | lt_cv_cc_needs_belf=no | |
6725 | fi | |
6726 | rm -f core conftest.err conftest.$ac_objext \ | |
6727 | conftest$ac_exeext conftest.$ac_ext | |
6728 | ac_ext=c | |
6729 | ac_cpp='$CPP $CPPFLAGS' | |
6730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6733 | ||
6734 | fi | |
6735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6736 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6737 | if test yes != "$lt_cv_cc_needs_belf"; then | |
6738 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6739 | CFLAGS=$SAVE_CFLAGS | |
6740 | fi | |
6741 | ;; | |
6742 | *-*solaris*) | |
6743 | # Find out what ABI is being produced by ac_compile, and set linker | |
6744 | # options accordingly. | |
6745 | echo 'int i;' > conftest.$ac_ext | |
6746 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6747 | (eval $ac_compile) 2>&5 | |
6748 | ac_status=$? | |
6749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6750 | test $ac_status = 0; }; then | |
6751 | case `/usr/bin/file conftest.o` in | |
6752 | *64-bit*) | |
6753 | case $lt_cv_prog_gnu_ld in | |
6754 | yes*) | |
6755 | case $host in | |
6756 | i?86-*-solaris*|x86_64-*-solaris*) | |
6757 | LD="${LD-ld} -m elf_x86_64" | |
6758 | ;; | |
6759 | sparc*-*-solaris*) | |
6760 | LD="${LD-ld} -m elf64_sparc" | |
6761 | ;; | |
6762 | esac | |
6763 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6764 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
6765 | LD=${LD-ld}_sol2 | |
6766 | fi | |
6767 | ;; | |
6768 | *) | |
6769 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6770 | LD="${LD-ld} -64" | |
6771 | fi | |
6772 | ;; | |
6773 | esac | |
6774 | ;; | |
6775 | esac | |
6776 | fi | |
6777 | rm -rf conftest* | |
6778 | ;; | |
6779 | esac | |
6780 | ||
6781 | need_locks=$enable_libtool_lock | |
6782 | ||
6783 | if test -n "$ac_tool_prefix"; then | |
6784 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6785 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6787 | $as_echo_n "checking for $ac_word... " >&6; } | |
6788 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6789 | $as_echo_n "(cached) " >&6 | |
6790 | else | |
6791 | if test -n "$MANIFEST_TOOL"; then | |
6792 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6793 | else | |
6794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6795 | for as_dir in $PATH | |
6796 | do | |
6797 | IFS=$as_save_IFS | |
6798 | test -z "$as_dir" && as_dir=. | |
6799 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6800 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6801 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6803 | break 2 | |
6804 | fi | |
6805 | done | |
6806 | done | |
6807 | IFS=$as_save_IFS | |
6808 | ||
6809 | fi | |
6810 | fi | |
6811 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6812 | if test -n "$MANIFEST_TOOL"; then | |
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6814 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6815 | else | |
6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6817 | $as_echo "no" >&6; } | |
6818 | fi | |
6819 | ||
6820 | ||
6821 | fi | |
6822 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6823 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6824 | # Extract the first word of "mt", so it can be a program name with args. | |
6825 | set dummy mt; ac_word=$2 | |
6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6827 | $as_echo_n "checking for $ac_word... " >&6; } | |
6828 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6829 | $as_echo_n "(cached) " >&6 | |
6830 | else | |
6831 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6832 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6833 | else | |
6834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6835 | for as_dir in $PATH | |
6836 | do | |
6837 | IFS=$as_save_IFS | |
6838 | test -z "$as_dir" && as_dir=. | |
6839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6840 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6841 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6843 | break 2 | |
6844 | fi | |
6845 | done | |
6846 | done | |
6847 | IFS=$as_save_IFS | |
6848 | ||
6849 | fi | |
6850 | fi | |
6851 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6852 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6854 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6855 | else | |
6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6857 | $as_echo "no" >&6; } | |
6858 | fi | |
6859 | ||
6860 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6861 | MANIFEST_TOOL=":" | |
6862 | else | |
6863 | case $cross_compiling:$ac_tool_warned in | |
6864 | yes:) | |
6865 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6866 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6867 | ac_tool_warned=yes ;; | |
6868 | esac | |
6869 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6870 | fi | |
6871 | else | |
6872 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6873 | fi | |
6874 | ||
6875 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6877 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6878 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6879 | $as_echo_n "(cached) " >&6 | |
6880 | else | |
6881 | lt_cv_path_mainfest_tool=no | |
6882 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6883 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6884 | cat conftest.err >&5 | |
6885 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6886 | lt_cv_path_mainfest_tool=yes | |
6887 | fi | |
6888 | rm -f conftest* | |
6889 | fi | |
6890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6891 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
6892 | if test yes != "$lt_cv_path_mainfest_tool"; then | |
6893 | MANIFEST_TOOL=: | |
6894 | fi | |
6895 | ||
6896 | ||
6897 | ||
6898 | ||
6899 | ||
6900 | ||
6901 | case $host_os in | |
6902 | rhapsody* | darwin*) | |
6903 | if test -n "$ac_tool_prefix"; then | |
6904 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6905 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6907 | $as_echo_n "checking for $ac_word... " >&6; } | |
6908 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
6909 | $as_echo_n "(cached) " >&6 | |
6910 | else | |
6911 | if test -n "$DSYMUTIL"; then | |
6912 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6913 | else | |
6914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6915 | for as_dir in $PATH | |
6916 | do | |
6917 | IFS=$as_save_IFS | |
6918 | test -z "$as_dir" && as_dir=. | |
6919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6920 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6921 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6923 | break 2 | |
6924 | fi | |
6925 | done | |
6926 | done | |
6927 | IFS=$as_save_IFS | |
6928 | ||
6929 | fi | |
6930 | fi | |
6931 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6932 | if test -n "$DSYMUTIL"; then | |
6933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
6934 | $as_echo "$DSYMUTIL" >&6; } | |
6935 | else | |
6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6937 | $as_echo "no" >&6; } | |
6938 | fi | |
6939 | ||
6940 | ||
6941 | fi | |
6942 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6943 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6944 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6945 | set dummy dsymutil; ac_word=$2 | |
6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6947 | $as_echo_n "checking for $ac_word... " >&6; } | |
6948 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
6949 | $as_echo_n "(cached) " >&6 | |
6950 | else | |
6951 | if test -n "$ac_ct_DSYMUTIL"; then | |
6952 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6953 | else | |
6954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6955 | for as_dir in $PATH | |
6956 | do | |
6957 | IFS=$as_save_IFS | |
6958 | test -z "$as_dir" && as_dir=. | |
6959 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6960 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6961 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6963 | break 2 | |
6964 | fi | |
6965 | done | |
6966 | done | |
6967 | IFS=$as_save_IFS | |
6968 | ||
6969 | fi | |
6970 | fi | |
6971 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6972 | if test -n "$ac_ct_DSYMUTIL"; then | |
6973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
6974 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6975 | else | |
6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6977 | $as_echo "no" >&6; } | |
6978 | fi | |
6979 | ||
6980 | if test "x$ac_ct_DSYMUTIL" = x; then | |
6981 | DSYMUTIL=":" | |
6982 | else | |
6983 | case $cross_compiling:$ac_tool_warned in | |
6984 | yes:) | |
6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6986 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6987 | ac_tool_warned=yes ;; | |
6988 | esac | |
6989 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6990 | fi | |
6991 | else | |
6992 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6993 | fi | |
6994 | ||
6995 | if test -n "$ac_tool_prefix"; then | |
6996 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6997 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6999 | $as_echo_n "checking for $ac_word... " >&6; } | |
7000 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7001 | $as_echo_n "(cached) " >&6 | |
7002 | else | |
7003 | if test -n "$NMEDIT"; then | |
7004 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7005 | else | |
7006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7007 | for as_dir in $PATH | |
7008 | do | |
7009 | IFS=$as_save_IFS | |
7010 | test -z "$as_dir" && as_dir=. | |
7011 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7012 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7013 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7015 | break 2 | |
7016 | fi | |
7017 | done | |
7018 | done | |
7019 | IFS=$as_save_IFS | |
7020 | ||
7021 | fi | |
7022 | fi | |
7023 | NMEDIT=$ac_cv_prog_NMEDIT | |
7024 | if test -n "$NMEDIT"; then | |
7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7026 | $as_echo "$NMEDIT" >&6; } | |
7027 | else | |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7029 | $as_echo "no" >&6; } | |
7030 | fi | |
7031 | ||
7032 | ||
7033 | fi | |
7034 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7035 | ac_ct_NMEDIT=$NMEDIT | |
7036 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7037 | set dummy nmedit; ac_word=$2 | |
7038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7039 | $as_echo_n "checking for $ac_word... " >&6; } | |
7040 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7041 | $as_echo_n "(cached) " >&6 | |
7042 | else | |
7043 | if test -n "$ac_ct_NMEDIT"; then | |
7044 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7045 | else | |
7046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7047 | for as_dir in $PATH | |
7048 | do | |
7049 | IFS=$as_save_IFS | |
7050 | test -z "$as_dir" && as_dir=. | |
7051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7052 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7053 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7055 | break 2 | |
7056 | fi | |
7057 | done | |
7058 | done | |
7059 | IFS=$as_save_IFS | |
7060 | ||
7061 | fi | |
7062 | fi | |
7063 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7064 | if test -n "$ac_ct_NMEDIT"; then | |
7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7066 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7067 | else | |
7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7069 | $as_echo "no" >&6; } | |
7070 | fi | |
7071 | ||
7072 | if test "x$ac_ct_NMEDIT" = x; then | |
7073 | NMEDIT=":" | |
7074 | else | |
7075 | case $cross_compiling:$ac_tool_warned in | |
7076 | yes:) | |
7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7078 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7079 | ac_tool_warned=yes ;; | |
7080 | esac | |
7081 | NMEDIT=$ac_ct_NMEDIT | |
7082 | fi | |
7083 | else | |
7084 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7085 | fi | |
7086 | ||
7087 | if test -n "$ac_tool_prefix"; then | |
7088 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7089 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7091 | $as_echo_n "checking for $ac_word... " >&6; } | |
7092 | if ${ac_cv_prog_LIPO+:} false; then : | |
7093 | $as_echo_n "(cached) " >&6 | |
7094 | else | |
7095 | if test -n "$LIPO"; then | |
7096 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7097 | else | |
7098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7099 | for as_dir in $PATH | |
7100 | do | |
7101 | IFS=$as_save_IFS | |
7102 | test -z "$as_dir" && as_dir=. | |
7103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7104 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7105 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7107 | break 2 | |
7108 | fi | |
7109 | done | |
7110 | done | |
7111 | IFS=$as_save_IFS | |
7112 | ||
7113 | fi | |
7114 | fi | |
7115 | LIPO=$ac_cv_prog_LIPO | |
7116 | if test -n "$LIPO"; then | |
7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7118 | $as_echo "$LIPO" >&6; } | |
7119 | else | |
7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7121 | $as_echo "no" >&6; } | |
7122 | fi | |
7123 | ||
7124 | ||
7125 | fi | |
7126 | if test -z "$ac_cv_prog_LIPO"; then | |
7127 | ac_ct_LIPO=$LIPO | |
7128 | # Extract the first word of "lipo", so it can be a program name with args. | |
7129 | set dummy lipo; ac_word=$2 | |
7130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7131 | $as_echo_n "checking for $ac_word... " >&6; } | |
7132 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7133 | $as_echo_n "(cached) " >&6 | |
7134 | else | |
7135 | if test -n "$ac_ct_LIPO"; then | |
7136 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7137 | else | |
7138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7139 | for as_dir in $PATH | |
7140 | do | |
7141 | IFS=$as_save_IFS | |
7142 | test -z "$as_dir" && as_dir=. | |
7143 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7144 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7145 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7147 | break 2 | |
7148 | fi | |
7149 | done | |
7150 | done | |
7151 | IFS=$as_save_IFS | |
7152 | ||
7153 | fi | |
7154 | fi | |
7155 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7156 | if test -n "$ac_ct_LIPO"; then | |
7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7158 | $as_echo "$ac_ct_LIPO" >&6; } | |
7159 | else | |
7160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7161 | $as_echo "no" >&6; } | |
7162 | fi | |
7163 | ||
7164 | if test "x$ac_ct_LIPO" = x; then | |
7165 | LIPO=":" | |
7166 | else | |
7167 | case $cross_compiling:$ac_tool_warned in | |
7168 | yes:) | |
7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7170 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7171 | ac_tool_warned=yes ;; | |
7172 | esac | |
7173 | LIPO=$ac_ct_LIPO | |
7174 | fi | |
7175 | else | |
7176 | LIPO="$ac_cv_prog_LIPO" | |
7177 | fi | |
7178 | ||
7179 | if test -n "$ac_tool_prefix"; then | |
7180 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7181 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7183 | $as_echo_n "checking for $ac_word... " >&6; } | |
7184 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7185 | $as_echo_n "(cached) " >&6 | |
7186 | else | |
7187 | if test -n "$OTOOL"; then | |
7188 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7189 | else | |
7190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7191 | for as_dir in $PATH | |
7192 | do | |
7193 | IFS=$as_save_IFS | |
7194 | test -z "$as_dir" && as_dir=. | |
7195 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7197 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7199 | break 2 | |
7200 | fi | |
7201 | done | |
7202 | done | |
7203 | IFS=$as_save_IFS | |
7204 | ||
7205 | fi | |
7206 | fi | |
7207 | OTOOL=$ac_cv_prog_OTOOL | |
7208 | if test -n "$OTOOL"; then | |
7209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7210 | $as_echo "$OTOOL" >&6; } | |
7211 | else | |
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7213 | $as_echo "no" >&6; } | |
7214 | fi | |
7215 | ||
7216 | ||
7217 | fi | |
7218 | if test -z "$ac_cv_prog_OTOOL"; then | |
7219 | ac_ct_OTOOL=$OTOOL | |
7220 | # Extract the first word of "otool", so it can be a program name with args. | |
7221 | set dummy otool; ac_word=$2 | |
7222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7223 | $as_echo_n "checking for $ac_word... " >&6; } | |
7224 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7225 | $as_echo_n "(cached) " >&6 | |
7226 | else | |
7227 | if test -n "$ac_ct_OTOOL"; then | |
7228 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7229 | else | |
7230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7231 | for as_dir in $PATH | |
7232 | do | |
7233 | IFS=$as_save_IFS | |
7234 | test -z "$as_dir" && as_dir=. | |
7235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7237 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7239 | break 2 | |
7240 | fi | |
7241 | done | |
7242 | done | |
7243 | IFS=$as_save_IFS | |
7244 | ||
7245 | fi | |
7246 | fi | |
7247 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7248 | if test -n "$ac_ct_OTOOL"; then | |
7249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7250 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7251 | else | |
7252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7253 | $as_echo "no" >&6; } | |
7254 | fi | |
7255 | ||
7256 | if test "x$ac_ct_OTOOL" = x; then | |
7257 | OTOOL=":" | |
7258 | else | |
7259 | case $cross_compiling:$ac_tool_warned in | |
7260 | yes:) | |
7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7262 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7263 | ac_tool_warned=yes ;; | |
7264 | esac | |
7265 | OTOOL=$ac_ct_OTOOL | |
7266 | fi | |
7267 | else | |
7268 | OTOOL="$ac_cv_prog_OTOOL" | |
7269 | fi | |
7270 | ||
7271 | if test -n "$ac_tool_prefix"; then | |
7272 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7273 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7275 | $as_echo_n "checking for $ac_word... " >&6; } | |
7276 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
7277 | $as_echo_n "(cached) " >&6 | |
7278 | else | |
7279 | if test -n "$OTOOL64"; then | |
7280 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7281 | else | |
7282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7283 | for as_dir in $PATH | |
7284 | do | |
7285 | IFS=$as_save_IFS | |
7286 | test -z "$as_dir" && as_dir=. | |
7287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7288 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7289 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7291 | break 2 | |
7292 | fi | |
7293 | done | |
7294 | done | |
7295 | IFS=$as_save_IFS | |
7296 | ||
7297 | fi | |
7298 | fi | |
7299 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7300 | if test -n "$OTOOL64"; then | |
7301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7302 | $as_echo "$OTOOL64" >&6; } | |
7303 | else | |
7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7305 | $as_echo "no" >&6; } | |
7306 | fi | |
7307 | ||
7308 | ||
7309 | fi | |
7310 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7311 | ac_ct_OTOOL64=$OTOOL64 | |
7312 | # Extract the first word of "otool64", so it can be a program name with args. | |
7313 | set dummy otool64; ac_word=$2 | |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7315 | $as_echo_n "checking for $ac_word... " >&6; } | |
7316 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7317 | $as_echo_n "(cached) " >&6 | |
7318 | else | |
7319 | if test -n "$ac_ct_OTOOL64"; then | |
7320 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7321 | else | |
7322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7323 | for as_dir in $PATH | |
7324 | do | |
7325 | IFS=$as_save_IFS | |
7326 | test -z "$as_dir" && as_dir=. | |
7327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7328 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7329 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7331 | break 2 | |
7332 | fi | |
7333 | done | |
7334 | done | |
7335 | IFS=$as_save_IFS | |
7336 | ||
7337 | fi | |
7338 | fi | |
7339 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7340 | if test -n "$ac_ct_OTOOL64"; then | |
7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7342 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7343 | else | |
7344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7345 | $as_echo "no" >&6; } | |
7346 | fi | |
7347 | ||
7348 | if test "x$ac_ct_OTOOL64" = x; then | |
7349 | OTOOL64=":" | |
7350 | else | |
7351 | case $cross_compiling:$ac_tool_warned in | |
7352 | yes:) | |
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7354 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7355 | ac_tool_warned=yes ;; | |
7356 | esac | |
7357 | OTOOL64=$ac_ct_OTOOL64 | |
7358 | fi | |
7359 | else | |
7360 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7361 | fi | |
7362 | ||
7363 | ||
7364 | ||
7365 | ||
7366 | ||
7367 | ||
7368 | ||
7369 | ||
7370 | ||
7371 | ||
7372 | ||
7373 | ||
7374 | ||
7375 | ||
7376 | ||
7377 | ||
7378 | ||
7379 | ||
7380 | ||
7381 | ||
7382 | ||
7383 | ||
7384 | ||
7385 | ||
7386 | ||
7387 | ||
7388 | ||
7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7390 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7391 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7392 | $as_echo_n "(cached) " >&6 | |
7393 | else | |
7394 | lt_cv_apple_cc_single_mod=no | |
7395 | if test -z "$LT_MULTI_MODULE"; then | |
7396 | # By default we will add the -single_module flag. You can override | |
7397 | # by either setting the environment variable LT_MULTI_MODULE | |
7398 | # non-empty at configure time, or by adding -multi_module to the | |
7399 | # link flags. | |
7400 | rm -rf libconftest.dylib* | |
7401 | echo "int foo(void){return 1;}" > conftest.c | |
7402 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7403 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7404 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7405 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7406 | _lt_result=$? | |
7407 | # If there is a non-empty error log, and "single_module" | |
7408 | # appears in it, assume the flag caused a linker warning | |
7409 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7410 | cat conftest.err >&5 | |
7411 | # Otherwise, if the output was created with a 0 exit code from | |
7412 | # the compiler, it worked. | |
7413 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then | |
7414 | lt_cv_apple_cc_single_mod=yes | |
7415 | else | |
7416 | cat conftest.err >&5 | |
7417 | fi | |
7418 | rm -rf libconftest.dylib* | |
7419 | rm -f conftest.* | |
7420 | fi | |
7421 | fi | |
7422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7423 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7424 | ||
7425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7426 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7427 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7428 | $as_echo_n "(cached) " >&6 | |
7429 | else | |
7430 | lt_cv_ld_exported_symbols_list=no | |
7431 | save_LDFLAGS=$LDFLAGS | |
7432 | echo "_main" > conftest.sym | |
7433 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7435 | /* end confdefs.h. */ | |
7436 | ||
7437 | int | |
7438 | main () | |
7439 | { | |
7440 | ||
7441 | ; | |
7442 | return 0; | |
7443 | } | |
7444 | _ACEOF | |
7445 | if ac_fn_c_try_link "$LINENO"; then : | |
7446 | lt_cv_ld_exported_symbols_list=yes | |
7447 | else | |
7448 | lt_cv_ld_exported_symbols_list=no | |
7449 | fi | |
7450 | rm -f core conftest.err conftest.$ac_objext \ | |
7451 | conftest$ac_exeext conftest.$ac_ext | |
7452 | LDFLAGS=$save_LDFLAGS | |
7453 | ||
7454 | fi | |
7455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7456 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7457 | ||
7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7459 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7460 | if ${lt_cv_ld_force_load+:} false; then : | |
7461 | $as_echo_n "(cached) " >&6 | |
7462 | else | |
7463 | lt_cv_ld_force_load=no | |
7464 | cat > conftest.c << _LT_EOF | |
7465 | int forced_loaded() { return 2;} | |
7466 | _LT_EOF | |
7467 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7468 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7469 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7470 | $AR cru libconftest.a conftest.o 2>&5 | |
7471 | echo "$RANLIB libconftest.a" >&5 | |
7472 | $RANLIB libconftest.a 2>&5 | |
7473 | cat > conftest.c << _LT_EOF | |
7474 | int main() { return 0;} | |
7475 | _LT_EOF | |
7476 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7477 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7478 | _lt_result=$? | |
7479 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7480 | cat conftest.err >&5 | |
7481 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then | |
7482 | lt_cv_ld_force_load=yes | |
7483 | else | |
7484 | cat conftest.err >&5 | |
7485 | fi | |
7486 | rm -f conftest.err libconftest.a conftest conftest.c | |
7487 | rm -rf conftest.dSYM | |
7488 | ||
7489 | fi | |
7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7491 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7492 | case $host_os in | |
7493 | rhapsody* | darwin1.[012]) | |
7494 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; | |
7495 | darwin1.*) | |
7496 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
7497 | darwin*) # darwin 5.x on | |
7498 | # if running on 10.5 or later, the deployment target defaults | |
7499 | # to the OS version, if on x86, and 10.4, the deployment | |
7500 | # target defaults to 10.4. Don't you love it? | |
7501 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7502 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7503 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
7504 | 10.[012][,.]*) | |
7505 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
7506 | 10.*) | |
7507 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
7508 | esac | |
7509 | ;; | |
7510 | esac | |
7511 | if test yes = "$lt_cv_apple_cc_single_mod"; then | |
7512 | _lt_dar_single_mod='$single_module' | |
7513 | fi | |
7514 | if test yes = "$lt_cv_ld_exported_symbols_list"; then | |
7515 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
7516 | else | |
7517 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' | |
7518 | fi | |
7519 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then | |
7520 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7521 | else | |
7522 | _lt_dsymutil= | |
7523 | fi | |
7524 | ;; | |
7525 | esac | |
7526 | ||
7527 | # func_munge_path_list VARIABLE PATH | |
7528 | # ----------------------------------- | |
7529 | # VARIABLE is name of variable containing _space_ separated list of | |
7530 | # directories to be munged by the contents of PATH, which is string | |
7531 | # having a format: | |
7532 | # "DIR[:DIR]:" | |
7533 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7534 | # ":DIR[:DIR]" | |
7535 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7536 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7537 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7538 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7539 | # "DIR[:DIR]" | |
7540 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7541 | func_munge_path_list () | |
7542 | { | |
7543 | case x$2 in | |
7544 | x) | |
7545 | ;; | |
7546 | *:) | |
7547 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7548 | ;; | |
7549 | x:*) | |
7550 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7551 | ;; | |
7552 | *::*) | |
7553 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7554 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7555 | ;; | |
7556 | *) | |
7557 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7558 | ;; | |
7559 | esac | |
7560 | } | |
7561 | ||
7562 | ac_ext=c | |
7563 | ac_cpp='$CPP $CPPFLAGS' | |
7564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7568 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7569 | # On Suns, sometimes $CPP names a directory. | |
7570 | if test -n "$CPP" && test -d "$CPP"; then | |
7571 | CPP= | |
7572 | fi | |
7573 | if test -z "$CPP"; then | |
7574 | if ${ac_cv_prog_CPP+:} false; then : | |
7575 | $as_echo_n "(cached) " >&6 | |
7576 | else | |
7577 | # Double quotes because CPP needs to be expanded | |
7578 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7579 | do | |
7580 | ac_preproc_ok=false | |
7581 | for ac_c_preproc_warn_flag in '' yes | |
7582 | do | |
7583 | # Use a header file that comes with gcc, so configuring glibc | |
7584 | # with a fresh cross-compiler works. | |
7585 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7586 | # <limits.h> exists even on freestanding compilers. | |
7587 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7588 | # not just through cpp. "Syntax error" is here to catch this case. | |
7589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7590 | /* end confdefs.h. */ | |
7591 | #ifdef __STDC__ | |
7592 | # include <limits.h> | |
7593 | #else | |
7594 | # include <assert.h> | |
7595 | #endif | |
7596 | Syntax error | |
7597 | _ACEOF | |
7598 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7599 | ||
7600 | else | |
7601 | # Broken: fails on valid input. | |
7602 | continue | |
7603 | fi | |
7604 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7605 | ||
7606 | # OK, works on sane cases. Now check whether nonexistent headers | |
7607 | # can be detected and how. | |
7608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7609 | /* end confdefs.h. */ | |
7610 | #include <ac_nonexistent.h> | |
7611 | _ACEOF | |
7612 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7613 | # Broken: success on invalid input. | |
7614 | continue | |
7615 | else | |
7616 | # Passes both tests. | |
7617 | ac_preproc_ok=: | |
7618 | break | |
7619 | fi | |
7620 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7621 | ||
7622 | done | |
7623 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7624 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7625 | if $ac_preproc_ok; then : | |
7626 | break | |
7627 | fi | |
7628 | ||
7629 | done | |
7630 | ac_cv_prog_CPP=$CPP | |
7631 | ||
7632 | fi | |
7633 | CPP=$ac_cv_prog_CPP | |
7634 | else | |
7635 | ac_cv_prog_CPP=$CPP | |
7636 | fi | |
7637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7638 | $as_echo "$CPP" >&6; } | |
7639 | ac_preproc_ok=false | |
7640 | for ac_c_preproc_warn_flag in '' yes | |
7641 | do | |
7642 | # Use a header file that comes with gcc, so configuring glibc | |
7643 | # with a fresh cross-compiler works. | |
7644 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7645 | # <limits.h> exists even on freestanding compilers. | |
7646 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7647 | # not just through cpp. "Syntax error" is here to catch this case. | |
7648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7649 | /* end confdefs.h. */ | |
7650 | #ifdef __STDC__ | |
7651 | # include <limits.h> | |
7652 | #else | |
7653 | # include <assert.h> | |
7654 | #endif | |
7655 | Syntax error | |
7656 | _ACEOF | |
7657 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7658 | ||
7659 | else | |
7660 | # Broken: fails on valid input. | |
7661 | continue | |
7662 | fi | |
7663 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7664 | ||
7665 | # OK, works on sane cases. Now check whether nonexistent headers | |
7666 | # can be detected and how. | |
7667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7668 | /* end confdefs.h. */ | |
7669 | #include <ac_nonexistent.h> | |
7670 | _ACEOF | |
7671 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7672 | # Broken: success on invalid input. | |
7673 | continue | |
7674 | else | |
7675 | # Passes both tests. | |
7676 | ac_preproc_ok=: | |
7677 | break | |
7678 | fi | |
7679 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7680 | ||
7681 | done | |
7682 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7683 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7684 | if $ac_preproc_ok; then : | |
7685 | ||
7686 | else | |
7687 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7689 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
7690 | See \`config.log' for more details" "$LINENO" 5; } | |
7691 | fi | |
7692 | ||
7693 | ac_ext=c | |
7694 | ac_cpp='$CPP $CPPFLAGS' | |
7695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7698 | ||
7699 | ||
7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7701 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7702 | if ${ac_cv_header_stdc+:} false; then : | |
7703 | $as_echo_n "(cached) " >&6 | |
7704 | else | |
7705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7706 | /* end confdefs.h. */ | |
7707 | #include <stdlib.h> | |
7708 | #include <stdarg.h> | |
7709 | #include <string.h> | |
7710 | #include <float.h> | |
7711 | ||
7712 | int | |
7713 | main () | |
7714 | { | |
7715 | ||
7716 | ; | |
7717 | return 0; | |
7718 | } | |
7719 | _ACEOF | |
7720 | if ac_fn_c_try_compile "$LINENO"; then : | |
7721 | ac_cv_header_stdc=yes | |
7722 | else | |
7723 | ac_cv_header_stdc=no | |
7724 | fi | |
7725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7726 | ||
7727 | if test $ac_cv_header_stdc = yes; then | |
7728 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7730 | /* end confdefs.h. */ | |
7731 | #include <string.h> | |
7732 | ||
7733 | _ACEOF | |
7734 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7735 | $EGREP "memchr" >/dev/null 2>&1; then : | |
7736 | ||
7737 | else | |
7738 | ac_cv_header_stdc=no | |
7739 | fi | |
7740 | rm -f conftest* | |
7741 | ||
7742 | fi | |
7743 | ||
7744 | if test $ac_cv_header_stdc = yes; then | |
7745 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7747 | /* end confdefs.h. */ | |
7748 | #include <stdlib.h> | |
7749 | ||
7750 | _ACEOF | |
7751 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7752 | $EGREP "free" >/dev/null 2>&1; then : | |
7753 | ||
7754 | else | |
7755 | ac_cv_header_stdc=no | |
7756 | fi | |
7757 | rm -f conftest* | |
7758 | ||
7759 | fi | |
7760 | ||
7761 | if test $ac_cv_header_stdc = yes; then | |
7762 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7763 | if test "$cross_compiling" = yes; then : | |
7764 | : | |
7765 | else | |
7766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7767 | /* end confdefs.h. */ | |
7768 | #include <ctype.h> | |
7769 | #include <stdlib.h> | |
7770 | #if ((' ' & 0x0FF) == 0x020) | |
7771 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7772 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7773 | #else | |
7774 | # define ISLOWER(c) \ | |
7775 | (('a' <= (c) && (c) <= 'i') \ | |
7776 | || ('j' <= (c) && (c) <= 'r') \ | |
7777 | || ('s' <= (c) && (c) <= 'z')) | |
7778 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7779 | #endif | |
7780 | ||
7781 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7782 | int | |
7783 | main () | |
7784 | { | |
7785 | int i; | |
7786 | for (i = 0; i < 256; i++) | |
7787 | if (XOR (islower (i), ISLOWER (i)) | |
7788 | || toupper (i) != TOUPPER (i)) | |
7789 | return 2; | |
7790 | return 0; | |
7791 | } | |
7792 | _ACEOF | |
7793 | if ac_fn_c_try_run "$LINENO"; then : | |
7794 | ||
7795 | else | |
7796 | ac_cv_header_stdc=no | |
7797 | fi | |
7798 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7799 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7800 | fi | |
7801 | ||
7802 | fi | |
7803 | fi | |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7805 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7806 | if test $ac_cv_header_stdc = yes; then | |
7807 | ||
7808 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7809 | ||
7810 | fi | |
7811 | ||
7812 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7813 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7814 | inttypes.h stdint.h unistd.h | |
7815 | do : | |
7816 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7817 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7818 | " | |
7819 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7820 | cat >>confdefs.h <<_ACEOF | |
7821 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7822 | _ACEOF | |
7823 | ||
7824 | fi | |
7825 | ||
7826 | done | |
7827 | ||
7828 | ||
7829 | for ac_header in dlfcn.h | |
7830 | do : | |
7831 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7832 | " | |
7833 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
7834 | cat >>confdefs.h <<_ACEOF | |
7835 | #define HAVE_DLFCN_H 1 | |
7836 | _ACEOF | |
7837 | ||
7838 | fi | |
7839 | ||
7840 | done | |
7841 | ||
7842 | ||
7843 | ||
7844 | ||
7845 | ||
7846 | # Set options | |
7847 | ||
7848 | ||
7849 | ||
7850 | enable_dlopen=no | |
7851 | ||
7852 | ||
7853 | enable_win32_dll=no | |
7854 | ||
7855 | ||
7856 | # Check whether --enable-shared was given. | |
7857 | if test "${enable_shared+set}" = set; then : | |
7858 | enableval=$enable_shared; p=${PACKAGE-default} | |
7859 | case $enableval in | |
7860 | yes) enable_shared=yes ;; | |
7861 | no) enable_shared=no ;; | |
7862 | *) | |
7863 | enable_shared=no | |
7864 | # Look at the argument we got. We use all the common list separators. | |
7865 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
7866 | for pkg in $enableval; do | |
7867 | IFS=$lt_save_ifs | |
7868 | if test "X$pkg" = "X$p"; then | |
7869 | enable_shared=yes | |
7870 | fi | |
7871 | done | |
7872 | IFS=$lt_save_ifs | |
7873 | ;; | |
7874 | esac | |
7875 | else | |
7876 | enable_shared=yes | |
7877 | fi | |
7878 | ||
7879 | ||
7880 | ||
7881 | ||
7882 | ||
7883 | ||
7884 | ||
7885 | ||
7886 | ||
7887 | # Check whether --enable-static was given. | |
7888 | if test "${enable_static+set}" = set; then : | |
7889 | enableval=$enable_static; p=${PACKAGE-default} | |
7890 | case $enableval in | |
7891 | yes) enable_static=yes ;; | |
7892 | no) enable_static=no ;; | |
7893 | *) | |
7894 | enable_static=no | |
7895 | # Look at the argument we got. We use all the common list separators. | |
7896 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
7897 | for pkg in $enableval; do | |
7898 | IFS=$lt_save_ifs | |
7899 | if test "X$pkg" = "X$p"; then | |
7900 | enable_static=yes | |
7901 | fi | |
7902 | done | |
7903 | IFS=$lt_save_ifs | |
7904 | ;; | |
7905 | esac | |
7906 | else | |
7907 | enable_static=yes | |
7908 | fi | |
7909 | ||
7910 | ||
7911 | ||
7912 | ||
7913 | ||
7914 | ||
7915 | ||
7916 | ||
7917 | ||
7918 | ||
7919 | # Check whether --with-pic was given. | |
7920 | if test "${with_pic+set}" = set; then : | |
7921 | withval=$with_pic; lt_p=${PACKAGE-default} | |
7922 | case $withval in | |
7923 | yes|no) pic_mode=$withval ;; | |
7924 | *) | |
7925 | pic_mode=default | |
7926 | # Look at the argument we got. We use all the common list separators. | |
7927 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
7928 | for lt_pkg in $withval; do | |
7929 | IFS=$lt_save_ifs | |
7930 | if test "X$lt_pkg" = "X$lt_p"; then | |
7931 | pic_mode=yes | |
7932 | fi | |
7933 | done | |
7934 | IFS=$lt_save_ifs | |
7935 | ;; | |
7936 | esac | |
7937 | else | |
7938 | pic_mode=default | |
7939 | fi | |
7940 | ||
7941 | ||
7942 | ||
7943 | ||
7944 | ||
7945 | ||
7946 | ||
7947 | ||
7948 | # Check whether --enable-fast-install was given. | |
7949 | if test "${enable_fast_install+set}" = set; then : | |
7950 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7951 | case $enableval in | |
7952 | yes) enable_fast_install=yes ;; | |
7953 | no) enable_fast_install=no ;; | |
7954 | *) | |
7955 | enable_fast_install=no | |
7956 | # Look at the argument we got. We use all the common list separators. | |
7957 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
7958 | for pkg in $enableval; do | |
7959 | IFS=$lt_save_ifs | |
7960 | if test "X$pkg" = "X$p"; then | |
7961 | enable_fast_install=yes | |
7962 | fi | |
7963 | done | |
7964 | IFS=$lt_save_ifs | |
7965 | ;; | |
7966 | esac | |
7967 | else | |
7968 | enable_fast_install=yes | |
7969 | fi | |
7970 | ||
7971 | ||
7972 | ||
7973 | ||
7974 | ||
7975 | ||
7976 | ||
7977 | ||
7978 | shared_archive_member_spec= | |
7979 | case $host,$enable_shared in | |
7980 | power*-*-aix[5-9]*,yes) | |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
7982 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
7983 | ||
7984 | # Check whether --with-aix-soname was given. | |
7985 | if test "${with_aix_soname+set}" = set; then : | |
7986 | withval=$with_aix_soname; case $withval in | |
7987 | aix|svr4|both) | |
7988 | ;; | |
7989 | *) | |
7990 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
7991 | ;; | |
7992 | esac | |
7993 | lt_cv_with_aix_soname=$with_aix_soname | |
7994 | else | |
7995 | if ${lt_cv_with_aix_soname+:} false; then : | |
7996 | $as_echo_n "(cached) " >&6 | |
7997 | else | |
7998 | lt_cv_with_aix_soname=aix | |
7999 | fi | |
8000 | ||
8001 | with_aix_soname=$lt_cv_with_aix_soname | |
8002 | fi | |
8003 | ||
8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
8005 | $as_echo "$with_aix_soname" >&6; } | |
8006 | if test aix != "$with_aix_soname"; then | |
8007 | # For the AIX way of multilib, we name the shared archive member | |
8008 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
8009 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
8010 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
8011 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
8012 | if test 64 = "${OBJECT_MODE-32}"; then | |
8013 | shared_archive_member_spec=shr_64 | |
8014 | else | |
8015 | shared_archive_member_spec=shr | |
8016 | fi | |
8017 | fi | |
8018 | ;; | |
8019 | *) | |
8020 | with_aix_soname=aix | |
8021 | ;; | |
8022 | esac | |
8023 | ||
8024 | ||
8025 | ||
8026 | ||
8027 | ||
8028 | ||
8029 | ||
8030 | ||
8031 | ||
8032 | ||
8033 | # This can be used to rebuild libtool when needed | |
8034 | LIBTOOL_DEPS=$ltmain | |
8035 | ||
8036 | # Always use our own libtool. | |
8037 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8038 | ||
8039 | ||
8040 | ||
8041 | ||
8042 | ||
8043 | ||
8044 | ||
8045 | ||
8046 | ||
8047 | ||
8048 | ||
8049 | ||
8050 | ||
8051 | ||
8052 | ||
8053 | ||
8054 | ||
8055 | ||
8056 | ||
8057 | ||
8058 | ||
8059 | ||
8060 | ||
8061 | ||
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
8067 | ||
8068 | test -z "$LN_S" && LN_S="ln -s" | |
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | ||
8074 | ||
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | if test -n "${ZSH_VERSION+set}"; then | |
8084 | setopt NO_GLOB_SUBST | |
8085 | fi | |
8086 | ||
8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8088 | $as_echo_n "checking for objdir... " >&6; } | |
8089 | if ${lt_cv_objdir+:} false; then : | |
8090 | $as_echo_n "(cached) " >&6 | |
8091 | else | |
8092 | rm -f .libs 2>/dev/null | |
8093 | mkdir .libs 2>/dev/null | |
8094 | if test -d .libs; then | |
8095 | lt_cv_objdir=.libs | |
8096 | else | |
8097 | # MS-DOS does not allow filenames that begin with a dot. | |
8098 | lt_cv_objdir=_libs | |
8099 | fi | |
8100 | rmdir .libs 2>/dev/null | |
8101 | fi | |
8102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8103 | $as_echo "$lt_cv_objdir" >&6; } | |
8104 | objdir=$lt_cv_objdir | |
8105 | ||
8106 | ||
8107 | ||
8108 | ||
8109 | ||
8110 | cat >>confdefs.h <<_ACEOF | |
8111 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8112 | _ACEOF | |
8113 | ||
8114 | ||
8115 | ||
8116 | ||
8117 | case $host_os in | |
8118 | aix3*) | |
8119 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8120 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8121 | # vanish in a puff of smoke. | |
8122 | if test set != "${COLLECT_NAMES+set}"; then | |
8123 | COLLECT_NAMES= | |
8124 | export COLLECT_NAMES | |
8125 | fi | |
8126 | ;; | |
8127 | esac | |
8128 | ||
8129 | # Global variables: | |
8130 | ofile=libtool | |
8131 | can_build_shared=yes | |
8132 | ||
8133 | # All known linkers require a '.a' archive for static linking (except MSVC, | |
8134 | # which needs '.lib'). | |
8135 | libext=a | |
8136 | ||
8137 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
8138 | ||
8139 | old_CC=$CC | |
8140 | old_CFLAGS=$CFLAGS | |
8141 | ||
8142 | # Set sane defaults for various variables | |
8143 | test -z "$CC" && CC=cc | |
8144 | test -z "$LTCC" && LTCC=$CC | |
8145 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8146 | test -z "$LD" && LD=ld | |
8147 | test -z "$ac_objext" && ac_objext=o | |
8148 | ||
8149 | func_cc_basename $compiler | |
8150 | cc_basename=$func_cc_basename_result | |
8151 | ||
8152 | ||
8153 | # Only perform the check for file, if the check method requires it | |
8154 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8155 | case $deplibs_check_method in | |
8156 | file_magic*) | |
8157 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8159 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8160 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8161 | $as_echo_n "(cached) " >&6 | |
8162 | else | |
8163 | case $MAGIC_CMD in | |
8164 | [\\/*] | ?:[\\/]*) | |
8165 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8166 | ;; | |
8167 | *) | |
8168 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8169 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8170 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8171 | for ac_dir in $ac_dummy; do | |
8172 | IFS=$lt_save_ifs | |
8173 | test -z "$ac_dir" && ac_dir=. | |
8174 | if test -f "$ac_dir/${ac_tool_prefix}file"; then | |
8175 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8176 | if test -n "$file_magic_test_file"; then | |
8177 | case $deplibs_check_method in | |
8178 | "file_magic "*) | |
8179 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8180 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8181 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8182 | $EGREP "$file_magic_regex" > /dev/null; then | |
8183 | : | |
8184 | else | |
8185 | cat <<_LT_EOF 1>&2 | |
8186 | ||
8187 | *** Warning: the command libtool uses to detect shared libraries, | |
8188 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8189 | *** The result is that libtool may fail to recognize shared libraries | |
8190 | *** as such. This will affect the creation of libtool libraries that | |
8191 | *** depend on shared libraries, but programs linked with such libtool | |
8192 | *** libraries will work regardless of this problem. Nevertheless, you | |
8193 | *** may want to report the problem to your system manager and/or to | |
8194 | *** bug-libtool@gnu.org | |
8195 | ||
8196 | _LT_EOF | |
8197 | fi ;; | |
8198 | esac | |
8199 | fi | |
8200 | break | |
8201 | fi | |
8202 | done | |
8203 | IFS=$lt_save_ifs | |
8204 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8205 | ;; | |
8206 | esac | |
8207 | fi | |
8208 | ||
8209 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8210 | if test -n "$MAGIC_CMD"; then | |
8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8212 | $as_echo "$MAGIC_CMD" >&6; } | |
8213 | else | |
8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8215 | $as_echo "no" >&6; } | |
8216 | fi | |
8217 | ||
8218 | ||
8219 | ||
8220 | ||
8221 | ||
8222 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8223 | if test -n "$ac_tool_prefix"; then | |
8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8225 | $as_echo_n "checking for file... " >&6; } | |
8226 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8227 | $as_echo_n "(cached) " >&6 | |
8228 | else | |
8229 | case $MAGIC_CMD in | |
8230 | [\\/*] | ?:[\\/]*) | |
8231 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8232 | ;; | |
8233 | *) | |
8234 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8235 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8236 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8237 | for ac_dir in $ac_dummy; do | |
8238 | IFS=$lt_save_ifs | |
8239 | test -z "$ac_dir" && ac_dir=. | |
8240 | if test -f "$ac_dir/file"; then | |
8241 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8242 | if test -n "$file_magic_test_file"; then | |
8243 | case $deplibs_check_method in | |
8244 | "file_magic "*) | |
8245 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8246 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8247 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8248 | $EGREP "$file_magic_regex" > /dev/null; then | |
8249 | : | |
8250 | else | |
8251 | cat <<_LT_EOF 1>&2 | |
8252 | ||
8253 | *** Warning: the command libtool uses to detect shared libraries, | |
8254 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8255 | *** The result is that libtool may fail to recognize shared libraries | |
8256 | *** as such. This will affect the creation of libtool libraries that | |
8257 | *** depend on shared libraries, but programs linked with such libtool | |
8258 | *** libraries will work regardless of this problem. Nevertheless, you | |
8259 | *** may want to report the problem to your system manager and/or to | |
8260 | *** bug-libtool@gnu.org | |
8261 | ||
8262 | _LT_EOF | |
8263 | fi ;; | |
8264 | esac | |
8265 | fi | |
8266 | break | |
8267 | fi | |
8268 | done | |
8269 | IFS=$lt_save_ifs | |
8270 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8271 | ;; | |
8272 | esac | |
8273 | fi | |
8274 | ||
8275 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8276 | if test -n "$MAGIC_CMD"; then | |
8277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8278 | $as_echo "$MAGIC_CMD" >&6; } | |
8279 | else | |
8280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8281 | $as_echo "no" >&6; } | |
8282 | fi | |
8283 | ||
8284 | ||
8285 | else | |
8286 | MAGIC_CMD=: | |
8287 | fi | |
8288 | fi | |
8289 | ||
8290 | fi | |
8291 | ;; | |
8292 | esac | |
8293 | ||
8294 | # Use C for the default configuration in the libtool script | |
8295 | ||
8296 | lt_save_CC=$CC | |
8297 | ac_ext=c | |
8298 | ac_cpp='$CPP $CPPFLAGS' | |
8299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8302 | ||
8303 | ||
8304 | # Source file extension for C test sources. | |
8305 | ac_ext=c | |
8306 | ||
8307 | # Object file extension for compiled C test sources. | |
8308 | objext=o | |
8309 | objext=$objext | |
8310 | ||
8311 | # Code to be used in simple compile tests | |
8312 | lt_simple_compile_test_code="int some_variable = 0;" | |
8313 | ||
8314 | # Code to be used in simple link tests | |
8315 | lt_simple_link_test_code='int main(){return(0);}' | |
8316 | ||
8317 | ||
8318 | ||
8319 | ||
8320 | ||
8321 | ||
8322 | ||
8323 | # If no C compiler was specified, use CC. | |
8324 | LTCC=${LTCC-"$CC"} | |
8325 | ||
8326 | # If no C compiler flags were specified, use CFLAGS. | |
8327 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8328 | ||
8329 | # Allow CC to be a program name with arguments. | |
8330 | compiler=$CC | |
8331 | ||
8332 | # Save the default compiler, since it gets overwritten when the other | |
8333 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8334 | compiler_DEFAULT=$CC | |
8335 | ||
8336 | # save warnings/boilerplate of simple test code | |
8337 | ac_outfile=conftest.$ac_objext | |
8338 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8339 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8340 | _lt_compiler_boilerplate=`cat conftest.err` | |
8341 | $RM conftest* | |
8342 | ||
8343 | ac_outfile=conftest.$ac_objext | |
8344 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8345 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8346 | _lt_linker_boilerplate=`cat conftest.err` | |
8347 | $RM -r conftest* | |
8348 | ||
8349 | ||
8350 | ## CAVEAT EMPTOR: | |
8351 | ## There is no encapsulation within the following macros, do not change | |
8352 | ## the running order or otherwise move them around unless you know exactly | |
8353 | ## what you are doing... | |
8354 | if test -n "$compiler"; then | |
8355 | ||
8356 | lt_prog_compiler_no_builtin_flag= | |
8357 | ||
8358 | if test yes = "$GCC"; then | |
8359 | case $cc_basename in | |
8360 | nvcc*) | |
8361 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8362 | *) | |
8363 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8364 | esac | |
8365 | ||
8366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8367 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8368 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8369 | $as_echo_n "(cached) " >&6 | |
8370 | else | |
8371 | lt_cv_prog_compiler_rtti_exceptions=no | |
8372 | ac_outfile=conftest.$ac_objext | |
8373 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8374 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment | |
8375 | # Insert the option either (1) after the last *FLAGS variable, or | |
8376 | # (2) before a word containing "conftest.", or (3) at the end. | |
8377 | # Note that $ac_compile itself does not contain backslashes and begins | |
8378 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8379 | # The option is referenced via a variable to avoid confusing sed. | |
8380 | lt_compile=`echo "$ac_compile" | $SED \ | |
8381 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8382 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8383 | -e 's:$: $lt_compiler_flag:'` | |
8384 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8385 | (eval "$lt_compile" 2>conftest.err) | |
8386 | ac_status=$? | |
8387 | cat conftest.err >&5 | |
8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8389 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8390 | # The compiler can only warn and ignore the option if not recognized | |
8391 | # So say no if there are warnings other than the usual output. | |
8392 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8393 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8394 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8395 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8396 | fi | |
8397 | fi | |
8398 | $RM conftest* | |
8399 | ||
8400 | fi | |
8401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8402 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8403 | ||
8404 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then | |
8405 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8406 | else | |
8407 | : | |
8408 | fi | |
8409 | ||
8410 | fi | |
8411 | ||
8412 | ||
8413 | ||
8414 | ||
8415 | ||
8416 | ||
8417 | lt_prog_compiler_wl= | |
8418 | lt_prog_compiler_pic= | |
8419 | lt_prog_compiler_static= | |
8420 | ||
8421 | ||
8422 | if test yes = "$GCC"; then | |
8423 | lt_prog_compiler_wl='-Wl,' | |
8424 | lt_prog_compiler_static='-static' | |
8425 | ||
8426 | case $host_os in | |
8427 | aix*) | |
8428 | # All AIX code is PIC. | |
8429 | if test ia64 = "$host_cpu"; then | |
8430 | # AIX 5 now supports IA64 processor | |
8431 | lt_prog_compiler_static='-Bstatic' | |
8432 | fi | |
8433 | lt_prog_compiler_pic='-fPIC' | |
8434 | ;; | |
8435 | ||
8436 | amigaos*) | |
8437 | case $host_cpu in | |
8438 | powerpc) | |
8439 | # see comment about AmigaOS4 .so support | |
8440 | lt_prog_compiler_pic='-fPIC' | |
8441 | ;; | |
8442 | m68k) | |
8443 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8444 | # adding the '-m68020' flag to GCC prevents building anything better, | |
8445 | # like '-m68040'. | |
8446 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8447 | ;; | |
8448 | esac | |
8449 | ;; | |
8450 | ||
8451 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8452 | # PIC is the default for these OSes. | |
8453 | ;; | |
8454 | ||
8455 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8456 | # This hack is so that the source file can tell whether it is being | |
8457 | # built for inclusion in a dll (and should export symbols for example). | |
8458 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8459 | # (--disable-auto-import) libraries | |
8460 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8461 | case $host_os in | |
8462 | os2*) | |
8463 | lt_prog_compiler_static='$wl-static' | |
8464 | ;; | |
8465 | esac | |
8466 | ;; | |
8467 | ||
8468 | darwin* | rhapsody*) | |
8469 | # PIC is the default on this platform | |
8470 | # Common symbols not allowed in MH_DYLIB files | |
8471 | lt_prog_compiler_pic='-fno-common' | |
8472 | ;; | |
8473 | ||
8474 | haiku*) | |
8475 | # PIC is the default for Haiku. | |
8476 | # The "-static" flag exists, but is broken. | |
8477 | lt_prog_compiler_static= | |
8478 | ;; | |
8479 | ||
8480 | hpux*) | |
8481 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8482 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8483 | # sets the default TLS model and affects inlining. | |
8484 | case $host_cpu in | |
8485 | hppa*64*) | |
8486 | # +Z the default | |
8487 | ;; | |
8488 | *) | |
8489 | lt_prog_compiler_pic='-fPIC' | |
8490 | ;; | |
8491 | esac | |
8492 | ;; | |
8493 | ||
8494 | interix[3-9]*) | |
8495 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8496 | # Instead, we relocate shared libraries at runtime. | |
8497 | ;; | |
8498 | ||
8499 | msdosdjgpp*) | |
8500 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8501 | # on systems that don't support them. | |
8502 | lt_prog_compiler_can_build_shared=no | |
8503 | enable_shared=no | |
8504 | ;; | |
8505 | ||
8506 | *nto* | *qnx*) | |
8507 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8508 | # it will coredump. | |
8509 | lt_prog_compiler_pic='-fPIC -shared' | |
8510 | ;; | |
8511 | ||
8512 | sysv4*MP*) | |
8513 | if test -d /usr/nec; then | |
8514 | lt_prog_compiler_pic=-Kconform_pic | |
8515 | fi | |
8516 | ;; | |
8517 | ||
8518 | *) | |
8519 | lt_prog_compiler_pic='-fPIC' | |
8520 | ;; | |
8521 | esac | |
8522 | ||
8523 | case $cc_basename in | |
8524 | nvcc*) # Cuda Compiler Driver 2.2 | |
8525 | lt_prog_compiler_wl='-Xlinker ' | |
8526 | if test -n "$lt_prog_compiler_pic"; then | |
8527 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8528 | fi | |
8529 | ;; | |
8530 | esac | |
8531 | else | |
8532 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8533 | case $host_os in | |
8534 | aix*) | |
8535 | lt_prog_compiler_wl='-Wl,' | |
8536 | if test ia64 = "$host_cpu"; then | |
8537 | # AIX 5 now supports IA64 processor | |
8538 | lt_prog_compiler_static='-Bstatic' | |
8539 | else | |
8540 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8541 | fi | |
8542 | ;; | |
8543 | ||
8544 | darwin* | rhapsody*) | |
8545 | # PIC is the default on this platform | |
8546 | # Common symbols not allowed in MH_DYLIB files | |
8547 | lt_prog_compiler_pic='-fno-common' | |
8548 | case $cc_basename in | |
8549 | nagfor*) | |
8550 | # NAG Fortran compiler | |
8551 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8552 | lt_prog_compiler_pic='-PIC' | |
8553 | lt_prog_compiler_static='-Bstatic' | |
8554 | ;; | |
8555 | esac | |
8556 | ;; | |
8557 | ||
8558 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8559 | # This hack is so that the source file can tell whether it is being | |
8560 | # built for inclusion in a dll (and should export symbols for example). | |
8561 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8562 | case $host_os in | |
8563 | os2*) | |
8564 | lt_prog_compiler_static='$wl-static' | |
8565 | ;; | |
8566 | esac | |
8567 | ;; | |
8568 | ||
8569 | hpux9* | hpux10* | hpux11*) | |
8570 | lt_prog_compiler_wl='-Wl,' | |
8571 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8572 | # not for PA HP-UX. | |
8573 | case $host_cpu in | |
8574 | hppa*64*|ia64*) | |
8575 | # +Z the default | |
8576 | ;; | |
8577 | *) | |
8578 | lt_prog_compiler_pic='+Z' | |
8579 | ;; | |
8580 | esac | |
8581 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8582 | lt_prog_compiler_static='$wl-a ${wl}archive' | |
8583 | ;; | |
8584 | ||
8585 | irix5* | irix6* | nonstopux*) | |
8586 | lt_prog_compiler_wl='-Wl,' | |
8587 | # PIC (with -KPIC) is the default. | |
8588 | lt_prog_compiler_static='-non_shared' | |
8589 | ;; | |
8590 | ||
8591 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
8592 | case $cc_basename in | |
8593 | # old Intel for x86_64, which still supported -KPIC. | |
8594 | ecc*) | |
8595 | lt_prog_compiler_wl='-Wl,' | |
8596 | lt_prog_compiler_pic='-KPIC' | |
8597 | lt_prog_compiler_static='-static' | |
8598 | ;; | |
8599 | # icc used to be incompatible with GCC. | |
8600 | # ICC 10 doesn't accept -KPIC any more. | |
8601 | icc* | ifort*) | |
8602 | lt_prog_compiler_wl='-Wl,' | |
8603 | lt_prog_compiler_pic='-fPIC' | |
8604 | lt_prog_compiler_static='-static' | |
8605 | ;; | |
8606 | # Lahey Fortran 8.1. | |
8607 | lf95*) | |
8608 | lt_prog_compiler_wl='-Wl,' | |
8609 | lt_prog_compiler_pic='--shared' | |
8610 | lt_prog_compiler_static='--static' | |
8611 | ;; | |
8612 | nagfor*) | |
8613 | # NAG Fortran compiler | |
8614 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8615 | lt_prog_compiler_pic='-PIC' | |
8616 | lt_prog_compiler_static='-Bstatic' | |
8617 | ;; | |
8618 | tcc*) | |
8619 | # Fabrice Bellard et al's Tiny C Compiler | |
8620 | lt_prog_compiler_wl='-Wl,' | |
8621 | lt_prog_compiler_pic='-fPIC' | |
8622 | lt_prog_compiler_static='-static' | |
8623 | ;; | |
8624 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8625 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8626 | # which looks to be a dead project) | |
8627 | lt_prog_compiler_wl='-Wl,' | |
8628 | lt_prog_compiler_pic='-fpic' | |
8629 | lt_prog_compiler_static='-Bstatic' | |
8630 | ;; | |
8631 | ccc*) | |
8632 | lt_prog_compiler_wl='-Wl,' | |
8633 | # All Alpha code is PIC. | |
8634 | lt_prog_compiler_static='-non_shared' | |
8635 | ;; | |
8636 | xl* | bgxl* | bgf* | mpixl*) | |
8637 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8638 | lt_prog_compiler_wl='-Wl,' | |
8639 | lt_prog_compiler_pic='-qpic' | |
8640 | lt_prog_compiler_static='-qstaticlink' | |
8641 | ;; | |
8642 | *) | |
8643 | case `$CC -V 2>&1 | sed 5q` in | |
8644 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
8645 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8646 | lt_prog_compiler_pic='-KPIC' | |
8647 | lt_prog_compiler_static='-Bstatic' | |
8648 | lt_prog_compiler_wl='' | |
8649 | ;; | |
8650 | *Sun\ F* | *Sun*Fortran*) | |
8651 | lt_prog_compiler_pic='-KPIC' | |
8652 | lt_prog_compiler_static='-Bstatic' | |
8653 | lt_prog_compiler_wl='-Qoption ld ' | |
8654 | ;; | |
8655 | *Sun\ C*) | |
8656 | # Sun C 5.9 | |
8657 | lt_prog_compiler_pic='-KPIC' | |
8658 | lt_prog_compiler_static='-Bstatic' | |
8659 | lt_prog_compiler_wl='-Wl,' | |
8660 | ;; | |
8661 | *Intel*\ [CF]*Compiler*) | |
8662 | lt_prog_compiler_wl='-Wl,' | |
8663 | lt_prog_compiler_pic='-fPIC' | |
8664 | lt_prog_compiler_static='-static' | |
8665 | ;; | |
8666 | *Portland\ Group*) | |
8667 | lt_prog_compiler_wl='-Wl,' | |
8668 | lt_prog_compiler_pic='-fpic' | |
8669 | lt_prog_compiler_static='-Bstatic' | |
8670 | ;; | |
8671 | esac | |
8672 | ;; | |
8673 | esac | |
8674 | ;; | |
8675 | ||
8676 | newsos6) | |
8677 | lt_prog_compiler_pic='-KPIC' | |
8678 | lt_prog_compiler_static='-Bstatic' | |
8679 | ;; | |
8680 | ||
8681 | *nto* | *qnx*) | |
8682 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8683 | # it will coredump. | |
8684 | lt_prog_compiler_pic='-fPIC -shared' | |
8685 | ;; | |
8686 | ||
8687 | osf3* | osf4* | osf5*) | |
8688 | lt_prog_compiler_wl='-Wl,' | |
8689 | # All OSF/1 code is PIC. | |
8690 | lt_prog_compiler_static='-non_shared' | |
8691 | ;; | |
8692 | ||
8693 | rdos*) | |
8694 | lt_prog_compiler_static='-non_shared' | |
8695 | ;; | |
8696 | ||
8697 | solaris*) | |
8698 | lt_prog_compiler_pic='-KPIC' | |
8699 | lt_prog_compiler_static='-Bstatic' | |
8700 | case $cc_basename in | |
8701 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8702 | lt_prog_compiler_wl='-Qoption ld ';; | |
8703 | *) | |
8704 | lt_prog_compiler_wl='-Wl,';; | |
8705 | esac | |
8706 | ;; | |
8707 | ||
8708 | sunos4*) | |
8709 | lt_prog_compiler_wl='-Qoption ld ' | |
8710 | lt_prog_compiler_pic='-PIC' | |
8711 | lt_prog_compiler_static='-Bstatic' | |
8712 | ;; | |
8713 | ||
8714 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8715 | lt_prog_compiler_wl='-Wl,' | |
8716 | lt_prog_compiler_pic='-KPIC' | |
8717 | lt_prog_compiler_static='-Bstatic' | |
8718 | ;; | |
8719 | ||
8720 | sysv4*MP*) | |
8721 | if test -d /usr/nec; then | |
8722 | lt_prog_compiler_pic='-Kconform_pic' | |
8723 | lt_prog_compiler_static='-Bstatic' | |
8724 | fi | |
8725 | ;; | |
8726 | ||
8727 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8728 | lt_prog_compiler_wl='-Wl,' | |
8729 | lt_prog_compiler_pic='-KPIC' | |
8730 | lt_prog_compiler_static='-Bstatic' | |
8731 | ;; | |
8732 | ||
8733 | unicos*) | |
8734 | lt_prog_compiler_wl='-Wl,' | |
8735 | lt_prog_compiler_can_build_shared=no | |
8736 | ;; | |
8737 | ||
8738 | uts4*) | |
8739 | lt_prog_compiler_pic='-pic' | |
8740 | lt_prog_compiler_static='-Bstatic' | |
8741 | ;; | |
8742 | ||
8743 | *) | |
8744 | lt_prog_compiler_can_build_shared=no | |
8745 | ;; | |
8746 | esac | |
8747 | fi | |
8748 | ||
8749 | case $host_os in | |
8750 | # For platforms that do not support PIC, -DPIC is meaningless: | |
8751 | *djgpp*) | |
8752 | lt_prog_compiler_pic= | |
8753 | ;; | |
8754 | *) | |
8755 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8756 | ;; | |
8757 | esac | |
8758 | ||
8759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8760 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8761 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8762 | $as_echo_n "(cached) " >&6 | |
8763 | else | |
8764 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8765 | fi | |
8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8767 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8768 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8769 | ||
8770 | # | |
8771 | # Check to make sure the PIC flag actually works. | |
8772 | # | |
8773 | if test -n "$lt_prog_compiler_pic"; then | |
8774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8775 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8776 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8777 | $as_echo_n "(cached) " >&6 | |
8778 | else | |
8779 | lt_cv_prog_compiler_pic_works=no | |
8780 | ac_outfile=conftest.$ac_objext | |
8781 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8782 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment | |
8783 | # Insert the option either (1) after the last *FLAGS variable, or | |
8784 | # (2) before a word containing "conftest.", or (3) at the end. | |
8785 | # Note that $ac_compile itself does not contain backslashes and begins | |
8786 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8787 | # The option is referenced via a variable to avoid confusing sed. | |
8788 | lt_compile=`echo "$ac_compile" | $SED \ | |
8789 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8790 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8791 | -e 's:$: $lt_compiler_flag:'` | |
8792 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8793 | (eval "$lt_compile" 2>conftest.err) | |
8794 | ac_status=$? | |
8795 | cat conftest.err >&5 | |
8796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8797 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8798 | # The compiler can only warn and ignore the option if not recognized | |
8799 | # So say no if there are warnings other than the usual output. | |
8800 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8801 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8802 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8803 | lt_cv_prog_compiler_pic_works=yes | |
8804 | fi | |
8805 | fi | |
8806 | $RM conftest* | |
8807 | ||
8808 | fi | |
8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8810 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8811 | ||
8812 | if test yes = "$lt_cv_prog_compiler_pic_works"; then | |
8813 | case $lt_prog_compiler_pic in | |
8814 | "" | " "*) ;; | |
8815 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8816 | esac | |
8817 | else | |
8818 | lt_prog_compiler_pic= | |
8819 | lt_prog_compiler_can_build_shared=no | |
8820 | fi | |
8821 | ||
8822 | fi | |
8823 | ||
8824 | ||
8825 | ||
8826 | ||
8827 | ||
8828 | ||
8829 | ||
8830 | ||
8831 | ||
8832 | ||
8833 | ||
8834 | # | |
8835 | # Check to make sure the static flag actually works. | |
8836 | # | |
8837 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8839 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8840 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
8841 | $as_echo_n "(cached) " >&6 | |
8842 | else | |
8843 | lt_cv_prog_compiler_static_works=no | |
8844 | save_LDFLAGS=$LDFLAGS | |
8845 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8846 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8847 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8848 | # The linker can only warn and ignore the option if not recognized | |
8849 | # So say no if there are warnings | |
8850 | if test -s conftest.err; then | |
8851 | # Append any errors to the config.log. | |
8852 | cat conftest.err 1>&5 | |
8853 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8854 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8855 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8856 | lt_cv_prog_compiler_static_works=yes | |
8857 | fi | |
8858 | else | |
8859 | lt_cv_prog_compiler_static_works=yes | |
8860 | fi | |
8861 | fi | |
8862 | $RM -r conftest* | |
8863 | LDFLAGS=$save_LDFLAGS | |
8864 | ||
8865 | fi | |
8866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8867 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8868 | ||
8869 | if test yes = "$lt_cv_prog_compiler_static_works"; then | |
8870 | : | |
8871 | else | |
8872 | lt_prog_compiler_static= | |
8873 | fi | |
8874 | ||
8875 | ||
8876 | ||
8877 | ||
8878 | ||
8879 | ||
8880 | ||
8881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8882 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8883 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8884 | $as_echo_n "(cached) " >&6 | |
8885 | else | |
8886 | lt_cv_prog_compiler_c_o=no | |
8887 | $RM -r conftest 2>/dev/null | |
8888 | mkdir conftest | |
8889 | cd conftest | |
8890 | mkdir out | |
8891 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8892 | ||
8893 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8894 | # Insert the option either (1) after the last *FLAGS variable, or | |
8895 | # (2) before a word containing "conftest.", or (3) at the end. | |
8896 | # Note that $ac_compile itself does not contain backslashes and begins | |
8897 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8898 | lt_compile=`echo "$ac_compile" | $SED \ | |
8899 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8900 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8901 | -e 's:$: $lt_compiler_flag:'` | |
8902 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8903 | (eval "$lt_compile" 2>out/conftest.err) | |
8904 | ac_status=$? | |
8905 | cat out/conftest.err >&5 | |
8906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8907 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8908 | then | |
8909 | # The compiler can only warn and ignore the option if not recognized | |
8910 | # So say no if there are warnings | |
8911 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8912 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8913 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8914 | lt_cv_prog_compiler_c_o=yes | |
8915 | fi | |
8916 | fi | |
8917 | chmod u+w . 2>&5 | |
8918 | $RM conftest* | |
8919 | # SGI C++ compiler will create directory out/ii_files/ for | |
8920 | # template instantiation | |
8921 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8922 | $RM out/* && rmdir out | |
8923 | cd .. | |
8924 | $RM -r conftest | |
8925 | $RM conftest* | |
8926 | ||
8927 | fi | |
8928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8929 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8930 | ||
8931 | ||
8932 | ||
8933 | ||
8934 | ||
8935 | ||
8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8937 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8938 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8939 | $as_echo_n "(cached) " >&6 | |
8940 | else | |
8941 | lt_cv_prog_compiler_c_o=no | |
8942 | $RM -r conftest 2>/dev/null | |
8943 | mkdir conftest | |
8944 | cd conftest | |
8945 | mkdir out | |
8946 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8947 | ||
8948 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8949 | # Insert the option either (1) after the last *FLAGS variable, or | |
8950 | # (2) before a word containing "conftest.", or (3) at the end. | |
8951 | # Note that $ac_compile itself does not contain backslashes and begins | |
8952 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8953 | lt_compile=`echo "$ac_compile" | $SED \ | |
8954 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8955 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8956 | -e 's:$: $lt_compiler_flag:'` | |
8957 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8958 | (eval "$lt_compile" 2>out/conftest.err) | |
8959 | ac_status=$? | |
8960 | cat out/conftest.err >&5 | |
8961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8962 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8963 | then | |
8964 | # The compiler can only warn and ignore the option if not recognized | |
8965 | # So say no if there are warnings | |
8966 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8967 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8968 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8969 | lt_cv_prog_compiler_c_o=yes | |
8970 | fi | |
8971 | fi | |
8972 | chmod u+w . 2>&5 | |
8973 | $RM conftest* | |
8974 | # SGI C++ compiler will create directory out/ii_files/ for | |
8975 | # template instantiation | |
8976 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8977 | $RM out/* && rmdir out | |
8978 | cd .. | |
8979 | $RM -r conftest | |
8980 | $RM conftest* | |
8981 | ||
8982 | fi | |
8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8984 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8985 | ||
8986 | ||
8987 | ||
8988 | ||
8989 | hard_links=nottested | |
8990 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
8991 | # do not overwrite the value of need_locks provided by the user | |
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8993 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8994 | hard_links=yes | |
8995 | $RM conftest* | |
8996 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8997 | touch conftest.a | |
8998 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8999 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9001 | $as_echo "$hard_links" >&6; } | |
9002 | if test no = "$hard_links"; then | |
9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
9004 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
9005 | need_locks=warn | |
9006 | fi | |
9007 | else | |
9008 | need_locks=no | |
9009 | fi | |
9010 | ||
9011 | ||
9012 | ||
9013 | ||
9014 | ||
9015 | ||
9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9017 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9018 | ||
9019 | runpath_var= | |
9020 | allow_undefined_flag= | |
9021 | always_export_symbols=no | |
9022 | archive_cmds= | |
9023 | archive_expsym_cmds= | |
9024 | compiler_needs_object=no | |
9025 | enable_shared_with_static_runtimes=no | |
9026 | export_dynamic_flag_spec= | |
9027 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9028 | hardcode_automatic=no | |
9029 | hardcode_direct=no | |
9030 | hardcode_direct_absolute=no | |
9031 | hardcode_libdir_flag_spec= | |
9032 | hardcode_libdir_separator= | |
9033 | hardcode_minus_L=no | |
9034 | hardcode_shlibpath_var=unsupported | |
9035 | inherit_rpath=no | |
9036 | link_all_deplibs=unknown | |
9037 | module_cmds= | |
9038 | module_expsym_cmds= | |
9039 | old_archive_from_new_cmds= | |
9040 | old_archive_from_expsyms_cmds= | |
9041 | thread_safe_flag_spec= | |
9042 | whole_archive_flag_spec= | |
9043 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9044 | # included in the symbol list | |
9045 | include_expsyms= | |
9046 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9047 | # it will be wrapped by ' (' and ')$', so one must not match beginning or | |
9048 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
9049 | # as well as any symbol that contains 'd'. | |
9050 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9051 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9052 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9053 | # the symbol is explicitly referenced. Since portable code cannot | |
9054 | # rely on this symbol name, it's probably fine to never include it in | |
9055 | # preloaded symbol tables. | |
9056 | # Exclude shared library initialization/finalization symbols. | |
9057 | extract_expsyms_cmds= | |
9058 | ||
9059 | case $host_os in | |
9060 | cygwin* | mingw* | pw32* | cegcc*) | |
9061 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9062 | # When not using gcc, we currently assume that we are using | |
9063 | # Microsoft Visual C++. | |
9064 | if test yes != "$GCC"; then | |
9065 | with_gnu_ld=no | |
9066 | fi | |
9067 | ;; | |
9068 | interix*) | |
9069 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9070 | with_gnu_ld=yes | |
9071 | ;; | |
9072 | openbsd* | bitrig*) | |
9073 | with_gnu_ld=no | |
9074 | ;; | |
9075 | linux* | k*bsd*-gnu | gnu*) | |
9076 | link_all_deplibs=no | |
9077 | ;; | |
9078 | esac | |
9079 | ||
9080 | ld_shlibs=yes | |
9081 | ||
9082 | # On some targets, GNU ld is compatible enough with the native linker | |
9083 | # that we're better off using the native interface for both. | |
9084 | lt_use_gnu_ld_interface=no | |
9085 | if test yes = "$with_gnu_ld"; then | |
9086 | case $host_os in | |
9087 | aix*) | |
9088 | # The AIX port of GNU ld has always aspired to compatibility | |
9089 | # with the native linker. However, as the warning in the GNU ld | |
9090 | # block says, versions before 2.19.5* couldn't really create working | |
9091 | # shared libraries, regardless of the interface used. | |
9092 | case `$LD -v 2>&1` in | |
9093 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9094 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9095 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9096 | *) | |
9097 | lt_use_gnu_ld_interface=yes | |
9098 | ;; | |
9099 | esac | |
9100 | ;; | |
9101 | *) | |
9102 | lt_use_gnu_ld_interface=yes | |
9103 | ;; | |
9104 | esac | |
9105 | fi | |
9106 | ||
9107 | if test yes = "$lt_use_gnu_ld_interface"; then | |
9108 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9109 | wlarc='$wl' | |
9110 | ||
9111 | # Set some defaults for GNU ld with shared library support. These | |
9112 | # are reset later if shared libraries are not supported. Putting them | |
9113 | # here allows them to be overridden if necessary. | |
9114 | runpath_var=LD_RUN_PATH | |
9115 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9116 | export_dynamic_flag_spec='$wl--export-dynamic' | |
9117 | # ancient GNU ld didn't support --whole-archive et. al. | |
9118 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9119 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
9120 | else | |
9121 | whole_archive_flag_spec= | |
9122 | fi | |
9123 | supports_anon_versioning=no | |
9124 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in | |
9125 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9126 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9127 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9128 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9129 | *\ 2.11.*) ;; # other 2.11 versions | |
9130 | *) supports_anon_versioning=yes ;; | |
9131 | esac | |
9132 | ||
9133 | # See if GNU ld supports shared libraries. | |
9134 | case $host_os in | |
9135 | aix[3-9]*) | |
9136 | # On AIX/PPC, the GNU linker is very broken | |
9137 | if test ia64 != "$host_cpu"; then | |
9138 | ld_shlibs=no | |
9139 | cat <<_LT_EOF 1>&2 | |
9140 | ||
9141 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9142 | *** to be unable to reliably create shared libraries on AIX. | |
9143 | *** Therefore, libtool is disabling shared libraries support. If you | |
9144 | *** really care for shared libraries, you may want to install binutils | |
9145 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9146 | *** You will then need to restart the configuration process. | |
9147 | ||
9148 | _LT_EOF | |
9149 | fi | |
9150 | ;; | |
9151 | ||
9152 | amigaos*) | |
9153 | case $host_cpu in | |
9154 | powerpc) | |
9155 | # see comment about AmigaOS4 .so support | |
9156 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9157 | archive_expsym_cmds='' | |
9158 | ;; | |
9159 | m68k) | |
9160 | 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)' | |
9161 | hardcode_libdir_flag_spec='-L$libdir' | |
9162 | hardcode_minus_L=yes | |
9163 | ;; | |
9164 | esac | |
9165 | ;; | |
9166 | ||
9167 | beos*) | |
9168 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9169 | allow_undefined_flag=unsupported | |
9170 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9171 | # support --undefined. This deserves some investigation. FIXME | |
9172 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9173 | else | |
9174 | ld_shlibs=no | |
9175 | fi | |
9176 | ;; | |
9177 | ||
9178 | cygwin* | mingw* | pw32* | cegcc*) | |
9179 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9180 | # as there is no search path for DLLs. | |
9181 | hardcode_libdir_flag_spec='-L$libdir' | |
9182 | export_dynamic_flag_spec='$wl--export-all-symbols' | |
9183 | allow_undefined_flag=unsupported | |
9184 | always_export_symbols=no | |
9185 | enable_shared_with_static_runtimes=yes | |
9186 | 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' | |
9187 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9188 | ||
9189 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9190 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9191 | # If the export-symbols file already is a .def file, use it as | |
9192 | # is; otherwise, prepend EXPORTS... | |
9193 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9194 | cp $export_symbols $output_objdir/$soname.def; | |
9195 | else | |
9196 | echo EXPORTS > $output_objdir/$soname.def; | |
9197 | cat $export_symbols >> $output_objdir/$soname.def; | |
9198 | fi~ | |
9199 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9200 | else | |
9201 | ld_shlibs=no | |
9202 | fi | |
9203 | ;; | |
9204 | ||
9205 | haiku*) | |
9206 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9207 | link_all_deplibs=yes | |
9208 | ;; | |
9209 | ||
9210 | os2*) | |
9211 | hardcode_libdir_flag_spec='-L$libdir' | |
9212 | hardcode_minus_L=yes | |
9213 | allow_undefined_flag=unsupported | |
9214 | shrext_cmds=.dll | |
9215 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9216 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9217 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9218 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9219 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9220 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9221 | emximp -o $lib $output_objdir/$libname.def' | |
9222 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9223 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9224 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9225 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9226 | prefix_cmds="$SED"~ | |
9227 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9228 | prefix_cmds="$prefix_cmds -e 1d"; | |
9229 | fi~ | |
9230 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9231 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9232 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9233 | emximp -o $lib $output_objdir/$libname.def' | |
9234 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9235 | enable_shared_with_static_runtimes=yes | |
9236 | ;; | |
9237 | ||
9238 | interix[3-9]*) | |
9239 | hardcode_direct=no | |
9240 | hardcode_shlibpath_var=no | |
9241 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9242 | export_dynamic_flag_spec='$wl-E' | |
9243 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9244 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9245 | # default) and relocated if they conflict, which is a slow very memory | |
9246 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9247 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9248 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9249 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9250 | 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' | |
9251 | ;; | |
9252 | ||
9253 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9254 | tmp_diet=no | |
9255 | if test linux-dietlibc = "$host_os"; then | |
9256 | case $cc_basename in | |
9257 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9258 | esac | |
9259 | fi | |
9260 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9261 | && test no = "$tmp_diet" | |
9262 | then | |
9263 | tmp_addflag=' $pic_flag' | |
9264 | tmp_sharedflag='-shared' | |
9265 | case $cc_basename,$host_cpu in | |
9266 | pgcc*) # Portland Group C compiler | |
9267 | 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' | |
9268 | tmp_addflag=' $pic_flag' | |
9269 | ;; | |
9270 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9271 | # Portland Group f77 and f90 compilers | |
9272 | 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' | |
9273 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9274 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9275 | tmp_addflag=' -i_dynamic' ;; | |
9276 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9277 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9278 | ifc* | ifort*) # Intel Fortran compiler | |
9279 | tmp_addflag=' -nofor_main' ;; | |
9280 | lf95*) # Lahey Fortran 8.1 | |
9281 | whole_archive_flag_spec= | |
9282 | tmp_sharedflag='--shared' ;; | |
9283 | nagfor*) # NAGFOR 5.3 | |
9284 | tmp_sharedflag='-Wl,-shared' ;; | |
9285 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9286 | tmp_sharedflag='-qmkshrobj' | |
9287 | tmp_addflag= ;; | |
9288 | nvcc*) # Cuda Compiler Driver 2.2 | |
9289 | 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' | |
9290 | compiler_needs_object=yes | |
9291 | ;; | |
9292 | esac | |
9293 | case `$CC -V 2>&1 | sed 5q` in | |
9294 | *Sun\ C*) # Sun C 5.9 | |
9295 | 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' | |
9296 | compiler_needs_object=yes | |
9297 | tmp_sharedflag='-G' ;; | |
9298 | *Sun\ F*) # Sun Fortran 8.3 | |
9299 | tmp_sharedflag='-G' ;; | |
9300 | esac | |
9301 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9302 | ||
9303 | if test yes = "$supports_anon_versioning"; then | |
9304 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9305 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9306 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9307 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
9308 | fi | |
9309 | ||
9310 | case $cc_basename in | |
9311 | tcc*) | |
9312 | export_dynamic_flag_spec='-rdynamic' | |
9313 | ;; | |
9314 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9315 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9316 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9317 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9318 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9319 | if test yes = "$supports_anon_versioning"; then | |
9320 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9321 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9322 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9323 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9324 | fi | |
9325 | ;; | |
9326 | esac | |
9327 | else | |
9328 | ld_shlibs=no | |
9329 | fi | |
9330 | ;; | |
9331 | ||
9332 | netbsd* | netbsdelf*-gnu) | |
9333 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9334 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9335 | wlarc= | |
9336 | else | |
9337 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9338 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9339 | fi | |
9340 | ;; | |
9341 | ||
9342 | solaris*) | |
9343 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9344 | ld_shlibs=no | |
9345 | cat <<_LT_EOF 1>&2 | |
9346 | ||
9347 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9348 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9349 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9350 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9351 | *** your PATH or compiler configuration so that the native linker is | |
9352 | *** used, and then restart. | |
9353 | ||
9354 | _LT_EOF | |
9355 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9356 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9357 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9358 | else | |
9359 | ld_shlibs=no | |
9360 | fi | |
9361 | ;; | |
9362 | ||
9363 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9364 | case `$LD -v 2>&1` in | |
9365 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9366 | ld_shlibs=no | |
9367 | cat <<_LT_EOF 1>&2 | |
9368 | ||
9369 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot | |
9370 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9371 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9372 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9373 | *** your PATH or compiler configuration so that the native linker is | |
9374 | *** used, and then restart. | |
9375 | ||
9376 | _LT_EOF | |
9377 | ;; | |
9378 | *) | |
9379 | # For security reasons, it is highly recommended that you always | |
9380 | # use absolute paths for naming shared libraries, and exclude the | |
9381 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9382 | # requires that you compile everything twice, which is a pain. | |
9383 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9384 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9385 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9386 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9387 | else | |
9388 | ld_shlibs=no | |
9389 | fi | |
9390 | ;; | |
9391 | esac | |
9392 | ;; | |
9393 | ||
9394 | sunos4*) | |
9395 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9396 | wlarc= | |
9397 | hardcode_direct=yes | |
9398 | hardcode_shlibpath_var=no | |
9399 | ;; | |
9400 | ||
9401 | *) | |
9402 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9403 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9404 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9405 | else | |
9406 | ld_shlibs=no | |
9407 | fi | |
9408 | ;; | |
9409 | esac | |
9410 | ||
9411 | if test no = "$ld_shlibs"; then | |
9412 | runpath_var= | |
9413 | hardcode_libdir_flag_spec= | |
9414 | export_dynamic_flag_spec= | |
9415 | whole_archive_flag_spec= | |
9416 | fi | |
9417 | else | |
9418 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9419 | case $host_os in | |
9420 | aix3*) | |
9421 | allow_undefined_flag=unsupported | |
9422 | always_export_symbols=yes | |
9423 | 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' | |
9424 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9425 | # are no directories specified by -L. | |
9426 | hardcode_minus_L=yes | |
9427 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then | |
9428 | # Neither direct hardcoding nor static linking is supported with a | |
9429 | # broken collect2. | |
9430 | hardcode_direct=unsupported | |
9431 | fi | |
9432 | ;; | |
9433 | ||
9434 | aix[4-9]*) | |
9435 | if test ia64 = "$host_cpu"; then | |
9436 | # On IA64, the linker does run time linking by default, so we don't | |
9437 | # have to do anything special. | |
9438 | aix_use_runtimelinking=no | |
9439 | exp_sym_flag='-Bexport' | |
9440 | no_entry_flag= | |
9441 | else | |
9442 | # If we're using GNU nm, then we don't want the "-C" option. | |
9443 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
9444 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9445 | # weak defined symbols like other global defined symbols, whereas | |
9446 | # GNU nm marks them as "W". | |
9447 | # While the 'weak' keyword is ignored in the Export File, we need | |
9448 | # it in the Import File for the 'aix-soname' feature, so we have | |
9449 | # to replace the "-B" option with "-P" for AIX nm. | |
9450 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9451 | 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' | |
9452 | else | |
9453 | 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' | |
9454 | fi | |
9455 | aix_use_runtimelinking=no | |
9456 | ||
9457 | # Test if we are trying to use run time linking or normal | |
9458 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9459 | # have runtime linking enabled, and use it for executables. | |
9460 | # For shared libraries, we enable/disable runtime linking | |
9461 | # depending on the kind of the shared library created - | |
9462 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9463 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9464 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9465 | # lib.a static archive | |
9466 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9467 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9468 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9469 | # lib.a(lib.so.V) shared, rtl:no | |
9470 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9471 | # lib.a static archive | |
9472 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9473 | for ld_flag in $LDFLAGS; do | |
9474 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then | |
9475 | aix_use_runtimelinking=yes | |
9476 | break | |
9477 | fi | |
9478 | done | |
9479 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
9480 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9481 | # so we don't have lib.a shared libs to link our executables. | |
9482 | # We have to force runtime linking in this case. | |
9483 | aix_use_runtimelinking=yes | |
9484 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9485 | fi | |
9486 | ;; | |
9487 | esac | |
9488 | ||
9489 | exp_sym_flag='-bexport' | |
9490 | no_entry_flag='-bnoentry' | |
9491 | fi | |
9492 | ||
9493 | # When large executables or shared objects are built, AIX ld can | |
9494 | # have problems creating the table of contents. If linking a library | |
9495 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9496 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9497 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9498 | ||
9499 | archive_cmds='' | |
9500 | hardcode_direct=yes | |
9501 | hardcode_direct_absolute=yes | |
9502 | hardcode_libdir_separator=':' | |
9503 | link_all_deplibs=yes | |
9504 | file_list_spec='$wl-f,' | |
9505 | case $with_aix_soname,$aix_use_runtimelinking in | |
9506 | aix,*) ;; # traditional, no import file | |
9507 | svr4,* | *,yes) # use import file | |
9508 | # The Import File defines what to hardcode. | |
9509 | hardcode_direct=no | |
9510 | hardcode_direct_absolute=no | |
9511 | ;; | |
9512 | esac | |
9513 | ||
9514 | if test yes = "$GCC"; then | |
9515 | case $host_os in aix4.[012]|aix4.[012].*) | |
9516 | # We only want to do this on AIX 4.2 and lower, the check | |
9517 | # below for broken collect2 doesn't work under 4.3+ | |
9518 | collect2name=`$CC -print-prog-name=collect2` | |
9519 | if test -f "$collect2name" && | |
9520 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9521 | then | |
9522 | # We have reworked collect2 | |
9523 | : | |
9524 | else | |
9525 | # We have old collect2 | |
9526 | hardcode_direct=unsupported | |
9527 | # It fails to find uninstalled libraries when the uninstalled | |
9528 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9529 | # to unsupported forces relinking | |
9530 | hardcode_minus_L=yes | |
9531 | hardcode_libdir_flag_spec='-L$libdir' | |
9532 | hardcode_libdir_separator= | |
9533 | fi | |
9534 | ;; | |
9535 | esac | |
9536 | shared_flag='-shared' | |
9537 | if test yes = "$aix_use_runtimelinking"; then | |
9538 | shared_flag="$shared_flag "'$wl-G' | |
9539 | fi | |
9540 | # Need to ensure runtime linking is disabled for the traditional | |
9541 | # shared library, or the linker may eventually find shared libraries | |
9542 | # /with/ Import File - we do not want to mix them. | |
9543 | shared_flag_aix='-shared' | |
9544 | shared_flag_svr4='-shared $wl-G' | |
9545 | else | |
9546 | # not using gcc | |
9547 | if test ia64 = "$host_cpu"; then | |
9548 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9549 | # chokes on -Wl,-G. The following line is correct: | |
9550 | shared_flag='-G' | |
9551 | else | |
9552 | if test yes = "$aix_use_runtimelinking"; then | |
9553 | shared_flag='$wl-G' | |
9554 | else | |
9555 | shared_flag='$wl-bM:SRE' | |
9556 | fi | |
9557 | shared_flag_aix='$wl-bM:SRE' | |
9558 | shared_flag_svr4='$wl-G' | |
9559 | fi | |
9560 | fi | |
9561 | ||
9562 | export_dynamic_flag_spec='$wl-bexpall' | |
9563 | # It seems that -bexpall does not export symbols beginning with | |
9564 | # underscore (_), so it is better to generate a list of symbols to export. | |
9565 | always_export_symbols=yes | |
9566 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
9567 | # Warning - without using the other runtime loading flags (-brtl), | |
9568 | # -berok will link without error, but may produce a broken library. | |
9569 | allow_undefined_flag='-berok' | |
9570 | # Determine the default libpath from the value encoded in an | |
9571 | # empty executable. | |
9572 | if test set = "${lt_cv_aix_libpath+set}"; then | |
9573 | aix_libpath=$lt_cv_aix_libpath | |
9574 | else | |
9575 | if ${lt_cv_aix_libpath_+:} false; then : | |
9576 | $as_echo_n "(cached) " >&6 | |
9577 | else | |
9578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9579 | /* end confdefs.h. */ | |
9580 | ||
9581 | int | |
9582 | main () | |
9583 | { | |
9584 | ||
9585 | ; | |
9586 | return 0; | |
9587 | } | |
9588 | _ACEOF | |
9589 | if ac_fn_c_try_link "$LINENO"; then : | |
9590 | ||
9591 | lt_aix_libpath_sed=' | |
9592 | /Import File Strings/,/^$/ { | |
9593 | /^0/ { | |
9594 | s/^0 *\([^ ]*\) *$/\1/ | |
9595 | p | |
9596 | } | |
9597 | }' | |
9598 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9599 | # Check for a 64-bit object if we didn't find anything. | |
9600 | if test -z "$lt_cv_aix_libpath_"; then | |
9601 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9602 | fi | |
9603 | fi | |
9604 | rm -f core conftest.err conftest.$ac_objext \ | |
9605 | conftest$ac_exeext conftest.$ac_ext | |
9606 | if test -z "$lt_cv_aix_libpath_"; then | |
9607 | lt_cv_aix_libpath_=/usr/lib:/lib | |
9608 | fi | |
9609 | ||
9610 | fi | |
9611 | ||
9612 | aix_libpath=$lt_cv_aix_libpath_ | |
9613 | fi | |
9614 | ||
9615 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
9616 | 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 | |
9617 | else | |
9618 | if test ia64 = "$host_cpu"; then | |
9619 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
9620 | allow_undefined_flag="-z nodefs" | |
9621 | 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" | |
9622 | else | |
9623 | # Determine the default libpath from the value encoded in an | |
9624 | # empty executable. | |
9625 | if test set = "${lt_cv_aix_libpath+set}"; then | |
9626 | aix_libpath=$lt_cv_aix_libpath | |
9627 | else | |
9628 | if ${lt_cv_aix_libpath_+:} false; then : | |
9629 | $as_echo_n "(cached) " >&6 | |
9630 | else | |
9631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9632 | /* end confdefs.h. */ | |
9633 | ||
9634 | int | |
9635 | main () | |
9636 | { | |
9637 | ||
9638 | ; | |
9639 | return 0; | |
9640 | } | |
9641 | _ACEOF | |
9642 | if ac_fn_c_try_link "$LINENO"; then : | |
9643 | ||
9644 | lt_aix_libpath_sed=' | |
9645 | /Import File Strings/,/^$/ { | |
9646 | /^0/ { | |
9647 | s/^0 *\([^ ]*\) *$/\1/ | |
9648 | p | |
9649 | } | |
9650 | }' | |
9651 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9652 | # Check for a 64-bit object if we didn't find anything. | |
9653 | if test -z "$lt_cv_aix_libpath_"; then | |
9654 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9655 | fi | |
9656 | fi | |
9657 | rm -f core conftest.err conftest.$ac_objext \ | |
9658 | conftest$ac_exeext conftest.$ac_ext | |
9659 | if test -z "$lt_cv_aix_libpath_"; then | |
9660 | lt_cv_aix_libpath_=/usr/lib:/lib | |
9661 | fi | |
9662 | ||
9663 | fi | |
9664 | ||
9665 | aix_libpath=$lt_cv_aix_libpath_ | |
9666 | fi | |
9667 | ||
9668 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
9669 | # Warning - without using the other run time loading flags, | |
9670 | # -berok will link without error, but may produce a broken library. | |
9671 | no_undefined_flag=' $wl-bernotok' | |
9672 | allow_undefined_flag=' $wl-berok' | |
9673 | if test yes = "$with_gnu_ld"; then | |
9674 | # We only use this code for GNU lds that support --whole-archive. | |
9675 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' | |
9676 | else | |
9677 | # Exported symbols can be pulled into shared objects from archives | |
9678 | whole_archive_flag_spec='$convenience' | |
9679 | fi | |
9680 | archive_cmds_need_lc=yes | |
9681 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
9682 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9683 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9684 | if test svr4 != "$with_aix_soname"; then | |
9685 | # This is similar to how AIX traditionally builds its shared libraries. | |
9686 | 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' | |
9687 | fi | |
9688 | if test aix != "$with_aix_soname"; then | |
9689 | 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' | |
9690 | else | |
9691 | # used by -dlpreopen to get the symbols | |
9692 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9693 | fi | |
9694 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
9695 | fi | |
9696 | fi | |
9697 | ;; | |
9698 | ||
9699 | amigaos*) | |
9700 | case $host_cpu in | |
9701 | powerpc) | |
9702 | # see comment about AmigaOS4 .so support | |
9703 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9704 | archive_expsym_cmds='' | |
9705 | ;; | |
9706 | m68k) | |
9707 | 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)' | |
9708 | hardcode_libdir_flag_spec='-L$libdir' | |
9709 | hardcode_minus_L=yes | |
9710 | ;; | |
9711 | esac | |
9712 | ;; | |
9713 | ||
9714 | bsdi[45]*) | |
9715 | export_dynamic_flag_spec=-rdynamic | |
9716 | ;; | |
9717 | ||
9718 | cygwin* | mingw* | pw32* | cegcc*) | |
9719 | # When not using gcc, we currently assume that we are using | |
9720 | # Microsoft Visual C++. | |
9721 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9722 | # no search path for DLLs. | |
9723 | case $cc_basename in | |
9724 | cl*) | |
9725 | # Native MSVC | |
9726 | hardcode_libdir_flag_spec=' ' | |
9727 | allow_undefined_flag=unsupported | |
9728 | always_export_symbols=yes | |
9729 | file_list_spec='@' | |
9730 | # Tell ltmain to make .lib files, not .a files. | |
9731 | libext=lib | |
9732 | # Tell ltmain to make .dll files, not .so files. | |
9733 | shrext_cmds=.dll | |
9734 | # FIXME: Setting linknames here is a bad hack. | |
9735 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
9736 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9737 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9738 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9739 | else | |
9740 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9741 | fi~ | |
9742 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9743 | linknames=' | |
9744 | # The linker will not automatically build a static lib if we build a DLL. | |
9745 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9746 | enable_shared_with_static_runtimes=yes | |
9747 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9748 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9749 | # Don't use ranlib | |
9750 | old_postinstall_cmds='chmod 644 $oldlib' | |
9751 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9752 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9753 | case $lt_outputfile in | |
9754 | *.exe|*.EXE) ;; | |
9755 | *) | |
9756 | lt_outputfile=$lt_outputfile.exe | |
9757 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9758 | ;; | |
9759 | esac~ | |
9760 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9761 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9762 | $RM "$lt_outputfile.manifest"; | |
9763 | fi' | |
9764 | ;; | |
9765 | *) | |
9766 | # Assume MSVC wrapper | |
9767 | hardcode_libdir_flag_spec=' ' | |
9768 | allow_undefined_flag=unsupported | |
9769 | # Tell ltmain to make .lib files, not .a files. | |
9770 | libext=lib | |
9771 | # Tell ltmain to make .dll files, not .so files. | |
9772 | shrext_cmds=.dll | |
9773 | # FIXME: Setting linknames here is a bad hack. | |
9774 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9775 | # The linker will automatically build a .lib file if we build a DLL. | |
9776 | old_archive_from_new_cmds='true' | |
9777 | # FIXME: Should let the user specify the lib program. | |
9778 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9779 | enable_shared_with_static_runtimes=yes | |
9780 | ;; | |
9781 | esac | |
9782 | ;; | |
9783 | ||
9784 | darwin* | rhapsody*) | |
9785 | ||
9786 | ||
9787 | archive_cmds_need_lc=no | |
9788 | hardcode_direct=no | |
9789 | hardcode_automatic=yes | |
9790 | hardcode_shlibpath_var=unsupported | |
9791 | if test yes = "$lt_cv_ld_force_load"; then | |
9792 | 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\"`' | |
9793 | ||
9794 | else | |
9795 | whole_archive_flag_spec='' | |
9796 | fi | |
9797 | link_all_deplibs=yes | |
9798 | allow_undefined_flag=$_lt_dar_allow_undefined | |
9799 | case $cc_basename in | |
9800 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
9801 | *) _lt_dar_can_shared=$GCC ;; | |
9802 | esac | |
9803 | if test yes = "$_lt_dar_can_shared"; then | |
9804 | output_verbose_link_cmd=func_echo_all | |
9805 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" | |
9806 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9807 | 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" | |
9808 | 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" | |
9809 | ||
9810 | else | |
9811 | ld_shlibs=no | |
9812 | fi | |
9813 | ||
9814 | ;; | |
9815 | ||
9816 | dgux*) | |
9817 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9818 | hardcode_libdir_flag_spec='-L$libdir' | |
9819 | hardcode_shlibpath_var=no | |
9820 | ;; | |
9821 | ||
9822 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9823 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9824 | # does not break anything, and helps significantly (at the cost of a little | |
9825 | # extra space). | |
9826 | freebsd2.2*) | |
9827 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9828 | hardcode_libdir_flag_spec='-R$libdir' | |
9829 | hardcode_direct=yes | |
9830 | hardcode_shlibpath_var=no | |
9831 | ;; | |
9832 | ||
9833 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9834 | freebsd2.*) | |
9835 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9836 | hardcode_direct=yes | |
9837 | hardcode_minus_L=yes | |
9838 | hardcode_shlibpath_var=no | |
9839 | ;; | |
9840 | ||
9841 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9842 | freebsd* | dragonfly*) | |
9843 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9844 | hardcode_libdir_flag_spec='-R$libdir' | |
9845 | hardcode_direct=yes | |
9846 | hardcode_shlibpath_var=no | |
9847 | ;; | |
9848 | ||
9849 | hpux9*) | |
9850 | if test yes = "$GCC"; then | |
9851 | 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' | |
9852 | else | |
9853 | 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' | |
9854 | fi | |
9855 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
9856 | hardcode_libdir_separator=: | |
9857 | hardcode_direct=yes | |
9858 | ||
9859 | # hardcode_minus_L: Not really in the search PATH, | |
9860 | # but as the default location of the library. | |
9861 | hardcode_minus_L=yes | |
9862 | export_dynamic_flag_spec='$wl-E' | |
9863 | ;; | |
9864 | ||
9865 | hpux10*) | |
9866 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
9867 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9868 | else | |
9869 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9870 | fi | |
9871 | if test no = "$with_gnu_ld"; then | |
9872 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
9873 | hardcode_libdir_separator=: | |
9874 | hardcode_direct=yes | |
9875 | hardcode_direct_absolute=yes | |
9876 | export_dynamic_flag_spec='$wl-E' | |
9877 | # hardcode_minus_L: Not really in the search PATH, | |
9878 | # but as the default location of the library. | |
9879 | hardcode_minus_L=yes | |
9880 | fi | |
9881 | ;; | |
9882 | ||
9883 | hpux11*) | |
9884 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
9885 | case $host_cpu in | |
9886 | hppa*64*) | |
9887 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9888 | ;; | |
9889 | ia64*) | |
9890 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9891 | ;; | |
9892 | *) | |
9893 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9894 | ;; | |
9895 | esac | |
9896 | else | |
9897 | case $host_cpu in | |
9898 | hppa*64*) | |
9899 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9900 | ;; | |
9901 | ia64*) | |
9902 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9903 | ;; | |
9904 | *) | |
9905 | ||
9906 | # Older versions of the 11.00 compiler do not understand -b yet | |
9907 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9909 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9910 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9911 | $as_echo_n "(cached) " >&6 | |
9912 | else | |
9913 | lt_cv_prog_compiler__b=no | |
9914 | save_LDFLAGS=$LDFLAGS | |
9915 | LDFLAGS="$LDFLAGS -b" | |
9916 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9917 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9918 | # The linker can only warn and ignore the option if not recognized | |
9919 | # So say no if there are warnings | |
9920 | if test -s conftest.err; then | |
9921 | # Append any errors to the config.log. | |
9922 | cat conftest.err 1>&5 | |
9923 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9924 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9925 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9926 | lt_cv_prog_compiler__b=yes | |
9927 | fi | |
9928 | else | |
9929 | lt_cv_prog_compiler__b=yes | |
9930 | fi | |
9931 | fi | |
9932 | $RM -r conftest* | |
9933 | LDFLAGS=$save_LDFLAGS | |
9934 | ||
9935 | fi | |
9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9937 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9938 | ||
9939 | if test yes = "$lt_cv_prog_compiler__b"; then | |
9940 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9941 | else | |
9942 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9943 | fi | |
9944 | ||
9945 | ;; | |
9946 | esac | |
9947 | fi | |
9948 | if test no = "$with_gnu_ld"; then | |
9949 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
9950 | hardcode_libdir_separator=: | |
9951 | ||
9952 | case $host_cpu in | |
9953 | hppa*64*|ia64*) | |
9954 | hardcode_direct=no | |
9955 | hardcode_shlibpath_var=no | |
9956 | ;; | |
9957 | *) | |
9958 | hardcode_direct=yes | |
9959 | hardcode_direct_absolute=yes | |
9960 | export_dynamic_flag_spec='$wl-E' | |
9961 | ||
9962 | # hardcode_minus_L: Not really in the search PATH, | |
9963 | # but as the default location of the library. | |
9964 | hardcode_minus_L=yes | |
9965 | ;; | |
9966 | esac | |
9967 | fi | |
9968 | ;; | |
9969 | ||
9970 | irix5* | irix6* | nonstopux*) | |
9971 | if test yes = "$GCC"; then | |
9972 | 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' | |
9973 | # Try to use the -exported_symbol ld option, if it does not | |
9974 | # work, assume that -exports_file does not work either and | |
9975 | # implicitly export all symbols. | |
9976 | # This should be the same for all languages, so no per-tag cache variable. | |
9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9978 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9979 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9980 | $as_echo_n "(cached) " >&6 | |
9981 | else | |
9982 | save_LDFLAGS=$LDFLAGS | |
9983 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
9984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9985 | /* end confdefs.h. */ | |
9986 | int foo (void) { return 0; } | |
9987 | _ACEOF | |
9988 | if ac_fn_c_try_link "$LINENO"; then : | |
9989 | lt_cv_irix_exported_symbol=yes | |
9990 | else | |
9991 | lt_cv_irix_exported_symbol=no | |
9992 | fi | |
9993 | rm -f core conftest.err conftest.$ac_objext \ | |
9994 | conftest$ac_exeext conftest.$ac_ext | |
9995 | LDFLAGS=$save_LDFLAGS | |
9996 | fi | |
9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9998 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9999 | if test yes = "$lt_cv_irix_exported_symbol"; then | |
10000 | 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' | |
10001 | fi | |
10002 | link_all_deplibs=no | |
10003 | else | |
10004 | 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' | |
10005 | 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' | |
10006 | fi | |
10007 | archive_cmds_need_lc='no' | |
10008 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10009 | hardcode_libdir_separator=: | |
10010 | inherit_rpath=yes | |
10011 | link_all_deplibs=yes | |
10012 | ;; | |
10013 | ||
10014 | linux*) | |
10015 | case $cc_basename in | |
10016 | tcc*) | |
10017 | # Fabrice Bellard et al's Tiny C Compiler | |
10018 | ld_shlibs=yes | |
10019 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10020 | ;; | |
10021 | esac | |
10022 | ;; | |
10023 | ||
10024 | netbsd* | netbsdelf*-gnu) | |
10025 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10026 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10027 | else | |
10028 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10029 | fi | |
10030 | hardcode_libdir_flag_spec='-R$libdir' | |
10031 | hardcode_direct=yes | |
10032 | hardcode_shlibpath_var=no | |
10033 | ;; | |
10034 | ||
10035 | newsos6) | |
10036 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10037 | hardcode_direct=yes | |
10038 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10039 | hardcode_libdir_separator=: | |
10040 | hardcode_shlibpath_var=no | |
10041 | ;; | |
10042 | ||
10043 | *nto* | *qnx*) | |
10044 | ;; | |
10045 | ||
10046 | openbsd* | bitrig*) | |
10047 | if test -f /usr/libexec/ld.so; then | |
10048 | hardcode_direct=yes | |
10049 | hardcode_shlibpath_var=no | |
10050 | hardcode_direct_absolute=yes | |
10051 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
10052 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10053 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' | |
10054 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10055 | export_dynamic_flag_spec='$wl-E' | |
10056 | else | |
10057 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10058 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10059 | fi | |
10060 | else | |
10061 | ld_shlibs=no | |
10062 | fi | |
10063 | ;; | |
10064 | ||
10065 | os2*) | |
10066 | hardcode_libdir_flag_spec='-L$libdir' | |
10067 | hardcode_minus_L=yes | |
10068 | allow_undefined_flag=unsupported | |
10069 | shrext_cmds=.dll | |
10070 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10071 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10072 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10073 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10074 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10075 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10076 | emximp -o $lib $output_objdir/$libname.def' | |
10077 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10078 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10079 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10080 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10081 | prefix_cmds="$SED"~ | |
10082 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10083 | prefix_cmds="$prefix_cmds -e 1d"; | |
10084 | fi~ | |
10085 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10086 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10087 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10088 | emximp -o $lib $output_objdir/$libname.def' | |
10089 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10090 | enable_shared_with_static_runtimes=yes | |
10091 | ;; | |
10092 | ||
10093 | osf3*) | |
10094 | if test yes = "$GCC"; then | |
10095 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10096 | 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' | |
10097 | else | |
10098 | allow_undefined_flag=' -expect_unresolved \*' | |
10099 | 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' | |
10100 | fi | |
10101 | archive_cmds_need_lc='no' | |
10102 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10103 | hardcode_libdir_separator=: | |
10104 | ;; | |
10105 | ||
10106 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10107 | if test yes = "$GCC"; then | |
10108 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10109 | 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' | |
10110 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10111 | else | |
10112 | allow_undefined_flag=' -expect_unresolved \*' | |
10113 | 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' | |
10114 | 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~ | |
10115 | $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' | |
10116 | ||
10117 | # Both c and cxx compiler support -rpath directly | |
10118 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10119 | fi | |
10120 | archive_cmds_need_lc='no' | |
10121 | hardcode_libdir_separator=: | |
10122 | ;; | |
10123 | ||
10124 | solaris*) | |
10125 | no_undefined_flag=' -z defs' | |
10126 | if test yes = "$GCC"; then | |
10127 | wlarc='$wl' | |
10128 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10129 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10130 | $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' | |
10131 | else | |
10132 | case `$CC -V 2>&1` in | |
10133 | *"Compilers 5.0"*) | |
10134 | wlarc='' | |
10135 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10136 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10137 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10138 | ;; | |
10139 | *) | |
10140 | wlarc='$wl' | |
10141 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10142 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10143 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10144 | ;; | |
10145 | esac | |
10146 | fi | |
10147 | hardcode_libdir_flag_spec='-R$libdir' | |
10148 | hardcode_shlibpath_var=no | |
10149 | case $host_os in | |
10150 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10151 | *) | |
10152 | # The compiler driver will combine and reorder linker options, | |
10153 | # but understands '-z linker_flag'. GCC discards it without '$wl', | |
10154 | # but is careful enough not to reorder. | |
10155 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10156 | if test yes = "$GCC"; then | |
10157 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
10158 | else | |
10159 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10160 | fi | |
10161 | ;; | |
10162 | esac | |
10163 | link_all_deplibs=yes | |
10164 | ;; | |
10165 | ||
10166 | sunos4*) | |
10167 | if test sequent = "$host_vendor"; then | |
10168 | # Use $CC to link under sequent, because it throws in some extra .o | |
10169 | # files that make .init and .fini sections work. | |
10170 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10171 | else | |
10172 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10173 | fi | |
10174 | hardcode_libdir_flag_spec='-L$libdir' | |
10175 | hardcode_direct=yes | |
10176 | hardcode_minus_L=yes | |
10177 | hardcode_shlibpath_var=no | |
10178 | ;; | |
10179 | ||
10180 | sysv4) | |
10181 | case $host_vendor in | |
10182 | sni) | |
10183 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10184 | hardcode_direct=yes # is this really true??? | |
10185 | ;; | |
10186 | siemens) | |
10187 | ## LD is ld it makes a PLAMLIB | |
10188 | ## CC just makes a GrossModule. | |
10189 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10190 | reload_cmds='$CC -r -o $output$reload_objs' | |
10191 | hardcode_direct=no | |
10192 | ;; | |
10193 | motorola) | |
10194 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10195 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10196 | ;; | |
10197 | esac | |
10198 | runpath_var='LD_RUN_PATH' | |
10199 | hardcode_shlibpath_var=no | |
10200 | ;; | |
10201 | ||
10202 | sysv4.3*) | |
10203 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10204 | hardcode_shlibpath_var=no | |
10205 | export_dynamic_flag_spec='-Bexport' | |
10206 | ;; | |
10207 | ||
10208 | sysv4*MP*) | |
10209 | if test -d /usr/nec; then | |
10210 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10211 | hardcode_shlibpath_var=no | |
10212 | runpath_var=LD_RUN_PATH | |
10213 | hardcode_runpath_var=yes | |
10214 | ld_shlibs=yes | |
10215 | fi | |
10216 | ;; | |
10217 | ||
10218 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10219 | no_undefined_flag='$wl-z,text' | |
10220 | archive_cmds_need_lc=no | |
10221 | hardcode_shlibpath_var=no | |
10222 | runpath_var='LD_RUN_PATH' | |
10223 | ||
10224 | if test yes = "$GCC"; then | |
10225 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10226 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10227 | else | |
10228 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10229 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10230 | fi | |
10231 | ;; | |
10232 | ||
10233 | sysv5* | sco3.2v5* | sco5v6*) | |
10234 | # Note: We CANNOT use -z defs as we might desire, because we do not | |
10235 | # link with -lc, and that would cause any symbols used from libc to | |
10236 | # always be unresolved, which means just about no library would | |
10237 | # ever link correctly. If we're not using GNU ld we use -z text | |
10238 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10239 | # as -z defs. | |
10240 | no_undefined_flag='$wl-z,text' | |
10241 | allow_undefined_flag='$wl-z,nodefs' | |
10242 | archive_cmds_need_lc=no | |
10243 | hardcode_shlibpath_var=no | |
10244 | hardcode_libdir_flag_spec='$wl-R,$libdir' | |
10245 | hardcode_libdir_separator=':' | |
10246 | link_all_deplibs=yes | |
10247 | export_dynamic_flag_spec='$wl-Bexport' | |
10248 | runpath_var='LD_RUN_PATH' | |
10249 | ||
10250 | if test yes = "$GCC"; then | |
10251 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10252 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10253 | else | |
10254 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10255 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10256 | fi | |
10257 | ;; | |
10258 | ||
10259 | uts4*) | |
10260 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10261 | hardcode_libdir_flag_spec='-L$libdir' | |
10262 | hardcode_shlibpath_var=no | |
10263 | ;; | |
10264 | ||
10265 | *) | |
10266 | ld_shlibs=no | |
10267 | ;; | |
10268 | esac | |
10269 | ||
10270 | if test sni = "$host_vendor"; then | |
10271 | case $host in | |
10272 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10273 | export_dynamic_flag_spec='$wl-Blargedynsym' | |
10274 | ;; | |
10275 | esac | |
10276 | fi | |
10277 | fi | |
10278 | ||
10279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10280 | $as_echo "$ld_shlibs" >&6; } | |
10281 | test no = "$ld_shlibs" && can_build_shared=no | |
10282 | ||
10283 | with_gnu_ld=$with_gnu_ld | |
10284 | ||
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | # | |
10300 | # Do we need to explicitly link libc? | |
10301 | # | |
10302 | case "x$archive_cmds_need_lc" in | |
10303 | x|xyes) | |
10304 | # Assume -lc should be added | |
10305 | archive_cmds_need_lc=yes | |
10306 | ||
10307 | if test yes,yes = "$GCC,$enable_shared"; then | |
10308 | case $archive_cmds in | |
10309 | *'~'*) | |
10310 | # FIXME: we may have to deal with multi-command sequences. | |
10311 | ;; | |
10312 | '$CC '*) | |
10313 | # Test whether the compiler implicitly links with -lc since on some | |
10314 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10315 | # to ld, don't add -lc before -lgcc. | |
10316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10317 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10318 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10319 | $as_echo_n "(cached) " >&6 | |
10320 | else | |
10321 | $RM conftest* | |
10322 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10323 | ||
10324 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10325 | (eval $ac_compile) 2>&5 | |
10326 | ac_status=$? | |
10327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10328 | test $ac_status = 0; } 2>conftest.err; then | |
10329 | soname=conftest | |
10330 | lib=conftest | |
10331 | libobjs=conftest.$ac_objext | |
10332 | deplibs= | |
10333 | wl=$lt_prog_compiler_wl | |
10334 | pic_flag=$lt_prog_compiler_pic | |
10335 | compiler_flags=-v | |
10336 | linker_flags=-v | |
10337 | verstring= | |
10338 | output_objdir=. | |
10339 | libname=conftest | |
10340 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10341 | allow_undefined_flag= | |
10342 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10343 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10344 | ac_status=$? | |
10345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10346 | test $ac_status = 0; } | |
10347 | then | |
10348 | lt_cv_archive_cmds_need_lc=no | |
10349 | else | |
10350 | lt_cv_archive_cmds_need_lc=yes | |
10351 | fi | |
10352 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10353 | else | |
10354 | cat conftest.err 1>&5 | |
10355 | fi | |
10356 | $RM conftest* | |
10357 | ||
10358 | fi | |
10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10360 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10361 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10362 | ;; | |
10363 | esac | |
10364 | fi | |
10365 | ;; | |
10366 | esac | |
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | ||
10393 | ||
10394 | ||
10395 | ||
10396 | ||
10397 | ||
10398 | ||
10399 | ||
10400 | ||
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | ||
10413 | ||
10414 | ||
10415 | ||
10416 | ||
10417 | ||
10418 | ||
10419 | ||
10420 | ||
10421 | ||
10422 | ||
10423 | ||
10424 | ||
10425 | ||
10426 | ||
10427 | ||
10428 | ||
10429 | ||
10430 | ||
10431 | ||
10432 | ||
10433 | ||
10434 | ||
10435 | ||
10436 | ||
10437 | ||
10438 | ||
10439 | ||
10440 | ||
10441 | ||
10442 | ||
10443 | ||
10444 | ||
10445 | ||
10446 | ||
10447 | ||
10448 | ||
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | ||
10472 | ||
10473 | ||
10474 | ||
10475 | ||
10476 | ||
10477 | ||
10478 | ||
10479 | ||
10480 | ||
10481 | ||
10482 | ||
10483 | ||
10484 | ||
10485 | ||
10486 | ||
10487 | ||
10488 | ||
10489 | ||
10490 | ||
10491 | ||
10492 | ||
10493 | ||
10494 | ||
10495 | ||
10496 | ||
10497 | ||
10498 | ||
10499 | ||
10500 | ||
10501 | ||
10502 | ||
10503 | ||
10504 | ||
10505 | ||
10506 | ||
10507 | ||
10508 | ||
10509 | ||
10510 | ||
10511 | ||
10512 | ||
10513 | ||
10514 | ||
10515 | ||
10516 | ||
10517 | ||
10518 | ||
10519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10520 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10521 | ||
10522 | if test yes = "$GCC"; then | |
10523 | case $host_os in | |
10524 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; | |
10525 | *) lt_awk_arg='/^libraries:/' ;; | |
10526 | esac | |
10527 | case $host_os in | |
10528 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; | |
10529 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
10530 | esac | |
10531 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10532 | case $lt_search_path_spec in | |
10533 | *\;*) | |
10534 | # if the path contains ";" then we assume it to be the separator | |
10535 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10536 | # assumed that no part of a normal pathname contains ";" but that should | |
10537 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10538 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10539 | ;; | |
10540 | *) | |
10541 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10542 | ;; | |
10543 | esac | |
10544 | # Ok, now we have the path, separated by spaces, we can step through it | |
10545 | # and add multilib dir if necessary... | |
10546 | lt_tmp_lt_search_path_spec= | |
10547 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10548 | # ...but if some path component already ends with the multilib dir we assume | |
10549 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10550 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10551 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10552 | lt_multi_os_dir= | |
10553 | ;; | |
10554 | esac | |
10555 | for lt_sys_path in $lt_search_path_spec; do | |
10556 | if test -d "$lt_sys_path$lt_multi_os_dir"; then | |
10557 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10558 | elif test -n "$lt_multi_os_dir"; then | |
10559 | test -d "$lt_sys_path" && \ | |
10560 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10561 | fi | |
10562 | done | |
10563 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10564 | BEGIN {RS = " "; FS = "/|\n";} { | |
10565 | lt_foo = ""; | |
10566 | lt_count = 0; | |
10567 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10568 | if ($lt_i != "" && $lt_i != ".") { | |
10569 | if ($lt_i == "..") { | |
10570 | lt_count++; | |
10571 | } else { | |
10572 | if (lt_count == 0) { | |
10573 | lt_foo = "/" $lt_i lt_foo; | |
10574 | } else { | |
10575 | lt_count--; | |
10576 | } | |
10577 | } | |
10578 | } | |
10579 | } | |
10580 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10581 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10582 | }'` | |
10583 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10584 | # for these hosts. | |
10585 | case $host_os in | |
10586 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10587 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; | |
10588 | esac | |
10589 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10590 | else | |
10591 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10592 | fi | |
10593 | library_names_spec= | |
10594 | libname_spec='lib$name' | |
10595 | soname_spec= | |
10596 | shrext_cmds=.so | |
10597 | postinstall_cmds= | |
10598 | postuninstall_cmds= | |
10599 | finish_cmds= | |
10600 | finish_eval= | |
10601 | shlibpath_var= | |
10602 | shlibpath_overrides_runpath=unknown | |
10603 | version_type=none | |
10604 | dynamic_linker="$host_os ld.so" | |
10605 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10606 | need_lib_prefix=unknown | |
10607 | hardcode_into_libs=no | |
10608 | ||
10609 | # when you set need_version to no, make sure it does not cause -set_version | |
10610 | # flags to be left without arguments | |
10611 | need_version=unknown | |
10612 | ||
10613 | ||
10614 | ||
10615 | case $host_os in | |
10616 | aix3*) | |
10617 | version_type=linux # correct to gnu/linux during the next big refactor | |
10618 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
10619 | shlibpath_var=LIBPATH | |
10620 | ||
10621 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10622 | soname_spec='$libname$release$shared_ext$major' | |
10623 | ;; | |
10624 | ||
10625 | aix[4-9]*) | |
10626 | version_type=linux # correct to gnu/linux during the next big refactor | |
10627 | need_lib_prefix=no | |
10628 | need_version=no | |
10629 | hardcode_into_libs=yes | |
10630 | if test ia64 = "$host_cpu"; then | |
10631 | # AIX 5 supports IA64 | |
10632 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
10633 | shlibpath_var=LD_LIBRARY_PATH | |
10634 | else | |
10635 | # With GCC up to 2.95.x, collect2 would create an import file | |
10636 | # for dependence libraries. The import file would start with | |
10637 | # the line '#! .'. This would cause the generated library to | |
10638 | # depend on '.', always an invalid library. This was fixed in | |
10639 | # development snapshots of GCC prior to 3.0. | |
10640 | case $host_os in | |
10641 | aix4 | aix4.[01] | aix4.[01].*) | |
10642 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10643 | echo ' yes ' | |
10644 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
10645 | : | |
10646 | else | |
10647 | can_build_shared=no | |
10648 | fi | |
10649 | ;; | |
10650 | esac | |
10651 | # Using Import Files as archive members, it is possible to support | |
10652 | # filename-based versioning of shared library archives on AIX. While | |
10653 | # this would work for both with and without runtime linking, it will | |
10654 | # prevent static linking of such archives. So we do filename-based | |
10655 | # shared library versioning with .so extension only, which is used | |
10656 | # when both runtime linking and shared linking is enabled. | |
10657 | # Unfortunately, runtime linking may impact performance, so we do | |
10658 | # not want this to be the default eventually. Also, we use the | |
10659 | # versioned .so libs for executables only if there is the -brtl | |
10660 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10661 | # To allow for filename-based versioning support, we need to create | |
10662 | # libNAME.so.V as an archive file, containing: | |
10663 | # *) an Import File, referring to the versioned filename of the | |
10664 | # archive as well as the shared archive member, telling the | |
10665 | # bitwidth (32 or 64) of that shared object, and providing the | |
10666 | # list of exported symbols of that shared object, eventually | |
10667 | # decorated with the 'weak' keyword | |
10668 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10669 | # it being seen by the linker. | |
10670 | # At run time we better use the real file rather than another symlink, | |
10671 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10672 | ||
10673 | case $with_aix_soname,$aix_use_runtimelinking in | |
10674 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
10675 | # soname into executable. Probably we can add versioning support to | |
10676 | # collect2, so additional links can be useful in future. | |
10677 | aix,yes) # traditional libtool | |
10678 | dynamic_linker='AIX unversionable lib.so' | |
10679 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10680 | # instead of lib<name>.a to let people know that these are not | |
10681 | # typical AIX shared libraries. | |
10682 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10683 | ;; | |
10684 | aix,no) # traditional AIX only | |
10685 | dynamic_linker='AIX lib.a(lib.so.V)' | |
10686 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10687 | # and later when we are not doing run time linking. | |
10688 | library_names_spec='$libname$release.a $libname.a' | |
10689 | soname_spec='$libname$release$shared_ext$major' | |
10690 | ;; | |
10691 | svr4,*) # full svr4 only | |
10692 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10693 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10694 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10695 | shlibpath_overrides_runpath=yes | |
10696 | ;; | |
10697 | *,yes) # both, prefer svr4 | |
10698 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10699 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10700 | # unpreferred sharedlib libNAME.a needs extra handling | |
10701 | 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"' | |
10702 | 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"' | |
10703 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10704 | shlibpath_overrides_runpath=yes | |
10705 | ;; | |
10706 | *,no) # both, prefer aix | |
10707 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10708 | library_names_spec='$libname$release.a $libname.a' | |
10709 | soname_spec='$libname$release$shared_ext$major' | |
10710 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10711 | 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)' | |
10712 | 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"' | |
10713 | ;; | |
10714 | esac | |
10715 | shlibpath_var=LIBPATH | |
10716 | fi | |
10717 | ;; | |
10718 | ||
10719 | amigaos*) | |
10720 | case $host_cpu in | |
10721 | powerpc) | |
10722 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10723 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10724 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10725 | ;; | |
10726 | m68k) | |
10727 | library_names_spec='$libname.ixlibrary $libname.a' | |
10728 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10729 | 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' | |
10730 | ;; | |
10731 | esac | |
10732 | ;; | |
10733 | ||
10734 | beos*) | |
10735 | library_names_spec='$libname$shared_ext' | |
10736 | dynamic_linker="$host_os ld.so" | |
10737 | shlibpath_var=LIBRARY_PATH | |
10738 | ;; | |
10739 | ||
10740 | bsdi[45]*) | |
10741 | version_type=linux # correct to gnu/linux during the next big refactor | |
10742 | need_version=no | |
10743 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10744 | soname_spec='$libname$release$shared_ext$major' | |
10745 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10746 | shlibpath_var=LD_LIBRARY_PATH | |
10747 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10748 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10749 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10750 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10751 | # libtool to hard-code these into programs | |
10752 | ;; | |
10753 | ||
10754 | cygwin* | mingw* | pw32* | cegcc*) | |
10755 | version_type=windows | |
10756 | shrext_cmds=.dll | |
10757 | need_version=no | |
10758 | need_lib_prefix=no | |
10759 | ||
10760 | case $GCC,$cc_basename in | |
10761 | yes,*) | |
10762 | # gcc | |
10763 | library_names_spec='$libname.dll.a' | |
10764 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10765 | postinstall_cmds='base_file=`basename \$file`~ | |
10766 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
10767 | dldir=$destdir/`dirname \$dlpath`~ | |
10768 | test -d \$dldir || mkdir -p \$dldir~ | |
10769 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10770 | chmod a+x \$dldir/$dlname~ | |
10771 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10772 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10773 | fi' | |
10774 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10775 | dlpath=$dir/\$dldll~ | |
10776 | $RM \$dlpath' | |
10777 | shlibpath_overrides_runpath=yes | |
10778 | ||
10779 | case $host_os in | |
10780 | cygwin*) | |
10781 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10782 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10783 | ||
10784 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10785 | ;; | |
10786 | mingw* | cegcc*) | |
10787 | # MinGW DLLs use traditional 'lib' prefix | |
10788 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10789 | ;; | |
10790 | pw32*) | |
10791 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10792 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10793 | ;; | |
10794 | esac | |
10795 | dynamic_linker='Win32 ld.exe' | |
10796 | ;; | |
10797 | ||
10798 | *,cl*) | |
10799 | # Native MSVC | |
10800 | libname_spec='$name' | |
10801 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10802 | library_names_spec='$libname.dll.lib' | |
10803 | ||
10804 | case $build_os in | |
10805 | mingw*) | |
10806 | sys_lib_search_path_spec= | |
10807 | lt_save_ifs=$IFS | |
10808 | IFS=';' | |
10809 | for lt_path in $LIB | |
10810 | do | |
10811 | IFS=$lt_save_ifs | |
10812 | # Let DOS variable expansion print the short 8.3 style file name. | |
10813 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10814 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10815 | done | |
10816 | IFS=$lt_save_ifs | |
10817 | # Convert to MSYS style. | |
10818 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10819 | ;; | |
10820 | cygwin*) | |
10821 | # Convert to unix form, then to dos form, then back to unix form | |
10822 | # but this time dos style (no spaces!) so that the unix form looks | |
10823 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10824 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10825 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10826 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10827 | ;; | |
10828 | *) | |
10829 | sys_lib_search_path_spec=$LIB | |
10830 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10831 | # It is most probably a Windows format PATH. | |
10832 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10833 | else | |
10834 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10835 | fi | |
10836 | # FIXME: find the short name or the path components, as spaces are | |
10837 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10838 | ;; | |
10839 | esac | |
10840 | ||
10841 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10842 | postinstall_cmds='base_file=`basename \$file`~ | |
10843 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
10844 | dldir=$destdir/`dirname \$dlpath`~ | |
10845 | test -d \$dldir || mkdir -p \$dldir~ | |
10846 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10847 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10848 | dlpath=$dir/\$dldll~ | |
10849 | $RM \$dlpath' | |
10850 | shlibpath_overrides_runpath=yes | |
10851 | dynamic_linker='Win32 link.exe' | |
10852 | ;; | |
10853 | ||
10854 | *) | |
10855 | # Assume MSVC wrapper | |
10856 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' | |
10857 | dynamic_linker='Win32 ld.exe' | |
10858 | ;; | |
10859 | esac | |
10860 | # FIXME: first we should search . and the directory the executable is in | |
10861 | shlibpath_var=PATH | |
10862 | ;; | |
10863 | ||
10864 | darwin* | rhapsody*) | |
10865 | dynamic_linker="$host_os dyld" | |
10866 | version_type=darwin | |
10867 | need_lib_prefix=no | |
10868 | need_version=no | |
10869 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
10870 | soname_spec='$libname$release$major$shared_ext' | |
10871 | shlibpath_overrides_runpath=yes | |
10872 | shlibpath_var=DYLD_LIBRARY_PATH | |
10873 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10874 | ||
10875 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10876 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10877 | ;; | |
10878 | ||
10879 | dgux*) | |
10880 | version_type=linux # correct to gnu/linux during the next big refactor | |
10881 | need_lib_prefix=no | |
10882 | need_version=no | |
10883 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10884 | soname_spec='$libname$release$shared_ext$major' | |
10885 | shlibpath_var=LD_LIBRARY_PATH | |
10886 | ;; | |
10887 | ||
10888 | freebsd* | dragonfly*) | |
10889 | # DragonFly does not have aout. When/if they implement a new | |
10890 | # versioning mechanism, adjust this. | |
10891 | if test -x /usr/bin/objformat; then | |
10892 | objformat=`/usr/bin/objformat` | |
10893 | else | |
10894 | case $host_os in | |
10895 | freebsd[23].*) objformat=aout ;; | |
10896 | *) objformat=elf ;; | |
10897 | esac | |
10898 | fi | |
10899 | version_type=freebsd-$objformat | |
10900 | case $version_type in | |
10901 | freebsd-elf*) | |
10902 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10903 | soname_spec='$libname$release$shared_ext$major' | |
10904 | need_version=no | |
10905 | need_lib_prefix=no | |
10906 | ;; | |
10907 | freebsd-*) | |
10908 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
10909 | need_version=yes | |
10910 | ;; | |
10911 | esac | |
10912 | shlibpath_var=LD_LIBRARY_PATH | |
10913 | case $host_os in | |
10914 | freebsd2.*) | |
10915 | shlibpath_overrides_runpath=yes | |
10916 | ;; | |
10917 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10918 | shlibpath_overrides_runpath=yes | |
10919 | hardcode_into_libs=yes | |
10920 | ;; | |
10921 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10922 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10923 | shlibpath_overrides_runpath=no | |
10924 | hardcode_into_libs=yes | |
10925 | ;; | |
10926 | *) # from 4.6 on, and DragonFly | |
10927 | shlibpath_overrides_runpath=yes | |
10928 | hardcode_into_libs=yes | |
10929 | ;; | |
10930 | esac | |
10931 | ;; | |
10932 | ||
10933 | haiku*) | |
10934 | version_type=linux # correct to gnu/linux during the next big refactor | |
10935 | need_lib_prefix=no | |
10936 | need_version=no | |
10937 | dynamic_linker="$host_os runtime_loader" | |
10938 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10939 | soname_spec='$libname$release$shared_ext$major' | |
10940 | shlibpath_var=LIBRARY_PATH | |
10941 | shlibpath_overrides_runpath=no | |
10942 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
10943 | hardcode_into_libs=yes | |
10944 | ;; | |
10945 | ||
10946 | hpux9* | hpux10* | hpux11*) | |
10947 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10948 | # link against other versions. | |
10949 | version_type=sunos | |
10950 | need_lib_prefix=no | |
10951 | need_version=no | |
10952 | case $host_cpu in | |
10953 | ia64*) | |
10954 | shrext_cmds='.so' | |
10955 | hardcode_into_libs=yes | |
10956 | dynamic_linker="$host_os dld.so" | |
10957 | shlibpath_var=LD_LIBRARY_PATH | |
10958 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10959 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10960 | soname_spec='$libname$release$shared_ext$major' | |
10961 | if test 32 = "$HPUX_IA64_MODE"; then | |
10962 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10963 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
10964 | else | |
10965 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10966 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
10967 | fi | |
10968 | ;; | |
10969 | hppa*64*) | |
10970 | shrext_cmds='.sl' | |
10971 | hardcode_into_libs=yes | |
10972 | dynamic_linker="$host_os dld.sl" | |
10973 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10974 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
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' | |
10977 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10978 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10979 | ;; | |
10980 | *) | |
10981 | shrext_cmds='.sl' | |
10982 | dynamic_linker="$host_os dld.sl" | |
10983 | shlibpath_var=SHLIB_PATH | |
10984 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10985 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10986 | soname_spec='$libname$release$shared_ext$major' | |
10987 | ;; | |
10988 | esac | |
10989 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10990 | postinstall_cmds='chmod 555 $lib' | |
10991 | # or fails outright, so override atomically: | |
10992 | install_override_mode=555 | |
10993 | ;; | |
10994 | ||
10995 | interix[3-9]*) | |
10996 | version_type=linux # correct to gnu/linux during the next big refactor | |
10997 | need_lib_prefix=no | |
10998 | need_version=no | |
10999 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11000 | soname_spec='$libname$release$shared_ext$major' | |
11001 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11002 | shlibpath_var=LD_LIBRARY_PATH | |
11003 | shlibpath_overrides_runpath=no | |
11004 | hardcode_into_libs=yes | |
11005 | ;; | |
11006 | ||
11007 | irix5* | irix6* | nonstopux*) | |
11008 | case $host_os in | |
11009 | nonstopux*) version_type=nonstopux ;; | |
11010 | *) | |
11011 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
11012 | version_type=linux # correct to gnu/linux during the next big refactor | |
11013 | else | |
11014 | version_type=irix | |
11015 | fi ;; | |
11016 | esac | |
11017 | need_lib_prefix=no | |
11018 | need_version=no | |
11019 | soname_spec='$libname$release$shared_ext$major' | |
11020 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
11021 | case $host_os in | |
11022 | irix5* | nonstopux*) | |
11023 | libsuff= shlibsuff= | |
11024 | ;; | |
11025 | *) | |
11026 | case $LD in # libtool.m4 will add one of these switches to LD | |
11027 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11028 | libsuff= shlibsuff= libmagic=32-bit;; | |
11029 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11030 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11031 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11032 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11033 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11034 | esac | |
11035 | ;; | |
11036 | esac | |
11037 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11038 | shlibpath_overrides_runpath=no | |
11039 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
11040 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
11041 | hardcode_into_libs=yes | |
11042 | ;; | |
11043 | ||
11044 | # No shared lib support for Linux oldld, aout, or coff. | |
11045 | linux*oldld* | linux*aout* | linux*coff*) | |
11046 | dynamic_linker=no | |
11047 | ;; | |
11048 | ||
11049 | linux*android*) | |
11050 | version_type=none # Android doesn't support versioned libraries. | |
11051 | need_lib_prefix=no | |
11052 | need_version=no | |
11053 | library_names_spec='$libname$release$shared_ext' | |
11054 | soname_spec='$libname$release$shared_ext' | |
11055 | finish_cmds= | |
11056 | shlibpath_var=LD_LIBRARY_PATH | |
11057 | shlibpath_overrides_runpath=yes | |
11058 | ||
11059 | # This implies no fast_install, which is unacceptable. | |
11060 | # Some rework will be needed to allow for fast_install | |
11061 | # before this can be enabled. | |
11062 | hardcode_into_libs=yes | |
11063 | ||
11064 | dynamic_linker='Android linker' | |
11065 | # Don't embed -rpath directories since the linker doesn't support them. | |
11066 | hardcode_libdir_flag_spec='-L$libdir' | |
11067 | ;; | |
11068 | ||
11069 | # This must be glibc/ELF. | |
11070 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11071 | version_type=linux # correct to gnu/linux during the next big refactor | |
11072 | need_lib_prefix=no | |
11073 | need_version=no | |
11074 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11075 | soname_spec='$libname$release$shared_ext$major' | |
11076 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11077 | shlibpath_var=LD_LIBRARY_PATH | |
11078 | shlibpath_overrides_runpath=no | |
11079 | ||
11080 | # Some binutils ld are patched to set DT_RUNPATH | |
11081 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11082 | $as_echo_n "(cached) " >&6 | |
11083 | else | |
11084 | lt_cv_shlibpath_overrides_runpath=no | |
11085 | save_LDFLAGS=$LDFLAGS | |
11086 | save_libdir=$libdir | |
11087 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11088 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11090 | /* end confdefs.h. */ | |
11091 | ||
11092 | int | |
11093 | main () | |
11094 | { | |
11095 | ||
11096 | ; | |
11097 | return 0; | |
11098 | } | |
11099 | _ACEOF | |
11100 | if ac_fn_c_try_link "$LINENO"; then : | |
11101 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11102 | lt_cv_shlibpath_overrides_runpath=yes | |
11103 | fi | |
11104 | fi | |
11105 | rm -f core conftest.err conftest.$ac_objext \ | |
11106 | conftest$ac_exeext conftest.$ac_ext | |
11107 | LDFLAGS=$save_LDFLAGS | |
11108 | libdir=$save_libdir | |
11109 | ||
11110 | fi | |
11111 | ||
11112 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11113 | ||
11114 | # This implies no fast_install, which is unacceptable. | |
11115 | # Some rework will be needed to allow for fast_install | |
11116 | # before this can be enabled. | |
11117 | hardcode_into_libs=yes | |
11118 | ||
11119 | # Ideally, we could use ldconfig to report *all* directores which are | |
11120 | # searched for libraries, however this is still not possible. Aside from not | |
11121 | # being certain /sbin/ldconfig is available, command | |
11122 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11123 | # even though it is searched at run-time. Try to do the best guess by | |
11124 | # appending ld.so.conf contents (and includes) to the search path. | |
11125 | if test -f /etc/ld.so.conf; then | |
11126 | 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' ' '` | |
11127 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11128 | fi | |
11129 | ||
11130 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11131 | # powerpc, because MkLinux only supported shared libraries with the | |
11132 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11133 | # most powerpc-linux boxes support dynamic linking these days and | |
11134 | # people can always --disable-shared, the test was removed, and we | |
11135 | # assume the GNU/Linux dynamic linker is in use. | |
11136 | dynamic_linker='GNU/Linux ld.so' | |
11137 | ;; | |
11138 | ||
11139 | netbsdelf*-gnu) | |
11140 | version_type=linux | |
11141 | need_lib_prefix=no | |
11142 | need_version=no | |
11143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11144 | soname_spec='${libname}${release}${shared_ext}$major' | |
11145 | shlibpath_var=LD_LIBRARY_PATH | |
11146 | shlibpath_overrides_runpath=no | |
11147 | hardcode_into_libs=yes | |
11148 | dynamic_linker='NetBSD ld.elf_so' | |
11149 | ;; | |
11150 | ||
11151 | netbsd*) | |
11152 | version_type=sunos | |
11153 | need_lib_prefix=no | |
11154 | need_version=no | |
11155 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11156 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11157 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11158 | dynamic_linker='NetBSD (a.out) ld.so' | |
11159 | else | |
11160 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11161 | soname_spec='$libname$release$shared_ext$major' | |
11162 | dynamic_linker='NetBSD ld.elf_so' | |
11163 | fi | |
11164 | shlibpath_var=LD_LIBRARY_PATH | |
11165 | shlibpath_overrides_runpath=yes | |
11166 | hardcode_into_libs=yes | |
11167 | ;; | |
11168 | ||
11169 | newsos6) | |
11170 | version_type=linux # correct to gnu/linux during the next big refactor | |
11171 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11172 | shlibpath_var=LD_LIBRARY_PATH | |
11173 | shlibpath_overrides_runpath=yes | |
11174 | ;; | |
11175 | ||
11176 | *nto* | *qnx*) | |
11177 | version_type=qnx | |
11178 | need_lib_prefix=no | |
11179 | need_version=no | |
11180 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11181 | soname_spec='$libname$release$shared_ext$major' | |
11182 | shlibpath_var=LD_LIBRARY_PATH | |
11183 | shlibpath_overrides_runpath=no | |
11184 | hardcode_into_libs=yes | |
11185 | dynamic_linker='ldqnx.so' | |
11186 | ;; | |
11187 | ||
11188 | openbsd* | bitrig*) | |
11189 | version_type=sunos | |
11190 | sys_lib_dlsearch_path_spec=/usr/lib | |
11191 | need_lib_prefix=no | |
11192 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
11193 | need_version=no | |
11194 | else | |
11195 | need_version=yes | |
11196 | fi | |
11197 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11198 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11199 | shlibpath_var=LD_LIBRARY_PATH | |
11200 | shlibpath_overrides_runpath=yes | |
11201 | ;; | |
11202 | ||
11203 | os2*) | |
11204 | libname_spec='$name' | |
11205 | version_type=windows | |
11206 | shrext_cmds=.dll | |
11207 | need_version=no | |
11208 | need_lib_prefix=no | |
11209 | # OS/2 can only load a DLL with a base name of 8 characters or less. | |
11210 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11211 | v=$($ECHO $release$versuffix | tr -d .-); | |
11212 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11213 | $ECHO $n$v`$shared_ext' | |
11214 | library_names_spec='${libname}_dll.$libext' | |
11215 | dynamic_linker='OS/2 ld.exe' | |
11216 | shlibpath_var=BEGINLIBPATH | |
11217 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11218 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11219 | postinstall_cmds='base_file=`basename \$file`~ | |
11220 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11221 | dldir=$destdir/`dirname \$dlpath`~ | |
11222 | test -d \$dldir || mkdir -p \$dldir~ | |
11223 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11224 | chmod a+x \$dldir/$dlname~ | |
11225 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11226 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11227 | fi' | |
11228 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11229 | dlpath=$dir/\$dldll~ | |
11230 | $RM \$dlpath' | |
11231 | ;; | |
11232 | ||
11233 | osf3* | osf4* | osf5*) | |
11234 | version_type=osf | |
11235 | need_lib_prefix=no | |
11236 | need_version=no | |
11237 | soname_spec='$libname$release$shared_ext$major' | |
11238 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11239 | shlibpath_var=LD_LIBRARY_PATH | |
11240 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11241 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11242 | ;; | |
11243 | ||
11244 | rdos*) | |
11245 | dynamic_linker=no | |
11246 | ;; | |
11247 | ||
11248 | solaris*) | |
11249 | version_type=linux # correct to gnu/linux during the next big refactor | |
11250 | need_lib_prefix=no | |
11251 | need_version=no | |
11252 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11253 | soname_spec='$libname$release$shared_ext$major' | |
11254 | shlibpath_var=LD_LIBRARY_PATH | |
11255 | shlibpath_overrides_runpath=yes | |
11256 | hardcode_into_libs=yes | |
11257 | # ldd complains unless libraries are executable | |
11258 | postinstall_cmds='chmod +x $lib' | |
11259 | ;; | |
11260 | ||
11261 | sunos4*) | |
11262 | version_type=sunos | |
11263 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11264 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11265 | shlibpath_var=LD_LIBRARY_PATH | |
11266 | shlibpath_overrides_runpath=yes | |
11267 | if test yes = "$with_gnu_ld"; then | |
11268 | need_lib_prefix=no | |
11269 | fi | |
11270 | need_version=yes | |
11271 | ;; | |
11272 | ||
11273 | sysv4 | sysv4.3*) | |
11274 | version_type=linux # correct to gnu/linux during the next big refactor | |
11275 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11276 | soname_spec='$libname$release$shared_ext$major' | |
11277 | shlibpath_var=LD_LIBRARY_PATH | |
11278 | case $host_vendor in | |
11279 | sni) | |
11280 | shlibpath_overrides_runpath=no | |
11281 | need_lib_prefix=no | |
11282 | runpath_var=LD_RUN_PATH | |
11283 | ;; | |
11284 | siemens) | |
11285 | need_lib_prefix=no | |
11286 | ;; | |
11287 | motorola) | |
11288 | need_lib_prefix=no | |
11289 | need_version=no | |
11290 | shlibpath_overrides_runpath=no | |
11291 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11292 | ;; | |
11293 | esac | |
11294 | ;; | |
11295 | ||
11296 | sysv4*MP*) | |
11297 | if test -d /usr/nec; then | |
11298 | version_type=linux # correct to gnu/linux during the next big refactor | |
11299 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
11300 | soname_spec='$libname$shared_ext.$major' | |
11301 | shlibpath_var=LD_LIBRARY_PATH | |
11302 | fi | |
11303 | ;; | |
11304 | ||
11305 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11306 | version_type=sco | |
11307 | need_lib_prefix=no | |
11308 | need_version=no | |
11309 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
11310 | soname_spec='$libname$release$shared_ext$major' | |
11311 | shlibpath_var=LD_LIBRARY_PATH | |
11312 | shlibpath_overrides_runpath=yes | |
11313 | hardcode_into_libs=yes | |
11314 | if test yes = "$with_gnu_ld"; then | |
11315 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11316 | else | |
11317 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11318 | case $host_os in | |
11319 | sco3.2v5*) | |
11320 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11321 | ;; | |
11322 | esac | |
11323 | fi | |
11324 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11325 | ;; | |
11326 | ||
11327 | tpf*) | |
11328 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11329 | version_type=linux # correct to gnu/linux during the next big refactor | |
11330 | need_lib_prefix=no | |
11331 | need_version=no | |
11332 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11333 | shlibpath_var=LD_LIBRARY_PATH | |
11334 | shlibpath_overrides_runpath=no | |
11335 | hardcode_into_libs=yes | |
11336 | ;; | |
11337 | ||
11338 | uts4*) | |
11339 | version_type=linux # correct to gnu/linux during the next big refactor | |
11340 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11341 | soname_spec='$libname$release$shared_ext$major' | |
11342 | shlibpath_var=LD_LIBRARY_PATH | |
11343 | ;; | |
11344 | ||
11345 | *) | |
11346 | dynamic_linker=no | |
11347 | ;; | |
11348 | esac | |
11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11350 | $as_echo "$dynamic_linker" >&6; } | |
11351 | test no = "$dynamic_linker" && can_build_shared=no | |
11352 | ||
11353 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11354 | if test yes = "$GCC"; then | |
11355 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11356 | fi | |
11357 | ||
11358 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
11359 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
11360 | fi | |
11361 | ||
11362 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11363 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
11364 | fi | |
11365 | ||
11366 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... | |
11367 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11368 | ||
11369 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11370 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11371 | ||
11372 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11373 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11374 | ||
11375 | ||
11376 | ||
11377 | ||
11378 | ||
11379 | ||
11380 | ||
11381 | ||
11382 | ||
11383 | ||
11384 | ||
11385 | ||
11386 | ||
11387 | ||
11388 | ||
11389 | ||
11390 | ||
11391 | ||
11392 | ||
11393 | ||
11394 | ||
11395 | ||
11396 | ||
11397 | ||
11398 | ||
11399 | ||
11400 | ||
11401 | ||
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | ||
11407 | ||
11408 | ||
11409 | ||
11410 | ||
11411 | ||
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | ||
11428 | ||
11429 | ||
11430 | ||
11431 | ||
11432 | ||
11433 | ||
11434 | ||
11435 | ||
11436 | ||
11437 | ||
11438 | ||
11439 | ||
11440 | ||
11441 | ||
11442 | ||
11443 | ||
11444 | ||
11445 | ||
11446 | ||
11447 | ||
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
11461 | ||
11462 | ||
11463 | ||
11464 | ||
11465 | ||
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11472 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11473 | hardcode_action= | |
11474 | if test -n "$hardcode_libdir_flag_spec" || | |
11475 | test -n "$runpath_var" || | |
11476 | test yes = "$hardcode_automatic"; then | |
11477 | ||
11478 | # We can hardcode non-existent directories. | |
11479 | if test no != "$hardcode_direct" && | |
11480 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11481 | # have to relink, otherwise we might link with an installed library | |
11482 | # when we should be linking with a yet-to-be-installed one | |
11483 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && | |
11484 | test no != "$hardcode_minus_L"; then | |
11485 | # Linking always hardcodes the temporary library directory. | |
11486 | hardcode_action=relink | |
11487 | else | |
11488 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11489 | hardcode_action=immediate | |
11490 | fi | |
11491 | else | |
11492 | # We cannot hardcode anything, or else we can only hardcode existing | |
11493 | # directories. | |
11494 | hardcode_action=unsupported | |
11495 | fi | |
11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11497 | $as_echo "$hardcode_action" >&6; } | |
11498 | ||
11499 | if test relink = "$hardcode_action" || | |
11500 | test yes = "$inherit_rpath"; then | |
11501 | # Fast installation is not supported | |
11502 | enable_fast_install=no | |
11503 | elif test yes = "$shlibpath_overrides_runpath" || | |
11504 | test no = "$enable_shared"; then | |
11505 | # Fast installation is not necessary | |
11506 | enable_fast_install=needless | |
11507 | fi | |
11508 | ||
11509 | ||
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | if test yes != "$enable_dlopen"; then | |
11515 | enable_dlopen=unknown | |
11516 | enable_dlopen_self=unknown | |
11517 | enable_dlopen_self_static=unknown | |
11518 | else | |
11519 | lt_cv_dlopen=no | |
11520 | lt_cv_dlopen_libs= | |
11521 | ||
11522 | case $host_os in | |
11523 | beos*) | |
11524 | lt_cv_dlopen=load_add_on | |
11525 | lt_cv_dlopen_libs= | |
11526 | lt_cv_dlopen_self=yes | |
11527 | ;; | |
11528 | ||
11529 | mingw* | pw32* | cegcc*) | |
11530 | lt_cv_dlopen=LoadLibrary | |
11531 | lt_cv_dlopen_libs= | |
11532 | ;; | |
11533 | ||
11534 | cygwin*) | |
11535 | lt_cv_dlopen=dlopen | |
11536 | lt_cv_dlopen_libs= | |
11537 | ;; | |
11538 | ||
11539 | darwin*) | |
11540 | # if libdl is installed we need to link against it | |
11541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11542 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11543 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11544 | $as_echo_n "(cached) " >&6 | |
11545 | else | |
11546 | ac_check_lib_save_LIBS=$LIBS | |
11547 | LIBS="-ldl $LIBS" | |
11548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11549 | /* end confdefs.h. */ | |
11550 | ||
11551 | /* Override any GCC internal prototype to avoid an error. | |
11552 | Use char because int might match the return type of a GCC | |
11553 | builtin and then its argument prototype would still apply. */ | |
11554 | #ifdef __cplusplus | |
11555 | extern "C" | |
11556 | #endif | |
11557 | char dlopen (); | |
11558 | int | |
11559 | main () | |
11560 | { | |
11561 | return dlopen (); | |
11562 | ; | |
11563 | return 0; | |
11564 | } | |
11565 | _ACEOF | |
11566 | if ac_fn_c_try_link "$LINENO"; then : | |
11567 | ac_cv_lib_dl_dlopen=yes | |
11568 | else | |
11569 | ac_cv_lib_dl_dlopen=no | |
11570 | fi | |
11571 | rm -f core conftest.err conftest.$ac_objext \ | |
11572 | conftest$ac_exeext conftest.$ac_ext | |
11573 | LIBS=$ac_check_lib_save_LIBS | |
11574 | fi | |
11575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11576 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11577 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11578 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
11579 | else | |
11580 | ||
11581 | lt_cv_dlopen=dyld | |
11582 | lt_cv_dlopen_libs= | |
11583 | lt_cv_dlopen_self=yes | |
11584 | ||
11585 | fi | |
11586 | ||
11587 | ;; | |
11588 | ||
11589 | tpf*) | |
11590 | # Don't try to run any link tests for TPF. We know it's impossible | |
11591 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11592 | lt_cv_dlopen=dlopen | |
11593 | lt_cv_dlopen_libs= | |
11594 | lt_cv_dlopen_self=no | |
11595 | ;; | |
11596 | ||
11597 | *) | |
11598 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11599 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11600 | lt_cv_dlopen=shl_load | |
11601 | else | |
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11603 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11604 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11605 | $as_echo_n "(cached) " >&6 | |
11606 | else | |
11607 | ac_check_lib_save_LIBS=$LIBS | |
11608 | LIBS="-ldld $LIBS" | |
11609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11610 | /* end confdefs.h. */ | |
11611 | ||
11612 | /* Override any GCC internal prototype to avoid an error. | |
11613 | Use char because int might match the return type of a GCC | |
11614 | builtin and then its argument prototype would still apply. */ | |
11615 | #ifdef __cplusplus | |
11616 | extern "C" | |
11617 | #endif | |
11618 | char shl_load (); | |
11619 | int | |
11620 | main () | |
11621 | { | |
11622 | return shl_load (); | |
11623 | ; | |
11624 | return 0; | |
11625 | } | |
11626 | _ACEOF | |
11627 | if ac_fn_c_try_link "$LINENO"; then : | |
11628 | ac_cv_lib_dld_shl_load=yes | |
11629 | else | |
11630 | ac_cv_lib_dld_shl_load=no | |
11631 | fi | |
11632 | rm -f core conftest.err conftest.$ac_objext \ | |
11633 | conftest$ac_exeext conftest.$ac_ext | |
11634 | LIBS=$ac_check_lib_save_LIBS | |
11635 | fi | |
11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11637 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11638 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11639 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld | |
11640 | else | |
11641 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11642 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11643 | lt_cv_dlopen=dlopen | |
11644 | else | |
11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11646 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11647 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11648 | $as_echo_n "(cached) " >&6 | |
11649 | else | |
11650 | ac_check_lib_save_LIBS=$LIBS | |
11651 | LIBS="-ldl $LIBS" | |
11652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11653 | /* end confdefs.h. */ | |
11654 | ||
11655 | /* Override any GCC internal prototype to avoid an error. | |
11656 | Use char because int might match the return type of a GCC | |
11657 | builtin and then its argument prototype would still apply. */ | |
11658 | #ifdef __cplusplus | |
11659 | extern "C" | |
11660 | #endif | |
11661 | char dlopen (); | |
11662 | int | |
11663 | main () | |
11664 | { | |
11665 | return dlopen (); | |
11666 | ; | |
11667 | return 0; | |
11668 | } | |
11669 | _ACEOF | |
11670 | if ac_fn_c_try_link "$LINENO"; then : | |
11671 | ac_cv_lib_dl_dlopen=yes | |
11672 | else | |
11673 | ac_cv_lib_dl_dlopen=no | |
11674 | fi | |
11675 | rm -f core conftest.err conftest.$ac_objext \ | |
11676 | conftest$ac_exeext conftest.$ac_ext | |
11677 | LIBS=$ac_check_lib_save_LIBS | |
11678 | fi | |
11679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11680 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11681 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11682 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
11683 | else | |
11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11685 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11686 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11687 | $as_echo_n "(cached) " >&6 | |
11688 | else | |
11689 | ac_check_lib_save_LIBS=$LIBS | |
11690 | LIBS="-lsvld $LIBS" | |
11691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11692 | /* end confdefs.h. */ | |
11693 | ||
11694 | /* Override any GCC internal prototype to avoid an error. | |
11695 | Use char because int might match the return type of a GCC | |
11696 | builtin and then its argument prototype would still apply. */ | |
11697 | #ifdef __cplusplus | |
11698 | extern "C" | |
11699 | #endif | |
11700 | char dlopen (); | |
11701 | int | |
11702 | main () | |
11703 | { | |
11704 | return dlopen (); | |
11705 | ; | |
11706 | return 0; | |
11707 | } | |
11708 | _ACEOF | |
11709 | if ac_fn_c_try_link "$LINENO"; then : | |
11710 | ac_cv_lib_svld_dlopen=yes | |
11711 | else | |
11712 | ac_cv_lib_svld_dlopen=no | |
11713 | fi | |
11714 | rm -f core conftest.err conftest.$ac_objext \ | |
11715 | conftest$ac_exeext conftest.$ac_ext | |
11716 | LIBS=$ac_check_lib_save_LIBS | |
11717 | fi | |
11718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11719 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11720 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11721 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld | |
11722 | else | |
11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11724 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11725 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11726 | $as_echo_n "(cached) " >&6 | |
11727 | else | |
11728 | ac_check_lib_save_LIBS=$LIBS | |
11729 | LIBS="-ldld $LIBS" | |
11730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11731 | /* end confdefs.h. */ | |
11732 | ||
11733 | /* Override any GCC internal prototype to avoid an error. | |
11734 | Use char because int might match the return type of a GCC | |
11735 | builtin and then its argument prototype would still apply. */ | |
11736 | #ifdef __cplusplus | |
11737 | extern "C" | |
11738 | #endif | |
11739 | char dld_link (); | |
11740 | int | |
11741 | main () | |
11742 | { | |
11743 | return dld_link (); | |
11744 | ; | |
11745 | return 0; | |
11746 | } | |
11747 | _ACEOF | |
11748 | if ac_fn_c_try_link "$LINENO"; then : | |
11749 | ac_cv_lib_dld_dld_link=yes | |
11750 | else | |
11751 | ac_cv_lib_dld_dld_link=no | |
11752 | fi | |
11753 | rm -f core conftest.err conftest.$ac_objext \ | |
11754 | conftest$ac_exeext conftest.$ac_ext | |
11755 | LIBS=$ac_check_lib_save_LIBS | |
11756 | fi | |
11757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11758 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11759 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11760 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld | |
11761 | fi | |
11762 | ||
11763 | ||
11764 | fi | |
11765 | ||
11766 | ||
11767 | fi | |
11768 | ||
11769 | ||
11770 | fi | |
11771 | ||
11772 | ||
11773 | fi | |
11774 | ||
11775 | ||
11776 | fi | |
11777 | ||
11778 | ;; | |
11779 | esac | |
11780 | ||
11781 | if test no = "$lt_cv_dlopen"; then | |
11782 | enable_dlopen=no | |
11783 | else | |
11784 | enable_dlopen=yes | |
11785 | fi | |
11786 | ||
11787 | case $lt_cv_dlopen in | |
11788 | dlopen) | |
11789 | save_CPPFLAGS=$CPPFLAGS | |
11790 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11791 | ||
11792 | save_LDFLAGS=$LDFLAGS | |
11793 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11794 | ||
11795 | save_LIBS=$LIBS | |
11796 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11797 | ||
11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11799 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11800 | if ${lt_cv_dlopen_self+:} false; then : | |
11801 | $as_echo_n "(cached) " >&6 | |
11802 | else | |
11803 | if test yes = "$cross_compiling"; then : | |
11804 | lt_cv_dlopen_self=cross | |
11805 | else | |
11806 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11807 | lt_status=$lt_dlunknown | |
11808 | cat > conftest.$ac_ext <<_LT_EOF | |
11809 | #line $LINENO "configure" | |
11810 | #include "confdefs.h" | |
11811 | ||
11812 | #if HAVE_DLFCN_H | |
11813 | #include <dlfcn.h> | |
11814 | #endif | |
11815 | ||
11816 | #include <stdio.h> | |
11817 | ||
11818 | #ifdef RTLD_GLOBAL | |
11819 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11820 | #else | |
11821 | # ifdef DL_GLOBAL | |
11822 | # define LT_DLGLOBAL DL_GLOBAL | |
11823 | # else | |
11824 | # define LT_DLGLOBAL 0 | |
11825 | # endif | |
11826 | #endif | |
11827 | ||
11828 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11829 | find out it does not work in some platform. */ | |
11830 | #ifndef LT_DLLAZY_OR_NOW | |
11831 | # ifdef RTLD_LAZY | |
11832 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11833 | # else | |
11834 | # ifdef DL_LAZY | |
11835 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11836 | # else | |
11837 | # ifdef RTLD_NOW | |
11838 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11839 | # else | |
11840 | # ifdef DL_NOW | |
11841 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11842 | # else | |
11843 | # define LT_DLLAZY_OR_NOW 0 | |
11844 | # endif | |
11845 | # endif | |
11846 | # endif | |
11847 | # endif | |
11848 | #endif | |
11849 | ||
11850 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
11851 | correspondingly for the symbols needed. */ | |
11852 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11853 | int fnord () __attribute__((visibility("default"))); | |
11854 | #endif | |
11855 | ||
11856 | int fnord () { return 42; } | |
11857 | int main () | |
11858 | { | |
11859 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11860 | int status = $lt_dlunknown; | |
11861 | ||
11862 | if (self) | |
11863 | { | |
11864 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11865 | else | |
11866 | { | |
11867 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11868 | else puts (dlerror ()); | |
11869 | } | |
11870 | /* dlclose (self); */ | |
11871 | } | |
11872 | else | |
11873 | puts (dlerror ()); | |
11874 | ||
11875 | return status; | |
11876 | } | |
11877 | _LT_EOF | |
11878 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11879 | (eval $ac_link) 2>&5 | |
11880 | ac_status=$? | |
11881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11882 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
11883 | (./conftest; exit; ) >&5 2>/dev/null | |
11884 | lt_status=$? | |
11885 | case x$lt_status in | |
11886 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11887 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11888 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11889 | esac | |
11890 | else : | |
11891 | # compilation failed | |
11892 | lt_cv_dlopen_self=no | |
11893 | fi | |
11894 | fi | |
11895 | rm -fr conftest* | |
11896 | ||
11897 | ||
11898 | fi | |
11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11900 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11901 | ||
11902 | if test yes = "$lt_cv_dlopen_self"; then | |
11903 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11905 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11906 | if ${lt_cv_dlopen_self_static+:} false; then : | |
11907 | $as_echo_n "(cached) " >&6 | |
11908 | else | |
11909 | if test yes = "$cross_compiling"; then : | |
11910 | lt_cv_dlopen_self_static=cross | |
11911 | else | |
11912 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11913 | lt_status=$lt_dlunknown | |
11914 | cat > conftest.$ac_ext <<_LT_EOF | |
11915 | #line $LINENO "configure" | |
11916 | #include "confdefs.h" | |
11917 | ||
11918 | #if HAVE_DLFCN_H | |
11919 | #include <dlfcn.h> | |
11920 | #endif | |
11921 | ||
11922 | #include <stdio.h> | |
11923 | ||
11924 | #ifdef RTLD_GLOBAL | |
11925 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11926 | #else | |
11927 | # ifdef DL_GLOBAL | |
11928 | # define LT_DLGLOBAL DL_GLOBAL | |
11929 | # else | |
11930 | # define LT_DLGLOBAL 0 | |
11931 | # endif | |
11932 | #endif | |
11933 | ||
11934 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11935 | find out it does not work in some platform. */ | |
11936 | #ifndef LT_DLLAZY_OR_NOW | |
11937 | # ifdef RTLD_LAZY | |
11938 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11939 | # else | |
11940 | # ifdef DL_LAZY | |
11941 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11942 | # else | |
11943 | # ifdef RTLD_NOW | |
11944 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11945 | # else | |
11946 | # ifdef DL_NOW | |
11947 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11948 | # else | |
11949 | # define LT_DLLAZY_OR_NOW 0 | |
11950 | # endif | |
11951 | # endif | |
11952 | # endif | |
11953 | # endif | |
11954 | #endif | |
11955 | ||
11956 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
11957 | correspondingly for the symbols needed. */ | |
11958 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11959 | int fnord () __attribute__((visibility("default"))); | |
11960 | #endif | |
11961 | ||
11962 | int fnord () { return 42; } | |
11963 | int main () | |
11964 | { | |
11965 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11966 | int status = $lt_dlunknown; | |
11967 | ||
11968 | if (self) | |
11969 | { | |
11970 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11971 | else | |
11972 | { | |
11973 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11974 | else puts (dlerror ()); | |
11975 | } | |
11976 | /* dlclose (self); */ | |
11977 | } | |
11978 | else | |
11979 | puts (dlerror ()); | |
11980 | ||
11981 | return status; | |
11982 | } | |
11983 | _LT_EOF | |
11984 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11985 | (eval $ac_link) 2>&5 | |
11986 | ac_status=$? | |
11987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11988 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
11989 | (./conftest; exit; ) >&5 2>/dev/null | |
11990 | lt_status=$? | |
11991 | case x$lt_status in | |
11992 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11993 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11994 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11995 | esac | |
11996 | else : | |
11997 | # compilation failed | |
11998 | lt_cv_dlopen_self_static=no | |
11999 | fi | |
12000 | fi | |
12001 | rm -fr conftest* | |
12002 | ||
12003 | ||
12004 | fi | |
12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12006 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12007 | fi | |
12008 | ||
12009 | CPPFLAGS=$save_CPPFLAGS | |
12010 | LDFLAGS=$save_LDFLAGS | |
12011 | LIBS=$save_LIBS | |
12012 | ;; | |
12013 | esac | |
12014 | ||
12015 | case $lt_cv_dlopen_self in | |
12016 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12017 | *) enable_dlopen_self=unknown ;; | |
12018 | esac | |
12019 | ||
12020 | case $lt_cv_dlopen_self_static in | |
12021 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12022 | *) enable_dlopen_self_static=unknown ;; | |
12023 | esac | |
12024 | fi | |
12025 | ||
12026 | ||
12027 | ||
12028 | ||
12029 | ||
12030 | ||
12031 | ||
12032 | ||
12033 | ||
12034 | ||
12035 | ||
12036 | ||
12037 | ||
12038 | ||
12039 | ||
12040 | ||
12041 | ||
12042 | striplib= | |
12043 | old_striplib= | |
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12045 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12046 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12047 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12048 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12050 | $as_echo "yes" >&6; } | |
12051 | else | |
12052 | # FIXME - insert some real tests, host_os isn't really good enough | |
12053 | case $host_os in | |
12054 | darwin*) | |
12055 | if test -n "$STRIP"; then | |
12056 | striplib="$STRIP -x" | |
12057 | old_striplib="$STRIP -S" | |
12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12059 | $as_echo "yes" >&6; } | |
12060 | else | |
12061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12062 | $as_echo "no" >&6; } | |
12063 | fi | |
12064 | ;; | |
12065 | *) | |
12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12067 | $as_echo "no" >&6; } | |
12068 | ;; | |
12069 | esac | |
12070 | fi | |
12071 | ||
12072 | ||
12073 | ||
12074 | ||
12075 | ||
12076 | ||
12077 | ||
12078 | ||
12079 | ||
12080 | ||
12081 | ||
12082 | ||
12083 | # Report what library types will actually be built | |
12084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12085 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12087 | $as_echo "$can_build_shared" >&6; } | |
12088 | ||
12089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12090 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12091 | test no = "$can_build_shared" && enable_shared=no | |
12092 | ||
12093 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12094 | # are all built from PIC. | |
12095 | case $host_os in | |
12096 | aix3*) | |
12097 | test yes = "$enable_shared" && enable_static=no | |
12098 | if test -n "$RANLIB"; then | |
12099 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12100 | postinstall_cmds='$RANLIB $lib' | |
12101 | fi | |
12102 | ;; | |
12103 | ||
12104 | aix[4-9]*) | |
12105 | if test ia64 != "$host_cpu"; then | |
12106 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12107 | yes,aix,yes) ;; # shared object as lib.so file only | |
12108 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12109 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12110 | esac | |
12111 | fi | |
12112 | ;; | |
12113 | esac | |
12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12115 | $as_echo "$enable_shared" >&6; } | |
12116 | ||
12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12118 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12119 | # Make sure either enable_shared or enable_static is yes. | |
12120 | test yes = "$enable_shared" || enable_static=yes | |
12121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12122 | $as_echo "$enable_static" >&6; } | |
12123 | ||
12124 | ||
12125 | ||
12126 | ||
12127 | fi | |
12128 | ac_ext=c | |
12129 | ac_cpp='$CPP $CPPFLAGS' | |
12130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12133 | ||
12134 | CC=$lt_save_CC | |
12135 | ||
12136 | ||
12137 | ||
12138 | ||
12139 | ||
12140 | ||
12141 | ||
12142 | ||
12143 | ||
12144 | ||
12145 | ||
12146 | ||
12147 | ||
12148 | ||
12149 | ||
12150 | ac_config_commands="$ac_config_commands libtool" | |
12151 | ||
12152 | ||
12153 | ||
12154 | ||
12155 | # Only expand once: | |
12156 | ||
12157 | ||
12158 | ||
12159 | ||
12160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl author" >&5 | |
12161 | $as_echo_n "checking spl author... " >&6; } | |
12162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_AUTHOR" >&5 | |
12163 | $as_echo "$SPL_META_AUTHOR" >&6; } | |
12164 | ||
12165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl license" >&5 | |
12166 | $as_echo_n "checking spl license... " >&6; } | |
12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_LICENSE" >&5 | |
12168 | $as_echo "$SPL_META_LICENSE" >&6; } | |
12169 | ||
12170 | ||
12171 | ||
12172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5 | |
12173 | $as_echo_n "checking linux distribution... " >&6; } | |
12174 | if test -f /etc/toss-release ; then | |
12175 | VENDOR=toss ; | |
12176 | elif test -f /etc/fedora-release ; then | |
12177 | VENDOR=fedora ; | |
12178 | elif test -f /etc/redhat-release ; then | |
12179 | VENDOR=redhat ; | |
12180 | elif test -f /etc/gentoo-release ; then | |
12181 | VENDOR=gentoo ; | |
12182 | elif test -f /etc/arch-release ; then | |
12183 | VENDOR=arch ; | |
12184 | elif test -f /etc/SuSE-release ; then | |
12185 | VENDOR=sles ; | |
12186 | elif test -f /etc/slackware-version ; then | |
12187 | VENDOR=slackware ; | |
12188 | elif test -f /etc/lunar.release ; then | |
12189 | VENDOR=lunar ; | |
12190 | elif test -f /etc/lsb-release ; then | |
12191 | VENDOR=ubuntu ; | |
12192 | elif test -f /etc/debian_version ; then | |
12193 | VENDOR=debian ; | |
12194 | else | |
12195 | VENDOR= ; | |
12196 | fi | |
12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5 | |
12198 | $as_echo "$VENDOR" >&6; } | |
12199 | ||
12200 | ||
12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5 | |
12202 | $as_echo_n "checking default package type... " >&6; } | |
12203 | case "$VENDOR" in | |
12204 | toss) DEFAULT_PACKAGE=rpm ;; | |
12205 | redhat) DEFAULT_PACKAGE=rpm ;; | |
12206 | fedora) DEFAULT_PACKAGE=rpm ;; | |
12207 | gentoo) DEFAULT_PACKAGE=tgz ;; | |
12208 | arch) DEFAULT_PACKAGE=tgz ;; | |
12209 | sles) DEFAULT_PACKAGE=rpm ;; | |
12210 | slackware) DEFAULT_PACKAGE=tgz ;; | |
12211 | lunar) DEFAULT_PACKAGE=tgz ;; | |
12212 | ubuntu) DEFAULT_PACKAGE=deb ;; | |
12213 | debian) DEFAULT_PACKAGE=deb ;; | |
12214 | *) DEFAULT_PACKAGE=rpm ;; | |
12215 | esac | |
12216 | ||
12217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5 | |
12218 | $as_echo "$DEFAULT_PACKAGE" >&6; } | |
12219 | ||
12220 | ||
12221 | ||
12222 | RPM=rpm | |
12223 | RPMBUILD=rpmbuild | |
12224 | ||
12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5 | |
12226 | $as_echo_n "checking whether $RPM is available... " >&6; } | |
12227 | if tmp=$($RPM --version 2>/dev/null); then : | |
12228 | ||
12229 | RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12230 | HAVE_RPM=yes | |
12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5 | |
12232 | $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; } | |
12233 | ||
12234 | else | |
12235 | ||
12236 | HAVE_RPM=no | |
12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5 | |
12238 | $as_echo "$HAVE_RPM" >&6; } | |
12239 | ||
12240 | fi | |
12241 | ||
12242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5 | |
12243 | $as_echo_n "checking whether $RPMBUILD is available... " >&6; } | |
12244 | if tmp=$($RPMBUILD --version 2>/dev/null); then : | |
12245 | ||
12246 | RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12247 | HAVE_RPMBUILD=yes | |
12248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5 | |
12249 | $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; } | |
12250 | ||
12251 | else | |
12252 | ||
12253 | HAVE_RPMBUILD=no | |
12254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5 | |
12255 | $as_echo "$HAVE_RPMBUILD" >&6; } | |
12256 | ||
12257 | fi | |
12258 | ||
12259 | RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"' | |
12260 | RPM_DEFINE_UTIL= | |
12261 | RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"' | |
12262 | RPM_DEFINE_DKMS= | |
12263 | ||
12264 | SRPM_DEFINE_COMMON='--define "build_src_rpm 1"' | |
12265 | SRPM_DEFINE_UTIL= | |
12266 | SRPM_DEFINE_KMOD= | |
12267 | SRPM_DEFINE_DKMS= | |
12268 | ||
12269 | RPM_SPEC_DIR="rpm/generic" | |
12270 | ||
12271 | # Check whether --with-spec was given. | |
12272 | if test "${with_spec+set}" = set; then : | |
12273 | withval=$with_spec; RPM_SPEC_DIR="rpm/$withval" | |
12274 | fi | |
12275 | ||
12276 | ||
12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5 | |
12278 | $as_echo_n "checking whether spec files are available... " >&6; } | |
12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5 | |
12280 | $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; } | |
12281 | ||
12282 | ||
12283 | ||
12284 | ||
12285 | ||
12286 | ||
12287 | ||
12288 | ||
12289 | ||
12290 | ||
12291 | ||
12292 | ||
12293 | ||
12294 | ||
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | DPKG=dpkg | |
12302 | DPKGBUILD=dpkg-buildpackage | |
12303 | ||
12304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5 | |
12305 | $as_echo_n "checking whether $DPKG is available... " >&6; } | |
12306 | if tmp=$($DPKG --version 2>/dev/null); then : | |
12307 | ||
12308 | DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }') | |
12309 | HAVE_DPKG=yes | |
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5 | |
12311 | $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; } | |
12312 | ||
12313 | else | |
12314 | ||
12315 | HAVE_DPKG=no | |
12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5 | |
12317 | $as_echo "$HAVE_DPKG" >&6; } | |
12318 | ||
12319 | fi | |
12320 | ||
12321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5 | |
12322 | $as_echo_n "checking whether $DPKGBUILD is available... " >&6; } | |
12323 | if tmp=$($DPKGBUILD --version 2>/dev/null); then : | |
12324 | ||
12325 | DPKGBUILD_VERSION=$(echo $tmp | \ | |
12326 | $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.') | |
12327 | HAVE_DPKGBUILD=yes | |
12328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5 | |
12329 | $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; } | |
12330 | ||
12331 | else | |
12332 | ||
12333 | HAVE_DPKGBUILD=no | |
12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5 | |
12335 | $as_echo "$HAVE_DPKGBUILD" >&6; } | |
12336 | ||
12337 | fi | |
12338 | ||
12339 | ||
12340 | ||
12341 | ||
12342 | ||
12343 | ||
12344 | ||
12345 | ||
12346 | ||
12347 | ||
12348 | ALIEN=alien | |
12349 | ||
12350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5 | |
12351 | $as_echo_n "checking whether $ALIEN is available... " >&6; } | |
12352 | if tmp=$($ALIEN --version 2>/dev/null); then : | |
12353 | ||
12354 | ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }') | |
12355 | HAVE_ALIEN=yes | |
12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5 | |
12357 | $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; } | |
12358 | ||
12359 | else | |
12360 | ||
12361 | HAVE_ALIEN=no | |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5 | |
12363 | $as_echo "$HAVE_ALIEN" >&6; } | |
12364 | ||
12365 | fi | |
12366 | ||
12367 | ||
12368 | ||
12369 | ||
12370 | ||
12371 | ||
12372 | ||
12373 | SPL_CONFIG=all | |
12374 | ||
12375 | # Check whether --with-config was given. | |
12376 | if test "${with_config+set}" = set; then : | |
12377 | withval=$with_config; SPL_CONFIG="$withval" | |
12378 | fi | |
12379 | ||
12380 | # Check whether --enable-linux-builtin was given. | |
12381 | if test "${enable_linux_builtin+set}" = set; then : | |
12382 | enableval=$enable_linux_builtin; | |
12383 | else | |
12384 | enable_linux_builtin=no | |
12385 | fi | |
12386 | ||
12387 | ||
12388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl config" >&5 | |
12389 | $as_echo_n "checking spl config... " >&6; } | |
12390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_CONFIG" >&5 | |
12391 | $as_echo "$SPL_CONFIG" >&6; }; | |
12392 | ||
12393 | ||
12394 | case "$SPL_CONFIG" in | |
12395 | kernel) | |
12396 | ||
12397 | ||
12398 | # Check whether --with-linux was given. | |
12399 | if test "${with_linux+set}" = set; then : | |
12400 | withval=$with_linux; kernelsrc="$withval" | |
12401 | fi | |
12402 | ||
12403 | ||
12404 | ||
12405 | # Check whether --with-linux-obj was given. | |
12406 | if test "${with_linux_obj+set}" = set; then : | |
12407 | withval=$with_linux_obj; kernelbuild="$withval" | |
12408 | fi | |
12409 | ||
12410 | ||
12411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
12412 | $as_echo_n "checking kernel source directory... " >&6; } | |
12413 | if test -z "$kernelsrc"; then | |
12414 | if test -e "/lib/modules/$(uname -r)/source"; then | |
12415 | headersdir="/lib/modules/$(uname -r)/source" | |
12416 | sourcelink=$(readlink -f "$headersdir") | |
12417 | elif test -e "/lib/modules/$(uname -r)/build"; then | |
12418 | headersdir="/lib/modules/$(uname -r)/build" | |
12419 | sourcelink=$(readlink -f "$headersdir") | |
12420 | else | |
12421 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
12422 | /usr/src/linux-* \ | |
12423 | 2>/dev/null | grep -v obj | tail -1) | |
12424 | fi | |
12425 | ||
12426 | if test -n "$sourcelink" && test -e ${sourcelink}; then | |
12427 | kernelsrc=`readlink -f ${sourcelink}` | |
12428 | else | |
12429 | kernelsrc="Not found" | |
12430 | fi | |
12431 | else | |
12432 | if test "$kernelsrc" = "NONE"; then | |
12433 | kernsrcver=NONE | |
12434 | fi | |
86e3c28a | 12435 | withlinux=yes |
70e083d2 TG |
12436 | fi |
12437 | ||
12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
12439 | $as_echo "$kernelsrc" >&6; } | |
12440 | if test ! -d "$kernelsrc"; then | |
12441 | as_fn_error $? " | |
12442 | *** Please make sure the kernel devel package for your distribution | |
12443 | *** is installed and then try again. If that fails, you can specify the | |
12444 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
12445 | fi | |
12446 | ||
12447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
12448 | $as_echo_n "checking kernel build directory... " >&6; } | |
12449 | if test -z "$kernelbuild"; then | |
86e3c28a | 12450 | if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then |
70e083d2 TG |
12451 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` |
12452 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then | |
12453 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
12454 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then | |
12455 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
12456 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then | |
12457 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
12458 | else | |
12459 | kernelbuild=${kernelsrc} | |
12460 | fi | |
12461 | fi | |
12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
12463 | $as_echo "$kernelbuild" >&6; } | |
12464 | ||
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
12466 | $as_echo_n "checking kernel source version... " >&6; } | |
12467 | utsrelease1=$kernelbuild/include/linux/version.h | |
12468 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
12469 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
12470 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then | |
12471 | utsrelease=linux/version.h | |
12472 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then | |
12473 | utsrelease=linux/utsrelease.h | |
12474 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then | |
12475 | utsrelease=generated/utsrelease.h | |
12476 | fi | |
12477 | ||
12478 | if test "$utsrelease"; then | |
12479 | kernsrcver=`(echo "#include <$utsrelease>"; | |
12480 | echo "kernsrcver=UTS_RELEASE") | | |
12481 | cpp -I $kernelbuild/include | | |
12482 | grep "^kernsrcver=" | cut -d \" -f 2` | |
12483 | ||
12484 | if test -z "$kernsrcver"; then | |
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
12486 | $as_echo "Not found" >&6; } | |
12487 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
12488 | fi | |
12489 | else | |
12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
12491 | $as_echo "Not found" >&6; } | |
12492 | if test "x$enable_linux_builtin" != xyes; then | |
12493 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
12494 | else | |
12495 | as_fn_error $? " | |
12496 | *** Cannot find UTS_RELEASE definition. | |
12497 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
12498 | fi | |
12499 | fi | |
12500 | ||
12501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
12502 | $as_echo "$kernsrcver" >&6; } | |
12503 | ||
12504 | LINUX=${kernelsrc} | |
12505 | LINUX_OBJ=${kernelbuild} | |
12506 | LINUX_VERSION=${kernsrcver} | |
12507 | ||
12508 | ||
12509 | ||
12510 | ||
12511 | ||
12512 | ||
12513 | modpost=$LINUX/scripts/Makefile.modpost | |
12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
12515 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
12516 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then | |
12517 | if grep -q Modules.symvers $modpost; then | |
12518 | LINUX_SYMBOLS=Modules.symvers | |
12519 | else | |
12520 | LINUX_SYMBOLS=Module.symvers | |
12521 | fi | |
12522 | ||
12523 | if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then | |
12524 | as_fn_error $? " | |
12525 | *** Please make sure the kernel devel package for your distribution | |
12526 | *** is installed. If you are building with a custom kernel, make sure the | |
12527 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
12528 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
12529 | fi | |
12530 | else | |
12531 | LINUX_SYMBOLS=NONE | |
12532 | fi | |
12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
12534 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
12535 | ||
12536 | ||
12537 | ||
12538 | ||
12539 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
12540 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
12541 | fi | |
12542 | ||
12543 | ||
12544 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes" | |
12545 | ||
12546 | ||
12547 | ||
12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5 | |
12549 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
12550 | # Check whether --enable-debug was given. | |
12551 | if test "${enable_debug+set}" = set; then : | |
12552 | enableval=$enable_debug; | |
12553 | else | |
12554 | enable_debug=no | |
12555 | fi | |
12556 | ||
12557 | ||
12558 | if test "x$enable_debug" = xyes; then : | |
12559 | ||
12560 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" | |
12561 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
12562 | DEBUG_SPL="_with_debug" | |
12563 | ||
12564 | else | |
12565 | ||
12566 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" | |
12567 | DEBUG_CFLAGS="-DNDEBUG" | |
12568 | DEBUG_SPL="_without_debug" | |
12569 | ||
12570 | fi | |
12571 | ||
12572 | ||
12573 | ||
12574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 | |
12575 | $as_echo "$enable_debug" >&6; } | |
12576 | ||
12577 | ||
12578 | # Check whether --enable-debug-kmem was given. | |
12579 | if test "${enable_debug_kmem+set}" = set; then : | |
12580 | enableval=$enable_debug_kmem; | |
12581 | else | |
12582 | enable_debug_kmem=no | |
12583 | fi | |
12584 | ||
12585 | ||
12586 | if test "x$enable_debug_kmem" = xyes; then : | |
12587 | ||
12588 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" | |
12589 | DEBUG_KMEM="_with_debug_kmem" | |
12590 | ||
12591 | $as_echo "#define DEBUG_KMEM 1" >>confdefs.h | |
12592 | ||
12593 | ||
12594 | else | |
12595 | ||
12596 | DEBUG_KMEM="_without_debug_kmem" | |
12597 | ||
12598 | fi | |
12599 | ||
12600 | ||
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5 | |
12602 | $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; } | |
12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5 | |
12604 | $as_echo "$enable_debug_kmem" >&6; } | |
12605 | ||
12606 | ||
12607 | # Check whether --enable-debug-kmem-tracking was given. | |
12608 | if test "${enable_debug_kmem_tracking+set}" = set; then : | |
12609 | enableval=$enable_debug_kmem_tracking; | |
12610 | else | |
12611 | enable_debug_kmem_tracking=no | |
12612 | fi | |
12613 | ||
12614 | ||
12615 | if test "x$enable_debug_kmem_tracking" = xyes; then : | |
12616 | ||
12617 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING" | |
12618 | DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking" | |
12619 | ||
12620 | $as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h | |
12621 | ||
12622 | ||
12623 | else | |
12624 | ||
12625 | DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking" | |
12626 | ||
12627 | fi | |
12628 | ||
12629 | ||
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5 | |
12631 | $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; } | |
12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5 | |
12633 | $as_echo "$enable_debug_kmem_tracking" >&6; } | |
12634 | ||
12635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
12636 | $as_echo_n "checking whether modules can be built... " >&6; } | |
12637 | ||
12638 | ||
12639 | cat confdefs.h - <<_ACEOF >conftest.c | |
12640 | ||
12641 | ||
12642 | int | |
12643 | main (void) | |
12644 | { | |
12645 | ||
12646 | ; | |
12647 | return 0; | |
12648 | } | |
12649 | ||
12650 | _ACEOF | |
12651 | ||
12652 | ||
12653 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
12654 | echo "obj-m := conftest.o" >build/Makefile | |
12655 | modpost_flag='' | |
12656 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12657 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
12658 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12659 | (eval $ac_try) 2>&5 | |
12660 | ac_status=$? | |
12661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12662 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12663 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12664 | (eval $ac_try) 2>&5 | |
12665 | ac_status=$? | |
12666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12667 | test $ac_status = 0; }; }; then : | |
12668 | ||
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12670 | $as_echo "yes" >&6; } | |
12671 | ||
12672 | else | |
12673 | $as_echo "$as_me: failed program was:" >&5 | |
12674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12675 | ||
12676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12677 | $as_echo "no" >&6; } | |
12678 | if test "x$enable_linux_builtin" != xyes; then | |
12679 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
12680 | else | |
12681 | as_fn_error $? " | |
12682 | *** Unable to build an empty module. | |
12683 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
12684 | fi | |
12685 | ||
12686 | ||
12687 | ||
12688 | fi | |
12689 | rm -Rf build | |
12690 | ||
12691 | ||
12692 | ||
12693 | if test "x$cross_compiling" != xyes; then : | |
12694 | ||
12695 | if test "$cross_compiling" = yes; then : | |
12696 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12697 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12698 | as_fn_error $? "cannot run test program while cross compiling | |
12699 | See \`config.log' for more details" "$LINENO" 5; } | |
12700 | else | |
12701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12702 | /* end confdefs.h. */ | |
12703 | ||
12704 | ||
12705 | #include "$LINUX/include/linux/license.h" | |
12706 | ||
12707 | int | |
12708 | main () | |
12709 | { | |
12710 | ||
12711 | return !license_is_gpl_compatible( | |
12712 | "$SPL_META_LICENSE"); | |
12713 | ||
12714 | ; | |
12715 | return 0; | |
12716 | } | |
12717 | ||
12718 | _ACEOF | |
12719 | if ac_fn_c_try_run "$LINENO"; then : | |
12720 | ||
12721 | ||
12722 | $as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
12723 | ||
12724 | ||
12725 | fi | |
12726 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12727 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12728 | fi | |
12729 | ||
12730 | ||
12731 | fi | |
12732 | ||
12733 | ||
12734 | # Check whether --enable-atomic-spinlocks was given. | |
12735 | if test "${enable_atomic_spinlocks+set}" = set; then : | |
12736 | enableval=$enable_atomic_spinlocks; | |
12737 | else | |
12738 | enable_atomic_spinlocks=check | |
12739 | fi | |
12740 | ||
12741 | ||
12742 | ||
12743 | ||
12744 | cat confdefs.h - <<_ACEOF >conftest.c | |
12745 | ||
12746 | ||
12747 | #include <linux/fs.h> | |
12748 | ||
12749 | int | |
12750 | main (void) | |
12751 | { | |
12752 | ||
12753 | atomic64_t *ptr __attribute__ ((unused)); | |
12754 | ||
12755 | ; | |
12756 | return 0; | |
12757 | } | |
12758 | ||
12759 | _ACEOF | |
12760 | ||
12761 | ||
12762 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
12763 | echo "obj-m := conftest.o" >build/Makefile | |
12764 | modpost_flag='' | |
12765 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12766 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
12767 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12768 | (eval $ac_try) 2>&5 | |
12769 | ac_status=$? | |
12770 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12771 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12772 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12773 | (eval $ac_try) 2>&5 | |
12774 | ac_status=$? | |
12775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12776 | test $ac_status = 0; }; }; then : | |
12777 | ||
12778 | have_atomic64_t=yes | |
12779 | ||
12780 | $as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h | |
12781 | ||
12782 | ||
12783 | else | |
12784 | $as_echo "$as_me: failed program was:" >&5 | |
12785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12786 | ||
12787 | have_atomic64_t=no | |
12788 | ||
12789 | ||
12790 | ||
12791 | fi | |
12792 | rm -Rf build | |
12793 | ||
12794 | ||
12795 | ||
12796 | if test "x$enable_atomic_spinlocks" = xcheck; then : | |
12797 | ||
12798 | if test "x$have_atomic64_t" = xyes; then : | |
12799 | ||
12800 | enable_atomic_spinlocks=no | |
12801 | ||
12802 | else | |
12803 | ||
12804 | enable_atomic_spinlocks=yes | |
12805 | ||
12806 | fi | |
12807 | ||
12808 | fi | |
12809 | ||
12810 | if test "x$enable_atomic_spinlocks" = xyes; then : | |
12811 | ||
12812 | ||
12813 | $as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h | |
12814 | ||
12815 | ||
12816 | else | |
12817 | ||
12818 | if test "x$have_atomic64_t" = xno; then : | |
12819 | ||
12820 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12821 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12822 | as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable | |
12823 | See \`config.log' for more details" "$LINENO" 5; } | |
12824 | ||
12825 | fi | |
12826 | ||
12827 | fi | |
12828 | ||
12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5 | |
12830 | $as_echo_n "checking whether atomic types use spinlocks... " >&6; } | |
12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5 | |
12832 | $as_echo "$enable_atomic_spinlocks" >&6; } | |
12833 | ||
12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5 | |
12835 | $as_echo_n "checking whether kernel defines atomic64_t... " >&6; } | |
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5 | |
12837 | $as_echo "$have_atomic64_t" >&6; } | |
12838 | ||
12839 | ||
12840 | tmp_flags="$EXTRA_KCFLAGS" | |
12841 | EXTRA_KCFLAGS="-Werror" | |
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5 | |
12843 | $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; } | |
12844 | ||
12845 | ||
12846 | cat confdefs.h - <<_ACEOF >conftest.c | |
12847 | ||
12848 | ||
12849 | #include <linux/mm.h> | |
12850 | ||
12851 | int shrinker_cb(int nr_to_scan, gfp_t gfp_mask); | |
12852 | ||
12853 | int | |
12854 | main (void) | |
12855 | { | |
12856 | ||
12857 | struct shrinker cache_shrinker = { | |
12858 | .shrink = shrinker_cb, | |
12859 | .seeks = DEFAULT_SEEKS, | |
12860 | }; | |
12861 | register_shrinker(&cache_shrinker); | |
12862 | ||
12863 | ; | |
12864 | return 0; | |
12865 | } | |
12866 | ||
12867 | _ACEOF | |
12868 | ||
12869 | ||
12870 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
12871 | echo "obj-m := conftest.o" >build/Makefile | |
12872 | modpost_flag='' | |
12873 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12874 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
12875 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12876 | (eval $ac_try) 2>&5 | |
12877 | ac_status=$? | |
12878 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12879 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12880 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12881 | (eval $ac_try) 2>&5 | |
12882 | ac_status=$? | |
12883 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12884 | test $ac_status = 0; }; }; then : | |
12885 | ||
12886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12887 | $as_echo "yes" >&6; } | |
12888 | ||
12889 | $as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h | |
12890 | ||
12891 | ||
12892 | else | |
12893 | $as_echo "$as_me: failed program was:" >&5 | |
12894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12895 | ||
12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12897 | $as_echo "no" >&6; } | |
12898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5 | |
12899 | $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; } | |
12900 | ||
12901 | ||
12902 | cat confdefs.h - <<_ACEOF >conftest.c | |
12903 | ||
12904 | ||
12905 | #include <linux/mm.h> | |
12906 | ||
12907 | int shrinker_cb(struct shrinker *, int nr_to_scan, | |
12908 | gfp_t gfp_mask); | |
12909 | ||
12910 | int | |
12911 | main (void) | |
12912 | { | |
12913 | ||
12914 | struct shrinker cache_shrinker = { | |
12915 | .shrink = shrinker_cb, | |
12916 | .seeks = DEFAULT_SEEKS, | |
12917 | }; | |
12918 | register_shrinker(&cache_shrinker); | |
12919 | ||
12920 | ; | |
12921 | return 0; | |
12922 | } | |
12923 | ||
12924 | _ACEOF | |
12925 | ||
12926 | ||
12927 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
12928 | echo "obj-m := conftest.o" >build/Makefile | |
12929 | modpost_flag='' | |
12930 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12931 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
12932 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12933 | (eval $ac_try) 2>&5 | |
12934 | ac_status=$? | |
12935 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12936 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12937 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12938 | (eval $ac_try) 2>&5 | |
12939 | ac_status=$? | |
12940 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12941 | test $ac_status = 0; }; }; then : | |
12942 | ||
12943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12944 | $as_echo "yes" >&6; } | |
12945 | ||
12946 | $as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h | |
12947 | ||
12948 | ||
12949 | else | |
12950 | $as_echo "$as_me: failed program was:" >&5 | |
12951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12952 | ||
12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12954 | $as_echo "no" >&6; } | |
12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5 | |
12956 | $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; } | |
12957 | ||
12958 | ||
12959 | cat confdefs.h - <<_ACEOF >conftest.c | |
12960 | ||
12961 | ||
12962 | #include <linux/mm.h> | |
12963 | ||
12964 | int shrinker_cb(struct shrinker *, | |
12965 | struct shrink_control *sc); | |
12966 | ||
12967 | int | |
12968 | main (void) | |
12969 | { | |
12970 | ||
12971 | struct shrinker cache_shrinker = { | |
12972 | .shrink = shrinker_cb, | |
12973 | .seeks = DEFAULT_SEEKS, | |
12974 | }; | |
12975 | register_shrinker(&cache_shrinker); | |
12976 | ||
12977 | ; | |
12978 | return 0; | |
12979 | } | |
12980 | ||
12981 | _ACEOF | |
12982 | ||
12983 | ||
12984 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
12985 | echo "obj-m := conftest.o" >build/Makefile | |
12986 | modpost_flag='' | |
12987 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12988 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
12989 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12990 | (eval $ac_try) 2>&5 | |
12991 | ac_status=$? | |
12992 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12993 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12994 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12995 | (eval $ac_try) 2>&5 | |
12996 | ac_status=$? | |
12997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12998 | test $ac_status = 0; }; }; then : | |
12999 | ||
13000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13001 | $as_echo "yes" >&6; } | |
13002 | ||
13003 | $as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h | |
13004 | ||
13005 | ||
13006 | else | |
13007 | $as_echo "$as_me: failed program was:" >&5 | |
13008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13009 | ||
13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13011 | $as_echo "no" >&6; } | |
13012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5 | |
13013 | $as_echo_n "checking whether ->count_objects callback exists... " >&6; } | |
13014 | ||
13015 | ||
13016 | cat confdefs.h - <<_ACEOF >conftest.c | |
13017 | ||
13018 | ||
13019 | #include <linux/mm.h> | |
13020 | ||
13021 | unsigned long shrinker_cb( | |
13022 | struct shrinker *, | |
13023 | struct shrink_control *sc); | |
13024 | ||
13025 | int | |
13026 | main (void) | |
13027 | { | |
13028 | ||
13029 | struct shrinker cache_shrinker = { | |
13030 | .count_objects = shrinker_cb, | |
13031 | .scan_objects = shrinker_cb, | |
13032 | .seeks = DEFAULT_SEEKS, | |
13033 | }; | |
13034 | register_shrinker(&cache_shrinker); | |
13035 | ||
13036 | ; | |
13037 | return 0; | |
13038 | } | |
13039 | ||
13040 | _ACEOF | |
13041 | ||
13042 | ||
13043 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13044 | echo "obj-m := conftest.o" >build/Makefile | |
13045 | modpost_flag='' | |
13046 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13047 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13048 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13049 | (eval $ac_try) 2>&5 | |
13050 | ac_status=$? | |
13051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13052 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13053 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13054 | (eval $ac_try) 2>&5 | |
13055 | ac_status=$? | |
13056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13057 | test $ac_status = 0; }; }; then : | |
13058 | ||
13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13060 | $as_echo "yes" >&6; } | |
13061 | ||
13062 | $as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h | |
13063 | ||
13064 | ||
13065 | else | |
13066 | $as_echo "$as_me: failed program was:" >&5 | |
13067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13068 | ||
13069 | as_fn_error $? "error" "$LINENO" 5 | |
13070 | ||
13071 | ||
13072 | ||
13073 | fi | |
13074 | rm -Rf build | |
13075 | ||
13076 | ||
13077 | ||
13078 | ||
13079 | ||
13080 | fi | |
13081 | rm -Rf build | |
13082 | ||
13083 | ||
13084 | ||
13085 | ||
13086 | ||
13087 | fi | |
13088 | rm -Rf build | |
13089 | ||
13090 | ||
13091 | ||
13092 | ||
13093 | ||
13094 | fi | |
13095 | rm -Rf build | |
13096 | ||
13097 | ||
13098 | EXTRA_KCFLAGS="$tmp_flags" | |
13099 | ||
13100 | ||
13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5 | |
13102 | $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; } | |
13103 | ||
13104 | ||
13105 | cat confdefs.h - <<_ACEOF >conftest.c | |
13106 | ||
13107 | ||
13108 | #include <linux/sysctl.h> | |
13109 | ||
13110 | int | |
13111 | main (void) | |
13112 | { | |
13113 | ||
13114 | struct ctl_table ctl __attribute__ ((unused)); | |
13115 | ctl.ctl_name = 0; | |
13116 | ||
13117 | ; | |
13118 | return 0; | |
13119 | } | |
13120 | ||
13121 | _ACEOF | |
13122 | ||
13123 | ||
13124 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13125 | echo "obj-m := conftest.o" >build/Makefile | |
13126 | modpost_flag='' | |
13127 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13128 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13129 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13130 | (eval $ac_try) 2>&5 | |
13131 | ac_status=$? | |
13132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13133 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13134 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13135 | (eval $ac_try) 2>&5 | |
13136 | ac_status=$? | |
13137 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13138 | test $ac_status = 0; }; }; then : | |
13139 | ||
13140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13141 | $as_echo "yes" >&6; } | |
13142 | ||
13143 | $as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h | |
13144 | ||
13145 | ||
13146 | else | |
13147 | $as_echo "$as_me: failed program was:" >&5 | |
13148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13149 | ||
13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13151 | $as_echo "no" >&6; } | |
13152 | ||
13153 | ||
13154 | ||
13155 | fi | |
13156 | rm -Rf build | |
13157 | ||
13158 | ||
13159 | ||
13160 | ||
13161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5 | |
13162 | $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; } | |
13163 | ||
13164 | ||
13165 | cat confdefs.h - <<_ACEOF >conftest.c | |
13166 | ||
13167 | ||
13168 | #if defined(CONFIG_TRIM_UNUSED_KSYMS) | |
13169 | #error CONFIG_TRIM_UNUSED_KSYMS not defined | |
13170 | #endif | |
13171 | ||
13172 | int | |
13173 | main (void) | |
13174 | { | |
13175 | ||
13176 | ; | |
13177 | return 0; | |
13178 | } | |
13179 | ||
13180 | _ACEOF | |
13181 | ||
13182 | ||
13183 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13184 | echo "obj-m := conftest.o" >build/Makefile | |
13185 | modpost_flag='' | |
13186 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13187 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13188 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13189 | (eval $ac_try) 2>&5 | |
13190 | ac_status=$? | |
13191 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13192 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13193 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13194 | (eval $ac_try) 2>&5 | |
13195 | ac_status=$? | |
13196 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13197 | test $ac_status = 0; }; }; then : | |
13198 | ||
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13200 | $as_echo "yes" >&6; } | |
13201 | ||
13202 | else | |
13203 | $as_echo "$as_me: failed program was:" >&5 | |
13204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13205 | ||
13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13207 | $as_echo "no" >&6; } | |
13208 | as_fn_error $? " | |
13209 | *** This kernel has unused symbols trimming enabled, please disable. | |
13210 | *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." "$LINENO" 5 | |
13211 | ||
13212 | ||
13213 | ||
13214 | fi | |
13215 | rm -Rf build | |
13216 | ||
13217 | ||
13218 | ||
13219 | ||
13220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5 | |
13221 | $as_echo_n "checking whether PDE_DATA() is available... " >&6; } | |
13222 | ||
13223 | ||
13224 | ||
13225 | cat confdefs.h - <<_ACEOF >conftest.c | |
13226 | ||
13227 | ||
13228 | #include <linux/proc_fs.h> | |
13229 | ||
13230 | int | |
13231 | main (void) | |
13232 | { | |
13233 | ||
13234 | PDE_DATA(NULL); | |
13235 | ||
13236 | ; | |
13237 | return 0; | |
13238 | } | |
13239 | ||
13240 | _ACEOF | |
13241 | ||
13242 | ||
13243 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13244 | echo "obj-m := conftest.o" >build/Makefile | |
13245 | modpost_flag='' | |
13246 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13247 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13248 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13249 | (eval $ac_try) 2>&5 | |
13250 | ac_status=$? | |
13251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13252 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13253 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13254 | (eval $ac_try) 2>&5 | |
13255 | ac_status=$? | |
13256 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13257 | test $ac_status = 0; }; }; then : | |
13258 | rc=0 | |
13259 | else | |
13260 | $as_echo "$as_me: failed program was:" >&5 | |
13261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13262 | rc=1 | |
13263 | ||
13264 | ||
13265 | fi | |
13266 | rm -Rf build | |
13267 | ||
13268 | ||
13269 | if test $rc -ne 0; then : | |
13270 | ||
13271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13272 | $as_echo "no" >&6; } | |
13273 | ||
13274 | else | |
13275 | if test "x$enable_linux_builtin" != xyes; then | |
13276 | ||
13277 | grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \ | |
13278 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13279 | rc=$? | |
13280 | if test $rc -ne 0; then | |
13281 | export=0 | |
13282 | for file in ; do | |
13283 | grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \ | |
13284 | "$LINUX_OBJ/$file" 2>/dev/null | |
13285 | rc=$? | |
13286 | if test $rc -eq 0; then | |
13287 | export=1 | |
13288 | break; | |
13289 | fi | |
13290 | done | |
13291 | if test $export -eq 0; then : | |
13292 | rc=1 | |
13293 | else : | |
13294 | rc=0 | |
13295 | fi | |
13296 | else : | |
13297 | rc=0 | |
13298 | fi | |
13299 | ||
13300 | fi | |
13301 | if test $rc -ne 0; then : | |
13302 | ||
13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13304 | $as_echo "no" >&6; } | |
13305 | ||
13306 | else : | |
13307 | ||
13308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13309 | $as_echo "yes" >&6; } | |
13310 | ||
13311 | $as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h | |
13312 | ||
13313 | ||
13314 | fi | |
13315 | fi | |
13316 | ||
13317 | ||
13318 | tmp_flags="$EXTRA_KCFLAGS" | |
13319 | EXTRA_KCFLAGS="-Werror" | |
13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5 | |
13321 | $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; } | |
13322 | ||
13323 | ||
13324 | cat confdefs.h - <<_ACEOF >conftest.c | |
13325 | ||
13326 | ||
13327 | #include <linux/spinlock.h> | |
13328 | #include <linux/fs_struct.h> | |
13329 | #include <linux/path.h> | |
13330 | void (*const set_fs_pwd_func) | |
13331 | (struct fs_struct *, const struct path *) | |
13332 | = set_fs_pwd; | |
13333 | ||
13334 | int | |
13335 | main (void) | |
13336 | { | |
13337 | ||
13338 | return 0; | |
13339 | ||
13340 | ; | |
13341 | return 0; | |
13342 | } | |
13343 | ||
13344 | _ACEOF | |
13345 | ||
13346 | ||
13347 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13348 | echo "obj-m := conftest.o" >build/Makefile | |
13349 | modpost_flag='' | |
13350 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13351 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13352 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13353 | (eval $ac_try) 2>&5 | |
13354 | ac_status=$? | |
13355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13356 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13357 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13358 | (eval $ac_try) 2>&5 | |
13359 | ac_status=$? | |
13360 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13361 | test $ac_status = 0; }; }; then : | |
13362 | ||
13363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13364 | $as_echo "yes" >&6; } | |
13365 | ||
13366 | $as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h | |
13367 | ||
13368 | ||
13369 | else | |
13370 | $as_echo "$as_me: failed program was:" >&5 | |
13371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13372 | ||
13373 | ||
13374 | ||
13375 | cat confdefs.h - <<_ACEOF >conftest.c | |
13376 | ||
13377 | ||
13378 | #include <linux/spinlock.h> | |
13379 | #include <linux/fs_struct.h> | |
13380 | #include <linux/path.h> | |
13381 | void (*const set_fs_pwd_func) | |
13382 | (struct fs_struct *, struct path *) | |
13383 | = set_fs_pwd; | |
13384 | ||
13385 | int | |
13386 | main (void) | |
13387 | { | |
13388 | ||
13389 | return 0; | |
13390 | ||
13391 | ; | |
13392 | return 0; | |
13393 | } | |
13394 | ||
13395 | _ACEOF | |
13396 | ||
13397 | ||
13398 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13399 | echo "obj-m := conftest.o" >build/Makefile | |
13400 | modpost_flag='' | |
13401 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13402 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13403 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13404 | (eval $ac_try) 2>&5 | |
13405 | ac_status=$? | |
13406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13407 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13408 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13409 | (eval $ac_try) 2>&5 | |
13410 | ac_status=$? | |
13411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13412 | test $ac_status = 0; }; }; then : | |
13413 | ||
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13415 | $as_echo "no" >&6; } | |
13416 | ||
13417 | else | |
13418 | $as_echo "$as_me: failed program was:" >&5 | |
13419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13420 | ||
13421 | as_fn_error $? "unknown" "$LINENO" 5 | |
13422 | ||
13423 | ||
13424 | ||
13425 | fi | |
13426 | rm -Rf build | |
13427 | ||
13428 | ||
13429 | ||
13430 | ||
13431 | ||
13432 | fi | |
13433 | rm -Rf build | |
13434 | ||
13435 | ||
13436 | EXTRA_KCFLAGS="$tmp_flags" | |
13437 | ||
13438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5 | |
13439 | $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; } | |
13440 | ||
13441 | ||
13442 | cat confdefs.h - <<_ACEOF >conftest.c | |
13443 | ||
13444 | ||
13445 | #include <linux/fs.h> | |
13446 | ||
13447 | int | |
13448 | main (void) | |
13449 | { | |
13450 | ||
13451 | vfs_unlink((struct inode *) NULL, (struct dentry *) NULL); | |
13452 | ||
13453 | ; | |
13454 | return 0; | |
13455 | } | |
13456 | ||
13457 | _ACEOF | |
13458 | ||
13459 | ||
13460 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13461 | echo "obj-m := conftest.o" >build/Makefile | |
13462 | modpost_flag='' | |
13463 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13464 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13465 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13466 | (eval $ac_try) 2>&5 | |
13467 | ac_status=$? | |
13468 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13469 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13470 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13471 | (eval $ac_try) 2>&5 | |
13472 | ac_status=$? | |
13473 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13474 | test $ac_status = 0; }; }; then : | |
13475 | ||
13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13477 | $as_echo "yes" >&6; } | |
13478 | ||
13479 | $as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h | |
13480 | ||
13481 | ||
13482 | else | |
13483 | $as_echo "$as_me: failed program was:" >&5 | |
13484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13485 | ||
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13487 | $as_echo "no" >&6; } | |
13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5 | |
13489 | $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; } | |
13490 | ||
13491 | ||
13492 | cat confdefs.h - <<_ACEOF >conftest.c | |
13493 | ||
13494 | ||
13495 | #include <linux/fs.h> | |
13496 | ||
13497 | int | |
13498 | main (void) | |
13499 | { | |
13500 | ||
13501 | vfs_unlink((struct inode *) NULL, | |
13502 | (struct dentry *) NULL, | |
13503 | (struct inode **) NULL); | |
13504 | ||
13505 | ; | |
13506 | return 0; | |
13507 | } | |
13508 | ||
13509 | _ACEOF | |
13510 | ||
13511 | ||
13512 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13513 | echo "obj-m := conftest.o" >build/Makefile | |
13514 | modpost_flag='' | |
13515 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13516 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13517 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13518 | (eval $ac_try) 2>&5 | |
13519 | ac_status=$? | |
13520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13521 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13522 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13523 | (eval $ac_try) 2>&5 | |
13524 | ac_status=$? | |
13525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13526 | test $ac_status = 0; }; }; then : | |
13527 | ||
13528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13529 | $as_echo "yes" >&6; } | |
13530 | ||
13531 | $as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h | |
13532 | ||
13533 | ||
13534 | else | |
13535 | $as_echo "$as_me: failed program was:" >&5 | |
13536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13537 | ||
13538 | as_fn_error $? "no" "$LINENO" 5 | |
13539 | ||
13540 | ||
13541 | ||
13542 | fi | |
13543 | rm -Rf build | |
13544 | ||
13545 | ||
13546 | ||
13547 | ||
13548 | ||
13549 | ||
13550 | fi | |
13551 | rm -Rf build | |
13552 | ||
13553 | ||
13554 | ||
13555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5 | |
13556 | $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; } | |
13557 | ||
13558 | ||
13559 | cat confdefs.h - <<_ACEOF >conftest.c | |
13560 | ||
13561 | ||
13562 | #include <linux/fs.h> | |
13563 | ||
13564 | int | |
13565 | main (void) | |
13566 | { | |
13567 | ||
13568 | vfs_rename((struct inode *) NULL, (struct dentry *) NULL, | |
13569 | (struct inode *) NULL, (struct dentry *) NULL); | |
13570 | ||
13571 | ; | |
13572 | return 0; | |
13573 | } | |
13574 | ||
13575 | _ACEOF | |
13576 | ||
13577 | ||
13578 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13579 | echo "obj-m := conftest.o" >build/Makefile | |
13580 | modpost_flag='' | |
13581 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13582 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13583 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13584 | (eval $ac_try) 2>&5 | |
13585 | ac_status=$? | |
13586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13587 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13588 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13589 | (eval $ac_try) 2>&5 | |
13590 | ac_status=$? | |
13591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13592 | test $ac_status = 0; }; }; then : | |
13593 | ||
13594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13595 | $as_echo "yes" >&6; } | |
13596 | ||
13597 | $as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h | |
13598 | ||
13599 | ||
13600 | else | |
13601 | $as_echo "$as_me: failed program was:" >&5 | |
13602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13603 | ||
13604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13605 | $as_echo "no" >&6; } | |
13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5 | |
13607 | $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; } | |
13608 | ||
13609 | ||
13610 | cat confdefs.h - <<_ACEOF >conftest.c | |
13611 | ||
13612 | ||
13613 | #include <linux/fs.h> | |
13614 | ||
13615 | int | |
13616 | main (void) | |
13617 | { | |
13618 | ||
13619 | vfs_rename((struct inode *) NULL, | |
13620 | (struct dentry *) NULL, | |
13621 | (struct inode *) NULL, | |
13622 | (struct dentry *) NULL, | |
13623 | (struct inode **) NULL); | |
13624 | ||
13625 | ; | |
13626 | return 0; | |
13627 | } | |
13628 | ||
13629 | _ACEOF | |
13630 | ||
13631 | ||
13632 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13633 | echo "obj-m := conftest.o" >build/Makefile | |
13634 | modpost_flag='' | |
13635 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13636 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13637 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13638 | (eval $ac_try) 2>&5 | |
13639 | ac_status=$? | |
13640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13641 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13642 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13643 | (eval $ac_try) 2>&5 | |
13644 | ac_status=$? | |
13645 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13646 | test $ac_status = 0; }; }; then : | |
13647 | ||
13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13649 | $as_echo "yes" >&6; } | |
13650 | ||
13651 | $as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h | |
13652 | ||
13653 | ||
13654 | else | |
13655 | $as_echo "$as_me: failed program was:" >&5 | |
13656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13657 | ||
13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13659 | $as_echo "no" >&6; } | |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5 | |
13661 | $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; } | |
13662 | ||
13663 | ||
13664 | cat confdefs.h - <<_ACEOF >conftest.c | |
13665 | ||
13666 | ||
13667 | #include <linux/fs.h> | |
13668 | ||
13669 | int | |
13670 | main (void) | |
13671 | { | |
13672 | ||
13673 | vfs_rename((struct inode *) NULL, | |
13674 | (struct dentry *) NULL, | |
13675 | (struct inode *) NULL, | |
13676 | (struct dentry *) NULL, | |
13677 | (struct inode **) NULL, | |
13678 | (unsigned int) 0); | |
13679 | ||
13680 | ; | |
13681 | return 0; | |
13682 | } | |
13683 | ||
13684 | _ACEOF | |
13685 | ||
13686 | ||
13687 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13688 | echo "obj-m := conftest.o" >build/Makefile | |
13689 | modpost_flag='' | |
13690 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13691 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13692 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13693 | (eval $ac_try) 2>&5 | |
13694 | ac_status=$? | |
13695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13696 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13697 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13698 | (eval $ac_try) 2>&5 | |
13699 | ac_status=$? | |
13700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13701 | test $ac_status = 0; }; }; then : | |
13702 | ||
13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13704 | $as_echo "yes" >&6; } | |
13705 | ||
13706 | $as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h | |
13707 | ||
13708 | ||
13709 | else | |
13710 | $as_echo "$as_me: failed program was:" >&5 | |
13711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13712 | ||
13713 | as_fn_error $? "no" "$LINENO" 5 | |
13714 | ||
13715 | ||
13716 | ||
13717 | fi | |
13718 | rm -Rf build | |
13719 | ||
13720 | ||
13721 | ||
13722 | ||
13723 | ||
13724 | fi | |
13725 | rm -Rf build | |
13726 | ||
13727 | ||
13728 | ||
13729 | ||
13730 | ||
13731 | fi | |
13732 | rm -Rf build | |
13733 | ||
13734 | ||
13735 | ||
13736 | ||
13737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5 | |
13738 | $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; } | |
13739 | ||
13740 | ||
13741 | cat confdefs.h - <<_ACEOF >conftest.c | |
13742 | ||
13743 | ||
13744 | #include <linux/fs.h> | |
13745 | ||
13746 | int | |
13747 | main (void) | |
13748 | { | |
13749 | ||
13750 | vfs_fsync(NULL, 0); | |
13751 | ||
13752 | ; | |
13753 | return 0; | |
13754 | } | |
13755 | ||
13756 | _ACEOF | |
13757 | ||
13758 | ||
13759 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13760 | echo "obj-m := conftest.o" >build/Makefile | |
13761 | modpost_flag='' | |
13762 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13763 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13764 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13765 | (eval $ac_try) 2>&5 | |
13766 | ac_status=$? | |
13767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13768 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13769 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13770 | (eval $ac_try) 2>&5 | |
13771 | ac_status=$? | |
13772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13773 | test $ac_status = 0; }; }; then : | |
13774 | ||
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13776 | $as_echo "yes" >&6; } | |
13777 | ||
13778 | $as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h | |
13779 | ||
13780 | ||
13781 | else | |
13782 | $as_echo "$as_me: failed program was:" >&5 | |
13783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13784 | ||
13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13786 | $as_echo "no" >&6; } | |
13787 | ||
13788 | ||
13789 | ||
13790 | fi | |
13791 | rm -Rf build | |
13792 | ||
13793 | ||
13794 | ||
13795 | ||
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5 | |
13797 | $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; } | |
13798 | ||
13799 | ||
13800 | cat confdefs.h - <<_ACEOF >conftest.c | |
13801 | ||
13802 | ||
13803 | #include <linux/fs.h> | |
13804 | ||
13805 | int | |
13806 | main (void) | |
13807 | { | |
13808 | ||
13809 | struct inode_operations ops; | |
13810 | ops.truncate_range = NULL; | |
13811 | ||
13812 | ; | |
13813 | return 0; | |
13814 | } | |
13815 | ||
13816 | _ACEOF | |
13817 | ||
13818 | ||
13819 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13820 | echo "obj-m := conftest.o" >build/Makefile | |
13821 | modpost_flag='' | |
13822 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13823 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13824 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13825 | (eval $ac_try) 2>&5 | |
13826 | ac_status=$? | |
13827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13828 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13829 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13830 | (eval $ac_try) 2>&5 | |
13831 | ac_status=$? | |
13832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13833 | test $ac_status = 0; }; }; then : | |
13834 | ||
13835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13836 | $as_echo "yes" >&6; } | |
13837 | ||
13838 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h | |
13839 | ||
13840 | ||
13841 | else | |
13842 | $as_echo "$as_me: failed program was:" >&5 | |
13843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13844 | ||
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13846 | $as_echo "no" >&6; } | |
13847 | ||
13848 | ||
13849 | ||
13850 | fi | |
13851 | rm -Rf build | |
13852 | ||
13853 | ||
13854 | ||
13855 | ||
13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5 | |
13857 | $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; } | |
13858 | tmp_flags="$EXTRA_KCFLAGS" | |
13859 | EXTRA_KCFLAGS="-Werror" | |
13860 | ||
13861 | ||
13862 | cat confdefs.h - <<_ACEOF >conftest.c | |
13863 | ||
13864 | ||
13865 | #include <linux/sched.h> | |
13866 | #include <linux/fs_struct.h> | |
13867 | ||
13868 | int | |
13869 | main (void) | |
13870 | { | |
13871 | ||
13872 | static struct fs_struct fs; | |
13873 | spin_lock_init(&fs.lock); | |
13874 | ||
13875 | ; | |
13876 | return 0; | |
13877 | } | |
13878 | ||
13879 | _ACEOF | |
13880 | ||
13881 | ||
13882 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13883 | echo "obj-m := conftest.o" >build/Makefile | |
13884 | modpost_flag='' | |
13885 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13886 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13887 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13888 | (eval $ac_try) 2>&5 | |
13889 | ac_status=$? | |
13890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13891 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13892 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13893 | (eval $ac_try) 2>&5 | |
13894 | ac_status=$? | |
13895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13896 | test $ac_status = 0; }; }; then : | |
13897 | ||
13898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13899 | $as_echo "yes" >&6; } | |
13900 | ||
13901 | $as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h | |
13902 | ||
13903 | ||
13904 | else | |
13905 | $as_echo "$as_me: failed program was:" >&5 | |
13906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13907 | ||
13908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13909 | $as_echo "no" >&6; } | |
13910 | ||
13911 | ||
13912 | ||
13913 | fi | |
13914 | rm -Rf build | |
13915 | ||
13916 | ||
13917 | EXTRA_KCFLAGS="$tmp_flags" | |
13918 | ||
13919 | ||
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5 | |
13921 | $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; } | |
13922 | ||
13923 | ||
13924 | cat confdefs.h - <<_ACEOF >conftest.c | |
13925 | ||
13926 | ||
13927 | #include <linux/uidgid.h> | |
13928 | ||
13929 | int | |
13930 | main (void) | |
13931 | { | |
13932 | ||
13933 | kuid_t userid = KUIDT_INIT(0); | |
13934 | kgid_t groupid = KGIDT_INIT(0); | |
13935 | ||
13936 | ; | |
13937 | return 0; | |
13938 | } | |
13939 | ||
13940 | _ACEOF | |
13941 | ||
13942 | ||
13943 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13944 | echo "obj-m := conftest.o" >build/Makefile | |
13945 | modpost_flag='' | |
13946 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13947 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13948 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13949 | (eval $ac_try) 2>&5 | |
13950 | ac_status=$? | |
13951 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13952 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13953 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13954 | (eval $ac_try) 2>&5 | |
13955 | ac_status=$? | |
13956 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13957 | test $ac_status = 0; }; }; then : | |
13958 | ||
13959 | ||
13960 | ||
13961 | cat confdefs.h - <<_ACEOF >conftest.c | |
13962 | ||
13963 | ||
13964 | #include <linux/uidgid.h> | |
13965 | ||
13966 | int | |
13967 | main (void) | |
13968 | { | |
13969 | ||
13970 | kuid_t userid = 0; | |
13971 | kgid_t groupid = 0; | |
13972 | ||
13973 | ; | |
13974 | return 0; | |
13975 | } | |
13976 | ||
13977 | _ACEOF | |
13978 | ||
13979 | ||
13980 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13981 | echo "obj-m := conftest.o" >build/Makefile | |
13982 | modpost_flag='' | |
13983 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13984 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13985 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13986 | (eval $ac_try) 2>&5 | |
13987 | ac_status=$? | |
13988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13989 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13990 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13991 | (eval $ac_try) 2>&5 | |
13992 | ac_status=$? | |
13993 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13994 | test $ac_status = 0; }; }; then : | |
13995 | ||
13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5 | |
13997 | $as_echo "yes; optional" >&6; } | |
13998 | ||
13999 | else | |
14000 | $as_echo "$as_me: failed program was:" >&5 | |
14001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14002 | ||
14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5 | |
14004 | $as_echo "yes; mandatory" >&6; } | |
14005 | ||
14006 | $as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h | |
14007 | ||
14008 | ||
14009 | ||
14010 | ||
14011 | fi | |
14012 | rm -Rf build | |
14013 | ||
14014 | ||
14015 | ||
14016 | else | |
14017 | $as_echo "$as_me: failed program was:" >&5 | |
14018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14019 | ||
14020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14021 | $as_echo "no" >&6; } | |
14022 | ||
14023 | ||
14024 | ||
14025 | fi | |
14026 | rm -Rf build | |
14027 | ||
14028 | ||
14029 | ||
70e083d2 TG |
14030 | |
14031 | ||
14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
14033 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
14034 | ||
14035 | ||
14036 | cat confdefs.h - <<_ACEOF >conftest.c | |
14037 | ||
14038 | ||
14039 | #include <linux/fs.h> | |
14040 | ||
14041 | int | |
14042 | main (void) | |
14043 | { | |
14044 | ||
14045 | long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL; | |
14046 | struct file_operations fops __attribute__ ((unused)) = { | |
14047 | .fallocate = fallocate, | |
14048 | }; | |
14049 | ||
14050 | ; | |
14051 | return 0; | |
14052 | } | |
14053 | ||
14054 | _ACEOF | |
14055 | ||
14056 | ||
14057 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14058 | echo "obj-m := conftest.o" >build/Makefile | |
14059 | modpost_flag='' | |
14060 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14061 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14062 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14063 | (eval $ac_try) 2>&5 | |
14064 | ac_status=$? | |
14065 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14066 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14067 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14068 | (eval $ac_try) 2>&5 | |
14069 | ac_status=$? | |
14070 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14071 | test $ac_status = 0; }; }; then : | |
14072 | ||
14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14074 | $as_echo "yes" >&6; } | |
14075 | ||
14076 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
14077 | ||
14078 | ||
14079 | else | |
14080 | $as_echo "$as_me: failed program was:" >&5 | |
14081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14082 | ||
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14084 | $as_echo "no" >&6; } | |
14085 | ||
14086 | ||
14087 | ||
14088 | fi | |
14089 | rm -Rf build | |
14090 | ||
14091 | ||
14092 | ||
14093 | ||
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
14095 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
14096 | ||
14097 | ||
14098 | cat confdefs.h - <<_ACEOF >conftest.c | |
14099 | ||
14100 | ||
14101 | #include <linux/fs.h> | |
14102 | ||
14103 | int | |
14104 | main (void) | |
14105 | { | |
14106 | ||
14107 | long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL; | |
14108 | struct inode_operations fops __attribute__ ((unused)) = { | |
14109 | .fallocate = fallocate, | |
14110 | }; | |
14111 | ||
14112 | ; | |
14113 | return 0; | |
14114 | } | |
14115 | ||
14116 | _ACEOF | |
14117 | ||
14118 | ||
14119 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14120 | echo "obj-m := conftest.o" >build/Makefile | |
14121 | modpost_flag='' | |
14122 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14123 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14124 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14125 | (eval $ac_try) 2>&5 | |
14126 | ac_status=$? | |
14127 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14128 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14129 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14130 | (eval $ac_try) 2>&5 | |
14131 | ac_status=$? | |
14132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14133 | test $ac_status = 0; }; }; then : | |
14134 | ||
14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14136 | $as_echo "yes" >&6; } | |
14137 | ||
14138 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
14139 | ||
14140 | ||
14141 | else | |
14142 | $as_echo "$as_me: failed program was:" >&5 | |
14143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14144 | ||
14145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14146 | $as_echo "no" >&6; } | |
14147 | ||
14148 | ||
14149 | ||
14150 | fi | |
14151 | rm -Rf build | |
14152 | ||
14153 | ||
14154 | ||
14155 | ||
14156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
14157 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
14158 | ||
14159 | ||
14160 | cat confdefs.h - <<_ACEOF >conftest.c | |
14161 | ||
14162 | ||
14163 | #include <linux/fs.h> | |
14164 | ||
14165 | int | |
14166 | main (void) | |
14167 | { | |
14168 | ||
14169 | long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL; | |
14170 | struct file_operations_no_const fops __attribute__ ((unused)) = { | |
14171 | .fallocate = fallocate, | |
14172 | }; | |
14173 | ||
14174 | ; | |
14175 | return 0; | |
14176 | } | |
14177 | ||
14178 | _ACEOF | |
14179 | ||
14180 | ||
14181 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14182 | echo "obj-m := conftest.o" >build/Makefile | |
14183 | modpost_flag='' | |
14184 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14185 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14186 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14187 | (eval $ac_try) 2>&5 | |
14188 | ac_status=$? | |
14189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14190 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14191 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14192 | (eval $ac_try) 2>&5 | |
14193 | ac_status=$? | |
14194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14195 | test $ac_status = 0; }; }; then : | |
14196 | ||
14197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14198 | $as_echo "yes" >&6; } | |
14199 | ||
14200 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
14201 | ||
14202 | ||
14203 | else | |
14204 | $as_echo "$as_me: failed program was:" >&5 | |
14205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14206 | ||
14207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14208 | $as_echo "no" >&6; } | |
14209 | ||
14210 | ||
14211 | ||
14212 | fi | |
14213 | rm -Rf build | |
14214 | ||
14215 | ||
14216 | ||
14217 | ||
14218 | ||
14219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5 | |
14220 | $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; } | |
14221 | ||
14222 | ||
14223 | cat confdefs.h - <<_ACEOF >conftest.c | |
14224 | ||
14225 | ||
14226 | #if !defined(CONFIG_ZLIB_INFLATE) && \ | |
14227 | !defined(CONFIG_ZLIB_INFLATE_MODULE) | |
14228 | #error CONFIG_ZLIB_INFLATE not defined | |
14229 | #endif | |
14230 | ||
14231 | int | |
14232 | main (void) | |
14233 | { | |
14234 | ||
14235 | ; | |
14236 | return 0; | |
14237 | } | |
14238 | ||
14239 | _ACEOF | |
14240 | ||
14241 | ||
14242 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14243 | echo "obj-m := conftest.o" >build/Makefile | |
14244 | modpost_flag='' | |
14245 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14246 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14247 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14248 | (eval $ac_try) 2>&5 | |
14249 | ac_status=$? | |
14250 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14251 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14252 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14253 | (eval $ac_try) 2>&5 | |
14254 | ac_status=$? | |
14255 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14256 | test $ac_status = 0; }; }; then : | |
14257 | ||
14258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14259 | $as_echo "yes" >&6; } | |
14260 | ||
14261 | else | |
14262 | $as_echo "$as_me: failed program was:" >&5 | |
14263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14264 | ||
14265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14266 | $as_echo "no" >&6; } | |
14267 | as_fn_error $? " | |
14268 | *** This kernel does not include the required zlib inflate support. | |
14269 | *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5 | |
14270 | ||
14271 | ||
14272 | ||
14273 | fi | |
14274 | rm -Rf build | |
14275 | ||
14276 | ||
14277 | ||
14278 | ||
14279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5 | |
14280 | $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; } | |
14281 | ||
14282 | ||
14283 | cat confdefs.h - <<_ACEOF >conftest.c | |
14284 | ||
14285 | ||
14286 | #if !defined(CONFIG_ZLIB_DEFLATE) && \ | |
14287 | !defined(CONFIG_ZLIB_DEFLATE_MODULE) | |
14288 | #error CONFIG_ZLIB_DEFLATE not defined | |
14289 | #endif | |
14290 | ||
14291 | int | |
14292 | main (void) | |
14293 | { | |
14294 | ||
14295 | ; | |
14296 | return 0; | |
14297 | } | |
14298 | ||
14299 | _ACEOF | |
14300 | ||
14301 | ||
14302 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14303 | echo "obj-m := conftest.o" >build/Makefile | |
14304 | modpost_flag='' | |
14305 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14306 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14307 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14308 | (eval $ac_try) 2>&5 | |
14309 | ac_status=$? | |
14310 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14311 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14312 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14313 | (eval $ac_try) 2>&5 | |
14314 | ac_status=$? | |
14315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14316 | test $ac_status = 0; }; }; then : | |
14317 | ||
14318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14319 | $as_echo "yes" >&6; } | |
14320 | ||
14321 | else | |
14322 | $as_echo "$as_me: failed program was:" >&5 | |
14323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14324 | ||
14325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14326 | $as_echo "no" >&6; } | |
14327 | as_fn_error $? " | |
14328 | *** This kernel does not include the required zlib deflate support. | |
14329 | *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5 | |
14330 | ||
14331 | ||
14332 | ||
14333 | fi | |
14334 | rm -Rf build | |
14335 | ||
14336 | ||
14337 | ||
14338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5 | |
14339 | $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; } | |
14340 | ||
14341 | ||
14342 | cat confdefs.h - <<_ACEOF >conftest.c | |
14343 | ||
14344 | ||
14345 | #include <linux/zlib.h> | |
14346 | ||
14347 | int | |
14348 | main (void) | |
14349 | { | |
14350 | ||
14351 | return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL); | |
14352 | ||
14353 | ; | |
14354 | return 0; | |
14355 | } | |
14356 | ||
14357 | _ACEOF | |
14358 | ||
14359 | ||
14360 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14361 | echo "obj-m := conftest.o" >build/Makefile | |
14362 | modpost_flag='' | |
14363 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14364 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14365 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14366 | (eval $ac_try) 2>&5 | |
14367 | ac_status=$? | |
14368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14369 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14370 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14371 | (eval $ac_try) 2>&5 | |
14372 | ac_status=$? | |
14373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14374 | test $ac_status = 0; }; }; then : | |
14375 | ||
14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14377 | $as_echo "yes" >&6; } | |
14378 | ||
14379 | $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h | |
14380 | ||
14381 | ||
14382 | else | |
14383 | $as_echo "$as_me: failed program was:" >&5 | |
14384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14385 | ||
14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14387 | $as_echo "no" >&6; } | |
14388 | ||
14389 | ||
14390 | ||
14391 | fi | |
14392 | rm -Rf build | |
14393 | ||
14394 | ||
14395 | ||
14396 | ||
14397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5 | |
14398 | $as_echo_n "checking whether struct shrink_control exists... " >&6; } | |
14399 | ||
14400 | ||
14401 | cat confdefs.h - <<_ACEOF >conftest.c | |
14402 | ||
14403 | ||
14404 | #include <linux/mm.h> | |
14405 | ||
14406 | int | |
14407 | main (void) | |
14408 | { | |
14409 | ||
14410 | struct shrink_control sc __attribute__ ((unused)); | |
14411 | ||
14412 | sc.nr_to_scan = 0; | |
14413 | sc.gfp_mask = GFP_KERNEL; | |
14414 | ||
14415 | ; | |
14416 | return 0; | |
14417 | } | |
14418 | ||
14419 | _ACEOF | |
14420 | ||
14421 | ||
14422 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14423 | echo "obj-m := conftest.o" >build/Makefile | |
14424 | modpost_flag='' | |
14425 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14426 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14427 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14428 | (eval $ac_try) 2>&5 | |
14429 | ac_status=$? | |
14430 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14431 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14432 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14433 | (eval $ac_try) 2>&5 | |
14434 | ac_status=$? | |
14435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14436 | test $ac_status = 0; }; }; then : | |
14437 | ||
14438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14439 | $as_echo "yes" >&6; } | |
14440 | ||
14441 | $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h | |
14442 | ||
14443 | ||
14444 | else | |
14445 | $as_echo "$as_me: failed program was:" >&5 | |
14446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14447 | ||
14448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14449 | $as_echo "no" >&6; } | |
14450 | ||
14451 | ||
14452 | ||
14453 | fi | |
14454 | rm -Rf build | |
14455 | ||
14456 | ||
14457 | ||
14458 | ||
14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5 | |
14460 | $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; } | |
14461 | tmp_flags="$EXTRA_KCFLAGS" | |
14462 | EXTRA_KCFLAGS="-Werror" | |
14463 | ||
14464 | ||
14465 | cat confdefs.h - <<_ACEOF >conftest.c | |
14466 | ||
14467 | ||
14468 | #include <linux/rwsem.h> | |
14469 | ||
14470 | int | |
14471 | main (void) | |
14472 | { | |
14473 | ||
14474 | struct rw_semaphore dummy_semaphore __attribute__ ((unused)); | |
43c96d9a CIK |
14475 | raw_spinlock_t dummy_lock __attribute__ ((unused)) = |
14476 | __RAW_SPIN_LOCK_INITIALIZER(dummy_lock); | |
70e083d2 TG |
14477 | dummy_semaphore.wait_lock = dummy_lock; |
14478 | ||
14479 | ; | |
14480 | return 0; | |
14481 | } | |
14482 | ||
14483 | _ACEOF | |
14484 | ||
14485 | ||
14486 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14487 | echo "obj-m := conftest.o" >build/Makefile | |
14488 | modpost_flag='' | |
14489 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14490 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14491 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14492 | (eval $ac_try) 2>&5 | |
14493 | ac_status=$? | |
14494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14495 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14496 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14497 | (eval $ac_try) 2>&5 | |
14498 | ac_status=$? | |
14499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14500 | test $ac_status = 0; }; }; then : | |
14501 | ||
14502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14503 | $as_echo "yes" >&6; } | |
14504 | ||
14505 | $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h | |
14506 | ||
14507 | ||
14508 | else | |
14509 | $as_echo "$as_me: failed program was:" >&5 | |
14510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14511 | ||
14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14513 | $as_echo "no" >&6; } | |
14514 | ||
14515 | ||
14516 | ||
14517 | fi | |
14518 | rm -Rf build | |
14519 | ||
14520 | ||
14521 | EXTRA_KCFLAGS="$tmp_flags" | |
14522 | ||
14523 | ||
14524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5 | |
14525 | $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; } | |
14526 | tmp_flags="$EXTRA_KCFLAGS" | |
14527 | EXTRA_KCFLAGS="-Werror" | |
14528 | ||
14529 | ||
14530 | cat confdefs.h - <<_ACEOF >conftest.c | |
14531 | ||
14532 | ||
14533 | #include <linux/rwsem.h> | |
14534 | ||
14535 | int | |
14536 | main (void) | |
14537 | { | |
14538 | ||
14539 | struct rw_semaphore dummy_semaphore __attribute__ ((unused)); | |
14540 | dummy_semaphore.activity = 0; | |
14541 | ||
14542 | ; | |
14543 | return 0; | |
14544 | } | |
14545 | ||
14546 | _ACEOF | |
14547 | ||
14548 | ||
14549 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14550 | echo "obj-m := conftest.o" >build/Makefile | |
14551 | modpost_flag='' | |
14552 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14553 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14554 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14555 | (eval $ac_try) 2>&5 | |
14556 | ac_status=$? | |
14557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14558 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14559 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14560 | (eval $ac_try) 2>&5 | |
14561 | ac_status=$? | |
14562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14563 | test $ac_status = 0; }; }; then : | |
14564 | ||
14565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14566 | $as_echo "yes" >&6; } | |
14567 | ||
14568 | $as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h | |
14569 | ||
14570 | ||
14571 | else | |
14572 | $as_echo "$as_me: failed program was:" >&5 | |
14573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14574 | ||
14575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14576 | $as_echo "no" >&6; } | |
14577 | ||
14578 | ||
14579 | ||
14580 | fi | |
14581 | rm -Rf build | |
14582 | ||
14583 | ||
14584 | EXTRA_KCFLAGS="$tmp_flags" | |
14585 | ||
14586 | ||
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5 | |
14588 | $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; } | |
14589 | tmp_flags="$EXTRA_KCFLAGS" | |
14590 | EXTRA_KCFLAGS="-Werror" | |
14591 | ||
14592 | ||
14593 | cat confdefs.h - <<_ACEOF >conftest.c | |
14594 | ||
14595 | ||
14596 | #include <linux/rwsem.h> | |
14597 | ||
14598 | int | |
14599 | main (void) | |
14600 | { | |
14601 | ||
14602 | DECLARE_RWSEM(dummy_semaphore); | |
14603 | (void) atomic_long_read(&dummy_semaphore.count); | |
14604 | ||
14605 | ; | |
14606 | return 0; | |
14607 | } | |
14608 | ||
14609 | _ACEOF | |
14610 | ||
14611 | ||
14612 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14613 | echo "obj-m := conftest.o" >build/Makefile | |
14614 | modpost_flag='' | |
14615 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14616 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14617 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14618 | (eval $ac_try) 2>&5 | |
14619 | ac_status=$? | |
14620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14621 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14622 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14623 | (eval $ac_try) 2>&5 | |
14624 | ac_status=$? | |
14625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14626 | test $ac_status = 0; }; }; then : | |
14627 | ||
14628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14629 | $as_echo "yes" >&6; } | |
14630 | ||
14631 | $as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h | |
14632 | ||
14633 | ||
14634 | else | |
14635 | $as_echo "$as_me: failed program was:" >&5 | |
14636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14637 | ||
14638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14639 | $as_echo "no" >&6; } | |
14640 | ||
14641 | ||
14642 | ||
14643 | fi | |
14644 | rm -Rf build | |
14645 | ||
14646 | ||
14647 | EXTRA_KCFLAGS="$tmp_flags" | |
14648 | ||
14649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5 | |
14650 | $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; } | |
14651 | ||
14652 | ||
14653 | cat confdefs.h - <<_ACEOF >conftest.c | |
14654 | ||
14655 | ||
14656 | #include <linux/sched.h> | |
14657 | #include <linux/sched/rt.h> | |
14658 | ||
14659 | int | |
14660 | main (void) | |
14661 | { | |
14662 | ||
14663 | return 0; | |
14664 | ||
14665 | ; | |
14666 | return 0; | |
14667 | } | |
14668 | ||
14669 | _ACEOF | |
14670 | ||
14671 | ||
14672 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14673 | echo "obj-m := conftest.o" >build/Makefile | |
14674 | modpost_flag='' | |
14675 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14676 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14677 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14678 | (eval $ac_try) 2>&5 | |
14679 | ac_status=$? | |
14680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14681 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14682 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14683 | (eval $ac_try) 2>&5 | |
14684 | ac_status=$? | |
14685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14686 | test $ac_status = 0; }; }; then : | |
14687 | ||
14688 | ||
14689 | $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h | |
14690 | ||
14691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14692 | $as_echo "yes" >&6; } | |
14693 | ||
14694 | else | |
14695 | $as_echo "$as_me: failed program was:" >&5 | |
14696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14697 | ||
14698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14699 | $as_echo "no" >&6; } | |
14700 | ||
14701 | ||
14702 | ||
0d6103dd CIK |
14703 | fi |
14704 | rm -Rf build | |
14705 | ||
14706 | ||
14707 | ||
14708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/signal.h exists" >&5 | |
14709 | $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; } | |
14710 | ||
14711 | ||
14712 | cat confdefs.h - <<_ACEOF >conftest.c | |
14713 | ||
14714 | ||
14715 | #include <linux/sched.h> | |
14716 | #include <linux/sched/signal.h> | |
14717 | ||
14718 | int | |
14719 | main (void) | |
14720 | { | |
14721 | ||
14722 | return 0; | |
14723 | ||
14724 | ; | |
14725 | return 0; | |
14726 | } | |
14727 | ||
14728 | _ACEOF | |
14729 | ||
14730 | ||
14731 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14732 | echo "obj-m := conftest.o" >build/Makefile | |
14733 | modpost_flag='' | |
14734 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14735 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14736 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14737 | (eval $ac_try) 2>&5 | |
14738 | ac_status=$? | |
14739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14740 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14741 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14742 | (eval $ac_try) 2>&5 | |
14743 | ac_status=$? | |
14744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14745 | test $ac_status = 0; }; }; then : | |
14746 | ||
14747 | ||
14748 | $as_echo "#define HAVE_SCHED_SIGNAL_HEADER 1" >>confdefs.h | |
14749 | ||
14750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14751 | $as_echo "yes" >&6; } | |
14752 | ||
14753 | else | |
14754 | $as_echo "$as_me: failed program was:" >&5 | |
14755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14756 | ||
14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14758 | $as_echo "no" >&6; } | |
14759 | ||
14760 | ||
14761 | ||
70e083d2 TG |
14762 | fi |
14763 | rm -Rf build | |
14764 | ||
14765 | ||
14766 | ||
14767 | ||
0d6103dd CIK |
14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 4 args" >&5 |
14769 | $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; } | |
70e083d2 TG |
14770 | |
14771 | ||
14772 | cat confdefs.h - <<_ACEOF >conftest.c | |
14773 | ||
14774 | ||
14775 | #include <linux/fs.h> | |
14776 | ||
14777 | int | |
14778 | main (void) | |
14779 | { | |
14780 | ||
0d6103dd CIK |
14781 | vfs_getattr((const struct path *)NULL, |
14782 | (struct kstat *)NULL, | |
14783 | (u32)0, | |
14784 | (unsigned int)0); | |
70e083d2 TG |
14785 | |
14786 | ; | |
14787 | return 0; | |
14788 | } | |
14789 | ||
14790 | _ACEOF | |
14791 | ||
14792 | ||
14793 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14794 | echo "obj-m := conftest.o" >build/Makefile | |
14795 | modpost_flag='' | |
14796 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14797 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14798 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14799 | (eval $ac_try) 2>&5 | |
14800 | ac_status=$? | |
14801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14802 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14803 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14804 | (eval $ac_try) 2>&5 | |
14805 | ac_status=$? | |
14806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14807 | test $ac_status = 0; }; }; then : | |
14808 | ||
0d6103dd CIK |
14809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14810 | $as_echo "yes" >&6; } | |
70e083d2 | 14811 | |
0d6103dd | 14812 | $as_echo "#define HAVE_4ARGS_VFS_GETATTR 1" >>confdefs.h |
70e083d2 TG |
14813 | |
14814 | ||
14815 | else | |
14816 | $as_echo "$as_me: failed program was:" >&5 | |
14817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14818 | ||
0d6103dd CIK |
14819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14820 | $as_echo "no" >&6; } | |
14821 | ||
14822 | ||
14823 | ||
14824 | fi | |
14825 | rm -Rf build | |
14826 | ||
14827 | ||
14828 | ||
14829 | ||
14830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 3 args" >&5 | |
14831 | $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; } | |
70e083d2 TG |
14832 | |
14833 | ||
14834 | cat confdefs.h - <<_ACEOF >conftest.c | |
14835 | ||
14836 | ||
0d6103dd | 14837 | #include <linux/fs.h> |
70e083d2 TG |
14838 | |
14839 | int | |
14840 | main (void) | |
14841 | { | |
14842 | ||
0d6103dd CIK |
14843 | vfs_getattr((struct vfsmount *)NULL, |
14844 | (struct dentry *)NULL, | |
14845 | (struct kstat *)NULL); | |
70e083d2 TG |
14846 | |
14847 | ; | |
14848 | return 0; | |
14849 | } | |
14850 | ||
14851 | _ACEOF | |
14852 | ||
14853 | ||
14854 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14855 | echo "obj-m := conftest.o" >build/Makefile | |
14856 | modpost_flag='' | |
14857 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14858 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14859 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14860 | (eval $ac_try) 2>&5 | |
14861 | ac_status=$? | |
14862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14863 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14864 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14865 | (eval $ac_try) 2>&5 | |
14866 | ac_status=$? | |
14867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14868 | test $ac_status = 0; }; }; then : | |
14869 | ||
0d6103dd CIK |
14870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14871 | $as_echo "yes" >&6; } | |
14872 | ||
14873 | $as_echo "#define HAVE_3ARGS_VFS_GETATTR 1" >>confdefs.h | |
14874 | ||
70e083d2 TG |
14875 | |
14876 | else | |
14877 | $as_echo "$as_me: failed program was:" >&5 | |
14878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14879 | ||
0d6103dd CIK |
14880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14881 | $as_echo "no" >&6; } | |
70e083d2 TG |
14882 | |
14883 | ||
14884 | ||
14885 | fi | |
14886 | rm -Rf build | |
14887 | ||
14888 | ||
14889 | ||
14890 | ||
0d6103dd CIK |
14891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 2 args" >&5 |
14892 | $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; } | |
14893 | ||
14894 | ||
14895 | cat confdefs.h - <<_ACEOF >conftest.c | |
14896 | ||
14897 | ||
14898 | #include <linux/fs.h> | |
14899 | ||
14900 | int | |
14901 | main (void) | |
14902 | { | |
14903 | ||
14904 | vfs_getattr((struct path *) NULL, | |
14905 | (struct kstat *)NULL); | |
14906 | ||
14907 | ; | |
14908 | return 0; | |
14909 | } | |
14910 | ||
14911 | _ACEOF | |
14912 | ||
14913 | ||
14914 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14915 | echo "obj-m := conftest.o" >build/Makefile | |
14916 | modpost_flag='' | |
14917 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14918 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14919 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14920 | (eval $ac_try) 2>&5 | |
14921 | ac_status=$? | |
14922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14923 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14924 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14925 | (eval $ac_try) 2>&5 | |
14926 | ac_status=$? | |
14927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14928 | test $ac_status = 0; }; }; then : | |
14929 | ||
14930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14931 | $as_echo "yes" >&6; } | |
14932 | ||
14933 | $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h | |
14934 | ||
14935 | ||
14936 | else | |
14937 | $as_echo "$as_me: failed program was:" >&5 | |
14938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14939 | ||
14940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14941 | $as_echo "no" >&6; } | |
14942 | ||
14943 | ||
70e083d2 TG |
14944 | |
14945 | fi | |
14946 | rm -Rf build | |
14947 | ||
14948 | ||
14949 | ||
14950 | ||
14951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5 | |
14952 | $as_echo_n "checking whether usleep_range() is available... " >&6; } | |
14953 | ||
14954 | ||
14955 | cat confdefs.h - <<_ACEOF >conftest.c | |
14956 | ||
14957 | ||
14958 | #include <linux/delay.h> | |
14959 | ||
14960 | int | |
14961 | main (void) | |
14962 | { | |
14963 | ||
14964 | usleep_range(0, 0); | |
14965 | ||
14966 | ; | |
14967 | return 0; | |
14968 | } | |
14969 | ||
14970 | _ACEOF | |
14971 | ||
14972 | ||
14973 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14974 | echo "obj-m := conftest.o" >build/Makefile | |
14975 | modpost_flag='' | |
14976 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14977 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14978 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14979 | (eval $ac_try) 2>&5 | |
14980 | ac_status=$? | |
14981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14982 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14983 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14984 | (eval $ac_try) 2>&5 | |
14985 | ac_status=$? | |
14986 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14987 | test $ac_status = 0; }; }; then : | |
14988 | ||
14989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14990 | $as_echo "yes" >&6; } | |
14991 | ||
14992 | $as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h | |
14993 | ||
14994 | ||
14995 | else | |
14996 | $as_echo "$as_me: failed program was:" >&5 | |
14997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14998 | ||
14999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15000 | $as_echo "no" >&6; } | |
15001 | ||
15002 | ||
15003 | ||
15004 | fi | |
15005 | rm -Rf build | |
15006 | ||
15007 | ||
15008 | ||
15009 | ||
15010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5 | |
15011 | $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; } | |
15012 | ||
15013 | ||
15014 | cat confdefs.h - <<_ACEOF >conftest.c | |
15015 | ||
15016 | ||
15017 | #include <linux/slab.h> | |
15018 | ||
15019 | int | |
15020 | main (void) | |
15021 | { | |
15022 | ||
15023 | struct kmem_cache cachep __attribute__ ((unused)); | |
15024 | cachep.allocflags = GFP_KERNEL; | |
15025 | ||
15026 | ; | |
15027 | return 0; | |
15028 | } | |
15029 | ||
15030 | _ACEOF | |
15031 | ||
15032 | ||
15033 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15034 | echo "obj-m := conftest.o" >build/Makefile | |
15035 | modpost_flag='' | |
15036 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15037 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15038 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15039 | (eval $ac_try) 2>&5 | |
15040 | ac_status=$? | |
15041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15042 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15043 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15044 | (eval $ac_try) 2>&5 | |
15045 | ac_status=$? | |
15046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15047 | test $ac_status = 0; }; }; then : | |
15048 | ||
15049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15050 | $as_echo "yes" >&6; } | |
15051 | ||
15052 | $as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h | |
15053 | ||
15054 | ||
15055 | else | |
15056 | $as_echo "$as_me: failed program was:" >&5 | |
15057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15058 | ||
15059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15060 | $as_echo "no" >&6; } | |
15061 | ||
15062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5 | |
15063 | $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; } | |
15064 | ||
15065 | ||
15066 | cat confdefs.h - <<_ACEOF >conftest.c | |
15067 | ||
15068 | ||
15069 | #include <linux/slab.h> | |
15070 | ||
15071 | int | |
15072 | main (void) | |
15073 | { | |
15074 | ||
15075 | struct kmem_cache cachep __attribute__ ((unused)); | |
15076 | cachep.gfpflags = GFP_KERNEL; | |
15077 | ||
15078 | ; | |
15079 | return 0; | |
15080 | } | |
15081 | ||
15082 | _ACEOF | |
15083 | ||
15084 | ||
15085 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15086 | echo "obj-m := conftest.o" >build/Makefile | |
15087 | modpost_flag='' | |
15088 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15089 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15090 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15091 | (eval $ac_try) 2>&5 | |
15092 | ac_status=$? | |
15093 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15094 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15095 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15096 | (eval $ac_try) 2>&5 | |
15097 | ac_status=$? | |
15098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15099 | test $ac_status = 0; }; }; then : | |
15100 | ||
15101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15102 | $as_echo "yes" >&6; } | |
15103 | ||
15104 | $as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h | |
15105 | ||
15106 | ||
15107 | else | |
15108 | $as_echo "$as_me: failed program was:" >&5 | |
15109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15110 | ||
15111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15112 | $as_echo "no" >&6; } | |
15113 | ||
15114 | ||
15115 | ||
15116 | fi | |
15117 | rm -Rf build | |
15118 | ||
15119 | ||
15120 | ||
15121 | ||
15122 | ||
15123 | fi | |
15124 | rm -Rf build | |
15125 | ||
15126 | ||
15127 | ||
15128 | ||
15129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5 | |
15130 | $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; } | |
15131 | ||
15132 | ||
15133 | cat confdefs.h - <<_ACEOF >conftest.c | |
15134 | ||
15135 | ||
15136 | #include <linux/wait.h> | |
15137 | ||
15138 | int | |
15139 | main (void) | |
15140 | { | |
15141 | ||
15142 | int (*action)(void *) = NULL; | |
15143 | wait_on_bit(NULL, 0, action, 0); | |
15144 | ||
15145 | ; | |
15146 | return 0; | |
15147 | } | |
15148 | ||
15149 | _ACEOF | |
15150 | ||
15151 | ||
15152 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15153 | echo "obj-m := conftest.o" >build/Makefile | |
15154 | modpost_flag='' | |
15155 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15156 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15157 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15158 | (eval $ac_try) 2>&5 | |
15159 | ac_status=$? | |
15160 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15161 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15162 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15163 | (eval $ac_try) 2>&5 | |
15164 | ac_status=$? | |
15165 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15166 | test $ac_status = 0; }; }; then : | |
15167 | ||
15168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15169 | $as_echo "yes" >&6; } | |
15170 | ||
15171 | $as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h | |
15172 | ||
15173 | ||
15174 | else | |
15175 | $as_echo "$as_me: failed program was:" >&5 | |
15176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15177 | ||
15178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15179 | $as_echo "no" >&6; } | |
15180 | ||
15181 | ||
15182 | ||
15183 | fi | |
15184 | rm -Rf build | |
15185 | ||
15186 | ||
15187 | ||
15188 | ||
15189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5 | |
15190 | $as_echo_n "checking whether inode_lock_shared() exists... " >&6; } | |
15191 | tmp_flags="$EXTRA_KCFLAGS" | |
15192 | EXTRA_KCFLAGS="-Werror" | |
15193 | ||
15194 | ||
15195 | cat confdefs.h - <<_ACEOF >conftest.c | |
15196 | ||
15197 | ||
15198 | #include <linux/fs.h> | |
15199 | ||
15200 | int | |
15201 | main (void) | |
15202 | { | |
15203 | ||
15204 | struct inode *inode = NULL; | |
15205 | inode_lock_shared(inode); | |
15206 | ||
15207 | ; | |
15208 | return 0; | |
15209 | } | |
15210 | ||
15211 | _ACEOF | |
15212 | ||
15213 | ||
15214 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15215 | echo "obj-m := conftest.o" >build/Makefile | |
15216 | modpost_flag='' | |
15217 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15218 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15219 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15220 | (eval $ac_try) 2>&5 | |
15221 | ac_status=$? | |
15222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15223 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15224 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15225 | (eval $ac_try) 2>&5 | |
15226 | ac_status=$? | |
15227 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15228 | test $ac_status = 0; }; }; then : | |
15229 | ||
15230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15231 | $as_echo "yes" >&6; } | |
15232 | ||
15233 | $as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h | |
15234 | ||
15235 | ||
15236 | else | |
15237 | $as_echo "$as_me: failed program was:" >&5 | |
15238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15239 | ||
15240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15241 | $as_echo "no" >&6; } | |
15242 | ||
15243 | ||
15244 | ||
15245 | fi | |
15246 | rm -Rf build | |
15247 | ||
15248 | ||
15249 | EXTRA_KCFLAGS="$tmp_flags" | |
15250 | ||
15251 | ||
86e3c28a CIK |
15252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether group_info->gid exists" >&5 |
15253 | $as_echo_n "checking whether group_info->gid exists... " >&6; } | |
70e083d2 TG |
15254 | tmp_flags="$EXTRA_KCFLAGS" |
15255 | EXTRA_KCFLAGS="-Werror" | |
15256 | ||
15257 | ||
15258 | cat confdefs.h - <<_ACEOF >conftest.c | |
15259 | ||
15260 | ||
86e3c28a | 15261 | #include <linux/cred.h> |
70e083d2 TG |
15262 | |
15263 | int | |
15264 | main (void) | |
15265 | { | |
15266 | ||
86e3c28a CIK |
15267 | struct group_info *gi = groups_alloc(1); |
15268 | gi->gid[0] = KGIDT_INIT(0); | |
70e083d2 TG |
15269 | |
15270 | ; | |
15271 | return 0; | |
15272 | } | |
15273 | ||
15274 | _ACEOF | |
15275 | ||
15276 | ||
15277 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15278 | echo "obj-m := conftest.o" >build/Makefile | |
15279 | modpost_flag='' | |
15280 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15281 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15282 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15283 | (eval $ac_try) 2>&5 | |
15284 | ac_status=$? | |
15285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15286 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15287 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15288 | (eval $ac_try) 2>&5 | |
15289 | ac_status=$? | |
15290 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15291 | test $ac_status = 0; }; }; then : | |
15292 | ||
15293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15294 | $as_echo "yes" >&6; } | |
15295 | ||
86e3c28a | 15296 | $as_echo "#define HAVE_GROUP_INFO_GID 1" >>confdefs.h |
70e083d2 TG |
15297 | |
15298 | ||
15299 | else | |
15300 | $as_echo "$as_me: failed program was:" >&5 | |
15301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15302 | ||
15303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15304 | $as_echo "no" >&6; } | |
15305 | ||
15306 | ||
15307 | ||
15308 | fi | |
15309 | rm -Rf build | |
15310 | ||
15311 | ||
15312 | EXTRA_KCFLAGS="$tmp_flags" | |
15313 | ||
15314 | ||
86e3c28a CIK |
15315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmem_cache_create_usercopy() exists" >&5 |
15316 | $as_echo_n "checking whether kmem_cache_create_usercopy() exists... " >&6; } | |
70e083d2 TG |
15317 | tmp_flags="$EXTRA_KCFLAGS" |
15318 | EXTRA_KCFLAGS="-Werror" | |
15319 | ||
15320 | ||
15321 | cat confdefs.h - <<_ACEOF >conftest.c | |
15322 | ||
15323 | ||
86e3c28a CIK |
15324 | #include <linux/slab.h> |
15325 | static void ctor(void *foo) | |
15326 | { | |
15327 | // fake ctor | |
15328 | } | |
70e083d2 TG |
15329 | |
15330 | int | |
15331 | main (void) | |
15332 | { | |
15333 | ||
86e3c28a CIK |
15334 | struct kmem_cache *skc_linux_cache; |
15335 | const char *name = "test"; | |
15336 | size_t size = 4096; | |
15337 | size_t align = 8; | |
15338 | unsigned long flags = 0; | |
15339 | size_t useroffset = 0; | |
15340 | size_t usersize = size - useroffset; | |
15341 | ||
15342 | skc_linux_cache = kmem_cache_create_usercopy( | |
15343 | name, size, align, flags, useroffset, usersize, ctor); | |
70e083d2 TG |
15344 | |
15345 | ; | |
15346 | return 0; | |
15347 | } | |
15348 | ||
15349 | _ACEOF | |
15350 | ||
15351 | ||
15352 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15353 | echo "obj-m := conftest.o" >build/Makefile | |
15354 | modpost_flag='' | |
15355 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15356 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15357 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15358 | (eval $ac_try) 2>&5 | |
15359 | ac_status=$? | |
15360 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15361 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15362 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15363 | (eval $ac_try) 2>&5 | |
15364 | ac_status=$? | |
15365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15366 | test $ac_status = 0; }; }; then : | |
15367 | ||
15368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15369 | $as_echo "yes" >&6; } | |
15370 | ||
86e3c28a | 15371 | $as_echo "#define HAVE_KMEM_CACHE_CREATE_USERCOPY 1" >>confdefs.h |
70e083d2 TG |
15372 | |
15373 | ||
15374 | else | |
15375 | $as_echo "$as_me: failed program was:" >&5 | |
15376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15377 | ||
15378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15379 | $as_echo "no" >&6; } | |
15380 | ||
15381 | ||
15382 | ||
15383 | fi | |
15384 | rm -Rf build | |
15385 | ||
15386 | ||
15387 | EXTRA_KCFLAGS="$tmp_flags" | |
15388 | ||
3ab1144a CIK |
15389 | |
15390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_queue_entry_t exists" >&5 | |
15391 | $as_echo_n "checking whether wait_queue_entry_t exists... " >&6; } | |
15392 | ||
15393 | ||
15394 | cat confdefs.h - <<_ACEOF >conftest.c | |
15395 | ||
15396 | ||
15397 | #include <linux/wait.h> | |
15398 | ||
15399 | int | |
15400 | main (void) | |
15401 | { | |
15402 | ||
15403 | wait_queue_entry_t *entry __attribute__ ((unused)); | |
15404 | ||
15405 | ; | |
15406 | return 0; | |
15407 | } | |
15408 | ||
15409 | _ACEOF | |
15410 | ||
15411 | ||
15412 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15413 | echo "obj-m := conftest.o" >build/Makefile | |
15414 | modpost_flag='' | |
15415 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15416 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15417 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15418 | (eval $ac_try) 2>&5 | |
15419 | ac_status=$? | |
15420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15421 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15422 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15423 | (eval $ac_try) 2>&5 | |
15424 | ac_status=$? | |
15425 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15426 | test $ac_status = 0; }; }; then : | |
15427 | ||
15428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15429 | $as_echo "yes" >&6; } | |
15430 | ||
15431 | $as_echo "#define HAVE_WAIT_QUEUE_ENTRY_T 1" >>confdefs.h | |
15432 | ||
15433 | ||
15434 | else | |
15435 | $as_echo "$as_me: failed program was:" >&5 | |
15436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15437 | ||
15438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15439 | $as_echo "no" >&6; } | |
15440 | ||
15441 | ||
15442 | ||
15443 | fi | |
15444 | rm -Rf build | |
15445 | ||
15446 | ||
15447 | ||
15448 | ||
15449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wq_head->head and wq_entry->entry exist" >&5 | |
15450 | $as_echo_n "checking whether wq_head->head and wq_entry->entry exist... " >&6; } | |
15451 | ||
15452 | ||
15453 | cat confdefs.h - <<_ACEOF >conftest.c | |
15454 | ||
15455 | ||
15456 | #include <linux/wait.h> | |
15457 | ||
15458 | #ifdef HAVE_WAIT_QUEUE_ENTRY_T | |
15459 | typedef wait_queue_head_t spl_wait_queue_head_t; | |
15460 | typedef wait_queue_entry_t spl_wait_queue_entry_t; | |
15461 | #else | |
15462 | typedef wait_queue_head_t spl_wait_queue_head_t; | |
15463 | typedef wait_queue_t spl_wait_queue_entry_t; | |
15464 | #endif | |
15465 | ||
15466 | int | |
15467 | main (void) | |
15468 | { | |
15469 | ||
15470 | spl_wait_queue_head_t wq_head; | |
15471 | spl_wait_queue_entry_t wq_entry; | |
15472 | struct list_head *head __attribute__ ((unused)); | |
15473 | struct list_head *entry __attribute__ ((unused)); | |
15474 | ||
15475 | head = &wq_head.head; | |
15476 | entry = &wq_entry.entry; | |
15477 | ||
15478 | ; | |
15479 | return 0; | |
15480 | } | |
15481 | ||
15482 | _ACEOF | |
15483 | ||
15484 | ||
15485 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15486 | echo "obj-m := conftest.o" >build/Makefile | |
15487 | modpost_flag='' | |
15488 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15489 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15490 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15491 | (eval $ac_try) 2>&5 | |
15492 | ac_status=$? | |
15493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15494 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15495 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15496 | (eval $ac_try) 2>&5 | |
15497 | ac_status=$? | |
15498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15499 | test $ac_status = 0; }; }; then : | |
15500 | ||
15501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15502 | $as_echo "yes" >&6; } | |
15503 | ||
15504 | $as_echo "#define HAVE_WAIT_QUEUE_HEAD_ENTRY 1" >>confdefs.h | |
15505 | ||
15506 | ||
15507 | else | |
15508 | $as_echo "$as_me: failed program was:" >&5 | |
15509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15510 | ||
15511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15512 | $as_echo "no" >&6; } | |
15513 | ||
15514 | ||
15515 | ||
15516 | fi | |
15517 | rm -Rf build | |
15518 | ||
15519 | ||
15520 | ||
86e3c28a CIK |
15521 | |
15522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel_write() takes loff_t pointer" >&5 | |
15523 | $as_echo_n "checking whether kernel_write() takes loff_t pointer... " >&6; } | |
15524 | tmp_flags="$EXTRA_KCFLAGS" | |
15525 | EXTRA_KCFLAGS="-Werror" | |
15526 | ||
15527 | ||
15528 | cat confdefs.h - <<_ACEOF >conftest.c | |
15529 | ||
15530 | ||
15531 | #include <linux/fs.h> | |
15532 | ||
15533 | int | |
15534 | main (void) | |
15535 | { | |
15536 | ||
15537 | struct file *file = NULL; | |
15538 | const void *buf = NULL; | |
15539 | size_t count = 0; | |
15540 | loff_t *pos = NULL; | |
15541 | ssize_t ret; | |
15542 | ||
15543 | ret = kernel_write(file, buf, count, pos); | |
15544 | ||
15545 | ; | |
15546 | return 0; | |
15547 | } | |
15548 | ||
15549 | _ACEOF | |
15550 | ||
15551 | ||
15552 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15553 | echo "obj-m := conftest.o" >build/Makefile | |
15554 | modpost_flag='' | |
15555 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15556 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15557 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15558 | (eval $ac_try) 2>&5 | |
15559 | ac_status=$? | |
15560 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15561 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15562 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15563 | (eval $ac_try) 2>&5 | |
15564 | ac_status=$? | |
15565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15566 | test $ac_status = 0; }; }; then : | |
15567 | ||
15568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15569 | $as_echo "yes" >&6; } | |
15570 | ||
15571 | $as_echo "#define HAVE_KERNEL_WRITE_PPOS 1" >>confdefs.h | |
15572 | ||
15573 | ||
15574 | else | |
15575 | $as_echo "$as_me: failed program was:" >&5 | |
15576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15577 | ||
15578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15579 | $as_echo "no" >&6; } | |
15580 | ||
15581 | ||
15582 | ||
15583 | fi | |
15584 | rm -Rf build | |
15585 | ||
15586 | ||
15587 | EXTRA_KCFLAGS="$tmp_flags" | |
15588 | ||
15589 | ||
15590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel_read() takes loff_t pointer" >&5 | |
15591 | $as_echo_n "checking whether kernel_read() takes loff_t pointer... " >&6; } | |
15592 | tmp_flags="$EXTRA_KCFLAGS" | |
15593 | EXTRA_KCFLAGS="-Werror" | |
15594 | ||
15595 | ||
15596 | cat confdefs.h - <<_ACEOF >conftest.c | |
15597 | ||
15598 | ||
15599 | #include <linux/fs.h> | |
15600 | ||
15601 | int | |
15602 | main (void) | |
15603 | { | |
15604 | ||
15605 | struct file *file = NULL; | |
15606 | void *buf = NULL; | |
15607 | size_t count = 0; | |
15608 | loff_t *pos = NULL; | |
15609 | ssize_t ret; | |
15610 | ||
15611 | ret = kernel_read(file, buf, count, pos); | |
15612 | ||
15613 | ; | |
15614 | return 0; | |
15615 | } | |
15616 | ||
15617 | _ACEOF | |
15618 | ||
15619 | ||
15620 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15621 | echo "obj-m := conftest.o" >build/Makefile | |
15622 | modpost_flag='' | |
15623 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15624 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15625 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15626 | (eval $ac_try) 2>&5 | |
15627 | ac_status=$? | |
15628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15629 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15630 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15631 | (eval $ac_try) 2>&5 | |
15632 | ac_status=$? | |
15633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15634 | test $ac_status = 0; }; }; then : | |
15635 | ||
15636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15637 | $as_echo "yes" >&6; } | |
15638 | ||
15639 | $as_echo "#define HAVE_KERNEL_READ_PPOS 1" >>confdefs.h | |
15640 | ||
15641 | ||
15642 | else | |
15643 | $as_echo "$as_me: failed program was:" >&5 | |
15644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15645 | ||
15646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15647 | $as_echo "no" >&6; } | |
15648 | ||
15649 | ||
15650 | ||
15651 | fi | |
15652 | rm -Rf build | |
15653 | ||
15654 | ||
15655 | EXTRA_KCFLAGS="$tmp_flags" | |
15656 | ||
586d4e9f CIK |
15657 | |
15658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether timer_setup() exists" >&5 | |
15659 | $as_echo_n "checking whether timer_setup() exists... " >&6; } | |
15660 | tmp_flags="$EXTRA_KCFLAGS" | |
15661 | EXTRA_KCFLAGS="-Werror" | |
15662 | ||
15663 | ||
15664 | cat confdefs.h - <<_ACEOF >conftest.c | |
15665 | ||
15666 | ||
15667 | #include <linux/timer.h> | |
15668 | ||
15669 | int | |
15670 | main (void) | |
15671 | { | |
15672 | ||
15673 | struct timer_list timer; | |
15674 | ||
15675 | timer_setup(&timer, NULL, 0); | |
15676 | ||
15677 | ; | |
15678 | return 0; | |
15679 | } | |
15680 | ||
15681 | _ACEOF | |
15682 | ||
15683 | ||
15684 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15685 | echo "obj-m := conftest.o" >build/Makefile | |
15686 | modpost_flag='' | |
15687 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15688 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15689 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15690 | (eval $ac_try) 2>&5 | |
15691 | ac_status=$? | |
15692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15693 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15694 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15695 | (eval $ac_try) 2>&5 | |
15696 | ac_status=$? | |
15697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15698 | test $ac_status = 0; }; }; then : | |
15699 | ||
15700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15701 | $as_echo "yes" >&6; } | |
15702 | ||
15703 | $as_echo "#define HAVE_KERNEL_TIMER_SETUP 1" >>confdefs.h | |
15704 | ||
15705 | ||
15706 | else | |
15707 | $as_echo "$as_me: failed program was:" >&5 | |
15708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15709 | ||
15710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15711 | $as_echo "no" >&6; } | |
15712 | ||
15713 | ||
15714 | ||
15715 | fi | |
15716 | rm -Rf build | |
15717 | ||
15718 | ||
15719 | EXTRA_KCFLAGS="$tmp_flags" | |
15720 | ||
70e083d2 TG |
15721 | ;; |
15722 | user) ;; | |
15723 | all) | |
15724 | ||
15725 | ||
15726 | # Check whether --with-linux was given. | |
15727 | if test "${with_linux+set}" = set; then : | |
15728 | withval=$with_linux; kernelsrc="$withval" | |
15729 | fi | |
15730 | ||
15731 | ||
15732 | ||
15733 | # Check whether --with-linux-obj was given. | |
15734 | if test "${with_linux_obj+set}" = set; then : | |
15735 | withval=$with_linux_obj; kernelbuild="$withval" | |
15736 | fi | |
15737 | ||
15738 | ||
15739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
15740 | $as_echo_n "checking kernel source directory... " >&6; } | |
15741 | if test -z "$kernelsrc"; then | |
15742 | if test -e "/lib/modules/$(uname -r)/source"; then | |
15743 | headersdir="/lib/modules/$(uname -r)/source" | |
15744 | sourcelink=$(readlink -f "$headersdir") | |
15745 | elif test -e "/lib/modules/$(uname -r)/build"; then | |
15746 | headersdir="/lib/modules/$(uname -r)/build" | |
15747 | sourcelink=$(readlink -f "$headersdir") | |
15748 | else | |
15749 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
15750 | /usr/src/linux-* \ | |
15751 | 2>/dev/null | grep -v obj | tail -1) | |
15752 | fi | |
15753 | ||
15754 | if test -n "$sourcelink" && test -e ${sourcelink}; then | |
15755 | kernelsrc=`readlink -f ${sourcelink}` | |
15756 | else | |
15757 | kernelsrc="Not found" | |
15758 | fi | |
15759 | else | |
15760 | if test "$kernelsrc" = "NONE"; then | |
15761 | kernsrcver=NONE | |
15762 | fi | |
86e3c28a | 15763 | withlinux=yes |
70e083d2 TG |
15764 | fi |
15765 | ||
15766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
15767 | $as_echo "$kernelsrc" >&6; } | |
15768 | if test ! -d "$kernelsrc"; then | |
15769 | as_fn_error $? " | |
15770 | *** Please make sure the kernel devel package for your distribution | |
15771 | *** is installed and then try again. If that fails, you can specify the | |
15772 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
15773 | fi | |
15774 | ||
15775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
15776 | $as_echo_n "checking kernel build directory... " >&6; } | |
15777 | if test -z "$kernelbuild"; then | |
86e3c28a | 15778 | if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then |
70e083d2 TG |
15779 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` |
15780 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then | |
15781 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
15782 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then | |
15783 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
15784 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then | |
15785 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
15786 | else | |
15787 | kernelbuild=${kernelsrc} | |
15788 | fi | |
15789 | fi | |
15790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
15791 | $as_echo "$kernelbuild" >&6; } | |
15792 | ||
15793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
15794 | $as_echo_n "checking kernel source version... " >&6; } | |
15795 | utsrelease1=$kernelbuild/include/linux/version.h | |
15796 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
15797 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
15798 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then | |
15799 | utsrelease=linux/version.h | |
15800 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then | |
15801 | utsrelease=linux/utsrelease.h | |
15802 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then | |
15803 | utsrelease=generated/utsrelease.h | |
15804 | fi | |
15805 | ||
15806 | if test "$utsrelease"; then | |
15807 | kernsrcver=`(echo "#include <$utsrelease>"; | |
15808 | echo "kernsrcver=UTS_RELEASE") | | |
15809 | cpp -I $kernelbuild/include | | |
15810 | grep "^kernsrcver=" | cut -d \" -f 2` | |
15811 | ||
15812 | if test -z "$kernsrcver"; then | |
15813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
15814 | $as_echo "Not found" >&6; } | |
15815 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
15816 | fi | |
15817 | else | |
15818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
15819 | $as_echo "Not found" >&6; } | |
15820 | if test "x$enable_linux_builtin" != xyes; then | |
15821 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
15822 | else | |
15823 | as_fn_error $? " | |
15824 | *** Cannot find UTS_RELEASE definition. | |
15825 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
15826 | fi | |
15827 | fi | |
15828 | ||
15829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
15830 | $as_echo "$kernsrcver" >&6; } | |
15831 | ||
15832 | LINUX=${kernelsrc} | |
15833 | LINUX_OBJ=${kernelbuild} | |
15834 | LINUX_VERSION=${kernsrcver} | |
15835 | ||
15836 | ||
15837 | ||
15838 | ||
15839 | ||
15840 | ||
15841 | modpost=$LINUX/scripts/Makefile.modpost | |
15842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
15843 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
15844 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then | |
15845 | if grep -q Modules.symvers $modpost; then | |
15846 | LINUX_SYMBOLS=Modules.symvers | |
15847 | else | |
15848 | LINUX_SYMBOLS=Module.symvers | |
15849 | fi | |
15850 | ||
15851 | if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then | |
15852 | as_fn_error $? " | |
15853 | *** Please make sure the kernel devel package for your distribution | |
15854 | *** is installed. If you are building with a custom kernel, make sure the | |
15855 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
15856 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
15857 | fi | |
15858 | else | |
15859 | LINUX_SYMBOLS=NONE | |
15860 | fi | |
15861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
15862 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
15863 | ||
15864 | ||
15865 | ||
15866 | ||
15867 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
15868 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
15869 | fi | |
15870 | ||
15871 | ||
15872 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes" | |
15873 | ||
15874 | ||
15875 | ||
15876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5 | |
15877 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
15878 | # Check whether --enable-debug was given. | |
15879 | if test "${enable_debug+set}" = set; then : | |
15880 | enableval=$enable_debug; | |
15881 | else | |
15882 | enable_debug=no | |
15883 | fi | |
15884 | ||
15885 | ||
15886 | if test "x$enable_debug" = xyes; then : | |
15887 | ||
15888 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" | |
15889 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
15890 | DEBUG_SPL="_with_debug" | |
15891 | ||
15892 | else | |
15893 | ||
15894 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" | |
15895 | DEBUG_CFLAGS="-DNDEBUG" | |
15896 | DEBUG_SPL="_without_debug" | |
15897 | ||
15898 | fi | |
15899 | ||
15900 | ||
15901 | ||
15902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 | |
15903 | $as_echo "$enable_debug" >&6; } | |
15904 | ||
15905 | ||
15906 | # Check whether --enable-debug-kmem was given. | |
15907 | if test "${enable_debug_kmem+set}" = set; then : | |
15908 | enableval=$enable_debug_kmem; | |
15909 | else | |
15910 | enable_debug_kmem=no | |
15911 | fi | |
15912 | ||
15913 | ||
15914 | if test "x$enable_debug_kmem" = xyes; then : | |
15915 | ||
15916 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" | |
15917 | DEBUG_KMEM="_with_debug_kmem" | |
15918 | ||
15919 | $as_echo "#define DEBUG_KMEM 1" >>confdefs.h | |
15920 | ||
15921 | ||
15922 | else | |
15923 | ||
15924 | DEBUG_KMEM="_without_debug_kmem" | |
15925 | ||
15926 | fi | |
15927 | ||
15928 | ||
15929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5 | |
15930 | $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; } | |
15931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5 | |
15932 | $as_echo "$enable_debug_kmem" >&6; } | |
15933 | ||
15934 | ||
15935 | # Check whether --enable-debug-kmem-tracking was given. | |
15936 | if test "${enable_debug_kmem_tracking+set}" = set; then : | |
15937 | enableval=$enable_debug_kmem_tracking; | |
15938 | else | |
15939 | enable_debug_kmem_tracking=no | |
15940 | fi | |
15941 | ||
15942 | ||
15943 | if test "x$enable_debug_kmem_tracking" = xyes; then : | |
15944 | ||
15945 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING" | |
15946 | DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking" | |
15947 | ||
15948 | $as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h | |
15949 | ||
15950 | ||
15951 | else | |
15952 | ||
15953 | DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking" | |
15954 | ||
15955 | fi | |
15956 | ||
15957 | ||
15958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5 | |
15959 | $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; } | |
15960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5 | |
15961 | $as_echo "$enable_debug_kmem_tracking" >&6; } | |
15962 | ||
15963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
15964 | $as_echo_n "checking whether modules can be built... " >&6; } | |
15965 | ||
15966 | ||
15967 | cat confdefs.h - <<_ACEOF >conftest.c | |
15968 | ||
15969 | ||
15970 | int | |
15971 | main (void) | |
15972 | { | |
15973 | ||
15974 | ; | |
15975 | return 0; | |
15976 | } | |
15977 | ||
15978 | _ACEOF | |
15979 | ||
15980 | ||
15981 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15982 | echo "obj-m := conftest.o" >build/Makefile | |
15983 | modpost_flag='' | |
15984 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15985 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15986 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15987 | (eval $ac_try) 2>&5 | |
15988 | ac_status=$? | |
15989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15990 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15991 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15992 | (eval $ac_try) 2>&5 | |
15993 | ac_status=$? | |
15994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15995 | test $ac_status = 0; }; }; then : | |
15996 | ||
15997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15998 | $as_echo "yes" >&6; } | |
15999 | ||
16000 | else | |
16001 | $as_echo "$as_me: failed program was:" >&5 | |
16002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16003 | ||
16004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16005 | $as_echo "no" >&6; } | |
16006 | if test "x$enable_linux_builtin" != xyes; then | |
16007 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
16008 | else | |
16009 | as_fn_error $? " | |
16010 | *** Unable to build an empty module. | |
16011 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
16012 | fi | |
16013 | ||
16014 | ||
16015 | ||
16016 | fi | |
16017 | rm -Rf build | |
16018 | ||
16019 | ||
16020 | ||
16021 | if test "x$cross_compiling" != xyes; then : | |
16022 | ||
16023 | if test "$cross_compiling" = yes; then : | |
16024 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16025 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16026 | as_fn_error $? "cannot run test program while cross compiling | |
16027 | See \`config.log' for more details" "$LINENO" 5; } | |
16028 | else | |
16029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16030 | /* end confdefs.h. */ | |
16031 | ||
16032 | ||
16033 | #include "$LINUX/include/linux/license.h" | |
16034 | ||
16035 | int | |
16036 | main () | |
16037 | { | |
16038 | ||
16039 | return !license_is_gpl_compatible( | |
16040 | "$SPL_META_LICENSE"); | |
16041 | ||
16042 | ; | |
16043 | return 0; | |
16044 | } | |
16045 | ||
16046 | _ACEOF | |
16047 | if ac_fn_c_try_run "$LINENO"; then : | |
16048 | ||
16049 | ||
16050 | $as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
16051 | ||
16052 | ||
16053 | fi | |
16054 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16055 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16056 | fi | |
16057 | ||
16058 | ||
16059 | fi | |
16060 | ||
16061 | ||
16062 | # Check whether --enable-atomic-spinlocks was given. | |
16063 | if test "${enable_atomic_spinlocks+set}" = set; then : | |
16064 | enableval=$enable_atomic_spinlocks; | |
16065 | else | |
16066 | enable_atomic_spinlocks=check | |
16067 | fi | |
16068 | ||
16069 | ||
16070 | ||
16071 | ||
16072 | cat confdefs.h - <<_ACEOF >conftest.c | |
16073 | ||
16074 | ||
16075 | #include <linux/fs.h> | |
16076 | ||
16077 | int | |
16078 | main (void) | |
16079 | { | |
16080 | ||
16081 | atomic64_t *ptr __attribute__ ((unused)); | |
16082 | ||
16083 | ; | |
16084 | return 0; | |
16085 | } | |
16086 | ||
16087 | _ACEOF | |
16088 | ||
16089 | ||
16090 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16091 | echo "obj-m := conftest.o" >build/Makefile | |
16092 | modpost_flag='' | |
16093 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16094 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16095 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16096 | (eval $ac_try) 2>&5 | |
16097 | ac_status=$? | |
16098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16099 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16100 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16101 | (eval $ac_try) 2>&5 | |
16102 | ac_status=$? | |
16103 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16104 | test $ac_status = 0; }; }; then : | |
16105 | ||
16106 | have_atomic64_t=yes | |
16107 | ||
16108 | $as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h | |
16109 | ||
16110 | ||
16111 | else | |
16112 | $as_echo "$as_me: failed program was:" >&5 | |
16113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16114 | ||
16115 | have_atomic64_t=no | |
16116 | ||
16117 | ||
16118 | ||
16119 | fi | |
16120 | rm -Rf build | |
16121 | ||
16122 | ||
16123 | ||
16124 | if test "x$enable_atomic_spinlocks" = xcheck; then : | |
16125 | ||
16126 | if test "x$have_atomic64_t" = xyes; then : | |
16127 | ||
16128 | enable_atomic_spinlocks=no | |
16129 | ||
16130 | else | |
16131 | ||
16132 | enable_atomic_spinlocks=yes | |
16133 | ||
16134 | fi | |
16135 | ||
16136 | fi | |
16137 | ||
16138 | if test "x$enable_atomic_spinlocks" = xyes; then : | |
16139 | ||
16140 | ||
16141 | $as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h | |
16142 | ||
16143 | ||
16144 | else | |
16145 | ||
16146 | if test "x$have_atomic64_t" = xno; then : | |
16147 | ||
16148 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16149 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16150 | as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable | |
16151 | See \`config.log' for more details" "$LINENO" 5; } | |
16152 | ||
16153 | fi | |
16154 | ||
16155 | fi | |
16156 | ||
16157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5 | |
16158 | $as_echo_n "checking whether atomic types use spinlocks... " >&6; } | |
16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5 | |
16160 | $as_echo "$enable_atomic_spinlocks" >&6; } | |
16161 | ||
16162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5 | |
16163 | $as_echo_n "checking whether kernel defines atomic64_t... " >&6; } | |
16164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5 | |
16165 | $as_echo "$have_atomic64_t" >&6; } | |
16166 | ||
16167 | ||
16168 | tmp_flags="$EXTRA_KCFLAGS" | |
16169 | EXTRA_KCFLAGS="-Werror" | |
16170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5 | |
16171 | $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; } | |
16172 | ||
16173 | ||
16174 | cat confdefs.h - <<_ACEOF >conftest.c | |
16175 | ||
16176 | ||
16177 | #include <linux/mm.h> | |
16178 | ||
16179 | int shrinker_cb(int nr_to_scan, gfp_t gfp_mask); | |
16180 | ||
16181 | int | |
16182 | main (void) | |
16183 | { | |
16184 | ||
16185 | struct shrinker cache_shrinker = { | |
16186 | .shrink = shrinker_cb, | |
16187 | .seeks = DEFAULT_SEEKS, | |
16188 | }; | |
16189 | register_shrinker(&cache_shrinker); | |
16190 | ||
16191 | ; | |
16192 | return 0; | |
16193 | } | |
16194 | ||
16195 | _ACEOF | |
16196 | ||
16197 | ||
16198 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16199 | echo "obj-m := conftest.o" >build/Makefile | |
16200 | modpost_flag='' | |
16201 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16202 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
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; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16208 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16209 | (eval $ac_try) 2>&5 | |
16210 | ac_status=$? | |
16211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16212 | test $ac_status = 0; }; }; then : | |
16213 | ||
16214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16215 | $as_echo "yes" >&6; } | |
16216 | ||
16217 | $as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h | |
16218 | ||
16219 | ||
16220 | else | |
16221 | $as_echo "$as_me: failed program was:" >&5 | |
16222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16223 | ||
16224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16225 | $as_echo "no" >&6; } | |
16226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5 | |
16227 | $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; } | |
16228 | ||
16229 | ||
16230 | cat confdefs.h - <<_ACEOF >conftest.c | |
16231 | ||
16232 | ||
16233 | #include <linux/mm.h> | |
16234 | ||
16235 | int shrinker_cb(struct shrinker *, int nr_to_scan, | |
16236 | gfp_t gfp_mask); | |
16237 | ||
16238 | int | |
16239 | main (void) | |
16240 | { | |
16241 | ||
16242 | struct shrinker cache_shrinker = { | |
16243 | .shrink = shrinker_cb, | |
16244 | .seeks = DEFAULT_SEEKS, | |
16245 | }; | |
16246 | register_shrinker(&cache_shrinker); | |
16247 | ||
16248 | ; | |
16249 | return 0; | |
16250 | } | |
16251 | ||
16252 | _ACEOF | |
16253 | ||
16254 | ||
16255 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16256 | echo "obj-m := conftest.o" >build/Makefile | |
16257 | modpost_flag='' | |
16258 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16259 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16260 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16261 | (eval $ac_try) 2>&5 | |
16262 | ac_status=$? | |
16263 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16264 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16265 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16266 | (eval $ac_try) 2>&5 | |
16267 | ac_status=$? | |
16268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16269 | test $ac_status = 0; }; }; then : | |
16270 | ||
16271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16272 | $as_echo "yes" >&6; } | |
16273 | ||
16274 | $as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h | |
16275 | ||
16276 | ||
16277 | else | |
16278 | $as_echo "$as_me: failed program was:" >&5 | |
16279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16280 | ||
16281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16282 | $as_echo "no" >&6; } | |
16283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5 | |
16284 | $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; } | |
16285 | ||
16286 | ||
16287 | cat confdefs.h - <<_ACEOF >conftest.c | |
16288 | ||
16289 | ||
16290 | #include <linux/mm.h> | |
16291 | ||
16292 | int shrinker_cb(struct shrinker *, | |
16293 | struct shrink_control *sc); | |
16294 | ||
16295 | int | |
16296 | main (void) | |
16297 | { | |
16298 | ||
16299 | struct shrinker cache_shrinker = { | |
16300 | .shrink = shrinker_cb, | |
16301 | .seeks = DEFAULT_SEEKS, | |
16302 | }; | |
16303 | register_shrinker(&cache_shrinker); | |
16304 | ||
16305 | ; | |
16306 | return 0; | |
16307 | } | |
16308 | ||
16309 | _ACEOF | |
16310 | ||
16311 | ||
16312 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16313 | echo "obj-m := conftest.o" >build/Makefile | |
16314 | modpost_flag='' | |
16315 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16316 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16317 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16318 | (eval $ac_try) 2>&5 | |
16319 | ac_status=$? | |
16320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16321 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16322 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16323 | (eval $ac_try) 2>&5 | |
16324 | ac_status=$? | |
16325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16326 | test $ac_status = 0; }; }; then : | |
16327 | ||
16328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16329 | $as_echo "yes" >&6; } | |
16330 | ||
16331 | $as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h | |
16332 | ||
16333 | ||
16334 | else | |
16335 | $as_echo "$as_me: failed program was:" >&5 | |
16336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16337 | ||
16338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16339 | $as_echo "no" >&6; } | |
16340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5 | |
16341 | $as_echo_n "checking whether ->count_objects callback exists... " >&6; } | |
16342 | ||
16343 | ||
16344 | cat confdefs.h - <<_ACEOF >conftest.c | |
16345 | ||
16346 | ||
16347 | #include <linux/mm.h> | |
16348 | ||
16349 | unsigned long shrinker_cb( | |
16350 | struct shrinker *, | |
16351 | struct shrink_control *sc); | |
16352 | ||
16353 | int | |
16354 | main (void) | |
16355 | { | |
16356 | ||
16357 | struct shrinker cache_shrinker = { | |
16358 | .count_objects = shrinker_cb, | |
16359 | .scan_objects = shrinker_cb, | |
16360 | .seeks = DEFAULT_SEEKS, | |
16361 | }; | |
16362 | register_shrinker(&cache_shrinker); | |
16363 | ||
16364 | ; | |
16365 | return 0; | |
16366 | } | |
16367 | ||
16368 | _ACEOF | |
16369 | ||
16370 | ||
16371 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16372 | echo "obj-m := conftest.o" >build/Makefile | |
16373 | modpost_flag='' | |
16374 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16375 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16376 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16377 | (eval $ac_try) 2>&5 | |
16378 | ac_status=$? | |
16379 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16380 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16381 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16382 | (eval $ac_try) 2>&5 | |
16383 | ac_status=$? | |
16384 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16385 | test $ac_status = 0; }; }; then : | |
16386 | ||
16387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16388 | $as_echo "yes" >&6; } | |
16389 | ||
16390 | $as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h | |
16391 | ||
16392 | ||
16393 | else | |
16394 | $as_echo "$as_me: failed program was:" >&5 | |
16395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16396 | ||
16397 | as_fn_error $? "error" "$LINENO" 5 | |
16398 | ||
16399 | ||
16400 | ||
16401 | fi | |
16402 | rm -Rf build | |
16403 | ||
16404 | ||
16405 | ||
16406 | ||
16407 | ||
16408 | fi | |
16409 | rm -Rf build | |
16410 | ||
16411 | ||
16412 | ||
16413 | ||
16414 | ||
16415 | fi | |
16416 | rm -Rf build | |
16417 | ||
16418 | ||
16419 | ||
16420 | ||
16421 | ||
16422 | fi | |
16423 | rm -Rf build | |
16424 | ||
16425 | ||
16426 | EXTRA_KCFLAGS="$tmp_flags" | |
16427 | ||
16428 | ||
16429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5 | |
16430 | $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; } | |
16431 | ||
16432 | ||
16433 | cat confdefs.h - <<_ACEOF >conftest.c | |
16434 | ||
16435 | ||
16436 | #include <linux/sysctl.h> | |
16437 | ||
16438 | int | |
16439 | main (void) | |
16440 | { | |
16441 | ||
16442 | struct ctl_table ctl __attribute__ ((unused)); | |
16443 | ctl.ctl_name = 0; | |
16444 | ||
16445 | ; | |
16446 | return 0; | |
16447 | } | |
16448 | ||
16449 | _ACEOF | |
16450 | ||
16451 | ||
16452 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16453 | echo "obj-m := conftest.o" >build/Makefile | |
16454 | modpost_flag='' | |
16455 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16456 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16457 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16458 | (eval $ac_try) 2>&5 | |
16459 | ac_status=$? | |
16460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16461 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16462 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16463 | (eval $ac_try) 2>&5 | |
16464 | ac_status=$? | |
16465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16466 | test $ac_status = 0; }; }; then : | |
16467 | ||
16468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16469 | $as_echo "yes" >&6; } | |
16470 | ||
16471 | $as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h | |
16472 | ||
16473 | ||
16474 | else | |
16475 | $as_echo "$as_me: failed program was:" >&5 | |
16476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16477 | ||
16478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16479 | $as_echo "no" >&6; } | |
16480 | ||
16481 | ||
16482 | ||
16483 | fi | |
16484 | rm -Rf build | |
16485 | ||
16486 | ||
16487 | ||
16488 | ||
16489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5 | |
16490 | $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; } | |
16491 | ||
16492 | ||
16493 | cat confdefs.h - <<_ACEOF >conftest.c | |
16494 | ||
16495 | ||
16496 | #if defined(CONFIG_TRIM_UNUSED_KSYMS) | |
16497 | #error CONFIG_TRIM_UNUSED_KSYMS not defined | |
16498 | #endif | |
16499 | ||
16500 | int | |
16501 | main (void) | |
16502 | { | |
16503 | ||
16504 | ; | |
16505 | return 0; | |
16506 | } | |
16507 | ||
16508 | _ACEOF | |
16509 | ||
16510 | ||
16511 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16512 | echo "obj-m := conftest.o" >build/Makefile | |
16513 | modpost_flag='' | |
16514 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16515 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16516 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16517 | (eval $ac_try) 2>&5 | |
16518 | ac_status=$? | |
16519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16520 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16521 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16522 | (eval $ac_try) 2>&5 | |
16523 | ac_status=$? | |
16524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16525 | test $ac_status = 0; }; }; then : | |
16526 | ||
16527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16528 | $as_echo "yes" >&6; } | |
16529 | ||
16530 | else | |
16531 | $as_echo "$as_me: failed program was:" >&5 | |
16532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16533 | ||
16534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16535 | $as_echo "no" >&6; } | |
16536 | as_fn_error $? " | |
16537 | *** This kernel has unused symbols trimming enabled, please disable. | |
16538 | *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." "$LINENO" 5 | |
16539 | ||
16540 | ||
16541 | ||
16542 | fi | |
16543 | rm -Rf build | |
16544 | ||
16545 | ||
16546 | ||
16547 | ||
16548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5 | |
16549 | $as_echo_n "checking whether PDE_DATA() is available... " >&6; } | |
16550 | ||
16551 | ||
16552 | ||
16553 | cat confdefs.h - <<_ACEOF >conftest.c | |
16554 | ||
16555 | ||
16556 | #include <linux/proc_fs.h> | |
16557 | ||
16558 | int | |
16559 | main (void) | |
16560 | { | |
16561 | ||
16562 | PDE_DATA(NULL); | |
16563 | ||
16564 | ; | |
16565 | return 0; | |
16566 | } | |
16567 | ||
16568 | _ACEOF | |
16569 | ||
16570 | ||
16571 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16572 | echo "obj-m := conftest.o" >build/Makefile | |
16573 | modpost_flag='' | |
16574 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16575 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16576 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16577 | (eval $ac_try) 2>&5 | |
16578 | ac_status=$? | |
16579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16580 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16581 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16582 | (eval $ac_try) 2>&5 | |
16583 | ac_status=$? | |
16584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16585 | test $ac_status = 0; }; }; then : | |
16586 | rc=0 | |
16587 | else | |
16588 | $as_echo "$as_me: failed program was:" >&5 | |
16589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16590 | rc=1 | |
16591 | ||
16592 | ||
16593 | fi | |
16594 | rm -Rf build | |
16595 | ||
16596 | ||
16597 | if test $rc -ne 0; then : | |
16598 | ||
16599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16600 | $as_echo "no" >&6; } | |
16601 | ||
16602 | else | |
16603 | if test "x$enable_linux_builtin" != xyes; then | |
16604 | ||
16605 | grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \ | |
16606 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
16607 | rc=$? | |
16608 | if test $rc -ne 0; then | |
16609 | export=0 | |
16610 | for file in ; do | |
16611 | grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \ | |
16612 | "$LINUX_OBJ/$file" 2>/dev/null | |
16613 | rc=$? | |
16614 | if test $rc -eq 0; then | |
16615 | export=1 | |
16616 | break; | |
16617 | fi | |
16618 | done | |
16619 | if test $export -eq 0; then : | |
16620 | rc=1 | |
16621 | else : | |
16622 | rc=0 | |
16623 | fi | |
16624 | else : | |
16625 | rc=0 | |
16626 | fi | |
16627 | ||
16628 | fi | |
16629 | if test $rc -ne 0; then : | |
16630 | ||
16631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16632 | $as_echo "no" >&6; } | |
16633 | ||
16634 | else : | |
16635 | ||
16636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16637 | $as_echo "yes" >&6; } | |
16638 | ||
16639 | $as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h | |
16640 | ||
16641 | ||
16642 | fi | |
16643 | fi | |
16644 | ||
16645 | ||
16646 | tmp_flags="$EXTRA_KCFLAGS" | |
16647 | EXTRA_KCFLAGS="-Werror" | |
16648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5 | |
16649 | $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; } | |
16650 | ||
16651 | ||
16652 | cat confdefs.h - <<_ACEOF >conftest.c | |
16653 | ||
16654 | ||
16655 | #include <linux/spinlock.h> | |
16656 | #include <linux/fs_struct.h> | |
16657 | #include <linux/path.h> | |
16658 | void (*const set_fs_pwd_func) | |
16659 | (struct fs_struct *, const struct path *) | |
16660 | = set_fs_pwd; | |
16661 | ||
16662 | int | |
16663 | main (void) | |
16664 | { | |
16665 | ||
16666 | return 0; | |
16667 | ||
16668 | ; | |
16669 | return 0; | |
16670 | } | |
16671 | ||
16672 | _ACEOF | |
16673 | ||
16674 | ||
16675 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16676 | echo "obj-m := conftest.o" >build/Makefile | |
16677 | modpost_flag='' | |
16678 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16679 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16680 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16681 | (eval $ac_try) 2>&5 | |
16682 | ac_status=$? | |
16683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16684 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16685 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16686 | (eval $ac_try) 2>&5 | |
16687 | ac_status=$? | |
16688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16689 | test $ac_status = 0; }; }; then : | |
16690 | ||
16691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16692 | $as_echo "yes" >&6; } | |
16693 | ||
16694 | $as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h | |
16695 | ||
16696 | ||
16697 | else | |
16698 | $as_echo "$as_me: failed program was:" >&5 | |
16699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16700 | ||
16701 | ||
16702 | ||
16703 | cat confdefs.h - <<_ACEOF >conftest.c | |
16704 | ||
16705 | ||
16706 | #include <linux/spinlock.h> | |
16707 | #include <linux/fs_struct.h> | |
16708 | #include <linux/path.h> | |
16709 | void (*const set_fs_pwd_func) | |
16710 | (struct fs_struct *, struct path *) | |
16711 | = set_fs_pwd; | |
16712 | ||
16713 | int | |
16714 | main (void) | |
16715 | { | |
16716 | ||
16717 | return 0; | |
16718 | ||
16719 | ; | |
16720 | return 0; | |
16721 | } | |
16722 | ||
16723 | _ACEOF | |
16724 | ||
16725 | ||
16726 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16727 | echo "obj-m := conftest.o" >build/Makefile | |
16728 | modpost_flag='' | |
16729 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16730 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16731 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16732 | (eval $ac_try) 2>&5 | |
16733 | ac_status=$? | |
16734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16735 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16736 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16737 | (eval $ac_try) 2>&5 | |
16738 | ac_status=$? | |
16739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16740 | test $ac_status = 0; }; }; then : | |
16741 | ||
16742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16743 | $as_echo "no" >&6; } | |
16744 | ||
16745 | else | |
16746 | $as_echo "$as_me: failed program was:" >&5 | |
16747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16748 | ||
16749 | as_fn_error $? "unknown" "$LINENO" 5 | |
16750 | ||
16751 | ||
16752 | ||
16753 | fi | |
16754 | rm -Rf build | |
16755 | ||
16756 | ||
16757 | ||
16758 | ||
16759 | ||
16760 | fi | |
16761 | rm -Rf build | |
16762 | ||
16763 | ||
16764 | EXTRA_KCFLAGS="$tmp_flags" | |
16765 | ||
16766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5 | |
16767 | $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; } | |
16768 | ||
16769 | ||
16770 | cat confdefs.h - <<_ACEOF >conftest.c | |
16771 | ||
16772 | ||
16773 | #include <linux/fs.h> | |
16774 | ||
16775 | int | |
16776 | main (void) | |
16777 | { | |
16778 | ||
16779 | vfs_unlink((struct inode *) NULL, (struct dentry *) NULL); | |
16780 | ||
16781 | ; | |
16782 | return 0; | |
16783 | } | |
16784 | ||
16785 | _ACEOF | |
16786 | ||
16787 | ||
16788 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16789 | echo "obj-m := conftest.o" >build/Makefile | |
16790 | modpost_flag='' | |
16791 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16792 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16793 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16794 | (eval $ac_try) 2>&5 | |
16795 | ac_status=$? | |
16796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16797 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16798 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16799 | (eval $ac_try) 2>&5 | |
16800 | ac_status=$? | |
16801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16802 | test $ac_status = 0; }; }; then : | |
16803 | ||
16804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16805 | $as_echo "yes" >&6; } | |
16806 | ||
16807 | $as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h | |
16808 | ||
16809 | ||
16810 | else | |
16811 | $as_echo "$as_me: failed program was:" >&5 | |
16812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16813 | ||
16814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16815 | $as_echo "no" >&6; } | |
16816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5 | |
16817 | $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; } | |
16818 | ||
16819 | ||
16820 | cat confdefs.h - <<_ACEOF >conftest.c | |
16821 | ||
16822 | ||
16823 | #include <linux/fs.h> | |
16824 | ||
16825 | int | |
16826 | main (void) | |
16827 | { | |
16828 | ||
16829 | vfs_unlink((struct inode *) NULL, | |
16830 | (struct dentry *) NULL, | |
16831 | (struct inode **) NULL); | |
16832 | ||
16833 | ; | |
16834 | return 0; | |
16835 | } | |
16836 | ||
16837 | _ACEOF | |
16838 | ||
16839 | ||
16840 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16841 | echo "obj-m := conftest.o" >build/Makefile | |
16842 | modpost_flag='' | |
16843 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16844 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16845 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16846 | (eval $ac_try) 2>&5 | |
16847 | ac_status=$? | |
16848 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16849 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16850 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16851 | (eval $ac_try) 2>&5 | |
16852 | ac_status=$? | |
16853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16854 | test $ac_status = 0; }; }; then : | |
16855 | ||
16856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16857 | $as_echo "yes" >&6; } | |
16858 | ||
16859 | $as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h | |
16860 | ||
16861 | ||
16862 | else | |
16863 | $as_echo "$as_me: failed program was:" >&5 | |
16864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16865 | ||
16866 | as_fn_error $? "no" "$LINENO" 5 | |
16867 | ||
16868 | ||
16869 | ||
16870 | fi | |
16871 | rm -Rf build | |
16872 | ||
16873 | ||
16874 | ||
16875 | ||
16876 | ||
16877 | ||
16878 | fi | |
16879 | rm -Rf build | |
16880 | ||
16881 | ||
16882 | ||
16883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5 | |
16884 | $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; } | |
16885 | ||
16886 | ||
16887 | cat confdefs.h - <<_ACEOF >conftest.c | |
16888 | ||
16889 | ||
16890 | #include <linux/fs.h> | |
16891 | ||
16892 | int | |
16893 | main (void) | |
16894 | { | |
16895 | ||
16896 | vfs_rename((struct inode *) NULL, (struct dentry *) NULL, | |
16897 | (struct inode *) NULL, (struct dentry *) NULL); | |
16898 | ||
16899 | ; | |
16900 | return 0; | |
16901 | } | |
16902 | ||
16903 | _ACEOF | |
16904 | ||
16905 | ||
16906 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16907 | echo "obj-m := conftest.o" >build/Makefile | |
16908 | modpost_flag='' | |
16909 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16910 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16911 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16912 | (eval $ac_try) 2>&5 | |
16913 | ac_status=$? | |
16914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16915 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16916 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16917 | (eval $ac_try) 2>&5 | |
16918 | ac_status=$? | |
16919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16920 | test $ac_status = 0; }; }; then : | |
16921 | ||
16922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16923 | $as_echo "yes" >&6; } | |
16924 | ||
16925 | $as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h | |
16926 | ||
16927 | ||
16928 | else | |
16929 | $as_echo "$as_me: failed program was:" >&5 | |
16930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16931 | ||
16932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16933 | $as_echo "no" >&6; } | |
16934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5 | |
16935 | $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; } | |
16936 | ||
16937 | ||
16938 | cat confdefs.h - <<_ACEOF >conftest.c | |
16939 | ||
16940 | ||
16941 | #include <linux/fs.h> | |
16942 | ||
16943 | int | |
16944 | main (void) | |
16945 | { | |
16946 | ||
16947 | vfs_rename((struct inode *) NULL, | |
16948 | (struct dentry *) NULL, | |
16949 | (struct inode *) NULL, | |
16950 | (struct dentry *) NULL, | |
16951 | (struct inode **) NULL); | |
16952 | ||
16953 | ; | |
16954 | return 0; | |
16955 | } | |
16956 | ||
16957 | _ACEOF | |
16958 | ||
16959 | ||
16960 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16961 | echo "obj-m := conftest.o" >build/Makefile | |
16962 | modpost_flag='' | |
16963 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16964 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16965 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16966 | (eval $ac_try) 2>&5 | |
16967 | ac_status=$? | |
16968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16969 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16970 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16971 | (eval $ac_try) 2>&5 | |
16972 | ac_status=$? | |
16973 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16974 | test $ac_status = 0; }; }; then : | |
16975 | ||
16976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16977 | $as_echo "yes" >&6; } | |
16978 | ||
16979 | $as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h | |
16980 | ||
16981 | ||
16982 | else | |
16983 | $as_echo "$as_me: failed program was:" >&5 | |
16984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16985 | ||
16986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16987 | $as_echo "no" >&6; } | |
16988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5 | |
16989 | $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; } | |
16990 | ||
16991 | ||
16992 | cat confdefs.h - <<_ACEOF >conftest.c | |
16993 | ||
16994 | ||
16995 | #include <linux/fs.h> | |
16996 | ||
16997 | int | |
16998 | main (void) | |
16999 | { | |
17000 | ||
17001 | vfs_rename((struct inode *) NULL, | |
17002 | (struct dentry *) NULL, | |
17003 | (struct inode *) NULL, | |
17004 | (struct dentry *) NULL, | |
17005 | (struct inode **) NULL, | |
17006 | (unsigned int) 0); | |
17007 | ||
17008 | ; | |
17009 | return 0; | |
17010 | } | |
17011 | ||
17012 | _ACEOF | |
17013 | ||
17014 | ||
17015 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17016 | echo "obj-m := conftest.o" >build/Makefile | |
17017 | modpost_flag='' | |
17018 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17019 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17020 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17021 | (eval $ac_try) 2>&5 | |
17022 | ac_status=$? | |
17023 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17024 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17025 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17026 | (eval $ac_try) 2>&5 | |
17027 | ac_status=$? | |
17028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17029 | test $ac_status = 0; }; }; then : | |
17030 | ||
17031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17032 | $as_echo "yes" >&6; } | |
17033 | ||
17034 | $as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h | |
17035 | ||
17036 | ||
17037 | else | |
17038 | $as_echo "$as_me: failed program was:" >&5 | |
17039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17040 | ||
17041 | as_fn_error $? "no" "$LINENO" 5 | |
17042 | ||
17043 | ||
17044 | ||
17045 | fi | |
17046 | rm -Rf build | |
17047 | ||
17048 | ||
17049 | ||
17050 | ||
17051 | ||
17052 | fi | |
17053 | rm -Rf build | |
17054 | ||
17055 | ||
17056 | ||
17057 | ||
17058 | ||
17059 | fi | |
17060 | rm -Rf build | |
17061 | ||
17062 | ||
17063 | ||
17064 | ||
17065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5 | |
17066 | $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; } | |
17067 | ||
17068 | ||
17069 | cat confdefs.h - <<_ACEOF >conftest.c | |
17070 | ||
17071 | ||
17072 | #include <linux/fs.h> | |
17073 | ||
17074 | int | |
17075 | main (void) | |
17076 | { | |
17077 | ||
17078 | vfs_fsync(NULL, 0); | |
17079 | ||
17080 | ; | |
17081 | return 0; | |
17082 | } | |
17083 | ||
17084 | _ACEOF | |
17085 | ||
17086 | ||
17087 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17088 | echo "obj-m := conftest.o" >build/Makefile | |
17089 | modpost_flag='' | |
17090 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17091 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17092 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17093 | (eval $ac_try) 2>&5 | |
17094 | ac_status=$? | |
17095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17096 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17097 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17098 | (eval $ac_try) 2>&5 | |
17099 | ac_status=$? | |
17100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17101 | test $ac_status = 0; }; }; then : | |
17102 | ||
17103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17104 | $as_echo "yes" >&6; } | |
17105 | ||
17106 | $as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h | |
17107 | ||
17108 | ||
17109 | else | |
17110 | $as_echo "$as_me: failed program was:" >&5 | |
17111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17112 | ||
17113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17114 | $as_echo "no" >&6; } | |
17115 | ||
17116 | ||
17117 | ||
17118 | fi | |
17119 | rm -Rf build | |
17120 | ||
17121 | ||
17122 | ||
17123 | ||
17124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5 | |
17125 | $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; } | |
17126 | ||
17127 | ||
17128 | cat confdefs.h - <<_ACEOF >conftest.c | |
17129 | ||
17130 | ||
17131 | #include <linux/fs.h> | |
17132 | ||
17133 | int | |
17134 | main (void) | |
17135 | { | |
17136 | ||
17137 | struct inode_operations ops; | |
17138 | ops.truncate_range = NULL; | |
17139 | ||
17140 | ; | |
17141 | return 0; | |
17142 | } | |
17143 | ||
17144 | _ACEOF | |
17145 | ||
17146 | ||
17147 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17148 | echo "obj-m := conftest.o" >build/Makefile | |
17149 | modpost_flag='' | |
17150 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17151 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17152 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17153 | (eval $ac_try) 2>&5 | |
17154 | ac_status=$? | |
17155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17156 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17157 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17158 | (eval $ac_try) 2>&5 | |
17159 | ac_status=$? | |
17160 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17161 | test $ac_status = 0; }; }; then : | |
17162 | ||
17163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17164 | $as_echo "yes" >&6; } | |
17165 | ||
17166 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h | |
17167 | ||
17168 | ||
17169 | else | |
17170 | $as_echo "$as_me: failed program was:" >&5 | |
17171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17172 | ||
17173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17174 | $as_echo "no" >&6; } | |
17175 | ||
17176 | ||
17177 | ||
17178 | fi | |
17179 | rm -Rf build | |
17180 | ||
17181 | ||
17182 | ||
17183 | ||
17184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5 | |
17185 | $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; } | |
17186 | tmp_flags="$EXTRA_KCFLAGS" | |
17187 | EXTRA_KCFLAGS="-Werror" | |
17188 | ||
17189 | ||
17190 | cat confdefs.h - <<_ACEOF >conftest.c | |
17191 | ||
17192 | ||
17193 | #include <linux/sched.h> | |
17194 | #include <linux/fs_struct.h> | |
17195 | ||
17196 | int | |
17197 | main (void) | |
17198 | { | |
17199 | ||
17200 | static struct fs_struct fs; | |
17201 | spin_lock_init(&fs.lock); | |
17202 | ||
17203 | ; | |
17204 | return 0; | |
17205 | } | |
17206 | ||
17207 | _ACEOF | |
17208 | ||
17209 | ||
17210 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17211 | echo "obj-m := conftest.o" >build/Makefile | |
17212 | modpost_flag='' | |
17213 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17214 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17215 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17216 | (eval $ac_try) 2>&5 | |
17217 | ac_status=$? | |
17218 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17219 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17220 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17221 | (eval $ac_try) 2>&5 | |
17222 | ac_status=$? | |
17223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17224 | test $ac_status = 0; }; }; then : | |
17225 | ||
17226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17227 | $as_echo "yes" >&6; } | |
17228 | ||
17229 | $as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h | |
17230 | ||
17231 | ||
17232 | else | |
17233 | $as_echo "$as_me: failed program was:" >&5 | |
17234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17235 | ||
17236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17237 | $as_echo "no" >&6; } | |
17238 | ||
17239 | ||
17240 | ||
17241 | fi | |
17242 | rm -Rf build | |
17243 | ||
17244 | ||
17245 | EXTRA_KCFLAGS="$tmp_flags" | |
17246 | ||
17247 | ||
17248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5 | |
17249 | $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; } | |
17250 | ||
17251 | ||
17252 | cat confdefs.h - <<_ACEOF >conftest.c | |
17253 | ||
17254 | ||
17255 | #include <linux/uidgid.h> | |
17256 | ||
17257 | int | |
17258 | main (void) | |
17259 | { | |
17260 | ||
17261 | kuid_t userid = KUIDT_INIT(0); | |
17262 | kgid_t groupid = KGIDT_INIT(0); | |
17263 | ||
17264 | ; | |
17265 | return 0; | |
17266 | } | |
17267 | ||
17268 | _ACEOF | |
17269 | ||
17270 | ||
17271 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17272 | echo "obj-m := conftest.o" >build/Makefile | |
17273 | modpost_flag='' | |
17274 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17275 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17276 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17277 | (eval $ac_try) 2>&5 | |
17278 | ac_status=$? | |
17279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17280 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17281 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17282 | (eval $ac_try) 2>&5 | |
17283 | ac_status=$? | |
17284 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17285 | test $ac_status = 0; }; }; then : | |
17286 | ||
17287 | ||
17288 | ||
17289 | cat confdefs.h - <<_ACEOF >conftest.c | |
17290 | ||
17291 | ||
17292 | #include <linux/uidgid.h> | |
17293 | ||
17294 | int | |
17295 | main (void) | |
17296 | { | |
17297 | ||
17298 | kuid_t userid = 0; | |
17299 | kgid_t groupid = 0; | |
17300 | ||
17301 | ; | |
17302 | return 0; | |
17303 | } | |
17304 | ||
17305 | _ACEOF | |
17306 | ||
17307 | ||
17308 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17309 | echo "obj-m := conftest.o" >build/Makefile | |
17310 | modpost_flag='' | |
17311 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17312 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17313 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17314 | (eval $ac_try) 2>&5 | |
17315 | ac_status=$? | |
17316 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17317 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17318 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17319 | (eval $ac_try) 2>&5 | |
17320 | ac_status=$? | |
17321 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17322 | test $ac_status = 0; }; }; then : | |
17323 | ||
17324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5 | |
17325 | $as_echo "yes; optional" >&6; } | |
17326 | ||
17327 | else | |
17328 | $as_echo "$as_me: failed program was:" >&5 | |
17329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17330 | ||
17331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5 | |
17332 | $as_echo "yes; mandatory" >&6; } | |
17333 | ||
17334 | $as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h | |
17335 | ||
17336 | ||
17337 | ||
17338 | ||
17339 | fi | |
17340 | rm -Rf build | |
17341 | ||
17342 | ||
17343 | ||
17344 | else | |
17345 | $as_echo "$as_me: failed program was:" >&5 | |
17346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17347 | ||
17348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17349 | $as_echo "no" >&6; } | |
17350 | ||
17351 | ||
17352 | ||
17353 | fi | |
17354 | rm -Rf build | |
17355 | ||
17356 | ||
17357 | ||
70e083d2 TG |
17358 | |
17359 | ||
17360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
17361 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
17362 | ||
17363 | ||
17364 | cat confdefs.h - <<_ACEOF >conftest.c | |
17365 | ||
17366 | ||
17367 | #include <linux/fs.h> | |
17368 | ||
17369 | int | |
17370 | main (void) | |
17371 | { | |
17372 | ||
17373 | long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL; | |
17374 | struct file_operations fops __attribute__ ((unused)) = { | |
17375 | .fallocate = fallocate, | |
17376 | }; | |
17377 | ||
17378 | ; | |
17379 | return 0; | |
17380 | } | |
17381 | ||
17382 | _ACEOF | |
17383 | ||
17384 | ||
17385 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17386 | echo "obj-m := conftest.o" >build/Makefile | |
17387 | modpost_flag='' | |
17388 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17389 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17390 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17391 | (eval $ac_try) 2>&5 | |
17392 | ac_status=$? | |
17393 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17394 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17395 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17396 | (eval $ac_try) 2>&5 | |
17397 | ac_status=$? | |
17398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17399 | test $ac_status = 0; }; }; then : | |
17400 | ||
17401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17402 | $as_echo "yes" >&6; } | |
17403 | ||
17404 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
17405 | ||
17406 | ||
17407 | else | |
17408 | $as_echo "$as_me: failed program was:" >&5 | |
17409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17410 | ||
17411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17412 | $as_echo "no" >&6; } | |
17413 | ||
17414 | ||
17415 | ||
17416 | fi | |
17417 | rm -Rf build | |
17418 | ||
17419 | ||
17420 | ||
17421 | ||
17422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
17423 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
17424 | ||
17425 | ||
17426 | cat confdefs.h - <<_ACEOF >conftest.c | |
17427 | ||
17428 | ||
17429 | #include <linux/fs.h> | |
17430 | ||
17431 | int | |
17432 | main (void) | |
17433 | { | |
17434 | ||
17435 | long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL; | |
17436 | struct inode_operations fops __attribute__ ((unused)) = { | |
17437 | .fallocate = fallocate, | |
17438 | }; | |
17439 | ||
17440 | ; | |
17441 | return 0; | |
17442 | } | |
17443 | ||
17444 | _ACEOF | |
17445 | ||
17446 | ||
17447 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17448 | echo "obj-m := conftest.o" >build/Makefile | |
17449 | modpost_flag='' | |
17450 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17451 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17452 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17453 | (eval $ac_try) 2>&5 | |
17454 | ac_status=$? | |
17455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17456 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17457 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17458 | (eval $ac_try) 2>&5 | |
17459 | ac_status=$? | |
17460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17461 | test $ac_status = 0; }; }; then : | |
17462 | ||
17463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17464 | $as_echo "yes" >&6; } | |
17465 | ||
17466 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
17467 | ||
17468 | ||
17469 | else | |
17470 | $as_echo "$as_me: failed program was:" >&5 | |
17471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17472 | ||
17473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17474 | $as_echo "no" >&6; } | |
17475 | ||
17476 | ||
17477 | ||
17478 | fi | |
17479 | rm -Rf build | |
17480 | ||
17481 | ||
17482 | ||
17483 | ||
17484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
17485 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
17486 | ||
17487 | ||
17488 | cat confdefs.h - <<_ACEOF >conftest.c | |
17489 | ||
17490 | ||
17491 | #include <linux/fs.h> | |
17492 | ||
17493 | int | |
17494 | main (void) | |
17495 | { | |
17496 | ||
17497 | long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL; | |
17498 | struct file_operations_no_const fops __attribute__ ((unused)) = { | |
17499 | .fallocate = fallocate, | |
17500 | }; | |
17501 | ||
17502 | ; | |
17503 | return 0; | |
17504 | } | |
17505 | ||
17506 | _ACEOF | |
17507 | ||
17508 | ||
17509 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17510 | echo "obj-m := conftest.o" >build/Makefile | |
17511 | modpost_flag='' | |
17512 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17513 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17514 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17515 | (eval $ac_try) 2>&5 | |
17516 | ac_status=$? | |
17517 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17518 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17519 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17520 | (eval $ac_try) 2>&5 | |
17521 | ac_status=$? | |
17522 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17523 | test $ac_status = 0; }; }; then : | |
17524 | ||
17525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17526 | $as_echo "yes" >&6; } | |
17527 | ||
17528 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
17529 | ||
17530 | ||
17531 | else | |
17532 | $as_echo "$as_me: failed program was:" >&5 | |
17533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17534 | ||
17535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17536 | $as_echo "no" >&6; } | |
17537 | ||
17538 | ||
17539 | ||
17540 | fi | |
17541 | rm -Rf build | |
17542 | ||
17543 | ||
17544 | ||
17545 | ||
17546 | ||
17547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5 | |
17548 | $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; } | |
17549 | ||
17550 | ||
17551 | cat confdefs.h - <<_ACEOF >conftest.c | |
17552 | ||
17553 | ||
17554 | #if !defined(CONFIG_ZLIB_INFLATE) && \ | |
17555 | !defined(CONFIG_ZLIB_INFLATE_MODULE) | |
17556 | #error CONFIG_ZLIB_INFLATE not defined | |
17557 | #endif | |
17558 | ||
17559 | int | |
17560 | main (void) | |
17561 | { | |
17562 | ||
17563 | ; | |
17564 | return 0; | |
17565 | } | |
17566 | ||
17567 | _ACEOF | |
17568 | ||
17569 | ||
17570 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17571 | echo "obj-m := conftest.o" >build/Makefile | |
17572 | modpost_flag='' | |
17573 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17574 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17575 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17576 | (eval $ac_try) 2>&5 | |
17577 | ac_status=$? | |
17578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17579 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17580 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17581 | (eval $ac_try) 2>&5 | |
17582 | ac_status=$? | |
17583 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17584 | test $ac_status = 0; }; }; then : | |
17585 | ||
17586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17587 | $as_echo "yes" >&6; } | |
17588 | ||
17589 | else | |
17590 | $as_echo "$as_me: failed program was:" >&5 | |
17591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17592 | ||
17593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17594 | $as_echo "no" >&6; } | |
17595 | as_fn_error $? " | |
17596 | *** This kernel does not include the required zlib inflate support. | |
17597 | *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5 | |
17598 | ||
17599 | ||
17600 | ||
17601 | fi | |
17602 | rm -Rf build | |
17603 | ||
17604 | ||
17605 | ||
17606 | ||
17607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5 | |
17608 | $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; } | |
17609 | ||
17610 | ||
17611 | cat confdefs.h - <<_ACEOF >conftest.c | |
17612 | ||
17613 | ||
17614 | #if !defined(CONFIG_ZLIB_DEFLATE) && \ | |
17615 | !defined(CONFIG_ZLIB_DEFLATE_MODULE) | |
17616 | #error CONFIG_ZLIB_DEFLATE not defined | |
17617 | #endif | |
17618 | ||
17619 | int | |
17620 | main (void) | |
17621 | { | |
17622 | ||
17623 | ; | |
17624 | return 0; | |
17625 | } | |
17626 | ||
17627 | _ACEOF | |
17628 | ||
17629 | ||
17630 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17631 | echo "obj-m := conftest.o" >build/Makefile | |
17632 | modpost_flag='' | |
17633 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17634 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17635 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17636 | (eval $ac_try) 2>&5 | |
17637 | ac_status=$? | |
17638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17639 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17640 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17641 | (eval $ac_try) 2>&5 | |
17642 | ac_status=$? | |
17643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17644 | test $ac_status = 0; }; }; then : | |
17645 | ||
17646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17647 | $as_echo "yes" >&6; } | |
17648 | ||
17649 | else | |
17650 | $as_echo "$as_me: failed program was:" >&5 | |
17651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17652 | ||
17653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17654 | $as_echo "no" >&6; } | |
17655 | as_fn_error $? " | |
17656 | *** This kernel does not include the required zlib deflate support. | |
17657 | *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5 | |
17658 | ||
17659 | ||
17660 | ||
17661 | fi | |
17662 | rm -Rf build | |
17663 | ||
17664 | ||
17665 | ||
17666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5 | |
17667 | $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; } | |
17668 | ||
17669 | ||
17670 | cat confdefs.h - <<_ACEOF >conftest.c | |
17671 | ||
17672 | ||
17673 | #include <linux/zlib.h> | |
17674 | ||
17675 | int | |
17676 | main (void) | |
17677 | { | |
17678 | ||
17679 | return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL); | |
17680 | ||
17681 | ; | |
17682 | return 0; | |
17683 | } | |
17684 | ||
17685 | _ACEOF | |
17686 | ||
17687 | ||
17688 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17689 | echo "obj-m := conftest.o" >build/Makefile | |
17690 | modpost_flag='' | |
17691 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17692 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17693 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17694 | (eval $ac_try) 2>&5 | |
17695 | ac_status=$? | |
17696 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17697 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17698 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17699 | (eval $ac_try) 2>&5 | |
17700 | ac_status=$? | |
17701 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17702 | test $ac_status = 0; }; }; then : | |
17703 | ||
17704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17705 | $as_echo "yes" >&6; } | |
17706 | ||
17707 | $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h | |
17708 | ||
17709 | ||
17710 | else | |
17711 | $as_echo "$as_me: failed program was:" >&5 | |
17712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17713 | ||
17714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17715 | $as_echo "no" >&6; } | |
17716 | ||
17717 | ||
17718 | ||
17719 | fi | |
17720 | rm -Rf build | |
17721 | ||
17722 | ||
17723 | ||
17724 | ||
17725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5 | |
17726 | $as_echo_n "checking whether struct shrink_control exists... " >&6; } | |
17727 | ||
17728 | ||
17729 | cat confdefs.h - <<_ACEOF >conftest.c | |
17730 | ||
17731 | ||
17732 | #include <linux/mm.h> | |
17733 | ||
17734 | int | |
17735 | main (void) | |
17736 | { | |
17737 | ||
17738 | struct shrink_control sc __attribute__ ((unused)); | |
17739 | ||
17740 | sc.nr_to_scan = 0; | |
17741 | sc.gfp_mask = GFP_KERNEL; | |
17742 | ||
17743 | ; | |
17744 | return 0; | |
17745 | } | |
17746 | ||
17747 | _ACEOF | |
17748 | ||
17749 | ||
17750 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17751 | echo "obj-m := conftest.o" >build/Makefile | |
17752 | modpost_flag='' | |
17753 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17754 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17755 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17756 | (eval $ac_try) 2>&5 | |
17757 | ac_status=$? | |
17758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17759 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17760 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17761 | (eval $ac_try) 2>&5 | |
17762 | ac_status=$? | |
17763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17764 | test $ac_status = 0; }; }; then : | |
17765 | ||
17766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17767 | $as_echo "yes" >&6; } | |
17768 | ||
17769 | $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h | |
17770 | ||
17771 | ||
17772 | else | |
17773 | $as_echo "$as_me: failed program was:" >&5 | |
17774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17775 | ||
17776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17777 | $as_echo "no" >&6; } | |
17778 | ||
17779 | ||
17780 | ||
17781 | fi | |
17782 | rm -Rf build | |
17783 | ||
17784 | ||
17785 | ||
17786 | ||
17787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5 | |
17788 | $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; } | |
17789 | tmp_flags="$EXTRA_KCFLAGS" | |
17790 | EXTRA_KCFLAGS="-Werror" | |
17791 | ||
17792 | ||
17793 | cat confdefs.h - <<_ACEOF >conftest.c | |
17794 | ||
17795 | ||
17796 | #include <linux/rwsem.h> | |
17797 | ||
17798 | int | |
17799 | main (void) | |
17800 | { | |
17801 | ||
17802 | struct rw_semaphore dummy_semaphore __attribute__ ((unused)); | |
43c96d9a CIK |
17803 | raw_spinlock_t dummy_lock __attribute__ ((unused)) = |
17804 | __RAW_SPIN_LOCK_INITIALIZER(dummy_lock); | |
70e083d2 TG |
17805 | dummy_semaphore.wait_lock = dummy_lock; |
17806 | ||
17807 | ; | |
17808 | return 0; | |
17809 | } | |
17810 | ||
17811 | _ACEOF | |
17812 | ||
17813 | ||
17814 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17815 | echo "obj-m := conftest.o" >build/Makefile | |
17816 | modpost_flag='' | |
17817 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17818 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17819 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17820 | (eval $ac_try) 2>&5 | |
17821 | ac_status=$? | |
17822 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17823 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17824 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17825 | (eval $ac_try) 2>&5 | |
17826 | ac_status=$? | |
17827 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17828 | test $ac_status = 0; }; }; then : | |
17829 | ||
17830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17831 | $as_echo "yes" >&6; } | |
17832 | ||
17833 | $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h | |
17834 | ||
17835 | ||
17836 | else | |
17837 | $as_echo "$as_me: failed program was:" >&5 | |
17838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17839 | ||
17840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17841 | $as_echo "no" >&6; } | |
17842 | ||
17843 | ||
17844 | ||
17845 | fi | |
17846 | rm -Rf build | |
17847 | ||
17848 | ||
17849 | EXTRA_KCFLAGS="$tmp_flags" | |
17850 | ||
17851 | ||
17852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5 | |
17853 | $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; } | |
17854 | tmp_flags="$EXTRA_KCFLAGS" | |
17855 | EXTRA_KCFLAGS="-Werror" | |
17856 | ||
17857 | ||
17858 | cat confdefs.h - <<_ACEOF >conftest.c | |
17859 | ||
17860 | ||
17861 | #include <linux/rwsem.h> | |
17862 | ||
17863 | int | |
17864 | main (void) | |
17865 | { | |
17866 | ||
17867 | struct rw_semaphore dummy_semaphore __attribute__ ((unused)); | |
17868 | dummy_semaphore.activity = 0; | |
17869 | ||
17870 | ; | |
17871 | return 0; | |
17872 | } | |
17873 | ||
17874 | _ACEOF | |
17875 | ||
17876 | ||
17877 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17878 | echo "obj-m := conftest.o" >build/Makefile | |
17879 | modpost_flag='' | |
17880 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17881 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17882 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17883 | (eval $ac_try) 2>&5 | |
17884 | ac_status=$? | |
17885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17886 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17887 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17888 | (eval $ac_try) 2>&5 | |
17889 | ac_status=$? | |
17890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17891 | test $ac_status = 0; }; }; then : | |
17892 | ||
17893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17894 | $as_echo "yes" >&6; } | |
17895 | ||
17896 | $as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h | |
17897 | ||
17898 | ||
17899 | else | |
17900 | $as_echo "$as_me: failed program was:" >&5 | |
17901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17902 | ||
17903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17904 | $as_echo "no" >&6; } | |
17905 | ||
17906 | ||
17907 | ||
17908 | fi | |
17909 | rm -Rf build | |
17910 | ||
17911 | ||
17912 | EXTRA_KCFLAGS="$tmp_flags" | |
17913 | ||
17914 | ||
17915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5 | |
17916 | $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; } | |
17917 | tmp_flags="$EXTRA_KCFLAGS" | |
17918 | EXTRA_KCFLAGS="-Werror" | |
17919 | ||
17920 | ||
17921 | cat confdefs.h - <<_ACEOF >conftest.c | |
17922 | ||
17923 | ||
17924 | #include <linux/rwsem.h> | |
17925 | ||
17926 | int | |
17927 | main (void) | |
17928 | { | |
17929 | ||
17930 | DECLARE_RWSEM(dummy_semaphore); | |
17931 | (void) atomic_long_read(&dummy_semaphore.count); | |
17932 | ||
17933 | ; | |
17934 | return 0; | |
17935 | } | |
17936 | ||
17937 | _ACEOF | |
17938 | ||
17939 | ||
17940 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17941 | echo "obj-m := conftest.o" >build/Makefile | |
17942 | modpost_flag='' | |
17943 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17944 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17945 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17946 | (eval $ac_try) 2>&5 | |
17947 | ac_status=$? | |
17948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17949 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17950 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17951 | (eval $ac_try) 2>&5 | |
17952 | ac_status=$? | |
17953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17954 | test $ac_status = 0; }; }; then : | |
17955 | ||
17956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17957 | $as_echo "yes" >&6; } | |
17958 | ||
17959 | $as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h | |
17960 | ||
17961 | ||
17962 | else | |
17963 | $as_echo "$as_me: failed program was:" >&5 | |
17964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17965 | ||
17966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17967 | $as_echo "no" >&6; } | |
17968 | ||
17969 | ||
17970 | ||
17971 | fi | |
17972 | rm -Rf build | |
17973 | ||
17974 | ||
17975 | EXTRA_KCFLAGS="$tmp_flags" | |
17976 | ||
17977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5 | |
17978 | $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; } | |
17979 | ||
17980 | ||
17981 | cat confdefs.h - <<_ACEOF >conftest.c | |
17982 | ||
17983 | ||
17984 | #include <linux/sched.h> | |
17985 | #include <linux/sched/rt.h> | |
17986 | ||
17987 | int | |
17988 | main (void) | |
17989 | { | |
17990 | ||
17991 | return 0; | |
17992 | ||
17993 | ; | |
17994 | return 0; | |
17995 | } | |
17996 | ||
17997 | _ACEOF | |
17998 | ||
17999 | ||
18000 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18001 | echo "obj-m := conftest.o" >build/Makefile | |
18002 | modpost_flag='' | |
18003 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18004 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18005 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18006 | (eval $ac_try) 2>&5 | |
18007 | ac_status=$? | |
18008 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18009 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18010 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18011 | (eval $ac_try) 2>&5 | |
18012 | ac_status=$? | |
18013 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18014 | test $ac_status = 0; }; }; then : | |
18015 | ||
18016 | ||
18017 | $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h | |
18018 | ||
18019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18020 | $as_echo "yes" >&6; } | |
18021 | ||
18022 | else | |
18023 | $as_echo "$as_me: failed program was:" >&5 | |
18024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18025 | ||
18026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18027 | $as_echo "no" >&6; } | |
18028 | ||
18029 | ||
18030 | ||
0d6103dd CIK |
18031 | fi |
18032 | rm -Rf build | |
18033 | ||
18034 | ||
18035 | ||
18036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/signal.h exists" >&5 | |
18037 | $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; } | |
18038 | ||
18039 | ||
18040 | cat confdefs.h - <<_ACEOF >conftest.c | |
18041 | ||
18042 | ||
18043 | #include <linux/sched.h> | |
18044 | #include <linux/sched/signal.h> | |
18045 | ||
18046 | int | |
18047 | main (void) | |
18048 | { | |
18049 | ||
18050 | return 0; | |
18051 | ||
18052 | ; | |
18053 | return 0; | |
18054 | } | |
18055 | ||
18056 | _ACEOF | |
18057 | ||
18058 | ||
18059 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18060 | echo "obj-m := conftest.o" >build/Makefile | |
18061 | modpost_flag='' | |
18062 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18063 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18064 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18065 | (eval $ac_try) 2>&5 | |
18066 | ac_status=$? | |
18067 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18068 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18069 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18070 | (eval $ac_try) 2>&5 | |
18071 | ac_status=$? | |
18072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18073 | test $ac_status = 0; }; }; then : | |
18074 | ||
18075 | ||
18076 | $as_echo "#define HAVE_SCHED_SIGNAL_HEADER 1" >>confdefs.h | |
18077 | ||
18078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18079 | $as_echo "yes" >&6; } | |
18080 | ||
18081 | else | |
18082 | $as_echo "$as_me: failed program was:" >&5 | |
18083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18084 | ||
18085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18086 | $as_echo "no" >&6; } | |
18087 | ||
18088 | ||
18089 | ||
70e083d2 TG |
18090 | fi |
18091 | rm -Rf build | |
18092 | ||
18093 | ||
18094 | ||
18095 | ||
0d6103dd CIK |
18096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 4 args" >&5 |
18097 | $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; } | |
70e083d2 TG |
18098 | |
18099 | ||
18100 | cat confdefs.h - <<_ACEOF >conftest.c | |
18101 | ||
18102 | ||
18103 | #include <linux/fs.h> | |
18104 | ||
18105 | int | |
18106 | main (void) | |
18107 | { | |
18108 | ||
0d6103dd CIK |
18109 | vfs_getattr((const struct path *)NULL, |
18110 | (struct kstat *)NULL, | |
18111 | (u32)0, | |
18112 | (unsigned int)0); | |
70e083d2 TG |
18113 | |
18114 | ; | |
18115 | return 0; | |
18116 | } | |
18117 | ||
18118 | _ACEOF | |
18119 | ||
18120 | ||
18121 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18122 | echo "obj-m := conftest.o" >build/Makefile | |
18123 | modpost_flag='' | |
18124 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18125 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18126 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18127 | (eval $ac_try) 2>&5 | |
18128 | ac_status=$? | |
18129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18130 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18131 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18132 | (eval $ac_try) 2>&5 | |
18133 | ac_status=$? | |
18134 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18135 | test $ac_status = 0; }; }; then : | |
18136 | ||
0d6103dd CIK |
18137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
18138 | $as_echo "yes" >&6; } | |
70e083d2 | 18139 | |
0d6103dd | 18140 | $as_echo "#define HAVE_4ARGS_VFS_GETATTR 1" >>confdefs.h |
70e083d2 TG |
18141 | |
18142 | ||
18143 | else | |
18144 | $as_echo "$as_me: failed program was:" >&5 | |
18145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18146 | ||
0d6103dd CIK |
18147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18148 | $as_echo "no" >&6; } | |
18149 | ||
18150 | ||
18151 | ||
18152 | fi | |
18153 | rm -Rf build | |
18154 | ||
18155 | ||
18156 | ||
18157 | ||
18158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 3 args" >&5 | |
18159 | $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; } | |
70e083d2 TG |
18160 | |
18161 | ||
18162 | cat confdefs.h - <<_ACEOF >conftest.c | |
18163 | ||
18164 | ||
0d6103dd | 18165 | #include <linux/fs.h> |
70e083d2 TG |
18166 | |
18167 | int | |
18168 | main (void) | |
18169 | { | |
18170 | ||
0d6103dd CIK |
18171 | vfs_getattr((struct vfsmount *)NULL, |
18172 | (struct dentry *)NULL, | |
18173 | (struct kstat *)NULL); | |
70e083d2 TG |
18174 | |
18175 | ; | |
18176 | return 0; | |
18177 | } | |
18178 | ||
18179 | _ACEOF | |
18180 | ||
18181 | ||
18182 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18183 | echo "obj-m := conftest.o" >build/Makefile | |
18184 | modpost_flag='' | |
18185 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18186 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18187 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18188 | (eval $ac_try) 2>&5 | |
18189 | ac_status=$? | |
18190 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18191 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18192 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18193 | (eval $ac_try) 2>&5 | |
18194 | ac_status=$? | |
18195 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18196 | test $ac_status = 0; }; }; then : | |
18197 | ||
0d6103dd CIK |
18198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
18199 | $as_echo "yes" >&6; } | |
18200 | ||
18201 | $as_echo "#define HAVE_3ARGS_VFS_GETATTR 1" >>confdefs.h | |
18202 | ||
70e083d2 TG |
18203 | |
18204 | else | |
18205 | $as_echo "$as_me: failed program was:" >&5 | |
18206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18207 | ||
0d6103dd CIK |
18208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
18209 | $as_echo "no" >&6; } | |
70e083d2 TG |
18210 | |
18211 | ||
18212 | ||
18213 | fi | |
18214 | rm -Rf build | |
18215 | ||
18216 | ||
18217 | ||
18218 | ||
0d6103dd CIK |
18219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 2 args" >&5 |
18220 | $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; } | |
18221 | ||
18222 | ||
18223 | cat confdefs.h - <<_ACEOF >conftest.c | |
18224 | ||
18225 | ||
18226 | #include <linux/fs.h> | |
18227 | ||
18228 | int | |
18229 | main (void) | |
18230 | { | |
18231 | ||
18232 | vfs_getattr((struct path *) NULL, | |
18233 | (struct kstat *)NULL); | |
18234 | ||
18235 | ; | |
18236 | return 0; | |
18237 | } | |
18238 | ||
18239 | _ACEOF | |
18240 | ||
18241 | ||
18242 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18243 | echo "obj-m := conftest.o" >build/Makefile | |
18244 | modpost_flag='' | |
18245 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18246 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18247 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18248 | (eval $ac_try) 2>&5 | |
18249 | ac_status=$? | |
18250 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18251 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18252 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18253 | (eval $ac_try) 2>&5 | |
18254 | ac_status=$? | |
18255 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18256 | test $ac_status = 0; }; }; then : | |
18257 | ||
18258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18259 | $as_echo "yes" >&6; } | |
18260 | ||
18261 | $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h | |
18262 | ||
18263 | ||
18264 | else | |
18265 | $as_echo "$as_me: failed program was:" >&5 | |
18266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18267 | ||
18268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18269 | $as_echo "no" >&6; } | |
18270 | ||
18271 | ||
70e083d2 TG |
18272 | |
18273 | fi | |
18274 | rm -Rf build | |
18275 | ||
18276 | ||
18277 | ||
18278 | ||
18279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5 | |
18280 | $as_echo_n "checking whether usleep_range() is available... " >&6; } | |
18281 | ||
18282 | ||
18283 | cat confdefs.h - <<_ACEOF >conftest.c | |
18284 | ||
18285 | ||
18286 | #include <linux/delay.h> | |
18287 | ||
18288 | int | |
18289 | main (void) | |
18290 | { | |
18291 | ||
18292 | usleep_range(0, 0); | |
18293 | ||
18294 | ; | |
18295 | return 0; | |
18296 | } | |
18297 | ||
18298 | _ACEOF | |
18299 | ||
18300 | ||
18301 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18302 | echo "obj-m := conftest.o" >build/Makefile | |
18303 | modpost_flag='' | |
18304 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18305 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18306 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18307 | (eval $ac_try) 2>&5 | |
18308 | ac_status=$? | |
18309 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18310 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18311 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18312 | (eval $ac_try) 2>&5 | |
18313 | ac_status=$? | |
18314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18315 | test $ac_status = 0; }; }; then : | |
18316 | ||
18317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18318 | $as_echo "yes" >&6; } | |
18319 | ||
18320 | $as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h | |
18321 | ||
18322 | ||
18323 | else | |
18324 | $as_echo "$as_me: failed program was:" >&5 | |
18325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18326 | ||
18327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18328 | $as_echo "no" >&6; } | |
18329 | ||
18330 | ||
18331 | ||
18332 | fi | |
18333 | rm -Rf build | |
18334 | ||
18335 | ||
18336 | ||
18337 | ||
18338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5 | |
18339 | $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; } | |
18340 | ||
18341 | ||
18342 | cat confdefs.h - <<_ACEOF >conftest.c | |
18343 | ||
18344 | ||
18345 | #include <linux/slab.h> | |
18346 | ||
18347 | int | |
18348 | main (void) | |
18349 | { | |
18350 | ||
18351 | struct kmem_cache cachep __attribute__ ((unused)); | |
18352 | cachep.allocflags = GFP_KERNEL; | |
18353 | ||
18354 | ; | |
18355 | return 0; | |
18356 | } | |
18357 | ||
18358 | _ACEOF | |
18359 | ||
18360 | ||
18361 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18362 | echo "obj-m := conftest.o" >build/Makefile | |
18363 | modpost_flag='' | |
18364 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18365 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18366 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18367 | (eval $ac_try) 2>&5 | |
18368 | ac_status=$? | |
18369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18370 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18371 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18372 | (eval $ac_try) 2>&5 | |
18373 | ac_status=$? | |
18374 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18375 | test $ac_status = 0; }; }; then : | |
18376 | ||
18377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18378 | $as_echo "yes" >&6; } | |
18379 | ||
18380 | $as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h | |
18381 | ||
18382 | ||
18383 | else | |
18384 | $as_echo "$as_me: failed program was:" >&5 | |
18385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18386 | ||
18387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18388 | $as_echo "no" >&6; } | |
18389 | ||
18390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5 | |
18391 | $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; } | |
18392 | ||
18393 | ||
18394 | cat confdefs.h - <<_ACEOF >conftest.c | |
18395 | ||
18396 | ||
18397 | #include <linux/slab.h> | |
18398 | ||
18399 | int | |
18400 | main (void) | |
18401 | { | |
18402 | ||
18403 | struct kmem_cache cachep __attribute__ ((unused)); | |
18404 | cachep.gfpflags = GFP_KERNEL; | |
18405 | ||
18406 | ; | |
18407 | return 0; | |
18408 | } | |
18409 | ||
18410 | _ACEOF | |
18411 | ||
18412 | ||
18413 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18414 | echo "obj-m := conftest.o" >build/Makefile | |
18415 | modpost_flag='' | |
18416 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18417 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18418 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18419 | (eval $ac_try) 2>&5 | |
18420 | ac_status=$? | |
18421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18422 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18423 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18424 | (eval $ac_try) 2>&5 | |
18425 | ac_status=$? | |
18426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18427 | test $ac_status = 0; }; }; then : | |
18428 | ||
18429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18430 | $as_echo "yes" >&6; } | |
18431 | ||
18432 | $as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h | |
18433 | ||
18434 | ||
18435 | else | |
18436 | $as_echo "$as_me: failed program was:" >&5 | |
18437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18438 | ||
18439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18440 | $as_echo "no" >&6; } | |
18441 | ||
18442 | ||
18443 | ||
18444 | fi | |
18445 | rm -Rf build | |
18446 | ||
18447 | ||
18448 | ||
18449 | ||
18450 | ||
18451 | fi | |
18452 | rm -Rf build | |
18453 | ||
18454 | ||
18455 | ||
18456 | ||
18457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5 | |
18458 | $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; } | |
18459 | ||
18460 | ||
18461 | cat confdefs.h - <<_ACEOF >conftest.c | |
18462 | ||
18463 | ||
18464 | #include <linux/wait.h> | |
18465 | ||
18466 | int | |
18467 | main (void) | |
18468 | { | |
18469 | ||
18470 | int (*action)(void *) = NULL; | |
18471 | wait_on_bit(NULL, 0, action, 0); | |
18472 | ||
18473 | ; | |
18474 | return 0; | |
18475 | } | |
18476 | ||
18477 | _ACEOF | |
18478 | ||
18479 | ||
18480 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18481 | echo "obj-m := conftest.o" >build/Makefile | |
18482 | modpost_flag='' | |
18483 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18484 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18485 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18486 | (eval $ac_try) 2>&5 | |
18487 | ac_status=$? | |
18488 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18489 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18490 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18491 | (eval $ac_try) 2>&5 | |
18492 | ac_status=$? | |
18493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18494 | test $ac_status = 0; }; }; then : | |
18495 | ||
18496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18497 | $as_echo "yes" >&6; } | |
18498 | ||
18499 | $as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h | |
18500 | ||
18501 | ||
18502 | else | |
18503 | $as_echo "$as_me: failed program was:" >&5 | |
18504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18505 | ||
18506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18507 | $as_echo "no" >&6; } | |
18508 | ||
18509 | ||
18510 | ||
18511 | fi | |
18512 | rm -Rf build | |
18513 | ||
18514 | ||
18515 | ||
18516 | ||
18517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5 | |
18518 | $as_echo_n "checking whether inode_lock_shared() exists... " >&6; } | |
18519 | tmp_flags="$EXTRA_KCFLAGS" | |
18520 | EXTRA_KCFLAGS="-Werror" | |
18521 | ||
18522 | ||
18523 | cat confdefs.h - <<_ACEOF >conftest.c | |
18524 | ||
18525 | ||
18526 | #include <linux/fs.h> | |
18527 | ||
18528 | int | |
18529 | main (void) | |
18530 | { | |
18531 | ||
18532 | struct inode *inode = NULL; | |
18533 | inode_lock_shared(inode); | |
18534 | ||
18535 | ; | |
18536 | return 0; | |
18537 | } | |
18538 | ||
18539 | _ACEOF | |
18540 | ||
18541 | ||
18542 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18543 | echo "obj-m := conftest.o" >build/Makefile | |
18544 | modpost_flag='' | |
18545 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18546 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18547 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18548 | (eval $ac_try) 2>&5 | |
18549 | ac_status=$? | |
18550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18551 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18552 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18553 | (eval $ac_try) 2>&5 | |
18554 | ac_status=$? | |
18555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18556 | test $ac_status = 0; }; }; then : | |
18557 | ||
18558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18559 | $as_echo "yes" >&6; } | |
18560 | ||
18561 | $as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h | |
18562 | ||
18563 | ||
18564 | else | |
18565 | $as_echo "$as_me: failed program was:" >&5 | |
18566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18567 | ||
18568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18569 | $as_echo "no" >&6; } | |
18570 | ||
18571 | ||
18572 | ||
18573 | fi | |
18574 | rm -Rf build | |
18575 | ||
18576 | ||
18577 | EXTRA_KCFLAGS="$tmp_flags" | |
18578 | ||
18579 | ||
86e3c28a CIK |
18580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether group_info->gid exists" >&5 |
18581 | $as_echo_n "checking whether group_info->gid exists... " >&6; } | |
70e083d2 TG |
18582 | tmp_flags="$EXTRA_KCFLAGS" |
18583 | EXTRA_KCFLAGS="-Werror" | |
18584 | ||
18585 | ||
18586 | cat confdefs.h - <<_ACEOF >conftest.c | |
18587 | ||
18588 | ||
86e3c28a | 18589 | #include <linux/cred.h> |
70e083d2 TG |
18590 | |
18591 | int | |
18592 | main (void) | |
18593 | { | |
18594 | ||
86e3c28a CIK |
18595 | struct group_info *gi = groups_alloc(1); |
18596 | gi->gid[0] = KGIDT_INIT(0); | |
70e083d2 TG |
18597 | |
18598 | ; | |
18599 | return 0; | |
18600 | } | |
18601 | ||
18602 | _ACEOF | |
18603 | ||
18604 | ||
18605 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18606 | echo "obj-m := conftest.o" >build/Makefile | |
18607 | modpost_flag='' | |
18608 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18609 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18610 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18611 | (eval $ac_try) 2>&5 | |
18612 | ac_status=$? | |
18613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18614 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18615 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18616 | (eval $ac_try) 2>&5 | |
18617 | ac_status=$? | |
18618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18619 | test $ac_status = 0; }; }; then : | |
18620 | ||
18621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18622 | $as_echo "yes" >&6; } | |
18623 | ||
86e3c28a | 18624 | $as_echo "#define HAVE_GROUP_INFO_GID 1" >>confdefs.h |
70e083d2 TG |
18625 | |
18626 | ||
18627 | else | |
18628 | $as_echo "$as_me: failed program was:" >&5 | |
18629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18630 | ||
18631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18632 | $as_echo "no" >&6; } | |
18633 | ||
18634 | ||
18635 | ||
18636 | fi | |
18637 | rm -Rf build | |
18638 | ||
18639 | ||
18640 | EXTRA_KCFLAGS="$tmp_flags" | |
18641 | ||
18642 | ||
86e3c28a CIK |
18643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmem_cache_create_usercopy() exists" >&5 |
18644 | $as_echo_n "checking whether kmem_cache_create_usercopy() exists... " >&6; } | |
70e083d2 TG |
18645 | tmp_flags="$EXTRA_KCFLAGS" |
18646 | EXTRA_KCFLAGS="-Werror" | |
18647 | ||
18648 | ||
18649 | cat confdefs.h - <<_ACEOF >conftest.c | |
18650 | ||
18651 | ||
86e3c28a CIK |
18652 | #include <linux/slab.h> |
18653 | static void ctor(void *foo) | |
18654 | { | |
18655 | // fake ctor | |
18656 | } | |
70e083d2 TG |
18657 | |
18658 | int | |
18659 | main (void) | |
18660 | { | |
18661 | ||
86e3c28a CIK |
18662 | struct kmem_cache *skc_linux_cache; |
18663 | const char *name = "test"; | |
18664 | size_t size = 4096; | |
18665 | size_t align = 8; | |
18666 | unsigned long flags = 0; | |
18667 | size_t useroffset = 0; | |
18668 | size_t usersize = size - useroffset; | |
18669 | ||
18670 | skc_linux_cache = kmem_cache_create_usercopy( | |
18671 | name, size, align, flags, useroffset, usersize, ctor); | |
70e083d2 TG |
18672 | |
18673 | ; | |
18674 | return 0; | |
18675 | } | |
18676 | ||
18677 | _ACEOF | |
18678 | ||
18679 | ||
18680 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18681 | echo "obj-m := conftest.o" >build/Makefile | |
18682 | modpost_flag='' | |
18683 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18684 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18685 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18686 | (eval $ac_try) 2>&5 | |
18687 | ac_status=$? | |
18688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18689 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18690 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18691 | (eval $ac_try) 2>&5 | |
18692 | ac_status=$? | |
18693 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18694 | test $ac_status = 0; }; }; then : | |
18695 | ||
18696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18697 | $as_echo "yes" >&6; } | |
18698 | ||
86e3c28a | 18699 | $as_echo "#define HAVE_KMEM_CACHE_CREATE_USERCOPY 1" >>confdefs.h |
70e083d2 TG |
18700 | |
18701 | ||
18702 | else | |
18703 | $as_echo "$as_me: failed program was:" >&5 | |
18704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18705 | ||
18706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18707 | $as_echo "no" >&6; } | |
18708 | ||
18709 | ||
18710 | ||
18711 | fi | |
18712 | rm -Rf build | |
18713 | ||
18714 | ||
18715 | EXTRA_KCFLAGS="$tmp_flags" | |
18716 | ||
18717 | ||
3ab1144a CIK |
18718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_queue_entry_t exists" >&5 |
18719 | $as_echo_n "checking whether wait_queue_entry_t exists... " >&6; } | |
18720 | ||
18721 | ||
18722 | cat confdefs.h - <<_ACEOF >conftest.c | |
18723 | ||
18724 | ||
18725 | #include <linux/wait.h> | |
18726 | ||
18727 | int | |
18728 | main (void) | |
18729 | { | |
18730 | ||
18731 | wait_queue_entry_t *entry __attribute__ ((unused)); | |
18732 | ||
18733 | ; | |
18734 | return 0; | |
18735 | } | |
18736 | ||
18737 | _ACEOF | |
18738 | ||
18739 | ||
18740 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18741 | echo "obj-m := conftest.o" >build/Makefile | |
18742 | modpost_flag='' | |
18743 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18744 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18745 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18746 | (eval $ac_try) 2>&5 | |
18747 | ac_status=$? | |
18748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18749 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18750 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18751 | (eval $ac_try) 2>&5 | |
18752 | ac_status=$? | |
18753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18754 | test $ac_status = 0; }; }; then : | |
18755 | ||
18756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18757 | $as_echo "yes" >&6; } | |
18758 | ||
18759 | $as_echo "#define HAVE_WAIT_QUEUE_ENTRY_T 1" >>confdefs.h | |
18760 | ||
18761 | ||
18762 | else | |
18763 | $as_echo "$as_me: failed program was:" >&5 | |
18764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18765 | ||
18766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18767 | $as_echo "no" >&6; } | |
18768 | ||
18769 | ||
18770 | ||
18771 | fi | |
18772 | rm -Rf build | |
18773 | ||
18774 | ||
18775 | ||
18776 | ||
18777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wq_head->head and wq_entry->entry exist" >&5 | |
18778 | $as_echo_n "checking whether wq_head->head and wq_entry->entry exist... " >&6; } | |
18779 | ||
18780 | ||
18781 | cat confdefs.h - <<_ACEOF >conftest.c | |
18782 | ||
18783 | ||
18784 | #include <linux/wait.h> | |
18785 | ||
18786 | #ifdef HAVE_WAIT_QUEUE_ENTRY_T | |
18787 | typedef wait_queue_head_t spl_wait_queue_head_t; | |
18788 | typedef wait_queue_entry_t spl_wait_queue_entry_t; | |
18789 | #else | |
18790 | typedef wait_queue_head_t spl_wait_queue_head_t; | |
18791 | typedef wait_queue_t spl_wait_queue_entry_t; | |
18792 | #endif | |
18793 | ||
18794 | int | |
18795 | main (void) | |
18796 | { | |
18797 | ||
18798 | spl_wait_queue_head_t wq_head; | |
18799 | spl_wait_queue_entry_t wq_entry; | |
18800 | struct list_head *head __attribute__ ((unused)); | |
18801 | struct list_head *entry __attribute__ ((unused)); | |
18802 | ||
18803 | head = &wq_head.head; | |
18804 | entry = &wq_entry.entry; | |
18805 | ||
18806 | ; | |
18807 | return 0; | |
18808 | } | |
18809 | ||
18810 | _ACEOF | |
18811 | ||
18812 | ||
18813 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18814 | echo "obj-m := conftest.o" >build/Makefile | |
18815 | modpost_flag='' | |
18816 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18817 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18818 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18819 | (eval $ac_try) 2>&5 | |
18820 | ac_status=$? | |
18821 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18822 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18823 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18824 | (eval $ac_try) 2>&5 | |
18825 | ac_status=$? | |
18826 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18827 | test $ac_status = 0; }; }; then : | |
18828 | ||
18829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18830 | $as_echo "yes" >&6; } | |
18831 | ||
18832 | $as_echo "#define HAVE_WAIT_QUEUE_HEAD_ENTRY 1" >>confdefs.h | |
18833 | ||
18834 | ||
18835 | else | |
18836 | $as_echo "$as_me: failed program was:" >&5 | |
18837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18838 | ||
18839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18840 | $as_echo "no" >&6; } | |
18841 | ||
18842 | ||
18843 | ||
18844 | fi | |
18845 | rm -Rf build | |
18846 | ||
18847 | ||
18848 | ||
18849 | ||
86e3c28a CIK |
18850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel_write() takes loff_t pointer" >&5 |
18851 | $as_echo_n "checking whether kernel_write() takes loff_t pointer... " >&6; } | |
18852 | tmp_flags="$EXTRA_KCFLAGS" | |
18853 | EXTRA_KCFLAGS="-Werror" | |
18854 | ||
18855 | ||
18856 | cat confdefs.h - <<_ACEOF >conftest.c | |
18857 | ||
18858 | ||
18859 | #include <linux/fs.h> | |
18860 | ||
18861 | int | |
18862 | main (void) | |
18863 | { | |
18864 | ||
18865 | struct file *file = NULL; | |
18866 | const void *buf = NULL; | |
18867 | size_t count = 0; | |
18868 | loff_t *pos = NULL; | |
18869 | ssize_t ret; | |
18870 | ||
18871 | ret = kernel_write(file, buf, count, pos); | |
18872 | ||
18873 | ; | |
18874 | return 0; | |
18875 | } | |
18876 | ||
18877 | _ACEOF | |
18878 | ||
18879 | ||
18880 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18881 | echo "obj-m := conftest.o" >build/Makefile | |
18882 | modpost_flag='' | |
18883 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18884 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18885 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18886 | (eval $ac_try) 2>&5 | |
18887 | ac_status=$? | |
18888 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18889 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18890 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18891 | (eval $ac_try) 2>&5 | |
18892 | ac_status=$? | |
18893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18894 | test $ac_status = 0; }; }; then : | |
18895 | ||
18896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18897 | $as_echo "yes" >&6; } | |
18898 | ||
18899 | $as_echo "#define HAVE_KERNEL_WRITE_PPOS 1" >>confdefs.h | |
18900 | ||
18901 | ||
18902 | else | |
18903 | $as_echo "$as_me: failed program was:" >&5 | |
18904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18905 | ||
18906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18907 | $as_echo "no" >&6; } | |
18908 | ||
18909 | ||
18910 | ||
18911 | fi | |
18912 | rm -Rf build | |
18913 | ||
18914 | ||
18915 | EXTRA_KCFLAGS="$tmp_flags" | |
18916 | ||
18917 | ||
18918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel_read() takes loff_t pointer" >&5 | |
18919 | $as_echo_n "checking whether kernel_read() takes loff_t pointer... " >&6; } | |
18920 | tmp_flags="$EXTRA_KCFLAGS" | |
18921 | EXTRA_KCFLAGS="-Werror" | |
18922 | ||
18923 | ||
18924 | cat confdefs.h - <<_ACEOF >conftest.c | |
18925 | ||
18926 | ||
18927 | #include <linux/fs.h> | |
18928 | ||
18929 | int | |
18930 | main (void) | |
18931 | { | |
18932 | ||
18933 | struct file *file = NULL; | |
18934 | void *buf = NULL; | |
18935 | size_t count = 0; | |
18936 | loff_t *pos = NULL; | |
18937 | ssize_t ret; | |
18938 | ||
18939 | ret = kernel_read(file, buf, count, pos); | |
18940 | ||
18941 | ; | |
18942 | return 0; | |
18943 | } | |
18944 | ||
18945 | _ACEOF | |
18946 | ||
18947 | ||
18948 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18949 | echo "obj-m := conftest.o" >build/Makefile | |
18950 | modpost_flag='' | |
18951 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18952 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18953 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18954 | (eval $ac_try) 2>&5 | |
18955 | ac_status=$? | |
18956 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18957 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18958 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18959 | (eval $ac_try) 2>&5 | |
18960 | ac_status=$? | |
18961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18962 | test $ac_status = 0; }; }; then : | |
18963 | ||
18964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18965 | $as_echo "yes" >&6; } | |
18966 | ||
18967 | $as_echo "#define HAVE_KERNEL_READ_PPOS 1" >>confdefs.h | |
18968 | ||
18969 | ||
18970 | else | |
18971 | $as_echo "$as_me: failed program was:" >&5 | |
18972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18973 | ||
18974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18975 | $as_echo "no" >&6; } | |
18976 | ||
18977 | ||
18978 | ||
18979 | fi | |
18980 | rm -Rf build | |
18981 | ||
18982 | ||
18983 | EXTRA_KCFLAGS="$tmp_flags" | |
18984 | ||
18985 | ||
586d4e9f CIK |
18986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether timer_setup() exists" >&5 |
18987 | $as_echo_n "checking whether timer_setup() exists... " >&6; } | |
18988 | tmp_flags="$EXTRA_KCFLAGS" | |
18989 | EXTRA_KCFLAGS="-Werror" | |
18990 | ||
18991 | ||
18992 | cat confdefs.h - <<_ACEOF >conftest.c | |
18993 | ||
18994 | ||
18995 | #include <linux/timer.h> | |
18996 | ||
18997 | int | |
18998 | main (void) | |
18999 | { | |
19000 | ||
19001 | struct timer_list timer; | |
19002 | ||
19003 | timer_setup(&timer, NULL, 0); | |
19004 | ||
19005 | ; | |
19006 | return 0; | |
19007 | } | |
19008 | ||
19009 | _ACEOF | |
19010 | ||
19011 | ||
19012 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19013 | echo "obj-m := conftest.o" >build/Makefile | |
19014 | modpost_flag='' | |
19015 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19016 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19017 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19018 | (eval $ac_try) 2>&5 | |
19019 | ac_status=$? | |
19020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19021 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19022 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
19023 | (eval $ac_try) 2>&5 | |
19024 | ac_status=$? | |
19025 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
19026 | test $ac_status = 0; }; }; then : | |
19027 | ||
19028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19029 | $as_echo "yes" >&6; } | |
19030 | ||
19031 | $as_echo "#define HAVE_KERNEL_TIMER_SETUP 1" >>confdefs.h | |
19032 | ||
19033 | ||
19034 | else | |
19035 | $as_echo "$as_me: failed program was:" >&5 | |
19036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19037 | ||
19038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19039 | $as_echo "no" >&6; } | |
19040 | ||
19041 | ||
19042 | ||
19043 | fi | |
19044 | rm -Rf build | |
19045 | ||
19046 | ||
19047 | EXTRA_KCFLAGS="$tmp_flags" | |
19048 | ||
19049 | ||
70e083d2 TG |
19050 | ;; |
19051 | srpm) ;; | |
19052 | *) | |
19053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 | |
19054 | $as_echo "Error!" >&6; } | |
19055 | as_fn_error $? "Bad value \"$SPL_CONFIG\" for --with-config, | |
19056 | user kernel|user|all|srpm" "$LINENO" 5 ;; | |
19057 | esac | |
19058 | ||
19059 | if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then | |
19060 | CONFIG_USER_TRUE= | |
19061 | CONFIG_USER_FALSE='#' | |
19062 | else | |
19063 | CONFIG_USER_TRUE='#' | |
19064 | CONFIG_USER_FALSE= | |
19065 | fi | |
19066 | ||
19067 | if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all && | |
19068 | test "x$enable_linux_builtin" != xyes ; then | |
19069 | CONFIG_KERNEL_TRUE= | |
19070 | CONFIG_KERNEL_FALSE='#' | |
19071 | else | |
19072 | CONFIG_KERNEL_TRUE='#' | |
19073 | CONFIG_KERNEL_FALSE= | |
19074 | fi | |
19075 | ||
19076 | ||
19077 | ||
86e3c28a | 19078 | ac_config_files="$ac_config_files Makefile man/Makefile man/man1/Makefile man/man5/Makefile lib/Makefile cmd/Makefile cmd/splat/Makefile cmd/splslab/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" |
70e083d2 TG |
19079 | |
19080 | ||
19081 | cat >confcache <<\_ACEOF | |
19082 | # This file is a shell script that caches the results of configure | |
19083 | # tests run on this system so they can be shared between configure | |
19084 | # scripts and configure runs, see configure's option --config-cache. | |
19085 | # It is not useful on other systems. If it contains results you don't | |
19086 | # want to keep, you may remove or edit it. | |
19087 | # | |
19088 | # config.status only pays attention to the cache file if you give it | |
19089 | # the --recheck option to rerun configure. | |
19090 | # | |
19091 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19092 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19093 | # following values. | |
19094 | ||
19095 | _ACEOF | |
19096 | ||
19097 | # The following way of writing the cache mishandles newlines in values, | |
19098 | # but we know of no workaround that is simple, portable, and efficient. | |
19099 | # So, we kill variables containing newlines. | |
19100 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19101 | # and sets the high bit in the cache file unless we assign to the vars. | |
19102 | ( | |
19103 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
19104 | eval ac_val=\$$ac_var | |
19105 | case $ac_val in #( | |
19106 | *${as_nl}*) | |
19107 | case $ac_var in #( | |
19108 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
19109 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
19110 | esac | |
19111 | case $ac_var in #( | |
19112 | _ | IFS | as_nl) ;; #( | |
19113 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
19114 | *) { eval $ac_var=; unset $ac_var;} ;; | |
19115 | esac ;; | |
19116 | esac | |
19117 | done | |
19118 | ||
19119 | (set) 2>&1 | | |
19120 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
19121 | *${as_nl}ac_space=\ *) | |
19122 | # `set' does not quote correctly, so add quotes: double-quote | |
19123 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
19124 | sed -n \ | |
19125 | "s/'/'\\\\''/g; | |
19126 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
19127 | ;; #( | |
19128 | *) | |
19129 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19130 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
19131 | ;; | |
19132 | esac | | |
19133 | sort | |
19134 | ) | | |
19135 | sed ' | |
19136 | /^ac_cv_env_/b end | |
19137 | t clear | |
19138 | :clear | |
19139 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19140 | t end | |
19141 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19142 | :end' >>confcache | |
19143 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
19144 | if test -w "$cache_file"; then | |
19145 | if test "x$cache_file" != "x/dev/null"; then | |
19146 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
19147 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
19148 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
19149 | cat confcache >"$cache_file" | |
19150 | else | |
19151 | case $cache_file in #( | |
19152 | */* | ?:*) | |
19153 | mv -f confcache "$cache_file"$$ && | |
19154 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
19155 | *) | |
19156 | mv -f confcache "$cache_file" ;; | |
19157 | esac | |
19158 | fi | |
19159 | fi | |
19160 | else | |
19161 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
19162 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
19163 | fi | |
19164 | fi | |
19165 | rm -f confcache | |
19166 | ||
19167 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
19168 | # Let make expand exec_prefix. | |
19169 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19170 | ||
19171 | DEFS=-DHAVE_CONFIG_H | |
19172 | ||
19173 | ac_libobjs= | |
19174 | ac_ltlibobjs= | |
19175 | U= | |
19176 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
19177 | # 1. Remove the extension, and $U if already installed. | |
19178 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
19179 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
19180 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
19181 | # will be set to the directory where LIBOBJS objects are built. | |
19182 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
19183 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
19184 | done | |
19185 | LIBOBJS=$ac_libobjs | |
19186 | ||
19187 | LTLIBOBJS=$ac_ltlibobjs | |
19188 | ||
19189 | ||
19190 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
19191 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
19192 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19193 | fi | |
19194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
19195 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
19196 | if test -n "$am_sleep_pid"; then | |
19197 | # Hide warnings about reused PIDs. | |
19198 | wait $am_sleep_pid 2>/dev/null | |
19199 | fi | |
19200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
19201 | $as_echo "done" >&6; } | |
19202 | if test -n "$EXEEXT"; then | |
19203 | am__EXEEXT_TRUE= | |
19204 | am__EXEEXT_FALSE='#' | |
19205 | else | |
19206 | am__EXEEXT_TRUE='#' | |
19207 | am__EXEEXT_FALSE= | |
19208 | fi | |
19209 | ||
19210 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
19211 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
19212 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19213 | fi | |
19214 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
19215 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
19216 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19217 | fi | |
19218 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then | |
19219 | as_fn_error $? "conditional \"CONFIG_USER\" was never defined. | |
19220 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19221 | fi | |
19222 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
19223 | as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined. | |
19224 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19225 | fi | |
19226 | ||
19227 | : "${CONFIG_STATUS=./config.status}" | |
19228 | ac_write_fail=0 | |
19229 | ac_clean_files_save=$ac_clean_files | |
19230 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
19231 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
19232 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
19233 | as_write_fail=0 | |
19234 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
19235 | #! $SHELL | |
19236 | # Generated by $as_me. | |
19237 | # Run this file to recreate the current configuration. | |
19238 | # Compiler output produced by configure, useful for debugging | |
19239 | # configure, is in config.log if it exists. | |
19240 | ||
19241 | debug=false | |
19242 | ac_cs_recheck=false | |
19243 | ac_cs_silent=false | |
19244 | ||
19245 | SHELL=\${CONFIG_SHELL-$SHELL} | |
19246 | export SHELL | |
19247 | _ASEOF | |
19248 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
19249 | ## -------------------- ## | |
19250 | ## M4sh Initialization. ## | |
19251 | ## -------------------- ## | |
19252 | ||
19253 | # Be more Bourne compatible | |
19254 | DUALCASE=1; export DUALCASE # for MKS sh | |
19255 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
19256 | emulate sh | |
19257 | NULLCMD=: | |
19258 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
19259 | # is contrary to our usage. Disable this feature. | |
19260 | alias -g '${1+"$@"}'='"$@"' | |
19261 | setopt NO_GLOB_SUBST | |
19262 | else | |
19263 | case `(set -o) 2>/dev/null` in #( | |
19264 | *posix*) : | |
19265 | set -o posix ;; #( | |
19266 | *) : | |
19267 | ;; | |
19268 | esac | |
19269 | fi | |
19270 | ||
19271 | ||
19272 | as_nl=' | |
19273 | ' | |
19274 | export as_nl | |
19275 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
19276 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
19277 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
19278 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
19279 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
19280 | # but without wasting forks for bash or zsh. | |
19281 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
19282 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19283 | as_echo='print -r --' | |
19284 | as_echo_n='print -rn --' | |
19285 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19286 | as_echo='printf %s\n' | |
19287 | as_echo_n='printf %s' | |
19288 | else | |
19289 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
19290 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
19291 | as_echo_n='/usr/ucb/echo -n' | |
19292 | else | |
19293 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
19294 | as_echo_n_body='eval | |
19295 | arg=$1; | |
19296 | case $arg in #( | |
19297 | *"$as_nl"*) | |
19298 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
19299 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
19300 | esac; | |
19301 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
19302 | ' | |
19303 | export as_echo_n_body | |
19304 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
19305 | fi | |
19306 | export as_echo_body | |
19307 | as_echo='sh -c $as_echo_body as_echo' | |
19308 | fi | |
19309 | ||
19310 | # The user is always right. | |
19311 | if test "${PATH_SEPARATOR+set}" != set; then | |
19312 | PATH_SEPARATOR=: | |
19313 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
19314 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
19315 | PATH_SEPARATOR=';' | |
19316 | } | |
19317 | fi | |
19318 | ||
19319 | ||
19320 | # IFS | |
19321 | # We need space, tab and new line, in precisely that order. Quoting is | |
19322 | # there to prevent editors from complaining about space-tab. | |
19323 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
19324 | # splitting by setting IFS to empty value.) | |
19325 | IFS=" "" $as_nl" | |
19326 | ||
19327 | # Find who we are. Look in the path if we contain no directory separator. | |
19328 | as_myself= | |
19329 | case $0 in #(( | |
19330 | *[\\/]* ) as_myself=$0 ;; | |
19331 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19332 | for as_dir in $PATH | |
19333 | do | |
19334 | IFS=$as_save_IFS | |
19335 | test -z "$as_dir" && as_dir=. | |
19336 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
19337 | done | |
19338 | IFS=$as_save_IFS | |
19339 | ||
19340 | ;; | |
19341 | esac | |
19342 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
19343 | # in which case we are not to be found in the path. | |
19344 | if test "x$as_myself" = x; then | |
19345 | as_myself=$0 | |
19346 | fi | |
19347 | if test ! -f "$as_myself"; then | |
19348 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
19349 | exit 1 | |
19350 | fi | |
19351 | ||
19352 | # Unset variables that we do not need and which cause bugs (e.g. in | |
19353 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
19354 | # suppresses any "Segmentation fault" message there. '((' could | |
19355 | # trigger a bug in pdksh 5.2.14. | |
19356 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
19357 | do eval test x\${$as_var+set} = xset \ | |
19358 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
19359 | done | |
19360 | PS1='$ ' | |
19361 | PS2='> ' | |
19362 | PS4='+ ' | |
19363 | ||
19364 | # NLS nuisances. | |
19365 | LC_ALL=C | |
19366 | export LC_ALL | |
19367 | LANGUAGE=C | |
19368 | export LANGUAGE | |
19369 | ||
19370 | # CDPATH. | |
19371 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19372 | ||
19373 | ||
19374 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
19375 | # ---------------------------------------- | |
19376 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
19377 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
19378 | # script with STATUS, using 1 if that was 0. | |
19379 | as_fn_error () | |
19380 | { | |
19381 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
19382 | if test "$4"; then | |
19383 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
19384 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
19385 | fi | |
19386 | $as_echo "$as_me: error: $2" >&2 | |
19387 | as_fn_exit $as_status | |
19388 | } # as_fn_error | |
19389 | ||
19390 | ||
19391 | # as_fn_set_status STATUS | |
19392 | # ----------------------- | |
19393 | # Set $? to STATUS, without forking. | |
19394 | as_fn_set_status () | |
19395 | { | |
19396 | return $1 | |
19397 | } # as_fn_set_status | |
19398 | ||
19399 | # as_fn_exit STATUS | |
19400 | # ----------------- | |
19401 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
19402 | as_fn_exit () | |
19403 | { | |
19404 | set +e | |
19405 | as_fn_set_status $1 | |
19406 | exit $1 | |
19407 | } # as_fn_exit | |
19408 | ||
19409 | # as_fn_unset VAR | |
19410 | # --------------- | |
19411 | # Portably unset VAR. | |
19412 | as_fn_unset () | |
19413 | { | |
19414 | { eval $1=; unset $1;} | |
19415 | } | |
19416 | as_unset=as_fn_unset | |
19417 | # as_fn_append VAR VALUE | |
19418 | # ---------------------- | |
19419 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
19420 | # advantage of any shell optimizations that allow amortized linear growth over | |
19421 | # repeated appends, instead of the typical quadratic growth present in naive | |
19422 | # implementations. | |
19423 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
19424 | eval 'as_fn_append () | |
19425 | { | |
19426 | eval $1+=\$2 | |
19427 | }' | |
19428 | else | |
19429 | as_fn_append () | |
19430 | { | |
19431 | eval $1=\$$1\$2 | |
19432 | } | |
19433 | fi # as_fn_append | |
19434 | ||
19435 | # as_fn_arith ARG... | |
19436 | # ------------------ | |
19437 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
19438 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
19439 | # must be portable across $(()) and expr. | |
19440 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
19441 | eval 'as_fn_arith () | |
19442 | { | |
19443 | as_val=$(( $* )) | |
19444 | }' | |
19445 | else | |
19446 | as_fn_arith () | |
19447 | { | |
19448 | as_val=`expr "$@" || test $? -eq 1` | |
19449 | } | |
19450 | fi # as_fn_arith | |
19451 | ||
19452 | ||
19453 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
19454 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
19455 | as_expr=expr | |
19456 | else | |
19457 | as_expr=false | |
19458 | fi | |
19459 | ||
19460 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
19461 | as_basename=basename | |
19462 | else | |
19463 | as_basename=false | |
19464 | fi | |
19465 | ||
19466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
19467 | as_dirname=dirname | |
19468 | else | |
19469 | as_dirname=false | |
19470 | fi | |
19471 | ||
19472 | as_me=`$as_basename -- "$0" || | |
19473 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
19474 | X"$0" : 'X\(//\)$' \| \ | |
19475 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
19476 | $as_echo X/"$0" | | |
19477 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
19478 | s//\1/ | |
19479 | q | |
19480 | } | |
19481 | /^X\/\(\/\/\)$/{ | |
19482 | s//\1/ | |
19483 | q | |
19484 | } | |
19485 | /^X\/\(\/\).*/{ | |
19486 | s//\1/ | |
19487 | q | |
19488 | } | |
19489 | s/.*/./; q'` | |
19490 | ||
19491 | # Avoid depending upon Character Ranges. | |
19492 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
19493 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
19494 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
19495 | as_cr_digits='0123456789' | |
19496 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
19497 | ||
19498 | ECHO_C= ECHO_N= ECHO_T= | |
19499 | case `echo -n x` in #((((( | |
19500 | -n*) | |
19501 | case `echo 'xy\c'` in | |
19502 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
19503 | xy) ECHO_C='\c';; | |
19504 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
19505 | ECHO_T=' ';; | |
19506 | esac;; | |
19507 | *) | |
19508 | ECHO_N='-n';; | |
19509 | esac | |
19510 | ||
19511 | rm -f conf$$ conf$$.exe conf$$.file | |
19512 | if test -d conf$$.dir; then | |
19513 | rm -f conf$$.dir/conf$$.file | |
19514 | else | |
19515 | rm -f conf$$.dir | |
19516 | mkdir conf$$.dir 2>/dev/null | |
19517 | fi | |
19518 | if (echo >conf$$.file) 2>/dev/null; then | |
19519 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
19520 | as_ln_s='ln -s' | |
19521 | # ... but there are two gotchas: | |
19522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
19524 | # In both cases, we have to default to `cp -pR'. | |
19525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
19526 | as_ln_s='cp -pR' | |
19527 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
19528 | as_ln_s=ln | |
19529 | else | |
19530 | as_ln_s='cp -pR' | |
19531 | fi | |
19532 | else | |
19533 | as_ln_s='cp -pR' | |
19534 | fi | |
19535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
19536 | rmdir conf$$.dir 2>/dev/null | |
19537 | ||
19538 | ||
19539 | # as_fn_mkdir_p | |
19540 | # ------------- | |
19541 | # Create "$as_dir" as a directory, including parents if necessary. | |
19542 | as_fn_mkdir_p () | |
19543 | { | |
19544 | ||
19545 | case $as_dir in #( | |
19546 | -*) as_dir=./$as_dir;; | |
19547 | esac | |
19548 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19549 | as_dirs= | |
19550 | while :; do | |
19551 | case $as_dir in #( | |
19552 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19553 | *) as_qdir=$as_dir;; | |
19554 | esac | |
19555 | as_dirs="'$as_qdir' $as_dirs" | |
19556 | as_dir=`$as_dirname -- "$as_dir" || | |
19557 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19558 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19559 | X"$as_dir" : 'X\(//\)$' \| \ | |
19560 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19561 | $as_echo X"$as_dir" | | |
19562 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19563 | s//\1/ | |
19564 | q | |
19565 | } | |
19566 | /^X\(\/\/\)[^/].*/{ | |
19567 | s//\1/ | |
19568 | q | |
19569 | } | |
19570 | /^X\(\/\/\)$/{ | |
19571 | s//\1/ | |
19572 | q | |
19573 | } | |
19574 | /^X\(\/\).*/{ | |
19575 | s//\1/ | |
19576 | q | |
19577 | } | |
19578 | s/.*/./; q'` | |
19579 | test -d "$as_dir" && break | |
19580 | done | |
19581 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
19582 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
19583 | ||
19584 | ||
19585 | } # as_fn_mkdir_p | |
19586 | if mkdir -p . 2>/dev/null; then | |
19587 | as_mkdir_p='mkdir -p "$as_dir"' | |
19588 | else | |
19589 | test -d ./-p && rmdir ./-p | |
19590 | as_mkdir_p=false | |
19591 | fi | |
19592 | ||
19593 | ||
19594 | # as_fn_executable_p FILE | |
19595 | # ----------------------- | |
19596 | # Test if FILE is an executable regular file. | |
19597 | as_fn_executable_p () | |
19598 | { | |
19599 | test -f "$1" && test -x "$1" | |
19600 | } # as_fn_executable_p | |
19601 | as_test_x='test -x' | |
19602 | as_executable_p=as_fn_executable_p | |
19603 | ||
19604 | # Sed expression to map a string onto a valid CPP name. | |
19605 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19606 | ||
19607 | # Sed expression to map a string onto a valid variable name. | |
19608 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19609 | ||
19610 | ||
19611 | exec 6>&1 | |
19612 | ## ----------------------------------- ## | |
19613 | ## Main body of $CONFIG_STATUS script. ## | |
19614 | ## ----------------------------------- ## | |
19615 | _ASEOF | |
19616 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19617 | ||
19618 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19619 | # Save the log message, to keep $0 and so on meaningful, and to | |
19620 | # report actual input values of CONFIG_FILES etc. instead of their | |
19621 | # values after options handling. | |
19622 | ac_log=" | |
b3a88519 | 19623 | This file was extended by spl $as_me 0.7.5, which was |
70e083d2 TG |
19624 | generated by GNU Autoconf 2.69. Invocation command line was |
19625 | ||
19626 | CONFIG_FILES = $CONFIG_FILES | |
19627 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19628 | CONFIG_LINKS = $CONFIG_LINKS | |
19629 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19630 | $ $0 $@ | |
19631 | ||
19632 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
19633 | " | |
19634 | ||
19635 | _ACEOF | |
19636 | ||
19637 | case $ac_config_files in *" | |
19638 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19639 | esac | |
19640 | ||
19641 | case $ac_config_headers in *" | |
19642 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
19643 | esac | |
19644 | ||
19645 | ||
19646 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19647 | # Files that config.status was made for. | |
19648 | config_files="$ac_config_files" | |
19649 | config_headers="$ac_config_headers" | |
19650 | config_commands="$ac_config_commands" | |
19651 | ||
19652 | _ACEOF | |
19653 | ||
19654 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19655 | ac_cs_usage="\ | |
19656 | \`$as_me' instantiates files and other configuration actions | |
19657 | from templates according to the current configuration. Unless the files | |
19658 | and actions are specified as TAGs, all are instantiated by default. | |
19659 | ||
19660 | Usage: $0 [OPTION]... [TAG]... | |
19661 | ||
19662 | -h, --help print this help, then exit | |
19663 | -V, --version print version number and configuration settings, then exit | |
19664 | --config print configuration, then exit | |
19665 | -q, --quiet, --silent | |
19666 | do not print progress messages | |
19667 | -d, --debug don't remove temporary files | |
19668 | --recheck update $as_me by reconfiguring in the same conditions | |
19669 | --file=FILE[:TEMPLATE] | |
19670 | instantiate the configuration file FILE | |
19671 | --header=FILE[:TEMPLATE] | |
19672 | instantiate the configuration header FILE | |
19673 | ||
19674 | Configuration files: | |
19675 | $config_files | |
19676 | ||
19677 | Configuration headers: | |
19678 | $config_headers | |
19679 | ||
19680 | Configuration commands: | |
19681 | $config_commands | |
19682 | ||
19683 | Report bugs to the package provider." | |
19684 | ||
19685 | _ACEOF | |
19686 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19687 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
19688 | ac_cs_version="\\ | |
b3a88519 | 19689 | spl config.status 0.7.5 |
70e083d2 TG |
19690 | configured by $0, generated by GNU Autoconf 2.69, |
19691 | with options \\"\$ac_cs_config\\" | |
19692 | ||
19693 | Copyright (C) 2012 Free Software Foundation, Inc. | |
19694 | This config.status script is free software; the Free Software Foundation | |
19695 | gives unlimited permission to copy, distribute and modify it." | |
19696 | ||
19697 | ac_pwd='$ac_pwd' | |
19698 | srcdir='$srcdir' | |
19699 | INSTALL='$INSTALL' | |
19700 | MKDIR_P='$MKDIR_P' | |
19701 | AWK='$AWK' | |
19702 | test -n "\$AWK" || AWK=awk | |
19703 | _ACEOF | |
19704 | ||
19705 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19706 | # The default lists apply if the user does not specify any file. | |
19707 | ac_need_defaults=: | |
19708 | while test $# != 0 | |
19709 | do | |
19710 | case $1 in | |
19711 | --*=?*) | |
19712 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19713 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
19714 | ac_shift=: | |
19715 | ;; | |
19716 | --*=) | |
19717 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19718 | ac_optarg= | |
19719 | ac_shift=: | |
19720 | ;; | |
19721 | *) | |
19722 | ac_option=$1 | |
19723 | ac_optarg=$2 | |
19724 | ac_shift=shift | |
19725 | ;; | |
19726 | esac | |
19727 | ||
19728 | case $ac_option in | |
19729 | # Handling of the options. | |
19730 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
19731 | ac_cs_recheck=: ;; | |
19732 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
19733 | $as_echo "$ac_cs_version"; exit ;; | |
19734 | --config | --confi | --conf | --con | --co | --c ) | |
19735 | $as_echo "$ac_cs_config"; exit ;; | |
19736 | --debug | --debu | --deb | --de | --d | -d ) | |
19737 | debug=: ;; | |
19738 | --file | --fil | --fi | --f ) | |
19739 | $ac_shift | |
19740 | case $ac_optarg in | |
19741 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
19742 | '') as_fn_error $? "missing file argument" ;; | |
19743 | esac | |
19744 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
19745 | ac_need_defaults=false;; | |
19746 | --header | --heade | --head | --hea ) | |
19747 | $ac_shift | |
19748 | case $ac_optarg in | |
19749 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
19750 | esac | |
19751 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
19752 | ac_need_defaults=false;; | |
19753 | --he | --h) | |
19754 | # Conflict between --help and --header | |
19755 | as_fn_error $? "ambiguous option: \`$1' | |
19756 | Try \`$0 --help' for more information.";; | |
19757 | --help | --hel | -h ) | |
19758 | $as_echo "$ac_cs_usage"; exit ;; | |
19759 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
19760 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19761 | ac_cs_silent=: ;; | |
19762 | ||
19763 | # This is an error. | |
19764 | -*) as_fn_error $? "unrecognized option: \`$1' | |
19765 | Try \`$0 --help' for more information." ;; | |
19766 | ||
19767 | *) as_fn_append ac_config_targets " $1" | |
19768 | ac_need_defaults=false ;; | |
19769 | ||
19770 | esac | |
19771 | shift | |
19772 | done | |
19773 | ||
19774 | ac_configure_extra_args= | |
19775 | ||
19776 | if $ac_cs_silent; then | |
19777 | exec 6>/dev/null | |
19778 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19779 | fi | |
19780 | ||
19781 | _ACEOF | |
19782 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19783 | if \$ac_cs_recheck; then | |
19784 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
19785 | shift | |
19786 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19787 | CONFIG_SHELL='$SHELL' | |
19788 | export CONFIG_SHELL | |
19789 | exec "\$@" | |
19790 | fi | |
19791 | ||
19792 | _ACEOF | |
19793 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19794 | exec 5>>config.log | |
19795 | { | |
19796 | echo | |
19797 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19798 | ## Running $as_me. ## | |
19799 | _ASBOX | |
19800 | $as_echo "$ac_log" | |
19801 | } >&5 | |
19802 | ||
19803 | _ACEOF | |
19804 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19805 | # | |
19806 | # INIT-COMMANDS | |
19807 | # | |
19808 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
19809 | ||
19810 | ||
19811 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
19812 | # if CDPATH is set. | |
19813 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19814 | ||
19815 | sed_quote_subst='$sed_quote_subst' | |
19816 | double_quote_subst='$double_quote_subst' | |
19817 | delay_variable_subst='$delay_variable_subst' | |
19818 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
19819 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
19820 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
19821 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
19822 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
19823 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
19824 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' | |
19825 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
19826 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
19827 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
19828 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
19829 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
19830 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
19831 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
19832 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
19833 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
19834 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
19835 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
19836 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
19837 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
19838 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
19839 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
19840 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
19841 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
19842 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
19843 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
19844 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
19845 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
19846 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
19847 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
19848 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
19849 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
19850 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
19851 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
19852 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
19853 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
19854 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
19855 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
19856 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
19857 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
19858 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
19859 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
19860 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
19861 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
19862 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
19863 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
19864 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19865 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19866 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
19867 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
19868 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
19869 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
19870 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
19871 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
19872 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
19873 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
19874 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' | |
19875 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
19876 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
19877 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' | |
19878 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
19879 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
19880 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' | |
19881 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
19882 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
19883 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
19884 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
19885 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
19886 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
19887 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
19888 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
19889 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
19890 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
19891 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
19892 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
19893 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
19894 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
19895 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
19896 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
19897 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
19898 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
19899 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
19900 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19901 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19902 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
19903 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
19904 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
19905 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
19906 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
19907 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
19908 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
19909 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
19910 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
19911 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
19912 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19913 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
19914 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
19915 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
19916 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
19917 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
19918 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
19919 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
19920 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
19921 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
19922 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
19923 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
19924 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
19925 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
19926 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
19927 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
19928 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
19929 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
19930 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
19931 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
19932 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
19933 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
19934 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
19935 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
19936 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
19937 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
19938 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
19939 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19940 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19941 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
19942 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
19943 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
19944 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
19945 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' | |
19946 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
19947 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
19948 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
19949 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
19950 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
19951 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
19952 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
19953 | ||
19954 | LTCC='$LTCC' | |
19955 | LTCFLAGS='$LTCFLAGS' | |
19956 | compiler='$compiler_DEFAULT' | |
19957 | ||
19958 | # A function that is used when there is no print builtin or printf. | |
19959 | func_fallback_echo () | |
19960 | { | |
19961 | eval 'cat <<_LTECHO_EOF | |
19962 | \$1 | |
19963 | _LTECHO_EOF' | |
19964 | } | |
19965 | ||
19966 | # Quote evaled strings. | |
19967 | for var in SHELL \ | |
19968 | ECHO \ | |
19969 | PATH_SEPARATOR \ | |
19970 | SED \ | |
19971 | GREP \ | |
19972 | EGREP \ | |
19973 | FGREP \ | |
19974 | LD \ | |
19975 | NM \ | |
19976 | LN_S \ | |
19977 | lt_SP2NL \ | |
19978 | lt_NL2SP \ | |
19979 | reload_flag \ | |
19980 | OBJDUMP \ | |
19981 | deplibs_check_method \ | |
19982 | file_magic_cmd \ | |
19983 | file_magic_glob \ | |
19984 | want_nocaseglob \ | |
19985 | DLLTOOL \ | |
19986 | sharedlib_from_linklib_cmd \ | |
19987 | AR \ | |
19988 | AR_FLAGS \ | |
19989 | archiver_list_spec \ | |
19990 | STRIP \ | |
19991 | RANLIB \ | |
19992 | CC \ | |
19993 | CFLAGS \ | |
19994 | compiler \ | |
19995 | lt_cv_sys_global_symbol_pipe \ | |
19996 | lt_cv_sys_global_symbol_to_cdecl \ | |
19997 | lt_cv_sys_global_symbol_to_import \ | |
19998 | lt_cv_sys_global_symbol_to_c_name_address \ | |
19999 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
20000 | lt_cv_nm_interface \ | |
20001 | nm_file_list_spec \ | |
20002 | lt_cv_truncate_bin \ | |
20003 | lt_prog_compiler_no_builtin_flag \ | |
20004 | lt_prog_compiler_pic \ | |
20005 | lt_prog_compiler_wl \ | |
20006 | lt_prog_compiler_static \ | |
20007 | lt_cv_prog_compiler_c_o \ | |
20008 | need_locks \ | |
20009 | MANIFEST_TOOL \ | |
20010 | DSYMUTIL \ | |
20011 | NMEDIT \ | |
20012 | LIPO \ | |
20013 | OTOOL \ | |
20014 | OTOOL64 \ | |
20015 | shrext_cmds \ | |
20016 | export_dynamic_flag_spec \ | |
20017 | whole_archive_flag_spec \ | |
20018 | compiler_needs_object \ | |
20019 | with_gnu_ld \ | |
20020 | allow_undefined_flag \ | |
20021 | no_undefined_flag \ | |
20022 | hardcode_libdir_flag_spec \ | |
20023 | hardcode_libdir_separator \ | |
20024 | exclude_expsyms \ | |
20025 | include_expsyms \ | |
20026 | file_list_spec \ | |
20027 | variables_saved_for_relink \ | |
20028 | libname_spec \ | |
20029 | library_names_spec \ | |
20030 | soname_spec \ | |
20031 | install_override_mode \ | |
20032 | finish_eval \ | |
20033 | old_striplib \ | |
20034 | striplib; do | |
20035 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
20036 | *[\\\\\\\`\\"\\\$]*) | |
20037 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
20038 | ;; | |
20039 | *) | |
20040 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
20041 | ;; | |
20042 | esac | |
20043 | done | |
20044 | ||
20045 | # Double-quote double-evaled strings. | |
20046 | for var in reload_cmds \ | |
20047 | old_postinstall_cmds \ | |
20048 | old_postuninstall_cmds \ | |
20049 | old_archive_cmds \ | |
20050 | extract_expsyms_cmds \ | |
20051 | old_archive_from_new_cmds \ | |
20052 | old_archive_from_expsyms_cmds \ | |
20053 | archive_cmds \ | |
20054 | archive_expsym_cmds \ | |
20055 | module_cmds \ | |
20056 | module_expsym_cmds \ | |
20057 | export_symbols_cmds \ | |
20058 | prelink_cmds \ | |
20059 | postlink_cmds \ | |
20060 | postinstall_cmds \ | |
20061 | postuninstall_cmds \ | |
20062 | finish_cmds \ | |
20063 | sys_lib_search_path_spec \ | |
20064 | configure_time_dlsearch_path \ | |
20065 | configure_time_lt_sys_library_path; do | |
20066 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
20067 | *[\\\\\\\`\\"\\\$]*) | |
20068 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
20069 | ;; | |
20070 | *) | |
20071 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
20072 | ;; | |
20073 | esac | |
20074 | done | |
20075 | ||
20076 | ac_aux_dir='$ac_aux_dir' | |
20077 | ||
20078 | # See if we are running on zsh, and set the options that allow our | |
20079 | # commands through without removal of \ escapes INIT. | |
20080 | if test -n "\${ZSH_VERSION+set}"; then | |
20081 | setopt NO_GLOB_SUBST | |
20082 | fi | |
20083 | ||
20084 | ||
20085 | PACKAGE='$PACKAGE' | |
20086 | VERSION='$VERSION' | |
20087 | RM='$RM' | |
20088 | ofile='$ofile' | |
20089 | ||
20090 | ||
20091 | ||
20092 | ||
20093 | _ACEOF | |
20094 | ||
20095 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20096 | ||
20097 | # Handling of arguments. | |
20098 | for ac_config_target in $ac_config_targets | |
20099 | do | |
20100 | case $ac_config_target in | |
20101 | "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;; | |
20102 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
20103 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
20104 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
20105 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
20106 | "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;; | |
20107 | "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;; | |
20108 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
20109 | "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;; | |
86e3c28a CIK |
20110 | "cmd/splat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/splat/Makefile" ;; |
20111 | "cmd/splslab/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/splslab/Makefile" ;; | |
70e083d2 TG |
20112 | "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; |
20113 | "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;; | |
20114 | "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;; | |
20115 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
20116 | "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;; | |
20117 | "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;; | |
20118 | "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;; | |
20119 | "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;; | |
20120 | "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;; | |
20121 | "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;; | |
20122 | "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;; | |
20123 | "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;; | |
20124 | "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;; | |
20125 | "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;; | |
20126 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; | |
20127 | "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;; | |
20128 | "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;; | |
20129 | "rpm/redhat/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl.spec" ;; | |
20130 | "rpm/redhat/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;; | |
20131 | "rpm/redhat/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;; | |
20132 | "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;; | |
20133 | "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;; | |
20134 | "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;; | |
20135 | "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;; | |
20136 | "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;; | |
20137 | ||
20138 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
20139 | esac | |
20140 | done | |
20141 | ||
20142 | ||
20143 | # If the user did not use the arguments to specify the items to instantiate, | |
20144 | # then the envvar interface is used. Set only those that are not. | |
20145 | # We use the long form for the default assignment because of an extremely | |
20146 | # bizarre bug on SunOS 4.1.3. | |
20147 | if $ac_need_defaults; then | |
20148 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
20149 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
20150 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
20151 | fi | |
20152 | ||
20153 | # Have a temporary directory for convenience. Make it in the build tree | |
20154 | # simply because there is no reason against having it here, and in addition, | |
20155 | # creating and moving files from /tmp can sometimes cause problems. | |
20156 | # Hook for its removal unless debugging. | |
20157 | # Note that there is a small window in which the directory will not be cleaned: | |
20158 | # after its creation but before its name has been assigned to `$tmp'. | |
20159 | $debug || | |
20160 | { | |
20161 | tmp= ac_tmp= | |
20162 | trap 'exit_status=$? | |
20163 | : "${ac_tmp:=$tmp}" | |
20164 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
20165 | ' 0 | |
20166 | trap 'as_fn_exit 1' 1 2 13 15 | |
20167 | } | |
20168 | # Create a (secure) tmp directory for tmp files. | |
20169 | ||
20170 | { | |
20171 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
20172 | test -d "$tmp" | |
20173 | } || | |
20174 | { | |
20175 | tmp=./conf$$-$RANDOM | |
20176 | (umask 077 && mkdir "$tmp") | |
20177 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
20178 | ac_tmp=$tmp | |
20179 | ||
20180 | # Set up the scripts for CONFIG_FILES section. | |
20181 | # No need to generate them if there are no CONFIG_FILES. | |
20182 | # This happens for instance with `./config.status config.h'. | |
20183 | if test -n "$CONFIG_FILES"; then | |
20184 | ||
20185 | ||
20186 | ac_cr=`echo X | tr X '\015'` | |
20187 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
20188 | # But we know of no other shell where ac_cr would be empty at this | |
20189 | # point, so we can use a bashism as a fallback. | |
20190 | if test "x$ac_cr" = x; then | |
20191 | eval ac_cr=\$\'\\r\' | |
20192 | fi | |
20193 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
20194 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
20195 | ac_cs_awk_cr='\\r' | |
20196 | else | |
20197 | ac_cs_awk_cr=$ac_cr | |
20198 | fi | |
20199 | ||
20200 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
20201 | _ACEOF | |
20202 | ||
20203 | ||
20204 | { | |
20205 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
20206 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
20207 | echo "_ACEOF" | |
20208 | } >conf$$subs.sh || | |
20209 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20210 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
20211 | ac_delim='%!_!# ' | |
20212 | for ac_last_try in false false false false false :; do | |
20213 | . ./conf$$subs.sh || | |
20214 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20215 | ||
20216 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
20217 | if test $ac_delim_n = $ac_delim_num; then | |
20218 | break | |
20219 | elif $ac_last_try; then | |
20220 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20221 | else | |
20222 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20223 | fi | |
20224 | done | |
20225 | rm -f conf$$subs.sh | |
20226 | ||
20227 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20228 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
20229 | _ACEOF | |
20230 | sed -n ' | |
20231 | h | |
20232 | s/^/S["/; s/!.*/"]=/ | |
20233 | p | |
20234 | g | |
20235 | s/^[^!]*!// | |
20236 | :repl | |
20237 | t repl | |
20238 | s/'"$ac_delim"'$// | |
20239 | t delim | |
20240 | :nl | |
20241 | h | |
20242 | s/\(.\{148\}\)..*/\1/ | |
20243 | t more1 | |
20244 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
20245 | p | |
20246 | n | |
20247 | b repl | |
20248 | :more1 | |
20249 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20250 | p | |
20251 | g | |
20252 | s/.\{148\}// | |
20253 | t nl | |
20254 | :delim | |
20255 | h | |
20256 | s/\(.\{148\}\)..*/\1/ | |
20257 | t more2 | |
20258 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
20259 | p | |
20260 | b | |
20261 | :more2 | |
20262 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20263 | p | |
20264 | g | |
20265 | s/.\{148\}// | |
20266 | t delim | |
20267 | ' <conf$$subs.awk | sed ' | |
20268 | /^[^""]/{ | |
20269 | N | |
20270 | s/\n// | |
20271 | } | |
20272 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
20273 | rm -f conf$$subs.awk | |
20274 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20275 | _ACAWK | |
20276 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
20277 | for (key in S) S_is_set[key] = 1 | |
20278 | FS = "\a" | |
20279 | ||
20280 | } | |
20281 | { | |
20282 | line = $ 0 | |
20283 | nfields = split(line, field, "@") | |
20284 | substed = 0 | |
20285 | len = length(field[1]) | |
20286 | for (i = 2; i < nfields; i++) { | |
20287 | key = field[i] | |
20288 | keylen = length(key) | |
20289 | if (S_is_set[key]) { | |
20290 | value = S[key] | |
20291 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
20292 | len += length(value) + length(field[++i]) | |
20293 | substed = 1 | |
20294 | } else | |
20295 | len += 1 + keylen | |
20296 | } | |
20297 | ||
20298 | print line | |
20299 | } | |
20300 | ||
20301 | _ACAWK | |
20302 | _ACEOF | |
20303 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20304 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
20305 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
20306 | else | |
20307 | cat | |
20308 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
20309 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
20310 | _ACEOF | |
20311 | ||
20312 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
20313 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
20314 | # trailing colons and then remove the whole line if VPATH becomes empty | |
20315 | # (actually we leave an empty line to preserve line numbers). | |
20316 | if test "x$srcdir" = x.; then | |
20317 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
20318 | h | |
20319 | s/// | |
20320 | s/^/:/ | |
20321 | s/[ ]*$/:/ | |
20322 | s/:\$(srcdir):/:/g | |
20323 | s/:\${srcdir}:/:/g | |
20324 | s/:@srcdir@:/:/g | |
20325 | s/^:*// | |
20326 | s/:*$// | |
20327 | x | |
20328 | s/\(=[ ]*\).*/\1/ | |
20329 | G | |
20330 | s/\n// | |
20331 | s/^[^=]*=[ ]*$// | |
20332 | }' | |
20333 | fi | |
20334 | ||
20335 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20336 | fi # test -n "$CONFIG_FILES" | |
20337 | ||
20338 | # Set up the scripts for CONFIG_HEADERS section. | |
20339 | # No need to generate them if there are no CONFIG_HEADERS. | |
20340 | # This happens for instance with `./config.status Makefile'. | |
20341 | if test -n "$CONFIG_HEADERS"; then | |
20342 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
20343 | BEGIN { | |
20344 | _ACEOF | |
20345 | ||
20346 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
20347 | # here-document in config.status, that substitutes the proper values into | |
20348 | # config.h.in to produce config.h. | |
20349 | ||
20350 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
20351 | # handling of long lines. | |
20352 | ac_delim='%!_!# ' | |
20353 | for ac_last_try in false false :; do | |
20354 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
20355 | if test -z "$ac_tt"; then | |
20356 | break | |
20357 | elif $ac_last_try; then | |
20358 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
20359 | else | |
20360 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20361 | fi | |
20362 | done | |
20363 | ||
20364 | # For the awk script, D is an array of macro values keyed by name, | |
20365 | # likewise P contains macro parameters if any. Preserve backslash | |
20366 | # newline sequences. | |
20367 | ||
20368 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
20369 | sed -n ' | |
20370 | s/.\{148\}/&'"$ac_delim"'/g | |
20371 | t rset | |
20372 | :rset | |
20373 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
20374 | t def | |
20375 | d | |
20376 | :def | |
20377 | s/\\$// | |
20378 | t bsnl | |
20379 | s/["\\]/\\&/g | |
20380 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
20381 | D["\1"]=" \3"/p | |
20382 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
20383 | d | |
20384 | :bsnl | |
20385 | s/["\\]/\\&/g | |
20386 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
20387 | D["\1"]=" \3\\\\\\n"\\/p | |
20388 | t cont | |
20389 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
20390 | t cont | |
20391 | d | |
20392 | :cont | |
20393 | n | |
20394 | s/.\{148\}/&'"$ac_delim"'/g | |
20395 | t clear | |
20396 | :clear | |
20397 | s/\\$// | |
20398 | t bsnlc | |
20399 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
20400 | d | |
20401 | :bsnlc | |
20402 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
20403 | b cont | |
20404 | ' <confdefs.h | sed ' | |
20405 | s/'"$ac_delim"'/"\\\ | |
20406 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
20407 | ||
20408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20409 | for (key in D) D_is_set[key] = 1 | |
20410 | FS = "\a" | |
20411 | } | |
20412 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
20413 | line = \$ 0 | |
20414 | split(line, arg, " ") | |
20415 | if (arg[1] == "#") { | |
20416 | defundef = arg[2] | |
20417 | mac1 = arg[3] | |
20418 | } else { | |
20419 | defundef = substr(arg[1], 2) | |
20420 | mac1 = arg[2] | |
20421 | } | |
20422 | split(mac1, mac2, "(") #) | |
20423 | macro = mac2[1] | |
20424 | prefix = substr(line, 1, index(line, defundef) - 1) | |
20425 | if (D_is_set[macro]) { | |
20426 | # Preserve the white space surrounding the "#". | |
20427 | print prefix "define", macro P[macro] D[macro] | |
20428 | next | |
20429 | } else { | |
20430 | # Replace #undef with comments. This is necessary, for example, | |
20431 | # in the case of _POSIX_SOURCE, which is predefined and required | |
20432 | # on some systems where configure will not decide to define it. | |
20433 | if (defundef == "undef") { | |
20434 | print "/*", prefix defundef, macro, "*/" | |
20435 | next | |
20436 | } | |
20437 | } | |
20438 | } | |
20439 | { print } | |
20440 | _ACAWK | |
20441 | _ACEOF | |
20442 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20443 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
20444 | fi # test -n "$CONFIG_HEADERS" | |
20445 | ||
20446 | ||
20447 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
20448 | shift | |
20449 | for ac_tag | |
20450 | do | |
20451 | case $ac_tag in | |
20452 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
20453 | esac | |
20454 | case $ac_mode$ac_tag in | |
20455 | :[FHL]*:*);; | |
20456 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
20457 | :[FH]-) ac_tag=-:-;; | |
20458 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
20459 | esac | |
20460 | ac_save_IFS=$IFS | |
20461 | IFS=: | |
20462 | set x $ac_tag | |
20463 | IFS=$ac_save_IFS | |
20464 | shift | |
20465 | ac_file=$1 | |
20466 | shift | |
20467 | ||
20468 | case $ac_mode in | |
20469 | :L) ac_source=$1;; | |
20470 | :[FH]) | |
20471 | ac_file_inputs= | |
20472 | for ac_f | |
20473 | do | |
20474 | case $ac_f in | |
20475 | -) ac_f="$ac_tmp/stdin";; | |
20476 | *) # Look for the file first in the build tree, then in the source tree | |
20477 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
20478 | # because $ac_f cannot contain `:'. | |
20479 | test -f "$ac_f" || | |
20480 | case $ac_f in | |
20481 | [\\/$]*) false;; | |
20482 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
20483 | esac || | |
20484 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
20485 | esac | |
20486 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
20487 | as_fn_append ac_file_inputs " '$ac_f'" | |
20488 | done | |
20489 | ||
20490 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
20491 | # use $as_me), people would be surprised to read: | |
20492 | # /* config.h. Generated by config.status. */ | |
20493 | configure_input='Generated from '` | |
20494 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
20495 | `' by configure.' | |
20496 | if test x"$ac_file" != x-; then | |
20497 | configure_input="$ac_file. $configure_input" | |
20498 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
20499 | $as_echo "$as_me: creating $ac_file" >&6;} | |
20500 | fi | |
20501 | # Neutralize special characters interpreted by sed in replacement strings. | |
20502 | case $configure_input in #( | |
20503 | *\&* | *\|* | *\\* ) | |
20504 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
20505 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
20506 | *) ac_sed_conf_input=$configure_input;; | |
20507 | esac | |
20508 | ||
20509 | case $ac_tag in | |
20510 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
20511 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
20512 | esac | |
20513 | ;; | |
20514 | esac | |
20515 | ||
20516 | ac_dir=`$as_dirname -- "$ac_file" || | |
20517 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20518 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
20519 | X"$ac_file" : 'X\(//\)$' \| \ | |
20520 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
20521 | $as_echo X"$ac_file" | | |
20522 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20523 | s//\1/ | |
20524 | q | |
20525 | } | |
20526 | /^X\(\/\/\)[^/].*/{ | |
20527 | s//\1/ | |
20528 | q | |
20529 | } | |
20530 | /^X\(\/\/\)$/{ | |
20531 | s//\1/ | |
20532 | q | |
20533 | } | |
20534 | /^X\(\/\).*/{ | |
20535 | s//\1/ | |
20536 | q | |
20537 | } | |
20538 | s/.*/./; q'` | |
20539 | as_dir="$ac_dir"; as_fn_mkdir_p | |
20540 | ac_builddir=. | |
20541 | ||
20542 | case "$ac_dir" in | |
20543 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20544 | *) | |
20545 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20546 | # A ".." for each directory in $ac_dir_suffix. | |
20547 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20548 | case $ac_top_builddir_sub in | |
20549 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20550 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20551 | esac ;; | |
20552 | esac | |
20553 | ac_abs_top_builddir=$ac_pwd | |
20554 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20555 | # for backward compatibility: | |
20556 | ac_top_builddir=$ac_top_build_prefix | |
20557 | ||
20558 | case $srcdir in | |
20559 | .) # We are building in place. | |
20560 | ac_srcdir=. | |
20561 | ac_top_srcdir=$ac_top_builddir_sub | |
20562 | ac_abs_top_srcdir=$ac_pwd ;; | |
20563 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20564 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20565 | ac_top_srcdir=$srcdir | |
20566 | ac_abs_top_srcdir=$srcdir ;; | |
20567 | *) # Relative name. | |
20568 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20569 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20570 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20571 | esac | |
20572 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
20573 | ||
20574 | ||
20575 | case $ac_mode in | |
20576 | :F) | |
20577 | # | |
20578 | # CONFIG_FILE | |
20579 | # | |
20580 | ||
20581 | case $INSTALL in | |
20582 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
20583 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
20584 | esac | |
20585 | ac_MKDIR_P=$MKDIR_P | |
20586 | case $MKDIR_P in | |
20587 | [\\/$]* | ?:[\\/]* ) ;; | |
20588 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
20589 | esac | |
20590 | _ACEOF | |
20591 | ||
20592 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20593 | # If the template does not know about datarootdir, expand it. | |
20594 | # FIXME: This hack should be removed a few years after 2.60. | |
20595 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
20596 | ac_sed_dataroot=' | |
20597 | /datarootdir/ { | |
20598 | p | |
20599 | q | |
20600 | } | |
20601 | /@datadir@/p | |
20602 | /@docdir@/p | |
20603 | /@infodir@/p | |
20604 | /@localedir@/p | |
20605 | /@mandir@/p' | |
20606 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
20607 | *datarootdir*) ac_datarootdir_seen=yes;; | |
20608 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
20609 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
20610 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
20611 | _ACEOF | |
20612 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20613 | ac_datarootdir_hack=' | |
20614 | s&@datadir@&$datadir&g | |
20615 | s&@docdir@&$docdir&g | |
20616 | s&@infodir@&$infodir&g | |
20617 | s&@localedir@&$localedir&g | |
20618 | s&@mandir@&$mandir&g | |
20619 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
20620 | esac | |
20621 | _ACEOF | |
20622 | ||
20623 | # Neutralize VPATH when `$srcdir' = `.'. | |
20624 | # Shell code in configure.ac might set extrasub. | |
20625 | # FIXME: do we really want to maintain this feature? | |
20626 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20627 | ac_sed_extra="$ac_vpsub | |
20628 | $extrasub | |
20629 | _ACEOF | |
20630 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20631 | :t | |
20632 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
20633 | s|@configure_input@|$ac_sed_conf_input|;t t | |
20634 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
20635 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
20636 | s&@srcdir@&$ac_srcdir&;t t | |
20637 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
20638 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
20639 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
20640 | s&@builddir@&$ac_builddir&;t t | |
20641 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
20642 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
20643 | s&@INSTALL@&$ac_INSTALL&;t t | |
20644 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
20645 | $ac_datarootdir_hack | |
20646 | " | |
20647 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
20648 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20649 | ||
20650 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
20651 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
20652 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
20653 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
20654 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
20655 | which seems to be undefined. Please make sure it is defined" >&5 | |
20656 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
20657 | which seems to be undefined. Please make sure it is defined" >&2;} | |
20658 | ||
20659 | rm -f "$ac_tmp/stdin" | |
20660 | case $ac_file in | |
20661 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
20662 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
20663 | esac \ | |
20664 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20665 | ;; | |
20666 | :H) | |
20667 | # | |
20668 | # CONFIG_HEADER | |
20669 | # | |
20670 | if test x"$ac_file" != x-; then | |
20671 | { | |
20672 | $as_echo "/* $configure_input */" \ | |
20673 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
20674 | } >"$ac_tmp/config.h" \ | |
20675 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20676 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
20677 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
20678 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
20679 | else | |
20680 | rm -f "$ac_file" | |
20681 | mv "$ac_tmp/config.h" "$ac_file" \ | |
20682 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20683 | fi | |
20684 | else | |
20685 | $as_echo "/* $configure_input */" \ | |
20686 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
20687 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
20688 | fi | |
20689 | # Compute "$ac_file"'s index in $config_headers. | |
20690 | _am_arg="$ac_file" | |
20691 | _am_stamp_count=1 | |
20692 | for _am_header in $config_headers :; do | |
20693 | case $_am_header in | |
20694 | $_am_arg | $_am_arg:* ) | |
20695 | break ;; | |
20696 | * ) | |
20697 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
20698 | esac | |
20699 | done | |
20700 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
20701 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20702 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
20703 | X"$_am_arg" : 'X\(//\)$' \| \ | |
20704 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
20705 | $as_echo X"$_am_arg" | | |
20706 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20707 | s//\1/ | |
20708 | q | |
20709 | } | |
20710 | /^X\(\/\/\)[^/].*/{ | |
20711 | s//\1/ | |
20712 | q | |
20713 | } | |
20714 | /^X\(\/\/\)$/{ | |
20715 | s//\1/ | |
20716 | q | |
20717 | } | |
20718 | /^X\(\/\).*/{ | |
20719 | s//\1/ | |
20720 | q | |
20721 | } | |
20722 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
20723 | ;; | |
20724 | ||
20725 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
20726 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
20727 | ;; | |
20728 | esac | |
20729 | ||
20730 | ||
20731 | case $ac_file$ac_mode in | |
20732 | "spl_config.h":H) | |
20733 | (mv spl_config.h spl_config.h.tmp && | |
20734 | awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h && | |
20735 | rm spl_config.h.tmp) || exit 1 ;; | |
20736 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
20737 | # Older Autoconf quotes --file arguments for eval, but not when files | |
20738 | # are listed without --file. Let's play safe and only enable the eval | |
20739 | # if we detect the quoting. | |
20740 | case $CONFIG_FILES in | |
20741 | *\'*) eval set x "$CONFIG_FILES" ;; | |
20742 | *) set x $CONFIG_FILES ;; | |
20743 | esac | |
20744 | shift | |
20745 | for mf | |
20746 | do | |
20747 | # Strip MF so we end up with the name of the file. | |
20748 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
20749 | # Check whether this is an Automake generated Makefile or not. | |
20750 | # We used to match only the files named 'Makefile.in', but | |
20751 | # some people rename them; so instead we look at the file content. | |
20752 | # Grep'ing the first line is not enough: some people post-process | |
20753 | # each Makefile.in and add a new line on top of each file to say so. | |
20754 | # Grep'ing the whole file is not good either: AIX grep has a line | |
20755 | # limit of 2048, but all sed's we know have understand at least 4000. | |
20756 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
20757 | dirpart=`$as_dirname -- "$mf" || | |
20758 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20759 | X"$mf" : 'X\(//\)[^/]' \| \ | |
20760 | X"$mf" : 'X\(//\)$' \| \ | |
20761 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
20762 | $as_echo X"$mf" | | |
20763 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20764 | s//\1/ | |
20765 | q | |
20766 | } | |
20767 | /^X\(\/\/\)[^/].*/{ | |
20768 | s//\1/ | |
20769 | q | |
20770 | } | |
20771 | /^X\(\/\/\)$/{ | |
20772 | s//\1/ | |
20773 | q | |
20774 | } | |
20775 | /^X\(\/\).*/{ | |
20776 | s//\1/ | |
20777 | q | |
20778 | } | |
20779 | s/.*/./; q'` | |
20780 | else | |
20781 | continue | |
20782 | fi | |
20783 | # Extract the definition of DEPDIR, am__include, and am__quote | |
20784 | # from the Makefile without running 'make'. | |
20785 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
20786 | test -z "$DEPDIR" && continue | |
20787 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
20788 | test -z "$am__include" && continue | |
20789 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
20790 | # Find all dependency output files, they are included files with | |
20791 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
20792 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
20793 | # expansion. | |
20794 | for file in `sed -n " | |
20795 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
20796 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
20797 | # Make sure the directory exists. | |
20798 | test -f "$dirpart/$file" && continue | |
20799 | fdir=`$as_dirname -- "$file" || | |
20800 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20801 | X"$file" : 'X\(//\)[^/]' \| \ | |
20802 | X"$file" : 'X\(//\)$' \| \ | |
20803 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
20804 | $as_echo X"$file" | | |
20805 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20806 | s//\1/ | |
20807 | q | |
20808 | } | |
20809 | /^X\(\/\/\)[^/].*/{ | |
20810 | s//\1/ | |
20811 | q | |
20812 | } | |
20813 | /^X\(\/\/\)$/{ | |
20814 | s//\1/ | |
20815 | q | |
20816 | } | |
20817 | /^X\(\/\).*/{ | |
20818 | s//\1/ | |
20819 | q | |
20820 | } | |
20821 | s/.*/./; q'` | |
20822 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
20823 | # echo "creating $dirpart/$file" | |
20824 | echo '# dummy' > "$dirpart/$file" | |
20825 | done | |
20826 | done | |
20827 | } | |
20828 | ;; | |
20829 | "libtool":C) | |
20830 | ||
20831 | # See if we are running on zsh, and set the options that allow our | |
20832 | # commands through without removal of \ escapes. | |
20833 | if test -n "${ZSH_VERSION+set}"; then | |
20834 | setopt NO_GLOB_SUBST | |
20835 | fi | |
20836 | ||
20837 | cfgfile=${ofile}T | |
20838 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
20839 | $RM "$cfgfile" | |
20840 | ||
20841 | cat <<_LT_EOF >> "$cfgfile" | |
20842 | #! $SHELL | |
20843 | # Generated automatically by $as_me ($PACKAGE) $VERSION | |
20844 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
20845 | ||
20846 | # Provide generalized library-building support services. | |
20847 | # Written by Gordon Matzigkeit, 1996 | |
20848 | ||
20849 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
20850 | # This is free software; see the source for copying conditions. There is NO | |
20851 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
20852 | ||
20853 | # GNU Libtool is free software; you can redistribute it and/or modify | |
20854 | # it under the terms of the GNU General Public License as published by | |
20855 | # the Free Software Foundation; either version 2 of of the License, or | |
20856 | # (at your option) any later version. | |
20857 | # | |
20858 | # As a special exception to the GNU General Public License, if you | |
20859 | # distribute this file as part of a program or library that is built | |
20860 | # using GNU Libtool, you may include this file under the same | |
20861 | # distribution terms that you use for the rest of that program. | |
20862 | # | |
20863 | # GNU Libtool is distributed in the hope that it will be useful, but | |
20864 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
20865 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20866 | # GNU General Public License for more details. | |
20867 | # | |
20868 | # You should have received a copy of the GNU General Public License | |
20869 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20870 | ||
20871 | ||
20872 | # The names of the tagged configurations supported by this script. | |
20873 | available_tags='' | |
20874 | ||
20875 | # Configured defaults for sys_lib_dlsearch_path munging. | |
20876 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
20877 | ||
20878 | # ### BEGIN LIBTOOL CONFIG | |
20879 | ||
20880 | # Which release of libtool.m4 was used? | |
20881 | macro_version=$macro_version | |
20882 | macro_revision=$macro_revision | |
20883 | ||
20884 | # Whether or not to build shared libraries. | |
20885 | build_libtool_libs=$enable_shared | |
20886 | ||
20887 | # Whether or not to build static libraries. | |
20888 | build_old_libs=$enable_static | |
20889 | ||
20890 | # What type of objects to build. | |
20891 | pic_mode=$pic_mode | |
20892 | ||
20893 | # Whether or not to optimize for fast installation. | |
20894 | fast_install=$enable_fast_install | |
20895 | ||
20896 | # Shared archive member basename,for filename based shared library versioning on AIX. | |
20897 | shared_archive_member_spec=$shared_archive_member_spec | |
20898 | ||
20899 | # Shell to use when invoking shell scripts. | |
20900 | SHELL=$lt_SHELL | |
20901 | ||
20902 | # An echo program that protects backslashes. | |
20903 | ECHO=$lt_ECHO | |
20904 | ||
20905 | # The PATH separator for the build system. | |
20906 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
20907 | ||
20908 | # The host system. | |
20909 | host_alias=$host_alias | |
20910 | host=$host | |
20911 | host_os=$host_os | |
20912 | ||
20913 | # The build system. | |
20914 | build_alias=$build_alias | |
20915 | build=$build | |
20916 | build_os=$build_os | |
20917 | ||
20918 | # A sed program that does not truncate output. | |
20919 | SED=$lt_SED | |
20920 | ||
20921 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
20922 | Xsed="\$SED -e 1s/^X//" | |
20923 | ||
20924 | # A grep program that handles long lines. | |
20925 | GREP=$lt_GREP | |
20926 | ||
20927 | # An ERE matcher. | |
20928 | EGREP=$lt_EGREP | |
20929 | ||
20930 | # A literal string matcher. | |
20931 | FGREP=$lt_FGREP | |
20932 | ||
20933 | # A BSD- or MS-compatible name lister. | |
20934 | NM=$lt_NM | |
20935 | ||
20936 | # Whether we need soft or hard links. | |
20937 | LN_S=$lt_LN_S | |
20938 | ||
20939 | # What is the maximum length of a command? | |
20940 | max_cmd_len=$max_cmd_len | |
20941 | ||
20942 | # Object file suffix (normally "o"). | |
20943 | objext=$ac_objext | |
20944 | ||
20945 | # Executable file suffix (normally ""). | |
20946 | exeext=$exeext | |
20947 | ||
20948 | # whether the shell understands "unset". | |
20949 | lt_unset=$lt_unset | |
20950 | ||
20951 | # turn spaces into newlines. | |
20952 | SP2NL=$lt_lt_SP2NL | |
20953 | ||
20954 | # turn newlines into spaces. | |
20955 | NL2SP=$lt_lt_NL2SP | |
20956 | ||
20957 | # convert \$build file names to \$host format. | |
20958 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
20959 | ||
20960 | # convert \$build files to toolchain format. | |
20961 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
20962 | ||
20963 | # An object symbol dumper. | |
20964 | OBJDUMP=$lt_OBJDUMP | |
20965 | ||
20966 | # Method to check whether dependent libraries are shared objects. | |
20967 | deplibs_check_method=$lt_deplibs_check_method | |
20968 | ||
20969 | # Command to use when deplibs_check_method = "file_magic". | |
20970 | file_magic_cmd=$lt_file_magic_cmd | |
20971 | ||
20972 | # How to find potential files when deplibs_check_method = "file_magic". | |
20973 | file_magic_glob=$lt_file_magic_glob | |
20974 | ||
20975 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
20976 | want_nocaseglob=$lt_want_nocaseglob | |
20977 | ||
20978 | # DLL creation program. | |
20979 | DLLTOOL=$lt_DLLTOOL | |
20980 | ||
20981 | # Command to associate shared and link libraries. | |
20982 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
20983 | ||
20984 | # The archiver. | |
20985 | AR=$lt_AR | |
20986 | ||
20987 | # Flags to create an archive. | |
20988 | AR_FLAGS=$lt_AR_FLAGS | |
20989 | ||
20990 | # How to feed a file listing to the archiver. | |
20991 | archiver_list_spec=$lt_archiver_list_spec | |
20992 | ||
20993 | # A symbol stripping program. | |
20994 | STRIP=$lt_STRIP | |
20995 | ||
20996 | # Commands used to install an old-style archive. | |
20997 | RANLIB=$lt_RANLIB | |
20998 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20999 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
21000 | ||
21001 | # Whether to use a lock for old archive extraction. | |
21002 | lock_old_archive_extraction=$lock_old_archive_extraction | |
21003 | ||
21004 | # A C compiler. | |
21005 | LTCC=$lt_CC | |
21006 | ||
21007 | # LTCC compiler flags. | |
21008 | LTCFLAGS=$lt_CFLAGS | |
21009 | ||
21010 | # Take the output of nm and produce a listing of raw symbols and C names. | |
21011 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
21012 | ||
21013 | # Transform the output of nm in a proper C declaration. | |
21014 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
21015 | ||
21016 | # Transform the output of nm into a list of symbols to manually relocate. | |
21017 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
21018 | ||
21019 | # Transform the output of nm in a C name address pair. | |
21020 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
21021 | ||
21022 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
21023 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
21024 | ||
21025 | # The name lister interface. | |
21026 | nm_interface=$lt_lt_cv_nm_interface | |
21027 | ||
21028 | # Specify filename containing input files for \$NM. | |
21029 | nm_file_list_spec=$lt_nm_file_list_spec | |
21030 | ||
21031 | # The root where to search for dependent libraries,and where our libraries should be installed. | |
21032 | lt_sysroot=$lt_sysroot | |
21033 | ||
21034 | # Command to truncate a binary pipe. | |
21035 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
21036 | ||
21037 | # The name of the directory that contains temporary libtool files. | |
21038 | objdir=$objdir | |
21039 | ||
21040 | # Used to examine libraries when file_magic_cmd begins with "file". | |
21041 | MAGIC_CMD=$MAGIC_CMD | |
21042 | ||
21043 | # Must we lock files when doing compilation? | |
21044 | need_locks=$lt_need_locks | |
21045 | ||
21046 | # Manifest tool. | |
21047 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
21048 | ||
21049 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
21050 | DSYMUTIL=$lt_DSYMUTIL | |
21051 | ||
21052 | # Tool to change global to local symbols on Mac OS X. | |
21053 | NMEDIT=$lt_NMEDIT | |
21054 | ||
21055 | # Tool to manipulate fat objects and archives on Mac OS X. | |
21056 | LIPO=$lt_LIPO | |
21057 | ||
21058 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
21059 | OTOOL=$lt_OTOOL | |
21060 | ||
21061 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
21062 | OTOOL64=$lt_OTOOL64 | |
21063 | ||
21064 | # Old archive suffix (normally "a"). | |
21065 | libext=$libext | |
21066 | ||
21067 | # Shared library suffix (normally ".so"). | |
21068 | shrext_cmds=$lt_shrext_cmds | |
21069 | ||
21070 | # The commands to extract the exported symbol list from a shared archive. | |
21071 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
21072 | ||
21073 | # Variables whose values should be saved in libtool wrapper scripts and | |
21074 | # restored at link time. | |
21075 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
21076 | ||
21077 | # Do we need the "lib" prefix for modules? | |
21078 | need_lib_prefix=$need_lib_prefix | |
21079 | ||
21080 | # Do we need a version for libraries? | |
21081 | need_version=$need_version | |
21082 | ||
21083 | # Library versioning type. | |
21084 | version_type=$version_type | |
21085 | ||
21086 | # Shared library runtime path variable. | |
21087 | runpath_var=$runpath_var | |
21088 | ||
21089 | # Shared library path variable. | |
21090 | shlibpath_var=$shlibpath_var | |
21091 | ||
21092 | # Is shlibpath searched before the hard-coded library search path? | |
21093 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
21094 | ||
21095 | # Format of library name prefix. | |
21096 | libname_spec=$lt_libname_spec | |
21097 | ||
21098 | # List of archive names. First name is the real one, the rest are links. | |
21099 | # The last name is the one that the linker finds with -lNAME | |
21100 | library_names_spec=$lt_library_names_spec | |
21101 | ||
21102 | # The coded name of the library, if different from the real name. | |
21103 | soname_spec=$lt_soname_spec | |
21104 | ||
21105 | # Permission mode override for installation of shared libraries. | |
21106 | install_override_mode=$lt_install_override_mode | |
21107 | ||
21108 | # Command to use after installation of a shared archive. | |
21109 | postinstall_cmds=$lt_postinstall_cmds | |
21110 | ||
21111 | # Command to use after uninstallation of a shared archive. | |
21112 | postuninstall_cmds=$lt_postuninstall_cmds | |
21113 | ||
21114 | # Commands used to finish a libtool library installation in a directory. | |
21115 | finish_cmds=$lt_finish_cmds | |
21116 | ||
21117 | # As "finish_cmds", except a single script fragment to be evaled but | |
21118 | # not shown. | |
21119 | finish_eval=$lt_finish_eval | |
21120 | ||
21121 | # Whether we should hardcode library paths into libraries. | |
21122 | hardcode_into_libs=$hardcode_into_libs | |
21123 | ||
21124 | # Compile-time system search path for libraries. | |
21125 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
21126 | ||
21127 | # Detected run-time system search path for libraries. | |
21128 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
21129 | ||
21130 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
21131 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
21132 | ||
21133 | # Whether dlopen is supported. | |
21134 | dlopen_support=$enable_dlopen | |
21135 | ||
21136 | # Whether dlopen of programs is supported. | |
21137 | dlopen_self=$enable_dlopen_self | |
21138 | ||
21139 | # Whether dlopen of statically linked programs is supported. | |
21140 | dlopen_self_static=$enable_dlopen_self_static | |
21141 | ||
21142 | # Commands to strip libraries. | |
21143 | old_striplib=$lt_old_striplib | |
21144 | striplib=$lt_striplib | |
21145 | ||
21146 | ||
21147 | # The linker used to build libraries. | |
21148 | LD=$lt_LD | |
21149 | ||
21150 | # How to create reloadable object files. | |
21151 | reload_flag=$lt_reload_flag | |
21152 | reload_cmds=$lt_reload_cmds | |
21153 | ||
21154 | # Commands used to build an old-style archive. | |
21155 | old_archive_cmds=$lt_old_archive_cmds | |
21156 | ||
21157 | # A language specific compiler. | |
21158 | CC=$lt_compiler | |
21159 | ||
21160 | # Is the compiler the GNU compiler? | |
21161 | with_gcc=$GCC | |
21162 | ||
21163 | # Compiler flag to turn off builtin functions. | |
21164 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
21165 | ||
21166 | # Additional compiler flags for building library objects. | |
21167 | pic_flag=$lt_lt_prog_compiler_pic | |
21168 | ||
21169 | # How to pass a linker flag through the compiler. | |
21170 | wl=$lt_lt_prog_compiler_wl | |
21171 | ||
21172 | # Compiler flag to prevent dynamic linking. | |
21173 | link_static_flag=$lt_lt_prog_compiler_static | |
21174 | ||
21175 | # Does compiler simultaneously support -c and -o options? | |
21176 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
21177 | ||
21178 | # Whether or not to add -lc for building shared libraries. | |
21179 | build_libtool_need_lc=$archive_cmds_need_lc | |
21180 | ||
21181 | # Whether or not to disallow shared libs when runtime libs are static. | |
21182 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
21183 | ||
21184 | # Compiler flag to allow reflexive dlopens. | |
21185 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
21186 | ||
21187 | # Compiler flag to generate shared objects directly from archives. | |
21188 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
21189 | ||
21190 | # Whether the compiler copes with passing no objects directly. | |
21191 | compiler_needs_object=$lt_compiler_needs_object | |
21192 | ||
21193 | # Create an old-style archive from a shared archive. | |
21194 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
21195 | ||
21196 | # Create a temporary old-style archive to link instead of a shared archive. | |
21197 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
21198 | ||
21199 | # Commands used to build a shared archive. | |
21200 | archive_cmds=$lt_archive_cmds | |
21201 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
21202 | ||
21203 | # Commands used to build a loadable module if different from building | |
21204 | # a shared archive. | |
21205 | module_cmds=$lt_module_cmds | |
21206 | module_expsym_cmds=$lt_module_expsym_cmds | |
21207 | ||
21208 | # Whether we are building with GNU ld or not. | |
21209 | with_gnu_ld=$lt_with_gnu_ld | |
21210 | ||
21211 | # Flag that allows shared libraries with undefined symbols to be built. | |
21212 | allow_undefined_flag=$lt_allow_undefined_flag | |
21213 | ||
21214 | # Flag that enforces no undefined symbols. | |
21215 | no_undefined_flag=$lt_no_undefined_flag | |
21216 | ||
21217 | # Flag to hardcode \$libdir into a binary during linking. | |
21218 | # This must work even if \$libdir does not exist | |
21219 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
21220 | ||
21221 | # Whether we need a single "-rpath" flag with a separated argument. | |
21222 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
21223 | ||
21224 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
21225 | # DIR into the resulting binary. | |
21226 | hardcode_direct=$hardcode_direct | |
21227 | ||
21228 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
21229 | # DIR into the resulting binary and the resulting library dependency is | |
21230 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
21231 | # library is relocated. | |
21232 | hardcode_direct_absolute=$hardcode_direct_absolute | |
21233 | ||
21234 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
21235 | # into the resulting binary. | |
21236 | hardcode_minus_L=$hardcode_minus_L | |
21237 | ||
21238 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
21239 | # into the resulting binary. | |
21240 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
21241 | ||
21242 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
21243 | # into the library and all subsequent libraries and executables linked | |
21244 | # against it. | |
21245 | hardcode_automatic=$hardcode_automatic | |
21246 | ||
21247 | # Set to yes if linker adds runtime paths of dependent libraries | |
21248 | # to runtime path list. | |
21249 | inherit_rpath=$inherit_rpath | |
21250 | ||
21251 | # Whether libtool must link a program against all its dependency libraries. | |
21252 | link_all_deplibs=$link_all_deplibs | |
21253 | ||
21254 | # Set to "yes" if exported symbols are required. | |
21255 | always_export_symbols=$always_export_symbols | |
21256 | ||
21257 | # The commands to list exported symbols. | |
21258 | export_symbols_cmds=$lt_export_symbols_cmds | |
21259 | ||
21260 | # Symbols that should not be listed in the preloaded symbols. | |
21261 | exclude_expsyms=$lt_exclude_expsyms | |
21262 | ||
21263 | # Symbols that must always be exported. | |
21264 | include_expsyms=$lt_include_expsyms | |
21265 | ||
21266 | # Commands necessary for linking programs (against libraries) with templates. | |
21267 | prelink_cmds=$lt_prelink_cmds | |
21268 | ||
21269 | # Commands necessary for finishing linking programs. | |
21270 | postlink_cmds=$lt_postlink_cmds | |
21271 | ||
21272 | # Specify filename containing input files. | |
21273 | file_list_spec=$lt_file_list_spec | |
21274 | ||
21275 | # How to hardcode a shared library path into an executable. | |
21276 | hardcode_action=$hardcode_action | |
21277 | ||
21278 | # ### END LIBTOOL CONFIG | |
21279 | ||
21280 | _LT_EOF | |
21281 | ||
21282 | cat <<'_LT_EOF' >> "$cfgfile" | |
21283 | ||
21284 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
21285 | ||
21286 | # func_munge_path_list VARIABLE PATH | |
21287 | # ----------------------------------- | |
21288 | # VARIABLE is name of variable containing _space_ separated list of | |
21289 | # directories to be munged by the contents of PATH, which is string | |
21290 | # having a format: | |
21291 | # "DIR[:DIR]:" | |
21292 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
21293 | # ":DIR[:DIR]" | |
21294 | # string "DIR[ DIR]" will be appended to VARIABLE | |
21295 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
21296 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
21297 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
21298 | # "DIR[:DIR]" | |
21299 | # VARIABLE will be replaced by "DIR[ DIR]" | |
21300 | func_munge_path_list () | |
21301 | { | |
21302 | case x$2 in | |
21303 | x) | |
21304 | ;; | |
21305 | *:) | |
21306 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
21307 | ;; | |
21308 | x:*) | |
21309 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
21310 | ;; | |
21311 | *::*) | |
21312 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
21313 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
21314 | ;; | |
21315 | *) | |
21316 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
21317 | ;; | |
21318 | esac | |
21319 | } | |
21320 | ||
21321 | ||
21322 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
21323 | func_cc_basename () | |
21324 | { | |
21325 | for cc_temp in $*""; do | |
21326 | case $cc_temp in | |
21327 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
21328 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
21329 | \-*) ;; | |
21330 | *) break;; | |
21331 | esac | |
21332 | done | |
21333 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
21334 | } | |
21335 | ||
21336 | ||
21337 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
21338 | ||
21339 | _LT_EOF | |
21340 | ||
21341 | case $host_os in | |
21342 | aix3*) | |
21343 | cat <<\_LT_EOF >> "$cfgfile" | |
21344 | # AIX sometimes has problems with the GCC collect2 program. For some | |
21345 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
21346 | # vanish in a puff of smoke. | |
21347 | if test set != "${COLLECT_NAMES+set}"; then | |
21348 | COLLECT_NAMES= | |
21349 | export COLLECT_NAMES | |
21350 | fi | |
21351 | _LT_EOF | |
21352 | ;; | |
21353 | esac | |
21354 | ||
21355 | ||
21356 | ltmain=$ac_aux_dir/ltmain.sh | |
21357 | ||
21358 | ||
21359 | # We use sed instead of cat because bash on DJGPP gets confused if | |
21360 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
21361 | # text mode, it properly converts lines to CR/LF. This bash problem | |
21362 | # is reportedly fixed, but why not run on old versions too? | |
21363 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
21364 | || (rm -f "$cfgfile"; exit 1) | |
21365 | ||
21366 | mv -f "$cfgfile" "$ofile" || | |
21367 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
21368 | chmod +x "$ofile" | |
21369 | ||
21370 | ;; | |
21371 | ||
21372 | esac | |
21373 | done # for ac_tag | |
21374 | ||
21375 | ||
21376 | as_fn_exit 0 | |
21377 | _ACEOF | |
21378 | ac_clean_files=$ac_clean_files_save | |
21379 | ||
21380 | test $ac_write_fail = 0 || | |
21381 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
21382 | ||
21383 | ||
21384 | # configure is writing to config.log, and then calls config.status. | |
21385 | # config.status does its own redirection, appending to config.log. | |
21386 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
21387 | # by configure, so config.status won't be able to write to it; its | |
21388 | # output is simply discarded. So we exec the FD to /dev/null, | |
21389 | # effectively closing config.log, so it can be properly (re)opened and | |
21390 | # appended to by config.status. When coming back to configure, we | |
21391 | # need to make the FD available again. | |
21392 | if test "$no_create" != yes; then | |
21393 | ac_cs_success=: | |
21394 | ac_config_status_args= | |
21395 | test "$silent" = yes && | |
21396 | ac_config_status_args="$ac_config_status_args --quiet" | |
21397 | exec 5>/dev/null | |
21398 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
21399 | exec 5>>config.log | |
21400 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
21401 | # would make configure fail if this is the last instruction. | |
21402 | $ac_cs_success || as_fn_exit 1 | |
21403 | fi | |
21404 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
21405 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
21406 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
21407 | fi | |
21408 |