]>
Commit | Line | Data |
---|---|---|
87d546d8 TG |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
1ec59ff7 | 3 | # Generated by GNU Autoconf 2.69 for spl 0.6.5.11. |
87d546d8 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' | |
1ec59ff7 CIK |
590 | PACKAGE_VERSION='0.6.5.11' |
591 | PACKAGE_STRING='spl 0.6.5.11' | |
87d546d8 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 | |
1ec59ff7 | 1392 | \`configure' configures spl 0.6.5.11 to adapt to many kinds of systems. |
87d546d8 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 | |
1ec59ff7 | 1464 | short | recursive ) echo "Configuration of spl 0.6.5.11:";; |
87d546d8 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 | |
1ec59ff7 | 1589 | spl configure 0.6.5.11 |
87d546d8 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 | ||
1ec59ff7 | 1867 | It was created by spl $as_me 0.6.5.11, which was |
87d546d8 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" | |
2300 | fi | |
2301 | fi | |
2302 | ||
2303 | if test -n "$SPL_META_RELEASE"; then | |
2304 | ||
2305 | cat >>confdefs.h <<_ACEOF | |
2306 | #define SPL_META_RELEASE "$SPL_META_RELEASE" | |
2307 | _ACEOF | |
2308 | ||
2309 | ||
2310 | ||
2311 | RELEASE="$SPL_META_RELEASE" | |
2312 | ||
2313 | fi | |
2314 | ||
2315 | SPL_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`; | |
2316 | if test -n "$SPL_META_LICENSE"; then | |
2317 | ||
2318 | cat >>confdefs.h <<_ACEOF | |
2319 | #define SPL_META_LICENSE "$SPL_META_LICENSE" | |
2320 | _ACEOF | |
2321 | ||
2322 | ||
2323 | fi | |
2324 | ||
2325 | if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then | |
2326 | SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION" | |
2327 | test -n "$SPL_META_RELEASE" && | |
2328 | SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE" | |
2329 | ||
2330 | cat >>confdefs.h <<_ACEOF | |
2331 | #define SPL_META_ALIAS "$SPL_META_ALIAS" | |
2332 | _ACEOF | |
2333 | ||
2334 | ||
2335 | fi | |
2336 | ||
2337 | SPL_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`; | |
2338 | if test -n "$SPL_META_DATA"; then | |
2339 | ||
2340 | cat >>confdefs.h <<_ACEOF | |
2341 | #define SPL_META_DATA "$SPL_META_DATA" | |
2342 | _ACEOF | |
2343 | ||
2344 | ||
2345 | fi | |
2346 | ||
2347 | SPL_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`; | |
2348 | if test -n "$SPL_META_AUTHOR"; then | |
2349 | ||
2350 | cat >>confdefs.h <<_ACEOF | |
2351 | #define SPL_META_AUTHOR "$SPL_META_AUTHOR" | |
2352 | _ACEOF | |
2353 | ||
2354 | ||
2355 | fi | |
2356 | ||
2357 | ||
2358 | SPL_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`; | |
2359 | SPL_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`; | |
2360 | SPL_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`; | |
2361 | if test -n "$SPL_META_LT_CURRENT" \ | |
2362 | -o -n "$SPL_META_LT_REVISION" \ | |
2363 | -o -n "$SPL_META_LT_AGE"; then | |
2364 | test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0" | |
2365 | test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0" | |
2366 | test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0" | |
2367 | ||
2368 | cat >>confdefs.h <<_ACEOF | |
2369 | #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT" | |
2370 | _ACEOF | |
2371 | ||
2372 | ||
2373 | cat >>confdefs.h <<_ACEOF | |
2374 | #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION" | |
2375 | _ACEOF | |
2376 | ||
2377 | ||
2378 | cat >>confdefs.h <<_ACEOF | |
2379 | #define SPL_META_LT_AGE "$SPL_META_LT_AGE" | |
2380 | _ACEOF | |
2381 | ||
2382 | ||
2383 | ||
2384 | ||
2385 | fi | |
2386 | fi | |
2387 | ||
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_spl_ac_meta_type" >&5 | |
2389 | $as_echo "$_spl_ac_meta_type" >&6; } | |
2390 | ||
2391 | ||
2392 | ac_aux_dir= | |
2393 | for ac_dir in config "$srcdir"/config; do | |
2394 | if test -f "$ac_dir/install-sh"; then | |
2395 | ac_aux_dir=$ac_dir | |
2396 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2397 | break | |
2398 | elif test -f "$ac_dir/install.sh"; then | |
2399 | ac_aux_dir=$ac_dir | |
2400 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2401 | break | |
2402 | elif test -f "$ac_dir/shtool"; then | |
2403 | ac_aux_dir=$ac_dir | |
2404 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2405 | break | |
2406 | fi | |
2407 | done | |
2408 | if test -z "$ac_aux_dir"; then | |
2409 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 | |
2410 | fi | |
2411 | ||
2412 | # These three variables are undocumented and unsupported, | |
2413 | # and are intended to be withdrawn in a future Autoconf release. | |
2414 | # They can cause serious problems if a builder's source tree is in a directory | |
2415 | # whose full name contains unusual characters. | |
2416 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2417 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2418 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2419 | ||
2420 | ||
2421 | ||
2422 | # Make sure we can run config.sub. | |
2423 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2424 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2425 | ||
2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2427 | $as_echo_n "checking build system type... " >&6; } | |
2428 | if ${ac_cv_build+:} false; then : | |
2429 | $as_echo_n "(cached) " >&6 | |
2430 | else | |
2431 | ac_build_alias=$build_alias | |
2432 | test "x$ac_build_alias" = x && | |
2433 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2434 | test "x$ac_build_alias" = x && | |
2435 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2436 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2437 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2438 | ||
2439 | fi | |
2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2441 | $as_echo "$ac_cv_build" >&6; } | |
2442 | case $ac_cv_build in | |
2443 | *-*-*) ;; | |
2444 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2445 | esac | |
2446 | build=$ac_cv_build | |
2447 | ac_save_IFS=$IFS; IFS='-' | |
2448 | set x $ac_cv_build | |
2449 | shift | |
2450 | build_cpu=$1 | |
2451 | build_vendor=$2 | |
2452 | shift; shift | |
2453 | # Remember, the first character of IFS is used to create $*, | |
2454 | # except with old shells: | |
2455 | build_os=$* | |
2456 | IFS=$ac_save_IFS | |
2457 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2458 | ||
2459 | ||
2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2461 | $as_echo_n "checking host system type... " >&6; } | |
2462 | if ${ac_cv_host+:} false; then : | |
2463 | $as_echo_n "(cached) " >&6 | |
2464 | else | |
2465 | if test "x$host_alias" = x; then | |
2466 | ac_cv_host=$ac_cv_build | |
2467 | else | |
2468 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2469 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2470 | fi | |
2471 | ||
2472 | fi | |
2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2474 | $as_echo "$ac_cv_host" >&6; } | |
2475 | case $ac_cv_host in | |
2476 | *-*-*) ;; | |
2477 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2478 | esac | |
2479 | host=$ac_cv_host | |
2480 | ac_save_IFS=$IFS; IFS='-' | |
2481 | set x $ac_cv_host | |
2482 | shift | |
2483 | host_cpu=$1 | |
2484 | host_vendor=$2 | |
2485 | shift; shift | |
2486 | # Remember, the first character of IFS is used to create $*, | |
2487 | # except with old shells: | |
2488 | host_os=$* | |
2489 | IFS=$ac_save_IFS | |
2490 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2491 | ||
2492 | ||
2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2494 | $as_echo_n "checking target system type... " >&6; } | |
2495 | if ${ac_cv_target+:} false; then : | |
2496 | $as_echo_n "(cached) " >&6 | |
2497 | else | |
2498 | if test "x$target_alias" = x; then | |
2499 | ac_cv_target=$ac_cv_host | |
2500 | else | |
2501 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2502 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2503 | fi | |
2504 | ||
2505 | fi | |
2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2507 | $as_echo "$ac_cv_target" >&6; } | |
2508 | case $ac_cv_target in | |
2509 | *-*-*) ;; | |
2510 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2511 | esac | |
2512 | target=$ac_cv_target | |
2513 | ac_save_IFS=$IFS; IFS='-' | |
2514 | set x $ac_cv_target | |
2515 | shift | |
2516 | target_cpu=$1 | |
2517 | target_vendor=$2 | |
2518 | shift; shift | |
2519 | # Remember, the first character of IFS is used to create $*, | |
2520 | # except with old shells: | |
2521 | target_os=$* | |
2522 | IFS=$ac_save_IFS | |
2523 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2524 | ||
2525 | ||
2526 | # The aliases save the names the user supplied, while $host etc. | |
2527 | # will get canonicalized. | |
2528 | test -n "$target_alias" && | |
2529 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2530 | NONENONEs,x,x, && | |
2531 | program_prefix=${target_alias}- | |
2532 | ||
2533 | ||
2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2535 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2536 | # Check whether --enable-maintainer-mode was given. | |
2537 | if test "${enable_maintainer_mode+set}" = set; then : | |
2538 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2539 | else | |
2540 | USE_MAINTAINER_MODE=no | |
2541 | fi | |
2542 | ||
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2544 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2545 | if test $USE_MAINTAINER_MODE = yes; then | |
2546 | MAINTAINER_MODE_TRUE= | |
2547 | MAINTAINER_MODE_FALSE='#' | |
2548 | else | |
2549 | MAINTAINER_MODE_TRUE='#' | |
2550 | MAINTAINER_MODE_FALSE= | |
2551 | fi | |
2552 | ||
2553 | MAINT=$MAINTAINER_MODE_TRUE | |
2554 | ||
2555 | ||
2556 | # Check whether --enable-silent-rules was given. | |
2557 | if test "${enable_silent_rules+set}" = set; then : | |
2558 | enableval=$enable_silent_rules; | |
2559 | fi | |
2560 | ||
2561 | case $enable_silent_rules in # ((( | |
2562 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2563 | no) AM_DEFAULT_VERBOSITY=1;; | |
2564 | *) AM_DEFAULT_VERBOSITY=0;; | |
2565 | esac | |
2566 | am_make=${MAKE-make} | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2568 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2569 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2570 | $as_echo_n "(cached) " >&6 | |
2571 | else | |
2572 | if $as_echo 'TRUE=$(BAR$(V)) | |
2573 | BAR0=false | |
2574 | BAR1=true | |
2575 | V=1 | |
2576 | am__doit: | |
2577 | @$(TRUE) | |
2578 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2579 | am_cv_make_support_nested_variables=yes | |
2580 | else | |
2581 | am_cv_make_support_nested_variables=no | |
2582 | fi | |
2583 | fi | |
2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2585 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2586 | if test $am_cv_make_support_nested_variables = yes; then | |
2587 | AM_V='$(V)' | |
2588 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2589 | else | |
2590 | AM_V=$AM_DEFAULT_VERBOSITY | |
2591 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2592 | fi | |
2593 | AM_BACKSLASH='\' | |
2594 | ||
2595 | am__api_version='1.15' | |
2596 | ||
2597 | # Find a good install program. We prefer a C program (faster), | |
2598 | # so one script is as good as another. But avoid the broken or | |
2599 | # incompatible versions: | |
2600 | # SysV /etc/install, /usr/sbin/install | |
2601 | # SunOS /usr/etc/install | |
2602 | # IRIX /sbin/install | |
2603 | # AIX /bin/install | |
2604 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2605 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2606 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2607 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2608 | # OS/2's system install, which has a completely different semantic | |
2609 | # ./install, which can be erroneously created by make from ./install.sh. | |
2610 | # Reject install programs that cannot install multiple files. | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2612 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2613 | if test -z "$INSTALL"; then | |
2614 | if ${ac_cv_path_install+:} false; then : | |
2615 | $as_echo_n "(cached) " >&6 | |
2616 | else | |
2617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2618 | for as_dir in $PATH | |
2619 | do | |
2620 | IFS=$as_save_IFS | |
2621 | test -z "$as_dir" && as_dir=. | |
2622 | # Account for people who put trailing slashes in PATH elements. | |
2623 | case $as_dir/ in #(( | |
2624 | ./ | .// | /[cC]/* | \ | |
2625 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2626 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2627 | /usr/ucb/* ) ;; | |
2628 | *) | |
2629 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2630 | # Don't use installbsd from OSF since it installs stuff as root | |
2631 | # by default. | |
2632 | for ac_prog in ginstall scoinst install; do | |
2633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2634 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2635 | if test $ac_prog = install && | |
2636 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2637 | # AIX install. It has an incompatible calling convention. | |
2638 | : | |
2639 | elif test $ac_prog = install && | |
2640 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2641 | # program-specific install script used by HP pwplus--don't use. | |
2642 | : | |
2643 | else | |
2644 | rm -rf conftest.one conftest.two conftest.dir | |
2645 | echo one > conftest.one | |
2646 | echo two > conftest.two | |
2647 | mkdir conftest.dir | |
2648 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2649 | test -s conftest.one && test -s conftest.two && | |
2650 | test -s conftest.dir/conftest.one && | |
2651 | test -s conftest.dir/conftest.two | |
2652 | then | |
2653 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2654 | break 3 | |
2655 | fi | |
2656 | fi | |
2657 | fi | |
2658 | done | |
2659 | done | |
2660 | ;; | |
2661 | esac | |
2662 | ||
2663 | done | |
2664 | IFS=$as_save_IFS | |
2665 | ||
2666 | rm -rf conftest.one conftest.two conftest.dir | |
2667 | ||
2668 | fi | |
2669 | if test "${ac_cv_path_install+set}" = set; then | |
2670 | INSTALL=$ac_cv_path_install | |
2671 | else | |
2672 | # As a last resort, use the slow shell script. Don't cache a | |
2673 | # value for INSTALL within a source directory, because that will | |
2674 | # break other packages using the cache if that directory is | |
2675 | # removed, or if the value is a relative name. | |
2676 | INSTALL=$ac_install_sh | |
2677 | fi | |
2678 | fi | |
2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2680 | $as_echo "$INSTALL" >&6; } | |
2681 | ||
2682 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2683 | # It thinks the first close brace ends the variable substitution. | |
2684 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2685 | ||
2686 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2687 | ||
2688 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2689 | ||
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2691 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2692 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2693 | # name. Accept space and tab only in the latter. | |
2694 | am_lf=' | |
2695 | ' | |
2696 | case `pwd` in | |
2697 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2698 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2699 | esac | |
2700 | case $srcdir in | |
2701 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2702 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2703 | esac | |
2704 | ||
2705 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2706 | # arguments. Must try -L first in case configure is actually a | |
2707 | # symlink; some systems play weird games with the mod time of symlinks | |
2708 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2709 | # directory). | |
2710 | if ( | |
2711 | am_has_slept=no | |
2712 | for am_try in 1 2; do | |
2713 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2714 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2715 | if test "$*" = "X"; then | |
2716 | # -L didn't work. | |
2717 | set X `ls -t "$srcdir/configure" conftest.file` | |
2718 | fi | |
2719 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2720 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2721 | ||
2722 | # If neither matched, then we have a broken ls. This can happen | |
2723 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2724 | # broken ls alias from the environment. This has actually | |
2725 | # happened. Such a system could not be considered "sane". | |
2726 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2727 | alias in your environment" "$LINENO" 5 | |
2728 | fi | |
2729 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2730 | break | |
2731 | fi | |
2732 | # Just in case. | |
2733 | sleep 1 | |
2734 | am_has_slept=yes | |
2735 | done | |
2736 | test "$2" = conftest.file | |
2737 | ) | |
2738 | then | |
2739 | # Ok. | |
2740 | : | |
2741 | else | |
2742 | as_fn_error $? "newly created file is older than distributed files! | |
2743 | Check your system clock" "$LINENO" 5 | |
2744 | fi | |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2746 | $as_echo "yes" >&6; } | |
2747 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2748 | # generated files are strictly newer. | |
2749 | am_sleep_pid= | |
2750 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2751 | ( sleep 1 ) & | |
2752 | am_sleep_pid=$! | |
2753 | fi | |
2754 | ||
2755 | rm -f conftest.file | |
2756 | ||
2757 | test "$program_prefix" != NONE && | |
2758 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2759 | # Use a double $ so make ignores it. | |
2760 | test "$program_suffix" != NONE && | |
2761 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2762 | # Double any \ or $. | |
2763 | # By default was `s,x,x', remove it if useless. | |
2764 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2765 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2766 | ||
2767 | # Expand $ac_aux_dir to an absolute path. | |
2768 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2769 | ||
2770 | if test x"${MISSING+set}" != xset; then | |
2771 | case $am_aux_dir in | |
2772 | *\ * | *\ *) | |
2773 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2774 | *) | |
2775 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2776 | esac | |
2777 | fi | |
2778 | # Use eval to expand $SHELL | |
2779 | if eval "$MISSING --is-lightweight"; then | |
2780 | am_missing_run="$MISSING " | |
2781 | else | |
2782 | am_missing_run= | |
2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2784 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2785 | fi | |
2786 | ||
2787 | if test x"${install_sh+set}" != xset; then | |
2788 | case $am_aux_dir in | |
2789 | *\ * | *\ *) | |
2790 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2791 | *) | |
2792 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2793 | esac | |
2794 | fi | |
2795 | ||
2796 | # Installed binaries are usually stripped using 'strip' when the user | |
2797 | # run "make install-strip". However 'strip' might not be the right | |
2798 | # tool to use in cross-compilation environments, therefore Automake | |
2799 | # will honor the 'STRIP' environment variable to overrule this program. | |
2800 | if test "$cross_compiling" != no; then | |
2801 | if test -n "$ac_tool_prefix"; then | |
2802 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2803 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2805 | $as_echo_n "checking for $ac_word... " >&6; } | |
2806 | if ${ac_cv_prog_STRIP+:} false; then : | |
2807 | $as_echo_n "(cached) " >&6 | |
2808 | else | |
2809 | if test -n "$STRIP"; then | |
2810 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2811 | else | |
2812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2813 | for as_dir in $PATH | |
2814 | do | |
2815 | IFS=$as_save_IFS | |
2816 | test -z "$as_dir" && as_dir=. | |
2817 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2818 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2819 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2821 | break 2 | |
2822 | fi | |
2823 | done | |
2824 | done | |
2825 | IFS=$as_save_IFS | |
2826 | ||
2827 | fi | |
2828 | fi | |
2829 | STRIP=$ac_cv_prog_STRIP | |
2830 | if test -n "$STRIP"; then | |
2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2832 | $as_echo "$STRIP" >&6; } | |
2833 | else | |
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2835 | $as_echo "no" >&6; } | |
2836 | fi | |
2837 | ||
2838 | ||
2839 | fi | |
2840 | if test -z "$ac_cv_prog_STRIP"; then | |
2841 | ac_ct_STRIP=$STRIP | |
2842 | # Extract the first word of "strip", so it can be a program name with args. | |
2843 | set dummy strip; ac_word=$2 | |
2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2845 | $as_echo_n "checking for $ac_word... " >&6; } | |
2846 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2847 | $as_echo_n "(cached) " >&6 | |
2848 | else | |
2849 | if test -n "$ac_ct_STRIP"; then | |
2850 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2851 | else | |
2852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2853 | for as_dir in $PATH | |
2854 | do | |
2855 | IFS=$as_save_IFS | |
2856 | test -z "$as_dir" && as_dir=. | |
2857 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2859 | ac_cv_prog_ac_ct_STRIP="strip" | |
2860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2861 | break 2 | |
2862 | fi | |
2863 | done | |
2864 | done | |
2865 | IFS=$as_save_IFS | |
2866 | ||
2867 | fi | |
2868 | fi | |
2869 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2870 | if test -n "$ac_ct_STRIP"; then | |
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2872 | $as_echo "$ac_ct_STRIP" >&6; } | |
2873 | else | |
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2875 | $as_echo "no" >&6; } | |
2876 | fi | |
2877 | ||
2878 | if test "x$ac_ct_STRIP" = x; then | |
2879 | STRIP=":" | |
2880 | else | |
2881 | case $cross_compiling:$ac_tool_warned in | |
2882 | yes:) | |
2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2884 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2885 | ac_tool_warned=yes ;; | |
2886 | esac | |
2887 | STRIP=$ac_ct_STRIP | |
2888 | fi | |
2889 | else | |
2890 | STRIP="$ac_cv_prog_STRIP" | |
2891 | fi | |
2892 | ||
2893 | fi | |
2894 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2895 | ||
2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2897 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2898 | if test -z "$MKDIR_P"; then | |
2899 | if ${ac_cv_path_mkdir+:} false; then : | |
2900 | $as_echo_n "(cached) " >&6 | |
2901 | else | |
2902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2903 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2904 | do | |
2905 | IFS=$as_save_IFS | |
2906 | test -z "$as_dir" && as_dir=. | |
2907 | for ac_prog in mkdir gmkdir; do | |
2908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2909 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2910 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2911 | 'mkdir (GNU coreutils) '* | \ | |
2912 | 'mkdir (coreutils) '* | \ | |
2913 | 'mkdir (fileutils) '4.1*) | |
2914 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2915 | break 3;; | |
2916 | esac | |
2917 | done | |
2918 | done | |
2919 | done | |
2920 | IFS=$as_save_IFS | |
2921 | ||
2922 | fi | |
2923 | ||
2924 | test -d ./--version && rmdir ./--version | |
2925 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2926 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2927 | else | |
2928 | # As a last resort, use the slow shell script. Don't cache a | |
2929 | # value for MKDIR_P within a source directory, because that will | |
2930 | # break other packages using the cache if that directory is | |
2931 | # removed, or if the value is a relative name. | |
2932 | MKDIR_P="$ac_install_sh -d" | |
2933 | fi | |
2934 | fi | |
2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2936 | $as_echo "$MKDIR_P" >&6; } | |
2937 | ||
2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2939 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2940 | set x ${MAKE-make} | |
2941 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2942 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2943 | $as_echo_n "(cached) " >&6 | |
2944 | else | |
2945 | cat >conftest.make <<\_ACEOF | |
2946 | SHELL = /bin/sh | |
2947 | all: | |
2948 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2949 | _ACEOF | |
2950 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2951 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2952 | *@@@%%%=?*=@@@%%%*) | |
2953 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2954 | *) | |
2955 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2956 | esac | |
2957 | rm -f conftest.make | |
2958 | fi | |
2959 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2961 | $as_echo "yes" >&6; } | |
2962 | SET_MAKE= | |
2963 | else | |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2965 | $as_echo "no" >&6; } | |
2966 | SET_MAKE="MAKE=${MAKE-make}" | |
2967 | fi | |
2968 | ||
2969 | rm -rf .tst 2>/dev/null | |
2970 | mkdir .tst 2>/dev/null | |
2971 | if test -d .tst; then | |
2972 | am__leading_dot=. | |
2973 | else | |
2974 | am__leading_dot=_ | |
2975 | fi | |
2976 | rmdir .tst 2>/dev/null | |
2977 | ||
2978 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2979 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2980 | # is not polluted with repeated "-I." | |
2981 | am__isrc=' -I$(srcdir)' | |
2982 | # test to see if srcdir already configured | |
2983 | if test -f $srcdir/config.status; then | |
2984 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2985 | fi | |
2986 | fi | |
2987 | ||
2988 | # test whether we have cygpath | |
2989 | if test -z "$CYGPATH_W"; then | |
2990 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2991 | CYGPATH_W='cygpath -w' | |
2992 | else | |
2993 | CYGPATH_W=echo | |
2994 | fi | |
2995 | fi | |
2996 | ||
2997 | ||
2998 | # Define the identity of the package. | |
2999 | PACKAGE='spl' | |
1ec59ff7 | 3000 | VERSION='0.6.5.11' |
87d546d8 TG |
3001 | |
3002 | ||
3003 | cat >>confdefs.h <<_ACEOF | |
3004 | #define PACKAGE "$PACKAGE" | |
3005 | _ACEOF | |
3006 | ||
3007 | ||
3008 | cat >>confdefs.h <<_ACEOF | |
3009 | #define VERSION "$VERSION" | |
3010 | _ACEOF | |
3011 | ||
3012 | # Some tools Automake needs. | |
3013 | ||
3014 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3015 | ||
3016 | ||
3017 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3018 | ||
3019 | ||
3020 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3021 | ||
3022 | ||
3023 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3024 | ||
3025 | ||
3026 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3027 | ||
3028 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3029 | # dies out for good. For more background, see: | |
3030 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3031 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3032 | mkdir_p='$(MKDIR_P)' | |
3033 | ||
3034 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3035 | # system "awk" is bad on some platforms. | |
3036 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3037 | # in the wild :-( We should find a proper way to deprecate it ... | |
3038 | AMTAR='$${TAR-tar}' | |
3039 | ||
3040 | ||
3041 | # We'll loop over all known methods to create a tar archive until one works. | |
3042 | _am_tools='gnutar pax cpio none' | |
3043 | ||
3044 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3045 | ||
3046 | ||
3047 | ||
3048 | ||
3049 | ||
3050 | ||
3051 | # POSIX will say in a future version that running "rm -f" with no argument | |
3052 | # is OK; and we want to be able to make that assumption in our Makefile | |
3053 | # recipes. So use an aggressive probe to check that the usage we want is | |
3054 | # actually supported "in the wild" to an acceptable degree. | |
3055 | # See automake bug#10828. | |
3056 | # To make any issue more visible, cause the running configure to be aborted | |
3057 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3058 | # user can still override this though. | |
3059 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3060 | cat >&2 <<'END' | |
3061 | Oops! | |
3062 | ||
3063 | Your 'rm' program seems unable to run without file operands specified | |
3064 | on the command line, even when the '-f' option is present. This is contrary | |
3065 | to the behaviour of most rm programs out there, and not conforming with | |
3066 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3067 | ||
3068 | Please tell bug-automake@gnu.org about your system, including the value | |
3069 | of your $PATH and any error possibly output before this message. This | |
3070 | can help us improve future automake versions. | |
3071 | ||
3072 | END | |
3073 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3074 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3075 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3076 | echo >&2 | |
3077 | else | |
3078 | cat >&2 <<'END' | |
3079 | Aborting the configuration process, to ensure you take notice of the issue. | |
3080 | ||
3081 | You can download and install GNU coreutils to get an 'rm' implementation | |
3082 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3083 | ||
3084 | If you want to complete the configuration process using your problematic | |
3085 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3086 | to "yes", and re-run configure. | |
3087 | ||
3088 | END | |
3089 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3090 | fi | |
3091 | fi | |
3092 | ||
3093 | ac_config_headers="$ac_config_headers spl_config.h" | |
3094 | ||
3095 | ||
3096 | ||
3097 | ac_ext=c | |
3098 | ac_cpp='$CPP $CPPFLAGS' | |
3099 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3100 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3101 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3102 | if test -n "$ac_tool_prefix"; then | |
3103 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3104 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3106 | $as_echo_n "checking for $ac_word... " >&6; } | |
3107 | if ${ac_cv_prog_CC+:} false; then : | |
3108 | $as_echo_n "(cached) " >&6 | |
3109 | else | |
3110 | if test -n "$CC"; then | |
3111 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3112 | else | |
3113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3114 | for as_dir in $PATH | |
3115 | do | |
3116 | IFS=$as_save_IFS | |
3117 | test -z "$as_dir" && as_dir=. | |
3118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3119 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3120 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3121 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3122 | break 2 | |
3123 | fi | |
3124 | done | |
3125 | done | |
3126 | IFS=$as_save_IFS | |
3127 | ||
3128 | fi | |
3129 | fi | |
3130 | CC=$ac_cv_prog_CC | |
3131 | if test -n "$CC"; then | |
3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3133 | $as_echo "$CC" >&6; } | |
3134 | else | |
3135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3136 | $as_echo "no" >&6; } | |
3137 | fi | |
3138 | ||
3139 | ||
3140 | fi | |
3141 | if test -z "$ac_cv_prog_CC"; then | |
3142 | ac_ct_CC=$CC | |
3143 | # Extract the first word of "gcc", so it can be a program name with args. | |
3144 | set dummy gcc; ac_word=$2 | |
3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3146 | $as_echo_n "checking for $ac_word... " >&6; } | |
3147 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3148 | $as_echo_n "(cached) " >&6 | |
3149 | else | |
3150 | if test -n "$ac_ct_CC"; then | |
3151 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3152 | else | |
3153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3154 | for as_dir in $PATH | |
3155 | do | |
3156 | IFS=$as_save_IFS | |
3157 | test -z "$as_dir" && as_dir=. | |
3158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3159 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3160 | ac_cv_prog_ac_ct_CC="gcc" | |
3161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3162 | break 2 | |
3163 | fi | |
3164 | done | |
3165 | done | |
3166 | IFS=$as_save_IFS | |
3167 | ||
3168 | fi | |
3169 | fi | |
3170 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3171 | if test -n "$ac_ct_CC"; then | |
3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3173 | $as_echo "$ac_ct_CC" >&6; } | |
3174 | else | |
3175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3176 | $as_echo "no" >&6; } | |
3177 | fi | |
3178 | ||
3179 | if test "x$ac_ct_CC" = x; then | |
3180 | CC="" | |
3181 | else | |
3182 | case $cross_compiling:$ac_tool_warned in | |
3183 | yes:) | |
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3185 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3186 | ac_tool_warned=yes ;; | |
3187 | esac | |
3188 | CC=$ac_ct_CC | |
3189 | fi | |
3190 | else | |
3191 | CC="$ac_cv_prog_CC" | |
3192 | fi | |
3193 | ||
3194 | if test -z "$CC"; then | |
3195 | if test -n "$ac_tool_prefix"; then | |
3196 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3197 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3199 | $as_echo_n "checking for $ac_word... " >&6; } | |
3200 | if ${ac_cv_prog_CC+:} false; then : | |
3201 | $as_echo_n "(cached) " >&6 | |
3202 | else | |
3203 | if test -n "$CC"; then | |
3204 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3205 | else | |
3206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3207 | for as_dir in $PATH | |
3208 | do | |
3209 | IFS=$as_save_IFS | |
3210 | test -z "$as_dir" && as_dir=. | |
3211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3213 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3215 | break 2 | |
3216 | fi | |
3217 | done | |
3218 | done | |
3219 | IFS=$as_save_IFS | |
3220 | ||
3221 | fi | |
3222 | fi | |
3223 | CC=$ac_cv_prog_CC | |
3224 | if test -n "$CC"; then | |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3226 | $as_echo "$CC" >&6; } | |
3227 | else | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3229 | $as_echo "no" >&6; } | |
3230 | fi | |
3231 | ||
3232 | ||
3233 | fi | |
3234 | fi | |
3235 | if test -z "$CC"; then | |
3236 | # Extract the first word of "cc", so it can be a program name with args. | |
3237 | set dummy cc; ac_word=$2 | |
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3239 | $as_echo_n "checking for $ac_word... " >&6; } | |
3240 | if ${ac_cv_prog_CC+:} false; then : | |
3241 | $as_echo_n "(cached) " >&6 | |
3242 | else | |
3243 | if test -n "$CC"; then | |
3244 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3245 | else | |
3246 | ac_prog_rejected=no | |
3247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3248 | for as_dir in $PATH | |
3249 | do | |
3250 | IFS=$as_save_IFS | |
3251 | test -z "$as_dir" && as_dir=. | |
3252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3253 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3254 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3255 | ac_prog_rejected=yes | |
3256 | continue | |
3257 | fi | |
3258 | ac_cv_prog_CC="cc" | |
3259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3260 | break 2 | |
3261 | fi | |
3262 | done | |
3263 | done | |
3264 | IFS=$as_save_IFS | |
3265 | ||
3266 | if test $ac_prog_rejected = yes; then | |
3267 | # We found a bogon in the path, so make sure we never use it. | |
3268 | set dummy $ac_cv_prog_CC | |
3269 | shift | |
3270 | if test $# != 0; then | |
3271 | # We chose a different compiler from the bogus one. | |
3272 | # However, it has the same basename, so the bogon will be chosen | |
3273 | # first if we set CC to just the basename; use the full file name. | |
3274 | shift | |
3275 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3276 | fi | |
3277 | fi | |
3278 | fi | |
3279 | fi | |
3280 | CC=$ac_cv_prog_CC | |
3281 | if test -n "$CC"; then | |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3283 | $as_echo "$CC" >&6; } | |
3284 | else | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3286 | $as_echo "no" >&6; } | |
3287 | fi | |
3288 | ||
3289 | ||
3290 | fi | |
3291 | if test -z "$CC"; then | |
3292 | if test -n "$ac_tool_prefix"; then | |
3293 | for ac_prog in cl.exe | |
3294 | do | |
3295 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3296 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3298 | $as_echo_n "checking for $ac_word... " >&6; } | |
3299 | if ${ac_cv_prog_CC+:} false; then : | |
3300 | $as_echo_n "(cached) " >&6 | |
3301 | else | |
3302 | if test -n "$CC"; then | |
3303 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3304 | else | |
3305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3306 | for as_dir in $PATH | |
3307 | do | |
3308 | IFS=$as_save_IFS | |
3309 | test -z "$as_dir" && as_dir=. | |
3310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3312 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3314 | break 2 | |
3315 | fi | |
3316 | done | |
3317 | done | |
3318 | IFS=$as_save_IFS | |
3319 | ||
3320 | fi | |
3321 | fi | |
3322 | CC=$ac_cv_prog_CC | |
3323 | if test -n "$CC"; then | |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3325 | $as_echo "$CC" >&6; } | |
3326 | else | |
3327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3328 | $as_echo "no" >&6; } | |
3329 | fi | |
3330 | ||
3331 | ||
3332 | test -n "$CC" && break | |
3333 | done | |
3334 | fi | |
3335 | if test -z "$CC"; then | |
3336 | ac_ct_CC=$CC | |
3337 | for ac_prog in cl.exe | |
3338 | do | |
3339 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3340 | set dummy $ac_prog; ac_word=$2 | |
3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3342 | $as_echo_n "checking for $ac_word... " >&6; } | |
3343 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3344 | $as_echo_n "(cached) " >&6 | |
3345 | else | |
3346 | if test -n "$ac_ct_CC"; then | |
3347 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3348 | else | |
3349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3350 | for as_dir in $PATH | |
3351 | do | |
3352 | IFS=$as_save_IFS | |
3353 | test -z "$as_dir" && as_dir=. | |
3354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3356 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3358 | break 2 | |
3359 | fi | |
3360 | done | |
3361 | done | |
3362 | IFS=$as_save_IFS | |
3363 | ||
3364 | fi | |
3365 | fi | |
3366 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3367 | if test -n "$ac_ct_CC"; then | |
3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3369 | $as_echo "$ac_ct_CC" >&6; } | |
3370 | else | |
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3372 | $as_echo "no" >&6; } | |
3373 | fi | |
3374 | ||
3375 | ||
3376 | test -n "$ac_ct_CC" && break | |
3377 | done | |
3378 | ||
3379 | if test "x$ac_ct_CC" = x; then | |
3380 | CC="" | |
3381 | else | |
3382 | case $cross_compiling:$ac_tool_warned in | |
3383 | yes:) | |
3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3385 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3386 | ac_tool_warned=yes ;; | |
3387 | esac | |
3388 | CC=$ac_ct_CC | |
3389 | fi | |
3390 | fi | |
3391 | ||
3392 | fi | |
3393 | ||
3394 | ||
3395 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3397 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3398 | See \`config.log' for more details" "$LINENO" 5; } | |
3399 | ||
3400 | # Provide some information about the compiler. | |
3401 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3402 | set X $ac_compile | |
3403 | ac_compiler=$2 | |
3404 | for ac_option in --version -v -V -qversion; do | |
3405 | { { ac_try="$ac_compiler $ac_option >&5" | |
3406 | case "(($ac_try" in | |
3407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3408 | *) ac_try_echo=$ac_try;; | |
3409 | esac | |
3410 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3411 | $as_echo "$ac_try_echo"; } >&5 | |
3412 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3413 | ac_status=$? | |
3414 | if test -s conftest.err; then | |
3415 | sed '10a\ | |
3416 | ... rest of stderr output deleted ... | |
3417 | 10q' conftest.err >conftest.er1 | |
3418 | cat conftest.er1 >&5 | |
3419 | fi | |
3420 | rm -f conftest.er1 conftest.err | |
3421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3422 | test $ac_status = 0; } | |
3423 | done | |
3424 | ||
3425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3426 | /* end confdefs.h. */ | |
3427 | ||
3428 | int | |
3429 | main () | |
3430 | { | |
3431 | ||
3432 | ; | |
3433 | return 0; | |
3434 | } | |
3435 | _ACEOF | |
3436 | ac_clean_files_save=$ac_clean_files | |
3437 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3438 | # Try to create an executable without -o first, disregard a.out. | |
3439 | # It will help us diagnose broken compilers, and finding out an intuition | |
3440 | # of exeext. | |
3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3442 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3443 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3444 | ||
3445 | # The possible output files: | |
3446 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3447 | ||
3448 | ac_rmfiles= | |
3449 | for ac_file in $ac_files | |
3450 | do | |
3451 | case $ac_file in | |
3452 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3453 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3454 | esac | |
3455 | done | |
3456 | rm -f $ac_rmfiles | |
3457 | ||
3458 | if { { ac_try="$ac_link_default" | |
3459 | case "(($ac_try" in | |
3460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3461 | *) ac_try_echo=$ac_try;; | |
3462 | esac | |
3463 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3464 | $as_echo "$ac_try_echo"; } >&5 | |
3465 | (eval "$ac_link_default") 2>&5 | |
3466 | ac_status=$? | |
3467 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3468 | test $ac_status = 0; }; then : | |
3469 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3470 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3471 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3472 | # so that the user can short-circuit this test for compilers unknown to | |
3473 | # Autoconf. | |
3474 | for ac_file in $ac_files '' | |
3475 | do | |
3476 | test -f "$ac_file" || continue | |
3477 | case $ac_file in | |
3478 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3479 | ;; | |
3480 | [ab].out ) | |
3481 | # We found the default executable, but exeext='' is most | |
3482 | # certainly right. | |
3483 | break;; | |
3484 | *.* ) | |
3485 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3486 | then :; else | |
3487 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3488 | fi | |
3489 | # We set ac_cv_exeext here because the later test for it is not | |
3490 | # safe: cross compilers may not add the suffix if given an `-o' | |
3491 | # argument, so we may need to know it at that point already. | |
3492 | # Even if this section looks crufty: it has the advantage of | |
3493 | # actually working. | |
3494 | break;; | |
3495 | * ) | |
3496 | break;; | |
3497 | esac | |
3498 | done | |
3499 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3500 | ||
3501 | else | |
3502 | ac_file='' | |
3503 | fi | |
3504 | if test -z "$ac_file"; then : | |
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3506 | $as_echo "no" >&6; } | |
3507 | $as_echo "$as_me: failed program was:" >&5 | |
3508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3509 | ||
3510 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3511 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3512 | as_fn_error 77 "C compiler cannot create executables | |
3513 | See \`config.log' for more details" "$LINENO" 5; } | |
3514 | else | |
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3516 | $as_echo "yes" >&6; } | |
3517 | fi | |
3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3519 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3521 | $as_echo "$ac_file" >&6; } | |
3522 | ac_exeext=$ac_cv_exeext | |
3523 | ||
3524 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3525 | ac_clean_files=$ac_clean_files_save | |
3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3527 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3528 | if { { ac_try="$ac_link" | |
3529 | case "(($ac_try" in | |
3530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3531 | *) ac_try_echo=$ac_try;; | |
3532 | esac | |
3533 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3534 | $as_echo "$ac_try_echo"; } >&5 | |
3535 | (eval "$ac_link") 2>&5 | |
3536 | ac_status=$? | |
3537 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3538 | test $ac_status = 0; }; then : | |
3539 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3540 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3541 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3542 | # `rm'. | |
3543 | for ac_file in conftest.exe conftest conftest.*; do | |
3544 | test -f "$ac_file" || continue | |
3545 | case $ac_file in | |
3546 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3547 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3548 | break;; | |
3549 | * ) break;; | |
3550 | esac | |
3551 | done | |
3552 | else | |
3553 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3555 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3556 | See \`config.log' for more details" "$LINENO" 5; } | |
3557 | fi | |
3558 | rm -f conftest conftest$ac_cv_exeext | |
3559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3560 | $as_echo "$ac_cv_exeext" >&6; } | |
3561 | ||
3562 | rm -f conftest.$ac_ext | |
3563 | EXEEXT=$ac_cv_exeext | |
3564 | ac_exeext=$EXEEXT | |
3565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3566 | /* end confdefs.h. */ | |
3567 | #include <stdio.h> | |
3568 | int | |
3569 | main () | |
3570 | { | |
3571 | FILE *f = fopen ("conftest.out", "w"); | |
3572 | return ferror (f) || fclose (f) != 0; | |
3573 | ||
3574 | ; | |
3575 | return 0; | |
3576 | } | |
3577 | _ACEOF | |
3578 | ac_clean_files="$ac_clean_files conftest.out" | |
3579 | # Check that the compiler produces executables we can run. If not, either | |
3580 | # the compiler is broken, or we cross compile. | |
3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3582 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3583 | if test "$cross_compiling" != yes; then | |
3584 | { { ac_try="$ac_link" | |
3585 | case "(($ac_try" in | |
3586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3587 | *) ac_try_echo=$ac_try;; | |
3588 | esac | |
3589 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3590 | $as_echo "$ac_try_echo"; } >&5 | |
3591 | (eval "$ac_link") 2>&5 | |
3592 | ac_status=$? | |
3593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3594 | test $ac_status = 0; } | |
3595 | if { ac_try='./conftest$ac_cv_exeext' | |
3596 | { { case "(($ac_try" in | |
3597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3598 | *) ac_try_echo=$ac_try;; | |
3599 | esac | |
3600 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3601 | $as_echo "$ac_try_echo"; } >&5 | |
3602 | (eval "$ac_try") 2>&5 | |
3603 | ac_status=$? | |
3604 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3605 | test $ac_status = 0; }; }; then | |
3606 | cross_compiling=no | |
3607 | else | |
3608 | if test "$cross_compiling" = maybe; then | |
3609 | cross_compiling=yes | |
3610 | else | |
3611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3613 | as_fn_error $? "cannot run C compiled programs. | |
3614 | If you meant to cross compile, use \`--host'. | |
3615 | See \`config.log' for more details" "$LINENO" 5; } | |
3616 | fi | |
3617 | fi | |
3618 | fi | |
3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3620 | $as_echo "$cross_compiling" >&6; } | |
3621 | ||
3622 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3623 | ac_clean_files=$ac_clean_files_save | |
3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3625 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3626 | if ${ac_cv_objext+:} false; then : | |
3627 | $as_echo_n "(cached) " >&6 | |
3628 | else | |
3629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3630 | /* end confdefs.h. */ | |
3631 | ||
3632 | int | |
3633 | main () | |
3634 | { | |
3635 | ||
3636 | ; | |
3637 | return 0; | |
3638 | } | |
3639 | _ACEOF | |
3640 | rm -f conftest.o conftest.obj | |
3641 | if { { ac_try="$ac_compile" | |
3642 | case "(($ac_try" in | |
3643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3644 | *) ac_try_echo=$ac_try;; | |
3645 | esac | |
3646 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3647 | $as_echo "$ac_try_echo"; } >&5 | |
3648 | (eval "$ac_compile") 2>&5 | |
3649 | ac_status=$? | |
3650 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3651 | test $ac_status = 0; }; then : | |
3652 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3653 | test -f "$ac_file" || continue; | |
3654 | case $ac_file in | |
3655 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3656 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3657 | break;; | |
3658 | esac | |
3659 | done | |
3660 | else | |
3661 | $as_echo "$as_me: failed program was:" >&5 | |
3662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3663 | ||
3664 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3666 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3667 | See \`config.log' for more details" "$LINENO" 5; } | |
3668 | fi | |
3669 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3670 | fi | |
3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3672 | $as_echo "$ac_cv_objext" >&6; } | |
3673 | OBJEXT=$ac_cv_objext | |
3674 | ac_objext=$OBJEXT | |
3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3676 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3677 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3678 | $as_echo_n "(cached) " >&6 | |
3679 | else | |
3680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3681 | /* end confdefs.h. */ | |
3682 | ||
3683 | int | |
3684 | main () | |
3685 | { | |
3686 | #ifndef __GNUC__ | |
3687 | choke me | |
3688 | #endif | |
3689 | ||
3690 | ; | |
3691 | return 0; | |
3692 | } | |
3693 | _ACEOF | |
3694 | if ac_fn_c_try_compile "$LINENO"; then : | |
3695 | ac_compiler_gnu=yes | |
3696 | else | |
3697 | ac_compiler_gnu=no | |
3698 | fi | |
3699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3700 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3701 | ||
3702 | fi | |
3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3704 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3705 | if test $ac_compiler_gnu = yes; then | |
3706 | GCC=yes | |
3707 | else | |
3708 | GCC= | |
3709 | fi | |
3710 | ac_test_CFLAGS=${CFLAGS+set} | |
3711 | ac_save_CFLAGS=$CFLAGS | |
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3713 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3714 | if ${ac_cv_prog_cc_g+:} false; then : | |
3715 | $as_echo_n "(cached) " >&6 | |
3716 | else | |
3717 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3718 | ac_c_werror_flag=yes | |
3719 | ac_cv_prog_cc_g=no | |
3720 | CFLAGS="-g" | |
3721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3722 | /* end confdefs.h. */ | |
3723 | ||
3724 | int | |
3725 | main () | |
3726 | { | |
3727 | ||
3728 | ; | |
3729 | return 0; | |
3730 | } | |
3731 | _ACEOF | |
3732 | if ac_fn_c_try_compile "$LINENO"; then : | |
3733 | ac_cv_prog_cc_g=yes | |
3734 | else | |
3735 | CFLAGS="" | |
3736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3737 | /* end confdefs.h. */ | |
3738 | ||
3739 | int | |
3740 | main () | |
3741 | { | |
3742 | ||
3743 | ; | |
3744 | return 0; | |
3745 | } | |
3746 | _ACEOF | |
3747 | if ac_fn_c_try_compile "$LINENO"; then : | |
3748 | ||
3749 | else | |
3750 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3751 | CFLAGS="-g" | |
3752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3753 | /* end confdefs.h. */ | |
3754 | ||
3755 | int | |
3756 | main () | |
3757 | { | |
3758 | ||
3759 | ; | |
3760 | return 0; | |
3761 | } | |
3762 | _ACEOF | |
3763 | if ac_fn_c_try_compile "$LINENO"; then : | |
3764 | ac_cv_prog_cc_g=yes | |
3765 | fi | |
3766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3767 | fi | |
3768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3769 | fi | |
3770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3771 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3772 | fi | |
3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3774 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3775 | if test "$ac_test_CFLAGS" = set; then | |
3776 | CFLAGS=$ac_save_CFLAGS | |
3777 | elif test $ac_cv_prog_cc_g = yes; then | |
3778 | if test "$GCC" = yes; then | |
3779 | CFLAGS="-g -O2" | |
3780 | else | |
3781 | CFLAGS="-g" | |
3782 | fi | |
3783 | else | |
3784 | if test "$GCC" = yes; then | |
3785 | CFLAGS="-O2" | |
3786 | else | |
3787 | CFLAGS= | |
3788 | fi | |
3789 | fi | |
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3791 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3792 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3793 | $as_echo_n "(cached) " >&6 | |
3794 | else | |
3795 | ac_cv_prog_cc_c89=no | |
3796 | ac_save_CC=$CC | |
3797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3798 | /* end confdefs.h. */ | |
3799 | #include <stdarg.h> | |
3800 | #include <stdio.h> | |
3801 | struct stat; | |
3802 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3803 | struct buf { int x; }; | |
3804 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3805 | static char *e (p, i) | |
3806 | char **p; | |
3807 | int i; | |
3808 | { | |
3809 | return p[i]; | |
3810 | } | |
3811 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3812 | { | |
3813 | char *s; | |
3814 | va_list v; | |
3815 | va_start (v,p); | |
3816 | s = g (p, va_arg (v,int)); | |
3817 | va_end (v); | |
3818 | return s; | |
3819 | } | |
3820 | ||
3821 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3822 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3823 | These don't provoke an error unfortunately, instead are silently treated | |
3824 | as 'x'. The following induces an error, until -std is added to get | |
3825 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3826 | array size at least. It's necessary to write '\x00'==0 to get something | |
3827 | that's true only with -std. */ | |
3828 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3829 | ||
3830 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3831 | inside strings and character constants. */ | |
3832 | #define FOO(x) 'x' | |
3833 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3834 | ||
3835 | int test (int i, double x); | |
3836 | struct s1 {int (*f) (int a);}; | |
3837 | struct s2 {int (*f) (double a);}; | |
3838 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3839 | int argc; | |
3840 | char **argv; | |
3841 | int | |
3842 | main () | |
3843 | { | |
3844 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3845 | ; | |
3846 | return 0; | |
3847 | } | |
3848 | _ACEOF | |
3849 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3850 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3851 | do | |
3852 | CC="$ac_save_CC $ac_arg" | |
3853 | if ac_fn_c_try_compile "$LINENO"; then : | |
3854 | ac_cv_prog_cc_c89=$ac_arg | |
3855 | fi | |
3856 | rm -f core conftest.err conftest.$ac_objext | |
3857 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3858 | done | |
3859 | rm -f conftest.$ac_ext | |
3860 | CC=$ac_save_CC | |
3861 | ||
3862 | fi | |
3863 | # AC_CACHE_VAL | |
3864 | case "x$ac_cv_prog_cc_c89" in | |
3865 | x) | |
3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3867 | $as_echo "none needed" >&6; } ;; | |
3868 | xno) | |
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3870 | $as_echo "unsupported" >&6; } ;; | |
3871 | *) | |
3872 | CC="$CC $ac_cv_prog_cc_c89" | |
3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3874 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3875 | esac | |
3876 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3877 | ||
3878 | fi | |
3879 | ||
3880 | ac_ext=c | |
3881 | ac_cpp='$CPP $CPPFLAGS' | |
3882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3885 | ||
3886 | ac_ext=c | |
3887 | ac_cpp='$CPP $CPPFLAGS' | |
3888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3892 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3893 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3894 | $as_echo_n "(cached) " >&6 | |
3895 | else | |
3896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3897 | /* end confdefs.h. */ | |
3898 | ||
3899 | int | |
3900 | main () | |
3901 | { | |
3902 | ||
3903 | ; | |
3904 | return 0; | |
3905 | } | |
3906 | _ACEOF | |
3907 | # Make sure it works both with $CC and with simple cc. | |
3908 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3909 | # compilers refuse to overwrite an existing .o file with -o, | |
3910 | # though they will create one. | |
3911 | am_cv_prog_cc_c_o=yes | |
3912 | for am_i in 1 2; do | |
3913 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3914 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3915 | ac_status=$? | |
3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3917 | (exit $ac_status); } \ | |
3918 | && test -f conftest2.$ac_objext; then | |
3919 | : OK | |
3920 | else | |
3921 | am_cv_prog_cc_c_o=no | |
3922 | break | |
3923 | fi | |
3924 | done | |
3925 | rm -f core conftest* | |
3926 | unset am_i | |
3927 | fi | |
3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3929 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3930 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3931 | # Losing compiler, so override with the script. | |
3932 | # FIXME: It is wrong to rewrite CC. | |
3933 | # But if we don't then we get into trouble of one sort or another. | |
3934 | # A longer-term fix would be to have automake use am__CC in this case, | |
3935 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3936 | CC="$am_aux_dir/compile $CC" | |
3937 | fi | |
3938 | ac_ext=c | |
3939 | ac_cpp='$CPP $CPPFLAGS' | |
3940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3943 | ||
3944 | DEPDIR="${am__leading_dot}deps" | |
3945 | ||
3946 | ac_config_commands="$ac_config_commands depfiles" | |
3947 | ||
3948 | ||
3949 | am_make=${MAKE-make} | |
3950 | cat > confinc << 'END' | |
3951 | am__doit: | |
3952 | @echo this is the am__doit target | |
3953 | .PHONY: am__doit | |
3954 | END | |
3955 | # If we don't find an include directive, just comment out the code. | |
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3957 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3958 | am__include="#" | |
3959 | am__quote= | |
3960 | _am_result=none | |
3961 | # First try GNU make style include. | |
3962 | echo "include confinc" > confmf | |
3963 | # Ignore all kinds of additional output from 'make'. | |
3964 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3965 | *the\ am__doit\ target*) | |
3966 | am__include=include | |
3967 | am__quote= | |
3968 | _am_result=GNU | |
3969 | ;; | |
3970 | esac | |
3971 | # Now try BSD make style include. | |
3972 | if test "$am__include" = "#"; then | |
3973 | echo '.include "confinc"' > confmf | |
3974 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3975 | *the\ am__doit\ target*) | |
3976 | am__include=.include | |
3977 | am__quote="\"" | |
3978 | _am_result=BSD | |
3979 | ;; | |
3980 | esac | |
3981 | fi | |
3982 | ||
3983 | ||
3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3985 | $as_echo "$_am_result" >&6; } | |
3986 | rm -f confinc confmf | |
3987 | ||
3988 | # Check whether --enable-dependency-tracking was given. | |
3989 | if test "${enable_dependency_tracking+set}" = set; then : | |
3990 | enableval=$enable_dependency_tracking; | |
3991 | fi | |
3992 | ||
3993 | if test "x$enable_dependency_tracking" != xno; then | |
3994 | am_depcomp="$ac_aux_dir/depcomp" | |
3995 | AMDEPBACKSLASH='\' | |
3996 | am__nodep='_no' | |
3997 | fi | |
3998 | if test "x$enable_dependency_tracking" != xno; then | |
3999 | AMDEP_TRUE= | |
4000 | AMDEP_FALSE='#' | |
4001 | else | |
4002 | AMDEP_TRUE='#' | |
4003 | AMDEP_FALSE= | |
4004 | fi | |
4005 | ||
4006 | ||
4007 | ||
4008 | depcc="$CC" am_compiler_list= | |
4009 | ||
4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4011 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4012 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4013 | $as_echo_n "(cached) " >&6 | |
4014 | else | |
4015 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4016 | # We make a subdir and do the tests there. Otherwise we can end up | |
4017 | # making bogus files that we don't know about and never remove. For | |
4018 | # instance it was reported that on HP-UX the gcc test will end up | |
4019 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4020 | # in D". | |
4021 | rm -rf conftest.dir | |
4022 | mkdir conftest.dir | |
4023 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4024 | # using a relative directory. | |
4025 | cp "$am_depcomp" conftest.dir | |
4026 | cd conftest.dir | |
4027 | # We will build objects and dependencies in a subdirectory because | |
4028 | # it helps to detect inapplicable dependency modes. For instance | |
4029 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4030 | # side effect of compilation, but ICC will put the dependencies in | |
4031 | # the current directory while Tru64 will put them in the object | |
4032 | # directory. | |
4033 | mkdir sub | |
4034 | ||
4035 | am_cv_CC_dependencies_compiler_type=none | |
4036 | if test "$am_compiler_list" = ""; then | |
4037 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4038 | fi | |
4039 | am__universal=false | |
4040 | case " $depcc " in #( | |
4041 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4042 | esac | |
4043 | ||
4044 | for depmode in $am_compiler_list; do | |
4045 | # Setup a source with many dependencies, because some compilers | |
4046 | # like to wrap large dependency lists on column 80 (with \), and | |
4047 | # we should not choose a depcomp mode which is confused by this. | |
4048 | # | |
4049 | # We need to recreate these files for each test, as the compiler may | |
4050 | # overwrite some of them when testing with obscure command lines. | |
4051 | # This happens at least with the AIX C compiler. | |
4052 | : > sub/conftest.c | |
4053 | for i in 1 2 3 4 5 6; do | |
4054 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4055 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4056 | # Solaris 10 /bin/sh. | |
4057 | echo '/* dummy */' > sub/conftst$i.h | |
4058 | done | |
4059 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4060 | ||
4061 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4062 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4063 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4064 | # versions had trouble with output in subdirs. | |
4065 | am__obj=sub/conftest.${OBJEXT-o} | |
4066 | am__minus_obj="-o $am__obj" | |
4067 | case $depmode in | |
4068 | gcc) | |
4069 | # This depmode causes a compiler race in universal mode. | |
4070 | test "$am__universal" = false || continue | |
4071 | ;; | |
4072 | nosideeffect) | |
4073 | # After this tag, mechanisms are not by side-effect, so they'll | |
4074 | # only be used when explicitly requested. | |
4075 | if test "x$enable_dependency_tracking" = xyes; then | |
4076 | continue | |
4077 | else | |
4078 | break | |
4079 | fi | |
4080 | ;; | |
4081 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4082 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4083 | # not run yet. These depmodes are late enough in the game, and | |
4084 | # so weak that their functioning should not be impacted. | |
4085 | am__obj=conftest.${OBJEXT-o} | |
4086 | am__minus_obj= | |
4087 | ;; | |
4088 | none) break ;; | |
4089 | esac | |
4090 | if depmode=$depmode \ | |
4091 | source=sub/conftest.c object=$am__obj \ | |
4092 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4093 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4094 | >/dev/null 2>conftest.err && | |
4095 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4096 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4097 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4098 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4099 | # icc doesn't choke on unknown options, it will just issue warnings | |
4100 | # or remarks (even with -Werror). So we grep stderr for any message | |
4101 | # that says an option was ignored or not supported. | |
4102 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4103 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4104 | # The diagnosis changed in icc 8.0: | |
4105 | # icc: Command line remark: option '-MP' not supported | |
4106 | if (grep 'ignoring option' conftest.err || | |
4107 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4108 | am_cv_CC_dependencies_compiler_type=$depmode | |
4109 | break | |
4110 | fi | |
4111 | fi | |
4112 | done | |
4113 | ||
4114 | cd .. | |
4115 | rm -rf conftest.dir | |
4116 | else | |
4117 | am_cv_CC_dependencies_compiler_type=none | |
4118 | fi | |
4119 | ||
4120 | fi | |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4122 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4123 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4124 | ||
4125 | if | |
4126 | test "x$enable_dependency_tracking" != xno \ | |
4127 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4128 | am__fastdepCC_TRUE= | |
4129 | am__fastdepCC_FALSE='#' | |
4130 | else | |
4131 | am__fastdepCC_TRUE='#' | |
4132 | am__fastdepCC_FALSE= | |
4133 | fi | |
4134 | ||
4135 | ||
4136 | case `pwd` in | |
4137 | *\ * | *\ *) | |
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4139 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4140 | esac | |
4141 | ||
4142 | ||
4143 | ||
4144 | macro_version='2.4.6' | |
4145 | macro_revision='2.4.6' | |
4146 | ||
4147 | ||
4148 | ||
4149 | ||
4150 | ||
4151 | ||
4152 | ||
4153 | ||
4154 | ||
4155 | ||
4156 | ||
4157 | ||
4158 | ||
4159 | ltmain=$ac_aux_dir/ltmain.sh | |
4160 | ||
4161 | # Backslashify metacharacters that are still active within | |
4162 | # double-quoted strings. | |
4163 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4164 | ||
4165 | # Same as above, but do not quote variable references. | |
4166 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4167 | ||
4168 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4169 | # double_quote_subst'ed string. | |
4170 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4171 | ||
4172 | # Sed substitution to delay expansion of an escaped single quote. | |
4173 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4174 | ||
4175 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4176 | no_glob_subst='s/\*/\\\*/g' | |
4177 | ||
4178 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4179 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4180 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4181 | ||
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4183 | $as_echo_n "checking how to print strings... " >&6; } | |
4184 | # Test print first, because it will be a builtin if present. | |
4185 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4186 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4187 | ECHO='print -r --' | |
4188 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4189 | ECHO='printf %s\n' | |
4190 | else | |
4191 | # Use this function as a fallback that always works. | |
4192 | func_fallback_echo () | |
4193 | { | |
4194 | eval 'cat <<_LTECHO_EOF | |
4195 | $1 | |
4196 | _LTECHO_EOF' | |
4197 | } | |
4198 | ECHO='func_fallback_echo' | |
4199 | fi | |
4200 | ||
4201 | # func_echo_all arg... | |
4202 | # Invoke $ECHO with all args, space-separated. | |
4203 | func_echo_all () | |
4204 | { | |
4205 | $ECHO "" | |
4206 | } | |
4207 | ||
4208 | case $ECHO in | |
4209 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4210 | $as_echo "printf" >&6; } ;; | |
4211 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4212 | $as_echo "print -r" >&6; } ;; | |
4213 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4214 | $as_echo "cat" >&6; } ;; | |
4215 | esac | |
4216 | ||
4217 | ||
4218 | ||
4219 | ||
4220 | ||
4221 | ||
4222 | ||
4223 | ||
4224 | ||
4225 | ||
4226 | ||
4227 | ||
4228 | ||
4229 | ||
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4231 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4232 | if ${ac_cv_path_SED+:} false; then : | |
4233 | $as_echo_n "(cached) " >&6 | |
4234 | else | |
4235 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4236 | for ac_i in 1 2 3 4 5 6 7; do | |
4237 | ac_script="$ac_script$as_nl$ac_script" | |
4238 | done | |
4239 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4240 | { ac_script=; unset ac_script;} | |
4241 | if test -z "$SED"; then | |
4242 | ac_path_SED_found=false | |
4243 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4245 | for as_dir in $PATH | |
4246 | do | |
4247 | IFS=$as_save_IFS | |
4248 | test -z "$as_dir" && as_dir=. | |
4249 | for ac_prog in sed gsed; do | |
4250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4251 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4252 | as_fn_executable_p "$ac_path_SED" || continue | |
4253 | # Check for GNU ac_path_SED and select it if it is found. | |
4254 | # Check for GNU $ac_path_SED | |
4255 | case `"$ac_path_SED" --version 2>&1` in | |
4256 | *GNU*) | |
4257 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4258 | *) | |
4259 | ac_count=0 | |
4260 | $as_echo_n 0123456789 >"conftest.in" | |
4261 | while : | |
4262 | do | |
4263 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4264 | mv "conftest.tmp" "conftest.in" | |
4265 | cp "conftest.in" "conftest.nl" | |
4266 | $as_echo '' >> "conftest.nl" | |
4267 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4268 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4269 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4270 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4271 | # Best one so far, save it but keep looking for a better one | |
4272 | ac_cv_path_SED="$ac_path_SED" | |
4273 | ac_path_SED_max=$ac_count | |
4274 | fi | |
4275 | # 10*(2^10) chars as input seems more than enough | |
4276 | test $ac_count -gt 10 && break | |
4277 | done | |
4278 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4279 | esac | |
4280 | ||
4281 | $ac_path_SED_found && break 3 | |
4282 | done | |
4283 | done | |
4284 | done | |
4285 | IFS=$as_save_IFS | |
4286 | if test -z "$ac_cv_path_SED"; then | |
4287 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4288 | fi | |
4289 | else | |
4290 | ac_cv_path_SED=$SED | |
4291 | fi | |
4292 | ||
4293 | fi | |
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4295 | $as_echo "$ac_cv_path_SED" >&6; } | |
4296 | SED="$ac_cv_path_SED" | |
4297 | rm -f conftest.sed | |
4298 | ||
4299 | test -z "$SED" && SED=sed | |
4300 | Xsed="$SED -e 1s/^X//" | |
4301 | ||
4302 | ||
4303 | ||
4304 | ||
4305 | ||
4306 | ||
4307 | ||
4308 | ||
4309 | ||
4310 | ||
4311 | ||
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4313 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4314 | if ${ac_cv_path_GREP+:} false; then : | |
4315 | $as_echo_n "(cached) " >&6 | |
4316 | else | |
4317 | if test -z "$GREP"; then | |
4318 | ac_path_GREP_found=false | |
4319 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4321 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4322 | do | |
4323 | IFS=$as_save_IFS | |
4324 | test -z "$as_dir" && as_dir=. | |
4325 | for ac_prog in grep ggrep; do | |
4326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4327 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4328 | as_fn_executable_p "$ac_path_GREP" || continue | |
4329 | # Check for GNU ac_path_GREP and select it if it is found. | |
4330 | # Check for GNU $ac_path_GREP | |
4331 | case `"$ac_path_GREP" --version 2>&1` in | |
4332 | *GNU*) | |
4333 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4334 | *) | |
4335 | ac_count=0 | |
4336 | $as_echo_n 0123456789 >"conftest.in" | |
4337 | while : | |
4338 | do | |
4339 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4340 | mv "conftest.tmp" "conftest.in" | |
4341 | cp "conftest.in" "conftest.nl" | |
4342 | $as_echo 'GREP' >> "conftest.nl" | |
4343 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4344 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4345 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4346 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4347 | # Best one so far, save it but keep looking for a better one | |
4348 | ac_cv_path_GREP="$ac_path_GREP" | |
4349 | ac_path_GREP_max=$ac_count | |
4350 | fi | |
4351 | # 10*(2^10) chars as input seems more than enough | |
4352 | test $ac_count -gt 10 && break | |
4353 | done | |
4354 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4355 | esac | |
4356 | ||
4357 | $ac_path_GREP_found && break 3 | |
4358 | done | |
4359 | done | |
4360 | done | |
4361 | IFS=$as_save_IFS | |
4362 | if test -z "$ac_cv_path_GREP"; then | |
4363 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4364 | fi | |
4365 | else | |
4366 | ac_cv_path_GREP=$GREP | |
4367 | fi | |
4368 | ||
4369 | fi | |
4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4371 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4372 | GREP="$ac_cv_path_GREP" | |
4373 | ||
4374 | ||
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4376 | $as_echo_n "checking for egrep... " >&6; } | |
4377 | if ${ac_cv_path_EGREP+:} false; then : | |
4378 | $as_echo_n "(cached) " >&6 | |
4379 | else | |
4380 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4381 | then ac_cv_path_EGREP="$GREP -E" | |
4382 | else | |
4383 | if test -z "$EGREP"; then | |
4384 | ac_path_EGREP_found=false | |
4385 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4387 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4388 | do | |
4389 | IFS=$as_save_IFS | |
4390 | test -z "$as_dir" && as_dir=. | |
4391 | for ac_prog in egrep; do | |
4392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4393 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4394 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4395 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4396 | # Check for GNU $ac_path_EGREP | |
4397 | case `"$ac_path_EGREP" --version 2>&1` in | |
4398 | *GNU*) | |
4399 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4400 | *) | |
4401 | ac_count=0 | |
4402 | $as_echo_n 0123456789 >"conftest.in" | |
4403 | while : | |
4404 | do | |
4405 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4406 | mv "conftest.tmp" "conftest.in" | |
4407 | cp "conftest.in" "conftest.nl" | |
4408 | $as_echo 'EGREP' >> "conftest.nl" | |
4409 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4410 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4411 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4412 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4413 | # Best one so far, save it but keep looking for a better one | |
4414 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4415 | ac_path_EGREP_max=$ac_count | |
4416 | fi | |
4417 | # 10*(2^10) chars as input seems more than enough | |
4418 | test $ac_count -gt 10 && break | |
4419 | done | |
4420 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4421 | esac | |
4422 | ||
4423 | $ac_path_EGREP_found && break 3 | |
4424 | done | |
4425 | done | |
4426 | done | |
4427 | IFS=$as_save_IFS | |
4428 | if test -z "$ac_cv_path_EGREP"; then | |
4429 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4430 | fi | |
4431 | else | |
4432 | ac_cv_path_EGREP=$EGREP | |
4433 | fi | |
4434 | ||
4435 | fi | |
4436 | fi | |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4438 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4439 | EGREP="$ac_cv_path_EGREP" | |
4440 | ||
4441 | ||
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4443 | $as_echo_n "checking for fgrep... " >&6; } | |
4444 | if ${ac_cv_path_FGREP+:} false; then : | |
4445 | $as_echo_n "(cached) " >&6 | |
4446 | else | |
4447 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4448 | then ac_cv_path_FGREP="$GREP -F" | |
4449 | else | |
4450 | if test -z "$FGREP"; then | |
4451 | ac_path_FGREP_found=false | |
4452 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4454 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4455 | do | |
4456 | IFS=$as_save_IFS | |
4457 | test -z "$as_dir" && as_dir=. | |
4458 | for ac_prog in fgrep; do | |
4459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4460 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4461 | as_fn_executable_p "$ac_path_FGREP" || continue | |
4462 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4463 | # Check for GNU $ac_path_FGREP | |
4464 | case `"$ac_path_FGREP" --version 2>&1` in | |
4465 | *GNU*) | |
4466 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4467 | *) | |
4468 | ac_count=0 | |
4469 | $as_echo_n 0123456789 >"conftest.in" | |
4470 | while : | |
4471 | do | |
4472 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4473 | mv "conftest.tmp" "conftest.in" | |
4474 | cp "conftest.in" "conftest.nl" | |
4475 | $as_echo 'FGREP' >> "conftest.nl" | |
4476 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4477 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4478 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4479 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4480 | # Best one so far, save it but keep looking for a better one | |
4481 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4482 | ac_path_FGREP_max=$ac_count | |
4483 | fi | |
4484 | # 10*(2^10) chars as input seems more than enough | |
4485 | test $ac_count -gt 10 && break | |
4486 | done | |
4487 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4488 | esac | |
4489 | ||
4490 | $ac_path_FGREP_found && break 3 | |
4491 | done | |
4492 | done | |
4493 | done | |
4494 | IFS=$as_save_IFS | |
4495 | if test -z "$ac_cv_path_FGREP"; then | |
4496 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4497 | fi | |
4498 | else | |
4499 | ac_cv_path_FGREP=$FGREP | |
4500 | fi | |
4501 | ||
4502 | fi | |
4503 | fi | |
4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4505 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4506 | FGREP="$ac_cv_path_FGREP" | |
4507 | ||
4508 | ||
4509 | test -z "$GREP" && GREP=grep | |
4510 | ||
4511 | ||
4512 | ||
4513 | ||
4514 | ||
4515 | ||
4516 | ||
4517 | ||
4518 | ||
4519 | ||
4520 | ||
4521 | ||
4522 | ||
4523 | ||
4524 | ||
4525 | ||
4526 | ||
4527 | ||
4528 | ||
4529 | # Check whether --with-gnu-ld was given. | |
4530 | if test "${with_gnu_ld+set}" = set; then : | |
4531 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
4532 | else | |
4533 | with_gnu_ld=no | |
4534 | fi | |
4535 | ||
4536 | ac_prog=ld | |
4537 | if test yes = "$GCC"; then | |
4538 | # Check if gcc -print-prog-name=ld gives a path. | |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4540 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4541 | case $host in | |
4542 | *-*-mingw*) | |
4543 | # gcc leaves a trailing carriage return, which upsets mingw | |
4544 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4545 | *) | |
4546 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4547 | esac | |
4548 | case $ac_prog in | |
4549 | # Accept absolute paths. | |
4550 | [\\/]* | ?:[\\/]*) | |
4551 | re_direlt='/[^/][^/]*/\.\./' | |
4552 | # Canonicalize the pathname of ld | |
4553 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4554 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4555 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4556 | done | |
4557 | test -z "$LD" && LD=$ac_prog | |
4558 | ;; | |
4559 | "") | |
4560 | # If it fails, then pretend we aren't using GCC. | |
4561 | ac_prog=ld | |
4562 | ;; | |
4563 | *) | |
4564 | # If it is relative, then search for the first ld in PATH. | |
4565 | with_gnu_ld=unknown | |
4566 | ;; | |
4567 | esac | |
4568 | elif test yes = "$with_gnu_ld"; then | |
4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4570 | $as_echo_n "checking for GNU ld... " >&6; } | |
4571 | else | |
4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4573 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4574 | fi | |
4575 | if ${lt_cv_path_LD+:} false; then : | |
4576 | $as_echo_n "(cached) " >&6 | |
4577 | else | |
4578 | if test -z "$LD"; then | |
4579 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
4580 | for ac_dir in $PATH; do | |
4581 | IFS=$lt_save_ifs | |
4582 | test -z "$ac_dir" && ac_dir=. | |
4583 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4584 | lt_cv_path_LD=$ac_dir/$ac_prog | |
4585 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4586 | # but apparently some variants of GNU ld only accept -v. | |
4587 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4588 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4589 | *GNU* | *'with BFD'*) | |
4590 | test no != "$with_gnu_ld" && break | |
4591 | ;; | |
4592 | *) | |
4593 | test yes != "$with_gnu_ld" && break | |
4594 | ;; | |
4595 | esac | |
4596 | fi | |
4597 | done | |
4598 | IFS=$lt_save_ifs | |
4599 | else | |
4600 | lt_cv_path_LD=$LD # Let the user override the test with a path. | |
4601 | fi | |
4602 | fi | |
4603 | ||
4604 | LD=$lt_cv_path_LD | |
4605 | if test -n "$LD"; then | |
4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4607 | $as_echo "$LD" >&6; } | |
4608 | else | |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4610 | $as_echo "no" >&6; } | |
4611 | fi | |
4612 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4614 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4615 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
4616 | $as_echo_n "(cached) " >&6 | |
4617 | else | |
4618 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4619 | case `$LD -v 2>&1 </dev/null` in | |
4620 | *GNU* | *'with BFD'*) | |
4621 | lt_cv_prog_gnu_ld=yes | |
4622 | ;; | |
4623 | *) | |
4624 | lt_cv_prog_gnu_ld=no | |
4625 | ;; | |
4626 | esac | |
4627 | fi | |
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4629 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4630 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4631 | ||
4632 | ||
4633 | ||
4634 | ||
4635 | ||
4636 | ||
4637 | ||
4638 | ||
4639 | ||
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4641 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4642 | if ${lt_cv_path_NM+:} false; then : | |
4643 | $as_echo_n "(cached) " >&6 | |
4644 | else | |
4645 | if test -n "$NM"; then | |
4646 | # Let the user override the test. | |
4647 | lt_cv_path_NM=$NM | |
4648 | else | |
4649 | lt_nm_to_check=${ac_tool_prefix}nm | |
4650 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4651 | lt_nm_to_check="$lt_nm_to_check nm" | |
4652 | fi | |
4653 | for lt_tmp_nm in $lt_nm_to_check; do | |
4654 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
4655 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4656 | IFS=$lt_save_ifs | |
4657 | test -z "$ac_dir" && ac_dir=. | |
4658 | tmp_nm=$ac_dir/$lt_tmp_nm | |
4659 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
4660 | # Check to see if the nm accepts a BSD-compat flag. | |
4661 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: | |
4662 | # nm: unknown option "B" ignored | |
4663 | # Tru64's nm complains that /dev/null is an invalid object file | |
4664 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty | |
4665 | case $build_os in | |
4666 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4667 | *) lt_bad_file=/dev/null ;; | |
4668 | esac | |
4669 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4670 | *$lt_bad_file* | *'Invalid file or object type'*) | |
4671 | lt_cv_path_NM="$tmp_nm -B" | |
4672 | break 2 | |
4673 | ;; | |
4674 | *) | |
4675 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4676 | */dev/null*) | |
4677 | lt_cv_path_NM="$tmp_nm -p" | |
4678 | break 2 | |
4679 | ;; | |
4680 | *) | |
4681 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4682 | continue # so that we can try to find one that supports BSD flags | |
4683 | ;; | |
4684 | esac | |
4685 | ;; | |
4686 | esac | |
4687 | fi | |
4688 | done | |
4689 | IFS=$lt_save_ifs | |
4690 | done | |
4691 | : ${lt_cv_path_NM=no} | |
4692 | fi | |
4693 | fi | |
4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4695 | $as_echo "$lt_cv_path_NM" >&6; } | |
4696 | if test no != "$lt_cv_path_NM"; then | |
4697 | NM=$lt_cv_path_NM | |
4698 | else | |
4699 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4700 | if test -n "$DUMPBIN"; then : | |
4701 | # Let the user override the test. | |
4702 | else | |
4703 | if test -n "$ac_tool_prefix"; then | |
4704 | for ac_prog in dumpbin "link -dump" | |
4705 | do | |
4706 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4707 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4709 | $as_echo_n "checking for $ac_word... " >&6; } | |
4710 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
4711 | $as_echo_n "(cached) " >&6 | |
4712 | else | |
4713 | if test -n "$DUMPBIN"; then | |
4714 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4715 | else | |
4716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4717 | for as_dir in $PATH | |
4718 | do | |
4719 | IFS=$as_save_IFS | |
4720 | test -z "$as_dir" && as_dir=. | |
4721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4723 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4725 | break 2 | |
4726 | fi | |
4727 | done | |
4728 | done | |
4729 | IFS=$as_save_IFS | |
4730 | ||
4731 | fi | |
4732 | fi | |
4733 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4734 | if test -n "$DUMPBIN"; then | |
4735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4736 | $as_echo "$DUMPBIN" >&6; } | |
4737 | else | |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4739 | $as_echo "no" >&6; } | |
4740 | fi | |
4741 | ||
4742 | ||
4743 | test -n "$DUMPBIN" && break | |
4744 | done | |
4745 | fi | |
4746 | if test -z "$DUMPBIN"; then | |
4747 | ac_ct_DUMPBIN=$DUMPBIN | |
4748 | for ac_prog in dumpbin "link -dump" | |
4749 | do | |
4750 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4751 | set dummy $ac_prog; ac_word=$2 | |
4752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4753 | $as_echo_n "checking for $ac_word... " >&6; } | |
4754 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
4755 | $as_echo_n "(cached) " >&6 | |
4756 | else | |
4757 | if test -n "$ac_ct_DUMPBIN"; then | |
4758 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4759 | else | |
4760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4761 | for as_dir in $PATH | |
4762 | do | |
4763 | IFS=$as_save_IFS | |
4764 | test -z "$as_dir" && as_dir=. | |
4765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4766 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4767 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4769 | break 2 | |
4770 | fi | |
4771 | done | |
4772 | done | |
4773 | IFS=$as_save_IFS | |
4774 | ||
4775 | fi | |
4776 | fi | |
4777 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4778 | if test -n "$ac_ct_DUMPBIN"; then | |
4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4780 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4781 | else | |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4783 | $as_echo "no" >&6; } | |
4784 | fi | |
4785 | ||
4786 | ||
4787 | test -n "$ac_ct_DUMPBIN" && break | |
4788 | done | |
4789 | ||
4790 | if test "x$ac_ct_DUMPBIN" = x; then | |
4791 | DUMPBIN=":" | |
4792 | else | |
4793 | case $cross_compiling:$ac_tool_warned in | |
4794 | yes:) | |
4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4796 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4797 | ac_tool_warned=yes ;; | |
4798 | esac | |
4799 | DUMPBIN=$ac_ct_DUMPBIN | |
4800 | fi | |
4801 | fi | |
4802 | ||
4803 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in | |
4804 | *COFF*) | |
4805 | DUMPBIN="$DUMPBIN -symbols -headers" | |
4806 | ;; | |
4807 | *) | |
4808 | DUMPBIN=: | |
4809 | ;; | |
4810 | esac | |
4811 | fi | |
4812 | ||
4813 | if test : != "$DUMPBIN"; then | |
4814 | NM=$DUMPBIN | |
4815 | fi | |
4816 | fi | |
4817 | test -z "$NM" && NM=nm | |
4818 | ||
4819 | ||
4820 | ||
4821 | ||
4822 | ||
4823 | ||
4824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4825 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4826 | if ${lt_cv_nm_interface+:} false; then : | |
4827 | $as_echo_n "(cached) " >&6 | |
4828 | else | |
4829 | lt_cv_nm_interface="BSD nm" | |
4830 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4831 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
4832 | (eval "$ac_compile" 2>conftest.err) | |
4833 | cat conftest.err >&5 | |
4834 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4835 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4836 | cat conftest.err >&5 | |
4837 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
4838 | cat conftest.out >&5 | |
4839 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4840 | lt_cv_nm_interface="MS dumpbin" | |
4841 | fi | |
4842 | rm -f conftest* | |
4843 | fi | |
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
4845 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4846 | ||
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4848 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4849 | LN_S=$as_ln_s | |
4850 | if test "$LN_S" = "ln -s"; then | |
4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4852 | $as_echo "yes" >&6; } | |
4853 | else | |
4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4855 | $as_echo "no, using $LN_S" >&6; } | |
4856 | fi | |
4857 | ||
4858 | # find the maximum length of command line arguments | |
4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4860 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4861 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
4862 | $as_echo_n "(cached) " >&6 | |
4863 | else | |
4864 | i=0 | |
4865 | teststring=ABCD | |
4866 | ||
4867 | case $build_os in | |
4868 | msdosdjgpp*) | |
4869 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4870 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4871 | # during glob expansion). Even if it were fixed, the result of this | |
4872 | # check would be larger than it should be. | |
4873 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4874 | ;; | |
4875 | ||
4876 | gnu*) | |
4877 | # Under GNU Hurd, this test is not required because there is | |
4878 | # no limit to the length of command line arguments. | |
4879 | # Libtool will interpret -1 as no limit whatsoever | |
4880 | lt_cv_sys_max_cmd_len=-1; | |
4881 | ;; | |
4882 | ||
4883 | cygwin* | mingw* | cegcc*) | |
4884 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4885 | # about 5 minutes as the teststring grows exponentially. | |
4886 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4887 | # you end up with a "frozen" computer, even though with patience | |
4888 | # the test eventually succeeds (with a max line length of 256k). | |
4889 | # Instead, let's just punt: use the minimum linelength reported by | |
4890 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4891 | lt_cv_sys_max_cmd_len=8192; | |
4892 | ;; | |
4893 | ||
4894 | mint*) | |
4895 | # On MiNT this can take a long time and run out of memory. | |
4896 | lt_cv_sys_max_cmd_len=8192; | |
4897 | ;; | |
4898 | ||
4899 | amigaos*) | |
4900 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4901 | # So we just punt and use a minimum line length of 8192. | |
4902 | lt_cv_sys_max_cmd_len=8192; | |
4903 | ;; | |
4904 | ||
4905 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) | |
4906 | # This has been around since 386BSD, at least. Likely further. | |
4907 | if test -x /sbin/sysctl; then | |
4908 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4909 | elif test -x /usr/sbin/sysctl; then | |
4910 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4911 | else | |
4912 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4913 | fi | |
4914 | # And add a safety zone | |
4915 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4916 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4917 | ;; | |
4918 | ||
4919 | interix*) | |
4920 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4921 | lt_cv_sys_max_cmd_len=196608 | |
4922 | ;; | |
4923 | ||
4924 | os2*) | |
4925 | # The test takes a long time on OS/2. | |
4926 | lt_cv_sys_max_cmd_len=8192 | |
4927 | ;; | |
4928 | ||
4929 | osf*) | |
4930 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4931 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4932 | # nice to cause kernel panics so lets avoid the loop below. | |
4933 | # First set a reasonable default. | |
4934 | lt_cv_sys_max_cmd_len=16384 | |
4935 | # | |
4936 | if test -x /sbin/sysconfig; then | |
4937 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4938 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4939 | esac | |
4940 | fi | |
4941 | ;; | |
4942 | sco3.2v5*) | |
4943 | lt_cv_sys_max_cmd_len=102400 | |
4944 | ;; | |
4945 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4946 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4947 | if test -n "$kargmax"; then | |
4948 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4949 | else | |
4950 | lt_cv_sys_max_cmd_len=32768 | |
4951 | fi | |
4952 | ;; | |
4953 | *) | |
4954 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4955 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
4956 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
4957 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4958 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4959 | else | |
4960 | # Make teststring a little bigger before we do anything with it. | |
4961 | # a 1K string should be a reasonable start. | |
4962 | for i in 1 2 3 4 5 6 7 8; do | |
4963 | teststring=$teststring$teststring | |
4964 | done | |
4965 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4966 | # If test is not a shell built-in, we'll probably end up computing a | |
4967 | # maximum length that is only half of the actual maximum length, but | |
4968 | # we can't tell. | |
4969 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ | |
4970 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
4971 | test 17 != "$i" # 1/2 MB should be enough | |
4972 | do | |
4973 | i=`expr $i + 1` | |
4974 | teststring=$teststring$teststring | |
4975 | done | |
4976 | # Only check the string length outside the loop. | |
4977 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4978 | teststring= | |
4979 | # Add a significant safety factor because C++ compilers can tack on | |
4980 | # massive amounts of additional arguments before passing them to the | |
4981 | # linker. It appears as though 1/2 is a usable value. | |
4982 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4983 | fi | |
4984 | ;; | |
4985 | esac | |
4986 | ||
4987 | fi | |
4988 | ||
4989 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4991 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4992 | else | |
4993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
4994 | $as_echo "none" >&6; } | |
4995 | fi | |
4996 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
4997 | ||
4998 | ||
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | : ${CP="cp -f"} | |
5004 | : ${MV="mv -f"} | |
5005 | : ${RM="rm -f"} | |
5006 | ||
5007 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5008 | lt_unset=unset | |
5009 | else | |
5010 | lt_unset=false | |
5011 | fi | |
5012 | ||
5013 | ||
5014 | ||
5015 | ||
5016 | ||
5017 | # test EBCDIC or ASCII | |
5018 | case `echo X|tr X '\101'` in | |
5019 | A) # ASCII based system | |
5020 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5021 | lt_SP2NL='tr \040 \012' | |
5022 | lt_NL2SP='tr \015\012 \040\040' | |
5023 | ;; | |
5024 | *) # EBCDIC based system | |
5025 | lt_SP2NL='tr \100 \n' | |
5026 | lt_NL2SP='tr \r\n \100\100' | |
5027 | ;; | |
5028 | esac | |
5029 | ||
5030 | ||
5031 | ||
5032 | ||
5033 | ||
5034 | ||
5035 | ||
5036 | ||
5037 | ||
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5039 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5040 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5041 | $as_echo_n "(cached) " >&6 | |
5042 | else | |
5043 | case $host in | |
5044 | *-*-mingw* ) | |
5045 | case $build in | |
5046 | *-*-mingw* ) # actually msys | |
5047 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5048 | ;; | |
5049 | *-*-cygwin* ) | |
5050 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5051 | ;; | |
5052 | * ) # otherwise, assume *nix | |
5053 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5054 | ;; | |
5055 | esac | |
5056 | ;; | |
5057 | *-*-cygwin* ) | |
5058 | case $build in | |
5059 | *-*-mingw* ) # actually msys | |
5060 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5061 | ;; | |
5062 | *-*-cygwin* ) | |
5063 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5064 | ;; | |
5065 | * ) # otherwise, assume *nix | |
5066 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5067 | ;; | |
5068 | esac | |
5069 | ;; | |
5070 | * ) # unhandled hosts (and "normal" native builds) | |
5071 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5072 | ;; | |
5073 | esac | |
5074 | ||
5075 | fi | |
5076 | ||
5077 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5079 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5080 | ||
5081 | ||
5082 | ||
5083 | ||
5084 | ||
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5086 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5087 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5088 | $as_echo_n "(cached) " >&6 | |
5089 | else | |
5090 | #assume ordinary cross tools, or native build. | |
5091 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5092 | case $host in | |
5093 | *-*-mingw* ) | |
5094 | case $build in | |
5095 | *-*-mingw* ) # actually msys | |
5096 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5097 | ;; | |
5098 | esac | |
5099 | ;; | |
5100 | esac | |
5101 | ||
5102 | fi | |
5103 | ||
5104 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5106 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5107 | ||
5108 | ||
5109 | ||
5110 | ||
5111 | ||
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5113 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5114 | if ${lt_cv_ld_reload_flag+:} false; then : | |
5115 | $as_echo_n "(cached) " >&6 | |
5116 | else | |
5117 | lt_cv_ld_reload_flag='-r' | |
5118 | fi | |
5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5120 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5121 | reload_flag=$lt_cv_ld_reload_flag | |
5122 | case $reload_flag in | |
5123 | "" | " "*) ;; | |
5124 | *) reload_flag=" $reload_flag" ;; | |
5125 | esac | |
5126 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5127 | case $host_os in | |
5128 | cygwin* | mingw* | pw32* | cegcc*) | |
5129 | if test yes != "$GCC"; then | |
5130 | reload_cmds=false | |
5131 | fi | |
5132 | ;; | |
5133 | darwin*) | |
5134 | if test yes = "$GCC"; then | |
5135 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
5136 | else | |
5137 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5138 | fi | |
5139 | ;; | |
5140 | esac | |
5141 | ||
5142 | ||
5143 | ||
5144 | ||
5145 | ||
5146 | ||
5147 | ||
5148 | ||
5149 | ||
5150 | if test -n "$ac_tool_prefix"; then | |
5151 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5152 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5154 | $as_echo_n "checking for $ac_word... " >&6; } | |
5155 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5156 | $as_echo_n "(cached) " >&6 | |
5157 | else | |
5158 | if test -n "$OBJDUMP"; then | |
5159 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5160 | else | |
5161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5162 | for as_dir in $PATH | |
5163 | do | |
5164 | IFS=$as_save_IFS | |
5165 | test -z "$as_dir" && as_dir=. | |
5166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5168 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5170 | break 2 | |
5171 | fi | |
5172 | done | |
5173 | done | |
5174 | IFS=$as_save_IFS | |
5175 | ||
5176 | fi | |
5177 | fi | |
5178 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5179 | if test -n "$OBJDUMP"; then | |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5181 | $as_echo "$OBJDUMP" >&6; } | |
5182 | else | |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5184 | $as_echo "no" >&6; } | |
5185 | fi | |
5186 | ||
5187 | ||
5188 | fi | |
5189 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5190 | ac_ct_OBJDUMP=$OBJDUMP | |
5191 | # Extract the first word of "objdump", so it can be a program name with args. | |
5192 | set dummy objdump; ac_word=$2 | |
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5194 | $as_echo_n "checking for $ac_word... " >&6; } | |
5195 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5196 | $as_echo_n "(cached) " >&6 | |
5197 | else | |
5198 | if test -n "$ac_ct_OBJDUMP"; then | |
5199 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5200 | else | |
5201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5202 | for as_dir in $PATH | |
5203 | do | |
5204 | IFS=$as_save_IFS | |
5205 | test -z "$as_dir" && as_dir=. | |
5206 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5207 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5208 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5210 | break 2 | |
5211 | fi | |
5212 | done | |
5213 | done | |
5214 | IFS=$as_save_IFS | |
5215 | ||
5216 | fi | |
5217 | fi | |
5218 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5219 | if test -n "$ac_ct_OBJDUMP"; then | |
5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5221 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5222 | else | |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5224 | $as_echo "no" >&6; } | |
5225 | fi | |
5226 | ||
5227 | if test "x$ac_ct_OBJDUMP" = x; then | |
5228 | OBJDUMP="false" | |
5229 | else | |
5230 | case $cross_compiling:$ac_tool_warned in | |
5231 | yes:) | |
5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5233 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5234 | ac_tool_warned=yes ;; | |
5235 | esac | |
5236 | OBJDUMP=$ac_ct_OBJDUMP | |
5237 | fi | |
5238 | else | |
5239 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5240 | fi | |
5241 | ||
5242 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5243 | ||
5244 | ||
5245 | ||
5246 | ||
5247 | ||
5248 | ||
5249 | ||
5250 | ||
5251 | ||
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5253 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5254 | if ${lt_cv_deplibs_check_method+:} false; then : | |
5255 | $as_echo_n "(cached) " >&6 | |
5256 | else | |
5257 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5258 | lt_cv_file_magic_test_file= | |
5259 | lt_cv_deplibs_check_method='unknown' | |
5260 | # Need to set the preceding variable on all platforms that support | |
5261 | # interlibrary dependencies. | |
5262 | # 'none' -- dependencies not supported. | |
5263 | # 'unknown' -- same as none, but documents that we really don't know. | |
5264 | # 'pass_all' -- all dependencies passed with no checks. | |
5265 | # 'test_compile' -- check by making test program. | |
5266 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5267 | # that responds to the $file_magic_cmd with a given extended regex. | |
5268 | # If you have 'file' or equivalent on your system and you're not sure | |
5269 | # whether 'pass_all' will *always* work, you probably want this one. | |
5270 | ||
5271 | case $host_os in | |
5272 | aix[4-9]*) | |
5273 | lt_cv_deplibs_check_method=pass_all | |
5274 | ;; | |
5275 | ||
5276 | beos*) | |
5277 | lt_cv_deplibs_check_method=pass_all | |
5278 | ;; | |
5279 | ||
5280 | bsdi[45]*) | |
5281 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5282 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5283 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5284 | ;; | |
5285 | ||
5286 | cygwin*) | |
5287 | # func_win32_libid is a shell function defined in ltmain.sh | |
5288 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5289 | lt_cv_file_magic_cmd='func_win32_libid' | |
5290 | ;; | |
5291 | ||
5292 | mingw* | pw32*) | |
5293 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5294 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5295 | # unless we find 'file', for example because we are cross-compiling. | |
5296 | if ( file / ) >/dev/null 2>&1; then | |
5297 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5298 | lt_cv_file_magic_cmd='func_win32_libid' | |
5299 | else | |
5300 | # Keep this pattern in sync with the one in func_win32_libid. | |
5301 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5302 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5303 | fi | |
5304 | ;; | |
5305 | ||
5306 | cegcc*) | |
5307 | # use the weaker test based on 'objdump'. See mingw*. | |
5308 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5309 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5310 | ;; | |
5311 | ||
5312 | darwin* | rhapsody*) | |
5313 | lt_cv_deplibs_check_method=pass_all | |
5314 | ;; | |
5315 | ||
5316 | freebsd* | dragonfly*) | |
5317 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5318 | case $host_cpu in | |
5319 | i*86 ) | |
5320 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5321 | # Let's accept both of them until this is cleared up. | |
5322 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5323 | lt_cv_file_magic_cmd=/usr/bin/file | |
5324 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5325 | ;; | |
5326 | esac | |
5327 | else | |
5328 | lt_cv_deplibs_check_method=pass_all | |
5329 | fi | |
5330 | ;; | |
5331 | ||
5332 | haiku*) | |
5333 | lt_cv_deplibs_check_method=pass_all | |
5334 | ;; | |
5335 | ||
5336 | hpux10.20* | hpux11*) | |
5337 | lt_cv_file_magic_cmd=/usr/bin/file | |
5338 | case $host_cpu in | |
5339 | ia64*) | |
5340 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5341 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5342 | ;; | |
5343 | hppa*64*) | |
5344 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | |
5345 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5346 | ;; | |
5347 | *) | |
5348 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5349 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5350 | ;; | |
5351 | esac | |
5352 | ;; | |
5353 | ||
5354 | interix[3-9]*) | |
5355 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5356 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5357 | ;; | |
5358 | ||
5359 | irix5* | irix6* | nonstopux*) | |
5360 | case $LD in | |
5361 | *-32|*"-32 ") libmagic=32-bit;; | |
5362 | *-n32|*"-n32 ") libmagic=N32;; | |
5363 | *-64|*"-64 ") libmagic=64-bit;; | |
5364 | *) libmagic=never-match;; | |
5365 | esac | |
5366 | lt_cv_deplibs_check_method=pass_all | |
5367 | ;; | |
5368 | ||
5369 | # This must be glibc/ELF. | |
5370 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
5371 | lt_cv_deplibs_check_method=pass_all | |
5372 | ;; | |
5373 | ||
5374 | netbsd* | netbsdelf*-gnu) | |
5375 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5376 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5377 | else | |
5378 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5379 | fi | |
5380 | ;; | |
5381 | ||
5382 | newos6*) | |
5383 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5384 | lt_cv_file_magic_cmd=/usr/bin/file | |
5385 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5386 | ;; | |
5387 | ||
5388 | *nto* | *qnx*) | |
5389 | lt_cv_deplibs_check_method=pass_all | |
5390 | ;; | |
5391 | ||
5392 | openbsd* | bitrig*) | |
5393 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
5394 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5395 | else | |
5396 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5397 | fi | |
5398 | ;; | |
5399 | ||
5400 | osf3* | osf4* | osf5*) | |
5401 | lt_cv_deplibs_check_method=pass_all | |
5402 | ;; | |
5403 | ||
5404 | rdos*) | |
5405 | lt_cv_deplibs_check_method=pass_all | |
5406 | ;; | |
5407 | ||
5408 | solaris*) | |
5409 | lt_cv_deplibs_check_method=pass_all | |
5410 | ;; | |
5411 | ||
5412 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5413 | lt_cv_deplibs_check_method=pass_all | |
5414 | ;; | |
5415 | ||
5416 | sysv4 | sysv4.3*) | |
5417 | case $host_vendor in | |
5418 | motorola) | |
5419 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
5420 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5421 | ;; | |
5422 | ncr) | |
5423 | lt_cv_deplibs_check_method=pass_all | |
5424 | ;; | |
5425 | sequent) | |
5426 | lt_cv_file_magic_cmd='/bin/file' | |
5427 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5428 | ;; | |
5429 | sni) | |
5430 | lt_cv_file_magic_cmd='/bin/file' | |
5431 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5432 | lt_cv_file_magic_test_file=/lib/libc.so | |
5433 | ;; | |
5434 | siemens) | |
5435 | lt_cv_deplibs_check_method=pass_all | |
5436 | ;; | |
5437 | pc) | |
5438 | lt_cv_deplibs_check_method=pass_all | |
5439 | ;; | |
5440 | esac | |
5441 | ;; | |
5442 | ||
5443 | tpf*) | |
5444 | lt_cv_deplibs_check_method=pass_all | |
5445 | ;; | |
5446 | os2*) | |
5447 | lt_cv_deplibs_check_method=pass_all | |
5448 | ;; | |
5449 | esac | |
5450 | ||
5451 | fi | |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5453 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5454 | ||
5455 | file_magic_glob= | |
5456 | want_nocaseglob=no | |
5457 | if test "$build" = "$host"; then | |
5458 | case $host_os in | |
5459 | mingw* | pw32*) | |
5460 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5461 | want_nocaseglob=yes | |
5462 | else | |
5463 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5464 | fi | |
5465 | ;; | |
5466 | esac | |
5467 | fi | |
5468 | ||
5469 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5470 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5471 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5472 | ||
5473 | ||
5474 | ||
5475 | ||
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | ||
5481 | ||
5482 | ||
5483 | ||
5484 | ||
5485 | ||
5486 | ||
5487 | ||
5488 | ||
5489 | ||
5490 | ||
5491 | ||
5492 | ||
5493 | ||
5494 | if test -n "$ac_tool_prefix"; then | |
5495 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5496 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5498 | $as_echo_n "checking for $ac_word... " >&6; } | |
5499 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5500 | $as_echo_n "(cached) " >&6 | |
5501 | else | |
5502 | if test -n "$DLLTOOL"; then | |
5503 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5504 | else | |
5505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5506 | for as_dir in $PATH | |
5507 | do | |
5508 | IFS=$as_save_IFS | |
5509 | test -z "$as_dir" && as_dir=. | |
5510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5512 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5514 | break 2 | |
5515 | fi | |
5516 | done | |
5517 | done | |
5518 | IFS=$as_save_IFS | |
5519 | ||
5520 | fi | |
5521 | fi | |
5522 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5523 | if test -n "$DLLTOOL"; then | |
5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5525 | $as_echo "$DLLTOOL" >&6; } | |
5526 | else | |
5527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5528 | $as_echo "no" >&6; } | |
5529 | fi | |
5530 | ||
5531 | ||
5532 | fi | |
5533 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5534 | ac_ct_DLLTOOL=$DLLTOOL | |
5535 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5536 | set dummy dlltool; ac_word=$2 | |
5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5538 | $as_echo_n "checking for $ac_word... " >&6; } | |
5539 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5540 | $as_echo_n "(cached) " >&6 | |
5541 | else | |
5542 | if test -n "$ac_ct_DLLTOOL"; then | |
5543 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5544 | else | |
5545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5546 | for as_dir in $PATH | |
5547 | do | |
5548 | IFS=$as_save_IFS | |
5549 | test -z "$as_dir" && as_dir=. | |
5550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5552 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5554 | break 2 | |
5555 | fi | |
5556 | done | |
5557 | done | |
5558 | IFS=$as_save_IFS | |
5559 | ||
5560 | fi | |
5561 | fi | |
5562 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5563 | if test -n "$ac_ct_DLLTOOL"; then | |
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5565 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5566 | else | |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5568 | $as_echo "no" >&6; } | |
5569 | fi | |
5570 | ||
5571 | if test "x$ac_ct_DLLTOOL" = x; then | |
5572 | DLLTOOL="false" | |
5573 | else | |
5574 | case $cross_compiling:$ac_tool_warned in | |
5575 | yes:) | |
5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5577 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5578 | ac_tool_warned=yes ;; | |
5579 | esac | |
5580 | DLLTOOL=$ac_ct_DLLTOOL | |
5581 | fi | |
5582 | else | |
5583 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5584 | fi | |
5585 | ||
5586 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5587 | ||
5588 | ||
5589 | ||
5590 | ||
5591 | ||
5592 | ||
5593 | ||
5594 | ||
5595 | ||
5596 | ||
5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5598 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5599 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5600 | $as_echo_n "(cached) " >&6 | |
5601 | else | |
5602 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5603 | ||
5604 | case $host_os in | |
5605 | cygwin* | mingw* | pw32* | cegcc*) | |
5606 | # two different shell functions defined in ltmain.sh; | |
5607 | # decide which one to use based on capabilities of $DLLTOOL | |
5608 | case `$DLLTOOL --help 2>&1` in | |
5609 | *--identify-strict*) | |
5610 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5611 | ;; | |
5612 | *) | |
5613 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5614 | ;; | |
5615 | esac | |
5616 | ;; | |
5617 | *) | |
5618 | # fallback: assume linklib IS sharedlib | |
5619 | lt_cv_sharedlib_from_linklib_cmd=$ECHO | |
5620 | ;; | |
5621 | esac | |
5622 | ||
5623 | fi | |
5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5625 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5626 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5627 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5628 | ||
5629 | ||
5630 | ||
5631 | ||
5632 | ||
5633 | ||
5634 | ||
5635 | ||
5636 | if test -n "$ac_tool_prefix"; then | |
5637 | for ac_prog in ar | |
5638 | do | |
5639 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5640 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5642 | $as_echo_n "checking for $ac_word... " >&6; } | |
5643 | if ${ac_cv_prog_AR+:} false; then : | |
5644 | $as_echo_n "(cached) " >&6 | |
5645 | else | |
5646 | if test -n "$AR"; then | |
5647 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5648 | else | |
5649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5650 | for as_dir in $PATH | |
5651 | do | |
5652 | IFS=$as_save_IFS | |
5653 | test -z "$as_dir" && as_dir=. | |
5654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5655 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5656 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5658 | break 2 | |
5659 | fi | |
5660 | done | |
5661 | done | |
5662 | IFS=$as_save_IFS | |
5663 | ||
5664 | fi | |
5665 | fi | |
5666 | AR=$ac_cv_prog_AR | |
5667 | if test -n "$AR"; then | |
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5669 | $as_echo "$AR" >&6; } | |
5670 | else | |
5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5672 | $as_echo "no" >&6; } | |
5673 | fi | |
5674 | ||
5675 | ||
5676 | test -n "$AR" && break | |
5677 | done | |
5678 | fi | |
5679 | if test -z "$AR"; then | |
5680 | ac_ct_AR=$AR | |
5681 | for ac_prog in ar | |
5682 | do | |
5683 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5684 | set dummy $ac_prog; ac_word=$2 | |
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5686 | $as_echo_n "checking for $ac_word... " >&6; } | |
5687 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5688 | $as_echo_n "(cached) " >&6 | |
5689 | else | |
5690 | if test -n "$ac_ct_AR"; then | |
5691 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5692 | else | |
5693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5694 | for as_dir in $PATH | |
5695 | do | |
5696 | IFS=$as_save_IFS | |
5697 | test -z "$as_dir" && as_dir=. | |
5698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5699 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5700 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5702 | break 2 | |
5703 | fi | |
5704 | done | |
5705 | done | |
5706 | IFS=$as_save_IFS | |
5707 | ||
5708 | fi | |
5709 | fi | |
5710 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5711 | if test -n "$ac_ct_AR"; then | |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5713 | $as_echo "$ac_ct_AR" >&6; } | |
5714 | else | |
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5716 | $as_echo "no" >&6; } | |
5717 | fi | |
5718 | ||
5719 | ||
5720 | test -n "$ac_ct_AR" && break | |
5721 | done | |
5722 | ||
5723 | if test "x$ac_ct_AR" = x; then | |
5724 | AR="false" | |
5725 | else | |
5726 | case $cross_compiling:$ac_tool_warned in | |
5727 | yes:) | |
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5729 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5730 | ac_tool_warned=yes ;; | |
5731 | esac | |
5732 | AR=$ac_ct_AR | |
5733 | fi | |
5734 | fi | |
5735 | ||
5736 | : ${AR=ar} | |
5737 | : ${AR_FLAGS=cru} | |
5738 | ||
5739 | ||
5740 | ||
5741 | ||
5742 | ||
5743 | ||
5744 | ||
5745 | ||
5746 | ||
5747 | ||
5748 | ||
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5750 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5751 | if ${lt_cv_ar_at_file+:} false; then : | |
5752 | $as_echo_n "(cached) " >&6 | |
5753 | else | |
5754 | lt_cv_ar_at_file=no | |
5755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5756 | /* end confdefs.h. */ | |
5757 | ||
5758 | int | |
5759 | main () | |
5760 | { | |
5761 | ||
5762 | ; | |
5763 | return 0; | |
5764 | } | |
5765 | _ACEOF | |
5766 | if ac_fn_c_try_compile "$LINENO"; then : | |
5767 | echo conftest.$ac_objext > conftest.lst | |
5768 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5769 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5770 | (eval $lt_ar_try) 2>&5 | |
5771 | ac_status=$? | |
5772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5773 | test $ac_status = 0; } | |
5774 | if test 0 -eq "$ac_status"; then | |
5775 | # Ensure the archiver fails upon bogus file names. | |
5776 | rm -f conftest.$ac_objext libconftest.a | |
5777 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5778 | (eval $lt_ar_try) 2>&5 | |
5779 | ac_status=$? | |
5780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5781 | test $ac_status = 0; } | |
5782 | if test 0 -ne "$ac_status"; then | |
5783 | lt_cv_ar_at_file=@ | |
5784 | fi | |
5785 | fi | |
5786 | rm -f conftest.* libconftest.a | |
5787 | ||
5788 | fi | |
5789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5790 | ||
5791 | fi | |
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5793 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5794 | ||
5795 | if test no = "$lt_cv_ar_at_file"; then | |
5796 | archiver_list_spec= | |
5797 | else | |
5798 | archiver_list_spec=$lt_cv_ar_at_file | |
5799 | fi | |
5800 | ||
5801 | ||
5802 | ||
5803 | ||
5804 | ||
5805 | ||
5806 | ||
5807 | if test -n "$ac_tool_prefix"; then | |
5808 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5809 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5811 | $as_echo_n "checking for $ac_word... " >&6; } | |
5812 | if ${ac_cv_prog_STRIP+:} false; then : | |
5813 | $as_echo_n "(cached) " >&6 | |
5814 | else | |
5815 | if test -n "$STRIP"; then | |
5816 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5817 | else | |
5818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5819 | for as_dir in $PATH | |
5820 | do | |
5821 | IFS=$as_save_IFS | |
5822 | test -z "$as_dir" && as_dir=. | |
5823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5825 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5827 | break 2 | |
5828 | fi | |
5829 | done | |
5830 | done | |
5831 | IFS=$as_save_IFS | |
5832 | ||
5833 | fi | |
5834 | fi | |
5835 | STRIP=$ac_cv_prog_STRIP | |
5836 | if test -n "$STRIP"; then | |
5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5838 | $as_echo "$STRIP" >&6; } | |
5839 | else | |
5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5841 | $as_echo "no" >&6; } | |
5842 | fi | |
5843 | ||
5844 | ||
5845 | fi | |
5846 | if test -z "$ac_cv_prog_STRIP"; then | |
5847 | ac_ct_STRIP=$STRIP | |
5848 | # Extract the first word of "strip", so it can be a program name with args. | |
5849 | set dummy strip; ac_word=$2 | |
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5851 | $as_echo_n "checking for $ac_word... " >&6; } | |
5852 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
5853 | $as_echo_n "(cached) " >&6 | |
5854 | else | |
5855 | if test -n "$ac_ct_STRIP"; then | |
5856 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5857 | else | |
5858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5859 | for as_dir in $PATH | |
5860 | do | |
5861 | IFS=$as_save_IFS | |
5862 | test -z "$as_dir" && as_dir=. | |
5863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5864 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5865 | ac_cv_prog_ac_ct_STRIP="strip" | |
5866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5867 | break 2 | |
5868 | fi | |
5869 | done | |
5870 | done | |
5871 | IFS=$as_save_IFS | |
5872 | ||
5873 | fi | |
5874 | fi | |
5875 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5876 | if test -n "$ac_ct_STRIP"; then | |
5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
5878 | $as_echo "$ac_ct_STRIP" >&6; } | |
5879 | else | |
5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5881 | $as_echo "no" >&6; } | |
5882 | fi | |
5883 | ||
5884 | if test "x$ac_ct_STRIP" = x; then | |
5885 | STRIP=":" | |
5886 | else | |
5887 | case $cross_compiling:$ac_tool_warned in | |
5888 | yes:) | |
5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5890 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5891 | ac_tool_warned=yes ;; | |
5892 | esac | |
5893 | STRIP=$ac_ct_STRIP | |
5894 | fi | |
5895 | else | |
5896 | STRIP="$ac_cv_prog_STRIP" | |
5897 | fi | |
5898 | ||
5899 | test -z "$STRIP" && STRIP=: | |
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | if test -n "$ac_tool_prefix"; then | |
5907 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5908 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5910 | $as_echo_n "checking for $ac_word... " >&6; } | |
5911 | if ${ac_cv_prog_RANLIB+:} false; then : | |
5912 | $as_echo_n "(cached) " >&6 | |
5913 | else | |
5914 | if test -n "$RANLIB"; then | |
5915 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5916 | else | |
5917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5918 | for as_dir in $PATH | |
5919 | do | |
5920 | IFS=$as_save_IFS | |
5921 | test -z "$as_dir" && as_dir=. | |
5922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5923 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5924 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5926 | break 2 | |
5927 | fi | |
5928 | done | |
5929 | done | |
5930 | IFS=$as_save_IFS | |
5931 | ||
5932 | fi | |
5933 | fi | |
5934 | RANLIB=$ac_cv_prog_RANLIB | |
5935 | if test -n "$RANLIB"; then | |
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5937 | $as_echo "$RANLIB" >&6; } | |
5938 | else | |
5939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5940 | $as_echo "no" >&6; } | |
5941 | fi | |
5942 | ||
5943 | ||
5944 | fi | |
5945 | if test -z "$ac_cv_prog_RANLIB"; then | |
5946 | ac_ct_RANLIB=$RANLIB | |
5947 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5948 | set dummy ranlib; ac_word=$2 | |
5949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5950 | $as_echo_n "checking for $ac_word... " >&6; } | |
5951 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5952 | $as_echo_n "(cached) " >&6 | |
5953 | else | |
5954 | if test -n "$ac_ct_RANLIB"; then | |
5955 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5956 | else | |
5957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5958 | for as_dir in $PATH | |
5959 | do | |
5960 | IFS=$as_save_IFS | |
5961 | test -z "$as_dir" && as_dir=. | |
5962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5963 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5964 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5966 | break 2 | |
5967 | fi | |
5968 | done | |
5969 | done | |
5970 | IFS=$as_save_IFS | |
5971 | ||
5972 | fi | |
5973 | fi | |
5974 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5975 | if test -n "$ac_ct_RANLIB"; then | |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5977 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5978 | else | |
5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5980 | $as_echo "no" >&6; } | |
5981 | fi | |
5982 | ||
5983 | if test "x$ac_ct_RANLIB" = x; then | |
5984 | RANLIB=":" | |
5985 | else | |
5986 | case $cross_compiling:$ac_tool_warned in | |
5987 | yes:) | |
5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5989 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5990 | ac_tool_warned=yes ;; | |
5991 | esac | |
5992 | RANLIB=$ac_ct_RANLIB | |
5993 | fi | |
5994 | else | |
5995 | RANLIB="$ac_cv_prog_RANLIB" | |
5996 | fi | |
5997 | ||
5998 | test -z "$RANLIB" && RANLIB=: | |
5999 | ||
6000 | ||
6001 | ||
6002 | ||
6003 | ||
6004 | ||
6005 | # Determine commands to create old-style static archives. | |
6006 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6007 | old_postinstall_cmds='chmod 644 $oldlib' | |
6008 | old_postuninstall_cmds= | |
6009 | ||
6010 | if test -n "$RANLIB"; then | |
6011 | case $host_os in | |
6012 | bitrig* | openbsd*) | |
6013 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6014 | ;; | |
6015 | *) | |
6016 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6017 | ;; | |
6018 | esac | |
6019 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
6020 | fi | |
6021 | ||
6022 | case $host_os in | |
6023 | darwin*) | |
6024 | lock_old_archive_extraction=yes ;; | |
6025 | *) | |
6026 | lock_old_archive_extraction=no ;; | |
6027 | esac | |
6028 | ||
6029 | ||
6030 | ||
6031 | ||
6032 | ||
6033 | ||
6034 | ||
6035 | ||
6036 | ||
6037 | ||
6038 | ||
6039 | ||
6040 | ||
6041 | ||
6042 | ||
6043 | ||
6044 | ||
6045 | ||
6046 | ||
6047 | ||
6048 | ||
6049 | ||
6050 | ||
6051 | ||
6052 | ||
6053 | ||
6054 | ||
6055 | ||
6056 | ||
6057 | ||
6058 | ||
6059 | ||
6060 | ||
6061 | ||
6062 | ||
6063 | ||
6064 | ||
6065 | ||
6066 | ||
6067 | # If no C compiler was specified, use CC. | |
6068 | LTCC=${LTCC-"$CC"} | |
6069 | ||
6070 | # If no C compiler flags were specified, use CFLAGS. | |
6071 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6072 | ||
6073 | # Allow CC to be a program name with arguments. | |
6074 | compiler=$CC | |
6075 | ||
6076 | ||
6077 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6079 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6080 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6081 | $as_echo_n "(cached) " >&6 | |
6082 | else | |
6083 | ||
6084 | # These are sane defaults that work on at least a few old systems. | |
6085 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6086 | ||
6087 | # Character class describing NM global symbol codes. | |
6088 | symcode='[BCDEGRST]' | |
6089 | ||
6090 | # Regexp to match symbols that can be accessed directly from C. | |
6091 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6092 | ||
6093 | # Define system-specific variables. | |
6094 | case $host_os in | |
6095 | aix*) | |
6096 | symcode='[BCDT]' | |
6097 | ;; | |
6098 | cygwin* | mingw* | pw32* | cegcc*) | |
6099 | symcode='[ABCDGISTW]' | |
6100 | ;; | |
6101 | hpux*) | |
6102 | if test ia64 = "$host_cpu"; then | |
6103 | symcode='[ABCDEGRST]' | |
6104 | fi | |
6105 | ;; | |
6106 | irix* | nonstopux*) | |
6107 | symcode='[BCDEGRST]' | |
6108 | ;; | |
6109 | osf*) | |
6110 | symcode='[BCDEGQRST]' | |
6111 | ;; | |
6112 | solaris*) | |
6113 | symcode='[BDRT]' | |
6114 | ;; | |
6115 | sco3.2v5*) | |
6116 | symcode='[DT]' | |
6117 | ;; | |
6118 | sysv4.2uw2*) | |
6119 | symcode='[DT]' | |
6120 | ;; | |
6121 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6122 | symcode='[ABDT]' | |
6123 | ;; | |
6124 | sysv4) | |
6125 | symcode='[DFNSTU]' | |
6126 | ;; | |
6127 | esac | |
6128 | ||
6129 | # If we're using GNU nm, then use its standard symbol codes. | |
6130 | case `$NM -V 2>&1` in | |
6131 | *GNU* | *'with BFD'*) | |
6132 | symcode='[ABCDGIRSTW]' ;; | |
6133 | esac | |
6134 | ||
6135 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6136 | # Gets list of data symbols to import. | |
6137 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6138 | # Adjust the below global symbol transforms to fixup imported variables. | |
6139 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6140 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6141 | lt_c_name_lib_hook="\ | |
6142 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6143 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6144 | else | |
6145 | # Disable hooks by default. | |
6146 | lt_cv_sys_global_symbol_to_import= | |
6147 | lt_cdecl_hook= | |
6148 | lt_c_name_hook= | |
6149 | lt_c_name_lib_hook= | |
6150 | fi | |
6151 | ||
6152 | # Transform an extracted symbol line into a proper C declaration. | |
6153 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6154 | # so use this general approach. | |
6155 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ | |
6156 | $lt_cdecl_hook\ | |
6157 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6158 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
6159 | ||
6160 | # Transform an extracted symbol line into symbol name and symbol address | |
6161 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ | |
6162 | $lt_c_name_hook\ | |
6163 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6164 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6165 | ||
6166 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6167 | # symbol address. | |
6168 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6169 | $lt_c_name_lib_hook\ | |
6170 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6171 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6172 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
6173 | ||
6174 | # Handle CRLF in mingw tool chain | |
6175 | opt_cr= | |
6176 | case $build_os in | |
6177 | mingw*) | |
6178 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6179 | ;; | |
6180 | esac | |
6181 | ||
6182 | # Try without a prefix underscore, then with it. | |
6183 | for ac_symprfx in "" "_"; do | |
6184 | ||
6185 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6186 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6187 | ||
6188 | # Write the raw and C identifiers. | |
6189 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6190 | # Fake it for dumpbin and say T for any non-static function, | |
6191 | # D for any global variable and I for any imported variable. | |
6192 | # Also find C++ and __fastcall symbols from MSVC++, | |
6193 | # which start with @ or ?. | |
6194 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6195 | " {last_section=section; section=\$ 3};"\ | |
6196 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
6197 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6198 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ | |
6199 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6200 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
6201 | " \$ 0!~/External *\|/{next};"\ | |
6202 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6203 | " {if(hide[section]) next};"\ | |
6204 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ | |
6205 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6206 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6207 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
6208 | " ' prfx=^$ac_symprfx" | |
6209 | else | |
6210 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6211 | fi | |
6212 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6213 | ||
6214 | # Check to see that the pipe works correctly. | |
6215 | pipe_works=no | |
6216 | ||
6217 | rm -f conftest* | |
6218 | cat > conftest.$ac_ext <<_LT_EOF | |
6219 | #ifdef __cplusplus | |
6220 | extern "C" { | |
6221 | #endif | |
6222 | char nm_test_var; | |
6223 | void nm_test_func(void); | |
6224 | void nm_test_func(void){} | |
6225 | #ifdef __cplusplus | |
6226 | } | |
6227 | #endif | |
6228 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6229 | _LT_EOF | |
6230 | ||
6231 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6232 | (eval $ac_compile) 2>&5 | |
6233 | ac_status=$? | |
6234 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6235 | test $ac_status = 0; }; then | |
6236 | # Now try to grab the symbols. | |
6237 | nlist=conftest.nm | |
6238 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6239 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6240 | ac_status=$? | |
6241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6242 | test $ac_status = 0; } && test -s "$nlist"; then | |
6243 | # Try sorting and uniquifying the output. | |
6244 | if sort "$nlist" | uniq > "$nlist"T; then | |
6245 | mv -f "$nlist"T "$nlist" | |
6246 | else | |
6247 | rm -f "$nlist"T | |
6248 | fi | |
6249 | ||
6250 | # Make sure that we snagged all the symbols we need. | |
6251 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6252 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6253 | cat <<_LT_EOF > conftest.$ac_ext | |
6254 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6255 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE | |
6256 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
6257 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6258 | # define LT_DLSYM_CONST | |
6259 | #elif defined __osf__ | |
6260 | /* This system does not cope well with relocations in const data. */ | |
6261 | # define LT_DLSYM_CONST | |
6262 | #else | |
6263 | # define LT_DLSYM_CONST const | |
6264 | #endif | |
6265 | ||
6266 | #ifdef __cplusplus | |
6267 | extern "C" { | |
6268 | #endif | |
6269 | ||
6270 | _LT_EOF | |
6271 | # Now generate the symbol file. | |
6272 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6273 | ||
6274 | cat <<_LT_EOF >> conftest.$ac_ext | |
6275 | ||
6276 | /* The mapping between symbol names and symbols. */ | |
6277 | LT_DLSYM_CONST struct { | |
6278 | const char *name; | |
6279 | void *address; | |
6280 | } | |
6281 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6282 | { | |
6283 | { "@PROGRAM@", (void *) 0 }, | |
6284 | _LT_EOF | |
6285 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6286 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6287 | {0, (void *) 0} | |
6288 | }; | |
6289 | ||
6290 | /* This works around a problem in FreeBSD linker */ | |
6291 | #ifdef FREEBSD_WORKAROUND | |
6292 | static const void *lt_preloaded_setup() { | |
6293 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6294 | } | |
6295 | #endif | |
6296 | ||
6297 | #ifdef __cplusplus | |
6298 | } | |
6299 | #endif | |
6300 | _LT_EOF | |
6301 | # Now try linking the two files. | |
6302 | mv conftest.$ac_objext conftstm.$ac_objext | |
6303 | lt_globsym_save_LIBS=$LIBS | |
6304 | lt_globsym_save_CFLAGS=$CFLAGS | |
6305 | LIBS=conftstm.$ac_objext | |
6306 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6307 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6308 | (eval $ac_link) 2>&5 | |
6309 | ac_status=$? | |
6310 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6311 | test $ac_status = 0; } && test -s conftest$ac_exeext; then | |
6312 | pipe_works=yes | |
6313 | fi | |
6314 | LIBS=$lt_globsym_save_LIBS | |
6315 | CFLAGS=$lt_globsym_save_CFLAGS | |
6316 | else | |
6317 | echo "cannot find nm_test_func in $nlist" >&5 | |
6318 | fi | |
6319 | else | |
6320 | echo "cannot find nm_test_var in $nlist" >&5 | |
6321 | fi | |
6322 | else | |
6323 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6324 | fi | |
6325 | else | |
6326 | echo "$progname: failed program was:" >&5 | |
6327 | cat conftest.$ac_ext >&5 | |
6328 | fi | |
6329 | rm -rf conftest* conftst* | |
6330 | ||
6331 | # Do not use the global_symbol_pipe unless it works. | |
6332 | if test yes = "$pipe_works"; then | |
6333 | break | |
6334 | else | |
6335 | lt_cv_sys_global_symbol_pipe= | |
6336 | fi | |
6337 | done | |
6338 | ||
6339 | fi | |
6340 | ||
6341 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6342 | lt_cv_sys_global_symbol_to_cdecl= | |
6343 | fi | |
6344 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6346 | $as_echo "failed" >&6; } | |
6347 | else | |
6348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6349 | $as_echo "ok" >&6; } | |
6350 | fi | |
6351 | ||
6352 | # Response file support. | |
6353 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6354 | nm_file_list_spec='@' | |
6355 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6356 | nm_file_list_spec='@' | |
6357 | fi | |
6358 | ||
6359 | ||
6360 | ||
6361 | ||
6362 | ||
6363 | ||
6364 | ||
6365 | ||
6366 | ||
6367 | ||
6368 | ||
6369 | ||
6370 | ||
6371 | ||
6372 | ||
6373 | ||
6374 | ||
6375 | ||
6376 | ||
6377 | ||
6378 | ||
6379 | ||
6380 | ||
6381 | ||
6382 | ||
6383 | ||
6384 | ||
6385 | ||
6386 | ||
6387 | ||
6388 | ||
6389 | ||
6390 | ||
6391 | ||
6392 | ||
6393 | ||
6394 | ||
6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6396 | $as_echo_n "checking for sysroot... " >&6; } | |
6397 | ||
6398 | # Check whether --with-sysroot was given. | |
6399 | if test "${with_sysroot+set}" = set; then : | |
6400 | withval=$with_sysroot; | |
6401 | else | |
6402 | with_sysroot=no | |
6403 | fi | |
6404 | ||
6405 | ||
6406 | lt_sysroot= | |
6407 | case $with_sysroot in #( | |
6408 | yes) | |
6409 | if test yes = "$GCC"; then | |
6410 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6411 | fi | |
6412 | ;; #( | |
6413 | /*) | |
6414 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6415 | ;; #( | |
6416 | no|'') | |
6417 | ;; #( | |
6418 | *) | |
6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 | |
6420 | $as_echo "$with_sysroot" >&6; } | |
6421 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6422 | ;; | |
6423 | esac | |
6424 | ||
6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6426 | $as_echo "${lt_sysroot:-no}" >&6; } | |
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 | |
6433 | $as_echo_n "checking for a working dd... " >&6; } | |
6434 | if ${ac_cv_path_lt_DD+:} false; then : | |
6435 | $as_echo_n "(cached) " >&6 | |
6436 | else | |
6437 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6438 | cat conftest.i conftest.i >conftest2.i | |
6439 | : ${lt_DD:=$DD} | |
6440 | if test -z "$lt_DD"; then | |
6441 | ac_path_lt_DD_found=false | |
6442 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6444 | for as_dir in $PATH | |
6445 | do | |
6446 | IFS=$as_save_IFS | |
6447 | test -z "$as_dir" && as_dir=. | |
6448 | for ac_prog in dd; do | |
6449 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6450 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6451 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6452 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6453 | cmp -s conftest.i conftest.out \ | |
6454 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6455 | fi | |
6456 | $ac_path_lt_DD_found && break 3 | |
6457 | done | |
6458 | done | |
6459 | done | |
6460 | IFS=$as_save_IFS | |
6461 | if test -z "$ac_cv_path_lt_DD"; then | |
6462 | : | |
6463 | fi | |
6464 | else | |
6465 | ac_cv_path_lt_DD=$lt_DD | |
6466 | fi | |
6467 | ||
6468 | rm -f conftest.i conftest2.i conftest.out | |
6469 | fi | |
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6471 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6472 | ||
6473 | ||
6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6475 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6476 | if ${lt_cv_truncate_bin+:} false; then : | |
6477 | $as_echo_n "(cached) " >&6 | |
6478 | else | |
6479 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6480 | cat conftest.i conftest.i >conftest2.i | |
6481 | lt_cv_truncate_bin= | |
6482 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6483 | cmp -s conftest.i conftest.out \ | |
6484 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6485 | fi | |
6486 | rm -f conftest.i conftest2.i conftest.out | |
6487 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6488 | fi | |
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6490 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6499 | func_cc_basename () | |
6500 | { | |
6501 | for cc_temp in $*""; do | |
6502 | case $cc_temp in | |
6503 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6504 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6505 | \-*) ;; | |
6506 | *) break;; | |
6507 | esac | |
6508 | done | |
6509 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6510 | } | |
6511 | ||
6512 | # Check whether --enable-libtool-lock was given. | |
6513 | if test "${enable_libtool_lock+set}" = set; then : | |
6514 | enableval=$enable_libtool_lock; | |
6515 | fi | |
6516 | ||
6517 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes | |
6518 | ||
6519 | # Some flags need to be propagated to the compiler or linker for good | |
6520 | # libtool support. | |
6521 | case $host in | |
6522 | ia64-*-hpux*) | |
6523 | # Find out what ABI is being produced by ac_compile, and set mode | |
6524 | # options accordingly. | |
6525 | echo 'int i;' > conftest.$ac_ext | |
6526 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6527 | (eval $ac_compile) 2>&5 | |
6528 | ac_status=$? | |
6529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6530 | test $ac_status = 0; }; then | |
6531 | case `/usr/bin/file conftest.$ac_objext` in | |
6532 | *ELF-32*) | |
6533 | HPUX_IA64_MODE=32 | |
6534 | ;; | |
6535 | *ELF-64*) | |
6536 | HPUX_IA64_MODE=64 | |
6537 | ;; | |
6538 | esac | |
6539 | fi | |
6540 | rm -rf conftest* | |
6541 | ;; | |
6542 | *-*-irix6*) | |
6543 | # Find out what ABI is being produced by ac_compile, and set linker | |
6544 | # options accordingly. | |
6545 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6546 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6547 | (eval $ac_compile) 2>&5 | |
6548 | ac_status=$? | |
6549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6550 | test $ac_status = 0; }; then | |
6551 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
6552 | case `/usr/bin/file conftest.$ac_objext` in | |
6553 | *32-bit*) | |
6554 | LD="${LD-ld} -melf32bsmip" | |
6555 | ;; | |
6556 | *N32*) | |
6557 | LD="${LD-ld} -melf32bmipn32" | |
6558 | ;; | |
6559 | *64-bit*) | |
6560 | LD="${LD-ld} -melf64bmip" | |
6561 | ;; | |
6562 | esac | |
6563 | else | |
6564 | case `/usr/bin/file conftest.$ac_objext` in | |
6565 | *32-bit*) | |
6566 | LD="${LD-ld} -32" | |
6567 | ;; | |
6568 | *N32*) | |
6569 | LD="${LD-ld} -n32" | |
6570 | ;; | |
6571 | *64-bit*) | |
6572 | LD="${LD-ld} -64" | |
6573 | ;; | |
6574 | esac | |
6575 | fi | |
6576 | fi | |
6577 | rm -rf conftest* | |
6578 | ;; | |
6579 | ||
6580 | mips64*-*linux*) | |
6581 | # Find out what ABI is being produced by ac_compile, and set linker | |
6582 | # options accordingly. | |
6583 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6584 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6585 | (eval $ac_compile) 2>&5 | |
6586 | ac_status=$? | |
6587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6588 | test $ac_status = 0; }; then | |
6589 | emul=elf | |
6590 | case `/usr/bin/file conftest.$ac_objext` in | |
6591 | *32-bit*) | |
6592 | emul="${emul}32" | |
6593 | ;; | |
6594 | *64-bit*) | |
6595 | emul="${emul}64" | |
6596 | ;; | |
6597 | esac | |
6598 | case `/usr/bin/file conftest.$ac_objext` in | |
6599 | *MSB*) | |
6600 | emul="${emul}btsmip" | |
6601 | ;; | |
6602 | *LSB*) | |
6603 | emul="${emul}ltsmip" | |
6604 | ;; | |
6605 | esac | |
6606 | case `/usr/bin/file conftest.$ac_objext` in | |
6607 | *N32*) | |
6608 | emul="${emul}n32" | |
6609 | ;; | |
6610 | esac | |
6611 | LD="${LD-ld} -m $emul" | |
6612 | fi | |
6613 | rm -rf conftest* | |
6614 | ;; | |
6615 | ||
6616 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
6617 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6618 | # Find out what ABI is being produced by ac_compile, and set linker | |
6619 | # options accordingly. Note that the listed cases only cover the | |
6620 | # situations where additional linker options are needed (such as when | |
6621 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6622 | # vice versa); the common cases where no linker options are needed do | |
6623 | # not appear in the list. | |
6624 | echo 'int i;' > conftest.$ac_ext | |
6625 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6626 | (eval $ac_compile) 2>&5 | |
6627 | ac_status=$? | |
6628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6629 | test $ac_status = 0; }; then | |
6630 | case `/usr/bin/file conftest.o` in | |
6631 | *32-bit*) | |
6632 | case $host in | |
6633 | x86_64-*kfreebsd*-gnu) | |
6634 | LD="${LD-ld} -m elf_i386_fbsd" | |
6635 | ;; | |
6636 | x86_64-*linux*) | |
6637 | case `/usr/bin/file conftest.o` in | |
6638 | *x86-64*) | |
6639 | LD="${LD-ld} -m elf32_x86_64" | |
6640 | ;; | |
6641 | *) | |
6642 | LD="${LD-ld} -m elf_i386" | |
6643 | ;; | |
6644 | esac | |
6645 | ;; | |
6646 | powerpc64le-*linux*) | |
6647 | LD="${LD-ld} -m elf32lppclinux" | |
6648 | ;; | |
6649 | powerpc64-*linux*) | |
6650 | LD="${LD-ld} -m elf32ppclinux" | |
6651 | ;; | |
6652 | s390x-*linux*) | |
6653 | LD="${LD-ld} -m elf_s390" | |
6654 | ;; | |
6655 | sparc64-*linux*) | |
6656 | LD="${LD-ld} -m elf32_sparc" | |
6657 | ;; | |
6658 | esac | |
6659 | ;; | |
6660 | *64-bit*) | |
6661 | case $host in | |
6662 | x86_64-*kfreebsd*-gnu) | |
6663 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6664 | ;; | |
6665 | x86_64-*linux*) | |
6666 | LD="${LD-ld} -m elf_x86_64" | |
6667 | ;; | |
6668 | powerpcle-*linux*) | |
6669 | LD="${LD-ld} -m elf64lppc" | |
6670 | ;; | |
6671 | powerpc-*linux*) | |
6672 | LD="${LD-ld} -m elf64ppc" | |
6673 | ;; | |
6674 | s390*-*linux*|s390*-*tpf*) | |
6675 | LD="${LD-ld} -m elf64_s390" | |
6676 | ;; | |
6677 | sparc*-*linux*) | |
6678 | LD="${LD-ld} -m elf64_sparc" | |
6679 | ;; | |
6680 | esac | |
6681 | ;; | |
6682 | esac | |
6683 | fi | |
6684 | rm -rf conftest* | |
6685 | ;; | |
6686 | ||
6687 | *-*-sco3.2v5*) | |
6688 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6689 | SAVE_CFLAGS=$CFLAGS | |
6690 | CFLAGS="$CFLAGS -belf" | |
6691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6692 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6693 | if ${lt_cv_cc_needs_belf+:} false; then : | |
6694 | $as_echo_n "(cached) " >&6 | |
6695 | else | |
6696 | ac_ext=c | |
6697 | ac_cpp='$CPP $CPPFLAGS' | |
6698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6701 | ||
6702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6703 | /* end confdefs.h. */ | |
6704 | ||
6705 | int | |
6706 | main () | |
6707 | { | |
6708 | ||
6709 | ; | |
6710 | return 0; | |
6711 | } | |
6712 | _ACEOF | |
6713 | if ac_fn_c_try_link "$LINENO"; then : | |
6714 | lt_cv_cc_needs_belf=yes | |
6715 | else | |
6716 | lt_cv_cc_needs_belf=no | |
6717 | fi | |
6718 | rm -f core conftest.err conftest.$ac_objext \ | |
6719 | conftest$ac_exeext conftest.$ac_ext | |
6720 | ac_ext=c | |
6721 | ac_cpp='$CPP $CPPFLAGS' | |
6722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6725 | ||
6726 | fi | |
6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6728 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6729 | if test yes != "$lt_cv_cc_needs_belf"; then | |
6730 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6731 | CFLAGS=$SAVE_CFLAGS | |
6732 | fi | |
6733 | ;; | |
6734 | *-*solaris*) | |
6735 | # Find out what ABI is being produced by ac_compile, and set linker | |
6736 | # options accordingly. | |
6737 | echo 'int i;' > conftest.$ac_ext | |
6738 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6739 | (eval $ac_compile) 2>&5 | |
6740 | ac_status=$? | |
6741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6742 | test $ac_status = 0; }; then | |
6743 | case `/usr/bin/file conftest.o` in | |
6744 | *64-bit*) | |
6745 | case $lt_cv_prog_gnu_ld in | |
6746 | yes*) | |
6747 | case $host in | |
6748 | i?86-*-solaris*|x86_64-*-solaris*) | |
6749 | LD="${LD-ld} -m elf_x86_64" | |
6750 | ;; | |
6751 | sparc*-*-solaris*) | |
6752 | LD="${LD-ld} -m elf64_sparc" | |
6753 | ;; | |
6754 | esac | |
6755 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6756 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
6757 | LD=${LD-ld}_sol2 | |
6758 | fi | |
6759 | ;; | |
6760 | *) | |
6761 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6762 | LD="${LD-ld} -64" | |
6763 | fi | |
6764 | ;; | |
6765 | esac | |
6766 | ;; | |
6767 | esac | |
6768 | fi | |
6769 | rm -rf conftest* | |
6770 | ;; | |
6771 | esac | |
6772 | ||
6773 | need_locks=$enable_libtool_lock | |
6774 | ||
6775 | if test -n "$ac_tool_prefix"; then | |
6776 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6777 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6779 | $as_echo_n "checking for $ac_word... " >&6; } | |
6780 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6781 | $as_echo_n "(cached) " >&6 | |
6782 | else | |
6783 | if test -n "$MANIFEST_TOOL"; then | |
6784 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6785 | else | |
6786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6787 | for as_dir in $PATH | |
6788 | do | |
6789 | IFS=$as_save_IFS | |
6790 | test -z "$as_dir" && as_dir=. | |
6791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6793 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6795 | break 2 | |
6796 | fi | |
6797 | done | |
6798 | done | |
6799 | IFS=$as_save_IFS | |
6800 | ||
6801 | fi | |
6802 | fi | |
6803 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6804 | if test -n "$MANIFEST_TOOL"; then | |
6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6806 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6807 | else | |
6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6809 | $as_echo "no" >&6; } | |
6810 | fi | |
6811 | ||
6812 | ||
6813 | fi | |
6814 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6815 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6816 | # Extract the first word of "mt", so it can be a program name with args. | |
6817 | set dummy mt; ac_word=$2 | |
6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6819 | $as_echo_n "checking for $ac_word... " >&6; } | |
6820 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6821 | $as_echo_n "(cached) " >&6 | |
6822 | else | |
6823 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6824 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6825 | else | |
6826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6827 | for as_dir in $PATH | |
6828 | do | |
6829 | IFS=$as_save_IFS | |
6830 | test -z "$as_dir" && as_dir=. | |
6831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6832 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6833 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6835 | break 2 | |
6836 | fi | |
6837 | done | |
6838 | done | |
6839 | IFS=$as_save_IFS | |
6840 | ||
6841 | fi | |
6842 | fi | |
6843 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6844 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6846 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6847 | else | |
6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6849 | $as_echo "no" >&6; } | |
6850 | fi | |
6851 | ||
6852 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6853 | MANIFEST_TOOL=":" | |
6854 | else | |
6855 | case $cross_compiling:$ac_tool_warned in | |
6856 | yes:) | |
6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6858 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6859 | ac_tool_warned=yes ;; | |
6860 | esac | |
6861 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6862 | fi | |
6863 | else | |
6864 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6865 | fi | |
6866 | ||
6867 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6869 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6870 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6871 | $as_echo_n "(cached) " >&6 | |
6872 | else | |
6873 | lt_cv_path_mainfest_tool=no | |
6874 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6875 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6876 | cat conftest.err >&5 | |
6877 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6878 | lt_cv_path_mainfest_tool=yes | |
6879 | fi | |
6880 | rm -f conftest* | |
6881 | fi | |
6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6883 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
6884 | if test yes != "$lt_cv_path_mainfest_tool"; then | |
6885 | MANIFEST_TOOL=: | |
6886 | fi | |
6887 | ||
6888 | ||
6889 | ||
6890 | ||
6891 | ||
6892 | ||
6893 | case $host_os in | |
6894 | rhapsody* | darwin*) | |
6895 | if test -n "$ac_tool_prefix"; then | |
6896 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6897 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6899 | $as_echo_n "checking for $ac_word... " >&6; } | |
6900 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
6901 | $as_echo_n "(cached) " >&6 | |
6902 | else | |
6903 | if test -n "$DSYMUTIL"; then | |
6904 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6905 | else | |
6906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6907 | for as_dir in $PATH | |
6908 | do | |
6909 | IFS=$as_save_IFS | |
6910 | test -z "$as_dir" && as_dir=. | |
6911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6912 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6913 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6915 | break 2 | |
6916 | fi | |
6917 | done | |
6918 | done | |
6919 | IFS=$as_save_IFS | |
6920 | ||
6921 | fi | |
6922 | fi | |
6923 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6924 | if test -n "$DSYMUTIL"; then | |
6925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
6926 | $as_echo "$DSYMUTIL" >&6; } | |
6927 | else | |
6928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6929 | $as_echo "no" >&6; } | |
6930 | fi | |
6931 | ||
6932 | ||
6933 | fi | |
6934 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6935 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6936 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6937 | set dummy dsymutil; ac_word=$2 | |
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6939 | $as_echo_n "checking for $ac_word... " >&6; } | |
6940 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
6941 | $as_echo_n "(cached) " >&6 | |
6942 | else | |
6943 | if test -n "$ac_ct_DSYMUTIL"; then | |
6944 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6945 | else | |
6946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6947 | for as_dir in $PATH | |
6948 | do | |
6949 | IFS=$as_save_IFS | |
6950 | test -z "$as_dir" && as_dir=. | |
6951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6953 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6955 | break 2 | |
6956 | fi | |
6957 | done | |
6958 | done | |
6959 | IFS=$as_save_IFS | |
6960 | ||
6961 | fi | |
6962 | fi | |
6963 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6964 | if test -n "$ac_ct_DSYMUTIL"; then | |
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
6966 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6967 | else | |
6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6969 | $as_echo "no" >&6; } | |
6970 | fi | |
6971 | ||
6972 | if test "x$ac_ct_DSYMUTIL" = x; then | |
6973 | DSYMUTIL=":" | |
6974 | else | |
6975 | case $cross_compiling:$ac_tool_warned in | |
6976 | yes:) | |
6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6978 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6979 | ac_tool_warned=yes ;; | |
6980 | esac | |
6981 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6982 | fi | |
6983 | else | |
6984 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6985 | fi | |
6986 | ||
6987 | if test -n "$ac_tool_prefix"; then | |
6988 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6989 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6991 | $as_echo_n "checking for $ac_word... " >&6; } | |
6992 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
6993 | $as_echo_n "(cached) " >&6 | |
6994 | else | |
6995 | if test -n "$NMEDIT"; then | |
6996 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6997 | else | |
6998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6999 | for as_dir in $PATH | |
7000 | do | |
7001 | IFS=$as_save_IFS | |
7002 | test -z "$as_dir" && as_dir=. | |
7003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7004 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7005 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7007 | break 2 | |
7008 | fi | |
7009 | done | |
7010 | done | |
7011 | IFS=$as_save_IFS | |
7012 | ||
7013 | fi | |
7014 | fi | |
7015 | NMEDIT=$ac_cv_prog_NMEDIT | |
7016 | if test -n "$NMEDIT"; then | |
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7018 | $as_echo "$NMEDIT" >&6; } | |
7019 | else | |
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7021 | $as_echo "no" >&6; } | |
7022 | fi | |
7023 | ||
7024 | ||
7025 | fi | |
7026 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7027 | ac_ct_NMEDIT=$NMEDIT | |
7028 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7029 | set dummy nmedit; ac_word=$2 | |
7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7031 | $as_echo_n "checking for $ac_word... " >&6; } | |
7032 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7033 | $as_echo_n "(cached) " >&6 | |
7034 | else | |
7035 | if test -n "$ac_ct_NMEDIT"; then | |
7036 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7037 | else | |
7038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7039 | for as_dir in $PATH | |
7040 | do | |
7041 | IFS=$as_save_IFS | |
7042 | test -z "$as_dir" && as_dir=. | |
7043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7045 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7047 | break 2 | |
7048 | fi | |
7049 | done | |
7050 | done | |
7051 | IFS=$as_save_IFS | |
7052 | ||
7053 | fi | |
7054 | fi | |
7055 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7056 | if test -n "$ac_ct_NMEDIT"; then | |
7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7058 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7059 | else | |
7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7061 | $as_echo "no" >&6; } | |
7062 | fi | |
7063 | ||
7064 | if test "x$ac_ct_NMEDIT" = x; then | |
7065 | NMEDIT=":" | |
7066 | else | |
7067 | case $cross_compiling:$ac_tool_warned in | |
7068 | yes:) | |
7069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7070 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7071 | ac_tool_warned=yes ;; | |
7072 | esac | |
7073 | NMEDIT=$ac_ct_NMEDIT | |
7074 | fi | |
7075 | else | |
7076 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7077 | fi | |
7078 | ||
7079 | if test -n "$ac_tool_prefix"; then | |
7080 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7081 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7083 | $as_echo_n "checking for $ac_word... " >&6; } | |
7084 | if ${ac_cv_prog_LIPO+:} false; then : | |
7085 | $as_echo_n "(cached) " >&6 | |
7086 | else | |
7087 | if test -n "$LIPO"; then | |
7088 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7089 | else | |
7090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7091 | for as_dir in $PATH | |
7092 | do | |
7093 | IFS=$as_save_IFS | |
7094 | test -z "$as_dir" && as_dir=. | |
7095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7096 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7097 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7099 | break 2 | |
7100 | fi | |
7101 | done | |
7102 | done | |
7103 | IFS=$as_save_IFS | |
7104 | ||
7105 | fi | |
7106 | fi | |
7107 | LIPO=$ac_cv_prog_LIPO | |
7108 | if test -n "$LIPO"; then | |
7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7110 | $as_echo "$LIPO" >&6; } | |
7111 | else | |
7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7113 | $as_echo "no" >&6; } | |
7114 | fi | |
7115 | ||
7116 | ||
7117 | fi | |
7118 | if test -z "$ac_cv_prog_LIPO"; then | |
7119 | ac_ct_LIPO=$LIPO | |
7120 | # Extract the first word of "lipo", so it can be a program name with args. | |
7121 | set dummy lipo; ac_word=$2 | |
7122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7123 | $as_echo_n "checking for $ac_word... " >&6; } | |
7124 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7125 | $as_echo_n "(cached) " >&6 | |
7126 | else | |
7127 | if test -n "$ac_ct_LIPO"; then | |
7128 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7129 | else | |
7130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7131 | for as_dir in $PATH | |
7132 | do | |
7133 | IFS=$as_save_IFS | |
7134 | test -z "$as_dir" && as_dir=. | |
7135 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7136 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7137 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7139 | break 2 | |
7140 | fi | |
7141 | done | |
7142 | done | |
7143 | IFS=$as_save_IFS | |
7144 | ||
7145 | fi | |
7146 | fi | |
7147 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7148 | if test -n "$ac_ct_LIPO"; then | |
7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7150 | $as_echo "$ac_ct_LIPO" >&6; } | |
7151 | else | |
7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7153 | $as_echo "no" >&6; } | |
7154 | fi | |
7155 | ||
7156 | if test "x$ac_ct_LIPO" = x; then | |
7157 | LIPO=":" | |
7158 | else | |
7159 | case $cross_compiling:$ac_tool_warned in | |
7160 | yes:) | |
7161 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7162 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7163 | ac_tool_warned=yes ;; | |
7164 | esac | |
7165 | LIPO=$ac_ct_LIPO | |
7166 | fi | |
7167 | else | |
7168 | LIPO="$ac_cv_prog_LIPO" | |
7169 | fi | |
7170 | ||
7171 | if test -n "$ac_tool_prefix"; then | |
7172 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7173 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7175 | $as_echo_n "checking for $ac_word... " >&6; } | |
7176 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7177 | $as_echo_n "(cached) " >&6 | |
7178 | else | |
7179 | if test -n "$OTOOL"; then | |
7180 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7181 | else | |
7182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7183 | for as_dir in $PATH | |
7184 | do | |
7185 | IFS=$as_save_IFS | |
7186 | test -z "$as_dir" && as_dir=. | |
7187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7188 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7189 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7191 | break 2 | |
7192 | fi | |
7193 | done | |
7194 | done | |
7195 | IFS=$as_save_IFS | |
7196 | ||
7197 | fi | |
7198 | fi | |
7199 | OTOOL=$ac_cv_prog_OTOOL | |
7200 | if test -n "$OTOOL"; then | |
7201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7202 | $as_echo "$OTOOL" >&6; } | |
7203 | else | |
7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7205 | $as_echo "no" >&6; } | |
7206 | fi | |
7207 | ||
7208 | ||
7209 | fi | |
7210 | if test -z "$ac_cv_prog_OTOOL"; then | |
7211 | ac_ct_OTOOL=$OTOOL | |
7212 | # Extract the first word of "otool", so it can be a program name with args. | |
7213 | set dummy otool; ac_word=$2 | |
7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7215 | $as_echo_n "checking for $ac_word... " >&6; } | |
7216 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7217 | $as_echo_n "(cached) " >&6 | |
7218 | else | |
7219 | if test -n "$ac_ct_OTOOL"; then | |
7220 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7221 | else | |
7222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7223 | for as_dir in $PATH | |
7224 | do | |
7225 | IFS=$as_save_IFS | |
7226 | test -z "$as_dir" && as_dir=. | |
7227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7228 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7229 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7231 | break 2 | |
7232 | fi | |
7233 | done | |
7234 | done | |
7235 | IFS=$as_save_IFS | |
7236 | ||
7237 | fi | |
7238 | fi | |
7239 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7240 | if test -n "$ac_ct_OTOOL"; then | |
7241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7242 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7243 | else | |
7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7245 | $as_echo "no" >&6; } | |
7246 | fi | |
7247 | ||
7248 | if test "x$ac_ct_OTOOL" = x; then | |
7249 | OTOOL=":" | |
7250 | else | |
7251 | case $cross_compiling:$ac_tool_warned in | |
7252 | yes:) | |
7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7254 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7255 | ac_tool_warned=yes ;; | |
7256 | esac | |
7257 | OTOOL=$ac_ct_OTOOL | |
7258 | fi | |
7259 | else | |
7260 | OTOOL="$ac_cv_prog_OTOOL" | |
7261 | fi | |
7262 | ||
7263 | if test -n "$ac_tool_prefix"; then | |
7264 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7265 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7267 | $as_echo_n "checking for $ac_word... " >&6; } | |
7268 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
7269 | $as_echo_n "(cached) " >&6 | |
7270 | else | |
7271 | if test -n "$OTOOL64"; then | |
7272 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7273 | else | |
7274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7275 | for as_dir in $PATH | |
7276 | do | |
7277 | IFS=$as_save_IFS | |
7278 | test -z "$as_dir" && as_dir=. | |
7279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7281 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7283 | break 2 | |
7284 | fi | |
7285 | done | |
7286 | done | |
7287 | IFS=$as_save_IFS | |
7288 | ||
7289 | fi | |
7290 | fi | |
7291 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7292 | if test -n "$OTOOL64"; then | |
7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7294 | $as_echo "$OTOOL64" >&6; } | |
7295 | else | |
7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7297 | $as_echo "no" >&6; } | |
7298 | fi | |
7299 | ||
7300 | ||
7301 | fi | |
7302 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7303 | ac_ct_OTOOL64=$OTOOL64 | |
7304 | # Extract the first word of "otool64", so it can be a program name with args. | |
7305 | set dummy otool64; ac_word=$2 | |
7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7307 | $as_echo_n "checking for $ac_word... " >&6; } | |
7308 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7309 | $as_echo_n "(cached) " >&6 | |
7310 | else | |
7311 | if test -n "$ac_ct_OTOOL64"; then | |
7312 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7313 | else | |
7314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7315 | for as_dir in $PATH | |
7316 | do | |
7317 | IFS=$as_save_IFS | |
7318 | test -z "$as_dir" && as_dir=. | |
7319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7320 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7321 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7323 | break 2 | |
7324 | fi | |
7325 | done | |
7326 | done | |
7327 | IFS=$as_save_IFS | |
7328 | ||
7329 | fi | |
7330 | fi | |
7331 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7332 | if test -n "$ac_ct_OTOOL64"; then | |
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7334 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7335 | else | |
7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7337 | $as_echo "no" >&6; } | |
7338 | fi | |
7339 | ||
7340 | if test "x$ac_ct_OTOOL64" = x; then | |
7341 | OTOOL64=":" | |
7342 | else | |
7343 | case $cross_compiling:$ac_tool_warned in | |
7344 | yes:) | |
7345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7346 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7347 | ac_tool_warned=yes ;; | |
7348 | esac | |
7349 | OTOOL64=$ac_ct_OTOOL64 | |
7350 | fi | |
7351 | else | |
7352 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7353 | fi | |
7354 | ||
7355 | ||
7356 | ||
7357 | ||
7358 | ||
7359 | ||
7360 | ||
7361 | ||
7362 | ||
7363 | ||
7364 | ||
7365 | ||
7366 | ||
7367 | ||
7368 | ||
7369 | ||
7370 | ||
7371 | ||
7372 | ||
7373 | ||
7374 | ||
7375 | ||
7376 | ||
7377 | ||
7378 | ||
7379 | ||
7380 | ||
7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7382 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7383 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7384 | $as_echo_n "(cached) " >&6 | |
7385 | else | |
7386 | lt_cv_apple_cc_single_mod=no | |
7387 | if test -z "$LT_MULTI_MODULE"; then | |
7388 | # By default we will add the -single_module flag. You can override | |
7389 | # by either setting the environment variable LT_MULTI_MODULE | |
7390 | # non-empty at configure time, or by adding -multi_module to the | |
7391 | # link flags. | |
7392 | rm -rf libconftest.dylib* | |
7393 | echo "int foo(void){return 1;}" > conftest.c | |
7394 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7395 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7396 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7397 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7398 | _lt_result=$? | |
7399 | # If there is a non-empty error log, and "single_module" | |
7400 | # appears in it, assume the flag caused a linker warning | |
7401 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7402 | cat conftest.err >&5 | |
7403 | # Otherwise, if the output was created with a 0 exit code from | |
7404 | # the compiler, it worked. | |
7405 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then | |
7406 | lt_cv_apple_cc_single_mod=yes | |
7407 | else | |
7408 | cat conftest.err >&5 | |
7409 | fi | |
7410 | rm -rf libconftest.dylib* | |
7411 | rm -f conftest.* | |
7412 | fi | |
7413 | fi | |
7414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7415 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7416 | ||
7417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7418 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7419 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7420 | $as_echo_n "(cached) " >&6 | |
7421 | else | |
7422 | lt_cv_ld_exported_symbols_list=no | |
7423 | save_LDFLAGS=$LDFLAGS | |
7424 | echo "_main" > conftest.sym | |
7425 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7427 | /* end confdefs.h. */ | |
7428 | ||
7429 | int | |
7430 | main () | |
7431 | { | |
7432 | ||
7433 | ; | |
7434 | return 0; | |
7435 | } | |
7436 | _ACEOF | |
7437 | if ac_fn_c_try_link "$LINENO"; then : | |
7438 | lt_cv_ld_exported_symbols_list=yes | |
7439 | else | |
7440 | lt_cv_ld_exported_symbols_list=no | |
7441 | fi | |
7442 | rm -f core conftest.err conftest.$ac_objext \ | |
7443 | conftest$ac_exeext conftest.$ac_ext | |
7444 | LDFLAGS=$save_LDFLAGS | |
7445 | ||
7446 | fi | |
7447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7448 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7449 | ||
7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7451 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7452 | if ${lt_cv_ld_force_load+:} false; then : | |
7453 | $as_echo_n "(cached) " >&6 | |
7454 | else | |
7455 | lt_cv_ld_force_load=no | |
7456 | cat > conftest.c << _LT_EOF | |
7457 | int forced_loaded() { return 2;} | |
7458 | _LT_EOF | |
7459 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7460 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7461 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7462 | $AR cru libconftest.a conftest.o 2>&5 | |
7463 | echo "$RANLIB libconftest.a" >&5 | |
7464 | $RANLIB libconftest.a 2>&5 | |
7465 | cat > conftest.c << _LT_EOF | |
7466 | int main() { return 0;} | |
7467 | _LT_EOF | |
7468 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7469 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7470 | _lt_result=$? | |
7471 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7472 | cat conftest.err >&5 | |
7473 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then | |
7474 | lt_cv_ld_force_load=yes | |
7475 | else | |
7476 | cat conftest.err >&5 | |
7477 | fi | |
7478 | rm -f conftest.err libconftest.a conftest conftest.c | |
7479 | rm -rf conftest.dSYM | |
7480 | ||
7481 | fi | |
7482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7483 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7484 | case $host_os in | |
7485 | rhapsody* | darwin1.[012]) | |
7486 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; | |
7487 | darwin1.*) | |
7488 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
7489 | darwin*) # darwin 5.x on | |
7490 | # if running on 10.5 or later, the deployment target defaults | |
7491 | # to the OS version, if on x86, and 10.4, the deployment | |
7492 | # target defaults to 10.4. Don't you love it? | |
7493 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7494 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7495 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
7496 | 10.[012][,.]*) | |
7497 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
7498 | 10.*) | |
7499 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
7500 | esac | |
7501 | ;; | |
7502 | esac | |
7503 | if test yes = "$lt_cv_apple_cc_single_mod"; then | |
7504 | _lt_dar_single_mod='$single_module' | |
7505 | fi | |
7506 | if test yes = "$lt_cv_ld_exported_symbols_list"; then | |
7507 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
7508 | else | |
7509 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' | |
7510 | fi | |
7511 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then | |
7512 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7513 | else | |
7514 | _lt_dsymutil= | |
7515 | fi | |
7516 | ;; | |
7517 | esac | |
7518 | ||
7519 | # func_munge_path_list VARIABLE PATH | |
7520 | # ----------------------------------- | |
7521 | # VARIABLE is name of variable containing _space_ separated list of | |
7522 | # directories to be munged by the contents of PATH, which is string | |
7523 | # having a format: | |
7524 | # "DIR[:DIR]:" | |
7525 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7526 | # ":DIR[:DIR]" | |
7527 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7528 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7529 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7530 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7531 | # "DIR[:DIR]" | |
7532 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7533 | func_munge_path_list () | |
7534 | { | |
7535 | case x$2 in | |
7536 | x) | |
7537 | ;; | |
7538 | *:) | |
7539 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7540 | ;; | |
7541 | x:*) | |
7542 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7543 | ;; | |
7544 | *::*) | |
7545 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7546 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7547 | ;; | |
7548 | *) | |
7549 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7550 | ;; | |
7551 | esac | |
7552 | } | |
7553 | ||
7554 | ac_ext=c | |
7555 | ac_cpp='$CPP $CPPFLAGS' | |
7556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7560 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7561 | # On Suns, sometimes $CPP names a directory. | |
7562 | if test -n "$CPP" && test -d "$CPP"; then | |
7563 | CPP= | |
7564 | fi | |
7565 | if test -z "$CPP"; then | |
7566 | if ${ac_cv_prog_CPP+:} false; then : | |
7567 | $as_echo_n "(cached) " >&6 | |
7568 | else | |
7569 | # Double quotes because CPP needs to be expanded | |
7570 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7571 | do | |
7572 | ac_preproc_ok=false | |
7573 | for ac_c_preproc_warn_flag in '' yes | |
7574 | do | |
7575 | # Use a header file that comes with gcc, so configuring glibc | |
7576 | # with a fresh cross-compiler works. | |
7577 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7578 | # <limits.h> exists even on freestanding compilers. | |
7579 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7580 | # not just through cpp. "Syntax error" is here to catch this case. | |
7581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7582 | /* end confdefs.h. */ | |
7583 | #ifdef __STDC__ | |
7584 | # include <limits.h> | |
7585 | #else | |
7586 | # include <assert.h> | |
7587 | #endif | |
7588 | Syntax error | |
7589 | _ACEOF | |
7590 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7591 | ||
7592 | else | |
7593 | # Broken: fails on valid input. | |
7594 | continue | |
7595 | fi | |
7596 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7597 | ||
7598 | # OK, works on sane cases. Now check whether nonexistent headers | |
7599 | # can be detected and how. | |
7600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7601 | /* end confdefs.h. */ | |
7602 | #include <ac_nonexistent.h> | |
7603 | _ACEOF | |
7604 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7605 | # Broken: success on invalid input. | |
7606 | continue | |
7607 | else | |
7608 | # Passes both tests. | |
7609 | ac_preproc_ok=: | |
7610 | break | |
7611 | fi | |
7612 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7613 | ||
7614 | done | |
7615 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7616 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7617 | if $ac_preproc_ok; then : | |
7618 | break | |
7619 | fi | |
7620 | ||
7621 | done | |
7622 | ac_cv_prog_CPP=$CPP | |
7623 | ||
7624 | fi | |
7625 | CPP=$ac_cv_prog_CPP | |
7626 | else | |
7627 | ac_cv_prog_CPP=$CPP | |
7628 | fi | |
7629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7630 | $as_echo "$CPP" >&6; } | |
7631 | ac_preproc_ok=false | |
7632 | for ac_c_preproc_warn_flag in '' yes | |
7633 | do | |
7634 | # Use a header file that comes with gcc, so configuring glibc | |
7635 | # with a fresh cross-compiler works. | |
7636 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7637 | # <limits.h> exists even on freestanding compilers. | |
7638 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7639 | # not just through cpp. "Syntax error" is here to catch this case. | |
7640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7641 | /* end confdefs.h. */ | |
7642 | #ifdef __STDC__ | |
7643 | # include <limits.h> | |
7644 | #else | |
7645 | # include <assert.h> | |
7646 | #endif | |
7647 | Syntax error | |
7648 | _ACEOF | |
7649 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7650 | ||
7651 | else | |
7652 | # Broken: fails on valid input. | |
7653 | continue | |
7654 | fi | |
7655 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7656 | ||
7657 | # OK, works on sane cases. Now check whether nonexistent headers | |
7658 | # can be detected and how. | |
7659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7660 | /* end confdefs.h. */ | |
7661 | #include <ac_nonexistent.h> | |
7662 | _ACEOF | |
7663 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7664 | # Broken: success on invalid input. | |
7665 | continue | |
7666 | else | |
7667 | # Passes both tests. | |
7668 | ac_preproc_ok=: | |
7669 | break | |
7670 | fi | |
7671 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7672 | ||
7673 | done | |
7674 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7675 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7676 | if $ac_preproc_ok; then : | |
7677 | ||
7678 | else | |
7679 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7680 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7681 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
7682 | See \`config.log' for more details" "$LINENO" 5; } | |
7683 | fi | |
7684 | ||
7685 | ac_ext=c | |
7686 | ac_cpp='$CPP $CPPFLAGS' | |
7687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7690 | ||
7691 | ||
7692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7693 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7694 | if ${ac_cv_header_stdc+:} false; then : | |
7695 | $as_echo_n "(cached) " >&6 | |
7696 | else | |
7697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7698 | /* end confdefs.h. */ | |
7699 | #include <stdlib.h> | |
7700 | #include <stdarg.h> | |
7701 | #include <string.h> | |
7702 | #include <float.h> | |
7703 | ||
7704 | int | |
7705 | main () | |
7706 | { | |
7707 | ||
7708 | ; | |
7709 | return 0; | |
7710 | } | |
7711 | _ACEOF | |
7712 | if ac_fn_c_try_compile "$LINENO"; then : | |
7713 | ac_cv_header_stdc=yes | |
7714 | else | |
7715 | ac_cv_header_stdc=no | |
7716 | fi | |
7717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7718 | ||
7719 | if test $ac_cv_header_stdc = yes; then | |
7720 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7722 | /* end confdefs.h. */ | |
7723 | #include <string.h> | |
7724 | ||
7725 | _ACEOF | |
7726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7727 | $EGREP "memchr" >/dev/null 2>&1; then : | |
7728 | ||
7729 | else | |
7730 | ac_cv_header_stdc=no | |
7731 | fi | |
7732 | rm -f conftest* | |
7733 | ||
7734 | fi | |
7735 | ||
7736 | if test $ac_cv_header_stdc = yes; then | |
7737 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7739 | /* end confdefs.h. */ | |
7740 | #include <stdlib.h> | |
7741 | ||
7742 | _ACEOF | |
7743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7744 | $EGREP "free" >/dev/null 2>&1; then : | |
7745 | ||
7746 | else | |
7747 | ac_cv_header_stdc=no | |
7748 | fi | |
7749 | rm -f conftest* | |
7750 | ||
7751 | fi | |
7752 | ||
7753 | if test $ac_cv_header_stdc = yes; then | |
7754 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7755 | if test "$cross_compiling" = yes; then : | |
7756 | : | |
7757 | else | |
7758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7759 | /* end confdefs.h. */ | |
7760 | #include <ctype.h> | |
7761 | #include <stdlib.h> | |
7762 | #if ((' ' & 0x0FF) == 0x020) | |
7763 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7764 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7765 | #else | |
7766 | # define ISLOWER(c) \ | |
7767 | (('a' <= (c) && (c) <= 'i') \ | |
7768 | || ('j' <= (c) && (c) <= 'r') \ | |
7769 | || ('s' <= (c) && (c) <= 'z')) | |
7770 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7771 | #endif | |
7772 | ||
7773 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7774 | int | |
7775 | main () | |
7776 | { | |
7777 | int i; | |
7778 | for (i = 0; i < 256; i++) | |
7779 | if (XOR (islower (i), ISLOWER (i)) | |
7780 | || toupper (i) != TOUPPER (i)) | |
7781 | return 2; | |
7782 | return 0; | |
7783 | } | |
7784 | _ACEOF | |
7785 | if ac_fn_c_try_run "$LINENO"; then : | |
7786 | ||
7787 | else | |
7788 | ac_cv_header_stdc=no | |
7789 | fi | |
7790 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7791 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7792 | fi | |
7793 | ||
7794 | fi | |
7795 | fi | |
7796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7797 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7798 | if test $ac_cv_header_stdc = yes; then | |
7799 | ||
7800 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7801 | ||
7802 | fi | |
7803 | ||
7804 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7805 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7806 | inttypes.h stdint.h unistd.h | |
7807 | do : | |
7808 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7809 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7810 | " | |
7811 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7812 | cat >>confdefs.h <<_ACEOF | |
7813 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7814 | _ACEOF | |
7815 | ||
7816 | fi | |
7817 | ||
7818 | done | |
7819 | ||
7820 | ||
7821 | for ac_header in dlfcn.h | |
7822 | do : | |
7823 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7824 | " | |
7825 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
7826 | cat >>confdefs.h <<_ACEOF | |
7827 | #define HAVE_DLFCN_H 1 | |
7828 | _ACEOF | |
7829 | ||
7830 | fi | |
7831 | ||
7832 | done | |
7833 | ||
7834 | ||
7835 | ||
7836 | ||
7837 | ||
7838 | # Set options | |
7839 | ||
7840 | ||
7841 | ||
7842 | enable_dlopen=no | |
7843 | ||
7844 | ||
7845 | enable_win32_dll=no | |
7846 | ||
7847 | ||
7848 | # Check whether --enable-shared was given. | |
7849 | if test "${enable_shared+set}" = set; then : | |
7850 | enableval=$enable_shared; p=${PACKAGE-default} | |
7851 | case $enableval in | |
7852 | yes) enable_shared=yes ;; | |
7853 | no) enable_shared=no ;; | |
7854 | *) | |
7855 | enable_shared=no | |
7856 | # Look at the argument we got. We use all the common list separators. | |
7857 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
7858 | for pkg in $enableval; do | |
7859 | IFS=$lt_save_ifs | |
7860 | if test "X$pkg" = "X$p"; then | |
7861 | enable_shared=yes | |
7862 | fi | |
7863 | done | |
7864 | IFS=$lt_save_ifs | |
7865 | ;; | |
7866 | esac | |
7867 | else | |
7868 | enable_shared=yes | |
7869 | fi | |
7870 | ||
7871 | ||
7872 | ||
7873 | ||
7874 | ||
7875 | ||
7876 | ||
7877 | ||
7878 | ||
7879 | # Check whether --enable-static was given. | |
7880 | if test "${enable_static+set}" = set; then : | |
7881 | enableval=$enable_static; p=${PACKAGE-default} | |
7882 | case $enableval in | |
7883 | yes) enable_static=yes ;; | |
7884 | no) enable_static=no ;; | |
7885 | *) | |
7886 | enable_static=no | |
7887 | # Look at the argument we got. We use all the common list separators. | |
7888 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
7889 | for pkg in $enableval; do | |
7890 | IFS=$lt_save_ifs | |
7891 | if test "X$pkg" = "X$p"; then | |
7892 | enable_static=yes | |
7893 | fi | |
7894 | done | |
7895 | IFS=$lt_save_ifs | |
7896 | ;; | |
7897 | esac | |
7898 | else | |
7899 | enable_static=yes | |
7900 | fi | |
7901 | ||
7902 | ||
7903 | ||
7904 | ||
7905 | ||
7906 | ||
7907 | ||
7908 | ||
7909 | ||
7910 | ||
7911 | # Check whether --with-pic was given. | |
7912 | if test "${with_pic+set}" = set; then : | |
7913 | withval=$with_pic; lt_p=${PACKAGE-default} | |
7914 | case $withval in | |
7915 | yes|no) pic_mode=$withval ;; | |
7916 | *) | |
7917 | pic_mode=default | |
7918 | # Look at the argument we got. We use all the common list separators. | |
7919 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
7920 | for lt_pkg in $withval; do | |
7921 | IFS=$lt_save_ifs | |
7922 | if test "X$lt_pkg" = "X$lt_p"; then | |
7923 | pic_mode=yes | |
7924 | fi | |
7925 | done | |
7926 | IFS=$lt_save_ifs | |
7927 | ;; | |
7928 | esac | |
7929 | else | |
7930 | pic_mode=default | |
7931 | fi | |
7932 | ||
7933 | ||
7934 | ||
7935 | ||
7936 | ||
7937 | ||
7938 | ||
7939 | ||
7940 | # Check whether --enable-fast-install was given. | |
7941 | if test "${enable_fast_install+set}" = set; then : | |
7942 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7943 | case $enableval in | |
7944 | yes) enable_fast_install=yes ;; | |
7945 | no) enable_fast_install=no ;; | |
7946 | *) | |
7947 | enable_fast_install=no | |
7948 | # Look at the argument we got. We use all the common list separators. | |
7949 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
7950 | for pkg in $enableval; do | |
7951 | IFS=$lt_save_ifs | |
7952 | if test "X$pkg" = "X$p"; then | |
7953 | enable_fast_install=yes | |
7954 | fi | |
7955 | done | |
7956 | IFS=$lt_save_ifs | |
7957 | ;; | |
7958 | esac | |
7959 | else | |
7960 | enable_fast_install=yes | |
7961 | fi | |
7962 | ||
7963 | ||
7964 | ||
7965 | ||
7966 | ||
7967 | ||
7968 | ||
7969 | ||
7970 | shared_archive_member_spec= | |
7971 | case $host,$enable_shared in | |
7972 | power*-*-aix[5-9]*,yes) | |
7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
7974 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
7975 | ||
7976 | # Check whether --with-aix-soname was given. | |
7977 | if test "${with_aix_soname+set}" = set; then : | |
7978 | withval=$with_aix_soname; case $withval in | |
7979 | aix|svr4|both) | |
7980 | ;; | |
7981 | *) | |
7982 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
7983 | ;; | |
7984 | esac | |
7985 | lt_cv_with_aix_soname=$with_aix_soname | |
7986 | else | |
7987 | if ${lt_cv_with_aix_soname+:} false; then : | |
7988 | $as_echo_n "(cached) " >&6 | |
7989 | else | |
7990 | lt_cv_with_aix_soname=aix | |
7991 | fi | |
7992 | ||
7993 | with_aix_soname=$lt_cv_with_aix_soname | |
7994 | fi | |
7995 | ||
7996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
7997 | $as_echo "$with_aix_soname" >&6; } | |
7998 | if test aix != "$with_aix_soname"; then | |
7999 | # For the AIX way of multilib, we name the shared archive member | |
8000 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
8001 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
8002 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
8003 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
8004 | if test 64 = "${OBJECT_MODE-32}"; then | |
8005 | shared_archive_member_spec=shr_64 | |
8006 | else | |
8007 | shared_archive_member_spec=shr | |
8008 | fi | |
8009 | fi | |
8010 | ;; | |
8011 | *) | |
8012 | with_aix_soname=aix | |
8013 | ;; | |
8014 | esac | |
8015 | ||
8016 | ||
8017 | ||
8018 | ||
8019 | ||
8020 | ||
8021 | ||
8022 | ||
8023 | ||
8024 | ||
8025 | # This can be used to rebuild libtool when needed | |
8026 | LIBTOOL_DEPS=$ltmain | |
8027 | ||
8028 | # Always use our own libtool. | |
8029 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8030 | ||
8031 | ||
8032 | ||
8033 | ||
8034 | ||
8035 | ||
8036 | ||
8037 | ||
8038 | ||
8039 | ||
8040 | ||
8041 | ||
8042 | ||
8043 | ||
8044 | ||
8045 | ||
8046 | ||
8047 | ||
8048 | ||
8049 | ||
8050 | ||
8051 | ||
8052 | ||
8053 | ||
8054 | ||
8055 | ||
8056 | ||
8057 | ||
8058 | ||
8059 | ||
8060 | test -z "$LN_S" && LN_S="ln -s" | |
8061 | ||
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
8067 | ||
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | ||
8073 | ||
8074 | ||
8075 | if test -n "${ZSH_VERSION+set}"; then | |
8076 | setopt NO_GLOB_SUBST | |
8077 | fi | |
8078 | ||
8079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8080 | $as_echo_n "checking for objdir... " >&6; } | |
8081 | if ${lt_cv_objdir+:} false; then : | |
8082 | $as_echo_n "(cached) " >&6 | |
8083 | else | |
8084 | rm -f .libs 2>/dev/null | |
8085 | mkdir .libs 2>/dev/null | |
8086 | if test -d .libs; then | |
8087 | lt_cv_objdir=.libs | |
8088 | else | |
8089 | # MS-DOS does not allow filenames that begin with a dot. | |
8090 | lt_cv_objdir=_libs | |
8091 | fi | |
8092 | rmdir .libs 2>/dev/null | |
8093 | fi | |
8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8095 | $as_echo "$lt_cv_objdir" >&6; } | |
8096 | objdir=$lt_cv_objdir | |
8097 | ||
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | cat >>confdefs.h <<_ACEOF | |
8103 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8104 | _ACEOF | |
8105 | ||
8106 | ||
8107 | ||
8108 | ||
8109 | case $host_os in | |
8110 | aix3*) | |
8111 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8112 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8113 | # vanish in a puff of smoke. | |
8114 | if test set != "${COLLECT_NAMES+set}"; then | |
8115 | COLLECT_NAMES= | |
8116 | export COLLECT_NAMES | |
8117 | fi | |
8118 | ;; | |
8119 | esac | |
8120 | ||
8121 | # Global variables: | |
8122 | ofile=libtool | |
8123 | can_build_shared=yes | |
8124 | ||
8125 | # All known linkers require a '.a' archive for static linking (except MSVC, | |
8126 | # which needs '.lib'). | |
8127 | libext=a | |
8128 | ||
8129 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
8130 | ||
8131 | old_CC=$CC | |
8132 | old_CFLAGS=$CFLAGS | |
8133 | ||
8134 | # Set sane defaults for various variables | |
8135 | test -z "$CC" && CC=cc | |
8136 | test -z "$LTCC" && LTCC=$CC | |
8137 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8138 | test -z "$LD" && LD=ld | |
8139 | test -z "$ac_objext" && ac_objext=o | |
8140 | ||
8141 | func_cc_basename $compiler | |
8142 | cc_basename=$func_cc_basename_result | |
8143 | ||
8144 | ||
8145 | # Only perform the check for file, if the check method requires it | |
8146 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8147 | case $deplibs_check_method in | |
8148 | file_magic*) | |
8149 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8151 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8152 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8153 | $as_echo_n "(cached) " >&6 | |
8154 | else | |
8155 | case $MAGIC_CMD in | |
8156 | [\\/*] | ?:[\\/]*) | |
8157 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8158 | ;; | |
8159 | *) | |
8160 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8161 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8162 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8163 | for ac_dir in $ac_dummy; do | |
8164 | IFS=$lt_save_ifs | |
8165 | test -z "$ac_dir" && ac_dir=. | |
8166 | if test -f "$ac_dir/${ac_tool_prefix}file"; then | |
8167 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8168 | if test -n "$file_magic_test_file"; then | |
8169 | case $deplibs_check_method in | |
8170 | "file_magic "*) | |
8171 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8172 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8173 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8174 | $EGREP "$file_magic_regex" > /dev/null; then | |
8175 | : | |
8176 | else | |
8177 | cat <<_LT_EOF 1>&2 | |
8178 | ||
8179 | *** Warning: the command libtool uses to detect shared libraries, | |
8180 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8181 | *** The result is that libtool may fail to recognize shared libraries | |
8182 | *** as such. This will affect the creation of libtool libraries that | |
8183 | *** depend on shared libraries, but programs linked with such libtool | |
8184 | *** libraries will work regardless of this problem. Nevertheless, you | |
8185 | *** may want to report the problem to your system manager and/or to | |
8186 | *** bug-libtool@gnu.org | |
8187 | ||
8188 | _LT_EOF | |
8189 | fi ;; | |
8190 | esac | |
8191 | fi | |
8192 | break | |
8193 | fi | |
8194 | done | |
8195 | IFS=$lt_save_ifs | |
8196 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8197 | ;; | |
8198 | esac | |
8199 | fi | |
8200 | ||
8201 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8202 | if test -n "$MAGIC_CMD"; then | |
8203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8204 | $as_echo "$MAGIC_CMD" >&6; } | |
8205 | else | |
8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8207 | $as_echo "no" >&6; } | |
8208 | fi | |
8209 | ||
8210 | ||
8211 | ||
8212 | ||
8213 | ||
8214 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8215 | if test -n "$ac_tool_prefix"; then | |
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8217 | $as_echo_n "checking for file... " >&6; } | |
8218 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8219 | $as_echo_n "(cached) " >&6 | |
8220 | else | |
8221 | case $MAGIC_CMD in | |
8222 | [\\/*] | ?:[\\/]*) | |
8223 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
8224 | ;; | |
8225 | *) | |
8226 | lt_save_MAGIC_CMD=$MAGIC_CMD | |
8227 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8228 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8229 | for ac_dir in $ac_dummy; do | |
8230 | IFS=$lt_save_ifs | |
8231 | test -z "$ac_dir" && ac_dir=. | |
8232 | if test -f "$ac_dir/file"; then | |
8233 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8234 | if test -n "$file_magic_test_file"; then | |
8235 | case $deplibs_check_method in | |
8236 | "file_magic "*) | |
8237 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8238 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8239 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8240 | $EGREP "$file_magic_regex" > /dev/null; then | |
8241 | : | |
8242 | else | |
8243 | cat <<_LT_EOF 1>&2 | |
8244 | ||
8245 | *** Warning: the command libtool uses to detect shared libraries, | |
8246 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8247 | *** The result is that libtool may fail to recognize shared libraries | |
8248 | *** as such. This will affect the creation of libtool libraries that | |
8249 | *** depend on shared libraries, but programs linked with such libtool | |
8250 | *** libraries will work regardless of this problem. Nevertheless, you | |
8251 | *** may want to report the problem to your system manager and/or to | |
8252 | *** bug-libtool@gnu.org | |
8253 | ||
8254 | _LT_EOF | |
8255 | fi ;; | |
8256 | esac | |
8257 | fi | |
8258 | break | |
8259 | fi | |
8260 | done | |
8261 | IFS=$lt_save_ifs | |
8262 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8263 | ;; | |
8264 | esac | |
8265 | fi | |
8266 | ||
8267 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
8268 | if test -n "$MAGIC_CMD"; then | |
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8270 | $as_echo "$MAGIC_CMD" >&6; } | |
8271 | else | |
8272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8273 | $as_echo "no" >&6; } | |
8274 | fi | |
8275 | ||
8276 | ||
8277 | else | |
8278 | MAGIC_CMD=: | |
8279 | fi | |
8280 | fi | |
8281 | ||
8282 | fi | |
8283 | ;; | |
8284 | esac | |
8285 | ||
8286 | # Use C for the default configuration in the libtool script | |
8287 | ||
8288 | lt_save_CC=$CC | |
8289 | ac_ext=c | |
8290 | ac_cpp='$CPP $CPPFLAGS' | |
8291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8294 | ||
8295 | ||
8296 | # Source file extension for C test sources. | |
8297 | ac_ext=c | |
8298 | ||
8299 | # Object file extension for compiled C test sources. | |
8300 | objext=o | |
8301 | objext=$objext | |
8302 | ||
8303 | # Code to be used in simple compile tests | |
8304 | lt_simple_compile_test_code="int some_variable = 0;" | |
8305 | ||
8306 | # Code to be used in simple link tests | |
8307 | lt_simple_link_test_code='int main(){return(0);}' | |
8308 | ||
8309 | ||
8310 | ||
8311 | ||
8312 | ||
8313 | ||
8314 | ||
8315 | # If no C compiler was specified, use CC. | |
8316 | LTCC=${LTCC-"$CC"} | |
8317 | ||
8318 | # If no C compiler flags were specified, use CFLAGS. | |
8319 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8320 | ||
8321 | # Allow CC to be a program name with arguments. | |
8322 | compiler=$CC | |
8323 | ||
8324 | # Save the default compiler, since it gets overwritten when the other | |
8325 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8326 | compiler_DEFAULT=$CC | |
8327 | ||
8328 | # save warnings/boilerplate of simple test code | |
8329 | ac_outfile=conftest.$ac_objext | |
8330 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8331 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8332 | _lt_compiler_boilerplate=`cat conftest.err` | |
8333 | $RM conftest* | |
8334 | ||
8335 | ac_outfile=conftest.$ac_objext | |
8336 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8337 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8338 | _lt_linker_boilerplate=`cat conftest.err` | |
8339 | $RM -r conftest* | |
8340 | ||
8341 | ||
8342 | ## CAVEAT EMPTOR: | |
8343 | ## There is no encapsulation within the following macros, do not change | |
8344 | ## the running order or otherwise move them around unless you know exactly | |
8345 | ## what you are doing... | |
8346 | if test -n "$compiler"; then | |
8347 | ||
8348 | lt_prog_compiler_no_builtin_flag= | |
8349 | ||
8350 | if test yes = "$GCC"; then | |
8351 | case $cc_basename in | |
8352 | nvcc*) | |
8353 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8354 | *) | |
8355 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8356 | esac | |
8357 | ||
8358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8359 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8360 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8361 | $as_echo_n "(cached) " >&6 | |
8362 | else | |
8363 | lt_cv_prog_compiler_rtti_exceptions=no | |
8364 | ac_outfile=conftest.$ac_objext | |
8365 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8366 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment | |
8367 | # Insert the option either (1) after the last *FLAGS variable, or | |
8368 | # (2) before a word containing "conftest.", or (3) at the end. | |
8369 | # Note that $ac_compile itself does not contain backslashes and begins | |
8370 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8371 | # The option is referenced via a variable to avoid confusing sed. | |
8372 | lt_compile=`echo "$ac_compile" | $SED \ | |
8373 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8374 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8375 | -e 's:$: $lt_compiler_flag:'` | |
8376 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8377 | (eval "$lt_compile" 2>conftest.err) | |
8378 | ac_status=$? | |
8379 | cat conftest.err >&5 | |
8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8381 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8382 | # The compiler can only warn and ignore the option if not recognized | |
8383 | # So say no if there are warnings other than the usual output. | |
8384 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8385 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8386 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8387 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8388 | fi | |
8389 | fi | |
8390 | $RM conftest* | |
8391 | ||
8392 | fi | |
8393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8394 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8395 | ||
8396 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then | |
8397 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8398 | else | |
8399 | : | |
8400 | fi | |
8401 | ||
8402 | fi | |
8403 | ||
8404 | ||
8405 | ||
8406 | ||
8407 | ||
8408 | ||
8409 | lt_prog_compiler_wl= | |
8410 | lt_prog_compiler_pic= | |
8411 | lt_prog_compiler_static= | |
8412 | ||
8413 | ||
8414 | if test yes = "$GCC"; then | |
8415 | lt_prog_compiler_wl='-Wl,' | |
8416 | lt_prog_compiler_static='-static' | |
8417 | ||
8418 | case $host_os in | |
8419 | aix*) | |
8420 | # All AIX code is PIC. | |
8421 | if test ia64 = "$host_cpu"; then | |
8422 | # AIX 5 now supports IA64 processor | |
8423 | lt_prog_compiler_static='-Bstatic' | |
8424 | fi | |
8425 | lt_prog_compiler_pic='-fPIC' | |
8426 | ;; | |
8427 | ||
8428 | amigaos*) | |
8429 | case $host_cpu in | |
8430 | powerpc) | |
8431 | # see comment about AmigaOS4 .so support | |
8432 | lt_prog_compiler_pic='-fPIC' | |
8433 | ;; | |
8434 | m68k) | |
8435 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8436 | # adding the '-m68020' flag to GCC prevents building anything better, | |
8437 | # like '-m68040'. | |
8438 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8439 | ;; | |
8440 | esac | |
8441 | ;; | |
8442 | ||
8443 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8444 | # PIC is the default for these OSes. | |
8445 | ;; | |
8446 | ||
8447 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8448 | # This hack is so that the source file can tell whether it is being | |
8449 | # built for inclusion in a dll (and should export symbols for example). | |
8450 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8451 | # (--disable-auto-import) libraries | |
8452 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8453 | case $host_os in | |
8454 | os2*) | |
8455 | lt_prog_compiler_static='$wl-static' | |
8456 | ;; | |
8457 | esac | |
8458 | ;; | |
8459 | ||
8460 | darwin* | rhapsody*) | |
8461 | # PIC is the default on this platform | |
8462 | # Common symbols not allowed in MH_DYLIB files | |
8463 | lt_prog_compiler_pic='-fno-common' | |
8464 | ;; | |
8465 | ||
8466 | haiku*) | |
8467 | # PIC is the default for Haiku. | |
8468 | # The "-static" flag exists, but is broken. | |
8469 | lt_prog_compiler_static= | |
8470 | ;; | |
8471 | ||
8472 | hpux*) | |
8473 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8474 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8475 | # sets the default TLS model and affects inlining. | |
8476 | case $host_cpu in | |
8477 | hppa*64*) | |
8478 | # +Z the default | |
8479 | ;; | |
8480 | *) | |
8481 | lt_prog_compiler_pic='-fPIC' | |
8482 | ;; | |
8483 | esac | |
8484 | ;; | |
8485 | ||
8486 | interix[3-9]*) | |
8487 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8488 | # Instead, we relocate shared libraries at runtime. | |
8489 | ;; | |
8490 | ||
8491 | msdosdjgpp*) | |
8492 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8493 | # on systems that don't support them. | |
8494 | lt_prog_compiler_can_build_shared=no | |
8495 | enable_shared=no | |
8496 | ;; | |
8497 | ||
8498 | *nto* | *qnx*) | |
8499 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8500 | # it will coredump. | |
8501 | lt_prog_compiler_pic='-fPIC -shared' | |
8502 | ;; | |
8503 | ||
8504 | sysv4*MP*) | |
8505 | if test -d /usr/nec; then | |
8506 | lt_prog_compiler_pic=-Kconform_pic | |
8507 | fi | |
8508 | ;; | |
8509 | ||
8510 | *) | |
8511 | lt_prog_compiler_pic='-fPIC' | |
8512 | ;; | |
8513 | esac | |
8514 | ||
8515 | case $cc_basename in | |
8516 | nvcc*) # Cuda Compiler Driver 2.2 | |
8517 | lt_prog_compiler_wl='-Xlinker ' | |
8518 | if test -n "$lt_prog_compiler_pic"; then | |
8519 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8520 | fi | |
8521 | ;; | |
8522 | esac | |
8523 | else | |
8524 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8525 | case $host_os in | |
8526 | aix*) | |
8527 | lt_prog_compiler_wl='-Wl,' | |
8528 | if test ia64 = "$host_cpu"; then | |
8529 | # AIX 5 now supports IA64 processor | |
8530 | lt_prog_compiler_static='-Bstatic' | |
8531 | else | |
8532 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8533 | fi | |
8534 | ;; | |
8535 | ||
8536 | darwin* | rhapsody*) | |
8537 | # PIC is the default on this platform | |
8538 | # Common symbols not allowed in MH_DYLIB files | |
8539 | lt_prog_compiler_pic='-fno-common' | |
8540 | case $cc_basename in | |
8541 | nagfor*) | |
8542 | # NAG Fortran compiler | |
8543 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8544 | lt_prog_compiler_pic='-PIC' | |
8545 | lt_prog_compiler_static='-Bstatic' | |
8546 | ;; | |
8547 | esac | |
8548 | ;; | |
8549 | ||
8550 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8551 | # This hack is so that the source file can tell whether it is being | |
8552 | # built for inclusion in a dll (and should export symbols for example). | |
8553 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8554 | case $host_os in | |
8555 | os2*) | |
8556 | lt_prog_compiler_static='$wl-static' | |
8557 | ;; | |
8558 | esac | |
8559 | ;; | |
8560 | ||
8561 | hpux9* | hpux10* | hpux11*) | |
8562 | lt_prog_compiler_wl='-Wl,' | |
8563 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8564 | # not for PA HP-UX. | |
8565 | case $host_cpu in | |
8566 | hppa*64*|ia64*) | |
8567 | # +Z the default | |
8568 | ;; | |
8569 | *) | |
8570 | lt_prog_compiler_pic='+Z' | |
8571 | ;; | |
8572 | esac | |
8573 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8574 | lt_prog_compiler_static='$wl-a ${wl}archive' | |
8575 | ;; | |
8576 | ||
8577 | irix5* | irix6* | nonstopux*) | |
8578 | lt_prog_compiler_wl='-Wl,' | |
8579 | # PIC (with -KPIC) is the default. | |
8580 | lt_prog_compiler_static='-non_shared' | |
8581 | ;; | |
8582 | ||
8583 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
8584 | case $cc_basename in | |
8585 | # old Intel for x86_64, which still supported -KPIC. | |
8586 | ecc*) | |
8587 | lt_prog_compiler_wl='-Wl,' | |
8588 | lt_prog_compiler_pic='-KPIC' | |
8589 | lt_prog_compiler_static='-static' | |
8590 | ;; | |
8591 | # icc used to be incompatible with GCC. | |
8592 | # ICC 10 doesn't accept -KPIC any more. | |
8593 | icc* | ifort*) | |
8594 | lt_prog_compiler_wl='-Wl,' | |
8595 | lt_prog_compiler_pic='-fPIC' | |
8596 | lt_prog_compiler_static='-static' | |
8597 | ;; | |
8598 | # Lahey Fortran 8.1. | |
8599 | lf95*) | |
8600 | lt_prog_compiler_wl='-Wl,' | |
8601 | lt_prog_compiler_pic='--shared' | |
8602 | lt_prog_compiler_static='--static' | |
8603 | ;; | |
8604 | nagfor*) | |
8605 | # NAG Fortran compiler | |
8606 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8607 | lt_prog_compiler_pic='-PIC' | |
8608 | lt_prog_compiler_static='-Bstatic' | |
8609 | ;; | |
8610 | tcc*) | |
8611 | # Fabrice Bellard et al's Tiny C Compiler | |
8612 | lt_prog_compiler_wl='-Wl,' | |
8613 | lt_prog_compiler_pic='-fPIC' | |
8614 | lt_prog_compiler_static='-static' | |
8615 | ;; | |
8616 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8617 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8618 | # which looks to be a dead project) | |
8619 | lt_prog_compiler_wl='-Wl,' | |
8620 | lt_prog_compiler_pic='-fpic' | |
8621 | lt_prog_compiler_static='-Bstatic' | |
8622 | ;; | |
8623 | ccc*) | |
8624 | lt_prog_compiler_wl='-Wl,' | |
8625 | # All Alpha code is PIC. | |
8626 | lt_prog_compiler_static='-non_shared' | |
8627 | ;; | |
8628 | xl* | bgxl* | bgf* | mpixl*) | |
8629 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8630 | lt_prog_compiler_wl='-Wl,' | |
8631 | lt_prog_compiler_pic='-qpic' | |
8632 | lt_prog_compiler_static='-qstaticlink' | |
8633 | ;; | |
8634 | *) | |
8635 | case `$CC -V 2>&1 | sed 5q` in | |
8636 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
8637 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8638 | lt_prog_compiler_pic='-KPIC' | |
8639 | lt_prog_compiler_static='-Bstatic' | |
8640 | lt_prog_compiler_wl='' | |
8641 | ;; | |
8642 | *Sun\ F* | *Sun*Fortran*) | |
8643 | lt_prog_compiler_pic='-KPIC' | |
8644 | lt_prog_compiler_static='-Bstatic' | |
8645 | lt_prog_compiler_wl='-Qoption ld ' | |
8646 | ;; | |
8647 | *Sun\ C*) | |
8648 | # Sun C 5.9 | |
8649 | lt_prog_compiler_pic='-KPIC' | |
8650 | lt_prog_compiler_static='-Bstatic' | |
8651 | lt_prog_compiler_wl='-Wl,' | |
8652 | ;; | |
8653 | *Intel*\ [CF]*Compiler*) | |
8654 | lt_prog_compiler_wl='-Wl,' | |
8655 | lt_prog_compiler_pic='-fPIC' | |
8656 | lt_prog_compiler_static='-static' | |
8657 | ;; | |
8658 | *Portland\ Group*) | |
8659 | lt_prog_compiler_wl='-Wl,' | |
8660 | lt_prog_compiler_pic='-fpic' | |
8661 | lt_prog_compiler_static='-Bstatic' | |
8662 | ;; | |
8663 | esac | |
8664 | ;; | |
8665 | esac | |
8666 | ;; | |
8667 | ||
8668 | newsos6) | |
8669 | lt_prog_compiler_pic='-KPIC' | |
8670 | lt_prog_compiler_static='-Bstatic' | |
8671 | ;; | |
8672 | ||
8673 | *nto* | *qnx*) | |
8674 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8675 | # it will coredump. | |
8676 | lt_prog_compiler_pic='-fPIC -shared' | |
8677 | ;; | |
8678 | ||
8679 | osf3* | osf4* | osf5*) | |
8680 | lt_prog_compiler_wl='-Wl,' | |
8681 | # All OSF/1 code is PIC. | |
8682 | lt_prog_compiler_static='-non_shared' | |
8683 | ;; | |
8684 | ||
8685 | rdos*) | |
8686 | lt_prog_compiler_static='-non_shared' | |
8687 | ;; | |
8688 | ||
8689 | solaris*) | |
8690 | lt_prog_compiler_pic='-KPIC' | |
8691 | lt_prog_compiler_static='-Bstatic' | |
8692 | case $cc_basename in | |
8693 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8694 | lt_prog_compiler_wl='-Qoption ld ';; | |
8695 | *) | |
8696 | lt_prog_compiler_wl='-Wl,';; | |
8697 | esac | |
8698 | ;; | |
8699 | ||
8700 | sunos4*) | |
8701 | lt_prog_compiler_wl='-Qoption ld ' | |
8702 | lt_prog_compiler_pic='-PIC' | |
8703 | lt_prog_compiler_static='-Bstatic' | |
8704 | ;; | |
8705 | ||
8706 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8707 | lt_prog_compiler_wl='-Wl,' | |
8708 | lt_prog_compiler_pic='-KPIC' | |
8709 | lt_prog_compiler_static='-Bstatic' | |
8710 | ;; | |
8711 | ||
8712 | sysv4*MP*) | |
8713 | if test -d /usr/nec; then | |
8714 | lt_prog_compiler_pic='-Kconform_pic' | |
8715 | lt_prog_compiler_static='-Bstatic' | |
8716 | fi | |
8717 | ;; | |
8718 | ||
8719 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8720 | lt_prog_compiler_wl='-Wl,' | |
8721 | lt_prog_compiler_pic='-KPIC' | |
8722 | lt_prog_compiler_static='-Bstatic' | |
8723 | ;; | |
8724 | ||
8725 | unicos*) | |
8726 | lt_prog_compiler_wl='-Wl,' | |
8727 | lt_prog_compiler_can_build_shared=no | |
8728 | ;; | |
8729 | ||
8730 | uts4*) | |
8731 | lt_prog_compiler_pic='-pic' | |
8732 | lt_prog_compiler_static='-Bstatic' | |
8733 | ;; | |
8734 | ||
8735 | *) | |
8736 | lt_prog_compiler_can_build_shared=no | |
8737 | ;; | |
8738 | esac | |
8739 | fi | |
8740 | ||
8741 | case $host_os in | |
8742 | # For platforms that do not support PIC, -DPIC is meaningless: | |
8743 | *djgpp*) | |
8744 | lt_prog_compiler_pic= | |
8745 | ;; | |
8746 | *) | |
8747 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8748 | ;; | |
8749 | esac | |
8750 | ||
8751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8752 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8753 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8754 | $as_echo_n "(cached) " >&6 | |
8755 | else | |
8756 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8757 | fi | |
8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8759 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8760 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8761 | ||
8762 | # | |
8763 | # Check to make sure the PIC flag actually works. | |
8764 | # | |
8765 | if test -n "$lt_prog_compiler_pic"; then | |
8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8767 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8768 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8769 | $as_echo_n "(cached) " >&6 | |
8770 | else | |
8771 | lt_cv_prog_compiler_pic_works=no | |
8772 | ac_outfile=conftest.$ac_objext | |
8773 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8774 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment | |
8775 | # Insert the option either (1) after the last *FLAGS variable, or | |
8776 | # (2) before a word containing "conftest.", or (3) at the end. | |
8777 | # Note that $ac_compile itself does not contain backslashes and begins | |
8778 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8779 | # The option is referenced via a variable to avoid confusing sed. | |
8780 | lt_compile=`echo "$ac_compile" | $SED \ | |
8781 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8782 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8783 | -e 's:$: $lt_compiler_flag:'` | |
8784 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8785 | (eval "$lt_compile" 2>conftest.err) | |
8786 | ac_status=$? | |
8787 | cat conftest.err >&5 | |
8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8789 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8790 | # The compiler can only warn and ignore the option if not recognized | |
8791 | # So say no if there are warnings other than the usual output. | |
8792 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8793 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8794 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8795 | lt_cv_prog_compiler_pic_works=yes | |
8796 | fi | |
8797 | fi | |
8798 | $RM conftest* | |
8799 | ||
8800 | fi | |
8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8802 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8803 | ||
8804 | if test yes = "$lt_cv_prog_compiler_pic_works"; then | |
8805 | case $lt_prog_compiler_pic in | |
8806 | "" | " "*) ;; | |
8807 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8808 | esac | |
8809 | else | |
8810 | lt_prog_compiler_pic= | |
8811 | lt_prog_compiler_can_build_shared=no | |
8812 | fi | |
8813 | ||
8814 | fi | |
8815 | ||
8816 | ||
8817 | ||
8818 | ||
8819 | ||
8820 | ||
8821 | ||
8822 | ||
8823 | ||
8824 | ||
8825 | ||
8826 | # | |
8827 | # Check to make sure the static flag actually works. | |
8828 | # | |
8829 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8831 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8832 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
8833 | $as_echo_n "(cached) " >&6 | |
8834 | else | |
8835 | lt_cv_prog_compiler_static_works=no | |
8836 | save_LDFLAGS=$LDFLAGS | |
8837 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8838 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8839 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8840 | # The linker can only warn and ignore the option if not recognized | |
8841 | # So say no if there are warnings | |
8842 | if test -s conftest.err; then | |
8843 | # Append any errors to the config.log. | |
8844 | cat conftest.err 1>&5 | |
8845 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8846 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8847 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8848 | lt_cv_prog_compiler_static_works=yes | |
8849 | fi | |
8850 | else | |
8851 | lt_cv_prog_compiler_static_works=yes | |
8852 | fi | |
8853 | fi | |
8854 | $RM -r conftest* | |
8855 | LDFLAGS=$save_LDFLAGS | |
8856 | ||
8857 | fi | |
8858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8859 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8860 | ||
8861 | if test yes = "$lt_cv_prog_compiler_static_works"; then | |
8862 | : | |
8863 | else | |
8864 | lt_prog_compiler_static= | |
8865 | fi | |
8866 | ||
8867 | ||
8868 | ||
8869 | ||
8870 | ||
8871 | ||
8872 | ||
8873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8874 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8875 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8876 | $as_echo_n "(cached) " >&6 | |
8877 | else | |
8878 | lt_cv_prog_compiler_c_o=no | |
8879 | $RM -r conftest 2>/dev/null | |
8880 | mkdir conftest | |
8881 | cd conftest | |
8882 | mkdir out | |
8883 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8884 | ||
8885 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8886 | # Insert the option either (1) after the last *FLAGS variable, or | |
8887 | # (2) before a word containing "conftest.", or (3) at the end. | |
8888 | # Note that $ac_compile itself does not contain backslashes and begins | |
8889 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8890 | lt_compile=`echo "$ac_compile" | $SED \ | |
8891 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8892 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8893 | -e 's:$: $lt_compiler_flag:'` | |
8894 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8895 | (eval "$lt_compile" 2>out/conftest.err) | |
8896 | ac_status=$? | |
8897 | cat out/conftest.err >&5 | |
8898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8899 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8900 | then | |
8901 | # The compiler can only warn and ignore the option if not recognized | |
8902 | # So say no if there are warnings | |
8903 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8904 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8905 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8906 | lt_cv_prog_compiler_c_o=yes | |
8907 | fi | |
8908 | fi | |
8909 | chmod u+w . 2>&5 | |
8910 | $RM conftest* | |
8911 | # SGI C++ compiler will create directory out/ii_files/ for | |
8912 | # template instantiation | |
8913 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8914 | $RM out/* && rmdir out | |
8915 | cd .. | |
8916 | $RM -r conftest | |
8917 | $RM conftest* | |
8918 | ||
8919 | fi | |
8920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8921 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8922 | ||
8923 | ||
8924 | ||
8925 | ||
8926 | ||
8927 | ||
8928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8929 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8930 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8931 | $as_echo_n "(cached) " >&6 | |
8932 | else | |
8933 | lt_cv_prog_compiler_c_o=no | |
8934 | $RM -r conftest 2>/dev/null | |
8935 | mkdir conftest | |
8936 | cd conftest | |
8937 | mkdir out | |
8938 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8939 | ||
8940 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8941 | # Insert the option either (1) after the last *FLAGS variable, or | |
8942 | # (2) before a word containing "conftest.", or (3) at the end. | |
8943 | # Note that $ac_compile itself does not contain backslashes and begins | |
8944 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8945 | lt_compile=`echo "$ac_compile" | $SED \ | |
8946 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8947 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8948 | -e 's:$: $lt_compiler_flag:'` | |
8949 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8950 | (eval "$lt_compile" 2>out/conftest.err) | |
8951 | ac_status=$? | |
8952 | cat out/conftest.err >&5 | |
8953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8954 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8955 | then | |
8956 | # The compiler can only warn and ignore the option if not recognized | |
8957 | # So say no if there are warnings | |
8958 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8959 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8960 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8961 | lt_cv_prog_compiler_c_o=yes | |
8962 | fi | |
8963 | fi | |
8964 | chmod u+w . 2>&5 | |
8965 | $RM conftest* | |
8966 | # SGI C++ compiler will create directory out/ii_files/ for | |
8967 | # template instantiation | |
8968 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8969 | $RM out/* && rmdir out | |
8970 | cd .. | |
8971 | $RM -r conftest | |
8972 | $RM conftest* | |
8973 | ||
8974 | fi | |
8975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8976 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8977 | ||
8978 | ||
8979 | ||
8980 | ||
8981 | hard_links=nottested | |
8982 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
8983 | # do not overwrite the value of need_locks provided by the user | |
8984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8985 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8986 | hard_links=yes | |
8987 | $RM conftest* | |
8988 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8989 | touch conftest.a | |
8990 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8991 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
8993 | $as_echo "$hard_links" >&6; } | |
8994 | if test no = "$hard_links"; then | |
8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
8996 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
8997 | need_locks=warn | |
8998 | fi | |
8999 | else | |
9000 | need_locks=no | |
9001 | fi | |
9002 | ||
9003 | ||
9004 | ||
9005 | ||
9006 | ||
9007 | ||
9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9009 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9010 | ||
9011 | runpath_var= | |
9012 | allow_undefined_flag= | |
9013 | always_export_symbols=no | |
9014 | archive_cmds= | |
9015 | archive_expsym_cmds= | |
9016 | compiler_needs_object=no | |
9017 | enable_shared_with_static_runtimes=no | |
9018 | export_dynamic_flag_spec= | |
9019 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9020 | hardcode_automatic=no | |
9021 | hardcode_direct=no | |
9022 | hardcode_direct_absolute=no | |
9023 | hardcode_libdir_flag_spec= | |
9024 | hardcode_libdir_separator= | |
9025 | hardcode_minus_L=no | |
9026 | hardcode_shlibpath_var=unsupported | |
9027 | inherit_rpath=no | |
9028 | link_all_deplibs=unknown | |
9029 | module_cmds= | |
9030 | module_expsym_cmds= | |
9031 | old_archive_from_new_cmds= | |
9032 | old_archive_from_expsyms_cmds= | |
9033 | thread_safe_flag_spec= | |
9034 | whole_archive_flag_spec= | |
9035 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9036 | # included in the symbol list | |
9037 | include_expsyms= | |
9038 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9039 | # it will be wrapped by ' (' and ')$', so one must not match beginning or | |
9040 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
9041 | # as well as any symbol that contains 'd'. | |
9042 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9043 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9044 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9045 | # the symbol is explicitly referenced. Since portable code cannot | |
9046 | # rely on this symbol name, it's probably fine to never include it in | |
9047 | # preloaded symbol tables. | |
9048 | # Exclude shared library initialization/finalization symbols. | |
9049 | extract_expsyms_cmds= | |
9050 | ||
9051 | case $host_os in | |
9052 | cygwin* | mingw* | pw32* | cegcc*) | |
9053 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9054 | # When not using gcc, we currently assume that we are using | |
9055 | # Microsoft Visual C++. | |
9056 | if test yes != "$GCC"; then | |
9057 | with_gnu_ld=no | |
9058 | fi | |
9059 | ;; | |
9060 | interix*) | |
9061 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9062 | with_gnu_ld=yes | |
9063 | ;; | |
9064 | openbsd* | bitrig*) | |
9065 | with_gnu_ld=no | |
9066 | ;; | |
9067 | linux* | k*bsd*-gnu | gnu*) | |
9068 | link_all_deplibs=no | |
9069 | ;; | |
9070 | esac | |
9071 | ||
9072 | ld_shlibs=yes | |
9073 | ||
9074 | # On some targets, GNU ld is compatible enough with the native linker | |
9075 | # that we're better off using the native interface for both. | |
9076 | lt_use_gnu_ld_interface=no | |
9077 | if test yes = "$with_gnu_ld"; then | |
9078 | case $host_os in | |
9079 | aix*) | |
9080 | # The AIX port of GNU ld has always aspired to compatibility | |
9081 | # with the native linker. However, as the warning in the GNU ld | |
9082 | # block says, versions before 2.19.5* couldn't really create working | |
9083 | # shared libraries, regardless of the interface used. | |
9084 | case `$LD -v 2>&1` in | |
9085 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9086 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9087 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9088 | *) | |
9089 | lt_use_gnu_ld_interface=yes | |
9090 | ;; | |
9091 | esac | |
9092 | ;; | |
9093 | *) | |
9094 | lt_use_gnu_ld_interface=yes | |
9095 | ;; | |
9096 | esac | |
9097 | fi | |
9098 | ||
9099 | if test yes = "$lt_use_gnu_ld_interface"; then | |
9100 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9101 | wlarc='$wl' | |
9102 | ||
9103 | # Set some defaults for GNU ld with shared library support. These | |
9104 | # are reset later if shared libraries are not supported. Putting them | |
9105 | # here allows them to be overridden if necessary. | |
9106 | runpath_var=LD_RUN_PATH | |
9107 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9108 | export_dynamic_flag_spec='$wl--export-dynamic' | |
9109 | # ancient GNU ld didn't support --whole-archive et. al. | |
9110 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9111 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
9112 | else | |
9113 | whole_archive_flag_spec= | |
9114 | fi | |
9115 | supports_anon_versioning=no | |
9116 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in | |
9117 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9118 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9119 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9120 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9121 | *\ 2.11.*) ;; # other 2.11 versions | |
9122 | *) supports_anon_versioning=yes ;; | |
9123 | esac | |
9124 | ||
9125 | # See if GNU ld supports shared libraries. | |
9126 | case $host_os in | |
9127 | aix[3-9]*) | |
9128 | # On AIX/PPC, the GNU linker is very broken | |
9129 | if test ia64 != "$host_cpu"; then | |
9130 | ld_shlibs=no | |
9131 | cat <<_LT_EOF 1>&2 | |
9132 | ||
9133 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9134 | *** to be unable to reliably create shared libraries on AIX. | |
9135 | *** Therefore, libtool is disabling shared libraries support. If you | |
9136 | *** really care for shared libraries, you may want to install binutils | |
9137 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9138 | *** You will then need to restart the configuration process. | |
9139 | ||
9140 | _LT_EOF | |
9141 | fi | |
9142 | ;; | |
9143 | ||
9144 | amigaos*) | |
9145 | case $host_cpu in | |
9146 | powerpc) | |
9147 | # see comment about AmigaOS4 .so support | |
9148 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9149 | archive_expsym_cmds='' | |
9150 | ;; | |
9151 | m68k) | |
9152 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
9153 | hardcode_libdir_flag_spec='-L$libdir' | |
9154 | hardcode_minus_L=yes | |
9155 | ;; | |
9156 | esac | |
9157 | ;; | |
9158 | ||
9159 | beos*) | |
9160 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9161 | allow_undefined_flag=unsupported | |
9162 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9163 | # support --undefined. This deserves some investigation. FIXME | |
9164 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9165 | else | |
9166 | ld_shlibs=no | |
9167 | fi | |
9168 | ;; | |
9169 | ||
9170 | cygwin* | mingw* | pw32* | cegcc*) | |
9171 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9172 | # as there is no search path for DLLs. | |
9173 | hardcode_libdir_flag_spec='-L$libdir' | |
9174 | export_dynamic_flag_spec='$wl--export-all-symbols' | |
9175 | allow_undefined_flag=unsupported | |
9176 | always_export_symbols=no | |
9177 | enable_shared_with_static_runtimes=yes | |
9178 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
9179 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9180 | ||
9181 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9182 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9183 | # If the export-symbols file already is a .def file, use it as | |
9184 | # is; otherwise, prepend EXPORTS... | |
9185 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9186 | cp $export_symbols $output_objdir/$soname.def; | |
9187 | else | |
9188 | echo EXPORTS > $output_objdir/$soname.def; | |
9189 | cat $export_symbols >> $output_objdir/$soname.def; | |
9190 | fi~ | |
9191 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9192 | else | |
9193 | ld_shlibs=no | |
9194 | fi | |
9195 | ;; | |
9196 | ||
9197 | haiku*) | |
9198 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9199 | link_all_deplibs=yes | |
9200 | ;; | |
9201 | ||
9202 | os2*) | |
9203 | hardcode_libdir_flag_spec='-L$libdir' | |
9204 | hardcode_minus_L=yes | |
9205 | allow_undefined_flag=unsupported | |
9206 | shrext_cmds=.dll | |
9207 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9208 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9209 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9210 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9211 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9212 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9213 | emximp -o $lib $output_objdir/$libname.def' | |
9214 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9215 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9216 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9217 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9218 | prefix_cmds="$SED"~ | |
9219 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9220 | prefix_cmds="$prefix_cmds -e 1d"; | |
9221 | fi~ | |
9222 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9223 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9224 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9225 | emximp -o $lib $output_objdir/$libname.def' | |
9226 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9227 | enable_shared_with_static_runtimes=yes | |
9228 | ;; | |
9229 | ||
9230 | interix[3-9]*) | |
9231 | hardcode_direct=no | |
9232 | hardcode_shlibpath_var=no | |
9233 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
9234 | export_dynamic_flag_spec='$wl-E' | |
9235 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9236 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9237 | # default) and relocated if they conflict, which is a slow very memory | |
9238 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9239 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9240 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9241 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9242 | archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9243 | ;; | |
9244 | ||
9245 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9246 | tmp_diet=no | |
9247 | if test linux-dietlibc = "$host_os"; then | |
9248 | case $cc_basename in | |
9249 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9250 | esac | |
9251 | fi | |
9252 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9253 | && test no = "$tmp_diet" | |
9254 | then | |
9255 | tmp_addflag=' $pic_flag' | |
9256 | tmp_sharedflag='-shared' | |
9257 | case $cc_basename,$host_cpu in | |
9258 | pgcc*) # Portland Group C compiler | |
9259 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
9260 | tmp_addflag=' $pic_flag' | |
9261 | ;; | |
9262 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9263 | # Portland Group f77 and f90 compilers | |
9264 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
9265 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9266 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9267 | tmp_addflag=' -i_dynamic' ;; | |
9268 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9269 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9270 | ifc* | ifort*) # Intel Fortran compiler | |
9271 | tmp_addflag=' -nofor_main' ;; | |
9272 | lf95*) # Lahey Fortran 8.1 | |
9273 | whole_archive_flag_spec= | |
9274 | tmp_sharedflag='--shared' ;; | |
9275 | nagfor*) # NAGFOR 5.3 | |
9276 | tmp_sharedflag='-Wl,-shared' ;; | |
9277 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9278 | tmp_sharedflag='-qmkshrobj' | |
9279 | tmp_addflag= ;; | |
9280 | nvcc*) # Cuda Compiler Driver 2.2 | |
9281 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
9282 | compiler_needs_object=yes | |
9283 | ;; | |
9284 | esac | |
9285 | case `$CC -V 2>&1 | sed 5q` in | |
9286 | *Sun\ C*) # Sun C 5.9 | |
9287 | whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' | |
9288 | compiler_needs_object=yes | |
9289 | tmp_sharedflag='-G' ;; | |
9290 | *Sun\ F*) # Sun Fortran 8.3 | |
9291 | tmp_sharedflag='-G' ;; | |
9292 | esac | |
9293 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9294 | ||
9295 | if test yes = "$supports_anon_versioning"; then | |
9296 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9297 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9298 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9299 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
9300 | fi | |
9301 | ||
9302 | case $cc_basename in | |
9303 | tcc*) | |
9304 | export_dynamic_flag_spec='-rdynamic' | |
9305 | ;; | |
9306 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9307 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9308 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9309 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9310 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9311 | if test yes = "$supports_anon_versioning"; then | |
9312 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9313 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9314 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9315 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9316 | fi | |
9317 | ;; | |
9318 | esac | |
9319 | else | |
9320 | ld_shlibs=no | |
9321 | fi | |
9322 | ;; | |
9323 | ||
9324 | netbsd* | netbsdelf*-gnu) | |
9325 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9326 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9327 | wlarc= | |
9328 | else | |
9329 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9330 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9331 | fi | |
9332 | ;; | |
9333 | ||
9334 | solaris*) | |
9335 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9336 | ld_shlibs=no | |
9337 | cat <<_LT_EOF 1>&2 | |
9338 | ||
9339 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9340 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9341 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9342 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9343 | *** your PATH or compiler configuration so that the native linker is | |
9344 | *** used, and then restart. | |
9345 | ||
9346 | _LT_EOF | |
9347 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9348 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9349 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9350 | else | |
9351 | ld_shlibs=no | |
9352 | fi | |
9353 | ;; | |
9354 | ||
9355 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9356 | case `$LD -v 2>&1` in | |
9357 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9358 | ld_shlibs=no | |
9359 | cat <<_LT_EOF 1>&2 | |
9360 | ||
9361 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot | |
9362 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9363 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9364 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9365 | *** your PATH or compiler configuration so that the native linker is | |
9366 | *** used, and then restart. | |
9367 | ||
9368 | _LT_EOF | |
9369 | ;; | |
9370 | *) | |
9371 | # For security reasons, it is highly recommended that you always | |
9372 | # use absolute paths for naming shared libraries, and exclude the | |
9373 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9374 | # requires that you compile everything twice, which is a pain. | |
9375 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9376 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
9377 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9378 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9379 | else | |
9380 | ld_shlibs=no | |
9381 | fi | |
9382 | ;; | |
9383 | esac | |
9384 | ;; | |
9385 | ||
9386 | sunos4*) | |
9387 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9388 | wlarc= | |
9389 | hardcode_direct=yes | |
9390 | hardcode_shlibpath_var=no | |
9391 | ;; | |
9392 | ||
9393 | *) | |
9394 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9395 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9396 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
9397 | else | |
9398 | ld_shlibs=no | |
9399 | fi | |
9400 | ;; | |
9401 | esac | |
9402 | ||
9403 | if test no = "$ld_shlibs"; then | |
9404 | runpath_var= | |
9405 | hardcode_libdir_flag_spec= | |
9406 | export_dynamic_flag_spec= | |
9407 | whole_archive_flag_spec= | |
9408 | fi | |
9409 | else | |
9410 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9411 | case $host_os in | |
9412 | aix3*) | |
9413 | allow_undefined_flag=unsupported | |
9414 | always_export_symbols=yes | |
9415 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
9416 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9417 | # are no directories specified by -L. | |
9418 | hardcode_minus_L=yes | |
9419 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then | |
9420 | # Neither direct hardcoding nor static linking is supported with a | |
9421 | # broken collect2. | |
9422 | hardcode_direct=unsupported | |
9423 | fi | |
9424 | ;; | |
9425 | ||
9426 | aix[4-9]*) | |
9427 | if test ia64 = "$host_cpu"; then | |
9428 | # On IA64, the linker does run time linking by default, so we don't | |
9429 | # have to do anything special. | |
9430 | aix_use_runtimelinking=no | |
9431 | exp_sym_flag='-Bexport' | |
9432 | no_entry_flag= | |
9433 | else | |
9434 | # If we're using GNU nm, then we don't want the "-C" option. | |
9435 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
9436 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9437 | # weak defined symbols like other global defined symbols, whereas | |
9438 | # GNU nm marks them as "W". | |
9439 | # While the 'weak' keyword is ignored in the Export File, we need | |
9440 | # it in the Import File for the 'aix-soname' feature, so we have | |
9441 | # to replace the "-B" option with "-P" for AIX nm. | |
9442 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9443 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' | |
9444 | else | |
9445 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' | |
9446 | fi | |
9447 | aix_use_runtimelinking=no | |
9448 | ||
9449 | # Test if we are trying to use run time linking or normal | |
9450 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9451 | # have runtime linking enabled, and use it for executables. | |
9452 | # For shared libraries, we enable/disable runtime linking | |
9453 | # depending on the kind of the shared library created - | |
9454 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9455 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9456 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9457 | # lib.a static archive | |
9458 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9459 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9460 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9461 | # lib.a(lib.so.V) shared, rtl:no | |
9462 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9463 | # lib.a static archive | |
9464 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9465 | for ld_flag in $LDFLAGS; do | |
9466 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then | |
9467 | aix_use_runtimelinking=yes | |
9468 | break | |
9469 | fi | |
9470 | done | |
9471 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
9472 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9473 | # so we don't have lib.a shared libs to link our executables. | |
9474 | # We have to force runtime linking in this case. | |
9475 | aix_use_runtimelinking=yes | |
9476 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9477 | fi | |
9478 | ;; | |
9479 | esac | |
9480 | ||
9481 | exp_sym_flag='-bexport' | |
9482 | no_entry_flag='-bnoentry' | |
9483 | fi | |
9484 | ||
9485 | # When large executables or shared objects are built, AIX ld can | |
9486 | # have problems creating the table of contents. If linking a library | |
9487 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9488 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9489 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9490 | ||
9491 | archive_cmds='' | |
9492 | hardcode_direct=yes | |
9493 | hardcode_direct_absolute=yes | |
9494 | hardcode_libdir_separator=':' | |
9495 | link_all_deplibs=yes | |
9496 | file_list_spec='$wl-f,' | |
9497 | case $with_aix_soname,$aix_use_runtimelinking in | |
9498 | aix,*) ;; # traditional, no import file | |
9499 | svr4,* | *,yes) # use import file | |
9500 | # The Import File defines what to hardcode. | |
9501 | hardcode_direct=no | |
9502 | hardcode_direct_absolute=no | |
9503 | ;; | |
9504 | esac | |
9505 | ||
9506 | if test yes = "$GCC"; then | |
9507 | case $host_os in aix4.[012]|aix4.[012].*) | |
9508 | # We only want to do this on AIX 4.2 and lower, the check | |
9509 | # below for broken collect2 doesn't work under 4.3+ | |
9510 | collect2name=`$CC -print-prog-name=collect2` | |
9511 | if test -f "$collect2name" && | |
9512 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9513 | then | |
9514 | # We have reworked collect2 | |
9515 | : | |
9516 | else | |
9517 | # We have old collect2 | |
9518 | hardcode_direct=unsupported | |
9519 | # It fails to find uninstalled libraries when the uninstalled | |
9520 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9521 | # to unsupported forces relinking | |
9522 | hardcode_minus_L=yes | |
9523 | hardcode_libdir_flag_spec='-L$libdir' | |
9524 | hardcode_libdir_separator= | |
9525 | fi | |
9526 | ;; | |
9527 | esac | |
9528 | shared_flag='-shared' | |
9529 | if test yes = "$aix_use_runtimelinking"; then | |
9530 | shared_flag="$shared_flag "'$wl-G' | |
9531 | fi | |
9532 | # Need to ensure runtime linking is disabled for the traditional | |
9533 | # shared library, or the linker may eventually find shared libraries | |
9534 | # /with/ Import File - we do not want to mix them. | |
9535 | shared_flag_aix='-shared' | |
9536 | shared_flag_svr4='-shared $wl-G' | |
9537 | else | |
9538 | # not using gcc | |
9539 | if test ia64 = "$host_cpu"; then | |
9540 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9541 | # chokes on -Wl,-G. The following line is correct: | |
9542 | shared_flag='-G' | |
9543 | else | |
9544 | if test yes = "$aix_use_runtimelinking"; then | |
9545 | shared_flag='$wl-G' | |
9546 | else | |
9547 | shared_flag='$wl-bM:SRE' | |
9548 | fi | |
9549 | shared_flag_aix='$wl-bM:SRE' | |
9550 | shared_flag_svr4='$wl-G' | |
9551 | fi | |
9552 | fi | |
9553 | ||
9554 | export_dynamic_flag_spec='$wl-bexpall' | |
9555 | # It seems that -bexpall does not export symbols beginning with | |
9556 | # underscore (_), so it is better to generate a list of symbols to export. | |
9557 | always_export_symbols=yes | |
9558 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
9559 | # Warning - without using the other runtime loading flags (-brtl), | |
9560 | # -berok will link without error, but may produce a broken library. | |
9561 | allow_undefined_flag='-berok' | |
9562 | # Determine the default libpath from the value encoded in an | |
9563 | # empty executable. | |
9564 | if test set = "${lt_cv_aix_libpath+set}"; then | |
9565 | aix_libpath=$lt_cv_aix_libpath | |
9566 | else | |
9567 | if ${lt_cv_aix_libpath_+:} false; then : | |
9568 | $as_echo_n "(cached) " >&6 | |
9569 | else | |
9570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9571 | /* end confdefs.h. */ | |
9572 | ||
9573 | int | |
9574 | main () | |
9575 | { | |
9576 | ||
9577 | ; | |
9578 | return 0; | |
9579 | } | |
9580 | _ACEOF | |
9581 | if ac_fn_c_try_link "$LINENO"; then : | |
9582 | ||
9583 | lt_aix_libpath_sed=' | |
9584 | /Import File Strings/,/^$/ { | |
9585 | /^0/ { | |
9586 | s/^0 *\([^ ]*\) *$/\1/ | |
9587 | p | |
9588 | } | |
9589 | }' | |
9590 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9591 | # Check for a 64-bit object if we didn't find anything. | |
9592 | if test -z "$lt_cv_aix_libpath_"; then | |
9593 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9594 | fi | |
9595 | fi | |
9596 | rm -f core conftest.err conftest.$ac_objext \ | |
9597 | conftest$ac_exeext conftest.$ac_ext | |
9598 | if test -z "$lt_cv_aix_libpath_"; then | |
9599 | lt_cv_aix_libpath_=/usr/lib:/lib | |
9600 | fi | |
9601 | ||
9602 | fi | |
9603 | ||
9604 | aix_libpath=$lt_cv_aix_libpath_ | |
9605 | fi | |
9606 | ||
9607 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
9608 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
9609 | else | |
9610 | if test ia64 = "$host_cpu"; then | |
9611 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
9612 | allow_undefined_flag="-z nodefs" | |
9613 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" | |
9614 | else | |
9615 | # Determine the default libpath from the value encoded in an | |
9616 | # empty executable. | |
9617 | if test set = "${lt_cv_aix_libpath+set}"; then | |
9618 | aix_libpath=$lt_cv_aix_libpath | |
9619 | else | |
9620 | if ${lt_cv_aix_libpath_+:} false; then : | |
9621 | $as_echo_n "(cached) " >&6 | |
9622 | else | |
9623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9624 | /* end confdefs.h. */ | |
9625 | ||
9626 | int | |
9627 | main () | |
9628 | { | |
9629 | ||
9630 | ; | |
9631 | return 0; | |
9632 | } | |
9633 | _ACEOF | |
9634 | if ac_fn_c_try_link "$LINENO"; then : | |
9635 | ||
9636 | lt_aix_libpath_sed=' | |
9637 | /Import File Strings/,/^$/ { | |
9638 | /^0/ { | |
9639 | s/^0 *\([^ ]*\) *$/\1/ | |
9640 | p | |
9641 | } | |
9642 | }' | |
9643 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9644 | # Check for a 64-bit object if we didn't find anything. | |
9645 | if test -z "$lt_cv_aix_libpath_"; then | |
9646 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9647 | fi | |
9648 | fi | |
9649 | rm -f core conftest.err conftest.$ac_objext \ | |
9650 | conftest$ac_exeext conftest.$ac_ext | |
9651 | if test -z "$lt_cv_aix_libpath_"; then | |
9652 | lt_cv_aix_libpath_=/usr/lib:/lib | |
9653 | fi | |
9654 | ||
9655 | fi | |
9656 | ||
9657 | aix_libpath=$lt_cv_aix_libpath_ | |
9658 | fi | |
9659 | ||
9660 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
9661 | # Warning - without using the other run time loading flags, | |
9662 | # -berok will link without error, but may produce a broken library. | |
9663 | no_undefined_flag=' $wl-bernotok' | |
9664 | allow_undefined_flag=' $wl-berok' | |
9665 | if test yes = "$with_gnu_ld"; then | |
9666 | # We only use this code for GNU lds that support --whole-archive. | |
9667 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' | |
9668 | else | |
9669 | # Exported symbols can be pulled into shared objects from archives | |
9670 | whole_archive_flag_spec='$convenience' | |
9671 | fi | |
9672 | archive_cmds_need_lc=yes | |
9673 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
9674 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9675 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9676 | if test svr4 != "$with_aix_soname"; then | |
9677 | # This is similar to how AIX traditionally builds its shared libraries. | |
9678 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
9679 | fi | |
9680 | if test aix != "$with_aix_soname"; then | |
9681 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
9682 | else | |
9683 | # used by -dlpreopen to get the symbols | |
9684 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9685 | fi | |
9686 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
9687 | fi | |
9688 | fi | |
9689 | ;; | |
9690 | ||
9691 | amigaos*) | |
9692 | case $host_cpu in | |
9693 | powerpc) | |
9694 | # see comment about AmigaOS4 .so support | |
9695 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9696 | archive_expsym_cmds='' | |
9697 | ;; | |
9698 | m68k) | |
9699 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
9700 | hardcode_libdir_flag_spec='-L$libdir' | |
9701 | hardcode_minus_L=yes | |
9702 | ;; | |
9703 | esac | |
9704 | ;; | |
9705 | ||
9706 | bsdi[45]*) | |
9707 | export_dynamic_flag_spec=-rdynamic | |
9708 | ;; | |
9709 | ||
9710 | cygwin* | mingw* | pw32* | cegcc*) | |
9711 | # When not using gcc, we currently assume that we are using | |
9712 | # Microsoft Visual C++. | |
9713 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9714 | # no search path for DLLs. | |
9715 | case $cc_basename in | |
9716 | cl*) | |
9717 | # Native MSVC | |
9718 | hardcode_libdir_flag_spec=' ' | |
9719 | allow_undefined_flag=unsupported | |
9720 | always_export_symbols=yes | |
9721 | file_list_spec='@' | |
9722 | # Tell ltmain to make .lib files, not .a files. | |
9723 | libext=lib | |
9724 | # Tell ltmain to make .dll files, not .so files. | |
9725 | shrext_cmds=.dll | |
9726 | # FIXME: Setting linknames here is a bad hack. | |
9727 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
9728 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9729 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9730 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9731 | else | |
9732 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9733 | fi~ | |
9734 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9735 | linknames=' | |
9736 | # The linker will not automatically build a static lib if we build a DLL. | |
9737 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9738 | enable_shared_with_static_runtimes=yes | |
9739 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9740 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9741 | # Don't use ranlib | |
9742 | old_postinstall_cmds='chmod 644 $oldlib' | |
9743 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9744 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9745 | case $lt_outputfile in | |
9746 | *.exe|*.EXE) ;; | |
9747 | *) | |
9748 | lt_outputfile=$lt_outputfile.exe | |
9749 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9750 | ;; | |
9751 | esac~ | |
9752 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9753 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9754 | $RM "$lt_outputfile.manifest"; | |
9755 | fi' | |
9756 | ;; | |
9757 | *) | |
9758 | # Assume MSVC wrapper | |
9759 | hardcode_libdir_flag_spec=' ' | |
9760 | allow_undefined_flag=unsupported | |
9761 | # Tell ltmain to make .lib files, not .a files. | |
9762 | libext=lib | |
9763 | # Tell ltmain to make .dll files, not .so files. | |
9764 | shrext_cmds=.dll | |
9765 | # FIXME: Setting linknames here is a bad hack. | |
9766 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9767 | # The linker will automatically build a .lib file if we build a DLL. | |
9768 | old_archive_from_new_cmds='true' | |
9769 | # FIXME: Should let the user specify the lib program. | |
9770 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9771 | enable_shared_with_static_runtimes=yes | |
9772 | ;; | |
9773 | esac | |
9774 | ;; | |
9775 | ||
9776 | darwin* | rhapsody*) | |
9777 | ||
9778 | ||
9779 | archive_cmds_need_lc=no | |
9780 | hardcode_direct=no | |
9781 | hardcode_automatic=yes | |
9782 | hardcode_shlibpath_var=unsupported | |
9783 | if test yes = "$lt_cv_ld_force_load"; then | |
9784 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
9785 | ||
9786 | else | |
9787 | whole_archive_flag_spec='' | |
9788 | fi | |
9789 | link_all_deplibs=yes | |
9790 | allow_undefined_flag=$_lt_dar_allow_undefined | |
9791 | case $cc_basename in | |
9792 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
9793 | *) _lt_dar_can_shared=$GCC ;; | |
9794 | esac | |
9795 | if test yes = "$_lt_dar_can_shared"; then | |
9796 | output_verbose_link_cmd=func_echo_all | |
9797 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" | |
9798 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9799 | archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" | |
9800 | module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" | |
9801 | ||
9802 | else | |
9803 | ld_shlibs=no | |
9804 | fi | |
9805 | ||
9806 | ;; | |
9807 | ||
9808 | dgux*) | |
9809 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9810 | hardcode_libdir_flag_spec='-L$libdir' | |
9811 | hardcode_shlibpath_var=no | |
9812 | ;; | |
9813 | ||
9814 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9815 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9816 | # does not break anything, and helps significantly (at the cost of a little | |
9817 | # extra space). | |
9818 | freebsd2.2*) | |
9819 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9820 | hardcode_libdir_flag_spec='-R$libdir' | |
9821 | hardcode_direct=yes | |
9822 | hardcode_shlibpath_var=no | |
9823 | ;; | |
9824 | ||
9825 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9826 | freebsd2.*) | |
9827 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9828 | hardcode_direct=yes | |
9829 | hardcode_minus_L=yes | |
9830 | hardcode_shlibpath_var=no | |
9831 | ;; | |
9832 | ||
9833 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9834 | freebsd* | dragonfly*) | |
9835 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9836 | hardcode_libdir_flag_spec='-R$libdir' | |
9837 | hardcode_direct=yes | |
9838 | hardcode_shlibpath_var=no | |
9839 | ;; | |
9840 | ||
9841 | hpux9*) | |
9842 | if test yes = "$GCC"; then | |
9843 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
9844 | else | |
9845 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
9846 | fi | |
9847 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
9848 | hardcode_libdir_separator=: | |
9849 | hardcode_direct=yes | |
9850 | ||
9851 | # hardcode_minus_L: Not really in the search PATH, | |
9852 | # but as the default location of the library. | |
9853 | hardcode_minus_L=yes | |
9854 | export_dynamic_flag_spec='$wl-E' | |
9855 | ;; | |
9856 | ||
9857 | hpux10*) | |
9858 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
9859 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9860 | else | |
9861 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9862 | fi | |
9863 | if test no = "$with_gnu_ld"; then | |
9864 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
9865 | hardcode_libdir_separator=: | |
9866 | hardcode_direct=yes | |
9867 | hardcode_direct_absolute=yes | |
9868 | export_dynamic_flag_spec='$wl-E' | |
9869 | # hardcode_minus_L: Not really in the search PATH, | |
9870 | # but as the default location of the library. | |
9871 | hardcode_minus_L=yes | |
9872 | fi | |
9873 | ;; | |
9874 | ||
9875 | hpux11*) | |
9876 | if test yes,no = "$GCC,$with_gnu_ld"; then | |
9877 | case $host_cpu in | |
9878 | hppa*64*) | |
9879 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9880 | ;; | |
9881 | ia64*) | |
9882 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9883 | ;; | |
9884 | *) | |
9885 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9886 | ;; | |
9887 | esac | |
9888 | else | |
9889 | case $host_cpu in | |
9890 | hppa*64*) | |
9891 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9892 | ;; | |
9893 | ia64*) | |
9894 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9895 | ;; | |
9896 | *) | |
9897 | ||
9898 | # Older versions of the 11.00 compiler do not understand -b yet | |
9899 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9901 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9902 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9903 | $as_echo_n "(cached) " >&6 | |
9904 | else | |
9905 | lt_cv_prog_compiler__b=no | |
9906 | save_LDFLAGS=$LDFLAGS | |
9907 | LDFLAGS="$LDFLAGS -b" | |
9908 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9909 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9910 | # The linker can only warn and ignore the option if not recognized | |
9911 | # So say no if there are warnings | |
9912 | if test -s conftest.err; then | |
9913 | # Append any errors to the config.log. | |
9914 | cat conftest.err 1>&5 | |
9915 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9916 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9917 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9918 | lt_cv_prog_compiler__b=yes | |
9919 | fi | |
9920 | else | |
9921 | lt_cv_prog_compiler__b=yes | |
9922 | fi | |
9923 | fi | |
9924 | $RM -r conftest* | |
9925 | LDFLAGS=$save_LDFLAGS | |
9926 | ||
9927 | fi | |
9928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9929 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9930 | ||
9931 | if test yes = "$lt_cv_prog_compiler__b"; then | |
9932 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9933 | else | |
9934 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9935 | fi | |
9936 | ||
9937 | ;; | |
9938 | esac | |
9939 | fi | |
9940 | if test no = "$with_gnu_ld"; then | |
9941 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
9942 | hardcode_libdir_separator=: | |
9943 | ||
9944 | case $host_cpu in | |
9945 | hppa*64*|ia64*) | |
9946 | hardcode_direct=no | |
9947 | hardcode_shlibpath_var=no | |
9948 | ;; | |
9949 | *) | |
9950 | hardcode_direct=yes | |
9951 | hardcode_direct_absolute=yes | |
9952 | export_dynamic_flag_spec='$wl-E' | |
9953 | ||
9954 | # hardcode_minus_L: Not really in the search PATH, | |
9955 | # but as the default location of the library. | |
9956 | hardcode_minus_L=yes | |
9957 | ;; | |
9958 | esac | |
9959 | fi | |
9960 | ;; | |
9961 | ||
9962 | irix5* | irix6* | nonstopux*) | |
9963 | if test yes = "$GCC"; then | |
9964 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
9965 | # Try to use the -exported_symbol ld option, if it does not | |
9966 | # work, assume that -exports_file does not work either and | |
9967 | # implicitly export all symbols. | |
9968 | # This should be the same for all languages, so no per-tag cache variable. | |
9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9970 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9971 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9972 | $as_echo_n "(cached) " >&6 | |
9973 | else | |
9974 | save_LDFLAGS=$LDFLAGS | |
9975 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
9976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9977 | /* end confdefs.h. */ | |
9978 | int foo (void) { return 0; } | |
9979 | _ACEOF | |
9980 | if ac_fn_c_try_link "$LINENO"; then : | |
9981 | lt_cv_irix_exported_symbol=yes | |
9982 | else | |
9983 | lt_cv_irix_exported_symbol=no | |
9984 | fi | |
9985 | rm -f core conftest.err conftest.$ac_objext \ | |
9986 | conftest$ac_exeext conftest.$ac_ext | |
9987 | LDFLAGS=$save_LDFLAGS | |
9988 | fi | |
9989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9990 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9991 | if test yes = "$lt_cv_irix_exported_symbol"; then | |
9992 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' | |
9993 | fi | |
9994 | link_all_deplibs=no | |
9995 | else | |
9996 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
9997 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' | |
9998 | fi | |
9999 | archive_cmds_need_lc='no' | |
10000 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10001 | hardcode_libdir_separator=: | |
10002 | inherit_rpath=yes | |
10003 | link_all_deplibs=yes | |
10004 | ;; | |
10005 | ||
10006 | linux*) | |
10007 | case $cc_basename in | |
10008 | tcc*) | |
10009 | # Fabrice Bellard et al's Tiny C Compiler | |
10010 | ld_shlibs=yes | |
10011 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10012 | ;; | |
10013 | esac | |
10014 | ;; | |
10015 | ||
10016 | netbsd* | netbsdelf*-gnu) | |
10017 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10018 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10019 | else | |
10020 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10021 | fi | |
10022 | hardcode_libdir_flag_spec='-R$libdir' | |
10023 | hardcode_direct=yes | |
10024 | hardcode_shlibpath_var=no | |
10025 | ;; | |
10026 | ||
10027 | newsos6) | |
10028 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10029 | hardcode_direct=yes | |
10030 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10031 | hardcode_libdir_separator=: | |
10032 | hardcode_shlibpath_var=no | |
10033 | ;; | |
10034 | ||
10035 | *nto* | *qnx*) | |
10036 | ;; | |
10037 | ||
10038 | openbsd* | bitrig*) | |
10039 | if test -f /usr/libexec/ld.so; then | |
10040 | hardcode_direct=yes | |
10041 | hardcode_shlibpath_var=no | |
10042 | hardcode_direct_absolute=yes | |
10043 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
10044 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10045 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' | |
10046 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10047 | export_dynamic_flag_spec='$wl-E' | |
10048 | else | |
10049 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10050 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10051 | fi | |
10052 | else | |
10053 | ld_shlibs=no | |
10054 | fi | |
10055 | ;; | |
10056 | ||
10057 | os2*) | |
10058 | hardcode_libdir_flag_spec='-L$libdir' | |
10059 | hardcode_minus_L=yes | |
10060 | allow_undefined_flag=unsupported | |
10061 | shrext_cmds=.dll | |
10062 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10063 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10064 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10065 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10066 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10067 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10068 | emximp -o $lib $output_objdir/$libname.def' | |
10069 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10070 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10071 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10072 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10073 | prefix_cmds="$SED"~ | |
10074 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10075 | prefix_cmds="$prefix_cmds -e 1d"; | |
10076 | fi~ | |
10077 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10078 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10079 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10080 | emximp -o $lib $output_objdir/$libname.def' | |
10081 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10082 | enable_shared_with_static_runtimes=yes | |
10083 | ;; | |
10084 | ||
10085 | osf3*) | |
10086 | if test yes = "$GCC"; then | |
10087 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10088 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
10089 | else | |
10090 | allow_undefined_flag=' -expect_unresolved \*' | |
10091 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
10092 | fi | |
10093 | archive_cmds_need_lc='no' | |
10094 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10095 | hardcode_libdir_separator=: | |
10096 | ;; | |
10097 | ||
10098 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10099 | if test yes = "$GCC"; then | |
10100 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10101 | archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' | |
10102 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
10103 | else | |
10104 | allow_undefined_flag=' -expect_unresolved \*' | |
10105 | archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' | |
10106 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
10107 | $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' | |
10108 | ||
10109 | # Both c and cxx compiler support -rpath directly | |
10110 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10111 | fi | |
10112 | archive_cmds_need_lc='no' | |
10113 | hardcode_libdir_separator=: | |
10114 | ;; | |
10115 | ||
10116 | solaris*) | |
10117 | no_undefined_flag=' -z defs' | |
10118 | if test yes = "$GCC"; then | |
10119 | wlarc='$wl' | |
10120 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10121 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10122 | $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10123 | else | |
10124 | case `$CC -V 2>&1` in | |
10125 | *"Compilers 5.0"*) | |
10126 | wlarc='' | |
10127 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10128 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10129 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10130 | ;; | |
10131 | *) | |
10132 | wlarc='$wl' | |
10133 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10134 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10135 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10136 | ;; | |
10137 | esac | |
10138 | fi | |
10139 | hardcode_libdir_flag_spec='-R$libdir' | |
10140 | hardcode_shlibpath_var=no | |
10141 | case $host_os in | |
10142 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10143 | *) | |
10144 | # The compiler driver will combine and reorder linker options, | |
10145 | # but understands '-z linker_flag'. GCC discards it without '$wl', | |
10146 | # but is careful enough not to reorder. | |
10147 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10148 | if test yes = "$GCC"; then | |
10149 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
10150 | else | |
10151 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10152 | fi | |
10153 | ;; | |
10154 | esac | |
10155 | link_all_deplibs=yes | |
10156 | ;; | |
10157 | ||
10158 | sunos4*) | |
10159 | if test sequent = "$host_vendor"; then | |
10160 | # Use $CC to link under sequent, because it throws in some extra .o | |
10161 | # files that make .init and .fini sections work. | |
10162 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10163 | else | |
10164 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10165 | fi | |
10166 | hardcode_libdir_flag_spec='-L$libdir' | |
10167 | hardcode_direct=yes | |
10168 | hardcode_minus_L=yes | |
10169 | hardcode_shlibpath_var=no | |
10170 | ;; | |
10171 | ||
10172 | sysv4) | |
10173 | case $host_vendor in | |
10174 | sni) | |
10175 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10176 | hardcode_direct=yes # is this really true??? | |
10177 | ;; | |
10178 | siemens) | |
10179 | ## LD is ld it makes a PLAMLIB | |
10180 | ## CC just makes a GrossModule. | |
10181 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10182 | reload_cmds='$CC -r -o $output$reload_objs' | |
10183 | hardcode_direct=no | |
10184 | ;; | |
10185 | motorola) | |
10186 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10187 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10188 | ;; | |
10189 | esac | |
10190 | runpath_var='LD_RUN_PATH' | |
10191 | hardcode_shlibpath_var=no | |
10192 | ;; | |
10193 | ||
10194 | sysv4.3*) | |
10195 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10196 | hardcode_shlibpath_var=no | |
10197 | export_dynamic_flag_spec='-Bexport' | |
10198 | ;; | |
10199 | ||
10200 | sysv4*MP*) | |
10201 | if test -d /usr/nec; then | |
10202 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10203 | hardcode_shlibpath_var=no | |
10204 | runpath_var=LD_RUN_PATH | |
10205 | hardcode_runpath_var=yes | |
10206 | ld_shlibs=yes | |
10207 | fi | |
10208 | ;; | |
10209 | ||
10210 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10211 | no_undefined_flag='$wl-z,text' | |
10212 | archive_cmds_need_lc=no | |
10213 | hardcode_shlibpath_var=no | |
10214 | runpath_var='LD_RUN_PATH' | |
10215 | ||
10216 | if test yes = "$GCC"; then | |
10217 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10218 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10219 | else | |
10220 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10221 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10222 | fi | |
10223 | ;; | |
10224 | ||
10225 | sysv5* | sco3.2v5* | sco5v6*) | |
10226 | # Note: We CANNOT use -z defs as we might desire, because we do not | |
10227 | # link with -lc, and that would cause any symbols used from libc to | |
10228 | # always be unresolved, which means just about no library would | |
10229 | # ever link correctly. If we're not using GNU ld we use -z text | |
10230 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10231 | # as -z defs. | |
10232 | no_undefined_flag='$wl-z,text' | |
10233 | allow_undefined_flag='$wl-z,nodefs' | |
10234 | archive_cmds_need_lc=no | |
10235 | hardcode_shlibpath_var=no | |
10236 | hardcode_libdir_flag_spec='$wl-R,$libdir' | |
10237 | hardcode_libdir_separator=':' | |
10238 | link_all_deplibs=yes | |
10239 | export_dynamic_flag_spec='$wl-Bexport' | |
10240 | runpath_var='LD_RUN_PATH' | |
10241 | ||
10242 | if test yes = "$GCC"; then | |
10243 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10244 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10245 | else | |
10246 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10247 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10248 | fi | |
10249 | ;; | |
10250 | ||
10251 | uts4*) | |
10252 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10253 | hardcode_libdir_flag_spec='-L$libdir' | |
10254 | hardcode_shlibpath_var=no | |
10255 | ;; | |
10256 | ||
10257 | *) | |
10258 | ld_shlibs=no | |
10259 | ;; | |
10260 | esac | |
10261 | ||
10262 | if test sni = "$host_vendor"; then | |
10263 | case $host in | |
10264 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10265 | export_dynamic_flag_spec='$wl-Blargedynsym' | |
10266 | ;; | |
10267 | esac | |
10268 | fi | |
10269 | fi | |
10270 | ||
10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10272 | $as_echo "$ld_shlibs" >&6; } | |
10273 | test no = "$ld_shlibs" && can_build_shared=no | |
10274 | ||
10275 | with_gnu_ld=$with_gnu_ld | |
10276 | ||
10277 | ||
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | # | |
10292 | # Do we need to explicitly link libc? | |
10293 | # | |
10294 | case "x$archive_cmds_need_lc" in | |
10295 | x|xyes) | |
10296 | # Assume -lc should be added | |
10297 | archive_cmds_need_lc=yes | |
10298 | ||
10299 | if test yes,yes = "$GCC,$enable_shared"; then | |
10300 | case $archive_cmds in | |
10301 | *'~'*) | |
10302 | # FIXME: we may have to deal with multi-command sequences. | |
10303 | ;; | |
10304 | '$CC '*) | |
10305 | # Test whether the compiler implicitly links with -lc since on some | |
10306 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10307 | # to ld, don't add -lc before -lgcc. | |
10308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10309 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10310 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10311 | $as_echo_n "(cached) " >&6 | |
10312 | else | |
10313 | $RM conftest* | |
10314 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10315 | ||
10316 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10317 | (eval $ac_compile) 2>&5 | |
10318 | ac_status=$? | |
10319 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10320 | test $ac_status = 0; } 2>conftest.err; then | |
10321 | soname=conftest | |
10322 | lib=conftest | |
10323 | libobjs=conftest.$ac_objext | |
10324 | deplibs= | |
10325 | wl=$lt_prog_compiler_wl | |
10326 | pic_flag=$lt_prog_compiler_pic | |
10327 | compiler_flags=-v | |
10328 | linker_flags=-v | |
10329 | verstring= | |
10330 | output_objdir=. | |
10331 | libname=conftest | |
10332 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10333 | allow_undefined_flag= | |
10334 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10335 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10336 | ac_status=$? | |
10337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10338 | test $ac_status = 0; } | |
10339 | then | |
10340 | lt_cv_archive_cmds_need_lc=no | |
10341 | else | |
10342 | lt_cv_archive_cmds_need_lc=yes | |
10343 | fi | |
10344 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10345 | else | |
10346 | cat conftest.err 1>&5 | |
10347 | fi | |
10348 | $RM conftest* | |
10349 | ||
10350 | fi | |
10351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10352 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10353 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10354 | ;; | |
10355 | esac | |
10356 | fi | |
10357 | ;; | |
10358 | esac | |
10359 | ||
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | ||
10393 | ||
10394 | ||
10395 | ||
10396 | ||
10397 | ||
10398 | ||
10399 | ||
10400 | ||
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | ||
10413 | ||
10414 | ||
10415 | ||
10416 | ||
10417 | ||
10418 | ||
10419 | ||
10420 | ||
10421 | ||
10422 | ||
10423 | ||
10424 | ||
10425 | ||
10426 | ||
10427 | ||
10428 | ||
10429 | ||
10430 | ||
10431 | ||
10432 | ||
10433 | ||
10434 | ||
10435 | ||
10436 | ||
10437 | ||
10438 | ||
10439 | ||
10440 | ||
10441 | ||
10442 | ||
10443 | ||
10444 | ||
10445 | ||
10446 | ||
10447 | ||
10448 | ||
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | ||
10472 | ||
10473 | ||
10474 | ||
10475 | ||
10476 | ||
10477 | ||
10478 | ||
10479 | ||
10480 | ||
10481 | ||
10482 | ||
10483 | ||
10484 | ||
10485 | ||
10486 | ||
10487 | ||
10488 | ||
10489 | ||
10490 | ||
10491 | ||
10492 | ||
10493 | ||
10494 | ||
10495 | ||
10496 | ||
10497 | ||
10498 | ||
10499 | ||
10500 | ||
10501 | ||
10502 | ||
10503 | ||
10504 | ||
10505 | ||
10506 | ||
10507 | ||
10508 | ||
10509 | ||
10510 | ||
10511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10512 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10513 | ||
10514 | if test yes = "$GCC"; then | |
10515 | case $host_os in | |
10516 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; | |
10517 | *) lt_awk_arg='/^libraries:/' ;; | |
10518 | esac | |
10519 | case $host_os in | |
10520 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; | |
10521 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
10522 | esac | |
10523 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10524 | case $lt_search_path_spec in | |
10525 | *\;*) | |
10526 | # if the path contains ";" then we assume it to be the separator | |
10527 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10528 | # assumed that no part of a normal pathname contains ";" but that should | |
10529 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10530 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10531 | ;; | |
10532 | *) | |
10533 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10534 | ;; | |
10535 | esac | |
10536 | # Ok, now we have the path, separated by spaces, we can step through it | |
10537 | # and add multilib dir if necessary... | |
10538 | lt_tmp_lt_search_path_spec= | |
10539 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10540 | # ...but if some path component already ends with the multilib dir we assume | |
10541 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10542 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10543 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10544 | lt_multi_os_dir= | |
10545 | ;; | |
10546 | esac | |
10547 | for lt_sys_path in $lt_search_path_spec; do | |
10548 | if test -d "$lt_sys_path$lt_multi_os_dir"; then | |
10549 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10550 | elif test -n "$lt_multi_os_dir"; then | |
10551 | test -d "$lt_sys_path" && \ | |
10552 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10553 | fi | |
10554 | done | |
10555 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10556 | BEGIN {RS = " "; FS = "/|\n";} { | |
10557 | lt_foo = ""; | |
10558 | lt_count = 0; | |
10559 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10560 | if ($lt_i != "" && $lt_i != ".") { | |
10561 | if ($lt_i == "..") { | |
10562 | lt_count++; | |
10563 | } else { | |
10564 | if (lt_count == 0) { | |
10565 | lt_foo = "/" $lt_i lt_foo; | |
10566 | } else { | |
10567 | lt_count--; | |
10568 | } | |
10569 | } | |
10570 | } | |
10571 | } | |
10572 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10573 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10574 | }'` | |
10575 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10576 | # for these hosts. | |
10577 | case $host_os in | |
10578 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10579 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; | |
10580 | esac | |
10581 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10582 | else | |
10583 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10584 | fi | |
10585 | library_names_spec= | |
10586 | libname_spec='lib$name' | |
10587 | soname_spec= | |
10588 | shrext_cmds=.so | |
10589 | postinstall_cmds= | |
10590 | postuninstall_cmds= | |
10591 | finish_cmds= | |
10592 | finish_eval= | |
10593 | shlibpath_var= | |
10594 | shlibpath_overrides_runpath=unknown | |
10595 | version_type=none | |
10596 | dynamic_linker="$host_os ld.so" | |
10597 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10598 | need_lib_prefix=unknown | |
10599 | hardcode_into_libs=no | |
10600 | ||
10601 | # when you set need_version to no, make sure it does not cause -set_version | |
10602 | # flags to be left without arguments | |
10603 | need_version=unknown | |
10604 | ||
10605 | ||
10606 | ||
10607 | case $host_os in | |
10608 | aix3*) | |
10609 | version_type=linux # correct to gnu/linux during the next big refactor | |
10610 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
10611 | shlibpath_var=LIBPATH | |
10612 | ||
10613 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10614 | soname_spec='$libname$release$shared_ext$major' | |
10615 | ;; | |
10616 | ||
10617 | aix[4-9]*) | |
10618 | version_type=linux # correct to gnu/linux during the next big refactor | |
10619 | need_lib_prefix=no | |
10620 | need_version=no | |
10621 | hardcode_into_libs=yes | |
10622 | if test ia64 = "$host_cpu"; then | |
10623 | # AIX 5 supports IA64 | |
10624 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
10625 | shlibpath_var=LD_LIBRARY_PATH | |
10626 | else | |
10627 | # With GCC up to 2.95.x, collect2 would create an import file | |
10628 | # for dependence libraries. The import file would start with | |
10629 | # the line '#! .'. This would cause the generated library to | |
10630 | # depend on '.', always an invalid library. This was fixed in | |
10631 | # development snapshots of GCC prior to 3.0. | |
10632 | case $host_os in | |
10633 | aix4 | aix4.[01] | aix4.[01].*) | |
10634 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10635 | echo ' yes ' | |
10636 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
10637 | : | |
10638 | else | |
10639 | can_build_shared=no | |
10640 | fi | |
10641 | ;; | |
10642 | esac | |
10643 | # Using Import Files as archive members, it is possible to support | |
10644 | # filename-based versioning of shared library archives on AIX. While | |
10645 | # this would work for both with and without runtime linking, it will | |
10646 | # prevent static linking of such archives. So we do filename-based | |
10647 | # shared library versioning with .so extension only, which is used | |
10648 | # when both runtime linking and shared linking is enabled. | |
10649 | # Unfortunately, runtime linking may impact performance, so we do | |
10650 | # not want this to be the default eventually. Also, we use the | |
10651 | # versioned .so libs for executables only if there is the -brtl | |
10652 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10653 | # To allow for filename-based versioning support, we need to create | |
10654 | # libNAME.so.V as an archive file, containing: | |
10655 | # *) an Import File, referring to the versioned filename of the | |
10656 | # archive as well as the shared archive member, telling the | |
10657 | # bitwidth (32 or 64) of that shared object, and providing the | |
10658 | # list of exported symbols of that shared object, eventually | |
10659 | # decorated with the 'weak' keyword | |
10660 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10661 | # it being seen by the linker. | |
10662 | # At run time we better use the real file rather than another symlink, | |
10663 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10664 | ||
10665 | case $with_aix_soname,$aix_use_runtimelinking in | |
10666 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
10667 | # soname into executable. Probably we can add versioning support to | |
10668 | # collect2, so additional links can be useful in future. | |
10669 | aix,yes) # traditional libtool | |
10670 | dynamic_linker='AIX unversionable lib.so' | |
10671 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10672 | # instead of lib<name>.a to let people know that these are not | |
10673 | # typical AIX shared libraries. | |
10674 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10675 | ;; | |
10676 | aix,no) # traditional AIX only | |
10677 | dynamic_linker='AIX lib.a(lib.so.V)' | |
10678 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10679 | # and later when we are not doing run time linking. | |
10680 | library_names_spec='$libname$release.a $libname.a' | |
10681 | soname_spec='$libname$release$shared_ext$major' | |
10682 | ;; | |
10683 | svr4,*) # full svr4 only | |
10684 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10685 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10686 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10687 | shlibpath_overrides_runpath=yes | |
10688 | ;; | |
10689 | *,yes) # both, prefer svr4 | |
10690 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10691 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10692 | # unpreferred sharedlib libNAME.a needs extra handling | |
10693 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
10694 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
10695 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10696 | shlibpath_overrides_runpath=yes | |
10697 | ;; | |
10698 | *,no) # both, prefer aix | |
10699 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10700 | library_names_spec='$libname$release.a $libname.a' | |
10701 | soname_spec='$libname$release$shared_ext$major' | |
10702 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10703 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
10704 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
10705 | ;; | |
10706 | esac | |
10707 | shlibpath_var=LIBPATH | |
10708 | fi | |
10709 | ;; | |
10710 | ||
10711 | amigaos*) | |
10712 | case $host_cpu in | |
10713 | powerpc) | |
10714 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10715 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10716 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10717 | ;; | |
10718 | m68k) | |
10719 | library_names_spec='$libname.ixlibrary $libname.a' | |
10720 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10721 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
10722 | ;; | |
10723 | esac | |
10724 | ;; | |
10725 | ||
10726 | beos*) | |
10727 | library_names_spec='$libname$shared_ext' | |
10728 | dynamic_linker="$host_os ld.so" | |
10729 | shlibpath_var=LIBRARY_PATH | |
10730 | ;; | |
10731 | ||
10732 | bsdi[45]*) | |
10733 | version_type=linux # correct to gnu/linux during the next big refactor | |
10734 | need_version=no | |
10735 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10736 | soname_spec='$libname$release$shared_ext$major' | |
10737 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10738 | shlibpath_var=LD_LIBRARY_PATH | |
10739 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10740 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10741 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10742 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10743 | # libtool to hard-code these into programs | |
10744 | ;; | |
10745 | ||
10746 | cygwin* | mingw* | pw32* | cegcc*) | |
10747 | version_type=windows | |
10748 | shrext_cmds=.dll | |
10749 | need_version=no | |
10750 | need_lib_prefix=no | |
10751 | ||
10752 | case $GCC,$cc_basename in | |
10753 | yes,*) | |
10754 | # gcc | |
10755 | library_names_spec='$libname.dll.a' | |
10756 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10757 | postinstall_cmds='base_file=`basename \$file`~ | |
10758 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
10759 | dldir=$destdir/`dirname \$dlpath`~ | |
10760 | test -d \$dldir || mkdir -p \$dldir~ | |
10761 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10762 | chmod a+x \$dldir/$dlname~ | |
10763 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10764 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10765 | fi' | |
10766 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10767 | dlpath=$dir/\$dldll~ | |
10768 | $RM \$dlpath' | |
10769 | shlibpath_overrides_runpath=yes | |
10770 | ||
10771 | case $host_os in | |
10772 | cygwin*) | |
10773 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10774 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10775 | ||
10776 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10777 | ;; | |
10778 | mingw* | cegcc*) | |
10779 | # MinGW DLLs use traditional 'lib' prefix | |
10780 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10781 | ;; | |
10782 | pw32*) | |
10783 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10784 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10785 | ;; | |
10786 | esac | |
10787 | dynamic_linker='Win32 ld.exe' | |
10788 | ;; | |
10789 | ||
10790 | *,cl*) | |
10791 | # Native MSVC | |
10792 | libname_spec='$name' | |
10793 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
10794 | library_names_spec='$libname.dll.lib' | |
10795 | ||
10796 | case $build_os in | |
10797 | mingw*) | |
10798 | sys_lib_search_path_spec= | |
10799 | lt_save_ifs=$IFS | |
10800 | IFS=';' | |
10801 | for lt_path in $LIB | |
10802 | do | |
10803 | IFS=$lt_save_ifs | |
10804 | # Let DOS variable expansion print the short 8.3 style file name. | |
10805 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10806 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10807 | done | |
10808 | IFS=$lt_save_ifs | |
10809 | # Convert to MSYS style. | |
10810 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10811 | ;; | |
10812 | cygwin*) | |
10813 | # Convert to unix form, then to dos form, then back to unix form | |
10814 | # but this time dos style (no spaces!) so that the unix form looks | |
10815 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10816 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10817 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10818 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10819 | ;; | |
10820 | *) | |
10821 | sys_lib_search_path_spec=$LIB | |
10822 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10823 | # It is most probably a Windows format PATH. | |
10824 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10825 | else | |
10826 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10827 | fi | |
10828 | # FIXME: find the short name or the path components, as spaces are | |
10829 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10830 | ;; | |
10831 | esac | |
10832 | ||
10833 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10834 | postinstall_cmds='base_file=`basename \$file`~ | |
10835 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
10836 | dldir=$destdir/`dirname \$dlpath`~ | |
10837 | test -d \$dldir || mkdir -p \$dldir~ | |
10838 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10839 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10840 | dlpath=$dir/\$dldll~ | |
10841 | $RM \$dlpath' | |
10842 | shlibpath_overrides_runpath=yes | |
10843 | dynamic_linker='Win32 link.exe' | |
10844 | ;; | |
10845 | ||
10846 | *) | |
10847 | # Assume MSVC wrapper | |
10848 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' | |
10849 | dynamic_linker='Win32 ld.exe' | |
10850 | ;; | |
10851 | esac | |
10852 | # FIXME: first we should search . and the directory the executable is in | |
10853 | shlibpath_var=PATH | |
10854 | ;; | |
10855 | ||
10856 | darwin* | rhapsody*) | |
10857 | dynamic_linker="$host_os dyld" | |
10858 | version_type=darwin | |
10859 | need_lib_prefix=no | |
10860 | need_version=no | |
10861 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
10862 | soname_spec='$libname$release$major$shared_ext' | |
10863 | shlibpath_overrides_runpath=yes | |
10864 | shlibpath_var=DYLD_LIBRARY_PATH | |
10865 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10866 | ||
10867 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10868 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10869 | ;; | |
10870 | ||
10871 | dgux*) | |
10872 | version_type=linux # correct to gnu/linux during the next big refactor | |
10873 | need_lib_prefix=no | |
10874 | need_version=no | |
10875 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10876 | soname_spec='$libname$release$shared_ext$major' | |
10877 | shlibpath_var=LD_LIBRARY_PATH | |
10878 | ;; | |
10879 | ||
10880 | freebsd* | dragonfly*) | |
10881 | # DragonFly does not have aout. When/if they implement a new | |
10882 | # versioning mechanism, adjust this. | |
10883 | if test -x /usr/bin/objformat; then | |
10884 | objformat=`/usr/bin/objformat` | |
10885 | else | |
10886 | case $host_os in | |
10887 | freebsd[23].*) objformat=aout ;; | |
10888 | *) objformat=elf ;; | |
10889 | esac | |
10890 | fi | |
10891 | version_type=freebsd-$objformat | |
10892 | case $version_type in | |
10893 | freebsd-elf*) | |
10894 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10895 | soname_spec='$libname$release$shared_ext$major' | |
10896 | need_version=no | |
10897 | need_lib_prefix=no | |
10898 | ;; | |
10899 | freebsd-*) | |
10900 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
10901 | need_version=yes | |
10902 | ;; | |
10903 | esac | |
10904 | shlibpath_var=LD_LIBRARY_PATH | |
10905 | case $host_os in | |
10906 | freebsd2.*) | |
10907 | shlibpath_overrides_runpath=yes | |
10908 | ;; | |
10909 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10910 | shlibpath_overrides_runpath=yes | |
10911 | hardcode_into_libs=yes | |
10912 | ;; | |
10913 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10914 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10915 | shlibpath_overrides_runpath=no | |
10916 | hardcode_into_libs=yes | |
10917 | ;; | |
10918 | *) # from 4.6 on, and DragonFly | |
10919 | shlibpath_overrides_runpath=yes | |
10920 | hardcode_into_libs=yes | |
10921 | ;; | |
10922 | esac | |
10923 | ;; | |
10924 | ||
10925 | haiku*) | |
10926 | version_type=linux # correct to gnu/linux during the next big refactor | |
10927 | need_lib_prefix=no | |
10928 | need_version=no | |
10929 | dynamic_linker="$host_os runtime_loader" | |
10930 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10931 | soname_spec='$libname$release$shared_ext$major' | |
10932 | shlibpath_var=LIBRARY_PATH | |
10933 | shlibpath_overrides_runpath=no | |
10934 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
10935 | hardcode_into_libs=yes | |
10936 | ;; | |
10937 | ||
10938 | hpux9* | hpux10* | hpux11*) | |
10939 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10940 | # link against other versions. | |
10941 | version_type=sunos | |
10942 | need_lib_prefix=no | |
10943 | need_version=no | |
10944 | case $host_cpu in | |
10945 | ia64*) | |
10946 | shrext_cmds='.so' | |
10947 | hardcode_into_libs=yes | |
10948 | dynamic_linker="$host_os dld.so" | |
10949 | shlibpath_var=LD_LIBRARY_PATH | |
10950 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10951 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10952 | soname_spec='$libname$release$shared_ext$major' | |
10953 | if test 32 = "$HPUX_IA64_MODE"; then | |
10954 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10955 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
10956 | else | |
10957 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10958 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
10959 | fi | |
10960 | ;; | |
10961 | hppa*64*) | |
10962 | shrext_cmds='.sl' | |
10963 | hardcode_into_libs=yes | |
10964 | dynamic_linker="$host_os dld.sl" | |
10965 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10966 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10967 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10968 | soname_spec='$libname$release$shared_ext$major' | |
10969 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10970 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10971 | ;; | |
10972 | *) | |
10973 | shrext_cmds='.sl' | |
10974 | dynamic_linker="$host_os dld.sl" | |
10975 | shlibpath_var=SHLIB_PATH | |
10976 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10977 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10978 | soname_spec='$libname$release$shared_ext$major' | |
10979 | ;; | |
10980 | esac | |
10981 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10982 | postinstall_cmds='chmod 555 $lib' | |
10983 | # or fails outright, so override atomically: | |
10984 | install_override_mode=555 | |
10985 | ;; | |
10986 | ||
10987 | interix[3-9]*) | |
10988 | version_type=linux # correct to gnu/linux during the next big refactor | |
10989 | need_lib_prefix=no | |
10990 | need_version=no | |
10991 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
10992 | soname_spec='$libname$release$shared_ext$major' | |
10993 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10994 | shlibpath_var=LD_LIBRARY_PATH | |
10995 | shlibpath_overrides_runpath=no | |
10996 | hardcode_into_libs=yes | |
10997 | ;; | |
10998 | ||
10999 | irix5* | irix6* | nonstopux*) | |
11000 | case $host_os in | |
11001 | nonstopux*) version_type=nonstopux ;; | |
11002 | *) | |
11003 | if test yes = "$lt_cv_prog_gnu_ld"; then | |
11004 | version_type=linux # correct to gnu/linux during the next big refactor | |
11005 | else | |
11006 | version_type=irix | |
11007 | fi ;; | |
11008 | esac | |
11009 | need_lib_prefix=no | |
11010 | need_version=no | |
11011 | soname_spec='$libname$release$shared_ext$major' | |
11012 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
11013 | case $host_os in | |
11014 | irix5* | nonstopux*) | |
11015 | libsuff= shlibsuff= | |
11016 | ;; | |
11017 | *) | |
11018 | case $LD in # libtool.m4 will add one of these switches to LD | |
11019 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11020 | libsuff= shlibsuff= libmagic=32-bit;; | |
11021 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11022 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11023 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11024 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11025 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11026 | esac | |
11027 | ;; | |
11028 | esac | |
11029 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11030 | shlibpath_overrides_runpath=no | |
11031 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
11032 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
11033 | hardcode_into_libs=yes | |
11034 | ;; | |
11035 | ||
11036 | # No shared lib support for Linux oldld, aout, or coff. | |
11037 | linux*oldld* | linux*aout* | linux*coff*) | |
11038 | dynamic_linker=no | |
11039 | ;; | |
11040 | ||
11041 | linux*android*) | |
11042 | version_type=none # Android doesn't support versioned libraries. | |
11043 | need_lib_prefix=no | |
11044 | need_version=no | |
11045 | library_names_spec='$libname$release$shared_ext' | |
11046 | soname_spec='$libname$release$shared_ext' | |
11047 | finish_cmds= | |
11048 | shlibpath_var=LD_LIBRARY_PATH | |
11049 | shlibpath_overrides_runpath=yes | |
11050 | ||
11051 | # This implies no fast_install, which is unacceptable. | |
11052 | # Some rework will be needed to allow for fast_install | |
11053 | # before this can be enabled. | |
11054 | hardcode_into_libs=yes | |
11055 | ||
11056 | dynamic_linker='Android linker' | |
11057 | # Don't embed -rpath directories since the linker doesn't support them. | |
11058 | hardcode_libdir_flag_spec='-L$libdir' | |
11059 | ;; | |
11060 | ||
11061 | # This must be glibc/ELF. | |
11062 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11063 | version_type=linux # correct to gnu/linux during the next big refactor | |
11064 | need_lib_prefix=no | |
11065 | need_version=no | |
11066 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11067 | soname_spec='$libname$release$shared_ext$major' | |
11068 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11069 | shlibpath_var=LD_LIBRARY_PATH | |
11070 | shlibpath_overrides_runpath=no | |
11071 | ||
11072 | # Some binutils ld are patched to set DT_RUNPATH | |
11073 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11074 | $as_echo_n "(cached) " >&6 | |
11075 | else | |
11076 | lt_cv_shlibpath_overrides_runpath=no | |
11077 | save_LDFLAGS=$LDFLAGS | |
11078 | save_libdir=$libdir | |
11079 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11080 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11082 | /* end confdefs.h. */ | |
11083 | ||
11084 | int | |
11085 | main () | |
11086 | { | |
11087 | ||
11088 | ; | |
11089 | return 0; | |
11090 | } | |
11091 | _ACEOF | |
11092 | if ac_fn_c_try_link "$LINENO"; then : | |
11093 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11094 | lt_cv_shlibpath_overrides_runpath=yes | |
11095 | fi | |
11096 | fi | |
11097 | rm -f core conftest.err conftest.$ac_objext \ | |
11098 | conftest$ac_exeext conftest.$ac_ext | |
11099 | LDFLAGS=$save_LDFLAGS | |
11100 | libdir=$save_libdir | |
11101 | ||
11102 | fi | |
11103 | ||
11104 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11105 | ||
11106 | # This implies no fast_install, which is unacceptable. | |
11107 | # Some rework will be needed to allow for fast_install | |
11108 | # before this can be enabled. | |
11109 | hardcode_into_libs=yes | |
11110 | ||
11111 | # Ideally, we could use ldconfig to report *all* directores which are | |
11112 | # searched for libraries, however this is still not possible. Aside from not | |
11113 | # being certain /sbin/ldconfig is available, command | |
11114 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11115 | # even though it is searched at run-time. Try to do the best guess by | |
11116 | # appending ld.so.conf contents (and includes) to the search path. | |
11117 | if test -f /etc/ld.so.conf; then | |
11118 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
11119 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11120 | fi | |
11121 | ||
11122 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11123 | # powerpc, because MkLinux only supported shared libraries with the | |
11124 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11125 | # most powerpc-linux boxes support dynamic linking these days and | |
11126 | # people can always --disable-shared, the test was removed, and we | |
11127 | # assume the GNU/Linux dynamic linker is in use. | |
11128 | dynamic_linker='GNU/Linux ld.so' | |
11129 | ;; | |
11130 | ||
11131 | netbsdelf*-gnu) | |
11132 | version_type=linux | |
11133 | need_lib_prefix=no | |
11134 | need_version=no | |
11135 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11136 | soname_spec='${libname}${release}${shared_ext}$major' | |
11137 | shlibpath_var=LD_LIBRARY_PATH | |
11138 | shlibpath_overrides_runpath=no | |
11139 | hardcode_into_libs=yes | |
11140 | dynamic_linker='NetBSD ld.elf_so' | |
11141 | ;; | |
11142 | ||
11143 | netbsd*) | |
11144 | version_type=sunos | |
11145 | need_lib_prefix=no | |
11146 | need_version=no | |
11147 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11148 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11149 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11150 | dynamic_linker='NetBSD (a.out) ld.so' | |
11151 | else | |
11152 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11153 | soname_spec='$libname$release$shared_ext$major' | |
11154 | dynamic_linker='NetBSD ld.elf_so' | |
11155 | fi | |
11156 | shlibpath_var=LD_LIBRARY_PATH | |
11157 | shlibpath_overrides_runpath=yes | |
11158 | hardcode_into_libs=yes | |
11159 | ;; | |
11160 | ||
11161 | newsos6) | |
11162 | version_type=linux # correct to gnu/linux during the next big refactor | |
11163 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11164 | shlibpath_var=LD_LIBRARY_PATH | |
11165 | shlibpath_overrides_runpath=yes | |
11166 | ;; | |
11167 | ||
11168 | *nto* | *qnx*) | |
11169 | version_type=qnx | |
11170 | need_lib_prefix=no | |
11171 | need_version=no | |
11172 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11173 | soname_spec='$libname$release$shared_ext$major' | |
11174 | shlibpath_var=LD_LIBRARY_PATH | |
11175 | shlibpath_overrides_runpath=no | |
11176 | hardcode_into_libs=yes | |
11177 | dynamic_linker='ldqnx.so' | |
11178 | ;; | |
11179 | ||
11180 | openbsd* | bitrig*) | |
11181 | version_type=sunos | |
11182 | sys_lib_dlsearch_path_spec=/usr/lib | |
11183 | need_lib_prefix=no | |
11184 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
11185 | need_version=no | |
11186 | else | |
11187 | need_version=yes | |
11188 | fi | |
11189 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11190 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11191 | shlibpath_var=LD_LIBRARY_PATH | |
11192 | shlibpath_overrides_runpath=yes | |
11193 | ;; | |
11194 | ||
11195 | os2*) | |
11196 | libname_spec='$name' | |
11197 | version_type=windows | |
11198 | shrext_cmds=.dll | |
11199 | need_version=no | |
11200 | need_lib_prefix=no | |
11201 | # OS/2 can only load a DLL with a base name of 8 characters or less. | |
11202 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11203 | v=$($ECHO $release$versuffix | tr -d .-); | |
11204 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11205 | $ECHO $n$v`$shared_ext' | |
11206 | library_names_spec='${libname}_dll.$libext' | |
11207 | dynamic_linker='OS/2 ld.exe' | |
11208 | shlibpath_var=BEGINLIBPATH | |
11209 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11210 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11211 | postinstall_cmds='base_file=`basename \$file`~ | |
11212 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11213 | dldir=$destdir/`dirname \$dlpath`~ | |
11214 | test -d \$dldir || mkdir -p \$dldir~ | |
11215 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11216 | chmod a+x \$dldir/$dlname~ | |
11217 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11218 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11219 | fi' | |
11220 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11221 | dlpath=$dir/\$dldll~ | |
11222 | $RM \$dlpath' | |
11223 | ;; | |
11224 | ||
11225 | osf3* | osf4* | osf5*) | |
11226 | version_type=osf | |
11227 | need_lib_prefix=no | |
11228 | need_version=no | |
11229 | soname_spec='$libname$release$shared_ext$major' | |
11230 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11231 | shlibpath_var=LD_LIBRARY_PATH | |
11232 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11233 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11234 | ;; | |
11235 | ||
11236 | rdos*) | |
11237 | dynamic_linker=no | |
11238 | ;; | |
11239 | ||
11240 | solaris*) | |
11241 | version_type=linux # correct to gnu/linux during the next big refactor | |
11242 | need_lib_prefix=no | |
11243 | need_version=no | |
11244 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11245 | soname_spec='$libname$release$shared_ext$major' | |
11246 | shlibpath_var=LD_LIBRARY_PATH | |
11247 | shlibpath_overrides_runpath=yes | |
11248 | hardcode_into_libs=yes | |
11249 | # ldd complains unless libraries are executable | |
11250 | postinstall_cmds='chmod +x $lib' | |
11251 | ;; | |
11252 | ||
11253 | sunos4*) | |
11254 | version_type=sunos | |
11255 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
11256 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11257 | shlibpath_var=LD_LIBRARY_PATH | |
11258 | shlibpath_overrides_runpath=yes | |
11259 | if test yes = "$with_gnu_ld"; then | |
11260 | need_lib_prefix=no | |
11261 | fi | |
11262 | need_version=yes | |
11263 | ;; | |
11264 | ||
11265 | sysv4 | sysv4.3*) | |
11266 | version_type=linux # correct to gnu/linux during the next big refactor | |
11267 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11268 | soname_spec='$libname$release$shared_ext$major' | |
11269 | shlibpath_var=LD_LIBRARY_PATH | |
11270 | case $host_vendor in | |
11271 | sni) | |
11272 | shlibpath_overrides_runpath=no | |
11273 | need_lib_prefix=no | |
11274 | runpath_var=LD_RUN_PATH | |
11275 | ;; | |
11276 | siemens) | |
11277 | need_lib_prefix=no | |
11278 | ;; | |
11279 | motorola) | |
11280 | need_lib_prefix=no | |
11281 | need_version=no | |
11282 | shlibpath_overrides_runpath=no | |
11283 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11284 | ;; | |
11285 | esac | |
11286 | ;; | |
11287 | ||
11288 | sysv4*MP*) | |
11289 | if test -d /usr/nec; then | |
11290 | version_type=linux # correct to gnu/linux during the next big refactor | |
11291 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
11292 | soname_spec='$libname$shared_ext.$major' | |
11293 | shlibpath_var=LD_LIBRARY_PATH | |
11294 | fi | |
11295 | ;; | |
11296 | ||
11297 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11298 | version_type=sco | |
11299 | need_lib_prefix=no | |
11300 | need_version=no | |
11301 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
11302 | soname_spec='$libname$release$shared_ext$major' | |
11303 | shlibpath_var=LD_LIBRARY_PATH | |
11304 | shlibpath_overrides_runpath=yes | |
11305 | hardcode_into_libs=yes | |
11306 | if test yes = "$with_gnu_ld"; then | |
11307 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11308 | else | |
11309 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11310 | case $host_os in | |
11311 | sco3.2v5*) | |
11312 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11313 | ;; | |
11314 | esac | |
11315 | fi | |
11316 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11317 | ;; | |
11318 | ||
11319 | tpf*) | |
11320 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11321 | version_type=linux # correct to gnu/linux during the next big refactor | |
11322 | need_lib_prefix=no | |
11323 | need_version=no | |
11324 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11325 | shlibpath_var=LD_LIBRARY_PATH | |
11326 | shlibpath_overrides_runpath=no | |
11327 | hardcode_into_libs=yes | |
11328 | ;; | |
11329 | ||
11330 | uts4*) | |
11331 | version_type=linux # correct to gnu/linux during the next big refactor | |
11332 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
11333 | soname_spec='$libname$release$shared_ext$major' | |
11334 | shlibpath_var=LD_LIBRARY_PATH | |
11335 | ;; | |
11336 | ||
11337 | *) | |
11338 | dynamic_linker=no | |
11339 | ;; | |
11340 | esac | |
11341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11342 | $as_echo "$dynamic_linker" >&6; } | |
11343 | test no = "$dynamic_linker" && can_build_shared=no | |
11344 | ||
11345 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11346 | if test yes = "$GCC"; then | |
11347 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11348 | fi | |
11349 | ||
11350 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
11351 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
11352 | fi | |
11353 | ||
11354 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11355 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
11356 | fi | |
11357 | ||
11358 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... | |
11359 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11360 | ||
11361 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11362 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11363 | ||
11364 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11365 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | ||
11375 | ||
11376 | ||
11377 | ||
11378 | ||
11379 | ||
11380 | ||
11381 | ||
11382 | ||
11383 | ||
11384 | ||
11385 | ||
11386 | ||
11387 | ||
11388 | ||
11389 | ||
11390 | ||
11391 | ||
11392 | ||
11393 | ||
11394 | ||
11395 | ||
11396 | ||
11397 | ||
11398 | ||
11399 | ||
11400 | ||
11401 | ||
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | ||
11407 | ||
11408 | ||
11409 | ||
11410 | ||
11411 | ||
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | ||
11428 | ||
11429 | ||
11430 | ||
11431 | ||
11432 | ||
11433 | ||
11434 | ||
11435 | ||
11436 | ||
11437 | ||
11438 | ||
11439 | ||
11440 | ||
11441 | ||
11442 | ||
11443 | ||
11444 | ||
11445 | ||
11446 | ||
11447 | ||
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
11461 | ||
11462 | ||
11463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11464 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11465 | hardcode_action= | |
11466 | if test -n "$hardcode_libdir_flag_spec" || | |
11467 | test -n "$runpath_var" || | |
11468 | test yes = "$hardcode_automatic"; then | |
11469 | ||
11470 | # We can hardcode non-existent directories. | |
11471 | if test no != "$hardcode_direct" && | |
11472 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11473 | # have to relink, otherwise we might link with an installed library | |
11474 | # when we should be linking with a yet-to-be-installed one | |
11475 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && | |
11476 | test no != "$hardcode_minus_L"; then | |
11477 | # Linking always hardcodes the temporary library directory. | |
11478 | hardcode_action=relink | |
11479 | else | |
11480 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11481 | hardcode_action=immediate | |
11482 | fi | |
11483 | else | |
11484 | # We cannot hardcode anything, or else we can only hardcode existing | |
11485 | # directories. | |
11486 | hardcode_action=unsupported | |
11487 | fi | |
11488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11489 | $as_echo "$hardcode_action" >&6; } | |
11490 | ||
11491 | if test relink = "$hardcode_action" || | |
11492 | test yes = "$inherit_rpath"; then | |
11493 | # Fast installation is not supported | |
11494 | enable_fast_install=no | |
11495 | elif test yes = "$shlibpath_overrides_runpath" || | |
11496 | test no = "$enable_shared"; then | |
11497 | # Fast installation is not necessary | |
11498 | enable_fast_install=needless | |
11499 | fi | |
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | if test yes != "$enable_dlopen"; then | |
11507 | enable_dlopen=unknown | |
11508 | enable_dlopen_self=unknown | |
11509 | enable_dlopen_self_static=unknown | |
11510 | else | |
11511 | lt_cv_dlopen=no | |
11512 | lt_cv_dlopen_libs= | |
11513 | ||
11514 | case $host_os in | |
11515 | beos*) | |
11516 | lt_cv_dlopen=load_add_on | |
11517 | lt_cv_dlopen_libs= | |
11518 | lt_cv_dlopen_self=yes | |
11519 | ;; | |
11520 | ||
11521 | mingw* | pw32* | cegcc*) | |
11522 | lt_cv_dlopen=LoadLibrary | |
11523 | lt_cv_dlopen_libs= | |
11524 | ;; | |
11525 | ||
11526 | cygwin*) | |
11527 | lt_cv_dlopen=dlopen | |
11528 | lt_cv_dlopen_libs= | |
11529 | ;; | |
11530 | ||
11531 | darwin*) | |
11532 | # if libdl is installed we need to link against it | |
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11534 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11535 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11536 | $as_echo_n "(cached) " >&6 | |
11537 | else | |
11538 | ac_check_lib_save_LIBS=$LIBS | |
11539 | LIBS="-ldl $LIBS" | |
11540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11541 | /* end confdefs.h. */ | |
11542 | ||
11543 | /* Override any GCC internal prototype to avoid an error. | |
11544 | Use char because int might match the return type of a GCC | |
11545 | builtin and then its argument prototype would still apply. */ | |
11546 | #ifdef __cplusplus | |
11547 | extern "C" | |
11548 | #endif | |
11549 | char dlopen (); | |
11550 | int | |
11551 | main () | |
11552 | { | |
11553 | return dlopen (); | |
11554 | ; | |
11555 | return 0; | |
11556 | } | |
11557 | _ACEOF | |
11558 | if ac_fn_c_try_link "$LINENO"; then : | |
11559 | ac_cv_lib_dl_dlopen=yes | |
11560 | else | |
11561 | ac_cv_lib_dl_dlopen=no | |
11562 | fi | |
11563 | rm -f core conftest.err conftest.$ac_objext \ | |
11564 | conftest$ac_exeext conftest.$ac_ext | |
11565 | LIBS=$ac_check_lib_save_LIBS | |
11566 | fi | |
11567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11568 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11569 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11570 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
11571 | else | |
11572 | ||
11573 | lt_cv_dlopen=dyld | |
11574 | lt_cv_dlopen_libs= | |
11575 | lt_cv_dlopen_self=yes | |
11576 | ||
11577 | fi | |
11578 | ||
11579 | ;; | |
11580 | ||
11581 | tpf*) | |
11582 | # Don't try to run any link tests for TPF. We know it's impossible | |
11583 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11584 | lt_cv_dlopen=dlopen | |
11585 | lt_cv_dlopen_libs= | |
11586 | lt_cv_dlopen_self=no | |
11587 | ;; | |
11588 | ||
11589 | *) | |
11590 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11591 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11592 | lt_cv_dlopen=shl_load | |
11593 | else | |
11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11595 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11596 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11597 | $as_echo_n "(cached) " >&6 | |
11598 | else | |
11599 | ac_check_lib_save_LIBS=$LIBS | |
11600 | LIBS="-ldld $LIBS" | |
11601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11602 | /* end confdefs.h. */ | |
11603 | ||
11604 | /* Override any GCC internal prototype to avoid an error. | |
11605 | Use char because int might match the return type of a GCC | |
11606 | builtin and then its argument prototype would still apply. */ | |
11607 | #ifdef __cplusplus | |
11608 | extern "C" | |
11609 | #endif | |
11610 | char shl_load (); | |
11611 | int | |
11612 | main () | |
11613 | { | |
11614 | return shl_load (); | |
11615 | ; | |
11616 | return 0; | |
11617 | } | |
11618 | _ACEOF | |
11619 | if ac_fn_c_try_link "$LINENO"; then : | |
11620 | ac_cv_lib_dld_shl_load=yes | |
11621 | else | |
11622 | ac_cv_lib_dld_shl_load=no | |
11623 | fi | |
11624 | rm -f core conftest.err conftest.$ac_objext \ | |
11625 | conftest$ac_exeext conftest.$ac_ext | |
11626 | LIBS=$ac_check_lib_save_LIBS | |
11627 | fi | |
11628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11629 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11630 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11631 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld | |
11632 | else | |
11633 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11634 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11635 | lt_cv_dlopen=dlopen | |
11636 | else | |
11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11638 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11639 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11640 | $as_echo_n "(cached) " >&6 | |
11641 | else | |
11642 | ac_check_lib_save_LIBS=$LIBS | |
11643 | LIBS="-ldl $LIBS" | |
11644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11645 | /* end confdefs.h. */ | |
11646 | ||
11647 | /* Override any GCC internal prototype to avoid an error. | |
11648 | Use char because int might match the return type of a GCC | |
11649 | builtin and then its argument prototype would still apply. */ | |
11650 | #ifdef __cplusplus | |
11651 | extern "C" | |
11652 | #endif | |
11653 | char dlopen (); | |
11654 | int | |
11655 | main () | |
11656 | { | |
11657 | return dlopen (); | |
11658 | ; | |
11659 | return 0; | |
11660 | } | |
11661 | _ACEOF | |
11662 | if ac_fn_c_try_link "$LINENO"; then : | |
11663 | ac_cv_lib_dl_dlopen=yes | |
11664 | else | |
11665 | ac_cv_lib_dl_dlopen=no | |
11666 | fi | |
11667 | rm -f core conftest.err conftest.$ac_objext \ | |
11668 | conftest$ac_exeext conftest.$ac_ext | |
11669 | LIBS=$ac_check_lib_save_LIBS | |
11670 | fi | |
11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11672 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11673 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11674 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
11675 | else | |
11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11677 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11678 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11679 | $as_echo_n "(cached) " >&6 | |
11680 | else | |
11681 | ac_check_lib_save_LIBS=$LIBS | |
11682 | LIBS="-lsvld $LIBS" | |
11683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11684 | /* end confdefs.h. */ | |
11685 | ||
11686 | /* Override any GCC internal prototype to avoid an error. | |
11687 | Use char because int might match the return type of a GCC | |
11688 | builtin and then its argument prototype would still apply. */ | |
11689 | #ifdef __cplusplus | |
11690 | extern "C" | |
11691 | #endif | |
11692 | char dlopen (); | |
11693 | int | |
11694 | main () | |
11695 | { | |
11696 | return dlopen (); | |
11697 | ; | |
11698 | return 0; | |
11699 | } | |
11700 | _ACEOF | |
11701 | if ac_fn_c_try_link "$LINENO"; then : | |
11702 | ac_cv_lib_svld_dlopen=yes | |
11703 | else | |
11704 | ac_cv_lib_svld_dlopen=no | |
11705 | fi | |
11706 | rm -f core conftest.err conftest.$ac_objext \ | |
11707 | conftest$ac_exeext conftest.$ac_ext | |
11708 | LIBS=$ac_check_lib_save_LIBS | |
11709 | fi | |
11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11711 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11712 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11713 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld | |
11714 | else | |
11715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11716 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11717 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11718 | $as_echo_n "(cached) " >&6 | |
11719 | else | |
11720 | ac_check_lib_save_LIBS=$LIBS | |
11721 | LIBS="-ldld $LIBS" | |
11722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11723 | /* end confdefs.h. */ | |
11724 | ||
11725 | /* Override any GCC internal prototype to avoid an error. | |
11726 | Use char because int might match the return type of a GCC | |
11727 | builtin and then its argument prototype would still apply. */ | |
11728 | #ifdef __cplusplus | |
11729 | extern "C" | |
11730 | #endif | |
11731 | char dld_link (); | |
11732 | int | |
11733 | main () | |
11734 | { | |
11735 | return dld_link (); | |
11736 | ; | |
11737 | return 0; | |
11738 | } | |
11739 | _ACEOF | |
11740 | if ac_fn_c_try_link "$LINENO"; then : | |
11741 | ac_cv_lib_dld_dld_link=yes | |
11742 | else | |
11743 | ac_cv_lib_dld_dld_link=no | |
11744 | fi | |
11745 | rm -f core conftest.err conftest.$ac_objext \ | |
11746 | conftest$ac_exeext conftest.$ac_ext | |
11747 | LIBS=$ac_check_lib_save_LIBS | |
11748 | fi | |
11749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11750 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11751 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11752 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld | |
11753 | fi | |
11754 | ||
11755 | ||
11756 | fi | |
11757 | ||
11758 | ||
11759 | fi | |
11760 | ||
11761 | ||
11762 | fi | |
11763 | ||
11764 | ||
11765 | fi | |
11766 | ||
11767 | ||
11768 | fi | |
11769 | ||
11770 | ;; | |
11771 | esac | |
11772 | ||
11773 | if test no = "$lt_cv_dlopen"; then | |
11774 | enable_dlopen=no | |
11775 | else | |
11776 | enable_dlopen=yes | |
11777 | fi | |
11778 | ||
11779 | case $lt_cv_dlopen in | |
11780 | dlopen) | |
11781 | save_CPPFLAGS=$CPPFLAGS | |
11782 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11783 | ||
11784 | save_LDFLAGS=$LDFLAGS | |
11785 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11786 | ||
11787 | save_LIBS=$LIBS | |
11788 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11789 | ||
11790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11791 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11792 | if ${lt_cv_dlopen_self+:} false; then : | |
11793 | $as_echo_n "(cached) " >&6 | |
11794 | else | |
11795 | if test yes = "$cross_compiling"; then : | |
11796 | lt_cv_dlopen_self=cross | |
11797 | else | |
11798 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11799 | lt_status=$lt_dlunknown | |
11800 | cat > conftest.$ac_ext <<_LT_EOF | |
11801 | #line $LINENO "configure" | |
11802 | #include "confdefs.h" | |
11803 | ||
11804 | #if HAVE_DLFCN_H | |
11805 | #include <dlfcn.h> | |
11806 | #endif | |
11807 | ||
11808 | #include <stdio.h> | |
11809 | ||
11810 | #ifdef RTLD_GLOBAL | |
11811 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11812 | #else | |
11813 | # ifdef DL_GLOBAL | |
11814 | # define LT_DLGLOBAL DL_GLOBAL | |
11815 | # else | |
11816 | # define LT_DLGLOBAL 0 | |
11817 | # endif | |
11818 | #endif | |
11819 | ||
11820 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11821 | find out it does not work in some platform. */ | |
11822 | #ifndef LT_DLLAZY_OR_NOW | |
11823 | # ifdef RTLD_LAZY | |
11824 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11825 | # else | |
11826 | # ifdef DL_LAZY | |
11827 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11828 | # else | |
11829 | # ifdef RTLD_NOW | |
11830 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11831 | # else | |
11832 | # ifdef DL_NOW | |
11833 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11834 | # else | |
11835 | # define LT_DLLAZY_OR_NOW 0 | |
11836 | # endif | |
11837 | # endif | |
11838 | # endif | |
11839 | # endif | |
11840 | #endif | |
11841 | ||
11842 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
11843 | correspondingly for the symbols needed. */ | |
11844 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11845 | int fnord () __attribute__((visibility("default"))); | |
11846 | #endif | |
11847 | ||
11848 | int fnord () { return 42; } | |
11849 | int main () | |
11850 | { | |
11851 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11852 | int status = $lt_dlunknown; | |
11853 | ||
11854 | if (self) | |
11855 | { | |
11856 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11857 | else | |
11858 | { | |
11859 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11860 | else puts (dlerror ()); | |
11861 | } | |
11862 | /* dlclose (self); */ | |
11863 | } | |
11864 | else | |
11865 | puts (dlerror ()); | |
11866 | ||
11867 | return status; | |
11868 | } | |
11869 | _LT_EOF | |
11870 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11871 | (eval $ac_link) 2>&5 | |
11872 | ac_status=$? | |
11873 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11874 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
11875 | (./conftest; exit; ) >&5 2>/dev/null | |
11876 | lt_status=$? | |
11877 | case x$lt_status in | |
11878 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11879 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11880 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11881 | esac | |
11882 | else : | |
11883 | # compilation failed | |
11884 | lt_cv_dlopen_self=no | |
11885 | fi | |
11886 | fi | |
11887 | rm -fr conftest* | |
11888 | ||
11889 | ||
11890 | fi | |
11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11892 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11893 | ||
11894 | if test yes = "$lt_cv_dlopen_self"; then | |
11895 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11897 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11898 | if ${lt_cv_dlopen_self_static+:} false; then : | |
11899 | $as_echo_n "(cached) " >&6 | |
11900 | else | |
11901 | if test yes = "$cross_compiling"; then : | |
11902 | lt_cv_dlopen_self_static=cross | |
11903 | else | |
11904 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11905 | lt_status=$lt_dlunknown | |
11906 | cat > conftest.$ac_ext <<_LT_EOF | |
11907 | #line $LINENO "configure" | |
11908 | #include "confdefs.h" | |
11909 | ||
11910 | #if HAVE_DLFCN_H | |
11911 | #include <dlfcn.h> | |
11912 | #endif | |
11913 | ||
11914 | #include <stdio.h> | |
11915 | ||
11916 | #ifdef RTLD_GLOBAL | |
11917 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11918 | #else | |
11919 | # ifdef DL_GLOBAL | |
11920 | # define LT_DLGLOBAL DL_GLOBAL | |
11921 | # else | |
11922 | # define LT_DLGLOBAL 0 | |
11923 | # endif | |
11924 | #endif | |
11925 | ||
11926 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11927 | find out it does not work in some platform. */ | |
11928 | #ifndef LT_DLLAZY_OR_NOW | |
11929 | # ifdef RTLD_LAZY | |
11930 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11931 | # else | |
11932 | # ifdef DL_LAZY | |
11933 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11934 | # else | |
11935 | # ifdef RTLD_NOW | |
11936 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11937 | # else | |
11938 | # ifdef DL_NOW | |
11939 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11940 | # else | |
11941 | # define LT_DLLAZY_OR_NOW 0 | |
11942 | # endif | |
11943 | # endif | |
11944 | # endif | |
11945 | # endif | |
11946 | #endif | |
11947 | ||
11948 | /* When -fvisibility=hidden is used, assume the code has been annotated | |
11949 | correspondingly for the symbols needed. */ | |
11950 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11951 | int fnord () __attribute__((visibility("default"))); | |
11952 | #endif | |
11953 | ||
11954 | int fnord () { return 42; } | |
11955 | int main () | |
11956 | { | |
11957 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11958 | int status = $lt_dlunknown; | |
11959 | ||
11960 | if (self) | |
11961 | { | |
11962 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11963 | else | |
11964 | { | |
11965 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11966 | else puts (dlerror ()); | |
11967 | } | |
11968 | /* dlclose (self); */ | |
11969 | } | |
11970 | else | |
11971 | puts (dlerror ()); | |
11972 | ||
11973 | return status; | |
11974 | } | |
11975 | _LT_EOF | |
11976 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11977 | (eval $ac_link) 2>&5 | |
11978 | ac_status=$? | |
11979 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11980 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
11981 | (./conftest; exit; ) >&5 2>/dev/null | |
11982 | lt_status=$? | |
11983 | case x$lt_status in | |
11984 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11985 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11986 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11987 | esac | |
11988 | else : | |
11989 | # compilation failed | |
11990 | lt_cv_dlopen_self_static=no | |
11991 | fi | |
11992 | fi | |
11993 | rm -fr conftest* | |
11994 | ||
11995 | ||
11996 | fi | |
11997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11998 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11999 | fi | |
12000 | ||
12001 | CPPFLAGS=$save_CPPFLAGS | |
12002 | LDFLAGS=$save_LDFLAGS | |
12003 | LIBS=$save_LIBS | |
12004 | ;; | |
12005 | esac | |
12006 | ||
12007 | case $lt_cv_dlopen_self in | |
12008 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12009 | *) enable_dlopen_self=unknown ;; | |
12010 | esac | |
12011 | ||
12012 | case $lt_cv_dlopen_self_static in | |
12013 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12014 | *) enable_dlopen_self_static=unknown ;; | |
12015 | esac | |
12016 | fi | |
12017 | ||
12018 | ||
12019 | ||
12020 | ||
12021 | ||
12022 | ||
12023 | ||
12024 | ||
12025 | ||
12026 | ||
12027 | ||
12028 | ||
12029 | ||
12030 | ||
12031 | ||
12032 | ||
12033 | ||
12034 | striplib= | |
12035 | old_striplib= | |
12036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12037 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12038 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12039 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12040 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12042 | $as_echo "yes" >&6; } | |
12043 | else | |
12044 | # FIXME - insert some real tests, host_os isn't really good enough | |
12045 | case $host_os in | |
12046 | darwin*) | |
12047 | if test -n "$STRIP"; then | |
12048 | striplib="$STRIP -x" | |
12049 | old_striplib="$STRIP -S" | |
12050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12051 | $as_echo "yes" >&6; } | |
12052 | else | |
12053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12054 | $as_echo "no" >&6; } | |
12055 | fi | |
12056 | ;; | |
12057 | *) | |
12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12059 | $as_echo "no" >&6; } | |
12060 | ;; | |
12061 | esac | |
12062 | fi | |
12063 | ||
12064 | ||
12065 | ||
12066 | ||
12067 | ||
12068 | ||
12069 | ||
12070 | ||
12071 | ||
12072 | ||
12073 | ||
12074 | ||
12075 | # Report what library types will actually be built | |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12077 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12079 | $as_echo "$can_build_shared" >&6; } | |
12080 | ||
12081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12082 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12083 | test no = "$can_build_shared" && enable_shared=no | |
12084 | ||
12085 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12086 | # are all built from PIC. | |
12087 | case $host_os in | |
12088 | aix3*) | |
12089 | test yes = "$enable_shared" && enable_static=no | |
12090 | if test -n "$RANLIB"; then | |
12091 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12092 | postinstall_cmds='$RANLIB $lib' | |
12093 | fi | |
12094 | ;; | |
12095 | ||
12096 | aix[4-9]*) | |
12097 | if test ia64 != "$host_cpu"; then | |
12098 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12099 | yes,aix,yes) ;; # shared object as lib.so file only | |
12100 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12101 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12102 | esac | |
12103 | fi | |
12104 | ;; | |
12105 | esac | |
12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12107 | $as_echo "$enable_shared" >&6; } | |
12108 | ||
12109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12110 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12111 | # Make sure either enable_shared or enable_static is yes. | |
12112 | test yes = "$enable_shared" || enable_static=yes | |
12113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12114 | $as_echo "$enable_static" >&6; } | |
12115 | ||
12116 | ||
12117 | ||
12118 | ||
12119 | fi | |
12120 | ac_ext=c | |
12121 | ac_cpp='$CPP $CPPFLAGS' | |
12122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12125 | ||
12126 | CC=$lt_save_CC | |
12127 | ||
12128 | ||
12129 | ||
12130 | ||
12131 | ||
12132 | ||
12133 | ||
12134 | ||
12135 | ||
12136 | ||
12137 | ||
12138 | ||
12139 | ||
12140 | ||
12141 | ||
12142 | ac_config_commands="$ac_config_commands libtool" | |
12143 | ||
12144 | ||
12145 | ||
12146 | ||
12147 | # Only expand once: | |
12148 | ||
12149 | ||
12150 | ||
12151 | ||
12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl author" >&5 | |
12153 | $as_echo_n "checking spl author... " >&6; } | |
12154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_AUTHOR" >&5 | |
12155 | $as_echo "$SPL_META_AUTHOR" >&6; } | |
12156 | ||
12157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl license" >&5 | |
12158 | $as_echo_n "checking spl license... " >&6; } | |
12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_LICENSE" >&5 | |
12160 | $as_echo "$SPL_META_LICENSE" >&6; } | |
12161 | ||
12162 | ||
12163 | ||
12164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5 | |
12165 | $as_echo_n "checking linux distribution... " >&6; } | |
12166 | if test -f /etc/toss-release ; then | |
12167 | VENDOR=toss ; | |
12168 | elif test -f /etc/fedora-release ; then | |
12169 | VENDOR=fedora ; | |
12170 | elif test -f /etc/redhat-release ; then | |
12171 | VENDOR=redhat ; | |
12172 | elif test -f /etc/gentoo-release ; then | |
12173 | VENDOR=gentoo ; | |
12174 | elif test -f /etc/arch-release ; then | |
12175 | VENDOR=arch ; | |
12176 | elif test -f /etc/SuSE-release ; then | |
12177 | VENDOR=sles ; | |
12178 | elif test -f /etc/slackware-version ; then | |
12179 | VENDOR=slackware ; | |
12180 | elif test -f /etc/lunar.release ; then | |
12181 | VENDOR=lunar ; | |
12182 | elif test -f /etc/lsb-release ; then | |
12183 | VENDOR=ubuntu ; | |
12184 | elif test -f /etc/debian_version ; then | |
12185 | VENDOR=debian ; | |
12186 | else | |
12187 | VENDOR= ; | |
12188 | fi | |
12189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5 | |
12190 | $as_echo "$VENDOR" >&6; } | |
12191 | ||
12192 | ||
12193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5 | |
12194 | $as_echo_n "checking default package type... " >&6; } | |
12195 | case "$VENDOR" in | |
12196 | toss) DEFAULT_PACKAGE=rpm ;; | |
12197 | redhat) DEFAULT_PACKAGE=rpm ;; | |
12198 | fedora) DEFAULT_PACKAGE=rpm ;; | |
12199 | gentoo) DEFAULT_PACKAGE=tgz ;; | |
12200 | arch) DEFAULT_PACKAGE=tgz ;; | |
12201 | sles) DEFAULT_PACKAGE=rpm ;; | |
12202 | slackware) DEFAULT_PACKAGE=tgz ;; | |
12203 | lunar) DEFAULT_PACKAGE=tgz ;; | |
12204 | ubuntu) DEFAULT_PACKAGE=deb ;; | |
12205 | debian) DEFAULT_PACKAGE=deb ;; | |
12206 | *) DEFAULT_PACKAGE=rpm ;; | |
12207 | esac | |
12208 | ||
12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5 | |
12210 | $as_echo "$DEFAULT_PACKAGE" >&6; } | |
12211 | ||
12212 | ||
12213 | ||
12214 | RPM=rpm | |
12215 | RPMBUILD=rpmbuild | |
12216 | ||
12217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5 | |
12218 | $as_echo_n "checking whether $RPM is available... " >&6; } | |
12219 | if tmp=$($RPM --version 2>/dev/null); then : | |
12220 | ||
12221 | RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12222 | HAVE_RPM=yes | |
12223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5 | |
12224 | $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; } | |
12225 | ||
12226 | else | |
12227 | ||
12228 | HAVE_RPM=no | |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5 | |
12230 | $as_echo "$HAVE_RPM" >&6; } | |
12231 | ||
12232 | fi | |
12233 | ||
12234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5 | |
12235 | $as_echo_n "checking whether $RPMBUILD is available... " >&6; } | |
12236 | if tmp=$($RPMBUILD --version 2>/dev/null); then : | |
12237 | ||
12238 | RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
12239 | HAVE_RPMBUILD=yes | |
12240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5 | |
12241 | $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; } | |
12242 | ||
12243 | else | |
12244 | ||
12245 | HAVE_RPMBUILD=no | |
12246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5 | |
12247 | $as_echo "$HAVE_RPMBUILD" >&6; } | |
12248 | ||
12249 | fi | |
12250 | ||
12251 | RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"' | |
12252 | RPM_DEFINE_UTIL= | |
12253 | RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"' | |
12254 | RPM_DEFINE_DKMS= | |
12255 | ||
12256 | SRPM_DEFINE_COMMON='--define "build_src_rpm 1"' | |
12257 | SRPM_DEFINE_UTIL= | |
12258 | SRPM_DEFINE_KMOD= | |
12259 | SRPM_DEFINE_DKMS= | |
12260 | ||
12261 | RPM_SPEC_DIR="rpm/generic" | |
12262 | ||
12263 | # Check whether --with-spec was given. | |
12264 | if test "${with_spec+set}" = set; then : | |
12265 | withval=$with_spec; RPM_SPEC_DIR="rpm/$withval" | |
12266 | fi | |
12267 | ||
12268 | ||
12269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5 | |
12270 | $as_echo_n "checking whether spec files are available... " >&6; } | |
12271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5 | |
12272 | $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; } | |
12273 | ||
12274 | ||
12275 | ||
12276 | ||
12277 | ||
12278 | ||
12279 | ||
12280 | ||
12281 | ||
12282 | ||
12283 | ||
12284 | ||
12285 | ||
12286 | ||
12287 | ||
12288 | ||
12289 | ||
12290 | ||
12291 | ||
12292 | ||
12293 | DPKG=dpkg | |
12294 | DPKGBUILD=dpkg-buildpackage | |
12295 | ||
12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5 | |
12297 | $as_echo_n "checking whether $DPKG is available... " >&6; } | |
12298 | if tmp=$($DPKG --version 2>/dev/null); then : | |
12299 | ||
12300 | DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }') | |
12301 | HAVE_DPKG=yes | |
12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5 | |
12303 | $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; } | |
12304 | ||
12305 | else | |
12306 | ||
12307 | HAVE_DPKG=no | |
12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5 | |
12309 | $as_echo "$HAVE_DPKG" >&6; } | |
12310 | ||
12311 | fi | |
12312 | ||
12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5 | |
12314 | $as_echo_n "checking whether $DPKGBUILD is available... " >&6; } | |
12315 | if tmp=$($DPKGBUILD --version 2>/dev/null); then : | |
12316 | ||
12317 | DPKGBUILD_VERSION=$(echo $tmp | \ | |
12318 | $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.') | |
12319 | HAVE_DPKGBUILD=yes | |
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5 | |
12321 | $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; } | |
12322 | ||
12323 | else | |
12324 | ||
12325 | HAVE_DPKGBUILD=no | |
12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5 | |
12327 | $as_echo "$HAVE_DPKGBUILD" >&6; } | |
12328 | ||
12329 | fi | |
12330 | ||
12331 | ||
12332 | ||
12333 | ||
12334 | ||
12335 | ||
12336 | ||
12337 | ||
12338 | ||
12339 | ||
12340 | ALIEN=alien | |
12341 | ||
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5 | |
12343 | $as_echo_n "checking whether $ALIEN is available... " >&6; } | |
12344 | if tmp=$($ALIEN --version 2>/dev/null); then : | |
12345 | ||
12346 | ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }') | |
12347 | HAVE_ALIEN=yes | |
12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5 | |
12349 | $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; } | |
12350 | ||
12351 | else | |
12352 | ||
12353 | HAVE_ALIEN=no | |
12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5 | |
12355 | $as_echo "$HAVE_ALIEN" >&6; } | |
12356 | ||
12357 | fi | |
12358 | ||
12359 | ||
12360 | ||
12361 | ||
12362 | ||
12363 | ||
12364 | ||
12365 | SPL_CONFIG=all | |
12366 | ||
12367 | # Check whether --with-config was given. | |
12368 | if test "${with_config+set}" = set; then : | |
12369 | withval=$with_config; SPL_CONFIG="$withval" | |
12370 | fi | |
12371 | ||
12372 | # Check whether --enable-linux-builtin was given. | |
12373 | if test "${enable_linux_builtin+set}" = set; then : | |
12374 | enableval=$enable_linux_builtin; | |
12375 | else | |
12376 | enable_linux_builtin=no | |
12377 | fi | |
12378 | ||
12379 | ||
12380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl config" >&5 | |
12381 | $as_echo_n "checking spl config... " >&6; } | |
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_CONFIG" >&5 | |
12383 | $as_echo "$SPL_CONFIG" >&6; }; | |
12384 | ||
12385 | ||
12386 | case "$SPL_CONFIG" in | |
12387 | kernel) | |
12388 | ||
12389 | ||
12390 | # Check whether --with-linux was given. | |
12391 | if test "${with_linux+set}" = set; then : | |
12392 | withval=$with_linux; kernelsrc="$withval" | |
12393 | fi | |
12394 | ||
12395 | ||
12396 | ||
12397 | # Check whether --with-linux-obj was given. | |
12398 | if test "${with_linux_obj+set}" = set; then : | |
12399 | withval=$with_linux_obj; kernelbuild="$withval" | |
12400 | fi | |
12401 | ||
12402 | ||
12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
12404 | $as_echo_n "checking kernel source directory... " >&6; } | |
12405 | if test -z "$kernelsrc"; then | |
12406 | if test -e "/lib/modules/$(uname -r)/source"; then | |
12407 | headersdir="/lib/modules/$(uname -r)/source" | |
12408 | sourcelink=$(readlink -f "$headersdir") | |
12409 | elif test -e "/lib/modules/$(uname -r)/build"; then | |
12410 | headersdir="/lib/modules/$(uname -r)/build" | |
12411 | sourcelink=$(readlink -f "$headersdir") | |
12412 | else | |
12413 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
12414 | /usr/src/linux-* \ | |
12415 | 2>/dev/null | grep -v obj | tail -1) | |
12416 | fi | |
12417 | ||
12418 | if test -n "$sourcelink" && test -e ${sourcelink}; then | |
12419 | kernelsrc=`readlink -f ${sourcelink}` | |
12420 | else | |
12421 | kernelsrc="Not found" | |
12422 | fi | |
12423 | else | |
12424 | if test "$kernelsrc" = "NONE"; then | |
12425 | kernsrcver=NONE | |
12426 | fi | |
12427 | fi | |
12428 | ||
12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
12430 | $as_echo "$kernelsrc" >&6; } | |
12431 | if test ! -d "$kernelsrc"; then | |
12432 | as_fn_error $? " | |
12433 | *** Please make sure the kernel devel package for your distribution | |
12434 | *** is installed and then try again. If that fails, you can specify the | |
12435 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
12436 | fi | |
12437 | ||
12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
12439 | $as_echo_n "checking kernel build directory... " >&6; } | |
12440 | if test -z "$kernelbuild"; then | |
12441 | if test -e "/lib/modules/$(uname -r)/build"; then | |
12442 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
12443 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then | |
12444 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
12445 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then | |
12446 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
12447 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then | |
12448 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
12449 | else | |
12450 | kernelbuild=${kernelsrc} | |
12451 | fi | |
12452 | fi | |
12453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
12454 | $as_echo "$kernelbuild" >&6; } | |
12455 | ||
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
12457 | $as_echo_n "checking kernel source version... " >&6; } | |
12458 | utsrelease1=$kernelbuild/include/linux/version.h | |
12459 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
12460 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
12461 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then | |
12462 | utsrelease=linux/version.h | |
12463 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then | |
12464 | utsrelease=linux/utsrelease.h | |
12465 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then | |
12466 | utsrelease=generated/utsrelease.h | |
12467 | fi | |
12468 | ||
12469 | if test "$utsrelease"; then | |
12470 | kernsrcver=`(echo "#include <$utsrelease>"; | |
12471 | echo "kernsrcver=UTS_RELEASE") | | |
12472 | cpp -I $kernelbuild/include | | |
12473 | grep "^kernsrcver=" | cut -d \" -f 2` | |
12474 | ||
12475 | if test -z "$kernsrcver"; then | |
12476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
12477 | $as_echo "Not found" >&6; } | |
12478 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
12479 | fi | |
12480 | else | |
12481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
12482 | $as_echo "Not found" >&6; } | |
12483 | if test "x$enable_linux_builtin" != xyes; then | |
12484 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
12485 | else | |
12486 | as_fn_error $? " | |
12487 | *** Cannot find UTS_RELEASE definition. | |
12488 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
12489 | fi | |
12490 | fi | |
12491 | ||
12492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
12493 | $as_echo "$kernsrcver" >&6; } | |
12494 | ||
12495 | LINUX=${kernelsrc} | |
12496 | LINUX_OBJ=${kernelbuild} | |
12497 | LINUX_VERSION=${kernsrcver} | |
12498 | ||
12499 | ||
12500 | ||
12501 | ||
12502 | ||
12503 | ||
12504 | modpost=$LINUX/scripts/Makefile.modpost | |
12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
12506 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
12507 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then | |
12508 | if grep -q Modules.symvers $modpost; then | |
12509 | LINUX_SYMBOLS=Modules.symvers | |
12510 | else | |
12511 | LINUX_SYMBOLS=Module.symvers | |
12512 | fi | |
12513 | ||
12514 | if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then | |
12515 | as_fn_error $? " | |
12516 | *** Please make sure the kernel devel package for your distribution | |
12517 | *** is installed. If you are building with a custom kernel, make sure the | |
12518 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
12519 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
12520 | fi | |
12521 | else | |
12522 | LINUX_SYMBOLS=NONE | |
12523 | fi | |
12524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
12525 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
12526 | ||
12527 | ||
12528 | ||
12529 | ||
12530 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
12531 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
12532 | fi | |
12533 | ||
12534 | ||
12535 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes" | |
12536 | ||
12537 | ||
12538 | ||
12539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5 | |
12540 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
12541 | # Check whether --enable-debug was given. | |
12542 | if test "${enable_debug+set}" = set; then : | |
12543 | enableval=$enable_debug; | |
12544 | else | |
12545 | enable_debug=no | |
12546 | fi | |
12547 | ||
12548 | ||
12549 | if test "x$enable_debug" = xyes; then : | |
12550 | ||
12551 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" | |
12552 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
12553 | DEBUG_SPL="_with_debug" | |
12554 | ||
12555 | else | |
12556 | ||
12557 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" | |
12558 | DEBUG_CFLAGS="-DNDEBUG" | |
12559 | DEBUG_SPL="_without_debug" | |
12560 | ||
12561 | fi | |
12562 | ||
12563 | ||
12564 | ||
12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 | |
12566 | $as_echo "$enable_debug" >&6; } | |
12567 | ||
12568 | ||
12569 | # Check whether --enable-debug-kmem was given. | |
12570 | if test "${enable_debug_kmem+set}" = set; then : | |
12571 | enableval=$enable_debug_kmem; | |
12572 | else | |
12573 | enable_debug_kmem=no | |
12574 | fi | |
12575 | ||
12576 | ||
12577 | if test "x$enable_debug_kmem" = xyes; then : | |
12578 | ||
12579 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" | |
12580 | DEBUG_KMEM="_with_debug_kmem" | |
12581 | ||
12582 | $as_echo "#define DEBUG_KMEM 1" >>confdefs.h | |
12583 | ||
12584 | ||
12585 | else | |
12586 | ||
12587 | DEBUG_KMEM="_without_debug_kmem" | |
12588 | ||
12589 | fi | |
12590 | ||
12591 | ||
12592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5 | |
12593 | $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; } | |
12594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5 | |
12595 | $as_echo "$enable_debug_kmem" >&6; } | |
12596 | ||
12597 | ||
12598 | # Check whether --enable-debug-kmem-tracking was given. | |
12599 | if test "${enable_debug_kmem_tracking+set}" = set; then : | |
12600 | enableval=$enable_debug_kmem_tracking; | |
12601 | else | |
12602 | enable_debug_kmem_tracking=no | |
12603 | fi | |
12604 | ||
12605 | ||
12606 | if test "x$enable_debug_kmem_tracking" = xyes; then : | |
12607 | ||
12608 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING" | |
12609 | DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking" | |
12610 | ||
12611 | $as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h | |
12612 | ||
12613 | ||
12614 | else | |
12615 | ||
12616 | DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking" | |
12617 | ||
12618 | fi | |
12619 | ||
12620 | ||
12621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5 | |
12622 | $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; } | |
12623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5 | |
12624 | $as_echo "$enable_debug_kmem_tracking" >&6; } | |
12625 | ||
12626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
12627 | $as_echo_n "checking whether modules can be built... " >&6; } | |
12628 | ||
12629 | ||
12630 | cat confdefs.h - <<_ACEOF >conftest.c | |
12631 | ||
12632 | ||
12633 | int | |
12634 | main (void) | |
12635 | { | |
12636 | ||
12637 | ; | |
12638 | return 0; | |
12639 | } | |
12640 | ||
12641 | _ACEOF | |
12642 | ||
12643 | ||
12644 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
12645 | echo "obj-m := conftest.o" >build/Makefile | |
12646 | modpost_flag='' | |
12647 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12648 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
12649 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12650 | (eval $ac_try) 2>&5 | |
12651 | ac_status=$? | |
12652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12653 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12654 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12655 | (eval $ac_try) 2>&5 | |
12656 | ac_status=$? | |
12657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12658 | test $ac_status = 0; }; }; then : | |
12659 | ||
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12661 | $as_echo "yes" >&6; } | |
12662 | ||
12663 | else | |
12664 | $as_echo "$as_me: failed program was:" >&5 | |
12665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12666 | ||
12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12668 | $as_echo "no" >&6; } | |
12669 | if test "x$enable_linux_builtin" != xyes; then | |
12670 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
12671 | else | |
12672 | as_fn_error $? " | |
12673 | *** Unable to build an empty module. | |
12674 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
12675 | fi | |
12676 | ||
12677 | ||
12678 | ||
12679 | fi | |
12680 | rm -Rf build | |
12681 | ||
12682 | ||
12683 | ||
12684 | if test "x$cross_compiling" != xyes; then : | |
12685 | ||
12686 | if test "$cross_compiling" = yes; then : | |
12687 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12689 | as_fn_error $? "cannot run test program while cross compiling | |
12690 | See \`config.log' for more details" "$LINENO" 5; } | |
12691 | else | |
12692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12693 | /* end confdefs.h. */ | |
12694 | ||
12695 | ||
12696 | #include "$LINUX/include/linux/license.h" | |
12697 | ||
12698 | int | |
12699 | main () | |
12700 | { | |
12701 | ||
12702 | return !license_is_gpl_compatible( | |
12703 | "$SPL_META_LICENSE"); | |
12704 | ||
12705 | ; | |
12706 | return 0; | |
12707 | } | |
12708 | ||
12709 | _ACEOF | |
12710 | if ac_fn_c_try_run "$LINENO"; then : | |
12711 | ||
12712 | ||
12713 | $as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
12714 | ||
12715 | ||
12716 | fi | |
12717 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12718 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12719 | fi | |
12720 | ||
12721 | ||
12722 | fi | |
12723 | ||
12724 | ||
12725 | # Check whether --enable-atomic-spinlocks was given. | |
12726 | if test "${enable_atomic_spinlocks+set}" = set; then : | |
12727 | enableval=$enable_atomic_spinlocks; | |
12728 | else | |
12729 | enable_atomic_spinlocks=check | |
12730 | fi | |
12731 | ||
12732 | ||
12733 | ||
12734 | ||
12735 | cat confdefs.h - <<_ACEOF >conftest.c | |
12736 | ||
12737 | ||
12738 | #include <linux/fs.h> | |
12739 | ||
12740 | int | |
12741 | main (void) | |
12742 | { | |
12743 | ||
12744 | atomic64_t *ptr __attribute__ ((unused)); | |
12745 | ||
12746 | ; | |
12747 | return 0; | |
12748 | } | |
12749 | ||
12750 | _ACEOF | |
12751 | ||
12752 | ||
12753 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
12754 | echo "obj-m := conftest.o" >build/Makefile | |
12755 | modpost_flag='' | |
12756 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12757 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
12758 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12759 | (eval $ac_try) 2>&5 | |
12760 | ac_status=$? | |
12761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12762 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12763 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12764 | (eval $ac_try) 2>&5 | |
12765 | ac_status=$? | |
12766 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12767 | test $ac_status = 0; }; }; then : | |
12768 | ||
12769 | have_atomic64_t=yes | |
12770 | ||
12771 | $as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h | |
12772 | ||
12773 | ||
12774 | else | |
12775 | $as_echo "$as_me: failed program was:" >&5 | |
12776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12777 | ||
12778 | have_atomic64_t=no | |
12779 | ||
12780 | ||
12781 | ||
12782 | fi | |
12783 | rm -Rf build | |
12784 | ||
12785 | ||
12786 | ||
12787 | if test "x$enable_atomic_spinlocks" = xcheck; then : | |
12788 | ||
12789 | if test "x$have_atomic64_t" = xyes; then : | |
12790 | ||
12791 | enable_atomic_spinlocks=no | |
12792 | ||
12793 | else | |
12794 | ||
12795 | enable_atomic_spinlocks=yes | |
12796 | ||
12797 | fi | |
12798 | ||
12799 | fi | |
12800 | ||
12801 | if test "x$enable_atomic_spinlocks" = xyes; then : | |
12802 | ||
12803 | ||
12804 | $as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h | |
12805 | ||
12806 | ||
12807 | else | |
12808 | ||
12809 | if test "x$have_atomic64_t" = xno; then : | |
12810 | ||
12811 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12812 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12813 | as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable | |
12814 | See \`config.log' for more details" "$LINENO" 5; } | |
12815 | ||
12816 | fi | |
12817 | ||
12818 | fi | |
12819 | ||
12820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5 | |
12821 | $as_echo_n "checking whether atomic types use spinlocks... " >&6; } | |
12822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5 | |
12823 | $as_echo "$enable_atomic_spinlocks" >&6; } | |
12824 | ||
12825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5 | |
12826 | $as_echo_n "checking whether kernel defines atomic64_t... " >&6; } | |
12827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5 | |
12828 | $as_echo "$have_atomic64_t" >&6; } | |
12829 | ||
12830 | ||
12831 | tmp_flags="$EXTRA_KCFLAGS" | |
12832 | EXTRA_KCFLAGS="-Werror" | |
12833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5 | |
12834 | $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; } | |
12835 | ||
12836 | ||
12837 | cat confdefs.h - <<_ACEOF >conftest.c | |
12838 | ||
12839 | ||
12840 | #include <linux/mm.h> | |
12841 | ||
12842 | int shrinker_cb(int nr_to_scan, gfp_t gfp_mask); | |
12843 | ||
12844 | int | |
12845 | main (void) | |
12846 | { | |
12847 | ||
12848 | struct shrinker cache_shrinker = { | |
12849 | .shrink = shrinker_cb, | |
12850 | .seeks = DEFAULT_SEEKS, | |
12851 | }; | |
12852 | register_shrinker(&cache_shrinker); | |
12853 | ||
12854 | ; | |
12855 | return 0; | |
12856 | } | |
12857 | ||
12858 | _ACEOF | |
12859 | ||
12860 | ||
12861 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
12862 | echo "obj-m := conftest.o" >build/Makefile | |
12863 | modpost_flag='' | |
12864 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12865 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
12866 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12867 | (eval $ac_try) 2>&5 | |
12868 | ac_status=$? | |
12869 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12870 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12871 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12872 | (eval $ac_try) 2>&5 | |
12873 | ac_status=$? | |
12874 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12875 | test $ac_status = 0; }; }; then : | |
12876 | ||
12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12878 | $as_echo "yes" >&6; } | |
12879 | ||
12880 | $as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h | |
12881 | ||
12882 | ||
12883 | else | |
12884 | $as_echo "$as_me: failed program was:" >&5 | |
12885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12886 | ||
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12888 | $as_echo "no" >&6; } | |
12889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5 | |
12890 | $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; } | |
12891 | ||
12892 | ||
12893 | cat confdefs.h - <<_ACEOF >conftest.c | |
12894 | ||
12895 | ||
12896 | #include <linux/mm.h> | |
12897 | ||
12898 | int shrinker_cb(struct shrinker *, int nr_to_scan, | |
12899 | gfp_t gfp_mask); | |
12900 | ||
12901 | int | |
12902 | main (void) | |
12903 | { | |
12904 | ||
12905 | struct shrinker cache_shrinker = { | |
12906 | .shrink = shrinker_cb, | |
12907 | .seeks = DEFAULT_SEEKS, | |
12908 | }; | |
12909 | register_shrinker(&cache_shrinker); | |
12910 | ||
12911 | ; | |
12912 | return 0; | |
12913 | } | |
12914 | ||
12915 | _ACEOF | |
12916 | ||
12917 | ||
12918 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
12919 | echo "obj-m := conftest.o" >build/Makefile | |
12920 | modpost_flag='' | |
12921 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12922 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
12923 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12924 | (eval $ac_try) 2>&5 | |
12925 | ac_status=$? | |
12926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12927 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12928 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12929 | (eval $ac_try) 2>&5 | |
12930 | ac_status=$? | |
12931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12932 | test $ac_status = 0; }; }; then : | |
12933 | ||
12934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12935 | $as_echo "yes" >&6; } | |
12936 | ||
12937 | $as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h | |
12938 | ||
12939 | ||
12940 | else | |
12941 | $as_echo "$as_me: failed program was:" >&5 | |
12942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12943 | ||
12944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12945 | $as_echo "no" >&6; } | |
12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5 | |
12947 | $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; } | |
12948 | ||
12949 | ||
12950 | cat confdefs.h - <<_ACEOF >conftest.c | |
12951 | ||
12952 | ||
12953 | #include <linux/mm.h> | |
12954 | ||
12955 | int shrinker_cb(struct shrinker *, | |
12956 | struct shrink_control *sc); | |
12957 | ||
12958 | int | |
12959 | main (void) | |
12960 | { | |
12961 | ||
12962 | struct shrinker cache_shrinker = { | |
12963 | .shrink = shrinker_cb, | |
12964 | .seeks = DEFAULT_SEEKS, | |
12965 | }; | |
12966 | register_shrinker(&cache_shrinker); | |
12967 | ||
12968 | ; | |
12969 | return 0; | |
12970 | } | |
12971 | ||
12972 | _ACEOF | |
12973 | ||
12974 | ||
12975 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
12976 | echo "obj-m := conftest.o" >build/Makefile | |
12977 | modpost_flag='' | |
12978 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12979 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
12980 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12981 | (eval $ac_try) 2>&5 | |
12982 | ac_status=$? | |
12983 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12984 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12985 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
12986 | (eval $ac_try) 2>&5 | |
12987 | ac_status=$? | |
12988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12989 | test $ac_status = 0; }; }; then : | |
12990 | ||
12991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12992 | $as_echo "yes" >&6; } | |
12993 | ||
12994 | $as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h | |
12995 | ||
12996 | ||
12997 | else | |
12998 | $as_echo "$as_me: failed program was:" >&5 | |
12999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13000 | ||
13001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13002 | $as_echo "no" >&6; } | |
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5 | |
13004 | $as_echo_n "checking whether ->count_objects callback exists... " >&6; } | |
13005 | ||
13006 | ||
13007 | cat confdefs.h - <<_ACEOF >conftest.c | |
13008 | ||
13009 | ||
13010 | #include <linux/mm.h> | |
13011 | ||
13012 | unsigned long shrinker_cb( | |
13013 | struct shrinker *, | |
13014 | struct shrink_control *sc); | |
13015 | ||
13016 | int | |
13017 | main (void) | |
13018 | { | |
13019 | ||
13020 | struct shrinker cache_shrinker = { | |
13021 | .count_objects = shrinker_cb, | |
13022 | .scan_objects = shrinker_cb, | |
13023 | .seeks = DEFAULT_SEEKS, | |
13024 | }; | |
13025 | register_shrinker(&cache_shrinker); | |
13026 | ||
13027 | ; | |
13028 | return 0; | |
13029 | } | |
13030 | ||
13031 | _ACEOF | |
13032 | ||
13033 | ||
13034 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13035 | echo "obj-m := conftest.o" >build/Makefile | |
13036 | modpost_flag='' | |
13037 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13038 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13039 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13040 | (eval $ac_try) 2>&5 | |
13041 | ac_status=$? | |
13042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13043 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13044 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13045 | (eval $ac_try) 2>&5 | |
13046 | ac_status=$? | |
13047 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13048 | test $ac_status = 0; }; }; then : | |
13049 | ||
13050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13051 | $as_echo "yes" >&6; } | |
13052 | ||
13053 | $as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h | |
13054 | ||
13055 | ||
13056 | else | |
13057 | $as_echo "$as_me: failed program was:" >&5 | |
13058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13059 | ||
13060 | as_fn_error $? "error" "$LINENO" 5 | |
13061 | ||
13062 | ||
13063 | ||
13064 | fi | |
13065 | rm -Rf build | |
13066 | ||
13067 | ||
13068 | ||
13069 | ||
13070 | ||
13071 | fi | |
13072 | rm -Rf build | |
13073 | ||
13074 | ||
13075 | ||
13076 | ||
13077 | ||
13078 | fi | |
13079 | rm -Rf build | |
13080 | ||
13081 | ||
13082 | ||
13083 | ||
13084 | ||
13085 | fi | |
13086 | rm -Rf build | |
13087 | ||
13088 | ||
13089 | EXTRA_KCFLAGS="$tmp_flags" | |
13090 | ||
13091 | ||
13092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5 | |
13093 | $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; } | |
13094 | ||
13095 | ||
13096 | cat confdefs.h - <<_ACEOF >conftest.c | |
13097 | ||
13098 | ||
13099 | #include <linux/sysctl.h> | |
13100 | ||
13101 | int | |
13102 | main (void) | |
13103 | { | |
13104 | ||
13105 | struct ctl_table ctl __attribute__ ((unused)); | |
13106 | ctl.ctl_name = 0; | |
13107 | ||
13108 | ; | |
13109 | return 0; | |
13110 | } | |
13111 | ||
13112 | _ACEOF | |
13113 | ||
13114 | ||
13115 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13116 | echo "obj-m := conftest.o" >build/Makefile | |
13117 | modpost_flag='' | |
13118 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13119 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13120 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13121 | (eval $ac_try) 2>&5 | |
13122 | ac_status=$? | |
13123 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13124 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13125 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13126 | (eval $ac_try) 2>&5 | |
13127 | ac_status=$? | |
13128 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13129 | test $ac_status = 0; }; }; then : | |
13130 | ||
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13132 | $as_echo "yes" >&6; } | |
13133 | ||
13134 | $as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h | |
13135 | ||
13136 | ||
13137 | else | |
13138 | $as_echo "$as_me: failed program was:" >&5 | |
13139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13140 | ||
13141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13142 | $as_echo "no" >&6; } | |
13143 | ||
13144 | ||
13145 | ||
13146 | fi | |
13147 | rm -Rf build | |
13148 | ||
13149 | ||
13150 | ||
13151 | ||
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5 | |
13153 | $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; } | |
13154 | ||
13155 | ||
13156 | cat confdefs.h - <<_ACEOF >conftest.c | |
13157 | ||
13158 | ||
13159 | #if defined(CONFIG_TRIM_UNUSED_KSYMS) | |
13160 | #error CONFIG_TRIM_UNUSED_KSYMS not defined | |
13161 | #endif | |
13162 | ||
13163 | int | |
13164 | main (void) | |
13165 | { | |
13166 | ||
13167 | ; | |
13168 | return 0; | |
13169 | } | |
13170 | ||
13171 | _ACEOF | |
13172 | ||
13173 | ||
13174 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13175 | echo "obj-m := conftest.o" >build/Makefile | |
13176 | modpost_flag='' | |
13177 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13178 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13179 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13180 | (eval $ac_try) 2>&5 | |
13181 | ac_status=$? | |
13182 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13183 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13184 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13185 | (eval $ac_try) 2>&5 | |
13186 | ac_status=$? | |
13187 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13188 | test $ac_status = 0; }; }; then : | |
13189 | ||
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13191 | $as_echo "yes" >&6; } | |
13192 | ||
13193 | else | |
13194 | $as_echo "$as_me: failed program was:" >&5 | |
13195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13196 | ||
13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13198 | $as_echo "no" >&6; } | |
13199 | as_fn_error $? " | |
13200 | *** This kernel has unused symbols trimming enabled, please disable. | |
13201 | *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." "$LINENO" 5 | |
13202 | ||
13203 | ||
13204 | ||
13205 | fi | |
13206 | rm -Rf build | |
13207 | ||
13208 | ||
13209 | ||
13210 | ||
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5 | |
13212 | $as_echo_n "checking whether PDE_DATA() is available... " >&6; } | |
13213 | ||
13214 | ||
13215 | ||
13216 | cat confdefs.h - <<_ACEOF >conftest.c | |
13217 | ||
13218 | ||
13219 | #include <linux/proc_fs.h> | |
13220 | ||
13221 | int | |
13222 | main (void) | |
13223 | { | |
13224 | ||
13225 | PDE_DATA(NULL); | |
13226 | ||
13227 | ; | |
13228 | return 0; | |
13229 | } | |
13230 | ||
13231 | _ACEOF | |
13232 | ||
13233 | ||
13234 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13235 | echo "obj-m := conftest.o" >build/Makefile | |
13236 | modpost_flag='' | |
13237 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13238 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13239 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13240 | (eval $ac_try) 2>&5 | |
13241 | ac_status=$? | |
13242 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13243 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13244 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13245 | (eval $ac_try) 2>&5 | |
13246 | ac_status=$? | |
13247 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13248 | test $ac_status = 0; }; }; then : | |
13249 | rc=0 | |
13250 | else | |
13251 | $as_echo "$as_me: failed program was:" >&5 | |
13252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13253 | rc=1 | |
13254 | ||
13255 | ||
13256 | fi | |
13257 | rm -Rf build | |
13258 | ||
13259 | ||
13260 | if test $rc -ne 0; then : | |
13261 | ||
13262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13263 | $as_echo "no" >&6; } | |
13264 | ||
13265 | else | |
13266 | if test "x$enable_linux_builtin" != xyes; then | |
13267 | ||
13268 | grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \ | |
13269 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13270 | rc=$? | |
13271 | if test $rc -ne 0; then | |
13272 | export=0 | |
13273 | for file in ; do | |
13274 | grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \ | |
13275 | "$LINUX_OBJ/$file" 2>/dev/null | |
13276 | rc=$? | |
13277 | if test $rc -eq 0; then | |
13278 | export=1 | |
13279 | break; | |
13280 | fi | |
13281 | done | |
13282 | if test $export -eq 0; then : | |
13283 | rc=1 | |
13284 | else : | |
13285 | rc=0 | |
13286 | fi | |
13287 | else : | |
13288 | rc=0 | |
13289 | fi | |
13290 | ||
13291 | fi | |
13292 | if test $rc -ne 0; then : | |
13293 | ||
13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13295 | $as_echo "no" >&6; } | |
13296 | ||
13297 | else : | |
13298 | ||
13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13300 | $as_echo "yes" >&6; } | |
13301 | ||
13302 | $as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h | |
13303 | ||
13304 | ||
13305 | fi | |
13306 | fi | |
13307 | ||
13308 | ||
13309 | tmp_flags="$EXTRA_KCFLAGS" | |
13310 | EXTRA_KCFLAGS="-Werror" | |
13311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5 | |
13312 | $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; } | |
13313 | ||
13314 | ||
13315 | cat confdefs.h - <<_ACEOF >conftest.c | |
13316 | ||
13317 | ||
13318 | #include <linux/spinlock.h> | |
13319 | #include <linux/fs_struct.h> | |
13320 | #include <linux/path.h> | |
13321 | void (*const set_fs_pwd_func) | |
13322 | (struct fs_struct *, const struct path *) | |
13323 | = set_fs_pwd; | |
13324 | ||
13325 | int | |
13326 | main (void) | |
13327 | { | |
13328 | ||
13329 | return 0; | |
13330 | ||
13331 | ; | |
13332 | return 0; | |
13333 | } | |
13334 | ||
13335 | _ACEOF | |
13336 | ||
13337 | ||
13338 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13339 | echo "obj-m := conftest.o" >build/Makefile | |
13340 | modpost_flag='' | |
13341 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13342 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13343 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13344 | (eval $ac_try) 2>&5 | |
13345 | ac_status=$? | |
13346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13347 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13348 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13349 | (eval $ac_try) 2>&5 | |
13350 | ac_status=$? | |
13351 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13352 | test $ac_status = 0; }; }; then : | |
13353 | ||
13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13355 | $as_echo "yes" >&6; } | |
13356 | ||
13357 | $as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h | |
13358 | ||
13359 | ||
13360 | else | |
13361 | $as_echo "$as_me: failed program was:" >&5 | |
13362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13363 | ||
13364 | ||
13365 | ||
13366 | cat confdefs.h - <<_ACEOF >conftest.c | |
13367 | ||
13368 | ||
13369 | #include <linux/spinlock.h> | |
13370 | #include <linux/fs_struct.h> | |
13371 | #include <linux/path.h> | |
13372 | void (*const set_fs_pwd_func) | |
13373 | (struct fs_struct *, struct path *) | |
13374 | = set_fs_pwd; | |
13375 | ||
13376 | int | |
13377 | main (void) | |
13378 | { | |
13379 | ||
13380 | return 0; | |
13381 | ||
13382 | ; | |
13383 | return 0; | |
13384 | } | |
13385 | ||
13386 | _ACEOF | |
13387 | ||
13388 | ||
13389 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13390 | echo "obj-m := conftest.o" >build/Makefile | |
13391 | modpost_flag='' | |
13392 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13393 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13394 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13395 | (eval $ac_try) 2>&5 | |
13396 | ac_status=$? | |
13397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13398 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13399 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13400 | (eval $ac_try) 2>&5 | |
13401 | ac_status=$? | |
13402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13403 | test $ac_status = 0; }; }; then : | |
13404 | ||
13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13406 | $as_echo "no" >&6; } | |
13407 | ||
13408 | else | |
13409 | $as_echo "$as_me: failed program was:" >&5 | |
13410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13411 | ||
13412 | as_fn_error $? "unknown" "$LINENO" 5 | |
13413 | ||
13414 | ||
13415 | ||
13416 | fi | |
13417 | rm -Rf build | |
13418 | ||
13419 | ||
13420 | ||
13421 | ||
13422 | ||
13423 | fi | |
13424 | rm -Rf build | |
13425 | ||
13426 | ||
13427 | EXTRA_KCFLAGS="$tmp_flags" | |
13428 | ||
13429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5 | |
13430 | $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; } | |
13431 | ||
13432 | ||
13433 | cat confdefs.h - <<_ACEOF >conftest.c | |
13434 | ||
13435 | ||
13436 | #include <linux/fs.h> | |
13437 | ||
13438 | int | |
13439 | main (void) | |
13440 | { | |
13441 | ||
13442 | vfs_unlink((struct inode *) NULL, (struct dentry *) NULL); | |
13443 | ||
13444 | ; | |
13445 | return 0; | |
13446 | } | |
13447 | ||
13448 | _ACEOF | |
13449 | ||
13450 | ||
13451 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13452 | echo "obj-m := conftest.o" >build/Makefile | |
13453 | modpost_flag='' | |
13454 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13455 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13456 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13457 | (eval $ac_try) 2>&5 | |
13458 | ac_status=$? | |
13459 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13460 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13461 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13462 | (eval $ac_try) 2>&5 | |
13463 | ac_status=$? | |
13464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13465 | test $ac_status = 0; }; }; then : | |
13466 | ||
13467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13468 | $as_echo "yes" >&6; } | |
13469 | ||
13470 | $as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h | |
13471 | ||
13472 | ||
13473 | else | |
13474 | $as_echo "$as_me: failed program was:" >&5 | |
13475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13476 | ||
13477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13478 | $as_echo "no" >&6; } | |
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5 | |
13480 | $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; } | |
13481 | ||
13482 | ||
13483 | cat confdefs.h - <<_ACEOF >conftest.c | |
13484 | ||
13485 | ||
13486 | #include <linux/fs.h> | |
13487 | ||
13488 | int | |
13489 | main (void) | |
13490 | { | |
13491 | ||
13492 | vfs_unlink((struct inode *) NULL, | |
13493 | (struct dentry *) NULL, | |
13494 | (struct inode **) NULL); | |
13495 | ||
13496 | ; | |
13497 | return 0; | |
13498 | } | |
13499 | ||
13500 | _ACEOF | |
13501 | ||
13502 | ||
13503 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13504 | echo "obj-m := conftest.o" >build/Makefile | |
13505 | modpost_flag='' | |
13506 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13507 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13508 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13509 | (eval $ac_try) 2>&5 | |
13510 | ac_status=$? | |
13511 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13512 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13513 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13514 | (eval $ac_try) 2>&5 | |
13515 | ac_status=$? | |
13516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13517 | test $ac_status = 0; }; }; then : | |
13518 | ||
13519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13520 | $as_echo "yes" >&6; } | |
13521 | ||
13522 | $as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h | |
13523 | ||
13524 | ||
13525 | else | |
13526 | $as_echo "$as_me: failed program was:" >&5 | |
13527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13528 | ||
13529 | as_fn_error $? "no" "$LINENO" 5 | |
13530 | ||
13531 | ||
13532 | ||
13533 | fi | |
13534 | rm -Rf build | |
13535 | ||
13536 | ||
13537 | ||
13538 | ||
13539 | ||
13540 | ||
13541 | fi | |
13542 | rm -Rf build | |
13543 | ||
13544 | ||
13545 | ||
13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5 | |
13547 | $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; } | |
13548 | ||
13549 | ||
13550 | cat confdefs.h - <<_ACEOF >conftest.c | |
13551 | ||
13552 | ||
13553 | #include <linux/fs.h> | |
13554 | ||
13555 | int | |
13556 | main (void) | |
13557 | { | |
13558 | ||
13559 | vfs_rename((struct inode *) NULL, (struct dentry *) NULL, | |
13560 | (struct inode *) NULL, (struct dentry *) NULL); | |
13561 | ||
13562 | ; | |
13563 | return 0; | |
13564 | } | |
13565 | ||
13566 | _ACEOF | |
13567 | ||
13568 | ||
13569 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13570 | echo "obj-m := conftest.o" >build/Makefile | |
13571 | modpost_flag='' | |
13572 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13573 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13574 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13575 | (eval $ac_try) 2>&5 | |
13576 | ac_status=$? | |
13577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13578 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13579 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13580 | (eval $ac_try) 2>&5 | |
13581 | ac_status=$? | |
13582 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13583 | test $ac_status = 0; }; }; then : | |
13584 | ||
13585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13586 | $as_echo "yes" >&6; } | |
13587 | ||
13588 | $as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h | |
13589 | ||
13590 | ||
13591 | else | |
13592 | $as_echo "$as_me: failed program was:" >&5 | |
13593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13594 | ||
13595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13596 | $as_echo "no" >&6; } | |
13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5 | |
13598 | $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; } | |
13599 | ||
13600 | ||
13601 | cat confdefs.h - <<_ACEOF >conftest.c | |
13602 | ||
13603 | ||
13604 | #include <linux/fs.h> | |
13605 | ||
13606 | int | |
13607 | main (void) | |
13608 | { | |
13609 | ||
13610 | vfs_rename((struct inode *) NULL, | |
13611 | (struct dentry *) NULL, | |
13612 | (struct inode *) NULL, | |
13613 | (struct dentry *) NULL, | |
13614 | (struct inode **) NULL); | |
13615 | ||
13616 | ; | |
13617 | return 0; | |
13618 | } | |
13619 | ||
13620 | _ACEOF | |
13621 | ||
13622 | ||
13623 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13624 | echo "obj-m := conftest.o" >build/Makefile | |
13625 | modpost_flag='' | |
13626 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13627 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13628 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13629 | (eval $ac_try) 2>&5 | |
13630 | ac_status=$? | |
13631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13632 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13633 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13634 | (eval $ac_try) 2>&5 | |
13635 | ac_status=$? | |
13636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13637 | test $ac_status = 0; }; }; then : | |
13638 | ||
13639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13640 | $as_echo "yes" >&6; } | |
13641 | ||
13642 | $as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h | |
13643 | ||
13644 | ||
13645 | else | |
13646 | $as_echo "$as_me: failed program was:" >&5 | |
13647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13648 | ||
13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13650 | $as_echo "no" >&6; } | |
13651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5 | |
13652 | $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; } | |
13653 | ||
13654 | ||
13655 | cat confdefs.h - <<_ACEOF >conftest.c | |
13656 | ||
13657 | ||
13658 | #include <linux/fs.h> | |
13659 | ||
13660 | int | |
13661 | main (void) | |
13662 | { | |
13663 | ||
13664 | vfs_rename((struct inode *) NULL, | |
13665 | (struct dentry *) NULL, | |
13666 | (struct inode *) NULL, | |
13667 | (struct dentry *) NULL, | |
13668 | (struct inode **) NULL, | |
13669 | (unsigned int) 0); | |
13670 | ||
13671 | ; | |
13672 | return 0; | |
13673 | } | |
13674 | ||
13675 | _ACEOF | |
13676 | ||
13677 | ||
13678 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13679 | echo "obj-m := conftest.o" >build/Makefile | |
13680 | modpost_flag='' | |
13681 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13682 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13683 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13684 | (eval $ac_try) 2>&5 | |
13685 | ac_status=$? | |
13686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13687 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13688 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13689 | (eval $ac_try) 2>&5 | |
13690 | ac_status=$? | |
13691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13692 | test $ac_status = 0; }; }; then : | |
13693 | ||
13694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13695 | $as_echo "yes" >&6; } | |
13696 | ||
13697 | $as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h | |
13698 | ||
13699 | ||
13700 | else | |
13701 | $as_echo "$as_me: failed program was:" >&5 | |
13702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13703 | ||
13704 | as_fn_error $? "no" "$LINENO" 5 | |
13705 | ||
13706 | ||
13707 | ||
13708 | fi | |
13709 | rm -Rf build | |
13710 | ||
13711 | ||
13712 | ||
13713 | ||
13714 | ||
13715 | fi | |
13716 | rm -Rf build | |
13717 | ||
13718 | ||
13719 | ||
13720 | ||
13721 | ||
13722 | fi | |
13723 | rm -Rf build | |
13724 | ||
13725 | ||
13726 | ||
13727 | ||
13728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5 | |
13729 | $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; } | |
13730 | ||
13731 | ||
13732 | cat confdefs.h - <<_ACEOF >conftest.c | |
13733 | ||
13734 | ||
13735 | #include <linux/fs.h> | |
13736 | ||
13737 | int | |
13738 | main (void) | |
13739 | { | |
13740 | ||
13741 | vfs_fsync(NULL, 0); | |
13742 | ||
13743 | ; | |
13744 | return 0; | |
13745 | } | |
13746 | ||
13747 | _ACEOF | |
13748 | ||
13749 | ||
13750 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13751 | echo "obj-m := conftest.o" >build/Makefile | |
13752 | modpost_flag='' | |
13753 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13754 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13755 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13756 | (eval $ac_try) 2>&5 | |
13757 | ac_status=$? | |
13758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13759 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13760 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13761 | (eval $ac_try) 2>&5 | |
13762 | ac_status=$? | |
13763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13764 | test $ac_status = 0; }; }; then : | |
13765 | ||
13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13767 | $as_echo "yes" >&6; } | |
13768 | ||
13769 | $as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h | |
13770 | ||
13771 | ||
13772 | else | |
13773 | $as_echo "$as_me: failed program was:" >&5 | |
13774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13775 | ||
13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13777 | $as_echo "no" >&6; } | |
13778 | ||
13779 | ||
13780 | ||
13781 | fi | |
13782 | rm -Rf build | |
13783 | ||
13784 | ||
13785 | ||
13786 | ||
13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5 | |
13788 | $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; } | |
13789 | ||
13790 | ||
13791 | cat confdefs.h - <<_ACEOF >conftest.c | |
13792 | ||
13793 | ||
13794 | #include <linux/fs.h> | |
13795 | ||
13796 | int | |
13797 | main (void) | |
13798 | { | |
13799 | ||
13800 | struct inode_operations ops; | |
13801 | ops.truncate_range = NULL; | |
13802 | ||
13803 | ; | |
13804 | return 0; | |
13805 | } | |
13806 | ||
13807 | _ACEOF | |
13808 | ||
13809 | ||
13810 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13811 | echo "obj-m := conftest.o" >build/Makefile | |
13812 | modpost_flag='' | |
13813 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13814 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13815 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13816 | (eval $ac_try) 2>&5 | |
13817 | ac_status=$? | |
13818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13819 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13820 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13821 | (eval $ac_try) 2>&5 | |
13822 | ac_status=$? | |
13823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13824 | test $ac_status = 0; }; }; then : | |
13825 | ||
13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13827 | $as_echo "yes" >&6; } | |
13828 | ||
13829 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h | |
13830 | ||
13831 | ||
13832 | else | |
13833 | $as_echo "$as_me: failed program was:" >&5 | |
13834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13835 | ||
13836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13837 | $as_echo "no" >&6; } | |
13838 | ||
13839 | ||
13840 | ||
13841 | fi | |
13842 | rm -Rf build | |
13843 | ||
13844 | ||
13845 | ||
13846 | ||
13847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5 | |
13848 | $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; } | |
13849 | tmp_flags="$EXTRA_KCFLAGS" | |
13850 | EXTRA_KCFLAGS="-Werror" | |
13851 | ||
13852 | ||
13853 | cat confdefs.h - <<_ACEOF >conftest.c | |
13854 | ||
13855 | ||
13856 | #include <linux/sched.h> | |
13857 | #include <linux/fs_struct.h> | |
13858 | ||
13859 | int | |
13860 | main (void) | |
13861 | { | |
13862 | ||
13863 | static struct fs_struct fs; | |
13864 | spin_lock_init(&fs.lock); | |
13865 | ||
13866 | ; | |
13867 | return 0; | |
13868 | } | |
13869 | ||
13870 | _ACEOF | |
13871 | ||
13872 | ||
13873 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13874 | echo "obj-m := conftest.o" >build/Makefile | |
13875 | modpost_flag='' | |
13876 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13877 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13878 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13879 | (eval $ac_try) 2>&5 | |
13880 | ac_status=$? | |
13881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13882 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13883 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13884 | (eval $ac_try) 2>&5 | |
13885 | ac_status=$? | |
13886 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13887 | test $ac_status = 0; }; }; then : | |
13888 | ||
13889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13890 | $as_echo "yes" >&6; } | |
13891 | ||
13892 | $as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h | |
13893 | ||
13894 | ||
13895 | else | |
13896 | $as_echo "$as_me: failed program was:" >&5 | |
13897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13898 | ||
13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13900 | $as_echo "no" >&6; } | |
13901 | ||
13902 | ||
13903 | ||
13904 | fi | |
13905 | rm -Rf build | |
13906 | ||
13907 | ||
13908 | EXTRA_KCFLAGS="$tmp_flags" | |
13909 | ||
13910 | ||
13911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5 | |
13912 | $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; } | |
13913 | ||
13914 | ||
13915 | cat confdefs.h - <<_ACEOF >conftest.c | |
13916 | ||
13917 | ||
13918 | #include <linux/uidgid.h> | |
13919 | ||
13920 | int | |
13921 | main (void) | |
13922 | { | |
13923 | ||
13924 | kuid_t userid = KUIDT_INIT(0); | |
13925 | kgid_t groupid = KGIDT_INIT(0); | |
13926 | ||
13927 | ; | |
13928 | return 0; | |
13929 | } | |
13930 | ||
13931 | _ACEOF | |
13932 | ||
13933 | ||
13934 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13935 | echo "obj-m := conftest.o" >build/Makefile | |
13936 | modpost_flag='' | |
13937 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13938 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13939 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13940 | (eval $ac_try) 2>&5 | |
13941 | ac_status=$? | |
13942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13943 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13944 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13945 | (eval $ac_try) 2>&5 | |
13946 | ac_status=$? | |
13947 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13948 | test $ac_status = 0; }; }; then : | |
13949 | ||
13950 | ||
13951 | ||
13952 | cat confdefs.h - <<_ACEOF >conftest.c | |
13953 | ||
13954 | ||
13955 | #include <linux/uidgid.h> | |
13956 | ||
13957 | int | |
13958 | main (void) | |
13959 | { | |
13960 | ||
13961 | kuid_t userid = 0; | |
13962 | kgid_t groupid = 0; | |
13963 | ||
13964 | ; | |
13965 | return 0; | |
13966 | } | |
13967 | ||
13968 | _ACEOF | |
13969 | ||
13970 | ||
13971 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13972 | echo "obj-m := conftest.o" >build/Makefile | |
13973 | modpost_flag='' | |
13974 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13975 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13976 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13977 | (eval $ac_try) 2>&5 | |
13978 | ac_status=$? | |
13979 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13980 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13981 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
13982 | (eval $ac_try) 2>&5 | |
13983 | ac_status=$? | |
13984 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13985 | test $ac_status = 0; }; }; then : | |
13986 | ||
13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5 | |
13988 | $as_echo "yes; optional" >&6; } | |
13989 | ||
13990 | else | |
13991 | $as_echo "$as_me: failed program was:" >&5 | |
13992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13993 | ||
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5 | |
13995 | $as_echo "yes; mandatory" >&6; } | |
13996 | ||
13997 | $as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h | |
13998 | ||
13999 | ||
14000 | ||
14001 | ||
14002 | fi | |
14003 | rm -Rf build | |
14004 | ||
14005 | ||
14006 | ||
14007 | else | |
14008 | $as_echo "$as_me: failed program was:" >&5 | |
14009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14010 | ||
14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14012 | $as_echo "no" >&6; } | |
14013 | ||
14014 | ||
14015 | ||
14016 | fi | |
14017 | rm -Rf build | |
14018 | ||
14019 | ||
14020 | ||
87d546d8 TG |
14021 | |
14022 | ||
14023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
14024 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
14025 | ||
14026 | ||
14027 | cat confdefs.h - <<_ACEOF >conftest.c | |
14028 | ||
14029 | ||
14030 | #include <linux/fs.h> | |
14031 | ||
14032 | int | |
14033 | main (void) | |
14034 | { | |
14035 | ||
14036 | long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL; | |
14037 | struct file_operations fops __attribute__ ((unused)) = { | |
14038 | .fallocate = fallocate, | |
14039 | }; | |
14040 | ||
14041 | ; | |
14042 | return 0; | |
14043 | } | |
14044 | ||
14045 | _ACEOF | |
14046 | ||
14047 | ||
14048 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14049 | echo "obj-m := conftest.o" >build/Makefile | |
14050 | modpost_flag='' | |
14051 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14052 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14053 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14054 | (eval $ac_try) 2>&5 | |
14055 | ac_status=$? | |
14056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14057 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14058 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14059 | (eval $ac_try) 2>&5 | |
14060 | ac_status=$? | |
14061 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14062 | test $ac_status = 0; }; }; then : | |
14063 | ||
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14065 | $as_echo "yes" >&6; } | |
14066 | ||
14067 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
14068 | ||
14069 | ||
14070 | else | |
14071 | $as_echo "$as_me: failed program was:" >&5 | |
14072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14073 | ||
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14075 | $as_echo "no" >&6; } | |
14076 | ||
14077 | ||
14078 | ||
14079 | fi | |
14080 | rm -Rf build | |
14081 | ||
14082 | ||
14083 | ||
14084 | ||
14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
14086 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
14087 | ||
14088 | ||
14089 | cat confdefs.h - <<_ACEOF >conftest.c | |
14090 | ||
14091 | ||
14092 | #include <linux/fs.h> | |
14093 | ||
14094 | int | |
14095 | main (void) | |
14096 | { | |
14097 | ||
14098 | long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL; | |
14099 | struct inode_operations fops __attribute__ ((unused)) = { | |
14100 | .fallocate = fallocate, | |
14101 | }; | |
14102 | ||
14103 | ; | |
14104 | return 0; | |
14105 | } | |
14106 | ||
14107 | _ACEOF | |
14108 | ||
14109 | ||
14110 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14111 | echo "obj-m := conftest.o" >build/Makefile | |
14112 | modpost_flag='' | |
14113 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14114 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14115 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14116 | (eval $ac_try) 2>&5 | |
14117 | ac_status=$? | |
14118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14119 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14120 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14121 | (eval $ac_try) 2>&5 | |
14122 | ac_status=$? | |
14123 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14124 | test $ac_status = 0; }; }; then : | |
14125 | ||
14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14127 | $as_echo "yes" >&6; } | |
14128 | ||
14129 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
14130 | ||
14131 | ||
14132 | else | |
14133 | $as_echo "$as_me: failed program was:" >&5 | |
14134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14135 | ||
14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14137 | $as_echo "no" >&6; } | |
14138 | ||
14139 | ||
14140 | ||
14141 | fi | |
14142 | rm -Rf build | |
14143 | ||
14144 | ||
14145 | ||
14146 | ||
14147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
14148 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
14149 | ||
14150 | ||
14151 | cat confdefs.h - <<_ACEOF >conftest.c | |
14152 | ||
14153 | ||
14154 | #include <linux/fs.h> | |
14155 | ||
14156 | int | |
14157 | main (void) | |
14158 | { | |
14159 | ||
14160 | long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL; | |
14161 | struct file_operations_no_const fops __attribute__ ((unused)) = { | |
14162 | .fallocate = fallocate, | |
14163 | }; | |
14164 | ||
14165 | ; | |
14166 | return 0; | |
14167 | } | |
14168 | ||
14169 | _ACEOF | |
14170 | ||
14171 | ||
14172 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14173 | echo "obj-m := conftest.o" >build/Makefile | |
14174 | modpost_flag='' | |
14175 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14176 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14177 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14178 | (eval $ac_try) 2>&5 | |
14179 | ac_status=$? | |
14180 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14181 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14182 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14183 | (eval $ac_try) 2>&5 | |
14184 | ac_status=$? | |
14185 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14186 | test $ac_status = 0; }; }; then : | |
14187 | ||
14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14189 | $as_echo "yes" >&6; } | |
14190 | ||
14191 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
14192 | ||
14193 | ||
14194 | else | |
14195 | $as_echo "$as_me: failed program was:" >&5 | |
14196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14197 | ||
14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14199 | $as_echo "no" >&6; } | |
14200 | ||
14201 | ||
14202 | ||
14203 | fi | |
14204 | rm -Rf build | |
14205 | ||
14206 | ||
14207 | ||
14208 | ||
14209 | ||
14210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5 | |
14211 | $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; } | |
14212 | ||
14213 | ||
14214 | cat confdefs.h - <<_ACEOF >conftest.c | |
14215 | ||
14216 | ||
14217 | #if !defined(CONFIG_ZLIB_INFLATE) && \ | |
14218 | !defined(CONFIG_ZLIB_INFLATE_MODULE) | |
14219 | #error CONFIG_ZLIB_INFLATE not defined | |
14220 | #endif | |
14221 | ||
14222 | int | |
14223 | main (void) | |
14224 | { | |
14225 | ||
14226 | ; | |
14227 | return 0; | |
14228 | } | |
14229 | ||
14230 | _ACEOF | |
14231 | ||
14232 | ||
14233 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14234 | echo "obj-m := conftest.o" >build/Makefile | |
14235 | modpost_flag='' | |
14236 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14237 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14238 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14239 | (eval $ac_try) 2>&5 | |
14240 | ac_status=$? | |
14241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14242 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14243 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14244 | (eval $ac_try) 2>&5 | |
14245 | ac_status=$? | |
14246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14247 | test $ac_status = 0; }; }; then : | |
14248 | ||
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14250 | $as_echo "yes" >&6; } | |
14251 | ||
14252 | else | |
14253 | $as_echo "$as_me: failed program was:" >&5 | |
14254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14255 | ||
14256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14257 | $as_echo "no" >&6; } | |
14258 | as_fn_error $? " | |
14259 | *** This kernel does not include the required zlib inflate support. | |
14260 | *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5 | |
14261 | ||
14262 | ||
14263 | ||
14264 | fi | |
14265 | rm -Rf build | |
14266 | ||
14267 | ||
14268 | ||
14269 | ||
14270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5 | |
14271 | $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; } | |
14272 | ||
14273 | ||
14274 | cat confdefs.h - <<_ACEOF >conftest.c | |
14275 | ||
14276 | ||
14277 | #if !defined(CONFIG_ZLIB_DEFLATE) && \ | |
14278 | !defined(CONFIG_ZLIB_DEFLATE_MODULE) | |
14279 | #error CONFIG_ZLIB_DEFLATE not defined | |
14280 | #endif | |
14281 | ||
14282 | int | |
14283 | main (void) | |
14284 | { | |
14285 | ||
14286 | ; | |
14287 | return 0; | |
14288 | } | |
14289 | ||
14290 | _ACEOF | |
14291 | ||
14292 | ||
14293 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14294 | echo "obj-m := conftest.o" >build/Makefile | |
14295 | modpost_flag='' | |
14296 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14297 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14298 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14299 | (eval $ac_try) 2>&5 | |
14300 | ac_status=$? | |
14301 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14302 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14303 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14304 | (eval $ac_try) 2>&5 | |
14305 | ac_status=$? | |
14306 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14307 | test $ac_status = 0; }; }; then : | |
14308 | ||
14309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14310 | $as_echo "yes" >&6; } | |
14311 | ||
14312 | else | |
14313 | $as_echo "$as_me: failed program was:" >&5 | |
14314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14315 | ||
14316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14317 | $as_echo "no" >&6; } | |
14318 | as_fn_error $? " | |
14319 | *** This kernel does not include the required zlib deflate support. | |
14320 | *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5 | |
14321 | ||
14322 | ||
14323 | ||
14324 | fi | |
14325 | rm -Rf build | |
14326 | ||
14327 | ||
14328 | ||
14329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5 | |
14330 | $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; } | |
14331 | ||
14332 | ||
14333 | cat confdefs.h - <<_ACEOF >conftest.c | |
14334 | ||
14335 | ||
14336 | #include <linux/zlib.h> | |
14337 | ||
14338 | int | |
14339 | main (void) | |
14340 | { | |
14341 | ||
14342 | return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL); | |
14343 | ||
14344 | ; | |
14345 | return 0; | |
14346 | } | |
14347 | ||
14348 | _ACEOF | |
14349 | ||
14350 | ||
14351 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14352 | echo "obj-m := conftest.o" >build/Makefile | |
14353 | modpost_flag='' | |
14354 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14355 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14356 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14357 | (eval $ac_try) 2>&5 | |
14358 | ac_status=$? | |
14359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14360 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14362 | (eval $ac_try) 2>&5 | |
14363 | ac_status=$? | |
14364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14365 | test $ac_status = 0; }; }; then : | |
14366 | ||
14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14368 | $as_echo "yes" >&6; } | |
14369 | ||
14370 | $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h | |
14371 | ||
14372 | ||
14373 | else | |
14374 | $as_echo "$as_me: failed program was:" >&5 | |
14375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14376 | ||
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14378 | $as_echo "no" >&6; } | |
14379 | ||
14380 | ||
14381 | ||
14382 | fi | |
14383 | rm -Rf build | |
14384 | ||
14385 | ||
14386 | ||
14387 | ||
14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5 | |
14389 | $as_echo_n "checking whether struct shrink_control exists... " >&6; } | |
14390 | ||
14391 | ||
14392 | cat confdefs.h - <<_ACEOF >conftest.c | |
14393 | ||
14394 | ||
14395 | #include <linux/mm.h> | |
14396 | ||
14397 | int | |
14398 | main (void) | |
14399 | { | |
14400 | ||
14401 | struct shrink_control sc __attribute__ ((unused)); | |
14402 | ||
14403 | sc.nr_to_scan = 0; | |
14404 | sc.gfp_mask = GFP_KERNEL; | |
14405 | ||
14406 | ; | |
14407 | return 0; | |
14408 | } | |
14409 | ||
14410 | _ACEOF | |
14411 | ||
14412 | ||
14413 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14414 | echo "obj-m := conftest.o" >build/Makefile | |
14415 | modpost_flag='' | |
14416 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14417 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14418 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14419 | (eval $ac_try) 2>&5 | |
14420 | ac_status=$? | |
14421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14422 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14423 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14424 | (eval $ac_try) 2>&5 | |
14425 | ac_status=$? | |
14426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14427 | test $ac_status = 0; }; }; then : | |
14428 | ||
14429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14430 | $as_echo "yes" >&6; } | |
14431 | ||
14432 | $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h | |
14433 | ||
14434 | ||
14435 | else | |
14436 | $as_echo "$as_me: failed program was:" >&5 | |
14437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14438 | ||
14439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14440 | $as_echo "no" >&6; } | |
14441 | ||
14442 | ||
14443 | ||
14444 | fi | |
14445 | rm -Rf build | |
14446 | ||
14447 | ||
14448 | ||
14449 | ||
14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5 | |
14451 | $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; } | |
14452 | tmp_flags="$EXTRA_KCFLAGS" | |
14453 | EXTRA_KCFLAGS="-Werror" | |
14454 | ||
14455 | ||
14456 | cat confdefs.h - <<_ACEOF >conftest.c | |
14457 | ||
14458 | ||
14459 | #include <linux/rwsem.h> | |
14460 | ||
14461 | int | |
14462 | main (void) | |
14463 | { | |
14464 | ||
14465 | struct rw_semaphore dummy_semaphore __attribute__ ((unused)); | |
1ec59ff7 CIK |
14466 | raw_spinlock_t dummy_lock __attribute__ ((unused)) = |
14467 | __RAW_SPIN_LOCK_INITIALIZER(dummy_lock); | |
87d546d8 TG |
14468 | dummy_semaphore.wait_lock = dummy_lock; |
14469 | ||
14470 | ; | |
14471 | return 0; | |
14472 | } | |
14473 | ||
14474 | _ACEOF | |
14475 | ||
14476 | ||
14477 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14478 | echo "obj-m := conftest.o" >build/Makefile | |
14479 | modpost_flag='' | |
14480 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14481 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14482 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14483 | (eval $ac_try) 2>&5 | |
14484 | ac_status=$? | |
14485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14486 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14487 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14488 | (eval $ac_try) 2>&5 | |
14489 | ac_status=$? | |
14490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14491 | test $ac_status = 0; }; }; then : | |
14492 | ||
14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14494 | $as_echo "yes" >&6; } | |
14495 | ||
14496 | $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h | |
14497 | ||
14498 | ||
14499 | else | |
14500 | $as_echo "$as_me: failed program was:" >&5 | |
14501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14502 | ||
14503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14504 | $as_echo "no" >&6; } | |
14505 | ||
14506 | ||
14507 | ||
14508 | fi | |
14509 | rm -Rf build | |
14510 | ||
14511 | ||
14512 | EXTRA_KCFLAGS="$tmp_flags" | |
14513 | ||
14514 | ||
14515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5 | |
14516 | $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; } | |
14517 | tmp_flags="$EXTRA_KCFLAGS" | |
14518 | EXTRA_KCFLAGS="-Werror" | |
14519 | ||
14520 | ||
14521 | cat confdefs.h - <<_ACEOF >conftest.c | |
14522 | ||
14523 | ||
14524 | #include <linux/rwsem.h> | |
14525 | ||
14526 | int | |
14527 | main (void) | |
14528 | { | |
14529 | ||
14530 | struct rw_semaphore dummy_semaphore __attribute__ ((unused)); | |
14531 | dummy_semaphore.activity = 0; | |
14532 | ||
14533 | ; | |
14534 | return 0; | |
14535 | } | |
14536 | ||
14537 | _ACEOF | |
14538 | ||
14539 | ||
14540 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14541 | echo "obj-m := conftest.o" >build/Makefile | |
14542 | modpost_flag='' | |
14543 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14544 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14545 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14546 | (eval $ac_try) 2>&5 | |
14547 | ac_status=$? | |
14548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14549 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14550 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14551 | (eval $ac_try) 2>&5 | |
14552 | ac_status=$? | |
14553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14554 | test $ac_status = 0; }; }; then : | |
14555 | ||
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14557 | $as_echo "yes" >&6; } | |
14558 | ||
14559 | $as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h | |
14560 | ||
14561 | ||
14562 | else | |
14563 | $as_echo "$as_me: failed program was:" >&5 | |
14564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14565 | ||
14566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14567 | $as_echo "no" >&6; } | |
14568 | ||
14569 | ||
14570 | ||
14571 | fi | |
14572 | rm -Rf build | |
14573 | ||
14574 | ||
14575 | EXTRA_KCFLAGS="$tmp_flags" | |
14576 | ||
14577 | ||
14578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5 | |
14579 | $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; } | |
14580 | tmp_flags="$EXTRA_KCFLAGS" | |
14581 | EXTRA_KCFLAGS="-Werror" | |
14582 | ||
14583 | ||
14584 | cat confdefs.h - <<_ACEOF >conftest.c | |
14585 | ||
14586 | ||
14587 | #include <linux/rwsem.h> | |
14588 | ||
14589 | int | |
14590 | main (void) | |
14591 | { | |
14592 | ||
14593 | DECLARE_RWSEM(dummy_semaphore); | |
14594 | (void) atomic_long_read(&dummy_semaphore.count); | |
14595 | ||
14596 | ; | |
14597 | return 0; | |
14598 | } | |
14599 | ||
14600 | _ACEOF | |
14601 | ||
14602 | ||
14603 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14604 | echo "obj-m := conftest.o" >build/Makefile | |
14605 | modpost_flag='' | |
14606 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14607 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14608 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14609 | (eval $ac_try) 2>&5 | |
14610 | ac_status=$? | |
14611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14612 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14613 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14614 | (eval $ac_try) 2>&5 | |
14615 | ac_status=$? | |
14616 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14617 | test $ac_status = 0; }; }; then : | |
14618 | ||
14619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14620 | $as_echo "yes" >&6; } | |
14621 | ||
14622 | $as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h | |
14623 | ||
14624 | ||
14625 | else | |
14626 | $as_echo "$as_me: failed program was:" >&5 | |
14627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14628 | ||
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14630 | $as_echo "no" >&6; } | |
14631 | ||
14632 | ||
14633 | ||
14634 | fi | |
14635 | rm -Rf build | |
14636 | ||
14637 | ||
14638 | EXTRA_KCFLAGS="$tmp_flags" | |
14639 | ||
14640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5 | |
14641 | $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; } | |
14642 | ||
14643 | ||
14644 | cat confdefs.h - <<_ACEOF >conftest.c | |
14645 | ||
14646 | ||
14647 | #include <linux/sched.h> | |
14648 | #include <linux/sched/rt.h> | |
14649 | ||
14650 | int | |
14651 | main (void) | |
14652 | { | |
14653 | ||
14654 | return 0; | |
14655 | ||
14656 | ; | |
14657 | return 0; | |
14658 | } | |
14659 | ||
14660 | _ACEOF | |
14661 | ||
14662 | ||
14663 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14664 | echo "obj-m := conftest.o" >build/Makefile | |
14665 | modpost_flag='' | |
14666 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14667 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14668 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14669 | (eval $ac_try) 2>&5 | |
14670 | ac_status=$? | |
14671 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14672 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14673 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14674 | (eval $ac_try) 2>&5 | |
14675 | ac_status=$? | |
14676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14677 | test $ac_status = 0; }; }; then : | |
14678 | ||
14679 | ||
14680 | $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h | |
14681 | ||
14682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14683 | $as_echo "yes" >&6; } | |
14684 | ||
14685 | else | |
14686 | $as_echo "$as_me: failed program was:" >&5 | |
14687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14688 | ||
14689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14690 | $as_echo "no" >&6; } | |
14691 | ||
14692 | ||
14693 | ||
3e990ae0 CIK |
14694 | fi |
14695 | rm -Rf build | |
14696 | ||
14697 | ||
14698 | ||
14699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/signal.h exists" >&5 | |
14700 | $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; } | |
14701 | ||
14702 | ||
14703 | cat confdefs.h - <<_ACEOF >conftest.c | |
14704 | ||
14705 | ||
14706 | #include <linux/sched.h> | |
14707 | #include <linux/sched/signal.h> | |
14708 | ||
14709 | int | |
14710 | main (void) | |
14711 | { | |
14712 | ||
14713 | return 0; | |
14714 | ||
14715 | ; | |
14716 | return 0; | |
14717 | } | |
14718 | ||
14719 | _ACEOF | |
14720 | ||
14721 | ||
14722 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14723 | echo "obj-m := conftest.o" >build/Makefile | |
14724 | modpost_flag='' | |
14725 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14726 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14727 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14728 | (eval $ac_try) 2>&5 | |
14729 | ac_status=$? | |
14730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14731 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14732 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14733 | (eval $ac_try) 2>&5 | |
14734 | ac_status=$? | |
14735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14736 | test $ac_status = 0; }; }; then : | |
14737 | ||
14738 | ||
14739 | $as_echo "#define HAVE_SCHED_SIGNAL_HEADER 1" >>confdefs.h | |
14740 | ||
14741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14742 | $as_echo "yes" >&6; } | |
14743 | ||
14744 | else | |
14745 | $as_echo "$as_me: failed program was:" >&5 | |
14746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14747 | ||
14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14749 | $as_echo "no" >&6; } | |
14750 | ||
14751 | ||
14752 | ||
87d546d8 TG |
14753 | fi |
14754 | rm -Rf build | |
14755 | ||
14756 | ||
14757 | ||
14758 | ||
3e990ae0 CIK |
14759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 4 args" >&5 |
14760 | $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; } | |
87d546d8 TG |
14761 | |
14762 | ||
14763 | cat confdefs.h - <<_ACEOF >conftest.c | |
14764 | ||
14765 | ||
14766 | #include <linux/fs.h> | |
14767 | ||
14768 | int | |
14769 | main (void) | |
14770 | { | |
14771 | ||
3e990ae0 CIK |
14772 | vfs_getattr((const struct path *)NULL, |
14773 | (struct kstat *)NULL, | |
14774 | (u32)0, | |
14775 | (unsigned int)0); | |
87d546d8 TG |
14776 | |
14777 | ; | |
14778 | return 0; | |
14779 | } | |
14780 | ||
14781 | _ACEOF | |
14782 | ||
14783 | ||
14784 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14785 | echo "obj-m := conftest.o" >build/Makefile | |
14786 | modpost_flag='' | |
14787 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14788 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14789 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14790 | (eval $ac_try) 2>&5 | |
14791 | ac_status=$? | |
14792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14793 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14794 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14795 | (eval $ac_try) 2>&5 | |
14796 | ac_status=$? | |
14797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14798 | test $ac_status = 0; }; }; then : | |
14799 | ||
3e990ae0 CIK |
14800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14801 | $as_echo "yes" >&6; } | |
87d546d8 | 14802 | |
3e990ae0 | 14803 | $as_echo "#define HAVE_4ARGS_VFS_GETATTR 1" >>confdefs.h |
87d546d8 TG |
14804 | |
14805 | ||
14806 | else | |
14807 | $as_echo "$as_me: failed program was:" >&5 | |
14808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14809 | ||
3e990ae0 CIK |
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14811 | $as_echo "no" >&6; } | |
14812 | ||
14813 | ||
14814 | ||
14815 | fi | |
14816 | rm -Rf build | |
14817 | ||
14818 | ||
14819 | ||
14820 | ||
14821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 3 args" >&5 | |
14822 | $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; } | |
87d546d8 TG |
14823 | |
14824 | ||
14825 | cat confdefs.h - <<_ACEOF >conftest.c | |
14826 | ||
14827 | ||
3e990ae0 | 14828 | #include <linux/fs.h> |
87d546d8 TG |
14829 | |
14830 | int | |
14831 | main (void) | |
14832 | { | |
14833 | ||
3e990ae0 CIK |
14834 | vfs_getattr((struct vfsmount *)NULL, |
14835 | (struct dentry *)NULL, | |
14836 | (struct kstat *)NULL); | |
87d546d8 TG |
14837 | |
14838 | ; | |
14839 | return 0; | |
14840 | } | |
14841 | ||
14842 | _ACEOF | |
14843 | ||
14844 | ||
14845 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14846 | echo "obj-m := conftest.o" >build/Makefile | |
14847 | modpost_flag='' | |
14848 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14849 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14850 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14851 | (eval $ac_try) 2>&5 | |
14852 | ac_status=$? | |
14853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14854 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14855 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14856 | (eval $ac_try) 2>&5 | |
14857 | ac_status=$? | |
14858 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14859 | test $ac_status = 0; }; }; then : | |
14860 | ||
3e990ae0 CIK |
14861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14862 | $as_echo "yes" >&6; } | |
14863 | ||
14864 | $as_echo "#define HAVE_3ARGS_VFS_GETATTR 1" >>confdefs.h | |
14865 | ||
87d546d8 TG |
14866 | |
14867 | else | |
14868 | $as_echo "$as_me: failed program was:" >&5 | |
14869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14870 | ||
3e990ae0 CIK |
14871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14872 | $as_echo "no" >&6; } | |
87d546d8 TG |
14873 | |
14874 | ||
14875 | ||
14876 | fi | |
14877 | rm -Rf build | |
14878 | ||
14879 | ||
14880 | ||
14881 | ||
3e990ae0 CIK |
14882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 2 args" >&5 |
14883 | $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; } | |
14884 | ||
14885 | ||
14886 | cat confdefs.h - <<_ACEOF >conftest.c | |
14887 | ||
14888 | ||
14889 | #include <linux/fs.h> | |
14890 | ||
14891 | int | |
14892 | main (void) | |
14893 | { | |
14894 | ||
14895 | vfs_getattr((struct path *) NULL, | |
14896 | (struct kstat *)NULL); | |
14897 | ||
14898 | ; | |
14899 | return 0; | |
14900 | } | |
14901 | ||
14902 | _ACEOF | |
14903 | ||
14904 | ||
14905 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14906 | echo "obj-m := conftest.o" >build/Makefile | |
14907 | modpost_flag='' | |
14908 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14909 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14910 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14911 | (eval $ac_try) 2>&5 | |
14912 | ac_status=$? | |
14913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14914 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14915 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14916 | (eval $ac_try) 2>&5 | |
14917 | ac_status=$? | |
14918 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14919 | test $ac_status = 0; }; }; then : | |
14920 | ||
14921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14922 | $as_echo "yes" >&6; } | |
14923 | ||
14924 | $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h | |
14925 | ||
14926 | ||
14927 | else | |
14928 | $as_echo "$as_me: failed program was:" >&5 | |
14929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14930 | ||
14931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14932 | $as_echo "no" >&6; } | |
14933 | ||
14934 | ||
87d546d8 TG |
14935 | |
14936 | fi | |
14937 | rm -Rf build | |
14938 | ||
14939 | ||
14940 | ||
14941 | ||
14942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5 | |
14943 | $as_echo_n "checking whether usleep_range() is available... " >&6; } | |
14944 | ||
14945 | ||
14946 | cat confdefs.h - <<_ACEOF >conftest.c | |
14947 | ||
14948 | ||
14949 | #include <linux/delay.h> | |
14950 | ||
14951 | int | |
14952 | main (void) | |
14953 | { | |
14954 | ||
14955 | usleep_range(0, 0); | |
14956 | ||
14957 | ; | |
14958 | return 0; | |
14959 | } | |
14960 | ||
14961 | _ACEOF | |
14962 | ||
14963 | ||
14964 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14965 | echo "obj-m := conftest.o" >build/Makefile | |
14966 | modpost_flag='' | |
14967 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14968 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14969 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14970 | (eval $ac_try) 2>&5 | |
14971 | ac_status=$? | |
14972 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14973 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14974 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
14975 | (eval $ac_try) 2>&5 | |
14976 | ac_status=$? | |
14977 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14978 | test $ac_status = 0; }; }; then : | |
14979 | ||
14980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14981 | $as_echo "yes" >&6; } | |
14982 | ||
14983 | $as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h | |
14984 | ||
14985 | ||
14986 | else | |
14987 | $as_echo "$as_me: failed program was:" >&5 | |
14988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14989 | ||
14990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14991 | $as_echo "no" >&6; } | |
14992 | ||
14993 | ||
14994 | ||
14995 | fi | |
14996 | rm -Rf build | |
14997 | ||
14998 | ||
14999 | ||
15000 | ||
15001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5 | |
15002 | $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; } | |
15003 | ||
15004 | ||
15005 | cat confdefs.h - <<_ACEOF >conftest.c | |
15006 | ||
15007 | ||
15008 | #include <linux/slab.h> | |
15009 | ||
15010 | int | |
15011 | main (void) | |
15012 | { | |
15013 | ||
15014 | struct kmem_cache cachep __attribute__ ((unused)); | |
15015 | cachep.allocflags = GFP_KERNEL; | |
15016 | ||
15017 | ; | |
15018 | return 0; | |
15019 | } | |
15020 | ||
15021 | _ACEOF | |
15022 | ||
15023 | ||
15024 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15025 | echo "obj-m := conftest.o" >build/Makefile | |
15026 | modpost_flag='' | |
15027 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15028 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15029 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15030 | (eval $ac_try) 2>&5 | |
15031 | ac_status=$? | |
15032 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15033 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15034 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15035 | (eval $ac_try) 2>&5 | |
15036 | ac_status=$? | |
15037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15038 | test $ac_status = 0; }; }; then : | |
15039 | ||
15040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15041 | $as_echo "yes" >&6; } | |
15042 | ||
15043 | $as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h | |
15044 | ||
15045 | ||
15046 | else | |
15047 | $as_echo "$as_me: failed program was:" >&5 | |
15048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15049 | ||
15050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15051 | $as_echo "no" >&6; } | |
15052 | ||
15053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5 | |
15054 | $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; } | |
15055 | ||
15056 | ||
15057 | cat confdefs.h - <<_ACEOF >conftest.c | |
15058 | ||
15059 | ||
15060 | #include <linux/slab.h> | |
15061 | ||
15062 | int | |
15063 | main (void) | |
15064 | { | |
15065 | ||
15066 | struct kmem_cache cachep __attribute__ ((unused)); | |
15067 | cachep.gfpflags = GFP_KERNEL; | |
15068 | ||
15069 | ; | |
15070 | return 0; | |
15071 | } | |
15072 | ||
15073 | _ACEOF | |
15074 | ||
15075 | ||
15076 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15077 | echo "obj-m := conftest.o" >build/Makefile | |
15078 | modpost_flag='' | |
15079 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15080 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15081 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15082 | (eval $ac_try) 2>&5 | |
15083 | ac_status=$? | |
15084 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15085 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15086 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15087 | (eval $ac_try) 2>&5 | |
15088 | ac_status=$? | |
15089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15090 | test $ac_status = 0; }; }; then : | |
15091 | ||
15092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15093 | $as_echo "yes" >&6; } | |
15094 | ||
15095 | $as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h | |
15096 | ||
15097 | ||
15098 | else | |
15099 | $as_echo "$as_me: failed program was:" >&5 | |
15100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15101 | ||
15102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15103 | $as_echo "no" >&6; } | |
15104 | ||
15105 | ||
15106 | ||
15107 | fi | |
15108 | rm -Rf build | |
15109 | ||
15110 | ||
15111 | ||
15112 | ||
15113 | ||
15114 | fi | |
15115 | rm -Rf build | |
15116 | ||
15117 | ||
15118 | ||
15119 | ||
15120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5 | |
15121 | $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; } | |
15122 | ||
15123 | ||
15124 | cat confdefs.h - <<_ACEOF >conftest.c | |
15125 | ||
15126 | ||
15127 | #include <linux/wait.h> | |
15128 | ||
15129 | int | |
15130 | main (void) | |
15131 | { | |
15132 | ||
15133 | int (*action)(void *) = NULL; | |
15134 | wait_on_bit(NULL, 0, action, 0); | |
15135 | ||
15136 | ; | |
15137 | return 0; | |
15138 | } | |
15139 | ||
15140 | _ACEOF | |
15141 | ||
15142 | ||
15143 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15144 | echo "obj-m := conftest.o" >build/Makefile | |
15145 | modpost_flag='' | |
15146 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15147 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15148 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15149 | (eval $ac_try) 2>&5 | |
15150 | ac_status=$? | |
15151 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15152 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15153 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15154 | (eval $ac_try) 2>&5 | |
15155 | ac_status=$? | |
15156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15157 | test $ac_status = 0; }; }; then : | |
15158 | ||
15159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15160 | $as_echo "yes" >&6; } | |
15161 | ||
15162 | $as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h | |
15163 | ||
15164 | ||
15165 | else | |
15166 | $as_echo "$as_me: failed program was:" >&5 | |
15167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15168 | ||
15169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15170 | $as_echo "no" >&6; } | |
15171 | ||
15172 | ||
15173 | ||
15174 | fi | |
15175 | rm -Rf build | |
15176 | ||
15177 | ||
15178 | ||
15179 | ||
15180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5 | |
15181 | $as_echo_n "checking whether inode_lock_shared() exists... " >&6; } | |
15182 | tmp_flags="$EXTRA_KCFLAGS" | |
15183 | EXTRA_KCFLAGS="-Werror" | |
15184 | ||
15185 | ||
15186 | cat confdefs.h - <<_ACEOF >conftest.c | |
15187 | ||
15188 | ||
15189 | #include <linux/fs.h> | |
15190 | ||
15191 | int | |
15192 | main (void) | |
15193 | { | |
15194 | ||
15195 | struct inode *inode = NULL; | |
15196 | inode_lock_shared(inode); | |
15197 | ||
15198 | ; | |
15199 | return 0; | |
15200 | } | |
15201 | ||
15202 | _ACEOF | |
15203 | ||
15204 | ||
15205 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15206 | echo "obj-m := conftest.o" >build/Makefile | |
15207 | modpost_flag='' | |
15208 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15209 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15210 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15211 | (eval $ac_try) 2>&5 | |
15212 | ac_status=$? | |
15213 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15214 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15215 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15216 | (eval $ac_try) 2>&5 | |
15217 | ac_status=$? | |
15218 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15219 | test $ac_status = 0; }; }; then : | |
15220 | ||
15221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15222 | $as_echo "yes" >&6; } | |
15223 | ||
15224 | $as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h | |
15225 | ||
15226 | ||
15227 | else | |
15228 | $as_echo "$as_me: failed program was:" >&5 | |
15229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15230 | ||
15231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15232 | $as_echo "no" >&6; } | |
15233 | ||
15234 | ||
15235 | ||
15236 | fi | |
15237 | rm -Rf build | |
15238 | ||
15239 | ||
15240 | EXTRA_KCFLAGS="$tmp_flags" | |
15241 | ||
15242 | ||
15243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex has owner" >&5 | |
15244 | $as_echo_n "checking whether mutex has owner... " >&6; } | |
15245 | tmp_flags="$EXTRA_KCFLAGS" | |
15246 | EXTRA_KCFLAGS="-Werror" | |
15247 | ||
15248 | ||
15249 | cat confdefs.h - <<_ACEOF >conftest.c | |
15250 | ||
15251 | ||
15252 | #include <linux/mutex.h> | |
15253 | #include <linux/spinlock.h> | |
15254 | ||
15255 | int | |
15256 | main (void) | |
15257 | { | |
15258 | ||
15259 | DEFINE_MUTEX(m); | |
15260 | struct task_struct *t __attribute__ ((unused)); | |
15261 | t = m.owner; | |
15262 | ||
15263 | ; | |
15264 | return 0; | |
15265 | } | |
15266 | ||
15267 | _ACEOF | |
15268 | ||
15269 | ||
15270 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15271 | echo "obj-m := conftest.o" >build/Makefile | |
15272 | modpost_flag='' | |
15273 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15274 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15275 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15276 | (eval $ac_try) 2>&5 | |
15277 | ac_status=$? | |
15278 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15279 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15280 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15281 | (eval $ac_try) 2>&5 | |
15282 | ac_status=$? | |
15283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15284 | test $ac_status = 0; }; }; then : | |
15285 | ||
15286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15287 | $as_echo "yes" >&6; } | |
15288 | ||
15289 | $as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h | |
15290 | ||
15291 | ||
15292 | else | |
15293 | $as_echo "$as_me: failed program was:" >&5 | |
15294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15295 | ||
15296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15297 | $as_echo "no" >&6; } | |
15298 | ||
15299 | ||
15300 | ||
15301 | fi | |
15302 | rm -Rf build | |
15303 | ||
15304 | ||
15305 | EXTRA_KCFLAGS="$tmp_flags" | |
15306 | ||
15307 | ||
15308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether group_info->gid exists" >&5 | |
15309 | $as_echo_n "checking whether group_info->gid exists... " >&6; } | |
15310 | tmp_flags="$EXTRA_KCFLAGS" | |
15311 | EXTRA_KCFLAGS="-Werror" | |
15312 | ||
15313 | ||
15314 | cat confdefs.h - <<_ACEOF >conftest.c | |
15315 | ||
15316 | ||
15317 | #include <linux/cred.h> | |
15318 | ||
15319 | int | |
15320 | main (void) | |
15321 | { | |
15322 | ||
15323 | struct group_info *gi = groups_alloc(1); | |
15324 | gi->gid[0] = KGIDT_INIT(0); | |
15325 | ||
15326 | ; | |
15327 | return 0; | |
15328 | } | |
15329 | ||
15330 | _ACEOF | |
15331 | ||
15332 | ||
15333 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15334 | echo "obj-m := conftest.o" >build/Makefile | |
15335 | modpost_flag='' | |
15336 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15337 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15338 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15339 | (eval $ac_try) 2>&5 | |
15340 | ac_status=$? | |
15341 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15342 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15343 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15344 | (eval $ac_try) 2>&5 | |
15345 | ac_status=$? | |
15346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15347 | test $ac_status = 0; }; }; then : | |
15348 | ||
15349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15350 | $as_echo "yes" >&6; } | |
15351 | ||
15352 | $as_echo "#define HAVE_GROUP_INFO_GID 1" >>confdefs.h | |
15353 | ||
15354 | ||
15355 | else | |
15356 | $as_echo "$as_me: failed program was:" >&5 | |
15357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15358 | ||
15359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15360 | $as_echo "no" >&6; } | |
15361 | ||
15362 | ||
15363 | ||
15364 | fi | |
15365 | rm -Rf build | |
15366 | ||
15367 | ||
15368 | EXTRA_KCFLAGS="$tmp_flags" | |
15369 | ||
1681e039 CIK |
15370 | |
15371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_queue_entry_t exists" >&5 | |
15372 | $as_echo_n "checking whether wait_queue_entry_t exists... " >&6; } | |
15373 | ||
15374 | ||
15375 | cat confdefs.h - <<_ACEOF >conftest.c | |
15376 | ||
15377 | ||
15378 | #include <linux/wait.h> | |
15379 | ||
15380 | int | |
15381 | main (void) | |
15382 | { | |
15383 | ||
15384 | wait_queue_entry_t *entry __attribute__ ((unused)); | |
15385 | ||
15386 | ; | |
15387 | return 0; | |
15388 | } | |
15389 | ||
15390 | _ACEOF | |
15391 | ||
15392 | ||
15393 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15394 | echo "obj-m := conftest.o" >build/Makefile | |
15395 | modpost_flag='' | |
15396 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15397 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15398 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15399 | (eval $ac_try) 2>&5 | |
15400 | ac_status=$? | |
15401 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15402 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15403 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15404 | (eval $ac_try) 2>&5 | |
15405 | ac_status=$? | |
15406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15407 | test $ac_status = 0; }; }; then : | |
15408 | ||
15409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15410 | $as_echo "yes" >&6; } | |
15411 | ||
15412 | $as_echo "#define HAVE_WAIT_QUEUE_ENTRY_T 1" >>confdefs.h | |
15413 | ||
15414 | ||
15415 | else | |
15416 | $as_echo "$as_me: failed program was:" >&5 | |
15417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15418 | ||
15419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15420 | $as_echo "no" >&6; } | |
15421 | ||
15422 | ||
15423 | ||
15424 | fi | |
15425 | rm -Rf build | |
15426 | ||
15427 | ||
15428 | ||
15429 | ||
15430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wq_head->head and wq_entry->entry exist" >&5 | |
15431 | $as_echo_n "checking whether wq_head->head and wq_entry->entry exist... " >&6; } | |
15432 | ||
15433 | ||
15434 | cat confdefs.h - <<_ACEOF >conftest.c | |
15435 | ||
15436 | ||
15437 | #include <linux/wait.h> | |
15438 | ||
15439 | #ifdef HAVE_WAIT_QUEUE_ENTRY_T | |
15440 | typedef wait_queue_head_t spl_wait_queue_head_t; | |
15441 | typedef wait_queue_entry_t spl_wait_queue_entry_t; | |
15442 | #else | |
15443 | typedef wait_queue_head_t spl_wait_queue_head_t; | |
15444 | typedef wait_queue_t spl_wait_queue_entry_t; | |
15445 | #endif | |
15446 | ||
15447 | int | |
15448 | main (void) | |
15449 | { | |
15450 | ||
15451 | spl_wait_queue_head_t wq_head; | |
15452 | spl_wait_queue_entry_t wq_entry; | |
15453 | struct list_head *head __attribute__ ((unused)); | |
15454 | struct list_head *entry __attribute__ ((unused)); | |
15455 | ||
15456 | head = &wq_head.head; | |
15457 | entry = &wq_entry.entry; | |
15458 | ||
15459 | ; | |
15460 | return 0; | |
15461 | } | |
15462 | ||
15463 | _ACEOF | |
15464 | ||
15465 | ||
15466 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15467 | echo "obj-m := conftest.o" >build/Makefile | |
15468 | modpost_flag='' | |
15469 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15470 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15471 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15472 | (eval $ac_try) 2>&5 | |
15473 | ac_status=$? | |
15474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15475 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15476 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15477 | (eval $ac_try) 2>&5 | |
15478 | ac_status=$? | |
15479 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15480 | test $ac_status = 0; }; }; then : | |
15481 | ||
15482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15483 | $as_echo "yes" >&6; } | |
15484 | ||
15485 | $as_echo "#define HAVE_WAIT_QUEUE_HEAD_ENTRY 1" >>confdefs.h | |
15486 | ||
15487 | ||
15488 | else | |
15489 | $as_echo "$as_me: failed program was:" >&5 | |
15490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15491 | ||
15492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15493 | $as_echo "no" >&6; } | |
15494 | ||
15495 | ||
15496 | ||
15497 | fi | |
15498 | rm -Rf build | |
15499 | ||
15500 | ||
15501 | ||
87d546d8 TG |
15502 | ;; |
15503 | user) ;; | |
15504 | all) | |
15505 | ||
15506 | ||
15507 | # Check whether --with-linux was given. | |
15508 | if test "${with_linux+set}" = set; then : | |
15509 | withval=$with_linux; kernelsrc="$withval" | |
15510 | fi | |
15511 | ||
15512 | ||
15513 | ||
15514 | # Check whether --with-linux-obj was given. | |
15515 | if test "${with_linux_obj+set}" = set; then : | |
15516 | withval=$with_linux_obj; kernelbuild="$withval" | |
15517 | fi | |
15518 | ||
15519 | ||
15520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5 | |
15521 | $as_echo_n "checking kernel source directory... " >&6; } | |
15522 | if test -z "$kernelsrc"; then | |
15523 | if test -e "/lib/modules/$(uname -r)/source"; then | |
15524 | headersdir="/lib/modules/$(uname -r)/source" | |
15525 | sourcelink=$(readlink -f "$headersdir") | |
15526 | elif test -e "/lib/modules/$(uname -r)/build"; then | |
15527 | headersdir="/lib/modules/$(uname -r)/build" | |
15528 | sourcelink=$(readlink -f "$headersdir") | |
15529 | else | |
15530 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
15531 | /usr/src/linux-* \ | |
15532 | 2>/dev/null | grep -v obj | tail -1) | |
15533 | fi | |
15534 | ||
15535 | if test -n "$sourcelink" && test -e ${sourcelink}; then | |
15536 | kernelsrc=`readlink -f ${sourcelink}` | |
15537 | else | |
15538 | kernelsrc="Not found" | |
15539 | fi | |
15540 | else | |
15541 | if test "$kernelsrc" = "NONE"; then | |
15542 | kernsrcver=NONE | |
15543 | fi | |
15544 | fi | |
15545 | ||
15546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5 | |
15547 | $as_echo "$kernelsrc" >&6; } | |
15548 | if test ! -d "$kernelsrc"; then | |
15549 | as_fn_error $? " | |
15550 | *** Please make sure the kernel devel package for your distribution | |
15551 | *** is installed and then try again. If that fails, you can specify the | |
15552 | *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5 | |
15553 | fi | |
15554 | ||
15555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5 | |
15556 | $as_echo_n "checking kernel build directory... " >&6; } | |
15557 | if test -z "$kernelbuild"; then | |
15558 | if test -e "/lib/modules/$(uname -r)/build"; then | |
15559 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
15560 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then | |
15561 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
15562 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then | |
15563 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
15564 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then | |
15565 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
15566 | else | |
15567 | kernelbuild=${kernelsrc} | |
15568 | fi | |
15569 | fi | |
15570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5 | |
15571 | $as_echo "$kernelbuild" >&6; } | |
15572 | ||
15573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5 | |
15574 | $as_echo_n "checking kernel source version... " >&6; } | |
15575 | utsrelease1=$kernelbuild/include/linux/version.h | |
15576 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
15577 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
15578 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then | |
15579 | utsrelease=linux/version.h | |
15580 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then | |
15581 | utsrelease=linux/utsrelease.h | |
15582 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then | |
15583 | utsrelease=generated/utsrelease.h | |
15584 | fi | |
15585 | ||
15586 | if test "$utsrelease"; then | |
15587 | kernsrcver=`(echo "#include <$utsrelease>"; | |
15588 | echo "kernsrcver=UTS_RELEASE") | | |
15589 | cpp -I $kernelbuild/include | | |
15590 | grep "^kernsrcver=" | cut -d \" -f 2` | |
15591 | ||
15592 | if test -z "$kernsrcver"; then | |
15593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
15594 | $as_echo "Not found" >&6; } | |
15595 | as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5 | |
15596 | fi | |
15597 | else | |
15598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 | |
15599 | $as_echo "Not found" >&6; } | |
15600 | if test "x$enable_linux_builtin" != xyes; then | |
15601 | as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5 | |
15602 | else | |
15603 | as_fn_error $? " | |
15604 | *** Cannot find UTS_RELEASE definition. | |
15605 | *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5 | |
15606 | fi | |
15607 | fi | |
15608 | ||
15609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5 | |
15610 | $as_echo "$kernsrcver" >&6; } | |
15611 | ||
15612 | LINUX=${kernelsrc} | |
15613 | LINUX_OBJ=${kernelbuild} | |
15614 | LINUX_VERSION=${kernsrcver} | |
15615 | ||
15616 | ||
15617 | ||
15618 | ||
15619 | ||
15620 | ||
15621 | modpost=$LINUX/scripts/Makefile.modpost | |
15622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5 | |
15623 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
15624 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then | |
15625 | if grep -q Modules.symvers $modpost; then | |
15626 | LINUX_SYMBOLS=Modules.symvers | |
15627 | else | |
15628 | LINUX_SYMBOLS=Module.symvers | |
15629 | fi | |
15630 | ||
15631 | if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then | |
15632 | as_fn_error $? " | |
15633 | *** Please make sure the kernel devel package for your distribution | |
15634 | *** is installed. If you are building with a custom kernel, make sure the | |
15635 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
15636 | *** option refers to the location of the kernel source." "$LINENO" 5 | |
15637 | fi | |
15638 | else | |
15639 | LINUX_SYMBOLS=NONE | |
15640 | fi | |
15641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5 | |
15642 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
15643 | ||
15644 | ||
15645 | ||
15646 | ||
15647 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
15648 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
15649 | fi | |
15650 | ||
15651 | ||
15652 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes" | |
15653 | ||
15654 | ||
15655 | ||
15656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5 | |
15657 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
15658 | # Check whether --enable-debug was given. | |
15659 | if test "${enable_debug+set}" = set; then : | |
15660 | enableval=$enable_debug; | |
15661 | else | |
15662 | enable_debug=no | |
15663 | fi | |
15664 | ||
15665 | ||
15666 | if test "x$enable_debug" = xyes; then : | |
15667 | ||
15668 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" | |
15669 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
15670 | DEBUG_SPL="_with_debug" | |
15671 | ||
15672 | else | |
15673 | ||
15674 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" | |
15675 | DEBUG_CFLAGS="-DNDEBUG" | |
15676 | DEBUG_SPL="_without_debug" | |
15677 | ||
15678 | fi | |
15679 | ||
15680 | ||
15681 | ||
15682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 | |
15683 | $as_echo "$enable_debug" >&6; } | |
15684 | ||
15685 | ||
15686 | # Check whether --enable-debug-kmem was given. | |
15687 | if test "${enable_debug_kmem+set}" = set; then : | |
15688 | enableval=$enable_debug_kmem; | |
15689 | else | |
15690 | enable_debug_kmem=no | |
15691 | fi | |
15692 | ||
15693 | ||
15694 | if test "x$enable_debug_kmem" = xyes; then : | |
15695 | ||
15696 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" | |
15697 | DEBUG_KMEM="_with_debug_kmem" | |
15698 | ||
15699 | $as_echo "#define DEBUG_KMEM 1" >>confdefs.h | |
15700 | ||
15701 | ||
15702 | else | |
15703 | ||
15704 | DEBUG_KMEM="_without_debug_kmem" | |
15705 | ||
15706 | fi | |
15707 | ||
15708 | ||
15709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5 | |
15710 | $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; } | |
15711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5 | |
15712 | $as_echo "$enable_debug_kmem" >&6; } | |
15713 | ||
15714 | ||
15715 | # Check whether --enable-debug-kmem-tracking was given. | |
15716 | if test "${enable_debug_kmem_tracking+set}" = set; then : | |
15717 | enableval=$enable_debug_kmem_tracking; | |
15718 | else | |
15719 | enable_debug_kmem_tracking=no | |
15720 | fi | |
15721 | ||
15722 | ||
15723 | if test "x$enable_debug_kmem_tracking" = xyes; then : | |
15724 | ||
15725 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING" | |
15726 | DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking" | |
15727 | ||
15728 | $as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h | |
15729 | ||
15730 | ||
15731 | else | |
15732 | ||
15733 | DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking" | |
15734 | ||
15735 | fi | |
15736 | ||
15737 | ||
15738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5 | |
15739 | $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; } | |
15740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5 | |
15741 | $as_echo "$enable_debug_kmem_tracking" >&6; } | |
15742 | ||
15743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5 | |
15744 | $as_echo_n "checking whether modules can be built... " >&6; } | |
15745 | ||
15746 | ||
15747 | cat confdefs.h - <<_ACEOF >conftest.c | |
15748 | ||
15749 | ||
15750 | int | |
15751 | main (void) | |
15752 | { | |
15753 | ||
15754 | ; | |
15755 | return 0; | |
15756 | } | |
15757 | ||
15758 | _ACEOF | |
15759 | ||
15760 | ||
15761 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15762 | echo "obj-m := conftest.o" >build/Makefile | |
15763 | modpost_flag='' | |
15764 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15765 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15766 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15767 | (eval $ac_try) 2>&5 | |
15768 | ac_status=$? | |
15769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15770 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15771 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15772 | (eval $ac_try) 2>&5 | |
15773 | ac_status=$? | |
15774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15775 | test $ac_status = 0; }; }; then : | |
15776 | ||
15777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15778 | $as_echo "yes" >&6; } | |
15779 | ||
15780 | else | |
15781 | $as_echo "$as_me: failed program was:" >&5 | |
15782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15783 | ||
15784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15785 | $as_echo "no" >&6; } | |
15786 | if test "x$enable_linux_builtin" != xyes; then | |
15787 | as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5 | |
15788 | else | |
15789 | as_fn_error $? " | |
15790 | *** Unable to build an empty module. | |
15791 | *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5 | |
15792 | fi | |
15793 | ||
15794 | ||
15795 | ||
15796 | fi | |
15797 | rm -Rf build | |
15798 | ||
15799 | ||
15800 | ||
15801 | if test "x$cross_compiling" != xyes; then : | |
15802 | ||
15803 | if test "$cross_compiling" = yes; then : | |
15804 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15805 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15806 | as_fn_error $? "cannot run test program while cross compiling | |
15807 | See \`config.log' for more details" "$LINENO" 5; } | |
15808 | else | |
15809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15810 | /* end confdefs.h. */ | |
15811 | ||
15812 | ||
15813 | #include "$LINUX/include/linux/license.h" | |
15814 | ||
15815 | int | |
15816 | main () | |
15817 | { | |
15818 | ||
15819 | return !license_is_gpl_compatible( | |
15820 | "$SPL_META_LICENSE"); | |
15821 | ||
15822 | ; | |
15823 | return 0; | |
15824 | } | |
15825 | ||
15826 | _ACEOF | |
15827 | if ac_fn_c_try_run "$LINENO"; then : | |
15828 | ||
15829 | ||
15830 | $as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h | |
15831 | ||
15832 | ||
15833 | fi | |
15834 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15835 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15836 | fi | |
15837 | ||
15838 | ||
15839 | fi | |
15840 | ||
15841 | ||
15842 | # Check whether --enable-atomic-spinlocks was given. | |
15843 | if test "${enable_atomic_spinlocks+set}" = set; then : | |
15844 | enableval=$enable_atomic_spinlocks; | |
15845 | else | |
15846 | enable_atomic_spinlocks=check | |
15847 | fi | |
15848 | ||
15849 | ||
15850 | ||
15851 | ||
15852 | cat confdefs.h - <<_ACEOF >conftest.c | |
15853 | ||
15854 | ||
15855 | #include <linux/fs.h> | |
15856 | ||
15857 | int | |
15858 | main (void) | |
15859 | { | |
15860 | ||
15861 | atomic64_t *ptr __attribute__ ((unused)); | |
15862 | ||
15863 | ; | |
15864 | return 0; | |
15865 | } | |
15866 | ||
15867 | _ACEOF | |
15868 | ||
15869 | ||
15870 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15871 | echo "obj-m := conftest.o" >build/Makefile | |
15872 | modpost_flag='' | |
15873 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15874 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15875 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15876 | (eval $ac_try) 2>&5 | |
15877 | ac_status=$? | |
15878 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15879 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15880 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15881 | (eval $ac_try) 2>&5 | |
15882 | ac_status=$? | |
15883 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15884 | test $ac_status = 0; }; }; then : | |
15885 | ||
15886 | have_atomic64_t=yes | |
15887 | ||
15888 | $as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h | |
15889 | ||
15890 | ||
15891 | else | |
15892 | $as_echo "$as_me: failed program was:" >&5 | |
15893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15894 | ||
15895 | have_atomic64_t=no | |
15896 | ||
15897 | ||
15898 | ||
15899 | fi | |
15900 | rm -Rf build | |
15901 | ||
15902 | ||
15903 | ||
15904 | if test "x$enable_atomic_spinlocks" = xcheck; then : | |
15905 | ||
15906 | if test "x$have_atomic64_t" = xyes; then : | |
15907 | ||
15908 | enable_atomic_spinlocks=no | |
15909 | ||
15910 | else | |
15911 | ||
15912 | enable_atomic_spinlocks=yes | |
15913 | ||
15914 | fi | |
15915 | ||
15916 | fi | |
15917 | ||
15918 | if test "x$enable_atomic_spinlocks" = xyes; then : | |
15919 | ||
15920 | ||
15921 | $as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h | |
15922 | ||
15923 | ||
15924 | else | |
15925 | ||
15926 | if test "x$have_atomic64_t" = xno; then : | |
15927 | ||
15928 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15929 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15930 | as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable | |
15931 | See \`config.log' for more details" "$LINENO" 5; } | |
15932 | ||
15933 | fi | |
15934 | ||
15935 | fi | |
15936 | ||
15937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5 | |
15938 | $as_echo_n "checking whether atomic types use spinlocks... " >&6; } | |
15939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5 | |
15940 | $as_echo "$enable_atomic_spinlocks" >&6; } | |
15941 | ||
15942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5 | |
15943 | $as_echo_n "checking whether kernel defines atomic64_t... " >&6; } | |
15944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5 | |
15945 | $as_echo "$have_atomic64_t" >&6; } | |
15946 | ||
15947 | ||
15948 | tmp_flags="$EXTRA_KCFLAGS" | |
15949 | EXTRA_KCFLAGS="-Werror" | |
15950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5 | |
15951 | $as_echo_n "checking whether old 2-argument shrinker exists... " >&6; } | |
15952 | ||
15953 | ||
15954 | cat confdefs.h - <<_ACEOF >conftest.c | |
15955 | ||
15956 | ||
15957 | #include <linux/mm.h> | |
15958 | ||
15959 | int shrinker_cb(int nr_to_scan, gfp_t gfp_mask); | |
15960 | ||
15961 | int | |
15962 | main (void) | |
15963 | { | |
15964 | ||
15965 | struct shrinker cache_shrinker = { | |
15966 | .shrink = shrinker_cb, | |
15967 | .seeks = DEFAULT_SEEKS, | |
15968 | }; | |
15969 | register_shrinker(&cache_shrinker); | |
15970 | ||
15971 | ; | |
15972 | return 0; | |
15973 | } | |
15974 | ||
15975 | _ACEOF | |
15976 | ||
15977 | ||
15978 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15979 | echo "obj-m := conftest.o" >build/Makefile | |
15980 | modpost_flag='' | |
15981 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15982 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15983 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15984 | (eval $ac_try) 2>&5 | |
15985 | ac_status=$? | |
15986 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15987 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15988 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
15989 | (eval $ac_try) 2>&5 | |
15990 | ac_status=$? | |
15991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15992 | test $ac_status = 0; }; }; then : | |
15993 | ||
15994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15995 | $as_echo "yes" >&6; } | |
15996 | ||
15997 | $as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h | |
15998 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5 | |
16007 | $as_echo_n "checking whether old 3-argument shrinker exists... " >&6; } | |
16008 | ||
16009 | ||
16010 | cat confdefs.h - <<_ACEOF >conftest.c | |
16011 | ||
16012 | ||
16013 | #include <linux/mm.h> | |
16014 | ||
16015 | int shrinker_cb(struct shrinker *, int nr_to_scan, | |
16016 | gfp_t gfp_mask); | |
16017 | ||
16018 | int | |
16019 | main (void) | |
16020 | { | |
16021 | ||
16022 | struct shrinker cache_shrinker = { | |
16023 | .shrink = shrinker_cb, | |
16024 | .seeks = DEFAULT_SEEKS, | |
16025 | }; | |
16026 | register_shrinker(&cache_shrinker); | |
16027 | ||
16028 | ; | |
16029 | return 0; | |
16030 | } | |
16031 | ||
16032 | _ACEOF | |
16033 | ||
16034 | ||
16035 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16036 | echo "obj-m := conftest.o" >build/Makefile | |
16037 | modpost_flag='' | |
16038 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16039 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16040 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16041 | (eval $ac_try) 2>&5 | |
16042 | ac_status=$? | |
16043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16044 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16045 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16046 | (eval $ac_try) 2>&5 | |
16047 | ac_status=$? | |
16048 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16049 | test $ac_status = 0; }; }; then : | |
16050 | ||
16051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16052 | $as_echo "yes" >&6; } | |
16053 | ||
16054 | $as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h | |
16055 | ||
16056 | ||
16057 | else | |
16058 | $as_echo "$as_me: failed program was:" >&5 | |
16059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16060 | ||
16061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16062 | $as_echo "no" >&6; } | |
16063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5 | |
16064 | $as_echo_n "checking whether new 2-argument shrinker exists... " >&6; } | |
16065 | ||
16066 | ||
16067 | cat confdefs.h - <<_ACEOF >conftest.c | |
16068 | ||
16069 | ||
16070 | #include <linux/mm.h> | |
16071 | ||
16072 | int shrinker_cb(struct shrinker *, | |
16073 | struct shrink_control *sc); | |
16074 | ||
16075 | int | |
16076 | main (void) | |
16077 | { | |
16078 | ||
16079 | struct shrinker cache_shrinker = { | |
16080 | .shrink = shrinker_cb, | |
16081 | .seeks = DEFAULT_SEEKS, | |
16082 | }; | |
16083 | register_shrinker(&cache_shrinker); | |
16084 | ||
16085 | ; | |
16086 | return 0; | |
16087 | } | |
16088 | ||
16089 | _ACEOF | |
16090 | ||
16091 | ||
16092 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16093 | echo "obj-m := conftest.o" >build/Makefile | |
16094 | modpost_flag='' | |
16095 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16096 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16097 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16098 | (eval $ac_try) 2>&5 | |
16099 | ac_status=$? | |
16100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16101 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16102 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16103 | (eval $ac_try) 2>&5 | |
16104 | ac_status=$? | |
16105 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16106 | test $ac_status = 0; }; }; then : | |
16107 | ||
16108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16109 | $as_echo "yes" >&6; } | |
16110 | ||
16111 | $as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h | |
16112 | ||
16113 | ||
16114 | else | |
16115 | $as_echo "$as_me: failed program was:" >&5 | |
16116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16117 | ||
16118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16119 | $as_echo "no" >&6; } | |
16120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5 | |
16121 | $as_echo_n "checking whether ->count_objects callback exists... " >&6; } | |
16122 | ||
16123 | ||
16124 | cat confdefs.h - <<_ACEOF >conftest.c | |
16125 | ||
16126 | ||
16127 | #include <linux/mm.h> | |
16128 | ||
16129 | unsigned long shrinker_cb( | |
16130 | struct shrinker *, | |
16131 | struct shrink_control *sc); | |
16132 | ||
16133 | int | |
16134 | main (void) | |
16135 | { | |
16136 | ||
16137 | struct shrinker cache_shrinker = { | |
16138 | .count_objects = shrinker_cb, | |
16139 | .scan_objects = shrinker_cb, | |
16140 | .seeks = DEFAULT_SEEKS, | |
16141 | }; | |
16142 | register_shrinker(&cache_shrinker); | |
16143 | ||
16144 | ; | |
16145 | return 0; | |
16146 | } | |
16147 | ||
16148 | _ACEOF | |
16149 | ||
16150 | ||
16151 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16152 | echo "obj-m := conftest.o" >build/Makefile | |
16153 | modpost_flag='' | |
16154 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16155 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16156 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16157 | (eval $ac_try) 2>&5 | |
16158 | ac_status=$? | |
16159 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16160 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16161 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16162 | (eval $ac_try) 2>&5 | |
16163 | ac_status=$? | |
16164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16165 | test $ac_status = 0; }; }; then : | |
16166 | ||
16167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16168 | $as_echo "yes" >&6; } | |
16169 | ||
16170 | $as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h | |
16171 | ||
16172 | ||
16173 | else | |
16174 | $as_echo "$as_me: failed program was:" >&5 | |
16175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16176 | ||
16177 | as_fn_error $? "error" "$LINENO" 5 | |
16178 | ||
16179 | ||
16180 | ||
16181 | fi | |
16182 | rm -Rf build | |
16183 | ||
16184 | ||
16185 | ||
16186 | ||
16187 | ||
16188 | fi | |
16189 | rm -Rf build | |
16190 | ||
16191 | ||
16192 | ||
16193 | ||
16194 | ||
16195 | fi | |
16196 | rm -Rf build | |
16197 | ||
16198 | ||
16199 | ||
16200 | ||
16201 | ||
16202 | fi | |
16203 | rm -Rf build | |
16204 | ||
16205 | ||
16206 | EXTRA_KCFLAGS="$tmp_flags" | |
16207 | ||
16208 | ||
16209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5 | |
16210 | $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; } | |
16211 | ||
16212 | ||
16213 | cat confdefs.h - <<_ACEOF >conftest.c | |
16214 | ||
16215 | ||
16216 | #include <linux/sysctl.h> | |
16217 | ||
16218 | int | |
16219 | main (void) | |
16220 | { | |
16221 | ||
16222 | struct ctl_table ctl __attribute__ ((unused)); | |
16223 | ctl.ctl_name = 0; | |
16224 | ||
16225 | ; | |
16226 | return 0; | |
16227 | } | |
16228 | ||
16229 | _ACEOF | |
16230 | ||
16231 | ||
16232 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16233 | echo "obj-m := conftest.o" >build/Makefile | |
16234 | modpost_flag='' | |
16235 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16236 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16237 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16238 | (eval $ac_try) 2>&5 | |
16239 | ac_status=$? | |
16240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16241 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16242 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16243 | (eval $ac_try) 2>&5 | |
16244 | ac_status=$? | |
16245 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16246 | test $ac_status = 0; }; }; then : | |
16247 | ||
16248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16249 | $as_echo "yes" >&6; } | |
16250 | ||
16251 | $as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h | |
16252 | ||
16253 | ||
16254 | else | |
16255 | $as_echo "$as_me: failed program was:" >&5 | |
16256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16257 | ||
16258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16259 | $as_echo "no" >&6; } | |
16260 | ||
16261 | ||
16262 | ||
16263 | fi | |
16264 | rm -Rf build | |
16265 | ||
16266 | ||
16267 | ||
16268 | ||
16269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5 | |
16270 | $as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; } | |
16271 | ||
16272 | ||
16273 | cat confdefs.h - <<_ACEOF >conftest.c | |
16274 | ||
16275 | ||
16276 | #if defined(CONFIG_TRIM_UNUSED_KSYMS) | |
16277 | #error CONFIG_TRIM_UNUSED_KSYMS not defined | |
16278 | #endif | |
16279 | ||
16280 | int | |
16281 | main (void) | |
16282 | { | |
16283 | ||
16284 | ; | |
16285 | return 0; | |
16286 | } | |
16287 | ||
16288 | _ACEOF | |
16289 | ||
16290 | ||
16291 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16292 | echo "obj-m := conftest.o" >build/Makefile | |
16293 | modpost_flag='' | |
16294 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16295 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16296 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16297 | (eval $ac_try) 2>&5 | |
16298 | ac_status=$? | |
16299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16300 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16301 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16302 | (eval $ac_try) 2>&5 | |
16303 | ac_status=$? | |
16304 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16305 | test $ac_status = 0; }; }; then : | |
16306 | ||
16307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16308 | $as_echo "yes" >&6; } | |
16309 | ||
16310 | else | |
16311 | $as_echo "$as_me: failed program was:" >&5 | |
16312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16313 | ||
16314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16315 | $as_echo "no" >&6; } | |
16316 | as_fn_error $? " | |
16317 | *** This kernel has unused symbols trimming enabled, please disable. | |
16318 | *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." "$LINENO" 5 | |
16319 | ||
16320 | ||
16321 | ||
16322 | fi | |
16323 | rm -Rf build | |
16324 | ||
16325 | ||
16326 | ||
16327 | ||
16328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5 | |
16329 | $as_echo_n "checking whether PDE_DATA() is available... " >&6; } | |
16330 | ||
16331 | ||
16332 | ||
16333 | cat confdefs.h - <<_ACEOF >conftest.c | |
16334 | ||
16335 | ||
16336 | #include <linux/proc_fs.h> | |
16337 | ||
16338 | int | |
16339 | main (void) | |
16340 | { | |
16341 | ||
16342 | PDE_DATA(NULL); | |
16343 | ||
16344 | ; | |
16345 | return 0; | |
16346 | } | |
16347 | ||
16348 | _ACEOF | |
16349 | ||
16350 | ||
16351 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16352 | echo "obj-m := conftest.o" >build/Makefile | |
16353 | modpost_flag='' | |
16354 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16355 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16356 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16357 | (eval $ac_try) 2>&5 | |
16358 | ac_status=$? | |
16359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16360 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16362 | (eval $ac_try) 2>&5 | |
16363 | ac_status=$? | |
16364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16365 | test $ac_status = 0; }; }; then : | |
16366 | rc=0 | |
16367 | else | |
16368 | $as_echo "$as_me: failed program was:" >&5 | |
16369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16370 | rc=1 | |
16371 | ||
16372 | ||
16373 | fi | |
16374 | rm -Rf build | |
16375 | ||
16376 | ||
16377 | if test $rc -ne 0; then : | |
16378 | ||
16379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16380 | $as_echo "no" >&6; } | |
16381 | ||
16382 | else | |
16383 | if test "x$enable_linux_builtin" != xyes; then | |
16384 | ||
16385 | grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \ | |
16386 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
16387 | rc=$? | |
16388 | if test $rc -ne 0; then | |
16389 | export=0 | |
16390 | for file in ; do | |
16391 | grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \ | |
16392 | "$LINUX_OBJ/$file" 2>/dev/null | |
16393 | rc=$? | |
16394 | if test $rc -eq 0; then | |
16395 | export=1 | |
16396 | break; | |
16397 | fi | |
16398 | done | |
16399 | if test $export -eq 0; then : | |
16400 | rc=1 | |
16401 | else : | |
16402 | rc=0 | |
16403 | fi | |
16404 | else : | |
16405 | rc=0 | |
16406 | fi | |
16407 | ||
16408 | fi | |
16409 | if test $rc -ne 0; then : | |
16410 | ||
16411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16412 | $as_echo "no" >&6; } | |
16413 | ||
16414 | else : | |
16415 | ||
16416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16417 | $as_echo "yes" >&6; } | |
16418 | ||
16419 | $as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h | |
16420 | ||
16421 | ||
16422 | fi | |
16423 | fi | |
16424 | ||
16425 | ||
16426 | tmp_flags="$EXTRA_KCFLAGS" | |
16427 | EXTRA_KCFLAGS="-Werror" | |
16428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5 | |
16429 | $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; } | |
16430 | ||
16431 | ||
16432 | cat confdefs.h - <<_ACEOF >conftest.c | |
16433 | ||
16434 | ||
16435 | #include <linux/spinlock.h> | |
16436 | #include <linux/fs_struct.h> | |
16437 | #include <linux/path.h> | |
16438 | void (*const set_fs_pwd_func) | |
16439 | (struct fs_struct *, const struct path *) | |
16440 | = set_fs_pwd; | |
16441 | ||
16442 | int | |
16443 | main (void) | |
16444 | { | |
16445 | ||
16446 | return 0; | |
16447 | ||
16448 | ; | |
16449 | return 0; | |
16450 | } | |
16451 | ||
16452 | _ACEOF | |
16453 | ||
16454 | ||
16455 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16456 | echo "obj-m := conftest.o" >build/Makefile | |
16457 | modpost_flag='' | |
16458 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16459 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16460 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16461 | (eval $ac_try) 2>&5 | |
16462 | ac_status=$? | |
16463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16464 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16465 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16466 | (eval $ac_try) 2>&5 | |
16467 | ac_status=$? | |
16468 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16469 | test $ac_status = 0; }; }; then : | |
16470 | ||
16471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16472 | $as_echo "yes" >&6; } | |
16473 | ||
16474 | $as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h | |
16475 | ||
16476 | ||
16477 | else | |
16478 | $as_echo "$as_me: failed program was:" >&5 | |
16479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16480 | ||
16481 | ||
16482 | ||
16483 | cat confdefs.h - <<_ACEOF >conftest.c | |
16484 | ||
16485 | ||
16486 | #include <linux/spinlock.h> | |
16487 | #include <linux/fs_struct.h> | |
16488 | #include <linux/path.h> | |
16489 | void (*const set_fs_pwd_func) | |
16490 | (struct fs_struct *, struct path *) | |
16491 | = set_fs_pwd; | |
16492 | ||
16493 | int | |
16494 | main (void) | |
16495 | { | |
16496 | ||
16497 | return 0; | |
16498 | ||
16499 | ; | |
16500 | return 0; | |
16501 | } | |
16502 | ||
16503 | _ACEOF | |
16504 | ||
16505 | ||
16506 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16507 | echo "obj-m := conftest.o" >build/Makefile | |
16508 | modpost_flag='' | |
16509 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16510 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16511 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16512 | (eval $ac_try) 2>&5 | |
16513 | ac_status=$? | |
16514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16515 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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; }; }; then : | |
16521 | ||
16522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16523 | $as_echo "no" >&6; } | |
16524 | ||
16525 | else | |
16526 | $as_echo "$as_me: failed program was:" >&5 | |
16527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16528 | ||
16529 | as_fn_error $? "unknown" "$LINENO" 5 | |
16530 | ||
16531 | ||
16532 | ||
16533 | fi | |
16534 | rm -Rf build | |
16535 | ||
16536 | ||
16537 | ||
16538 | ||
16539 | ||
16540 | fi | |
16541 | rm -Rf build | |
16542 | ||
16543 | ||
16544 | EXTRA_KCFLAGS="$tmp_flags" | |
16545 | ||
16546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5 | |
16547 | $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; } | |
16548 | ||
16549 | ||
16550 | cat confdefs.h - <<_ACEOF >conftest.c | |
16551 | ||
16552 | ||
16553 | #include <linux/fs.h> | |
16554 | ||
16555 | int | |
16556 | main (void) | |
16557 | { | |
16558 | ||
16559 | vfs_unlink((struct inode *) NULL, (struct dentry *) NULL); | |
16560 | ||
16561 | ; | |
16562 | return 0; | |
16563 | } | |
16564 | ||
16565 | _ACEOF | |
16566 | ||
16567 | ||
16568 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16569 | echo "obj-m := conftest.o" >build/Makefile | |
16570 | modpost_flag='' | |
16571 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16572 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16573 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16574 | (eval $ac_try) 2>&5 | |
16575 | ac_status=$? | |
16576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16577 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16578 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16579 | (eval $ac_try) 2>&5 | |
16580 | ac_status=$? | |
16581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16582 | test $ac_status = 0; }; }; then : | |
16583 | ||
16584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16585 | $as_echo "yes" >&6; } | |
16586 | ||
16587 | $as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h | |
16588 | ||
16589 | ||
16590 | else | |
16591 | $as_echo "$as_me: failed program was:" >&5 | |
16592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16593 | ||
16594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16595 | $as_echo "no" >&6; } | |
16596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5 | |
16597 | $as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; } | |
16598 | ||
16599 | ||
16600 | cat confdefs.h - <<_ACEOF >conftest.c | |
16601 | ||
16602 | ||
16603 | #include <linux/fs.h> | |
16604 | ||
16605 | int | |
16606 | main (void) | |
16607 | { | |
16608 | ||
16609 | vfs_unlink((struct inode *) NULL, | |
16610 | (struct dentry *) NULL, | |
16611 | (struct inode **) NULL); | |
16612 | ||
16613 | ; | |
16614 | return 0; | |
16615 | } | |
16616 | ||
16617 | _ACEOF | |
16618 | ||
16619 | ||
16620 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16621 | echo "obj-m := conftest.o" >build/Makefile | |
16622 | modpost_flag='' | |
16623 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16624 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16625 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16626 | (eval $ac_try) 2>&5 | |
16627 | ac_status=$? | |
16628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16629 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16630 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16631 | (eval $ac_try) 2>&5 | |
16632 | ac_status=$? | |
16633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16634 | test $ac_status = 0; }; }; then : | |
16635 | ||
16636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16637 | $as_echo "yes" >&6; } | |
16638 | ||
16639 | $as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h | |
16640 | ||
16641 | ||
16642 | else | |
16643 | $as_echo "$as_me: failed program was:" >&5 | |
16644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16645 | ||
16646 | as_fn_error $? "no" "$LINENO" 5 | |
16647 | ||
16648 | ||
16649 | ||
16650 | fi | |
16651 | rm -Rf build | |
16652 | ||
16653 | ||
16654 | ||
16655 | ||
16656 | ||
16657 | ||
16658 | fi | |
16659 | rm -Rf build | |
16660 | ||
16661 | ||
16662 | ||
16663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5 | |
16664 | $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; } | |
16665 | ||
16666 | ||
16667 | cat confdefs.h - <<_ACEOF >conftest.c | |
16668 | ||
16669 | ||
16670 | #include <linux/fs.h> | |
16671 | ||
16672 | int | |
16673 | main (void) | |
16674 | { | |
16675 | ||
16676 | vfs_rename((struct inode *) NULL, (struct dentry *) NULL, | |
16677 | (struct inode *) NULL, (struct dentry *) NULL); | |
16678 | ||
16679 | ; | |
16680 | return 0; | |
16681 | } | |
16682 | ||
16683 | _ACEOF | |
16684 | ||
16685 | ||
16686 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16687 | echo "obj-m := conftest.o" >build/Makefile | |
16688 | modpost_flag='' | |
16689 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16690 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16691 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16692 | (eval $ac_try) 2>&5 | |
16693 | ac_status=$? | |
16694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16695 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16696 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16697 | (eval $ac_try) 2>&5 | |
16698 | ac_status=$? | |
16699 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16700 | test $ac_status = 0; }; }; then : | |
16701 | ||
16702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16703 | $as_echo "yes" >&6; } | |
16704 | ||
16705 | $as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h | |
16706 | ||
16707 | ||
16708 | else | |
16709 | $as_echo "$as_me: failed program was:" >&5 | |
16710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16711 | ||
16712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16713 | $as_echo "no" >&6; } | |
16714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5 | |
16715 | $as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; } | |
16716 | ||
16717 | ||
16718 | cat confdefs.h - <<_ACEOF >conftest.c | |
16719 | ||
16720 | ||
16721 | #include <linux/fs.h> | |
16722 | ||
16723 | int | |
16724 | main (void) | |
16725 | { | |
16726 | ||
16727 | vfs_rename((struct inode *) NULL, | |
16728 | (struct dentry *) NULL, | |
16729 | (struct inode *) NULL, | |
16730 | (struct dentry *) NULL, | |
16731 | (struct inode **) NULL); | |
16732 | ||
16733 | ; | |
16734 | return 0; | |
16735 | } | |
16736 | ||
16737 | _ACEOF | |
16738 | ||
16739 | ||
16740 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16741 | echo "obj-m := conftest.o" >build/Makefile | |
16742 | modpost_flag='' | |
16743 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16744 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16745 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16746 | (eval $ac_try) 2>&5 | |
16747 | ac_status=$? | |
16748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16749 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16750 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16751 | (eval $ac_try) 2>&5 | |
16752 | ac_status=$? | |
16753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16754 | test $ac_status = 0; }; }; then : | |
16755 | ||
16756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16757 | $as_echo "yes" >&6; } | |
16758 | ||
16759 | $as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h | |
16760 | ||
16761 | ||
16762 | else | |
16763 | $as_echo "$as_me: failed program was:" >&5 | |
16764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16765 | ||
16766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16767 | $as_echo "no" >&6; } | |
16768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5 | |
16769 | $as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; } | |
16770 | ||
16771 | ||
16772 | cat confdefs.h - <<_ACEOF >conftest.c | |
16773 | ||
16774 | ||
16775 | #include <linux/fs.h> | |
16776 | ||
16777 | int | |
16778 | main (void) | |
16779 | { | |
16780 | ||
16781 | vfs_rename((struct inode *) NULL, | |
16782 | (struct dentry *) NULL, | |
16783 | (struct inode *) NULL, | |
16784 | (struct dentry *) NULL, | |
16785 | (struct inode **) NULL, | |
16786 | (unsigned int) 0); | |
16787 | ||
16788 | ; | |
16789 | return 0; | |
16790 | } | |
16791 | ||
16792 | _ACEOF | |
16793 | ||
16794 | ||
16795 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16796 | echo "obj-m := conftest.o" >build/Makefile | |
16797 | modpost_flag='' | |
16798 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16799 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16800 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16801 | (eval $ac_try) 2>&5 | |
16802 | ac_status=$? | |
16803 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16804 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16805 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16806 | (eval $ac_try) 2>&5 | |
16807 | ac_status=$? | |
16808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16809 | test $ac_status = 0; }; }; then : | |
16810 | ||
16811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16812 | $as_echo "yes" >&6; } | |
16813 | ||
16814 | $as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h | |
16815 | ||
16816 | ||
16817 | else | |
16818 | $as_echo "$as_me: failed program was:" >&5 | |
16819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16820 | ||
16821 | as_fn_error $? "no" "$LINENO" 5 | |
16822 | ||
16823 | ||
16824 | ||
16825 | fi | |
16826 | rm -Rf build | |
16827 | ||
16828 | ||
16829 | ||
16830 | ||
16831 | ||
16832 | fi | |
16833 | rm -Rf build | |
16834 | ||
16835 | ||
16836 | ||
16837 | ||
16838 | ||
16839 | fi | |
16840 | rm -Rf build | |
16841 | ||
16842 | ||
16843 | ||
16844 | ||
16845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5 | |
16846 | $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; } | |
16847 | ||
16848 | ||
16849 | cat confdefs.h - <<_ACEOF >conftest.c | |
16850 | ||
16851 | ||
16852 | #include <linux/fs.h> | |
16853 | ||
16854 | int | |
16855 | main (void) | |
16856 | { | |
16857 | ||
16858 | vfs_fsync(NULL, 0); | |
16859 | ||
16860 | ; | |
16861 | return 0; | |
16862 | } | |
16863 | ||
16864 | _ACEOF | |
16865 | ||
16866 | ||
16867 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16868 | echo "obj-m := conftest.o" >build/Makefile | |
16869 | modpost_flag='' | |
16870 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16871 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16872 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16873 | (eval $ac_try) 2>&5 | |
16874 | ac_status=$? | |
16875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16876 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16877 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16878 | (eval $ac_try) 2>&5 | |
16879 | ac_status=$? | |
16880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16881 | test $ac_status = 0; }; }; then : | |
16882 | ||
16883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16884 | $as_echo "yes" >&6; } | |
16885 | ||
16886 | $as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h | |
16887 | ||
16888 | ||
16889 | else | |
16890 | $as_echo "$as_me: failed program was:" >&5 | |
16891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16892 | ||
16893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16894 | $as_echo "no" >&6; } | |
16895 | ||
16896 | ||
16897 | ||
16898 | fi | |
16899 | rm -Rf build | |
16900 | ||
16901 | ||
16902 | ||
16903 | ||
16904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5 | |
16905 | $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; } | |
16906 | ||
16907 | ||
16908 | cat confdefs.h - <<_ACEOF >conftest.c | |
16909 | ||
16910 | ||
16911 | #include <linux/fs.h> | |
16912 | ||
16913 | int | |
16914 | main (void) | |
16915 | { | |
16916 | ||
16917 | struct inode_operations ops; | |
16918 | ops.truncate_range = NULL; | |
16919 | ||
16920 | ; | |
16921 | return 0; | |
16922 | } | |
16923 | ||
16924 | _ACEOF | |
16925 | ||
16926 | ||
16927 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16928 | echo "obj-m := conftest.o" >build/Makefile | |
16929 | modpost_flag='' | |
16930 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16931 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16932 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16933 | (eval $ac_try) 2>&5 | |
16934 | ac_status=$? | |
16935 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16936 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16937 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16938 | (eval $ac_try) 2>&5 | |
16939 | ac_status=$? | |
16940 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16941 | test $ac_status = 0; }; }; then : | |
16942 | ||
16943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16944 | $as_echo "yes" >&6; } | |
16945 | ||
16946 | $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h | |
16947 | ||
16948 | ||
16949 | else | |
16950 | $as_echo "$as_me: failed program was:" >&5 | |
16951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16952 | ||
16953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16954 | $as_echo "no" >&6; } | |
16955 | ||
16956 | ||
16957 | ||
16958 | fi | |
16959 | rm -Rf build | |
16960 | ||
16961 | ||
16962 | ||
16963 | ||
16964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5 | |
16965 | $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; } | |
16966 | tmp_flags="$EXTRA_KCFLAGS" | |
16967 | EXTRA_KCFLAGS="-Werror" | |
16968 | ||
16969 | ||
16970 | cat confdefs.h - <<_ACEOF >conftest.c | |
16971 | ||
16972 | ||
16973 | #include <linux/sched.h> | |
16974 | #include <linux/fs_struct.h> | |
16975 | ||
16976 | int | |
16977 | main (void) | |
16978 | { | |
16979 | ||
16980 | static struct fs_struct fs; | |
16981 | spin_lock_init(&fs.lock); | |
16982 | ||
16983 | ; | |
16984 | return 0; | |
16985 | } | |
16986 | ||
16987 | _ACEOF | |
16988 | ||
16989 | ||
16990 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
16991 | echo "obj-m := conftest.o" >build/Makefile | |
16992 | modpost_flag='' | |
16993 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16994 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16995 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
16996 | (eval $ac_try) 2>&5 | |
16997 | ac_status=$? | |
16998 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16999 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17000 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17001 | (eval $ac_try) 2>&5 | |
17002 | ac_status=$? | |
17003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17004 | test $ac_status = 0; }; }; then : | |
17005 | ||
17006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17007 | $as_echo "yes" >&6; } | |
17008 | ||
17009 | $as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h | |
17010 | ||
17011 | ||
17012 | else | |
17013 | $as_echo "$as_me: failed program was:" >&5 | |
17014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17015 | ||
17016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17017 | $as_echo "no" >&6; } | |
17018 | ||
17019 | ||
17020 | ||
17021 | fi | |
17022 | rm -Rf build | |
17023 | ||
17024 | ||
17025 | EXTRA_KCFLAGS="$tmp_flags" | |
17026 | ||
17027 | ||
17028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5 | |
17029 | $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; } | |
17030 | ||
17031 | ||
17032 | cat confdefs.h - <<_ACEOF >conftest.c | |
17033 | ||
17034 | ||
17035 | #include <linux/uidgid.h> | |
17036 | ||
17037 | int | |
17038 | main (void) | |
17039 | { | |
17040 | ||
17041 | kuid_t userid = KUIDT_INIT(0); | |
17042 | kgid_t groupid = KGIDT_INIT(0); | |
17043 | ||
17044 | ; | |
17045 | return 0; | |
17046 | } | |
17047 | ||
17048 | _ACEOF | |
17049 | ||
17050 | ||
17051 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17052 | echo "obj-m := conftest.o" >build/Makefile | |
17053 | modpost_flag='' | |
17054 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17055 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17056 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17057 | (eval $ac_try) 2>&5 | |
17058 | ac_status=$? | |
17059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17060 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17061 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17062 | (eval $ac_try) 2>&5 | |
17063 | ac_status=$? | |
17064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17065 | test $ac_status = 0; }; }; then : | |
17066 | ||
17067 | ||
17068 | ||
17069 | cat confdefs.h - <<_ACEOF >conftest.c | |
17070 | ||
17071 | ||
17072 | #include <linux/uidgid.h> | |
17073 | ||
17074 | int | |
17075 | main (void) | |
17076 | { | |
17077 | ||
17078 | kuid_t userid = 0; | |
17079 | kgid_t groupid = 0; | |
17080 | ||
17081 | ; | |
17082 | return 0; | |
17083 | } | |
17084 | ||
17085 | _ACEOF | |
17086 | ||
17087 | ||
17088 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17089 | echo "obj-m := conftest.o" >build/Makefile | |
17090 | modpost_flag='' | |
17091 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17092 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17093 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17094 | (eval $ac_try) 2>&5 | |
17095 | ac_status=$? | |
17096 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17097 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17098 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17099 | (eval $ac_try) 2>&5 | |
17100 | ac_status=$? | |
17101 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17102 | test $ac_status = 0; }; }; then : | |
17103 | ||
17104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5 | |
17105 | $as_echo "yes; optional" >&6; } | |
17106 | ||
17107 | else | |
17108 | $as_echo "$as_me: failed program was:" >&5 | |
17109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17110 | ||
17111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5 | |
17112 | $as_echo "yes; mandatory" >&6; } | |
17113 | ||
17114 | $as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h | |
17115 | ||
17116 | ||
17117 | ||
17118 | ||
17119 | fi | |
17120 | rm -Rf build | |
17121 | ||
17122 | ||
17123 | ||
17124 | else | |
17125 | $as_echo "$as_me: failed program was:" >&5 | |
17126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17127 | ||
17128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17129 | $as_echo "no" >&6; } | |
17130 | ||
17131 | ||
17132 | ||
17133 | fi | |
17134 | rm -Rf build | |
17135 | ||
17136 | ||
17137 | ||
87d546d8 TG |
17138 | |
17139 | ||
17140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
17141 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
17142 | ||
17143 | ||
17144 | cat confdefs.h - <<_ACEOF >conftest.c | |
17145 | ||
17146 | ||
17147 | #include <linux/fs.h> | |
17148 | ||
17149 | int | |
17150 | main (void) | |
17151 | { | |
17152 | ||
17153 | long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL; | |
17154 | struct file_operations fops __attribute__ ((unused)) = { | |
17155 | .fallocate = fallocate, | |
17156 | }; | |
17157 | ||
17158 | ; | |
17159 | return 0; | |
17160 | } | |
17161 | ||
17162 | _ACEOF | |
17163 | ||
17164 | ||
17165 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17166 | echo "obj-m := conftest.o" >build/Makefile | |
17167 | modpost_flag='' | |
17168 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17169 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17170 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17171 | (eval $ac_try) 2>&5 | |
17172 | ac_status=$? | |
17173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17174 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17175 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17176 | (eval $ac_try) 2>&5 | |
17177 | ac_status=$? | |
17178 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17179 | test $ac_status = 0; }; }; then : | |
17180 | ||
17181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17182 | $as_echo "yes" >&6; } | |
17183 | ||
17184 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
17185 | ||
17186 | ||
17187 | else | |
17188 | $as_echo "$as_me: failed program was:" >&5 | |
17189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17190 | ||
17191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17192 | $as_echo "no" >&6; } | |
17193 | ||
17194 | ||
17195 | ||
17196 | fi | |
17197 | rm -Rf build | |
17198 | ||
17199 | ||
17200 | ||
17201 | ||
17202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5 | |
17203 | $as_echo_n "checking whether iops->fallocate() exists... " >&6; } | |
17204 | ||
17205 | ||
17206 | cat confdefs.h - <<_ACEOF >conftest.c | |
17207 | ||
17208 | ||
17209 | #include <linux/fs.h> | |
17210 | ||
17211 | int | |
17212 | main (void) | |
17213 | { | |
17214 | ||
17215 | long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL; | |
17216 | struct inode_operations fops __attribute__ ((unused)) = { | |
17217 | .fallocate = fallocate, | |
17218 | }; | |
17219 | ||
17220 | ; | |
17221 | return 0; | |
17222 | } | |
17223 | ||
17224 | _ACEOF | |
17225 | ||
17226 | ||
17227 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17228 | echo "obj-m := conftest.o" >build/Makefile | |
17229 | modpost_flag='' | |
17230 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17231 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17232 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17233 | (eval $ac_try) 2>&5 | |
17234 | ac_status=$? | |
17235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17236 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17237 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17238 | (eval $ac_try) 2>&5 | |
17239 | ac_status=$? | |
17240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17241 | test $ac_status = 0; }; }; then : | |
17242 | ||
17243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17244 | $as_echo "yes" >&6; } | |
17245 | ||
17246 | $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h | |
17247 | ||
17248 | ||
17249 | else | |
17250 | $as_echo "$as_me: failed program was:" >&5 | |
17251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17252 | ||
17253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17254 | $as_echo "no" >&6; } | |
17255 | ||
17256 | ||
17257 | ||
17258 | fi | |
17259 | rm -Rf build | |
17260 | ||
17261 | ||
17262 | ||
17263 | ||
17264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5 | |
17265 | $as_echo_n "checking whether fops->fallocate() exists... " >&6; } | |
17266 | ||
17267 | ||
17268 | cat confdefs.h - <<_ACEOF >conftest.c | |
17269 | ||
17270 | ||
17271 | #include <linux/fs.h> | |
17272 | ||
17273 | int | |
17274 | main (void) | |
17275 | { | |
17276 | ||
17277 | long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL; | |
17278 | struct file_operations_no_const fops __attribute__ ((unused)) = { | |
17279 | .fallocate = fallocate, | |
17280 | }; | |
17281 | ||
17282 | ; | |
17283 | return 0; | |
17284 | } | |
17285 | ||
17286 | _ACEOF | |
17287 | ||
17288 | ||
17289 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17290 | echo "obj-m := conftest.o" >build/Makefile | |
17291 | modpost_flag='' | |
17292 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17293 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17294 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17295 | (eval $ac_try) 2>&5 | |
17296 | ac_status=$? | |
17297 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17298 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17299 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17300 | (eval $ac_try) 2>&5 | |
17301 | ac_status=$? | |
17302 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17303 | test $ac_status = 0; }; }; then : | |
17304 | ||
17305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17306 | $as_echo "yes" >&6; } | |
17307 | ||
17308 | $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h | |
17309 | ||
17310 | ||
17311 | else | |
17312 | $as_echo "$as_me: failed program was:" >&5 | |
17313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17314 | ||
17315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17316 | $as_echo "no" >&6; } | |
17317 | ||
17318 | ||
17319 | ||
17320 | fi | |
17321 | rm -Rf build | |
17322 | ||
17323 | ||
17324 | ||
17325 | ||
17326 | ||
17327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5 | |
17328 | $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; } | |
17329 | ||
17330 | ||
17331 | cat confdefs.h - <<_ACEOF >conftest.c | |
17332 | ||
17333 | ||
17334 | #if !defined(CONFIG_ZLIB_INFLATE) && \ | |
17335 | !defined(CONFIG_ZLIB_INFLATE_MODULE) | |
17336 | #error CONFIG_ZLIB_INFLATE not defined | |
17337 | #endif | |
17338 | ||
17339 | int | |
17340 | main (void) | |
17341 | { | |
17342 | ||
17343 | ; | |
17344 | return 0; | |
17345 | } | |
17346 | ||
17347 | _ACEOF | |
17348 | ||
17349 | ||
17350 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17351 | echo "obj-m := conftest.o" >build/Makefile | |
17352 | modpost_flag='' | |
17353 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17354 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17355 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17356 | (eval $ac_try) 2>&5 | |
17357 | ac_status=$? | |
17358 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17359 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17360 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17361 | (eval $ac_try) 2>&5 | |
17362 | ac_status=$? | |
17363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17364 | test $ac_status = 0; }; }; then : | |
17365 | ||
17366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17367 | $as_echo "yes" >&6; } | |
17368 | ||
17369 | else | |
17370 | $as_echo "$as_me: failed program was:" >&5 | |
17371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17372 | ||
17373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17374 | $as_echo "no" >&6; } | |
17375 | as_fn_error $? " | |
17376 | *** This kernel does not include the required zlib inflate support. | |
17377 | *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5 | |
17378 | ||
17379 | ||
17380 | ||
17381 | fi | |
17382 | rm -Rf build | |
17383 | ||
17384 | ||
17385 | ||
17386 | ||
17387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5 | |
17388 | $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; } | |
17389 | ||
17390 | ||
17391 | cat confdefs.h - <<_ACEOF >conftest.c | |
17392 | ||
17393 | ||
17394 | #if !defined(CONFIG_ZLIB_DEFLATE) && \ | |
17395 | !defined(CONFIG_ZLIB_DEFLATE_MODULE) | |
17396 | #error CONFIG_ZLIB_DEFLATE not defined | |
17397 | #endif | |
17398 | ||
17399 | int | |
17400 | main (void) | |
17401 | { | |
17402 | ||
17403 | ; | |
17404 | return 0; | |
17405 | } | |
17406 | ||
17407 | _ACEOF | |
17408 | ||
17409 | ||
17410 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17411 | echo "obj-m := conftest.o" >build/Makefile | |
17412 | modpost_flag='' | |
17413 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17414 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17415 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17416 | (eval $ac_try) 2>&5 | |
17417 | ac_status=$? | |
17418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17419 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17420 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17421 | (eval $ac_try) 2>&5 | |
17422 | ac_status=$? | |
17423 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17424 | test $ac_status = 0; }; }; then : | |
17425 | ||
17426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17427 | $as_echo "yes" >&6; } | |
17428 | ||
17429 | else | |
17430 | $as_echo "$as_me: failed program was:" >&5 | |
17431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17432 | ||
17433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17434 | $as_echo "no" >&6; } | |
17435 | as_fn_error $? " | |
17436 | *** This kernel does not include the required zlib deflate support. | |
17437 | *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5 | |
17438 | ||
17439 | ||
17440 | ||
17441 | fi | |
17442 | rm -Rf build | |
17443 | ||
17444 | ||
17445 | ||
17446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5 | |
17447 | $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; } | |
17448 | ||
17449 | ||
17450 | cat confdefs.h - <<_ACEOF >conftest.c | |
17451 | ||
17452 | ||
17453 | #include <linux/zlib.h> | |
17454 | ||
17455 | int | |
17456 | main (void) | |
17457 | { | |
17458 | ||
17459 | return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL); | |
17460 | ||
17461 | ; | |
17462 | return 0; | |
17463 | } | |
17464 | ||
17465 | _ACEOF | |
17466 | ||
17467 | ||
17468 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17469 | echo "obj-m := conftest.o" >build/Makefile | |
17470 | modpost_flag='' | |
17471 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17472 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17473 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17474 | (eval $ac_try) 2>&5 | |
17475 | ac_status=$? | |
17476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17477 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17478 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17479 | (eval $ac_try) 2>&5 | |
17480 | ac_status=$? | |
17481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17482 | test $ac_status = 0; }; }; then : | |
17483 | ||
17484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17485 | $as_echo "yes" >&6; } | |
17486 | ||
17487 | $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h | |
17488 | ||
17489 | ||
17490 | else | |
17491 | $as_echo "$as_me: failed program was:" >&5 | |
17492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17493 | ||
17494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17495 | $as_echo "no" >&6; } | |
17496 | ||
17497 | ||
17498 | ||
17499 | fi | |
17500 | rm -Rf build | |
17501 | ||
17502 | ||
17503 | ||
17504 | ||
17505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5 | |
17506 | $as_echo_n "checking whether struct shrink_control exists... " >&6; } | |
17507 | ||
17508 | ||
17509 | cat confdefs.h - <<_ACEOF >conftest.c | |
17510 | ||
17511 | ||
17512 | #include <linux/mm.h> | |
17513 | ||
17514 | int | |
17515 | main (void) | |
17516 | { | |
17517 | ||
17518 | struct shrink_control sc __attribute__ ((unused)); | |
17519 | ||
17520 | sc.nr_to_scan = 0; | |
17521 | sc.gfp_mask = GFP_KERNEL; | |
17522 | ||
17523 | ; | |
17524 | return 0; | |
17525 | } | |
17526 | ||
17527 | _ACEOF | |
17528 | ||
17529 | ||
17530 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17531 | echo "obj-m := conftest.o" >build/Makefile | |
17532 | modpost_flag='' | |
17533 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17534 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17535 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17536 | (eval $ac_try) 2>&5 | |
17537 | ac_status=$? | |
17538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17539 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17540 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17541 | (eval $ac_try) 2>&5 | |
17542 | ac_status=$? | |
17543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17544 | test $ac_status = 0; }; }; then : | |
17545 | ||
17546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17547 | $as_echo "yes" >&6; } | |
17548 | ||
17549 | $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h | |
17550 | ||
17551 | ||
17552 | else | |
17553 | $as_echo "$as_me: failed program was:" >&5 | |
17554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17555 | ||
17556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17557 | $as_echo "no" >&6; } | |
17558 | ||
17559 | ||
17560 | ||
17561 | fi | |
17562 | rm -Rf build | |
17563 | ||
17564 | ||
17565 | ||
17566 | ||
17567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5 | |
17568 | $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; } | |
17569 | tmp_flags="$EXTRA_KCFLAGS" | |
17570 | EXTRA_KCFLAGS="-Werror" | |
17571 | ||
17572 | ||
17573 | cat confdefs.h - <<_ACEOF >conftest.c | |
17574 | ||
17575 | ||
17576 | #include <linux/rwsem.h> | |
17577 | ||
17578 | int | |
17579 | main (void) | |
17580 | { | |
17581 | ||
17582 | struct rw_semaphore dummy_semaphore __attribute__ ((unused)); | |
1ec59ff7 CIK |
17583 | raw_spinlock_t dummy_lock __attribute__ ((unused)) = |
17584 | __RAW_SPIN_LOCK_INITIALIZER(dummy_lock); | |
87d546d8 TG |
17585 | dummy_semaphore.wait_lock = dummy_lock; |
17586 | ||
17587 | ; | |
17588 | return 0; | |
17589 | } | |
17590 | ||
17591 | _ACEOF | |
17592 | ||
17593 | ||
17594 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17595 | echo "obj-m := conftest.o" >build/Makefile | |
17596 | modpost_flag='' | |
17597 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17598 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17599 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17600 | (eval $ac_try) 2>&5 | |
17601 | ac_status=$? | |
17602 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17603 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17604 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17605 | (eval $ac_try) 2>&5 | |
17606 | ac_status=$? | |
17607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17608 | test $ac_status = 0; }; }; then : | |
17609 | ||
17610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17611 | $as_echo "yes" >&6; } | |
17612 | ||
17613 | $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h | |
17614 | ||
17615 | ||
17616 | else | |
17617 | $as_echo "$as_me: failed program was:" >&5 | |
17618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17619 | ||
17620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17621 | $as_echo "no" >&6; } | |
17622 | ||
17623 | ||
17624 | ||
17625 | fi | |
17626 | rm -Rf build | |
17627 | ||
17628 | ||
17629 | EXTRA_KCFLAGS="$tmp_flags" | |
17630 | ||
17631 | ||
17632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5 | |
17633 | $as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; } | |
17634 | tmp_flags="$EXTRA_KCFLAGS" | |
17635 | EXTRA_KCFLAGS="-Werror" | |
17636 | ||
17637 | ||
17638 | cat confdefs.h - <<_ACEOF >conftest.c | |
17639 | ||
17640 | ||
17641 | #include <linux/rwsem.h> | |
17642 | ||
17643 | int | |
17644 | main (void) | |
17645 | { | |
17646 | ||
17647 | struct rw_semaphore dummy_semaphore __attribute__ ((unused)); | |
17648 | dummy_semaphore.activity = 0; | |
17649 | ||
17650 | ; | |
17651 | return 0; | |
17652 | } | |
17653 | ||
17654 | _ACEOF | |
17655 | ||
17656 | ||
17657 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17658 | echo "obj-m := conftest.o" >build/Makefile | |
17659 | modpost_flag='' | |
17660 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17661 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17662 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17663 | (eval $ac_try) 2>&5 | |
17664 | ac_status=$? | |
17665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17666 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17667 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17668 | (eval $ac_try) 2>&5 | |
17669 | ac_status=$? | |
17670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17671 | test $ac_status = 0; }; }; then : | |
17672 | ||
17673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17674 | $as_echo "yes" >&6; } | |
17675 | ||
17676 | $as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h | |
17677 | ||
17678 | ||
17679 | else | |
17680 | $as_echo "$as_me: failed program was:" >&5 | |
17681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17682 | ||
17683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17684 | $as_echo "no" >&6; } | |
17685 | ||
17686 | ||
17687 | ||
17688 | fi | |
17689 | rm -Rf build | |
17690 | ||
17691 | ||
17692 | EXTRA_KCFLAGS="$tmp_flags" | |
17693 | ||
17694 | ||
17695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5 | |
17696 | $as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; } | |
17697 | tmp_flags="$EXTRA_KCFLAGS" | |
17698 | EXTRA_KCFLAGS="-Werror" | |
17699 | ||
17700 | ||
17701 | cat confdefs.h - <<_ACEOF >conftest.c | |
17702 | ||
17703 | ||
17704 | #include <linux/rwsem.h> | |
17705 | ||
17706 | int | |
17707 | main (void) | |
17708 | { | |
17709 | ||
17710 | DECLARE_RWSEM(dummy_semaphore); | |
17711 | (void) atomic_long_read(&dummy_semaphore.count); | |
17712 | ||
17713 | ; | |
17714 | return 0; | |
17715 | } | |
17716 | ||
17717 | _ACEOF | |
17718 | ||
17719 | ||
17720 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17721 | echo "obj-m := conftest.o" >build/Makefile | |
17722 | modpost_flag='' | |
17723 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17724 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17725 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17726 | (eval $ac_try) 2>&5 | |
17727 | ac_status=$? | |
17728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17729 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17730 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17731 | (eval $ac_try) 2>&5 | |
17732 | ac_status=$? | |
17733 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17734 | test $ac_status = 0; }; }; then : | |
17735 | ||
17736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17737 | $as_echo "yes" >&6; } | |
17738 | ||
17739 | $as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h | |
17740 | ||
17741 | ||
17742 | else | |
17743 | $as_echo "$as_me: failed program was:" >&5 | |
17744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17745 | ||
17746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17747 | $as_echo "no" >&6; } | |
17748 | ||
17749 | ||
17750 | ||
17751 | fi | |
17752 | rm -Rf build | |
17753 | ||
17754 | ||
17755 | EXTRA_KCFLAGS="$tmp_flags" | |
17756 | ||
17757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5 | |
17758 | $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; } | |
17759 | ||
17760 | ||
17761 | cat confdefs.h - <<_ACEOF >conftest.c | |
17762 | ||
17763 | ||
17764 | #include <linux/sched.h> | |
17765 | #include <linux/sched/rt.h> | |
17766 | ||
17767 | int | |
17768 | main (void) | |
17769 | { | |
17770 | ||
17771 | return 0; | |
17772 | ||
17773 | ; | |
17774 | return 0; | |
17775 | } | |
17776 | ||
17777 | _ACEOF | |
17778 | ||
17779 | ||
17780 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17781 | echo "obj-m := conftest.o" >build/Makefile | |
17782 | modpost_flag='' | |
17783 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17784 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17785 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17786 | (eval $ac_try) 2>&5 | |
17787 | ac_status=$? | |
17788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17789 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17790 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17791 | (eval $ac_try) 2>&5 | |
17792 | ac_status=$? | |
17793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17794 | test $ac_status = 0; }; }; then : | |
17795 | ||
17796 | ||
17797 | $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h | |
17798 | ||
17799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17800 | $as_echo "yes" >&6; } | |
17801 | ||
17802 | else | |
17803 | $as_echo "$as_me: failed program was:" >&5 | |
17804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17805 | ||
17806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17807 | $as_echo "no" >&6; } | |
17808 | ||
17809 | ||
17810 | ||
3e990ae0 CIK |
17811 | fi |
17812 | rm -Rf build | |
17813 | ||
17814 | ||
17815 | ||
17816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/signal.h exists" >&5 | |
17817 | $as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; } | |
17818 | ||
17819 | ||
17820 | cat confdefs.h - <<_ACEOF >conftest.c | |
17821 | ||
17822 | ||
17823 | #include <linux/sched.h> | |
17824 | #include <linux/sched/signal.h> | |
17825 | ||
17826 | int | |
17827 | main (void) | |
17828 | { | |
17829 | ||
17830 | return 0; | |
17831 | ||
17832 | ; | |
17833 | return 0; | |
17834 | } | |
17835 | ||
17836 | _ACEOF | |
17837 | ||
17838 | ||
17839 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17840 | echo "obj-m := conftest.o" >build/Makefile | |
17841 | modpost_flag='' | |
17842 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17843 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17844 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17845 | (eval $ac_try) 2>&5 | |
17846 | ac_status=$? | |
17847 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17848 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17849 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17850 | (eval $ac_try) 2>&5 | |
17851 | ac_status=$? | |
17852 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17853 | test $ac_status = 0; }; }; then : | |
17854 | ||
17855 | ||
17856 | $as_echo "#define HAVE_SCHED_SIGNAL_HEADER 1" >>confdefs.h | |
17857 | ||
17858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17859 | $as_echo "yes" >&6; } | |
17860 | ||
17861 | else | |
17862 | $as_echo "$as_me: failed program was:" >&5 | |
17863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17864 | ||
17865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17866 | $as_echo "no" >&6; } | |
17867 | ||
17868 | ||
17869 | ||
87d546d8 TG |
17870 | fi |
17871 | rm -Rf build | |
17872 | ||
17873 | ||
17874 | ||
17875 | ||
3e990ae0 CIK |
17876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 4 args" >&5 |
17877 | $as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; } | |
87d546d8 TG |
17878 | |
17879 | ||
17880 | cat confdefs.h - <<_ACEOF >conftest.c | |
17881 | ||
17882 | ||
17883 | #include <linux/fs.h> | |
17884 | ||
17885 | int | |
17886 | main (void) | |
17887 | { | |
17888 | ||
3e990ae0 CIK |
17889 | vfs_getattr((const struct path *)NULL, |
17890 | (struct kstat *)NULL, | |
17891 | (u32)0, | |
17892 | (unsigned int)0); | |
87d546d8 TG |
17893 | |
17894 | ; | |
17895 | return 0; | |
17896 | } | |
17897 | ||
17898 | _ACEOF | |
17899 | ||
17900 | ||
17901 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17902 | echo "obj-m := conftest.o" >build/Makefile | |
17903 | modpost_flag='' | |
17904 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17905 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17906 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17907 | (eval $ac_try) 2>&5 | |
17908 | ac_status=$? | |
17909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17910 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17911 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17912 | (eval $ac_try) 2>&5 | |
17913 | ac_status=$? | |
17914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17915 | test $ac_status = 0; }; }; then : | |
17916 | ||
3e990ae0 CIK |
17917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17918 | $as_echo "yes" >&6; } | |
87d546d8 | 17919 | |
3e990ae0 | 17920 | $as_echo "#define HAVE_4ARGS_VFS_GETATTR 1" >>confdefs.h |
87d546d8 TG |
17921 | |
17922 | ||
17923 | else | |
17924 | $as_echo "$as_me: failed program was:" >&5 | |
17925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17926 | ||
3e990ae0 CIK |
17927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17928 | $as_echo "no" >&6; } | |
17929 | ||
17930 | ||
17931 | ||
17932 | fi | |
17933 | rm -Rf build | |
17934 | ||
17935 | ||
17936 | ||
17937 | ||
17938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 3 args" >&5 | |
17939 | $as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; } | |
87d546d8 TG |
17940 | |
17941 | ||
17942 | cat confdefs.h - <<_ACEOF >conftest.c | |
17943 | ||
17944 | ||
3e990ae0 | 17945 | #include <linux/fs.h> |
87d546d8 TG |
17946 | |
17947 | int | |
17948 | main (void) | |
17949 | { | |
17950 | ||
3e990ae0 CIK |
17951 | vfs_getattr((struct vfsmount *)NULL, |
17952 | (struct dentry *)NULL, | |
17953 | (struct kstat *)NULL); | |
87d546d8 TG |
17954 | |
17955 | ; | |
17956 | return 0; | |
17957 | } | |
17958 | ||
17959 | _ACEOF | |
17960 | ||
17961 | ||
17962 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17963 | echo "obj-m := conftest.o" >build/Makefile | |
17964 | modpost_flag='' | |
17965 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17966 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17967 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17968 | (eval $ac_try) 2>&5 | |
17969 | ac_status=$? | |
17970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17971 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17972 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
17973 | (eval $ac_try) 2>&5 | |
17974 | ac_status=$? | |
17975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17976 | test $ac_status = 0; }; }; then : | |
17977 | ||
3e990ae0 CIK |
17978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17979 | $as_echo "yes" >&6; } | |
17980 | ||
17981 | $as_echo "#define HAVE_3ARGS_VFS_GETATTR 1" >>confdefs.h | |
17982 | ||
87d546d8 TG |
17983 | |
17984 | else | |
17985 | $as_echo "$as_me: failed program was:" >&5 | |
17986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17987 | ||
3e990ae0 CIK |
17988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17989 | $as_echo "no" >&6; } | |
87d546d8 TG |
17990 | |
17991 | ||
17992 | ||
17993 | fi | |
17994 | rm -Rf build | |
17995 | ||
17996 | ||
17997 | ||
17998 | ||
3e990ae0 CIK |
17999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants 2 args" >&5 |
18000 | $as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; } | |
18001 | ||
18002 | ||
18003 | cat confdefs.h - <<_ACEOF >conftest.c | |
18004 | ||
18005 | ||
18006 | #include <linux/fs.h> | |
18007 | ||
18008 | int | |
18009 | main (void) | |
18010 | { | |
18011 | ||
18012 | vfs_getattr((struct path *) NULL, | |
18013 | (struct kstat *)NULL); | |
18014 | ||
18015 | ; | |
18016 | return 0; | |
18017 | } | |
18018 | ||
18019 | _ACEOF | |
18020 | ||
18021 | ||
18022 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18023 | echo "obj-m := conftest.o" >build/Makefile | |
18024 | modpost_flag='' | |
18025 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18026 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18027 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18028 | (eval $ac_try) 2>&5 | |
18029 | ac_status=$? | |
18030 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18031 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18032 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18033 | (eval $ac_try) 2>&5 | |
18034 | ac_status=$? | |
18035 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18036 | test $ac_status = 0; }; }; then : | |
18037 | ||
18038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18039 | $as_echo "yes" >&6; } | |
18040 | ||
18041 | $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h | |
18042 | ||
18043 | ||
18044 | else | |
18045 | $as_echo "$as_me: failed program was:" >&5 | |
18046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18047 | ||
18048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18049 | $as_echo "no" >&6; } | |
18050 | ||
18051 | ||
87d546d8 TG |
18052 | |
18053 | fi | |
18054 | rm -Rf build | |
18055 | ||
18056 | ||
18057 | ||
18058 | ||
18059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5 | |
18060 | $as_echo_n "checking whether usleep_range() is available... " >&6; } | |
18061 | ||
18062 | ||
18063 | cat confdefs.h - <<_ACEOF >conftest.c | |
18064 | ||
18065 | ||
18066 | #include <linux/delay.h> | |
18067 | ||
18068 | int | |
18069 | main (void) | |
18070 | { | |
18071 | ||
18072 | usleep_range(0, 0); | |
18073 | ||
18074 | ; | |
18075 | return 0; | |
18076 | } | |
18077 | ||
18078 | _ACEOF | |
18079 | ||
18080 | ||
18081 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18082 | echo "obj-m := conftest.o" >build/Makefile | |
18083 | modpost_flag='' | |
18084 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18085 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18086 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18087 | (eval $ac_try) 2>&5 | |
18088 | ac_status=$? | |
18089 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18090 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18091 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18092 | (eval $ac_try) 2>&5 | |
18093 | ac_status=$? | |
18094 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18095 | test $ac_status = 0; }; }; then : | |
18096 | ||
18097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18098 | $as_echo "yes" >&6; } | |
18099 | ||
18100 | $as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h | |
18101 | ||
18102 | ||
18103 | else | |
18104 | $as_echo "$as_me: failed program was:" >&5 | |
18105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18106 | ||
18107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18108 | $as_echo "no" >&6; } | |
18109 | ||
18110 | ||
18111 | ||
18112 | fi | |
18113 | rm -Rf build | |
18114 | ||
18115 | ||
18116 | ||
18117 | ||
18118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5 | |
18119 | $as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; } | |
18120 | ||
18121 | ||
18122 | cat confdefs.h - <<_ACEOF >conftest.c | |
18123 | ||
18124 | ||
18125 | #include <linux/slab.h> | |
18126 | ||
18127 | int | |
18128 | main (void) | |
18129 | { | |
18130 | ||
18131 | struct kmem_cache cachep __attribute__ ((unused)); | |
18132 | cachep.allocflags = GFP_KERNEL; | |
18133 | ||
18134 | ; | |
18135 | return 0; | |
18136 | } | |
18137 | ||
18138 | _ACEOF | |
18139 | ||
18140 | ||
18141 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18142 | echo "obj-m := conftest.o" >build/Makefile | |
18143 | modpost_flag='' | |
18144 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18145 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18146 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18147 | (eval $ac_try) 2>&5 | |
18148 | ac_status=$? | |
18149 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18150 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18151 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18152 | (eval $ac_try) 2>&5 | |
18153 | ac_status=$? | |
18154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18155 | test $ac_status = 0; }; }; then : | |
18156 | ||
18157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18158 | $as_echo "yes" >&6; } | |
18159 | ||
18160 | $as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h | |
18161 | ||
18162 | ||
18163 | else | |
18164 | $as_echo "$as_me: failed program was:" >&5 | |
18165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18166 | ||
18167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18168 | $as_echo "no" >&6; } | |
18169 | ||
18170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5 | |
18171 | $as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; } | |
18172 | ||
18173 | ||
18174 | cat confdefs.h - <<_ACEOF >conftest.c | |
18175 | ||
18176 | ||
18177 | #include <linux/slab.h> | |
18178 | ||
18179 | int | |
18180 | main (void) | |
18181 | { | |
18182 | ||
18183 | struct kmem_cache cachep __attribute__ ((unused)); | |
18184 | cachep.gfpflags = GFP_KERNEL; | |
18185 | ||
18186 | ; | |
18187 | return 0; | |
18188 | } | |
18189 | ||
18190 | _ACEOF | |
18191 | ||
18192 | ||
18193 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18194 | echo "obj-m := conftest.o" >build/Makefile | |
18195 | modpost_flag='' | |
18196 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18197 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18198 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18199 | (eval $ac_try) 2>&5 | |
18200 | ac_status=$? | |
18201 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18202 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18203 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18204 | (eval $ac_try) 2>&5 | |
18205 | ac_status=$? | |
18206 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18207 | test $ac_status = 0; }; }; then : | |
18208 | ||
18209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18210 | $as_echo "yes" >&6; } | |
18211 | ||
18212 | $as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h | |
18213 | ||
18214 | ||
18215 | else | |
18216 | $as_echo "$as_me: failed program was:" >&5 | |
18217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18218 | ||
18219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18220 | $as_echo "no" >&6; } | |
18221 | ||
18222 | ||
18223 | ||
18224 | fi | |
18225 | rm -Rf build | |
18226 | ||
18227 | ||
18228 | ||
18229 | ||
18230 | ||
18231 | fi | |
18232 | rm -Rf build | |
18233 | ||
18234 | ||
18235 | ||
18236 | ||
18237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5 | |
18238 | $as_echo_n "checking whether wait_on_bit() takes an action... " >&6; } | |
18239 | ||
18240 | ||
18241 | cat confdefs.h - <<_ACEOF >conftest.c | |
18242 | ||
18243 | ||
18244 | #include <linux/wait.h> | |
18245 | ||
18246 | int | |
18247 | main (void) | |
18248 | { | |
18249 | ||
18250 | int (*action)(void *) = NULL; | |
18251 | wait_on_bit(NULL, 0, action, 0); | |
18252 | ||
18253 | ; | |
18254 | return 0; | |
18255 | } | |
18256 | ||
18257 | _ACEOF | |
18258 | ||
18259 | ||
18260 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18261 | echo "obj-m := conftest.o" >build/Makefile | |
18262 | modpost_flag='' | |
18263 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18264 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18265 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18266 | (eval $ac_try) 2>&5 | |
18267 | ac_status=$? | |
18268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18269 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18270 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18271 | (eval $ac_try) 2>&5 | |
18272 | ac_status=$? | |
18273 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18274 | test $ac_status = 0; }; }; then : | |
18275 | ||
18276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18277 | $as_echo "yes" >&6; } | |
18278 | ||
18279 | $as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h | |
18280 | ||
18281 | ||
18282 | else | |
18283 | $as_echo "$as_me: failed program was:" >&5 | |
18284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18285 | ||
18286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18287 | $as_echo "no" >&6; } | |
18288 | ||
18289 | ||
18290 | ||
18291 | fi | |
18292 | rm -Rf build | |
18293 | ||
18294 | ||
18295 | ||
18296 | ||
18297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5 | |
18298 | $as_echo_n "checking whether inode_lock_shared() exists... " >&6; } | |
18299 | tmp_flags="$EXTRA_KCFLAGS" | |
18300 | EXTRA_KCFLAGS="-Werror" | |
18301 | ||
18302 | ||
18303 | cat confdefs.h - <<_ACEOF >conftest.c | |
18304 | ||
18305 | ||
18306 | #include <linux/fs.h> | |
18307 | ||
18308 | int | |
18309 | main (void) | |
18310 | { | |
18311 | ||
18312 | struct inode *inode = NULL; | |
18313 | inode_lock_shared(inode); | |
18314 | ||
18315 | ; | |
18316 | return 0; | |
18317 | } | |
18318 | ||
18319 | _ACEOF | |
18320 | ||
18321 | ||
18322 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18323 | echo "obj-m := conftest.o" >build/Makefile | |
18324 | modpost_flag='' | |
18325 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18326 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18327 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18328 | (eval $ac_try) 2>&5 | |
18329 | ac_status=$? | |
18330 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18331 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18332 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18333 | (eval $ac_try) 2>&5 | |
18334 | ac_status=$? | |
18335 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18336 | test $ac_status = 0; }; }; then : | |
18337 | ||
18338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18339 | $as_echo "yes" >&6; } | |
18340 | ||
18341 | $as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h | |
18342 | ||
18343 | ||
18344 | else | |
18345 | $as_echo "$as_me: failed program was:" >&5 | |
18346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18347 | ||
18348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18349 | $as_echo "no" >&6; } | |
18350 | ||
18351 | ||
18352 | ||
18353 | fi | |
18354 | rm -Rf build | |
18355 | ||
18356 | ||
18357 | EXTRA_KCFLAGS="$tmp_flags" | |
18358 | ||
18359 | ||
18360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex has owner" >&5 | |
18361 | $as_echo_n "checking whether mutex has owner... " >&6; } | |
18362 | tmp_flags="$EXTRA_KCFLAGS" | |
18363 | EXTRA_KCFLAGS="-Werror" | |
18364 | ||
18365 | ||
18366 | cat confdefs.h - <<_ACEOF >conftest.c | |
18367 | ||
18368 | ||
18369 | #include <linux/mutex.h> | |
18370 | #include <linux/spinlock.h> | |
18371 | ||
18372 | int | |
18373 | main (void) | |
18374 | { | |
18375 | ||
18376 | DEFINE_MUTEX(m); | |
18377 | struct task_struct *t __attribute__ ((unused)); | |
18378 | t = m.owner; | |
18379 | ||
18380 | ; | |
18381 | return 0; | |
18382 | } | |
18383 | ||
18384 | _ACEOF | |
18385 | ||
18386 | ||
18387 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18388 | echo "obj-m := conftest.o" >build/Makefile | |
18389 | modpost_flag='' | |
18390 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18391 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18392 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18393 | (eval $ac_try) 2>&5 | |
18394 | ac_status=$? | |
18395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18396 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18397 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18398 | (eval $ac_try) 2>&5 | |
18399 | ac_status=$? | |
18400 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18401 | test $ac_status = 0; }; }; then : | |
18402 | ||
18403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18404 | $as_echo "yes" >&6; } | |
18405 | ||
18406 | $as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h | |
18407 | ||
18408 | ||
18409 | else | |
18410 | $as_echo "$as_me: failed program was:" >&5 | |
18411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18412 | ||
18413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18414 | $as_echo "no" >&6; } | |
18415 | ||
18416 | ||
18417 | ||
18418 | fi | |
18419 | rm -Rf build | |
18420 | ||
18421 | ||
18422 | EXTRA_KCFLAGS="$tmp_flags" | |
18423 | ||
18424 | ||
18425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether group_info->gid exists" >&5 | |
18426 | $as_echo_n "checking whether group_info->gid exists... " >&6; } | |
18427 | tmp_flags="$EXTRA_KCFLAGS" | |
18428 | EXTRA_KCFLAGS="-Werror" | |
18429 | ||
18430 | ||
18431 | cat confdefs.h - <<_ACEOF >conftest.c | |
18432 | ||
18433 | ||
18434 | #include <linux/cred.h> | |
18435 | ||
18436 | int | |
18437 | main (void) | |
18438 | { | |
18439 | ||
18440 | struct group_info *gi = groups_alloc(1); | |
18441 | gi->gid[0] = KGIDT_INIT(0); | |
18442 | ||
18443 | ; | |
18444 | return 0; | |
18445 | } | |
18446 | ||
18447 | _ACEOF | |
18448 | ||
18449 | ||
18450 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18451 | echo "obj-m := conftest.o" >build/Makefile | |
18452 | modpost_flag='' | |
18453 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18454 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18455 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18456 | (eval $ac_try) 2>&5 | |
18457 | ac_status=$? | |
18458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18459 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18460 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18461 | (eval $ac_try) 2>&5 | |
18462 | ac_status=$? | |
18463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18464 | test $ac_status = 0; }; }; then : | |
18465 | ||
18466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18467 | $as_echo "yes" >&6; } | |
18468 | ||
18469 | $as_echo "#define HAVE_GROUP_INFO_GID 1" >>confdefs.h | |
18470 | ||
18471 | ||
18472 | else | |
18473 | $as_echo "$as_me: failed program was:" >&5 | |
18474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18475 | ||
18476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18477 | $as_echo "no" >&6; } | |
18478 | ||
18479 | ||
18480 | ||
18481 | fi | |
18482 | rm -Rf build | |
18483 | ||
18484 | ||
18485 | EXTRA_KCFLAGS="$tmp_flags" | |
18486 | ||
18487 | ||
1681e039 CIK |
18488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_queue_entry_t exists" >&5 |
18489 | $as_echo_n "checking whether wait_queue_entry_t exists... " >&6; } | |
18490 | ||
18491 | ||
18492 | cat confdefs.h - <<_ACEOF >conftest.c | |
18493 | ||
18494 | ||
18495 | #include <linux/wait.h> | |
18496 | ||
18497 | int | |
18498 | main (void) | |
18499 | { | |
18500 | ||
18501 | wait_queue_entry_t *entry __attribute__ ((unused)); | |
18502 | ||
18503 | ; | |
18504 | return 0; | |
18505 | } | |
18506 | ||
18507 | _ACEOF | |
18508 | ||
18509 | ||
18510 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18511 | echo "obj-m := conftest.o" >build/Makefile | |
18512 | modpost_flag='' | |
18513 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18514 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18515 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18516 | (eval $ac_try) 2>&5 | |
18517 | ac_status=$? | |
18518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18519 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18520 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18521 | (eval $ac_try) 2>&5 | |
18522 | ac_status=$? | |
18523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18524 | test $ac_status = 0; }; }; then : | |
18525 | ||
18526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18527 | $as_echo "yes" >&6; } | |
18528 | ||
18529 | $as_echo "#define HAVE_WAIT_QUEUE_ENTRY_T 1" >>confdefs.h | |
18530 | ||
18531 | ||
18532 | else | |
18533 | $as_echo "$as_me: failed program was:" >&5 | |
18534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18535 | ||
18536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18537 | $as_echo "no" >&6; } | |
18538 | ||
18539 | ||
18540 | ||
18541 | fi | |
18542 | rm -Rf build | |
18543 | ||
18544 | ||
18545 | ||
18546 | ||
18547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wq_head->head and wq_entry->entry exist" >&5 | |
18548 | $as_echo_n "checking whether wq_head->head and wq_entry->entry exist... " >&6; } | |
18549 | ||
18550 | ||
18551 | cat confdefs.h - <<_ACEOF >conftest.c | |
18552 | ||
18553 | ||
18554 | #include <linux/wait.h> | |
18555 | ||
18556 | #ifdef HAVE_WAIT_QUEUE_ENTRY_T | |
18557 | typedef wait_queue_head_t spl_wait_queue_head_t; | |
18558 | typedef wait_queue_entry_t spl_wait_queue_entry_t; | |
18559 | #else | |
18560 | typedef wait_queue_head_t spl_wait_queue_head_t; | |
18561 | typedef wait_queue_t spl_wait_queue_entry_t; | |
18562 | #endif | |
18563 | ||
18564 | int | |
18565 | main (void) | |
18566 | { | |
18567 | ||
18568 | spl_wait_queue_head_t wq_head; | |
18569 | spl_wait_queue_entry_t wq_entry; | |
18570 | struct list_head *head __attribute__ ((unused)); | |
18571 | struct list_head *entry __attribute__ ((unused)); | |
18572 | ||
18573 | head = &wq_head.head; | |
18574 | entry = &wq_entry.entry; | |
18575 | ||
18576 | ; | |
18577 | return 0; | |
18578 | } | |
18579 | ||
18580 | _ACEOF | |
18581 | ||
18582 | ||
18583 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18584 | echo "obj-m := conftest.o" >build/Makefile | |
18585 | modpost_flag='' | |
18586 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18587 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18588 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18589 | (eval $ac_try) 2>&5 | |
18590 | ac_status=$? | |
18591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18592 | test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18593 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
18594 | (eval $ac_try) 2>&5 | |
18595 | ac_status=$? | |
18596 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18597 | test $ac_status = 0; }; }; then : | |
18598 | ||
18599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18600 | $as_echo "yes" >&6; } | |
18601 | ||
18602 | $as_echo "#define HAVE_WAIT_QUEUE_HEAD_ENTRY 1" >>confdefs.h | |
18603 | ||
18604 | ||
18605 | else | |
18606 | $as_echo "$as_me: failed program was:" >&5 | |
18607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18608 | ||
18609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18610 | $as_echo "no" >&6; } | |
18611 | ||
18612 | ||
18613 | ||
18614 | fi | |
18615 | rm -Rf build | |
18616 | ||
18617 | ||
18618 | ||
18619 | ||
87d546d8 TG |
18620 | ;; |
18621 | srpm) ;; | |
18622 | *) | |
18623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5 | |
18624 | $as_echo "Error!" >&6; } | |
18625 | as_fn_error $? "Bad value \"$SPL_CONFIG\" for --with-config, | |
18626 | user kernel|user|all|srpm" "$LINENO" 5 ;; | |
18627 | esac | |
18628 | ||
18629 | if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then | |
18630 | CONFIG_USER_TRUE= | |
18631 | CONFIG_USER_FALSE='#' | |
18632 | else | |
18633 | CONFIG_USER_TRUE='#' | |
18634 | CONFIG_USER_FALSE= | |
18635 | fi | |
18636 | ||
18637 | if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all && | |
18638 | test "x$enable_linux_builtin" != xyes ; then | |
18639 | CONFIG_KERNEL_TRUE= | |
18640 | CONFIG_KERNEL_FALSE='#' | |
18641 | else | |
18642 | CONFIG_KERNEL_TRUE='#' | |
18643 | CONFIG_KERNEL_FALSE= | |
18644 | fi | |
18645 | ||
18646 | ||
18647 | ||
18648 | ac_config_files="$ac_config_files Makefile man/Makefile man/man1/Makefile man/man5/Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile include/fs/Makefile include/linux/Makefile include/rpc/Makefile include/sharefs/Makefile include/sys/Makefile include/sys/fm/Makefile include/sys/fs/Makefile include/sys/sysevent/Makefile include/util/Makefile include/vm/Makefile scripts/Makefile rpm/Makefile rpm/redhat/Makefile rpm/redhat/spl.spec rpm/redhat/spl-kmod.spec rpm/redhat/spl-dkms.spec rpm/generic/Makefile rpm/generic/spl.spec rpm/generic/spl-kmod.spec rpm/generic/spl-dkms.spec spl.release" | |
18649 | ||
18650 | ||
18651 | cat >confcache <<\_ACEOF | |
18652 | # This file is a shell script that caches the results of configure | |
18653 | # tests run on this system so they can be shared between configure | |
18654 | # scripts and configure runs, see configure's option --config-cache. | |
18655 | # It is not useful on other systems. If it contains results you don't | |
18656 | # want to keep, you may remove or edit it. | |
18657 | # | |
18658 | # config.status only pays attention to the cache file if you give it | |
18659 | # the --recheck option to rerun configure. | |
18660 | # | |
18661 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
18662 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18663 | # following values. | |
18664 | ||
18665 | _ACEOF | |
18666 | ||
18667 | # The following way of writing the cache mishandles newlines in values, | |
18668 | # but we know of no workaround that is simple, portable, and efficient. | |
18669 | # So, we kill variables containing newlines. | |
18670 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18671 | # and sets the high bit in the cache file unless we assign to the vars. | |
18672 | ( | |
18673 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18674 | eval ac_val=\$$ac_var | |
18675 | case $ac_val in #( | |
18676 | *${as_nl}*) | |
18677 | case $ac_var in #( | |
18678 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18679 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18680 | esac | |
18681 | case $ac_var in #( | |
18682 | _ | IFS | as_nl) ;; #( | |
18683 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18684 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18685 | esac ;; | |
18686 | esac | |
18687 | done | |
18688 | ||
18689 | (set) 2>&1 | | |
18690 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
18691 | *${as_nl}ac_space=\ *) | |
18692 | # `set' does not quote correctly, so add quotes: double-quote | |
18693 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
18694 | sed -n \ | |
18695 | "s/'/'\\\\''/g; | |
18696 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
18697 | ;; #( | |
18698 | *) | |
18699 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18700 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
18701 | ;; | |
18702 | esac | | |
18703 | sort | |
18704 | ) | | |
18705 | sed ' | |
18706 | /^ac_cv_env_/b end | |
18707 | t clear | |
18708 | :clear | |
18709 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18710 | t end | |
18711 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18712 | :end' >>confcache | |
18713 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18714 | if test -w "$cache_file"; then | |
18715 | if test "x$cache_file" != "x/dev/null"; then | |
18716 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
18717 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
18718 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
18719 | cat confcache >"$cache_file" | |
18720 | else | |
18721 | case $cache_file in #( | |
18722 | */* | ?:*) | |
18723 | mv -f confcache "$cache_file"$$ && | |
18724 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
18725 | *) | |
18726 | mv -f confcache "$cache_file" ;; | |
18727 | esac | |
18728 | fi | |
18729 | fi | |
18730 | else | |
18731 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
18732 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
18733 | fi | |
18734 | fi | |
18735 | rm -f confcache | |
18736 | ||
18737 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
18738 | # Let make expand exec_prefix. | |
18739 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18740 | ||
18741 | DEFS=-DHAVE_CONFIG_H | |
18742 | ||
18743 | ac_libobjs= | |
18744 | ac_ltlibobjs= | |
18745 | U= | |
18746 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18747 | # 1. Remove the extension, and $U if already installed. | |
18748 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
18749 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18750 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18751 | # will be set to the directory where LIBOBJS objects are built. | |
18752 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18753 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
18754 | done | |
18755 | LIBOBJS=$ac_libobjs | |
18756 | ||
18757 | LTLIBOBJS=$ac_ltlibobjs | |
18758 | ||
18759 | ||
18760 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
18761 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
18762 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18763 | fi | |
18764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
18765 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
18766 | if test -n "$am_sleep_pid"; then | |
18767 | # Hide warnings about reused PIDs. | |
18768 | wait $am_sleep_pid 2>/dev/null | |
18769 | fi | |
18770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
18771 | $as_echo "done" >&6; } | |
18772 | if test -n "$EXEEXT"; then | |
18773 | am__EXEEXT_TRUE= | |
18774 | am__EXEEXT_FALSE='#' | |
18775 | else | |
18776 | am__EXEEXT_TRUE='#' | |
18777 | am__EXEEXT_FALSE= | |
18778 | fi | |
18779 | ||
18780 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
18781 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
18782 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18783 | fi | |
18784 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
18785 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
18786 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18787 | fi | |
18788 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then | |
18789 | as_fn_error $? "conditional \"CONFIG_USER\" was never defined. | |
18790 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18791 | fi | |
18792 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
18793 | as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined. | |
18794 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
18795 | fi | |
18796 | ||
18797 | : "${CONFIG_STATUS=./config.status}" | |
18798 | ac_write_fail=0 | |
18799 | ac_clean_files_save=$ac_clean_files | |
18800 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
18801 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
18802 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18803 | as_write_fail=0 | |
18804 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
18805 | #! $SHELL | |
18806 | # Generated by $as_me. | |
18807 | # Run this file to recreate the current configuration. | |
18808 | # Compiler output produced by configure, useful for debugging | |
18809 | # configure, is in config.log if it exists. | |
18810 | ||
18811 | debug=false | |
18812 | ac_cs_recheck=false | |
18813 | ac_cs_silent=false | |
18814 | ||
18815 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18816 | export SHELL | |
18817 | _ASEOF | |
18818 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18819 | ## -------------------- ## | |
18820 | ## M4sh Initialization. ## | |
18821 | ## -------------------- ## | |
18822 | ||
18823 | # Be more Bourne compatible | |
18824 | DUALCASE=1; export DUALCASE # for MKS sh | |
18825 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18826 | emulate sh | |
18827 | NULLCMD=: | |
18828 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
18829 | # is contrary to our usage. Disable this feature. | |
18830 | alias -g '${1+"$@"}'='"$@"' | |
18831 | setopt NO_GLOB_SUBST | |
18832 | else | |
18833 | case `(set -o) 2>/dev/null` in #( | |
18834 | *posix*) : | |
18835 | set -o posix ;; #( | |
18836 | *) : | |
18837 | ;; | |
18838 | esac | |
18839 | fi | |
18840 | ||
18841 | ||
18842 | as_nl=' | |
18843 | ' | |
18844 | export as_nl | |
18845 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18846 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18847 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18848 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18849 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18850 | # but without wasting forks for bash or zsh. | |
18851 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18852 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18853 | as_echo='print -r --' | |
18854 | as_echo_n='print -rn --' | |
18855 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18856 | as_echo='printf %s\n' | |
18857 | as_echo_n='printf %s' | |
18858 | else | |
18859 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18860 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18861 | as_echo_n='/usr/ucb/echo -n' | |
18862 | else | |
18863 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18864 | as_echo_n_body='eval | |
18865 | arg=$1; | |
18866 | case $arg in #( | |
18867 | *"$as_nl"*) | |
18868 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18869 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18870 | esac; | |
18871 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18872 | ' | |
18873 | export as_echo_n_body | |
18874 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18875 | fi | |
18876 | export as_echo_body | |
18877 | as_echo='sh -c $as_echo_body as_echo' | |
18878 | fi | |
18879 | ||
18880 | # The user is always right. | |
18881 | if test "${PATH_SEPARATOR+set}" != set; then | |
18882 | PATH_SEPARATOR=: | |
18883 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18884 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18885 | PATH_SEPARATOR=';' | |
18886 | } | |
18887 | fi | |
18888 | ||
18889 | ||
18890 | # IFS | |
18891 | # We need space, tab and new line, in precisely that order. Quoting is | |
18892 | # there to prevent editors from complaining about space-tab. | |
18893 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18894 | # splitting by setting IFS to empty value.) | |
18895 | IFS=" "" $as_nl" | |
18896 | ||
18897 | # Find who we are. Look in the path if we contain no directory separator. | |
18898 | as_myself= | |
18899 | case $0 in #(( | |
18900 | *[\\/]* ) as_myself=$0 ;; | |
18901 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18902 | for as_dir in $PATH | |
18903 | do | |
18904 | IFS=$as_save_IFS | |
18905 | test -z "$as_dir" && as_dir=. | |
18906 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18907 | done | |
18908 | IFS=$as_save_IFS | |
18909 | ||
18910 | ;; | |
18911 | esac | |
18912 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18913 | # in which case we are not to be found in the path. | |
18914 | if test "x$as_myself" = x; then | |
18915 | as_myself=$0 | |
18916 | fi | |
18917 | if test ! -f "$as_myself"; then | |
18918 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18919 | exit 1 | |
18920 | fi | |
18921 | ||
18922 | # Unset variables that we do not need and which cause bugs (e.g. in | |
18923 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18924 | # suppresses any "Segmentation fault" message there. '((' could | |
18925 | # trigger a bug in pdksh 5.2.14. | |
18926 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18927 | do eval test x\${$as_var+set} = xset \ | |
18928 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18929 | done | |
18930 | PS1='$ ' | |
18931 | PS2='> ' | |
18932 | PS4='+ ' | |
18933 | ||
18934 | # NLS nuisances. | |
18935 | LC_ALL=C | |
18936 | export LC_ALL | |
18937 | LANGUAGE=C | |
18938 | export LANGUAGE | |
18939 | ||
18940 | # CDPATH. | |
18941 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18942 | ||
18943 | ||
18944 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
18945 | # ---------------------------------------- | |
18946 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
18947 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
18948 | # script with STATUS, using 1 if that was 0. | |
18949 | as_fn_error () | |
18950 | { | |
18951 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
18952 | if test "$4"; then | |
18953 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18954 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
18955 | fi | |
18956 | $as_echo "$as_me: error: $2" >&2 | |
18957 | as_fn_exit $as_status | |
18958 | } # as_fn_error | |
18959 | ||
18960 | ||
18961 | # as_fn_set_status STATUS | |
18962 | # ----------------------- | |
18963 | # Set $? to STATUS, without forking. | |
18964 | as_fn_set_status () | |
18965 | { | |
18966 | return $1 | |
18967 | } # as_fn_set_status | |
18968 | ||
18969 | # as_fn_exit STATUS | |
18970 | # ----------------- | |
18971 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18972 | as_fn_exit () | |
18973 | { | |
18974 | set +e | |
18975 | as_fn_set_status $1 | |
18976 | exit $1 | |
18977 | } # as_fn_exit | |
18978 | ||
18979 | # as_fn_unset VAR | |
18980 | # --------------- | |
18981 | # Portably unset VAR. | |
18982 | as_fn_unset () | |
18983 | { | |
18984 | { eval $1=; unset $1;} | |
18985 | } | |
18986 | as_unset=as_fn_unset | |
18987 | # as_fn_append VAR VALUE | |
18988 | # ---------------------- | |
18989 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18990 | # advantage of any shell optimizations that allow amortized linear growth over | |
18991 | # repeated appends, instead of the typical quadratic growth present in naive | |
18992 | # implementations. | |
18993 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18994 | eval 'as_fn_append () | |
18995 | { | |
18996 | eval $1+=\$2 | |
18997 | }' | |
18998 | else | |
18999 | as_fn_append () | |
19000 | { | |
19001 | eval $1=\$$1\$2 | |
19002 | } | |
19003 | fi # as_fn_append | |
19004 | ||
19005 | # as_fn_arith ARG... | |
19006 | # ------------------ | |
19007 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
19008 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
19009 | # must be portable across $(()) and expr. | |
19010 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
19011 | eval 'as_fn_arith () | |
19012 | { | |
19013 | as_val=$(( $* )) | |
19014 | }' | |
19015 | else | |
19016 | as_fn_arith () | |
19017 | { | |
19018 | as_val=`expr "$@" || test $? -eq 1` | |
19019 | } | |
19020 | fi # as_fn_arith | |
19021 | ||
19022 | ||
19023 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
19024 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
19025 | as_expr=expr | |
19026 | else | |
19027 | as_expr=false | |
19028 | fi | |
19029 | ||
19030 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
19031 | as_basename=basename | |
19032 | else | |
19033 | as_basename=false | |
19034 | fi | |
19035 | ||
19036 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
19037 | as_dirname=dirname | |
19038 | else | |
19039 | as_dirname=false | |
19040 | fi | |
19041 | ||
19042 | as_me=`$as_basename -- "$0" || | |
19043 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
19044 | X"$0" : 'X\(//\)$' \| \ | |
19045 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
19046 | $as_echo X/"$0" | | |
19047 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
19048 | s//\1/ | |
19049 | q | |
19050 | } | |
19051 | /^X\/\(\/\/\)$/{ | |
19052 | s//\1/ | |
19053 | q | |
19054 | } | |
19055 | /^X\/\(\/\).*/{ | |
19056 | s//\1/ | |
19057 | q | |
19058 | } | |
19059 | s/.*/./; q'` | |
19060 | ||
19061 | # Avoid depending upon Character Ranges. | |
19062 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
19063 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
19064 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
19065 | as_cr_digits='0123456789' | |
19066 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
19067 | ||
19068 | ECHO_C= ECHO_N= ECHO_T= | |
19069 | case `echo -n x` in #((((( | |
19070 | -n*) | |
19071 | case `echo 'xy\c'` in | |
19072 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
19073 | xy) ECHO_C='\c';; | |
19074 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
19075 | ECHO_T=' ';; | |
19076 | esac;; | |
19077 | *) | |
19078 | ECHO_N='-n';; | |
19079 | esac | |
19080 | ||
19081 | rm -f conf$$ conf$$.exe conf$$.file | |
19082 | if test -d conf$$.dir; then | |
19083 | rm -f conf$$.dir/conf$$.file | |
19084 | else | |
19085 | rm -f conf$$.dir | |
19086 | mkdir conf$$.dir 2>/dev/null | |
19087 | fi | |
19088 | if (echo >conf$$.file) 2>/dev/null; then | |
19089 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
19090 | as_ln_s='ln -s' | |
19091 | # ... but there are two gotchas: | |
19092 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19093 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
19094 | # In both cases, we have to default to `cp -pR'. | |
19095 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
19096 | as_ln_s='cp -pR' | |
19097 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
19098 | as_ln_s=ln | |
19099 | else | |
19100 | as_ln_s='cp -pR' | |
19101 | fi | |
19102 | else | |
19103 | as_ln_s='cp -pR' | |
19104 | fi | |
19105 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
19106 | rmdir conf$$.dir 2>/dev/null | |
19107 | ||
19108 | ||
19109 | # as_fn_mkdir_p | |
19110 | # ------------- | |
19111 | # Create "$as_dir" as a directory, including parents if necessary. | |
19112 | as_fn_mkdir_p () | |
19113 | { | |
19114 | ||
19115 | case $as_dir in #( | |
19116 | -*) as_dir=./$as_dir;; | |
19117 | esac | |
19118 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19119 | as_dirs= | |
19120 | while :; do | |
19121 | case $as_dir in #( | |
19122 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19123 | *) as_qdir=$as_dir;; | |
19124 | esac | |
19125 | as_dirs="'$as_qdir' $as_dirs" | |
19126 | as_dir=`$as_dirname -- "$as_dir" || | |
19127 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19128 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19129 | X"$as_dir" : 'X\(//\)$' \| \ | |
19130 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19131 | $as_echo X"$as_dir" | | |
19132 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19133 | s//\1/ | |
19134 | q | |
19135 | } | |
19136 | /^X\(\/\/\)[^/].*/{ | |
19137 | s//\1/ | |
19138 | q | |
19139 | } | |
19140 | /^X\(\/\/\)$/{ | |
19141 | s//\1/ | |
19142 | q | |
19143 | } | |
19144 | /^X\(\/\).*/{ | |
19145 | s//\1/ | |
19146 | q | |
19147 | } | |
19148 | s/.*/./; q'` | |
19149 | test -d "$as_dir" && break | |
19150 | done | |
19151 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
19152 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
19153 | ||
19154 | ||
19155 | } # as_fn_mkdir_p | |
19156 | if mkdir -p . 2>/dev/null; then | |
19157 | as_mkdir_p='mkdir -p "$as_dir"' | |
19158 | else | |
19159 | test -d ./-p && rmdir ./-p | |
19160 | as_mkdir_p=false | |
19161 | fi | |
19162 | ||
19163 | ||
19164 | # as_fn_executable_p FILE | |
19165 | # ----------------------- | |
19166 | # Test if FILE is an executable regular file. | |
19167 | as_fn_executable_p () | |
19168 | { | |
19169 | test -f "$1" && test -x "$1" | |
19170 | } # as_fn_executable_p | |
19171 | as_test_x='test -x' | |
19172 | as_executable_p=as_fn_executable_p | |
19173 | ||
19174 | # Sed expression to map a string onto a valid CPP name. | |
19175 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19176 | ||
19177 | # Sed expression to map a string onto a valid variable name. | |
19178 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19179 | ||
19180 | ||
19181 | exec 6>&1 | |
19182 | ## ----------------------------------- ## | |
19183 | ## Main body of $CONFIG_STATUS script. ## | |
19184 | ## ----------------------------------- ## | |
19185 | _ASEOF | |
19186 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19187 | ||
19188 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19189 | # Save the log message, to keep $0 and so on meaningful, and to | |
19190 | # report actual input values of CONFIG_FILES etc. instead of their | |
19191 | # values after options handling. | |
19192 | ac_log=" | |
1ec59ff7 | 19193 | This file was extended by spl $as_me 0.6.5.11, which was |
87d546d8 TG |
19194 | generated by GNU Autoconf 2.69. Invocation command line was |
19195 | ||
19196 | CONFIG_FILES = $CONFIG_FILES | |
19197 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19198 | CONFIG_LINKS = $CONFIG_LINKS | |
19199 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19200 | $ $0 $@ | |
19201 | ||
19202 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
19203 | " | |
19204 | ||
19205 | _ACEOF | |
19206 | ||
19207 | case $ac_config_files in *" | |
19208 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19209 | esac | |
19210 | ||
19211 | case $ac_config_headers in *" | |
19212 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
19213 | esac | |
19214 | ||
19215 | ||
19216 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19217 | # Files that config.status was made for. | |
19218 | config_files="$ac_config_files" | |
19219 | config_headers="$ac_config_headers" | |
19220 | config_commands="$ac_config_commands" | |
19221 | ||
19222 | _ACEOF | |
19223 | ||
19224 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19225 | ac_cs_usage="\ | |
19226 | \`$as_me' instantiates files and other configuration actions | |
19227 | from templates according to the current configuration. Unless the files | |
19228 | and actions are specified as TAGs, all are instantiated by default. | |
19229 | ||
19230 | Usage: $0 [OPTION]... [TAG]... | |
19231 | ||
19232 | -h, --help print this help, then exit | |
19233 | -V, --version print version number and configuration settings, then exit | |
19234 | --config print configuration, then exit | |
19235 | -q, --quiet, --silent | |
19236 | do not print progress messages | |
19237 | -d, --debug don't remove temporary files | |
19238 | --recheck update $as_me by reconfiguring in the same conditions | |
19239 | --file=FILE[:TEMPLATE] | |
19240 | instantiate the configuration file FILE | |
19241 | --header=FILE[:TEMPLATE] | |
19242 | instantiate the configuration header FILE | |
19243 | ||
19244 | Configuration files: | |
19245 | $config_files | |
19246 | ||
19247 | Configuration headers: | |
19248 | $config_headers | |
19249 | ||
19250 | Configuration commands: | |
19251 | $config_commands | |
19252 | ||
19253 | Report bugs to the package provider." | |
19254 | ||
19255 | _ACEOF | |
19256 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19257 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
19258 | ac_cs_version="\\ | |
1ec59ff7 | 19259 | spl config.status 0.6.5.11 |
87d546d8 TG |
19260 | configured by $0, generated by GNU Autoconf 2.69, |
19261 | with options \\"\$ac_cs_config\\" | |
19262 | ||
19263 | Copyright (C) 2012 Free Software Foundation, Inc. | |
19264 | This config.status script is free software; the Free Software Foundation | |
19265 | gives unlimited permission to copy, distribute and modify it." | |
19266 | ||
19267 | ac_pwd='$ac_pwd' | |
19268 | srcdir='$srcdir' | |
19269 | INSTALL='$INSTALL' | |
19270 | MKDIR_P='$MKDIR_P' | |
19271 | AWK='$AWK' | |
19272 | test -n "\$AWK" || AWK=awk | |
19273 | _ACEOF | |
19274 | ||
19275 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19276 | # The default lists apply if the user does not specify any file. | |
19277 | ac_need_defaults=: | |
19278 | while test $# != 0 | |
19279 | do | |
19280 | case $1 in | |
19281 | --*=?*) | |
19282 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19283 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
19284 | ac_shift=: | |
19285 | ;; | |
19286 | --*=) | |
19287 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19288 | ac_optarg= | |
19289 | ac_shift=: | |
19290 | ;; | |
19291 | *) | |
19292 | ac_option=$1 | |
19293 | ac_optarg=$2 | |
19294 | ac_shift=shift | |
19295 | ;; | |
19296 | esac | |
19297 | ||
19298 | case $ac_option in | |
19299 | # Handling of the options. | |
19300 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
19301 | ac_cs_recheck=: ;; | |
19302 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
19303 | $as_echo "$ac_cs_version"; exit ;; | |
19304 | --config | --confi | --conf | --con | --co | --c ) | |
19305 | $as_echo "$ac_cs_config"; exit ;; | |
19306 | --debug | --debu | --deb | --de | --d | -d ) | |
19307 | debug=: ;; | |
19308 | --file | --fil | --fi | --f ) | |
19309 | $ac_shift | |
19310 | case $ac_optarg in | |
19311 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
19312 | '') as_fn_error $? "missing file argument" ;; | |
19313 | esac | |
19314 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
19315 | ac_need_defaults=false;; | |
19316 | --header | --heade | --head | --hea ) | |
19317 | $ac_shift | |
19318 | case $ac_optarg in | |
19319 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
19320 | esac | |
19321 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
19322 | ac_need_defaults=false;; | |
19323 | --he | --h) | |
19324 | # Conflict between --help and --header | |
19325 | as_fn_error $? "ambiguous option: \`$1' | |
19326 | Try \`$0 --help' for more information.";; | |
19327 | --help | --hel | -h ) | |
19328 | $as_echo "$ac_cs_usage"; exit ;; | |
19329 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
19330 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19331 | ac_cs_silent=: ;; | |
19332 | ||
19333 | # This is an error. | |
19334 | -*) as_fn_error $? "unrecognized option: \`$1' | |
19335 | Try \`$0 --help' for more information." ;; | |
19336 | ||
19337 | *) as_fn_append ac_config_targets " $1" | |
19338 | ac_need_defaults=false ;; | |
19339 | ||
19340 | esac | |
19341 | shift | |
19342 | done | |
19343 | ||
19344 | ac_configure_extra_args= | |
19345 | ||
19346 | if $ac_cs_silent; then | |
19347 | exec 6>/dev/null | |
19348 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19349 | fi | |
19350 | ||
19351 | _ACEOF | |
19352 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19353 | if \$ac_cs_recheck; then | |
19354 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
19355 | shift | |
19356 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19357 | CONFIG_SHELL='$SHELL' | |
19358 | export CONFIG_SHELL | |
19359 | exec "\$@" | |
19360 | fi | |
19361 | ||
19362 | _ACEOF | |
19363 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19364 | exec 5>>config.log | |
19365 | { | |
19366 | echo | |
19367 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19368 | ## Running $as_me. ## | |
19369 | _ASBOX | |
19370 | $as_echo "$ac_log" | |
19371 | } >&5 | |
19372 | ||
19373 | _ACEOF | |
19374 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19375 | # | |
19376 | # INIT-COMMANDS | |
19377 | # | |
19378 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
19379 | ||
19380 | ||
19381 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
19382 | # if CDPATH is set. | |
19383 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19384 | ||
19385 | sed_quote_subst='$sed_quote_subst' | |
19386 | double_quote_subst='$double_quote_subst' | |
19387 | delay_variable_subst='$delay_variable_subst' | |
19388 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
19389 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
19390 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
19391 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
19392 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
19393 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
19394 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' | |
19395 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
19396 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
19397 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
19398 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
19399 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
19400 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
19401 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
19402 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
19403 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
19404 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
19405 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
19406 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
19407 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
19408 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
19409 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
19410 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
19411 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
19412 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
19413 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
19414 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
19415 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
19416 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
19417 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
19418 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
19419 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
19420 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
19421 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
19422 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
19423 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
19424 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
19425 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
19426 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
19427 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
19428 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
19429 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
19430 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
19431 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
19432 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
19433 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
19434 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19435 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19436 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
19437 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
19438 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
19439 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
19440 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
19441 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
19442 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
19443 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
19444 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' | |
19445 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
19446 | 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"`' | |
19447 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' | |
19448 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
19449 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
19450 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' | |
19451 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
19452 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
19453 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
19454 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
19455 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
19456 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
19457 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
19458 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
19459 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
19460 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
19461 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
19462 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
19463 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
19464 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
19465 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
19466 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
19467 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
19468 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
19469 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
19470 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19471 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19472 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
19473 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
19474 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
19475 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
19476 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
19477 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
19478 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
19479 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
19480 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
19481 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
19482 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19483 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
19484 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
19485 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
19486 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
19487 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
19488 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
19489 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
19490 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
19491 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
19492 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
19493 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
19494 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
19495 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
19496 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
19497 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
19498 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
19499 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
19500 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
19501 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
19502 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
19503 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
19504 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
19505 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
19506 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
19507 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
19508 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
19509 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19510 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19511 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
19512 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
19513 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
19514 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
19515 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' | |
19516 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
19517 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
19518 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
19519 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
19520 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
19521 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
19522 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
19523 | ||
19524 | LTCC='$LTCC' | |
19525 | LTCFLAGS='$LTCFLAGS' | |
19526 | compiler='$compiler_DEFAULT' | |
19527 | ||
19528 | # A function that is used when there is no print builtin or printf. | |
19529 | func_fallback_echo () | |
19530 | { | |
19531 | eval 'cat <<_LTECHO_EOF | |
19532 | \$1 | |
19533 | _LTECHO_EOF' | |
19534 | } | |
19535 | ||
19536 | # Quote evaled strings. | |
19537 | for var in SHELL \ | |
19538 | ECHO \ | |
19539 | PATH_SEPARATOR \ | |
19540 | SED \ | |
19541 | GREP \ | |
19542 | EGREP \ | |
19543 | FGREP \ | |
19544 | LD \ | |
19545 | NM \ | |
19546 | LN_S \ | |
19547 | lt_SP2NL \ | |
19548 | lt_NL2SP \ | |
19549 | reload_flag \ | |
19550 | OBJDUMP \ | |
19551 | deplibs_check_method \ | |
19552 | file_magic_cmd \ | |
19553 | file_magic_glob \ | |
19554 | want_nocaseglob \ | |
19555 | DLLTOOL \ | |
19556 | sharedlib_from_linklib_cmd \ | |
19557 | AR \ | |
19558 | AR_FLAGS \ | |
19559 | archiver_list_spec \ | |
19560 | STRIP \ | |
19561 | RANLIB \ | |
19562 | CC \ | |
19563 | CFLAGS \ | |
19564 | compiler \ | |
19565 | lt_cv_sys_global_symbol_pipe \ | |
19566 | lt_cv_sys_global_symbol_to_cdecl \ | |
19567 | lt_cv_sys_global_symbol_to_import \ | |
19568 | lt_cv_sys_global_symbol_to_c_name_address \ | |
19569 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
19570 | lt_cv_nm_interface \ | |
19571 | nm_file_list_spec \ | |
19572 | lt_cv_truncate_bin \ | |
19573 | lt_prog_compiler_no_builtin_flag \ | |
19574 | lt_prog_compiler_pic \ | |
19575 | lt_prog_compiler_wl \ | |
19576 | lt_prog_compiler_static \ | |
19577 | lt_cv_prog_compiler_c_o \ | |
19578 | need_locks \ | |
19579 | MANIFEST_TOOL \ | |
19580 | DSYMUTIL \ | |
19581 | NMEDIT \ | |
19582 | LIPO \ | |
19583 | OTOOL \ | |
19584 | OTOOL64 \ | |
19585 | shrext_cmds \ | |
19586 | export_dynamic_flag_spec \ | |
19587 | whole_archive_flag_spec \ | |
19588 | compiler_needs_object \ | |
19589 | with_gnu_ld \ | |
19590 | allow_undefined_flag \ | |
19591 | no_undefined_flag \ | |
19592 | hardcode_libdir_flag_spec \ | |
19593 | hardcode_libdir_separator \ | |
19594 | exclude_expsyms \ | |
19595 | include_expsyms \ | |
19596 | file_list_spec \ | |
19597 | variables_saved_for_relink \ | |
19598 | libname_spec \ | |
19599 | library_names_spec \ | |
19600 | soname_spec \ | |
19601 | install_override_mode \ | |
19602 | finish_eval \ | |
19603 | old_striplib \ | |
19604 | striplib; do | |
19605 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
19606 | *[\\\\\\\`\\"\\\$]*) | |
19607 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
19608 | ;; | |
19609 | *) | |
19610 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19611 | ;; | |
19612 | esac | |
19613 | done | |
19614 | ||
19615 | # Double-quote double-evaled strings. | |
19616 | for var in reload_cmds \ | |
19617 | old_postinstall_cmds \ | |
19618 | old_postuninstall_cmds \ | |
19619 | old_archive_cmds \ | |
19620 | extract_expsyms_cmds \ | |
19621 | old_archive_from_new_cmds \ | |
19622 | old_archive_from_expsyms_cmds \ | |
19623 | archive_cmds \ | |
19624 | archive_expsym_cmds \ | |
19625 | module_cmds \ | |
19626 | module_expsym_cmds \ | |
19627 | export_symbols_cmds \ | |
19628 | prelink_cmds \ | |
19629 | postlink_cmds \ | |
19630 | postinstall_cmds \ | |
19631 | postuninstall_cmds \ | |
19632 | finish_cmds \ | |
19633 | sys_lib_search_path_spec \ | |
19634 | configure_time_dlsearch_path \ | |
19635 | configure_time_lt_sys_library_path; do | |
19636 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
19637 | *[\\\\\\\`\\"\\\$]*) | |
19638 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
19639 | ;; | |
19640 | *) | |
19641 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19642 | ;; | |
19643 | esac | |
19644 | done | |
19645 | ||
19646 | ac_aux_dir='$ac_aux_dir' | |
19647 | ||
19648 | # See if we are running on zsh, and set the options that allow our | |
19649 | # commands through without removal of \ escapes INIT. | |
19650 | if test -n "\${ZSH_VERSION+set}"; then | |
19651 | setopt NO_GLOB_SUBST | |
19652 | fi | |
19653 | ||
19654 | ||
19655 | PACKAGE='$PACKAGE' | |
19656 | VERSION='$VERSION' | |
19657 | RM='$RM' | |
19658 | ofile='$ofile' | |
19659 | ||
19660 | ||
19661 | ||
19662 | ||
19663 | _ACEOF | |
19664 | ||
19665 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19666 | ||
19667 | # Handling of arguments. | |
19668 | for ac_config_target in $ac_config_targets | |
19669 | do | |
19670 | case $ac_config_target in | |
19671 | "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;; | |
19672 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
19673 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
19674 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19675 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
19676 | "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;; | |
19677 | "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;; | |
19678 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
19679 | "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;; | |
19680 | "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; | |
19681 | "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;; | |
19682 | "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;; | |
19683 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
19684 | "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;; | |
19685 | "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;; | |
19686 | "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;; | |
19687 | "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;; | |
19688 | "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;; | |
19689 | "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;; | |
19690 | "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;; | |
19691 | "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;; | |
19692 | "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;; | |
19693 | "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;; | |
19694 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; | |
19695 | "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;; | |
19696 | "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;; | |
19697 | "rpm/redhat/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl.spec" ;; | |
19698 | "rpm/redhat/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;; | |
19699 | "rpm/redhat/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;; | |
19700 | "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;; | |
19701 | "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;; | |
19702 | "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;; | |
19703 | "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;; | |
19704 | "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;; | |
19705 | ||
19706 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
19707 | esac | |
19708 | done | |
19709 | ||
19710 | ||
19711 | # If the user did not use the arguments to specify the items to instantiate, | |
19712 | # then the envvar interface is used. Set only those that are not. | |
19713 | # We use the long form for the default assignment because of an extremely | |
19714 | # bizarre bug on SunOS 4.1.3. | |
19715 | if $ac_need_defaults; then | |
19716 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19717 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
19718 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
19719 | fi | |
19720 | ||
19721 | # Have a temporary directory for convenience. Make it in the build tree | |
19722 | # simply because there is no reason against having it here, and in addition, | |
19723 | # creating and moving files from /tmp can sometimes cause problems. | |
19724 | # Hook for its removal unless debugging. | |
19725 | # Note that there is a small window in which the directory will not be cleaned: | |
19726 | # after its creation but before its name has been assigned to `$tmp'. | |
19727 | $debug || | |
19728 | { | |
19729 | tmp= ac_tmp= | |
19730 | trap 'exit_status=$? | |
19731 | : "${ac_tmp:=$tmp}" | |
19732 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
19733 | ' 0 | |
19734 | trap 'as_fn_exit 1' 1 2 13 15 | |
19735 | } | |
19736 | # Create a (secure) tmp directory for tmp files. | |
19737 | ||
19738 | { | |
19739 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
19740 | test -d "$tmp" | |
19741 | } || | |
19742 | { | |
19743 | tmp=./conf$$-$RANDOM | |
19744 | (umask 077 && mkdir "$tmp") | |
19745 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
19746 | ac_tmp=$tmp | |
19747 | ||
19748 | # Set up the scripts for CONFIG_FILES section. | |
19749 | # No need to generate them if there are no CONFIG_FILES. | |
19750 | # This happens for instance with `./config.status config.h'. | |
19751 | if test -n "$CONFIG_FILES"; then | |
19752 | ||
19753 | ||
19754 | ac_cr=`echo X | tr X '\015'` | |
19755 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19756 | # But we know of no other shell where ac_cr would be empty at this | |
19757 | # point, so we can use a bashism as a fallback. | |
19758 | if test "x$ac_cr" = x; then | |
19759 | eval ac_cr=\$\'\\r\' | |
19760 | fi | |
19761 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19762 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
19763 | ac_cs_awk_cr='\\r' | |
19764 | else | |
19765 | ac_cs_awk_cr=$ac_cr | |
19766 | fi | |
19767 | ||
19768 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
19769 | _ACEOF | |
19770 | ||
19771 | ||
19772 | { | |
19773 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19774 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19775 | echo "_ACEOF" | |
19776 | } >conf$$subs.sh || | |
19777 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19778 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
19779 | ac_delim='%!_!# ' | |
19780 | for ac_last_try in false false false false false :; do | |
19781 | . ./conf$$subs.sh || | |
19782 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19783 | ||
19784 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19785 | if test $ac_delim_n = $ac_delim_num; then | |
19786 | break | |
19787 | elif $ac_last_try; then | |
19788 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19789 | else | |
19790 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19791 | fi | |
19792 | done | |
19793 | rm -f conf$$subs.sh | |
19794 | ||
19795 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19796 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
19797 | _ACEOF | |
19798 | sed -n ' | |
19799 | h | |
19800 | s/^/S["/; s/!.*/"]=/ | |
19801 | p | |
19802 | g | |
19803 | s/^[^!]*!// | |
19804 | :repl | |
19805 | t repl | |
19806 | s/'"$ac_delim"'$// | |
19807 | t delim | |
19808 | :nl | |
19809 | h | |
19810 | s/\(.\{148\}\)..*/\1/ | |
19811 | t more1 | |
19812 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19813 | p | |
19814 | n | |
19815 | b repl | |
19816 | :more1 | |
19817 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19818 | p | |
19819 | g | |
19820 | s/.\{148\}// | |
19821 | t nl | |
19822 | :delim | |
19823 | h | |
19824 | s/\(.\{148\}\)..*/\1/ | |
19825 | t more2 | |
19826 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19827 | p | |
19828 | b | |
19829 | :more2 | |
19830 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19831 | p | |
19832 | g | |
19833 | s/.\{148\}// | |
19834 | t delim | |
19835 | ' <conf$$subs.awk | sed ' | |
19836 | /^[^""]/{ | |
19837 | N | |
19838 | s/\n// | |
19839 | } | |
19840 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19841 | rm -f conf$$subs.awk | |
19842 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19843 | _ACAWK | |
19844 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
19845 | for (key in S) S_is_set[key] = 1 | |
19846 | FS = "\a" | |
19847 | ||
19848 | } | |
19849 | { | |
19850 | line = $ 0 | |
19851 | nfields = split(line, field, "@") | |
19852 | substed = 0 | |
19853 | len = length(field[1]) | |
19854 | for (i = 2; i < nfields; i++) { | |
19855 | key = field[i] | |
19856 | keylen = length(key) | |
19857 | if (S_is_set[key]) { | |
19858 | value = S[key] | |
19859 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19860 | len += length(value) + length(field[++i]) | |
19861 | substed = 1 | |
19862 | } else | |
19863 | len += 1 + keylen | |
19864 | } | |
19865 | ||
19866 | print line | |
19867 | } | |
19868 | ||
19869 | _ACAWK | |
19870 | _ACEOF | |
19871 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19872 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19873 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19874 | else | |
19875 | cat | |
19876 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
19877 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
19878 | _ACEOF | |
19879 | ||
19880 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
19881 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
19882 | # trailing colons and then remove the whole line if VPATH becomes empty | |
19883 | # (actually we leave an empty line to preserve line numbers). | |
19884 | if test "x$srcdir" = x.; then | |
19885 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
19886 | h | |
19887 | s/// | |
19888 | s/^/:/ | |
19889 | s/[ ]*$/:/ | |
19890 | s/:\$(srcdir):/:/g | |
19891 | s/:\${srcdir}:/:/g | |
19892 | s/:@srcdir@:/:/g | |
19893 | s/^:*// | |
19894 | s/:*$// | |
19895 | x | |
19896 | s/\(=[ ]*\).*/\1/ | |
19897 | G | |
19898 | s/\n// | |
19899 | s/^[^=]*=[ ]*$// | |
19900 | }' | |
19901 | fi | |
19902 | ||
19903 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19904 | fi # test -n "$CONFIG_FILES" | |
19905 | ||
19906 | # Set up the scripts for CONFIG_HEADERS section. | |
19907 | # No need to generate them if there are no CONFIG_HEADERS. | |
19908 | # This happens for instance with `./config.status Makefile'. | |
19909 | if test -n "$CONFIG_HEADERS"; then | |
19910 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
19911 | BEGIN { | |
19912 | _ACEOF | |
19913 | ||
19914 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
19915 | # here-document in config.status, that substitutes the proper values into | |
19916 | # config.h.in to produce config.h. | |
19917 | ||
19918 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
19919 | # handling of long lines. | |
19920 | ac_delim='%!_!# ' | |
19921 | for ac_last_try in false false :; do | |
19922 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
19923 | if test -z "$ac_tt"; then | |
19924 | break | |
19925 | elif $ac_last_try; then | |
19926 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
19927 | else | |
19928 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19929 | fi | |
19930 | done | |
19931 | ||
19932 | # For the awk script, D is an array of macro values keyed by name, | |
19933 | # likewise P contains macro parameters if any. Preserve backslash | |
19934 | # newline sequences. | |
19935 | ||
19936 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19937 | sed -n ' | |
19938 | s/.\{148\}/&'"$ac_delim"'/g | |
19939 | t rset | |
19940 | :rset | |
19941 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19942 | t def | |
19943 | d | |
19944 | :def | |
19945 | s/\\$// | |
19946 | t bsnl | |
19947 | s/["\\]/\\&/g | |
19948 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19949 | D["\1"]=" \3"/p | |
19950 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19951 | d | |
19952 | :bsnl | |
19953 | s/["\\]/\\&/g | |
19954 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19955 | D["\1"]=" \3\\\\\\n"\\/p | |
19956 | t cont | |
19957 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19958 | t cont | |
19959 | d | |
19960 | :cont | |
19961 | n | |
19962 | s/.\{148\}/&'"$ac_delim"'/g | |
19963 | t clear | |
19964 | :clear | |
19965 | s/\\$// | |
19966 | t bsnlc | |
19967 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19968 | d | |
19969 | :bsnlc | |
19970 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19971 | b cont | |
19972 | ' <confdefs.h | sed ' | |
19973 | s/'"$ac_delim"'/"\\\ | |
19974 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19975 | ||
19976 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19977 | for (key in D) D_is_set[key] = 1 | |
19978 | FS = "\a" | |
19979 | } | |
19980 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19981 | line = \$ 0 | |
19982 | split(line, arg, " ") | |
19983 | if (arg[1] == "#") { | |
19984 | defundef = arg[2] | |
19985 | mac1 = arg[3] | |
19986 | } else { | |
19987 | defundef = substr(arg[1], 2) | |
19988 | mac1 = arg[2] | |
19989 | } | |
19990 | split(mac1, mac2, "(") #) | |
19991 | macro = mac2[1] | |
19992 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19993 | if (D_is_set[macro]) { | |
19994 | # Preserve the white space surrounding the "#". | |
19995 | print prefix "define", macro P[macro] D[macro] | |
19996 | next | |
19997 | } else { | |
19998 | # Replace #undef with comments. This is necessary, for example, | |
19999 | # in the case of _POSIX_SOURCE, which is predefined and required | |
20000 | # on some systems where configure will not decide to define it. | |
20001 | if (defundef == "undef") { | |
20002 | print "/*", prefix defundef, macro, "*/" | |
20003 | next | |
20004 | } | |
20005 | } | |
20006 | } | |
20007 | { print } | |
20008 | _ACAWK | |
20009 | _ACEOF | |
20010 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20011 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
20012 | fi # test -n "$CONFIG_HEADERS" | |
20013 | ||
20014 | ||
20015 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
20016 | shift | |
20017 | for ac_tag | |
20018 | do | |
20019 | case $ac_tag in | |
20020 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
20021 | esac | |
20022 | case $ac_mode$ac_tag in | |
20023 | :[FHL]*:*);; | |
20024 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
20025 | :[FH]-) ac_tag=-:-;; | |
20026 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
20027 | esac | |
20028 | ac_save_IFS=$IFS | |
20029 | IFS=: | |
20030 | set x $ac_tag | |
20031 | IFS=$ac_save_IFS | |
20032 | shift | |
20033 | ac_file=$1 | |
20034 | shift | |
20035 | ||
20036 | case $ac_mode in | |
20037 | :L) ac_source=$1;; | |
20038 | :[FH]) | |
20039 | ac_file_inputs= | |
20040 | for ac_f | |
20041 | do | |
20042 | case $ac_f in | |
20043 | -) ac_f="$ac_tmp/stdin";; | |
20044 | *) # Look for the file first in the build tree, then in the source tree | |
20045 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
20046 | # because $ac_f cannot contain `:'. | |
20047 | test -f "$ac_f" || | |
20048 | case $ac_f in | |
20049 | [\\/$]*) false;; | |
20050 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
20051 | esac || | |
20052 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
20053 | esac | |
20054 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
20055 | as_fn_append ac_file_inputs " '$ac_f'" | |
20056 | done | |
20057 | ||
20058 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
20059 | # use $as_me), people would be surprised to read: | |
20060 | # /* config.h. Generated by config.status. */ | |
20061 | configure_input='Generated from '` | |
20062 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
20063 | `' by configure.' | |
20064 | if test x"$ac_file" != x-; then | |
20065 | configure_input="$ac_file. $configure_input" | |
20066 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
20067 | $as_echo "$as_me: creating $ac_file" >&6;} | |
20068 | fi | |
20069 | # Neutralize special characters interpreted by sed in replacement strings. | |
20070 | case $configure_input in #( | |
20071 | *\&* | *\|* | *\\* ) | |
20072 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
20073 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
20074 | *) ac_sed_conf_input=$configure_input;; | |
20075 | esac | |
20076 | ||
20077 | case $ac_tag in | |
20078 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
20079 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
20080 | esac | |
20081 | ;; | |
20082 | esac | |
20083 | ||
20084 | ac_dir=`$as_dirname -- "$ac_file" || | |
20085 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20086 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
20087 | X"$ac_file" : 'X\(//\)$' \| \ | |
20088 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
20089 | $as_echo X"$ac_file" | | |
20090 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20091 | s//\1/ | |
20092 | q | |
20093 | } | |
20094 | /^X\(\/\/\)[^/].*/{ | |
20095 | s//\1/ | |
20096 | q | |
20097 | } | |
20098 | /^X\(\/\/\)$/{ | |
20099 | s//\1/ | |
20100 | q | |
20101 | } | |
20102 | /^X\(\/\).*/{ | |
20103 | s//\1/ | |
20104 | q | |
20105 | } | |
20106 | s/.*/./; q'` | |
20107 | as_dir="$ac_dir"; as_fn_mkdir_p | |
20108 | ac_builddir=. | |
20109 | ||
20110 | case "$ac_dir" in | |
20111 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20112 | *) | |
20113 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20114 | # A ".." for each directory in $ac_dir_suffix. | |
20115 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20116 | case $ac_top_builddir_sub in | |
20117 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20118 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20119 | esac ;; | |
20120 | esac | |
20121 | ac_abs_top_builddir=$ac_pwd | |
20122 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20123 | # for backward compatibility: | |
20124 | ac_top_builddir=$ac_top_build_prefix | |
20125 | ||
20126 | case $srcdir in | |
20127 | .) # We are building in place. | |
20128 | ac_srcdir=. | |
20129 | ac_top_srcdir=$ac_top_builddir_sub | |
20130 | ac_abs_top_srcdir=$ac_pwd ;; | |
20131 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20132 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20133 | ac_top_srcdir=$srcdir | |
20134 | ac_abs_top_srcdir=$srcdir ;; | |
20135 | *) # Relative name. | |
20136 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20137 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20138 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20139 | esac | |
20140 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
20141 | ||
20142 | ||
20143 | case $ac_mode in | |
20144 | :F) | |
20145 | # | |
20146 | # CONFIG_FILE | |
20147 | # | |
20148 | ||
20149 | case $INSTALL in | |
20150 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
20151 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
20152 | esac | |
20153 | ac_MKDIR_P=$MKDIR_P | |
20154 | case $MKDIR_P in | |
20155 | [\\/$]* | ?:[\\/]* ) ;; | |
20156 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
20157 | esac | |
20158 | _ACEOF | |
20159 | ||
20160 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20161 | # If the template does not know about datarootdir, expand it. | |
20162 | # FIXME: This hack should be removed a few years after 2.60. | |
20163 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
20164 | ac_sed_dataroot=' | |
20165 | /datarootdir/ { | |
20166 | p | |
20167 | q | |
20168 | } | |
20169 | /@datadir@/p | |
20170 | /@docdir@/p | |
20171 | /@infodir@/p | |
20172 | /@localedir@/p | |
20173 | /@mandir@/p' | |
20174 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
20175 | *datarootdir*) ac_datarootdir_seen=yes;; | |
20176 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
20177 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
20178 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
20179 | _ACEOF | |
20180 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20181 | ac_datarootdir_hack=' | |
20182 | s&@datadir@&$datadir&g | |
20183 | s&@docdir@&$docdir&g | |
20184 | s&@infodir@&$infodir&g | |
20185 | s&@localedir@&$localedir&g | |
20186 | s&@mandir@&$mandir&g | |
20187 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
20188 | esac | |
20189 | _ACEOF | |
20190 | ||
20191 | # Neutralize VPATH when `$srcdir' = `.'. | |
20192 | # Shell code in configure.ac might set extrasub. | |
20193 | # FIXME: do we really want to maintain this feature? | |
20194 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20195 | ac_sed_extra="$ac_vpsub | |
20196 | $extrasub | |
20197 | _ACEOF | |
20198 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20199 | :t | |
20200 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
20201 | s|@configure_input@|$ac_sed_conf_input|;t t | |
20202 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
20203 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
20204 | s&@srcdir@&$ac_srcdir&;t t | |
20205 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
20206 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
20207 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
20208 | s&@builddir@&$ac_builddir&;t t | |
20209 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
20210 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
20211 | s&@INSTALL@&$ac_INSTALL&;t t | |
20212 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
20213 | $ac_datarootdir_hack | |
20214 | " | |
20215 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
20216 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20217 | ||
20218 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
20219 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
20220 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
20221 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
20222 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
20223 | which seems to be undefined. Please make sure it is defined" >&5 | |
20224 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
20225 | which seems to be undefined. Please make sure it is defined" >&2;} | |
20226 | ||
20227 | rm -f "$ac_tmp/stdin" | |
20228 | case $ac_file in | |
20229 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
20230 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
20231 | esac \ | |
20232 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20233 | ;; | |
20234 | :H) | |
20235 | # | |
20236 | # CONFIG_HEADER | |
20237 | # | |
20238 | if test x"$ac_file" != x-; then | |
20239 | { | |
20240 | $as_echo "/* $configure_input */" \ | |
20241 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
20242 | } >"$ac_tmp/config.h" \ | |
20243 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20244 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
20245 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
20246 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
20247 | else | |
20248 | rm -f "$ac_file" | |
20249 | mv "$ac_tmp/config.h" "$ac_file" \ | |
20250 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20251 | fi | |
20252 | else | |
20253 | $as_echo "/* $configure_input */" \ | |
20254 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
20255 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
20256 | fi | |
20257 | # Compute "$ac_file"'s index in $config_headers. | |
20258 | _am_arg="$ac_file" | |
20259 | _am_stamp_count=1 | |
20260 | for _am_header in $config_headers :; do | |
20261 | case $_am_header in | |
20262 | $_am_arg | $_am_arg:* ) | |
20263 | break ;; | |
20264 | * ) | |
20265 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
20266 | esac | |
20267 | done | |
20268 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
20269 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20270 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
20271 | X"$_am_arg" : 'X\(//\)$' \| \ | |
20272 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
20273 | $as_echo X"$_am_arg" | | |
20274 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20275 | s//\1/ | |
20276 | q | |
20277 | } | |
20278 | /^X\(\/\/\)[^/].*/{ | |
20279 | s//\1/ | |
20280 | q | |
20281 | } | |
20282 | /^X\(\/\/\)$/{ | |
20283 | s//\1/ | |
20284 | q | |
20285 | } | |
20286 | /^X\(\/\).*/{ | |
20287 | s//\1/ | |
20288 | q | |
20289 | } | |
20290 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
20291 | ;; | |
20292 | ||
20293 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
20294 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
20295 | ;; | |
20296 | esac | |
20297 | ||
20298 | ||
20299 | case $ac_file$ac_mode in | |
20300 | "spl_config.h":H) | |
20301 | (mv spl_config.h spl_config.h.tmp && | |
20302 | awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h && | |
20303 | rm spl_config.h.tmp) || exit 1 ;; | |
20304 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
20305 | # Older Autoconf quotes --file arguments for eval, but not when files | |
20306 | # are listed without --file. Let's play safe and only enable the eval | |
20307 | # if we detect the quoting. | |
20308 | case $CONFIG_FILES in | |
20309 | *\'*) eval set x "$CONFIG_FILES" ;; | |
20310 | *) set x $CONFIG_FILES ;; | |
20311 | esac | |
20312 | shift | |
20313 | for mf | |
20314 | do | |
20315 | # Strip MF so we end up with the name of the file. | |
20316 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
20317 | # Check whether this is an Automake generated Makefile or not. | |
20318 | # We used to match only the files named 'Makefile.in', but | |
20319 | # some people rename them; so instead we look at the file content. | |
20320 | # Grep'ing the first line is not enough: some people post-process | |
20321 | # each Makefile.in and add a new line on top of each file to say so. | |
20322 | # Grep'ing the whole file is not good either: AIX grep has a line | |
20323 | # limit of 2048, but all sed's we know have understand at least 4000. | |
20324 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
20325 | dirpart=`$as_dirname -- "$mf" || | |
20326 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20327 | X"$mf" : 'X\(//\)[^/]' \| \ | |
20328 | X"$mf" : 'X\(//\)$' \| \ | |
20329 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
20330 | $as_echo X"$mf" | | |
20331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20332 | s//\1/ | |
20333 | q | |
20334 | } | |
20335 | /^X\(\/\/\)[^/].*/{ | |
20336 | s//\1/ | |
20337 | q | |
20338 | } | |
20339 | /^X\(\/\/\)$/{ | |
20340 | s//\1/ | |
20341 | q | |
20342 | } | |
20343 | /^X\(\/\).*/{ | |
20344 | s//\1/ | |
20345 | q | |
20346 | } | |
20347 | s/.*/./; q'` | |
20348 | else | |
20349 | continue | |
20350 | fi | |
20351 | # Extract the definition of DEPDIR, am__include, and am__quote | |
20352 | # from the Makefile without running 'make'. | |
20353 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
20354 | test -z "$DEPDIR" && continue | |
20355 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
20356 | test -z "$am__include" && continue | |
20357 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
20358 | # Find all dependency output files, they are included files with | |
20359 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
20360 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
20361 | # expansion. | |
20362 | for file in `sed -n " | |
20363 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
20364 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
20365 | # Make sure the directory exists. | |
20366 | test -f "$dirpart/$file" && continue | |
20367 | fdir=`$as_dirname -- "$file" || | |
20368 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20369 | X"$file" : 'X\(//\)[^/]' \| \ | |
20370 | X"$file" : 'X\(//\)$' \| \ | |
20371 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
20372 | $as_echo X"$file" | | |
20373 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20374 | s//\1/ | |
20375 | q | |
20376 | } | |
20377 | /^X\(\/\/\)[^/].*/{ | |
20378 | s//\1/ | |
20379 | q | |
20380 | } | |
20381 | /^X\(\/\/\)$/{ | |
20382 | s//\1/ | |
20383 | q | |
20384 | } | |
20385 | /^X\(\/\).*/{ | |
20386 | s//\1/ | |
20387 | q | |
20388 | } | |
20389 | s/.*/./; q'` | |
20390 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
20391 | # echo "creating $dirpart/$file" | |
20392 | echo '# dummy' > "$dirpart/$file" | |
20393 | done | |
20394 | done | |
20395 | } | |
20396 | ;; | |
20397 | "libtool":C) | |
20398 | ||
20399 | # See if we are running on zsh, and set the options that allow our | |
20400 | # commands through without removal of \ escapes. | |
20401 | if test -n "${ZSH_VERSION+set}"; then | |
20402 | setopt NO_GLOB_SUBST | |
20403 | fi | |
20404 | ||
20405 | cfgfile=${ofile}T | |
20406 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
20407 | $RM "$cfgfile" | |
20408 | ||
20409 | cat <<_LT_EOF >> "$cfgfile" | |
20410 | #! $SHELL | |
20411 | # Generated automatically by $as_me ($PACKAGE) $VERSION | |
20412 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
20413 | ||
20414 | # Provide generalized library-building support services. | |
20415 | # Written by Gordon Matzigkeit, 1996 | |
20416 | ||
20417 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
20418 | # This is free software; see the source for copying conditions. There is NO | |
20419 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
20420 | ||
20421 | # GNU Libtool is free software; you can redistribute it and/or modify | |
20422 | # it under the terms of the GNU General Public License as published by | |
20423 | # the Free Software Foundation; either version 2 of of the License, or | |
20424 | # (at your option) any later version. | |
20425 | # | |
20426 | # As a special exception to the GNU General Public License, if you | |
20427 | # distribute this file as part of a program or library that is built | |
20428 | # using GNU Libtool, you may include this file under the same | |
20429 | # distribution terms that you use for the rest of that program. | |
20430 | # | |
20431 | # GNU Libtool is distributed in the hope that it will be useful, but | |
20432 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
20433 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20434 | # GNU General Public License for more details. | |
20435 | # | |
20436 | # You should have received a copy of the GNU General Public License | |
20437 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20438 | ||
20439 | ||
20440 | # The names of the tagged configurations supported by this script. | |
20441 | available_tags='' | |
20442 | ||
20443 | # Configured defaults for sys_lib_dlsearch_path munging. | |
20444 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
20445 | ||
20446 | # ### BEGIN LIBTOOL CONFIG | |
20447 | ||
20448 | # Which release of libtool.m4 was used? | |
20449 | macro_version=$macro_version | |
20450 | macro_revision=$macro_revision | |
20451 | ||
20452 | # Whether or not to build shared libraries. | |
20453 | build_libtool_libs=$enable_shared | |
20454 | ||
20455 | # Whether or not to build static libraries. | |
20456 | build_old_libs=$enable_static | |
20457 | ||
20458 | # What type of objects to build. | |
20459 | pic_mode=$pic_mode | |
20460 | ||
20461 | # Whether or not to optimize for fast installation. | |
20462 | fast_install=$enable_fast_install | |
20463 | ||
20464 | # Shared archive member basename,for filename based shared library versioning on AIX. | |
20465 | shared_archive_member_spec=$shared_archive_member_spec | |
20466 | ||
20467 | # Shell to use when invoking shell scripts. | |
20468 | SHELL=$lt_SHELL | |
20469 | ||
20470 | # An echo program that protects backslashes. | |
20471 | ECHO=$lt_ECHO | |
20472 | ||
20473 | # The PATH separator for the build system. | |
20474 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
20475 | ||
20476 | # The host system. | |
20477 | host_alias=$host_alias | |
20478 | host=$host | |
20479 | host_os=$host_os | |
20480 | ||
20481 | # The build system. | |
20482 | build_alias=$build_alias | |
20483 | build=$build | |
20484 | build_os=$build_os | |
20485 | ||
20486 | # A sed program that does not truncate output. | |
20487 | SED=$lt_SED | |
20488 | ||
20489 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
20490 | Xsed="\$SED -e 1s/^X//" | |
20491 | ||
20492 | # A grep program that handles long lines. | |
20493 | GREP=$lt_GREP | |
20494 | ||
20495 | # An ERE matcher. | |
20496 | EGREP=$lt_EGREP | |
20497 | ||
20498 | # A literal string matcher. | |
20499 | FGREP=$lt_FGREP | |
20500 | ||
20501 | # A BSD- or MS-compatible name lister. | |
20502 | NM=$lt_NM | |
20503 | ||
20504 | # Whether we need soft or hard links. | |
20505 | LN_S=$lt_LN_S | |
20506 | ||
20507 | # What is the maximum length of a command? | |
20508 | max_cmd_len=$max_cmd_len | |
20509 | ||
20510 | # Object file suffix (normally "o"). | |
20511 | objext=$ac_objext | |
20512 | ||
20513 | # Executable file suffix (normally ""). | |
20514 | exeext=$exeext | |
20515 | ||
20516 | # whether the shell understands "unset". | |
20517 | lt_unset=$lt_unset | |
20518 | ||
20519 | # turn spaces into newlines. | |
20520 | SP2NL=$lt_lt_SP2NL | |
20521 | ||
20522 | # turn newlines into spaces. | |
20523 | NL2SP=$lt_lt_NL2SP | |
20524 | ||
20525 | # convert \$build file names to \$host format. | |
20526 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
20527 | ||
20528 | # convert \$build files to toolchain format. | |
20529 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
20530 | ||
20531 | # An object symbol dumper. | |
20532 | OBJDUMP=$lt_OBJDUMP | |
20533 | ||
20534 | # Method to check whether dependent libraries are shared objects. | |
20535 | deplibs_check_method=$lt_deplibs_check_method | |
20536 | ||
20537 | # Command to use when deplibs_check_method = "file_magic". | |
20538 | file_magic_cmd=$lt_file_magic_cmd | |
20539 | ||
20540 | # How to find potential files when deplibs_check_method = "file_magic". | |
20541 | file_magic_glob=$lt_file_magic_glob | |
20542 | ||
20543 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
20544 | want_nocaseglob=$lt_want_nocaseglob | |
20545 | ||
20546 | # DLL creation program. | |
20547 | DLLTOOL=$lt_DLLTOOL | |
20548 | ||
20549 | # Command to associate shared and link libraries. | |
20550 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
20551 | ||
20552 | # The archiver. | |
20553 | AR=$lt_AR | |
20554 | ||
20555 | # Flags to create an archive. | |
20556 | AR_FLAGS=$lt_AR_FLAGS | |
20557 | ||
20558 | # How to feed a file listing to the archiver. | |
20559 | archiver_list_spec=$lt_archiver_list_spec | |
20560 | ||
20561 | # A symbol stripping program. | |
20562 | STRIP=$lt_STRIP | |
20563 | ||
20564 | # Commands used to install an old-style archive. | |
20565 | RANLIB=$lt_RANLIB | |
20566 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20567 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20568 | ||
20569 | # Whether to use a lock for old archive extraction. | |
20570 | lock_old_archive_extraction=$lock_old_archive_extraction | |
20571 | ||
20572 | # A C compiler. | |
20573 | LTCC=$lt_CC | |
20574 | ||
20575 | # LTCC compiler flags. | |
20576 | LTCFLAGS=$lt_CFLAGS | |
20577 | ||
20578 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20579 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20580 | ||
20581 | # Transform the output of nm in a proper C declaration. | |
20582 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20583 | ||
20584 | # Transform the output of nm into a list of symbols to manually relocate. | |
20585 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
20586 | ||
20587 | # Transform the output of nm in a C name address pair. | |
20588 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20589 | ||
20590 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
20591 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
20592 | ||
20593 | # The name lister interface. | |
20594 | nm_interface=$lt_lt_cv_nm_interface | |
20595 | ||
20596 | # Specify filename containing input files for \$NM. | |
20597 | nm_file_list_spec=$lt_nm_file_list_spec | |
20598 | ||
20599 | # The root where to search for dependent libraries,and where our libraries should be installed. | |
20600 | lt_sysroot=$lt_sysroot | |
20601 | ||
20602 | # Command to truncate a binary pipe. | |
20603 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
20604 | ||
20605 | # The name of the directory that contains temporary libtool files. | |
20606 | objdir=$objdir | |
20607 | ||
20608 | # Used to examine libraries when file_magic_cmd begins with "file". | |
20609 | MAGIC_CMD=$MAGIC_CMD | |
20610 | ||
20611 | # Must we lock files when doing compilation? | |
20612 | need_locks=$lt_need_locks | |
20613 | ||
20614 | # Manifest tool. | |
20615 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
20616 | ||
20617 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
20618 | DSYMUTIL=$lt_DSYMUTIL | |
20619 | ||
20620 | # Tool to change global to local symbols on Mac OS X. | |
20621 | NMEDIT=$lt_NMEDIT | |
20622 | ||
20623 | # Tool to manipulate fat objects and archives on Mac OS X. | |
20624 | LIPO=$lt_LIPO | |
20625 | ||
20626 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
20627 | OTOOL=$lt_OTOOL | |
20628 | ||
20629 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
20630 | OTOOL64=$lt_OTOOL64 | |
20631 | ||
20632 | # Old archive suffix (normally "a"). | |
20633 | libext=$libext | |
20634 | ||
20635 | # Shared library suffix (normally ".so"). | |
20636 | shrext_cmds=$lt_shrext_cmds | |
20637 | ||
20638 | # The commands to extract the exported symbol list from a shared archive. | |
20639 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
20640 | ||
20641 | # Variables whose values should be saved in libtool wrapper scripts and | |
20642 | # restored at link time. | |
20643 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
20644 | ||
20645 | # Do we need the "lib" prefix for modules? | |
20646 | need_lib_prefix=$need_lib_prefix | |
20647 | ||
20648 | # Do we need a version for libraries? | |
20649 | need_version=$need_version | |
20650 | ||
20651 | # Library versioning type. | |
20652 | version_type=$version_type | |
20653 | ||
20654 | # Shared library runtime path variable. | |
20655 | runpath_var=$runpath_var | |
20656 | ||
20657 | # Shared library path variable. | |
20658 | shlibpath_var=$shlibpath_var | |
20659 | ||
20660 | # Is shlibpath searched before the hard-coded library search path? | |
20661 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
20662 | ||
20663 | # Format of library name prefix. | |
20664 | libname_spec=$lt_libname_spec | |
20665 | ||
20666 | # List of archive names. First name is the real one, the rest are links. | |
20667 | # The last name is the one that the linker finds with -lNAME | |
20668 | library_names_spec=$lt_library_names_spec | |
20669 | ||
20670 | # The coded name of the library, if different from the real name. | |
20671 | soname_spec=$lt_soname_spec | |
20672 | ||
20673 | # Permission mode override for installation of shared libraries. | |
20674 | install_override_mode=$lt_install_override_mode | |
20675 | ||
20676 | # Command to use after installation of a shared archive. | |
20677 | postinstall_cmds=$lt_postinstall_cmds | |
20678 | ||
20679 | # Command to use after uninstallation of a shared archive. | |
20680 | postuninstall_cmds=$lt_postuninstall_cmds | |
20681 | ||
20682 | # Commands used to finish a libtool library installation in a directory. | |
20683 | finish_cmds=$lt_finish_cmds | |
20684 | ||
20685 | # As "finish_cmds", except a single script fragment to be evaled but | |
20686 | # not shown. | |
20687 | finish_eval=$lt_finish_eval | |
20688 | ||
20689 | # Whether we should hardcode library paths into libraries. | |
20690 | hardcode_into_libs=$hardcode_into_libs | |
20691 | ||
20692 | # Compile-time system search path for libraries. | |
20693 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
20694 | ||
20695 | # Detected run-time system search path for libraries. | |
20696 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
20697 | ||
20698 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
20699 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
20700 | ||
20701 | # Whether dlopen is supported. | |
20702 | dlopen_support=$enable_dlopen | |
20703 | ||
20704 | # Whether dlopen of programs is supported. | |
20705 | dlopen_self=$enable_dlopen_self | |
20706 | ||
20707 | # Whether dlopen of statically linked programs is supported. | |
20708 | dlopen_self_static=$enable_dlopen_self_static | |
20709 | ||
20710 | # Commands to strip libraries. | |
20711 | old_striplib=$lt_old_striplib | |
20712 | striplib=$lt_striplib | |
20713 | ||
20714 | ||
20715 | # The linker used to build libraries. | |
20716 | LD=$lt_LD | |
20717 | ||
20718 | # How to create reloadable object files. | |
20719 | reload_flag=$lt_reload_flag | |
20720 | reload_cmds=$lt_reload_cmds | |
20721 | ||
20722 | # Commands used to build an old-style archive. | |
20723 | old_archive_cmds=$lt_old_archive_cmds | |
20724 | ||
20725 | # A language specific compiler. | |
20726 | CC=$lt_compiler | |
20727 | ||
20728 | # Is the compiler the GNU compiler? | |
20729 | with_gcc=$GCC | |
20730 | ||
20731 | # Compiler flag to turn off builtin functions. | |
20732 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
20733 | ||
20734 | # Additional compiler flags for building library objects. | |
20735 | pic_flag=$lt_lt_prog_compiler_pic | |
20736 | ||
20737 | # How to pass a linker flag through the compiler. | |
20738 | wl=$lt_lt_prog_compiler_wl | |
20739 | ||
20740 | # Compiler flag to prevent dynamic linking. | |
20741 | link_static_flag=$lt_lt_prog_compiler_static | |
20742 | ||
20743 | # Does compiler simultaneously support -c and -o options? | |
20744 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
20745 | ||
20746 | # Whether or not to add -lc for building shared libraries. | |
20747 | build_libtool_need_lc=$archive_cmds_need_lc | |
20748 | ||
20749 | # Whether or not to disallow shared libs when runtime libs are static. | |
20750 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
20751 | ||
20752 | # Compiler flag to allow reflexive dlopens. | |
20753 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
20754 | ||
20755 | # Compiler flag to generate shared objects directly from archives. | |
20756 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
20757 | ||
20758 | # Whether the compiler copes with passing no objects directly. | |
20759 | compiler_needs_object=$lt_compiler_needs_object | |
20760 | ||
20761 | # Create an old-style archive from a shared archive. | |
20762 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
20763 | ||
20764 | # Create a temporary old-style archive to link instead of a shared archive. | |
20765 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
20766 | ||
20767 | # Commands used to build a shared archive. | |
20768 | archive_cmds=$lt_archive_cmds | |
20769 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
20770 | ||
20771 | # Commands used to build a loadable module if different from building | |
20772 | # a shared archive. | |
20773 | module_cmds=$lt_module_cmds | |
20774 | module_expsym_cmds=$lt_module_expsym_cmds | |
20775 | ||
20776 | # Whether we are building with GNU ld or not. | |
20777 | with_gnu_ld=$lt_with_gnu_ld | |
20778 | ||
20779 | # Flag that allows shared libraries with undefined symbols to be built. | |
20780 | allow_undefined_flag=$lt_allow_undefined_flag | |
20781 | ||
20782 | # Flag that enforces no undefined symbols. | |
20783 | no_undefined_flag=$lt_no_undefined_flag | |
20784 | ||
20785 | # Flag to hardcode \$libdir into a binary during linking. | |
20786 | # This must work even if \$libdir does not exist | |
20787 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
20788 | ||
20789 | # Whether we need a single "-rpath" flag with a separated argument. | |
20790 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
20791 | ||
20792 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
20793 | # DIR into the resulting binary. | |
20794 | hardcode_direct=$hardcode_direct | |
20795 | ||
20796 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
20797 | # DIR into the resulting binary and the resulting library dependency is | |
20798 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
20799 | # library is relocated. | |
20800 | hardcode_direct_absolute=$hardcode_direct_absolute | |
20801 | ||
20802 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
20803 | # into the resulting binary. | |
20804 | hardcode_minus_L=$hardcode_minus_L | |
20805 | ||
20806 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
20807 | # into the resulting binary. | |
20808 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
20809 | ||
20810 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
20811 | # into the library and all subsequent libraries and executables linked | |
20812 | # against it. | |
20813 | hardcode_automatic=$hardcode_automatic | |
20814 | ||
20815 | # Set to yes if linker adds runtime paths of dependent libraries | |
20816 | # to runtime path list. | |
20817 | inherit_rpath=$inherit_rpath | |
20818 | ||
20819 | # Whether libtool must link a program against all its dependency libraries. | |
20820 | link_all_deplibs=$link_all_deplibs | |
20821 | ||
20822 | # Set to "yes" if exported symbols are required. | |
20823 | always_export_symbols=$always_export_symbols | |
20824 | ||
20825 | # The commands to list exported symbols. | |
20826 | export_symbols_cmds=$lt_export_symbols_cmds | |
20827 | ||
20828 | # Symbols that should not be listed in the preloaded symbols. | |
20829 | exclude_expsyms=$lt_exclude_expsyms | |
20830 | ||
20831 | # Symbols that must always be exported. | |
20832 | include_expsyms=$lt_include_expsyms | |
20833 | ||
20834 | # Commands necessary for linking programs (against libraries) with templates. | |
20835 | prelink_cmds=$lt_prelink_cmds | |
20836 | ||
20837 | # Commands necessary for finishing linking programs. | |
20838 | postlink_cmds=$lt_postlink_cmds | |
20839 | ||
20840 | # Specify filename containing input files. | |
20841 | file_list_spec=$lt_file_list_spec | |
20842 | ||
20843 | # How to hardcode a shared library path into an executable. | |
20844 | hardcode_action=$hardcode_action | |
20845 | ||
20846 | # ### END LIBTOOL CONFIG | |
20847 | ||
20848 | _LT_EOF | |
20849 | ||
20850 | cat <<'_LT_EOF' >> "$cfgfile" | |
20851 | ||
20852 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
20853 | ||
20854 | # func_munge_path_list VARIABLE PATH | |
20855 | # ----------------------------------- | |
20856 | # VARIABLE is name of variable containing _space_ separated list of | |
20857 | # directories to be munged by the contents of PATH, which is string | |
20858 | # having a format: | |
20859 | # "DIR[:DIR]:" | |
20860 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
20861 | # ":DIR[:DIR]" | |
20862 | # string "DIR[ DIR]" will be appended to VARIABLE | |
20863 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
20864 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
20865 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
20866 | # "DIR[:DIR]" | |
20867 | # VARIABLE will be replaced by "DIR[ DIR]" | |
20868 | func_munge_path_list () | |
20869 | { | |
20870 | case x$2 in | |
20871 | x) | |
20872 | ;; | |
20873 | *:) | |
20874 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
20875 | ;; | |
20876 | x:*) | |
20877 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
20878 | ;; | |
20879 | *::*) | |
20880 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
20881 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
20882 | ;; | |
20883 | *) | |
20884 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
20885 | ;; | |
20886 | esac | |
20887 | } | |
20888 | ||
20889 | ||
20890 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
20891 | func_cc_basename () | |
20892 | { | |
20893 | for cc_temp in $*""; do | |
20894 | case $cc_temp in | |
20895 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
20896 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
20897 | \-*) ;; | |
20898 | *) break;; | |
20899 | esac | |
20900 | done | |
20901 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
20902 | } | |
20903 | ||
20904 | ||
20905 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
20906 | ||
20907 | _LT_EOF | |
20908 | ||
20909 | case $host_os in | |
20910 | aix3*) | |
20911 | cat <<\_LT_EOF >> "$cfgfile" | |
20912 | # AIX sometimes has problems with the GCC collect2 program. For some | |
20913 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
20914 | # vanish in a puff of smoke. | |
20915 | if test set != "${COLLECT_NAMES+set}"; then | |
20916 | COLLECT_NAMES= | |
20917 | export COLLECT_NAMES | |
20918 | fi | |
20919 | _LT_EOF | |
20920 | ;; | |
20921 | esac | |
20922 | ||
20923 | ||
20924 | ltmain=$ac_aux_dir/ltmain.sh | |
20925 | ||
20926 | ||
20927 | # We use sed instead of cat because bash on DJGPP gets confused if | |
20928 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
20929 | # text mode, it properly converts lines to CR/LF. This bash problem | |
20930 | # is reportedly fixed, but why not run on old versions too? | |
20931 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
20932 | || (rm -f "$cfgfile"; exit 1) | |
20933 | ||
20934 | mv -f "$cfgfile" "$ofile" || | |
20935 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20936 | chmod +x "$ofile" | |
20937 | ||
20938 | ;; | |
20939 | ||
20940 | esac | |
20941 | done # for ac_tag | |
20942 | ||
20943 | ||
20944 | as_fn_exit 0 | |
20945 | _ACEOF | |
20946 | ac_clean_files=$ac_clean_files_save | |
20947 | ||
20948 | test $ac_write_fail = 0 || | |
20949 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
20950 | ||
20951 | ||
20952 | # configure is writing to config.log, and then calls config.status. | |
20953 | # config.status does its own redirection, appending to config.log. | |
20954 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20955 | # by configure, so config.status won't be able to write to it; its | |
20956 | # output is simply discarded. So we exec the FD to /dev/null, | |
20957 | # effectively closing config.log, so it can be properly (re)opened and | |
20958 | # appended to by config.status. When coming back to configure, we | |
20959 | # need to make the FD available again. | |
20960 | if test "$no_create" != yes; then | |
20961 | ac_cs_success=: | |
20962 | ac_config_status_args= | |
20963 | test "$silent" = yes && | |
20964 | ac_config_status_args="$ac_config_status_args --quiet" | |
20965 | exec 5>/dev/null | |
20966 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20967 | exec 5>>config.log | |
20968 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20969 | # would make configure fail if this is the last instruction. | |
20970 | $ac_cs_success || as_fn_exit 1 | |
20971 | fi | |
20972 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20974 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20975 | fi | |
20976 |