]>
Commit | Line | Data |
---|---|---|
bf9f3bac BB |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
8934764e | 3 | # Generated by GNU Autoconf 2.63. |
bf9f3bac | 4 | # |
8934764e BB |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
bf9f3bac BB |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ## --------------------- ## | |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
8934764e BB |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
bf9f3bac BB |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
8934764e | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bf9f3bac BB |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
8934764e BB |
21 | setopt NO_GLOB_SUBST |
22 | else | |
23 | case `(set -o) 2>/dev/null` in | |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
27 | fi | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
40 | as_nl=' | |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (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 | } | |
bf9f3bac | 79 | fi |
bf9f3bac BB |
80 | |
81 | # Support unset when possible. | |
82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
83 | as_unset=unset | |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
8934764e BB |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
94 | IFS=" "" $as_nl" | |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
117 | { (exit 1); exit 1; } | |
118 | fi | |
119 | ||
bf9f3bac | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
8934764e BB |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
bf9f3bac BB |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
8934764e BB |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
bf9f3bac BB |
133 | |
134 | # Required to use basename. | |
8934764e BB |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bf9f3bac BB |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
8934764e | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bf9f3bac BB |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
8934764e | 150 | as_me=`$as_basename -- "$0" || |
bf9f3bac BB |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
8934764e BB |
153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
154 | $as_echo X/"$0" | | |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
bf9f3bac | 168 | |
8934764e BB |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
bf9f3bac | 171 | |
bf9f3bac | 172 | |
8934764e BB |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
bf9f3bac BB |
178 | fi |
179 | ||
8934764e BB |
180 | if test $as_have_required = yes && (eval ": |
181 | (as_func_return () { | |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
bf9f3bac | 196 | |
8934764e BB |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
bf9f3bac | 204 | |
8934764e BB |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
bf9f3bac BB |
240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
242 | do | |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
8934764e | 245 | case $as_dir in |
bf9f3bac | 246 | /*) |
8934764e BB |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
263 | # is contrary to our usage. Disable this feature. | |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
267 | case `(set -o) 2>/dev/null` in | |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
271 | fi | |
272 | ||
273 | ||
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
284 | # is contrary to our usage. Disable this feature. | |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
288 | case `(set -o) 2>/dev/null` in | |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
292 | fi | |
293 | ||
294 | ||
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
bf9f3bac BB |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
bf9f3bac | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
8934764e BB |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
367 | fi | |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
435 | echo Please tell bug-autoconf@gnu.org about your system, | |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
439 | } | |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
bf9f3bac BB |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
8934764e BB |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
bf9f3bac | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
8934764e BB |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
bf9f3bac | 462 | sed ' |
8934764e BB |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
bf9f3bac | 467 | N |
8934764e BB |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bf9f3bac | 470 | t loop |
8934764e | 471 | s/-\n.*// |
bf9f3bac | 472 | ' >$as_me.lineno && |
8934764e BB |
473 | chmod +x "$as_me.lineno" || |
474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
bf9f3bac BB |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
8934764e BB |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
bf9f3bac BB |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
484 | ||
485 | ||
8934764e BB |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
bf9f3bac | 491 | |
8934764e BB |
492 | ECHO_C= ECHO_N= ECHO_T= |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
501 | esac | |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bf9f3bac BB |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
8934764e BB |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
514 | mkdir conf$$.dir 2>/dev/null | |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bf9f3bac | 518 | as_ln_s='ln -s' |
8934764e BB |
519 | # ... but there are two gotchas: |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
528 | as_ln_s='cp -p' | |
bf9f3bac | 529 | fi |
bf9f3bac BB |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
8934764e BB |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
bf9f3bac BB |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
539 | test -d ./-p && rmdir ./-p | |
540 | as_mkdir_p=false | |
541 | fi | |
542 | ||
8934764e BB |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
545 | else | |
546 | if ls -dL / >/dev/null 2>&1; then | |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
554 | test -d "$1/."; | |
555 | else | |
556 | case $1 in | |
557 | -*)set "./$1";; | |
558 | esac; | |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
563 | fi | |
564 | as_executable_p=$as_test_x | |
bf9f3bac BB |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
568 | ||
569 | # Sed expression to map a string onto a valid variable name. | |
570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
571 | ||
572 | ||
bf9f3bac BB |
573 | |
574 | ||
575 | # Check that we are running under the correct shell. | |
576 | SHELL=${CONFIG_SHELL-/bin/sh} | |
577 | ||
8934764e | 578 | case X$lt_ECHO in |
bf9f3bac BB |
579 | X*--fallback-echo) |
580 | # Remove one level of quotation (which was required for Make). | |
8934764e | 581 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
bf9f3bac BB |
582 | ;; |
583 | esac | |
584 | ||
8934764e | 585 | ECHO=${lt_ECHO-echo} |
bf9f3bac BB |
586 | if test "X$1" = X--no-reexec; then |
587 | # Discard the --no-reexec flag, and continue. | |
588 | shift | |
589 | elif test "X$1" = X--fallback-echo; then | |
590 | # Avoid inline document here, it may be left over | |
591 | : | |
8934764e BB |
592 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
593 | # Yippee, $ECHO works! | |
bf9f3bac BB |
594 | : |
595 | else | |
596 | # Restart under the correct shell. | |
597 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
598 | fi | |
599 | ||
600 | if test "X$1" = X--fallback-echo; then | |
601 | # used as fallback echo | |
602 | shift | |
8934764e | 603 | cat <<_LT_EOF |
bf9f3bac | 604 | $* |
8934764e | 605 | _LT_EOF |
bf9f3bac BB |
606 | exit 0 |
607 | fi | |
608 | ||
609 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
610 | # if CDPATH is set. | |
611 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
612 | ||
8934764e BB |
613 | if test -z "$lt_ECHO"; then |
614 | if test "X${echo_test_string+set}" != Xset; then | |
615 | # find a string as large as possible, as long as the shell can cope with it | |
616 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
617 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
618 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
619 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
620 | then | |
621 | break | |
622 | fi | |
623 | done | |
624 | fi | |
bf9f3bac | 625 | |
8934764e BB |
626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
628 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
629 | : | |
630 | else | |
631 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
632 | # backslashes. This makes it impossible to quote backslashes using | |
633 | # echo "$something" | sed 's/\\/\\\\/g' | |
634 | # | |
635 | # So, first we look for a working echo in the user's PATH. | |
bf9f3bac | 636 | |
8934764e BB |
637 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
638 | for dir in $PATH /usr/ucb; do | |
639 | IFS="$lt_save_ifs" | |
640 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
641 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
642 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
643 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
644 | ECHO="$dir/echo" | |
645 | break | |
646 | fi | |
647 | done | |
bf9f3bac | 648 | IFS="$lt_save_ifs" |
bf9f3bac | 649 | |
8934764e BB |
650 | if test "X$ECHO" = Xecho; then |
651 | # We didn't find a better echo, so look for alternatives. | |
652 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
653 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
654 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
655 | # This shell has a builtin print -r that does the trick. | |
656 | ECHO='print -r' | |
657 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
658 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
659 | # If we have ksh, try running configure again with it. | |
660 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
661 | export ORIGINAL_CONFIG_SHELL | |
662 | CONFIG_SHELL=/bin/ksh | |
663 | export CONFIG_SHELL | |
664 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
bf9f3bac | 665 | else |
8934764e BB |
666 | # Try using printf. |
667 | ECHO='printf %s\n' | |
668 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
669 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
670 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
671 | # Cool, printf works | |
672 | : | |
673 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
674 | test "X$echo_testing_string" = 'X\t' && | |
675 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
676 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
677 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
678 | export CONFIG_SHELL | |
679 | SHELL="$CONFIG_SHELL" | |
680 | export SHELL | |
681 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
682 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
683 | test "X$echo_testing_string" = 'X\t' && | |
684 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
685 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
686 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
687 | else | |
688 | # maybe with a smaller string... | |
689 | prev=: | |
bf9f3bac | 690 | |
8934764e BB |
691 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
692 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
693 | then | |
694 | break | |
695 | fi | |
696 | prev="$cmd" | |
697 | done | |
bf9f3bac | 698 | |
8934764e BB |
699 | if test "$prev" != 'sed 50q "$0"'; then |
700 | echo_test_string=`eval $prev` | |
701 | export echo_test_string | |
702 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
703 | else | |
704 | # Oops. We lost completely, so just stick with echo. | |
705 | ECHO=echo | |
706 | fi | |
707 | fi | |
bf9f3bac BB |
708 | fi |
709 | fi | |
710 | fi | |
711 | fi | |
bf9f3bac BB |
712 | |
713 | # Copy echo and quote the copy suitably for passing to libtool from | |
714 | # the Makefile, instead of quoting the original, which is used later. | |
8934764e BB |
715 | lt_ECHO=$ECHO |
716 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
717 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
bf9f3bac BB |
718 | fi |
719 | ||
720 | ||
721 | ||
722 | ||
8934764e | 723 | exec 7<&0 </dev/null 6>&1 |
bf9f3bac BB |
724 | |
725 | # Name of the host. | |
726 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
727 | # so uname gets run too. | |
728 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
729 | ||
bf9f3bac BB |
730 | # |
731 | # Initializations. | |
732 | # | |
733 | ac_default_prefix=/usr/local | |
8934764e | 734 | ac_clean_files= |
bf9f3bac | 735 | ac_config_libobj_dir=. |
8934764e | 736 | LIBOBJS= |
bf9f3bac BB |
737 | cross_compiling=no |
738 | subdirs= | |
739 | MFLAGS= | |
740 | MAKEFLAGS= | |
741 | SHELL=${CONFIG_SHELL-/bin/sh} | |
742 | ||
bf9f3bac BB |
743 | # Identity of this package. |
744 | PACKAGE_NAME= | |
745 | PACKAGE_TARNAME= | |
746 | PACKAGE_VERSION= | |
747 | PACKAGE_STRING= | |
748 | PACKAGE_BUGREPORT= | |
749 | ||
750 | # Factoring default headers for most tests. | |
751 | ac_includes_default="\ | |
752 | #include <stdio.h> | |
8934764e | 753 | #ifdef HAVE_SYS_TYPES_H |
bf9f3bac BB |
754 | # include <sys/types.h> |
755 | #endif | |
8934764e | 756 | #ifdef HAVE_SYS_STAT_H |
bf9f3bac BB |
757 | # include <sys/stat.h> |
758 | #endif | |
8934764e | 759 | #ifdef STDC_HEADERS |
bf9f3bac BB |
760 | # include <stdlib.h> |
761 | # include <stddef.h> | |
762 | #else | |
8934764e | 763 | # ifdef HAVE_STDLIB_H |
bf9f3bac BB |
764 | # include <stdlib.h> |
765 | # endif | |
766 | #endif | |
8934764e BB |
767 | #ifdef HAVE_STRING_H |
768 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
bf9f3bac BB |
769 | # include <memory.h> |
770 | # endif | |
771 | # include <string.h> | |
772 | #endif | |
8934764e | 773 | #ifdef HAVE_STRINGS_H |
bf9f3bac BB |
774 | # include <strings.h> |
775 | #endif | |
8934764e | 776 | #ifdef HAVE_INTTYPES_H |
bf9f3bac | 777 | # include <inttypes.h> |
bf9f3bac | 778 | #endif |
8934764e BB |
779 | #ifdef HAVE_STDINT_H |
780 | # include <stdint.h> | |
781 | #endif | |
782 | #ifdef HAVE_UNISTD_H | |
bf9f3bac BB |
783 | # include <unistd.h> |
784 | #endif" | |
785 | ||
8934764e BB |
786 | ac_subst_vars='am__EXEEXT_FALSE |
787 | am__EXEEXT_TRUE | |
788 | LTLIBOBJS | |
789 | LIBOBJS | |
790 | CONFIG_KERNEL_FALSE | |
791 | CONFIG_KERNEL_TRUE | |
792 | CONFIG_USER_FALSE | |
793 | CONFIG_USER_TRUE | |
3c208a54 BB |
794 | DEBUG_KMEM_TRACKING |
795 | DEBUG_KMEM | |
796 | DEBUG_LOG | |
797 | DEBUG_SPL | |
c950d148 | 798 | DEBUG_CFLAGS |
8934764e BB |
799 | KERNELCPPFLAGS |
800 | KERNELMAKE_PARAMS | |
801 | LINUX_SYMBOLS | |
802 | LINUX_VERSION | |
803 | LINUX_OBJ | |
804 | LINUX | |
805 | SPL_CONFIG | |
c2dceb5c PS |
806 | MAKEPKG_VERSION |
807 | MAKEPKG | |
808 | HAVE_MAKEPKG | |
809 | PACMAN_VERSION | |
810 | PACMAN | |
811 | HAVE_PACMAN | |
287b2fb1 BB |
812 | ALIEN_VERSION |
813 | ALIEN | |
814 | HAVE_ALIEN | |
815 | DPKGBUILD_VERSION | |
816 | DPKGBUILD | |
817 | HAVE_DPKGBUILD | |
818 | DPKG_VERSION | |
819 | DPKG | |
820 | HAVE_DPKG | |
821 | RPMBUILD_VERSION | |
822 | RPMBUILD | |
823 | HAVE_RPMBUILD | |
824 | RPM_VERSION | |
825 | RPM | |
826 | HAVE_RPM | |
0b14b9f3 BB |
827 | DEFAULT_PACKAGE |
828 | VENDOR | |
8934764e BB |
829 | LICENSE |
830 | CPP | |
831 | OTOOL64 | |
832 | OTOOL | |
833 | LIPO | |
834 | NMEDIT | |
835 | DSYMUTIL | |
836 | lt_ECHO | |
837 | RANLIB | |
838 | AR | |
839 | OBJDUMP | |
840 | LN_S | |
841 | NM | |
842 | ac_ct_DUMPBIN | |
843 | DUMPBIN | |
844 | LD | |
845 | FGREP | |
846 | EGREP | |
847 | GREP | |
848 | SED | |
849 | LIBTOOL | |
850 | am__fastdepCC_FALSE | |
851 | am__fastdepCC_TRUE | |
852 | CCDEPMODE | |
853 | AMDEPBACKSLASH | |
854 | AMDEP_FALSE | |
855 | AMDEP_TRUE | |
856 | am__quote | |
857 | am__include | |
858 | DEPDIR | |
859 | OBJEXT | |
860 | EXEEXT | |
861 | ac_ct_CC | |
862 | CPPFLAGS | |
863 | LDFLAGS | |
864 | CFLAGS | |
865 | CC | |
866 | am__untar | |
867 | am__tar | |
868 | AMTAR | |
869 | am__leading_dot | |
870 | SET_MAKE | |
871 | AWK | |
872 | mkdir_p | |
873 | MKDIR_P | |
874 | INSTALL_STRIP_PROGRAM | |
875 | STRIP | |
876 | install_sh | |
877 | MAKEINFO | |
878 | AUTOHEADER | |
879 | AUTOMAKE | |
880 | AUTOCONF | |
881 | ACLOCAL | |
882 | VERSION | |
883 | PACKAGE | |
884 | CYGPATH_W | |
885 | am__isrc | |
886 | INSTALL_DATA | |
887 | INSTALL_SCRIPT | |
888 | INSTALL_PROGRAM | |
889 | AM_BACKSLASH | |
890 | AM_DEFAULT_VERBOSITY | |
891 | MAINT | |
892 | MAINTAINER_MODE_FALSE | |
893 | MAINTAINER_MODE_TRUE | |
894 | target_os | |
895 | target_vendor | |
896 | target_cpu | |
897 | target | |
898 | host_os | |
899 | host_vendor | |
900 | host_cpu | |
901 | host | |
902 | build_os | |
903 | build_vendor | |
904 | build_cpu | |
905 | build | |
906 | SPL_META_LT_AGE | |
907 | SPL_META_LT_REVISION | |
908 | SPL_META_LT_CURRENT | |
909 | SPL_META_AUTHOR | |
910 | SPL_META_DATA | |
911 | SPL_META_ALIAS | |
912 | SPL_META_RELEASE | |
913 | SPL_META_VERSION | |
914 | SPL_META_NAME | |
915 | target_alias | |
916 | host_alias | |
917 | build_alias | |
918 | LIBS | |
919 | ECHO_T | |
920 | ECHO_N | |
921 | ECHO_C | |
922 | DEFS | |
923 | mandir | |
924 | localedir | |
925 | libdir | |
926 | psdir | |
927 | pdfdir | |
928 | dvidir | |
929 | htmldir | |
930 | infodir | |
931 | docdir | |
932 | oldincludedir | |
933 | includedir | |
934 | localstatedir | |
935 | sharedstatedir | |
936 | sysconfdir | |
937 | datadir | |
938 | datarootdir | |
939 | libexecdir | |
940 | sbindir | |
941 | bindir | |
942 | program_transform_name | |
943 | prefix | |
944 | exec_prefix | |
945 | PACKAGE_BUGREPORT | |
946 | PACKAGE_STRING | |
947 | PACKAGE_VERSION | |
948 | PACKAGE_TARNAME | |
949 | PACKAGE_NAME | |
950 | PATH_SEPARATOR | |
951 | SHELL' | |
bf9f3bac | 952 | ac_subst_files='' |
8934764e BB |
953 | ac_user_opts=' |
954 | enable_option_checking | |
955 | enable_maintainer_mode | |
956 | enable_silent_rules | |
957 | enable_dependency_tracking | |
958 | enable_shared | |
959 | enable_static | |
960 | with_pic | |
961 | enable_fast_install | |
962 | with_gnu_ld | |
963 | enable_libtool_lock | |
964 | with_config | |
0408008b | 965 | enable_linux_builtin |
8934764e BB |
966 | with_linux |
967 | with_linux_obj | |
968 | enable_debug | |
4b2220f0 | 969 | enable_debug_log |
8934764e BB |
970 | enable_debug_kmem |
971 | enable_debug_kmem_tracking | |
972 | enable_atomic_spinlocks | |
973 | ' | |
974 | ac_precious_vars='build_alias | |
975 | host_alias | |
976 | target_alias | |
977 | CC | |
978 | CFLAGS | |
979 | LDFLAGS | |
980 | LIBS | |
981 | CPPFLAGS | |
982 | CPP' | |
983 | ||
bf9f3bac BB |
984 | |
985 | # Initialize some variables set by options. | |
986 | ac_init_help= | |
987 | ac_init_version=false | |
8934764e BB |
988 | ac_unrecognized_opts= |
989 | ac_unrecognized_sep= | |
bf9f3bac BB |
990 | # The variables have the same names as the options, with |
991 | # dashes changed to underlines. | |
992 | cache_file=/dev/null | |
993 | exec_prefix=NONE | |
994 | no_create= | |
995 | no_recursion= | |
996 | prefix=NONE | |
997 | program_prefix=NONE | |
998 | program_suffix=NONE | |
999 | program_transform_name=s,x,x, | |
1000 | silent= | |
1001 | site= | |
1002 | srcdir= | |
1003 | verbose= | |
1004 | x_includes=NONE | |
1005 | x_libraries=NONE | |
1006 | ||
1007 | # Installation directory options. | |
1008 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1009 | # and all the variables that are supposed to be based on exec_prefix | |
1010 | # by default will actually change. | |
1011 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
8934764e | 1012 | # (The list follows the same order as the GNU Coding Standards.) |
bf9f3bac BB |
1013 | bindir='${exec_prefix}/bin' |
1014 | sbindir='${exec_prefix}/sbin' | |
1015 | libexecdir='${exec_prefix}/libexec' | |
8934764e BB |
1016 | datarootdir='${prefix}/share' |
1017 | datadir='${datarootdir}' | |
bf9f3bac BB |
1018 | sysconfdir='${prefix}/etc' |
1019 | sharedstatedir='${prefix}/com' | |
1020 | localstatedir='${prefix}/var' | |
bf9f3bac BB |
1021 | includedir='${prefix}/include' |
1022 | oldincludedir='/usr/include' | |
8934764e BB |
1023 | docdir='${datarootdir}/doc/${PACKAGE}' |
1024 | infodir='${datarootdir}/info' | |
1025 | htmldir='${docdir}' | |
1026 | dvidir='${docdir}' | |
1027 | pdfdir='${docdir}' | |
1028 | psdir='${docdir}' | |
1029 | libdir='${exec_prefix}/lib' | |
1030 | localedir='${datarootdir}/locale' | |
1031 | mandir='${datarootdir}/man' | |
bf9f3bac BB |
1032 | |
1033 | ac_prev= | |
8934764e | 1034 | ac_dashdash= |
bf9f3bac BB |
1035 | for ac_option |
1036 | do | |
1037 | # If the previous option needs an argument, assign it. | |
1038 | if test -n "$ac_prev"; then | |
8934764e | 1039 | eval $ac_prev=\$ac_option |
bf9f3bac BB |
1040 | ac_prev= |
1041 | continue | |
1042 | fi | |
1043 | ||
8934764e BB |
1044 | case $ac_option in |
1045 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1046 | *) ac_optarg=yes ;; | |
1047 | esac | |
bf9f3bac BB |
1048 | |
1049 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1050 | ||
8934764e BB |
1051 | case $ac_dashdash$ac_option in |
1052 | --) | |
1053 | ac_dashdash=yes ;; | |
bf9f3bac BB |
1054 | |
1055 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1056 | ac_prev=bindir ;; | |
1057 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1058 | bindir=$ac_optarg ;; | |
1059 | ||
1060 | -build | --build | --buil | --bui | --bu) | |
1061 | ac_prev=build_alias ;; | |
1062 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1063 | build_alias=$ac_optarg ;; | |
1064 | ||
1065 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1066 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1067 | ac_prev=cache_file ;; | |
1068 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1069 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1070 | cache_file=$ac_optarg ;; | |
1071 | ||
1072 | --config-cache | -C) | |
1073 | cache_file=config.cache ;; | |
1074 | ||
8934764e | 1075 | -datadir | --datadir | --datadi | --datad) |
bf9f3bac | 1076 | ac_prev=datadir ;; |
8934764e | 1077 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bf9f3bac BB |
1078 | datadir=$ac_optarg ;; |
1079 | ||
8934764e BB |
1080 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1081 | | --dataroo | --dataro | --datar) | |
1082 | ac_prev=datarootdir ;; | |
1083 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1084 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1085 | datarootdir=$ac_optarg ;; | |
1086 | ||
bf9f3bac | 1087 | -disable-* | --disable-*) |
8934764e | 1088 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bf9f3bac | 1089 | # Reject names that are not valid shell variable names. |
8934764e BB |
1090 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1091 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
bf9f3bac | 1092 | { (exit 1); exit 1; }; } |
8934764e BB |
1093 | ac_useropt_orig=$ac_useropt |
1094 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1095 | case $ac_user_opts in | |
1096 | *" | |
1097 | "enable_$ac_useropt" | |
1098 | "*) ;; | |
1099 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1100 | ac_unrecognized_sep=', ';; | |
1101 | esac | |
1102 | eval enable_$ac_useropt=no ;; | |
1103 | ||
1104 | -docdir | --docdir | --docdi | --doc | --do) | |
1105 | ac_prev=docdir ;; | |
1106 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1107 | docdir=$ac_optarg ;; | |
1108 | ||
1109 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1110 | ac_prev=dvidir ;; | |
1111 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1112 | dvidir=$ac_optarg ;; | |
bf9f3bac BB |
1113 | |
1114 | -enable-* | --enable-*) | |
8934764e | 1115 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bf9f3bac | 1116 | # Reject names that are not valid shell variable names. |
8934764e BB |
1117 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1118 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
bf9f3bac | 1119 | { (exit 1); exit 1; }; } |
8934764e BB |
1120 | ac_useropt_orig=$ac_useropt |
1121 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1122 | case $ac_user_opts in | |
1123 | *" | |
1124 | "enable_$ac_useropt" | |
1125 | "*) ;; | |
1126 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1127 | ac_unrecognized_sep=', ';; | |
bf9f3bac | 1128 | esac |
8934764e | 1129 | eval enable_$ac_useropt=\$ac_optarg ;; |
bf9f3bac BB |
1130 | |
1131 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1132 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1133 | | --exec | --exe | --ex) | |
1134 | ac_prev=exec_prefix ;; | |
1135 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1136 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1137 | | --exec=* | --exe=* | --ex=*) | |
1138 | exec_prefix=$ac_optarg ;; | |
1139 | ||
1140 | -gas | --gas | --ga | --g) | |
1141 | # Obsolete; use --with-gas. | |
1142 | with_gas=yes ;; | |
1143 | ||
1144 | -help | --help | --hel | --he | -h) | |
1145 | ac_init_help=long ;; | |
1146 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1147 | ac_init_help=recursive ;; | |
1148 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1149 | ac_init_help=short ;; | |
1150 | ||
1151 | -host | --host | --hos | --ho) | |
1152 | ac_prev=host_alias ;; | |
1153 | -host=* | --host=* | --hos=* | --ho=*) | |
1154 | host_alias=$ac_optarg ;; | |
1155 | ||
8934764e BB |
1156 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1157 | ac_prev=htmldir ;; | |
1158 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1159 | | --ht=*) | |
1160 | htmldir=$ac_optarg ;; | |
1161 | ||
bf9f3bac BB |
1162 | -includedir | --includedir | --includedi | --included | --include \ |
1163 | | --includ | --inclu | --incl | --inc) | |
1164 | ac_prev=includedir ;; | |
1165 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1166 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1167 | includedir=$ac_optarg ;; | |
1168 | ||
1169 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1170 | ac_prev=infodir ;; | |
1171 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1172 | infodir=$ac_optarg ;; | |
1173 | ||
1174 | -libdir | --libdir | --libdi | --libd) | |
1175 | ac_prev=libdir ;; | |
1176 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1177 | libdir=$ac_optarg ;; | |
1178 | ||
1179 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1180 | | --libexe | --libex | --libe) | |
1181 | ac_prev=libexecdir ;; | |
1182 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1183 | | --libexe=* | --libex=* | --libe=*) | |
1184 | libexecdir=$ac_optarg ;; | |
1185 | ||
8934764e BB |
1186 | -localedir | --localedir | --localedi | --localed | --locale) |
1187 | ac_prev=localedir ;; | |
1188 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1189 | localedir=$ac_optarg ;; | |
1190 | ||
bf9f3bac | 1191 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
8934764e | 1192 | | --localstate | --localstat | --localsta | --localst | --locals) |
bf9f3bac BB |
1193 | ac_prev=localstatedir ;; |
1194 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
8934764e | 1195 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bf9f3bac BB |
1196 | localstatedir=$ac_optarg ;; |
1197 | ||
1198 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1199 | ac_prev=mandir ;; | |
1200 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1201 | mandir=$ac_optarg ;; | |
1202 | ||
1203 | -nfp | --nfp | --nf) | |
1204 | # Obsolete; use --without-fp. | |
1205 | with_fp=no ;; | |
1206 | ||
1207 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1208 | | --no-cr | --no-c | -n) | |
1209 | no_create=yes ;; | |
1210 | ||
1211 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1212 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1213 | no_recursion=yes ;; | |
1214 | ||
1215 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1216 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1217 | | --oldin | --oldi | --old | --ol | --o) | |
1218 | ac_prev=oldincludedir ;; | |
1219 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1220 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1221 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1222 | oldincludedir=$ac_optarg ;; | |
1223 | ||
1224 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1225 | ac_prev=prefix ;; | |
1226 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1227 | prefix=$ac_optarg ;; | |
1228 | ||
1229 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1230 | | --program-pre | --program-pr | --program-p) | |
1231 | ac_prev=program_prefix ;; | |
1232 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1233 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1234 | program_prefix=$ac_optarg ;; | |
1235 | ||
1236 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1237 | | --program-suf | --program-su | --program-s) | |
1238 | ac_prev=program_suffix ;; | |
1239 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1240 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1241 | program_suffix=$ac_optarg ;; | |
1242 | ||
1243 | -program-transform-name | --program-transform-name \ | |
1244 | | --program-transform-nam | --program-transform-na \ | |
1245 | | --program-transform-n | --program-transform- \ | |
1246 | | --program-transform | --program-transfor \ | |
1247 | | --program-transfo | --program-transf \ | |
1248 | | --program-trans | --program-tran \ | |
1249 | | --progr-tra | --program-tr | --program-t) | |
1250 | ac_prev=program_transform_name ;; | |
1251 | -program-transform-name=* | --program-transform-name=* \ | |
1252 | | --program-transform-nam=* | --program-transform-na=* \ | |
1253 | | --program-transform-n=* | --program-transform-=* \ | |
1254 | | --program-transform=* | --program-transfor=* \ | |
1255 | | --program-transfo=* | --program-transf=* \ | |
1256 | | --program-trans=* | --program-tran=* \ | |
1257 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1258 | program_transform_name=$ac_optarg ;; | |
1259 | ||
8934764e BB |
1260 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1261 | ac_prev=pdfdir ;; | |
1262 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1263 | pdfdir=$ac_optarg ;; | |
1264 | ||
1265 | -psdir | --psdir | --psdi | --psd | --ps) | |
1266 | ac_prev=psdir ;; | |
1267 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1268 | psdir=$ac_optarg ;; | |
1269 | ||
bf9f3bac BB |
1270 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1271 | | -silent | --silent | --silen | --sile | --sil) | |
1272 | silent=yes ;; | |
1273 | ||
1274 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1275 | ac_prev=sbindir ;; | |
1276 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1277 | | --sbi=* | --sb=*) | |
1278 | sbindir=$ac_optarg ;; | |
1279 | ||
1280 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1281 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1282 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1283 | | --sha | --sh) | |
1284 | ac_prev=sharedstatedir ;; | |
1285 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1286 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1287 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1288 | | --sha=* | --sh=*) | |
1289 | sharedstatedir=$ac_optarg ;; | |
1290 | ||
1291 | -site | --site | --sit) | |
1292 | ac_prev=site ;; | |
1293 | -site=* | --site=* | --sit=*) | |
1294 | site=$ac_optarg ;; | |
1295 | ||
1296 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1297 | ac_prev=srcdir ;; | |
1298 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1299 | srcdir=$ac_optarg ;; | |
1300 | ||
1301 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1302 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1303 | ac_prev=sysconfdir ;; | |
1304 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1305 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1306 | sysconfdir=$ac_optarg ;; | |
1307 | ||
1308 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1309 | ac_prev=target_alias ;; | |
1310 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1311 | target_alias=$ac_optarg ;; | |
1312 | ||
1313 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1314 | verbose=yes ;; | |
1315 | ||
1316 | -version | --version | --versio | --versi | --vers | -V) | |
1317 | ac_init_version=: ;; | |
1318 | ||
1319 | -with-* | --with-*) | |
8934764e | 1320 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bf9f3bac | 1321 | # Reject names that are not valid shell variable names. |
8934764e BB |
1322 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1323 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
bf9f3bac | 1324 | { (exit 1); exit 1; }; } |
8934764e BB |
1325 | ac_useropt_orig=$ac_useropt |
1326 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1327 | case $ac_user_opts in | |
1328 | *" | |
1329 | "with_$ac_useropt" | |
1330 | "*) ;; | |
1331 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1332 | ac_unrecognized_sep=', ';; | |
bf9f3bac | 1333 | esac |
8934764e | 1334 | eval with_$ac_useropt=\$ac_optarg ;; |
bf9f3bac BB |
1335 | |
1336 | -without-* | --without-*) | |
8934764e | 1337 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bf9f3bac | 1338 | # Reject names that are not valid shell variable names. |
8934764e BB |
1339 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1340 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
bf9f3bac | 1341 | { (exit 1); exit 1; }; } |
8934764e BB |
1342 | ac_useropt_orig=$ac_useropt |
1343 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1344 | case $ac_user_opts in | |
1345 | *" | |
1346 | "with_$ac_useropt" | |
1347 | "*) ;; | |
1348 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1349 | ac_unrecognized_sep=', ';; | |
1350 | esac | |
1351 | eval with_$ac_useropt=no ;; | |
bf9f3bac BB |
1352 | |
1353 | --x) | |
1354 | # Obsolete; use --with-x. | |
1355 | with_x=yes ;; | |
1356 | ||
1357 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1358 | | --x-incl | --x-inc | --x-in | --x-i) | |
1359 | ac_prev=x_includes ;; | |
1360 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1361 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1362 | x_includes=$ac_optarg ;; | |
1363 | ||
1364 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1365 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1366 | ac_prev=x_libraries ;; | |
1367 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1368 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1369 | x_libraries=$ac_optarg ;; | |
1370 | ||
8934764e | 1371 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
bf9f3bac BB |
1372 | Try \`$0 --help' for more information." >&2 |
1373 | { (exit 1); exit 1; }; } | |
1374 | ;; | |
1375 | ||
1376 | *=*) | |
1377 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1378 | # Reject names that are not valid shell variable names. | |
1379 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
8934764e | 1380 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
bf9f3bac | 1381 | { (exit 1); exit 1; }; } |
8934764e | 1382 | eval $ac_envvar=\$ac_optarg |
bf9f3bac BB |
1383 | export $ac_envvar ;; |
1384 | ||
1385 | *) | |
1386 | # FIXME: should be removed in autoconf 3.0. | |
8934764e | 1387 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bf9f3bac | 1388 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8934764e | 1389 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bf9f3bac BB |
1390 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1391 | ;; | |
1392 | ||
1393 | esac | |
1394 | done | |
1395 | ||
1396 | if test -n "$ac_prev"; then | |
1397 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
8934764e | 1398 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
bf9f3bac BB |
1399 | { (exit 1); exit 1; }; } |
1400 | fi | |
1401 | ||
8934764e BB |
1402 | if test -n "$ac_unrecognized_opts"; then |
1403 | case $enable_option_checking in | |
1404 | no) ;; | |
1405 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1406 | { (exit 1); exit 1; }; } ;; | |
1407 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
bf9f3bac | 1408 | esac |
8934764e | 1409 | fi |
bf9f3bac | 1410 | |
8934764e BB |
1411 | # Check all directory arguments for consistency. |
1412 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1413 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1414 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1415 | libdir localedir mandir | |
bf9f3bac | 1416 | do |
8934764e BB |
1417 | eval ac_val=\$$ac_var |
1418 | # Remove trailing slashes. | |
bf9f3bac | 1419 | case $ac_val in |
8934764e BB |
1420 | */ ) |
1421 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1422 | eval $ac_var=\$ac_val;; | |
bf9f3bac | 1423 | esac |
8934764e BB |
1424 | # Be sure to have absolute directory names. |
1425 | case $ac_val in | |
1426 | [\\/$]* | ?:[\\/]* ) continue;; | |
1427 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1428 | esac | |
1429 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1430 | { (exit 1); exit 1; }; } | |
bf9f3bac BB |
1431 | done |
1432 | ||
1433 | # There might be people who depend on the old broken behavior: `$host' | |
1434 | # used to hold the argument of --host etc. | |
1435 | # FIXME: To remove some day. | |
1436 | build=$build_alias | |
1437 | host=$host_alias | |
1438 | target=$target_alias | |
1439 | ||
1440 | # FIXME: To remove some day. | |
1441 | if test "x$host_alias" != x; then | |
1442 | if test "x$build_alias" = x; then | |
1443 | cross_compiling=maybe | |
8934764e | 1444 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bf9f3bac BB |
1445 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1446 | elif test "x$build_alias" != "x$host_alias"; then | |
1447 | cross_compiling=yes | |
1448 | fi | |
1449 | fi | |
1450 | ||
1451 | ac_tool_prefix= | |
1452 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1453 | ||
1454 | test "$silent" = yes && exec 6>/dev/null | |
1455 | ||
1456 | ||
8934764e BB |
1457 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1458 | ac_ls_di=`ls -di .` && | |
1459 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1460 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 | |
1461 | { (exit 1); exit 1; }; } | |
1462 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1463 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1464 | { (exit 1); exit 1; }; } | |
1465 | ||
1466 | ||
bf9f3bac BB |
1467 | # Find the source files, if location was not specified. |
1468 | if test -z "$srcdir"; then | |
1469 | ac_srcdir_defaulted=yes | |
8934764e BB |
1470 | # Try the directory containing this script, then the parent directory. |
1471 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1472 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1473 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1474 | X"$as_myself" : 'X\(//\)$' \| \ | |
1475 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1476 | $as_echo X"$as_myself" | | |
1477 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1478 | s//\1/ | |
1479 | q | |
1480 | } | |
1481 | /^X\(\/\/\)[^/].*/{ | |
1482 | s//\1/ | |
1483 | q | |
1484 | } | |
1485 | /^X\(\/\/\)$/{ | |
1486 | s//\1/ | |
1487 | q | |
1488 | } | |
1489 | /^X\(\/\).*/{ | |
1490 | s//\1/ | |
1491 | q | |
1492 | } | |
1493 | s/.*/./; q'` | |
bf9f3bac | 1494 | srcdir=$ac_confdir |
8934764e | 1495 | if test ! -r "$srcdir/$ac_unique_file"; then |
bf9f3bac BB |
1496 | srcdir=.. |
1497 | fi | |
1498 | else | |
1499 | ac_srcdir_defaulted=no | |
1500 | fi | |
8934764e BB |
1501 | if test ! -r "$srcdir/$ac_unique_file"; then |
1502 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1503 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
bf9f3bac | 1504 | { (exit 1); exit 1; }; } |
bf9f3bac | 1505 | fi |
8934764e BB |
1506 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1507 | ac_abs_confdir=`( | |
1508 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | |
bf9f3bac | 1509 | { (exit 1); exit 1; }; } |
8934764e BB |
1510 | pwd)` |
1511 | # When building in place, set srcdir=. | |
1512 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1513 | srcdir=. | |
1514 | fi | |
1515 | # Remove unnecessary trailing slashes from srcdir. | |
1516 | # Double slashes in file names in object file debugging info | |
1517 | # mess up M-x gdb in Emacs. | |
1518 | case $srcdir in | |
1519 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1520 | esac | |
1521 | for ac_var in $ac_precious_vars; do | |
1522 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1523 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1524 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1525 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1526 | done | |
bf9f3bac BB |
1527 | |
1528 | # | |
1529 | # Report the --help message. | |
1530 | # | |
1531 | if test "$ac_init_help" = "long"; then | |
1532 | # Omit some internal or obsolete options to make the list less imposing. | |
1533 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1534 | cat <<_ACEOF | |
1535 | \`configure' configures this package to adapt to many kinds of systems. | |
1536 | ||
1537 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1538 | ||
1539 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1540 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1541 | ||
1542 | Defaults for the options are specified in brackets. | |
1543 | ||
1544 | Configuration: | |
1545 | -h, --help display this help and exit | |
1546 | --help=short display options specific to this package | |
1547 | --help=recursive display the short help of all the included packages | |
1548 | -V, --version display version information and exit | |
1549 | -q, --quiet, --silent do not print \`checking...' messages | |
1550 | --cache-file=FILE cache test results in FILE [disabled] | |
1551 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1552 | -n, --no-create do not create output files | |
1553 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1554 | ||
bf9f3bac BB |
1555 | Installation directories: |
1556 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8934764e | 1557 | [$ac_default_prefix] |
bf9f3bac | 1558 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8934764e | 1559 | [PREFIX] |
bf9f3bac BB |
1560 | |
1561 | By default, \`make install' will install all the files in | |
1562 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1563 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1564 | for instance \`--prefix=\$HOME'. | |
1565 | ||
1566 | For better control, use the options below. | |
1567 | ||
1568 | Fine tuning of the installation directories: | |
8934764e BB |
1569 | --bindir=DIR user executables [EPREFIX/bin] |
1570 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1571 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1572 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1573 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1574 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1575 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1576 | --includedir=DIR C header files [PREFIX/include] | |
1577 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1578 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1579 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1580 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1581 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1582 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1583 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1584 | --htmldir=DIR html documentation [DOCDIR] | |
1585 | --dvidir=DIR dvi documentation [DOCDIR] | |
1586 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1587 | --psdir=DIR ps documentation [DOCDIR] | |
bf9f3bac BB |
1588 | _ACEOF |
1589 | ||
1590 | cat <<\_ACEOF | |
1591 | ||
1592 | Program names: | |
1593 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1594 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1595 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1596 | ||
1597 | System types: | |
1598 | --build=BUILD configure for building on BUILD [guessed] | |
1599 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1600 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1601 | _ACEOF | |
1602 | fi | |
1603 | ||
1604 | if test -n "$ac_init_help"; then | |
1605 | ||
1606 | cat <<\_ACEOF | |
1607 | ||
1608 | Optional Features: | |
8934764e | 1609 | --disable-option-checking ignore unrecognized --enable/--with options |
bf9f3bac BB |
1610 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1611 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1612 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1613 | (and sometimes confusing) to the casual installer | |
8934764e BB |
1614 | --enable-silent-rules less verbose build output (undo: `make V=1') |
1615 | --disable-silent-rules verbose build output (undo: `make V=0') | |
bf9f3bac BB |
1616 | --disable-dependency-tracking speeds up one-time build |
1617 | --enable-dependency-tracking do not reject slow dependency extractors | |
8934764e BB |
1618 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1619 | --enable-static[=PKGS] build static libraries [default=yes] | |
bf9f3bac BB |
1620 | --enable-fast-install[=PKGS] |
1621 | optimize for fast installation [default=yes] | |
1622 | --disable-libtool-lock avoid locking (might break parallel builds) | |
0408008b ED |
1623 | --enable-linux-builtin Configure for builtin in-tree kernel modules |
1624 | [default=no] | |
055ffd98 | 1625 | --enable-debug Enable generic debug support [default=no] |
4b2220f0 | 1626 | --enable-debug-log Enable basic debug logging [default=yes] |
055ffd98 BB |
1627 | --enable-debug-kmem Enable basic kmem accounting [default=yes] |
1628 | --enable-debug-kmem-tracking | |
1629 | Enable detailed kmem tracking [default=no] | |
5e9b5d83 | 1630 | --enable-atomic-spinlocks |
d04c8a56 | 1631 | Atomic types use spinlocks [default=check] |
bf9f3bac BB |
1632 | |
1633 | Optional Packages: | |
1634 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1635 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
bf9f3bac BB |
1636 | --with-pic try to use only PIC/non-PIC objects [default=use |
1637 | both] | |
8934764e | 1638 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
c1541dfe | 1639 | --with-config=CONFIG Config file 'kernel|user|all|srpm' |
bf9f3bac BB |
1640 | --with-linux=PATH Path to kernel source |
1641 | --with-linux-obj=PATH Path to kernel build objects | |
1642 | ||
1643 | Some influential environment variables: | |
1644 | CC C compiler command | |
1645 | CFLAGS C compiler flags | |
1646 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1647 | nonstandard directory <lib dir> | |
8934764e BB |
1648 | LIBS libraries to pass to the linker, e.g. -l<library> |
1649 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1650 | you have headers in a nonstandard directory <include dir> | |
bf9f3bac | 1651 | CPP C preprocessor |
bf9f3bac BB |
1652 | |
1653 | Use these variables to override the choices made by `configure' or to help | |
1654 | it to find libraries and programs with nonstandard names/locations. | |
1655 | ||
1656 | _ACEOF | |
8934764e | 1657 | ac_status=$? |
bf9f3bac BB |
1658 | fi |
1659 | ||
1660 | if test "$ac_init_help" = "recursive"; then | |
1661 | # If there are subdirs, report their specific --help. | |
bf9f3bac | 1662 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8934764e BB |
1663 | test -d "$ac_dir" || |
1664 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1665 | continue | |
bf9f3bac BB |
1666 | ac_builddir=. |
1667 | ||
8934764e BB |
1668 | case "$ac_dir" in |
1669 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1670 | *) | |
1671 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1672 | # A ".." for each directory in $ac_dir_suffix. | |
1673 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1674 | case $ac_top_builddir_sub in | |
1675 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1676 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1677 | esac ;; | |
1678 | esac | |
1679 | ac_abs_top_builddir=$ac_pwd | |
1680 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1681 | # for backward compatibility: | |
1682 | ac_top_builddir=$ac_top_build_prefix | |
bf9f3bac BB |
1683 | |
1684 | case $srcdir in | |
8934764e | 1685 | .) # We are building in place. |
bf9f3bac | 1686 | ac_srcdir=. |
8934764e BB |
1687 | ac_top_srcdir=$ac_top_builddir_sub |
1688 | ac_abs_top_srcdir=$ac_pwd ;; | |
1689 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bf9f3bac | 1690 | ac_srcdir=$srcdir$ac_dir_suffix; |
8934764e BB |
1691 | ac_top_srcdir=$srcdir |
1692 | ac_abs_top_srcdir=$srcdir ;; | |
1693 | *) # Relative name. | |
1694 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1695 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1696 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bf9f3bac | 1697 | esac |
8934764e BB |
1698 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1699 | ||
1700 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1701 | # Check for guested configure. | |
1702 | if test -f "$ac_srcdir/configure.gnu"; then | |
1703 | echo && | |
1704 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1705 | elif test -f "$ac_srcdir/configure"; then | |
1706 | echo && | |
1707 | $SHELL "$ac_srcdir/configure" --help=recursive | |
bf9f3bac | 1708 | else |
8934764e BB |
1709 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1710 | fi || ac_status=$? | |
1711 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bf9f3bac BB |
1712 | done |
1713 | fi | |
1714 | ||
8934764e | 1715 | test -n "$ac_init_help" && exit $ac_status |
bf9f3bac BB |
1716 | if $ac_init_version; then |
1717 | cat <<\_ACEOF | |
8934764e BB |
1718 | configure |
1719 | generated by GNU Autoconf 2.63 | |
bf9f3bac | 1720 | |
8934764e BB |
1721 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1722 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
bf9f3bac BB |
1723 | This configure script is free software; the Free Software Foundation |
1724 | gives unlimited permission to copy, distribute and modify it. | |
1725 | _ACEOF | |
8934764e | 1726 | exit |
bf9f3bac | 1727 | fi |
8934764e | 1728 | cat >config.log <<_ACEOF |
bf9f3bac BB |
1729 | This file contains any messages produced by compilers while |
1730 | running configure, to aid debugging if configure makes a mistake. | |
1731 | ||
1732 | It was created by $as_me, which was | |
8934764e | 1733 | generated by GNU Autoconf 2.63. Invocation command line was |
bf9f3bac BB |
1734 | |
1735 | $ $0 $@ | |
1736 | ||
1737 | _ACEOF | |
8934764e | 1738 | exec 5>>config.log |
bf9f3bac BB |
1739 | { |
1740 | cat <<_ASUNAME | |
1741 | ## --------- ## | |
1742 | ## Platform. ## | |
1743 | ## --------- ## | |
1744 | ||
1745 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1746 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1747 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1748 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1749 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1750 | ||
1751 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1752 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1753 | ||
1754 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1755 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1756 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
8934764e | 1757 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bf9f3bac BB |
1758 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1759 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1760 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1761 | ||
1762 | _ASUNAME | |
1763 | ||
1764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1765 | for as_dir in $PATH | |
1766 | do | |
1767 | IFS=$as_save_IFS | |
1768 | test -z "$as_dir" && as_dir=. | |
8934764e | 1769 | $as_echo "PATH: $as_dir" |
bf9f3bac | 1770 | done |
8934764e | 1771 | IFS=$as_save_IFS |
bf9f3bac BB |
1772 | |
1773 | } >&5 | |
1774 | ||
1775 | cat >&5 <<_ACEOF | |
1776 | ||
1777 | ||
1778 | ## ----------- ## | |
1779 | ## Core tests. ## | |
1780 | ## ----------- ## | |
1781 | ||
1782 | _ACEOF | |
1783 | ||
1784 | ||
1785 | # Keep a trace of the command line. | |
1786 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1787 | # Strip out --silent because we don't want to record it for future runs. | |
1788 | # Also quote any args containing shell meta-characters. | |
1789 | # Make two passes to allow for proper duplicate-argument suppression. | |
1790 | ac_configure_args= | |
1791 | ac_configure_args0= | |
1792 | ac_configure_args1= | |
bf9f3bac BB |
1793 | ac_must_keep_next=false |
1794 | for ac_pass in 1 2 | |
1795 | do | |
1796 | for ac_arg | |
1797 | do | |
1798 | case $ac_arg in | |
1799 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1800 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1801 | | -silent | --silent | --silen | --sile | --sil) | |
1802 | continue ;; | |
8934764e BB |
1803 | *\'*) |
1804 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bf9f3bac BB |
1805 | esac |
1806 | case $ac_pass in | |
1807 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1808 | 2) | |
1809 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1810 | if test $ac_must_keep_next = true; then | |
1811 | ac_must_keep_next=false # Got value, back to normal. | |
1812 | else | |
1813 | case $ac_arg in | |
1814 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1815 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1816 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1817 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1818 | case "$ac_configure_args0 " in | |
1819 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1820 | esac | |
1821 | ;; | |
1822 | -* ) ac_must_keep_next=true ;; | |
1823 | esac | |
1824 | fi | |
8934764e | 1825 | ac_configure_args="$ac_configure_args '$ac_arg'" |
bf9f3bac BB |
1826 | ;; |
1827 | esac | |
1828 | done | |
1829 | done | |
1830 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1831 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1832 | ||
1833 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1834 | # config.log. We remove comments because anyway the quotes in there | |
1835 | # would cause problems or look ugly. | |
8934764e BB |
1836 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1837 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
bf9f3bac BB |
1838 | trap 'exit_status=$? |
1839 | # Save into config.log some information that might help in debugging. | |
1840 | { | |
1841 | echo | |
1842 | ||
1843 | cat <<\_ASBOX | |
1844 | ## ---------------- ## | |
1845 | ## Cache variables. ## | |
1846 | ## ---------------- ## | |
1847 | _ASBOX | |
1848 | echo | |
1849 | # The following way of writing the cache mishandles newlines in values, | |
8934764e BB |
1850 | ( |
1851 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1852 | eval ac_val=\$$ac_var | |
1853 | case $ac_val in #( | |
1854 | *${as_nl}*) | |
1855 | case $ac_var in #( | |
1856 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
1857 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1858 | esac | |
1859 | case $ac_var in #( | |
1860 | _ | IFS | as_nl) ;; #( | |
1861 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1862 | *) $as_unset $ac_var ;; | |
1863 | esac ;; | |
1864 | esac | |
1865 | done | |
bf9f3bac | 1866 | (set) 2>&1 | |
8934764e BB |
1867 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1868 | *${as_nl}ac_space=\ *) | |
bf9f3bac | 1869 | sed -n \ |
8934764e BB |
1870 | "s/'\''/'\''\\\\'\'''\''/g; |
1871 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1872 | ;; #( | |
bf9f3bac | 1873 | *) |
8934764e | 1874 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bf9f3bac | 1875 | ;; |
8934764e BB |
1876 | esac | |
1877 | sort | |
1878 | ) | |
bf9f3bac BB |
1879 | echo |
1880 | ||
1881 | cat <<\_ASBOX | |
1882 | ## ----------------- ## | |
1883 | ## Output variables. ## | |
1884 | ## ----------------- ## | |
1885 | _ASBOX | |
1886 | echo | |
1887 | for ac_var in $ac_subst_vars | |
1888 | do | |
8934764e BB |
1889 | eval ac_val=\$$ac_var |
1890 | case $ac_val in | |
1891 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1892 | esac | |
1893 | $as_echo "$ac_var='\''$ac_val'\''" | |
bf9f3bac BB |
1894 | done | sort |
1895 | echo | |
1896 | ||
1897 | if test -n "$ac_subst_files"; then | |
1898 | cat <<\_ASBOX | |
8934764e BB |
1899 | ## ------------------- ## |
1900 | ## File substitutions. ## | |
1901 | ## ------------------- ## | |
bf9f3bac BB |
1902 | _ASBOX |
1903 | echo | |
1904 | for ac_var in $ac_subst_files | |
1905 | do | |
8934764e BB |
1906 | eval ac_val=\$$ac_var |
1907 | case $ac_val in | |
1908 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1909 | esac | |
1910 | $as_echo "$ac_var='\''$ac_val'\''" | |
bf9f3bac BB |
1911 | done | sort |
1912 | echo | |
1913 | fi | |
1914 | ||
1915 | if test -s confdefs.h; then | |
1916 | cat <<\_ASBOX | |
1917 | ## ----------- ## | |
1918 | ## confdefs.h. ## | |
1919 | ## ----------- ## | |
1920 | _ASBOX | |
1921 | echo | |
8934764e | 1922 | cat confdefs.h |
bf9f3bac BB |
1923 | echo |
1924 | fi | |
1925 | test "$ac_signal" != 0 && | |
8934764e BB |
1926 | $as_echo "$as_me: caught signal $ac_signal" |
1927 | $as_echo "$as_me: exit $exit_status" | |
bf9f3bac | 1928 | } >&5 |
8934764e BB |
1929 | rm -f core *.core core.conftest.* && |
1930 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
bf9f3bac | 1931 | exit $exit_status |
8934764e | 1932 | ' 0 |
bf9f3bac BB |
1933 | for ac_signal in 1 2 13 15; do |
1934 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1935 | done | |
1936 | ac_signal=0 | |
1937 | ||
1938 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
8934764e | 1939 | rm -f -r conftest* confdefs.h |
bf9f3bac BB |
1940 | |
1941 | # Predefined preprocessor variables. | |
1942 | ||
1943 | cat >>confdefs.h <<_ACEOF | |
1944 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1945 | _ACEOF | |
1946 | ||
1947 | ||
1948 | cat >>confdefs.h <<_ACEOF | |
1949 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1950 | _ACEOF | |
1951 | ||
1952 | ||
1953 | cat >>confdefs.h <<_ACEOF | |
1954 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1955 | _ACEOF | |
1956 | ||
1957 | ||
1958 | cat >>confdefs.h <<_ACEOF | |
1959 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1960 | _ACEOF | |
1961 | ||
1962 | ||
1963 | cat >>confdefs.h <<_ACEOF | |
1964 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1965 | _ACEOF | |
1966 | ||
1967 | ||
1968 | # Let the site file select an alternate cache file if it wants to. | |
8934764e BB |
1969 | # Prefer an explicitly selected file to automatically selected ones. |
1970 | ac_site_file1=NONE | |
1971 | ac_site_file2=NONE | |
1972 | if test -n "$CONFIG_SITE"; then | |
1973 | ac_site_file1=$CONFIG_SITE | |
1974 | elif test "x$prefix" != xNONE; then | |
1975 | ac_site_file1=$prefix/share/config.site | |
1976 | ac_site_file2=$prefix/etc/config.site | |
1977 | else | |
1978 | ac_site_file1=$ac_default_prefix/share/config.site | |
1979 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1980 | fi | |
1981 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1982 | do | |
1983 | test "x$ac_site_file" = xNONE && continue | |
bf9f3bac | 1984 | if test -r "$ac_site_file"; then |
8934764e BB |
1985 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1986 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
bf9f3bac BB |
1987 | sed 's/^/| /' "$ac_site_file" >&5 |
1988 | . "$ac_site_file" | |
1989 | fi | |
1990 | done | |
1991 | ||
1992 | if test -r "$cache_file"; then | |
1993 | # Some versions of bash will fail to source /dev/null (special | |
1994 | # files actually), so we avoid doing that. | |
1995 | if test -f "$cache_file"; then | |
8934764e BB |
1996 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1997 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
bf9f3bac | 1998 | case $cache_file in |
8934764e BB |
1999 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2000 | *) . "./$cache_file";; | |
bf9f3bac BB |
2001 | esac |
2002 | fi | |
2003 | else | |
8934764e BB |
2004 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2005 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
bf9f3bac BB |
2006 | >$cache_file |
2007 | fi | |
2008 | ||
2009 | # Check that the precious variables saved in the cache have kept the same | |
2010 | # value. | |
2011 | ac_cache_corrupted=false | |
8934764e | 2012 | for ac_var in $ac_precious_vars; do |
bf9f3bac BB |
2013 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2014 | eval ac_new_set=\$ac_env_${ac_var}_set | |
8934764e BB |
2015 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2016 | eval ac_new_val=\$ac_env_${ac_var}_value | |
bf9f3bac BB |
2017 | case $ac_old_set,$ac_new_set in |
2018 | set,) | |
8934764e BB |
2019 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2020 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
bf9f3bac BB |
2021 | ac_cache_corrupted=: ;; |
2022 | ,set) | |
8934764e BB |
2023 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2024 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
bf9f3bac BB |
2025 | ac_cache_corrupted=: ;; |
2026 | ,);; | |
2027 | *) | |
2028 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8934764e BB |
2029 | # differences in whitespace do not lead to failure. |
2030 | ac_old_val_w=`echo x $ac_old_val` | |
2031 | ac_new_val_w=`echo x $ac_new_val` | |
2032 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2033 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2034 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2035 | ac_cache_corrupted=: | |
2036 | else | |
2037 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2038 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2039 | eval $ac_var=\$ac_old_val | |
2040 | fi | |
2041 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2042 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2043 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2044 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
bf9f3bac BB |
2045 | fi;; |
2046 | esac | |
2047 | # Pass precious variables to config.status. | |
2048 | if test "$ac_new_set" = set; then | |
2049 | case $ac_new_val in | |
8934764e | 2050 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bf9f3bac BB |
2051 | *) ac_arg=$ac_var=$ac_new_val ;; |
2052 | esac | |
2053 | case " $ac_configure_args " in | |
2054 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2055 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2056 | esac | |
2057 | fi | |
2058 | done | |
2059 | if $ac_cache_corrupted; then | |
8934764e BB |
2060 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2061 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2062 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2063 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2064 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2065 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
bf9f3bac BB |
2066 | { (exit 1); exit 1; }; } |
2067 | fi | |
2068 | ||
bf9f3bac BB |
2069 | |
2070 | ||
2071 | ||
2072 | ||
2073 | ||
2074 | ||
2075 | ||
2076 | ||
2077 | ||
2078 | ||
2079 | ||
2080 | ||
2081 | ||
2082 | ||
2083 | ||
2084 | ||
8934764e BB |
2085 | ac_ext=c |
2086 | ac_cpp='$CPP $CPPFLAGS' | |
2087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bf9f3bac BB |
2090 | |
2091 | ||
0c617c9a BB |
2092 | ac_ext=c |
2093 | ac_cpp='$CPP $CPPFLAGS' | |
2094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2097 | ||
2098 | ||
8934764e BB |
2099 | { $as_echo "$as_me:$LINENO: checking metadata" >&5 |
2100 | $as_echo_n "checking metadata... " >&6; } | |
dd529a30 BB |
2101 | |
2102 | META="$srcdir/META" | |
2103 | _spl_ac_meta_got_file=no | |
2104 | if test -f "$META"; then | |
2105 | _spl_ac_meta_got_file=yes | |
2106 | ||
abc3ca14 | 2107 | SPL_META_NAME=`perl -n\ |
dd529a30 BB |
2108 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2109 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2110 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2111 | -e "s/^\s+//;"\ | |
2112 | -e "s/\s+$//;"\ | |
2113 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2114 | -e "\\$val=\\$_;"\ | |
2115 | -e "END { print \\$val if defined \\$val; }"\ | |
2116 | '(?:NAME|PROJECT|PACKAGE)' $META`; | |
abc3ca14 | 2117 | if test -n "$SPL_META_NAME"; then |
dd529a30 BB |
2118 | |
2119 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2120 | #define SPL_META_NAME "$SPL_META_NAME" |
dd529a30 BB |
2121 | _ACEOF |
2122 | ||
2123 | ||
2124 | fi | |
2125 | ||
abc3ca14 | 2126 | SPL_META_VERSION=`perl -n\ |
dd529a30 BB |
2127 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2128 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2129 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2130 | -e "s/^\s+//;"\ | |
2131 | -e "s/\s+$//;"\ | |
2132 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2133 | -e "\\$val=\\$_;"\ | |
2134 | -e "END { print \\$val if defined \\$val; }"\ | |
2135 | 'VERSION' $META`; | |
abc3ca14 | 2136 | if test -n "$SPL_META_VERSION"; then |
dd529a30 BB |
2137 | |
2138 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2139 | #define SPL_META_VERSION "$SPL_META_VERSION" |
dd529a30 BB |
2140 | _ACEOF |
2141 | ||
2142 | ||
2143 | fi | |
2144 | ||
abc3ca14 | 2145 | SPL_META_RELEASE=`perl -n\ |
dd529a30 BB |
2146 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2147 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2148 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2149 | -e "s/^\s+//;"\ | |
2150 | -e "s/\s+$//;"\ | |
2151 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2152 | -e "\\$val=\\$_;"\ | |
2153 | -e "END { print \\$val if defined \\$val; }"\ | |
2154 | 'RELEASE' $META`; | |
abc3ca14 | 2155 | if test -n "$SPL_META_RELEASE"; then |
dd529a30 BB |
2156 | |
2157 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2158 | #define SPL_META_RELEASE "$SPL_META_RELEASE" |
dd529a30 BB |
2159 | _ACEOF |
2160 | ||
2161 | ||
2162 | fi | |
2163 | ||
abc3ca14 | 2164 | if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then |
72e7de60 | 2165 | SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION" |
abc3ca14 | 2166 | test -n "$SPL_META_RELEASE" && |
72e7de60 | 2167 | SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE" |
dd529a30 BB |
2168 | |
2169 | cat >>confdefs.h <<_ACEOF | |
72e7de60 | 2170 | #define SPL_META_ALIAS "$SPL_META_ALIAS" |
dd529a30 BB |
2171 | _ACEOF |
2172 | ||
2173 | ||
2174 | fi | |
2175 | ||
abc3ca14 | 2176 | SPL_META_DATA=`perl -n\ |
dd529a30 BB |
2177 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2178 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2179 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2180 | -e "s/^\s+//;"\ | |
2181 | -e "s/\s+$//;"\ | |
2182 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2183 | -e "\\$val=\\$_;"\ | |
2184 | -e "END { print \\$val if defined \\$val; }"\ | |
2185 | 'DATE' $META`; | |
abc3ca14 | 2186 | if test -n "$SPL_META_DATA"; then |
dd529a30 BB |
2187 | |
2188 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2189 | #define SPL_META_DATA "$SPL_META_DATA" |
dd529a30 BB |
2190 | _ACEOF |
2191 | ||
2192 | ||
2193 | fi | |
2194 | ||
abc3ca14 | 2195 | SPL_META_AUTHOR=`perl -n\ |
dd529a30 BB |
2196 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2197 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2198 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2199 | -e "s/^\s+//;"\ | |
2200 | -e "s/\s+$//;"\ | |
2201 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2202 | -e "\\$val=\\$_;"\ | |
2203 | -e "END { print \\$val if defined \\$val; }"\ | |
2204 | 'AUTHOR' $META`; | |
abc3ca14 | 2205 | if test -n "$SPL_META_AUTHOR"; then |
dd529a30 BB |
2206 | |
2207 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2208 | #define SPL_META_AUTHOR "$SPL_META_AUTHOR" |
dd529a30 BB |
2209 | _ACEOF |
2210 | ||
2211 | ||
2212 | fi | |
2213 | ||
2214 | ||
abc3ca14 | 2215 | SPL_META_LT_CURRENT=`perl -n\ |
dd529a30 BB |
2216 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2217 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2218 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2219 | -e "s/^\s+//;"\ | |
2220 | -e "s/\s+$//;"\ | |
2221 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2222 | -e "\\$val=\\$_;"\ | |
2223 | -e "END { print \\$val if defined \\$val; }"\ | |
2224 | 'LT_CURRENT' $META`; | |
abc3ca14 | 2225 | SPL_META_LT_REVISION=`perl -n\ |
dd529a30 BB |
2226 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2227 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2228 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2229 | -e "s/^\s+//;"\ | |
2230 | -e "s/\s+$//;"\ | |
2231 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2232 | -e "\\$val=\\$_;"\ | |
2233 | -e "END { print \\$val if defined \\$val; }"\ | |
2234 | 'LT_REVISION' $META`; | |
abc3ca14 | 2235 | SPL_META_LT_AGE=`perl -n\ |
dd529a30 BB |
2236 | -e "BEGIN { \\$key=shift @ARGV; }"\ |
2237 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2238 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2239 | -e "s/^\s+//;"\ | |
2240 | -e "s/\s+$//;"\ | |
2241 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2242 | -e "\\$val=\\$_;"\ | |
2243 | -e "END { print \\$val if defined \\$val; }"\ | |
2244 | 'LT_AGE' $META`; | |
abc3ca14 BB |
2245 | if test -n "$SPL_META_LT_CURRENT" \ |
2246 | -o -n "$SPL_META_LT_REVISION" \ | |
2247 | -o -n "$SPL_META_LT_AGE"; then | |
2248 | test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0" | |
2249 | test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0" | |
2250 | test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0" | |
dd529a30 BB |
2251 | |
2252 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2253 | #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT" |
dd529a30 BB |
2254 | _ACEOF |
2255 | ||
2256 | ||
2257 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2258 | #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION" |
dd529a30 BB |
2259 | _ACEOF |
2260 | ||
2261 | ||
2262 | cat >>confdefs.h <<_ACEOF | |
abc3ca14 | 2263 | #define SPL_META_LT_AGE "$SPL_META_LT_AGE" |
dd529a30 BB |
2264 | _ACEOF |
2265 | ||
2266 | ||
2267 | ||
2268 | ||
2269 | fi | |
2270 | fi | |
2271 | ||
8934764e BB |
2272 | { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5 |
2273 | $as_echo "$_spl_ac_meta_got_file" >&6; } | |
dd529a30 BB |
2274 | |
2275 | ||
bf9f3bac | 2276 | ac_aux_dir= |
8934764e BB |
2277 | for ac_dir in config "$srcdir"/config; do |
2278 | if test -f "$ac_dir/install-sh"; then | |
bf9f3bac BB |
2279 | ac_aux_dir=$ac_dir |
2280 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2281 | break | |
8934764e | 2282 | elif test -f "$ac_dir/install.sh"; then |
bf9f3bac BB |
2283 | ac_aux_dir=$ac_dir |
2284 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2285 | break | |
8934764e | 2286 | elif test -f "$ac_dir/shtool"; then |
bf9f3bac BB |
2287 | ac_aux_dir=$ac_dir |
2288 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2289 | break | |
2290 | fi | |
2291 | done | |
2292 | if test -z "$ac_aux_dir"; then | |
8934764e BB |
2293 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
2294 | $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} | |
bf9f3bac BB |
2295 | { (exit 1); exit 1; }; } |
2296 | fi | |
8934764e BB |
2297 | |
2298 | # These three variables are undocumented and unsupported, | |
2299 | # and are intended to be withdrawn in a future Autoconf release. | |
2300 | # They can cause serious problems if a builder's source tree is in a directory | |
2301 | # whose full name contains unusual characters. | |
2302 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2303 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2304 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2305 | ||
bf9f3bac BB |
2306 | |
2307 | # Make sure we can run config.sub. | |
8934764e BB |
2308 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2309 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2310 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
bf9f3bac BB |
2311 | { (exit 1); exit 1; }; } |
2312 | ||
8934764e BB |
2313 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2314 | $as_echo_n "checking build system type... " >&6; } | |
bf9f3bac | 2315 | if test "${ac_cv_build+set}" = set; then |
8934764e BB |
2316 | $as_echo_n "(cached) " >&6 |
2317 | else | |
2318 | ac_build_alias=$build_alias | |
2319 | test "x$ac_build_alias" = x && | |
2320 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2321 | test "x$ac_build_alias" = x && | |
2322 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2323 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
bf9f3bac | 2324 | { (exit 1); exit 1; }; } |
8934764e BB |
2325 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2326 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2327 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
bf9f3bac BB |
2328 | { (exit 1); exit 1; }; } |
2329 | ||
2330 | fi | |
8934764e BB |
2331 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2332 | $as_echo "$ac_cv_build" >&6; } | |
2333 | case $ac_cv_build in | |
2334 | *-*-*) ;; | |
2335 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2336 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
2337 | { (exit 1); exit 1; }; };; | |
2338 | esac | |
bf9f3bac | 2339 | build=$ac_cv_build |
8934764e BB |
2340 | ac_save_IFS=$IFS; IFS='-' |
2341 | set x $ac_cv_build | |
2342 | shift | |
2343 | build_cpu=$1 | |
2344 | build_vendor=$2 | |
2345 | shift; shift | |
2346 | # Remember, the first character of IFS is used to create $*, | |
2347 | # except with old shells: | |
2348 | build_os=$* | |
2349 | IFS=$ac_save_IFS | |
2350 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2351 | ||
2352 | ||
2353 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 | |
2354 | $as_echo_n "checking host system type... " >&6; } | |
bf9f3bac | 2355 | if test "${ac_cv_host+set}" = set; then |
8934764e BB |
2356 | $as_echo_n "(cached) " >&6 |
2357 | else | |
2358 | if test "x$host_alias" = x; then | |
2359 | ac_cv_host=$ac_cv_build | |
2360 | else | |
2361 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2362 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2363 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
bf9f3bac | 2364 | { (exit 1); exit 1; }; } |
8934764e | 2365 | fi |
bf9f3bac BB |
2366 | |
2367 | fi | |
8934764e BB |
2368 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2369 | $as_echo "$ac_cv_host" >&6; } | |
2370 | case $ac_cv_host in | |
2371 | *-*-*) ;; | |
2372 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2373 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
2374 | { (exit 1); exit 1; }; };; | |
2375 | esac | |
bf9f3bac | 2376 | host=$ac_cv_host |
8934764e BB |
2377 | ac_save_IFS=$IFS; IFS='-' |
2378 | set x $ac_cv_host | |
2379 | shift | |
2380 | host_cpu=$1 | |
2381 | host_vendor=$2 | |
2382 | shift; shift | |
2383 | # Remember, the first character of IFS is used to create $*, | |
2384 | # except with old shells: | |
2385 | host_os=$* | |
2386 | IFS=$ac_save_IFS | |
2387 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2388 | ||
2389 | ||
2390 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 | |
2391 | $as_echo_n "checking target system type... " >&6; } | |
bf9f3bac | 2392 | if test "${ac_cv_target+set}" = set; then |
8934764e BB |
2393 | $as_echo_n "(cached) " >&6 |
2394 | else | |
2395 | if test "x$target_alias" = x; then | |
2396 | ac_cv_target=$ac_cv_host | |
2397 | else | |
2398 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2399 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
2400 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
bf9f3bac | 2401 | { (exit 1); exit 1; }; } |
8934764e | 2402 | fi |
bf9f3bac BB |
2403 | |
2404 | fi | |
8934764e BB |
2405 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2406 | $as_echo "$ac_cv_target" >&6; } | |
2407 | case $ac_cv_target in | |
2408 | *-*-*) ;; | |
2409 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
2410 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
2411 | { (exit 1); exit 1; }; };; | |
2412 | esac | |
bf9f3bac | 2413 | target=$ac_cv_target |
8934764e BB |
2414 | ac_save_IFS=$IFS; IFS='-' |
2415 | set x $ac_cv_target | |
2416 | shift | |
2417 | target_cpu=$1 | |
2418 | target_vendor=$2 | |
2419 | shift; shift | |
2420 | # Remember, the first character of IFS is used to create $*, | |
2421 | # except with old shells: | |
2422 | target_os=$* | |
2423 | IFS=$ac_save_IFS | |
2424 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
bf9f3bac BB |
2425 | |
2426 | ||
2427 | # The aliases save the names the user supplied, while $host etc. | |
2428 | # will get canonicalized. | |
2429 | test -n "$target_alias" && | |
2430 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2431 | NONENONEs,x,x, && | |
2432 | program_prefix=${target_alias}- | |
8934764e BB |
2433 | |
2434 | { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2435 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2436 | # Check whether --enable-maintainer-mode was given. | |
16b719f0 | 2437 | if test "${enable_maintainer_mode+set}" = set; then |
8934764e | 2438 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
16b719f0 BB |
2439 | else |
2440 | USE_MAINTAINER_MODE=no | |
8934764e | 2441 | fi |
16b719f0 | 2442 | |
8934764e BB |
2443 | { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
2444 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2445 | if test $USE_MAINTAINER_MODE = yes; then | |
16b719f0 BB |
2446 | MAINTAINER_MODE_TRUE= |
2447 | MAINTAINER_MODE_FALSE='#' | |
2448 | else | |
2449 | MAINTAINER_MODE_TRUE='#' | |
2450 | MAINTAINER_MODE_FALSE= | |
2451 | fi | |
2452 | ||
2453 | MAINT=$MAINTAINER_MODE_TRUE | |
2454 | ||
2455 | ||
8934764e BB |
2456 | # Check whether --enable-silent-rules was given. |
2457 | if test "${enable_silent_rules+set}" = set; then | |
2458 | enableval=$enable_silent_rules; | |
2459 | fi | |
2460 | ||
2461 | case $enable_silent_rules in | |
2462 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2463 | no) AM_DEFAULT_VERBOSITY=1;; | |
2464 | *) AM_DEFAULT_VERBOSITY=1;; | |
2465 | esac | |
2466 | AM_BACKSLASH='\' | |
2467 | ||
2468 | am__api_version='1.11' | |
2469 | ||
bf9f3bac BB |
2470 | # Find a good install program. We prefer a C program (faster), |
2471 | # so one script is as good as another. But avoid the broken or | |
2472 | # incompatible versions: | |
2473 | # SysV /etc/install, /usr/sbin/install | |
2474 | # SunOS /usr/etc/install | |
2475 | # IRIX /sbin/install | |
2476 | # AIX /bin/install | |
2477 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2478 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2479 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2480 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2481 | # OS/2's system install, which has a completely different semantic | |
2482 | # ./install, which can be erroneously created by make from ./install.sh. | |
8934764e BB |
2483 | # Reject install programs that cannot install multiple files. |
2484 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2485 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
bf9f3bac BB |
2486 | if test -z "$INSTALL"; then |
2487 | if test "${ac_cv_path_install+set}" = set; then | |
8934764e | 2488 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
2489 | else |
2490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2491 | for as_dir in $PATH | |
2492 | do | |
2493 | IFS=$as_save_IFS | |
2494 | test -z "$as_dir" && as_dir=. | |
2495 | # Account for people who put trailing slashes in PATH elements. | |
2496 | case $as_dir/ in | |
2497 | ./ | .// | /cC/* | \ | |
2498 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2499 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2500 | /usr/ucb/* ) ;; | |
2501 | *) | |
2502 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2503 | # Don't use installbsd from OSF since it installs stuff as root | |
2504 | # by default. | |
2505 | for ac_prog in ginstall scoinst install; do | |
2506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 2507 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bf9f3bac BB |
2508 | if test $ac_prog = install && |
2509 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2510 | # AIX install. It has an incompatible calling convention. | |
2511 | : | |
2512 | elif test $ac_prog = install && | |
2513 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2514 | # program-specific install script used by HP pwplus--don't use. | |
2515 | : | |
2516 | else | |
8934764e BB |
2517 | rm -rf conftest.one conftest.two conftest.dir |
2518 | echo one > conftest.one | |
2519 | echo two > conftest.two | |
2520 | mkdir conftest.dir | |
2521 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2522 | test -s conftest.one && test -s conftest.two && | |
2523 | test -s conftest.dir/conftest.one && | |
2524 | test -s conftest.dir/conftest.two | |
2525 | then | |
2526 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2527 | break 3 | |
2528 | fi | |
bf9f3bac BB |
2529 | fi |
2530 | fi | |
2531 | done | |
2532 | done | |
2533 | ;; | |
2534 | esac | |
8934764e | 2535 | |
bf9f3bac | 2536 | done |
8934764e | 2537 | IFS=$as_save_IFS |
bf9f3bac | 2538 | |
8934764e | 2539 | rm -rf conftest.one conftest.two conftest.dir |
bf9f3bac BB |
2540 | |
2541 | fi | |
2542 | if test "${ac_cv_path_install+set}" = set; then | |
2543 | INSTALL=$ac_cv_path_install | |
2544 | else | |
8934764e BB |
2545 | # As a last resort, use the slow shell script. Don't cache a |
2546 | # value for INSTALL within a source directory, because that will | |
bf9f3bac | 2547 | # break other packages using the cache if that directory is |
8934764e | 2548 | # removed, or if the value is a relative name. |
bf9f3bac BB |
2549 | INSTALL=$ac_install_sh |
2550 | fi | |
2551 | fi | |
8934764e BB |
2552 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2553 | $as_echo "$INSTALL" >&6; } | |
bf9f3bac BB |
2554 | |
2555 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2556 | # It thinks the first close brace ends the variable substitution. | |
2557 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2558 | ||
2559 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2560 | ||
2561 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2562 | ||
8934764e BB |
2563 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2564 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
bf9f3bac BB |
2565 | # Just in case |
2566 | sleep 1 | |
2567 | echo timestamp > conftest.file | |
8934764e BB |
2568 | # Reject unsafe characters in $srcdir or the absolute working directory |
2569 | # name. Accept space and tab only in the latter. | |
2570 | am_lf=' | |
2571 | ' | |
2572 | case `pwd` in | |
2573 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2574 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 | |
2575 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} | |
2576 | { (exit 1); exit 1; }; };; | |
2577 | esac | |
2578 | case $srcdir in | |
2579 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2580 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 | |
2581 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} | |
2582 | { (exit 1); exit 1; }; };; | |
2583 | esac | |
2584 | ||
bf9f3bac BB |
2585 | # Do `set' in a subshell so we don't clobber the current shell's |
2586 | # arguments. Must try -L first in case configure is actually a | |
2587 | # symlink; some systems play weird games with the mod time of symlinks | |
2588 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2589 | # directory). | |
2590 | if ( | |
8934764e | 2591 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bf9f3bac BB |
2592 | if test "$*" = "X"; then |
2593 | # -L didn't work. | |
8934764e | 2594 | set X `ls -t "$srcdir/configure" conftest.file` |
bf9f3bac BB |
2595 | fi |
2596 | rm -f conftest.file | |
2597 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2598 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2599 | ||
2600 | # If neither matched, then we have a broken ls. This can happen | |
2601 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2602 | # broken ls alias from the environment. This has actually | |
2603 | # happened. Such a system could not be considered "sane". | |
8934764e | 2604 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
bf9f3bac | 2605 | alias in your environment" >&5 |
8934764e | 2606 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
bf9f3bac BB |
2607 | alias in your environment" >&2;} |
2608 | { (exit 1); exit 1; }; } | |
2609 | fi | |
2610 | ||
2611 | test "$2" = conftest.file | |
2612 | ) | |
2613 | then | |
2614 | # Ok. | |
2615 | : | |
2616 | else | |
8934764e | 2617 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
bf9f3bac | 2618 | Check your system clock" >&5 |
8934764e | 2619 | $as_echo "$as_me: error: newly created file is older than distributed files! |
bf9f3bac BB |
2620 | Check your system clock" >&2;} |
2621 | { (exit 1); exit 1; }; } | |
2622 | fi | |
8934764e BB |
2623 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2624 | $as_echo "yes" >&6; } | |
bf9f3bac | 2625 | test "$program_prefix" != NONE && |
8934764e | 2626 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bf9f3bac BB |
2627 | # Use a double $ so make ignores it. |
2628 | test "$program_suffix" != NONE && | |
8934764e BB |
2629 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2630 | # Double any \ or $. | |
bf9f3bac | 2631 | # By default was `s,x,x', remove it if useless. |
8934764e BB |
2632 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2633 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
bf9f3bac BB |
2634 | |
2635 | # expand $ac_aux_dir to an absolute path | |
2636 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2637 | ||
8934764e BB |
2638 | if test x"${MISSING+set}" != xset; then |
2639 | case $am_aux_dir in | |
2640 | *\ * | *\ *) | |
2641 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2642 | *) | |
2643 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2644 | esac | |
2645 | fi | |
bf9f3bac BB |
2646 | # Use eval to expand $SHELL |
2647 | if eval "$MISSING --run true"; then | |
2648 | am_missing_run="$MISSING --run " | |
2649 | else | |
2650 | am_missing_run= | |
8934764e BB |
2651 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2652 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2653 | fi | |
2654 | ||
2655 | if test x"${install_sh}" != xset; then | |
2656 | case $am_aux_dir in | |
2657 | *\ * | *\ *) | |
2658 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2659 | *) | |
2660 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2661 | esac | |
2662 | fi | |
2663 | ||
2664 | # Installed binaries are usually stripped using `strip' when the user | |
2665 | # run `make install-strip'. However `strip' might not be the right | |
2666 | # tool to use in cross-compilation environments, therefore Automake | |
2667 | # will honor the `STRIP' environment variable to overrule this program. | |
2668 | if test "$cross_compiling" != no; then | |
2669 | if test -n "$ac_tool_prefix"; then | |
2670 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2671 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2672 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2673 | $as_echo_n "checking for $ac_word... " >&6; } | |
2674 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2675 | $as_echo_n "(cached) " >&6 | |
2676 | else | |
2677 | if test -n "$STRIP"; then | |
2678 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2679 | else | |
2680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2681 | for as_dir in $PATH | |
2682 | do | |
2683 | IFS=$as_save_IFS | |
2684 | test -z "$as_dir" && as_dir=. | |
2685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2687 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2688 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2689 | break 2 | |
2690 | fi | |
2691 | done | |
2692 | done | |
2693 | IFS=$as_save_IFS | |
2694 | ||
2695 | fi | |
2696 | fi | |
2697 | STRIP=$ac_cv_prog_STRIP | |
2698 | if test -n "$STRIP"; then | |
2699 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2700 | $as_echo "$STRIP" >&6; } | |
2701 | else | |
2702 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2703 | $as_echo "no" >&6; } | |
2704 | fi | |
2705 | ||
2706 | ||
2707 | fi | |
2708 | if test -z "$ac_cv_prog_STRIP"; then | |
2709 | ac_ct_STRIP=$STRIP | |
2710 | # Extract the first word of "strip", so it can be a program name with args. | |
2711 | set dummy strip; ac_word=$2 | |
2712 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2713 | $as_echo_n "checking for $ac_word... " >&6; } | |
2714 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2715 | $as_echo_n "(cached) " >&6 | |
2716 | else | |
2717 | if test -n "$ac_ct_STRIP"; then | |
2718 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2719 | else | |
2720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2721 | for as_dir in $PATH | |
2722 | do | |
2723 | IFS=$as_save_IFS | |
2724 | test -z "$as_dir" && as_dir=. | |
2725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2727 | ac_cv_prog_ac_ct_STRIP="strip" | |
2728 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2729 | break 2 | |
2730 | fi | |
2731 | done | |
2732 | done | |
2733 | IFS=$as_save_IFS | |
2734 | ||
2735 | fi | |
2736 | fi | |
2737 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2738 | if test -n "$ac_ct_STRIP"; then | |
2739 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2740 | $as_echo "$ac_ct_STRIP" >&6; } | |
2741 | else | |
2742 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2743 | $as_echo "no" >&6; } | |
2744 | fi | |
2745 | ||
2746 | if test "x$ac_ct_STRIP" = x; then | |
2747 | STRIP=":" | |
2748 | else | |
2749 | case $cross_compiling:$ac_tool_warned in | |
2750 | yes:) | |
2751 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2752 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2753 | ac_tool_warned=yes ;; | |
2754 | esac | |
2755 | STRIP=$ac_ct_STRIP | |
2756 | fi | |
2757 | else | |
2758 | STRIP="$ac_cv_prog_STRIP" | |
2759 | fi | |
2760 | ||
2761 | fi | |
2762 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2763 | ||
2764 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | |
2765 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2766 | if test -z "$MKDIR_P"; then | |
2767 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2768 | $as_echo_n "(cached) " >&6 | |
2769 | else | |
2770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2771 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2772 | do | |
2773 | IFS=$as_save_IFS | |
2774 | test -z "$as_dir" && as_dir=. | |
2775 | for ac_prog in mkdir gmkdir; do | |
2776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2777 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2778 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2779 | 'mkdir (GNU coreutils) '* | \ | |
2780 | 'mkdir (coreutils) '* | \ | |
2781 | 'mkdir (fileutils) '4.1*) | |
2782 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2783 | break 3;; | |
2784 | esac | |
2785 | done | |
2786 | done | |
2787 | done | |
2788 | IFS=$as_save_IFS | |
2789 | ||
2790 | fi | |
2791 | ||
2792 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2793 | MKDIR_P="$ac_cv_path_mkdir -p" | |
bf9f3bac | 2794 | else |
8934764e BB |
2795 | # As a last resort, use the slow shell script. Don't cache a |
2796 | # value for MKDIR_P within a source directory, because that will | |
2797 | # break other packages using the cache if that directory is | |
2798 | # removed, or if the value is a relative name. | |
2799 | test -d ./--version && rmdir ./--version | |
2800 | MKDIR_P="$ac_install_sh -d" | |
bf9f3bac BB |
2801 | fi |
2802 | fi | |
8934764e BB |
2803 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2804 | $as_echo "$MKDIR_P" >&6; } | |
2805 | ||
2806 | mkdir_p="$MKDIR_P" | |
2807 | case $mkdir_p in | |
2808 | [\\/$]* | ?:[\\/]*) ;; | |
2809 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2810 | esac | |
bf9f3bac BB |
2811 | |
2812 | for ac_prog in gawk mawk nawk awk | |
2813 | do | |
2814 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2815 | set dummy $ac_prog; ac_word=$2 | |
8934764e BB |
2816 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2817 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 2818 | if test "${ac_cv_prog_AWK+set}" = set; then |
8934764e | 2819 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
2820 | else |
2821 | if test -n "$AWK"; then | |
2822 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2823 | else | |
2824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2825 | for as_dir in $PATH | |
2826 | do | |
2827 | IFS=$as_save_IFS | |
2828 | test -z "$as_dir" && as_dir=. | |
2829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 2830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 2831 | ac_cv_prog_AWK="$ac_prog" |
8934764e | 2832 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
2833 | break 2 |
2834 | fi | |
2835 | done | |
2836 | done | |
8934764e | 2837 | IFS=$as_save_IFS |
bf9f3bac BB |
2838 | |
2839 | fi | |
2840 | fi | |
2841 | AWK=$ac_cv_prog_AWK | |
2842 | if test -n "$AWK"; then | |
8934764e BB |
2843 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2844 | $as_echo "$AWK" >&6; } | |
bf9f3bac | 2845 | else |
8934764e BB |
2846 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2847 | $as_echo "no" >&6; } | |
bf9f3bac BB |
2848 | fi |
2849 | ||
8934764e | 2850 | |
bf9f3bac BB |
2851 | test -n "$AWK" && break |
2852 | done | |
2853 | ||
8934764e BB |
2854 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2855 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2856 | set x ${MAKE-make} | |
2857 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2858 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2859 | $as_echo_n "(cached) " >&6 | |
bf9f3bac BB |
2860 | else |
2861 | cat >conftest.make <<\_ACEOF | |
8934764e | 2862 | SHELL = /bin/sh |
bf9f3bac | 2863 | all: |
8934764e | 2864 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bf9f3bac BB |
2865 | _ACEOF |
2866 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
8934764e BB |
2867 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2868 | *@@@%%%=?*=@@@%%%*) | |
2869 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2870 | *) | |
2871 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2872 | esac | |
bf9f3bac BB |
2873 | rm -f conftest.make |
2874 | fi | |
8934764e BB |
2875 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2876 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2877 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
2878 | SET_MAKE= |
2879 | else | |
8934764e BB |
2880 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2881 | $as_echo "no" >&6; } | |
bf9f3bac BB |
2882 | SET_MAKE="MAKE=${MAKE-make}" |
2883 | fi | |
2884 | ||
2885 | rm -rf .tst 2>/dev/null | |
2886 | mkdir .tst 2>/dev/null | |
2887 | if test -d .tst; then | |
2888 | am__leading_dot=. | |
2889 | else | |
2890 | am__leading_dot=_ | |
2891 | fi | |
2892 | rmdir .tst 2>/dev/null | |
2893 | ||
8934764e BB |
2894 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2895 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2896 | # is not polluted with repeated "-I." | |
2897 | am__isrc=' -I$(srcdir)' | |
2898 | # test to see if srcdir already configured | |
2899 | if test -f $srcdir/config.status; then | |
2900 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2901 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
bf9f3bac | 2902 | { (exit 1); exit 1; }; } |
8934764e | 2903 | fi |
bf9f3bac BB |
2904 | fi |
2905 | ||
2906 | # test whether we have cygpath | |
2907 | if test -z "$CYGPATH_W"; then | |
2908 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2909 | CYGPATH_W='cygpath -w' | |
2910 | else | |
2911 | CYGPATH_W=echo | |
2912 | fi | |
2913 | fi | |
2914 | ||
2915 | ||
2916 | # Define the identity of the package. | |
abc3ca14 BB |
2917 | PACKAGE=$SPL_META_NAME |
2918 | VERSION=$SPL_META_VERSION | |
bf9f3bac BB |
2919 | |
2920 | ||
2921 | cat >>confdefs.h <<_ACEOF | |
2922 | #define PACKAGE "$PACKAGE" | |
2923 | _ACEOF | |
2924 | ||
2925 | ||
2926 | cat >>confdefs.h <<_ACEOF | |
2927 | #define VERSION "$VERSION" | |
2928 | _ACEOF | |
2929 | ||
2930 | # Some tools Automake needs. | |
2931 | ||
2932 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2933 | ||
2934 | ||
2935 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2936 | ||
2937 | ||
2938 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2939 | ||
2940 | ||
2941 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2942 | ||
2943 | ||
2944 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2945 | ||
bf9f3bac BB |
2946 | # We need awk for the "check" target. The system "awk" is bad on |
2947 | # some platforms. | |
2948 | # Always define AMTAR for backward compatibility. | |
2949 | ||
2950 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2951 | ||
2952 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2953 | ||
2954 | ||
2955 | ||
2956 | ||
2957 | ||
8934764e | 2958 | ac_config_headers="$ac_config_headers spl_config.h" |
bf9f3bac | 2959 | |
0cbaeb11 | 2960 | |
bf9f3bac BB |
2961 | # Find a good install program. We prefer a C program (faster), |
2962 | # so one script is as good as another. But avoid the broken or | |
2963 | # incompatible versions: | |
2964 | # SysV /etc/install, /usr/sbin/install | |
2965 | # SunOS /usr/etc/install | |
2966 | # IRIX /sbin/install | |
2967 | # AIX /bin/install | |
2968 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2969 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2970 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2971 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2972 | # OS/2's system install, which has a completely different semantic | |
2973 | # ./install, which can be erroneously created by make from ./install.sh. | |
8934764e BB |
2974 | # Reject install programs that cannot install multiple files. |
2975 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2976 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
bf9f3bac BB |
2977 | if test -z "$INSTALL"; then |
2978 | if test "${ac_cv_path_install+set}" = set; then | |
8934764e | 2979 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
2980 | else |
2981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2982 | for as_dir in $PATH | |
2983 | do | |
2984 | IFS=$as_save_IFS | |
2985 | test -z "$as_dir" && as_dir=. | |
2986 | # Account for people who put trailing slashes in PATH elements. | |
2987 | case $as_dir/ in | |
2988 | ./ | .// | /cC/* | \ | |
2989 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2990 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2991 | /usr/ucb/* ) ;; | |
2992 | *) | |
2993 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2994 | # Don't use installbsd from OSF since it installs stuff as root | |
2995 | # by default. | |
2996 | for ac_prog in ginstall scoinst install; do | |
2997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 2998 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bf9f3bac BB |
2999 | if test $ac_prog = install && |
3000 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3001 | # AIX install. It has an incompatible calling convention. | |
3002 | : | |
3003 | elif test $ac_prog = install && | |
3004 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3005 | # program-specific install script used by HP pwplus--don't use. | |
3006 | : | |
3007 | else | |
8934764e BB |
3008 | rm -rf conftest.one conftest.two conftest.dir |
3009 | echo one > conftest.one | |
3010 | echo two > conftest.two | |
3011 | mkdir conftest.dir | |
3012 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3013 | test -s conftest.one && test -s conftest.two && | |
3014 | test -s conftest.dir/conftest.one && | |
3015 | test -s conftest.dir/conftest.two | |
3016 | then | |
3017 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3018 | break 3 | |
3019 | fi | |
bf9f3bac BB |
3020 | fi |
3021 | fi | |
3022 | done | |
3023 | done | |
3024 | ;; | |
3025 | esac | |
8934764e | 3026 | |
bf9f3bac | 3027 | done |
8934764e | 3028 | IFS=$as_save_IFS |
bf9f3bac | 3029 | |
8934764e | 3030 | rm -rf conftest.one conftest.two conftest.dir |
bf9f3bac BB |
3031 | |
3032 | fi | |
3033 | if test "${ac_cv_path_install+set}" = set; then | |
3034 | INSTALL=$ac_cv_path_install | |
3035 | else | |
8934764e BB |
3036 | # As a last resort, use the slow shell script. Don't cache a |
3037 | # value for INSTALL within a source directory, because that will | |
bf9f3bac | 3038 | # break other packages using the cache if that directory is |
8934764e | 3039 | # removed, or if the value is a relative name. |
bf9f3bac BB |
3040 | INSTALL=$ac_install_sh |
3041 | fi | |
3042 | fi | |
8934764e BB |
3043 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3044 | $as_echo "$INSTALL" >&6; } | |
bf9f3bac BB |
3045 | |
3046 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3047 | # It thinks the first close brace ends the variable substitution. | |
3048 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3049 | ||
3050 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3051 | ||
3052 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3053 | ||
3054 | ac_ext=c | |
3055 | ac_cpp='$CPP $CPPFLAGS' | |
3056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3059 | if test -n "$ac_tool_prefix"; then | |
3060 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3061 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
8934764e BB |
3062 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3063 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3064 | if test "${ac_cv_prog_CC+set}" = set; then |
8934764e | 3065 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3066 | else |
3067 | if test -n "$CC"; then | |
3068 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3069 | else | |
3070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3071 | for as_dir in $PATH | |
3072 | do | |
3073 | IFS=$as_save_IFS | |
3074 | test -z "$as_dir" && as_dir=. | |
3075 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 3077 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
8934764e | 3078 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3079 | break 2 |
3080 | fi | |
3081 | done | |
3082 | done | |
8934764e | 3083 | IFS=$as_save_IFS |
bf9f3bac BB |
3084 | |
3085 | fi | |
3086 | fi | |
3087 | CC=$ac_cv_prog_CC | |
3088 | if test -n "$CC"; then | |
8934764e BB |
3089 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3090 | $as_echo "$CC" >&6; } | |
bf9f3bac | 3091 | else |
8934764e BB |
3092 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3093 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3094 | fi |
3095 | ||
8934764e | 3096 | |
bf9f3bac BB |
3097 | fi |
3098 | if test -z "$ac_cv_prog_CC"; then | |
3099 | ac_ct_CC=$CC | |
3100 | # Extract the first word of "gcc", so it can be a program name with args. | |
3101 | set dummy gcc; ac_word=$2 | |
8934764e BB |
3102 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3103 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3104 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8934764e | 3105 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3106 | else |
3107 | if test -n "$ac_ct_CC"; then | |
3108 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3109 | else | |
3110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3111 | for as_dir in $PATH | |
3112 | do | |
3113 | IFS=$as_save_IFS | |
3114 | test -z "$as_dir" && as_dir=. | |
3115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 3117 | ac_cv_prog_ac_ct_CC="gcc" |
8934764e | 3118 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3119 | break 2 |
3120 | fi | |
3121 | done | |
3122 | done | |
8934764e | 3123 | IFS=$as_save_IFS |
bf9f3bac BB |
3124 | |
3125 | fi | |
3126 | fi | |
3127 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3128 | if test -n "$ac_ct_CC"; then | |
8934764e BB |
3129 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3130 | $as_echo "$ac_ct_CC" >&6; } | |
bf9f3bac | 3131 | else |
8934764e BB |
3132 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3133 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3134 | fi |
3135 | ||
8934764e BB |
3136 | if test "x$ac_ct_CC" = x; then |
3137 | CC="" | |
3138 | else | |
3139 | case $cross_compiling:$ac_tool_warned in | |
3140 | yes:) | |
3141 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3142 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3143 | ac_tool_warned=yes ;; | |
3144 | esac | |
3145 | CC=$ac_ct_CC | |
3146 | fi | |
bf9f3bac BB |
3147 | else |
3148 | CC="$ac_cv_prog_CC" | |
3149 | fi | |
3150 | ||
3151 | if test -z "$CC"; then | |
8934764e BB |
3152 | if test -n "$ac_tool_prefix"; then |
3153 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bf9f3bac | 3154 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
8934764e BB |
3155 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3156 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3157 | if test "${ac_cv_prog_CC+set}" = set; then |
8934764e | 3158 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3159 | else |
3160 | if test -n "$CC"; then | |
3161 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3162 | else | |
3163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3164 | for as_dir in $PATH | |
3165 | do | |
3166 | IFS=$as_save_IFS | |
3167 | test -z "$as_dir" && as_dir=. | |
3168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 3170 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
8934764e | 3171 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3172 | break 2 |
3173 | fi | |
3174 | done | |
3175 | done | |
8934764e | 3176 | IFS=$as_save_IFS |
bf9f3bac BB |
3177 | |
3178 | fi | |
3179 | fi | |
3180 | CC=$ac_cv_prog_CC | |
3181 | if test -n "$CC"; then | |
8934764e BB |
3182 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3183 | $as_echo "$CC" >&6; } | |
bf9f3bac | 3184 | else |
8934764e BB |
3185 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3186 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3187 | fi |
3188 | ||
bf9f3bac | 3189 | |
8934764e | 3190 | fi |
bf9f3bac BB |
3191 | fi |
3192 | if test -z "$CC"; then | |
3193 | # Extract the first word of "cc", so it can be a program name with args. | |
3194 | set dummy cc; ac_word=$2 | |
8934764e BB |
3195 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3196 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3197 | if test "${ac_cv_prog_CC+set}" = set; then |
8934764e | 3198 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3199 | else |
3200 | if test -n "$CC"; then | |
3201 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3202 | else | |
3203 | ac_prog_rejected=no | |
3204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3205 | for as_dir in $PATH | |
3206 | do | |
3207 | IFS=$as_save_IFS | |
3208 | test -z "$as_dir" && as_dir=. | |
3209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac BB |
3211 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3212 | ac_prog_rejected=yes | |
3213 | continue | |
3214 | fi | |
3215 | ac_cv_prog_CC="cc" | |
8934764e | 3216 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3217 | break 2 |
3218 | fi | |
3219 | done | |
3220 | done | |
8934764e | 3221 | IFS=$as_save_IFS |
bf9f3bac BB |
3222 | |
3223 | if test $ac_prog_rejected = yes; then | |
3224 | # We found a bogon in the path, so make sure we never use it. | |
3225 | set dummy $ac_cv_prog_CC | |
3226 | shift | |
3227 | if test $# != 0; then | |
3228 | # We chose a different compiler from the bogus one. | |
3229 | # However, it has the same basename, so the bogon will be chosen | |
3230 | # first if we set CC to just the basename; use the full file name. | |
3231 | shift | |
3232 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3233 | fi | |
3234 | fi | |
3235 | fi | |
3236 | fi | |
3237 | CC=$ac_cv_prog_CC | |
3238 | if test -n "$CC"; then | |
8934764e BB |
3239 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3240 | $as_echo "$CC" >&6; } | |
bf9f3bac | 3241 | else |
8934764e BB |
3242 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3243 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3244 | fi |
3245 | ||
8934764e | 3246 | |
bf9f3bac BB |
3247 | fi |
3248 | if test -z "$CC"; then | |
3249 | if test -n "$ac_tool_prefix"; then | |
8934764e | 3250 | for ac_prog in cl.exe |
bf9f3bac BB |
3251 | do |
3252 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3253 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8934764e BB |
3254 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3255 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3256 | if test "${ac_cv_prog_CC+set}" = set; then |
8934764e | 3257 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3258 | else |
3259 | if test -n "$CC"; then | |
3260 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3261 | else | |
3262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3263 | for as_dir in $PATH | |
3264 | do | |
3265 | IFS=$as_save_IFS | |
3266 | test -z "$as_dir" && as_dir=. | |
3267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 3269 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
8934764e | 3270 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3271 | break 2 |
3272 | fi | |
3273 | done | |
3274 | done | |
8934764e | 3275 | IFS=$as_save_IFS |
bf9f3bac BB |
3276 | |
3277 | fi | |
3278 | fi | |
3279 | CC=$ac_cv_prog_CC | |
3280 | if test -n "$CC"; then | |
8934764e BB |
3281 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
3282 | $as_echo "$CC" >&6; } | |
bf9f3bac | 3283 | else |
8934764e BB |
3284 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3285 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3286 | fi |
3287 | ||
8934764e | 3288 | |
bf9f3bac BB |
3289 | test -n "$CC" && break |
3290 | done | |
3291 | fi | |
3292 | if test -z "$CC"; then | |
3293 | ac_ct_CC=$CC | |
8934764e | 3294 | for ac_prog in cl.exe |
bf9f3bac BB |
3295 | do |
3296 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3297 | set dummy $ac_prog; ac_word=$2 | |
8934764e BB |
3298 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3299 | $as_echo_n "checking for $ac_word... " >&6; } | |
bf9f3bac | 3300 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
8934764e | 3301 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3302 | else |
3303 | if test -n "$ac_ct_CC"; then | |
3304 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3305 | else | |
3306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3307 | for as_dir in $PATH | |
3308 | do | |
3309 | IFS=$as_save_IFS | |
3310 | test -z "$as_dir" && as_dir=. | |
3311 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e | 3312 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bf9f3bac | 3313 | ac_cv_prog_ac_ct_CC="$ac_prog" |
8934764e | 3314 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bf9f3bac BB |
3315 | break 2 |
3316 | fi | |
3317 | done | |
3318 | done | |
8934764e | 3319 | IFS=$as_save_IFS |
bf9f3bac BB |
3320 | |
3321 | fi | |
3322 | fi | |
3323 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3324 | if test -n "$ac_ct_CC"; then | |
8934764e BB |
3325 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3326 | $as_echo "$ac_ct_CC" >&6; } | |
bf9f3bac | 3327 | else |
8934764e BB |
3328 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3329 | $as_echo "no" >&6; } | |
bf9f3bac BB |
3330 | fi |
3331 | ||
8934764e | 3332 | |
bf9f3bac BB |
3333 | test -n "$ac_ct_CC" && break |
3334 | done | |
3335 | ||
8934764e BB |
3336 | if test "x$ac_ct_CC" = x; then |
3337 | CC="" | |
3338 | else | |
3339 | case $cross_compiling:$ac_tool_warned in | |
3340 | yes:) | |
3341 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3342 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3343 | ac_tool_warned=yes ;; | |
3344 | esac | |
3345 | CC=$ac_ct_CC | |
3346 | fi | |
bf9f3bac BB |
3347 | fi |
3348 | ||
3349 | fi | |
3350 | ||
3351 | ||
8934764e BB |
3352 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3353 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3354 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
bf9f3bac | 3355 | See \`config.log' for more details." >&5 |
8934764e | 3356 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
bf9f3bac | 3357 | See \`config.log' for more details." >&2;} |
8934764e | 3358 | { (exit 1); exit 1; }; }; } |
bf9f3bac BB |
3359 | |
3360 | # Provide some information about the compiler. | |
8934764e BB |
3361 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
3362 | set X $ac_compile | |
3363 | ac_compiler=$2 | |
3364 | { (ac_try="$ac_compiler --version >&5" | |
3365 | case "(($ac_try" in | |
3366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3367 | *) ac_try_echo=$ac_try;; | |
3368 | esac | |
3369 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3370 | $as_echo "$ac_try_echo") >&5 | |
3371 | (eval "$ac_compiler --version >&5") 2>&5 | |
bf9f3bac | 3372 | ac_status=$? |
8934764e | 3373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac | 3374 | (exit $ac_status); } |
8934764e BB |
3375 | { (ac_try="$ac_compiler -v >&5" |
3376 | case "(($ac_try" in | |
3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3378 | *) ac_try_echo=$ac_try;; | |
3379 | esac | |
3380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3381 | $as_echo "$ac_try_echo") >&5 | |
3382 | (eval "$ac_compiler -v >&5") 2>&5 | |
bf9f3bac | 3383 | ac_status=$? |
8934764e | 3384 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac | 3385 | (exit $ac_status); } |
8934764e BB |
3386 | { (ac_try="$ac_compiler -V >&5" |
3387 | case "(($ac_try" in | |
3388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3389 | *) ac_try_echo=$ac_try;; | |
3390 | esac | |
3391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3392 | $as_echo "$ac_try_echo") >&5 | |
3393 | (eval "$ac_compiler -V >&5") 2>&5 | |
bf9f3bac | 3394 | ac_status=$? |
8934764e | 3395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
3396 | (exit $ac_status); } |
3397 | ||
3398 | cat >conftest.$ac_ext <<_ACEOF | |
3399 | /* confdefs.h. */ | |
3400 | _ACEOF | |
3401 | cat confdefs.h >>conftest.$ac_ext | |
3402 | cat >>conftest.$ac_ext <<_ACEOF | |
3403 | /* end confdefs.h. */ | |
3404 | ||
3405 | int | |
3406 | main () | |
3407 | { | |
3408 | ||
3409 | ; | |
3410 | return 0; | |
3411 | } | |
3412 | _ACEOF | |
3413 | ac_clean_files_save=$ac_clean_files | |
8934764e | 3414 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
bf9f3bac BB |
3415 | # Try to create an executable without -o first, disregard a.out. |
3416 | # It will help us diagnose broken compilers, and finding out an intuition | |
3417 | # of exeext. | |
8934764e BB |
3418 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3419 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3420 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3421 | ||
3422 | # The possible output files: | |
3423 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3424 | ||
3425 | ac_rmfiles= | |
3426 | for ac_file in $ac_files | |
3427 | do | |
3428 | case $ac_file in | |
3429 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3430 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3431 | esac | |
3432 | done | |
3433 | rm -f $ac_rmfiles | |
3434 | ||
3435 | if { (ac_try="$ac_link_default" | |
3436 | case "(($ac_try" in | |
3437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3438 | *) ac_try_echo=$ac_try;; | |
3439 | esac | |
3440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3441 | $as_echo "$ac_try_echo") >&5 | |
3442 | (eval "$ac_link_default") 2>&5 | |
bf9f3bac | 3443 | ac_status=$? |
8934764e | 3444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac | 3445 | (exit $ac_status); }; then |
8934764e BB |
3446 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3447 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3448 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3449 | # so that the user can short-circuit this test for compilers unknown to | |
3450 | # Autoconf. | |
3451 | for ac_file in $ac_files '' | |
bf9f3bac BB |
3452 | do |
3453 | test -f "$ac_file" || continue | |
3454 | case $ac_file in | |
8934764e | 3455 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
bf9f3bac BB |
3456 | ;; |
3457 | [ab].out ) | |
3458 | # We found the default executable, but exeext='' is most | |
3459 | # certainly right. | |
3460 | break;; | |
3461 | *.* ) | |
8934764e BB |
3462 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3463 | then :; else | |
3464 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3465 | fi | |
3466 | # We set ac_cv_exeext here because the later test for it is not | |
3467 | # safe: cross compilers may not add the suffix if given an `-o' | |
3468 | # argument, so we may need to know it at that point already. | |
3469 | # Even if this section looks crufty: it has the advantage of | |
3470 | # actually working. | |
bf9f3bac BB |
3471 | break;; |
3472 | * ) | |
3473 | break;; | |
3474 | esac | |
3475 | done | |
8934764e BB |
3476 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3477 | ||
bf9f3bac | 3478 | else |
8934764e BB |
3479 | ac_file='' |
3480 | fi | |
3481 | ||
3482 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3483 | $as_echo "$ac_file" >&6; } | |
3484 | if test -z "$ac_file"; then | |
3485 | $as_echo "$as_me: failed program was:" >&5 | |
bf9f3bac BB |
3486 | sed 's/^/| /' conftest.$ac_ext >&5 |
3487 | ||
8934764e BB |
3488 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3489 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3490 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
bf9f3bac | 3491 | See \`config.log' for more details." >&5 |
8934764e | 3492 | $as_echo "$as_me: error: C compiler cannot create executables |
bf9f3bac | 3493 | See \`config.log' for more details." >&2;} |
8934764e | 3494 | { (exit 77); exit 77; }; }; } |
bf9f3bac BB |
3495 | fi |
3496 | ||
3497 | ac_exeext=$ac_cv_exeext | |
bf9f3bac | 3498 | |
8934764e | 3499 | # Check that the compiler produces executables we can run. If not, either |
bf9f3bac | 3500 | # the compiler is broken, or we cross compile. |
8934764e BB |
3501 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3502 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
bf9f3bac BB |
3503 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3504 | # If not cross compiling, check that we can run a simple program. | |
3505 | if test "$cross_compiling" != yes; then | |
3506 | if { ac_try='./$ac_file' | |
8934764e BB |
3507 | { (case "(($ac_try" in |
3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3509 | *) ac_try_echo=$ac_try;; | |
3510 | esac | |
3511 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3512 | $as_echo "$ac_try_echo") >&5 | |
3513 | (eval "$ac_try") 2>&5 | |
bf9f3bac | 3514 | ac_status=$? |
8934764e | 3515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
3516 | (exit $ac_status); }; }; then |
3517 | cross_compiling=no | |
3518 | else | |
3519 | if test "$cross_compiling" = maybe; then | |
3520 | cross_compiling=yes | |
3521 | else | |
8934764e BB |
3522 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3523 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3524 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
bf9f3bac BB |
3525 | If you meant to cross compile, use \`--host'. |
3526 | See \`config.log' for more details." >&5 | |
8934764e | 3527 | $as_echo "$as_me: error: cannot run C compiled programs. |
bf9f3bac BB |
3528 | If you meant to cross compile, use \`--host'. |
3529 | See \`config.log' for more details." >&2;} | |
8934764e | 3530 | { (exit 1); exit 1; }; }; } |
bf9f3bac BB |
3531 | fi |
3532 | fi | |
3533 | fi | |
8934764e BB |
3534 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3535 | $as_echo "yes" >&6; } | |
bf9f3bac | 3536 | |
8934764e | 3537 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
bf9f3bac | 3538 | ac_clean_files=$ac_clean_files_save |
8934764e | 3539 | # Check that the compiler produces executables we can run. If not, either |
bf9f3bac | 3540 | # the compiler is broken, or we cross compile. |
8934764e BB |
3541 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3542 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3543 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3544 | $as_echo "$cross_compiling" >&6; } | |
3545 | ||
3546 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3547 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3548 | if { (ac_try="$ac_link" | |
3549 | case "(($ac_try" in | |
3550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3551 | *) ac_try_echo=$ac_try;; | |
3552 | esac | |
3553 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3554 | $as_echo "$ac_try_echo") >&5 | |
3555 | (eval "$ac_link") 2>&5 | |
bf9f3bac | 3556 | ac_status=$? |
8934764e | 3557 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
3558 | (exit $ac_status); }; then |
3559 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3560 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3561 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3562 | # `rm'. | |
3563 | for ac_file in conftest.exe conftest conftest.*; do | |
3564 | test -f "$ac_file" || continue | |
3565 | case $ac_file in | |
8934764e | 3566 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
bf9f3bac | 3567 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bf9f3bac BB |
3568 | break;; |
3569 | * ) break;; | |
3570 | esac | |
3571 | done | |
3572 | else | |
8934764e BB |
3573 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3574 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3575 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
bf9f3bac | 3576 | See \`config.log' for more details." >&5 |
8934764e | 3577 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
bf9f3bac | 3578 | See \`config.log' for more details." >&2;} |
8934764e | 3579 | { (exit 1); exit 1; }; }; } |
bf9f3bac BB |
3580 | fi |
3581 | ||
3582 | rm -f conftest$ac_cv_exeext | |
8934764e BB |
3583 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3584 | $as_echo "$ac_cv_exeext" >&6; } | |
bf9f3bac BB |
3585 | |
3586 | rm -f conftest.$ac_ext | |
3587 | EXEEXT=$ac_cv_exeext | |
3588 | ac_exeext=$EXEEXT | |
8934764e BB |
3589 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3590 | $as_echo_n "checking for suffix of object files... " >&6; } | |
bf9f3bac | 3591 | if test "${ac_cv_objext+set}" = set; then |
8934764e | 3592 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3593 | else |
3594 | cat >conftest.$ac_ext <<_ACEOF | |
3595 | /* confdefs.h. */ | |
3596 | _ACEOF | |
3597 | cat confdefs.h >>conftest.$ac_ext | |
3598 | cat >>conftest.$ac_ext <<_ACEOF | |
3599 | /* end confdefs.h. */ | |
3600 | ||
3601 | int | |
3602 | main () | |
3603 | { | |
3604 | ||
3605 | ; | |
3606 | return 0; | |
3607 | } | |
3608 | _ACEOF | |
3609 | rm -f conftest.o conftest.obj | |
8934764e BB |
3610 | if { (ac_try="$ac_compile" |
3611 | case "(($ac_try" in | |
3612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3613 | *) ac_try_echo=$ac_try;; | |
3614 | esac | |
3615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3616 | $as_echo "$ac_try_echo") >&5 | |
3617 | (eval "$ac_compile") 2>&5 | |
bf9f3bac | 3618 | ac_status=$? |
8934764e | 3619 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac | 3620 | (exit $ac_status); }; then |
8934764e BB |
3621 | for ac_file in conftest.o conftest.obj conftest.*; do |
3622 | test -f "$ac_file" || continue; | |
bf9f3bac | 3623 | case $ac_file in |
8934764e | 3624 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bf9f3bac BB |
3625 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3626 | break;; | |
3627 | esac | |
3628 | done | |
3629 | else | |
8934764e | 3630 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
3631 | sed 's/^/| /' conftest.$ac_ext >&5 |
3632 | ||
8934764e BB |
3633 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3634 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3635 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
bf9f3bac | 3636 | See \`config.log' for more details." >&5 |
8934764e | 3637 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
bf9f3bac | 3638 | See \`config.log' for more details." >&2;} |
8934764e | 3639 | { (exit 1); exit 1; }; }; } |
bf9f3bac BB |
3640 | fi |
3641 | ||
3642 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3643 | fi | |
8934764e BB |
3644 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3645 | $as_echo "$ac_cv_objext" >&6; } | |
bf9f3bac BB |
3646 | OBJEXT=$ac_cv_objext |
3647 | ac_objext=$OBJEXT | |
8934764e BB |
3648 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3649 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
bf9f3bac | 3650 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
8934764e | 3651 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
3652 | else |
3653 | cat >conftest.$ac_ext <<_ACEOF | |
3654 | /* confdefs.h. */ | |
3655 | _ACEOF | |
3656 | cat confdefs.h >>conftest.$ac_ext | |
3657 | cat >>conftest.$ac_ext <<_ACEOF | |
3658 | /* end confdefs.h. */ | |
3659 | ||
3660 | int | |
3661 | main () | |
3662 | { | |
3663 | #ifndef __GNUC__ | |
3664 | choke me | |
3665 | #endif | |
3666 | ||
3667 | ; | |
3668 | return 0; | |
3669 | } | |
3670 | _ACEOF | |
3671 | rm -f conftest.$ac_objext | |
8934764e BB |
3672 | if { (ac_try="$ac_compile" |
3673 | case "(($ac_try" in | |
3674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3675 | *) ac_try_echo=$ac_try;; | |
3676 | esac | |
3677 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3678 | $as_echo "$ac_try_echo") >&5 | |
3679 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac BB |
3680 | ac_status=$? |
3681 | grep -v '^ *+' conftest.er1 >conftest.err | |
3682 | rm -f conftest.er1 | |
3683 | cat conftest.err >&5 | |
8934764e BB |
3684 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3685 | (exit $ac_status); } && { | |
3686 | test -z "$ac_c_werror_flag" || | |
3687 | test ! -s conftest.err | |
3688 | } && test -s conftest.$ac_objext; then | |
bf9f3bac BB |
3689 | ac_compiler_gnu=yes |
3690 | else | |
8934764e | 3691 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
3692 | sed 's/^/| /' conftest.$ac_ext >&5 |
3693 | ||
8934764e | 3694 | ac_compiler_gnu=no |
bf9f3bac | 3695 | fi |
8934764e BB |
3696 | |
3697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bf9f3bac BB |
3698 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3699 | ||
3700 | fi | |
8934764e BB |
3701 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3702 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3703 | if test $ac_compiler_gnu = yes; then | |
3704 | GCC=yes | |
3705 | else | |
3706 | GCC= | |
3707 | fi | |
bf9f3bac BB |
3708 | ac_test_CFLAGS=${CFLAGS+set} |
3709 | ac_save_CFLAGS=$CFLAGS | |
8934764e BB |
3710 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3711 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
bf9f3bac | 3712 | if test "${ac_cv_prog_cc_g+set}" = set; then |
8934764e | 3713 | $as_echo_n "(cached) " >&6 |
bf9f3bac | 3714 | else |
8934764e BB |
3715 | ac_save_c_werror_flag=$ac_c_werror_flag |
3716 | ac_c_werror_flag=yes | |
3717 | ac_cv_prog_cc_g=no | |
3718 | CFLAGS="-g" | |
3719 | cat >conftest.$ac_ext <<_ACEOF | |
bf9f3bac BB |
3720 | /* confdefs.h. */ |
3721 | _ACEOF | |
3722 | cat confdefs.h >>conftest.$ac_ext | |
3723 | cat >>conftest.$ac_ext <<_ACEOF | |
3724 | /* end confdefs.h. */ | |
3725 | ||
3726 | int | |
3727 | main () | |
3728 | { | |
3729 | ||
3730 | ; | |
3731 | return 0; | |
3732 | } | |
3733 | _ACEOF | |
3734 | rm -f conftest.$ac_objext | |
8934764e BB |
3735 | if { (ac_try="$ac_compile" |
3736 | case "(($ac_try" in | |
3737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3738 | *) ac_try_echo=$ac_try;; | |
3739 | esac | |
3740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3741 | $as_echo "$ac_try_echo") >&5 | |
3742 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac BB |
3743 | ac_status=$? |
3744 | grep -v '^ *+' conftest.er1 >conftest.err | |
3745 | rm -f conftest.er1 | |
3746 | cat conftest.err >&5 | |
8934764e BB |
3747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3748 | (exit $ac_status); } && { | |
3749 | test -z "$ac_c_werror_flag" || | |
3750 | test ! -s conftest.err | |
3751 | } && test -s conftest.$ac_objext; then | |
3752 | ac_cv_prog_cc_g=yes | |
3753 | else | |
3754 | $as_echo "$as_me: failed program was:" >&5 | |
3755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3756 | ||
3757 | CFLAGS="" | |
3758 | cat >conftest.$ac_ext <<_ACEOF | |
3759 | /* confdefs.h. */ | |
3760 | _ACEOF | |
3761 | cat confdefs.h >>conftest.$ac_ext | |
3762 | cat >>conftest.$ac_ext <<_ACEOF | |
3763 | /* end confdefs.h. */ | |
3764 | ||
3765 | int | |
3766 | main () | |
3767 | { | |
3768 | ||
3769 | ; | |
3770 | return 0; | |
3771 | } | |
3772 | _ACEOF | |
3773 | rm -f conftest.$ac_objext | |
3774 | if { (ac_try="$ac_compile" | |
3775 | case "(($ac_try" in | |
3776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3777 | *) ac_try_echo=$ac_try;; | |
3778 | esac | |
3779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3780 | $as_echo "$ac_try_echo") >&5 | |
3781 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac | 3782 | ac_status=$? |
8934764e BB |
3783 | grep -v '^ *+' conftest.er1 >conftest.err |
3784 | rm -f conftest.er1 | |
3785 | cat conftest.err >&5 | |
3786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3787 | (exit $ac_status); } && { | |
3788 | test -z "$ac_c_werror_flag" || | |
3789 | test ! -s conftest.err | |
3790 | } && test -s conftest.$ac_objext; then | |
3791 | : | |
3792 | else | |
3793 | $as_echo "$as_me: failed program was:" >&5 | |
3794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3795 | ||
3796 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3797 | CFLAGS="-g" | |
3798 | cat >conftest.$ac_ext <<_ACEOF | |
3799 | /* confdefs.h. */ | |
3800 | _ACEOF | |
3801 | cat confdefs.h >>conftest.$ac_ext | |
3802 | cat >>conftest.$ac_ext <<_ACEOF | |
3803 | /* end confdefs.h. */ | |
3804 | ||
3805 | int | |
3806 | main () | |
3807 | { | |
3808 | ||
3809 | ; | |
3810 | return 0; | |
3811 | } | |
3812 | _ACEOF | |
3813 | rm -f conftest.$ac_objext | |
3814 | if { (ac_try="$ac_compile" | |
3815 | case "(($ac_try" in | |
3816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3817 | *) ac_try_echo=$ac_try;; | |
3818 | esac | |
3819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3820 | $as_echo "$ac_try_echo") >&5 | |
3821 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac | 3822 | ac_status=$? |
8934764e BB |
3823 | grep -v '^ *+' conftest.er1 >conftest.err |
3824 | rm -f conftest.er1 | |
3825 | cat conftest.err >&5 | |
3826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3827 | (exit $ac_status); } && { | |
3828 | test -z "$ac_c_werror_flag" || | |
3829 | test ! -s conftest.err | |
3830 | } && test -s conftest.$ac_objext; then | |
bf9f3bac BB |
3831 | ac_cv_prog_cc_g=yes |
3832 | else | |
8934764e | 3833 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
3834 | sed 's/^/| /' conftest.$ac_ext >&5 |
3835 | ||
8934764e BB |
3836 | |
3837 | fi | |
3838 | ||
3839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3840 | fi | |
3841 | ||
3842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bf9f3bac | 3843 | fi |
8934764e BB |
3844 | |
3845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3846 | ac_c_werror_flag=$ac_save_c_werror_flag | |
bf9f3bac | 3847 | fi |
8934764e BB |
3848 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3849 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
bf9f3bac BB |
3850 | if test "$ac_test_CFLAGS" = set; then |
3851 | CFLAGS=$ac_save_CFLAGS | |
3852 | elif test $ac_cv_prog_cc_g = yes; then | |
3853 | if test "$GCC" = yes; then | |
3854 | CFLAGS="-g -O2" | |
3855 | else | |
3856 | CFLAGS="-g" | |
3857 | fi | |
3858 | else | |
3859 | if test "$GCC" = yes; then | |
3860 | CFLAGS="-O2" | |
3861 | else | |
3862 | CFLAGS= | |
3863 | fi | |
3864 | fi | |
8934764e BB |
3865 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3866 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3867 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3868 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 3869 | else |
8934764e | 3870 | ac_cv_prog_cc_c89=no |
bf9f3bac BB |
3871 | ac_save_CC=$CC |
3872 | cat >conftest.$ac_ext <<_ACEOF | |
3873 | /* confdefs.h. */ | |
3874 | _ACEOF | |
3875 | cat confdefs.h >>conftest.$ac_ext | |
3876 | cat >>conftest.$ac_ext <<_ACEOF | |
3877 | /* end confdefs.h. */ | |
3878 | #include <stdarg.h> | |
3879 | #include <stdio.h> | |
3880 | #include <sys/types.h> | |
3881 | #include <sys/stat.h> | |
3882 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3883 | struct buf { int x; }; | |
3884 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3885 | static char *e (p, i) | |
3886 | char **p; | |
3887 | int i; | |
3888 | { | |
3889 | return p[i]; | |
3890 | } | |
3891 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3892 | { | |
3893 | char *s; | |
3894 | va_list v; | |
3895 | va_start (v,p); | |
3896 | s = g (p, va_arg (v,int)); | |
3897 | va_end (v); | |
3898 | return s; | |
3899 | } | |
3900 | ||
3901 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3902 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3903 | These don't provoke an error unfortunately, instead are silently treated | |
8934764e | 3904 | as 'x'. The following induces an error, until -std is added to get |
bf9f3bac BB |
3905 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3906 | array size at least. It's necessary to write '\x00'==0 to get something | |
8934764e | 3907 | that's true only with -std. */ |
bf9f3bac BB |
3908 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3909 | ||
8934764e BB |
3910 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3911 | inside strings and character constants. */ | |
3912 | #define FOO(x) 'x' | |
3913 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3914 | ||
bf9f3bac BB |
3915 | int test (int i, double x); |
3916 | struct s1 {int (*f) (int a);}; | |
3917 | struct s2 {int (*f) (double a);}; | |
3918 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3919 | int argc; | |
3920 | char **argv; | |
3921 | int | |
3922 | main () | |
3923 | { | |
3924 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3925 | ; | |
3926 | return 0; | |
3927 | } | |
3928 | _ACEOF | |
8934764e BB |
3929 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3930 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bf9f3bac BB |
3931 | do |
3932 | CC="$ac_save_CC $ac_arg" | |
3933 | rm -f conftest.$ac_objext | |
8934764e BB |
3934 | if { (ac_try="$ac_compile" |
3935 | case "(($ac_try" in | |
3936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3937 | *) ac_try_echo=$ac_try;; | |
3938 | esac | |
3939 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3940 | $as_echo "$ac_try_echo") >&5 | |
3941 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac BB |
3942 | ac_status=$? |
3943 | grep -v '^ *+' conftest.er1 >conftest.err | |
3944 | rm -f conftest.er1 | |
3945 | cat conftest.err >&5 | |
8934764e BB |
3946 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3947 | (exit $ac_status); } && { | |
3948 | test -z "$ac_c_werror_flag" || | |
3949 | test ! -s conftest.err | |
3950 | } && test -s conftest.$ac_objext; then | |
3951 | ac_cv_prog_cc_c89=$ac_arg | |
3952 | else | |
3953 | $as_echo "$as_me: failed program was:" >&5 | |
bf9f3bac BB |
3954 | sed 's/^/| /' conftest.$ac_ext >&5 |
3955 | ||
8934764e | 3956 | |
bf9f3bac | 3957 | fi |
8934764e BB |
3958 | |
3959 | rm -f core conftest.err conftest.$ac_objext | |
3960 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
bf9f3bac | 3961 | done |
8934764e | 3962 | rm -f conftest.$ac_ext |
bf9f3bac BB |
3963 | CC=$ac_save_CC |
3964 | ||
3965 | fi | |
8934764e BB |
3966 | # AC_CACHE_VAL |
3967 | case "x$ac_cv_prog_cc_c89" in | |
3968 | x) | |
3969 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
3970 | $as_echo "none needed" >&6; } ;; | |
3971 | xno) | |
3972 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
3973 | $as_echo "unsupported" >&6; } ;; | |
bf9f3bac | 3974 | *) |
8934764e BB |
3975 | CC="$CC $ac_cv_prog_cc_c89" |
3976 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3977 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
bf9f3bac BB |
3978 | esac |
3979 | ||
bf9f3bac | 3980 | |
bf9f3bac BB |
3981 | ac_ext=c |
3982 | ac_cpp='$CPP $CPPFLAGS' | |
3983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3986 | DEPDIR="${am__leading_dot}deps" | |
3987 | ||
8934764e | 3988 | ac_config_commands="$ac_config_commands depfiles" |
bf9f3bac BB |
3989 | |
3990 | ||
3991 | am_make=${MAKE-make} | |
3992 | cat > confinc << 'END' | |
3993 | am__doit: | |
8934764e | 3994 | @echo this is the am__doit target |
bf9f3bac BB |
3995 | .PHONY: am__doit |
3996 | END | |
3997 | # If we don't find an include directive, just comment out the code. | |
8934764e BB |
3998 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3999 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
bf9f3bac BB |
4000 | am__include="#" |
4001 | am__quote= | |
4002 | _am_result=none | |
4003 | # First try GNU make style include. | |
4004 | echo "include confinc" > confmf | |
8934764e BB |
4005 | # Ignore all kinds of additional output from `make'. |
4006 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4007 | *the\ am__doit\ target*) | |
4008 | am__include=include | |
4009 | am__quote= | |
4010 | _am_result=GNU | |
4011 | ;; | |
4012 | esac | |
bf9f3bac BB |
4013 | # Now try BSD make style include. |
4014 | if test "$am__include" = "#"; then | |
4015 | echo '.include "confinc"' > confmf | |
8934764e BB |
4016 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4017 | *the\ am__doit\ target*) | |
4018 | am__include=.include | |
4019 | am__quote="\"" | |
4020 | _am_result=BSD | |
4021 | ;; | |
4022 | esac | |
bf9f3bac BB |
4023 | fi |
4024 | ||
4025 | ||
8934764e BB |
4026 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
4027 | $as_echo "$_am_result" >&6; } | |
bf9f3bac BB |
4028 | rm -f confinc confmf |
4029 | ||
8934764e | 4030 | # Check whether --enable-dependency-tracking was given. |
bf9f3bac | 4031 | if test "${enable_dependency_tracking+set}" = set; then |
8934764e BB |
4032 | enableval=$enable_dependency_tracking; |
4033 | fi | |
bf9f3bac | 4034 | |
bf9f3bac BB |
4035 | if test "x$enable_dependency_tracking" != xno; then |
4036 | am_depcomp="$ac_aux_dir/depcomp" | |
4037 | AMDEPBACKSLASH='\' | |
4038 | fi | |
8934764e | 4039 | if test "x$enable_dependency_tracking" != xno; then |
bf9f3bac BB |
4040 | AMDEP_TRUE= |
4041 | AMDEP_FALSE='#' | |
4042 | else | |
4043 | AMDEP_TRUE='#' | |
4044 | AMDEP_FALSE= | |
4045 | fi | |
4046 | ||
4047 | ||
4048 | ||
bf9f3bac BB |
4049 | depcc="$CC" am_compiler_list= |
4050 | ||
8934764e BB |
4051 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4052 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
bf9f3bac | 4053 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
8934764e | 4054 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
4055 | else |
4056 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4057 | # We make a subdir and do the tests there. Otherwise we can end up | |
4058 | # making bogus files that we don't know about and never remove. For | |
4059 | # instance it was reported that on HP-UX the gcc test will end up | |
4060 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4061 | # in D'. | |
4062 | mkdir conftest.dir | |
4063 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4064 | # using a relative directory. | |
4065 | cp "$am_depcomp" conftest.dir | |
4066 | cd conftest.dir | |
4067 | # We will build objects and dependencies in a subdirectory because | |
4068 | # it helps to detect inapplicable dependency modes. For instance | |
4069 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4070 | # side effect of compilation, but ICC will put the dependencies in | |
4071 | # the current directory while Tru64 will put them in the object | |
4072 | # directory. | |
4073 | mkdir sub | |
4074 | ||
4075 | am_cv_CC_dependencies_compiler_type=none | |
4076 | if test "$am_compiler_list" = ""; then | |
4077 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4078 | fi | |
8934764e BB |
4079 | am__universal=false |
4080 | case " $depcc " in #( | |
4081 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4082 | esac | |
4083 | ||
bf9f3bac BB |
4084 | for depmode in $am_compiler_list; do |
4085 | # Setup a source with many dependencies, because some compilers | |
4086 | # like to wrap large dependency lists on column 80 (with \), and | |
4087 | # we should not choose a depcomp mode which is confused by this. | |
4088 | # | |
4089 | # We need to recreate these files for each test, as the compiler may | |
4090 | # overwrite some of them when testing with obscure command lines. | |
4091 | # This happens at least with the AIX C compiler. | |
4092 | : > sub/conftest.c | |
4093 | for i in 1 2 3 4 5 6; do | |
4094 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4095 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4096 | # Solaris 8's {/usr,}/bin/sh. | |
4097 | touch sub/conftst$i.h | |
4098 | done | |
4099 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4100 | ||
8934764e BB |
4101 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4102 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4103 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4104 | # versions had trouble with output in subdirs | |
4105 | am__obj=sub/conftest.${OBJEXT-o} | |
4106 | am__minus_obj="-o $am__obj" | |
bf9f3bac | 4107 | case $depmode in |
8934764e BB |
4108 | gcc) |
4109 | # This depmode causes a compiler race in universal mode. | |
4110 | test "$am__universal" = false || continue | |
4111 | ;; | |
bf9f3bac BB |
4112 | nosideeffect) |
4113 | # after this tag, mechanisms are not by side-effect, so they'll | |
4114 | # only be used when explicitly requested | |
4115 | if test "x$enable_dependency_tracking" = xyes; then | |
4116 | continue | |
4117 | else | |
4118 | break | |
4119 | fi | |
4120 | ;; | |
8934764e BB |
4121 | msvisualcpp | msvcmsys) |
4122 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4123 | # not run yet. These depmodes are late enough in the game, and | |
4124 | # so weak that their functioning should not be impacted. | |
4125 | am__obj=conftest.${OBJEXT-o} | |
4126 | am__minus_obj= | |
4127 | ;; | |
bf9f3bac BB |
4128 | none) break ;; |
4129 | esac | |
bf9f3bac | 4130 | if depmode=$depmode \ |
8934764e | 4131 | source=sub/conftest.c object=$am__obj \ |
bf9f3bac | 4132 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8934764e | 4133 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bf9f3bac | 4134 | >/dev/null 2>conftest.err && |
8934764e | 4135 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bf9f3bac | 4136 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8934764e | 4137 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bf9f3bac BB |
4138 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4139 | # icc doesn't choke on unknown options, it will just issue warnings | |
4140 | # or remarks (even with -Werror). So we grep stderr for any message | |
4141 | # that says an option was ignored or not supported. | |
4142 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4143 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4144 | # The diagnosis changed in icc 8.0: | |
4145 | # icc: Command line remark: option '-MP' not supported | |
4146 | if (grep 'ignoring option' conftest.err || | |
4147 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4148 | am_cv_CC_dependencies_compiler_type=$depmode | |
4149 | break | |
4150 | fi | |
4151 | fi | |
4152 | done | |
4153 | ||
4154 | cd .. | |
4155 | rm -rf conftest.dir | |
4156 | else | |
4157 | am_cv_CC_dependencies_compiler_type=none | |
4158 | fi | |
4159 | ||
4160 | fi | |
8934764e BB |
4161 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4162 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
bf9f3bac BB |
4163 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4164 | ||
8934764e | 4165 | if |
bf9f3bac BB |
4166 | test "x$enable_dependency_tracking" != xno \ |
4167 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4168 | am__fastdepCC_TRUE= | |
4169 | am__fastdepCC_FALSE='#' | |
4170 | else | |
4171 | am__fastdepCC_TRUE='#' | |
4172 | am__fastdepCC_FALSE= | |
4173 | fi | |
4174 | ||
4175 | ||
8934764e BB |
4176 | case `pwd` in |
4177 | *\ * | *\ *) | |
4178 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4179 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4180 | esac | |
bf9f3bac | 4181 | |
bf9f3bac | 4182 | |
bf9f3bac | 4183 | |
8beea9ac BB |
4184 | macro_version='2.2.6b' |
4185 | macro_revision='1.3017' | |
8934764e BB |
4186 | |
4187 | ||
4188 | ||
4189 | ||
4190 | ||
4191 | ||
4192 | ||
4193 | ||
4194 | ||
4195 | ||
4196 | ||
4197 | ||
4198 | ||
4199 | ltmain="$ac_aux_dir/ltmain.sh" | |
4200 | ||
4201 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4202 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4203 | if test "${ac_cv_path_SED+set}" = set; then | |
4204 | $as_echo_n "(cached) " >&6 | |
4205 | else | |
4206 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4207 | for ac_i in 1 2 3 4 5 6 7; do | |
4208 | ac_script="$ac_script$as_nl$ac_script" | |
4209 | done | |
4210 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4211 | $as_unset ac_script || ac_script= | |
4212 | if test -z "$SED"; then | |
4213 | ac_path_SED_found=false | |
4214 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
bf9f3bac BB |
4216 | for as_dir in $PATH |
4217 | do | |
4218 | IFS=$as_save_IFS | |
4219 | test -z "$as_dir" && as_dir=. | |
8934764e | 4220 | for ac_prog in sed gsed; do |
bf9f3bac | 4221 | for ac_exec_ext in '' $ac_executable_extensions; do |
8934764e BB |
4222 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4223 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4224 | # Check for GNU ac_path_SED and select it if it is found. | |
4225 | # Check for GNU $ac_path_SED | |
4226 | case `"$ac_path_SED" --version 2>&1` in | |
4227 | *GNU*) | |
4228 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4229 | *) | |
4230 | ac_count=0 | |
4231 | $as_echo_n 0123456789 >"conftest.in" | |
4232 | while : | |
4233 | do | |
4234 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4235 | mv "conftest.tmp" "conftest.in" | |
4236 | cp "conftest.in" "conftest.nl" | |
4237 | $as_echo '' >> "conftest.nl" | |
4238 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4239 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4240 | ac_count=`expr $ac_count + 1` | |
4241 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4242 | # Best one so far, save it but keep looking for a better one | |
4243 | ac_cv_path_SED="$ac_path_SED" | |
4244 | ac_path_SED_max=$ac_count | |
4245 | fi | |
4246 | # 10*(2^10) chars as input seems more than enough | |
4247 | test $ac_count -gt 10 && break | |
4248 | done | |
4249 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4250 | esac | |
4251 | ||
4252 | $ac_path_SED_found && break 3 | |
bf9f3bac BB |
4253 | done |
4254 | done | |
4255 | done | |
4256 | IFS=$as_save_IFS | |
8934764e BB |
4257 | if test -z "$ac_cv_path_SED"; then |
4258 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
4259 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
4260 | { (exit 1); exit 1; }; } | |
bf9f3bac | 4261 | fi |
8934764e BB |
4262 | else |
4263 | ac_cv_path_SED=$SED | |
4264 | fi | |
bf9f3bac BB |
4265 | |
4266 | fi | |
8934764e BB |
4267 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
4268 | $as_echo "$ac_cv_path_SED" >&6; } | |
4269 | SED="$ac_cv_path_SED" | |
4270 | rm -f conftest.sed | |
4271 | ||
4272 | test -z "$SED" && SED=sed | |
4273 | Xsed="$SED -e 1s/^X//" | |
4274 | ||
4275 | ||
bf9f3bac | 4276 | |
bf9f3bac | 4277 | |
bf9f3bac | 4278 | |
8934764e BB |
4279 | |
4280 | ||
4281 | ||
4282 | ||
4283 | ||
4284 | ||
4285 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
4286 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4287 | if test "${ac_cv_path_GREP+set}" = set; then | |
4288 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 4289 | else |
8934764e BB |
4290 | if test -z "$GREP"; then |
4291 | ac_path_GREP_found=false | |
4292 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4294 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4295 | do | |
4296 | IFS=$as_save_IFS | |
4297 | test -z "$as_dir" && as_dir=. | |
4298 | for ac_prog in grep ggrep; do | |
4299 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4300 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4301 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4302 | # Check for GNU ac_path_GREP and select it if it is found. | |
4303 | # Check for GNU $ac_path_GREP | |
4304 | case `"$ac_path_GREP" --version 2>&1` in | |
4305 | *GNU*) | |
4306 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4307 | *) | |
4308 | ac_count=0 | |
4309 | $as_echo_n 0123456789 >"conftest.in" | |
4310 | while : | |
4311 | do | |
4312 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4313 | mv "conftest.tmp" "conftest.in" | |
4314 | cp "conftest.in" "conftest.nl" | |
4315 | $as_echo 'GREP' >> "conftest.nl" | |
4316 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4317 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4318 | ac_count=`expr $ac_count + 1` | |
4319 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4320 | # Best one so far, save it but keep looking for a better one | |
4321 | ac_cv_path_GREP="$ac_path_GREP" | |
4322 | ac_path_GREP_max=$ac_count | |
bf9f3bac | 4323 | fi |
8934764e BB |
4324 | # 10*(2^10) chars as input seems more than enough |
4325 | test $ac_count -gt 10 && break | |
4326 | done | |
4327 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4328 | esac | |
4329 | ||
4330 | $ac_path_GREP_found && break 3 | |
4331 | done | |
4332 | done | |
4333 | done | |
4334 | IFS=$as_save_IFS | |
4335 | if test -z "$ac_cv_path_GREP"; then | |
4336 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4337 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4338 | { (exit 1); exit 1; }; } | |
4339 | fi | |
4340 | else | |
4341 | ac_cv_path_GREP=$GREP | |
bf9f3bac | 4342 | fi |
bf9f3bac | 4343 | |
8934764e BB |
4344 | fi |
4345 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4346 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4347 | GREP="$ac_cv_path_GREP" | |
bf9f3bac BB |
4348 | |
4349 | ||
8934764e BB |
4350 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
4351 | $as_echo_n "checking for egrep... " >&6; } | |
4352 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4353 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 4354 | else |
8934764e BB |
4355 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4356 | then ac_cv_path_EGREP="$GREP -E" | |
4357 | else | |
4358 | if test -z "$EGREP"; then | |
4359 | ac_path_EGREP_found=false | |
4360 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4362 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4363 | do | |
4364 | IFS=$as_save_IFS | |
4365 | test -z "$as_dir" && as_dir=. | |
4366 | for ac_prog in egrep; do | |
4367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4368 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4369 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4370 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4371 | # Check for GNU $ac_path_EGREP | |
4372 | case `"$ac_path_EGREP" --version 2>&1` in | |
4373 | *GNU*) | |
4374 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4375 | *) | |
4376 | ac_count=0 | |
4377 | $as_echo_n 0123456789 >"conftest.in" | |
4378 | while : | |
4379 | do | |
4380 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4381 | mv "conftest.tmp" "conftest.in" | |
4382 | cp "conftest.in" "conftest.nl" | |
4383 | $as_echo 'EGREP' >> "conftest.nl" | |
4384 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4385 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4386 | ac_count=`expr $ac_count + 1` | |
4387 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4388 | # Best one so far, save it but keep looking for a better one | |
4389 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4390 | ac_path_EGREP_max=$ac_count | |
4391 | fi | |
4392 | # 10*(2^10) chars as input seems more than enough | |
4393 | test $ac_count -gt 10 && break | |
4394 | done | |
4395 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4396 | esac | |
4397 | ||
4398 | $ac_path_EGREP_found && break 3 | |
4399 | done | |
4400 | done | |
4401 | done | |
4402 | IFS=$as_save_IFS | |
4403 | if test -z "$ac_cv_path_EGREP"; then | |
4404 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4405 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4406 | { (exit 1); exit 1; }; } | |
4407 | fi | |
bf9f3bac | 4408 | else |
8934764e BB |
4409 | ac_cv_path_EGREP=$EGREP |
4410 | fi | |
4411 | ||
4412 | fi | |
4413 | fi | |
4414 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4415 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4416 | EGREP="$ac_cv_path_EGREP" | |
4417 | ||
4418 | ||
4419 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4420 | $as_echo_n "checking for fgrep... " >&6; } | |
4421 | if test "${ac_cv_path_FGREP+set}" = set; then | |
4422 | $as_echo_n "(cached) " >&6 | |
4423 | else | |
4424 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4425 | then ac_cv_path_FGREP="$GREP -F" | |
4426 | else | |
4427 | if test -z "$FGREP"; then | |
4428 | ac_path_FGREP_found=false | |
4429 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4431 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4432 | do | |
4433 | IFS=$as_save_IFS | |
4434 | test -z "$as_dir" && as_dir=. | |
4435 | for ac_prog in fgrep; do | |
4436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4437 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4438 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4439 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4440 | # Check for GNU $ac_path_FGREP | |
4441 | case `"$ac_path_FGREP" --version 2>&1` in | |
4442 | *GNU*) | |
4443 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4444 | *) | |
4445 | ac_count=0 | |
4446 | $as_echo_n 0123456789 >"conftest.in" | |
4447 | while : | |
4448 | do | |
4449 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4450 | mv "conftest.tmp" "conftest.in" | |
4451 | cp "conftest.in" "conftest.nl" | |
4452 | $as_echo 'FGREP' >> "conftest.nl" | |
4453 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4454 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4455 | ac_count=`expr $ac_count + 1` | |
4456 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4457 | # Best one so far, save it but keep looking for a better one | |
4458 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4459 | ac_path_FGREP_max=$ac_count | |
4460 | fi | |
4461 | # 10*(2^10) chars as input seems more than enough | |
4462 | test $ac_count -gt 10 && break | |
4463 | done | |
4464 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4465 | esac | |
4466 | ||
4467 | $ac_path_FGREP_found && break 3 | |
4468 | done | |
4469 | done | |
4470 | done | |
4471 | IFS=$as_save_IFS | |
4472 | if test -z "$ac_cv_path_FGREP"; then | |
4473 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4474 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4475 | { (exit 1); exit 1; }; } | |
4476 | fi | |
4477 | else | |
4478 | ac_cv_path_FGREP=$FGREP | |
4479 | fi | |
4480 | ||
4481 | fi | |
4482 | fi | |
4483 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 | |
4484 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4485 | FGREP="$ac_cv_path_FGREP" | |
4486 | ||
4487 | ||
4488 | test -z "$GREP" && GREP=grep | |
4489 | ||
4490 | ||
4491 | ||
4492 | ||
4493 | ||
4494 | ||
4495 | ||
4496 | ||
4497 | ||
4498 | ||
4499 | ||
4500 | ||
4501 | ||
4502 | ||
4503 | ||
4504 | ||
4505 | ||
4506 | ||
4507 | ||
4508 | # Check whether --with-gnu-ld was given. | |
4509 | if test "${with_gnu_ld+set}" = set; then | |
4510 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4511 | else | |
4512 | with_gnu_ld=no | |
4513 | fi | |
4514 | ||
4515 | ac_prog=ld | |
4516 | if test "$GCC" = yes; then | |
4517 | # Check if gcc -print-prog-name=ld gives a path. | |
4518 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
4519 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4520 | case $host in | |
4521 | *-*-mingw*) | |
4522 | # gcc leaves a trailing carriage return which upsets mingw | |
4523 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4524 | *) | |
4525 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4526 | esac | |
4527 | case $ac_prog in | |
4528 | # Accept absolute paths. | |
4529 | [\\/]* | ?:[\\/]*) | |
4530 | re_direlt='/[^/][^/]*/\.\./' | |
4531 | # Canonicalize the pathname of ld | |
4532 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4533 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4534 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4535 | done | |
4536 | test -z "$LD" && LD="$ac_prog" | |
4537 | ;; | |
4538 | "") | |
4539 | # If it fails, then pretend we aren't using GCC. | |
4540 | ac_prog=ld | |
4541 | ;; | |
4542 | *) | |
4543 | # If it is relative, then search for the first ld in PATH. | |
4544 | with_gnu_ld=unknown | |
4545 | ;; | |
4546 | esac | |
4547 | elif test "$with_gnu_ld" = yes; then | |
4548 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4549 | $as_echo_n "checking for GNU ld... " >&6; } | |
4550 | else | |
4551 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4552 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
bf9f3bac BB |
4553 | fi |
4554 | if test "${lt_cv_path_LD+set}" = set; then | |
8934764e | 4555 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
4556 | else |
4557 | if test -z "$LD"; then | |
4558 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4559 | for ac_dir in $PATH; do | |
4560 | IFS="$lt_save_ifs" | |
4561 | test -z "$ac_dir" && ac_dir=. | |
4562 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4563 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4564 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4565 | # but apparently some variants of GNU ld only accept -v. | |
4566 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4567 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4568 | *GNU* | *'with BFD'*) | |
4569 | test "$with_gnu_ld" != no && break | |
4570 | ;; | |
4571 | *) | |
4572 | test "$with_gnu_ld" != yes && break | |
4573 | ;; | |
4574 | esac | |
4575 | fi | |
4576 | done | |
4577 | IFS="$lt_save_ifs" | |
4578 | else | |
4579 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4580 | fi | |
4581 | fi | |
4582 | ||
4583 | LD="$lt_cv_path_LD" | |
4584 | if test -n "$LD"; then | |
8934764e BB |
4585 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
4586 | $as_echo "$LD" >&6; } | |
bf9f3bac | 4587 | else |
8934764e BB |
4588 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4589 | $as_echo "no" >&6; } | |
bf9f3bac | 4590 | fi |
8934764e BB |
4591 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4592 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
bf9f3bac | 4593 | { (exit 1); exit 1; }; } |
8934764e BB |
4594 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4595 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
bf9f3bac | 4596 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
8934764e | 4597 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
4598 | else |
4599 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4600 | case `$LD -v 2>&1 </dev/null` in | |
4601 | *GNU* | *'with BFD'*) | |
4602 | lt_cv_prog_gnu_ld=yes | |
4603 | ;; | |
4604 | *) | |
4605 | lt_cv_prog_gnu_ld=no | |
4606 | ;; | |
4607 | esac | |
4608 | fi | |
8934764e BB |
4609 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4610 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
bf9f3bac BB |
4611 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4612 | ||
4613 | ||
bf9f3bac | 4614 | |
8934764e BB |
4615 | |
4616 | ||
4617 | ||
4618 | ||
4619 | ||
4620 | ||
4621 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4622 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
bf9f3bac | 4623 | if test "${lt_cv_path_NM+set}" = set; then |
8934764e | 4624 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
4625 | else |
4626 | if test -n "$NM"; then | |
4627 | # Let the user override the test. | |
4628 | lt_cv_path_NM="$NM" | |
4629 | else | |
4630 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4631 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4632 | lt_nm_to_check="$lt_nm_to_check nm" | |
4633 | fi | |
4634 | for lt_tmp_nm in $lt_nm_to_check; do | |
4635 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4636 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4637 | IFS="$lt_save_ifs" | |
4638 | test -z "$ac_dir" && ac_dir=. | |
4639 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4640 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4641 | # Check to see if the nm accepts a BSD-compat flag. | |
4642 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4643 | # nm: unknown option "B" ignored | |
4644 | # Tru64's nm complains that /dev/null is an invalid object file | |
4645 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4646 | */dev/null* | *'Invalid file or object type'*) | |
4647 | lt_cv_path_NM="$tmp_nm -B" | |
4648 | break | |
4649 | ;; | |
4650 | *) | |
4651 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4652 | */dev/null*) | |
4653 | lt_cv_path_NM="$tmp_nm -p" | |
4654 | break | |
4655 | ;; | |
4656 | *) | |
4657 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4658 | continue # so that we can try to find one that supports BSD flags | |
4659 | ;; | |
4660 | esac | |
4661 | ;; | |
4662 | esac | |
4663 | fi | |
4664 | done | |
4665 | IFS="$lt_save_ifs" | |
4666 | done | |
8934764e | 4667 | : ${lt_cv_path_NM=no} |
bf9f3bac BB |
4668 | fi |
4669 | fi | |
8934764e BB |
4670 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4671 | $as_echo "$lt_cv_path_NM" >&6; } | |
4672 | if test "$lt_cv_path_NM" != "no"; then | |
4673 | NM="$lt_cv_path_NM" | |
4674 | else | |
4675 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4676 | if test -n "$ac_tool_prefix"; then | |
4677 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4678 | do | |
4679 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4680 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4681 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4682 | $as_echo_n "checking for $ac_word... " >&6; } | |
4683 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4684 | $as_echo_n "(cached) " >&6 | |
4685 | else | |
4686 | if test -n "$DUMPBIN"; then | |
4687 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4688 | else | |
4689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4690 | for as_dir in $PATH | |
4691 | do | |
4692 | IFS=$as_save_IFS | |
4693 | test -z "$as_dir" && as_dir=. | |
4694 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4695 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4696 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4697 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4698 | break 2 | |
4699 | fi | |
4700 | done | |
4701 | done | |
4702 | IFS=$as_save_IFS | |
bf9f3bac | 4703 | |
8934764e BB |
4704 | fi |
4705 | fi | |
4706 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4707 | if test -n "$DUMPBIN"; then | |
4708 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4709 | $as_echo "$DUMPBIN" >&6; } | |
bf9f3bac | 4710 | else |
8934764e BB |
4711 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4712 | $as_echo "no" >&6; } | |
bf9f3bac BB |
4713 | fi |
4714 | ||
bf9f3bac | 4715 | |
8934764e BB |
4716 | test -n "$DUMPBIN" && break |
4717 | done | |
4718 | fi | |
4719 | if test -z "$DUMPBIN"; then | |
4720 | ac_ct_DUMPBIN=$DUMPBIN | |
4721 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4722 | do | |
4723 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4724 | set dummy $ac_prog; ac_word=$2 | |
4725 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4726 | $as_echo_n "checking for $ac_word... " >&6; } | |
4727 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4728 | $as_echo_n "(cached) " >&6 | |
4729 | else | |
4730 | if test -n "$ac_ct_DUMPBIN"; then | |
4731 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4732 | else | |
4733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4734 | for as_dir in $PATH | |
4735 | do | |
4736 | IFS=$as_save_IFS | |
4737 | test -z "$as_dir" && as_dir=. | |
4738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4740 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4741 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4742 | break 2 | |
4743 | fi | |
4744 | done | |
4745 | done | |
4746 | IFS=$as_save_IFS | |
bf9f3bac | 4747 | |
8934764e BB |
4748 | fi |
4749 | fi | |
4750 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4751 | if test -n "$ac_ct_DUMPBIN"; then | |
4752 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4753 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4754 | else | |
4755 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4756 | $as_echo "no" >&6; } | |
4757 | fi | |
bf9f3bac | 4758 | |
bf9f3bac | 4759 | |
8934764e BB |
4760 | test -n "$ac_ct_DUMPBIN" && break |
4761 | done | |
bf9f3bac | 4762 | |
8934764e BB |
4763 | if test "x$ac_ct_DUMPBIN" = x; then |
4764 | DUMPBIN=":" | |
4765 | else | |
4766 | case $cross_compiling:$ac_tool_warned in | |
4767 | yes:) | |
4768 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4769 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4770 | ac_tool_warned=yes ;; | |
4771 | esac | |
4772 | DUMPBIN=$ac_ct_DUMPBIN | |
4773 | fi | |
4774 | fi | |
bf9f3bac | 4775 | |
bf9f3bac | 4776 | |
8934764e BB |
4777 | if test "$DUMPBIN" != ":"; then |
4778 | NM="$DUMPBIN" | |
bf9f3bac | 4779 | fi |
8934764e BB |
4780 | fi |
4781 | test -z "$NM" && NM=nm | |
bf9f3bac | 4782 | |
bf9f3bac | 4783 | |
bf9f3bac | 4784 | |
bf9f3bac | 4785 | |
bf9f3bac | 4786 | |
bf9f3bac | 4787 | |
8934764e BB |
4788 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4789 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4790 | if test "${lt_cv_nm_interface+set}" = set; then | |
4791 | $as_echo_n "(cached) " >&6 | |
4792 | else | |
4793 | lt_cv_nm_interface="BSD nm" | |
4794 | echo "int some_variable = 0;" > conftest.$ac_ext | |
0408008b | 4795 | (eval echo "\"\$as_me:4795: $ac_compile\"" >&5) |
8934764e BB |
4796 | (eval "$ac_compile" 2>conftest.err) |
4797 | cat conftest.err >&5 | |
0408008b | 4798 | (eval echo "\"\$as_me:4798: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8934764e BB |
4799 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4800 | cat conftest.err >&5 | |
0408008b | 4801 | (eval echo "\"\$as_me:4801: output\"" >&5) |
8934764e BB |
4802 | cat conftest.out >&5 |
4803 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4804 | lt_cv_nm_interface="MS dumpbin" | |
bf9f3bac | 4805 | fi |
8934764e BB |
4806 | rm -f conftest* |
4807 | fi | |
4808 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4809 | $as_echo "$lt_cv_nm_interface" >&6; } | |
bf9f3bac | 4810 | |
8934764e BB |
4811 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4812 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4813 | LN_S=$as_ln_s | |
4814 | if test "$LN_S" = "ln -s"; then | |
4815 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
4816 | $as_echo "yes" >&6; } | |
4817 | else | |
4818 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4819 | $as_echo "no, using $LN_S" >&6; } | |
4820 | fi | |
bf9f3bac | 4821 | |
8934764e BB |
4822 | # find the maximum length of command line arguments |
4823 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4824 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4825 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4826 | $as_echo_n "(cached) " >&6 | |
4827 | else | |
4828 | i=0 | |
4829 | teststring="ABCD" | |
bf9f3bac | 4830 | |
8934764e BB |
4831 | case $build_os in |
4832 | msdosdjgpp*) | |
4833 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4834 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4835 | # during glob expansion). Even if it were fixed, the result of this | |
4836 | # check would be larger than it should be. | |
4837 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4838 | ;; | |
bf9f3bac | 4839 | |
8934764e BB |
4840 | gnu*) |
4841 | # Under GNU Hurd, this test is not required because there is | |
4842 | # no limit to the length of command line arguments. | |
4843 | # Libtool will interpret -1 as no limit whatsoever | |
4844 | lt_cv_sys_max_cmd_len=-1; | |
4845 | ;; | |
bf9f3bac | 4846 | |
8934764e BB |
4847 | cygwin* | mingw* | cegcc*) |
4848 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4849 | # about 5 minutes as the teststring grows exponentially. | |
4850 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4851 | # you end up with a "frozen" computer, even though with patience | |
4852 | # the test eventually succeeds (with a max line length of 256k). | |
4853 | # Instead, let's just punt: use the minimum linelength reported by | |
4854 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4855 | lt_cv_sys_max_cmd_len=8192; | |
4856 | ;; | |
bf9f3bac | 4857 | |
8934764e BB |
4858 | amigaos*) |
4859 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4860 | # So we just punt and use a minimum line length of 8192. | |
4861 | lt_cv_sys_max_cmd_len=8192; | |
bf9f3bac | 4862 | ;; |
8934764e BB |
4863 | |
4864 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4865 | # This has been around since 386BSD, at least. Likely further. | |
4866 | if test -x /sbin/sysctl; then | |
4867 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4868 | elif test -x /usr/sbin/sysctl; then | |
4869 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4870 | else | |
4871 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4872 | fi | |
4873 | # And add a safety zone | |
4874 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4875 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
bf9f3bac | 4876 | ;; |
8934764e BB |
4877 | |
4878 | interix*) | |
4879 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4880 | lt_cv_sys_max_cmd_len=196608 | |
bf9f3bac | 4881 | ;; |
8934764e BB |
4882 | |
4883 | osf*) | |
4884 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4885 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4886 | # nice to cause kernel panics so lets avoid the loop below. | |
4887 | # First set a reasonable default. | |
4888 | lt_cv_sys_max_cmd_len=16384 | |
4889 | # | |
4890 | if test -x /sbin/sysconfig; then | |
4891 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4892 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4893 | esac | |
4894 | fi | |
bf9f3bac | 4895 | ;; |
8934764e BB |
4896 | sco3.2v5*) |
4897 | lt_cv_sys_max_cmd_len=102400 | |
bf9f3bac | 4898 | ;; |
8934764e BB |
4899 | sysv5* | sco5v6* | sysv4.2uw2*) |
4900 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4901 | if test -n "$kargmax"; then | |
4902 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4903 | else | |
4904 | lt_cv_sys_max_cmd_len=32768 | |
4905 | fi | |
4906 | ;; | |
4907 | *) | |
4908 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4909 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4910 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4911 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4912 | else | |
4913 | # Make teststring a little bigger before we do anything with it. | |
4914 | # a 1K string should be a reasonable start. | |
4915 | for i in 1 2 3 4 5 6 7 8 ; do | |
4916 | teststring=$teststring$teststring | |
4917 | done | |
4918 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4919 | # If test is not a shell built-in, we'll probably end up computing a | |
4920 | # maximum length that is only half of the actual maximum length, but | |
4921 | # we can't tell. | |
4922 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4923 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4924 | test $i != 17 # 1/2 MB should be enough | |
4925 | do | |
4926 | i=`expr $i + 1` | |
4927 | teststring=$teststring$teststring | |
4928 | done | |
4929 | # Only check the string length outside the loop. | |
4930 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4931 | teststring= | |
4932 | # Add a significant safety factor because C++ compilers can tack on | |
4933 | # massive amounts of additional arguments before passing them to the | |
4934 | # linker. It appears as though 1/2 is a usable value. | |
4935 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4936 | fi | |
bf9f3bac BB |
4937 | ;; |
4938 | esac | |
bf9f3bac | 4939 | |
8934764e | 4940 | fi |
bf9f3bac | 4941 | |
8934764e BB |
4942 | if test -n $lt_cv_sys_max_cmd_len ; then |
4943 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4944 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4945 | else | |
4946 | { $as_echo "$as_me:$LINENO: result: none" >&5 | |
4947 | $as_echo "none" >&6; } | |
bf9f3bac | 4948 | fi |
8934764e | 4949 | max_cmd_len=$lt_cv_sys_max_cmd_len |
bf9f3bac BB |
4950 | |
4951 | ||
4952 | ||
4953 | ||
bf9f3bac | 4954 | |
bf9f3bac | 4955 | |
8934764e BB |
4956 | : ${CP="cp -f"} |
4957 | : ${MV="mv -f"} | |
4958 | : ${RM="rm -f"} | |
bf9f3bac | 4959 | |
8934764e BB |
4960 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
4961 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4962 | # Try some XSI features | |
4963 | xsi_shell=no | |
4964 | ( _lt_dummy="a/b/c" | |
4965 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4966 | = c,a/b,, \ | |
4967 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4968 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4969 | && xsi_shell=yes | |
4970 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4971 | $as_echo "$xsi_shell" >&6; } | |
bf9f3bac | 4972 | |
bf9f3bac | 4973 | |
8934764e BB |
4974 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
4975 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4976 | lt_shell_append=no | |
4977 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4978 | >/dev/null 2>&1 \ | |
4979 | && lt_shell_append=yes | |
4980 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4981 | $as_echo "$lt_shell_append" >&6; } | |
bf9f3bac | 4982 | |
8934764e BB |
4983 | |
4984 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4985 | lt_unset=unset | |
4986 | else | |
4987 | lt_unset=false | |
4988 | fi | |
4989 | ||
4990 | ||
4991 | ||
4992 | ||
4993 | ||
4994 | # test EBCDIC or ASCII | |
4995 | case `echo X|tr X '\101'` in | |
4996 | A) # ASCII based system | |
4997 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4998 | lt_SP2NL='tr \040 \012' | |
4999 | lt_NL2SP='tr \015\012 \040\040' | |
bf9f3bac | 5000 | ;; |
8934764e BB |
5001 | *) # EBCDIC based system |
5002 | lt_SP2NL='tr \100 \n' | |
5003 | lt_NL2SP='tr \r\n \100\100' | |
bf9f3bac | 5004 | ;; |
8934764e BB |
5005 | esac |
5006 | ||
bf9f3bac | 5007 | |
bf9f3bac | 5008 | |
bf9f3bac | 5009 | |
bf9f3bac | 5010 | |
bf9f3bac | 5011 | |
bf9f3bac | 5012 | |
bf9f3bac | 5013 | |
8934764e BB |
5014 | |
5015 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
5016 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5017 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5018 | $as_echo_n "(cached) " >&6 | |
5019 | else | |
5020 | lt_cv_ld_reload_flag='-r' | |
bf9f3bac | 5021 | fi |
8934764e BB |
5022 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
5023 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5024 | reload_flag=$lt_cv_ld_reload_flag | |
5025 | case $reload_flag in | |
5026 | "" | " "*) ;; | |
5027 | *) reload_flag=" $reload_flag" ;; | |
5028 | esac | |
5029 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5030 | case $host_os in | |
5031 | darwin*) | |
5032 | if test "$GCC" = yes; then | |
5033 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5034 | else | |
5035 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5036 | fi | |
5037 | ;; | |
5038 | esac | |
bf9f3bac BB |
5039 | |
5040 | ||
bf9f3bac | 5041 | |
bf9f3bac BB |
5042 | |
5043 | ||
8934764e BB |
5044 | |
5045 | ||
5046 | ||
5047 | ||
5048 | if test -n "$ac_tool_prefix"; then | |
5049 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5050 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5051 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5052 | $as_echo_n "checking for $ac_word... " >&6; } | |
5053 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
5054 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5055 | else |
8934764e BB |
5056 | if test -n "$OBJDUMP"; then |
5057 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5058 | else | |
5059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5060 | for as_dir in $PATH | |
bf9f3bac | 5061 | do |
8934764e BB |
5062 | IFS=$as_save_IFS |
5063 | test -z "$as_dir" && as_dir=. | |
5064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5066 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5067 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5068 | break 2 | |
bf9f3bac | 5069 | fi |
8934764e BB |
5070 | done |
5071 | done | |
5072 | IFS=$as_save_IFS | |
bf9f3bac | 5073 | |
bf9f3bac | 5074 | fi |
bf9f3bac | 5075 | fi |
8934764e BB |
5076 | OBJDUMP=$ac_cv_prog_OBJDUMP |
5077 | if test -n "$OBJDUMP"; then | |
5078 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
5079 | $as_echo "$OBJDUMP" >&6; } | |
bf9f3bac | 5080 | else |
8934764e BB |
5081 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5082 | $as_echo "no" >&6; } | |
bf9f3bac BB |
5083 | fi |
5084 | ||
bf9f3bac BB |
5085 | |
5086 | fi | |
8934764e BB |
5087 | if test -z "$ac_cv_prog_OBJDUMP"; then |
5088 | ac_ct_OBJDUMP=$OBJDUMP | |
5089 | # Extract the first word of "objdump", so it can be a program name with args. | |
5090 | set dummy objdump; ac_word=$2 | |
5091 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5092 | $as_echo_n "checking for $ac_word... " >&6; } | |
5093 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
5094 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5095 | else |
8934764e BB |
5096 | if test -n "$ac_ct_OBJDUMP"; then |
5097 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5098 | else | |
5099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5100 | for as_dir in $PATH | |
bf9f3bac | 5101 | do |
8934764e BB |
5102 | IFS=$as_save_IFS |
5103 | test -z "$as_dir" && as_dir=. | |
5104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5105 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5106 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5107 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5108 | break 2 | |
bf9f3bac | 5109 | fi |
8934764e BB |
5110 | done |
5111 | done | |
5112 | IFS=$as_save_IFS | |
5113 | ||
bf9f3bac | 5114 | fi |
8934764e BB |
5115 | fi |
5116 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5117 | if test -n "$ac_ct_OBJDUMP"; then | |
5118 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
5119 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
bf9f3bac | 5120 | else |
8934764e BB |
5121 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5122 | $as_echo "no" >&6; } | |
bf9f3bac | 5123 | fi |
bf9f3bac | 5124 | |
8934764e BB |
5125 | if test "x$ac_ct_OBJDUMP" = x; then |
5126 | OBJDUMP="false" | |
bf9f3bac | 5127 | else |
8934764e BB |
5128 | case $cross_compiling:$ac_tool_warned in |
5129 | yes:) | |
5130 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5131 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5132 | ac_tool_warned=yes ;; | |
5133 | esac | |
5134 | OBJDUMP=$ac_ct_OBJDUMP | |
bf9f3bac BB |
5135 | fi |
5136 | else | |
8934764e | 5137 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
bf9f3bac | 5138 | fi |
bf9f3bac | 5139 | |
8934764e | 5140 | test -z "$OBJDUMP" && OBJDUMP=objdump |
bf9f3bac | 5141 | |
bf9f3bac | 5142 | |
bf9f3bac BB |
5143 | |
5144 | ||
bf9f3bac | 5145 | |
bf9f3bac | 5146 | |
bf9f3bac | 5147 | |
bf9f3bac | 5148 | |
bf9f3bac | 5149 | |
8934764e BB |
5150 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
5151 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5152 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
5153 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5154 | else |
8934764e BB |
5155 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5156 | lt_cv_file_magic_test_file= | |
5157 | lt_cv_deplibs_check_method='unknown' | |
5158 | # Need to set the preceding variable on all platforms that support | |
5159 | # interlibrary dependencies. | |
5160 | # 'none' -- dependencies not supported. | |
5161 | # `unknown' -- same as none, but documents that we really don't know. | |
5162 | # 'pass_all' -- all dependencies passed with no checks. | |
5163 | # 'test_compile' -- check by making test program. | |
5164 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5165 | # which responds to the $file_magic_cmd with a given extended regex. | |
5166 | # If you have `file' or equivalent on your system and you're not sure | |
5167 | # whether `pass_all' will *always* work, you probably want this one. | |
bf9f3bac | 5168 | |
8934764e BB |
5169 | case $host_os in |
5170 | aix[4-9]*) | |
5171 | lt_cv_deplibs_check_method=pass_all | |
5172 | ;; | |
bf9f3bac | 5173 | |
8934764e BB |
5174 | beos*) |
5175 | lt_cv_deplibs_check_method=pass_all | |
5176 | ;; | |
bf9f3bac | 5177 | |
8934764e BB |
5178 | bsdi[45]*) |
5179 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5180 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5181 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5182 | ;; | |
bf9f3bac | 5183 | |
8934764e BB |
5184 | cygwin*) |
5185 | # func_win32_libid is a shell function defined in ltmain.sh | |
5186 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5187 | lt_cv_file_magic_cmd='func_win32_libid' | |
5188 | ;; | |
bf9f3bac | 5189 | |
8934764e BB |
5190 | mingw* | pw32*) |
5191 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5192 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5193 | # unless we find 'file', for example because we are cross-compiling. | |
5194 | if ( file / ) >/dev/null 2>&1; then | |
5195 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5196 | lt_cv_file_magic_cmd='func_win32_libid' | |
5197 | else | |
5198 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5199 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5200 | fi | |
5201 | ;; | |
bf9f3bac | 5202 | |
8934764e BB |
5203 | cegcc) |
5204 | # use the weaker test based on 'objdump'. See mingw*. | |
5205 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5206 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5207 | ;; | |
bf9f3bac | 5208 | |
8934764e BB |
5209 | darwin* | rhapsody*) |
5210 | lt_cv_deplibs_check_method=pass_all | |
5211 | ;; | |
bf9f3bac | 5212 | |
8934764e BB |
5213 | freebsd* | dragonfly*) |
5214 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5215 | case $host_cpu in | |
5216 | i*86 ) | |
5217 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5218 | # Let's accept both of them until this is cleared up. | |
5219 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5220 | lt_cv_file_magic_cmd=/usr/bin/file | |
5221 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5222 | ;; | |
5223 | esac | |
5224 | else | |
5225 | lt_cv_deplibs_check_method=pass_all | |
5226 | fi | |
5227 | ;; | |
bf9f3bac | 5228 | |
8934764e BB |
5229 | gnu*) |
5230 | lt_cv_deplibs_check_method=pass_all | |
5231 | ;; | |
bf9f3bac | 5232 | |
8934764e BB |
5233 | hpux10.20* | hpux11*) |
5234 | lt_cv_file_magic_cmd=/usr/bin/file | |
5235 | case $host_cpu in | |
5236 | ia64*) | |
5237 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5238 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5239 | ;; | |
5240 | hppa*64*) | |
5241 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
5242 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5243 | ;; | |
5244 | *) | |
5245 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5246 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5247 | ;; | |
5248 | esac | |
5249 | ;; | |
bf9f3bac | 5250 | |
8934764e BB |
5251 | interix[3-9]*) |
5252 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5253 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5254 | ;; | |
bf9f3bac | 5255 | |
8934764e BB |
5256 | irix5* | irix6* | nonstopux*) |
5257 | case $LD in | |
5258 | *-32|*"-32 ") libmagic=32-bit;; | |
5259 | *-n32|*"-n32 ") libmagic=N32;; | |
5260 | *-64|*"-64 ") libmagic=64-bit;; | |
5261 | *) libmagic=never-match;; | |
5262 | esac | |
5263 | lt_cv_deplibs_check_method=pass_all | |
5264 | ;; | |
bf9f3bac | 5265 | |
8934764e BB |
5266 | # This must be Linux ELF. |
5267 | linux* | k*bsd*-gnu) | |
5268 | lt_cv_deplibs_check_method=pass_all | |
5269 | ;; | |
bf9f3bac | 5270 | |
8934764e BB |
5271 | netbsd*) |
5272 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5273 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5274 | else | |
5275 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5276 | fi | |
5277 | ;; | |
bf9f3bac | 5278 | |
8934764e BB |
5279 | newos6*) |
5280 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5281 | lt_cv_file_magic_cmd=/usr/bin/file | |
5282 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5283 | ;; | |
bf9f3bac | 5284 | |
8934764e BB |
5285 | *nto* | *qnx*) |
5286 | lt_cv_deplibs_check_method=pass_all | |
5287 | ;; | |
bf9f3bac | 5288 | |
8934764e BB |
5289 | openbsd*) |
5290 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5291 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5292 | else | |
5293 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5294 | fi | |
5295 | ;; | |
bf9f3bac | 5296 | |
8934764e BB |
5297 | osf3* | osf4* | osf5*) |
5298 | lt_cv_deplibs_check_method=pass_all | |
5299 | ;; | |
bf9f3bac | 5300 | |
8934764e BB |
5301 | rdos*) |
5302 | lt_cv_deplibs_check_method=pass_all | |
5303 | ;; | |
bf9f3bac | 5304 | |
8934764e BB |
5305 | solaris*) |
5306 | lt_cv_deplibs_check_method=pass_all | |
5307 | ;; | |
bf9f3bac | 5308 | |
8934764e BB |
5309 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5310 | lt_cv_deplibs_check_method=pass_all | |
5311 | ;; | |
bf9f3bac | 5312 | |
8934764e BB |
5313 | sysv4 | sysv4.3*) |
5314 | case $host_vendor in | |
5315 | motorola) | |
5316 | 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]' | |
5317 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
bf9f3bac | 5318 | ;; |
8934764e BB |
5319 | ncr) |
5320 | lt_cv_deplibs_check_method=pass_all | |
5321 | ;; | |
5322 | sequent) | |
5323 | lt_cv_file_magic_cmd='/bin/file' | |
5324 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5325 | ;; | |
5326 | sni) | |
5327 | lt_cv_file_magic_cmd='/bin/file' | |
5328 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5329 | lt_cv_file_magic_test_file=/lib/libc.so | |
5330 | ;; | |
5331 | siemens) | |
5332 | lt_cv_deplibs_check_method=pass_all | |
5333 | ;; | |
5334 | pc) | |
5335 | lt_cv_deplibs_check_method=pass_all | |
bf9f3bac | 5336 | ;; |
8934764e BB |
5337 | esac |
5338 | ;; | |
5339 | ||
5340 | tpf*) | |
5341 | lt_cv_deplibs_check_method=pass_all | |
5342 | ;; | |
bf9f3bac | 5343 | esac |
bf9f3bac BB |
5344 | |
5345 | fi | |
8934764e BB |
5346 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5347 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5348 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5349 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5350 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5351 | ||
5352 | ||
5353 | ||
5354 | ||
5355 | ||
5356 | ||
5357 | ||
5358 | ||
5359 | ||
bf9f3bac | 5360 | |
bf9f3bac | 5361 | |
bf9f3bac | 5362 | |
bf9f3bac | 5363 | if test -n "$ac_tool_prefix"; then |
8934764e BB |
5364 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5365 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5366 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5367 | $as_echo_n "checking for $ac_word... " >&6; } | |
5368 | if test "${ac_cv_prog_AR+set}" = set; then | |
5369 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5370 | else |
8934764e BB |
5371 | if test -n "$AR"; then |
5372 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
bf9f3bac BB |
5373 | else |
5374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5375 | for as_dir in $PATH | |
5376 | do | |
5377 | IFS=$as_save_IFS | |
5378 | test -z "$as_dir" && as_dir=. | |
5379 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
5380 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5381 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5382 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
5383 | break 2 |
5384 | fi | |
5385 | done | |
5386 | done | |
8934764e | 5387 | IFS=$as_save_IFS |
bf9f3bac BB |
5388 | |
5389 | fi | |
5390 | fi | |
8934764e BB |
5391 | AR=$ac_cv_prog_AR |
5392 | if test -n "$AR"; then | |
5393 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 | |
5394 | $as_echo "$AR" >&6; } | |
bf9f3bac | 5395 | else |
8934764e BB |
5396 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5397 | $as_echo "no" >&6; } | |
bf9f3bac BB |
5398 | fi |
5399 | ||
8934764e | 5400 | |
bf9f3bac | 5401 | fi |
8934764e BB |
5402 | if test -z "$ac_cv_prog_AR"; then |
5403 | ac_ct_AR=$AR | |
5404 | # Extract the first word of "ar", so it can be a program name with args. | |
5405 | set dummy ar; ac_word=$2 | |
5406 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5407 | $as_echo_n "checking for $ac_word... " >&6; } | |
5408 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5409 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5410 | else |
8934764e BB |
5411 | if test -n "$ac_ct_AR"; then |
5412 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
bf9f3bac BB |
5413 | else |
5414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5415 | for as_dir in $PATH | |
5416 | do | |
5417 | IFS=$as_save_IFS | |
5418 | test -z "$as_dir" && as_dir=. | |
5419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
5420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5421 | ac_cv_prog_ac_ct_AR="ar" | |
5422 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
5423 | break 2 |
5424 | fi | |
5425 | done | |
5426 | done | |
8934764e | 5427 | IFS=$as_save_IFS |
bf9f3bac BB |
5428 | |
5429 | fi | |
5430 | fi | |
8934764e BB |
5431 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5432 | if test -n "$ac_ct_AR"; then | |
5433 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5434 | $as_echo "$ac_ct_AR" >&6; } | |
bf9f3bac | 5435 | else |
8934764e BB |
5436 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5437 | $as_echo "no" >&6; } | |
bf9f3bac BB |
5438 | fi |
5439 | ||
8934764e BB |
5440 | if test "x$ac_ct_AR" = x; then |
5441 | AR="false" | |
5442 | else | |
5443 | case $cross_compiling:$ac_tool_warned in | |
5444 | yes:) | |
5445 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5446 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5447 | ac_tool_warned=yes ;; | |
5448 | esac | |
5449 | AR=$ac_ct_AR | |
5450 | fi | |
5451 | else | |
5452 | AR="$ac_cv_prog_AR" | |
bf9f3bac BB |
5453 | fi |
5454 | ||
8934764e BB |
5455 | test -z "$AR" && AR=ar |
5456 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
bf9f3bac | 5457 | |
bf9f3bac | 5458 | |
bf9f3bac | 5459 | |
bf9f3bac | 5460 | |
8934764e BB |
5461 | |
5462 | ||
5463 | ||
5464 | ||
5465 | ||
5466 | ||
5467 | ||
5468 | if test -n "$ac_tool_prefix"; then | |
5469 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5470 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5471 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5472 | $as_echo_n "checking for $ac_word... " >&6; } | |
5473 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5474 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5475 | else |
8934764e BB |
5476 | if test -n "$STRIP"; then |
5477 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5478 | else | |
5479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5480 | for as_dir in $PATH | |
5481 | do | |
5482 | IFS=$as_save_IFS | |
5483 | test -z "$as_dir" && as_dir=. | |
5484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5486 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5487 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5488 | break 2 | |
5489 | fi | |
5490 | done | |
5491 | done | |
5492 | IFS=$as_save_IFS | |
bf9f3bac | 5493 | |
bf9f3bac | 5494 | fi |
bf9f3bac | 5495 | fi |
8934764e BB |
5496 | STRIP=$ac_cv_prog_STRIP |
5497 | if test -n "$STRIP"; then | |
5498 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5499 | $as_echo "$STRIP" >&6; } | |
bf9f3bac | 5500 | else |
8934764e BB |
5501 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5502 | $as_echo "no" >&6; } | |
5503 | fi | |
bf9f3bac | 5504 | |
bf9f3bac | 5505 | |
8934764e BB |
5506 | fi |
5507 | if test -z "$ac_cv_prog_STRIP"; then | |
5508 | ac_ct_STRIP=$STRIP | |
5509 | # Extract the first word of "strip", so it can be a program name with args. | |
5510 | set dummy strip; ac_word=$2 | |
5511 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5512 | $as_echo_n "checking for $ac_word... " >&6; } | |
5513 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5514 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5515 | else |
8934764e BB |
5516 | if test -n "$ac_ct_STRIP"; then |
5517 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5518 | else | |
5519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5520 | for as_dir in $PATH | |
5521 | do | |
5522 | IFS=$as_save_IFS | |
5523 | test -z "$as_dir" && as_dir=. | |
5524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5526 | ac_cv_prog_ac_ct_STRIP="strip" | |
5527 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5528 | break 2 | |
5529 | fi | |
5530 | done | |
5531 | done | |
5532 | IFS=$as_save_IFS | |
bf9f3bac | 5533 | |
bf9f3bac | 5534 | fi |
bf9f3bac | 5535 | fi |
8934764e BB |
5536 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5537 | if test -n "$ac_ct_STRIP"; then | |
5538 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5539 | $as_echo "$ac_ct_STRIP" >&6; } | |
bf9f3bac | 5540 | else |
8934764e BB |
5541 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5542 | $as_echo "no" >&6; } | |
5543 | fi | |
5544 | ||
5545 | if test "x$ac_ct_STRIP" = x; then | |
5546 | STRIP=":" | |
bf9f3bac | 5547 | else |
8934764e BB |
5548 | case $cross_compiling:$ac_tool_warned in |
5549 | yes:) | |
5550 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5551 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5552 | ac_tool_warned=yes ;; | |
5553 | esac | |
5554 | STRIP=$ac_ct_STRIP | |
bf9f3bac | 5555 | fi |
8934764e BB |
5556 | else |
5557 | STRIP="$ac_cv_prog_STRIP" | |
bf9f3bac | 5558 | fi |
bf9f3bac | 5559 | |
8934764e | 5560 | test -z "$STRIP" && STRIP=: |
bf9f3bac | 5561 | |
bf9f3bac | 5562 | |
bf9f3bac | 5563 | |
bf9f3bac | 5564 | |
bf9f3bac | 5565 | |
bf9f3bac | 5566 | |
8934764e BB |
5567 | if test -n "$ac_tool_prefix"; then |
5568 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5569 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5570 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5571 | $as_echo_n "checking for $ac_word... " >&6; } | |
5572 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5573 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5574 | else |
8934764e BB |
5575 | if test -n "$RANLIB"; then |
5576 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5577 | else | |
5578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5579 | for as_dir in $PATH | |
5580 | do | |
5581 | IFS=$as_save_IFS | |
5582 | test -z "$as_dir" && as_dir=. | |
5583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5585 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5586 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5587 | break 2 | |
5588 | fi | |
5589 | done | |
5590 | done | |
5591 | IFS=$as_save_IFS | |
bf9f3bac BB |
5592 | |
5593 | fi | |
8934764e BB |
5594 | fi |
5595 | RANLIB=$ac_cv_prog_RANLIB | |
5596 | if test -n "$RANLIB"; then | |
5597 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5598 | $as_echo "$RANLIB" >&6; } | |
bf9f3bac | 5599 | else |
8934764e BB |
5600 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5601 | $as_echo "no" >&6; } | |
bf9f3bac BB |
5602 | fi |
5603 | ||
5604 | ||
8934764e BB |
5605 | fi |
5606 | if test -z "$ac_cv_prog_RANLIB"; then | |
5607 | ac_ct_RANLIB=$RANLIB | |
5608 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5609 | set dummy ranlib; ac_word=$2 | |
5610 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5611 | $as_echo_n "checking for $ac_word... " >&6; } | |
5612 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5613 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 5614 | else |
8934764e BB |
5615 | if test -n "$ac_ct_RANLIB"; then |
5616 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5617 | else | |
5618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5619 | for as_dir in $PATH | |
bf9f3bac | 5620 | do |
8934764e BB |
5621 | IFS=$as_save_IFS |
5622 | test -z "$as_dir" && as_dir=. | |
5623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5625 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5626 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5627 | break 2 | |
bf9f3bac | 5628 | fi |
8934764e BB |
5629 | done |
5630 | done | |
5631 | IFS=$as_save_IFS | |
5632 | ||
bf9f3bac | 5633 | fi |
8934764e BB |
5634 | fi |
5635 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5636 | if test -n "$ac_ct_RANLIB"; then | |
5637 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5638 | $as_echo "$ac_ct_RANLIB" >&6; } | |
bf9f3bac | 5639 | else |
8934764e BB |
5640 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
5641 | $as_echo "no" >&6; } | |
bf9f3bac | 5642 | fi |
bf9f3bac | 5643 | |
8934764e BB |
5644 | if test "x$ac_ct_RANLIB" = x; then |
5645 | RANLIB=":" | |
bf9f3bac | 5646 | else |
8934764e BB |
5647 | case $cross_compiling:$ac_tool_warned in |
5648 | yes:) | |
5649 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5650 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5651 | ac_tool_warned=yes ;; | |
5652 | esac | |
5653 | RANLIB=$ac_ct_RANLIB | |
bf9f3bac BB |
5654 | fi |
5655 | else | |
8934764e | 5656 | RANLIB="$ac_cv_prog_RANLIB" |
bf9f3bac | 5657 | fi |
bf9f3bac | 5658 | |
8934764e | 5659 | test -z "$RANLIB" && RANLIB=: |
bf9f3bac | 5660 | |
bf9f3bac | 5661 | |
bf9f3bac | 5662 | |
bf9f3bac | 5663 | |
bf9f3bac | 5664 | |
bf9f3bac | 5665 | |
8934764e BB |
5666 | # Determine commands to create old-style static archives. |
5667 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5668 | old_postinstall_cmds='chmod 644 $oldlib' | |
5669 | old_postuninstall_cmds= | |
bf9f3bac | 5670 | |
8934764e BB |
5671 | if test -n "$RANLIB"; then |
5672 | case $host_os in | |
5673 | openbsd*) | |
5674 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5675 | ;; | |
5676 | *) | |
5677 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5678 | ;; | |
5679 | esac | |
5680 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
bf9f3bac BB |
5681 | fi |
5682 | ||
bf9f3bac | 5683 | |
bf9f3bac BB |
5684 | |
5685 | ||
bf9f3bac | 5686 | |
bf9f3bac | 5687 | |
bf9f3bac | 5688 | |
bf9f3bac | 5689 | |
bf9f3bac | 5690 | |
bf9f3bac BB |
5691 | |
5692 | ||
bf9f3bac | 5693 | |
bf9f3bac | 5694 | |
bf9f3bac | 5695 | |
bf9f3bac | 5696 | |
bf9f3bac | 5697 | |
bf9f3bac | 5698 | |
bf9f3bac | 5699 | |
bf9f3bac | 5700 | |
bf9f3bac BB |
5701 | |
5702 | ||
5703 | ||
bf9f3bac | 5704 | |
bf9f3bac | 5705 | |
bf9f3bac | 5706 | |
bf9f3bac | 5707 | |
bf9f3bac | 5708 | |
bf9f3bac | 5709 | |
bf9f3bac | 5710 | |
bf9f3bac | 5711 | |
bf9f3bac | 5712 | |
bf9f3bac | 5713 | |
bf9f3bac BB |
5714 | |
5715 | ||
8934764e BB |
5716 | # If no C compiler was specified, use CC. |
5717 | LTCC=${LTCC-"$CC"} | |
5718 | ||
5719 | # If no C compiler flags were specified, use CFLAGS. | |
5720 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5721 | ||
5722 | # Allow CC to be a program name with arguments. | |
5723 | compiler=$CC | |
bf9f3bac BB |
5724 | |
5725 | ||
5726 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
8934764e BB |
5727 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5728 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
bf9f3bac | 5729 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
8934764e | 5730 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
5731 | else |
5732 | ||
5733 | # These are sane defaults that work on at least a few old systems. | |
5734 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5735 | ||
5736 | # Character class describing NM global symbol codes. | |
5737 | symcode='[BCDEGRST]' | |
5738 | ||
5739 | # Regexp to match symbols that can be accessed directly from C. | |
5740 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5741 | ||
bf9f3bac BB |
5742 | # Define system-specific variables. |
5743 | case $host_os in | |
5744 | aix*) | |
5745 | symcode='[BCDT]' | |
5746 | ;; | |
8934764e | 5747 | cygwin* | mingw* | pw32* | cegcc*) |
bf9f3bac BB |
5748 | symcode='[ABCDGISTW]' |
5749 | ;; | |
8934764e | 5750 | hpux*) |
bf9f3bac BB |
5751 | if test "$host_cpu" = ia64; then |
5752 | symcode='[ABCDEGRST]' | |
5753 | fi | |
bf9f3bac BB |
5754 | ;; |
5755 | irix* | nonstopux*) | |
5756 | symcode='[BCDEGRST]' | |
5757 | ;; | |
5758 | osf*) | |
5759 | symcode='[BCDEGQRST]' | |
5760 | ;; | |
5761 | solaris*) | |
5762 | symcode='[BDRT]' | |
5763 | ;; | |
5764 | sco3.2v5*) | |
5765 | symcode='[DT]' | |
5766 | ;; | |
5767 | sysv4.2uw2*) | |
5768 | symcode='[DT]' | |
5769 | ;; | |
5770 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5771 | symcode='[ABDT]' | |
5772 | ;; | |
5773 | sysv4) | |
5774 | symcode='[DFNSTU]' | |
5775 | ;; | |
5776 | esac | |
5777 | ||
8934764e BB |
5778 | # If we're using GNU nm, then use its standard symbol codes. |
5779 | case `$NM -V 2>&1` in | |
5780 | *GNU* | *'with BFD'*) | |
5781 | symcode='[ABCDGIRSTW]' ;; | |
5782 | esac | |
5783 | ||
5784 | # Transform an extracted symbol line into a proper C declaration. | |
5785 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5786 | # so use this general approach. | |
5787 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5788 | ||
5789 | # Transform an extracted symbol line into symbol name and symbol address | |
5790 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5791 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
5792 | ||
bf9f3bac BB |
5793 | # Handle CRLF in mingw tool chain |
5794 | opt_cr= | |
5795 | case $build_os in | |
5796 | mingw*) | |
8934764e | 5797 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
bf9f3bac BB |
5798 | ;; |
5799 | esac | |
5800 | ||
8934764e | 5801 | # Try without a prefix underscore, then with it. |
bf9f3bac BB |
5802 | for ac_symprfx in "" "_"; do |
5803 | ||
5804 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5805 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5806 | ||
5807 | # Write the raw and C identifiers. | |
8934764e BB |
5808 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
5809 | # Fake it for dumpbin and say T for any non-static function | |
5810 | # and D for any global variable. | |
5811 | # Also find C++ and __fastcall symbols from MSVC++, | |
5812 | # which start with @ or ?. | |
5813 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5814 | " {last_section=section; section=\$ 3};"\ | |
5815 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5816 | " \$ 0!~/External *\|/{next};"\ | |
5817 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5818 | " {if(hide[section]) next};"\ | |
5819 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5820 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5821 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5822 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5823 | " ' prfx=^$ac_symprfx" | |
5824 | else | |
5825 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5826 | fi | |
bf9f3bac BB |
5827 | |
5828 | # Check to see that the pipe works correctly. | |
5829 | pipe_works=no | |
5830 | ||
5831 | rm -f conftest* | |
8934764e | 5832 | cat > conftest.$ac_ext <<_LT_EOF |
bf9f3bac BB |
5833 | #ifdef __cplusplus |
5834 | extern "C" { | |
5835 | #endif | |
5836 | char nm_test_var; | |
8934764e BB |
5837 | void nm_test_func(void); |
5838 | void nm_test_func(void){} | |
bf9f3bac BB |
5839 | #ifdef __cplusplus |
5840 | } | |
5841 | #endif | |
5842 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8934764e | 5843 | _LT_EOF |
bf9f3bac BB |
5844 | |
5845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5846 | (eval $ac_compile) 2>&5 | |
5847 | ac_status=$? | |
8934764e | 5848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
5849 | (exit $ac_status); }; then |
5850 | # Now try to grab the symbols. | |
5851 | nlist=conftest.nm | |
5852 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5853 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5854 | ac_status=$? | |
8934764e | 5855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
5856 | (exit $ac_status); } && test -s "$nlist"; then |
5857 | # Try sorting and uniquifying the output. | |
5858 | if sort "$nlist" | uniq > "$nlist"T; then | |
5859 | mv -f "$nlist"T "$nlist" | |
5860 | else | |
5861 | rm -f "$nlist"T | |
5862 | fi | |
5863 | ||
5864 | # Make sure that we snagged all the symbols we need. | |
8934764e BB |
5865 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
5866 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5867 | cat <<_LT_EOF > conftest.$ac_ext | |
bf9f3bac BB |
5868 | #ifdef __cplusplus |
5869 | extern "C" { | |
5870 | #endif | |
5871 | ||
8934764e | 5872 | _LT_EOF |
bf9f3bac | 5873 | # Now generate the symbol file. |
8934764e | 5874 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
bf9f3bac | 5875 | |
8934764e | 5876 | cat <<_LT_EOF >> conftest.$ac_ext |
bf9f3bac | 5877 | |
8934764e | 5878 | /* The mapping between symbol names and symbols. */ |
bf9f3bac BB |
5879 | const struct { |
5880 | const char *name; | |
8934764e | 5881 | void *address; |
bf9f3bac | 5882 | } |
8934764e | 5883 | lt__PROGRAM__LTX_preloaded_symbols[] = |
bf9f3bac | 5884 | { |
8934764e BB |
5885 | { "@PROGRAM@", (void *) 0 }, |
5886 | _LT_EOF | |
5887 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5888 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5889 | {0, (void *) 0} | |
bf9f3bac BB |
5890 | }; |
5891 | ||
8934764e BB |
5892 | /* This works around a problem in FreeBSD linker */ |
5893 | #ifdef FREEBSD_WORKAROUND | |
5894 | static const void *lt_preloaded_setup() { | |
5895 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5896 | } | |
5897 | #endif | |
5898 | ||
bf9f3bac BB |
5899 | #ifdef __cplusplus |
5900 | } | |
5901 | #endif | |
8934764e | 5902 | _LT_EOF |
bf9f3bac BB |
5903 | # Now try linking the two files. |
5904 | mv conftest.$ac_objext conftstm.$ac_objext | |
5905 | lt_save_LIBS="$LIBS" | |
5906 | lt_save_CFLAGS="$CFLAGS" | |
5907 | LIBS="conftstm.$ac_objext" | |
5908 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5910 | (eval $ac_link) 2>&5 | |
5911 | ac_status=$? | |
8934764e | 5912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
5913 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
5914 | pipe_works=yes | |
5915 | fi | |
5916 | LIBS="$lt_save_LIBS" | |
5917 | CFLAGS="$lt_save_CFLAGS" | |
5918 | else | |
5919 | echo "cannot find nm_test_func in $nlist" >&5 | |
5920 | fi | |
5921 | else | |
5922 | echo "cannot find nm_test_var in $nlist" >&5 | |
5923 | fi | |
5924 | else | |
5925 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5926 | fi | |
5927 | else | |
5928 | echo "$progname: failed program was:" >&5 | |
5929 | cat conftest.$ac_ext >&5 | |
5930 | fi | |
8934764e | 5931 | rm -rf conftest* conftst* |
bf9f3bac BB |
5932 | |
5933 | # Do not use the global_symbol_pipe unless it works. | |
5934 | if test "$pipe_works" = yes; then | |
5935 | break | |
5936 | else | |
5937 | lt_cv_sys_global_symbol_pipe= | |
5938 | fi | |
5939 | done | |
5940 | ||
5941 | fi | |
5942 | ||
5943 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5944 | lt_cv_sys_global_symbol_to_cdecl= | |
5945 | fi | |
5946 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
8934764e BB |
5947 | { $as_echo "$as_me:$LINENO: result: failed" >&5 |
5948 | $as_echo "failed" >&6; } | |
bf9f3bac | 5949 | else |
8934764e BB |
5950 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
5951 | $as_echo "ok" >&6; } | |
bf9f3bac BB |
5952 | fi |
5953 | ||
bf9f3bac BB |
5954 | |
5955 | ||
5956 | ||
5957 | ||
5958 | ||
8934764e BB |
5959 | |
5960 | ||
5961 | ||
5962 | ||
5963 | ||
5964 | ||
5965 | ||
5966 | ||
5967 | ||
5968 | ||
5969 | ||
5970 | ||
5971 | ||
5972 | ||
5973 | ||
5974 | ||
5975 | ||
5976 | # Check whether --enable-libtool-lock was given. | |
5977 | if test "${enable_libtool_lock+set}" = set; then | |
5978 | enableval=$enable_libtool_lock; | |
5979 | fi | |
5980 | ||
5981 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5982 | ||
5983 | # Some flags need to be propagated to the compiler or linker for good | |
5984 | # libtool support. | |
5985 | case $host in | |
5986 | ia64-*-hpux*) | |
5987 | # Find out which ABI we are using. | |
5988 | echo 'int i;' > conftest.$ac_ext | |
5989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5990 | (eval $ac_compile) 2>&5 | |
5991 | ac_status=$? | |
5992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5993 | (exit $ac_status); }; then | |
5994 | case `/usr/bin/file conftest.$ac_objext` in | |
5995 | *ELF-32*) | |
5996 | HPUX_IA64_MODE="32" | |
5997 | ;; | |
5998 | *ELF-64*) | |
5999 | HPUX_IA64_MODE="64" | |
6000 | ;; | |
6001 | esac | |
bf9f3bac | 6002 | fi |
8934764e BB |
6003 | rm -rf conftest* |
6004 | ;; | |
6005 | *-*-irix6*) | |
6006 | # Find out which ABI we are using. | |
0408008b | 6007 | echo '#line 6007 "configure"' > conftest.$ac_ext |
8934764e BB |
6008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6009 | (eval $ac_compile) 2>&5 | |
6010 | ac_status=$? | |
6011 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6012 | (exit $ac_status); }; then | |
6013 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6014 | case `/usr/bin/file conftest.$ac_objext` in | |
6015 | *32-bit*) | |
6016 | LD="${LD-ld} -melf32bsmip" | |
6017 | ;; | |
6018 | *N32*) | |
6019 | LD="${LD-ld} -melf32bmipn32" | |
6020 | ;; | |
6021 | *64-bit*) | |
6022 | LD="${LD-ld} -melf64bmip" | |
6023 | ;; | |
6024 | esac | |
6025 | else | |
6026 | case `/usr/bin/file conftest.$ac_objext` in | |
6027 | *32-bit*) | |
6028 | LD="${LD-ld} -32" | |
6029 | ;; | |
6030 | *N32*) | |
6031 | LD="${LD-ld} -n32" | |
6032 | ;; | |
6033 | *64-bit*) | |
6034 | LD="${LD-ld} -64" | |
6035 | ;; | |
6036 | esac | |
6037 | fi | |
6038 | fi | |
6039 | rm -rf conftest* | |
bf9f3bac | 6040 | ;; |
bf9f3bac | 6041 | |
8934764e BB |
6042 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
6043 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6044 | # Find out which ABI we are using. | |
6045 | echo 'int i;' > conftest.$ac_ext | |
6046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6047 | (eval $ac_compile) 2>&5 | |
6048 | ac_status=$? | |
6049 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6050 | (exit $ac_status); }; then | |
6051 | case `/usr/bin/file conftest.o` in | |
6052 | *32-bit*) | |
6053 | case $host in | |
6054 | x86_64-*kfreebsd*-gnu) | |
6055 | LD="${LD-ld} -m elf_i386_fbsd" | |
6056 | ;; | |
6057 | x86_64-*linux*) | |
6058 | LD="${LD-ld} -m elf_i386" | |
6059 | ;; | |
6060 | ppc64-*linux*|powerpc64-*linux*) | |
6061 | LD="${LD-ld} -m elf32ppclinux" | |
6062 | ;; | |
6063 | s390x-*linux*) | |
6064 | LD="${LD-ld} -m elf_s390" | |
6065 | ;; | |
6066 | sparc64-*linux*) | |
6067 | LD="${LD-ld} -m elf32_sparc" | |
6068 | ;; | |
6069 | esac | |
6070 | ;; | |
6071 | *64-bit*) | |
6072 | case $host in | |
6073 | x86_64-*kfreebsd*-gnu) | |
6074 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6075 | ;; | |
6076 | x86_64-*linux*) | |
6077 | LD="${LD-ld} -m elf_x86_64" | |
6078 | ;; | |
6079 | ppc*-*linux*|powerpc*-*linux*) | |
6080 | LD="${LD-ld} -m elf64ppc" | |
6081 | ;; | |
6082 | s390*-*linux*|s390*-*tpf*) | |
6083 | LD="${LD-ld} -m elf64_s390" | |
6084 | ;; | |
6085 | sparc*-*linux*) | |
6086 | LD="${LD-ld} -m elf64_sparc" | |
6087 | ;; | |
6088 | esac | |
6089 | ;; | |
6090 | esac | |
6091 | fi | |
6092 | rm -rf conftest* | |
6093 | ;; | |
bf9f3bac | 6094 | |
8934764e BB |
6095 | *-*-sco3.2v5*) |
6096 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6097 | SAVE_CFLAGS="$CFLAGS" | |
6098 | CFLAGS="$CFLAGS -belf" | |
6099 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6100 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6101 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6102 | $as_echo_n "(cached) " >&6 | |
6103 | else | |
6104 | ac_ext=c | |
6105 | ac_cpp='$CPP $CPPFLAGS' | |
6106 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6107 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6108 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bf9f3bac | 6109 | |
8934764e BB |
6110 | cat >conftest.$ac_ext <<_ACEOF |
6111 | /* confdefs.h. */ | |
6112 | _ACEOF | |
6113 | cat confdefs.h >>conftest.$ac_ext | |
6114 | cat >>conftest.$ac_ext <<_ACEOF | |
6115 | /* end confdefs.h. */ | |
bf9f3bac | 6116 | |
8934764e BB |
6117 | int |
6118 | main () | |
6119 | { | |
6120 | ||
6121 | ; | |
6122 | return 0; | |
6123 | } | |
6124 | _ACEOF | |
6125 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6126 | if { (ac_try="$ac_link" | |
6127 | case "(($ac_try" in | |
6128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6129 | *) ac_try_echo=$ac_try;; | |
6130 | esac | |
6131 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6132 | $as_echo "$ac_try_echo") >&5 | |
6133 | (eval "$ac_link") 2>conftest.er1 | |
6134 | ac_status=$? | |
6135 | grep -v '^ *+' conftest.er1 >conftest.err | |
6136 | rm -f conftest.er1 | |
6137 | cat conftest.err >&5 | |
6138 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6139 | (exit $ac_status); } && { | |
6140 | test -z "$ac_c_werror_flag" || | |
6141 | test ! -s conftest.err | |
6142 | } && test -s conftest$ac_exeext && { | |
6143 | test "$cross_compiling" = yes || | |
6144 | $as_test_x conftest$ac_exeext | |
6145 | }; then | |
6146 | lt_cv_cc_needs_belf=yes | |
6147 | else | |
6148 | $as_echo "$as_me: failed program was:" >&5 | |
6149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 6150 | |
8934764e BB |
6151 | lt_cv_cc_needs_belf=no |
6152 | fi | |
bf9f3bac | 6153 | |
8934764e BB |
6154 | rm -rf conftest.dSYM |
6155 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6156 | conftest$ac_exeext conftest.$ac_ext | |
6157 | ac_ext=c | |
6158 | ac_cpp='$CPP $CPPFLAGS' | |
6159 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6160 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6161 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bf9f3bac | 6162 | |
8934764e BB |
6163 | fi |
6164 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
6165 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6166 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6167 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6168 | CFLAGS="$SAVE_CFLAGS" | |
6169 | fi | |
6170 | ;; | |
6171 | sparc*-*solaris*) | |
6172 | # Find out which ABI we are using. | |
6173 | echo 'int i;' > conftest.$ac_ext | |
6174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6175 | (eval $ac_compile) 2>&5 | |
6176 | ac_status=$? | |
6177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6178 | (exit $ac_status); }; then | |
6179 | case `/usr/bin/file conftest.o` in | |
6180 | *64-bit*) | |
6181 | case $lt_cv_prog_gnu_ld in | |
6182 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6183 | *) | |
6184 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6185 | LD="${LD-ld} -64" | |
6186 | fi | |
6187 | ;; | |
6188 | esac | |
6189 | ;; | |
6190 | esac | |
6191 | fi | |
6192 | rm -rf conftest* | |
6193 | ;; | |
6194 | esac | |
bf9f3bac | 6195 | |
8934764e BB |
6196 | need_locks="$enable_libtool_lock" |
6197 | ||
6198 | ||
6199 | case $host_os in | |
6200 | rhapsody* | darwin*) | |
6201 | if test -n "$ac_tool_prefix"; then | |
6202 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6203 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6204 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6205 | $as_echo_n "checking for $ac_word... " >&6; } | |
6206 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
6207 | $as_echo_n "(cached) " >&6 | |
6208 | else | |
6209 | if test -n "$DSYMUTIL"; then | |
6210 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
bf9f3bac BB |
6211 | else |
6212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6213 | for as_dir in $PATH | |
6214 | do | |
6215 | IFS=$as_save_IFS | |
6216 | test -z "$as_dir" && as_dir=. | |
6217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6219 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6220 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6221 | break 2 |
6222 | fi | |
6223 | done | |
6224 | done | |
8934764e | 6225 | IFS=$as_save_IFS |
bf9f3bac BB |
6226 | |
6227 | fi | |
6228 | fi | |
8934764e BB |
6229 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
6230 | if test -n "$DSYMUTIL"; then | |
6231 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
6232 | $as_echo "$DSYMUTIL" >&6; } | |
bf9f3bac | 6233 | else |
8934764e BB |
6234 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6235 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6236 | fi |
6237 | ||
8934764e | 6238 | |
bf9f3bac | 6239 | fi |
8934764e BB |
6240 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
6241 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6242 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6243 | set dummy dsymutil; ac_word=$2 | |
6244 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6245 | $as_echo_n "checking for $ac_word... " >&6; } | |
6246 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
6247 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6248 | else |
8934764e BB |
6249 | if test -n "$ac_ct_DSYMUTIL"; then |
6250 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
bf9f3bac BB |
6251 | else |
6252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6253 | for as_dir in $PATH | |
6254 | do | |
6255 | IFS=$as_save_IFS | |
6256 | test -z "$as_dir" && as_dir=. | |
6257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6259 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6260 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6261 | break 2 |
6262 | fi | |
6263 | done | |
6264 | done | |
8934764e | 6265 | IFS=$as_save_IFS |
bf9f3bac | 6266 | |
bf9f3bac BB |
6267 | fi |
6268 | fi | |
8934764e BB |
6269 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
6270 | if test -n "$ac_ct_DSYMUTIL"; then | |
6271 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
6272 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
bf9f3bac | 6273 | else |
8934764e BB |
6274 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6275 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6276 | fi |
6277 | ||
8934764e BB |
6278 | if test "x$ac_ct_DSYMUTIL" = x; then |
6279 | DSYMUTIL=":" | |
6280 | else | |
6281 | case $cross_compiling:$ac_tool_warned in | |
6282 | yes:) | |
6283 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6284 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6285 | ac_tool_warned=yes ;; | |
6286 | esac | |
6287 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6288 | fi | |
bf9f3bac | 6289 | else |
8934764e | 6290 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
bf9f3bac BB |
6291 | fi |
6292 | ||
8934764e BB |
6293 | if test -n "$ac_tool_prefix"; then |
6294 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6295 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6296 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6297 | $as_echo_n "checking for $ac_word... " >&6; } | |
6298 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
6299 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6300 | else |
8934764e BB |
6301 | if test -n "$NMEDIT"; then |
6302 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
bf9f3bac BB |
6303 | else |
6304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6305 | for as_dir in $PATH | |
6306 | do | |
6307 | IFS=$as_save_IFS | |
6308 | test -z "$as_dir" && as_dir=. | |
6309 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6310 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6311 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6312 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6313 | break 2 |
6314 | fi | |
6315 | done | |
6316 | done | |
8934764e | 6317 | IFS=$as_save_IFS |
bf9f3bac BB |
6318 | |
6319 | fi | |
6320 | fi | |
8934764e BB |
6321 | NMEDIT=$ac_cv_prog_NMEDIT |
6322 | if test -n "$NMEDIT"; then | |
6323 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
6324 | $as_echo "$NMEDIT" >&6; } | |
bf9f3bac | 6325 | else |
8934764e BB |
6326 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6327 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6328 | fi |
6329 | ||
8934764e | 6330 | |
bf9f3bac | 6331 | fi |
8934764e BB |
6332 | if test -z "$ac_cv_prog_NMEDIT"; then |
6333 | ac_ct_NMEDIT=$NMEDIT | |
6334 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6335 | set dummy nmedit; ac_word=$2 | |
6336 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6337 | $as_echo_n "checking for $ac_word... " >&6; } | |
6338 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6339 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6340 | else |
8934764e BB |
6341 | if test -n "$ac_ct_NMEDIT"; then |
6342 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
bf9f3bac BB |
6343 | else |
6344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6345 | for as_dir in $PATH | |
6346 | do | |
6347 | IFS=$as_save_IFS | |
6348 | test -z "$as_dir" && as_dir=. | |
6349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6351 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6352 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6353 | break 2 |
6354 | fi | |
6355 | done | |
6356 | done | |
8934764e | 6357 | IFS=$as_save_IFS |
bf9f3bac | 6358 | |
bf9f3bac BB |
6359 | fi |
6360 | fi | |
8934764e BB |
6361 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
6362 | if test -n "$ac_ct_NMEDIT"; then | |
6363 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
6364 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
bf9f3bac | 6365 | else |
8934764e BB |
6366 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6367 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6368 | fi |
6369 | ||
8934764e BB |
6370 | if test "x$ac_ct_NMEDIT" = x; then |
6371 | NMEDIT=":" | |
6372 | else | |
6373 | case $cross_compiling:$ac_tool_warned in | |
6374 | yes:) | |
6375 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6376 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6377 | ac_tool_warned=yes ;; | |
6378 | esac | |
6379 | NMEDIT=$ac_ct_NMEDIT | |
6380 | fi | |
bf9f3bac | 6381 | else |
8934764e | 6382 | NMEDIT="$ac_cv_prog_NMEDIT" |
bf9f3bac BB |
6383 | fi |
6384 | ||
8934764e BB |
6385 | if test -n "$ac_tool_prefix"; then |
6386 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6387 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6388 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6389 | $as_echo_n "checking for $ac_word... " >&6; } | |
6390 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
6391 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6392 | else |
8934764e BB |
6393 | if test -n "$LIPO"; then |
6394 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
bf9f3bac BB |
6395 | else |
6396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6397 | for as_dir in $PATH | |
6398 | do | |
6399 | IFS=$as_save_IFS | |
6400 | test -z "$as_dir" && as_dir=. | |
6401 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6403 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6404 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6405 | break 2 |
6406 | fi | |
6407 | done | |
6408 | done | |
8934764e | 6409 | IFS=$as_save_IFS |
bf9f3bac BB |
6410 | |
6411 | fi | |
6412 | fi | |
8934764e BB |
6413 | LIPO=$ac_cv_prog_LIPO |
6414 | if test -n "$LIPO"; then | |
6415 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 | |
6416 | $as_echo "$LIPO" >&6; } | |
bf9f3bac | 6417 | else |
8934764e BB |
6418 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6419 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6420 | fi |
6421 | ||
8934764e | 6422 | |
bf9f3bac | 6423 | fi |
8934764e BB |
6424 | if test -z "$ac_cv_prog_LIPO"; then |
6425 | ac_ct_LIPO=$LIPO | |
6426 | # Extract the first word of "lipo", so it can be a program name with args. | |
6427 | set dummy lipo; ac_word=$2 | |
6428 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6429 | $as_echo_n "checking for $ac_word... " >&6; } | |
6430 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
6431 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6432 | else |
8934764e BB |
6433 | if test -n "$ac_ct_LIPO"; then |
6434 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
bf9f3bac BB |
6435 | else |
6436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6437 | for as_dir in $PATH | |
6438 | do | |
6439 | IFS=$as_save_IFS | |
6440 | test -z "$as_dir" && as_dir=. | |
6441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8934764e BB |
6442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6443 | ac_cv_prog_ac_ct_LIPO="lipo" | |
6444 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
bf9f3bac BB |
6445 | break 2 |
6446 | fi | |
6447 | done | |
6448 | done | |
8934764e | 6449 | IFS=$as_save_IFS |
bf9f3bac | 6450 | |
bf9f3bac BB |
6451 | fi |
6452 | fi | |
8934764e BB |
6453 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
6454 | if test -n "$ac_ct_LIPO"; then | |
6455 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
6456 | $as_echo "$ac_ct_LIPO" >&6; } | |
bf9f3bac | 6457 | else |
8934764e BB |
6458 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6459 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6460 | fi |
6461 | ||
8934764e BB |
6462 | if test "x$ac_ct_LIPO" = x; then |
6463 | LIPO=":" | |
6464 | else | |
6465 | case $cross_compiling:$ac_tool_warned in | |
6466 | yes:) | |
6467 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6468 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6469 | ac_tool_warned=yes ;; | |
6470 | esac | |
6471 | LIPO=$ac_ct_LIPO | |
6472 | fi | |
bf9f3bac | 6473 | else |
8934764e | 6474 | LIPO="$ac_cv_prog_LIPO" |
bf9f3bac BB |
6475 | fi |
6476 | ||
8934764e BB |
6477 | if test -n "$ac_tool_prefix"; then |
6478 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6479 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6480 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6481 | $as_echo_n "checking for $ac_word... " >&6; } | |
6482 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
6483 | $as_echo_n "(cached) " >&6 | |
6484 | else | |
6485 | if test -n "$OTOOL"; then | |
6486 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6487 | else | |
6488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6489 | for as_dir in $PATH | |
6490 | do | |
6491 | IFS=$as_save_IFS | |
6492 | test -z "$as_dir" && as_dir=. | |
6493 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6495 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6496 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6497 | break 2 | |
6498 | fi | |
bf9f3bac | 6499 | done |
8934764e BB |
6500 | done |
6501 | IFS=$as_save_IFS | |
bf9f3bac | 6502 | |
8934764e BB |
6503 | fi |
6504 | fi | |
6505 | OTOOL=$ac_cv_prog_OTOOL | |
6506 | if test -n "$OTOOL"; then | |
6507 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
6508 | $as_echo "$OTOOL" >&6; } | |
bf9f3bac | 6509 | else |
8934764e BB |
6510 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6511 | $as_echo "no" >&6; } | |
6512 | fi | |
bf9f3bac | 6513 | |
bf9f3bac | 6514 | |
bf9f3bac | 6515 | fi |
8934764e BB |
6516 | if test -z "$ac_cv_prog_OTOOL"; then |
6517 | ac_ct_OTOOL=$OTOOL | |
6518 | # Extract the first word of "otool", so it can be a program name with args. | |
6519 | set dummy otool; ac_word=$2 | |
6520 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6521 | $as_echo_n "checking for $ac_word... " >&6; } | |
6522 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
6523 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6524 | else |
8934764e BB |
6525 | if test -n "$ac_ct_OTOOL"; then |
6526 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
bf9f3bac | 6527 | else |
8934764e BB |
6528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6529 | for as_dir in $PATH | |
6530 | do | |
6531 | IFS=$as_save_IFS | |
6532 | test -z "$as_dir" && as_dir=. | |
6533 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6534 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6535 | ac_cv_prog_ac_ct_OTOOL="otool" | |
6536 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6537 | break 2 | |
6538 | fi | |
6539 | done | |
6540 | done | |
6541 | IFS=$as_save_IFS | |
bf9f3bac | 6542 | |
bf9f3bac | 6543 | fi |
8934764e BB |
6544 | fi |
6545 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6546 | if test -n "$ac_ct_OTOOL"; then | |
6547 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
6548 | $as_echo "$ac_ct_OTOOL" >&6; } | |
bf9f3bac | 6549 | else |
8934764e BB |
6550 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
6551 | $as_echo "no" >&6; } | |
bf9f3bac BB |
6552 | fi |
6553 | ||
8934764e BB |
6554 | if test "x$ac_ct_OTOOL" = x; then |
6555 | OTOOL=":" | |
bf9f3bac | 6556 | else |
8934764e BB |
6557 | case $cross_compiling:$ac_tool_warned in |
6558 | yes:) | |
6559 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6560 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6561 | ac_tool_warned=yes ;; | |
6562 | esac | |
6563 | OTOOL=$ac_ct_OTOOL | |
bf9f3bac | 6564 | fi |
8934764e BB |
6565 | else |
6566 | OTOOL="$ac_cv_prog_OTOOL" | |
bf9f3bac BB |
6567 | fi |
6568 | ||
8934764e BB |
6569 | if test -n "$ac_tool_prefix"; then |
6570 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6571 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6572 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6573 | $as_echo_n "checking for $ac_word... " >&6; } | |
6574 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
6575 | $as_echo_n "(cached) " >&6 | |
6576 | else | |
6577 | if test -n "$OTOOL64"; then | |
6578 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6579 | else | |
6580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6581 | for as_dir in $PATH | |
6582 | do | |
6583 | IFS=$as_save_IFS | |
6584 | test -z "$as_dir" && as_dir=. | |
6585 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6587 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6588 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6589 | break 2 | |
bf9f3bac | 6590 | fi |
8934764e BB |
6591 | done |
6592 | done | |
6593 | IFS=$as_save_IFS | |
bf9f3bac | 6594 | |
8934764e BB |
6595 | fi |
6596 | fi | |
6597 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6598 | if test -n "$OTOOL64"; then | |
6599 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6600 | $as_echo "$OTOOL64" >&6; } | |
6601 | else | |
6602 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6603 | $as_echo "no" >&6; } | |
6604 | fi | |
bf9f3bac | 6605 | |
bf9f3bac | 6606 | |
8934764e BB |
6607 | fi |
6608 | if test -z "$ac_cv_prog_OTOOL64"; then | |
6609 | ac_ct_OTOOL64=$OTOOL64 | |
6610 | # Extract the first word of "otool64", so it can be a program name with args. | |
6611 | set dummy otool64; ac_word=$2 | |
6612 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6613 | $as_echo_n "checking for $ac_word... " >&6; } | |
6614 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6615 | $as_echo_n "(cached) " >&6 | |
6616 | else | |
6617 | if test -n "$ac_ct_OTOOL64"; then | |
6618 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6619 | else | |
6620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6621 | for as_dir in $PATH | |
6622 | do | |
6623 | IFS=$as_save_IFS | |
6624 | test -z "$as_dir" && as_dir=. | |
6625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6627 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6628 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6629 | break 2 | |
6630 | fi | |
6631 | done | |
6632 | done | |
6633 | IFS=$as_save_IFS | |
bf9f3bac | 6634 | |
8934764e BB |
6635 | fi |
6636 | fi | |
6637 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6638 | if test -n "$ac_ct_OTOOL64"; then | |
6639 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6640 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
6641 | else | |
6642 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6643 | $as_echo "no" >&6; } | |
6644 | fi | |
bf9f3bac | 6645 | |
8934764e BB |
6646 | if test "x$ac_ct_OTOOL64" = x; then |
6647 | OTOOL64=":" | |
6648 | else | |
6649 | case $cross_compiling:$ac_tool_warned in | |
6650 | yes:) | |
6651 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6652 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6653 | ac_tool_warned=yes ;; | |
6654 | esac | |
6655 | OTOOL64=$ac_ct_OTOOL64 | |
6656 | fi | |
bf9f3bac | 6657 | else |
8934764e BB |
6658 | OTOOL64="$ac_cv_prog_OTOOL64" |
6659 | fi | |
bf9f3bac | 6660 | |
bf9f3bac BB |
6661 | |
6662 | ||
bf9f3bac | 6663 | |
bf9f3bac | 6664 | |
bf9f3bac | 6665 | |
bf9f3bac BB |
6666 | |
6667 | ||
bf9f3bac | 6668 | |
bf9f3bac | 6669 | |
bf9f3bac BB |
6670 | |
6671 | ||
bf9f3bac | 6672 | |
bf9f3bac BB |
6673 | |
6674 | ||
6675 | ||
bf9f3bac | 6676 | |
bf9f3bac BB |
6677 | |
6678 | ||
bf9f3bac | 6679 | |
bf9f3bac | 6680 | |
8934764e BB |
6681 | |
6682 | ||
6683 | ||
6684 | ||
6685 | ||
6686 | ||
6687 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
6688 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
6689 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6690 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 6691 | else |
8934764e BB |
6692 | lt_cv_apple_cc_single_mod=no |
6693 | if test -z "${LT_MULTI_MODULE}"; then | |
6694 | # By default we will add the -single_module flag. You can override | |
6695 | # by either setting the environment variable LT_MULTI_MODULE | |
6696 | # non-empty at configure time, or by adding -multi_module to the | |
6697 | # link flags. | |
6698 | rm -rf libconftest.dylib* | |
6699 | echo "int foo(void){return 1;}" > conftest.c | |
6700 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6701 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6702 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6703 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6704 | _lt_result=$? | |
6705 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6706 | lt_cv_apple_cc_single_mod=yes | |
6707 | else | |
6708 | cat conftest.err >&5 | |
6709 | fi | |
6710 | rm -rf libconftest.dylib* | |
6711 | rm -f conftest.* | |
6712 | fi | |
bf9f3bac | 6713 | fi |
8934764e BB |
6714 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
6715 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6716 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6717 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
6718 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6719 | $as_echo_n "(cached) " >&6 | |
6720 | else | |
6721 | lt_cv_ld_exported_symbols_list=no | |
6722 | save_LDFLAGS=$LDFLAGS | |
6723 | echo "_main" > conftest.sym | |
6724 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6725 | cat >conftest.$ac_ext <<_ACEOF | |
6726 | /* confdefs.h. */ | |
6727 | _ACEOF | |
6728 | cat confdefs.h >>conftest.$ac_ext | |
6729 | cat >>conftest.$ac_ext <<_ACEOF | |
6730 | /* end confdefs.h. */ | |
bf9f3bac | 6731 | |
8934764e BB |
6732 | int |
6733 | main () | |
6734 | { | |
bf9f3bac | 6735 | |
8934764e BB |
6736 | ; |
6737 | return 0; | |
6738 | } | |
6739 | _ACEOF | |
6740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6741 | if { (ac_try="$ac_link" | |
6742 | case "(($ac_try" in | |
6743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6744 | *) ac_try_echo=$ac_try;; | |
6745 | esac | |
6746 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6747 | $as_echo "$ac_try_echo") >&5 | |
6748 | (eval "$ac_link") 2>conftest.er1 | |
6749 | ac_status=$? | |
6750 | grep -v '^ *+' conftest.er1 >conftest.err | |
6751 | rm -f conftest.er1 | |
6752 | cat conftest.err >&5 | |
6753 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6754 | (exit $ac_status); } && { | |
6755 | test -z "$ac_c_werror_flag" || | |
6756 | test ! -s conftest.err | |
6757 | } && test -s conftest$ac_exeext && { | |
6758 | test "$cross_compiling" = yes || | |
6759 | $as_test_x conftest$ac_exeext | |
6760 | }; then | |
6761 | lt_cv_ld_exported_symbols_list=yes | |
6762 | else | |
6763 | $as_echo "$as_me: failed program was:" >&5 | |
6764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 6765 | |
8934764e BB |
6766 | lt_cv_ld_exported_symbols_list=no |
6767 | fi | |
bf9f3bac | 6768 | |
8934764e BB |
6769 | rm -rf conftest.dSYM |
6770 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6771 | conftest$ac_exeext conftest.$ac_ext | |
6772 | LDFLAGS="$save_LDFLAGS" | |
bf9f3bac | 6773 | |
8934764e BB |
6774 | fi |
6775 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6776 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
bf9f3bac | 6777 | case $host_os in |
8934764e BB |
6778 | rhapsody* | darwin1.[012]) |
6779 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6780 | darwin1.*) | |
6781 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6782 | darwin*) # darwin 5.x on | |
6783 | # if running on 10.5 or later, the deployment target defaults | |
6784 | # to the OS version, if on x86, and 10.4, the deployment | |
6785 | # target defaults to 10.4. Don't you love it? | |
6786 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6787 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6788 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6789 | 10.[012]*) | |
6790 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6791 | 10.*) | |
6792 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6793 | esac | |
6794 | ;; | |
6795 | esac | |
6796 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6797 | _lt_dar_single_mod='$single_module' | |
6798 | fi | |
6799 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6800 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6801 | else | |
6802 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6803 | fi | |
6804 | if test "$DSYMUTIL" != ":"; then | |
6805 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6806 | else | |
6807 | _lt_dsymutil= | |
6808 | fi | |
6809 | ;; | |
6810 | esac | |
bf9f3bac | 6811 | |
8934764e BB |
6812 | ac_ext=c |
6813 | ac_cpp='$CPP $CPPFLAGS' | |
6814 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6815 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6816 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6817 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
6818 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6819 | # On Suns, sometimes $CPP names a directory. | |
6820 | if test -n "$CPP" && test -d "$CPP"; then | |
6821 | CPP= | |
6822 | fi | |
6823 | if test -z "$CPP"; then | |
6824 | if test "${ac_cv_prog_CPP+set}" = set; then | |
6825 | $as_echo_n "(cached) " >&6 | |
6826 | else | |
6827 | # Double quotes because CPP needs to be expanded | |
6828 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6829 | do | |
6830 | ac_preproc_ok=false | |
6831 | for ac_c_preproc_warn_flag in '' yes | |
6832 | do | |
6833 | # Use a header file that comes with gcc, so configuring glibc | |
6834 | # with a fresh cross-compiler works. | |
6835 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6836 | # <limits.h> exists even on freestanding compilers. | |
6837 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6838 | # not just through cpp. "Syntax error" is here to catch this case. | |
6839 | cat >conftest.$ac_ext <<_ACEOF | |
6840 | /* confdefs.h. */ | |
6841 | _ACEOF | |
6842 | cat confdefs.h >>conftest.$ac_ext | |
6843 | cat >>conftest.$ac_ext <<_ACEOF | |
6844 | /* end confdefs.h. */ | |
6845 | #ifdef __STDC__ | |
6846 | # include <limits.h> | |
6847 | #else | |
6848 | # include <assert.h> | |
6849 | #endif | |
6850 | Syntax error | |
6851 | _ACEOF | |
6852 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6853 | case "(($ac_try" in | |
6854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6855 | *) ac_try_echo=$ac_try;; | |
6856 | esac | |
6857 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6858 | $as_echo "$ac_try_echo") >&5 | |
6859 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6860 | ac_status=$? | |
6861 | grep -v '^ *+' conftest.er1 >conftest.err | |
6862 | rm -f conftest.er1 | |
6863 | cat conftest.err >&5 | |
6864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6865 | (exit $ac_status); } >/dev/null && { | |
6866 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6867 | test ! -s conftest.err | |
6868 | }; then | |
6869 | : | |
6870 | else | |
6871 | $as_echo "$as_me: failed program was:" >&5 | |
6872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 6873 | |
8934764e BB |
6874 | # Broken: fails on valid input. |
6875 | continue | |
6876 | fi | |
bf9f3bac | 6877 | |
8934764e | 6878 | rm -f conftest.err conftest.$ac_ext |
bf9f3bac | 6879 | |
8934764e BB |
6880 | # OK, works on sane cases. Now check whether nonexistent headers |
6881 | # can be detected and how. | |
6882 | cat >conftest.$ac_ext <<_ACEOF | |
6883 | /* confdefs.h. */ | |
6884 | _ACEOF | |
6885 | cat confdefs.h >>conftest.$ac_ext | |
6886 | cat >>conftest.$ac_ext <<_ACEOF | |
6887 | /* end confdefs.h. */ | |
6888 | #include <ac_nonexistent.h> | |
6889 | _ACEOF | |
6890 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6891 | case "(($ac_try" in | |
6892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6893 | *) ac_try_echo=$ac_try;; | |
6894 | esac | |
6895 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6896 | $as_echo "$ac_try_echo") >&5 | |
6897 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6898 | ac_status=$? | |
6899 | grep -v '^ *+' conftest.er1 >conftest.err | |
6900 | rm -f conftest.er1 | |
6901 | cat conftest.err >&5 | |
6902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6903 | (exit $ac_status); } >/dev/null && { | |
6904 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6905 | test ! -s conftest.err | |
6906 | }; then | |
6907 | # Broken: success on invalid input. | |
6908 | continue | |
6909 | else | |
6910 | $as_echo "$as_me: failed program was:" >&5 | |
6911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 6912 | |
8934764e BB |
6913 | # Passes both tests. |
6914 | ac_preproc_ok=: | |
6915 | break | |
6916 | fi | |
bf9f3bac | 6917 | |
8934764e | 6918 | rm -f conftest.err conftest.$ac_ext |
bf9f3bac | 6919 | |
8934764e BB |
6920 | done |
6921 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6922 | rm -f conftest.err conftest.$ac_ext | |
6923 | if $ac_preproc_ok; then | |
6924 | break | |
6925 | fi | |
bf9f3bac | 6926 | |
8934764e BB |
6927 | done |
6928 | ac_cv_prog_CPP=$CPP | |
bf9f3bac | 6929 | |
8934764e BB |
6930 | fi |
6931 | CPP=$ac_cv_prog_CPP | |
6932 | else | |
6933 | ac_cv_prog_CPP=$CPP | |
6934 | fi | |
6935 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
6936 | $as_echo "$CPP" >&6; } | |
6937 | ac_preproc_ok=false | |
6938 | for ac_c_preproc_warn_flag in '' yes | |
6939 | do | |
6940 | # Use a header file that comes with gcc, so configuring glibc | |
6941 | # with a fresh cross-compiler works. | |
6942 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6943 | # <limits.h> exists even on freestanding compilers. | |
6944 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6945 | # not just through cpp. "Syntax error" is here to catch this case. | |
6946 | cat >conftest.$ac_ext <<_ACEOF | |
6947 | /* confdefs.h. */ | |
6948 | _ACEOF | |
6949 | cat confdefs.h >>conftest.$ac_ext | |
6950 | cat >>conftest.$ac_ext <<_ACEOF | |
6951 | /* end confdefs.h. */ | |
6952 | #ifdef __STDC__ | |
6953 | # include <limits.h> | |
6954 | #else | |
6955 | # include <assert.h> | |
6956 | #endif | |
6957 | Syntax error | |
6958 | _ACEOF | |
6959 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6960 | case "(($ac_try" in | |
6961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6962 | *) ac_try_echo=$ac_try;; | |
6963 | esac | |
6964 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6965 | $as_echo "$ac_try_echo") >&5 | |
6966 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6967 | ac_status=$? | |
6968 | grep -v '^ *+' conftest.er1 >conftest.err | |
6969 | rm -f conftest.er1 | |
6970 | cat conftest.err >&5 | |
6971 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6972 | (exit $ac_status); } >/dev/null && { | |
6973 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6974 | test ! -s conftest.err | |
6975 | }; then | |
6976 | : | |
6977 | else | |
6978 | $as_echo "$as_me: failed program was:" >&5 | |
6979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 6980 | |
8934764e BB |
6981 | # Broken: fails on valid input. |
6982 | continue | |
6983 | fi | |
bf9f3bac | 6984 | |
8934764e | 6985 | rm -f conftest.err conftest.$ac_ext |
bf9f3bac | 6986 | |
8934764e BB |
6987 | # OK, works on sane cases. Now check whether nonexistent headers |
6988 | # can be detected and how. | |
6989 | cat >conftest.$ac_ext <<_ACEOF | |
6990 | /* confdefs.h. */ | |
6991 | _ACEOF | |
6992 | cat confdefs.h >>conftest.$ac_ext | |
6993 | cat >>conftest.$ac_ext <<_ACEOF | |
6994 | /* end confdefs.h. */ | |
6995 | #include <ac_nonexistent.h> | |
6996 | _ACEOF | |
6997 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6998 | case "(($ac_try" in | |
6999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7000 | *) ac_try_echo=$ac_try;; | |
7001 | esac | |
7002 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7003 | $as_echo "$ac_try_echo") >&5 | |
7004 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7005 | ac_status=$? | |
7006 | grep -v '^ *+' conftest.er1 >conftest.err | |
7007 | rm -f conftest.er1 | |
7008 | cat conftest.err >&5 | |
7009 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7010 | (exit $ac_status); } >/dev/null && { | |
7011 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7012 | test ! -s conftest.err | |
7013 | }; then | |
7014 | # Broken: success on invalid input. | |
7015 | continue | |
7016 | else | |
7017 | $as_echo "$as_me: failed program was:" >&5 | |
7018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 7019 | |
8934764e BB |
7020 | # Passes both tests. |
7021 | ac_preproc_ok=: | |
7022 | break | |
7023 | fi | |
bf9f3bac | 7024 | |
8934764e | 7025 | rm -f conftest.err conftest.$ac_ext |
bf9f3bac | 7026 | |
8934764e BB |
7027 | done |
7028 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7029 | rm -f conftest.err conftest.$ac_ext | |
7030 | if $ac_preproc_ok; then | |
7031 | : | |
7032 | else | |
7033 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
7034 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7035 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
7036 | See \`config.log' for more details." >&5 | |
7037 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
7038 | See \`config.log' for more details." >&2;} | |
7039 | { (exit 1); exit 1; }; }; } | |
7040 | fi | |
bf9f3bac | 7041 | |
8934764e BB |
7042 | ac_ext=c |
7043 | ac_cpp='$CPP $CPPFLAGS' | |
7044 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7045 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7046 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bf9f3bac | 7047 | |
bf9f3bac | 7048 | |
8934764e BB |
7049 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
7050 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7051 | if test "${ac_cv_header_stdc+set}" = set; then | |
7052 | $as_echo_n "(cached) " >&6 | |
7053 | else | |
7054 | cat >conftest.$ac_ext <<_ACEOF | |
7055 | /* confdefs.h. */ | |
7056 | _ACEOF | |
7057 | cat confdefs.h >>conftest.$ac_ext | |
7058 | cat >>conftest.$ac_ext <<_ACEOF | |
7059 | /* end confdefs.h. */ | |
7060 | #include <stdlib.h> | |
7061 | #include <stdarg.h> | |
7062 | #include <string.h> | |
7063 | #include <float.h> | |
bf9f3bac | 7064 | |
8934764e BB |
7065 | int |
7066 | main () | |
7067 | { | |
bf9f3bac | 7068 | |
8934764e BB |
7069 | ; |
7070 | return 0; | |
7071 | } | |
7072 | _ACEOF | |
7073 | rm -f conftest.$ac_objext | |
7074 | if { (ac_try="$ac_compile" | |
7075 | case "(($ac_try" in | |
7076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7077 | *) ac_try_echo=$ac_try;; | |
7078 | esac | |
7079 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7080 | $as_echo "$ac_try_echo") >&5 | |
7081 | (eval "$ac_compile") 2>conftest.er1 | |
7082 | ac_status=$? | |
7083 | grep -v '^ *+' conftest.er1 >conftest.err | |
7084 | rm -f conftest.er1 | |
7085 | cat conftest.err >&5 | |
7086 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7087 | (exit $ac_status); } && { | |
7088 | test -z "$ac_c_werror_flag" || | |
7089 | test ! -s conftest.err | |
7090 | } && test -s conftest.$ac_objext; then | |
7091 | ac_cv_header_stdc=yes | |
bf9f3bac | 7092 | else |
8934764e BB |
7093 | $as_echo "$as_me: failed program was:" >&5 |
7094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 7095 | |
8934764e | 7096 | ac_cv_header_stdc=no |
bf9f3bac | 7097 | fi |
bf9f3bac | 7098 | |
8934764e | 7099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bf9f3bac | 7100 | |
8934764e BB |
7101 | if test $ac_cv_header_stdc = yes; then |
7102 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7103 | cat >conftest.$ac_ext <<_ACEOF | |
7104 | /* confdefs.h. */ | |
7105 | _ACEOF | |
7106 | cat confdefs.h >>conftest.$ac_ext | |
7107 | cat >>conftest.$ac_ext <<_ACEOF | |
7108 | /* end confdefs.h. */ | |
7109 | #include <string.h> | |
bf9f3bac | 7110 | |
8934764e BB |
7111 | _ACEOF |
7112 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7113 | $EGREP "memchr" >/dev/null 2>&1; then | |
7114 | : | |
bf9f3bac | 7115 | else |
8934764e BB |
7116 | ac_cv_header_stdc=no |
7117 | fi | |
7118 | rm -f conftest* | |
bf9f3bac BB |
7119 | |
7120 | fi | |
bf9f3bac | 7121 | |
8934764e BB |
7122 | if test $ac_cv_header_stdc = yes; then |
7123 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7124 | cat >conftest.$ac_ext <<_ACEOF | |
7125 | /* confdefs.h. */ | |
7126 | _ACEOF | |
7127 | cat confdefs.h >>conftest.$ac_ext | |
7128 | cat >>conftest.$ac_ext <<_ACEOF | |
7129 | /* end confdefs.h. */ | |
7130 | #include <stdlib.h> | |
7131 | ||
7132 | _ACEOF | |
7133 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7134 | $EGREP "free" >/dev/null 2>&1; then | |
7135 | : | |
bf9f3bac | 7136 | else |
8934764e | 7137 | ac_cv_header_stdc=no |
bf9f3bac | 7138 | fi |
8934764e | 7139 | rm -f conftest* |
bf9f3bac | 7140 | |
8934764e | 7141 | fi |
bf9f3bac | 7142 | |
8934764e BB |
7143 | if test $ac_cv_header_stdc = yes; then |
7144 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7145 | if test "$cross_compiling" = yes; then | |
7146 | : | |
bf9f3bac | 7147 | else |
8934764e BB |
7148 | cat >conftest.$ac_ext <<_ACEOF |
7149 | /* confdefs.h. */ | |
7150 | _ACEOF | |
7151 | cat confdefs.h >>conftest.$ac_ext | |
7152 | cat >>conftest.$ac_ext <<_ACEOF | |
7153 | /* end confdefs.h. */ | |
7154 | #include <ctype.h> | |
7155 | #include <stdlib.h> | |
7156 | #if ((' ' & 0x0FF) == 0x020) | |
7157 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7158 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7159 | #else | |
7160 | # define ISLOWER(c) \ | |
7161 | (('a' <= (c) && (c) <= 'i') \ | |
7162 | || ('j' <= (c) && (c) <= 'r') \ | |
7163 | || ('s' <= (c) && (c) <= 'z')) | |
7164 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7165 | #endif | |
bf9f3bac | 7166 | |
8934764e BB |
7167 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7168 | int | |
7169 | main () | |
7170 | { | |
7171 | int i; | |
7172 | for (i = 0; i < 256; i++) | |
7173 | if (XOR (islower (i), ISLOWER (i)) | |
7174 | || toupper (i) != TOUPPER (i)) | |
7175 | return 2; | |
7176 | return 0; | |
7177 | } | |
7178 | _ACEOF | |
7179 | rm -f conftest$ac_exeext | |
7180 | if { (ac_try="$ac_link" | |
7181 | case "(($ac_try" in | |
7182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7183 | *) ac_try_echo=$ac_try;; | |
7184 | esac | |
7185 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7186 | $as_echo "$ac_try_echo") >&5 | |
7187 | (eval "$ac_link") 2>&5 | |
7188 | ac_status=$? | |
7189 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7190 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7191 | { (case "(($ac_try" in | |
7192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7193 | *) ac_try_echo=$ac_try;; | |
7194 | esac | |
7195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7196 | $as_echo "$ac_try_echo") >&5 | |
7197 | (eval "$ac_try") 2>&5 | |
7198 | ac_status=$? | |
7199 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7200 | (exit $ac_status); }; }; then | |
7201 | : | |
7202 | else | |
7203 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
7204 | $as_echo "$as_me: failed program was:" >&5 | |
7205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 7206 | |
8934764e BB |
7207 | ( exit $ac_status ) |
7208 | ac_cv_header_stdc=no | |
7209 | fi | |
7210 | rm -rf conftest.dSYM | |
7211 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
bf9f3bac | 7212 | fi |
bf9f3bac BB |
7213 | |
7214 | ||
bf9f3bac | 7215 | fi |
8934764e BB |
7216 | fi |
7217 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
7218 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7219 | if test $ac_cv_header_stdc = yes; then | |
bf9f3bac | 7220 | |
8934764e BB |
7221 | cat >>confdefs.h <<\_ACEOF |
7222 | #define STDC_HEADERS 1 | |
7223 | _ACEOF | |
bf9f3bac | 7224 | |
8934764e | 7225 | fi |
bf9f3bac | 7226 | |
8934764e | 7227 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
bf9f3bac | 7228 | |
bf9f3bac | 7229 | |
bf9f3bac | 7230 | |
bf9f3bac | 7231 | |
bf9f3bac | 7232 | |
bf9f3bac | 7233 | |
bf9f3bac | 7234 | |
bf9f3bac | 7235 | |
bf9f3bac | 7236 | |
8934764e BB |
7237 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7238 | inttypes.h stdint.h unistd.h | |
7239 | do | |
7240 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7241 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7242 | $as_echo_n "checking for $ac_header... " >&6; } | |
7243 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7244 | $as_echo_n "(cached) " >&6 | |
7245 | else | |
7246 | cat >conftest.$ac_ext <<_ACEOF | |
7247 | /* confdefs.h. */ | |
7248 | _ACEOF | |
7249 | cat confdefs.h >>conftest.$ac_ext | |
7250 | cat >>conftest.$ac_ext <<_ACEOF | |
7251 | /* end confdefs.h. */ | |
7252 | $ac_includes_default | |
bf9f3bac | 7253 | |
8934764e BB |
7254 | #include <$ac_header> |
7255 | _ACEOF | |
7256 | rm -f conftest.$ac_objext | |
7257 | if { (ac_try="$ac_compile" | |
7258 | case "(($ac_try" in | |
7259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7260 | *) ac_try_echo=$ac_try;; | |
7261 | esac | |
7262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7263 | $as_echo "$ac_try_echo") >&5 | |
7264 | (eval "$ac_compile") 2>conftest.er1 | |
7265 | ac_status=$? | |
7266 | grep -v '^ *+' conftest.er1 >conftest.err | |
7267 | rm -f conftest.er1 | |
7268 | cat conftest.err >&5 | |
7269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7270 | (exit $ac_status); } && { | |
7271 | test -z "$ac_c_werror_flag" || | |
7272 | test ! -s conftest.err | |
7273 | } && test -s conftest.$ac_objext; then | |
7274 | eval "$as_ac_Header=yes" | |
7275 | else | |
7276 | $as_echo "$as_me: failed program was:" >&5 | |
7277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 7278 | |
8934764e BB |
7279 | eval "$as_ac_Header=no" |
7280 | fi | |
bf9f3bac | 7281 | |
8934764e BB |
7282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7283 | fi | |
7284 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7285 | $as_echo "$as_val"'` | |
7286 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7287 | $as_echo "$ac_res" >&6; } | |
7288 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7289 | $as_echo "$as_val"'` | |
7290 | if test "x$as_val" = x""yes; then | |
7291 | cat >>confdefs.h <<_ACEOF | |
7292 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7293 | _ACEOF | |
bf9f3bac | 7294 | |
8934764e | 7295 | fi |
bf9f3bac | 7296 | |
8934764e | 7297 | done |
bf9f3bac | 7298 | |
bf9f3bac | 7299 | |
bf9f3bac | 7300 | |
8934764e BB |
7301 | for ac_header in dlfcn.h |
7302 | do | |
7303 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7304 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7305 | $as_echo_n "checking for $ac_header... " >&6; } | |
7306 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7307 | $as_echo_n "(cached) " >&6 | |
7308 | else | |
7309 | cat >conftest.$ac_ext <<_ACEOF | |
bf9f3bac BB |
7310 | /* confdefs.h. */ |
7311 | _ACEOF | |
7312 | cat confdefs.h >>conftest.$ac_ext | |
7313 | cat >>conftest.$ac_ext <<_ACEOF | |
7314 | /* end confdefs.h. */ | |
8934764e | 7315 | $ac_includes_default |
bf9f3bac | 7316 | |
8934764e | 7317 | #include <$ac_header> |
bf9f3bac | 7318 | _ACEOF |
8934764e BB |
7319 | rm -f conftest.$ac_objext |
7320 | if { (ac_try="$ac_compile" | |
7321 | case "(($ac_try" in | |
7322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7323 | *) ac_try_echo=$ac_try;; | |
7324 | esac | |
7325 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7326 | $as_echo "$ac_try_echo") >&5 | |
7327 | (eval "$ac_compile") 2>conftest.er1 | |
bf9f3bac BB |
7328 | ac_status=$? |
7329 | grep -v '^ *+' conftest.er1 >conftest.err | |
7330 | rm -f conftest.er1 | |
7331 | cat conftest.err >&5 | |
8934764e BB |
7332 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7333 | (exit $ac_status); } && { | |
7334 | test -z "$ac_c_werror_flag" || | |
7335 | test ! -s conftest.err | |
7336 | } && test -s conftest.$ac_objext; then | |
7337 | eval "$as_ac_Header=yes" | |
bf9f3bac | 7338 | else |
8934764e | 7339 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
7340 | sed 's/^/| /' conftest.$ac_ext >&5 |
7341 | ||
8934764e | 7342 | eval "$as_ac_Header=no" |
bf9f3bac | 7343 | fi |
bf9f3bac | 7344 | |
8934764e BB |
7345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7346 | fi | |
7347 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7348 | $as_echo "$as_val"'` | |
7349 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7350 | $as_echo "$ac_res" >&6; } | |
7351 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7352 | $as_echo "$as_val"'` | |
7353 | if test "x$as_val" = x""yes; then | |
7354 | cat >>confdefs.h <<_ACEOF | |
7355 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
bf9f3bac | 7356 | _ACEOF |
bf9f3bac BB |
7357 | |
7358 | fi | |
bf9f3bac | 7359 | |
8934764e | 7360 | done |
bf9f3bac | 7361 | |
bf9f3bac | 7362 | |
bf9f3bac | 7363 | |
8934764e | 7364 | # Set options |
bf9f3bac | 7365 | |
bf9f3bac | 7366 | |
bf9f3bac | 7367 | |
8934764e | 7368 | enable_dlopen=no |
bf9f3bac | 7369 | |
bf9f3bac | 7370 | |
8934764e | 7371 | enable_win32_dll=no |
bf9f3bac | 7372 | |
bf9f3bac | 7373 | |
8934764e BB |
7374 | # Check whether --enable-shared was given. |
7375 | if test "${enable_shared+set}" = set; then | |
7376 | enableval=$enable_shared; p=${PACKAGE-default} | |
7377 | case $enableval in | |
7378 | yes) enable_shared=yes ;; | |
7379 | no) enable_shared=no ;; | |
7380 | *) | |
7381 | enable_shared=no | |
7382 | # Look at the argument we got. We use all the common list separators. | |
7383 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7384 | for pkg in $enableval; do | |
7385 | IFS="$lt_save_ifs" | |
7386 | if test "X$pkg" = "X$p"; then | |
7387 | enable_shared=yes | |
7388 | fi | |
7389 | done | |
7390 | IFS="$lt_save_ifs" | |
bf9f3bac | 7391 | ;; |
8934764e BB |
7392 | esac |
7393 | else | |
7394 | enable_shared=yes | |
7395 | fi | |
bf9f3bac | 7396 | |
bf9f3bac | 7397 | |
bf9f3bac | 7398 | |
bf9f3bac | 7399 | |
bf9f3bac | 7400 | |
bf9f3bac | 7401 | |
bf9f3bac | 7402 | |
8934764e BB |
7403 | |
7404 | ||
7405 | # Check whether --enable-static was given. | |
7406 | if test "${enable_static+set}" = set; then | |
7407 | enableval=$enable_static; p=${PACKAGE-default} | |
7408 | case $enableval in | |
7409 | yes) enable_static=yes ;; | |
7410 | no) enable_static=no ;; | |
7411 | *) | |
7412 | enable_static=no | |
7413 | # Look at the argument we got. We use all the common list separators. | |
7414 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7415 | for pkg in $enableval; do | |
7416 | IFS="$lt_save_ifs" | |
7417 | if test "X$pkg" = "X$p"; then | |
7418 | enable_static=yes | |
7419 | fi | |
7420 | done | |
7421 | IFS="$lt_save_ifs" | |
7422 | ;; | |
7423 | esac | |
bf9f3bac | 7424 | else |
8934764e | 7425 | enable_static=yes |
bf9f3bac | 7426 | fi |
bf9f3bac | 7427 | |
8934764e BB |
7428 | |
7429 | ||
7430 | ||
7431 | ||
7432 | ||
7433 | ||
7434 | ||
7435 | ||
7436 | ||
7437 | # Check whether --with-pic was given. | |
7438 | if test "${with_pic+set}" = set; then | |
7439 | withval=$with_pic; pic_mode="$withval" | |
7440 | else | |
7441 | pic_mode=default | |
bf9f3bac BB |
7442 | fi |
7443 | ||
7444 | ||
8934764e BB |
7445 | test -z "$pic_mode" && pic_mode=default |
7446 | ||
7447 | ||
7448 | ||
7449 | ||
7450 | ||
7451 | ||
7452 | ||
7453 | # Check whether --enable-fast-install was given. | |
7454 | if test "${enable_fast_install+set}" = set; then | |
7455 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7456 | case $enableval in | |
7457 | yes) enable_fast_install=yes ;; | |
7458 | no) enable_fast_install=no ;; | |
bf9f3bac | 7459 | *) |
8934764e BB |
7460 | enable_fast_install=no |
7461 | # Look at the argument we got. We use all the common list separators. | |
7462 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7463 | for pkg in $enableval; do | |
7464 | IFS="$lt_save_ifs" | |
7465 | if test "X$pkg" = "X$p"; then | |
7466 | enable_fast_install=yes | |
7467 | fi | |
7468 | done | |
7469 | IFS="$lt_save_ifs" | |
bf9f3bac BB |
7470 | ;; |
7471 | esac | |
8934764e BB |
7472 | else |
7473 | enable_fast_install=yes | |
7474 | fi | |
bf9f3bac | 7475 | |
bf9f3bac | 7476 | |
bf9f3bac | 7477 | |
bf9f3bac | 7478 | |
bf9f3bac | 7479 | |
bf9f3bac | 7480 | |
bf9f3bac | 7481 | |
bf9f3bac | 7482 | |
bf9f3bac | 7483 | |
bf9f3bac | 7484 | |
bf9f3bac | 7485 | |
8934764e BB |
7486 | # This can be used to rebuild libtool when needed |
7487 | LIBTOOL_DEPS="$ltmain" | |
bf9f3bac | 7488 | |
8934764e BB |
7489 | # Always use our own libtool. |
7490 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
bf9f3bac | 7491 | |
bf9f3bac | 7492 | |
bf9f3bac | 7493 | |
bf9f3bac | 7494 | |
bf9f3bac | 7495 | |
bf9f3bac | 7496 | |
bf9f3bac | 7497 | |
bf9f3bac | 7498 | |
bf9f3bac | 7499 | |
bf9f3bac | 7500 | |
bf9f3bac | 7501 | |
bf9f3bac | 7502 | |
bf9f3bac | 7503 | |
bf9f3bac | 7504 | |
bf9f3bac | 7505 | |
bf9f3bac | 7506 | |
bf9f3bac | 7507 | |
bf9f3bac | 7508 | |
bf9f3bac | 7509 | |
bf9f3bac | 7510 | |
bf9f3bac | 7511 | |
bf9f3bac | 7512 | |
bf9f3bac | 7513 | |
bf9f3bac | 7514 | |
bf9f3bac | 7515 | |
8934764e | 7516 | test -z "$LN_S" && LN_S="ln -s" |
bf9f3bac | 7517 | |
bf9f3bac | 7518 | |
bf9f3bac | 7519 | |
bf9f3bac | 7520 | |
bf9f3bac | 7521 | |
bf9f3bac | 7522 | |
bf9f3bac | 7523 | |
bf9f3bac | 7524 | |
bf9f3bac | 7525 | |
bf9f3bac | 7526 | |
bf9f3bac | 7527 | |
bf9f3bac | 7528 | |
bf9f3bac | 7529 | |
bf9f3bac | 7530 | |
8934764e BB |
7531 | if test -n "${ZSH_VERSION+set}" ; then |
7532 | setopt NO_GLOB_SUBST | |
7533 | fi | |
bf9f3bac | 7534 | |
8934764e BB |
7535 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
7536 | $as_echo_n "checking for objdir... " >&6; } | |
7537 | if test "${lt_cv_objdir+set}" = set; then | |
7538 | $as_echo_n "(cached) " >&6 | |
7539 | else | |
7540 | rm -f .libs 2>/dev/null | |
7541 | mkdir .libs 2>/dev/null | |
7542 | if test -d .libs; then | |
7543 | lt_cv_objdir=.libs | |
7544 | else | |
7545 | # MS-DOS does not allow filenames that begin with a dot. | |
7546 | lt_cv_objdir=_libs | |
7547 | fi | |
7548 | rmdir .libs 2>/dev/null | |
7549 | fi | |
7550 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7551 | $as_echo "$lt_cv_objdir" >&6; } | |
7552 | objdir=$lt_cv_objdir | |
bf9f3bac | 7553 | |
bf9f3bac | 7554 | |
bf9f3bac | 7555 | |
bf9f3bac | 7556 | |
bf9f3bac | 7557 | |
8934764e BB |
7558 | cat >>confdefs.h <<_ACEOF |
7559 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7560 | _ACEOF | |
bf9f3bac | 7561 | |
bf9f3bac | 7562 | |
bf9f3bac | 7563 | |
bf9f3bac | 7564 | |
bf9f3bac | 7565 | |
bf9f3bac | 7566 | |
bf9f3bac | 7567 | |
bf9f3bac | 7568 | |
bf9f3bac | 7569 | |
bf9f3bac | 7570 | |
bf9f3bac | 7571 | |
bf9f3bac | 7572 | |
bf9f3bac | 7573 | |
bf9f3bac | 7574 | |
bf9f3bac | 7575 | |
bf9f3bac | 7576 | |
bf9f3bac | 7577 | |
8934764e BB |
7578 | case $host_os in |
7579 | aix3*) | |
7580 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7581 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7582 | # vanish in a puff of smoke. | |
7583 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7584 | COLLECT_NAMES= | |
7585 | export COLLECT_NAMES | |
7586 | fi | |
7587 | ;; | |
7588 | esac | |
bf9f3bac | 7589 | |
8934764e BB |
7590 | # Sed substitution that helps us do robust quoting. It backslashifies |
7591 | # metacharacters that are still active within double-quoted strings. | |
7592 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
bf9f3bac | 7593 | |
8934764e BB |
7594 | # Same as above, but do not quote variable references. |
7595 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
bf9f3bac | 7596 | |
8934764e BB |
7597 | # Sed substitution to delay expansion of an escaped shell variable in a |
7598 | # double_quote_subst'ed string. | |
7599 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
bf9f3bac | 7600 | |
8934764e BB |
7601 | # Sed substitution to delay expansion of an escaped single quote. |
7602 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
bf9f3bac | 7603 | |
8934764e BB |
7604 | # Sed substitution to avoid accidental globbing in evaled expressions |
7605 | no_glob_subst='s/\*/\\\*/g' | |
bf9f3bac | 7606 | |
8934764e BB |
7607 | # Global variables: |
7608 | ofile=libtool | |
7609 | can_build_shared=yes | |
bf9f3bac | 7610 | |
8934764e BB |
7611 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7612 | # which needs '.lib'). | |
7613 | libext=a | |
bf9f3bac | 7614 | |
8934764e | 7615 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
bf9f3bac | 7616 | |
8934764e BB |
7617 | old_CC="$CC" |
7618 | old_CFLAGS="$CFLAGS" | |
bf9f3bac | 7619 | |
8934764e BB |
7620 | # Set sane defaults for various variables |
7621 | test -z "$CC" && CC=cc | |
7622 | test -z "$LTCC" && LTCC=$CC | |
7623 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7624 | test -z "$LD" && LD=ld | |
7625 | test -z "$ac_objext" && ac_objext=o | |
bf9f3bac | 7626 | |
8934764e BB |
7627 | for cc_temp in $compiler""; do |
7628 | case $cc_temp in | |
7629 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7630 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7631 | \-*) ;; | |
7632 | *) break;; | |
7633 | esac | |
7634 | done | |
7635 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
bf9f3bac | 7636 | |
bf9f3bac | 7637 | |
8934764e BB |
7638 | # Only perform the check for file, if the check method requires it |
7639 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7640 | case $deplibs_check_method in | |
7641 | file_magic*) | |
7642 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7643 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7644 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7645 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7646 | $as_echo_n "(cached) " >&6 | |
7647 | else | |
7648 | case $MAGIC_CMD in | |
7649 | [\\/*] | ?:[\\/]*) | |
7650 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7651 | ;; | |
7652 | *) | |
7653 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7654 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7655 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7656 | for ac_dir in $ac_dummy; do | |
7657 | IFS="$lt_save_ifs" | |
7658 | test -z "$ac_dir" && ac_dir=. | |
7659 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7660 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7661 | if test -n "$file_magic_test_file"; then | |
7662 | case $deplibs_check_method in | |
7663 | "file_magic "*) | |
7664 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7665 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7666 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7667 | $EGREP "$file_magic_regex" > /dev/null; then | |
7668 | : | |
7669 | else | |
7670 | cat <<_LT_EOF 1>&2 | |
bf9f3bac | 7671 | |
8934764e BB |
7672 | *** Warning: the command libtool uses to detect shared libraries, |
7673 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7674 | *** The result is that libtool may fail to recognize shared libraries | |
7675 | *** as such. This will affect the creation of libtool libraries that | |
7676 | *** depend on shared libraries, but programs linked with such libtool | |
7677 | *** libraries will work regardless of this problem. Nevertheless, you | |
7678 | *** may want to report the problem to your system manager and/or to | |
7679 | *** bug-libtool@gnu.org | |
bf9f3bac | 7680 | |
8934764e BB |
7681 | _LT_EOF |
7682 | fi ;; | |
7683 | esac | |
7684 | fi | |
7685 | break | |
7686 | fi | |
7687 | done | |
7688 | IFS="$lt_save_ifs" | |
7689 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7690 | ;; | |
7691 | esac | |
7692 | fi | |
bf9f3bac | 7693 | |
8934764e BB |
7694 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7695 | if test -n "$MAGIC_CMD"; then | |
7696 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7697 | $as_echo "$MAGIC_CMD" >&6; } | |
7698 | else | |
7699 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7700 | $as_echo "no" >&6; } | |
7701 | fi | |
bf9f3bac | 7702 | |
bf9f3bac | 7703 | |
bf9f3bac | 7704 | |
bf9f3bac | 7705 | |
bf9f3bac | 7706 | |
8934764e BB |
7707 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7708 | if test -n "$ac_tool_prefix"; then | |
7709 | { $as_echo "$as_me:$LINENO: checking for file" >&5 | |
7710 | $as_echo_n "checking for file... " >&6; } | |
7711 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7712 | $as_echo_n "(cached) " >&6 | |
7713 | else | |
7714 | case $MAGIC_CMD in | |
7715 | [\\/*] | ?:[\\/]*) | |
7716 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7717 | ;; | |
7718 | *) | |
7719 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7720 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7721 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7722 | for ac_dir in $ac_dummy; do | |
7723 | IFS="$lt_save_ifs" | |
7724 | test -z "$ac_dir" && ac_dir=. | |
7725 | if test -f $ac_dir/file; then | |
7726 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7727 | if test -n "$file_magic_test_file"; then | |
7728 | case $deplibs_check_method in | |
7729 | "file_magic "*) | |
7730 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7731 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7732 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7733 | $EGREP "$file_magic_regex" > /dev/null; then | |
7734 | : | |
7735 | else | |
7736 | cat <<_LT_EOF 1>&2 | |
7737 | ||
7738 | *** Warning: the command libtool uses to detect shared libraries, | |
7739 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7740 | *** The result is that libtool may fail to recognize shared libraries | |
7741 | *** as such. This will affect the creation of libtool libraries that | |
7742 | *** depend on shared libraries, but programs linked with such libtool | |
7743 | *** libraries will work regardless of this problem. Nevertheless, you | |
7744 | *** may want to report the problem to your system manager and/or to | |
7745 | *** bug-libtool@gnu.org | |
bf9f3bac | 7746 | |
8934764e BB |
7747 | _LT_EOF |
7748 | fi ;; | |
7749 | esac | |
7750 | fi | |
7751 | break | |
7752 | fi | |
7753 | done | |
7754 | IFS="$lt_save_ifs" | |
7755 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7756 | ;; | |
7757 | esac | |
7758 | fi | |
bf9f3bac | 7759 | |
8934764e BB |
7760 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7761 | if test -n "$MAGIC_CMD"; then | |
7762 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7763 | $as_echo "$MAGIC_CMD" >&6; } | |
7764 | else | |
7765 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7766 | $as_echo "no" >&6; } | |
7767 | fi | |
bf9f3bac BB |
7768 | |
7769 | ||
8934764e BB |
7770 | else |
7771 | MAGIC_CMD=: | |
bf9f3bac BB |
7772 | fi |
7773 | fi | |
7774 | ||
8934764e BB |
7775 | fi |
7776 | ;; | |
7777 | esac | |
7778 | ||
7779 | # Use C for the default configuration in the libtool script | |
bf9f3bac | 7780 | |
8934764e | 7781 | lt_save_CC="$CC" |
bf9f3bac BB |
7782 | ac_ext=c |
7783 | ac_cpp='$CPP $CPPFLAGS' | |
7784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7787 | ||
bf9f3bac | 7788 | |
8934764e BB |
7789 | # Source file extension for C test sources. |
7790 | ac_ext=c | |
bf9f3bac | 7791 | |
8934764e BB |
7792 | # Object file extension for compiled C test sources. |
7793 | objext=o | |
7794 | objext=$objext | |
bf9f3bac | 7795 | |
8934764e BB |
7796 | # Code to be used in simple compile tests |
7797 | lt_simple_compile_test_code="int some_variable = 0;" | |
7798 | ||
7799 | # Code to be used in simple link tests | |
7800 | lt_simple_link_test_code='int main(){return(0);}' | |
bf9f3bac BB |
7801 | |
7802 | ||
bf9f3bac | 7803 | |
bf9f3bac | 7804 | |
bf9f3bac | 7805 | |
bf9f3bac | 7806 | |
bf9f3bac BB |
7807 | |
7808 | # If no C compiler was specified, use CC. | |
7809 | LTCC=${LTCC-"$CC"} | |
7810 | ||
7811 | # If no C compiler flags were specified, use CFLAGS. | |
7812 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7813 | ||
7814 | # Allow CC to be a program name with arguments. | |
7815 | compiler=$CC | |
7816 | ||
8934764e BB |
7817 | # Save the default compiler, since it gets overwritten when the other |
7818 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7819 | compiler_DEFAULT=$CC | |
bf9f3bac BB |
7820 | |
7821 | # save warnings/boilerplate of simple test code | |
7822 | ac_outfile=conftest.$ac_objext | |
8934764e | 7823 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
bf9f3bac BB |
7824 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7825 | _lt_compiler_boilerplate=`cat conftest.err` | |
8934764e | 7826 | $RM conftest* |
bf9f3bac BB |
7827 | |
7828 | ac_outfile=conftest.$ac_objext | |
8934764e | 7829 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
bf9f3bac BB |
7830 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7831 | _lt_linker_boilerplate=`cat conftest.err` | |
8934764e | 7832 | $RM -r conftest* |
bf9f3bac | 7833 | |
bf9f3bac | 7834 | |
8934764e | 7835 | if test -n "$compiler"; then |
bf9f3bac | 7836 | |
8934764e | 7837 | lt_prog_compiler_no_builtin_flag= |
bf9f3bac BB |
7838 | |
7839 | if test "$GCC" = yes; then | |
8934764e | 7840 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
bf9f3bac | 7841 | |
8934764e BB |
7842 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7843 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
bf9f3bac | 7844 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
8934764e | 7845 | $as_echo_n "(cached) " >&6 |
bf9f3bac BB |
7846 | else |
7847 | lt_cv_prog_compiler_rtti_exceptions=no | |
8934764e BB |
7848 | ac_outfile=conftest.$ac_objext |
7849 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
bf9f3bac BB |
7850 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7851 | # Insert the option either (1) after the last *FLAGS variable, or | |
7852 | # (2) before a word containing "conftest.", or (3) at the end. | |
7853 | # Note that $ac_compile itself does not contain backslashes and begins | |
7854 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7855 | # The option is referenced via a variable to avoid confusing sed. | |
7856 | lt_compile=`echo "$ac_compile" | $SED \ | |
7857 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7858 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7859 | -e 's:$: $lt_compiler_flag:'` | |
0408008b | 7860 | (eval echo "\"\$as_me:7860: $lt_compile\"" >&5) |
bf9f3bac BB |
7861 | (eval "$lt_compile" 2>conftest.err) |
7862 | ac_status=$? | |
7863 | cat conftest.err >&5 | |
0408008b | 7864 | echo "$as_me:7864: \$? = $ac_status" >&5 |
bf9f3bac BB |
7865 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7866 | # The compiler can only warn and ignore the option if not recognized | |
7867 | # So say no if there are warnings other than the usual output. | |
8934764e | 7868 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
bf9f3bac BB |
7869 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7870 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7871 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7872 | fi | |
7873 | fi | |
8934764e | 7874 | $RM conftest* |
bf9f3bac BB |
7875 | |
7876 | fi | |
8934764e BB |
7877 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7878 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
bf9f3bac BB |
7879 | |
7880 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8934764e | 7881 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
bf9f3bac BB |
7882 | else |
7883 | : | |
7884 | fi | |
7885 | ||
7886 | fi | |
7887 | ||
bf9f3bac | 7888 | |
8934764e BB |
7889 | |
7890 | ||
7891 | ||
7892 | ||
7893 | lt_prog_compiler_wl= | |
7894 | lt_prog_compiler_pic= | |
7895 | lt_prog_compiler_static= | |
7896 | ||
7897 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7898 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
bf9f3bac BB |
7899 | |
7900 | if test "$GCC" = yes; then | |
8934764e BB |
7901 | lt_prog_compiler_wl='-Wl,' |
7902 | lt_prog_compiler_static='-static' | |
bf9f3bac BB |
7903 | |
7904 | case $host_os in | |
7905 | aix*) | |
7906 | # All AIX code is PIC. | |
7907 | if test "$host_cpu" = ia64; then | |
7908 | # AIX 5 now supports IA64 processor | |
8934764e | 7909 | lt_prog_compiler_static='-Bstatic' |
bf9f3bac BB |
7910 | fi |
7911 | ;; | |
7912 | ||
7913 | amigaos*) | |
8934764e BB |
7914 | case $host_cpu in |
7915 | powerpc) | |
7916 | # see comment about AmigaOS4 .so support | |
7917 | lt_prog_compiler_pic='-fPIC' | |
7918 | ;; | |
7919 | m68k) | |
7920 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7921 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7922 | # like `-m68040'. | |
7923 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7924 | ;; | |
7925 | esac | |
bf9f3bac BB |
7926 | ;; |
7927 | ||
8934764e | 7928 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bf9f3bac BB |
7929 | # PIC is the default for these OSes. |
7930 | ;; | |
7931 | ||
8934764e | 7932 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bf9f3bac BB |
7933 | # This hack is so that the source file can tell whether it is being |
7934 | # built for inclusion in a dll (and should export symbols for example). | |
8934764e BB |
7935 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
7936 | # (--disable-auto-import) libraries | |
7937 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
bf9f3bac BB |
7938 | ;; |
7939 | ||
7940 | darwin* | rhapsody*) | |
7941 | # PIC is the default on this platform | |
7942 | # Common symbols not allowed in MH_DYLIB files | |
8934764e BB |
7943 | lt_prog_compiler_pic='-fno-common' |
7944 | ;; | |
7945 | ||
7946 | hpux*) | |
7947 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7948 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7949 | # sets the default TLS model and affects inlining. | |
7950 | case $host_cpu in | |
7951 | hppa*64*) | |
7952 | # +Z the default | |
7953 | ;; | |
7954 | *) | |
7955 | lt_prog_compiler_pic='-fPIC' | |
7956 | ;; | |
7957 | esac | |
bf9f3bac BB |
7958 | ;; |
7959 | ||
8934764e | 7960 | interix[3-9]*) |
bf9f3bac BB |
7961 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7962 | # Instead, we relocate shared libraries at runtime. | |
7963 | ;; | |
7964 | ||
7965 | msdosdjgpp*) | |
7966 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7967 | # on systems that don't support them. | |
8934764e | 7968 | lt_prog_compiler_can_build_shared=no |
bf9f3bac BB |
7969 | enable_shared=no |
7970 | ;; | |
7971 | ||
8934764e BB |
7972 | *nto* | *qnx*) |
7973 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7974 | # it will coredump. | |
7975 | lt_prog_compiler_pic='-fPIC -shared' | |
7976 | ;; | |
7977 | ||
bf9f3bac BB |
7978 | sysv4*MP*) |
7979 | if test -d /usr/nec; then | |
8934764e | 7980 | lt_prog_compiler_pic=-Kconform_pic |
bf9f3bac BB |
7981 | fi |
7982 | ;; | |
7983 | ||
bf9f3bac | 7984 | *) |
8934764e | 7985 | lt_prog_compiler_pic='-fPIC' |
bf9f3bac BB |
7986 | ;; |
7987 | esac | |
7988 | else | |
7989 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7990 | case $host_os in | |
7991 | aix*) | |
8934764e | 7992 | lt_prog_compiler_wl='-Wl,' |
bf9f3bac BB |
7993 | if test "$host_cpu" = ia64; then |
7994 | # AIX 5 now supports IA64 processor | |
8934764e | 7995 | lt_prog_compiler_static='-Bstatic' |
bf9f3bac | 7996 | else |
8934764e | 7997 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
bf9f3bac BB |
7998 | fi |
7999 | ;; | |
bf9f3bac | 8000 | |
8934764e | 8001 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bf9f3bac BB |
8002 | # This hack is so that the source file can tell whether it is being |
8003 | # built for inclusion in a dll (and should export symbols for example). | |
8934764e | 8004 | lt_prog_compiler_pic='-DDLL_EXPORT' |
bf9f3bac BB |
8005 | ;; |
8006 | ||
8007 | hpux9* | hpux10* | hpux11*) | |
8934764e | 8008 | lt_prog_compiler_wl='-Wl,' |
bf9f3bac BB |
8009 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
8010 | # not for PA HP-UX. | |
8011 | case $host_cpu in | |
8012 | hppa*64*|ia64*) | |
8013 | # +Z the default | |
8014 | ;; | |
8015 | *) | |
8934764e | 8016 | lt_prog_compiler_pic='+Z' |
bf9f3bac BB |
8017 | ;; |
8018 | esac | |
8019 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8934764e | 8020 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
bf9f3bac BB |
8021 | ;; |
8022 | ||
8023 | irix5* | irix6* | nonstopux*) | |
8934764e | 8024 | lt_prog_compiler_wl='-Wl,' |
bf9f3bac | 8025 | # PIC (with -KPIC) is the default. |
8934764e | 8026 | lt_prog_compiler_static='-non_shared' |
bf9f3bac BB |
8027 | ;; |
8028 | ||
8934764e | 8029 | linux* | k*bsd*-gnu) |
bf9f3bac | 8030 | case $cc_basename in |
8934764e BB |
8031 | # old Intel for x86_64 which still supported -KPIC. |
8032 | ecc*) | |
8033 | lt_prog_compiler_wl='-Wl,' | |
8034 | lt_prog_compiler_pic='-KPIC' | |
8035 | lt_prog_compiler_static='-static' | |
8036 | ;; | |
8037 | # icc used to be incompatible with GCC. | |
8038 | # ICC 10 doesn't accept -KPIC any more. | |
8039 | icc* | ifort*) | |
8040 | lt_prog_compiler_wl='-Wl,' | |
8041 | lt_prog_compiler_pic='-fPIC' | |
8042 | lt_prog_compiler_static='-static' | |
bf9f3bac | 8043 | ;; |
8934764e BB |
8044 | # Lahey Fortran 8.1. |
8045 | lf95*) | |
8046 | lt_prog_compiler_wl='-Wl,' | |
8047 | lt_prog_compiler_pic='--shared' | |
8048 | lt_prog_compiler_static='--static' | |
8049 | ;; | |
bf9f3bac BB |
8050 | pgcc* | pgf77* | pgf90* | pgf95*) |
8051 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8052 | # which looks to be a dead project) | |
8934764e BB |
8053 | lt_prog_compiler_wl='-Wl,' |
8054 | lt_prog_compiler_pic='-fpic' | |
8055 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8056 | ;; |
8057 | ccc*) | |
8934764e | 8058 | lt_prog_compiler_wl='-Wl,' |
bf9f3bac | 8059 | # All Alpha code is PIC. |
8934764e | 8060 | lt_prog_compiler_static='-non_shared' |
bf9f3bac | 8061 | ;; |
8934764e BB |
8062 | xl*) |
8063 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8064 | lt_prog_compiler_wl='-Wl,' | |
8065 | lt_prog_compiler_pic='-qpic' | |
8066 | lt_prog_compiler_static='-qstaticlink' | |
8067 | ;; | |
8068 | *) | |
8069 | case `$CC -V 2>&1 | sed 5q` in | |
8070 | *Sun\ C*) | |
8071 | # Sun C 5.9 | |
8072 | lt_prog_compiler_pic='-KPIC' | |
8073 | lt_prog_compiler_static='-Bstatic' | |
8074 | lt_prog_compiler_wl='-Wl,' | |
8075 | ;; | |
8076 | *Sun\ F*) | |
8077 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8078 | lt_prog_compiler_pic='-KPIC' | |
8079 | lt_prog_compiler_static='-Bstatic' | |
8080 | lt_prog_compiler_wl='' | |
8081 | ;; | |
8082 | esac | |
8083 | ;; | |
bf9f3bac BB |
8084 | esac |
8085 | ;; | |
8086 | ||
8934764e BB |
8087 | newsos6) |
8088 | lt_prog_compiler_pic='-KPIC' | |
8089 | lt_prog_compiler_static='-Bstatic' | |
8090 | ;; | |
8091 | ||
8092 | *nto* | *qnx*) | |
8093 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8094 | # it will coredump. | |
8095 | lt_prog_compiler_pic='-fPIC -shared' | |
8096 | ;; | |
8097 | ||
bf9f3bac | 8098 | osf3* | osf4* | osf5*) |
8934764e | 8099 | lt_prog_compiler_wl='-Wl,' |
bf9f3bac | 8100 | # All OSF/1 code is PIC. |
8934764e BB |
8101 | lt_prog_compiler_static='-non_shared' |
8102 | ;; | |
8103 | ||
8104 | rdos*) | |
8105 | lt_prog_compiler_static='-non_shared' | |
bf9f3bac BB |
8106 | ;; |
8107 | ||
8108 | solaris*) | |
8934764e BB |
8109 | lt_prog_compiler_pic='-KPIC' |
8110 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8111 | case $cc_basename in |
8112 | f77* | f90* | f95*) | |
8934764e | 8113 | lt_prog_compiler_wl='-Qoption ld ';; |
bf9f3bac | 8114 | *) |
8934764e | 8115 | lt_prog_compiler_wl='-Wl,';; |
bf9f3bac BB |
8116 | esac |
8117 | ;; | |
8118 | ||
8119 | sunos4*) | |
8934764e BB |
8120 | lt_prog_compiler_wl='-Qoption ld ' |
8121 | lt_prog_compiler_pic='-PIC' | |
8122 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8123 | ;; |
8124 | ||
8125 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8934764e BB |
8126 | lt_prog_compiler_wl='-Wl,' |
8127 | lt_prog_compiler_pic='-KPIC' | |
8128 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8129 | ;; |
8130 | ||
8131 | sysv4*MP*) | |
8132 | if test -d /usr/nec ;then | |
8934764e BB |
8133 | lt_prog_compiler_pic='-Kconform_pic' |
8134 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8135 | fi |
8136 | ;; | |
8137 | ||
8138 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8934764e BB |
8139 | lt_prog_compiler_wl='-Wl,' |
8140 | lt_prog_compiler_pic='-KPIC' | |
8141 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8142 | ;; |
8143 | ||
8144 | unicos*) | |
8934764e BB |
8145 | lt_prog_compiler_wl='-Wl,' |
8146 | lt_prog_compiler_can_build_shared=no | |
bf9f3bac BB |
8147 | ;; |
8148 | ||
8149 | uts4*) | |
8934764e BB |
8150 | lt_prog_compiler_pic='-pic' |
8151 | lt_prog_compiler_static='-Bstatic' | |
bf9f3bac BB |
8152 | ;; |
8153 | ||
8154 | *) | |
8934764e | 8155 | lt_prog_compiler_can_build_shared=no |
bf9f3bac BB |
8156 | ;; |
8157 | esac | |
8158 | fi | |
8159 | ||
8934764e BB |
8160 | case $host_os in |
8161 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8162 | *djgpp*) | |
8163 | lt_prog_compiler_pic= | |
8164 | ;; | |
8165 | *) | |
8166 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8167 | ;; | |
8168 | esac | |
8169 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
8170 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8171 | ||
8172 | ||
8173 | ||
8174 | ||
8175 | ||
bf9f3bac BB |
8176 | |
8177 | # | |
8178 | # Check to make sure the PIC flag actually works. | |
8179 | # | |
8934764e BB |
8180 | if test -n "$lt_prog_compiler_pic"; then |
8181 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8182 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8183 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then | |
8184 | $as_echo_n "(cached) " >&6 | |
8185 | else | |
8186 | lt_cv_prog_compiler_pic_works=no | |
8187 | ac_outfile=conftest.$ac_objext | |
8188 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8189 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
bf9f3bac BB |
8190 | # Insert the option either (1) after the last *FLAGS variable, or |
8191 | # (2) before a word containing "conftest.", or (3) at the end. | |
8192 | # Note that $ac_compile itself does not contain backslashes and begins | |
8193 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8194 | # The option is referenced via a variable to avoid confusing sed. | |
8195 | lt_compile=`echo "$ac_compile" | $SED \ | |
8196 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8197 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8198 | -e 's:$: $lt_compiler_flag:'` | |
0408008b | 8199 | (eval echo "\"\$as_me:8199: $lt_compile\"" >&5) |
bf9f3bac BB |
8200 | (eval "$lt_compile" 2>conftest.err) |
8201 | ac_status=$? | |
8202 | cat conftest.err >&5 | |
0408008b | 8203 | echo "$as_me:8203: \$? = $ac_status" >&5 |
bf9f3bac BB |
8204 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8205 | # The compiler can only warn and ignore the option if not recognized | |
8206 | # So say no if there are warnings other than the usual output. | |
8934764e | 8207 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
bf9f3bac BB |
8208 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8209 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8934764e | 8210 | lt_cv_prog_compiler_pic_works=yes |
bf9f3bac BB |
8211 | fi |
8212 | fi | |
8934764e | 8213 | $RM conftest* |
bf9f3bac BB |
8214 | |
8215 | fi | |
8934764e BB |
8216 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
8217 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
bf9f3bac | 8218 | |
8934764e BB |
8219 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
8220 | case $lt_prog_compiler_pic in | |
bf9f3bac | 8221 | "" | " "*) ;; |
8934764e | 8222 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
bf9f3bac BB |
8223 | esac |
8224 | else | |
8934764e BB |
8225 | lt_prog_compiler_pic= |
8226 | lt_prog_compiler_can_build_shared=no | |
bf9f3bac BB |
8227 | fi |
8228 | ||
8229 | fi | |
8934764e BB |
8230 | |
8231 | ||
8232 | ||
8233 | ||
8234 | ||
bf9f3bac BB |
8235 | |
8236 | # | |
8237 | # Check to make sure the static flag actually works. | |
8238 | # | |
8934764e BB |
8239 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
8240 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8241 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8242 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then | |
8243 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 8244 | else |
8934764e | 8245 | lt_cv_prog_compiler_static_works=no |
bf9f3bac BB |
8246 | save_LDFLAGS="$LDFLAGS" |
8247 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8934764e | 8248 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
bf9f3bac BB |
8249 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
8250 | # The linker can only warn and ignore the option if not recognized | |
8251 | # So say no if there are warnings | |
8252 | if test -s conftest.err; then | |
8253 | # Append any errors to the config.log. | |
8254 | cat conftest.err 1>&5 | |
8934764e | 8255 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
bf9f3bac BB |
8256 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8257 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8934764e | 8258 | lt_cv_prog_compiler_static_works=yes |
bf9f3bac BB |
8259 | fi |
8260 | else | |
8934764e | 8261 | lt_cv_prog_compiler_static_works=yes |
bf9f3bac BB |
8262 | fi |
8263 | fi | |
8934764e | 8264 | $RM -r conftest* |
bf9f3bac BB |
8265 | LDFLAGS="$save_LDFLAGS" |
8266 | ||
8267 | fi | |
8934764e BB |
8268 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
8269 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
bf9f3bac | 8270 | |
8934764e | 8271 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
bf9f3bac BB |
8272 | : |
8273 | else | |
8934764e BB |
8274 | lt_prog_compiler_static= |
8275 | fi | |
8276 | ||
8277 | ||
8278 | ||
8279 | ||
8280 | ||
8281 | ||
8282 | ||
8283 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8284 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8285 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8286 | $as_echo_n "(cached) " >&6 | |
8287 | else | |
8288 | lt_cv_prog_compiler_c_o=no | |
8289 | $RM -r conftest 2>/dev/null | |
8290 | mkdir conftest | |
8291 | cd conftest | |
8292 | mkdir out | |
8293 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8294 | ||
8295 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8296 | # Insert the option either (1) after the last *FLAGS variable, or | |
8297 | # (2) before a word containing "conftest.", or (3) at the end. | |
8298 | # Note that $ac_compile itself does not contain backslashes and begins | |
8299 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8300 | lt_compile=`echo "$ac_compile" | $SED \ | |
8301 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8302 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8303 | -e 's:$: $lt_compiler_flag:'` | |
0408008b | 8304 | (eval echo "\"\$as_me:8304: $lt_compile\"" >&5) |
8934764e BB |
8305 | (eval "$lt_compile" 2>out/conftest.err) |
8306 | ac_status=$? | |
8307 | cat out/conftest.err >&5 | |
0408008b | 8308 | echo "$as_me:8308: \$? = $ac_status" >&5 |
8934764e BB |
8309 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8310 | then | |
8311 | # The compiler can only warn and ignore the option if not recognized | |
8312 | # So say no if there are warnings | |
8313 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8314 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8315 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8316 | lt_cv_prog_compiler_c_o=yes | |
8317 | fi | |
8318 | fi | |
8319 | chmod u+w . 2>&5 | |
8320 | $RM conftest* | |
8321 | # SGI C++ compiler will create directory out/ii_files/ for | |
8322 | # template instantiation | |
8323 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8324 | $RM out/* && rmdir out | |
8325 | cd .. | |
8326 | $RM -r conftest | |
8327 | $RM conftest* | |
8328 | ||
bf9f3bac | 8329 | fi |
8934764e BB |
8330 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
8331 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8332 | ||
8333 | ||
bf9f3bac BB |
8334 | |
8335 | ||
8934764e BB |
8336 | |
8337 | ||
8338 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8339 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8340 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8341 | $as_echo_n "(cached) " >&6 | |
bf9f3bac | 8342 | else |
8934764e BB |
8343 | lt_cv_prog_compiler_c_o=no |
8344 | $RM -r conftest 2>/dev/null | |
bf9f3bac BB |
8345 | mkdir conftest |
8346 | cd conftest | |
8347 | mkdir out | |
8934764e | 8348 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bf9f3bac BB |
8349 | |
8350 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8351 | # Insert the option either (1) after the last *FLAGS variable, or | |
8352 | # (2) before a word containing "conftest.", or (3) at the end. | |
8353 | # Note that $ac_compile itself does not contain backslashes and begins | |
8354 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8355 | lt_compile=`echo "$ac_compile" | $SED \ | |
8356 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8357 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8358 | -e 's:$: $lt_compiler_flag:'` | |
0408008b | 8359 | (eval echo "\"\$as_me:8359: $lt_compile\"" >&5) |
bf9f3bac BB |
8360 | (eval "$lt_compile" 2>out/conftest.err) |
8361 | ac_status=$? | |
8362 | cat out/conftest.err >&5 | |
0408008b | 8363 | echo "$as_me:8363: \$? = $ac_status" >&5 |
bf9f3bac BB |
8364 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8365 | then | |
8366 | # The compiler can only warn and ignore the option if not recognized | |
8367 | # So say no if there are warnings | |
8934764e | 8368 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
bf9f3bac BB |
8369 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8370 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8934764e | 8371 | lt_cv_prog_compiler_c_o=yes |
bf9f3bac BB |
8372 | fi |
8373 | fi | |
8374 | chmod u+w . 2>&5 | |
8934764e | 8375 | $RM conftest* |
bf9f3bac BB |
8376 | # SGI C++ compiler will create directory out/ii_files/ for |
8377 | # template instantiation | |
8934764e BB |
8378 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
8379 | $RM out/* && rmdir out | |
bf9f3bac | 8380 | cd .. |
8934764e BB |
8381 | $RM -r conftest |
8382 | $RM conftest* | |
bf9f3bac BB |
8383 | |
8384 | fi | |
8934764e BB |
8385 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
8386 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8387 | ||
8388 | ||
bf9f3bac BB |
8389 | |
8390 | ||
8391 | hard_links="nottested" | |
8934764e | 8392 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
bf9f3bac | 8393 | # do not overwrite the value of need_locks provided by the user |
8934764e BB |
8394 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
8395 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
bf9f3bac | 8396 | hard_links=yes |
8934764e | 8397 | $RM conftest* |
bf9f3bac BB |
8398 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8399 | touch conftest.a | |
8400 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8401 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8934764e BB |
8402 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
8403 | $as_echo "$hard_links" >&6; } | |
bf9f3bac | 8404 | if test "$hard_links" = no; then |
8934764e BB |
8405 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8406 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
bf9f3bac BB |
8407 | need_locks=warn |
8408 | fi | |
8409 | else | |
8410 | need_locks=no | |
8411 | fi | |
8412 | ||
8934764e BB |
8413 | |
8414 | ||
8415 | ||
8416 | ||
8417 | ||
8418 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8419 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
bf9f3bac BB |
8420 | |
8421 | runpath_var= | |
8934764e BB |
8422 | allow_undefined_flag= |
8423 | always_export_symbols=no | |
8424 | archive_cmds= | |
8425 | archive_expsym_cmds= | |
8426 | compiler_needs_object=no | |
8427 | enable_shared_with_static_runtimes=no | |
8428 | export_dynamic_flag_spec= | |
8429 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8430 | hardcode_automatic=no | |
8431 | hardcode_direct=no | |
8432 | hardcode_direct_absolute=no | |
8433 | hardcode_libdir_flag_spec= | |
8434 | hardcode_libdir_flag_spec_ld= | |
8435 | hardcode_libdir_separator= | |
8436 | hardcode_minus_L=no | |
8437 | hardcode_shlibpath_var=unsupported | |
8438 | inherit_rpath=no | |
8439 | link_all_deplibs=unknown | |
8440 | module_cmds= | |
8441 | module_expsym_cmds= | |
8442 | old_archive_from_new_cmds= | |
8443 | old_archive_from_expsyms_cmds= | |
8444 | thread_safe_flag_spec= | |
8445 | whole_archive_flag_spec= | |
bf9f3bac BB |
8446 | # include_expsyms should be a list of space-separated symbols to be *always* |
8447 | # included in the symbol list | |
8934764e | 8448 | include_expsyms= |
bf9f3bac BB |
8449 | # exclude_expsyms can be an extended regexp of symbols to exclude |
8450 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8451 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8452 | # as well as any symbol that contains `d'. | |
8934764e | 8453 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bf9f3bac BB |
8454 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8455 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8456 | # the symbol is explicitly referenced. Since portable code cannot | |
8457 | # rely on this symbol name, it's probably fine to never include it in | |
8458 | # preloaded symbol tables. | |
8934764e | 8459 | # Exclude shared library initialization/finalization symbols. |
bf9f3bac | 8460 | extract_expsyms_cmds= |
bf9f3bac BB |
8461 | |
8462 | case $host_os in | |
8934764e | 8463 | cygwin* | mingw* | pw32* | cegcc*) |
bf9f3bac BB |
8464 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8465 | # When not using gcc, we currently assume that we are using | |
8466 | # Microsoft Visual C++. | |
8467 | if test "$GCC" != yes; then | |
8468 | with_gnu_ld=no | |
8469 | fi | |
8470 | ;; | |
8471 | interix*) | |
8472 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8473 | with_gnu_ld=yes | |
8474 | ;; | |
8475 | openbsd*) | |
8476 | with_gnu_ld=no | |
8477 | ;; | |
8478 | esac | |
8479 | ||
8934764e | 8480 | ld_shlibs=yes |
bf9f3bac BB |
8481 | if test "$with_gnu_ld" = yes; then |
8482 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8483 | wlarc='${wl}' | |
8484 | ||
8485 | # Set some defaults for GNU ld with shared library support. These | |
8486 | # are reset later if shared libraries are not supported. Putting them | |
8487 | # here allows them to be overridden if necessary. | |
8488 | runpath_var=LD_RUN_PATH | |
8934764e BB |
8489 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8490 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
bf9f3bac | 8491 | # ancient GNU ld didn't support --whole-archive et. al. |
8934764e BB |
8492 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
8493 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8494 | else | |
8495 | whole_archive_flag_spec= | |
bf9f3bac BB |
8496 | fi |
8497 | supports_anon_versioning=no | |
8934764e | 8498 | case `$LD -v 2>&1` in |
bf9f3bac BB |
8499 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8500 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8501 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8502 | *\ 2.11.*) ;; # other 2.11 versions | |
8503 | *) supports_anon_versioning=yes ;; | |
8504 | esac | |
8505 | ||
8506 | # See if GNU ld supports shared libraries. | |
8507 | case $host_os in | |
8934764e | 8508 | aix[3-9]*) |
bf9f3bac BB |
8509 | # On AIX/PPC, the GNU linker is very broken |
8510 | if test "$host_cpu" != ia64; then | |
8934764e BB |
8511 | ld_shlibs=no |
8512 | cat <<_LT_EOF 1>&2 | |
bf9f3bac BB |
8513 | |
8514 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
8515 | *** to be unable to reliably create shared libraries on AIX. | |
8516 | *** Therefore, libtool is disabling shared libraries support. If you | |
8517 | *** really care for shared libraries, you may want to modify your PATH | |
8518 | *** so that a non-GNU linker is found, and then restart. | |
8519 | ||
8934764e | 8520 | _LT_EOF |
bf9f3bac BB |
8521 | fi |
8522 | ;; | |
8523 | ||
8524 | amigaos*) | |
8934764e BB |
8525 | case $host_cpu in |
8526 | powerpc) | |
8527 | # see comment about AmigaOS4 .so support | |
8528 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8529 | archive_expsym_cmds='' | |
8530 | ;; | |
8531 | m68k) | |
8532 | 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)' | |
8533 | hardcode_libdir_flag_spec='-L$libdir' | |
8534 | hardcode_minus_L=yes | |
8535 | ;; | |
8536 | esac | |
bf9f3bac BB |
8537 | ;; |
8538 | ||
8539 | beos*) | |
8934764e BB |
8540 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
8541 | allow_undefined_flag=unsupported | |
bf9f3bac BB |
8542 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
8543 | # support --undefined. This deserves some investigation. FIXME | |
8934764e | 8544 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
bf9f3bac | 8545 | else |
8934764e | 8546 | ld_shlibs=no |
bf9f3bac BB |
8547 | fi |
8548 | ;; | |
8549 | ||
8934764e BB |
8550 | cygwin* | mingw* | pw32* | cegcc*) |
8551 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
bf9f3bac | 8552 | # as there is no search path for DLLs. |
8934764e BB |
8553 | hardcode_libdir_flag_spec='-L$libdir' |
8554 | allow_undefined_flag=unsupported | |
8555 | always_export_symbols=no | |
8556 | enable_shared_with_static_runtimes=yes | |
8557 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8558 | ||
8559 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8560 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
bf9f3bac BB |
8561 | # If the export-symbols file already is a .def file (1st line |
8562 | # is EXPORTS), use it as is; otherwise, prepend... | |
8934764e | 8563 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
bf9f3bac BB |
8564 | cp $export_symbols $output_objdir/$soname.def; |
8565 | else | |
8566 | echo EXPORTS > $output_objdir/$soname.def; | |
8567 | cat $export_symbols >> $output_objdir/$soname.def; | |
8568 | fi~ | |
8569 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8570 | else | |
8934764e | 8571 | ld_shlibs=no |
bf9f3bac BB |
8572 | fi |
8573 | ;; | |
8574 | ||
8934764e BB |
8575 | interix[3-9]*) |
8576 | hardcode_direct=no | |
8577 | hardcode_shlibpath_var=no | |
8578 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8579 | export_dynamic_flag_spec='${wl}-E' | |
bf9f3bac BB |
8580 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
8581 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8582 | # default) and relocated if they conflict, which is a slow very memory | |
8583 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8584 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8585 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8934764e BB |
8586 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
8587 | 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' | |
bf9f3bac BB |
8588 | ;; |
8589 | ||
8934764e BB |
8590 | gnu* | linux* | tpf* | k*bsd*-gnu) |
8591 | tmp_diet=no | |
8592 | if test "$host_os" = linux-dietlibc; then | |
8593 | case $cc_basename in | |
8594 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8595 | esac | |
8596 | fi | |
8597 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8598 | && test "$tmp_diet" = no | |
8599 | then | |
bf9f3bac | 8600 | tmp_addflag= |
8934764e | 8601 | tmp_sharedflag='-shared' |
bf9f3bac | 8602 | case $cc_basename,$host_cpu in |
8934764e BB |
8603 | pgcc*) # Portland Group C compiler |
8604 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
bf9f3bac BB |
8605 | tmp_addflag=' $pic_flag' |
8606 | ;; | |
8607 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8934764e | 8608 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
bf9f3bac | 8609 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8934764e | 8610 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
bf9f3bac BB |
8611 | tmp_addflag=' -i_dynamic' ;; |
8612 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8613 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8614 | ifc* | ifort*) # Intel Fortran compiler | |
8615 | tmp_addflag=' -nofor_main' ;; | |
8934764e BB |
8616 | lf95*) # Lahey Fortran 8.1 |
8617 | whole_archive_flag_spec= | |
8618 | tmp_sharedflag='--shared' ;; | |
8619 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8620 | tmp_sharedflag='-qmkshrobj' | |
8621 | tmp_addflag= ;; | |
8622 | esac | |
8623 | case `$CC -V 2>&1 | sed 5q` in | |
8624 | *Sun\ C*) # Sun C 5.9 | |
8625 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8626 | compiler_needs_object=yes | |
8627 | tmp_sharedflag='-G' ;; | |
8628 | *Sun\ F*) # Sun Fortran 8.3 | |
8629 | tmp_sharedflag='-G' ;; | |
bf9f3bac | 8630 | esac |
8934764e | 8631 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
bf9f3bac | 8632 | |
8934764e BB |
8633 | if test "x$supports_anon_versioning" = xyes; then |
8634 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8635 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8636 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8637 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8638 | fi | |
8639 | ||
8640 | case $cc_basename in | |
8641 | xlf*) | |
8642 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8643 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8644 | hardcode_libdir_flag_spec= | |
8645 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8646 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8647 | if test "x$supports_anon_versioning" = xyes; then | |
8648 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8649 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8650 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8651 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8652 | fi | |
8653 | ;; | |
8654 | esac | |
bf9f3bac | 8655 | else |
8934764e | 8656 | ld_shlibs=no |
bf9f3bac BB |
8657 | fi |
8658 | ;; | |
8659 | ||
8660 | netbsd*) | |
8934764e BB |
8661 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
8662 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
bf9f3bac BB |
8663 | wlarc= |
8664 | else | |
8934764e BB |
8665 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8666 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
bf9f3bac BB |
8667 | fi |
8668 | ;; | |
8669 | ||
8670 | solaris*) | |
8934764e BB |
8671 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
8672 | ld_shlibs=no | |
8673 | cat <<_LT_EOF 1>&2 | |
bf9f3bac BB |
8674 | |
8675 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8676 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8677 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8678 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8679 | *** your PATH or compiler configuration so that the native linker is | |
8680 | *** used, and then restart. | |
8681 | ||
8934764e BB |
8682 | _LT_EOF |
8683 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8684 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8685 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
bf9f3bac | 8686 | else |
8934764e | 8687 | ld_shlibs=no |
bf9f3bac BB |
8688 | fi |
8689 | ;; | |
8690 | ||
8691 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8692 | case `$LD -v 2>&1` in | |
8693 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8934764e | 8694 | ld_shlibs=no |
bf9f3bac BB |
8695 | cat <<_LT_EOF 1>&2 |
8696 | ||
8697 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8698 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8699 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8700 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8701 | *** your PATH or compiler configuration so that the native linker is | |
8702 | *** used, and then restart. | |
8703 | ||
8704 | _LT_EOF | |
8705 | ;; | |
8706 | *) | |
8934764e BB |
8707 | # For security reasons, it is highly recommended that you always |
8708 | # use absolute paths for naming shared libraries, and exclude the | |
8709 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8710 | # requires that you compile everything twice, which is a pain. | |
8711 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8712 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8713 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8714 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
bf9f3bac | 8715 | else |
8934764e | 8716 | ld_shlibs=no |
bf9f3bac BB |
8717 | fi |
8718 | ;; | |
8719 | esac | |
8720 | ;; | |
8721 | ||
8722 | sunos4*) | |
8934764e | 8723 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
bf9f3bac | 8724 | wlarc= |
8934764e BB |
8725 | hardcode_direct=yes |
8726 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
8727 | ;; |
8728 | ||
8729 | *) | |
8934764e BB |
8730 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
8731 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8732 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
bf9f3bac | 8733 | else |
8934764e | 8734 | ld_shlibs=no |
bf9f3bac BB |
8735 | fi |
8736 | ;; | |
8737 | esac | |
8738 | ||
8934764e | 8739 | if test "$ld_shlibs" = no; then |
bf9f3bac | 8740 | runpath_var= |
8934764e BB |
8741 | hardcode_libdir_flag_spec= |
8742 | export_dynamic_flag_spec= | |
8743 | whole_archive_flag_spec= | |
bf9f3bac BB |
8744 | fi |
8745 | else | |
8746 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8747 | case $host_os in | |
8748 | aix3*) | |
8934764e BB |
8749 | allow_undefined_flag=unsupported |
8750 | always_export_symbols=yes | |
8751 | 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' | |
bf9f3bac BB |
8752 | # Note: this linker hardcodes the directories in LIBPATH if there |
8753 | # are no directories specified by -L. | |
8934764e | 8754 | hardcode_minus_L=yes |
bf9f3bac BB |
8755 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
8756 | # Neither direct hardcoding nor static linking is supported with a | |
8757 | # broken collect2. | |
8934764e | 8758 | hardcode_direct=unsupported |
bf9f3bac BB |
8759 | fi |
8760 | ;; | |
8761 | ||
8934764e | 8762 | aix[4-9]*) |
bf9f3bac BB |
8763 | if test "$host_cpu" = ia64; then |
8764 | # On IA64, the linker does run time linking by default, so we don't | |
8765 | # have to do anything special. | |
8766 | aix_use_runtimelinking=no | |
8767 | exp_sym_flag='-Bexport' | |
8768 | no_entry_flag="" | |
8769 | else | |
8770 | # If we're using GNU nm, then we don't want the "-C" option. | |
8771 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8934764e BB |
8772 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
8773 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
bf9f3bac | 8774 | else |
8934764e | 8775 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
bf9f3bac BB |
8776 | fi |
8777 | aix_use_runtimelinking=no | |
8778 | ||
8779 | # Test if we are trying to use run time linking or normal | |
8780 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8781 | # need to do runtime linking. | |
8934764e | 8782 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
bf9f3bac | 8783 | for ld_flag in $LDFLAGS; do |
8934764e BB |
8784 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
8785 | aix_use_runtimelinking=yes | |
8786 | break | |
8787 | fi | |
bf9f3bac BB |
8788 | done |
8789 | ;; | |
8790 | esac | |
8791 | ||
8792 | exp_sym_flag='-bexport' | |
8793 | no_entry_flag='-bnoentry' | |
8794 | fi | |
8795 | ||
8796 | # When large executables or shared objects are built, AIX ld can | |
8797 | # have problems creating the table of contents. If linking a library | |
8798 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8799 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8800 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8801 | ||
8934764e BB |
8802 | archive_cmds='' |
8803 | hardcode_direct=yes | |
8804 | hardcode_direct_absolute=yes | |
8805 | hardcode_libdir_separator=':' | |
8806 | link_all_deplibs=yes | |
8807 | file_list_spec='${wl}-f,' | |
bf9f3bac BB |
8808 | |
8809 | if test "$GCC" = yes; then | |
8810 | case $host_os in aix4.[012]|aix4.[012].*) | |
8811 | # We only want to do this on AIX 4.2 and lower, the check | |
8812 | # below for broken collect2 doesn't work under 4.3+ | |
8813 | collect2name=`${CC} -print-prog-name=collect2` | |
8934764e BB |
8814 | if test -f "$collect2name" && |
8815 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
bf9f3bac | 8816 | then |
8934764e BB |
8817 | # We have reworked collect2 |
8818 | : | |
bf9f3bac | 8819 | else |
8934764e BB |
8820 | # We have old collect2 |
8821 | hardcode_direct=unsupported | |
8822 | # It fails to find uninstalled libraries when the uninstalled | |
8823 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8824 | # to unsupported forces relinking | |
8825 | hardcode_minus_L=yes | |
8826 | hardcode_libdir_flag_spec='-L$libdir' | |
8827 | hardcode_libdir_separator= | |
bf9f3bac BB |
8828 | fi |
8829 | ;; | |
8830 | esac | |
8831 | shared_flag='-shared' | |
8832 | if test "$aix_use_runtimelinking" = yes; then | |
8833 | shared_flag="$shared_flag "'${wl}-G' | |
8834 | fi | |
8835 | else | |
8836 | # not using gcc | |
8837 | if test "$host_cpu" = ia64; then | |
8934764e BB |
8838 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8839 | # chokes on -Wl,-G. The following line is correct: | |
bf9f3bac BB |
8840 | shared_flag='-G' |
8841 | else | |
8842 | if test "$aix_use_runtimelinking" = yes; then | |
8843 | shared_flag='${wl}-G' | |
8844 | else | |
8845 | shared_flag='${wl}-bM:SRE' | |
8846 | fi | |
8847 | fi | |
8848 | fi | |
8849 | ||
8934764e | 8850 | export_dynamic_flag_spec='${wl}-bexpall' |
bf9f3bac BB |
8851 | # It seems that -bexpall does not export symbols beginning with |
8852 | # underscore (_), so it is better to generate a list of symbols to export. | |
8934764e | 8853 | always_export_symbols=yes |
bf9f3bac BB |
8854 | if test "$aix_use_runtimelinking" = yes; then |
8855 | # Warning - without using the other runtime loading flags (-brtl), | |
8856 | # -berok will link without error, but may produce a broken library. | |
8934764e BB |
8857 | allow_undefined_flag='-berok' |
8858 | # Determine the default libpath from the value encoded in an | |
8859 | # empty executable. | |
8860 | cat >conftest.$ac_ext <<_ACEOF | |
bf9f3bac BB |
8861 | /* confdefs.h. */ |
8862 | _ACEOF | |
8863 | cat confdefs.h >>conftest.$ac_ext | |
8864 | cat >>conftest.$ac_ext <<_ACEOF | |
8865 | /* end confdefs.h. */ | |
8866 | ||
8867 | int | |
8868 | main () | |
8869 | { | |
8870 | ||
8871 | ; | |
8872 | return 0; | |
8873 | } | |
8874 | _ACEOF | |
8875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8934764e BB |
8876 | if { (ac_try="$ac_link" |
8877 | case "(($ac_try" in | |
8878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8879 | *) ac_try_echo=$ac_try;; | |
8880 | esac | |
8881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8882 | $as_echo "$ac_try_echo") >&5 | |
8883 | (eval "$ac_link") 2>conftest.er1 | |
bf9f3bac BB |
8884 | ac_status=$? |
8885 | grep -v '^ *+' conftest.er1 >conftest.err | |
8886 | rm -f conftest.er1 | |
8887 | cat conftest.err >&5 | |
8934764e BB |
8888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8889 | (exit $ac_status); } && { | |
8890 | test -z "$ac_c_werror_flag" || | |
8891 | test ! -s conftest.err | |
8892 | } && test -s conftest$ac_exeext && { | |
8893 | test "$cross_compiling" = yes || | |
8894 | $as_test_x conftest$ac_exeext | |
8895 | }; then | |
8896 | ||
8897 | lt_aix_libpath_sed=' | |
8898 | /Import File Strings/,/^$/ { | |
8899 | /^0/ { | |
8900 | s/^0 *\(.*\)$/\1/ | |
8901 | p | |
8902 | } | |
8903 | }' | |
8904 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
bf9f3bac | 8905 | # Check for a 64-bit object if we didn't find anything. |
8934764e BB |
8906 | if test -z "$aix_libpath"; then |
8907 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8908 | fi | |
bf9f3bac | 8909 | else |
8934764e | 8910 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
8911 | sed 's/^/| /' conftest.$ac_ext >&5 |
8912 | ||
8934764e | 8913 | |
bf9f3bac | 8914 | fi |
8934764e BB |
8915 | |
8916 | rm -rf conftest.dSYM | |
8917 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
bf9f3bac BB |
8918 | conftest$ac_exeext conftest.$ac_ext |
8919 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8920 | ||
8934764e BB |
8921 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8922 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
8923 | else | |
bf9f3bac | 8924 | if test "$host_cpu" = ia64; then |
8934764e BB |
8925 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8926 | allow_undefined_flag="-z nodefs" | |
8927 | 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" | |
bf9f3bac | 8928 | else |
8934764e BB |
8929 | # Determine the default libpath from the value encoded in an |
8930 | # empty executable. | |
bf9f3bac BB |
8931 | cat >conftest.$ac_ext <<_ACEOF |
8932 | /* confdefs.h. */ | |
8933 | _ACEOF | |
8934 | cat confdefs.h >>conftest.$ac_ext | |
8935 | cat >>conftest.$ac_ext <<_ACEOF | |
8936 | /* end confdefs.h. */ | |
8937 | ||
8938 | int | |
8939 | main () | |
8940 | { | |
8941 | ||
8942 | ; | |
8943 | return 0; | |
8944 | } | |
8945 | _ACEOF | |
8946 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8934764e BB |
8947 | if { (ac_try="$ac_link" |
8948 | case "(($ac_try" in | |
8949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8950 | *) ac_try_echo=$ac_try;; | |
8951 | esac | |
8952 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8953 | $as_echo "$ac_try_echo") >&5 | |
8954 | (eval "$ac_link") 2>conftest.er1 | |
bf9f3bac BB |
8955 | ac_status=$? |
8956 | grep -v '^ *+' conftest.er1 >conftest.err | |
8957 | rm -f conftest.er1 | |
8958 | cat conftest.err >&5 | |
8934764e BB |
8959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8960 | (exit $ac_status); } && { | |
8961 | test -z "$ac_c_werror_flag" || | |
8962 | test ! -s conftest.err | |
8963 | } && test -s conftest$ac_exeext && { | |
8964 | test "$cross_compiling" = yes || | |
8965 | $as_test_x conftest$ac_exeext | |
8966 | }; then | |
8967 | ||
8968 | lt_aix_libpath_sed=' | |
8969 | /Import File Strings/,/^$/ { | |
8970 | /^0/ { | |
8971 | s/^0 *\(.*\)$/\1/ | |
8972 | p | |
8973 | } | |
8974 | }' | |
8975 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
bf9f3bac | 8976 | # Check for a 64-bit object if we didn't find anything. |
8934764e BB |
8977 | if test -z "$aix_libpath"; then |
8978 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8979 | fi | |
bf9f3bac | 8980 | else |
8934764e | 8981 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
8982 | sed 's/^/| /' conftest.$ac_ext >&5 |
8983 | ||
8934764e | 8984 | |
bf9f3bac | 8985 | fi |
8934764e BB |
8986 | |
8987 | rm -rf conftest.dSYM | |
8988 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
bf9f3bac BB |
8989 | conftest$ac_exeext conftest.$ac_ext |
8990 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8991 | ||
8934764e | 8992 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
bf9f3bac BB |
8993 | # Warning - without using the other run time loading flags, |
8994 | # -berok will link without error, but may produce a broken library. | |
8934764e BB |
8995 | no_undefined_flag=' ${wl}-bernotok' |
8996 | allow_undefined_flag=' ${wl}-berok' | |
bf9f3bac | 8997 | # Exported symbols can be pulled into shared objects from archives |
8934764e BB |
8998 | whole_archive_flag_spec='$convenience' |
8999 | archive_cmds_need_lc=yes | |
bf9f3bac | 9000 | # This is similar to how AIX traditionally builds its shared libraries. |
8934764e | 9001 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
bf9f3bac BB |
9002 | fi |
9003 | fi | |
9004 | ;; | |
9005 | ||
9006 | amigaos*) | |
8934764e BB |
9007 | case $host_cpu in |
9008 | powerpc) | |
9009 | # see comment about AmigaOS4 .so support | |
9010 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9011 | archive_expsym_cmds='' | |
9012 | ;; | |
9013 | m68k) | |
9014 | 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)' | |
9015 | hardcode_libdir_flag_spec='-L$libdir' | |
9016 | hardcode_minus_L=yes | |
9017 | ;; | |
9018 | esac | |
bf9f3bac BB |
9019 | ;; |
9020 | ||
9021 | bsdi[45]*) | |
8934764e | 9022 | export_dynamic_flag_spec=-rdynamic |
bf9f3bac BB |
9023 | ;; |
9024 | ||
8934764e | 9025 | cygwin* | mingw* | pw32* | cegcc*) |
bf9f3bac BB |
9026 | # When not using gcc, we currently assume that we are using |
9027 | # Microsoft Visual C++. | |
9028 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9029 | # no search path for DLLs. | |
8934764e BB |
9030 | hardcode_libdir_flag_spec=' ' |
9031 | allow_undefined_flag=unsupported | |
bf9f3bac BB |
9032 | # Tell ltmain to make .lib files, not .a files. |
9033 | libext=lib | |
9034 | # Tell ltmain to make .dll files, not .so files. | |
9035 | shrext_cmds=".dll" | |
9036 | # FIXME: Setting linknames here is a bad hack. | |
8934764e | 9037 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
bf9f3bac | 9038 | # The linker will automatically build a .lib file if we build a DLL. |
8934764e | 9039 | old_archive_from_new_cmds='true' |
bf9f3bac | 9040 | # FIXME: Should let the user specify the lib program. |
8934764e BB |
9041 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
9042 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9043 | enable_shared_with_static_runtimes=yes | |
bf9f3bac BB |
9044 | ;; |
9045 | ||
9046 | darwin* | rhapsody*) | |
8934764e BB |
9047 | |
9048 | ||
9049 | archive_cmds_need_lc=no | |
9050 | hardcode_direct=no | |
9051 | hardcode_automatic=yes | |
9052 | hardcode_shlibpath_var=unsupported | |
9053 | whole_archive_flag_spec='' | |
9054 | link_all_deplibs=yes | |
9055 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9056 | case $cc_basename in | |
9057 | ifort*) _lt_dar_can_shared=yes ;; | |
9058 | *) _lt_dar_can_shared=$GCC ;; | |
9059 | esac | |
9060 | if test "$_lt_dar_can_shared" = "yes"; then | |
9061 | output_verbose_link_cmd=echo | |
9062 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9063 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9064 | 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}" | |
9065 | 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}" | |
9066 | ||
9067 | else | |
9068 | ld_shlibs=no | |
9069 | fi | |
9070 | ||
bf9f3bac BB |
9071 | ;; |
9072 | ||
9073 | dgux*) | |
8934764e BB |
9074 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9075 | hardcode_libdir_flag_spec='-L$libdir' | |
9076 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9077 | ;; |
9078 | ||
9079 | freebsd1*) | |
8934764e | 9080 | ld_shlibs=no |
bf9f3bac BB |
9081 | ;; |
9082 | ||
9083 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9084 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9085 | # does not break anything, and helps significantly (at the cost of a little | |
9086 | # extra space). | |
9087 | freebsd2.2*) | |
8934764e BB |
9088 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
9089 | hardcode_libdir_flag_spec='-R$libdir' | |
9090 | hardcode_direct=yes | |
9091 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9092 | ;; |
9093 | ||
9094 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9095 | freebsd2*) | |
8934764e BB |
9096 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9097 | hardcode_direct=yes | |
9098 | hardcode_minus_L=yes | |
9099 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9100 | ;; |
9101 | ||
9102 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8934764e BB |
9103 | freebsd* | dragonfly*) |
9104 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9105 | hardcode_libdir_flag_spec='-R$libdir' | |
9106 | hardcode_direct=yes | |
9107 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9108 | ;; |
9109 | ||
9110 | hpux9*) | |
9111 | if test "$GCC" = yes; then | |
8934764e | 9112 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
bf9f3bac | 9113 | else |
8934764e | 9114 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
bf9f3bac | 9115 | fi |
8934764e BB |
9116 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9117 | hardcode_libdir_separator=: | |
9118 | hardcode_direct=yes | |
bf9f3bac BB |
9119 | |
9120 | # hardcode_minus_L: Not really in the search PATH, | |
9121 | # but as the default location of the library. | |
8934764e BB |
9122 | hardcode_minus_L=yes |
9123 | export_dynamic_flag_spec='${wl}-E' | |
bf9f3bac BB |
9124 | ;; |
9125 | ||
9126 | hpux10*) | |
9127 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8934764e | 9128 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac | 9129 | else |
8934764e | 9130 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
bf9f3bac BB |
9131 | fi |
9132 | if test "$with_gnu_ld" = no; then | |
8934764e BB |
9133 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9134 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9135 | hardcode_libdir_separator=: | |
9136 | hardcode_direct=yes | |
9137 | hardcode_direct_absolute=yes | |
9138 | export_dynamic_flag_spec='${wl}-E' | |
bf9f3bac BB |
9139 | # hardcode_minus_L: Not really in the search PATH, |
9140 | # but as the default location of the library. | |
8934764e | 9141 | hardcode_minus_L=yes |
bf9f3bac BB |
9142 | fi |
9143 | ;; | |
9144 | ||
9145 | hpux11*) | |
9146 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9147 | case $host_cpu in | |
9148 | hppa*64*) | |
8934764e | 9149 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9150 | ;; |
9151 | ia64*) | |
8934764e | 9152 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9153 | ;; |
9154 | *) | |
8934764e | 9155 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9156 | ;; |
9157 | esac | |
9158 | else | |
9159 | case $host_cpu in | |
9160 | hppa*64*) | |
8934764e | 9161 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9162 | ;; |
9163 | ia64*) | |
8934764e | 9164 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9165 | ;; |
9166 | *) | |
8934764e | 9167 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac BB |
9168 | ;; |
9169 | esac | |
9170 | fi | |
9171 | if test "$with_gnu_ld" = no; then | |
8934764e BB |
9172 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
9173 | hardcode_libdir_separator=: | |
bf9f3bac BB |
9174 | |
9175 | case $host_cpu in | |
9176 | hppa*64*|ia64*) | |
8934764e BB |
9177 | hardcode_direct=no |
9178 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9179 | ;; |
9180 | *) | |
8934764e BB |
9181 | hardcode_direct=yes |
9182 | hardcode_direct_absolute=yes | |
9183 | export_dynamic_flag_spec='${wl}-E' | |
bf9f3bac BB |
9184 | |
9185 | # hardcode_minus_L: Not really in the search PATH, | |
9186 | # but as the default location of the library. | |
8934764e | 9187 | hardcode_minus_L=yes |
bf9f3bac BB |
9188 | ;; |
9189 | esac | |
9190 | fi | |
9191 | ;; | |
9192 | ||
9193 | irix5* | irix6* | nonstopux*) | |
9194 | if test "$GCC" = yes; then | |
8934764e BB |
9195 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
9196 | # Try to use the -exported_symbol ld option, if it does not | |
9197 | # work, assume that -exports_file does not work either and | |
9198 | # implicitly export all symbols. | |
9199 | save_LDFLAGS="$LDFLAGS" | |
9200 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9201 | cat >conftest.$ac_ext <<_ACEOF | |
9202 | int foo(void) {} | |
9203 | _ACEOF | |
9204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9205 | if { (ac_try="$ac_link" | |
9206 | case "(($ac_try" in | |
9207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9208 | *) ac_try_echo=$ac_try;; | |
9209 | esac | |
9210 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9211 | $as_echo "$ac_try_echo") >&5 | |
9212 | (eval "$ac_link") 2>conftest.er1 | |
9213 | ac_status=$? | |
9214 | grep -v '^ *+' conftest.er1 >conftest.err | |
9215 | rm -f conftest.er1 | |
9216 | cat conftest.err >&5 | |
9217 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9218 | (exit $ac_status); } && { | |
9219 | test -z "$ac_c_werror_flag" || | |
9220 | test ! -s conftest.err | |
9221 | } && test -s conftest$ac_exeext && { | |
9222 | test "$cross_compiling" = yes || | |
9223 | $as_test_x conftest$ac_exeext | |
9224 | }; then | |
9225 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
9226 | ||
9227 | else | |
9228 | $as_echo "$as_me: failed program was:" >&5 | |
9229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9230 | ||
9231 | ||
9232 | fi | |
9233 | ||
9234 | rm -rf conftest.dSYM | |
9235 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9236 | conftest$ac_exeext conftest.$ac_ext | |
9237 | LDFLAGS="$save_LDFLAGS" | |
bf9f3bac | 9238 | else |
8934764e BB |
9239 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
9240 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
bf9f3bac | 9241 | fi |
8934764e BB |
9242 | archive_cmds_need_lc='no' |
9243 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9244 | hardcode_libdir_separator=: | |
9245 | inherit_rpath=yes | |
9246 | link_all_deplibs=yes | |
bf9f3bac BB |
9247 | ;; |
9248 | ||
9249 | netbsd*) | |
8934764e BB |
9250 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9251 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
bf9f3bac | 9252 | else |
8934764e | 9253 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
bf9f3bac | 9254 | fi |
8934764e BB |
9255 | hardcode_libdir_flag_spec='-R$libdir' |
9256 | hardcode_direct=yes | |
9257 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9258 | ;; |
9259 | ||
9260 | newsos6) | |
8934764e BB |
9261 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9262 | hardcode_direct=yes | |
9263 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9264 | hardcode_libdir_separator=: | |
9265 | hardcode_shlibpath_var=no | |
9266 | ;; | |
9267 | ||
9268 | *nto* | *qnx*) | |
bf9f3bac BB |
9269 | ;; |
9270 | ||
9271 | openbsd*) | |
8934764e BB |
9272 | if test -f /usr/libexec/ld.so; then |
9273 | hardcode_direct=yes | |
9274 | hardcode_shlibpath_var=no | |
9275 | hardcode_direct_absolute=yes | |
9276 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9277 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9278 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9279 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9280 | export_dynamic_flag_spec='${wl}-E' | |
9281 | else | |
9282 | case $host_os in | |
9283 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9284 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9285 | hardcode_libdir_flag_spec='-R$libdir' | |
9286 | ;; | |
9287 | *) | |
9288 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9289 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9290 | ;; | |
9291 | esac | |
9292 | fi | |
bf9f3bac | 9293 | else |
8934764e | 9294 | ld_shlibs=no |
bf9f3bac BB |
9295 | fi |
9296 | ;; | |
9297 | ||
9298 | os2*) | |
8934764e BB |
9299 | hardcode_libdir_flag_spec='-L$libdir' |
9300 | hardcode_minus_L=yes | |
9301 | allow_undefined_flag=unsupported | |
9302 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
9303 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
bf9f3bac BB |
9304 | ;; |
9305 | ||
9306 | osf3*) | |
9307 | if test "$GCC" = yes; then | |
8934764e BB |
9308 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
9309 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
bf9f3bac | 9310 | else |
8934764e BB |
9311 | allow_undefined_flag=' -expect_unresolved \*' |
9312 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
bf9f3bac | 9313 | fi |
8934764e BB |
9314 | archive_cmds_need_lc='no' |
9315 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9316 | hardcode_libdir_separator=: | |
bf9f3bac BB |
9317 | ;; |
9318 | ||
9319 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9320 | if test "$GCC" = yes; then | |
8934764e BB |
9321 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
9322 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9323 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
bf9f3bac | 9324 | else |
8934764e BB |
9325 | allow_undefined_flag=' -expect_unresolved \*' |
9326 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9327 | 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~ | |
9328 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
bf9f3bac BB |
9329 | |
9330 | # Both c and cxx compiler support -rpath directly | |
8934764e | 9331 | hardcode_libdir_flag_spec='-rpath $libdir' |
bf9f3bac | 9332 | fi |
8934764e BB |
9333 | archive_cmds_need_lc='no' |
9334 | hardcode_libdir_separator=: | |
bf9f3bac BB |
9335 | ;; |
9336 | ||
9337 | solaris*) | |
8934764e | 9338 | no_undefined_flag=' -z defs' |
bf9f3bac BB |
9339 | if test "$GCC" = yes; then |
9340 | wlarc='${wl}' | |
8934764e BB |
9341 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9342 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9343 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
bf9f3bac | 9344 | else |
8934764e BB |
9345 | case `$CC -V 2>&1` in |
9346 | *"Compilers 5.0"*) | |
9347 | wlarc='' | |
9348 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9349 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9350 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9351 | ;; | |
9352 | *) | |
9353 | wlarc='${wl}' | |
9354 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9355 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9356 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9357 | ;; | |
9358 | esac | |
bf9f3bac | 9359 | fi |
8934764e BB |
9360 | hardcode_libdir_flag_spec='-R$libdir' |
9361 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9362 | case $host_os in |
9363 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9364 | *) | |
8934764e BB |
9365 | # The compiler driver will combine and reorder linker options, |
9366 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9367 | # but is careful enough not to reorder. | |
9368 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9369 | if test "$GCC" = yes; then | |
9370 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9371 | else | |
9372 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9373 | fi | |
9374 | ;; | |
bf9f3bac | 9375 | esac |
8934764e | 9376 | link_all_deplibs=yes |
bf9f3bac BB |
9377 | ;; |
9378 | ||
9379 | sunos4*) | |
9380 | if test "x$host_vendor" = xsequent; then | |
9381 | # Use $CC to link under sequent, because it throws in some extra .o | |
9382 | # files that make .init and .fini sections work. | |
8934764e | 9383 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
bf9f3bac | 9384 | else |
8934764e | 9385 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
bf9f3bac | 9386 | fi |
8934764e BB |
9387 | hardcode_libdir_flag_spec='-L$libdir' |
9388 | hardcode_direct=yes | |
9389 | hardcode_minus_L=yes | |
9390 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9391 | ;; |
9392 | ||
9393 | sysv4) | |
9394 | case $host_vendor in | |
9395 | sni) | |
8934764e BB |
9396 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9397 | hardcode_direct=yes # is this really true??? | |
bf9f3bac BB |
9398 | ;; |
9399 | siemens) | |
9400 | ## LD is ld it makes a PLAMLIB | |
9401 | ## CC just makes a GrossModule. | |
8934764e BB |
9402 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
9403 | reload_cmds='$CC -r -o $output$reload_objs' | |
9404 | hardcode_direct=no | |
bf9f3bac BB |
9405 | ;; |
9406 | motorola) | |
8934764e BB |
9407 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9408 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
bf9f3bac BB |
9409 | ;; |
9410 | esac | |
9411 | runpath_var='LD_RUN_PATH' | |
8934764e | 9412 | hardcode_shlibpath_var=no |
bf9f3bac BB |
9413 | ;; |
9414 | ||
9415 | sysv4.3*) | |
8934764e BB |
9416 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9417 | hardcode_shlibpath_var=no | |
9418 | export_dynamic_flag_spec='-Bexport' | |
bf9f3bac BB |
9419 | ;; |
9420 | ||
9421 | sysv4*MP*) | |
9422 | if test -d /usr/nec; then | |
8934764e BB |
9423 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9424 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9425 | runpath_var=LD_RUN_PATH |
9426 | hardcode_runpath_var=yes | |
8934764e | 9427 | ld_shlibs=yes |
bf9f3bac BB |
9428 | fi |
9429 | ;; | |
9430 | ||
8934764e BB |
9431 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9432 | no_undefined_flag='${wl}-z,text' | |
9433 | archive_cmds_need_lc=no | |
9434 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9435 | runpath_var='LD_RUN_PATH' |
9436 | ||
9437 | if test "$GCC" = yes; then | |
8934764e BB |
9438 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9439 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
bf9f3bac | 9440 | else |
8934764e BB |
9441 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9442 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
bf9f3bac BB |
9443 | fi |
9444 | ;; | |
9445 | ||
9446 | sysv5* | sco3.2v5* | sco5v6*) | |
9447 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9448 | # link with -lc, and that would cause any symbols used from libc to | |
9449 | # always be unresolved, which means just about no library would | |
9450 | # ever link correctly. If we're not using GNU ld we use -z text | |
9451 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9452 | # as -z defs. | |
8934764e BB |
9453 | no_undefined_flag='${wl}-z,text' |
9454 | allow_undefined_flag='${wl}-z,nodefs' | |
9455 | archive_cmds_need_lc=no | |
9456 | hardcode_shlibpath_var=no | |
9457 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9458 | hardcode_libdir_separator=':' | |
9459 | link_all_deplibs=yes | |
9460 | export_dynamic_flag_spec='${wl}-Bexport' | |
bf9f3bac BB |
9461 | runpath_var='LD_RUN_PATH' |
9462 | ||
9463 | if test "$GCC" = yes; then | |
8934764e BB |
9464 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9465 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
bf9f3bac | 9466 | else |
8934764e BB |
9467 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
9468 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
bf9f3bac BB |
9469 | fi |
9470 | ;; | |
9471 | ||
9472 | uts4*) | |
8934764e BB |
9473 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
9474 | hardcode_libdir_flag_spec='-L$libdir' | |
9475 | hardcode_shlibpath_var=no | |
bf9f3bac BB |
9476 | ;; |
9477 | ||
9478 | *) | |
8934764e | 9479 | ld_shlibs=no |
bf9f3bac BB |
9480 | ;; |
9481 | esac | |
8934764e BB |
9482 | |
9483 | if test x$host_vendor = xsni; then | |
9484 | case $host in | |
9485 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9486 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9487 | ;; | |
9488 | esac | |
9489 | fi | |
bf9f3bac BB |
9490 | fi |
9491 | ||
8934764e BB |
9492 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
9493 | $as_echo "$ld_shlibs" >&6; } | |
9494 | test "$ld_shlibs" = no && can_build_shared=no | |
9495 | ||
9496 | with_gnu_ld=$with_gnu_ld | |
9497 | ||
9498 | ||
9499 | ||
9500 | ||
9501 | ||
9502 | ||
9503 | ||
9504 | ||
9505 | ||
9506 | ||
9507 | ||
9508 | ||
9509 | ||
9510 | ||
bf9f3bac BB |
9511 | |
9512 | # | |
9513 | # Do we need to explicitly link libc? | |
9514 | # | |
8934764e | 9515 | case "x$archive_cmds_need_lc" in |
bf9f3bac BB |
9516 | x|xyes) |
9517 | # Assume -lc should be added | |
8934764e | 9518 | archive_cmds_need_lc=yes |
bf9f3bac BB |
9519 | |
9520 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8934764e | 9521 | case $archive_cmds in |
bf9f3bac BB |
9522 | *'~'*) |
9523 | # FIXME: we may have to deal with multi-command sequences. | |
9524 | ;; | |
9525 | '$CC '*) | |
9526 | # Test whether the compiler implicitly links with -lc since on some | |
9527 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9528 | # to ld, don't add -lc before -lgcc. | |
8934764e BB |
9529 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
9530 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9531 | $RM conftest* | |
9532 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
bf9f3bac BB |
9533 | |
9534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9535 | (eval $ac_compile) 2>&5 | |
9536 | ac_status=$? | |
8934764e | 9537 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
9538 | (exit $ac_status); } 2>conftest.err; then |
9539 | soname=conftest | |
9540 | lib=conftest | |
9541 | libobjs=conftest.$ac_objext | |
9542 | deplibs= | |
8934764e BB |
9543 | wl=$lt_prog_compiler_wl |
9544 | pic_flag=$lt_prog_compiler_pic | |
bf9f3bac BB |
9545 | compiler_flags=-v |
9546 | linker_flags=-v | |
9547 | verstring= | |
9548 | output_objdir=. | |
9549 | libname=conftest | |
8934764e BB |
9550 | lt_save_allow_undefined_flag=$allow_undefined_flag |
9551 | allow_undefined_flag= | |
9552 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
9553 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
bf9f3bac | 9554 | ac_status=$? |
8934764e | 9555 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
9556 | (exit $ac_status); } |
9557 | then | |
8934764e | 9558 | archive_cmds_need_lc=no |
bf9f3bac | 9559 | else |
8934764e | 9560 | archive_cmds_need_lc=yes |
bf9f3bac | 9561 | fi |
8934764e | 9562 | allow_undefined_flag=$lt_save_allow_undefined_flag |
bf9f3bac BB |
9563 | else |
9564 | cat conftest.err 1>&5 | |
9565 | fi | |
8934764e BB |
9566 | $RM conftest* |
9567 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
9568 | $as_echo "$archive_cmds_need_lc" >&6; } | |
bf9f3bac BB |
9569 | ;; |
9570 | esac | |
9571 | fi | |
9572 | ;; | |
9573 | esac | |
9574 | ||
8934764e BB |
9575 | |
9576 | ||
9577 | ||
9578 | ||
9579 | ||
9580 | ||
9581 | ||
9582 | ||
9583 | ||
9584 | ||
9585 | ||
9586 | ||
9587 | ||
9588 | ||
9589 | ||
9590 | ||
9591 | ||
9592 | ||
9593 | ||
9594 | ||
9595 | ||
9596 | ||
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | ||
9602 | ||
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | ||
9608 | ||
9609 | ||
9610 | ||
9611 | ||
9612 | ||
9613 | ||
9614 | ||
9615 | ||
9616 | ||
9617 | ||
9618 | ||
9619 | ||
9620 | ||
9621 | ||
9622 | ||
9623 | ||
9624 | ||
9625 | ||
9626 | ||
9627 | ||
9628 | ||
9629 | ||
9630 | ||
9631 | ||
9632 | ||
9633 | ||
9634 | ||
9635 | ||
9636 | ||
9637 | ||
9638 | ||
9639 | ||
9640 | ||
9641 | ||
9642 | ||
9643 | ||
9644 | ||
9645 | ||
9646 | ||
9647 | ||
9648 | ||
9649 | ||
9650 | ||
9651 | ||
9652 | ||
9653 | ||
9654 | ||
9655 | ||
9656 | ||
9657 | ||
9658 | ||
9659 | ||
9660 | ||
9661 | ||
9662 | ||
9663 | ||
9664 | ||
9665 | ||
9666 | ||
9667 | ||
9668 | ||
9669 | ||
9670 | ||
9671 | ||
9672 | ||
9673 | ||
9674 | ||
9675 | ||
9676 | ||
9677 | ||
9678 | ||
9679 | ||
9680 | ||
9681 | ||
9682 | ||
9683 | ||
9684 | ||
9685 | ||
9686 | ||
9687 | ||
9688 | ||
9689 | ||
9690 | ||
9691 | ||
9692 | ||
9693 | ||
9694 | ||
9695 | ||
9696 | ||
9697 | ||
9698 | ||
9699 | ||
9700 | ||
9701 | ||
9702 | ||
9703 | ||
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | ||
9711 | ||
9712 | ||
9713 | ||
9714 | ||
9715 | ||
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | ||
9721 | ||
9722 | ||
9723 | ||
9724 | ||
9725 | ||
9726 | ||
9727 | ||
9728 | ||
9729 | ||
9730 | ||
9731 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9732 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9733 | ||
9734 | if test "$GCC" = yes; then | |
9735 | case $host_os in | |
9736 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9737 | *) lt_awk_arg="/^libraries:/" ;; | |
9738 | esac | |
9739 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9740 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9741 | # if the path contains ";" then we assume it to be the separator | |
9742 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9743 | # assumed that no part of a normal pathname contains ";" but that should | |
9744 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9745 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9746 | else | |
9747 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9748 | fi | |
9749 | # Ok, now we have the path, separated by spaces, we can step through it | |
9750 | # and add multilib dir if necessary. | |
9751 | lt_tmp_lt_search_path_spec= | |
9752 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9753 | for lt_sys_path in $lt_search_path_spec; do | |
9754 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9755 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9756 | else | |
9757 | test -d "$lt_sys_path" && \ | |
9758 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9759 | fi | |
9760 | done | |
9761 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9762 | BEGIN {RS=" "; FS="/|\n";} { | |
9763 | lt_foo=""; | |
9764 | lt_count=0; | |
9765 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9766 | if ($lt_i != "" && $lt_i != ".") { | |
9767 | if ($lt_i == "..") { | |
9768 | lt_count++; | |
9769 | } else { | |
9770 | if (lt_count == 0) { | |
9771 | lt_foo="/" $lt_i lt_foo; | |
9772 | } else { | |
9773 | lt_count--; | |
9774 | } | |
9775 | } | |
9776 | } | |
9777 | } | |
9778 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9779 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9780 | }'` | |
9781 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9782 | else | |
9783 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9784 | fi | |
bf9f3bac BB |
9785 | library_names_spec= |
9786 | libname_spec='lib$name' | |
9787 | soname_spec= | |
9788 | shrext_cmds=".so" | |
9789 | postinstall_cmds= | |
9790 | postuninstall_cmds= | |
9791 | finish_cmds= | |
9792 | finish_eval= | |
9793 | shlibpath_var= | |
9794 | shlibpath_overrides_runpath=unknown | |
9795 | version_type=none | |
9796 | dynamic_linker="$host_os ld.so" | |
9797 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
bf9f3bac BB |
9798 | need_lib_prefix=unknown |
9799 | hardcode_into_libs=no | |
9800 | ||
9801 | # when you set need_version to no, make sure it does not cause -set_version | |
9802 | # flags to be left without arguments | |
9803 | need_version=unknown | |
9804 | ||
9805 | case $host_os in | |
9806 | aix3*) | |
9807 | version_type=linux | |
9808 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9809 | shlibpath_var=LIBPATH | |
9810 | ||
9811 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9812 | soname_spec='${libname}${release}${shared_ext}$major' | |
9813 | ;; | |
9814 | ||
8934764e | 9815 | aix[4-9]*) |
bf9f3bac BB |
9816 | version_type=linux |
9817 | need_lib_prefix=no | |
9818 | need_version=no | |
9819 | hardcode_into_libs=yes | |
9820 | if test "$host_cpu" = ia64; then | |
9821 | # AIX 5 supports IA64 | |
9822 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9823 | shlibpath_var=LD_LIBRARY_PATH | |
9824 | else | |
9825 | # With GCC up to 2.95.x, collect2 would create an import file | |
9826 | # for dependence libraries. The import file would start with | |
9827 | # the line `#! .'. This would cause the generated library to | |
9828 | # depend on `.', always an invalid library. This was fixed in | |
9829 | # development snapshots of GCC prior to 3.0. | |
9830 | case $host_os in | |
9831 | aix4 | aix4.[01] | aix4.[01].*) | |
9832 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9833 | echo ' yes ' | |
8934764e | 9834 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bf9f3bac BB |
9835 | : |
9836 | else | |
9837 | can_build_shared=no | |
9838 | fi | |
9839 | ;; | |
9840 | esac | |
9841 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9842 | # soname into executable. Probably we can add versioning support to | |
9843 | # collect2, so additional links can be useful in future. | |
9844 | if test "$aix_use_runtimelinking" = yes; then | |
9845 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9846 | # instead of lib<name>.a to let people know that these are not | |
9847 | # typical AIX shared libraries. | |
9848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9849 | else | |
9850 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9851 | # and later when we are not doing run time linking. | |
9852 | library_names_spec='${libname}${release}.a $libname.a' | |
9853 | soname_spec='${libname}${release}${shared_ext}$major' | |
9854 | fi | |
9855 | shlibpath_var=LIBPATH | |
9856 | fi | |
9857 | ;; | |
9858 | ||
9859 | amigaos*) | |
8934764e BB |
9860 | case $host_cpu in |
9861 | powerpc) | |
9862 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9863 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9865 | ;; | |
9866 | m68k) | |
9867 | library_names_spec='$libname.ixlibrary $libname.a' | |
9868 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9869 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' | |
9870 | ;; | |
9871 | esac | |
bf9f3bac BB |
9872 | ;; |
9873 | ||
9874 | beos*) | |
9875 | library_names_spec='${libname}${shared_ext}' | |
9876 | dynamic_linker="$host_os ld.so" | |
9877 | shlibpath_var=LIBRARY_PATH | |
9878 | ;; | |
9879 | ||
9880 | bsdi[45]*) | |
9881 | version_type=linux | |
9882 | need_version=no | |
9883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9884 | soname_spec='${libname}${release}${shared_ext}$major' | |
9885 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9886 | shlibpath_var=LD_LIBRARY_PATH | |
9887 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9888 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9889 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9890 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9891 | # libtool to hard-code these into programs | |
9892 | ;; | |
9893 | ||
8934764e | 9894 | cygwin* | mingw* | pw32* | cegcc*) |
bf9f3bac BB |
9895 | version_type=windows |
9896 | shrext_cmds=".dll" | |
9897 | need_version=no | |
9898 | need_lib_prefix=no | |
9899 | ||
9900 | case $GCC,$host_os in | |
8934764e | 9901 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bf9f3bac BB |
9902 | library_names_spec='$libname.dll.a' |
9903 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9904 | postinstall_cmds='base_file=`basename \${file}`~ | |
8934764e | 9905 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bf9f3bac BB |
9906 | dldir=$destdir/`dirname \$dlpath`~ |
9907 | test -d \$dldir || mkdir -p \$dldir~ | |
9908 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8934764e BB |
9909 | chmod a+x \$dldir/$dlname~ |
9910 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9911 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9912 | fi' | |
bf9f3bac BB |
9913 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
9914 | dlpath=$dir/\$dldll~ | |
8934764e | 9915 | $RM \$dlpath' |
bf9f3bac BB |
9916 | shlibpath_overrides_runpath=yes |
9917 | ||
9918 | case $host_os in | |
9919 | cygwin*) | |
9920 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9921 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9922 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9923 | ;; | |
8934764e | 9924 | mingw* | cegcc*) |
bf9f3bac BB |
9925 | # MinGW DLLs use traditional 'lib' prefix |
9926 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8934764e BB |
9927 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9928 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
bf9f3bac BB |
9929 | # It is most probably a Windows format PATH printed by |
9930 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9931 | # path with ; separators, and with drive letters. We can handle the | |
9932 | # drive letters (cygwin fileutils understands them), so leave them, | |
9933 | # especially as we might pass files found there to a mingw objdump, | |
9934 | # which wouldn't understand a cygwinified path. Ahh. | |
8934764e | 9935 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
bf9f3bac | 9936 | else |
8934764e | 9937 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
bf9f3bac BB |
9938 | fi |
9939 | ;; | |
9940 | pw32*) | |
9941 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9942 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9943 | ;; | |
9944 | esac | |
9945 | ;; | |
9946 | ||
9947 | *) | |
9948 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9949 | ;; | |
9950 | esac | |
9951 | dynamic_linker='Win32 ld.exe' | |
9952 | # FIXME: first we should search . and the directory the executable is in | |
9953 | shlibpath_var=PATH | |
9954 | ;; | |
9955 | ||
9956 | darwin* | rhapsody*) | |
9957 | dynamic_linker="$host_os dyld" | |
9958 | version_type=darwin | |
9959 | need_lib_prefix=no | |
9960 | need_version=no | |
8934764e | 9961 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bf9f3bac BB |
9962 | soname_spec='${libname}${release}${major}$shared_ext' |
9963 | shlibpath_overrides_runpath=yes | |
9964 | shlibpath_var=DYLD_LIBRARY_PATH | |
9965 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8934764e BB |
9966 | |
9967 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
bf9f3bac BB |
9968 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
9969 | ;; | |
9970 | ||
9971 | dgux*) | |
9972 | version_type=linux | |
9973 | need_lib_prefix=no | |
9974 | need_version=no | |
9975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9976 | soname_spec='${libname}${release}${shared_ext}$major' | |
9977 | shlibpath_var=LD_LIBRARY_PATH | |
9978 | ;; | |
9979 | ||
9980 | freebsd1*) | |
9981 | dynamic_linker=no | |
9982 | ;; | |
9983 | ||
bf9f3bac BB |
9984 | freebsd* | dragonfly*) |
9985 | # DragonFly does not have aout. When/if they implement a new | |
9986 | # versioning mechanism, adjust this. | |
9987 | if test -x /usr/bin/objformat; then | |
9988 | objformat=`/usr/bin/objformat` | |
9989 | else | |
9990 | case $host_os in | |
9991 | freebsd[123]*) objformat=aout ;; | |
9992 | *) objformat=elf ;; | |
9993 | esac | |
9994 | fi | |
9995 | version_type=freebsd-$objformat | |
9996 | case $version_type in | |
9997 | freebsd-elf*) | |
9998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9999 | need_version=no | |
10000 | need_lib_prefix=no | |
10001 | ;; | |
10002 | freebsd-*) | |
10003 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10004 | need_version=yes | |
10005 | ;; | |
10006 | esac | |
10007 | shlibpath_var=LD_LIBRARY_PATH | |
10008 | case $host_os in | |
10009 | freebsd2*) | |
10010 | shlibpath_overrides_runpath=yes | |
10011 | ;; | |
10012 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10013 | shlibpath_overrides_runpath=yes | |
10014 | hardcode_into_libs=yes | |
10015 | ;; | |
10016 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10017 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10018 | shlibpath_overrides_runpath=no | |
10019 | hardcode_into_libs=yes | |
10020 | ;; | |
8934764e | 10021 | *) # from 4.6 on, and DragonFly |
bf9f3bac BB |
10022 | shlibpath_overrides_runpath=yes |
10023 | hardcode_into_libs=yes | |
10024 | ;; | |
10025 | esac | |
10026 | ;; | |
10027 | ||
10028 | gnu*) | |
10029 | version_type=linux | |
10030 | need_lib_prefix=no | |
10031 | need_version=no | |
10032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10033 | soname_spec='${libname}${release}${shared_ext}$major' | |
10034 | shlibpath_var=LD_LIBRARY_PATH | |
10035 | hardcode_into_libs=yes | |
10036 | ;; | |
10037 | ||
10038 | hpux9* | hpux10* | hpux11*) | |
10039 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10040 | # link against other versions. | |
10041 | version_type=sunos | |
10042 | need_lib_prefix=no | |
10043 | need_version=no | |
10044 | case $host_cpu in | |
10045 | ia64*) | |
10046 | shrext_cmds='.so' | |
10047 | hardcode_into_libs=yes | |
10048 | dynamic_linker="$host_os dld.so" | |
10049 | shlibpath_var=LD_LIBRARY_PATH | |
10050 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10052 | soname_spec='${libname}${release}${shared_ext}$major' | |
10053 | if test "X$HPUX_IA64_MODE" = X32; then | |
10054 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10055 | else | |
10056 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10057 | fi | |
10058 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10059 | ;; | |
8934764e BB |
10060 | hppa*64*) |
10061 | shrext_cmds='.sl' | |
10062 | hardcode_into_libs=yes | |
10063 | dynamic_linker="$host_os dld.sl" | |
10064 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10065 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10067 | soname_spec='${libname}${release}${shared_ext}$major' | |
10068 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10069 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10070 | ;; | |
10071 | *) | |
bf9f3bac BB |
10072 | shrext_cmds='.sl' |
10073 | dynamic_linker="$host_os dld.sl" | |
10074 | shlibpath_var=SHLIB_PATH | |
10075 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10076 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10077 | soname_spec='${libname}${release}${shared_ext}$major' | |
10078 | ;; | |
10079 | esac | |
10080 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10081 | postinstall_cmds='chmod 555 $lib' | |
10082 | ;; | |
10083 | ||
8934764e | 10084 | interix[3-9]*) |
bf9f3bac BB |
10085 | version_type=linux |
10086 | need_lib_prefix=no | |
10087 | need_version=no | |
10088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10089 | soname_spec='${libname}${release}${shared_ext}$major' | |
10090 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10091 | shlibpath_var=LD_LIBRARY_PATH | |
10092 | shlibpath_overrides_runpath=no | |
10093 | hardcode_into_libs=yes | |
10094 | ;; | |
10095 | ||
10096 | irix5* | irix6* | nonstopux*) | |
10097 | case $host_os in | |
10098 | nonstopux*) version_type=nonstopux ;; | |
10099 | *) | |
10100 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10101 | version_type=linux | |
10102 | else | |
10103 | version_type=irix | |
10104 | fi ;; | |
10105 | esac | |
10106 | need_lib_prefix=no | |
10107 | need_version=no | |
10108 | soname_spec='${libname}${release}${shared_ext}$major' | |
10109 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10110 | case $host_os in | |
10111 | irix5* | nonstopux*) | |
10112 | libsuff= shlibsuff= | |
10113 | ;; | |
10114 | *) | |
10115 | case $LD in # libtool.m4 will add one of these switches to LD | |
10116 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10117 | libsuff= shlibsuff= libmagic=32-bit;; | |
10118 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10119 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10120 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10121 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10122 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10123 | esac | |
10124 | ;; | |
10125 | esac | |
10126 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10127 | shlibpath_overrides_runpath=no | |
10128 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10129 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10130 | hardcode_into_libs=yes | |
10131 | ;; | |
10132 | ||
10133 | # No shared lib support for Linux oldld, aout, or coff. | |
10134 | linux*oldld* | linux*aout* | linux*coff*) | |
10135 | dynamic_linker=no | |
10136 | ;; | |
10137 | ||
10138 | # This must be Linux ELF. | |
8934764e | 10139 | linux* | k*bsd*-gnu) |
bf9f3bac BB |
10140 | version_type=linux |
10141 | need_lib_prefix=no | |
10142 | need_version=no | |
10143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10144 | soname_spec='${libname}${release}${shared_ext}$major' | |
10145 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10146 | shlibpath_var=LD_LIBRARY_PATH | |
10147 | shlibpath_overrides_runpath=no | |
8934764e BB |
10148 | # Some binutils ld are patched to set DT_RUNPATH |
10149 | save_LDFLAGS=$LDFLAGS | |
10150 | save_libdir=$libdir | |
10151 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10152 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10153 | cat >conftest.$ac_ext <<_ACEOF | |
10154 | /* confdefs.h. */ | |
10155 | _ACEOF | |
10156 | cat confdefs.h >>conftest.$ac_ext | |
10157 | cat >>conftest.$ac_ext <<_ACEOF | |
10158 | /* end confdefs.h. */ | |
10159 | ||
10160 | int | |
10161 | main () | |
10162 | { | |
10163 | ||
10164 | ; | |
10165 | return 0; | |
10166 | } | |
10167 | _ACEOF | |
10168 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10169 | if { (ac_try="$ac_link" | |
10170 | case "(($ac_try" in | |
10171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10172 | *) ac_try_echo=$ac_try;; | |
10173 | esac | |
10174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10175 | $as_echo "$ac_try_echo") >&5 | |
10176 | (eval "$ac_link") 2>conftest.er1 | |
10177 | ac_status=$? | |
10178 | grep -v '^ *+' conftest.er1 >conftest.err | |
10179 | rm -f conftest.er1 | |
10180 | cat conftest.err >&5 | |
10181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10182 | (exit $ac_status); } && { | |
10183 | test -z "$ac_c_werror_flag" || | |
10184 | test ! -s conftest.err | |
10185 | } && test -s conftest$ac_exeext && { | |
10186 | test "$cross_compiling" = yes || | |
10187 | $as_test_x conftest$ac_exeext | |
10188 | }; then | |
10189 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
10190 | shlibpath_overrides_runpath=yes | |
10191 | fi | |
10192 | ||
10193 | else | |
10194 | $as_echo "$as_me: failed program was:" >&5 | |
10195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10196 | ||
10197 | ||
10198 | fi | |
10199 | ||
10200 | rm -rf conftest.dSYM | |
10201 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10202 | conftest$ac_exeext conftest.$ac_ext | |
10203 | LDFLAGS=$save_LDFLAGS | |
10204 | libdir=$save_libdir | |
10205 | ||
bf9f3bac BB |
10206 | # This implies no fast_install, which is unacceptable. |
10207 | # Some rework will be needed to allow for fast_install | |
10208 | # before this can be enabled. | |
10209 | hardcode_into_libs=yes | |
10210 | ||
8934764e BB |
10211 | # Add ABI-specific directories to the system library path. |
10212 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
bf9f3bac BB |
10213 | |
10214 | # Append ld.so.conf contents to the search path | |
10215 | if test -f /etc/ld.so.conf; then | |
8934764e BB |
10216 | 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;/^$/d' | tr '\n' ' '` |
10217 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | |
bf9f3bac BB |
10218 | fi |
10219 | ||
10220 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10221 | # powerpc, because MkLinux only supported shared libraries with the | |
10222 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10223 | # most powerpc-linux boxes support dynamic linking these days and | |
10224 | # people can always --disable-shared, the test was removed, and we | |
10225 | # assume the GNU/Linux dynamic linker is in use. | |
10226 | dynamic_linker='GNU/Linux ld.so' | |
10227 | ;; | |
10228 | ||
bf9f3bac BB |
10229 | netbsd*) |
10230 | version_type=sunos | |
10231 | need_lib_prefix=no | |
10232 | need_version=no | |
8934764e | 10233 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bf9f3bac BB |
10234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10235 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10236 | dynamic_linker='NetBSD (a.out) ld.so' | |
10237 | else | |
10238 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10239 | soname_spec='${libname}${release}${shared_ext}$major' | |
10240 | dynamic_linker='NetBSD ld.elf_so' | |
10241 | fi | |
10242 | shlibpath_var=LD_LIBRARY_PATH | |
10243 | shlibpath_overrides_runpath=yes | |
10244 | hardcode_into_libs=yes | |
10245 | ;; | |
10246 | ||
10247 | newsos6) | |
10248 | version_type=linux | |
10249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10250 | shlibpath_var=LD_LIBRARY_PATH | |
10251 | shlibpath_overrides_runpath=yes | |
10252 | ;; | |
10253 | ||
8934764e BB |
10254 | *nto* | *qnx*) |
10255 | version_type=qnx | |
bf9f3bac BB |
10256 | need_lib_prefix=no |
10257 | need_version=no | |
10258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10259 | soname_spec='${libname}${release}${shared_ext}$major' | |
10260 | shlibpath_var=LD_LIBRARY_PATH | |
8934764e BB |
10261 | shlibpath_overrides_runpath=no |
10262 | hardcode_into_libs=yes | |
10263 | dynamic_linker='ldqnx.so' | |
bf9f3bac BB |
10264 | ;; |
10265 | ||
10266 | openbsd*) | |
10267 | version_type=sunos | |
10268 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10269 | need_lib_prefix=no | |
10270 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10271 | case $host_os in | |
8934764e BB |
10272 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
10273 | *) need_version=no ;; | |
bf9f3bac BB |
10274 | esac |
10275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10276 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10277 | shlibpath_var=LD_LIBRARY_PATH | |
8934764e | 10278 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
bf9f3bac BB |
10279 | case $host_os in |
10280 | openbsd2.[89] | openbsd2.[89].*) | |
10281 | shlibpath_overrides_runpath=no | |
10282 | ;; | |
10283 | *) | |
10284 | shlibpath_overrides_runpath=yes | |
10285 | ;; | |
10286 | esac | |
10287 | else | |
10288 | shlibpath_overrides_runpath=yes | |
10289 | fi | |
10290 | ;; | |
10291 | ||
10292 | os2*) | |
10293 | libname_spec='$name' | |
10294 | shrext_cmds=".dll" | |
10295 | need_lib_prefix=no | |
10296 | library_names_spec='$libname${shared_ext} $libname.a' | |
10297 | dynamic_linker='OS/2 ld.exe' | |
10298 | shlibpath_var=LIBPATH | |
10299 | ;; | |
10300 | ||
10301 | osf3* | osf4* | osf5*) | |
10302 | version_type=osf | |
10303 | need_lib_prefix=no | |
10304 | need_version=no | |
10305 | soname_spec='${libname}${release}${shared_ext}$major' | |
10306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10307 | shlibpath_var=LD_LIBRARY_PATH | |
10308 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10309 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10310 | ;; | |
10311 | ||
8934764e BB |
10312 | rdos*) |
10313 | dynamic_linker=no | |
10314 | ;; | |
10315 | ||
bf9f3bac BB |
10316 | solaris*) |
10317 | version_type=linux | |
10318 | need_lib_prefix=no | |
10319 | need_version=no | |
10320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10321 | soname_spec='${libname}${release}${shared_ext}$major' | |
10322 | shlibpath_var=LD_LIBRARY_PATH | |
10323 | shlibpath_overrides_runpath=yes | |
10324 | hardcode_into_libs=yes | |
10325 | # ldd complains unless libraries are executable | |
10326 | postinstall_cmds='chmod +x $lib' | |
10327 | ;; | |
10328 | ||
10329 | sunos4*) | |
10330 | version_type=sunos | |
10331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10332 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10333 | shlibpath_var=LD_LIBRARY_PATH | |
10334 | shlibpath_overrides_runpath=yes | |
10335 | if test "$with_gnu_ld" = yes; then | |
10336 | need_lib_prefix=no | |
10337 | fi | |
10338 | need_version=yes | |
10339 | ;; | |
10340 | ||
10341 | sysv4 | sysv4.3*) | |
10342 | version_type=linux | |
10343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10344 | soname_spec='${libname}${release}${shared_ext}$major' | |
10345 | shlibpath_var=LD_LIBRARY_PATH | |
10346 | case $host_vendor in | |
10347 | sni) | |
10348 | shlibpath_overrides_runpath=no | |
10349 | need_lib_prefix=no | |
bf9f3bac BB |
10350 | runpath_var=LD_RUN_PATH |
10351 | ;; | |
10352 | siemens) | |
10353 | need_lib_prefix=no | |
10354 | ;; | |
10355 | motorola) | |
10356 | need_lib_prefix=no | |
10357 | need_version=no | |
10358 | shlibpath_overrides_runpath=no | |
10359 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10360 | ;; | |
10361 | esac | |
10362 | ;; | |
10363 | ||
10364 | sysv4*MP*) | |
10365 | if test -d /usr/nec ;then | |
10366 | version_type=linux | |
10367 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10368 | soname_spec='$libname${shared_ext}.$major' | |
10369 | shlibpath_var=LD_LIBRARY_PATH | |
10370 | fi | |
10371 | ;; | |
10372 | ||
10373 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10374 | version_type=freebsd-elf | |
10375 | need_lib_prefix=no | |
10376 | need_version=no | |
10377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10378 | soname_spec='${libname}${release}${shared_ext}$major' | |
10379 | shlibpath_var=LD_LIBRARY_PATH | |
8934764e | 10380 | shlibpath_overrides_runpath=yes |
bf9f3bac BB |
10381 | hardcode_into_libs=yes |
10382 | if test "$with_gnu_ld" = yes; then | |
10383 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
bf9f3bac BB |
10384 | else |
10385 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
bf9f3bac BB |
10386 | case $host_os in |
10387 | sco3.2v5*) | |
10388 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10389 | ;; | |
10390 | esac | |
10391 | fi | |
10392 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10393 | ;; | |
10394 | ||
8934764e BB |
10395 | tpf*) |
10396 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10397 | version_type=linux | |
10398 | need_lib_prefix=no | |
10399 | need_version=no | |
10400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10401 | shlibpath_var=LD_LIBRARY_PATH | |
10402 | shlibpath_overrides_runpath=no | |
10403 | hardcode_into_libs=yes | |
10404 | ;; | |
10405 | ||
bf9f3bac BB |
10406 | uts4*) |
10407 | version_type=linux | |
10408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10409 | soname_spec='${libname}${release}${shared_ext}$major' | |
10410 | shlibpath_var=LD_LIBRARY_PATH | |
10411 | ;; | |
10412 | ||
10413 | *) | |
10414 | dynamic_linker=no | |
10415 | ;; | |
10416 | esac | |
8934764e BB |
10417 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
10418 | $as_echo "$dynamic_linker" >&6; } | |
bf9f3bac BB |
10419 | test "$dynamic_linker" = no && can_build_shared=no |
10420 | ||
10421 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10422 | if test "$GCC" = yes; then | |
10423 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10424 | fi | |
10425 | ||
8934764e BB |
10426 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10427 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
bf9f3bac | 10428 | fi |
8934764e BB |
10429 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
10430 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
bf9f3bac BB |
10431 | fi |
10432 | ||
10433 | ||
bf9f3bac | 10434 | |
bf9f3bac | 10435 | |
bf9f3bac | 10436 | |
bf9f3bac | 10437 | |
bf9f3bac | 10438 | |
bf9f3bac | 10439 | |
bf9f3bac | 10440 | |
bf9f3bac | 10441 | |
bf9f3bac | 10442 | |
bf9f3bac | 10443 | |
bf9f3bac | 10444 | |
bf9f3bac | 10445 | |
bf9f3bac | 10446 | |
bf9f3bac | 10447 | |
bf9f3bac | 10448 | |
bf9f3bac | 10449 | |
bf9f3bac | 10450 | |
bf9f3bac | 10451 | |
bf9f3bac | 10452 | |
bf9f3bac | 10453 | |
bf9f3bac | 10454 | |
bf9f3bac | 10455 | |
bf9f3bac | 10456 | |
bf9f3bac | 10457 | |
bf9f3bac | 10458 | |
bf9f3bac | 10459 | |
bf9f3bac | 10460 | |
bf9f3bac | 10461 | |
bf9f3bac | 10462 | |
bf9f3bac | 10463 | |
bf9f3bac | 10464 | |
bf9f3bac | 10465 | |
bf9f3bac | 10466 | |
bf9f3bac | 10467 | |
bf9f3bac | 10468 | |
bf9f3bac | 10469 | |
bf9f3bac | 10470 | |
bf9f3bac | 10471 | |
bf9f3bac | 10472 | |
bf9f3bac | 10473 | |
bf9f3bac | 10474 | |
bf9f3bac | 10475 | |
bf9f3bac | 10476 | |
bf9f3bac | 10477 | |
bf9f3bac | 10478 | |
bf9f3bac | 10479 | |
bf9f3bac | 10480 | |
bf9f3bac | 10481 | |
bf9f3bac | 10482 | |
bf9f3bac | 10483 | |
bf9f3bac | 10484 | |
bf9f3bac | 10485 | |
bf9f3bac | 10486 | |
bf9f3bac | 10487 | |
bf9f3bac | 10488 | |
bf9f3bac | 10489 | |
bf9f3bac | 10490 | |
bf9f3bac | 10491 | |
bf9f3bac | 10492 | |
bf9f3bac | 10493 | |
bf9f3bac | 10494 | |
bf9f3bac | 10495 | |
bf9f3bac | 10496 | |
bf9f3bac | 10497 | |
bf9f3bac | 10498 | |
bf9f3bac | 10499 | |
bf9f3bac | 10500 | |
bf9f3bac | 10501 | |
bf9f3bac | 10502 | |
bf9f3bac | 10503 | |
bf9f3bac | 10504 | |
bf9f3bac | 10505 | |
bf9f3bac | 10506 | |
bf9f3bac | 10507 | |
bf9f3bac | 10508 | |
bf9f3bac | 10509 | |
bf9f3bac | 10510 | |
bf9f3bac | 10511 | |
bf9f3bac | 10512 | |
bf9f3bac | 10513 | |
bf9f3bac | 10514 | |
bf9f3bac | 10515 | |
bf9f3bac | 10516 | |
bf9f3bac | 10517 | |
bf9f3bac | 10518 | |
8934764e BB |
10519 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
10520 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10521 | hardcode_action= | |
10522 | if test -n "$hardcode_libdir_flag_spec" || | |
10523 | test -n "$runpath_var" || | |
10524 | test "X$hardcode_automatic" = "Xyes" ; then | |
bf9f3bac | 10525 | |
8934764e BB |
10526 | # We can hardcode non-existent directories. |
10527 | if test "$hardcode_direct" != no && | |
10528 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10529 | # have to relink, otherwise we might link with an installed library | |
10530 | # when we should be linking with a yet-to-be-installed one | |
10531 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10532 | test "$hardcode_minus_L" != no; then | |
10533 | # Linking always hardcodes the temporary library directory. | |
10534 | hardcode_action=relink | |
10535 | else | |
10536 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10537 | hardcode_action=immediate | |
bf9f3bac | 10538 | fi |
8934764e BB |
10539 | else |
10540 | # We cannot hardcode anything, or else we can only hardcode existing | |
10541 | # directories. | |
10542 | hardcode_action=unsupported | |
bf9f3bac | 10543 | fi |
8934764e BB |
10544 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
10545 | $as_echo "$hardcode_action" >&6; } | |
bf9f3bac | 10546 | |
8934764e BB |
10547 | if test "$hardcode_action" = relink || |
10548 | test "$inherit_rpath" = yes; then | |
10549 | # Fast installation is not supported | |
10550 | enable_fast_install=no | |
10551 | elif test "$shlibpath_overrides_runpath" = yes || | |
10552 | test "$enable_shared" = no; then | |
10553 | # Fast installation is not necessary | |
10554 | enable_fast_install=needless | |
10555 | fi | |
bf9f3bac | 10556 | |
bf9f3bac | 10557 | |
bf9f3bac | 10558 | |
bf9f3bac | 10559 | |
bf9f3bac BB |
10560 | |
10561 | ||
8934764e BB |
10562 | if test "x$enable_dlopen" != xyes; then |
10563 | enable_dlopen=unknown | |
10564 | enable_dlopen_self=unknown | |
10565 | enable_dlopen_self_static=unknown | |
10566 | else | |
10567 | lt_cv_dlopen=no | |
10568 | lt_cv_dlopen_libs= | |
bf9f3bac | 10569 | |
8934764e BB |
10570 | case $host_os in |
10571 | beos*) | |
10572 | lt_cv_dlopen="load_add_on" | |
10573 | lt_cv_dlopen_libs= | |
10574 | lt_cv_dlopen_self=yes | |
10575 | ;; | |
bf9f3bac | 10576 | |
8934764e BB |
10577 | mingw* | pw32* | cegcc*) |
10578 | lt_cv_dlopen="LoadLibrary" | |
10579 | lt_cv_dlopen_libs= | |
10580 | ;; | |
bf9f3bac | 10581 | |
8934764e BB |
10582 | cygwin*) |
10583 | lt_cv_dlopen="dlopen" | |
10584 | lt_cv_dlopen_libs= | |
10585 | ;; | |
bf9f3bac | 10586 | |
8934764e BB |
10587 | darwin*) |
10588 | # if libdl is installed we need to link against it | |
10589 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10590 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10591 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10592 | $as_echo_n "(cached) " >&6 | |
10593 | else | |
10594 | ac_check_lib_save_LIBS=$LIBS | |
10595 | LIBS="-ldl $LIBS" | |
10596 | cat >conftest.$ac_ext <<_ACEOF | |
10597 | /* confdefs.h. */ | |
10598 | _ACEOF | |
10599 | cat confdefs.h >>conftest.$ac_ext | |
10600 | cat >>conftest.$ac_ext <<_ACEOF | |
10601 | /* end confdefs.h. */ | |
bf9f3bac | 10602 | |
8934764e BB |
10603 | /* Override any GCC internal prototype to avoid an error. |
10604 | Use char because int might match the return type of a GCC | |
10605 | builtin and then its argument prototype would still apply. */ | |
10606 | #ifdef __cplusplus | |
10607 | extern "C" | |
10608 | #endif | |
10609 | char dlopen (); | |
10610 | int | |
10611 | main () | |
10612 | { | |
10613 | return dlopen (); | |
10614 | ; | |
10615 | return 0; | |
10616 | } | |
10617 | _ACEOF | |
10618 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10619 | if { (ac_try="$ac_link" | |
10620 | case "(($ac_try" in | |
10621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10622 | *) ac_try_echo=$ac_try;; | |
10623 | esac | |
10624 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10625 | $as_echo "$ac_try_echo") >&5 | |
10626 | (eval "$ac_link") 2>conftest.er1 | |
10627 | ac_status=$? | |
10628 | grep -v '^ *+' conftest.er1 >conftest.err | |
10629 | rm -f conftest.er1 | |
10630 | cat conftest.err >&5 | |
10631 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10632 | (exit $ac_status); } && { | |
10633 | test -z "$ac_c_werror_flag" || | |
10634 | test ! -s conftest.err | |
10635 | } && test -s conftest$ac_exeext && { | |
10636 | test "$cross_compiling" = yes || | |
10637 | $as_test_x conftest$ac_exeext | |
10638 | }; then | |
10639 | ac_cv_lib_dl_dlopen=yes | |
10640 | else | |
10641 | $as_echo "$as_me: failed program was:" >&5 | |
10642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 10643 | |
8934764e BB |
10644 | ac_cv_lib_dl_dlopen=no |
10645 | fi | |
bf9f3bac | 10646 | |
8934764e BB |
10647 | rm -rf conftest.dSYM |
10648 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10649 | conftest$ac_exeext conftest.$ac_ext | |
10650 | LIBS=$ac_check_lib_save_LIBS | |
10651 | fi | |
10652 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10653 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10654 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10655 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10656 | else | |
bf9f3bac | 10657 | |
8934764e BB |
10658 | lt_cv_dlopen="dyld" |
10659 | lt_cv_dlopen_libs= | |
10660 | lt_cv_dlopen_self=yes | |
bf9f3bac | 10661 | |
8934764e | 10662 | fi |
bf9f3bac | 10663 | |
8934764e | 10664 | ;; |
bf9f3bac | 10665 | |
8934764e BB |
10666 | *) |
10667 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10668 | $as_echo_n "checking for shl_load... " >&6; } | |
10669 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10670 | $as_echo_n "(cached) " >&6 | |
10671 | else | |
10672 | cat >conftest.$ac_ext <<_ACEOF | |
10673 | /* confdefs.h. */ | |
10674 | _ACEOF | |
10675 | cat confdefs.h >>conftest.$ac_ext | |
10676 | cat >>conftest.$ac_ext <<_ACEOF | |
10677 | /* end confdefs.h. */ | |
10678 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10679 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10680 | #define shl_load innocuous_shl_load | |
bf9f3bac | 10681 | |
8934764e BB |
10682 | /* System header to define __stub macros and hopefully few prototypes, |
10683 | which can conflict with char shl_load (); below. | |
10684 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10685 | <limits.h> exists even on freestanding compilers. */ | |
bf9f3bac | 10686 | |
8934764e BB |
10687 | #ifdef __STDC__ |
10688 | # include <limits.h> | |
10689 | #else | |
10690 | # include <assert.h> | |
10691 | #endif | |
bf9f3bac | 10692 | |
8934764e | 10693 | #undef shl_load |
bf9f3bac | 10694 | |
8934764e BB |
10695 | /* Override any GCC internal prototype to avoid an error. |
10696 | Use char because int might match the return type of a GCC | |
10697 | builtin and then its argument prototype would still apply. */ | |
10698 | #ifdef __cplusplus | |
10699 | extern "C" | |
10700 | #endif | |
10701 | char shl_load (); | |
10702 | /* The GNU C library defines this for functions which it implements | |
10703 | to always fail with ENOSYS. Some functions are actually named | |
10704 | something starting with __ and the normal name is an alias. */ | |
10705 | #if defined __stub_shl_load || defined __stub___shl_load | |
10706 | choke me | |
10707 | #endif | |
bf9f3bac | 10708 | |
8934764e BB |
10709 | int |
10710 | main () | |
10711 | { | |
10712 | return shl_load (); | |
10713 | ; | |
10714 | return 0; | |
10715 | } | |
10716 | _ACEOF | |
10717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10718 | if { (ac_try="$ac_link" | |
10719 | case "(($ac_try" in | |
10720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10721 | *) ac_try_echo=$ac_try;; | |
10722 | esac | |
10723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10724 | $as_echo "$ac_try_echo") >&5 | |
10725 | (eval "$ac_link") 2>conftest.er1 | |
10726 | ac_status=$? | |
10727 | grep -v '^ *+' conftest.er1 >conftest.err | |
10728 | rm -f conftest.er1 | |
10729 | cat conftest.err >&5 | |
10730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10731 | (exit $ac_status); } && { | |
10732 | test -z "$ac_c_werror_flag" || | |
10733 | test ! -s conftest.err | |
10734 | } && test -s conftest$ac_exeext && { | |
10735 | test "$cross_compiling" = yes || | |
10736 | $as_test_x conftest$ac_exeext | |
10737 | }; then | |
10738 | ac_cv_func_shl_load=yes | |
10739 | else | |
10740 | $as_echo "$as_me: failed program was:" >&5 | |
10741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 10742 | |
8934764e BB |
10743 | ac_cv_func_shl_load=no |
10744 | fi | |
bf9f3bac | 10745 | |
8934764e BB |
10746 | rm -rf conftest.dSYM |
10747 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10748 | conftest$ac_exeext conftest.$ac_ext | |
10749 | fi | |
10750 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10751 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
10752 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
10753 | lt_cv_dlopen="shl_load" | |
10754 | else | |
10755 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10756 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10757 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10758 | $as_echo_n "(cached) " >&6 | |
10759 | else | |
10760 | ac_check_lib_save_LIBS=$LIBS | |
10761 | LIBS="-ldld $LIBS" | |
10762 | cat >conftest.$ac_ext <<_ACEOF | |
10763 | /* confdefs.h. */ | |
10764 | _ACEOF | |
10765 | cat confdefs.h >>conftest.$ac_ext | |
10766 | cat >>conftest.$ac_ext <<_ACEOF | |
10767 | /* end confdefs.h. */ | |
bf9f3bac | 10768 | |
8934764e BB |
10769 | /* Override any GCC internal prototype to avoid an error. |
10770 | Use char because int might match the return type of a GCC | |
10771 | builtin and then its argument prototype would still apply. */ | |
10772 | #ifdef __cplusplus | |
10773 | extern "C" | |
10774 | #endif | |
10775 | char shl_load (); | |
10776 | int | |
10777 | main () | |
10778 | { | |
10779 | return shl_load (); | |
10780 | ; | |
10781 | return 0; | |
10782 | } | |
10783 | _ACEOF | |
10784 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10785 | if { (ac_try="$ac_link" | |
10786 | case "(($ac_try" in | |
10787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10788 | *) ac_try_echo=$ac_try;; | |
10789 | esac | |
10790 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10791 | $as_echo "$ac_try_echo") >&5 | |
10792 | (eval "$ac_link") 2>conftest.er1 | |
10793 | ac_status=$? | |
10794 | grep -v '^ *+' conftest.er1 >conftest.err | |
10795 | rm -f conftest.er1 | |
10796 | cat conftest.err >&5 | |
10797 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10798 | (exit $ac_status); } && { | |
10799 | test -z "$ac_c_werror_flag" || | |
10800 | test ! -s conftest.err | |
10801 | } && test -s conftest$ac_exeext && { | |
10802 | test "$cross_compiling" = yes || | |
10803 | $as_test_x conftest$ac_exeext | |
10804 | }; then | |
10805 | ac_cv_lib_dld_shl_load=yes | |
10806 | else | |
10807 | $as_echo "$as_me: failed program was:" >&5 | |
10808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 10809 | |
8934764e BB |
10810 | ac_cv_lib_dld_shl_load=no |
10811 | fi | |
bf9f3bac | 10812 | |
8934764e BB |
10813 | rm -rf conftest.dSYM |
10814 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10815 | conftest$ac_exeext conftest.$ac_ext | |
10816 | LIBS=$ac_check_lib_save_LIBS | |
10817 | fi | |
10818 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10819 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10820 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
10821 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10822 | else | |
10823 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10824 | $as_echo_n "checking for dlopen... " >&6; } | |
10825 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10826 | $as_echo_n "(cached) " >&6 | |
10827 | else | |
10828 | cat >conftest.$ac_ext <<_ACEOF | |
10829 | /* confdefs.h. */ | |
10830 | _ACEOF | |
10831 | cat confdefs.h >>conftest.$ac_ext | |
10832 | cat >>conftest.$ac_ext <<_ACEOF | |
10833 | /* end confdefs.h. */ | |
10834 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10835 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10836 | #define dlopen innocuous_dlopen | |
bf9f3bac | 10837 | |
8934764e BB |
10838 | /* System header to define __stub macros and hopefully few prototypes, |
10839 | which can conflict with char dlopen (); below. | |
10840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10841 | <limits.h> exists even on freestanding compilers. */ | |
bf9f3bac | 10842 | |
8934764e BB |
10843 | #ifdef __STDC__ |
10844 | # include <limits.h> | |
10845 | #else | |
10846 | # include <assert.h> | |
10847 | #endif | |
bf9f3bac | 10848 | |
8934764e | 10849 | #undef dlopen |
bf9f3bac | 10850 | |
8934764e BB |
10851 | /* Override any GCC internal prototype to avoid an error. |
10852 | Use char because int might match the return type of a GCC | |
10853 | builtin and then its argument prototype would still apply. */ | |
10854 | #ifdef __cplusplus | |
10855 | extern "C" | |
10856 | #endif | |
10857 | char dlopen (); | |
10858 | /* The GNU C library defines this for functions which it implements | |
10859 | to always fail with ENOSYS. Some functions are actually named | |
10860 | something starting with __ and the normal name is an alias. */ | |
10861 | #if defined __stub_dlopen || defined __stub___dlopen | |
10862 | choke me | |
10863 | #endif | |
bf9f3bac | 10864 | |
8934764e BB |
10865 | int |
10866 | main () | |
10867 | { | |
10868 | return dlopen (); | |
10869 | ; | |
10870 | return 0; | |
10871 | } | |
10872 | _ACEOF | |
10873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10874 | if { (ac_try="$ac_link" | |
10875 | case "(($ac_try" in | |
10876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10877 | *) ac_try_echo=$ac_try;; | |
10878 | esac | |
10879 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10880 | $as_echo "$ac_try_echo") >&5 | |
10881 | (eval "$ac_link") 2>conftest.er1 | |
10882 | ac_status=$? | |
10883 | grep -v '^ *+' conftest.er1 >conftest.err | |
10884 | rm -f conftest.er1 | |
10885 | cat conftest.err >&5 | |
10886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10887 | (exit $ac_status); } && { | |
10888 | test -z "$ac_c_werror_flag" || | |
10889 | test ! -s conftest.err | |
10890 | } && test -s conftest$ac_exeext && { | |
10891 | test "$cross_compiling" = yes || | |
10892 | $as_test_x conftest$ac_exeext | |
10893 | }; then | |
10894 | ac_cv_func_dlopen=yes | |
10895 | else | |
10896 | $as_echo "$as_me: failed program was:" >&5 | |
10897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 10898 | |
8934764e BB |
10899 | ac_cv_func_dlopen=no |
10900 | fi | |
bf9f3bac | 10901 | |
8934764e BB |
10902 | rm -rf conftest.dSYM |
10903 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10904 | conftest$ac_exeext conftest.$ac_ext | |
10905 | fi | |
10906 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10907 | $as_echo "$ac_cv_func_dlopen" >&6; } | |
10908 | if test "x$ac_cv_func_dlopen" = x""yes; then | |
10909 | lt_cv_dlopen="dlopen" | |
10910 | else | |
10911 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10912 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10913 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10914 | $as_echo_n "(cached) " >&6 | |
10915 | else | |
10916 | ac_check_lib_save_LIBS=$LIBS | |
10917 | LIBS="-ldl $LIBS" | |
10918 | cat >conftest.$ac_ext <<_ACEOF | |
10919 | /* confdefs.h. */ | |
10920 | _ACEOF | |
10921 | cat confdefs.h >>conftest.$ac_ext | |
10922 | cat >>conftest.$ac_ext <<_ACEOF | |
10923 | /* end confdefs.h. */ | |
bf9f3bac | 10924 | |
8934764e BB |
10925 | /* Override any GCC internal prototype to avoid an error. |
10926 | Use char because int might match the return type of a GCC | |
10927 | builtin and then its argument prototype would still apply. */ | |
10928 | #ifdef __cplusplus | |
10929 | extern "C" | |
10930 | #endif | |
10931 | char dlopen (); | |
10932 | int | |
10933 | main () | |
10934 | { | |
10935 | return dlopen (); | |
10936 | ; | |
10937 | return 0; | |
10938 | } | |
10939 | _ACEOF | |
10940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10941 | if { (ac_try="$ac_link" | |
10942 | case "(($ac_try" in | |
10943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10944 | *) ac_try_echo=$ac_try;; | |
10945 | esac | |
10946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10947 | $as_echo "$ac_try_echo") >&5 | |
10948 | (eval "$ac_link") 2>conftest.er1 | |
10949 | ac_status=$? | |
10950 | grep -v '^ *+' conftest.er1 >conftest.err | |
10951 | rm -f conftest.er1 | |
10952 | cat conftest.err >&5 | |
10953 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10954 | (exit $ac_status); } && { | |
10955 | test -z "$ac_c_werror_flag" || | |
10956 | test ! -s conftest.err | |
10957 | } && test -s conftest$ac_exeext && { | |
10958 | test "$cross_compiling" = yes || | |
10959 | $as_test_x conftest$ac_exeext | |
10960 | }; then | |
10961 | ac_cv_lib_dl_dlopen=yes | |
10962 | else | |
10963 | $as_echo "$as_me: failed program was:" >&5 | |
10964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 10965 | |
8934764e BB |
10966 | ac_cv_lib_dl_dlopen=no |
10967 | fi | |
bf9f3bac | 10968 | |
8934764e BB |
10969 | rm -rf conftest.dSYM |
10970 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10971 | conftest$ac_exeext conftest.$ac_ext | |
10972 | LIBS=$ac_check_lib_save_LIBS | |
10973 | fi | |
10974 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10975 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10976 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10977 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10978 | else | |
10979 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10980 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10981 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10982 | $as_echo_n "(cached) " >&6 | |
10983 | else | |
10984 | ac_check_lib_save_LIBS=$LIBS | |
10985 | LIBS="-lsvld $LIBS" | |
10986 | cat >conftest.$ac_ext <<_ACEOF | |
10987 | /* confdefs.h. */ | |
10988 | _ACEOF | |
10989 | cat confdefs.h >>conftest.$ac_ext | |
10990 | cat >>conftest.$ac_ext <<_ACEOF | |
10991 | /* end confdefs.h. */ | |
bf9f3bac | 10992 | |
8934764e BB |
10993 | /* Override any GCC internal prototype to avoid an error. |
10994 | Use char because int might match the return type of a GCC | |
10995 | builtin and then its argument prototype would still apply. */ | |
10996 | #ifdef __cplusplus | |
10997 | extern "C" | |
10998 | #endif | |
10999 | char dlopen (); | |
11000 | int | |
11001 | main () | |
11002 | { | |
11003 | return dlopen (); | |
11004 | ; | |
11005 | return 0; | |
11006 | } | |
11007 | _ACEOF | |
11008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11009 | if { (ac_try="$ac_link" | |
11010 | case "(($ac_try" in | |
11011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11012 | *) ac_try_echo=$ac_try;; | |
11013 | esac | |
11014 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11015 | $as_echo "$ac_try_echo") >&5 | |
11016 | (eval "$ac_link") 2>conftest.er1 | |
11017 | ac_status=$? | |
11018 | grep -v '^ *+' conftest.er1 >conftest.err | |
11019 | rm -f conftest.er1 | |
11020 | cat conftest.err >&5 | |
11021 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11022 | (exit $ac_status); } && { | |
11023 | test -z "$ac_c_werror_flag" || | |
11024 | test ! -s conftest.err | |
11025 | } && test -s conftest$ac_exeext && { | |
11026 | test "$cross_compiling" = yes || | |
11027 | $as_test_x conftest$ac_exeext | |
11028 | }; then | |
11029 | ac_cv_lib_svld_dlopen=yes | |
11030 | else | |
11031 | $as_echo "$as_me: failed program was:" >&5 | |
11032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 11033 | |
8934764e BB |
11034 | ac_cv_lib_svld_dlopen=no |
11035 | fi | |
bf9f3bac | 11036 | |
8934764e BB |
11037 | rm -rf conftest.dSYM |
11038 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11039 | conftest$ac_exeext conftest.$ac_ext | |
11040 | LIBS=$ac_check_lib_save_LIBS | |
11041 | fi | |
11042 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11043 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11044 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
11045 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11046 | else | |
11047 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11048 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11049 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11050 | $as_echo_n "(cached) " >&6 | |
11051 | else | |
11052 | ac_check_lib_save_LIBS=$LIBS | |
11053 | LIBS="-ldld $LIBS" | |
11054 | cat >conftest.$ac_ext <<_ACEOF | |
11055 | /* confdefs.h. */ | |
11056 | _ACEOF | |
11057 | cat confdefs.h >>conftest.$ac_ext | |
11058 | cat >>conftest.$ac_ext <<_ACEOF | |
11059 | /* end confdefs.h. */ | |
bf9f3bac | 11060 | |
8934764e BB |
11061 | /* Override any GCC internal prototype to avoid an error. |
11062 | Use char because int might match the return type of a GCC | |
11063 | builtin and then its argument prototype would still apply. */ | |
11064 | #ifdef __cplusplus | |
11065 | extern "C" | |
11066 | #endif | |
11067 | char dld_link (); | |
11068 | int | |
11069 | main () | |
11070 | { | |
11071 | return dld_link (); | |
11072 | ; | |
11073 | return 0; | |
11074 | } | |
11075 | _ACEOF | |
11076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11077 | if { (ac_try="$ac_link" | |
11078 | case "(($ac_try" in | |
11079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11080 | *) ac_try_echo=$ac_try;; | |
11081 | esac | |
11082 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11083 | $as_echo "$ac_try_echo") >&5 | |
11084 | (eval "$ac_link") 2>conftest.er1 | |
11085 | ac_status=$? | |
11086 | grep -v '^ *+' conftest.er1 >conftest.err | |
11087 | rm -f conftest.er1 | |
11088 | cat conftest.err >&5 | |
11089 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11090 | (exit $ac_status); } && { | |
11091 | test -z "$ac_c_werror_flag" || | |
11092 | test ! -s conftest.err | |
11093 | } && test -s conftest$ac_exeext && { | |
11094 | test "$cross_compiling" = yes || | |
11095 | $as_test_x conftest$ac_exeext | |
11096 | }; then | |
11097 | ac_cv_lib_dld_dld_link=yes | |
11098 | else | |
11099 | $as_echo "$as_me: failed program was:" >&5 | |
11100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 11101 | |
8934764e BB |
11102 | ac_cv_lib_dld_dld_link=no |
11103 | fi | |
bf9f3bac | 11104 | |
8934764e BB |
11105 | rm -rf conftest.dSYM |
11106 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11107 | conftest$ac_exeext conftest.$ac_ext | |
11108 | LIBS=$ac_check_lib_save_LIBS | |
11109 | fi | |
11110 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11111 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11112 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
11113 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11114 | fi | |
bf9f3bac | 11115 | |
bf9f3bac | 11116 | |
8934764e | 11117 | fi |
bf9f3bac | 11118 | |
bf9f3bac | 11119 | |
8934764e | 11120 | fi |
bf9f3bac | 11121 | |
bf9f3bac | 11122 | |
8934764e | 11123 | fi |
bf9f3bac | 11124 | |
bf9f3bac | 11125 | |
8934764e | 11126 | fi |
bf9f3bac | 11127 | |
bf9f3bac | 11128 | |
8934764e | 11129 | fi |
bf9f3bac | 11130 | |
8934764e BB |
11131 | ;; |
11132 | esac | |
bf9f3bac | 11133 | |
8934764e BB |
11134 | if test "x$lt_cv_dlopen" != xno; then |
11135 | enable_dlopen=yes | |
11136 | else | |
11137 | enable_dlopen=no | |
11138 | fi | |
bf9f3bac | 11139 | |
8934764e BB |
11140 | case $lt_cv_dlopen in |
11141 | dlopen) | |
11142 | save_CPPFLAGS="$CPPFLAGS" | |
11143 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
bf9f3bac | 11144 | |
8934764e BB |
11145 | save_LDFLAGS="$LDFLAGS" |
11146 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
bf9f3bac | 11147 | |
8934764e BB |
11148 | save_LIBS="$LIBS" |
11149 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
bf9f3bac | 11150 | |
8934764e BB |
11151 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
11152 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11153 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11154 | $as_echo_n "(cached) " >&6 | |
11155 | else | |
11156 | if test "$cross_compiling" = yes; then : | |
11157 | lt_cv_dlopen_self=cross | |
11158 | else | |
11159 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11160 | lt_status=$lt_dlunknown | |
11161 | cat > conftest.$ac_ext <<_LT_EOF | |
0408008b | 11162 | #line 11162 "configure" |
8934764e | 11163 | #include "confdefs.h" |
bf9f3bac | 11164 | |
8934764e BB |
11165 | #if HAVE_DLFCN_H |
11166 | #include <dlfcn.h> | |
11167 | #endif | |
bf9f3bac | 11168 | |
8934764e | 11169 | #include <stdio.h> |
bf9f3bac | 11170 | |
8934764e BB |
11171 | #ifdef RTLD_GLOBAL |
11172 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11173 | #else | |
11174 | # ifdef DL_GLOBAL | |
11175 | # define LT_DLGLOBAL DL_GLOBAL | |
11176 | # else | |
11177 | # define LT_DLGLOBAL 0 | |
11178 | # endif | |
11179 | #endif | |
bf9f3bac | 11180 | |
8934764e BB |
11181 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11182 | find out it does not work in some platform. */ | |
11183 | #ifndef LT_DLLAZY_OR_NOW | |
11184 | # ifdef RTLD_LAZY | |
11185 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11186 | # else | |
11187 | # ifdef DL_LAZY | |
11188 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11189 | # else | |
11190 | # ifdef RTLD_NOW | |
11191 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11192 | # else | |
11193 | # ifdef DL_NOW | |
11194 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11195 | # else | |
11196 | # define LT_DLLAZY_OR_NOW 0 | |
11197 | # endif | |
11198 | # endif | |
11199 | # endif | |
11200 | # endif | |
11201 | #endif | |
bf9f3bac | 11202 | |
8934764e BB |
11203 | void fnord() { int i=42;} |
11204 | int main () | |
11205 | { | |
11206 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11207 | int status = $lt_dlunknown; | |
bf9f3bac | 11208 | |
8934764e BB |
11209 | if (self) |
11210 | { | |
11211 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11212 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11213 | /* dlclose (self); */ | |
11214 | } | |
11215 | else | |
11216 | puts (dlerror ()); | |
bf9f3bac | 11217 | |
8934764e BB |
11218 | return status; |
11219 | } | |
11220 | _LT_EOF | |
11221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11222 | (eval $ac_link) 2>&5 | |
11223 | ac_status=$? | |
11224 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11225 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11226 | (./conftest; exit; ) >&5 2>/dev/null | |
11227 | lt_status=$? | |
11228 | case x$lt_status in | |
11229 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11230 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11231 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11232 | esac | |
11233 | else : | |
11234 | # compilation failed | |
11235 | lt_cv_dlopen_self=no | |
11236 | fi | |
11237 | fi | |
11238 | rm -fr conftest* | |
bf9f3bac | 11239 | |
bf9f3bac | 11240 | |
8934764e BB |
11241 | fi |
11242 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11243 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
bf9f3bac | 11244 | |
8934764e BB |
11245 | if test "x$lt_cv_dlopen_self" = xyes; then |
11246 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11247 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11248 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11249 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11250 | $as_echo_n "(cached) " >&6 | |
11251 | else | |
11252 | if test "$cross_compiling" = yes; then : | |
11253 | lt_cv_dlopen_self_static=cross | |
11254 | else | |
11255 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11256 | lt_status=$lt_dlunknown | |
11257 | cat > conftest.$ac_ext <<_LT_EOF | |
0408008b | 11258 | #line 11258 "configure" |
8934764e | 11259 | #include "confdefs.h" |
bf9f3bac | 11260 | |
8934764e BB |
11261 | #if HAVE_DLFCN_H |
11262 | #include <dlfcn.h> | |
11263 | #endif | |
bf9f3bac | 11264 | |
8934764e | 11265 | #include <stdio.h> |
bf9f3bac | 11266 | |
8934764e BB |
11267 | #ifdef RTLD_GLOBAL |
11268 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11269 | #else | |
11270 | # ifdef DL_GLOBAL | |
11271 | # define LT_DLGLOBAL DL_GLOBAL | |
11272 | # else | |
11273 | # define LT_DLGLOBAL 0 | |
11274 | # endif | |
11275 | #endif | |
bf9f3bac | 11276 | |
8934764e BB |
11277 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11278 | find out it does not work in some platform. */ | |
11279 | #ifndef LT_DLLAZY_OR_NOW | |
11280 | # ifdef RTLD_LAZY | |
11281 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11282 | # else | |
11283 | # ifdef DL_LAZY | |
11284 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11285 | # else | |
11286 | # ifdef RTLD_NOW | |
11287 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11288 | # else | |
11289 | # ifdef DL_NOW | |
11290 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11291 | # else | |
11292 | # define LT_DLLAZY_OR_NOW 0 | |
11293 | # endif | |
11294 | # endif | |
11295 | # endif | |
11296 | # endif | |
11297 | #endif | |
bf9f3bac | 11298 | |
8934764e BB |
11299 | void fnord() { int i=42;} |
11300 | int main () | |
11301 | { | |
11302 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11303 | int status = $lt_dlunknown; | |
bf9f3bac | 11304 | |
8934764e BB |
11305 | if (self) |
11306 | { | |
11307 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11308 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11309 | /* dlclose (self); */ | |
11310 | } | |
11311 | else | |
11312 | puts (dlerror ()); | |
bf9f3bac | 11313 | |
8934764e BB |
11314 | return status; |
11315 | } | |
11316 | _LT_EOF | |
11317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11318 | (eval $ac_link) 2>&5 | |
11319 | ac_status=$? | |
11320 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11321 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11322 | (./conftest; exit; ) >&5 2>/dev/null | |
11323 | lt_status=$? | |
11324 | case x$lt_status in | |
11325 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11326 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11327 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11328 | esac | |
11329 | else : | |
11330 | # compilation failed | |
11331 | lt_cv_dlopen_self_static=no | |
11332 | fi | |
11333 | fi | |
11334 | rm -fr conftest* | |
bf9f3bac | 11335 | |
bf9f3bac | 11336 | |
8934764e BB |
11337 | fi |
11338 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11339 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11340 | fi | |
bf9f3bac | 11341 | |
8934764e BB |
11342 | CPPFLAGS="$save_CPPFLAGS" |
11343 | LDFLAGS="$save_LDFLAGS" | |
11344 | LIBS="$save_LIBS" | |
11345 | ;; | |
11346 | esac | |
bf9f3bac | 11347 | |
8934764e BB |
11348 | case $lt_cv_dlopen_self in |
11349 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11350 | *) enable_dlopen_self=unknown ;; | |
11351 | esac | |
bf9f3bac | 11352 | |
8934764e BB |
11353 | case $lt_cv_dlopen_self_static in |
11354 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11355 | *) enable_dlopen_self_static=unknown ;; | |
11356 | esac | |
11357 | fi | |
bf9f3bac | 11358 | |
bf9f3bac | 11359 | |
bf9f3bac | 11360 | |
bf9f3bac | 11361 | |
bf9f3bac | 11362 | |
bf9f3bac | 11363 | |
bf9f3bac | 11364 | |
bf9f3bac | 11365 | |
bf9f3bac | 11366 | |
bf9f3bac | 11367 | |
bf9f3bac | 11368 | |
bf9f3bac | 11369 | |
bf9f3bac | 11370 | |
bf9f3bac | 11371 | |
bf9f3bac | 11372 | |
bf9f3bac | 11373 | |
bf9f3bac | 11374 | |
8934764e BB |
11375 | striplib= |
11376 | old_striplib= | |
11377 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11378 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11379 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11380 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11381 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11382 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11383 | $as_echo "yes" >&6; } | |
11384 | else | |
11385 | # FIXME - insert some real tests, host_os isn't really good enough | |
11386 | case $host_os in | |
11387 | darwin*) | |
11388 | if test -n "$STRIP" ; then | |
11389 | striplib="$STRIP -x" | |
11390 | old_striplib="$STRIP -S" | |
11391 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11392 | $as_echo "yes" >&6; } | |
11393 | else | |
11394 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11395 | $as_echo "no" >&6; } | |
11396 | fi | |
11397 | ;; | |
11398 | *) | |
11399 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11400 | $as_echo "no" >&6; } | |
11401 | ;; | |
11402 | esac | |
11403 | fi | |
bf9f3bac | 11404 | |
bf9f3bac | 11405 | |
bf9f3bac | 11406 | |
bf9f3bac | 11407 | |
bf9f3bac | 11408 | |
bf9f3bac | 11409 | |
bf9f3bac | 11410 | |
bf9f3bac | 11411 | |
bf9f3bac | 11412 | |
bf9f3bac | 11413 | |
bf9f3bac | 11414 | |
bf9f3bac | 11415 | |
8934764e BB |
11416 | # Report which library types will actually be built |
11417 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11418 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11419 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11420 | $as_echo "$can_build_shared" >&6; } | |
bf9f3bac | 11421 | |
8934764e BB |
11422 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
11423 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11424 | test "$can_build_shared" = "no" && enable_shared=no | |
bf9f3bac | 11425 | |
8934764e BB |
11426 | # On AIX, shared libraries and static libraries use the same namespace, and |
11427 | # are all built from PIC. | |
11428 | case $host_os in | |
11429 | aix3*) | |
11430 | test "$enable_shared" = yes && enable_static=no | |
11431 | if test -n "$RANLIB"; then | |
11432 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11433 | postinstall_cmds='$RANLIB $lib' | |
11434 | fi | |
11435 | ;; | |
bf9f3bac | 11436 | |
8934764e BB |
11437 | aix[4-9]*) |
11438 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11439 | test "$enable_shared" = yes && enable_static=no | |
11440 | fi | |
11441 | ;; | |
11442 | esac | |
11443 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11444 | $as_echo "$enable_shared" >&6; } | |
bf9f3bac | 11445 | |
8934764e BB |
11446 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
11447 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11448 | # Make sure either enable_shared or enable_static is yes. | |
11449 | test "$enable_shared" = yes || enable_static=yes | |
11450 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11451 | $as_echo "$enable_static" >&6; } | |
bf9f3bac | 11452 | |
bf9f3bac | 11453 | |
bf9f3bac BB |
11454 | |
11455 | ||
bf9f3bac | 11456 | fi |
bf9f3bac BB |
11457 | ac_ext=c |
11458 | ac_cpp='$CPP $CPPFLAGS' | |
11459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11462 | ||
11463 | CC="$lt_save_CC" | |
11464 | ||
bf9f3bac | 11465 | |
bf9f3bac BB |
11466 | |
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
11472 | ||
11473 | ||
11474 | ||
11475 | ||
11476 | ||
8934764e | 11477 | ac_config_commands="$ac_config_commands libtool" |
bf9f3bac BB |
11478 | |
11479 | ||
11480 | ||
11481 | ||
8934764e | 11482 | # Only expand once: |
bf9f3bac BB |
11483 | |
11484 | ||
11485 | ||
11486 | ||
8934764e BB |
11487 | { $as_echo "$as_me:$LINENO: checking spl license" >&5 |
11488 | $as_echo_n "checking spl license... " >&6; } | |
86933a6e | 11489 | LICENSE=GPL |
8934764e BB |
11490 | { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5 |
11491 | $as_echo "$LICENSE" >&6; } | |
86933a6e BB |
11492 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS" |
11493 | ||
11494 | ||
11495 | ||
287b2fb1 | 11496 | |
0b14b9f3 BB |
11497 | { $as_echo "$as_me:$LINENO: checking linux distribution" >&5 |
11498 | $as_echo_n "checking linux distribution... " >&6; } | |
a3a69b74 BB |
11499 | if test -f /etc/toss-release ; then |
11500 | VENDOR=toss ; | |
0b14b9f3 BB |
11501 | elif test -f /etc/fedora-release ; then |
11502 | VENDOR=fedora ; | |
a3a69b74 BB |
11503 | elif test -f /etc/redhat-release ; then |
11504 | VENDOR=redhat ; | |
11505 | elif test -f /etc/gentoo-release ; then | |
11506 | VENDOR=gentoo ; | |
0b14b9f3 BB |
11507 | elif test -f /etc/arch-release ; then |
11508 | VENDOR=arch ; | |
0b14b9f3 BB |
11509 | elif test -f /etc/SuSE-release ; then |
11510 | VENDOR=sles ; | |
11511 | elif test -f /etc/slackware-version ; then | |
11512 | VENDOR=slackware ; | |
a3a69b74 BB |
11513 | elif test -f /etc/lunar.release ; then |
11514 | VENDOR=lunar ; | |
11515 | elif test -f /etc/lsb-release ; then | |
11516 | VENDOR=ubuntu ; | |
11517 | elif test -f /etc/debian_version ; then | |
11518 | VENDOR=debian ; | |
0b14b9f3 BB |
11519 | else |
11520 | VENDOR= ; | |
11521 | fi | |
11522 | { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5 | |
11523 | $as_echo "$VENDOR" >&6; } | |
11524 | ||
11525 | ||
11526 | { $as_echo "$as_me:$LINENO: checking default package type" >&5 | |
11527 | $as_echo_n "checking default package type... " >&6; } | |
11528 | case "$VENDOR" in | |
a3a69b74 BB |
11529 | toss) DEFAULT_PACKAGE=rpm ;; |
11530 | redhat) DEFAULT_PACKAGE=rpm ;; | |
11531 | fedora) DEFAULT_PACKAGE=rpm ;; | |
11532 | gentoo) DEFAULT_PACKAGE=tgz ;; | |
11533 | arch) DEFAULT_PACKAGE=arch ;; | |
11534 | sles) DEFAULT_PACKAGE=rpm ;; | |
11535 | slackware) DEFAULT_PACKAGE=tgz ;; | |
11536 | lunar) DEFAULT_PACKAGE=tgz ;; | |
11537 | ubuntu) DEFAULT_PACKAGE=deb ;; | |
11538 | debian) DEFAULT_PACKAGE=deb ;; | |
11539 | *) DEFAULT_PACKAGE=rpm ;; | |
0b14b9f3 BB |
11540 | esac |
11541 | ||
11542 | { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5 | |
11543 | $as_echo "$DEFAULT_PACKAGE" >&6; } | |
11544 | ||
11545 | ||
11546 | ||
287b2fb1 BB |
11547 | RPM=rpm |
11548 | RPMBUILD=rpmbuild | |
11549 | ||
11550 | { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5 | |
11551 | $as_echo_n "checking whether $RPM is available... " >&6; } | |
11552 | if tmp=$($RPM --version 2>/dev/null); then | |
11553 | ||
11554 | RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
11555 | HAVE_RPM=yes | |
11556 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5 | |
11557 | $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; } | |
11558 | ||
11559 | else | |
11560 | ||
11561 | HAVE_RPM=no | |
11562 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5 | |
11563 | $as_echo "$HAVE_RPM" >&6; } | |
11564 | ||
11565 | fi | |
11566 | ||
11567 | ||
11568 | { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5 | |
11569 | $as_echo_n "checking whether $RPMBUILD is available... " >&6; } | |
11570 | if tmp=$($RPMBUILD --version 2>/dev/null); then | |
11571 | ||
11572 | RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
11573 | HAVE_RPMBUILD=yes | |
11574 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5 | |
11575 | $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; } | |
11576 | ||
11577 | else | |
11578 | ||
11579 | HAVE_RPMBUILD=no | |
11580 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5 | |
11581 | $as_echo "$HAVE_RPMBUILD" >&6; } | |
11582 | ||
11583 | fi | |
11584 | ||
11585 | ||
11586 | ||
11587 | ||
11588 | ||
11589 | ||
11590 | ||
11591 | ||
11592 | ||
11593 | ||
11594 | ||
11595 | DPKG=dpkg | |
11596 | DPKGBUILD=dpkg-buildpackage | |
11597 | ||
11598 | { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5 | |
11599 | $as_echo_n "checking whether $DPKG is available... " >&6; } | |
11600 | if tmp=$($DPKG --version 2>/dev/null); then | |
11601 | ||
11602 | DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }') | |
11603 | HAVE_DPKG=yes | |
11604 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5 | |
11605 | $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; } | |
11606 | ||
11607 | else | |
11608 | ||
11609 | HAVE_DPKG=no | |
11610 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5 | |
11611 | $as_echo "$HAVE_DPKG" >&6; } | |
11612 | ||
11613 | fi | |
11614 | ||
11615 | ||
11616 | { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5 | |
11617 | $as_echo_n "checking whether $DPKGBUILD is available... " >&6; } | |
11618 | if tmp=$($DPKGBUILD --version 2>/dev/null); then | |
11619 | ||
11620 | DPKGBUILD_VERSION=$(echo $tmp | \ | |
11621 | $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.') | |
11622 | HAVE_DPKGBUILD=yes | |
11623 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5 | |
11624 | $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; } | |
11625 | ||
11626 | else | |
11627 | ||
11628 | HAVE_DPKGBUILD=no | |
11629 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5 | |
11630 | $as_echo "$HAVE_DPKGBUILD" >&6; } | |
11631 | ||
11632 | fi | |
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ALIEN=alien | |
11645 | ||
11646 | { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5 | |
11647 | $as_echo_n "checking whether $ALIEN is available... " >&6; } | |
11648 | if tmp=$($ALIEN --version 2>/dev/null); then | |
11649 | ||
11650 | ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }') | |
11651 | HAVE_ALIEN=yes | |
11652 | { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5 | |
11653 | $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; } | |
11654 | ||
11655 | else | |
11656 | ||
11657 | HAVE_ALIEN=no | |
11658 | { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5 | |
11659 | $as_echo "$HAVE_ALIEN" >&6; } | |
11660 | ||
11661 | fi | |
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
0b14b9f3 BB |
11669 | if test "$VENDOR" = "arch"; then |
11670 | ||
c2dceb5c PS |
11671 | PACMAN=pacman |
11672 | MAKEPKG=makepkg | |
11673 | ||
11674 | { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5 | |
11675 | $as_echo_n "checking whether $PACMAN is available... " >&6; } | |
11676 | tmp=$($PACMAN --version 2>/dev/null) | |
11677 | if test -n "$tmp"; then | |
11678 | ||
11679 | PACMAN_VERSION=$(echo $tmp | | |
11680 | $AWK '/Pacman/ { print $3 }' | | |
11681 | $SED 's/^v//') | |
11682 | HAVE_PACMAN=yes | |
11683 | { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5 | |
11684 | $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; } | |
11685 | ||
11686 | else | |
11687 | ||
11688 | HAVE_PACMAN=no | |
11689 | { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5 | |
11690 | $as_echo "$HAVE_PACMAN" >&6; } | |
11691 | ||
11692 | fi | |
11693 | ||
11694 | ||
11695 | { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5 | |
11696 | $as_echo_n "checking whether $MAKEPKG is available... " >&6; } | |
11697 | tmp=$($MAKEPKG --version 2>/dev/null) | |
11698 | if test -n "$tmp"; then | |
11699 | ||
11700 | MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }') | |
11701 | HAVE_MAKEPKG=yes | |
11702 | { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5 | |
11703 | $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; } | |
11704 | ||
11705 | else | |
11706 | ||
11707 | HAVE_MAKEPKG=no | |
11708 | { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5 | |
11709 | $as_echo "$HAVE_MAKEPKG" >&6; } | |
11710 | ||
11711 | fi | |
11712 | ||
11713 | ||
11714 | ||
11715 | ||
11716 | ||
11717 | ||
11718 | ||
11719 | ||
11720 | ||
11721 | ||
0b14b9f3 | 11722 | fi |
287b2fb1 BB |
11723 | |
11724 | ||
11725 | ||
0408008b | 11726 | SPL_CONFIG=all |
86933a6e | 11727 | |
8934764e | 11728 | # Check whether --with-config was given. |
86933a6e | 11729 | if test "${with_config+set}" = set; then |
8934764e BB |
11730 | withval=$with_config; SPL_CONFIG="$withval" |
11731 | fi | |
86933a6e | 11732 | |
0408008b ED |
11733 | # Check whether --enable-linux-builtin was given. |
11734 | if test "${enable_linux_builtin+set}" = set; then | |
11735 | enableval=$enable_linux_builtin; | |
11736 | else | |
11737 | enable_linux_builtin=no | |
11738 | fi | |
11739 | ||
8934764e | 11740 | |
0408008b | 11741 | { $as_echo "$as_me:$LINENO: checking spl config" >&5 |
8934764e | 11742 | $as_echo_n "checking spl config... " >&6; } |
0408008b | 11743 | { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5 |
8934764e | 11744 | $as_echo "$SPL_CONFIG" >&6; }; |
86933a6e BB |
11745 | |
11746 | ||
0408008b ED |
11747 | case "$SPL_CONFIG" in |
11748 | kernel) | |
86933a6e BB |
11749 | |
11750 | ||
8934764e | 11751 | # Check whether --with-linux was given. |
86933a6e | 11752 | if test "${with_linux+set}" = set; then |
8934764e BB |
11753 | withval=$with_linux; kernelsrc="$withval" |
11754 | fi | |
86933a6e BB |
11755 | |
11756 | ||
8934764e BB |
11757 | |
11758 | # Check whether --with-linux-obj was given. | |
86933a6e | 11759 | if test "${with_linux_obj+set}" = set; then |
8934764e BB |
11760 | withval=$with_linux_obj; kernelbuild="$withval" |
11761 | fi | |
86933a6e | 11762 | |
8934764e BB |
11763 | |
11764 | { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5 | |
11765 | $as_echo_n "checking kernel source directory... " >&6; } | |
86933a6e | 11766 | if test -z "$kernelsrc"; then |
22ccfaa8 BB |
11767 | if test -e "/lib/modules/$(uname -r)/source"; then |
11768 | headersdir="/lib/modules/$(uname -r)/source" | |
11769 | sourcelink=$(readlink -f "$headersdir") | |
11770 | elif test -e "/lib/modules/$(uname -r)/build"; then | |
11771 | headersdir="/lib/modules/$(uname -r)/build" | |
534c4e38 BM |
11772 | sourcelink=$(readlink -f "$headersdir") |
11773 | else | |
11774 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
723aa3b0 | 11775 | /usr/src/linux-* \ |
534c4e38 BM |
11776 | 2>/dev/null | grep -v obj | tail -1) |
11777 | fi | |
86933a6e | 11778 | |
8fd4e3af | 11779 | if test -n "$sourcelink" && test -e ${sourcelink}; then |
86933a6e BB |
11780 | kernelsrc=`readlink -f ${sourcelink}` |
11781 | else | |
8934764e BB |
11782 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 |
11783 | $as_echo "Not found" >&6; } | |
11784 | { { $as_echo "$as_me:$LINENO: error: | |
8fd4e3af BB |
11785 | *** Please make sure the kernel devel package for your distribution |
11786 | *** is installed then try again. If that fails you can specify the | |
11787 | *** location of the kernel source with the '--with-linux=PATH' option." >&5 | |
8934764e | 11788 | $as_echo "$as_me: error: |
8fd4e3af BB |
11789 | *** Please make sure the kernel devel package for your distribution |
11790 | *** is installed then try again. If that fails you can specify the | |
11791 | *** location of the kernel source with the '--with-linux=PATH' option." >&2;} | |
86933a6e BB |
11792 | { (exit 1); exit 1; }; } |
11793 | fi | |
11794 | else | |
11795 | if test "$kernelsrc" = "NONE"; then | |
11796 | kernsrcver=NONE | |
11797 | fi | |
11798 | fi | |
11799 | ||
8934764e BB |
11800 | { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5 |
11801 | $as_echo "$kernelsrc" >&6; } | |
11802 | { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5 | |
11803 | $as_echo_n "checking kernel build directory... " >&6; } | |
86933a6e | 11804 | if test -z "$kernelbuild"; then |
22ccfaa8 BB |
11805 | if test -e "/lib/modules/$(uname -r)/build"; then |
11806 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
11807 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then | |
e2d28a37 BB |
11808 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} |
11809 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then | |
11810 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
11811 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then | |
11812 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
86933a6e BB |
11813 | else |
11814 | kernelbuild=${kernelsrc} | |
11815 | fi | |
11816 | fi | |
8934764e BB |
11817 | { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5 |
11818 | $as_echo "$kernelbuild" >&6; } | |
86933a6e | 11819 | |
8934764e BB |
11820 | { $as_echo "$as_me:$LINENO: checking kernel source version" >&5 |
11821 | $as_echo_n "checking kernel source version... " >&6; } | |
fd921c2e BB |
11822 | utsrelease1=$kernelbuild/include/linux/version.h |
11823 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
11824 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
11825 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then | |
11826 | utsrelease=linux/version.h | |
11827 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then | |
11828 | utsrelease=linux/utsrelease.h | |
11829 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then | |
11830 | utsrelease=generated/utsrelease.h | |
11831 | fi | |
86933a6e | 11832 | |
fd921c2e BB |
11833 | if test "$utsrelease"; then |
11834 | kernsrcver=`(echo "#include <$utsrelease>"; | |
86933a6e BB |
11835 | echo "kernsrcver=UTS_RELEASE") | |
11836 | cpp -I $kernelbuild/include | | |
11837 | grep "^kernsrcver=" | cut -d \" -f 2` | |
86933a6e | 11838 | |
fd921c2e BB |
11839 | if test -z "$kernsrcver"; then |
11840 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
11841 | $as_echo "Not found" >&6; } | |
11842 | { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5 | |
11843 | $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;} | |
11844 | { (exit 1); exit 1; }; } | |
11845 | fi | |
11846 | else | |
8934764e BB |
11847 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 |
11848 | $as_echo "Not found" >&6; } | |
0408008b ED |
11849 | if test "x$enable_linux_builtin" != xyes; then |
11850 | { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5 | |
fd921c2e | 11851 | $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;} |
86933a6e | 11852 | { (exit 1); exit 1; }; } |
0408008b ED |
11853 | else |
11854 | { { $as_echo "$as_me:$LINENO: error: | |
11855 | *** Cannot find UTS_RELEASE definition. | |
11856 | *** Please run 'make prepare' inside the kernel source tree." >&5 | |
11857 | $as_echo "$as_me: error: | |
11858 | *** Cannot find UTS_RELEASE definition. | |
11859 | *** Please run 'make prepare' inside the kernel source tree." >&2;} | |
11860 | { (exit 1); exit 1; }; } | |
11861 | fi | |
86933a6e BB |
11862 | fi |
11863 | ||
8934764e BB |
11864 | { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5 |
11865 | $as_echo "$kernsrcver" >&6; } | |
86933a6e BB |
11866 | |
11867 | LINUX=${kernelsrc} | |
11868 | LINUX_OBJ=${kernelbuild} | |
11869 | LINUX_VERSION=${kernsrcver} | |
11870 | ||
11871 | ||
11872 | ||
11873 | ||
11874 | ||
11875 | ||
bb339d06 | 11876 | modpost=$LINUX/scripts/Makefile.modpost |
8934764e BB |
11877 | { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5 |
11878 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
0408008b | 11879 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then |
bb339d06 BB |
11880 | if grep -q Modules.symvers $modpost; then |
11881 | LINUX_SYMBOLS=Modules.symvers | |
11882 | else | |
11883 | LINUX_SYMBOLS=Module.symvers | |
11884 | fi | |
912fd84d BB |
11885 | |
11886 | if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then | |
11887 | { { $as_echo "$as_me:$LINENO: error: | |
11888 | *** Please make sure the kernel devel package for your distribution | |
11889 | *** is installed. If your building with a custom kernel make sure the | |
11890 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
11891 | *** option refers to the location of the kernel source." >&5 | |
11892 | $as_echo "$as_me: error: | |
11893 | *** Please make sure the kernel devel package for your distribution | |
11894 | *** is installed. If your building with a custom kernel make sure the | |
11895 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
11896 | *** option refers to the location of the kernel source." >&2;} | |
11897 | { (exit 1); exit 1; }; } | |
11898 | fi | |
86933a6e | 11899 | else |
bb339d06 | 11900 | LINUX_SYMBOLS=NONE |
86933a6e | 11901 | fi |
8934764e BB |
11902 | { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5 |
11903 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
86933a6e BB |
11904 | |
11905 | ||
11906 | ||
11907 | ||
7731d46b BB |
11908 | { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5 |
11909 | $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; } | |
11910 | ||
11911 | ||
11912 | cat confdefs.h - <<_ACEOF >conftest.c | |
11913 | /* confdefs.h. */ | |
11914 | _ACEOF | |
11915 | cat confdefs.h >>conftest.$ac_ext | |
11916 | cat >>conftest.$ac_ext <<_ACEOF | |
11917 | /* end confdefs.h. */ | |
11918 | ||
11919 | ||
c064bdee | 11920 | #include <linux/module.h> |
7731d46b BB |
11921 | |
11922 | int | |
11923 | main (void) | |
11924 | { | |
11925 | ||
11926 | #ifndef CONFIG_PREEMPT | |
11927 | #error CONFIG_PREEMPT not #defined | |
11928 | #endif | |
11929 | ||
11930 | ; | |
11931 | return 0; | |
11932 | } | |
11933 | ||
11934 | _ACEOF | |
11935 | ||
11936 | ||
df7cc5bc | 11937 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
7731d46b | 11938 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
11939 | modpost_flag='' |
11940 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
11941 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
7731d46b BB |
11942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11943 | (eval $ac_try) 2>&5 | |
11944 | ac_status=$? | |
11945 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11946 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
11947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11948 | (eval $ac_try) 2>&5 | |
11949 | ac_status=$? | |
11950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11951 | (exit $ac_status); }; }; then | |
11952 | ||
11953 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11954 | $as_echo "yes" >&6; } | |
11955 | { { $as_echo "$as_me:$LINENO: error: | |
11956 | *** Kernel built with CONFIG_PREEMPT which is not supported. | |
11957 | ** You must rebuild your kernel without this option." >&5 | |
11958 | $as_echo "$as_me: error: | |
11959 | *** Kernel built with CONFIG_PREEMPT which is not supported. | |
11960 | ** You must rebuild your kernel without this option." >&2;} | |
11961 | { (exit 1); exit 1; }; } | |
11962 | ||
11963 | else | |
11964 | $as_echo "$as_me: failed program was:" >&5 | |
11965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11966 | ||
11967 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11968 | $as_echo "no" >&6; } | |
11969 | ||
11970 | ||
11971 | ||
11972 | ||
11973 | fi | |
11974 | ||
11975 | rm -Rf build | |
11976 | ||
11977 | ||
11978 | ||
11979 | ||
11980 | ||
86933a6e BB |
11981 | if test "${LINUX_OBJ}" != "${LINUX}"; then |
11982 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
11983 | fi | |
11984 | ||
11985 | ||
a7958f7e | 11986 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes" |
86933a6e BB |
11987 | |
11988 | ||
11989 | ||
c950d148 BB |
11990 | { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5 |
11991 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
8934764e | 11992 | # Check whether --enable-debug was given. |
86933a6e | 11993 | if test "${enable_debug+set}" = set; then |
8934764e | 11994 | enableval=$enable_debug; |
055ffd98 BB |
11995 | else |
11996 | enable_debug=no | |
8934764e BB |
11997 | fi |
11998 | ||
055ffd98 BB |
11999 | |
12000 | if test "x$enable_debug" = xyes; then | |
c950d148 | 12001 | |
c950d148 BB |
12002 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" |
12003 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
3c208a54 | 12004 | DEBUG_SPL="_with_debug" |
c950d148 | 12005 | |
055ffd98 | 12006 | else |
c950d148 | 12007 | |
c950d148 BB |
12008 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" |
12009 | DEBUG_CFLAGS="-DNDEBUG" | |
3c208a54 | 12010 | DEBUG_SPL="_without_debug" |
c950d148 | 12011 | |
055ffd98 BB |
12012 | fi |
12013 | ||
12014 | ||
c950d148 | 12015 | |
3c208a54 | 12016 | |
8934764e BB |
12017 | { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5 |
12018 | $as_echo "$enable_debug" >&6; } | |
86933a6e BB |
12019 | |
12020 | ||
4b2220f0 BB |
12021 | # Check whether --enable-debug-log was given. |
12022 | if test "${enable_debug_log+set}" = set; then | |
12023 | enableval=$enable_debug_log; | |
12024 | else | |
12025 | enable_debug_log=yes | |
12026 | fi | |
12027 | ||
12028 | ||
12029 | if test "x$enable_debug_log" = xyes; then | |
12030 | ||
3c208a54 BB |
12031 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG" |
12032 | DEBUG_LOG="_with_debug_log" | |
12033 | ||
4b2220f0 BB |
12034 | cat >>confdefs.h <<\_ACEOF |
12035 | #define DEBUG_LOG 1 | |
12036 | _ACEOF | |
12037 | ||
3c208a54 BB |
12038 | |
12039 | else | |
12040 | ||
12041 | DEBUG_LOG="_without_debug_log" | |
12042 | ||
4b2220f0 BB |
12043 | fi |
12044 | ||
12045 | ||
3c208a54 | 12046 | |
4b2220f0 BB |
12047 | { $as_echo "$as_me:$LINENO: checking whether basic debug logging is enabled" >&5 |
12048 | $as_echo_n "checking whether basic debug logging is enabled... " >&6; } | |
12049 | { $as_echo "$as_me:$LINENO: result: $enable_debug_log" >&5 | |
12050 | $as_echo "$enable_debug_log" >&6; } | |
12051 | ||
12052 | ||
8934764e | 12053 | # Check whether --enable-debug-kmem was given. |
86933a6e | 12054 | if test "${enable_debug_kmem+set}" = set; then |
8934764e | 12055 | enableval=$enable_debug_kmem; |
055ffd98 BB |
12056 | else |
12057 | enable_debug_kmem=yes | |
8934764e BB |
12058 | fi |
12059 | ||
055ffd98 BB |
12060 | |
12061 | if test "x$enable_debug_kmem" = xyes; then | |
86933a6e | 12062 | |
3c208a54 BB |
12063 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" |
12064 | DEBUG_KMEM="_with_debug_kmem" | |
12065 | ||
86933a6e BB |
12066 | cat >>confdefs.h <<\_ACEOF |
12067 | #define DEBUG_KMEM 1 | |
12068 | _ACEOF | |
12069 | ||
3c208a54 BB |
12070 | |
12071 | else | |
12072 | ||
12073 | DEBUG_KMEM="_without_debug_kmem" | |
12074 | ||
055ffd98 | 12075 | fi |
86933a6e | 12076 | |
86933a6e | 12077 | |
3c208a54 | 12078 | |
8934764e BB |
12079 | { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5 |
12080 | $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; } | |
12081 | { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5 | |
12082 | $as_echo "$enable_debug_kmem" >&6; } | |
86933a6e BB |
12083 | |
12084 | ||
8934764e | 12085 | # Check whether --enable-debug-kmem-tracking was given. |
055ffd98 | 12086 | if test "${enable_debug_kmem_tracking+set}" = set; then |
8934764e | 12087 | enableval=$enable_debug_kmem_tracking; |
055ffd98 BB |
12088 | else |
12089 | enable_debug_kmem_tracking=no | |
8934764e BB |
12090 | fi |
12091 | ||
055ffd98 BB |
12092 | |
12093 | if test "x$enable_debug_kmem_tracking" = xyes; then | |
86933a6e | 12094 | |
3c208a54 BB |
12095 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING" |
12096 | DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking" | |
12097 | ||
86933a6e | 12098 | cat >>confdefs.h <<\_ACEOF |
055ffd98 | 12099 | #define DEBUG_KMEM_TRACKING 1 |
86933a6e BB |
12100 | _ACEOF |
12101 | ||
3c208a54 BB |
12102 | |
12103 | else | |
12104 | ||
12105 | DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking" | |
12106 | ||
055ffd98 BB |
12107 | fi |
12108 | ||
12109 | ||
3c208a54 | 12110 | |
8934764e BB |
12111 | { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5 |
12112 | $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; } | |
12113 | { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5 | |
12114 | $as_echo "$enable_debug_kmem_tracking" >&6; } | |
86933a6e | 12115 | |
0408008b ED |
12116 | { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5 |
12117 | $as_echo_n "checking whether modules can be built... " >&6; } | |
12118 | ||
12119 | ||
12120 | cat confdefs.h - <<_ACEOF >conftest.c | |
12121 | /* confdefs.h. */ | |
12122 | _ACEOF | |
12123 | cat confdefs.h >>conftest.$ac_ext | |
12124 | cat >>conftest.$ac_ext <<_ACEOF | |
12125 | /* end confdefs.h. */ | |
12126 | ||
12127 | ||
12128 | int | |
12129 | main (void) | |
12130 | { | |
12131 | ||
12132 | ; | |
12133 | return 0; | |
12134 | } | |
12135 | ||
12136 | _ACEOF | |
12137 | ||
12138 | ||
df7cc5bc | 12139 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
0408008b | 12140 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
12141 | modpost_flag='' |
12142 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12143 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
0408008b ED |
12144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12145 | (eval $ac_try) 2>&5 | |
12146 | ac_status=$? | |
12147 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12148 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12150 | (eval $ac_try) 2>&5 | |
12151 | ac_status=$? | |
12152 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12153 | (exit $ac_status); }; }; then | |
12154 | ||
12155 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12156 | $as_echo "yes" >&6; } | |
12157 | ||
12158 | else | |
12159 | $as_echo "$as_me: failed program was:" >&5 | |
12160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12161 | ||
12162 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12163 | $as_echo "no" >&6; } | |
12164 | if test "x$enable_linux_builtin" != xyes; then | |
12165 | { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5 | |
12166 | $as_echo "$as_me: error: *** Unable to build an empty module." >&2;} | |
12167 | { (exit 1); exit 1; }; } | |
12168 | else | |
12169 | { { $as_echo "$as_me:$LINENO: error: | |
12170 | *** Unable to build an empty module. | |
12171 | *** Please run 'make scripts' inside the kernel source tree." >&5 | |
12172 | $as_echo "$as_me: error: | |
12173 | *** Unable to build an empty module. | |
12174 | *** Please run 'make scripts' inside the kernel source tree." >&2;} | |
12175 | { (exit 1); exit 1; }; } | |
12176 | fi | |
12177 | ||
12178 | ||
12179 | ||
12180 | fi | |
12181 | ||
12182 | rm -Rf build | |
12183 | ||
12184 | ||
12185 | ||
5e9b5d83 | 12186 | |
8934764e | 12187 | # Check whether --enable-atomic-spinlocks was given. |
5e9b5d83 | 12188 | if test "${enable_atomic_spinlocks+set}" = set; then |
8934764e | 12189 | enableval=$enable_atomic_spinlocks; |
5e9b5d83 | 12190 | else |
d04c8a56 | 12191 | enable_atomic_spinlocks=check |
8934764e BB |
12192 | fi |
12193 | ||
5e9b5d83 | 12194 | |
86933a6e BB |
12195 | |
12196 | ||
dbe561d8 | 12197 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12198 | /* confdefs.h. */ |
12199 | _ACEOF | |
12200 | cat confdefs.h >>conftest.$ac_ext | |
12201 | cat >>conftest.$ac_ext <<_ACEOF | |
12202 | /* end confdefs.h. */ | |
12203 | ||
12204 | ||
d04c8a56 | 12205 | #include <asm/atomic.h> |
86933a6e BB |
12206 | |
12207 | int | |
12208 | main (void) | |
12209 | { | |
12210 | ||
03318641 | 12211 | atomic64_t *ptr __attribute__ ((unused)); |
86933a6e BB |
12212 | |
12213 | ; | |
12214 | return 0; | |
12215 | } | |
12216 | ||
12217 | _ACEOF | |
12218 | ||
12219 | ||
df7cc5bc | 12220 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 12221 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
12222 | modpost_flag='' |
12223 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12224 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
12225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12226 | (eval $ac_try) 2>&5 | |
12227 | ac_status=$? | |
8934764e | 12228 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12229 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12231 | (eval $ac_try) 2>&5 | |
12232 | ac_status=$? | |
8934764e | 12233 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12234 | (exit $ac_status); }; }; then |
12235 | ||
d04c8a56 | 12236 | have_atomic64_t=yes |
86933a6e BB |
12237 | |
12238 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 12239 | #define HAVE_ATOMIC64_T 1 |
86933a6e BB |
12240 | _ACEOF |
12241 | ||
12242 | ||
12243 | else | |
8934764e | 12244 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12245 | sed 's/^/| /' conftest.$ac_ext >&5 |
12246 | ||
d04c8a56 | 12247 | have_atomic64_t=no |
86933a6e BB |
12248 | |
12249 | ||
12250 | ||
12251 | fi | |
12252 | ||
12253 | rm -Rf build | |
12254 | ||
12255 | ||
12256 | ||
d04c8a56 BB |
12257 | if test "x$enable_atomic_spinlocks" = xcheck; then |
12258 | ||
12259 | if test "x$have_atomic64_t" = xyes; then | |
12260 | ||
12261 | enable_atomic_spinlocks=no | |
12262 | ||
12263 | else | |
12264 | ||
12265 | enable_atomic_spinlocks=yes | |
12266 | ||
12267 | fi | |
12268 | ||
12269 | ||
12270 | fi | |
12271 | ||
12272 | ||
12273 | if test "x$enable_atomic_spinlocks" = xyes; then | |
12274 | ||
12275 | ||
12276 | cat >>confdefs.h <<\_ACEOF | |
12277 | #define ATOMIC_SPINLOCK 1 | |
12278 | _ACEOF | |
12279 | ||
12280 | ||
12281 | else | |
12282 | ||
12283 | if test "x$have_atomic64_t" = xno; then | |
12284 | ||
8934764e BB |
12285 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12286 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12287 | { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable | |
d04c8a56 | 12288 | See \`config.log' for more details." >&5 |
8934764e | 12289 | $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable |
d04c8a56 | 12290 | See \`config.log' for more details." >&2;} |
8934764e | 12291 | { (exit 1); exit 1; }; }; } |
d04c8a56 BB |
12292 | |
12293 | fi | |
12294 | ||
12295 | ||
12296 | fi | |
12297 | ||
12298 | ||
8934764e BB |
12299 | { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5 |
12300 | $as_echo_n "checking whether atomic types use spinlocks... " >&6; } | |
12301 | { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5 | |
12302 | $as_echo "$enable_atomic_spinlocks" >&6; } | |
d04c8a56 | 12303 | |
8934764e BB |
12304 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5 |
12305 | $as_echo_n "checking whether kernel defines atomic64_t... " >&6; } | |
12306 | { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5 | |
12307 | $as_echo "$have_atomic64_t" >&6; } | |
d04c8a56 | 12308 | |
8934764e BB |
12309 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5 |
12310 | $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; } | |
86933a6e BB |
12311 | |
12312 | ||
dbe561d8 | 12313 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12314 | /* confdefs.h. */ |
12315 | _ACEOF | |
12316 | cat confdefs.h >>conftest.$ac_ext | |
12317 | cat >>conftest.$ac_ext <<_ACEOF | |
12318 | /* end confdefs.h. */ | |
12319 | ||
12320 | ||
12321 | #include <asm/atomic.h> | |
5ec44a37 | 12322 | #include <asm/system.h> |
86933a6e BB |
12323 | |
12324 | int | |
12325 | main (void) | |
12326 | { | |
12327 | ||
d04c8a56 | 12328 | atomic64_cmpxchg((atomic64_t *)NULL, 0, 0); |
86933a6e BB |
12329 | |
12330 | ; | |
12331 | return 0; | |
12332 | } | |
12333 | ||
12334 | _ACEOF | |
12335 | ||
12336 | ||
df7cc5bc | 12337 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 12338 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
12339 | modpost_flag='' |
12340 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12341 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
12342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12343 | (eval $ac_try) 2>&5 | |
12344 | ac_status=$? | |
8934764e | 12345 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12346 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12348 | (eval $ac_try) 2>&5 | |
12349 | ac_status=$? | |
8934764e | 12350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12351 | (exit $ac_status); }; }; then |
12352 | ||
8934764e BB |
12353 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12354 | $as_echo "yes" >&6; } | |
86933a6e BB |
12355 | |
12356 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 12357 | #define HAVE_ATOMIC64_CMPXCHG 1 |
86933a6e BB |
12358 | _ACEOF |
12359 | ||
12360 | ||
12361 | else | |
8934764e | 12362 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12363 | sed 's/^/| /' conftest.$ac_ext >&5 |
12364 | ||
8934764e BB |
12365 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12366 | $as_echo "no" >&6; } | |
86933a6e BB |
12367 | |
12368 | ||
12369 | ||
302b88e6 BB |
12370 | fi |
12371 | ||
12372 | rm -Rf build | |
12373 | ||
12374 | ||
12375 | ||
8934764e BB |
12376 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5 |
12377 | $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; } | |
302b88e6 BB |
12378 | |
12379 | ||
dbe561d8 | 12380 | cat confdefs.h - <<_ACEOF >conftest.c |
302b88e6 BB |
12381 | /* confdefs.h. */ |
12382 | _ACEOF | |
12383 | cat confdefs.h >>conftest.$ac_ext | |
12384 | cat >>conftest.$ac_ext <<_ACEOF | |
12385 | /* end confdefs.h. */ | |
12386 | ||
12387 | ||
12388 | #include <asm/atomic.h> | |
12389 | ||
12390 | int | |
12391 | main (void) | |
12392 | { | |
12393 | ||
d04c8a56 | 12394 | atomic64_xchg((atomic64_t *)NULL, 0); |
302b88e6 BB |
12395 | |
12396 | ; | |
12397 | return 0; | |
12398 | } | |
12399 | ||
12400 | _ACEOF | |
12401 | ||
12402 | ||
df7cc5bc | 12403 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
302b88e6 | 12404 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
12405 | modpost_flag='' |
12406 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12407 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
302b88e6 BB |
12408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12409 | (eval $ac_try) 2>&5 | |
12410 | ac_status=$? | |
8934764e | 12411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
12412 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12414 | (eval $ac_try) 2>&5 | |
12415 | ac_status=$? | |
8934764e | 12416 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
12417 | (exit $ac_status); }; }; then |
12418 | ||
8934764e BB |
12419 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12420 | $as_echo "yes" >&6; } | |
302b88e6 BB |
12421 | |
12422 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 12423 | #define HAVE_ATOMIC64_XCHG 1 |
302b88e6 BB |
12424 | _ACEOF |
12425 | ||
12426 | ||
12427 | else | |
8934764e | 12428 | $as_echo "$as_me: failed program was:" >&5 |
302b88e6 BB |
12429 | sed 's/^/| /' conftest.$ac_ext >&5 |
12430 | ||
8934764e BB |
12431 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12432 | $as_echo "no" >&6; } | |
302b88e6 BB |
12433 | |
12434 | ||
12435 | ||
12436 | fi | |
12437 | ||
12438 | rm -Rf build | |
12439 | ||
12440 | ||
12441 | ||
8934764e BB |
12442 | { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5 |
12443 | $as_echo_n "checking whether kernel defines uintptr_t... " >&6; } | |
302b88e6 BB |
12444 | |
12445 | ||
dbe561d8 | 12446 | cat confdefs.h - <<_ACEOF >conftest.c |
302b88e6 BB |
12447 | /* confdefs.h. */ |
12448 | _ACEOF | |
12449 | cat confdefs.h >>conftest.$ac_ext | |
12450 | cat >>conftest.$ac_ext <<_ACEOF | |
12451 | /* end confdefs.h. */ | |
12452 | ||
12453 | ||
d04c8a56 | 12454 | #include <linux/types.h> |
302b88e6 BB |
12455 | |
12456 | int | |
12457 | main (void) | |
12458 | { | |
12459 | ||
03318641 | 12460 | uintptr_t *ptr __attribute__ ((unused)); |
302b88e6 BB |
12461 | |
12462 | ; | |
12463 | return 0; | |
12464 | } | |
12465 | ||
12466 | _ACEOF | |
12467 | ||
12468 | ||
df7cc5bc | 12469 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
302b88e6 | 12470 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
12471 | modpost_flag='' |
12472 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12473 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
302b88e6 BB |
12474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12475 | (eval $ac_try) 2>&5 | |
12476 | ac_status=$? | |
8934764e | 12477 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
12478 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12480 | (eval $ac_try) 2>&5 | |
12481 | ac_status=$? | |
8934764e | 12482 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
12483 | (exit $ac_status); }; }; then |
12484 | ||
8934764e BB |
12485 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12486 | $as_echo "yes" >&6; } | |
302b88e6 BB |
12487 | |
12488 | cat >>confdefs.h <<\_ACEOF | |
d04c8a56 | 12489 | #define HAVE_UINTPTR_T 1 |
302b88e6 BB |
12490 | _ACEOF |
12491 | ||
12492 | ||
12493 | else | |
8934764e | 12494 | $as_echo "$as_me: failed program was:" >&5 |
302b88e6 BB |
12495 | sed 's/^/| /' conftest.$ac_ext >&5 |
12496 | ||
8934764e BB |
12497 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12498 | $as_echo "no" >&6; } | |
302b88e6 BB |
12499 | |
12500 | ||
12501 | ||
86933a6e BB |
12502 | fi |
12503 | ||
12504 | rm -Rf build | |
12505 | ||
12506 | ||
12507 | ||
8934764e BB |
12508 | { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5 |
12509 | $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; } | |
86933a6e BB |
12510 | |
12511 | ||
dbe561d8 | 12512 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12513 | /* confdefs.h. */ |
12514 | _ACEOF | |
12515 | cat confdefs.h >>conftest.$ac_ext | |
12516 | cat >>conftest.$ac_ext <<_ACEOF | |
12517 | /* end confdefs.h. */ | |
12518 | ||
12519 | ||
12520 | #include <linux/workqueue.h> | |
12521 | ||
12522 | int | |
12523 | main (void) | |
12524 | { | |
12525 | ||
03318641 | 12526 | struct work_struct work __attribute__ ((unused)); |
86933a6e BB |
12527 | INIT_WORK(&work, NULL, NULL); |
12528 | ||
12529 | ; | |
12530 | return 0; | |
12531 | } | |
12532 | ||
12533 | _ACEOF | |
12534 | ||
12535 | ||
df7cc5bc | 12536 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 12537 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
12538 | modpost_flag='' |
12539 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12540 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
12541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12542 | (eval $ac_try) 2>&5 | |
12543 | ac_status=$? | |
8934764e | 12544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12545 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12547 | (eval $ac_try) 2>&5 | |
12548 | ac_status=$? | |
8934764e | 12549 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12550 | (exit $ac_status); }; }; then |
12551 | ||
8934764e BB |
12552 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12553 | $as_echo "yes" >&6; } | |
86933a6e BB |
12554 | |
12555 | cat >>confdefs.h <<\_ACEOF | |
12556 | #define HAVE_3ARGS_INIT_WORK 1 | |
12557 | _ACEOF | |
12558 | ||
12559 | ||
12560 | else | |
8934764e | 12561 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12562 | sed 's/^/| /' conftest.$ac_ext >&5 |
12563 | ||
8934764e BB |
12564 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12565 | $as_echo "no" >&6; } | |
86933a6e BB |
12566 | |
12567 | ||
12568 | ||
12569 | fi | |
12570 | ||
12571 | rm -Rf build | |
12572 | ||
12573 | ||
12574 | ||
8934764e BB |
12575 | { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5 |
12576 | $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; } | |
86933a6e BB |
12577 | |
12578 | ||
dbe561d8 | 12579 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12580 | /* confdefs.h. */ |
12581 | _ACEOF | |
12582 | cat confdefs.h >>conftest.$ac_ext | |
12583 | cat >>conftest.$ac_ext <<_ACEOF | |
12584 | /* end confdefs.h. */ | |
12585 | ||
12586 | ||
12587 | #include <linux/sysctl.h> | |
12588 | ||
12589 | int | |
12590 | main (void) | |
12591 | { | |
12592 | ||
03318641 | 12593 | (void) register_sysctl_table(NULL, 0); |
86933a6e BB |
12594 | |
12595 | ; | |
12596 | return 0; | |
12597 | } | |
12598 | ||
12599 | _ACEOF | |
12600 | ||
12601 | ||
df7cc5bc | 12602 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 12603 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
12604 | modpost_flag='' |
12605 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12606 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
12607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12608 | (eval $ac_try) 2>&5 | |
12609 | ac_status=$? | |
8934764e | 12610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12611 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12613 | (eval $ac_try) 2>&5 | |
12614 | ac_status=$? | |
8934764e | 12615 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12616 | (exit $ac_status); }; }; then |
12617 | ||
8934764e BB |
12618 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12619 | $as_echo "yes" >&6; } | |
86933a6e BB |
12620 | |
12621 | cat >>confdefs.h <<\_ACEOF | |
12622 | #define HAVE_2ARGS_REGISTER_SYSCTL 1 | |
12623 | _ACEOF | |
12624 | ||
12625 | ||
12626 | else | |
8934764e | 12627 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12628 | sed 's/^/| /' conftest.$ac_ext >&5 |
12629 | ||
8934764e BB |
12630 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12631 | $as_echo "no" >&6; } | |
86933a6e BB |
12632 | |
12633 | ||
12634 | ||
12635 | fi | |
12636 | ||
12637 | rm -Rf build | |
12638 | ||
12639 | ||
12640 | ||
12641 | ||
8934764e BB |
12642 | { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5 |
12643 | $as_echo_n "checking whether set_shrinker() available... " >&6; } | |
86933a6e BB |
12644 | |
12645 | ||
dbe561d8 | 12646 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12647 | /* confdefs.h. */ |
12648 | _ACEOF | |
12649 | cat confdefs.h >>conftest.$ac_ext | |
12650 | cat >>conftest.$ac_ext <<_ACEOF | |
12651 | /* end confdefs.h. */ | |
12652 | ||
12653 | ||
12654 | #include <linux/mm.h> | |
12655 | ||
12656 | int | |
12657 | main (void) | |
12658 | { | |
12659 | ||
12660 | return set_shrinker(DEFAULT_SEEKS, NULL); | |
12661 | ||
12662 | ; | |
12663 | return 0; | |
12664 | } | |
12665 | ||
12666 | _ACEOF | |
12667 | ||
12668 | ||
df7cc5bc | 12669 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 12670 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
12671 | modpost_flag='' |
12672 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12673 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
12674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12675 | (eval $ac_try) 2>&5 | |
12676 | ac_status=$? | |
8934764e | 12677 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12678 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12680 | (eval $ac_try) 2>&5 | |
12681 | ac_status=$? | |
8934764e | 12682 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12683 | (exit $ac_status); }; }; then |
12684 | ||
8934764e BB |
12685 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12686 | $as_echo "yes" >&6; } | |
86933a6e BB |
12687 | |
12688 | cat >>confdefs.h <<\_ACEOF | |
12689 | #define HAVE_SET_SHRINKER 1 | |
12690 | _ACEOF | |
12691 | ||
12692 | ||
12693 | else | |
8934764e | 12694 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12695 | sed 's/^/| /' conftest.$ac_ext >&5 |
12696 | ||
8934764e BB |
12697 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12698 | $as_echo "no" >&6; } | |
86933a6e BB |
12699 | |
12700 | ||
12701 | ||
12702 | fi | |
12703 | ||
12704 | rm -Rf build | |
12705 | ||
12706 | ||
12707 | ||
23aa63cb BB |
12708 | { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5 |
12709 | $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; } | |
12710 | tmp_flags="$EXTRA_KCFLAGS" | |
12711 | EXTRA_KCFLAGS="-Werror" | |
12712 | ||
12713 | ||
12714 | cat confdefs.h - <<_ACEOF >conftest.c | |
12715 | /* confdefs.h. */ | |
12716 | _ACEOF | |
12717 | cat confdefs.h >>conftest.$ac_ext | |
12718 | cat >>conftest.$ac_ext <<_ACEOF | |
12719 | /* end confdefs.h. */ | |
12720 | ||
12721 | ||
12722 | #include <linux/mm.h> | |
12723 | ||
12724 | int shrinker_cb(struct shrinker *, int, unsigned int); | |
12725 | ||
12726 | int | |
12727 | main (void) | |
12728 | { | |
12729 | ||
12730 | struct shrinker cache_shrinker = { | |
12731 | .shrink = shrinker_cb, | |
12732 | .seeks = DEFAULT_SEEKS, | |
12733 | }; | |
12734 | register_shrinker(&cache_shrinker); | |
12735 | ||
12736 | ; | |
12737 | return 0; | |
12738 | } | |
12739 | ||
12740 | _ACEOF | |
12741 | ||
12742 | ||
df7cc5bc | 12743 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
23aa63cb | 12744 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
12745 | modpost_flag='' |
12746 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12747 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23aa63cb BB |
12748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12749 | (eval $ac_try) 2>&5 | |
12750 | ac_status=$? | |
12751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12752 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12754 | (eval $ac_try) 2>&5 | |
12755 | ac_status=$? | |
12756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12757 | (exit $ac_status); }; }; then | |
12758 | ||
12759 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12760 | $as_echo "yes" >&6; } | |
12761 | ||
12762 | cat >>confdefs.h <<\_ACEOF | |
12763 | #define HAVE_3ARGS_SHRINKER_CALLBACK 1 | |
12764 | _ACEOF | |
12765 | ||
12766 | ||
12767 | else | |
12768 | $as_echo "$as_me: failed program was:" >&5 | |
12769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12770 | ||
12771 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12772 | $as_echo "no" >&6; } | |
12773 | ||
12774 | ||
12775 | ||
12776 | fi | |
12777 | ||
12778 | rm -Rf build | |
12779 | ||
12780 | ||
12781 | EXTRA_KCFLAGS="$tmp_flags" | |
12782 | ||
8934764e BB |
12783 | { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5 |
12784 | $as_echo_n "checking whether struct path used in struct nameidata... " >&6; } | |
86933a6e BB |
12785 | |
12786 | ||
dbe561d8 | 12787 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12788 | /* confdefs.h. */ |
12789 | _ACEOF | |
12790 | cat confdefs.h >>conftest.$ac_ext | |
12791 | cat >>conftest.$ac_ext <<_ACEOF | |
12792 | /* end confdefs.h. */ | |
12793 | ||
12794 | ||
12795 | #include <linux/namei.h> | |
12796 | ||
12797 | int | |
12798 | main (void) | |
12799 | { | |
12800 | ||
03318641 | 12801 | struct nameidata nd __attribute__ ((unused)); |
86933a6e BB |
12802 | |
12803 | nd.path.mnt = NULL; | |
12804 | nd.path.dentry = NULL; | |
12805 | ||
12806 | ; | |
12807 | return 0; | |
12808 | } | |
12809 | ||
12810 | _ACEOF | |
12811 | ||
12812 | ||
df7cc5bc | 12813 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 12814 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
12815 | modpost_flag='' |
12816 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12817 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
12818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12819 | (eval $ac_try) 2>&5 | |
12820 | ac_status=$? | |
8934764e | 12821 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12822 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12824 | (eval $ac_try) 2>&5 | |
12825 | ac_status=$? | |
8934764e | 12826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12827 | (exit $ac_status); }; }; then |
12828 | ||
8934764e BB |
12829 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12830 | $as_echo "yes" >&6; } | |
86933a6e BB |
12831 | |
12832 | cat >>confdefs.h <<\_ACEOF | |
12833 | #define HAVE_PATH_IN_NAMEIDATA 1 | |
12834 | _ACEOF | |
12835 | ||
12836 | ||
12837 | else | |
8934764e | 12838 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
12839 | sed 's/^/| /' conftest.$ac_ext >&5 |
12840 | ||
8934764e BB |
12841 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12842 | $as_echo "no" >&6; } | |
86933a6e BB |
12843 | |
12844 | ||
12845 | ||
12846 | fi | |
12847 | ||
12848 | rm -Rf build | |
12849 | ||
12850 | ||
12851 | ||
723aa3b0 ED |
12852 | { $as_echo "$as_me:$LINENO: checking whether task_curr() is available" >&5 |
12853 | $as_echo_n "checking whether task_curr() is available... " >&6; } | |
12854 | ||
12855 | ||
12856 | ||
12857 | cat confdefs.h - <<_ACEOF >conftest.c | |
12858 | /* confdefs.h. */ | |
12859 | _ACEOF | |
12860 | cat confdefs.h >>conftest.$ac_ext | |
12861 | cat >>conftest.$ac_ext <<_ACEOF | |
12862 | /* end confdefs.h. */ | |
12863 | ||
12864 | ||
12865 | #include <linux/sched.h> | |
12866 | ||
12867 | int | |
12868 | main (void) | |
12869 | { | |
12870 | ||
12871 | task_curr(NULL); | |
12872 | ||
12873 | ; | |
12874 | return 0; | |
12875 | } | |
12876 | ||
12877 | _ACEOF | |
12878 | ||
12879 | ||
12880 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
12881 | echo "obj-m := conftest.o" >build/Makefile | |
12882 | modpost_flag='' | |
12883 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12884 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
12885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12886 | (eval $ac_try) 2>&5 | |
12887 | ac_status=$? | |
12888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12889 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12891 | (eval $ac_try) 2>&5 | |
12892 | ac_status=$? | |
12893 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12894 | (exit $ac_status); }; }; then | |
12895 | rc=0 | |
12896 | else | |
12897 | $as_echo "$as_me: failed program was:" >&5 | |
12898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12899 | rc=1 | |
12900 | ||
12901 | ||
12902 | fi | |
12903 | ||
12904 | rm -Rf build | |
12905 | ||
12906 | ||
12907 | if test $rc -ne 0; then : | |
12908 | ||
12909 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12910 | $as_echo "no" >&6; } | |
12911 | ||
12912 | else | |
12913 | if test "x$enable_linux_builtin" != xyes; then | |
86933a6e | 12914 | |
86933a6e BB |
12915 | grep -q -E '[[:space:]]task_curr[[:space:]]' \ |
12916 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
12917 | rc=$? | |
12918 | if test $rc -ne 0; then | |
12919 | export=0 | |
12920 | for file in kernel/sched.c; do | |
12921 | grep -q -E "EXPORT_SYMBOL.*(task_curr)" \ | |
12922 | "$LINUX_OBJ/$file" 2>/dev/null | |
12923 | rc=$? | |
723aa3b0 ED |
12924 | if test $rc -eq 0; then |
12925 | export=1 | |
12926 | break; | |
12927 | fi | |
86933a6e | 12928 | done |
723aa3b0 ED |
12929 | if test $export -eq 0; then : |
12930 | rc=1 | |
12931 | else : | |
12932 | rc=0 | |
12933 | fi | |
12934 | else : | |
12935 | rc=0 | |
12936 | fi | |
86933a6e | 12937 | |
723aa3b0 ED |
12938 | fi |
12939 | if test $rc -ne 0; then : | |
86933a6e | 12940 | |
723aa3b0 ED |
12941 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12942 | $as_echo "no" >&6; } | |
12943 | ||
12944 | else : | |
86933a6e | 12945 | |
8934764e BB |
12946 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
12947 | $as_echo "yes" >&6; } | |
86933a6e BB |
12948 | |
12949 | cat >>confdefs.h <<\_ACEOF | |
12950 | #define HAVE_TASK_CURR 1 | |
12951 | _ACEOF | |
12952 | ||
723aa3b0 ED |
12953 | |
12954 | fi | |
86933a6e BB |
12955 | fi |
12956 | ||
12957 | ||
8934764e BB |
12958 | { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5 |
12959 | $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; } | |
86933a6e BB |
12960 | |
12961 | ||
dbe561d8 | 12962 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
12963 | /* confdefs.h. */ |
12964 | _ACEOF | |
12965 | cat confdefs.h >>conftest.$ac_ext | |
12966 | cat >>conftest.$ac_ext <<_ACEOF | |
12967 | /* end confdefs.h. */ | |
12968 | ||
12969 | ||
12970 | #include <linux/sysctl.h> | |
12971 | ||
12972 | int | |
12973 | main (void) | |
12974 | { | |
12975 | ||
12976 | #ifndef CTL_UNNUMBERED | |
12977 | #error CTL_UNNUMBERED undefined | |
12978 | #endif | |
12979 | ||
12980 | ; | |
12981 | return 0; | |
12982 | } | |
12983 | ||
12984 | _ACEOF | |
12985 | ||
12986 | ||
df7cc5bc | 12987 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 12988 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
12989 | modpost_flag='' |
12990 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
12991 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
12992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12993 | (eval $ac_try) 2>&5 | |
12994 | ac_status=$? | |
8934764e | 12995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
12996 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
12997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12998 | (eval $ac_try) 2>&5 | |
12999 | ac_status=$? | |
8934764e | 13000 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13001 | (exit $ac_status); }; }; then |
13002 | ||
8934764e BB |
13003 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13004 | $as_echo "yes" >&6; } | |
86933a6e BB |
13005 | |
13006 | cat >>confdefs.h <<\_ACEOF | |
13007 | #define HAVE_CTL_UNNUMBERED 1 | |
13008 | _ACEOF | |
13009 | ||
13010 | ||
13011 | else | |
8934764e | 13012 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13013 | sed 's/^/| /' conftest.$ac_ext >&5 |
13014 | ||
8934764e BB |
13015 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13016 | $as_echo "no" >&6; } | |
86933a6e BB |
13017 | |
13018 | ||
13019 | ||
79a3bf13 BB |
13020 | fi |
13021 | ||
13022 | rm -Rf build | |
13023 | ||
13024 | ||
13025 | ||
13026 | ||
13027 | { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5 | |
13028 | $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; } | |
13029 | ||
13030 | ||
dbe561d8 | 13031 | cat confdefs.h - <<_ACEOF >conftest.c |
79a3bf13 BB |
13032 | /* confdefs.h. */ |
13033 | _ACEOF | |
13034 | cat confdefs.h >>conftest.$ac_ext | |
13035 | cat >>conftest.$ac_ext <<_ACEOF | |
13036 | /* end confdefs.h. */ | |
13037 | ||
13038 | ||
13039 | #include <linux/sysctl.h> | |
13040 | ||
13041 | int | |
13042 | main (void) | |
13043 | { | |
13044 | ||
03318641 | 13045 | struct ctl_table ctl __attribute__ ((unused)); |
79a3bf13 BB |
13046 | ctl.ctl_name = 0; |
13047 | ||
13048 | ; | |
13049 | return 0; | |
13050 | } | |
13051 | ||
13052 | _ACEOF | |
13053 | ||
13054 | ||
df7cc5bc | 13055 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
79a3bf13 | 13056 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
13057 | modpost_flag='' |
13058 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13059 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
79a3bf13 BB |
13060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13061 | (eval $ac_try) 2>&5 | |
13062 | ac_status=$? | |
13063 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13064 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13066 | (eval $ac_try) 2>&5 | |
13067 | ac_status=$? | |
13068 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13069 | (exit $ac_status); }; }; then | |
13070 | ||
13071 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13072 | $as_echo "yes" >&6; } | |
13073 | ||
13074 | cat >>confdefs.h <<\_ACEOF | |
13075 | #define HAVE_CTL_NAME 1 | |
13076 | _ACEOF | |
13077 | ||
13078 | ||
13079 | else | |
13080 | $as_echo "$as_me: failed program was:" >&5 | |
13081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13082 | ||
13083 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13084 | $as_echo "no" >&6; } | |
13085 | ||
13086 | ||
13087 | ||
86933a6e BB |
13088 | fi |
13089 | ||
13090 | rm -Rf build | |
13091 | ||
13092 | ||
13093 | ||
8934764e BB |
13094 | { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5 |
13095 | $as_echo_n "checking whether fls64() is available... " >&6; } | |
86933a6e BB |
13096 | |
13097 | ||
dbe561d8 | 13098 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13099 | /* confdefs.h. */ |
13100 | _ACEOF | |
13101 | cat confdefs.h >>conftest.$ac_ext | |
13102 | cat >>conftest.$ac_ext <<_ACEOF | |
13103 | /* end confdefs.h. */ | |
13104 | ||
13105 | ||
13106 | #include <linux/bitops.h> | |
13107 | ||
13108 | int | |
13109 | main (void) | |
13110 | { | |
13111 | ||
13112 | return fls64(0); | |
13113 | ||
13114 | ; | |
13115 | return 0; | |
13116 | } | |
13117 | ||
13118 | _ACEOF | |
13119 | ||
13120 | ||
df7cc5bc | 13121 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 13122 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
13123 | modpost_flag='' |
13124 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13125 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
13126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13127 | (eval $ac_try) 2>&5 | |
13128 | ac_status=$? | |
8934764e | 13129 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13130 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13132 | (eval $ac_try) 2>&5 | |
13133 | ac_status=$? | |
8934764e | 13134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13135 | (exit $ac_status); }; }; then |
13136 | ||
8934764e BB |
13137 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13138 | $as_echo "yes" >&6; } | |
86933a6e BB |
13139 | |
13140 | cat >>confdefs.h <<\_ACEOF | |
13141 | #define HAVE_FLS64 1 | |
13142 | _ACEOF | |
13143 | ||
13144 | ||
13145 | else | |
8934764e | 13146 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13147 | sed 's/^/| /' conftest.$ac_ext >&5 |
13148 | ||
8934764e BB |
13149 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13150 | $as_echo "no" >&6; } | |
86933a6e BB |
13151 | |
13152 | ||
13153 | ||
13154 | fi | |
13155 | ||
13156 | rm -Rf build | |
13157 | ||
13158 | ||
13159 | ||
723aa3b0 ED |
13160 | { $as_echo "$as_me:$LINENO: checking whether device_create() is available" >&5 |
13161 | $as_echo_n "checking whether device_create() is available... " >&6; } | |
86933a6e | 13162 | |
86933a6e BB |
13163 | grep -q -E '[[:space:]]device_create[[:space:]]' \ |
13164 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13165 | rc=$? | |
13166 | if test $rc -ne 0; then | |
13167 | export=0 | |
13168 | for file in drivers/base/core.c; do | |
13169 | grep -q -E "EXPORT_SYMBOL.*(device_create)" \ | |
13170 | "$LINUX_OBJ/$file" 2>/dev/null | |
13171 | rc=$? | |
723aa3b0 ED |
13172 | if test $rc -eq 0; then |
13173 | export=1 | |
13174 | break; | |
13175 | fi | |
86933a6e | 13176 | done |
723aa3b0 ED |
13177 | if test $export -eq 0; then : |
13178 | ||
13179 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8934764e | 13180 | $as_echo "no" >&6; } |
86933a6e | 13181 | |
723aa3b0 ED |
13182 | else : |
13183 | ||
13184 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
8934764e | 13185 | $as_echo "yes" >&6; } |
86933a6e BB |
13186 | |
13187 | cat >>confdefs.h <<\_ACEOF | |
13188 | #define HAVE_DEVICE_CREATE 1 | |
13189 | _ACEOF | |
13190 | ||
723aa3b0 | 13191 | |
86933a6e | 13192 | fi |
723aa3b0 ED |
13193 | else : |
13194 | ||
8934764e BB |
13195 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13196 | $as_echo "yes" >&6; } | |
86933a6e BB |
13197 | |
13198 | cat >>confdefs.h <<\_ACEOF | |
13199 | #define HAVE_DEVICE_CREATE 1 | |
13200 | _ACEOF | |
13201 | ||
723aa3b0 | 13202 | |
86933a6e BB |
13203 | fi |
13204 | ||
13205 | ||
13206 | ||
8934764e BB |
13207 | { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5 |
13208 | $as_echo_n "checking whether device_create() wants 5 args... " >&6; } | |
86933a6e BB |
13209 | tmp_flags="$EXTRA_KCFLAGS" |
13210 | EXTRA_KCFLAGS="-Werror" | |
13211 | ||
13212 | ||
dbe561d8 | 13213 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13214 | /* confdefs.h. */ |
13215 | _ACEOF | |
13216 | cat confdefs.h >>conftest.$ac_ext | |
13217 | cat >>conftest.$ac_ext <<_ACEOF | |
13218 | /* end confdefs.h. */ | |
13219 | ||
13220 | ||
13221 | #include <linux/device.h> | |
13222 | ||
13223 | int | |
13224 | main (void) | |
13225 | { | |
13226 | ||
13227 | device_create(NULL, NULL, 0, NULL, "%d", 1); | |
13228 | ||
13229 | ; | |
13230 | return 0; | |
13231 | } | |
13232 | ||
13233 | _ACEOF | |
13234 | ||
13235 | ||
df7cc5bc | 13236 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 13237 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
13238 | modpost_flag='' |
13239 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13240 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
13241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13242 | (eval $ac_try) 2>&5 | |
13243 | ac_status=$? | |
8934764e | 13244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13245 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13247 | (eval $ac_try) 2>&5 | |
13248 | ac_status=$? | |
8934764e | 13249 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13250 | (exit $ac_status); }; }; then |
13251 | ||
8934764e BB |
13252 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13253 | $as_echo "yes" >&6; } | |
86933a6e BB |
13254 | |
13255 | cat >>confdefs.h <<\_ACEOF | |
13256 | #define HAVE_5ARGS_DEVICE_CREATE 1 | |
13257 | _ACEOF | |
13258 | ||
13259 | ||
13260 | else | |
8934764e | 13261 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13262 | sed 's/^/| /' conftest.$ac_ext >&5 |
13263 | ||
8934764e BB |
13264 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13265 | $as_echo "no" >&6; } | |
86933a6e BB |
13266 | |
13267 | ||
13268 | ||
13269 | fi | |
13270 | ||
13271 | rm -Rf build | |
13272 | ||
13273 | ||
13274 | EXTRA_KCFLAGS="$tmp_flags" | |
13275 | ||
723aa3b0 ED |
13276 | { $as_echo "$as_me:$LINENO: checking whether class_device_create() is available" >&5 |
13277 | $as_echo_n "checking whether class_device_create() is available... " >&6; } | |
13278 | ||
13279 | ||
13280 | ||
13281 | cat confdefs.h - <<_ACEOF >conftest.c | |
13282 | /* confdefs.h. */ | |
13283 | _ACEOF | |
13284 | cat confdefs.h >>conftest.$ac_ext | |
13285 | cat >>conftest.$ac_ext <<_ACEOF | |
13286 | /* end confdefs.h. */ | |
13287 | ||
13288 | ||
13289 | #include <linux/device.h> | |
13290 | ||
13291 | int | |
13292 | main (void) | |
13293 | { | |
13294 | ||
13295 | class_device_create(NULL, NULL, 0, NULL, NULL); | |
13296 | ||
13297 | ; | |
13298 | return 0; | |
13299 | } | |
13300 | ||
13301 | _ACEOF | |
13302 | ||
13303 | ||
13304 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13305 | echo "obj-m := conftest.o" >build/Makefile | |
13306 | modpost_flag='' | |
13307 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13308 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13310 | (eval $ac_try) 2>&5 | |
13311 | ac_status=$? | |
13312 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13313 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13315 | (eval $ac_try) 2>&5 | |
13316 | ac_status=$? | |
13317 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13318 | (exit $ac_status); }; }; then | |
13319 | rc=0 | |
13320 | else | |
13321 | $as_echo "$as_me: failed program was:" >&5 | |
13322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13323 | rc=1 | |
13324 | ||
13325 | ||
13326 | fi | |
13327 | ||
13328 | rm -Rf build | |
13329 | ||
13330 | ||
13331 | if test $rc -ne 0; then : | |
13332 | ||
13333 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13334 | $as_echo "no" >&6; } | |
13335 | ||
13336 | else | |
13337 | if test "x$enable_linux_builtin" != xyes; then | |
86933a6e | 13338 | |
86933a6e BB |
13339 | grep -q -E '[[:space:]]class_device_create[[:space:]]' \ |
13340 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13341 | rc=$? | |
13342 | if test $rc -ne 0; then | |
13343 | export=0 | |
13344 | for file in drivers/base/class.c; do | |
13345 | grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \ | |
13346 | "$LINUX_OBJ/$file" 2>/dev/null | |
13347 | rc=$? | |
723aa3b0 ED |
13348 | if test $rc -eq 0; then |
13349 | export=1 | |
13350 | break; | |
13351 | fi | |
86933a6e | 13352 | done |
723aa3b0 ED |
13353 | if test $export -eq 0; then : |
13354 | rc=1 | |
13355 | else : | |
13356 | rc=0 | |
13357 | fi | |
13358 | else : | |
13359 | rc=0 | |
13360 | fi | |
13361 | ||
13362 | fi | |
13363 | if test $rc -ne 0; then : | |
13364 | ||
13365 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8934764e | 13366 | $as_echo "no" >&6; } |
86933a6e | 13367 | |
723aa3b0 ED |
13368 | else : |
13369 | ||
13370 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
8934764e | 13371 | $as_echo "yes" >&6; } |
86933a6e BB |
13372 | |
13373 | cat >>confdefs.h <<\_ACEOF | |
13374 | #define HAVE_CLASS_DEVICE_CREATE 1 | |
13375 | _ACEOF | |
13376 | ||
723aa3b0 | 13377 | |
86933a6e | 13378 | fi |
723aa3b0 | 13379 | fi |
86933a6e | 13380 | |
723aa3b0 ED |
13381 | |
13382 | { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is available as export" >&5 | |
13383 | $as_echo_n "checking whether set_normalized_timespec() is available as export... " >&6; } | |
13384 | ||
13385 | ||
13386 | ||
13387 | cat confdefs.h - <<_ACEOF >conftest.c | |
13388 | /* confdefs.h. */ | |
86933a6e | 13389 | _ACEOF |
723aa3b0 ED |
13390 | cat confdefs.h >>conftest.$ac_ext |
13391 | cat >>conftest.$ac_ext <<_ACEOF | |
13392 | /* end confdefs.h. */ | |
13393 | ||
13394 | ||
13395 | #include <linux/time.h> | |
13396 | ||
13397 | int | |
13398 | main (void) | |
13399 | { | |
13400 | ||
13401 | set_normalized_timespec(NULL, 0, 0); | |
13402 | ||
13403 | ; | |
13404 | return 0; | |
13405 | } | |
13406 | ||
13407 | _ACEOF | |
13408 | ||
13409 | ||
13410 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
13411 | echo "obj-m := conftest.o" >build/Makefile | |
13412 | modpost_flag='' | |
13413 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13414 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
13415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13416 | (eval $ac_try) 2>&5 | |
13417 | ac_status=$? | |
13418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13419 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13421 | (eval $ac_try) 2>&5 | |
13422 | ac_status=$? | |
13423 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13424 | (exit $ac_status); }; }; then | |
13425 | rc=0 | |
13426 | else | |
13427 | $as_echo "$as_me: failed program was:" >&5 | |
13428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13429 | rc=1 | |
13430 | ||
13431 | ||
13432 | fi | |
13433 | ||
13434 | rm -Rf build | |
86933a6e | 13435 | |
86933a6e | 13436 | |
723aa3b0 | 13437 | if test $rc -ne 0; then : |
86933a6e | 13438 | |
723aa3b0 ED |
13439 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13440 | $as_echo "no" >&6; } | |
13441 | ||
13442 | else | |
13443 | if test "x$enable_linux_builtin" != xyes; then | |
86933a6e | 13444 | |
86933a6e BB |
13445 | grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \ |
13446 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
13447 | rc=$? | |
13448 | if test $rc -ne 0; then | |
13449 | export=0 | |
13450 | for file in kernel/time.c; do | |
13451 | grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \ | |
13452 | "$LINUX_OBJ/$file" 2>/dev/null | |
13453 | rc=$? | |
723aa3b0 ED |
13454 | if test $rc -eq 0; then |
13455 | export=1 | |
13456 | break; | |
13457 | fi | |
86933a6e | 13458 | done |
723aa3b0 ED |
13459 | if test $export -eq 0; then : |
13460 | rc=1 | |
13461 | else : | |
13462 | rc=0 | |
13463 | fi | |
13464 | else : | |
13465 | rc=0 | |
13466 | fi | |
86933a6e | 13467 | |
723aa3b0 ED |
13468 | fi |
13469 | if test $rc -ne 0; then : | |
86933a6e | 13470 | |
723aa3b0 ED |
13471 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13472 | $as_echo "no" >&6; } | |
13473 | ||
13474 | else : | |
86933a6e | 13475 | |
8934764e BB |
13476 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13477 | $as_echo "yes" >&6; } | |
86933a6e BB |
13478 | |
13479 | cat >>confdefs.h <<\_ACEOF | |
13480 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
13481 | _ACEOF | |
13482 | ||
723aa3b0 ED |
13483 | |
13484 | fi | |
86933a6e BB |
13485 | fi |
13486 | ||
13487 | ||
13488 | ||
8934764e BB |
13489 | { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5 |
13490 | $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; } | |
86933a6e BB |
13491 | |
13492 | ||
dbe561d8 | 13493 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13494 | /* confdefs.h. */ |
13495 | _ACEOF | |
13496 | cat confdefs.h >>conftest.$ac_ext | |
13497 | cat >>conftest.$ac_ext <<_ACEOF | |
13498 | /* end confdefs.h. */ | |
13499 | ||
13500 | ||
13501 | #include <linux/time.h> | |
13502 | void set_normalized_timespec(struct timespec *ts, | |
13503 | time_t sec, long nsec) { } | |
13504 | ||
13505 | int | |
13506 | main (void) | |
13507 | { | |
13508 | ||
13509 | ; | |
13510 | return 0; | |
13511 | } | |
13512 | ||
13513 | _ACEOF | |
13514 | ||
13515 | ||
df7cc5bc | 13516 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 13517 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
13518 | modpost_flag='' |
13519 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13520 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
13521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13522 | (eval $ac_try) 2>&5 | |
13523 | ac_status=$? | |
8934764e | 13524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13525 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13527 | (eval $ac_try) 2>&5 | |
13528 | ac_status=$? | |
8934764e | 13529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13530 | (exit $ac_status); }; }; then |
13531 | ||
8934764e BB |
13532 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13533 | $as_echo "no" >&6; } | |
86933a6e BB |
13534 | |
13535 | else | |
8934764e | 13536 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13537 | sed 's/^/| /' conftest.$ac_ext >&5 |
13538 | ||
8934764e BB |
13539 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13540 | $as_echo "yes" >&6; } | |
86933a6e BB |
13541 | |
13542 | cat >>confdefs.h <<\_ACEOF | |
13543 | #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1 | |
13544 | _ACEOF | |
13545 | ||
13546 | ||
13547 | ||
13548 | ||
13549 | fi | |
13550 | ||
13551 | rm -Rf build | |
13552 | ||
13553 | ||
13554 | ||
13555 | ||
8934764e BB |
13556 | { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5 |
13557 | $as_echo_n "checking whether timespec_sub() is available... " >&6; } | |
86933a6e BB |
13558 | |
13559 | ||
dbe561d8 | 13560 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13561 | /* confdefs.h. */ |
13562 | _ACEOF | |
13563 | cat confdefs.h >>conftest.$ac_ext | |
13564 | cat >>conftest.$ac_ext <<_ACEOF | |
13565 | /* end confdefs.h. */ | |
13566 | ||
13567 | ||
13568 | #include <linux/time.h> | |
13569 | ||
13570 | int | |
13571 | main (void) | |
13572 | { | |
13573 | ||
03318641 BB |
13574 | struct timespec a = { 0 }; |
13575 | struct timespec b = { 0 }; | |
13576 | struct timespec c __attribute__ ((unused)); | |
86933a6e BB |
13577 | c = timespec_sub(a, b); |
13578 | ||
13579 | ; | |
13580 | return 0; | |
13581 | } | |
13582 | ||
13583 | _ACEOF | |
13584 | ||
13585 | ||
df7cc5bc | 13586 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 13587 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
13588 | modpost_flag='' |
13589 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13590 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
13591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13592 | (eval $ac_try) 2>&5 | |
13593 | ac_status=$? | |
8934764e | 13594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13595 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13597 | (eval $ac_try) 2>&5 | |
13598 | ac_status=$? | |
8934764e | 13599 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13600 | (exit $ac_status); }; }; then |
13601 | ||
8934764e BB |
13602 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13603 | $as_echo "yes" >&6; } | |
86933a6e BB |
13604 | |
13605 | cat >>confdefs.h <<\_ACEOF | |
13606 | #define HAVE_TIMESPEC_SUB 1 | |
13607 | _ACEOF | |
13608 | ||
13609 | ||
13610 | else | |
8934764e | 13611 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13612 | sed 's/^/| /' conftest.$ac_ext >&5 |
13613 | ||
8934764e BB |
13614 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13615 | $as_echo "no" >&6; } | |
86933a6e BB |
13616 | |
13617 | ||
13618 | ||
13619 | fi | |
13620 | ||
13621 | rm -Rf build | |
13622 | ||
13623 | ||
13624 | ||
13625 | ||
8934764e BB |
13626 | { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5 |
13627 | $as_echo_n "checking whether init_utsname() is available... " >&6; } | |
86933a6e BB |
13628 | |
13629 | ||
dbe561d8 | 13630 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13631 | /* confdefs.h. */ |
13632 | _ACEOF | |
13633 | cat confdefs.h >>conftest.$ac_ext | |
13634 | cat >>conftest.$ac_ext <<_ACEOF | |
13635 | /* end confdefs.h. */ | |
13636 | ||
13637 | ||
13638 | #include <linux/utsname.h> | |
13639 | ||
13640 | int | |
13641 | main (void) | |
13642 | { | |
13643 | ||
03318641 BB |
13644 | struct new_utsname *a __attribute__ ((unused)); |
13645 | a = init_utsname(); | |
86933a6e BB |
13646 | |
13647 | ; | |
13648 | return 0; | |
13649 | } | |
13650 | ||
13651 | _ACEOF | |
13652 | ||
13653 | ||
df7cc5bc | 13654 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 13655 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
13656 | modpost_flag='' |
13657 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13658 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
13659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13660 | (eval $ac_try) 2>&5 | |
13661 | ac_status=$? | |
8934764e | 13662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13663 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13665 | (eval $ac_try) 2>&5 | |
13666 | ac_status=$? | |
8934764e | 13667 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13668 | (exit $ac_status); }; }; then |
13669 | ||
8934764e BB |
13670 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13671 | $as_echo "yes" >&6; } | |
86933a6e BB |
13672 | |
13673 | cat >>confdefs.h <<\_ACEOF | |
13674 | #define HAVE_INIT_UTSNAME 1 | |
13675 | _ACEOF | |
13676 | ||
13677 | ||
13678 | else | |
8934764e | 13679 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13680 | sed 's/^/| /' conftest.$ac_ext >&5 |
13681 | ||
8934764e BB |
13682 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13683 | $as_echo "no" >&6; } | |
86933a6e BB |
13684 | |
13685 | ||
13686 | ||
13687 | fi | |
13688 | ||
13689 | rm -Rf build | |
13690 | ||
13691 | ||
13692 | ||
13693 | ||
8934764e BB |
13694 | { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5 |
13695 | $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; } | |
86933a6e BB |
13696 | |
13697 | ||
dbe561d8 | 13698 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13699 | /* confdefs.h. */ |
13700 | _ACEOF | |
13701 | cat confdefs.h >>conftest.$ac_ext | |
13702 | cat >>conftest.$ac_ext <<_ACEOF | |
13703 | /* end confdefs.h. */ | |
13704 | ||
13705 | ||
13706 | #include <linux/fdtable.h> | |
13707 | ||
13708 | int | |
13709 | main (void) | |
13710 | { | |
13711 | ||
13712 | return 0; | |
13713 | ||
13714 | ; | |
13715 | return 0; | |
13716 | } | |
13717 | ||
13718 | _ACEOF | |
13719 | ||
13720 | ||
df7cc5bc | 13721 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 13722 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
13723 | modpost_flag='' |
13724 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13725 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
13726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13727 | (eval $ac_try) 2>&5 | |
13728 | ac_status=$? | |
8934764e | 13729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13730 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13732 | (eval $ac_try) 2>&5 | |
13733 | ac_status=$? | |
8934764e | 13734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13735 | (exit $ac_status); }; }; then |
13736 | ||
13737 | ||
13738 | cat >>confdefs.h <<\_ACEOF | |
13739 | #define HAVE_FDTABLE_HEADER 1 | |
13740 | _ACEOF | |
13741 | ||
8934764e BB |
13742 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13743 | $as_echo "yes" >&6; } | |
86933a6e BB |
13744 | |
13745 | ||
13746 | else | |
8934764e | 13747 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13748 | sed 's/^/| /' conftest.$ac_ext >&5 |
13749 | ||
8934764e BB |
13750 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13751 | $as_echo "no" >&6; } | |
86933a6e BB |
13752 | |
13753 | ||
13754 | ||
13755 | ||
13756 | fi | |
13757 | ||
13758 | rm -Rf build | |
13759 | ||
13760 | ||
13761 | ||
13762 | ||
13763 | ||
8934764e BB |
13764 | { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5 |
13765 | $as_echo_n "checking whether files_fdtable() is available... " >&6; } | |
86933a6e BB |
13766 | |
13767 | ||
dbe561d8 | 13768 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13769 | /* confdefs.h. */ |
13770 | _ACEOF | |
13771 | cat confdefs.h >>conftest.$ac_ext | |
13772 | cat >>conftest.$ac_ext <<_ACEOF | |
13773 | /* end confdefs.h. */ | |
13774 | ||
13775 | ||
13776 | #include <linux/sched.h> | |
13777 | #include <linux/file.h> | |
13778 | #ifdef HAVE_FDTABLE_HEADER | |
13779 | #include <linux/fdtable.h> | |
13780 | #endif | |
13781 | ||
13782 | int | |
13783 | main (void) | |
13784 | { | |
13785 | ||
13786 | struct files_struct *files = current->files; | |
03318641 BB |
13787 | struct fdtable *fdt __attribute__ ((unused)); |
13788 | fdt = files_fdtable(files); | |
86933a6e BB |
13789 | |
13790 | ; | |
13791 | return 0; | |
13792 | } | |
13793 | ||
13794 | _ACEOF | |
13795 | ||
13796 | ||
df7cc5bc | 13797 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 13798 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
13799 | modpost_flag='' |
13800 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13801 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
13802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13803 | (eval $ac_try) 2>&5 | |
13804 | ac_status=$? | |
8934764e | 13805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13806 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13808 | (eval $ac_try) 2>&5 | |
13809 | ac_status=$? | |
8934764e | 13810 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13811 | (exit $ac_status); }; }; then |
13812 | ||
8934764e BB |
13813 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13814 | $as_echo "yes" >&6; } | |
86933a6e BB |
13815 | |
13816 | cat >>confdefs.h <<\_ACEOF | |
13817 | #define HAVE_FILES_FDTABLE 1 | |
13818 | _ACEOF | |
13819 | ||
13820 | ||
13821 | else | |
8934764e | 13822 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13823 | sed 's/^/| /' conftest.$ac_ext >&5 |
13824 | ||
8934764e BB |
13825 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13826 | $as_echo "no" >&6; } | |
86933a6e BB |
13827 | |
13828 | ||
13829 | ||
13830 | fi | |
13831 | ||
13832 | rm -Rf build | |
13833 | ||
13834 | ||
13835 | ||
13836 | ||
e0093fea RY |
13837 | { $as_echo "$as_me:$LINENO: checking whether __clear_close_on_exec() is available" >&5 |
13838 | $as_echo_n "checking whether __clear_close_on_exec() is available... " >&6; } | |
13839 | ||
13840 | ||
13841 | cat confdefs.h - <<_ACEOF >conftest.c | |
13842 | /* confdefs.h. */ | |
13843 | _ACEOF | |
13844 | cat confdefs.h >>conftest.$ac_ext | |
13845 | cat >>conftest.$ac_ext <<_ACEOF | |
13846 | /* end confdefs.h. */ | |
13847 | ||
13848 | ||
13849 | #include <linux/fdtable.h> | |
13850 | ||
13851 | int | |
13852 | main (void) | |
13853 | { | |
13854 | ||
13855 | struct fdtable *fdt = NULL; | |
13856 | int fd = 0; | |
13857 | ||
13858 | __clear_close_on_exec(fd, fdt); | |
13859 | ||
13860 | ; | |
13861 | return 0; | |
13862 | } | |
13863 | ||
13864 | _ACEOF | |
13865 | ||
13866 | ||
df7cc5bc | 13867 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
e0093fea | 13868 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
13869 | modpost_flag='' |
13870 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
13871 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
e0093fea RY |
13872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13873 | (eval $ac_try) 2>&5 | |
13874 | ac_status=$? | |
13875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13876 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13878 | (eval $ac_try) 2>&5 | |
13879 | ac_status=$? | |
13880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13881 | (exit $ac_status); }; }; then | |
13882 | ||
13883 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13884 | $as_echo "yes" >&6; } | |
13885 | ||
13886 | cat >>confdefs.h <<\_ACEOF | |
13887 | #define HAVE_CLEAR_CLOSE_ON_EXEC 1 | |
13888 | _ACEOF | |
13889 | ||
13890 | ||
13891 | else | |
13892 | $as_echo "$as_me: failed program was:" >&5 | |
13893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13894 | ||
13895 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13896 | $as_echo "no" >&6; } | |
13897 | ||
13898 | ||
13899 | ||
13900 | fi | |
13901 | ||
13902 | rm -Rf build | |
13903 | ||
13904 | ||
13905 | ||
13906 | ||
8934764e BB |
13907 | { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5 |
13908 | $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; } | |
86933a6e BB |
13909 | |
13910 | ||
dbe561d8 | 13911 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13912 | /* confdefs.h. */ |
13913 | _ACEOF | |
13914 | cat confdefs.h >>conftest.$ac_ext | |
13915 | cat >>conftest.$ac_ext <<_ACEOF | |
13916 | /* end confdefs.h. */ | |
13917 | ||
13918 | ||
13919 | #include <linux/uaccess.h> | |
13920 | ||
13921 | int | |
13922 | main (void) | |
13923 | { | |
13924 | ||
13925 | return 0; | |
13926 | ||
13927 | ; | |
13928 | return 0; | |
13929 | } | |
13930 | ||
13931 | _ACEOF | |
13932 | ||
13933 | ||
df7cc5bc | 13934 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 13935 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
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' | |
86933a6e BB |
13939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13940 | (eval $ac_try) 2>&5 | |
13941 | ac_status=$? | |
8934764e | 13942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13943 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
13944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13945 | (eval $ac_try) 2>&5 | |
13946 | ac_status=$? | |
8934764e | 13947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
13948 | (exit $ac_status); }; }; then |
13949 | ||
13950 | ||
13951 | cat >>confdefs.h <<\_ACEOF | |
13952 | #define HAVE_UACCESS_HEADER 1 | |
13953 | _ACEOF | |
13954 | ||
8934764e BB |
13955 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
13956 | $as_echo "yes" >&6; } | |
86933a6e BB |
13957 | |
13958 | ||
13959 | else | |
8934764e | 13960 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
13961 | sed 's/^/| /' conftest.$ac_ext >&5 |
13962 | ||
8934764e BB |
13963 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13964 | $as_echo "no" >&6; } | |
86933a6e BB |
13965 | |
13966 | ||
13967 | ||
13968 | ||
13969 | fi | |
13970 | ||
13971 | rm -Rf build | |
13972 | ||
13973 | ||
13974 | ||
13975 | ||
13976 | ||
8934764e BB |
13977 | { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5 |
13978 | $as_echo_n "checking whether kmalloc_node() is available... " >&6; } | |
86933a6e BB |
13979 | |
13980 | ||
dbe561d8 | 13981 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
13982 | /* confdefs.h. */ |
13983 | _ACEOF | |
13984 | cat confdefs.h >>conftest.$ac_ext | |
13985 | cat >>conftest.$ac_ext <<_ACEOF | |
13986 | /* end confdefs.h. */ | |
13987 | ||
13988 | ||
13989 | #include <linux/slab.h> | |
13990 | ||
13991 | int | |
13992 | main (void) | |
13993 | { | |
13994 | ||
03318641 BB |
13995 | void *a __attribute__ ((unused)); |
13996 | a = kmalloc_node(1, GFP_KERNEL, 0); | |
86933a6e BB |
13997 | |
13998 | ; | |
13999 | return 0; | |
14000 | } | |
14001 | ||
14002 | _ACEOF | |
14003 | ||
14004 | ||
df7cc5bc | 14005 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 14006 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
14007 | modpost_flag='' |
14008 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14009 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
14010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14011 | (eval $ac_try) 2>&5 | |
14012 | ac_status=$? | |
8934764e | 14013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14014 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14016 | (eval $ac_try) 2>&5 | |
14017 | ac_status=$? | |
8934764e | 14018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14019 | (exit $ac_status); }; }; then |
14020 | ||
8934764e BB |
14021 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14022 | $as_echo "yes" >&6; } | |
86933a6e BB |
14023 | |
14024 | cat >>confdefs.h <<\_ACEOF | |
14025 | #define HAVE_KMALLOC_NODE 1 | |
14026 | _ACEOF | |
14027 | ||
14028 | ||
14029 | else | |
8934764e | 14030 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
14031 | sed 's/^/| /' conftest.$ac_ext >&5 |
14032 | ||
8934764e BB |
14033 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14034 | $as_echo "no" >&6; } | |
86933a6e BB |
14035 | |
14036 | ||
14037 | ||
14038 | fi | |
14039 | ||
14040 | rm -Rf build | |
14041 | ||
14042 | ||
14043 | ||
723aa3b0 ED |
14044 | { $as_echo "$as_me:$LINENO: checking whether monotonic_clock() is available" >&5 |
14045 | $as_echo_n "checking whether monotonic_clock() is available... " >&6; } | |
86933a6e | 14046 | |
86933a6e | 14047 | |
86933a6e | 14048 | |
723aa3b0 ED |
14049 | cat confdefs.h - <<_ACEOF >conftest.c |
14050 | /* confdefs.h. */ | |
86933a6e | 14051 | _ACEOF |
723aa3b0 ED |
14052 | cat confdefs.h >>conftest.$ac_ext |
14053 | cat >>conftest.$ac_ext <<_ACEOF | |
14054 | /* end confdefs.h. */ | |
86933a6e | 14055 | |
723aa3b0 ED |
14056 | |
14057 | #include <linux/timex.h> | |
14058 | ||
14059 | int | |
14060 | main (void) | |
14061 | { | |
14062 | ||
14063 | monotonic_clock(); | |
14064 | ||
14065 | ; | |
14066 | return 0; | |
14067 | } | |
14068 | ||
14069 | _ACEOF | |
14070 | ||
14071 | ||
14072 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14073 | echo "obj-m := conftest.o" >build/Makefile | |
14074 | modpost_flag='' | |
14075 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14076 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14078 | (eval $ac_try) 2>&5 | |
14079 | ac_status=$? | |
14080 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14081 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14083 | (eval $ac_try) 2>&5 | |
14084 | ac_status=$? | |
14085 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14086 | (exit $ac_status); }; }; then | |
14087 | rc=0 | |
14088 | else | |
14089 | $as_echo "$as_me: failed program was:" >&5 | |
14090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14091 | rc=1 | |
14092 | ||
14093 | ||
14094 | fi | |
14095 | ||
14096 | rm -Rf build | |
14097 | ||
14098 | ||
14099 | if test $rc -ne 0; then : | |
14100 | ||
14101 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14102 | $as_echo "no" >&6; } | |
14103 | ||
14104 | else | |
14105 | if test "x$enable_linux_builtin" != xyes; then | |
14106 | ||
14107 | grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \ | |
14108 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
14109 | rc=$? | |
14110 | if test $rc -ne 0; then | |
14111 | export=0 | |
14112 | for file in ; do | |
14113 | grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \ | |
14114 | "$LINUX_OBJ/$file" 2>/dev/null | |
14115 | rc=$? | |
14116 | if test $rc -eq 0; then | |
14117 | export=1 | |
14118 | break; | |
14119 | fi | |
14120 | done | |
14121 | if test $export -eq 0; then : | |
14122 | rc=1 | |
14123 | else : | |
14124 | rc=0 | |
14125 | fi | |
14126 | else : | |
14127 | rc=0 | |
14128 | fi | |
14129 | ||
14130 | fi | |
14131 | if test $rc -ne 0; then : | |
14132 | ||
14133 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14134 | $as_echo "no" >&6; } | |
14135 | ||
14136 | else : | |
14137 | ||
14138 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
8934764e | 14139 | $as_echo "yes" >&6; } |
86933a6e BB |
14140 | |
14141 | cat >>confdefs.h <<\_ACEOF | |
14142 | #define HAVE_MONOTONIC_CLOCK 1 | |
14143 | _ACEOF | |
14144 | ||
723aa3b0 ED |
14145 | |
14146 | fi | |
86933a6e BB |
14147 | fi |
14148 | ||
14149 | ||
14150 | ||
8934764e BB |
14151 | { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5 |
14152 | $as_echo_n "checking whether struct inode has i_mutex... " >&6; } | |
86933a6e BB |
14153 | |
14154 | ||
dbe561d8 | 14155 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
14156 | /* confdefs.h. */ |
14157 | _ACEOF | |
14158 | cat confdefs.h >>conftest.$ac_ext | |
14159 | cat >>conftest.$ac_ext <<_ACEOF | |
14160 | /* end confdefs.h. */ | |
14161 | ||
14162 | ||
14163 | #include <linux/fs.h> | |
14164 | #include <linux/mutex.h> | |
14165 | ||
14166 | int | |
14167 | main (void) | |
14168 | { | |
14169 | ||
14170 | struct inode i; | |
14171 | mutex_init(&i.i_mutex); | |
14172 | ||
14173 | ; | |
14174 | return 0; | |
14175 | } | |
14176 | ||
14177 | _ACEOF | |
14178 | ||
14179 | ||
df7cc5bc | 14180 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 14181 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
14182 | modpost_flag='' |
14183 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14184 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14186 | (eval $ac_try) 2>&5 | |
14187 | ac_status=$? | |
8934764e | 14188 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14189 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14191 | (eval $ac_try) 2>&5 | |
14192 | ac_status=$? | |
8934764e | 14193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14194 | (exit $ac_status); }; }; then |
14195 | ||
8934764e BB |
14196 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14197 | $as_echo "yes" >&6; } | |
86933a6e BB |
14198 | |
14199 | cat >>confdefs.h <<\_ACEOF | |
14200 | #define HAVE_INODE_I_MUTEX 1 | |
14201 | _ACEOF | |
14202 | ||
14203 | ||
14204 | else | |
8934764e | 14205 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
14206 | sed 's/^/| /' conftest.$ac_ext >&5 |
14207 | ||
8934764e BB |
14208 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14209 | $as_echo "no" >&6; } | |
86933a6e BB |
14210 | |
14211 | ||
14212 | ||
14213 | fi | |
14214 | ||
14215 | rm -Rf build | |
14216 | ||
14217 | ||
14218 | ||
14219 | ||
8934764e BB |
14220 | { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5 |
14221 | $as_echo_n "checking whether struct mutex has owner... " >&6; } | |
4d54fdee BB |
14222 | |
14223 | ||
dbe561d8 | 14224 | cat confdefs.h - <<_ACEOF >conftest.c |
4d54fdee BB |
14225 | /* confdefs.h. */ |
14226 | _ACEOF | |
14227 | cat confdefs.h >>conftest.$ac_ext | |
14228 | cat >>conftest.$ac_ext <<_ACEOF | |
14229 | /* end confdefs.h. */ | |
14230 | ||
14231 | ||
14232 | #include <linux/mutex.h> | |
14233 | ||
14234 | int | |
14235 | main (void) | |
14236 | { | |
14237 | ||
03318641 | 14238 | struct mutex mtx __attribute__ ((unused)); |
4d54fdee BB |
14239 | mtx.owner = NULL; |
14240 | ||
14241 | ; | |
14242 | return 0; | |
14243 | } | |
14244 | ||
14245 | _ACEOF | |
14246 | ||
14247 | ||
df7cc5bc | 14248 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
4d54fdee | 14249 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
14250 | modpost_flag='' |
14251 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14252 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
4d54fdee BB |
14253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14254 | (eval $ac_try) 2>&5 | |
14255 | ac_status=$? | |
8934764e | 14256 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d54fdee BB |
14257 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14259 | (eval $ac_try) 2>&5 | |
14260 | ac_status=$? | |
8934764e | 14261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4d54fdee BB |
14262 | (exit $ac_status); }; }; then |
14263 | ||
8934764e BB |
14264 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14265 | $as_echo "yes" >&6; } | |
4d54fdee BB |
14266 | |
14267 | cat >>confdefs.h <<\_ACEOF | |
14268 | #define HAVE_MUTEX_OWNER 1 | |
14269 | _ACEOF | |
14270 | ||
14271 | ||
14272 | else | |
8934764e | 14273 | $as_echo "$as_me: failed program was:" >&5 |
4d54fdee BB |
14274 | sed 's/^/| /' conftest.$ac_ext >&5 |
14275 | ||
8934764e BB |
14276 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14277 | $as_echo "no" >&6; } | |
4d54fdee BB |
14278 | |
14279 | ||
14280 | ||
14281 | fi | |
14282 | ||
14283 | rm -Rf build | |
14284 | ||
14285 | ||
14286 | ||
14287 | ||
86fd39f3 BB |
14288 | { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5 |
14289 | $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; } | |
14290 | tmp_flags="$EXTRA_KCFLAGS" | |
14291 | EXTRA_KCFLAGS="-Werror" | |
14292 | ||
14293 | ||
14294 | cat confdefs.h - <<_ACEOF >conftest.c | |
14295 | /* confdefs.h. */ | |
14296 | _ACEOF | |
14297 | cat confdefs.h >>conftest.$ac_ext | |
14298 | cat >>conftest.$ac_ext <<_ACEOF | |
14299 | /* end confdefs.h. */ | |
14300 | ||
14301 | ||
14302 | #include <linux/mutex.h> | |
14303 | ||
14304 | int | |
14305 | main (void) | |
14306 | { | |
14307 | ||
14308 | struct mutex mtx __attribute__ ((unused)); | |
14309 | mtx.owner = current; | |
14310 | ||
14311 | ; | |
14312 | return 0; | |
14313 | } | |
14314 | ||
14315 | _ACEOF | |
14316 | ||
14317 | ||
df7cc5bc | 14318 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86fd39f3 | 14319 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
14320 | modpost_flag='' |
14321 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14322 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86fd39f3 BB |
14323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14324 | (eval $ac_try) 2>&5 | |
14325 | ac_status=$? | |
14326 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14327 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14329 | (eval $ac_try) 2>&5 | |
14330 | ac_status=$? | |
14331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14332 | (exit $ac_status); }; }; then | |
14333 | ||
14334 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14335 | $as_echo "yes" >&6; } | |
14336 | ||
14337 | cat >>confdefs.h <<\_ACEOF | |
14338 | #define HAVE_MUTEX_OWNER_TASK_STRUCT 1 | |
14339 | _ACEOF | |
14340 | ||
14341 | ||
14342 | else | |
14343 | $as_echo "$as_me: failed program was:" >&5 | |
14344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14345 | ||
14346 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14347 | $as_echo "no" >&6; } | |
14348 | ||
14349 | ||
14350 | ||
14351 | fi | |
14352 | ||
14353 | rm -Rf build | |
14354 | ||
14355 | ||
14356 | EXTRA_KCFLAGS="$tmp_flags" | |
14357 | ||
14358 | ||
8934764e BB |
14359 | { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5 |
14360 | $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; } | |
86933a6e BB |
14361 | |
14362 | ||
dbe561d8 | 14363 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
14364 | /* confdefs.h. */ |
14365 | _ACEOF | |
14366 | cat confdefs.h >>conftest.$ac_ext | |
14367 | cat >>conftest.$ac_ext <<_ACEOF | |
14368 | /* end confdefs.h. */ | |
14369 | ||
14370 | ||
14371 | #include <linux/mutex.h> | |
14372 | ||
14373 | int | |
14374 | main (void) | |
14375 | { | |
14376 | ||
14377 | struct mutex mutex; | |
14378 | mutex_init(&mutex); | |
14379 | mutex_lock_nested(&mutex, 0); | |
14380 | ||
14381 | ; | |
14382 | return 0; | |
14383 | } | |
14384 | ||
14385 | _ACEOF | |
14386 | ||
14387 | ||
df7cc5bc | 14388 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 14389 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
14390 | modpost_flag='' |
14391 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14392 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
14393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14394 | (eval $ac_try) 2>&5 | |
14395 | ac_status=$? | |
8934764e | 14396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14397 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14399 | (eval $ac_try) 2>&5 | |
14400 | ac_status=$? | |
8934764e | 14401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14402 | (exit $ac_status); }; }; then |
14403 | ||
8934764e BB |
14404 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14405 | $as_echo "yes" >&6; } | |
86933a6e BB |
14406 | |
14407 | cat >>confdefs.h <<\_ACEOF | |
14408 | #define HAVE_MUTEX_LOCK_NESTED 1 | |
14409 | _ACEOF | |
14410 | ||
14411 | ||
14412 | else | |
8934764e | 14413 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
14414 | sed 's/^/| /' conftest.$ac_ext >&5 |
14415 | ||
8934764e BB |
14416 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14417 | $as_echo "no" >&6; } | |
86933a6e BB |
14418 | |
14419 | ||
14420 | ||
14421 | fi | |
14422 | ||
14423 | rm -Rf build | |
14424 | ||
14425 | ||
14426 | ||
14427 | ||
8934764e BB |
14428 | { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5 |
14429 | $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; } | |
86933a6e BB |
14430 | |
14431 | ||
dbe561d8 | 14432 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
14433 | /* confdefs.h. */ |
14434 | _ACEOF | |
14435 | cat confdefs.h >>conftest.$ac_ext | |
14436 | cat >>conftest.$ac_ext <<_ACEOF | |
14437 | /* end confdefs.h. */ | |
14438 | ||
14439 | ||
14440 | #include <linux/smp.h> | |
14441 | ||
14442 | int | |
14443 | main (void) | |
14444 | { | |
14445 | ||
14446 | on_each_cpu(NULL, NULL, 0); | |
14447 | ||
14448 | ; | |
14449 | return 0; | |
14450 | } | |
14451 | ||
14452 | _ACEOF | |
14453 | ||
14454 | ||
df7cc5bc | 14455 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 14456 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
14457 | modpost_flag='' |
14458 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14459 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
14460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14461 | (eval $ac_try) 2>&5 | |
14462 | ac_status=$? | |
8934764e | 14463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14464 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
14465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14466 | (eval $ac_try) 2>&5 | |
14467 | ac_status=$? | |
8934764e | 14468 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
14469 | (exit $ac_status); }; }; then |
14470 | ||
8934764e BB |
14471 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14472 | $as_echo "yes" >&6; } | |
86933a6e BB |
14473 | |
14474 | cat >>confdefs.h <<\_ACEOF | |
14475 | #define HAVE_3ARGS_ON_EACH_CPU 1 | |
14476 | _ACEOF | |
14477 | ||
14478 | ||
14479 | else | |
8934764e | 14480 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
14481 | sed 's/^/| /' conftest.$ac_ext >&5 |
14482 | ||
8934764e BB |
14483 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14484 | $as_echo "no" >&6; } | |
86933a6e BB |
14485 | |
14486 | ||
14487 | ||
14488 | fi | |
14489 | ||
14490 | rm -Rf build | |
14491 | ||
14492 | ||
14493 | ||
723aa3b0 ED |
14494 | { $as_echo "$as_me:$LINENO: checking whether kallsyms_lookup_name() is available" >&5 |
14495 | $as_echo_n "checking whether kallsyms_lookup_name() is available... " >&6; } | |
14496 | ||
14497 | ||
14498 | ||
14499 | cat confdefs.h - <<_ACEOF >conftest.c | |
14500 | /* confdefs.h. */ | |
14501 | _ACEOF | |
14502 | cat confdefs.h >>conftest.$ac_ext | |
14503 | cat >>conftest.$ac_ext <<_ACEOF | |
14504 | /* end confdefs.h. */ | |
14505 | ||
14506 | ||
14507 | #include <linux/kallsyms.h> | |
14508 | ||
14509 | int | |
14510 | main (void) | |
14511 | { | |
14512 | ||
14513 | kallsyms_lookup_name(NULL); | |
14514 | ||
14515 | ; | |
14516 | return 0; | |
14517 | } | |
14518 | ||
14519 | _ACEOF | |
14520 | ||
14521 | ||
14522 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14523 | echo "obj-m := conftest.o" >build/Makefile | |
14524 | modpost_flag='' | |
14525 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14526 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14528 | (eval $ac_try) 2>&5 | |
14529 | ac_status=$? | |
14530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14531 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14533 | (eval $ac_try) 2>&5 | |
14534 | ac_status=$? | |
14535 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14536 | (exit $ac_status); }; }; then | |
14537 | rc=0 | |
14538 | else | |
14539 | $as_echo "$as_me: failed program was:" >&5 | |
14540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14541 | rc=1 | |
14542 | ||
14543 | ||
14544 | fi | |
14545 | ||
14546 | rm -Rf build | |
14547 | ||
14548 | ||
14549 | if test $rc -ne 0; then : | |
14550 | ||
14551 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14552 | $as_echo "no" >&6; } | |
14553 | ||
14554 | else | |
14555 | if test "x$enable_linux_builtin" != xyes; then | |
86933a6e | 14556 | |
86933a6e BB |
14557 | grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \ |
14558 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
14559 | rc=$? | |
14560 | if test $rc -ne 0; then | |
14561 | export=0 | |
14562 | for file in ; do | |
14563 | grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \ | |
14564 | "$LINUX_OBJ/$file" 2>/dev/null | |
14565 | rc=$? | |
723aa3b0 ED |
14566 | if test $rc -eq 0; then |
14567 | export=1 | |
14568 | break; | |
14569 | fi | |
86933a6e | 14570 | done |
723aa3b0 ED |
14571 | if test $export -eq 0; then : |
14572 | rc=1 | |
14573 | else : | |
14574 | rc=0 | |
14575 | fi | |
14576 | else : | |
14577 | rc=0 | |
14578 | fi | |
86933a6e | 14579 | |
723aa3b0 ED |
14580 | fi |
14581 | if test $rc -ne 0; then : | |
86933a6e | 14582 | |
723aa3b0 ED |
14583 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14584 | $as_echo "no" >&6; } | |
14585 | ||
14586 | else : | |
86933a6e | 14587 | |
8934764e BB |
14588 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14589 | $as_echo "yes" >&6; } | |
86933a6e BB |
14590 | |
14591 | cat >>confdefs.h <<\_ACEOF | |
14592 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 | |
14593 | _ACEOF | |
14594 | ||
723aa3b0 ED |
14595 | |
14596 | fi | |
86933a6e BB |
14597 | fi |
14598 | ||
14599 | ||
723aa3b0 ED |
14600 | { $as_echo "$as_me:$LINENO: checking whether get_vmalloc_info() is available" >&5 |
14601 | $as_echo_n "checking whether get_vmalloc_info() is available... " >&6; } | |
86933a6e | 14602 | |
86933a6e BB |
14603 | grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \ |
14604 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
14605 | rc=$? | |
14606 | if test $rc -ne 0; then | |
14607 | export=0 | |
14608 | for file in ; do | |
14609 | grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \ | |
14610 | "$LINUX_OBJ/$file" 2>/dev/null | |
14611 | rc=$? | |
723aa3b0 ED |
14612 | if test $rc -eq 0; then |
14613 | export=1 | |
14614 | break; | |
14615 | fi | |
86933a6e | 14616 | done |
723aa3b0 ED |
14617 | if test $export -eq 0; then : |
14618 | ||
14619 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8934764e | 14620 | $as_echo "no" >&6; } |
86933a6e | 14621 | |
723aa3b0 ED |
14622 | else : |
14623 | ||
14624 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
8934764e | 14625 | $as_echo "yes" >&6; } |
86933a6e BB |
14626 | |
14627 | cat >>confdefs.h <<\_ACEOF | |
14628 | #define HAVE_GET_VMALLOC_INFO 1 | |
14629 | _ACEOF | |
14630 | ||
723aa3b0 | 14631 | |
86933a6e | 14632 | fi |
723aa3b0 ED |
14633 | else : |
14634 | ||
8934764e BB |
14635 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14636 | $as_echo "yes" >&6; } | |
86933a6e BB |
14637 | |
14638 | cat >>confdefs.h <<\_ACEOF | |
14639 | #define HAVE_GET_VMALLOC_INFO 1 | |
14640 | _ACEOF | |
14641 | ||
723aa3b0 | 14642 | |
86933a6e BB |
14643 | fi |
14644 | ||
14645 | ||
14646 | ||
8934764e BB |
14647 | { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5 |
14648 | $as_echo_n "checking whether symbol *_pgdat exist... " >&6; } | |
86933a6e BB |
14649 | grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null |
14650 | rc=$? | |
14651 | if test $rc -eq 0; then | |
8934764e BB |
14652 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14653 | $as_echo "yes" >&6; } | |
86933a6e BB |
14654 | |
14655 | cat >>confdefs.h <<\_ACEOF | |
14656 | #define HAVE_PGDAT_HELPERS 1 | |
14657 | _ACEOF | |
14658 | ||
14659 | else | |
8934764e BB |
14660 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14661 | $as_echo "no" >&6; } | |
86933a6e BB |
14662 | fi |
14663 | ||
723aa3b0 ED |
14664 | { $as_echo "$as_me:$LINENO: checking whether first_online_pgdat() is available" >&5 |
14665 | $as_echo_n "checking whether first_online_pgdat() is available... " >&6; } | |
86933a6e | 14666 | |
86933a6e | 14667 | |
86933a6e | 14668 | |
723aa3b0 ED |
14669 | cat confdefs.h - <<_ACEOF >conftest.c |
14670 | /* confdefs.h. */ | |
86933a6e | 14671 | _ACEOF |
723aa3b0 ED |
14672 | cat confdefs.h >>conftest.$ac_ext |
14673 | cat >>conftest.$ac_ext <<_ACEOF | |
14674 | /* end confdefs.h. */ | |
86933a6e | 14675 | |
86933a6e | 14676 | |
723aa3b0 ED |
14677 | #include <linux/mmzone.h> |
14678 | ||
14679 | int | |
14680 | main (void) | |
14681 | { | |
14682 | ||
14683 | first_online_pgdat(); | |
14684 | ||
14685 | ; | |
14686 | return 0; | |
14687 | } | |
14688 | ||
86933a6e BB |
14689 | _ACEOF |
14690 | ||
723aa3b0 ED |
14691 | |
14692 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14693 | echo "obj-m := conftest.o" >build/Makefile | |
14694 | modpost_flag='' | |
14695 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14696 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14698 | (eval $ac_try) 2>&5 | |
14699 | ac_status=$? | |
14700 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14701 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14703 | (eval $ac_try) 2>&5 | |
14704 | ac_status=$? | |
14705 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14706 | (exit $ac_status); }; }; then | |
14707 | rc=0 | |
14708 | else | |
14709 | $as_echo "$as_me: failed program was:" >&5 | |
14710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14711 | rc=1 | |
86933a6e BB |
14712 | |
14713 | ||
723aa3b0 | 14714 | fi |
86933a6e | 14715 | |
723aa3b0 ED |
14716 | rm -Rf build |
14717 | ||
14718 | ||
14719 | if test $rc -ne 0; then : | |
14720 | ||
14721 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14722 | $as_echo "no" >&6; } | |
14723 | ||
14724 | else | |
14725 | if test "x$enable_linux_builtin" != xyes; then | |
14726 | ||
14727 | grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \ | |
86933a6e BB |
14728 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
14729 | rc=$? | |
14730 | if test $rc -ne 0; then | |
14731 | export=0 | |
14732 | for file in ; do | |
723aa3b0 | 14733 | grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \ |
86933a6e BB |
14734 | "$LINUX_OBJ/$file" 2>/dev/null |
14735 | rc=$? | |
723aa3b0 ED |
14736 | if test $rc -eq 0; then |
14737 | export=1 | |
14738 | break; | |
14739 | fi | |
86933a6e | 14740 | done |
723aa3b0 ED |
14741 | if test $export -eq 0; then : |
14742 | rc=1 | |
14743 | else : | |
14744 | rc=0 | |
14745 | fi | |
14746 | else : | |
14747 | rc=0 | |
14748 | fi | |
86933a6e | 14749 | |
723aa3b0 ED |
14750 | fi |
14751 | if test $rc -ne 0; then : | |
86933a6e | 14752 | |
723aa3b0 ED |
14753 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14754 | $as_echo "no" >&6; } | |
14755 | ||
14756 | else : | |
86933a6e | 14757 | |
8934764e BB |
14758 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14759 | $as_echo "yes" >&6; } | |
86933a6e BB |
14760 | |
14761 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 14762 | #define HAVE_FIRST_ONLINE_PGDAT 1 |
86933a6e BB |
14763 | _ACEOF |
14764 | ||
723aa3b0 ED |
14765 | |
14766 | fi | |
86933a6e BB |
14767 | fi |
14768 | ||
14769 | ||
723aa3b0 ED |
14770 | { $as_echo "$as_me:$LINENO: checking whether next_online_pgdat() is available" >&5 |
14771 | $as_echo_n "checking whether next_online_pgdat() is available... " >&6; } | |
86933a6e | 14772 | |
723aa3b0 ED |
14773 | |
14774 | ||
14775 | cat confdefs.h - <<_ACEOF >conftest.c | |
14776 | /* confdefs.h. */ | |
14777 | _ACEOF | |
14778 | cat confdefs.h >>conftest.$ac_ext | |
14779 | cat >>conftest.$ac_ext <<_ACEOF | |
14780 | /* end confdefs.h. */ | |
14781 | ||
14782 | ||
14783 | #include <linux/mmzone.h> | |
14784 | ||
14785 | int | |
14786 | main (void) | |
14787 | { | |
14788 | ||
14789 | next_online_pgdat(NULL); | |
14790 | ||
14791 | ; | |
14792 | return 0; | |
14793 | } | |
14794 | ||
14795 | _ACEOF | |
14796 | ||
14797 | ||
14798 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14799 | echo "obj-m := conftest.o" >build/Makefile | |
14800 | modpost_flag='' | |
14801 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14802 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14804 | (eval $ac_try) 2>&5 | |
14805 | ac_status=$? | |
14806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14807 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14809 | (eval $ac_try) 2>&5 | |
14810 | ac_status=$? | |
14811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14812 | (exit $ac_status); }; }; then | |
14813 | rc=0 | |
14814 | else | |
14815 | $as_echo "$as_me: failed program was:" >&5 | |
14816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14817 | rc=1 | |
14818 | ||
14819 | ||
14820 | fi | |
14821 | ||
14822 | rm -Rf build | |
14823 | ||
14824 | ||
14825 | if test $rc -ne 0; then : | |
14826 | ||
14827 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8934764e | 14828 | $as_echo "no" >&6; } |
86933a6e | 14829 | |
723aa3b0 ED |
14830 | else |
14831 | if test "x$enable_linux_builtin" != xyes; then | |
14832 | ||
14833 | grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \ | |
14834 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
14835 | rc=$? | |
14836 | if test $rc -ne 0; then | |
14837 | export=0 | |
14838 | for file in ; do | |
14839 | grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \ | |
14840 | "$LINUX_OBJ/$file" 2>/dev/null | |
14841 | rc=$? | |
14842 | if test $rc -eq 0; then | |
14843 | export=1 | |
14844 | break; | |
14845 | fi | |
14846 | done | |
14847 | if test $export -eq 0; then : | |
14848 | rc=1 | |
14849 | else : | |
14850 | rc=0 | |
14851 | fi | |
14852 | else : | |
14853 | rc=0 | |
14854 | fi | |
14855 | ||
14856 | fi | |
14857 | if test $rc -ne 0; then : | |
14858 | ||
14859 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14860 | $as_echo "no" >&6; } | |
14861 | ||
14862 | else : | |
14863 | ||
14864 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
8934764e | 14865 | $as_echo "yes" >&6; } |
86933a6e BB |
14866 | |
14867 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 14868 | #define HAVE_NEXT_ONLINE_PGDAT 1 |
86933a6e BB |
14869 | _ACEOF |
14870 | ||
723aa3b0 | 14871 | |
86933a6e | 14872 | fi |
723aa3b0 ED |
14873 | fi |
14874 | ||
14875 | ||
14876 | { $as_echo "$as_me:$LINENO: checking whether next_zone() is available" >&5 | |
14877 | $as_echo_n "checking whether next_zone() is available... " >&6; } | |
14878 | ||
14879 | ||
14880 | ||
14881 | cat confdefs.h - <<_ACEOF >conftest.c | |
14882 | /* confdefs.h. */ | |
14883 | _ACEOF | |
14884 | cat confdefs.h >>conftest.$ac_ext | |
14885 | cat >>conftest.$ac_ext <<_ACEOF | |
14886 | /* end confdefs.h. */ | |
14887 | ||
14888 | ||
14889 | #include <linux/mmzone.h> | |
14890 | ||
14891 | int | |
14892 | main (void) | |
14893 | { | |
14894 | ||
14895 | next_zone(NULL); | |
14896 | ||
14897 | ; | |
14898 | return 0; | |
14899 | } | |
14900 | ||
14901 | _ACEOF | |
14902 | ||
14903 | ||
14904 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
14905 | echo "obj-m := conftest.o" >build/Makefile | |
14906 | modpost_flag='' | |
14907 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
14908 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
14909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14910 | (eval $ac_try) 2>&5 | |
14911 | ac_status=$? | |
14912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14913 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14915 | (eval $ac_try) 2>&5 | |
14916 | ac_status=$? | |
14917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14918 | (exit $ac_status); }; }; then | |
14919 | rc=0 | |
14920 | else | |
14921 | $as_echo "$as_me: failed program was:" >&5 | |
14922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14923 | rc=1 | |
14924 | ||
14925 | ||
14926 | fi | |
14927 | ||
14928 | rm -Rf build | |
14929 | ||
14930 | ||
14931 | if test $rc -ne 0; then : | |
14932 | ||
14933 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14934 | $as_echo "no" >&6; } | |
14935 | ||
86933a6e | 14936 | else |
723aa3b0 ED |
14937 | if test "x$enable_linux_builtin" != xyes; then |
14938 | ||
14939 | grep -q -E '[[:space:]]next_zone[[:space:]]' \ | |
14940 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
14941 | rc=$? | |
14942 | if test $rc -ne 0; then | |
14943 | export=0 | |
14944 | for file in ; do | |
14945 | grep -q -E "EXPORT_SYMBOL.*(next_zone)" \ | |
14946 | "$LINUX_OBJ/$file" 2>/dev/null | |
14947 | rc=$? | |
14948 | if test $rc -eq 0; then | |
14949 | export=1 | |
14950 | break; | |
14951 | fi | |
14952 | done | |
14953 | if test $export -eq 0; then : | |
14954 | rc=1 | |
14955 | else : | |
14956 | rc=0 | |
14957 | fi | |
14958 | else : | |
14959 | rc=0 | |
14960 | fi | |
14961 | ||
14962 | fi | |
14963 | if test $rc -ne 0; then : | |
14964 | ||
14965 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14966 | $as_echo "no" >&6; } | |
14967 | ||
14968 | else : | |
14969 | ||
8934764e BB |
14970 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
14971 | $as_echo "yes" >&6; } | |
86933a6e BB |
14972 | |
14973 | cat >>confdefs.h <<\_ACEOF | |
14974 | #define HAVE_NEXT_ZONE 1 | |
14975 | _ACEOF | |
14976 | ||
723aa3b0 ED |
14977 | |
14978 | fi | |
86933a6e BB |
14979 | fi |
14980 | ||
14981 | ||
723aa3b0 ED |
14982 | { $as_echo "$as_me:$LINENO: checking whether pgdat_list is available" >&5 |
14983 | $as_echo_n "checking whether pgdat_list is available... " >&6; } | |
14984 | ||
14985 | ||
14986 | ||
14987 | cat confdefs.h - <<_ACEOF >conftest.c | |
14988 | /* confdefs.h. */ | |
14989 | _ACEOF | |
14990 | cat confdefs.h >>conftest.$ac_ext | |
14991 | cat >>conftest.$ac_ext <<_ACEOF | |
14992 | /* end confdefs.h. */ | |
14993 | ||
14994 | ||
14995 | #include <linux/topology.h> | |
14996 | pg_data_t *tmp = pgdat_list; | |
14997 | ||
14998 | int | |
14999 | main (void) | |
15000 | { | |
15001 | ||
15002 | ; | |
15003 | return 0; | |
15004 | } | |
15005 | ||
15006 | _ACEOF | |
15007 | ||
15008 | ||
15009 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
15010 | echo "obj-m := conftest.o" >build/Makefile | |
15011 | modpost_flag='' | |
15012 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15013 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15015 | (eval $ac_try) 2>&5 | |
15016 | ac_status=$? | |
15017 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15018 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15020 | (eval $ac_try) 2>&5 | |
15021 | ac_status=$? | |
15022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15023 | (exit $ac_status); }; }; then | |
15024 | rc=0 | |
15025 | else | |
15026 | $as_echo "$as_me: failed program was:" >&5 | |
15027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15028 | rc=1 | |
15029 | ||
15030 | ||
15031 | fi | |
15032 | ||
15033 | rm -Rf build | |
15034 | ||
15035 | ||
15036 | if test $rc -ne 0; then : | |
15037 | ||
15038 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
15039 | $as_echo "no" >&6; } | |
15040 | ||
15041 | else | |
15042 | if test "x$enable_linux_builtin" != xyes; then | |
86933a6e | 15043 | |
86933a6e BB |
15044 | grep -q -E '[[:space:]]pgdat_list[[:space:]]' \ |
15045 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
15046 | rc=$? | |
15047 | if test $rc -ne 0; then | |
15048 | export=0 | |
15049 | for file in ; do | |
15050 | grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \ | |
15051 | "$LINUX_OBJ/$file" 2>/dev/null | |
15052 | rc=$? | |
723aa3b0 ED |
15053 | if test $rc -eq 0; then |
15054 | export=1 | |
15055 | break; | |
15056 | fi | |
86933a6e | 15057 | done |
723aa3b0 ED |
15058 | if test $export -eq 0; then : |
15059 | rc=1 | |
15060 | else : | |
15061 | rc=0 | |
15062 | fi | |
15063 | else : | |
15064 | rc=0 | |
15065 | fi | |
86933a6e | 15066 | |
723aa3b0 ED |
15067 | fi |
15068 | if test $rc -ne 0; then : | |
86933a6e | 15069 | |
723aa3b0 ED |
15070 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15071 | $as_echo "no" >&6; } | |
15072 | ||
15073 | else : | |
86933a6e | 15074 | |
8934764e BB |
15075 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15076 | $as_echo "yes" >&6; } | |
86933a6e BB |
15077 | |
15078 | cat >>confdefs.h <<\_ACEOF | |
15079 | #define HAVE_PGDAT_LIST 1 | |
15080 | _ACEOF | |
15081 | ||
723aa3b0 ED |
15082 | |
15083 | fi | |
86933a6e BB |
15084 | fi |
15085 | ||
15086 | ||
15087 | ||
8934764e BB |
15088 | { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5 |
15089 | $as_echo_n "checking whether global_page_state() is available... " >&6; } | |
86933a6e | 15090 | |
86933a6e | 15091 | |
dbe561d8 | 15092 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 | 15093 | /* confdefs.h. */ |
86933a6e | 15094 | _ACEOF |
6ae7fef5 BB |
15095 | cat confdefs.h >>conftest.$ac_ext |
15096 | cat >>conftest.$ac_ext <<_ACEOF | |
15097 | /* end confdefs.h. */ | |
15098 | ||
15099 | ||
15100 | #include <linux/mm.h> | |
15101 | ||
15102 | int | |
15103 | main (void) | |
15104 | { | |
15105 | ||
03318641 | 15106 | unsigned long state __attribute__ ((unused)); |
6ae7fef5 BB |
15107 | state = global_page_state(0); |
15108 | ||
15109 | ; | |
15110 | return 0; | |
15111 | } | |
15112 | ||
15113 | _ACEOF | |
15114 | ||
15115 | ||
df7cc5bc | 15116 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 15117 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
15118 | modpost_flag='' |
15119 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15120 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
15121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15122 | (eval $ac_try) 2>&5 | |
15123 | ac_status=$? | |
8934764e | 15124 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
15125 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15127 | (eval $ac_try) 2>&5 | |
15128 | ac_status=$? | |
8934764e | 15129 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 15130 | (exit $ac_status); }; }; then |
86933a6e | 15131 | |
8934764e BB |
15132 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15133 | $as_echo "yes" >&6; } | |
86933a6e BB |
15134 | |
15135 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 15136 | #define HAVE_GLOBAL_PAGE_STATE 1 |
86933a6e BB |
15137 | _ACEOF |
15138 | ||
6ae7fef5 BB |
15139 | |
15140 | else | |
8934764e | 15141 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
15142 | sed 's/^/| /' conftest.$ac_ext >&5 |
15143 | ||
8934764e BB |
15144 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15145 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
15146 | |
15147 | ||
15148 | ||
15149 | fi | |
15150 | ||
15151 | rm -Rf build | |
86933a6e BB |
15152 | |
15153 | ||
15154 | ||
6ae7fef5 | 15155 | |
8934764e BB |
15156 | { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5 |
15157 | $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; } | |
86933a6e BB |
15158 | |
15159 | ||
dbe561d8 | 15160 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
15161 | /* confdefs.h. */ |
15162 | _ACEOF | |
15163 | cat confdefs.h >>conftest.$ac_ext | |
15164 | cat >>conftest.$ac_ext <<_ACEOF | |
15165 | /* end confdefs.h. */ | |
15166 | ||
15167 | ||
6ae7fef5 | 15168 | #include <linux/mm.h> |
86933a6e BB |
15169 | |
15170 | int | |
15171 | main (void) | |
15172 | { | |
15173 | ||
03318641 | 15174 | enum zone_stat_item zsi __attribute__ ((unused)); |
6ae7fef5 | 15175 | zsi = NR_FREE_PAGES; |
86933a6e BB |
15176 | |
15177 | ; | |
15178 | return 0; | |
15179 | } | |
15180 | ||
15181 | _ACEOF | |
15182 | ||
15183 | ||
df7cc5bc | 15184 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 15185 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
15186 | modpost_flag='' |
15187 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15188 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
15189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15190 | (eval $ac_try) 2>&5 | |
15191 | ac_status=$? | |
8934764e | 15192 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
15193 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15195 | (eval $ac_try) 2>&5 | |
15196 | ac_status=$? | |
8934764e | 15197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
15198 | (exit $ac_status); }; }; then |
15199 | ||
8934764e BB |
15200 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15201 | $as_echo "yes" >&6; } | |
86933a6e BB |
15202 | |
15203 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 15204 | #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1 |
86933a6e BB |
15205 | _ACEOF |
15206 | ||
15207 | ||
15208 | else | |
8934764e | 15209 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
15210 | sed 's/^/| /' conftest.$ac_ext >&5 |
15211 | ||
8934764e BB |
15212 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15213 | $as_echo "no" >&6; } | |
86933a6e BB |
15214 | |
15215 | ||
15216 | ||
15217 | fi | |
15218 | ||
15219 | rm -Rf build | |
15220 | ||
15221 | ||
15222 | ||
15223 | ||
8934764e BB |
15224 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5 |
15225 | $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; } | |
86933a6e BB |
15226 | |
15227 | ||
dbe561d8 | 15228 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
15229 | /* confdefs.h. */ |
15230 | _ACEOF | |
15231 | cat confdefs.h >>conftest.$ac_ext | |
15232 | cat >>conftest.$ac_ext <<_ACEOF | |
15233 | /* end confdefs.h. */ | |
15234 | ||
15235 | ||
6ae7fef5 | 15236 | #include <linux/mm.h> |
86933a6e BB |
15237 | |
15238 | int | |
15239 | main (void) | |
15240 | { | |
15241 | ||
03318641 | 15242 | enum zone_stat_item zsi __attribute__ ((unused)); |
6ae7fef5 | 15243 | zsi = NR_INACTIVE; |
86933a6e BB |
15244 | |
15245 | ; | |
15246 | return 0; | |
15247 | } | |
15248 | ||
15249 | _ACEOF | |
15250 | ||
15251 | ||
df7cc5bc | 15252 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 15253 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
15254 | modpost_flag='' |
15255 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15256 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
15257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15258 | (eval $ac_try) 2>&5 | |
15259 | ac_status=$? | |
8934764e | 15260 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
15261 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15263 | (eval $ac_try) 2>&5 | |
15264 | ac_status=$? | |
8934764e | 15265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
15266 | (exit $ac_status); }; }; then |
15267 | ||
8934764e BB |
15268 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15269 | $as_echo "yes" >&6; } | |
86933a6e BB |
15270 | |
15271 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 15272 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1 |
86933a6e BB |
15273 | _ACEOF |
15274 | ||
15275 | ||
15276 | else | |
8934764e | 15277 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
15278 | sed 's/^/| /' conftest.$ac_ext >&5 |
15279 | ||
8934764e BB |
15280 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15281 | $as_echo "no" >&6; } | |
86933a6e BB |
15282 | |
15283 | ||
15284 | ||
15285 | fi | |
15286 | ||
15287 | rm -Rf build | |
15288 | ||
15289 | ||
15290 | ||
8934764e BB |
15291 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5 |
15292 | $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; } | |
86933a6e BB |
15293 | |
15294 | ||
dbe561d8 | 15295 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
15296 | /* confdefs.h. */ |
15297 | _ACEOF | |
15298 | cat confdefs.h >>conftest.$ac_ext | |
15299 | cat >>conftest.$ac_ext <<_ACEOF | |
15300 | /* end confdefs.h. */ | |
15301 | ||
15302 | ||
6ae7fef5 | 15303 | #include <linux/mm.h> |
86933a6e BB |
15304 | |
15305 | int | |
15306 | main (void) | |
15307 | { | |
15308 | ||
03318641 | 15309 | enum zone_stat_item zsi __attribute__ ((unused)); |
6ae7fef5 | 15310 | zsi = NR_INACTIVE_ANON; |
86933a6e BB |
15311 | |
15312 | ; | |
15313 | return 0; | |
15314 | } | |
15315 | ||
15316 | _ACEOF | |
15317 | ||
15318 | ||
df7cc5bc | 15319 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 15320 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
15321 | modpost_flag='' |
15322 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15323 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
15324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15325 | (eval $ac_try) 2>&5 | |
15326 | ac_status=$? | |
8934764e | 15327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
15328 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15330 | (eval $ac_try) 2>&5 | |
15331 | ac_status=$? | |
8934764e | 15332 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
15333 | (exit $ac_status); }; }; then |
15334 | ||
8934764e BB |
15335 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15336 | $as_echo "yes" >&6; } | |
86933a6e BB |
15337 | |
15338 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 15339 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1 |
86933a6e BB |
15340 | _ACEOF |
15341 | ||
15342 | ||
15343 | else | |
8934764e | 15344 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
15345 | sed 's/^/| /' conftest.$ac_ext >&5 |
15346 | ||
8934764e BB |
15347 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15348 | $as_echo "no" >&6; } | |
86933a6e BB |
15349 | |
15350 | ||
15351 | ||
15352 | fi | |
15353 | ||
15354 | rm -Rf build | |
15355 | ||
15356 | ||
15357 | ||
8934764e BB |
15358 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5 |
15359 | $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; } | |
86933a6e BB |
15360 | |
15361 | ||
dbe561d8 | 15362 | cat confdefs.h - <<_ACEOF >conftest.c |
86933a6e BB |
15363 | /* confdefs.h. */ |
15364 | _ACEOF | |
15365 | cat confdefs.h >>conftest.$ac_ext | |
15366 | cat >>conftest.$ac_ext <<_ACEOF | |
15367 | /* end confdefs.h. */ | |
15368 | ||
15369 | ||
6ae7fef5 | 15370 | #include <linux/mm.h> |
86933a6e BB |
15371 | |
15372 | int | |
15373 | main (void) | |
15374 | { | |
15375 | ||
03318641 | 15376 | enum zone_stat_item zsi __attribute__ ((unused)); |
6ae7fef5 | 15377 | zsi = NR_INACTIVE_FILE; |
86933a6e BB |
15378 | |
15379 | ; | |
15380 | return 0; | |
15381 | } | |
15382 | ||
15383 | _ACEOF | |
15384 | ||
15385 | ||
df7cc5bc | 15386 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86933a6e | 15387 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
15388 | modpost_flag='' |
15389 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15390 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86933a6e BB |
15391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15392 | (eval $ac_try) 2>&5 | |
15393 | ac_status=$? | |
8934764e | 15394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
15395 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15397 | (eval $ac_try) 2>&5 | |
15398 | ac_status=$? | |
8934764e | 15399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
86933a6e BB |
15400 | (exit $ac_status); }; }; then |
15401 | ||
8934764e BB |
15402 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15403 | $as_echo "yes" >&6; } | |
86933a6e BB |
15404 | |
15405 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 15406 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1 |
86933a6e BB |
15407 | _ACEOF |
15408 | ||
15409 | ||
15410 | else | |
8934764e | 15411 | $as_echo "$as_me: failed program was:" >&5 |
86933a6e BB |
15412 | sed 's/^/| /' conftest.$ac_ext >&5 |
15413 | ||
8934764e BB |
15414 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15415 | $as_echo "no" >&6; } | |
86933a6e BB |
15416 | |
15417 | ||
15418 | ||
15419 | fi | |
15420 | ||
15421 | rm -Rf build | |
15422 | ||
15423 | ||
15424 | ||
ec7d53e9 | 15425 | |
8934764e BB |
15426 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5 |
15427 | $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; } | |
ec7d53e9 BB |
15428 | |
15429 | ||
dbe561d8 | 15430 | cat confdefs.h - <<_ACEOF >conftest.c |
ec7d53e9 BB |
15431 | /* confdefs.h. */ |
15432 | _ACEOF | |
15433 | cat confdefs.h >>conftest.$ac_ext | |
15434 | cat >>conftest.$ac_ext <<_ACEOF | |
15435 | /* end confdefs.h. */ | |
15436 | ||
15437 | ||
6ae7fef5 | 15438 | #include <linux/mm.h> |
ec7d53e9 BB |
15439 | |
15440 | int | |
15441 | main (void) | |
15442 | { | |
15443 | ||
03318641 | 15444 | enum zone_stat_item zsi __attribute__ ((unused)); |
6ae7fef5 | 15445 | zsi = NR_ACTIVE; |
ec7d53e9 BB |
15446 | |
15447 | ; | |
15448 | return 0; | |
15449 | } | |
15450 | ||
15451 | _ACEOF | |
15452 | ||
15453 | ||
df7cc5bc | 15454 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
ec7d53e9 | 15455 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
15456 | modpost_flag='' |
15457 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15458 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
ec7d53e9 BB |
15459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15460 | (eval $ac_try) 2>&5 | |
15461 | ac_status=$? | |
8934764e | 15462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ec7d53e9 BB |
15463 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15465 | (eval $ac_try) 2>&5 | |
15466 | ac_status=$? | |
8934764e | 15467 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ec7d53e9 BB |
15468 | (exit $ac_status); }; }; then |
15469 | ||
8934764e BB |
15470 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15471 | $as_echo "yes" >&6; } | |
ec7d53e9 BB |
15472 | |
15473 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 15474 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1 |
ec7d53e9 BB |
15475 | _ACEOF |
15476 | ||
15477 | ||
15478 | else | |
8934764e | 15479 | $as_echo "$as_me: failed program was:" >&5 |
ec7d53e9 BB |
15480 | sed 's/^/| /' conftest.$ac_ext >&5 |
15481 | ||
8934764e BB |
15482 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15483 | $as_echo "no" >&6; } | |
ec7d53e9 BB |
15484 | |
15485 | ||
15486 | ||
15487 | fi | |
15488 | ||
15489 | rm -Rf build | |
15490 | ||
15491 | ||
15492 | ||
8934764e BB |
15493 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5 |
15494 | $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; } | |
ec7d53e9 | 15495 | |
ec7d53e9 | 15496 | |
dbe561d8 | 15497 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
15498 | /* confdefs.h. */ |
15499 | _ACEOF | |
15500 | cat confdefs.h >>conftest.$ac_ext | |
15501 | cat >>conftest.$ac_ext <<_ACEOF | |
15502 | /* end confdefs.h. */ | |
15503 | ||
15504 | ||
15505 | #include <linux/mm.h> | |
15506 | ||
15507 | int | |
15508 | main (void) | |
15509 | { | |
15510 | ||
03318641 | 15511 | enum zone_stat_item zsi __attribute__ ((unused)); |
6ae7fef5 BB |
15512 | zsi = NR_ACTIVE_ANON; |
15513 | ||
15514 | ; | |
15515 | return 0; | |
15516 | } | |
ec7d53e9 | 15517 | |
ec7d53e9 BB |
15518 | _ACEOF |
15519 | ||
6ae7fef5 | 15520 | |
df7cc5bc | 15521 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 15522 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
15523 | modpost_flag='' |
15524 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15525 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
15526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15527 | (eval $ac_try) 2>&5 | |
15528 | ac_status=$? | |
8934764e | 15529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
15530 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15532 | (eval $ac_try) 2>&5 | |
15533 | ac_status=$? | |
8934764e | 15534 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
15535 | (exit $ac_status); }; }; then |
15536 | ||
8934764e BB |
15537 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15538 | $as_echo "yes" >&6; } | |
ec7d53e9 BB |
15539 | |
15540 | cat >>confdefs.h <<\_ACEOF | |
6ae7fef5 | 15541 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1 |
ec7d53e9 BB |
15542 | _ACEOF |
15543 | ||
ec7d53e9 | 15544 | |
6ae7fef5 | 15545 | else |
8934764e | 15546 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 | 15547 | sed 's/^/| /' conftest.$ac_ext >&5 |
ec7d53e9 | 15548 | |
8934764e BB |
15549 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15550 | $as_echo "no" >&6; } | |
bf9f3bac | 15551 | |
bf9f3bac | 15552 | |
bf9f3bac | 15553 | |
6ae7fef5 | 15554 | fi |
bf9f3bac | 15555 | |
6ae7fef5 | 15556 | rm -Rf build |
bf9f3bac | 15557 | |
bf9f3bac | 15558 | |
bf9f3bac | 15559 | |
8934764e BB |
15560 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5 |
15561 | $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; } | |
bf9f3bac | 15562 | |
bf9f3bac | 15563 | |
dbe561d8 | 15564 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
15565 | /* confdefs.h. */ |
15566 | _ACEOF | |
15567 | cat confdefs.h >>conftest.$ac_ext | |
15568 | cat >>conftest.$ac_ext <<_ACEOF | |
15569 | /* end confdefs.h. */ | |
bf9f3bac | 15570 | |
bf9f3bac | 15571 | |
6ae7fef5 | 15572 | #include <linux/mm.h> |
bf9f3bac | 15573 | |
6ae7fef5 BB |
15574 | int |
15575 | main (void) | |
15576 | { | |
15577 | ||
03318641 | 15578 | enum zone_stat_item zsi __attribute__ ((unused)); |
6ae7fef5 BB |
15579 | zsi = NR_ACTIVE_FILE; |
15580 | ||
15581 | ; | |
15582 | return 0; | |
15583 | } | |
15584 | ||
15585 | _ACEOF | |
15586 | ||
15587 | ||
df7cc5bc | 15588 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 15589 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
15590 | modpost_flag='' |
15591 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15592 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
15593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15594 | (eval $ac_try) 2>&5 | |
15595 | ac_status=$? | |
8934764e | 15596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
15597 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15599 | (eval $ac_try) 2>&5 | |
15600 | ac_status=$? | |
8934764e | 15601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
15602 | (exit $ac_status); }; }; then |
15603 | ||
8934764e BB |
15604 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15605 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
15606 | |
15607 | cat >>confdefs.h <<\_ACEOF | |
15608 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1 | |
15609 | _ACEOF | |
15610 | ||
15611 | ||
15612 | else | |
8934764e | 15613 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
15614 | sed 's/^/| /' conftest.$ac_ext >&5 |
15615 | ||
8934764e BB |
15616 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15617 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
15618 | |
15619 | ||
15620 | ||
15621 | fi | |
15622 | ||
15623 | rm -Rf build | |
15624 | ||
15625 | ||
15626 | ||
15627 | ||
8934764e BB |
15628 | { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5 |
15629 | $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; } | |
6ae7fef5 BB |
15630 | |
15631 | ||
dbe561d8 | 15632 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
15633 | /* confdefs.h. */ |
15634 | _ACEOF | |
15635 | cat confdefs.h >>conftest.$ac_ext | |
15636 | cat >>conftest.$ac_ext <<_ACEOF | |
15637 | /* end confdefs.h. */ | |
15638 | ||
15639 | ||
15640 | ||
15641 | int | |
15642 | main (void) | |
15643 | { | |
15644 | ||
15645 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES) | |
15646 | #error "global_page_state needs NR_FREE_PAGES" | |
15647 | #endif | |
15648 | ||
15649 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \ | |
15650 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \ | |
15651 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE) | |
15652 | #error "global_page_state needs NR_ACTIVE*" | |
15653 | #endif | |
15654 | ||
15655 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \ | |
15656 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \ | |
15657 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE) | |
15658 | #error "global_page_state needs NR_INACTIVE*" | |
15659 | #endif | |
15660 | ||
15661 | ; | |
15662 | return 0; | |
15663 | } | |
15664 | ||
15665 | _ACEOF | |
15666 | ||
15667 | ||
df7cc5bc | 15668 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 15669 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
15670 | modpost_flag='' |
15671 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15672 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
15673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15674 | (eval $ac_try) 2>&5 | |
15675 | ac_status=$? | |
8934764e | 15676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
15677 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15679 | (eval $ac_try) 2>&5 | |
15680 | ac_status=$? | |
8934764e | 15681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
15682 | (exit $ac_status); }; }; then |
15683 | ||
8934764e BB |
15684 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15685 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
15686 | |
15687 | else | |
8934764e | 15688 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
15689 | sed 's/^/| /' conftest.$ac_ext >&5 |
15690 | ||
8934764e BB |
15691 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15692 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
15693 | |
15694 | cat >>confdefs.h <<\_ACEOF | |
15695 | #define NEED_GET_ZONE_COUNTS 1 | |
15696 | _ACEOF | |
15697 | ||
15698 | ||
723aa3b0 ED |
15699 | { $as_echo "$as_me:$LINENO: checking whether get_zone_counts() is available" >&5 |
15700 | $as_echo_n "checking whether get_zone_counts() is available... " >&6; } | |
6ae7fef5 | 15701 | |
6ae7fef5 | 15702 | |
723aa3b0 ED |
15703 | |
15704 | cat confdefs.h - <<_ACEOF >conftest.c | |
15705 | /* confdefs.h. */ | |
6ae7fef5 | 15706 | _ACEOF |
723aa3b0 ED |
15707 | cat confdefs.h >>conftest.$ac_ext |
15708 | cat >>conftest.$ac_ext <<_ACEOF | |
15709 | /* end confdefs.h. */ | |
6ae7fef5 | 15710 | |
6ae7fef5 | 15711 | |
723aa3b0 | 15712 | #include <linux/mmzone.h> |
6ae7fef5 | 15713 | |
723aa3b0 ED |
15714 | int |
15715 | main (void) | |
15716 | { | |
15717 | ||
15718 | get_zone_counts(NULL, NULL, NULL); | |
15719 | ||
15720 | ; | |
15721 | return 0; | |
15722 | } | |
15723 | ||
15724 | _ACEOF | |
6ae7fef5 BB |
15725 | |
15726 | ||
723aa3b0 ED |
15727 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
15728 | echo "obj-m := conftest.o" >build/Makefile | |
15729 | modpost_flag='' | |
15730 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15731 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
15732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15733 | (eval $ac_try) 2>&5 | |
15734 | ac_status=$? | |
15735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15736 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
15737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15738 | (eval $ac_try) 2>&5 | |
15739 | ac_status=$? | |
15740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15741 | (exit $ac_status); }; }; then | |
15742 | rc=0 | |
15743 | else | |
15744 | $as_echo "$as_me: failed program was:" >&5 | |
15745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15746 | rc=1 | |
6ae7fef5 BB |
15747 | |
15748 | ||
51a727e9 BB |
15749 | fi |
15750 | ||
15751 | rm -Rf build | |
15752 | ||
15753 | ||
723aa3b0 | 15754 | if test $rc -ne 0; then : |
51a727e9 | 15755 | |
723aa3b0 ED |
15756 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15757 | $as_echo "no" >&6; } | |
51a727e9 | 15758 | |
723aa3b0 ED |
15759 | else |
15760 | if test "x$enable_linux_builtin" != xyes; then | |
15761 | ||
15762 | grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \ | |
7119bf70 BB |
15763 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
15764 | rc=$? | |
15765 | if test $rc -ne 0; then | |
15766 | export=0 | |
15767 | for file in ; do | |
723aa3b0 | 15768 | grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \ |
7119bf70 BB |
15769 | "$LINUX_OBJ/$file" 2>/dev/null |
15770 | rc=$? | |
723aa3b0 ED |
15771 | if test $rc -eq 0; then |
15772 | export=1 | |
15773 | break; | |
15774 | fi | |
7119bf70 | 15775 | done |
723aa3b0 ED |
15776 | if test $export -eq 0; then : |
15777 | rc=1 | |
15778 | else : | |
15779 | rc=0 | |
15780 | fi | |
15781 | else : | |
15782 | rc=0 | |
15783 | fi | |
15784 | ||
15785 | fi | |
15786 | if test $rc -ne 0; then : | |
15787 | ||
7119bf70 BB |
15788 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15789 | $as_echo "no" >&6; } | |
15790 | ||
723aa3b0 ED |
15791 | else : |
15792 | ||
7119bf70 BB |
15793 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15794 | $as_echo "yes" >&6; } | |
15795 | ||
15796 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 15797 | #define HAVE_GET_ZONE_COUNTS 1 |
7119bf70 BB |
15798 | _ACEOF |
15799 | ||
7119bf70 | 15800 | |
723aa3b0 | 15801 | fi |
7119bf70 BB |
15802 | fi |
15803 | ||
15804 | ||
15805 | ||
51a727e9 | 15806 | |
723aa3b0 | 15807 | fi |
51a727e9 | 15808 | |
723aa3b0 | 15809 | rm -Rf build |
51a727e9 | 15810 | |
51a727e9 | 15811 | |
51a727e9 | 15812 | |
723aa3b0 ED |
15813 | { $as_echo "$as_me:$LINENO: checking whether user_path_dir() is available" >&5 |
15814 | $as_echo_n "checking whether user_path_dir() is available... " >&6; } | |
51a727e9 | 15815 | |
51a727e9 BB |
15816 | |
15817 | ||
dbe561d8 | 15818 | cat confdefs.h - <<_ACEOF >conftest.c |
51a727e9 BB |
15819 | /* confdefs.h. */ |
15820 | _ACEOF | |
15821 | cat confdefs.h >>conftest.$ac_ext | |
15822 | cat >>conftest.$ac_ext <<_ACEOF | |
15823 | /* end confdefs.h. */ | |
15824 | ||
15825 | ||
723aa3b0 ED |
15826 | #include <linux/fcntl.h> |
15827 | #include <linux/namei.h> | |
51a727e9 BB |
15828 | |
15829 | int | |
15830 | main (void) | |
15831 | { | |
15832 | ||
723aa3b0 | 15833 | user_path_dir(NULL, NULL); |
51a727e9 BB |
15834 | |
15835 | ; | |
15836 | return 0; | |
15837 | } | |
15838 | ||
15839 | _ACEOF | |
15840 | ||
15841 | ||
df7cc5bc | 15842 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
51a727e9 | 15843 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
15844 | modpost_flag='' |
15845 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15846 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
51a727e9 BB |
15847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15848 | (eval $ac_try) 2>&5 | |
15849 | ac_status=$? | |
8934764e | 15850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
51a727e9 BB |
15851 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15853 | (eval $ac_try) 2>&5 | |
15854 | ac_status=$? | |
8934764e | 15855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
51a727e9 | 15856 | (exit $ac_status); }; }; then |
723aa3b0 ED |
15857 | rc=0 |
15858 | else | |
15859 | $as_echo "$as_me: failed program was:" >&5 | |
15860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15861 | rc=1 | |
51a727e9 | 15862 | |
51a727e9 | 15863 | |
723aa3b0 ED |
15864 | fi |
15865 | ||
15866 | rm -Rf build | |
51a727e9 BB |
15867 | |
15868 | ||
723aa3b0 | 15869 | if test $rc -ne 0; then : |
51a727e9 | 15870 | |
8934764e BB |
15871 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15872 | $as_echo "no" >&6; } | |
51a727e9 | 15873 | |
723aa3b0 ED |
15874 | else |
15875 | if test "x$enable_linux_builtin" != xyes; then | |
15876 | ||
15877 | grep -q -E '[[:space:]]user_path_at[[:space:]]' \ | |
15878 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
15879 | rc=$? | |
15880 | if test $rc -ne 0; then | |
15881 | export=0 | |
15882 | for file in ; do | |
15883 | grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \ | |
15884 | "$LINUX_OBJ/$file" 2>/dev/null | |
15885 | rc=$? | |
15886 | if test $rc -eq 0; then | |
15887 | export=1 | |
15888 | break; | |
15889 | fi | |
15890 | done | |
15891 | if test $export -eq 0; then : | |
15892 | rc=1 | |
15893 | else : | |
15894 | rc=0 | |
15895 | fi | |
15896 | else : | |
15897 | rc=0 | |
15898 | fi | |
51a727e9 | 15899 | |
723aa3b0 ED |
15900 | fi |
15901 | if test $rc -ne 0; then : | |
51a727e9 | 15902 | |
723aa3b0 ED |
15903 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15904 | $as_echo "no" >&6; } | |
6ae7fef5 | 15905 | |
723aa3b0 | 15906 | else : |
6ae7fef5 | 15907 | |
723aa3b0 ED |
15908 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
15909 | $as_echo "yes" >&6; } | |
15910 | ||
15911 | cat >>confdefs.h <<\_ACEOF | |
15912 | #define HAVE_USER_PATH_DIR 1 | |
15913 | _ACEOF | |
6ae7fef5 BB |
15914 | |
15915 | ||
723aa3b0 ED |
15916 | fi |
15917 | fi | |
15918 | ||
15919 | ||
15920 | { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() is available" >&5 | |
15921 | $as_echo_n "checking whether set_fs_pwd() is available... " >&6; } | |
15922 | ||
6ae7fef5 BB |
15923 | |
15924 | ||
dbe561d8 | 15925 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
15926 | /* confdefs.h. */ |
15927 | _ACEOF | |
15928 | cat confdefs.h >>conftest.$ac_ext | |
15929 | cat >>conftest.$ac_ext <<_ACEOF | |
15930 | /* end confdefs.h. */ | |
15931 | ||
15932 | ||
723aa3b0 ED |
15933 | #include <linux/spinlock.h> |
15934 | #include <linux/fs_struct.h> | |
6ae7fef5 BB |
15935 | |
15936 | int | |
15937 | main (void) | |
15938 | { | |
15939 | ||
723aa3b0 | 15940 | (void) set_fs_pwd; |
6ae7fef5 BB |
15941 | |
15942 | ; | |
15943 | return 0; | |
15944 | } | |
15945 | ||
15946 | _ACEOF | |
15947 | ||
15948 | ||
df7cc5bc | 15949 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 15950 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
15951 | modpost_flag='' |
15952 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
15953 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
15954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15955 | (eval $ac_try) 2>&5 | |
15956 | ac_status=$? | |
8934764e | 15957 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
15958 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
15959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15960 | (eval $ac_try) 2>&5 | |
15961 | ac_status=$? | |
8934764e | 15962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 15963 | (exit $ac_status); }; }; then |
723aa3b0 ED |
15964 | rc=0 |
15965 | else | |
15966 | $as_echo "$as_me: failed program was:" >&5 | |
15967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15968 | rc=1 | |
6ae7fef5 | 15969 | |
6ae7fef5 | 15970 | |
723aa3b0 | 15971 | fi |
6ae7fef5 | 15972 | |
723aa3b0 | 15973 | rm -Rf build |
6ae7fef5 | 15974 | |
723aa3b0 ED |
15975 | |
15976 | if test $rc -ne 0; then : | |
15977 | ||
15978 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
15979 | $as_echo "no" >&6; } | |
15980 | ||
15981 | else | |
15982 | if test "x$enable_linux_builtin" != xyes; then | |
15983 | ||
15984 | grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \ | |
15985 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
15986 | rc=$? | |
15987 | if test $rc -ne 0; then | |
15988 | export=0 | |
15989 | for file in ; do | |
15990 | grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \ | |
15991 | "$LINUX_OBJ/$file" 2>/dev/null | |
15992 | rc=$? | |
15993 | if test $rc -eq 0; then | |
15994 | export=1 | |
15995 | break; | |
15996 | fi | |
15997 | done | |
15998 | if test $export -eq 0; then : | |
15999 | rc=1 | |
16000 | else : | |
16001 | rc=0 | |
16002 | fi | |
16003 | else : | |
16004 | rc=0 | |
16005 | fi | |
16006 | ||
16007 | fi | |
16008 | if test $rc -ne 0; then : | |
6ae7fef5 | 16009 | |
8934764e BB |
16010 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16011 | $as_echo "no" >&6; } | |
6ae7fef5 | 16012 | |
723aa3b0 | 16013 | else : |
6ae7fef5 | 16014 | |
723aa3b0 ED |
16015 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16016 | $as_echo "yes" >&6; } | |
6ae7fef5 | 16017 | |
723aa3b0 ED |
16018 | cat >>confdefs.h <<\_ACEOF |
16019 | #define HAVE_SET_FS_PWD 1 | |
16020 | _ACEOF | |
6ae7fef5 | 16021 | |
6ae7fef5 | 16022 | |
723aa3b0 ED |
16023 | fi |
16024 | fi | |
6ae7fef5 BB |
16025 | |
16026 | ||
723aa3b0 ED |
16027 | { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5 |
16028 | $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; } | |
6ae7fef5 BB |
16029 | |
16030 | ||
dbe561d8 | 16031 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
16032 | /* confdefs.h. */ |
16033 | _ACEOF | |
16034 | cat confdefs.h >>conftest.$ac_ext | |
16035 | cat >>conftest.$ac_ext <<_ACEOF | |
16036 | /* end confdefs.h. */ | |
16037 | ||
16038 | ||
723aa3b0 ED |
16039 | #include <linux/sched.h> |
16040 | #include <linux/fs_struct.h> | |
6ae7fef5 BB |
16041 | |
16042 | int | |
16043 | main (void) | |
16044 | { | |
16045 | ||
723aa3b0 | 16046 | set_fs_pwd(NULL, NULL); |
6ae7fef5 BB |
16047 | |
16048 | ; | |
16049 | return 0; | |
16050 | } | |
16051 | ||
16052 | _ACEOF | |
16053 | ||
16054 | ||
df7cc5bc | 16055 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 16056 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
16057 | modpost_flag='' |
16058 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16059 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
16060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16061 | (eval $ac_try) 2>&5 | |
16062 | ac_status=$? | |
8934764e | 16063 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
16064 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16066 | (eval $ac_try) 2>&5 | |
16067 | ac_status=$? | |
8934764e | 16068 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
16069 | (exit $ac_status); }; }; then |
16070 | ||
8934764e BB |
16071 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16072 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
16073 | |
16074 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 16075 | #define HAVE_2ARGS_SET_FS_PWD 1 |
6ae7fef5 BB |
16076 | _ACEOF |
16077 | ||
16078 | ||
16079 | else | |
8934764e | 16080 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
16081 | sed 's/^/| /' conftest.$ac_ext >&5 |
16082 | ||
8934764e BB |
16083 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16084 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
16085 | |
16086 | ||
16087 | ||
16088 | fi | |
16089 | ||
16090 | rm -Rf build | |
16091 | ||
16092 | ||
16093 | ||
723aa3b0 ED |
16094 | { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5 |
16095 | $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; } | |
0d0b5237 BB |
16096 | |
16097 | ||
16098 | cat confdefs.h - <<_ACEOF >conftest.c | |
16099 | /* confdefs.h. */ | |
16100 | _ACEOF | |
16101 | cat confdefs.h >>conftest.$ac_ext | |
16102 | cat >>conftest.$ac_ext <<_ACEOF | |
16103 | /* end confdefs.h. */ | |
16104 | ||
16105 | ||
16106 | #include <linux/fs.h> | |
16107 | ||
16108 | int | |
16109 | main (void) | |
16110 | { | |
16111 | ||
723aa3b0 | 16112 | vfs_unlink(NULL, NULL); |
0d0b5237 BB |
16113 | |
16114 | ; | |
16115 | return 0; | |
16116 | } | |
16117 | ||
16118 | _ACEOF | |
16119 | ||
16120 | ||
df7cc5bc | 16121 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
0d0b5237 | 16122 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
16123 | modpost_flag='' |
16124 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16125 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
0d0b5237 BB |
16126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16127 | (eval $ac_try) 2>&5 | |
16128 | ac_status=$? | |
16129 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16130 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16132 | (eval $ac_try) 2>&5 | |
16133 | ac_status=$? | |
16134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16135 | (exit $ac_status); }; }; then | |
16136 | ||
16137 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16138 | $as_echo "yes" >&6; } | |
16139 | ||
16140 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 16141 | #define HAVE_2ARGS_VFS_UNLINK 1 |
0d0b5237 BB |
16142 | _ACEOF |
16143 | ||
16144 | ||
16145 | else | |
16146 | $as_echo "$as_me: failed program was:" >&5 | |
16147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16148 | ||
16149 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16150 | $as_echo "no" >&6; } | |
16151 | ||
16152 | ||
16153 | ||
16154 | fi | |
16155 | ||
16156 | rm -Rf build | |
16157 | ||
16158 | ||
16159 | ||
723aa3b0 ED |
16160 | { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5 |
16161 | $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; } | |
9b2048c2 BB |
16162 | |
16163 | ||
16164 | cat confdefs.h - <<_ACEOF >conftest.c | |
16165 | /* confdefs.h. */ | |
16166 | _ACEOF | |
16167 | cat confdefs.h >>conftest.$ac_ext | |
16168 | cat >>conftest.$ac_ext <<_ACEOF | |
16169 | /* end confdefs.h. */ | |
16170 | ||
16171 | ||
723aa3b0 | 16172 | #include <linux/fs.h> |
9b2048c2 BB |
16173 | |
16174 | int | |
16175 | main (void) | |
16176 | { | |
16177 | ||
723aa3b0 | 16178 | vfs_rename(NULL, NULL, NULL, NULL); |
9b2048c2 BB |
16179 | |
16180 | ; | |
16181 | return 0; | |
16182 | } | |
16183 | ||
16184 | _ACEOF | |
16185 | ||
16186 | ||
df7cc5bc | 16187 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
9b2048c2 | 16188 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
16189 | modpost_flag='' |
16190 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16191 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
9b2048c2 BB |
16192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16193 | (eval $ac_try) 2>&5 | |
16194 | ac_status=$? | |
16195 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16196 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16198 | (eval $ac_try) 2>&5 | |
16199 | ac_status=$? | |
16200 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16201 | (exit $ac_status); }; }; then | |
16202 | ||
16203 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16204 | $as_echo "yes" >&6; } | |
16205 | ||
16206 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 16207 | #define HAVE_4ARGS_VFS_RENAME 1 |
9b2048c2 BB |
16208 | _ACEOF |
16209 | ||
16210 | ||
16211 | else | |
16212 | $as_echo "$as_me: failed program was:" >&5 | |
16213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16214 | ||
16215 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16216 | $as_echo "no" >&6; } | |
16217 | ||
16218 | ||
16219 | ||
16220 | fi | |
16221 | ||
16222 | rm -Rf build | |
16223 | ||
16224 | ||
16225 | ||
723aa3b0 ED |
16226 | { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() is available" >&5 |
16227 | $as_echo_n "checking whether vfs_fsync() is available... " >&6; } | |
9b2048c2 | 16228 | |
6ae7fef5 BB |
16229 | |
16230 | ||
dbe561d8 | 16231 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
16232 | /* confdefs.h. */ |
16233 | _ACEOF | |
16234 | cat confdefs.h >>conftest.$ac_ext | |
16235 | cat >>conftest.$ac_ext <<_ACEOF | |
16236 | /* end confdefs.h. */ | |
16237 | ||
16238 | ||
723aa3b0 | 16239 | #include <linux/fs.h> |
6ae7fef5 BB |
16240 | |
16241 | int | |
16242 | main (void) | |
16243 | { | |
16244 | ||
723aa3b0 | 16245 | (void) vfs_fsync; |
6ae7fef5 BB |
16246 | |
16247 | ; | |
16248 | return 0; | |
16249 | } | |
16250 | ||
16251 | _ACEOF | |
16252 | ||
16253 | ||
df7cc5bc | 16254 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 16255 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
16256 | modpost_flag='' |
16257 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16258 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
16259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16260 | (eval $ac_try) 2>&5 | |
16261 | ac_status=$? | |
8934764e | 16262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
16263 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16265 | (eval $ac_try) 2>&5 | |
16266 | ac_status=$? | |
8934764e | 16267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 16268 | (exit $ac_status); }; }; then |
723aa3b0 | 16269 | rc=0 |
6ae7fef5 | 16270 | else |
8934764e | 16271 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 | 16272 | sed 's/^/| /' conftest.$ac_ext >&5 |
723aa3b0 | 16273 | rc=1 |
6ae7fef5 BB |
16274 | |
16275 | ||
16276 | fi | |
16277 | ||
16278 | rm -Rf build | |
16279 | ||
16280 | ||
723aa3b0 | 16281 | if test $rc -ne 0; then : |
6ae7fef5 | 16282 | |
723aa3b0 ED |
16283 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16284 | $as_echo "no" >&6; } | |
6ae7fef5 | 16285 | |
723aa3b0 ED |
16286 | else |
16287 | if test "x$enable_linux_builtin" != xyes; then | |
16288 | ||
16289 | grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \ | |
6ae7fef5 BB |
16290 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
16291 | rc=$? | |
16292 | if test $rc -ne 0; then | |
16293 | export=0 | |
723aa3b0 ED |
16294 | for file in fs/sync.c; do |
16295 | grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \ | |
6ae7fef5 BB |
16296 | "$LINUX_OBJ/$file" 2>/dev/null |
16297 | rc=$? | |
723aa3b0 ED |
16298 | if test $rc -eq 0; then |
16299 | export=1 | |
16300 | break; | |
16301 | fi | |
6ae7fef5 | 16302 | done |
723aa3b0 ED |
16303 | if test $export -eq 0; then : |
16304 | rc=1 | |
16305 | else : | |
16306 | rc=0 | |
6ae7fef5 | 16307 | fi |
723aa3b0 ED |
16308 | else : |
16309 | rc=0 | |
6ae7fef5 BB |
16310 | fi |
16311 | ||
723aa3b0 ED |
16312 | fi |
16313 | if test $rc -ne 0; then : | |
6ae7fef5 | 16314 | |
723aa3b0 | 16315 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8934764e | 16316 | $as_echo "no" >&6; } |
e811949a | 16317 | |
723aa3b0 | 16318 | else : |
e811949a | 16319 | |
8934764e BB |
16320 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16321 | $as_echo "yes" >&6; } | |
e811949a BB |
16322 | |
16323 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 16324 | #define HAVE_VFS_FSYNC 1 |
e811949a BB |
16325 | _ACEOF |
16326 | ||
723aa3b0 ED |
16327 | |
16328 | fi | |
e811949a BB |
16329 | fi |
16330 | ||
16331 | ||
3977f837 | 16332 | |
723aa3b0 ED |
16333 | { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5 |
16334 | $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; } | |
3977f837 BB |
16335 | |
16336 | ||
dbe561d8 | 16337 | cat confdefs.h - <<_ACEOF >conftest.c |
3977f837 BB |
16338 | /* confdefs.h. */ |
16339 | _ACEOF | |
16340 | cat confdefs.h >>conftest.$ac_ext | |
16341 | cat >>conftest.$ac_ext <<_ACEOF | |
16342 | /* end confdefs.h. */ | |
16343 | ||
16344 | ||
723aa3b0 | 16345 | #include <linux/fs.h> |
3977f837 BB |
16346 | |
16347 | int | |
16348 | main (void) | |
16349 | { | |
16350 | ||
723aa3b0 | 16351 | vfs_fsync(NULL, 0); |
3977f837 BB |
16352 | |
16353 | ; | |
16354 | return 0; | |
16355 | } | |
16356 | ||
16357 | _ACEOF | |
16358 | ||
16359 | ||
df7cc5bc | 16360 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
3977f837 | 16361 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
16362 | modpost_flag='' |
16363 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16364 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
3977f837 BB |
16365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16366 | (eval $ac_try) 2>&5 | |
16367 | ac_status=$? | |
8934764e | 16368 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3977f837 BB |
16369 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
16370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16371 | (eval $ac_try) 2>&5 | |
16372 | ac_status=$? | |
8934764e | 16373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3977f837 BB |
16374 | (exit $ac_status); }; }; then |
16375 | ||
8934764e BB |
16376 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16377 | $as_echo "yes" >&6; } | |
3977f837 BB |
16378 | |
16379 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 16380 | #define HAVE_2ARGS_VFS_FSYNC 1 |
3977f837 BB |
16381 | _ACEOF |
16382 | ||
16383 | ||
16384 | else | |
8934764e | 16385 | $as_echo "$as_me: failed program was:" >&5 |
3977f837 BB |
16386 | sed 's/^/| /' conftest.$ac_ext >&5 |
16387 | ||
8934764e BB |
16388 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16389 | $as_echo "no" >&6; } | |
3977f837 BB |
16390 | |
16391 | ||
16392 | ||
16393 | fi | |
16394 | ||
16395 | rm -Rf build | |
16396 | ||
16397 | ||
16398 | ||
b868e22f | 16399 | |
723aa3b0 ED |
16400 | { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5 |
16401 | $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; } | |
16402 | tmp_flags="$EXTRA_KCFLAGS" | |
16403 | EXTRA_KCFLAGS="-Werror" | |
b868e22f | 16404 | |
b868e22f | 16405 | |
723aa3b0 ED |
16406 | cat confdefs.h - <<_ACEOF >conftest.c |
16407 | /* confdefs.h. */ | |
b868e22f | 16408 | _ACEOF |
723aa3b0 ED |
16409 | cat confdefs.h >>conftest.$ac_ext |
16410 | cat >>conftest.$ac_ext <<_ACEOF | |
16411 | /* end confdefs.h. */ | |
b868e22f | 16412 | |
b868e22f | 16413 | |
723aa3b0 ED |
16414 | #include <linux/sched.h> |
16415 | #include <linux/fs_struct.h> | |
b868e22f | 16416 | |
723aa3b0 ED |
16417 | int |
16418 | main (void) | |
16419 | { | |
b868e22f | 16420 | |
723aa3b0 ED |
16421 | struct fs_struct fs; |
16422 | spin_lock_init(&fs.lock); | |
b868e22f | 16423 | |
723aa3b0 ED |
16424 | ; |
16425 | return 0; | |
16426 | } | |
f0ff89fc | 16427 | |
723aa3b0 | 16428 | _ACEOF |
46aa7b39 | 16429 | |
46aa7b39 | 16430 | |
723aa3b0 ED |
16431 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
16432 | echo "obj-m := conftest.o" >build/Makefile | |
16433 | modpost_flag='' | |
16434 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16435 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16437 | (eval $ac_try) 2>&5 | |
16438 | ac_status=$? | |
16439 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16440 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16442 | (eval $ac_try) 2>&5 | |
16443 | ac_status=$? | |
16444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16445 | (exit $ac_status); }; }; then | |
46aa7b39 | 16446 | |
46aa7b39 NB |
16447 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16448 | $as_echo "yes" >&6; } | |
16449 | ||
16450 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 16451 | #define HAVE_FS_STRUCT_SPINLOCK 1 |
46aa7b39 NB |
16452 | _ACEOF |
16453 | ||
46aa7b39 | 16454 | |
723aa3b0 ED |
16455 | else |
16456 | $as_echo "$as_me: failed program was:" >&5 | |
16457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
914b0631 | 16458 | |
723aa3b0 | 16459 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
914b0631 BB |
16460 | $as_echo "no" >&6; } |
16461 | ||
5f6c14b1 | 16462 | |
5f6c14b1 | 16463 | |
723aa3b0 | 16464 | fi |
5f6c14b1 | 16465 | |
723aa3b0 | 16466 | rm -Rf build |
5f6c14b1 | 16467 | |
5f6c14b1 | 16468 | |
723aa3b0 | 16469 | EXTRA_KCFLAGS="$tmp_flags" |
5f6c14b1 | 16470 | |
914b0631 | 16471 | |
723aa3b0 ED |
16472 | { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5 |
16473 | $as_echo_n "checking whether struct cred exists... " >&6; } | |
9b0f9079 BB |
16474 | |
16475 | ||
16476 | cat confdefs.h - <<_ACEOF >conftest.c | |
16477 | /* confdefs.h. */ | |
16478 | _ACEOF | |
16479 | cat confdefs.h >>conftest.$ac_ext | |
16480 | cat >>conftest.$ac_ext <<_ACEOF | |
16481 | /* end confdefs.h. */ | |
16482 | ||
16483 | ||
723aa3b0 | 16484 | #include <linux/cred.h> |
9b0f9079 BB |
16485 | |
16486 | int | |
16487 | main (void) | |
16488 | { | |
16489 | ||
723aa3b0 ED |
16490 | struct cred *cr __attribute__ ((unused)); |
16491 | cr = NULL; | |
9b0f9079 BB |
16492 | |
16493 | ; | |
16494 | return 0; | |
16495 | } | |
16496 | ||
16497 | _ACEOF | |
16498 | ||
16499 | ||
df7cc5bc | 16500 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
9b0f9079 | 16501 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
16502 | modpost_flag='' |
16503 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16504 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
9b0f9079 BB |
16505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16506 | (eval $ac_try) 2>&5 | |
16507 | ac_status=$? | |
16508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16509 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16511 | (eval $ac_try) 2>&5 | |
16512 | ac_status=$? | |
16513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16514 | (exit $ac_status); }; }; then | |
16515 | ||
16516 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16517 | $as_echo "yes" >&6; } | |
16518 | ||
16519 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 16520 | #define HAVE_CRED_STRUCT 1 |
9b0f9079 BB |
16521 | _ACEOF |
16522 | ||
16523 | ||
16524 | else | |
16525 | $as_echo "$as_me: failed program was:" >&5 | |
16526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16527 | ||
16528 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16529 | $as_echo "no" >&6; } | |
16530 | ||
16531 | ||
16532 | ||
16533 | fi | |
16534 | ||
16535 | rm -Rf build | |
16536 | ||
16537 | ||
16538 | ||
723aa3b0 ED |
16539 | { $as_echo "$as_me:$LINENO: checking whether groups_search() is available" >&5 |
16540 | $as_echo_n "checking whether groups_search() is available... " >&6; } | |
e76f4bf1 | 16541 | |
e76f4bf1 | 16542 | |
e76f4bf1 | 16543 | |
723aa3b0 ED |
16544 | cat confdefs.h - <<_ACEOF >conftest.c |
16545 | /* confdefs.h. */ | |
e76f4bf1 | 16546 | _ACEOF |
723aa3b0 ED |
16547 | cat confdefs.h >>conftest.$ac_ext |
16548 | cat >>conftest.$ac_ext <<_ACEOF | |
16549 | /* end confdefs.h. */ | |
e76f4bf1 | 16550 | |
e76f4bf1 | 16551 | |
723aa3b0 | 16552 | #include <linux/cred.h> |
e76f4bf1 | 16553 | |
723aa3b0 ED |
16554 | int |
16555 | main (void) | |
16556 | { | |
e76f4bf1 | 16557 | |
723aa3b0 | 16558 | groups_search(NULL, 0); |
e76f4bf1 | 16559 | |
723aa3b0 ED |
16560 | ; |
16561 | return 0; | |
16562 | } | |
e76f4bf1 | 16563 | |
e76f4bf1 BB |
16564 | _ACEOF |
16565 | ||
e76f4bf1 | 16566 | |
723aa3b0 ED |
16567 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
16568 | echo "obj-m := conftest.o" >build/Makefile | |
16569 | modpost_flag='' | |
16570 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16571 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
16572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16573 | (eval $ac_try) 2>&5 | |
16574 | ac_status=$? | |
16575 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16576 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16578 | (eval $ac_try) 2>&5 | |
16579 | ac_status=$? | |
16580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16581 | (exit $ac_status); }; }; then | |
16582 | rc=0 | |
16583 | else | |
16584 | $as_echo "$as_me: failed program was:" >&5 | |
16585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16586 | rc=1 | |
e76f4bf1 | 16587 | |
e76f4bf1 | 16588 | |
723aa3b0 | 16589 | fi |
e76f4bf1 | 16590 | |
723aa3b0 | 16591 | rm -Rf build |
b1cbc461 | 16592 | |
12ff95ff | 16593 | |
723aa3b0 ED |
16594 | if test $rc -ne 0; then : |
16595 | ||
12ff95ff BB |
16596 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16597 | $as_echo "no" >&6; } | |
16598 | ||
16599 | else | |
723aa3b0 | 16600 | if test "x$enable_linux_builtin" != xyes; then |
12ff95ff | 16601 | |
723aa3b0 | 16602 | grep -q -E '[[:space:]]groups_search[[:space:]]' \ |
b1cbc461 BB |
16603 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
16604 | rc=$? | |
16605 | if test $rc -ne 0; then | |
16606 | export=0 | |
723aa3b0 ED |
16607 | for file in ; do |
16608 | grep -q -E "EXPORT_SYMBOL.*(groups_search)" \ | |
b1cbc461 BB |
16609 | "$LINUX_OBJ/$file" 2>/dev/null |
16610 | rc=$? | |
723aa3b0 ED |
16611 | if test $rc -eq 0; then |
16612 | export=1 | |
16613 | break; | |
16614 | fi | |
b1cbc461 | 16615 | done |
723aa3b0 ED |
16616 | if test $export -eq 0; then : |
16617 | rc=1 | |
16618 | else : | |
16619 | rc=0 | |
16620 | fi | |
16621 | else : | |
16622 | rc=0 | |
16623 | fi | |
b1cbc461 | 16624 | |
723aa3b0 ED |
16625 | fi |
16626 | if test $rc -ne 0; then : | |
b1cbc461 | 16627 | |
723aa3b0 ED |
16628 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16629 | $as_echo "no" >&6; } | |
16630 | ||
16631 | else : | |
b1cbc461 | 16632 | |
b1cbc461 BB |
16633 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16634 | $as_echo "yes" >&6; } | |
16635 | ||
16636 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 16637 | #define HAVE_GROUPS_SEARCH 1 |
b1cbc461 BB |
16638 | _ACEOF |
16639 | ||
723aa3b0 ED |
16640 | |
16641 | fi | |
b1cbc461 BB |
16642 | fi |
16643 | ||
16644 | ||
723aa3b0 ED |
16645 | { $as_echo "$as_me:$LINENO: checking whether __put_task_struct() is available" >&5 |
16646 | $as_echo_n "checking whether __put_task_struct() is available... " >&6; } | |
16647 | ||
3dfc591a BB |
16648 | |
16649 | ||
16650 | cat confdefs.h - <<_ACEOF >conftest.c | |
16651 | /* confdefs.h. */ | |
16652 | _ACEOF | |
16653 | cat confdefs.h >>conftest.$ac_ext | |
16654 | cat >>conftest.$ac_ext <<_ACEOF | |
16655 | /* end confdefs.h. */ | |
16656 | ||
16657 | ||
723aa3b0 | 16658 | #include <linux/sched.h> |
3dfc591a BB |
16659 | |
16660 | int | |
16661 | main (void) | |
16662 | { | |
16663 | ||
723aa3b0 | 16664 | __put_task_struct(NULL); |
3dfc591a BB |
16665 | |
16666 | ; | |
16667 | return 0; | |
16668 | } | |
16669 | ||
16670 | _ACEOF | |
16671 | ||
16672 | ||
df7cc5bc | 16673 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
3dfc591a | 16674 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
16675 | modpost_flag='' |
16676 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16677 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
3dfc591a BB |
16678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16679 | (eval $ac_try) 2>&5 | |
16680 | ac_status=$? | |
16681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16682 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16684 | (eval $ac_try) 2>&5 | |
16685 | ac_status=$? | |
16686 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16687 | (exit $ac_status); }; }; then | |
723aa3b0 ED |
16688 | rc=0 |
16689 | else | |
16690 | $as_echo "$as_me: failed program was:" >&5 | |
16691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16692 | rc=1 | |
3dfc591a | 16693 | |
3dfc591a | 16694 | |
723aa3b0 ED |
16695 | fi |
16696 | ||
16697 | rm -Rf build | |
3dfc591a BB |
16698 | |
16699 | ||
723aa3b0 | 16700 | if test $rc -ne 0; then : |
3dfc591a BB |
16701 | |
16702 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16703 | $as_echo "no" >&6; } | |
16704 | ||
723aa3b0 ED |
16705 | else |
16706 | if test "x$enable_linux_builtin" != xyes; then | |
16707 | ||
16708 | grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \ | |
16709 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
16710 | rc=$? | |
16711 | if test $rc -ne 0; then | |
16712 | export=0 | |
16713 | for file in ; do | |
16714 | grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \ | |
16715 | "$LINUX_OBJ/$file" 2>/dev/null | |
16716 | rc=$? | |
16717 | if test $rc -eq 0; then | |
16718 | export=1 | |
16719 | break; | |
16720 | fi | |
16721 | done | |
16722 | if test $export -eq 0; then : | |
16723 | rc=1 | |
16724 | else : | |
16725 | rc=0 | |
16726 | fi | |
16727 | else : | |
16728 | rc=0 | |
16729 | fi | |
3dfc591a | 16730 | |
723aa3b0 ED |
16731 | fi |
16732 | if test $rc -ne 0; then : | |
3dfc591a | 16733 | |
723aa3b0 ED |
16734 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16735 | $as_echo "no" >&6; } | |
a55bcaad | 16736 | |
723aa3b0 | 16737 | else : |
a55bcaad | 16738 | |
723aa3b0 ED |
16739 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16740 | $as_echo "yes" >&6; } | |
a55bcaad | 16741 | |
723aa3b0 ED |
16742 | cat >>confdefs.h <<\_ACEOF |
16743 | #define HAVE_PUT_TASK_STRUCT 1 | |
16744 | _ACEOF | |
a55bcaad BB |
16745 | |
16746 | ||
723aa3b0 ED |
16747 | fi |
16748 | fi | |
16749 | ||
16750 | ||
16751 | ||
16752 | { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5 | |
16753 | $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; } | |
a55bcaad BB |
16754 | |
16755 | ||
16756 | cat confdefs.h - <<_ACEOF >conftest.c | |
16757 | /* confdefs.h. */ | |
16758 | _ACEOF | |
16759 | cat confdefs.h >>conftest.$ac_ext | |
16760 | cat >>conftest.$ac_ext <<_ACEOF | |
16761 | /* end confdefs.h. */ | |
16762 | ||
16763 | ||
723aa3b0 | 16764 | #include <linux/sysctl.h> |
a55bcaad BB |
16765 | |
16766 | int | |
16767 | main (void) | |
16768 | { | |
16769 | ||
723aa3b0 | 16770 | proc_dostring(NULL, 0, NULL, NULL, NULL); |
a55bcaad BB |
16771 | |
16772 | ; | |
16773 | return 0; | |
16774 | } | |
16775 | ||
16776 | _ACEOF | |
16777 | ||
16778 | ||
df7cc5bc | 16779 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
a55bcaad | 16780 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
16781 | modpost_flag='' |
16782 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16783 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
a55bcaad BB |
16784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16785 | (eval $ac_try) 2>&5 | |
16786 | ac_status=$? | |
16787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16788 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16790 | (eval $ac_try) 2>&5 | |
16791 | ac_status=$? | |
16792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16793 | (exit $ac_status); }; }; then | |
16794 | ||
16795 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16796 | $as_echo "yes" >&6; } | |
16797 | ||
16798 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 16799 | #define HAVE_5ARGS_PROC_HANDLER 1 |
a55bcaad BB |
16800 | _ACEOF |
16801 | ||
16802 | ||
16803 | else | |
16804 | $as_echo "$as_me: failed program was:" >&5 | |
16805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16806 | ||
16807 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16808 | $as_echo "no" >&6; } | |
16809 | ||
16810 | ||
16811 | ||
3dfc591a BB |
16812 | fi |
16813 | ||
16814 | rm -Rf build | |
16815 | ||
16816 | ||
16817 | ||
723aa3b0 ED |
16818 | { $as_echo "$as_me:$LINENO: checking whether kvasprintf() is available" >&5 |
16819 | $as_echo_n "checking whether kvasprintf() is available... " >&6; } | |
588d9004 | 16820 | |
588d9004 DH |
16821 | |
16822 | ||
16823 | cat confdefs.h - <<_ACEOF >conftest.c | |
16824 | /* confdefs.h. */ | |
16825 | _ACEOF | |
16826 | cat confdefs.h >>conftest.$ac_ext | |
16827 | cat >>conftest.$ac_ext <<_ACEOF | |
16828 | /* end confdefs.h. */ | |
16829 | ||
16830 | ||
723aa3b0 | 16831 | #include <linux/kernel.h> |
588d9004 DH |
16832 | |
16833 | int | |
16834 | main (void) | |
16835 | { | |
16836 | ||
723aa3b0 | 16837 | kvasprintf(0, NULL, *((va_list*)NULL)); |
588d9004 DH |
16838 | |
16839 | ; | |
16840 | return 0; | |
16841 | } | |
16842 | ||
16843 | _ACEOF | |
16844 | ||
16845 | ||
df7cc5bc | 16846 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
588d9004 | 16847 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
16848 | modpost_flag='' |
16849 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16850 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
588d9004 DH |
16851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16852 | (eval $ac_try) 2>&5 | |
16853 | ac_status=$? | |
16854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16855 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16857 | (eval $ac_try) 2>&5 | |
16858 | ac_status=$? | |
16859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16860 | (exit $ac_status); }; }; then | |
723aa3b0 ED |
16861 | rc=0 |
16862 | else | |
16863 | $as_echo "$as_me: failed program was:" >&5 | |
16864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16865 | rc=1 | |
588d9004 | 16866 | |
588d9004 | 16867 | |
723aa3b0 | 16868 | fi |
588d9004 | 16869 | |
723aa3b0 | 16870 | rm -Rf build |
588d9004 | 16871 | |
723aa3b0 ED |
16872 | |
16873 | if test $rc -ne 0; then : | |
588d9004 DH |
16874 | |
16875 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16876 | $as_echo "no" >&6; } | |
16877 | ||
723aa3b0 ED |
16878 | else |
16879 | if test "x$enable_linux_builtin" != xyes; then | |
588d9004 | 16880 | |
723aa3b0 ED |
16881 | grep -q -E '[[:space:]]kvasprintf[[:space:]]' \ |
16882 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
16883 | rc=$? | |
16884 | if test $rc -ne 0; then | |
16885 | export=0 | |
16886 | for file in ; do | |
16887 | grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \ | |
16888 | "$LINUX_OBJ/$file" 2>/dev/null | |
16889 | rc=$? | |
16890 | if test $rc -eq 0; then | |
16891 | export=1 | |
16892 | break; | |
16893 | fi | |
16894 | done | |
16895 | if test $export -eq 0; then : | |
16896 | rc=1 | |
16897 | else : | |
16898 | rc=0 | |
16899 | fi | |
16900 | else : | |
16901 | rc=0 | |
16902 | fi | |
588d9004 | 16903 | |
723aa3b0 ED |
16904 | fi |
16905 | if test $rc -ne 0; then : | |
588d9004 | 16906 | |
723aa3b0 ED |
16907 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16908 | $as_echo "no" >&6; } | |
588d9004 | 16909 | |
723aa3b0 | 16910 | else : |
588d9004 | 16911 | |
723aa3b0 ED |
16912 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
16913 | $as_echo "yes" >&6; } | |
588d9004 | 16914 | |
723aa3b0 ED |
16915 | cat >>confdefs.h <<\_ACEOF |
16916 | #define HAVE_KVASPRINTF 1 | |
16917 | _ACEOF | |
16918 | ||
16919 | ||
16920 | fi | |
16921 | fi | |
16922 | ||
16923 | ||
16924 | { $as_echo "$as_me:$LINENO: checking whether rwsem_is_locked() acquires sem->wait_lock" >&5 | |
16925 | $as_echo_n "checking whether rwsem_is_locked() acquires sem->wait_lock... " >&6; } | |
36811b44 | 16926 | |
36811b44 RY |
16927 | |
16928 | ||
16929 | cat confdefs.h - <<_ACEOF >conftest.c | |
16930 | /* confdefs.h. */ | |
16931 | _ACEOF | |
16932 | cat confdefs.h >>conftest.$ac_ext | |
16933 | cat >>conftest.$ac_ext <<_ACEOF | |
16934 | /* end confdefs.h. */ | |
16935 | ||
16936 | ||
723aa3b0 ED |
16937 | #include <linux/rwsem.h> |
16938 | int rwsem_is_locked(struct rw_semaphore *sem) { return 0; } | |
36811b44 RY |
16939 | |
16940 | int | |
16941 | main (void) | |
16942 | { | |
16943 | ||
36811b44 RY |
16944 | ; |
16945 | return 0; | |
16946 | } | |
16947 | ||
16948 | _ACEOF | |
16949 | ||
16950 | ||
df7cc5bc | 16951 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
36811b44 | 16952 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
16953 | modpost_flag='' |
16954 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
16955 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36811b44 RY |
16956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16957 | (eval $ac_try) 2>&5 | |
16958 | ac_status=$? | |
16959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16960 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16962 | (eval $ac_try) 2>&5 | |
16963 | ac_status=$? | |
16964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16965 | (exit $ac_status); }; }; then | |
723aa3b0 ED |
16966 | rc=0 |
16967 | else | |
16968 | $as_echo "$as_me: failed program was:" >&5 | |
16969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16970 | rc=1 | |
16971 | ||
16972 | ||
16973 | fi | |
16974 | ||
16975 | rm -Rf build | |
16976 | ||
16977 | ||
16978 | if test $rc -ne 0; then : | |
16979 | ||
16980 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16981 | $as_echo "no" >&6; } | |
16982 | ||
16983 | else | |
16984 | if test "x$enable_linux_builtin" != xyes; then | |
16985 | ||
16986 | grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \ | |
16987 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
16988 | rc=$? | |
16989 | if test $rc -ne 0; then | |
16990 | export=0 | |
16991 | for file in lib/rwsem-spinlock.c; do | |
16992 | grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \ | |
16993 | "$LINUX_OBJ/$file" 2>/dev/null | |
16994 | rc=$? | |
16995 | if test $rc -eq 0; then | |
16996 | export=1 | |
16997 | break; | |
16998 | fi | |
16999 | done | |
17000 | if test $export -eq 0; then : | |
17001 | rc=1 | |
17002 | else : | |
17003 | rc=0 | |
17004 | fi | |
17005 | else : | |
17006 | rc=0 | |
17007 | fi | |
17008 | ||
17009 | fi | |
17010 | if test $rc -ne 0; then : | |
17011 | ||
17012 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17013 | $as_echo "no" >&6; } | |
17014 | ||
17015 | else : | |
17016 | ||
17017 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17018 | $as_echo "yes" >&6; } | |
17019 | ||
17020 | cat >>confdefs.h <<\_ACEOF | |
17021 | #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1 | |
17022 | _ACEOF | |
17023 | ||
17024 | ||
17025 | fi | |
17026 | fi | |
17027 | ||
17028 | ||
17029 | ||
17030 | { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() is available" >&5 | |
17031 | $as_echo_n "checking whether invalidate_inodes() is available... " >&6; } | |
17032 | ||
17033 | ||
17034 | ||
17035 | cat confdefs.h - <<_ACEOF >conftest.c | |
17036 | /* confdefs.h. */ | |
17037 | _ACEOF | |
17038 | cat confdefs.h >>conftest.$ac_ext | |
17039 | cat >>conftest.$ac_ext <<_ACEOF | |
17040 | /* end confdefs.h. */ | |
17041 | ||
17042 | ||
17043 | #include <linux/fs.h> | |
17044 | ||
17045 | int | |
17046 | main (void) | |
17047 | { | |
17048 | ||
17049 | invalidate_inodes; | |
17050 | ||
17051 | ; | |
17052 | return 0; | |
17053 | } | |
17054 | ||
17055 | _ACEOF | |
17056 | ||
17057 | ||
17058 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17059 | echo "obj-m := conftest.o" >build/Makefile | |
17060 | modpost_flag='' | |
17061 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17062 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17064 | (eval $ac_try) 2>&5 | |
17065 | ac_status=$? | |
17066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17067 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17069 | (eval $ac_try) 2>&5 | |
17070 | ac_status=$? | |
17071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17072 | (exit $ac_status); }; }; then | |
17073 | rc=0 | |
17074 | else | |
17075 | $as_echo "$as_me: failed program was:" >&5 | |
17076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17077 | rc=1 | |
17078 | ||
17079 | ||
17080 | fi | |
17081 | ||
17082 | rm -Rf build | |
17083 | ||
17084 | ||
17085 | if test $rc -ne 0; then : | |
17086 | ||
17087 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17088 | $as_echo "no" >&6; } | |
17089 | ||
17090 | else | |
17091 | if test "x$enable_linux_builtin" != xyes; then | |
17092 | ||
17093 | grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \ | |
17094 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
17095 | rc=$? | |
17096 | if test $rc -ne 0; then | |
17097 | export=0 | |
17098 | for file in ; do | |
17099 | grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \ | |
17100 | "$LINUX_OBJ/$file" 2>/dev/null | |
17101 | rc=$? | |
17102 | if test $rc -eq 0; then | |
17103 | export=1 | |
17104 | break; | |
17105 | fi | |
17106 | done | |
17107 | if test $export -eq 0; then : | |
17108 | rc=1 | |
17109 | else : | |
17110 | rc=0 | |
17111 | fi | |
17112 | else : | |
17113 | rc=0 | |
17114 | fi | |
17115 | ||
17116 | fi | |
17117 | if test $rc -ne 0; then : | |
17118 | ||
17119 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17120 | $as_echo "no" >&6; } | |
17121 | ||
17122 | else : | |
17123 | ||
17124 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17125 | $as_echo "yes" >&6; } | |
17126 | ||
17127 | cat >>confdefs.h <<\_ACEOF | |
17128 | #define HAVE_INVALIDATE_INODES 1 | |
17129 | _ACEOF | |
17130 | ||
17131 | ||
17132 | fi | |
17133 | fi | |
17134 | ||
17135 | ||
17136 | { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes_check() is available" >&5 | |
17137 | $as_echo_n "checking whether invalidate_inodes_check() is available... " >&6; } | |
17138 | ||
17139 | ||
17140 | ||
17141 | cat confdefs.h - <<_ACEOF >conftest.c | |
17142 | /* confdefs.h. */ | |
17143 | _ACEOF | |
17144 | cat confdefs.h >>conftest.$ac_ext | |
17145 | cat >>conftest.$ac_ext <<_ACEOF | |
17146 | /* end confdefs.h. */ | |
17147 | ||
17148 | ||
17149 | #include <linux/fs.h> | |
476ff5a4 ED |
17150 | #ifndef invalidate_inodes |
17151 | #error invalidate_inodes is not a macro | |
17152 | #endif | |
723aa3b0 ED |
17153 | |
17154 | int | |
17155 | main (void) | |
17156 | { | |
17157 | ||
723aa3b0 ED |
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:$LINENO: \"$ac_try\"") >&5 | |
17171 | (eval $ac_try) 2>&5 | |
17172 | ac_status=$? | |
17173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17174 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17176 | (eval $ac_try) 2>&5 | |
17177 | ac_status=$? | |
17178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17179 | (exit $ac_status); }; }; then | |
17180 | rc=0 | |
17181 | else | |
17182 | $as_echo "$as_me: failed program was:" >&5 | |
17183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17184 | rc=1 | |
17185 | ||
17186 | ||
17187 | fi | |
17188 | ||
17189 | rm -Rf build | |
17190 | ||
17191 | ||
17192 | if test $rc -ne 0; then : | |
17193 | ||
17194 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17195 | $as_echo "no" >&6; } | |
17196 | ||
17197 | else | |
17198 | if test "x$enable_linux_builtin" != xyes; then | |
17199 | ||
17200 | grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \ | |
17201 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
17202 | rc=$? | |
17203 | if test $rc -ne 0; then | |
17204 | export=0 | |
17205 | for file in ; do | |
17206 | grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \ | |
17207 | "$LINUX_OBJ/$file" 2>/dev/null | |
17208 | rc=$? | |
17209 | if test $rc -eq 0; then | |
17210 | export=1 | |
17211 | break; | |
17212 | fi | |
17213 | done | |
17214 | if test $export -eq 0; then : | |
17215 | rc=1 | |
17216 | else : | |
17217 | rc=0 | |
17218 | fi | |
17219 | else : | |
17220 | rc=0 | |
17221 | fi | |
17222 | ||
17223 | fi | |
17224 | if test $rc -ne 0; then : | |
17225 | ||
17226 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17227 | $as_echo "no" >&6; } | |
17228 | ||
17229 | else : | |
17230 | ||
17231 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17232 | $as_echo "yes" >&6; } | |
17233 | ||
17234 | cat >>confdefs.h <<\_ACEOF | |
17235 | #define HAVE_INVALIDATE_INODES_CHECK 1 | |
17236 | _ACEOF | |
17237 | ||
17238 | ||
17239 | fi | |
17240 | fi | |
17241 | ||
17242 | ||
17243 | { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5 | |
17244 | $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; } | |
17245 | ||
17246 | ||
17247 | cat confdefs.h - <<_ACEOF >conftest.c | |
17248 | /* confdefs.h. */ | |
17249 | _ACEOF | |
17250 | cat confdefs.h >>conftest.$ac_ext | |
17251 | cat >>conftest.$ac_ext <<_ACEOF | |
17252 | /* end confdefs.h. */ | |
17253 | ||
17254 | ||
17255 | #include <linux/fs.h> | |
17256 | ||
17257 | int | |
17258 | main (void) | |
17259 | { | |
17260 | ||
17261 | return __invalidate_device(NULL, 0); | |
17262 | ||
17263 | ; | |
17264 | return 0; | |
17265 | } | |
17266 | ||
17267 | _ACEOF | |
17268 | ||
17269 | ||
17270 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17271 | echo "obj-m := conftest.o" >build/Makefile | |
17272 | modpost_flag='' | |
17273 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17274 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17276 | (eval $ac_try) 2>&5 | |
17277 | ac_status=$? | |
17278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17279 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17281 | (eval $ac_try) 2>&5 | |
17282 | ac_status=$? | |
17283 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17284 | (exit $ac_status); }; }; then | |
17285 | ||
17286 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17287 | $as_echo "yes" >&6; } | |
17288 | ||
17289 | cat >>confdefs.h <<\_ACEOF | |
17290 | #define HAVE_2ARGS_INVALIDATE_INODES 1 | |
17291 | _ACEOF | |
17292 | ||
17293 | ||
17294 | else | |
17295 | $as_echo "$as_me: failed program was:" >&5 | |
17296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17297 | ||
17298 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17299 | $as_echo "no" >&6; } | |
17300 | ||
17301 | ||
17302 | ||
17303 | fi | |
17304 | ||
17305 | rm -Rf build | |
17306 | ||
17307 | ||
17308 | ||
17309 | { $as_echo "$as_me:$LINENO: checking whether shrink_dcache_memory() is available" >&5 | |
17310 | $as_echo_n "checking whether shrink_dcache_memory() is available... " >&6; } | |
17311 | ||
17312 | ||
17313 | ||
17314 | cat confdefs.h - <<_ACEOF >conftest.c | |
17315 | /* confdefs.h. */ | |
17316 | _ACEOF | |
17317 | cat confdefs.h >>conftest.$ac_ext | |
17318 | cat >>conftest.$ac_ext <<_ACEOF | |
17319 | /* end confdefs.h. */ | |
17320 | ||
17321 | ||
17322 | #include <linux/dcache.h> | |
17323 | ||
17324 | int | |
17325 | main (void) | |
17326 | { | |
17327 | ||
17328 | shrink_dcache_memory(0, 0); | |
17329 | ||
17330 | ; | |
17331 | return 0; | |
17332 | } | |
17333 | ||
17334 | _ACEOF | |
17335 | ||
17336 | ||
17337 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17338 | echo "obj-m := conftest.o" >build/Makefile | |
17339 | modpost_flag='' | |
17340 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17341 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17343 | (eval $ac_try) 2>&5 | |
17344 | ac_status=$? | |
17345 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17346 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17348 | (eval $ac_try) 2>&5 | |
17349 | ac_status=$? | |
17350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17351 | (exit $ac_status); }; }; then | |
17352 | rc=0 | |
17353 | else | |
17354 | $as_echo "$as_me: failed program was:" >&5 | |
17355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17356 | rc=1 | |
17357 | ||
17358 | ||
17359 | fi | |
17360 | ||
17361 | rm -Rf build | |
17362 | ||
17363 | ||
17364 | if test $rc -ne 0; then : | |
17365 | ||
17366 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17367 | $as_echo "no" >&6; } | |
17368 | ||
17369 | else | |
17370 | if test "x$enable_linux_builtin" != xyes; then | |
17371 | ||
17372 | grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \ | |
17373 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
17374 | rc=$? | |
17375 | if test $rc -ne 0; then | |
17376 | export=0 | |
17377 | for file in fs/dcache.c; do | |
17378 | grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \ | |
17379 | "$LINUX_OBJ/$file" 2>/dev/null | |
17380 | rc=$? | |
17381 | if test $rc -eq 0; then | |
17382 | export=1 | |
17383 | break; | |
17384 | fi | |
17385 | done | |
17386 | if test $export -eq 0; then : | |
17387 | rc=1 | |
17388 | else : | |
17389 | rc=0 | |
17390 | fi | |
17391 | else : | |
17392 | rc=0 | |
17393 | fi | |
17394 | ||
17395 | fi | |
17396 | if test $rc -ne 0; then : | |
17397 | ||
17398 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17399 | $as_echo "no" >&6; } | |
17400 | ||
17401 | else : | |
17402 | ||
17403 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17404 | $as_echo "yes" >&6; } | |
17405 | ||
17406 | cat >>confdefs.h <<\_ACEOF | |
17407 | #define HAVE_SHRINK_DCACHE_MEMORY 1 | |
17408 | _ACEOF | |
17409 | ||
17410 | ||
17411 | fi | |
17412 | fi | |
17413 | ||
17414 | ||
17415 | { $as_echo "$as_me:$LINENO: checking whether shrink_icache_memory() is available" >&5 | |
17416 | $as_echo_n "checking whether shrink_icache_memory() is available... " >&6; } | |
17417 | ||
17418 | ||
17419 | ||
17420 | cat confdefs.h - <<_ACEOF >conftest.c | |
17421 | /* confdefs.h. */ | |
17422 | _ACEOF | |
17423 | cat confdefs.h >>conftest.$ac_ext | |
17424 | cat >>conftest.$ac_ext <<_ACEOF | |
17425 | /* end confdefs.h. */ | |
17426 | ||
17427 | ||
17428 | #include <linux/dcache.h> | |
17429 | ||
17430 | int | |
17431 | main (void) | |
17432 | { | |
17433 | ||
17434 | shrink_icache_memory(0, 0); | |
17435 | ||
17436 | ; | |
17437 | return 0; | |
17438 | } | |
17439 | ||
17440 | _ACEOF | |
17441 | ||
17442 | ||
17443 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17444 | echo "obj-m := conftest.o" >build/Makefile | |
17445 | modpost_flag='' | |
17446 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17447 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17449 | (eval $ac_try) 2>&5 | |
17450 | ac_status=$? | |
17451 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17452 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17454 | (eval $ac_try) 2>&5 | |
17455 | ac_status=$? | |
17456 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17457 | (exit $ac_status); }; }; then | |
17458 | rc=0 | |
17459 | else | |
17460 | $as_echo "$as_me: failed program was:" >&5 | |
17461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17462 | rc=1 | |
17463 | ||
17464 | ||
17465 | fi | |
17466 | ||
17467 | rm -Rf build | |
17468 | ||
17469 | ||
17470 | if test $rc -ne 0; then : | |
17471 | ||
17472 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17473 | $as_echo "no" >&6; } | |
17474 | ||
17475 | else | |
17476 | if test "x$enable_linux_builtin" != xyes; then | |
17477 | ||
17478 | grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \ | |
17479 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
17480 | rc=$? | |
17481 | if test $rc -ne 0; then | |
17482 | export=0 | |
17483 | for file in fs/inode.c; do | |
17484 | grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \ | |
17485 | "$LINUX_OBJ/$file" 2>/dev/null | |
17486 | rc=$? | |
17487 | if test $rc -eq 0; then | |
17488 | export=1 | |
17489 | break; | |
17490 | fi | |
17491 | done | |
17492 | if test $export -eq 0; then : | |
17493 | rc=1 | |
17494 | else : | |
17495 | rc=0 | |
17496 | fi | |
17497 | else : | |
17498 | rc=0 | |
17499 | fi | |
17500 | ||
17501 | fi | |
17502 | if test $rc -ne 0; then : | |
17503 | ||
17504 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17505 | $as_echo "no" >&6; } | |
17506 | ||
17507 | else : | |
17508 | ||
17509 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17510 | $as_echo "yes" >&6; } | |
17511 | ||
17512 | cat >>confdefs.h <<\_ACEOF | |
17513 | #define HAVE_SHRINK_ICACHE_MEMORY 1 | |
17514 | _ACEOF | |
17515 | ||
17516 | ||
17517 | fi | |
17518 | fi | |
17519 | ||
17520 | ||
17521 | ||
17522 | ||
17523 | { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5 | |
17524 | $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; } | |
17525 | header=0 | |
17526 | for file in include/linux/namei.h; do | |
17527 | grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null | |
17528 | rc=$? | |
17529 | if test $rc -eq 0; then | |
17530 | header=1 | |
17531 | break; | |
17532 | fi | |
17533 | done | |
17534 | if test $header -eq 0; then | |
17535 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17536 | $as_echo "no" >&6; } | |
17537 | ||
17538 | else | |
17539 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17540 | $as_echo "yes" >&6; } | |
17541 | ||
17542 | cat >>confdefs.h <<\_ACEOF | |
17543 | #define HAVE_KERN_PATH_PARENT_HEADER 1 | |
17544 | _ACEOF | |
17545 | ||
17546 | fi | |
17547 | ||
17548 | ||
17549 | { $as_echo "$as_me:$LINENO: checking whether kern_path_parent() is available" >&5 | |
17550 | $as_echo_n "checking whether kern_path_parent() is available... " >&6; } | |
17551 | ||
17552 | ||
17553 | ||
17554 | cat confdefs.h - <<_ACEOF >conftest.c | |
17555 | /* confdefs.h. */ | |
17556 | _ACEOF | |
17557 | cat confdefs.h >>conftest.$ac_ext | |
17558 | cat >>conftest.$ac_ext <<_ACEOF | |
17559 | /* end confdefs.h. */ | |
17560 | ||
17561 | ||
17562 | #include <linux/namei.h> | |
17563 | ||
17564 | int | |
17565 | main (void) | |
17566 | { | |
17567 | ||
17568 | kern_path_parent(NULL, NULL); | |
17569 | ||
17570 | ; | |
17571 | return 0; | |
17572 | } | |
17573 | ||
17574 | _ACEOF | |
17575 | ||
17576 | ||
17577 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17578 | echo "obj-m := conftest.o" >build/Makefile | |
17579 | modpost_flag='' | |
17580 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17581 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17583 | (eval $ac_try) 2>&5 | |
17584 | ac_status=$? | |
17585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17586 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17588 | (eval $ac_try) 2>&5 | |
17589 | ac_status=$? | |
17590 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17591 | (exit $ac_status); }; }; then | |
17592 | rc=0 | |
17593 | else | |
17594 | $as_echo "$as_me: failed program was:" >&5 | |
17595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17596 | rc=1 | |
17597 | ||
17598 | ||
17599 | fi | |
17600 | ||
17601 | rm -Rf build | |
17602 | ||
17603 | ||
17604 | if test $rc -ne 0; then : | |
17605 | ||
17606 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17607 | $as_echo "no" >&6; } | |
17608 | ||
17609 | else | |
17610 | if test "x$enable_linux_builtin" != xyes; then | |
17611 | ||
17612 | grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \ | |
17613 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
17614 | rc=$? | |
17615 | if test $rc -ne 0; then | |
17616 | export=0 | |
17617 | for file in fs/namei.c; do | |
17618 | grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \ | |
17619 | "$LINUX_OBJ/$file" 2>/dev/null | |
17620 | rc=$? | |
17621 | if test $rc -eq 0; then | |
17622 | export=1 | |
17623 | break; | |
17624 | fi | |
17625 | done | |
17626 | if test $export -eq 0; then : | |
17627 | rc=1 | |
17628 | else : | |
17629 | rc=0 | |
17630 | fi | |
17631 | else : | |
17632 | rc=0 | |
17633 | fi | |
17634 | ||
17635 | fi | |
17636 | if test $rc -ne 0; then : | |
17637 | ||
17638 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17639 | $as_echo "no" >&6; } | |
17640 | ||
17641 | else : | |
17642 | ||
17643 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17644 | $as_echo "yes" >&6; } | |
17645 | ||
17646 | cat >>confdefs.h <<\_ACEOF | |
17647 | #define HAVE_KERN_PATH_PARENT_SYMBOL 1 | |
17648 | _ACEOF | |
17649 | ||
17650 | ||
17651 | fi | |
17652 | fi | |
17653 | ||
17654 | ||
17655 | { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5 | |
17656 | $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; } | |
17657 | ||
17658 | ||
17659 | cat confdefs.h - <<_ACEOF >conftest.c | |
17660 | /* confdefs.h. */ | |
17661 | _ACEOF | |
17662 | cat confdefs.h >>conftest.$ac_ext | |
17663 | cat >>conftest.$ac_ext <<_ACEOF | |
17664 | /* end confdefs.h. */ | |
17665 | ||
17666 | ||
17667 | #include <linux/zlib.h> | |
17668 | ||
17669 | int | |
17670 | main (void) | |
17671 | { | |
17672 | ||
17673 | return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL); | |
17674 | ||
17675 | ; | |
17676 | return 0; | |
17677 | } | |
17678 | ||
17679 | _ACEOF | |
17680 | ||
17681 | ||
17682 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17683 | echo "obj-m := conftest.o" >build/Makefile | |
17684 | modpost_flag='' | |
17685 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17686 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17688 | (eval $ac_try) 2>&5 | |
17689 | ac_status=$? | |
17690 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17691 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17693 | (eval $ac_try) 2>&5 | |
17694 | ac_status=$? | |
17695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17696 | (exit $ac_status); }; }; then | |
17697 | ||
17698 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17699 | $as_echo "yes" >&6; } | |
17700 | ||
17701 | cat >>confdefs.h <<\_ACEOF | |
17702 | #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1 | |
17703 | _ACEOF | |
17704 | ||
17705 | ||
17706 | else | |
17707 | $as_echo "$as_me: failed program was:" >&5 | |
17708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17709 | ||
17710 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17711 | $as_echo "no" >&6; } | |
17712 | ||
17713 | ||
17714 | ||
17715 | fi | |
17716 | ||
17717 | rm -Rf build | |
17718 | ||
17719 | ||
17720 | ||
17721 | ||
17722 | { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5 | |
17723 | $as_echo_n "checking whether struct shrink_control exists... " >&6; } | |
17724 | ||
17725 | ||
17726 | cat confdefs.h - <<_ACEOF >conftest.c | |
17727 | /* confdefs.h. */ | |
17728 | _ACEOF | |
17729 | cat confdefs.h >>conftest.$ac_ext | |
17730 | cat >>conftest.$ac_ext <<_ACEOF | |
17731 | /* end confdefs.h. */ | |
17732 | ||
17733 | ||
17734 | #include <linux/mm.h> | |
17735 | ||
17736 | int | |
17737 | main (void) | |
17738 | { | |
17739 | ||
17740 | struct shrink_control sc __attribute__ ((unused)); | |
17741 | ||
17742 | sc.nr_to_scan = 0; | |
17743 | sc.gfp_mask = GFP_KERNEL; | |
17744 | ||
17745 | ; | |
17746 | return 0; | |
17747 | } | |
17748 | ||
17749 | _ACEOF | |
17750 | ||
17751 | ||
17752 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17753 | echo "obj-m := conftest.o" >build/Makefile | |
17754 | modpost_flag='' | |
17755 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17756 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17758 | (eval $ac_try) 2>&5 | |
17759 | ac_status=$? | |
17760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17761 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17763 | (eval $ac_try) 2>&5 | |
17764 | ac_status=$? | |
17765 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17766 | (exit $ac_status); }; }; then | |
17767 | ||
17768 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17769 | $as_echo "yes" >&6; } | |
17770 | ||
17771 | cat >>confdefs.h <<\_ACEOF | |
17772 | #define HAVE_SHRINK_CONTROL_STRUCT 1 | |
17773 | _ACEOF | |
17774 | ||
17775 | ||
17776 | else | |
17777 | $as_echo "$as_me: failed program was:" >&5 | |
17778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17779 | ||
17780 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17781 | $as_echo "no" >&6; } | |
17782 | ||
17783 | ||
17784 | ||
17785 | fi | |
17786 | ||
17787 | rm -Rf build | |
17788 | ||
17789 | ||
17790 | ||
17791 | ||
17792 | { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5 | |
17793 | $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; } | |
17794 | tmp_flags="$EXTRA_KCFLAGS" | |
17795 | EXTRA_KCFLAGS="-Werror" | |
17796 | ||
17797 | ||
17798 | cat confdefs.h - <<_ACEOF >conftest.c | |
17799 | /* confdefs.h. */ | |
17800 | _ACEOF | |
17801 | cat confdefs.h >>conftest.$ac_ext | |
17802 | cat >>conftest.$ac_ext <<_ACEOF | |
17803 | /* end confdefs.h. */ | |
17804 | ||
17805 | ||
17806 | #include <linux/rwsem.h> | |
17807 | ||
17808 | int | |
17809 | main (void) | |
17810 | { | |
17811 | ||
17812 | struct rw_semaphore dummy_semaphore __attribute__ ((unused)); | |
17813 | raw_spinlock_t dummy_lock __attribute__ ((unused)); | |
17814 | dummy_semaphore.wait_lock = dummy_lock; | |
17815 | ||
17816 | ; | |
17817 | return 0; | |
17818 | } | |
17819 | ||
17820 | _ACEOF | |
17821 | ||
17822 | ||
17823 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17824 | echo "obj-m := conftest.o" >build/Makefile | |
17825 | modpost_flag='' | |
17826 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17827 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17829 | (eval $ac_try) 2>&5 | |
17830 | ac_status=$? | |
17831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17832 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17834 | (eval $ac_try) 2>&5 | |
17835 | ac_status=$? | |
17836 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17837 | (exit $ac_status); }; }; then | |
17838 | ||
17839 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17840 | $as_echo "yes" >&6; } | |
17841 | ||
17842 | cat >>confdefs.h <<\_ACEOF | |
17843 | #define RWSEM_SPINLOCK_IS_RAW 1 | |
17844 | _ACEOF | |
17845 | ||
17846 | ||
17847 | else | |
17848 | $as_echo "$as_me: failed program was:" >&5 | |
17849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17850 | ||
17851 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17852 | $as_echo "no" >&6; } | |
17853 | ||
17854 | ||
17855 | ||
17856 | fi | |
17857 | ||
17858 | rm -Rf build | |
17859 | ||
17860 | ||
17861 | EXTRA_KCFLAGS="$tmp_flags" | |
17862 | ||
17863 | ||
17864 | { $as_echo "$as_me:$LINENO: checking whether pmd_alloc_with_mask exists" >&5 | |
17865 | $as_echo_n "checking whether pmd_alloc_with_mask exists... " >&6; } | |
17866 | ||
17867 | ||
17868 | cat confdefs.h - <<_ACEOF >conftest.c | |
17869 | /* confdefs.h. */ | |
17870 | _ACEOF | |
17871 | cat confdefs.h >>conftest.$ac_ext | |
17872 | cat >>conftest.$ac_ext <<_ACEOF | |
17873 | /* end confdefs.h. */ | |
17874 | ||
17875 | ||
17876 | #if !defined(CONFIG_MMU) | |
17877 | #define CONFIG_MMU | |
17878 | #endif | |
17879 | ||
17880 | #if defined(RCH_HAS_4LEVEL_HACK) | |
17881 | #undef RCH_HAS_4LEVEL_HACK | |
17882 | #endif | |
17883 | ||
17884 | #include <linux/mm.h> | |
17885 | ||
17886 | int | |
17887 | main (void) | |
17888 | { | |
17889 | ||
17890 | struct mm_struct init_mm; | |
17891 | pud_t *pud = NULL; | |
17892 | unsigned long addr = 0; | |
17893 | gfp_t gfp_mask = GFP_KERNEL; | |
17894 | ||
17895 | pmd_alloc_with_mask(&init_mm, pud, addr, gfp_mask); | |
17896 | ||
17897 | ; | |
17898 | return 0; | |
17899 | } | |
17900 | ||
17901 | _ACEOF | |
17902 | ||
17903 | ||
17904 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
17905 | echo "obj-m := conftest.o" >build/Makefile | |
17906 | modpost_flag='' | |
17907 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
17908 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
17909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17910 | (eval $ac_try) 2>&5 | |
17911 | ac_status=$? | |
17912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17913 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17915 | (eval $ac_try) 2>&5 | |
17916 | ac_status=$? | |
17917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17918 | (exit $ac_status); }; }; then | |
17919 | ||
17920 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17921 | $as_echo "yes" >&6; } | |
17922 | ||
17923 | cat >>confdefs.h <<\_ACEOF | |
17924 | #define HAVE_PMD_ALLOC_WITH_MASK 1 | |
17925 | _ACEOF | |
17926 | ||
17927 | ||
17928 | else | |
17929 | $as_echo "$as_me: failed program was:" >&5 | |
17930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17931 | ||
17932 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17933 | $as_echo "no" >&6; } | |
17934 | ||
17935 | ||
17936 | ||
17937 | fi | |
17938 | ||
17939 | rm -Rf build | |
17940 | ||
17941 | ||
17942 | ||
17943 | ;; | |
17944 | user) ;; | |
17945 | all) | |
17946 | ||
17947 | ||
17948 | # Check whether --with-linux was given. | |
17949 | if test "${with_linux+set}" = set; then | |
17950 | withval=$with_linux; kernelsrc="$withval" | |
17951 | fi | |
17952 | ||
17953 | ||
17954 | ||
17955 | # Check whether --with-linux-obj was given. | |
17956 | if test "${with_linux_obj+set}" = set; then | |
17957 | withval=$with_linux_obj; kernelbuild="$withval" | |
17958 | fi | |
17959 | ||
17960 | ||
17961 | { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5 | |
17962 | $as_echo_n "checking kernel source directory... " >&6; } | |
17963 | if test -z "$kernelsrc"; then | |
17964 | if test -e "/lib/modules/$(uname -r)/source"; then | |
17965 | headersdir="/lib/modules/$(uname -r)/source" | |
17966 | sourcelink=$(readlink -f "$headersdir") | |
17967 | elif test -e "/lib/modules/$(uname -r)/build"; then | |
17968 | headersdir="/lib/modules/$(uname -r)/build" | |
17969 | sourcelink=$(readlink -f "$headersdir") | |
17970 | else | |
17971 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
17972 | /usr/src/linux-* \ | |
17973 | 2>/dev/null | grep -v obj | tail -1) | |
17974 | fi | |
17975 | ||
17976 | if test -n "$sourcelink" && test -e ${sourcelink}; then | |
17977 | kernelsrc=`readlink -f ${sourcelink}` | |
17978 | else | |
17979 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
17980 | $as_echo "Not found" >&6; } | |
17981 | { { $as_echo "$as_me:$LINENO: error: | |
17982 | *** Please make sure the kernel devel package for your distribution | |
17983 | *** is installed then try again. If that fails you can specify the | |
17984 | *** location of the kernel source with the '--with-linux=PATH' option." >&5 | |
17985 | $as_echo "$as_me: error: | |
17986 | *** Please make sure the kernel devel package for your distribution | |
17987 | *** is installed then try again. If that fails you can specify the | |
17988 | *** location of the kernel source with the '--with-linux=PATH' option." >&2;} | |
17989 | { (exit 1); exit 1; }; } | |
17990 | fi | |
17991 | else | |
17992 | if test "$kernelsrc" = "NONE"; then | |
17993 | kernsrcver=NONE | |
17994 | fi | |
17995 | fi | |
17996 | ||
17997 | { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5 | |
17998 | $as_echo "$kernelsrc" >&6; } | |
17999 | { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5 | |
18000 | $as_echo_n "checking kernel build directory... " >&6; } | |
18001 | if test -z "$kernelbuild"; then | |
18002 | if test -e "/lib/modules/$(uname -r)/build"; then | |
18003 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
18004 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then | |
18005 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} | |
18006 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then | |
18007 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
18008 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then | |
18009 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
18010 | else | |
18011 | kernelbuild=${kernelsrc} | |
18012 | fi | |
18013 | fi | |
18014 | { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5 | |
18015 | $as_echo "$kernelbuild" >&6; } | |
18016 | ||
18017 | { $as_echo "$as_me:$LINENO: checking kernel source version" >&5 | |
18018 | $as_echo_n "checking kernel source version... " >&6; } | |
18019 | utsrelease1=$kernelbuild/include/linux/version.h | |
18020 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
18021 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
18022 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then | |
18023 | utsrelease=linux/version.h | |
18024 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then | |
18025 | utsrelease=linux/utsrelease.h | |
18026 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then | |
18027 | utsrelease=generated/utsrelease.h | |
18028 | fi | |
18029 | ||
18030 | if test "$utsrelease"; then | |
18031 | kernsrcver=`(echo "#include <$utsrelease>"; | |
18032 | echo "kernsrcver=UTS_RELEASE") | | |
18033 | cpp -I $kernelbuild/include | | |
18034 | grep "^kernsrcver=" | cut -d \" -f 2` | |
18035 | ||
18036 | if test -z "$kernsrcver"; then | |
18037 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
18038 | $as_echo "Not found" >&6; } | |
18039 | { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5 | |
18040 | $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;} | |
18041 | { (exit 1); exit 1; }; } | |
18042 | fi | |
18043 | else | |
18044 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
18045 | $as_echo "Not found" >&6; } | |
18046 | if test "x$enable_linux_builtin" != xyes; then | |
18047 | { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5 | |
18048 | $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;} | |
18049 | { (exit 1); exit 1; }; } | |
18050 | else | |
18051 | { { $as_echo "$as_me:$LINENO: error: | |
18052 | *** Cannot find UTS_RELEASE definition. | |
18053 | *** Please run 'make prepare' inside the kernel source tree." >&5 | |
18054 | $as_echo "$as_me: error: | |
18055 | *** Cannot find UTS_RELEASE definition. | |
18056 | *** Please run 'make prepare' inside the kernel source tree." >&2;} | |
18057 | { (exit 1); exit 1; }; } | |
18058 | fi | |
18059 | fi | |
18060 | ||
18061 | { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5 | |
18062 | $as_echo "$kernsrcver" >&6; } | |
18063 | ||
18064 | LINUX=${kernelsrc} | |
18065 | LINUX_OBJ=${kernelbuild} | |
18066 | LINUX_VERSION=${kernsrcver} | |
18067 | ||
18068 | ||
18069 | ||
18070 | ||
18071 | ||
18072 | ||
18073 | modpost=$LINUX/scripts/Makefile.modpost | |
18074 | { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5 | |
18075 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
18076 | if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then | |
18077 | if grep -q Modules.symvers $modpost; then | |
18078 | LINUX_SYMBOLS=Modules.symvers | |
18079 | else | |
18080 | LINUX_SYMBOLS=Module.symvers | |
18081 | fi | |
18082 | ||
18083 | if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then | |
18084 | { { $as_echo "$as_me:$LINENO: error: | |
18085 | *** Please make sure the kernel devel package for your distribution | |
18086 | *** is installed. If your building with a custom kernel make sure the | |
18087 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
18088 | *** option refers to the location of the kernel source." >&5 | |
18089 | $as_echo "$as_me: error: | |
18090 | *** Please make sure the kernel devel package for your distribution | |
18091 | *** is installed. If your building with a custom kernel make sure the | |
18092 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
18093 | *** option refers to the location of the kernel source." >&2;} | |
18094 | { (exit 1); exit 1; }; } | |
18095 | fi | |
18096 | else | |
18097 | LINUX_SYMBOLS=NONE | |
18098 | fi | |
18099 | { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5 | |
18100 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
18101 | ||
18102 | ||
18103 | ||
18104 | ||
18105 | { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5 | |
18106 | $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; } | |
18107 | ||
18108 | ||
18109 | cat confdefs.h - <<_ACEOF >conftest.c | |
18110 | /* confdefs.h. */ | |
18111 | _ACEOF | |
18112 | cat confdefs.h >>conftest.$ac_ext | |
18113 | cat >>conftest.$ac_ext <<_ACEOF | |
18114 | /* end confdefs.h. */ | |
18115 | ||
18116 | ||
18117 | #include <linux/module.h> | |
18118 | ||
18119 | int | |
18120 | main (void) | |
18121 | { | |
18122 | ||
18123 | #ifndef CONFIG_PREEMPT | |
18124 | #error CONFIG_PREEMPT not #defined | |
18125 | #endif | |
18126 | ||
18127 | ; | |
18128 | return 0; | |
18129 | } | |
18130 | ||
18131 | _ACEOF | |
18132 | ||
18133 | ||
18134 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18135 | echo "obj-m := conftest.o" >build/Makefile | |
18136 | modpost_flag='' | |
18137 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18138 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18140 | (eval $ac_try) 2>&5 | |
18141 | ac_status=$? | |
18142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18143 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18145 | (eval $ac_try) 2>&5 | |
18146 | ac_status=$? | |
18147 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18148 | (exit $ac_status); }; }; then | |
18149 | ||
18150 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18151 | $as_echo "yes" >&6; } | |
18152 | { { $as_echo "$as_me:$LINENO: error: | |
18153 | *** Kernel built with CONFIG_PREEMPT which is not supported. | |
18154 | ** You must rebuild your kernel without this option." >&5 | |
18155 | $as_echo "$as_me: error: | |
18156 | *** Kernel built with CONFIG_PREEMPT which is not supported. | |
18157 | ** You must rebuild your kernel without this option." >&2;} | |
18158 | { (exit 1); exit 1; }; } | |
18159 | ||
18160 | else | |
18161 | $as_echo "$as_me: failed program was:" >&5 | |
18162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18163 | ||
18164 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18165 | $as_echo "no" >&6; } | |
18166 | ||
18167 | ||
18168 | ||
18169 | ||
18170 | fi | |
18171 | ||
18172 | rm -Rf build | |
18173 | ||
18174 | ||
18175 | ||
18176 | ||
18177 | ||
18178 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
18179 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
18180 | fi | |
18181 | ||
18182 | ||
18183 | KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes" | |
18184 | ||
18185 | ||
18186 | ||
18187 | { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5 | |
18188 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
18189 | # Check whether --enable-debug was given. | |
18190 | if test "${enable_debug+set}" = set; then | |
18191 | enableval=$enable_debug; | |
18192 | else | |
18193 | enable_debug=no | |
18194 | fi | |
18195 | ||
18196 | ||
18197 | if test "x$enable_debug" = xyes; then | |
18198 | ||
18199 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" | |
18200 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
18201 | DEBUG_SPL="_with_debug" | |
18202 | ||
18203 | else | |
18204 | ||
18205 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG" | |
18206 | DEBUG_CFLAGS="-DNDEBUG" | |
18207 | DEBUG_SPL="_without_debug" | |
18208 | ||
18209 | fi | |
18210 | ||
18211 | ||
18212 | ||
18213 | ||
18214 | { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5 | |
18215 | $as_echo "$enable_debug" >&6; } | |
18216 | ||
18217 | ||
18218 | # Check whether --enable-debug-log was given. | |
18219 | if test "${enable_debug_log+set}" = set; then | |
18220 | enableval=$enable_debug_log; | |
18221 | else | |
18222 | enable_debug_log=yes | |
18223 | fi | |
18224 | ||
18225 | ||
18226 | if test "x$enable_debug_log" = xyes; then | |
18227 | ||
18228 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG" | |
18229 | DEBUG_LOG="_with_debug_log" | |
18230 | ||
18231 | cat >>confdefs.h <<\_ACEOF | |
18232 | #define DEBUG_LOG 1 | |
18233 | _ACEOF | |
18234 | ||
18235 | ||
18236 | else | |
18237 | ||
18238 | DEBUG_LOG="_without_debug_log" | |
18239 | ||
18240 | fi | |
18241 | ||
18242 | ||
18243 | ||
18244 | { $as_echo "$as_me:$LINENO: checking whether basic debug logging is enabled" >&5 | |
18245 | $as_echo_n "checking whether basic debug logging is enabled... " >&6; } | |
18246 | { $as_echo "$as_me:$LINENO: result: $enable_debug_log" >&5 | |
18247 | $as_echo "$enable_debug_log" >&6; } | |
18248 | ||
18249 | ||
18250 | # Check whether --enable-debug-kmem was given. | |
18251 | if test "${enable_debug_kmem+set}" = set; then | |
18252 | enableval=$enable_debug_kmem; | |
18253 | else | |
18254 | enable_debug_kmem=yes | |
18255 | fi | |
18256 | ||
18257 | ||
18258 | if test "x$enable_debug_kmem" = xyes; then | |
18259 | ||
18260 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM" | |
18261 | DEBUG_KMEM="_with_debug_kmem" | |
18262 | ||
18263 | cat >>confdefs.h <<\_ACEOF | |
18264 | #define DEBUG_KMEM 1 | |
18265 | _ACEOF | |
18266 | ||
18267 | ||
18268 | else | |
18269 | ||
18270 | DEBUG_KMEM="_without_debug_kmem" | |
18271 | ||
18272 | fi | |
18273 | ||
18274 | ||
18275 | ||
18276 | { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5 | |
18277 | $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; } | |
18278 | { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5 | |
18279 | $as_echo "$enable_debug_kmem" >&6; } | |
18280 | ||
18281 | ||
18282 | # Check whether --enable-debug-kmem-tracking was given. | |
18283 | if test "${enable_debug_kmem_tracking+set}" = set; then | |
18284 | enableval=$enable_debug_kmem_tracking; | |
18285 | else | |
18286 | enable_debug_kmem_tracking=no | |
18287 | fi | |
18288 | ||
18289 | ||
18290 | if test "x$enable_debug_kmem_tracking" = xyes; then | |
18291 | ||
18292 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING" | |
18293 | DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking" | |
18294 | ||
18295 | cat >>confdefs.h <<\_ACEOF | |
18296 | #define DEBUG_KMEM_TRACKING 1 | |
18297 | _ACEOF | |
18298 | ||
18299 | ||
18300 | else | |
18301 | ||
18302 | DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking" | |
18303 | ||
18304 | fi | |
18305 | ||
18306 | ||
18307 | ||
18308 | { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5 | |
18309 | $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; } | |
18310 | { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5 | |
18311 | $as_echo "$enable_debug_kmem_tracking" >&6; } | |
18312 | ||
18313 | { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5 | |
18314 | $as_echo_n "checking whether modules can be built... " >&6; } | |
18315 | ||
18316 | ||
18317 | cat confdefs.h - <<_ACEOF >conftest.c | |
18318 | /* confdefs.h. */ | |
18319 | _ACEOF | |
18320 | cat confdefs.h >>conftest.$ac_ext | |
18321 | cat >>conftest.$ac_ext <<_ACEOF | |
18322 | /* end confdefs.h. */ | |
18323 | ||
18324 | ||
18325 | int | |
18326 | main (void) | |
18327 | { | |
18328 | ||
18329 | ; | |
18330 | return 0; | |
18331 | } | |
18332 | ||
18333 | _ACEOF | |
18334 | ||
18335 | ||
18336 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18337 | echo "obj-m := conftest.o" >build/Makefile | |
18338 | modpost_flag='' | |
18339 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18340 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18342 | (eval $ac_try) 2>&5 | |
18343 | ac_status=$? | |
18344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18345 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18347 | (eval $ac_try) 2>&5 | |
18348 | ac_status=$? | |
18349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18350 | (exit $ac_status); }; }; then | |
18351 | ||
18352 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18353 | $as_echo "yes" >&6; } | |
18354 | ||
18355 | else | |
18356 | $as_echo "$as_me: failed program was:" >&5 | |
18357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18358 | ||
18359 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18360 | $as_echo "no" >&6; } | |
18361 | if test "x$enable_linux_builtin" != xyes; then | |
18362 | { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5 | |
18363 | $as_echo "$as_me: error: *** Unable to build an empty module." >&2;} | |
18364 | { (exit 1); exit 1; }; } | |
18365 | else | |
18366 | { { $as_echo "$as_me:$LINENO: error: | |
18367 | *** Unable to build an empty module. | |
18368 | *** Please run 'make scripts' inside the kernel source tree." >&5 | |
18369 | $as_echo "$as_me: error: | |
18370 | *** Unable to build an empty module. | |
18371 | *** Please run 'make scripts' inside the kernel source tree." >&2;} | |
18372 | { (exit 1); exit 1; }; } | |
18373 | fi | |
18374 | ||
18375 | ||
18376 | ||
18377 | fi | |
18378 | ||
18379 | rm -Rf build | |
18380 | ||
18381 | ||
18382 | ||
18383 | ||
18384 | # Check whether --enable-atomic-spinlocks was given. | |
18385 | if test "${enable_atomic_spinlocks+set}" = set; then | |
18386 | enableval=$enable_atomic_spinlocks; | |
18387 | else | |
18388 | enable_atomic_spinlocks=check | |
18389 | fi | |
18390 | ||
18391 | ||
18392 | ||
18393 | ||
18394 | cat confdefs.h - <<_ACEOF >conftest.c | |
18395 | /* confdefs.h. */ | |
18396 | _ACEOF | |
18397 | cat confdefs.h >>conftest.$ac_ext | |
18398 | cat >>conftest.$ac_ext <<_ACEOF | |
18399 | /* end confdefs.h. */ | |
18400 | ||
18401 | ||
18402 | #include <asm/atomic.h> | |
18403 | ||
18404 | int | |
18405 | main (void) | |
18406 | { | |
18407 | ||
18408 | atomic64_t *ptr __attribute__ ((unused)); | |
18409 | ||
18410 | ; | |
18411 | return 0; | |
18412 | } | |
18413 | ||
18414 | _ACEOF | |
18415 | ||
18416 | ||
18417 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18418 | echo "obj-m := conftest.o" >build/Makefile | |
18419 | modpost_flag='' | |
18420 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18421 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18423 | (eval $ac_try) 2>&5 | |
18424 | ac_status=$? | |
18425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18426 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18428 | (eval $ac_try) 2>&5 | |
18429 | ac_status=$? | |
18430 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18431 | (exit $ac_status); }; }; then | |
18432 | ||
18433 | have_atomic64_t=yes | |
18434 | ||
18435 | cat >>confdefs.h <<\_ACEOF | |
18436 | #define HAVE_ATOMIC64_T 1 | |
18437 | _ACEOF | |
18438 | ||
18439 | ||
18440 | else | |
18441 | $as_echo "$as_me: failed program was:" >&5 | |
18442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18443 | ||
18444 | have_atomic64_t=no | |
18445 | ||
18446 | ||
18447 | ||
18448 | fi | |
18449 | ||
18450 | rm -Rf build | |
18451 | ||
18452 | ||
18453 | ||
18454 | if test "x$enable_atomic_spinlocks" = xcheck; then | |
18455 | ||
18456 | if test "x$have_atomic64_t" = xyes; then | |
18457 | ||
18458 | enable_atomic_spinlocks=no | |
18459 | ||
18460 | else | |
18461 | ||
18462 | enable_atomic_spinlocks=yes | |
18463 | ||
18464 | fi | |
18465 | ||
18466 | ||
18467 | fi | |
18468 | ||
18469 | ||
18470 | if test "x$enable_atomic_spinlocks" = xyes; then | |
18471 | ||
18472 | ||
18473 | cat >>confdefs.h <<\_ACEOF | |
18474 | #define ATOMIC_SPINLOCK 1 | |
18475 | _ACEOF | |
18476 | ||
18477 | ||
18478 | else | |
18479 | ||
18480 | if test "x$have_atomic64_t" = xno; then | |
18481 | ||
18482 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
18483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
18484 | { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable | |
18485 | See \`config.log' for more details." >&5 | |
18486 | $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable | |
18487 | See \`config.log' for more details." >&2;} | |
18488 | { (exit 1); exit 1; }; }; } | |
18489 | ||
18490 | fi | |
18491 | ||
18492 | ||
18493 | fi | |
18494 | ||
18495 | ||
18496 | { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5 | |
18497 | $as_echo_n "checking whether atomic types use spinlocks... " >&6; } | |
18498 | { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5 | |
18499 | $as_echo "$enable_atomic_spinlocks" >&6; } | |
18500 | ||
18501 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5 | |
18502 | $as_echo_n "checking whether kernel defines atomic64_t... " >&6; } | |
18503 | { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5 | |
18504 | $as_echo "$have_atomic64_t" >&6; } | |
18505 | ||
18506 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5 | |
18507 | $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; } | |
18508 | ||
18509 | ||
18510 | cat confdefs.h - <<_ACEOF >conftest.c | |
18511 | /* confdefs.h. */ | |
18512 | _ACEOF | |
18513 | cat confdefs.h >>conftest.$ac_ext | |
18514 | cat >>conftest.$ac_ext <<_ACEOF | |
18515 | /* end confdefs.h. */ | |
18516 | ||
18517 | ||
18518 | #include <asm/atomic.h> | |
18519 | #include <asm/system.h> | |
18520 | ||
18521 | int | |
18522 | main (void) | |
18523 | { | |
18524 | ||
18525 | atomic64_cmpxchg((atomic64_t *)NULL, 0, 0); | |
18526 | ||
18527 | ; | |
18528 | return 0; | |
18529 | } | |
18530 | ||
18531 | _ACEOF | |
18532 | ||
18533 | ||
18534 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18535 | echo "obj-m := conftest.o" >build/Makefile | |
18536 | modpost_flag='' | |
18537 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18538 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18540 | (eval $ac_try) 2>&5 | |
18541 | ac_status=$? | |
18542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18543 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18545 | (eval $ac_try) 2>&5 | |
18546 | ac_status=$? | |
18547 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18548 | (exit $ac_status); }; }; then | |
18549 | ||
18550 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18551 | $as_echo "yes" >&6; } | |
18552 | ||
18553 | cat >>confdefs.h <<\_ACEOF | |
18554 | #define HAVE_ATOMIC64_CMPXCHG 1 | |
18555 | _ACEOF | |
18556 | ||
18557 | ||
18558 | else | |
18559 | $as_echo "$as_me: failed program was:" >&5 | |
18560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18561 | ||
18562 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18563 | $as_echo "no" >&6; } | |
18564 | ||
18565 | ||
18566 | ||
18567 | fi | |
18568 | ||
18569 | rm -Rf build | |
18570 | ||
18571 | ||
18572 | ||
18573 | { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5 | |
18574 | $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; } | |
18575 | ||
18576 | ||
18577 | cat confdefs.h - <<_ACEOF >conftest.c | |
18578 | /* confdefs.h. */ | |
18579 | _ACEOF | |
18580 | cat confdefs.h >>conftest.$ac_ext | |
18581 | cat >>conftest.$ac_ext <<_ACEOF | |
18582 | /* end confdefs.h. */ | |
18583 | ||
18584 | ||
18585 | #include <asm/atomic.h> | |
18586 | ||
18587 | int | |
18588 | main (void) | |
18589 | { | |
18590 | ||
18591 | atomic64_xchg((atomic64_t *)NULL, 0); | |
18592 | ||
18593 | ; | |
18594 | return 0; | |
18595 | } | |
18596 | ||
18597 | _ACEOF | |
18598 | ||
18599 | ||
18600 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18601 | echo "obj-m := conftest.o" >build/Makefile | |
18602 | modpost_flag='' | |
18603 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18604 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18606 | (eval $ac_try) 2>&5 | |
18607 | ac_status=$? | |
18608 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18609 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18611 | (eval $ac_try) 2>&5 | |
18612 | ac_status=$? | |
18613 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18614 | (exit $ac_status); }; }; then | |
18615 | ||
18616 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18617 | $as_echo "yes" >&6; } | |
18618 | ||
18619 | cat >>confdefs.h <<\_ACEOF | |
18620 | #define HAVE_ATOMIC64_XCHG 1 | |
18621 | _ACEOF | |
18622 | ||
18623 | ||
18624 | else | |
18625 | $as_echo "$as_me: failed program was:" >&5 | |
18626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18627 | ||
18628 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18629 | $as_echo "no" >&6; } | |
18630 | ||
18631 | ||
18632 | ||
18633 | fi | |
18634 | ||
18635 | rm -Rf build | |
18636 | ||
18637 | ||
18638 | ||
18639 | { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5 | |
18640 | $as_echo_n "checking whether kernel defines uintptr_t... " >&6; } | |
18641 | ||
18642 | ||
18643 | cat confdefs.h - <<_ACEOF >conftest.c | |
18644 | /* confdefs.h. */ | |
18645 | _ACEOF | |
18646 | cat confdefs.h >>conftest.$ac_ext | |
18647 | cat >>conftest.$ac_ext <<_ACEOF | |
18648 | /* end confdefs.h. */ | |
18649 | ||
18650 | ||
18651 | #include <linux/types.h> | |
18652 | ||
18653 | int | |
18654 | main (void) | |
18655 | { | |
18656 | ||
18657 | uintptr_t *ptr __attribute__ ((unused)); | |
18658 | ||
18659 | ; | |
18660 | return 0; | |
18661 | } | |
18662 | ||
18663 | _ACEOF | |
18664 | ||
18665 | ||
18666 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18667 | echo "obj-m := conftest.o" >build/Makefile | |
18668 | modpost_flag='' | |
18669 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18670 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18672 | (eval $ac_try) 2>&5 | |
18673 | ac_status=$? | |
18674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18675 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18677 | (eval $ac_try) 2>&5 | |
18678 | ac_status=$? | |
18679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18680 | (exit $ac_status); }; }; then | |
18681 | ||
18682 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18683 | $as_echo "yes" >&6; } | |
18684 | ||
18685 | cat >>confdefs.h <<\_ACEOF | |
18686 | #define HAVE_UINTPTR_T 1 | |
18687 | _ACEOF | |
18688 | ||
18689 | ||
18690 | else | |
18691 | $as_echo "$as_me: failed program was:" >&5 | |
18692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18693 | ||
18694 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18695 | $as_echo "no" >&6; } | |
18696 | ||
18697 | ||
18698 | ||
18699 | fi | |
18700 | ||
18701 | rm -Rf build | |
18702 | ||
18703 | ||
18704 | ||
18705 | { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5 | |
18706 | $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; } | |
18707 | ||
18708 | ||
18709 | cat confdefs.h - <<_ACEOF >conftest.c | |
18710 | /* confdefs.h. */ | |
18711 | _ACEOF | |
18712 | cat confdefs.h >>conftest.$ac_ext | |
18713 | cat >>conftest.$ac_ext <<_ACEOF | |
18714 | /* end confdefs.h. */ | |
18715 | ||
18716 | ||
18717 | #include <linux/workqueue.h> | |
18718 | ||
18719 | int | |
18720 | main (void) | |
18721 | { | |
18722 | ||
18723 | struct work_struct work __attribute__ ((unused)); | |
18724 | INIT_WORK(&work, NULL, NULL); | |
18725 | ||
18726 | ; | |
18727 | return 0; | |
18728 | } | |
18729 | ||
18730 | _ACEOF | |
18731 | ||
18732 | ||
18733 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18734 | echo "obj-m := conftest.o" >build/Makefile | |
18735 | modpost_flag='' | |
18736 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18737 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18739 | (eval $ac_try) 2>&5 | |
18740 | ac_status=$? | |
18741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18742 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18744 | (eval $ac_try) 2>&5 | |
18745 | ac_status=$? | |
18746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18747 | (exit $ac_status); }; }; then | |
18748 | ||
18749 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18750 | $as_echo "yes" >&6; } | |
18751 | ||
18752 | cat >>confdefs.h <<\_ACEOF | |
18753 | #define HAVE_3ARGS_INIT_WORK 1 | |
18754 | _ACEOF | |
18755 | ||
18756 | ||
18757 | else | |
18758 | $as_echo "$as_me: failed program was:" >&5 | |
18759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18760 | ||
18761 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18762 | $as_echo "no" >&6; } | |
18763 | ||
18764 | ||
18765 | ||
18766 | fi | |
18767 | ||
18768 | rm -Rf build | |
18769 | ||
18770 | ||
18771 | ||
18772 | { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5 | |
18773 | $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; } | |
18774 | ||
18775 | ||
18776 | cat confdefs.h - <<_ACEOF >conftest.c | |
18777 | /* confdefs.h. */ | |
18778 | _ACEOF | |
18779 | cat confdefs.h >>conftest.$ac_ext | |
18780 | cat >>conftest.$ac_ext <<_ACEOF | |
18781 | /* end confdefs.h. */ | |
18782 | ||
18783 | ||
18784 | #include <linux/sysctl.h> | |
18785 | ||
18786 | int | |
18787 | main (void) | |
18788 | { | |
18789 | ||
18790 | (void) register_sysctl_table(NULL, 0); | |
18791 | ||
18792 | ; | |
18793 | return 0; | |
18794 | } | |
18795 | ||
18796 | _ACEOF | |
18797 | ||
18798 | ||
18799 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18800 | echo "obj-m := conftest.o" >build/Makefile | |
18801 | modpost_flag='' | |
18802 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18803 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18805 | (eval $ac_try) 2>&5 | |
18806 | ac_status=$? | |
18807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18808 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18810 | (eval $ac_try) 2>&5 | |
18811 | ac_status=$? | |
18812 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18813 | (exit $ac_status); }; }; then | |
18814 | ||
18815 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18816 | $as_echo "yes" >&6; } | |
18817 | ||
18818 | cat >>confdefs.h <<\_ACEOF | |
18819 | #define HAVE_2ARGS_REGISTER_SYSCTL 1 | |
18820 | _ACEOF | |
18821 | ||
18822 | ||
18823 | else | |
18824 | $as_echo "$as_me: failed program was:" >&5 | |
18825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18826 | ||
18827 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18828 | $as_echo "no" >&6; } | |
18829 | ||
18830 | ||
18831 | ||
18832 | fi | |
18833 | ||
18834 | rm -Rf build | |
18835 | ||
18836 | ||
18837 | ||
18838 | ||
18839 | { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5 | |
18840 | $as_echo_n "checking whether set_shrinker() available... " >&6; } | |
18841 | ||
18842 | ||
18843 | cat confdefs.h - <<_ACEOF >conftest.c | |
18844 | /* confdefs.h. */ | |
18845 | _ACEOF | |
18846 | cat confdefs.h >>conftest.$ac_ext | |
18847 | cat >>conftest.$ac_ext <<_ACEOF | |
18848 | /* end confdefs.h. */ | |
18849 | ||
18850 | ||
18851 | #include <linux/mm.h> | |
18852 | ||
18853 | int | |
18854 | main (void) | |
18855 | { | |
18856 | ||
18857 | return set_shrinker(DEFAULT_SEEKS, NULL); | |
18858 | ||
18859 | ; | |
18860 | return 0; | |
18861 | } | |
18862 | ||
18863 | _ACEOF | |
18864 | ||
18865 | ||
18866 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18867 | echo "obj-m := conftest.o" >build/Makefile | |
18868 | modpost_flag='' | |
18869 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18870 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18872 | (eval $ac_try) 2>&5 | |
18873 | ac_status=$? | |
18874 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18875 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18877 | (eval $ac_try) 2>&5 | |
18878 | ac_status=$? | |
18879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18880 | (exit $ac_status); }; }; then | |
18881 | ||
18882 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18883 | $as_echo "yes" >&6; } | |
18884 | ||
18885 | cat >>confdefs.h <<\_ACEOF | |
18886 | #define HAVE_SET_SHRINKER 1 | |
18887 | _ACEOF | |
18888 | ||
18889 | ||
18890 | else | |
18891 | $as_echo "$as_me: failed program was:" >&5 | |
18892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18893 | ||
18894 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18895 | $as_echo "no" >&6; } | |
18896 | ||
18897 | ||
18898 | ||
18899 | fi | |
18900 | ||
18901 | rm -Rf build | |
18902 | ||
18903 | ||
18904 | ||
18905 | { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5 | |
18906 | $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; } | |
18907 | tmp_flags="$EXTRA_KCFLAGS" | |
18908 | EXTRA_KCFLAGS="-Werror" | |
18909 | ||
18910 | ||
18911 | cat confdefs.h - <<_ACEOF >conftest.c | |
18912 | /* confdefs.h. */ | |
18913 | _ACEOF | |
18914 | cat confdefs.h >>conftest.$ac_ext | |
18915 | cat >>conftest.$ac_ext <<_ACEOF | |
18916 | /* end confdefs.h. */ | |
18917 | ||
18918 | ||
18919 | #include <linux/mm.h> | |
18920 | ||
18921 | int shrinker_cb(struct shrinker *, int, unsigned int); | |
18922 | ||
18923 | int | |
18924 | main (void) | |
18925 | { | |
18926 | ||
18927 | struct shrinker cache_shrinker = { | |
18928 | .shrink = shrinker_cb, | |
18929 | .seeks = DEFAULT_SEEKS, | |
18930 | }; | |
18931 | register_shrinker(&cache_shrinker); | |
18932 | ||
18933 | ; | |
18934 | return 0; | |
18935 | } | |
18936 | ||
18937 | _ACEOF | |
18938 | ||
18939 | ||
18940 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
18941 | echo "obj-m := conftest.o" >build/Makefile | |
18942 | modpost_flag='' | |
18943 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
18944 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
18945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18946 | (eval $ac_try) 2>&5 | |
18947 | ac_status=$? | |
18948 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18949 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18951 | (eval $ac_try) 2>&5 | |
18952 | ac_status=$? | |
18953 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18954 | (exit $ac_status); }; }; then | |
18955 | ||
18956 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18957 | $as_echo "yes" >&6; } | |
18958 | ||
18959 | cat >>confdefs.h <<\_ACEOF | |
18960 | #define HAVE_3ARGS_SHRINKER_CALLBACK 1 | |
18961 | _ACEOF | |
18962 | ||
18963 | ||
18964 | else | |
18965 | $as_echo "$as_me: failed program was:" >&5 | |
18966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18967 | ||
18968 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18969 | $as_echo "no" >&6; } | |
18970 | ||
18971 | ||
18972 | ||
18973 | fi | |
18974 | ||
18975 | rm -Rf build | |
18976 | ||
18977 | ||
18978 | EXTRA_KCFLAGS="$tmp_flags" | |
18979 | ||
18980 | { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5 | |
18981 | $as_echo_n "checking whether struct path used in struct nameidata... " >&6; } | |
18982 | ||
18983 | ||
18984 | cat confdefs.h - <<_ACEOF >conftest.c | |
18985 | /* confdefs.h. */ | |
18986 | _ACEOF | |
18987 | cat confdefs.h >>conftest.$ac_ext | |
18988 | cat >>conftest.$ac_ext <<_ACEOF | |
18989 | /* end confdefs.h. */ | |
18990 | ||
18991 | ||
18992 | #include <linux/namei.h> | |
18993 | ||
18994 | int | |
18995 | main (void) | |
18996 | { | |
18997 | ||
18998 | struct nameidata nd __attribute__ ((unused)); | |
18999 | ||
19000 | nd.path.mnt = NULL; | |
19001 | nd.path.dentry = NULL; | |
19002 | ||
19003 | ; | |
19004 | return 0; | |
19005 | } | |
19006 | ||
19007 | _ACEOF | |
19008 | ||
19009 | ||
19010 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19011 | echo "obj-m := conftest.o" >build/Makefile | |
19012 | modpost_flag='' | |
19013 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19014 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19016 | (eval $ac_try) 2>&5 | |
19017 | ac_status=$? | |
19018 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19019 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19021 | (eval $ac_try) 2>&5 | |
19022 | ac_status=$? | |
19023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19024 | (exit $ac_status); }; }; then | |
19025 | ||
19026 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
19027 | $as_echo "yes" >&6; } | |
19028 | ||
19029 | cat >>confdefs.h <<\_ACEOF | |
19030 | #define HAVE_PATH_IN_NAMEIDATA 1 | |
19031 | _ACEOF | |
19032 | ||
19033 | ||
19034 | else | |
19035 | $as_echo "$as_me: failed program was:" >&5 | |
19036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19037 | ||
19038 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
19039 | $as_echo "no" >&6; } | |
19040 | ||
19041 | ||
19042 | ||
19043 | fi | |
19044 | ||
19045 | rm -Rf build | |
19046 | ||
19047 | ||
19048 | ||
19049 | { $as_echo "$as_me:$LINENO: checking whether task_curr() is available" >&5 | |
19050 | $as_echo_n "checking whether task_curr() is available... " >&6; } | |
19051 | ||
19052 | ||
19053 | ||
19054 | cat confdefs.h - <<_ACEOF >conftest.c | |
19055 | /* confdefs.h. */ | |
19056 | _ACEOF | |
19057 | cat confdefs.h >>conftest.$ac_ext | |
19058 | cat >>conftest.$ac_ext <<_ACEOF | |
19059 | /* end confdefs.h. */ | |
19060 | ||
19061 | ||
19062 | #include <linux/sched.h> | |
19063 | ||
19064 | int | |
19065 | main (void) | |
19066 | { | |
19067 | ||
19068 | task_curr(NULL); | |
19069 | ||
19070 | ; | |
19071 | return 0; | |
19072 | } | |
19073 | ||
19074 | _ACEOF | |
19075 | ||
19076 | ||
19077 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19078 | echo "obj-m := conftest.o" >build/Makefile | |
19079 | modpost_flag='' | |
19080 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19081 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19083 | (eval $ac_try) 2>&5 | |
19084 | ac_status=$? | |
19085 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19086 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19088 | (eval $ac_try) 2>&5 | |
19089 | ac_status=$? | |
19090 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19091 | (exit $ac_status); }; }; then | |
19092 | rc=0 | |
19093 | else | |
19094 | $as_echo "$as_me: failed program was:" >&5 | |
19095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19096 | rc=1 | |
19097 | ||
19098 | ||
19099 | fi | |
19100 | ||
19101 | rm -Rf build | |
19102 | ||
19103 | ||
19104 | if test $rc -ne 0; then : | |
19105 | ||
19106 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
19107 | $as_echo "no" >&6; } | |
19108 | ||
19109 | else | |
19110 | if test "x$enable_linux_builtin" != xyes; then | |
19111 | ||
19112 | grep -q -E '[[:space:]]task_curr[[:space:]]' \ | |
19113 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
19114 | rc=$? | |
19115 | if test $rc -ne 0; then | |
19116 | export=0 | |
19117 | for file in kernel/sched.c; do | |
19118 | grep -q -E "EXPORT_SYMBOL.*(task_curr)" \ | |
19119 | "$LINUX_OBJ/$file" 2>/dev/null | |
19120 | rc=$? | |
19121 | if test $rc -eq 0; then | |
19122 | export=1 | |
19123 | break; | |
19124 | fi | |
19125 | done | |
19126 | if test $export -eq 0; then : | |
19127 | rc=1 | |
19128 | else : | |
19129 | rc=0 | |
19130 | fi | |
19131 | else : | |
19132 | rc=0 | |
19133 | fi | |
19134 | ||
19135 | fi | |
19136 | if test $rc -ne 0; then : | |
19137 | ||
19138 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
19139 | $as_echo "no" >&6; } | |
19140 | ||
19141 | else : | |
19142 | ||
19143 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
19144 | $as_echo "yes" >&6; } | |
19145 | ||
19146 | cat >>confdefs.h <<\_ACEOF | |
19147 | #define HAVE_TASK_CURR 1 | |
19148 | _ACEOF | |
19149 | ||
19150 | ||
19151 | fi | |
19152 | fi | |
19153 | ||
19154 | ||
19155 | { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5 | |
19156 | $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; } | |
19157 | ||
19158 | ||
19159 | cat confdefs.h - <<_ACEOF >conftest.c | |
19160 | /* confdefs.h. */ | |
19161 | _ACEOF | |
19162 | cat confdefs.h >>conftest.$ac_ext | |
19163 | cat >>conftest.$ac_ext <<_ACEOF | |
19164 | /* end confdefs.h. */ | |
19165 | ||
19166 | ||
19167 | #include <linux/sysctl.h> | |
19168 | ||
19169 | int | |
19170 | main (void) | |
19171 | { | |
19172 | ||
19173 | #ifndef CTL_UNNUMBERED | |
19174 | #error CTL_UNNUMBERED undefined | |
19175 | #endif | |
19176 | ||
19177 | ; | |
19178 | return 0; | |
19179 | } | |
19180 | ||
19181 | _ACEOF | |
19182 | ||
19183 | ||
19184 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19185 | echo "obj-m := conftest.o" >build/Makefile | |
19186 | modpost_flag='' | |
19187 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19188 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19190 | (eval $ac_try) 2>&5 | |
19191 | ac_status=$? | |
19192 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19193 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19195 | (eval $ac_try) 2>&5 | |
19196 | ac_status=$? | |
19197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19198 | (exit $ac_status); }; }; then | |
19199 | ||
19200 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
19201 | $as_echo "yes" >&6; } | |
19202 | ||
19203 | cat >>confdefs.h <<\_ACEOF | |
19204 | #define HAVE_CTL_UNNUMBERED 1 | |
19205 | _ACEOF | |
19206 | ||
19207 | ||
19208 | else | |
19209 | $as_echo "$as_me: failed program was:" >&5 | |
19210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19211 | ||
19212 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
19213 | $as_echo "no" >&6; } | |
19214 | ||
19215 | ||
19216 | ||
19217 | fi | |
19218 | ||
19219 | rm -Rf build | |
19220 | ||
19221 | ||
19222 | ||
19223 | ||
19224 | { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5 | |
19225 | $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; } | |
19226 | ||
19227 | ||
19228 | cat confdefs.h - <<_ACEOF >conftest.c | |
19229 | /* confdefs.h. */ | |
19230 | _ACEOF | |
19231 | cat confdefs.h >>conftest.$ac_ext | |
19232 | cat >>conftest.$ac_ext <<_ACEOF | |
19233 | /* end confdefs.h. */ | |
19234 | ||
19235 | ||
19236 | #include <linux/sysctl.h> | |
19237 | ||
19238 | int | |
19239 | main (void) | |
19240 | { | |
19241 | ||
19242 | struct ctl_table ctl __attribute__ ((unused)); | |
19243 | ctl.ctl_name = 0; | |
19244 | ||
19245 | ; | |
19246 | return 0; | |
19247 | } | |
19248 | ||
19249 | _ACEOF | |
19250 | ||
19251 | ||
19252 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19253 | echo "obj-m := conftest.o" >build/Makefile | |
19254 | modpost_flag='' | |
19255 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19256 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19258 | (eval $ac_try) 2>&5 | |
19259 | ac_status=$? | |
19260 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19261 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19263 | (eval $ac_try) 2>&5 | |
19264 | ac_status=$? | |
19265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19266 | (exit $ac_status); }; }; then | |
19267 | ||
19268 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
19269 | $as_echo "yes" >&6; } | |
19270 | ||
19271 | cat >>confdefs.h <<\_ACEOF | |
19272 | #define HAVE_CTL_NAME 1 | |
19273 | _ACEOF | |
19274 | ||
19275 | ||
19276 | else | |
19277 | $as_echo "$as_me: failed program was:" >&5 | |
19278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19279 | ||
19280 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
19281 | $as_echo "no" >&6; } | |
19282 | ||
19283 | ||
19284 | ||
19285 | fi | |
19286 | ||
19287 | rm -Rf build | |
19288 | ||
19289 | ||
19290 | ||
19291 | { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5 | |
19292 | $as_echo_n "checking whether fls64() is available... " >&6; } | |
19293 | ||
19294 | ||
19295 | cat confdefs.h - <<_ACEOF >conftest.c | |
19296 | /* confdefs.h. */ | |
19297 | _ACEOF | |
19298 | cat confdefs.h >>conftest.$ac_ext | |
19299 | cat >>conftest.$ac_ext <<_ACEOF | |
19300 | /* end confdefs.h. */ | |
19301 | ||
19302 | ||
19303 | #include <linux/bitops.h> | |
19304 | ||
19305 | int | |
19306 | main (void) | |
19307 | { | |
19308 | ||
19309 | return fls64(0); | |
19310 | ||
19311 | ; | |
19312 | return 0; | |
19313 | } | |
19314 | ||
19315 | _ACEOF | |
19316 | ||
19317 | ||
19318 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
19319 | echo "obj-m := conftest.o" >build/Makefile | |
19320 | modpost_flag='' | |
19321 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19322 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19324 | (eval $ac_try) 2>&5 | |
19325 | ac_status=$? | |
19326 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19327 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19329 | (eval $ac_try) 2>&5 | |
19330 | ac_status=$? | |
19331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19332 | (exit $ac_status); }; }; then | |
19333 | ||
36811b44 RY |
19334 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
19335 | $as_echo "yes" >&6; } | |
19336 | ||
19337 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 19338 | #define HAVE_FLS64 1 |
36811b44 RY |
19339 | _ACEOF |
19340 | ||
19341 | ||
19342 | else | |
19343 | $as_echo "$as_me: failed program was:" >&5 | |
19344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19345 | ||
19346 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
19347 | $as_echo "no" >&6; } | |
19348 | ||
19349 | ||
19350 | ||
19351 | fi | |
19352 | ||
19353 | rm -Rf build | |
19354 | ||
19355 | ||
19356 | ||
723aa3b0 ED |
19357 | { $as_echo "$as_me:$LINENO: checking whether device_create() is available" >&5 |
19358 | $as_echo_n "checking whether device_create() is available... " >&6; } | |
6ae7fef5 | 19359 | |
723aa3b0 ED |
19360 | grep -q -E '[[:space:]]device_create[[:space:]]' \ |
19361 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
19362 | rc=$? | |
19363 | if test $rc -ne 0; then | |
19364 | export=0 | |
19365 | for file in drivers/base/core.c; do | |
19366 | grep -q -E "EXPORT_SYMBOL.*(device_create)" \ | |
19367 | "$LINUX_OBJ/$file" 2>/dev/null | |
19368 | rc=$? | |
19369 | if test $rc -eq 0; then | |
19370 | export=1 | |
19371 | break; | |
19372 | fi | |
19373 | done | |
19374 | if test $export -eq 0; then : | |
8934764e | 19375 | |
723aa3b0 ED |
19376 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
19377 | $as_echo "no" >&6; } | |
6ae7fef5 | 19378 | |
723aa3b0 | 19379 | else : |
6ae7fef5 | 19380 | |
723aa3b0 ED |
19381 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
19382 | $as_echo "yes" >&6; } | |
6ae7fef5 | 19383 | |
723aa3b0 ED |
19384 | cat >>confdefs.h <<\_ACEOF |
19385 | #define HAVE_DEVICE_CREATE 1 | |
19386 | _ACEOF | |
6ae7fef5 | 19387 | |
6ae7fef5 | 19388 | |
0408008b | 19389 | fi |
723aa3b0 | 19390 | else : |
bf9f3bac | 19391 | |
723aa3b0 ED |
19392 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
19393 | $as_echo "yes" >&6; } | |
bf9f3bac | 19394 | |
723aa3b0 ED |
19395 | cat >>confdefs.h <<\_ACEOF |
19396 | #define HAVE_DEVICE_CREATE 1 | |
19397 | _ACEOF | |
bf9f3bac | 19398 | |
912fd84d | 19399 | |
2e0e7e69 | 19400 | fi |
2e0e7e69 BB |
19401 | |
19402 | ||
19403 | ||
723aa3b0 ED |
19404 | { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5 |
19405 | $as_echo_n "checking whether device_create() wants 5 args... " >&6; } | |
19406 | tmp_flags="$EXTRA_KCFLAGS" | |
19407 | EXTRA_KCFLAGS="-Werror" | |
7731d46b BB |
19408 | |
19409 | ||
19410 | cat confdefs.h - <<_ACEOF >conftest.c | |
19411 | /* confdefs.h. */ | |
19412 | _ACEOF | |
19413 | cat confdefs.h >>conftest.$ac_ext | |
19414 | cat >>conftest.$ac_ext <<_ACEOF | |
19415 | /* end confdefs.h. */ | |
19416 | ||
19417 | ||
723aa3b0 | 19418 | #include <linux/device.h> |
7731d46b BB |
19419 | |
19420 | int | |
19421 | main (void) | |
19422 | { | |
19423 | ||
723aa3b0 | 19424 | device_create(NULL, NULL, 0, NULL, "%d", 1); |
7731d46b BB |
19425 | |
19426 | ; | |
19427 | return 0; | |
19428 | } | |
19429 | ||
19430 | _ACEOF | |
19431 | ||
19432 | ||
df7cc5bc | 19433 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
7731d46b | 19434 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
19435 | modpost_flag='' |
19436 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19437 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
7731d46b BB |
19438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19439 | (eval $ac_try) 2>&5 | |
19440 | ac_status=$? | |
19441 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19442 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19444 | (eval $ac_try) 2>&5 | |
19445 | ac_status=$? | |
19446 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19447 | (exit $ac_status); }; }; then | |
19448 | ||
19449 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
19450 | $as_echo "yes" >&6; } | |
723aa3b0 ED |
19451 | |
19452 | cat >>confdefs.h <<\_ACEOF | |
19453 | #define HAVE_5ARGS_DEVICE_CREATE 1 | |
19454 | _ACEOF | |
19455 | ||
7731d46b BB |
19456 | |
19457 | else | |
19458 | $as_echo "$as_me: failed program was:" >&5 | |
19459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19460 | ||
19461 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
19462 | $as_echo "no" >&6; } | |
19463 | ||
19464 | ||
19465 | ||
7731d46b BB |
19466 | fi |
19467 | ||
19468 | rm -Rf build | |
19469 | ||
19470 | ||
723aa3b0 | 19471 | EXTRA_KCFLAGS="$tmp_flags" |
7731d46b | 19472 | |
723aa3b0 ED |
19473 | { $as_echo "$as_me:$LINENO: checking whether class_device_create() is available" >&5 |
19474 | $as_echo_n "checking whether class_device_create() is available... " >&6; } | |
7731d46b BB |
19475 | |
19476 | ||
86933a6e | 19477 | |
723aa3b0 ED |
19478 | cat confdefs.h - <<_ACEOF >conftest.c |
19479 | /* confdefs.h. */ | |
19480 | _ACEOF | |
19481 | cat confdefs.h >>conftest.$ac_ext | |
19482 | cat >>conftest.$ac_ext <<_ACEOF | |
19483 | /* end confdefs.h. */ | |
86933a6e BB |
19484 | |
19485 | ||
723aa3b0 | 19486 | #include <linux/device.h> |
bf9f3bac | 19487 | |
723aa3b0 ED |
19488 | int |
19489 | main (void) | |
19490 | { | |
bf9f3bac | 19491 | |
723aa3b0 | 19492 | class_device_create(NULL, NULL, 0, NULL, NULL); |
8934764e | 19493 | |
723aa3b0 ED |
19494 | ; |
19495 | return 0; | |
19496 | } | |
055ffd98 | 19497 | |
723aa3b0 | 19498 | _ACEOF |
c950d148 | 19499 | |
c950d148 | 19500 | |
723aa3b0 ED |
19501 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
19502 | echo "obj-m := conftest.o" >build/Makefile | |
19503 | modpost_flag='' | |
19504 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19505 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19507 | (eval $ac_try) 2>&5 | |
19508 | ac_status=$? | |
19509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19510 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19512 | (eval $ac_try) 2>&5 | |
19513 | ac_status=$? | |
19514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19515 | (exit $ac_status); }; }; then | |
19516 | rc=0 | |
055ffd98 | 19517 | else |
723aa3b0 ED |
19518 | $as_echo "$as_me: failed program was:" >&5 |
19519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19520 | rc=1 | |
c950d148 | 19521 | |
c950d148 | 19522 | |
055ffd98 BB |
19523 | fi |
19524 | ||
723aa3b0 | 19525 | rm -Rf build |
055ffd98 | 19526 | |
c950d148 | 19527 | |
723aa3b0 | 19528 | if test $rc -ne 0; then : |
3c208a54 | 19529 | |
723aa3b0 ED |
19530 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
19531 | $as_echo "no" >&6; } | |
19532 | ||
19533 | else | |
19534 | if test "x$enable_linux_builtin" != xyes; then | |
bf9f3bac | 19535 | |
723aa3b0 ED |
19536 | grep -q -E '[[:space:]]class_device_create[[:space:]]' \ |
19537 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
19538 | rc=$? | |
19539 | if test $rc -ne 0; then | |
19540 | export=0 | |
19541 | for file in drivers/base/class.c; do | |
19542 | grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \ | |
19543 | "$LINUX_OBJ/$file" 2>/dev/null | |
19544 | rc=$? | |
19545 | if test $rc -eq 0; then | |
19546 | export=1 | |
19547 | break; | |
19548 | fi | |
19549 | done | |
19550 | if test $export -eq 0; then : | |
19551 | rc=1 | |
19552 | else : | |
19553 | rc=0 | |
19554 | fi | |
19555 | else : | |
19556 | rc=0 | |
19557 | fi | |
bf9f3bac | 19558 | |
723aa3b0 ED |
19559 | fi |
19560 | if test $rc -ne 0; then : | |
4b2220f0 | 19561 | |
723aa3b0 ED |
19562 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
19563 | $as_echo "no" >&6; } | |
4b2220f0 | 19564 | |
723aa3b0 | 19565 | else : |
4b2220f0 | 19566 | |
723aa3b0 ED |
19567 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
19568 | $as_echo "yes" >&6; } | |
3c208a54 | 19569 | |
4b2220f0 | 19570 | cat >>confdefs.h <<\_ACEOF |
723aa3b0 | 19571 | #define HAVE_CLASS_DEVICE_CREATE 1 |
4b2220f0 BB |
19572 | _ACEOF |
19573 | ||
3c208a54 | 19574 | |
723aa3b0 ED |
19575 | fi |
19576 | fi | |
3c208a54 | 19577 | |
3c208a54 | 19578 | |
723aa3b0 ED |
19579 | { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is available as export" >&5 |
19580 | $as_echo_n "checking whether set_normalized_timespec() is available as export... " >&6; } | |
4b2220f0 BB |
19581 | |
19582 | ||
3c208a54 | 19583 | |
723aa3b0 ED |
19584 | cat confdefs.h - <<_ACEOF >conftest.c |
19585 | /* confdefs.h. */ | |
19586 | _ACEOF | |
19587 | cat confdefs.h >>conftest.$ac_ext | |
19588 | cat >>conftest.$ac_ext <<_ACEOF | |
19589 | /* end confdefs.h. */ | |
4b2220f0 BB |
19590 | |
19591 | ||
723aa3b0 | 19592 | #include <linux/time.h> |
8934764e | 19593 | |
723aa3b0 ED |
19594 | int |
19595 | main (void) | |
19596 | { | |
055ffd98 | 19597 | |
723aa3b0 | 19598 | set_normalized_timespec(NULL, 0, 0); |
bf9f3bac | 19599 | |
723aa3b0 ED |
19600 | ; |
19601 | return 0; | |
19602 | } | |
3c208a54 | 19603 | |
bf9f3bac BB |
19604 | _ACEOF |
19605 | ||
3c208a54 | 19606 | |
723aa3b0 ED |
19607 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
19608 | echo "obj-m := conftest.o" >build/Makefile | |
19609 | modpost_flag='' | |
19610 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19611 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19613 | (eval $ac_try) 2>&5 | |
19614 | ac_status=$? | |
19615 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19616 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19618 | (eval $ac_try) 2>&5 | |
19619 | ac_status=$? | |
19620 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19621 | (exit $ac_status); }; }; then | |
19622 | rc=0 | |
3c208a54 | 19623 | else |
723aa3b0 ED |
19624 | $as_echo "$as_me: failed program was:" >&5 |
19625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19626 | rc=1 | |
3c208a54 | 19627 | |
3c208a54 | 19628 | |
055ffd98 | 19629 | fi |
bf9f3bac | 19630 | |
723aa3b0 | 19631 | rm -Rf build |
bf9f3bac | 19632 | |
3c208a54 | 19633 | |
723aa3b0 | 19634 | if test $rc -ne 0; then : |
bf9f3bac | 19635 | |
723aa3b0 ED |
19636 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
19637 | $as_echo "no" >&6; } | |
8934764e | 19638 | |
723aa3b0 ED |
19639 | else |
19640 | if test "x$enable_linux_builtin" != xyes; then | |
055ffd98 | 19641 | |
723aa3b0 ED |
19642 | grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \ |
19643 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
19644 | rc=$? | |
19645 | if test $rc -ne 0; then | |
19646 | export=0 | |
19647 | for file in kernel/time.c; do | |
19648 | grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \ | |
19649 | "$LINUX_OBJ/$file" 2>/dev/null | |
19650 | rc=$? | |
19651 | if test $rc -eq 0; then | |
19652 | export=1 | |
19653 | break; | |
19654 | fi | |
19655 | done | |
19656 | if test $export -eq 0; then : | |
19657 | rc=1 | |
19658 | else : | |
19659 | rc=0 | |
19660 | fi | |
19661 | else : | |
19662 | rc=0 | |
19663 | fi | |
bf9f3bac | 19664 | |
723aa3b0 ED |
19665 | fi |
19666 | if test $rc -ne 0; then : | |
3c208a54 | 19667 | |
723aa3b0 ED |
19668 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
19669 | $as_echo "no" >&6; } | |
bf9f3bac | 19670 | |
723aa3b0 | 19671 | else : |
3c208a54 | 19672 | |
723aa3b0 ED |
19673 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
19674 | $as_echo "yes" >&6; } | |
3c208a54 | 19675 | |
723aa3b0 ED |
19676 | cat >>confdefs.h <<\_ACEOF |
19677 | #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1 | |
19678 | _ACEOF | |
3c208a54 | 19679 | |
055ffd98 | 19680 | |
723aa3b0 ED |
19681 | fi |
19682 | fi | |
055ffd98 | 19683 | |
3c208a54 | 19684 | |
bf9f3bac | 19685 | |
723aa3b0 ED |
19686 | { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5 |
19687 | $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; } | |
0408008b ED |
19688 | |
19689 | ||
19690 | cat confdefs.h - <<_ACEOF >conftest.c | |
19691 | /* confdefs.h. */ | |
19692 | _ACEOF | |
19693 | cat confdefs.h >>conftest.$ac_ext | |
19694 | cat >>conftest.$ac_ext <<_ACEOF | |
19695 | /* end confdefs.h. */ | |
19696 | ||
19697 | ||
723aa3b0 ED |
19698 | #include <linux/time.h> |
19699 | void set_normalized_timespec(struct timespec *ts, | |
19700 | time_t sec, long nsec) { } | |
19701 | ||
0408008b ED |
19702 | int |
19703 | main (void) | |
19704 | { | |
19705 | ||
19706 | ; | |
19707 | return 0; | |
19708 | } | |
19709 | ||
19710 | _ACEOF | |
19711 | ||
19712 | ||
df7cc5bc | 19713 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
0408008b | 19714 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
19715 | modpost_flag='' |
19716 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19717 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
0408008b ED |
19718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19719 | (eval $ac_try) 2>&5 | |
19720 | ac_status=$? | |
19721 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19722 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19724 | (eval $ac_try) 2>&5 | |
19725 | ac_status=$? | |
19726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19727 | (exit $ac_status); }; }; then | |
19728 | ||
723aa3b0 ED |
19729 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
19730 | $as_echo "no" >&6; } | |
0408008b ED |
19731 | |
19732 | else | |
19733 | $as_echo "$as_me: failed program was:" >&5 | |
19734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19735 | ||
723aa3b0 ED |
19736 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
19737 | $as_echo "yes" >&6; } | |
0408008b | 19738 | |
723aa3b0 ED |
19739 | cat >>confdefs.h <<\_ACEOF |
19740 | #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1 | |
19741 | _ACEOF | |
0408008b ED |
19742 | |
19743 | ||
0408008b | 19744 | |
0408008b | 19745 | |
723aa3b0 | 19746 | fi |
0408008b | 19747 | |
723aa3b0 | 19748 | rm -Rf build |
0408008b | 19749 | |
5e9b5d83 | 19750 | |
8934764e | 19751 | |
5e9b5d83 | 19752 | |
723aa3b0 ED |
19753 | { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5 |
19754 | $as_echo_n "checking whether timespec_sub() is available... " >&6; } | |
bf9f3bac BB |
19755 | |
19756 | ||
dbe561d8 | 19757 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
19758 | /* confdefs.h. */ |
19759 | _ACEOF | |
19760 | cat confdefs.h >>conftest.$ac_ext | |
19761 | cat >>conftest.$ac_ext <<_ACEOF | |
19762 | /* end confdefs.h. */ | |
19763 | ||
19764 | ||
723aa3b0 | 19765 | #include <linux/time.h> |
bf9f3bac BB |
19766 | |
19767 | int | |
19768 | main (void) | |
19769 | { | |
19770 | ||
723aa3b0 ED |
19771 | struct timespec a = { 0 }; |
19772 | struct timespec b = { 0 }; | |
19773 | struct timespec c __attribute__ ((unused)); | |
19774 | c = timespec_sub(a, b); | |
bf9f3bac BB |
19775 | |
19776 | ; | |
19777 | return 0; | |
19778 | } | |
19779 | ||
19780 | _ACEOF | |
19781 | ||
c5f70460 | 19782 | |
df7cc5bc | 19783 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 19784 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
19785 | modpost_flag='' |
19786 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19787 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
19788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19789 | (eval $ac_try) 2>&5 | |
19790 | ac_status=$? | |
8934764e | 19791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
19792 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
19793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19794 | (eval $ac_try) 2>&5 | |
19795 | ac_status=$? | |
8934764e | 19796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
19797 | (exit $ac_status); }; }; then |
19798 | ||
723aa3b0 ED |
19799 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
19800 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
19801 | |
19802 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 19803 | #define HAVE_TIMESPEC_SUB 1 |
bf9f3bac BB |
19804 | _ACEOF |
19805 | ||
19806 | ||
19807 | else | |
8934764e | 19808 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
19809 | sed 's/^/| /' conftest.$ac_ext >&5 |
19810 | ||
723aa3b0 ED |
19811 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
19812 | $as_echo "no" >&6; } | |
bf9f3bac | 19813 | |
c5f70460 BB |
19814 | |
19815 | ||
bf9f3bac | 19816 | fi |
c5f70460 BB |
19817 | |
19818 | rm -Rf build | |
19819 | ||
bf9f3bac BB |
19820 | |
19821 | ||
d04c8a56 | 19822 | |
723aa3b0 ED |
19823 | { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5 |
19824 | $as_echo_n "checking whether init_utsname() is available... " >&6; } | |
d04c8a56 | 19825 | |
d04c8a56 | 19826 | |
723aa3b0 ED |
19827 | cat confdefs.h - <<_ACEOF >conftest.c |
19828 | /* confdefs.h. */ | |
19829 | _ACEOF | |
19830 | cat confdefs.h >>conftest.$ac_ext | |
19831 | cat >>conftest.$ac_ext <<_ACEOF | |
19832 | /* end confdefs.h. */ | |
d04c8a56 | 19833 | |
d04c8a56 | 19834 | |
723aa3b0 ED |
19835 | #include <linux/utsname.h> |
19836 | ||
19837 | int | |
19838 | main (void) | |
19839 | { | |
d04c8a56 | 19840 | |
723aa3b0 ED |
19841 | struct new_utsname *a __attribute__ ((unused)); |
19842 | a = init_utsname(); | |
d04c8a56 | 19843 | |
723aa3b0 ED |
19844 | ; |
19845 | return 0; | |
19846 | } | |
19847 | ||
19848 | _ACEOF | |
d04c8a56 BB |
19849 | |
19850 | ||
723aa3b0 ED |
19851 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
19852 | echo "obj-m := conftest.o" >build/Makefile | |
19853 | modpost_flag='' | |
19854 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19855 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
19856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19857 | (eval $ac_try) 2>&5 | |
19858 | ac_status=$? | |
19859 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19860 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19862 | (eval $ac_try) 2>&5 | |
19863 | ac_status=$? | |
19864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19865 | (exit $ac_status); }; }; then | |
d04c8a56 | 19866 | |
723aa3b0 ED |
19867 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
19868 | $as_echo "yes" >&6; } | |
d04c8a56 BB |
19869 | |
19870 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 19871 | #define HAVE_INIT_UTSNAME 1 |
d04c8a56 BB |
19872 | _ACEOF |
19873 | ||
19874 | ||
19875 | else | |
723aa3b0 ED |
19876 | $as_echo "$as_me: failed program was:" >&5 |
19877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d04c8a56 | 19878 | |
723aa3b0 ED |
19879 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
19880 | $as_echo "no" >&6; } | |
d04c8a56 | 19881 | |
d04c8a56 BB |
19882 | |
19883 | ||
19884 | fi | |
19885 | ||
723aa3b0 | 19886 | rm -Rf build |
d04c8a56 | 19887 | |
d04c8a56 | 19888 | |
d04c8a56 | 19889 | |
723aa3b0 ED |
19890 | |
19891 | { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5 | |
19892 | $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; } | |
bf9f3bac BB |
19893 | |
19894 | ||
dbe561d8 | 19895 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
19896 | /* confdefs.h. */ |
19897 | _ACEOF | |
19898 | cat confdefs.h >>conftest.$ac_ext | |
19899 | cat >>conftest.$ac_ext <<_ACEOF | |
19900 | /* end confdefs.h. */ | |
19901 | ||
19902 | ||
723aa3b0 | 19903 | #include <linux/fdtable.h> |
bf9f3bac BB |
19904 | |
19905 | int | |
19906 | main (void) | |
19907 | { | |
19908 | ||
723aa3b0 | 19909 | return 0; |
bf9f3bac BB |
19910 | |
19911 | ; | |
19912 | return 0; | |
19913 | } | |
19914 | ||
19915 | _ACEOF | |
19916 | ||
c5f70460 | 19917 | |
df7cc5bc | 19918 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 19919 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
19920 | modpost_flag='' |
19921 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19922 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
19923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19924 | (eval $ac_try) 2>&5 | |
19925 | ac_status=$? | |
8934764e | 19926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
19927 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
19928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19929 | (eval $ac_try) 2>&5 | |
19930 | ac_status=$? | |
8934764e | 19931 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
19932 | (exit $ac_status); }; }; then |
19933 | ||
bf9f3bac BB |
19934 | |
19935 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 19936 | #define HAVE_FDTABLE_HEADER 1 |
bf9f3bac BB |
19937 | _ACEOF |
19938 | ||
723aa3b0 ED |
19939 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
19940 | $as_echo "yes" >&6; } | |
19941 | ||
bf9f3bac | 19942 | |
302b88e6 | 19943 | else |
8934764e | 19944 | $as_echo "$as_me: failed program was:" >&5 |
302b88e6 BB |
19945 | sed 's/^/| /' conftest.$ac_ext >&5 |
19946 | ||
8934764e BB |
19947 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
19948 | $as_echo "no" >&6; } | |
302b88e6 BB |
19949 | |
19950 | ||
19951 | ||
723aa3b0 | 19952 | |
302b88e6 BB |
19953 | fi |
19954 | ||
19955 | rm -Rf build | |
19956 | ||
19957 | ||
19958 | ||
723aa3b0 ED |
19959 | |
19960 | ||
19961 | { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5 | |
19962 | $as_echo_n "checking whether files_fdtable() is available... " >&6; } | |
302b88e6 BB |
19963 | |
19964 | ||
dbe561d8 | 19965 | cat confdefs.h - <<_ACEOF >conftest.c |
302b88e6 BB |
19966 | /* confdefs.h. */ |
19967 | _ACEOF | |
19968 | cat confdefs.h >>conftest.$ac_ext | |
19969 | cat >>conftest.$ac_ext <<_ACEOF | |
19970 | /* end confdefs.h. */ | |
19971 | ||
19972 | ||
723aa3b0 ED |
19973 | #include <linux/sched.h> |
19974 | #include <linux/file.h> | |
19975 | #ifdef HAVE_FDTABLE_HEADER | |
19976 | #include <linux/fdtable.h> | |
19977 | #endif | |
302b88e6 BB |
19978 | |
19979 | int | |
19980 | main (void) | |
19981 | { | |
19982 | ||
723aa3b0 ED |
19983 | struct files_struct *files = current->files; |
19984 | struct fdtable *fdt __attribute__ ((unused)); | |
19985 | fdt = files_fdtable(files); | |
302b88e6 BB |
19986 | |
19987 | ; | |
19988 | return 0; | |
19989 | } | |
19990 | ||
19991 | _ACEOF | |
19992 | ||
19993 | ||
df7cc5bc | 19994 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
302b88e6 | 19995 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
19996 | modpost_flag='' |
19997 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
19998 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
302b88e6 BB |
19999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20000 | (eval $ac_try) 2>&5 | |
20001 | ac_status=$? | |
8934764e | 20002 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
20003 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
20004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20005 | (eval $ac_try) 2>&5 | |
20006 | ac_status=$? | |
8934764e | 20007 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
20008 | (exit $ac_status); }; }; then |
20009 | ||
8934764e BB |
20010 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
20011 | $as_echo "yes" >&6; } | |
302b88e6 BB |
20012 | |
20013 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20014 | #define HAVE_FILES_FDTABLE 1 |
302b88e6 BB |
20015 | _ACEOF |
20016 | ||
20017 | ||
20018 | else | |
8934764e | 20019 | $as_echo "$as_me: failed program was:" >&5 |
302b88e6 BB |
20020 | sed 's/^/| /' conftest.$ac_ext >&5 |
20021 | ||
8934764e BB |
20022 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20023 | $as_echo "no" >&6; } | |
302b88e6 BB |
20024 | |
20025 | ||
20026 | ||
20027 | fi | |
20028 | ||
20029 | rm -Rf build | |
20030 | ||
20031 | ||
20032 | ||
723aa3b0 ED |
20033 | |
20034 | { $as_echo "$as_me:$LINENO: checking whether __clear_close_on_exec() is available" >&5 | |
20035 | $as_echo_n "checking whether __clear_close_on_exec() is available... " >&6; } | |
302b88e6 BB |
20036 | |
20037 | ||
dbe561d8 | 20038 | cat confdefs.h - <<_ACEOF >conftest.c |
302b88e6 BB |
20039 | /* confdefs.h. */ |
20040 | _ACEOF | |
20041 | cat confdefs.h >>conftest.$ac_ext | |
20042 | cat >>conftest.$ac_ext <<_ACEOF | |
20043 | /* end confdefs.h. */ | |
20044 | ||
20045 | ||
723aa3b0 | 20046 | #include <linux/fdtable.h> |
302b88e6 BB |
20047 | |
20048 | int | |
20049 | main (void) | |
20050 | { | |
20051 | ||
723aa3b0 ED |
20052 | struct fdtable *fdt = NULL; |
20053 | int fd = 0; | |
20054 | ||
20055 | __clear_close_on_exec(fd, fdt); | |
302b88e6 BB |
20056 | |
20057 | ; | |
20058 | return 0; | |
20059 | } | |
20060 | ||
20061 | _ACEOF | |
20062 | ||
20063 | ||
df7cc5bc | 20064 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
302b88e6 | 20065 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20066 | modpost_flag='' |
20067 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20068 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
302b88e6 BB |
20069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20070 | (eval $ac_try) 2>&5 | |
20071 | ac_status=$? | |
8934764e | 20072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
20073 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
20074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20075 | (eval $ac_try) 2>&5 | |
20076 | ac_status=$? | |
8934764e | 20077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
302b88e6 BB |
20078 | (exit $ac_status); }; }; then |
20079 | ||
8934764e BB |
20080 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
20081 | $as_echo "yes" >&6; } | |
302b88e6 BB |
20082 | |
20083 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20084 | #define HAVE_CLEAR_CLOSE_ON_EXEC 1 |
302b88e6 BB |
20085 | _ACEOF |
20086 | ||
20087 | ||
bf9f3bac | 20088 | else |
8934764e | 20089 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
20090 | sed 's/^/| /' conftest.$ac_ext >&5 |
20091 | ||
8934764e BB |
20092 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20093 | $as_echo "no" >&6; } | |
bf9f3bac | 20094 | |
c5f70460 BB |
20095 | |
20096 | ||
bf9f3bac | 20097 | fi |
c5f70460 BB |
20098 | |
20099 | rm -Rf build | |
20100 | ||
bf9f3bac BB |
20101 | |
20102 | ||
723aa3b0 ED |
20103 | |
20104 | { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5 | |
20105 | $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; } | |
bf9f3bac BB |
20106 | |
20107 | ||
dbe561d8 | 20108 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
20109 | /* confdefs.h. */ |
20110 | _ACEOF | |
20111 | cat confdefs.h >>conftest.$ac_ext | |
20112 | cat >>conftest.$ac_ext <<_ACEOF | |
20113 | /* end confdefs.h. */ | |
20114 | ||
20115 | ||
723aa3b0 | 20116 | #include <linux/uaccess.h> |
bf9f3bac BB |
20117 | |
20118 | int | |
20119 | main (void) | |
20120 | { | |
20121 | ||
723aa3b0 | 20122 | return 0; |
bf9f3bac BB |
20123 | |
20124 | ; | |
20125 | return 0; | |
20126 | } | |
20127 | ||
20128 | _ACEOF | |
20129 | ||
c5f70460 | 20130 | |
df7cc5bc | 20131 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 20132 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20133 | modpost_flag='' |
20134 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20135 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
20136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20137 | (eval $ac_try) 2>&5 | |
20138 | ac_status=$? | |
8934764e | 20139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
20140 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
20141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20142 | (eval $ac_try) 2>&5 | |
20143 | ac_status=$? | |
8934764e | 20144 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
20145 | (exit $ac_status); }; }; then |
20146 | ||
bf9f3bac BB |
20147 | |
20148 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20149 | #define HAVE_UACCESS_HEADER 1 |
bf9f3bac BB |
20150 | _ACEOF |
20151 | ||
723aa3b0 ED |
20152 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
20153 | $as_echo "yes" >&6; } | |
20154 | ||
bf9f3bac BB |
20155 | |
20156 | else | |
8934764e | 20157 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
20158 | sed 's/^/| /' conftest.$ac_ext >&5 |
20159 | ||
8934764e BB |
20160 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20161 | $as_echo "no" >&6; } | |
bf9f3bac | 20162 | |
c5f70460 BB |
20163 | |
20164 | ||
723aa3b0 | 20165 | |
bf9f3bac | 20166 | fi |
c5f70460 BB |
20167 | |
20168 | rm -Rf build | |
20169 | ||
bf9f3bac BB |
20170 | |
20171 | ||
723aa3b0 ED |
20172 | |
20173 | ||
20174 | { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5 | |
20175 | $as_echo_n "checking whether kmalloc_node() is available... " >&6; } | |
bf9f3bac BB |
20176 | |
20177 | ||
dbe561d8 | 20178 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
20179 | /* confdefs.h. */ |
20180 | _ACEOF | |
20181 | cat confdefs.h >>conftest.$ac_ext | |
20182 | cat >>conftest.$ac_ext <<_ACEOF | |
20183 | /* end confdefs.h. */ | |
20184 | ||
20185 | ||
723aa3b0 | 20186 | #include <linux/slab.h> |
bf9f3bac BB |
20187 | |
20188 | int | |
20189 | main (void) | |
20190 | { | |
20191 | ||
723aa3b0 ED |
20192 | void *a __attribute__ ((unused)); |
20193 | a = kmalloc_node(1, GFP_KERNEL, 0); | |
bf9f3bac BB |
20194 | |
20195 | ; | |
20196 | return 0; | |
20197 | } | |
20198 | ||
20199 | _ACEOF | |
20200 | ||
c5f70460 | 20201 | |
df7cc5bc | 20202 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 20203 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20204 | modpost_flag='' |
20205 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20206 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
20207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20208 | (eval $ac_try) 2>&5 | |
20209 | ac_status=$? | |
8934764e | 20210 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
20211 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
20212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20213 | (eval $ac_try) 2>&5 | |
20214 | ac_status=$? | |
8934764e | 20215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
20216 | (exit $ac_status); }; }; then |
20217 | ||
8934764e BB |
20218 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
20219 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
20220 | |
20221 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20222 | #define HAVE_KMALLOC_NODE 1 |
bf9f3bac BB |
20223 | _ACEOF |
20224 | ||
20225 | ||
20226 | else | |
8934764e | 20227 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
20228 | sed 's/^/| /' conftest.$ac_ext >&5 |
20229 | ||
8934764e BB |
20230 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20231 | $as_echo "no" >&6; } | |
bf9f3bac | 20232 | |
c5f70460 BB |
20233 | |
20234 | ||
bf9f3bac | 20235 | fi |
c5f70460 BB |
20236 | |
20237 | rm -Rf build | |
20238 | ||
bf9f3bac BB |
20239 | |
20240 | ||
723aa3b0 ED |
20241 | { $as_echo "$as_me:$LINENO: checking whether monotonic_clock() is available" >&5 |
20242 | $as_echo_n "checking whether monotonic_clock() is available... " >&6; } | |
bf9f3bac | 20243 | |
bf9f3bac BB |
20244 | |
20245 | ||
dbe561d8 | 20246 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
20247 | /* confdefs.h. */ |
20248 | _ACEOF | |
20249 | cat confdefs.h >>conftest.$ac_ext | |
20250 | cat >>conftest.$ac_ext <<_ACEOF | |
20251 | /* end confdefs.h. */ | |
20252 | ||
20253 | ||
723aa3b0 | 20254 | #include <linux/timex.h> |
bf9f3bac BB |
20255 | |
20256 | int | |
20257 | main (void) | |
20258 | { | |
20259 | ||
723aa3b0 | 20260 | monotonic_clock(); |
bf9f3bac BB |
20261 | |
20262 | ; | |
20263 | return 0; | |
20264 | } | |
20265 | ||
20266 | _ACEOF | |
20267 | ||
c5f70460 | 20268 | |
df7cc5bc | 20269 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 20270 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20271 | modpost_flag='' |
20272 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20273 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
20274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20275 | (eval $ac_try) 2>&5 | |
20276 | ac_status=$? | |
8934764e | 20277 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
20278 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
20279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20280 | (eval $ac_try) 2>&5 | |
20281 | ac_status=$? | |
8934764e | 20282 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac | 20283 | (exit $ac_status); }; }; then |
723aa3b0 ED |
20284 | rc=0 |
20285 | else | |
20286 | $as_echo "$as_me: failed program was:" >&5 | |
20287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20288 | rc=1 | |
bf9f3bac | 20289 | |
bf9f3bac | 20290 | |
723aa3b0 | 20291 | fi |
bf9f3bac | 20292 | |
723aa3b0 | 20293 | rm -Rf build |
bf9f3bac | 20294 | |
723aa3b0 ED |
20295 | |
20296 | if test $rc -ne 0; then : | |
bf9f3bac | 20297 | |
8934764e BB |
20298 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20299 | $as_echo "no" >&6; } | |
bf9f3bac | 20300 | |
723aa3b0 ED |
20301 | else |
20302 | if test "x$enable_linux_builtin" != xyes; then | |
c5f70460 | 20303 | |
723aa3b0 ED |
20304 | grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \ |
20305 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20306 | rc=$? | |
20307 | if test $rc -ne 0; then | |
20308 | export=0 | |
20309 | for file in ; do | |
20310 | grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \ | |
20311 | "$LINUX_OBJ/$file" 2>/dev/null | |
20312 | rc=$? | |
20313 | if test $rc -eq 0; then | |
20314 | export=1 | |
20315 | break; | |
20316 | fi | |
20317 | done | |
20318 | if test $export -eq 0; then : | |
20319 | rc=1 | |
20320 | else : | |
20321 | rc=0 | |
20322 | fi | |
20323 | else : | |
20324 | rc=0 | |
20325 | fi | |
c5f70460 | 20326 | |
723aa3b0 ED |
20327 | fi |
20328 | if test $rc -ne 0; then : | |
c5f70460 | 20329 | |
723aa3b0 ED |
20330 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20331 | $as_echo "no" >&6; } | |
c5f70460 | 20332 | |
723aa3b0 | 20333 | else : |
bf9f3bac | 20334 | |
723aa3b0 ED |
20335 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
20336 | $as_echo "yes" >&6; } | |
20337 | ||
20338 | cat >>confdefs.h <<\_ACEOF | |
20339 | #define HAVE_MONOTONIC_CLOCK 1 | |
20340 | _ACEOF | |
20341 | ||
20342 | ||
20343 | fi | |
20344 | fi | |
bf9f3bac | 20345 | |
723aa3b0 ED |
20346 | |
20347 | ||
20348 | { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5 | |
20349 | $as_echo_n "checking whether struct inode has i_mutex... " >&6; } | |
23aa63cb BB |
20350 | |
20351 | ||
20352 | cat confdefs.h - <<_ACEOF >conftest.c | |
20353 | /* confdefs.h. */ | |
20354 | _ACEOF | |
20355 | cat confdefs.h >>conftest.$ac_ext | |
20356 | cat >>conftest.$ac_ext <<_ACEOF | |
20357 | /* end confdefs.h. */ | |
20358 | ||
20359 | ||
723aa3b0 ED |
20360 | #include <linux/fs.h> |
20361 | #include <linux/mutex.h> | |
23aa63cb BB |
20362 | |
20363 | int | |
20364 | main (void) | |
20365 | { | |
20366 | ||
723aa3b0 ED |
20367 | struct inode i; |
20368 | mutex_init(&i.i_mutex); | |
23aa63cb BB |
20369 | |
20370 | ; | |
20371 | return 0; | |
20372 | } | |
20373 | ||
20374 | _ACEOF | |
20375 | ||
20376 | ||
df7cc5bc | 20377 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
23aa63cb | 20378 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20379 | modpost_flag='' |
20380 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20381 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23aa63cb BB |
20382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20383 | (eval $ac_try) 2>&5 | |
20384 | ac_status=$? | |
20385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20386 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20388 | (eval $ac_try) 2>&5 | |
20389 | ac_status=$? | |
20390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20391 | (exit $ac_status); }; }; then | |
20392 | ||
20393 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
20394 | $as_echo "yes" >&6; } | |
20395 | ||
20396 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20397 | #define HAVE_INODE_I_MUTEX 1 |
23aa63cb BB |
20398 | _ACEOF |
20399 | ||
20400 | ||
20401 | else | |
20402 | $as_echo "$as_me: failed program was:" >&5 | |
20403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20404 | ||
20405 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
20406 | $as_echo "no" >&6; } | |
20407 | ||
20408 | ||
20409 | ||
20410 | fi | |
20411 | ||
20412 | rm -Rf build | |
20413 | ||
20414 | ||
23aa63cb | 20415 | |
723aa3b0 ED |
20416 | |
20417 | { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5 | |
20418 | $as_echo_n "checking whether struct mutex has owner... " >&6; } | |
bf9f3bac BB |
20419 | |
20420 | ||
dbe561d8 | 20421 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
20422 | /* confdefs.h. */ |
20423 | _ACEOF | |
20424 | cat confdefs.h >>conftest.$ac_ext | |
20425 | cat >>conftest.$ac_ext <<_ACEOF | |
20426 | /* end confdefs.h. */ | |
20427 | ||
20428 | ||
723aa3b0 | 20429 | #include <linux/mutex.h> |
bf9f3bac BB |
20430 | |
20431 | int | |
20432 | main (void) | |
20433 | { | |
20434 | ||
723aa3b0 ED |
20435 | struct mutex mtx __attribute__ ((unused)); |
20436 | mtx.owner = NULL; | |
bf9f3bac BB |
20437 | |
20438 | ; | |
20439 | return 0; | |
20440 | } | |
20441 | ||
20442 | _ACEOF | |
20443 | ||
c5f70460 | 20444 | |
df7cc5bc | 20445 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 20446 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20447 | modpost_flag='' |
20448 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20449 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
20450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20451 | (eval $ac_try) 2>&5 | |
20452 | ac_status=$? | |
8934764e | 20453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
20454 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
20455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20456 | (eval $ac_try) 2>&5 | |
20457 | ac_status=$? | |
8934764e | 20458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
20459 | (exit $ac_status); }; }; then |
20460 | ||
8934764e BB |
20461 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
20462 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
20463 | |
20464 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20465 | #define HAVE_MUTEX_OWNER 1 |
bf9f3bac BB |
20466 | _ACEOF |
20467 | ||
20468 | ||
20469 | else | |
8934764e | 20470 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
20471 | sed 's/^/| /' conftest.$ac_ext >&5 |
20472 | ||
8934764e BB |
20473 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20474 | $as_echo "no" >&6; } | |
bf9f3bac | 20475 | |
c5f70460 BB |
20476 | |
20477 | ||
bf9f3bac | 20478 | fi |
c5f70460 BB |
20479 | |
20480 | rm -Rf build | |
20481 | ||
bf9f3bac BB |
20482 | |
20483 | ||
20484 | ||
723aa3b0 ED |
20485 | { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5 |
20486 | $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; } | |
20487 | tmp_flags="$EXTRA_KCFLAGS" | |
20488 | EXTRA_KCFLAGS="-Werror" | |
bf9f3bac BB |
20489 | |
20490 | ||
dbe561d8 | 20491 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
20492 | /* confdefs.h. */ |
20493 | _ACEOF | |
20494 | cat confdefs.h >>conftest.$ac_ext | |
20495 | cat >>conftest.$ac_ext <<_ACEOF | |
20496 | /* end confdefs.h. */ | |
20497 | ||
20498 | ||
723aa3b0 | 20499 | #include <linux/mutex.h> |
bf9f3bac BB |
20500 | |
20501 | int | |
20502 | main (void) | |
20503 | { | |
20504 | ||
723aa3b0 ED |
20505 | struct mutex mtx __attribute__ ((unused)); |
20506 | mtx.owner = current; | |
bf9f3bac BB |
20507 | |
20508 | ; | |
20509 | return 0; | |
20510 | } | |
20511 | ||
20512 | _ACEOF | |
20513 | ||
c5f70460 | 20514 | |
df7cc5bc | 20515 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 20516 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20517 | modpost_flag='' |
20518 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20519 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
20520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20521 | (eval $ac_try) 2>&5 | |
20522 | ac_status=$? | |
8934764e | 20523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
20524 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
20525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20526 | (eval $ac_try) 2>&5 | |
20527 | ac_status=$? | |
8934764e | 20528 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
20529 | (exit $ac_status); }; }; then |
20530 | ||
8934764e BB |
20531 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
20532 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
20533 | |
20534 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20535 | #define HAVE_MUTEX_OWNER_TASK_STRUCT 1 |
bf9f3bac BB |
20536 | _ACEOF |
20537 | ||
20538 | ||
79a3bf13 BB |
20539 | else |
20540 | $as_echo "$as_me: failed program was:" >&5 | |
20541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20542 | ||
20543 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
20544 | $as_echo "no" >&6; } | |
20545 | ||
20546 | ||
20547 | ||
20548 | fi | |
20549 | ||
20550 | rm -Rf build | |
20551 | ||
20552 | ||
723aa3b0 | 20553 | EXTRA_KCFLAGS="$tmp_flags" |
79a3bf13 BB |
20554 | |
20555 | ||
723aa3b0 ED |
20556 | { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5 |
20557 | $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; } | |
79a3bf13 BB |
20558 | |
20559 | ||
dbe561d8 | 20560 | cat confdefs.h - <<_ACEOF >conftest.c |
79a3bf13 BB |
20561 | /* confdefs.h. */ |
20562 | _ACEOF | |
20563 | cat confdefs.h >>conftest.$ac_ext | |
20564 | cat >>conftest.$ac_ext <<_ACEOF | |
20565 | /* end confdefs.h. */ | |
20566 | ||
20567 | ||
723aa3b0 | 20568 | #include <linux/mutex.h> |
79a3bf13 BB |
20569 | |
20570 | int | |
20571 | main (void) | |
20572 | { | |
20573 | ||
723aa3b0 ED |
20574 | struct mutex mutex; |
20575 | mutex_init(&mutex); | |
20576 | mutex_lock_nested(&mutex, 0); | |
79a3bf13 BB |
20577 | |
20578 | ; | |
20579 | return 0; | |
20580 | } | |
20581 | ||
20582 | _ACEOF | |
20583 | ||
20584 | ||
df7cc5bc | 20585 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
79a3bf13 | 20586 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20587 | modpost_flag='' |
20588 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20589 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
79a3bf13 BB |
20590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20591 | (eval $ac_try) 2>&5 | |
20592 | ac_status=$? | |
20593 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20594 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
20595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20596 | (eval $ac_try) 2>&5 | |
20597 | ac_status=$? | |
20598 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20599 | (exit $ac_status); }; }; then | |
20600 | ||
20601 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
20602 | $as_echo "yes" >&6; } | |
20603 | ||
20604 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20605 | #define HAVE_MUTEX_LOCK_NESTED 1 |
79a3bf13 BB |
20606 | _ACEOF |
20607 | ||
20608 | ||
bf9f3bac | 20609 | else |
8934764e | 20610 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
20611 | sed 's/^/| /' conftest.$ac_ext >&5 |
20612 | ||
8934764e BB |
20613 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20614 | $as_echo "no" >&6; } | |
bf9f3bac | 20615 | |
c5f70460 BB |
20616 | |
20617 | ||
bf9f3bac | 20618 | fi |
c5f70460 BB |
20619 | |
20620 | rm -Rf build | |
20621 | ||
bf9f3bac BB |
20622 | |
20623 | ||
723aa3b0 ED |
20624 | |
20625 | { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5 | |
20626 | $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; } | |
bf9f3bac BB |
20627 | |
20628 | ||
dbe561d8 | 20629 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
20630 | /* confdefs.h. */ |
20631 | _ACEOF | |
20632 | cat confdefs.h >>conftest.$ac_ext | |
20633 | cat >>conftest.$ac_ext <<_ACEOF | |
20634 | /* end confdefs.h. */ | |
20635 | ||
20636 | ||
723aa3b0 | 20637 | #include <linux/smp.h> |
bf9f3bac BB |
20638 | |
20639 | int | |
20640 | main (void) | |
20641 | { | |
20642 | ||
723aa3b0 | 20643 | on_each_cpu(NULL, NULL, 0); |
bf9f3bac BB |
20644 | |
20645 | ; | |
20646 | return 0; | |
20647 | } | |
20648 | ||
20649 | _ACEOF | |
20650 | ||
c5f70460 | 20651 | |
df7cc5bc | 20652 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 20653 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20654 | modpost_flag='' |
20655 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20656 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
20657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20658 | (eval $ac_try) 2>&5 | |
20659 | ac_status=$? | |
8934764e | 20660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
20661 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
20662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20663 | (eval $ac_try) 2>&5 | |
20664 | ac_status=$? | |
8934764e | 20665 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
20666 | (exit $ac_status); }; }; then |
20667 | ||
8934764e BB |
20668 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
20669 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
20670 | |
20671 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20672 | #define HAVE_3ARGS_ON_EACH_CPU 1 |
bf9f3bac BB |
20673 | _ACEOF |
20674 | ||
20675 | ||
20676 | else | |
8934764e | 20677 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
20678 | sed 's/^/| /' conftest.$ac_ext >&5 |
20679 | ||
8934764e BB |
20680 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20681 | $as_echo "no" >&6; } | |
bf9f3bac | 20682 | |
c5f70460 BB |
20683 | |
20684 | ||
bf9f3bac | 20685 | fi |
c5f70460 BB |
20686 | |
20687 | rm -Rf build | |
20688 | ||
bf9f3bac BB |
20689 | |
20690 | ||
723aa3b0 ED |
20691 | { $as_echo "$as_me:$LINENO: checking whether kallsyms_lookup_name() is available" >&5 |
20692 | $as_echo_n "checking whether kallsyms_lookup_name() is available... " >&6; } | |
bf9f3bac | 20693 | |
8123ac4f BB |
20694 | |
20695 | ||
dbe561d8 | 20696 | cat confdefs.h - <<_ACEOF >conftest.c |
8123ac4f BB |
20697 | /* confdefs.h. */ |
20698 | _ACEOF | |
20699 | cat confdefs.h >>conftest.$ac_ext | |
20700 | cat >>conftest.$ac_ext <<_ACEOF | |
20701 | /* end confdefs.h. */ | |
20702 | ||
20703 | ||
723aa3b0 | 20704 | #include <linux/kallsyms.h> |
8123ac4f BB |
20705 | |
20706 | int | |
20707 | main (void) | |
20708 | { | |
20709 | ||
723aa3b0 | 20710 | kallsyms_lookup_name(NULL); |
8123ac4f BB |
20711 | |
20712 | ; | |
20713 | return 0; | |
20714 | } | |
20715 | ||
20716 | _ACEOF | |
20717 | ||
20718 | ||
df7cc5bc | 20719 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
8123ac4f | 20720 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20721 | modpost_flag='' |
20722 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20723 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
8123ac4f BB |
20724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20725 | (eval $ac_try) 2>&5 | |
20726 | ac_status=$? | |
8934764e | 20727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8123ac4f BB |
20728 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
20729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20730 | (eval $ac_try) 2>&5 | |
20731 | ac_status=$? | |
8934764e | 20732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8123ac4f | 20733 | (exit $ac_status); }; }; then |
723aa3b0 | 20734 | rc=0 |
8123ac4f | 20735 | else |
8934764e | 20736 | $as_echo "$as_me: failed program was:" >&5 |
8123ac4f | 20737 | sed 's/^/| /' conftest.$ac_ext >&5 |
723aa3b0 | 20738 | rc=1 |
8123ac4f BB |
20739 | |
20740 | ||
20741 | fi | |
20742 | ||
20743 | rm -Rf build | |
20744 | ||
20745 | ||
723aa3b0 | 20746 | if test $rc -ne 0; then : |
8123ac4f | 20747 | |
723aa3b0 ED |
20748 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20749 | $as_echo "no" >&6; } | |
8123ac4f | 20750 | |
723aa3b0 ED |
20751 | else |
20752 | if test "x$enable_linux_builtin" != xyes; then | |
20753 | ||
20754 | grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \ | |
2e0e7e69 | 20755 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
bf9f3bac BB |
20756 | rc=$? |
20757 | if test $rc -ne 0; then | |
20758 | export=0 | |
723aa3b0 ED |
20759 | for file in ; do |
20760 | grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \ | |
2e0e7e69 | 20761 | "$LINUX_OBJ/$file" 2>/dev/null |
bf9f3bac | 20762 | rc=$? |
723aa3b0 ED |
20763 | if test $rc -eq 0; then |
20764 | export=1 | |
20765 | break; | |
20766 | fi | |
bf9f3bac | 20767 | done |
723aa3b0 ED |
20768 | if test $export -eq 0; then : |
20769 | rc=1 | |
20770 | else : | |
20771 | rc=0 | |
20772 | fi | |
20773 | else : | |
20774 | rc=0 | |
20775 | fi | |
bf9f3bac | 20776 | |
723aa3b0 ED |
20777 | fi |
20778 | if test $rc -ne 0; then : | |
bf9f3bac | 20779 | |
723aa3b0 ED |
20780 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20781 | $as_echo "no" >&6; } | |
20782 | ||
20783 | else : | |
bf9f3bac | 20784 | |
8934764e BB |
20785 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
20786 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
20787 | |
20788 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20789 | #define HAVE_KALLSYMS_LOOKUP_NAME 1 |
bf9f3bac BB |
20790 | _ACEOF |
20791 | ||
723aa3b0 ED |
20792 | |
20793 | fi | |
bf9f3bac BB |
20794 | fi |
20795 | ||
20796 | ||
723aa3b0 ED |
20797 | { $as_echo "$as_me:$LINENO: checking whether get_vmalloc_info() is available" >&5 |
20798 | $as_echo_n "checking whether get_vmalloc_info() is available... " >&6; } | |
bf9f3bac | 20799 | |
723aa3b0 | 20800 | grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \ |
2e0e7e69 | 20801 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
bf9f3bac BB |
20802 | rc=$? |
20803 | if test $rc -ne 0; then | |
20804 | export=0 | |
723aa3b0 ED |
20805 | for file in ; do |
20806 | grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \ | |
2e0e7e69 | 20807 | "$LINUX_OBJ/$file" 2>/dev/null |
bf9f3bac | 20808 | rc=$? |
723aa3b0 ED |
20809 | if test $rc -eq 0; then |
20810 | export=1 | |
20811 | break; | |
20812 | fi | |
bf9f3bac | 20813 | done |
723aa3b0 ED |
20814 | if test $export -eq 0; then : |
20815 | ||
20816 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
8934764e | 20817 | $as_echo "no" >&6; } |
bf9f3bac | 20818 | |
723aa3b0 ED |
20819 | else : |
20820 | ||
20821 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
8934764e | 20822 | $as_echo "yes" >&6; } |
6ae7fef5 BB |
20823 | |
20824 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20825 | #define HAVE_GET_VMALLOC_INFO 1 |
6ae7fef5 BB |
20826 | _ACEOF |
20827 | ||
723aa3b0 | 20828 | |
6ae7fef5 | 20829 | fi |
723aa3b0 ED |
20830 | else : |
20831 | ||
8934764e BB |
20832 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
20833 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
20834 | |
20835 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20836 | #define HAVE_GET_VMALLOC_INFO 1 |
6ae7fef5 BB |
20837 | _ACEOF |
20838 | ||
723aa3b0 | 20839 | |
6ae7fef5 BB |
20840 | fi |
20841 | ||
20842 | ||
20843 | ||
723aa3b0 ED |
20844 | { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5 |
20845 | $as_echo_n "checking whether symbol *_pgdat exist... " >&6; } | |
20846 | grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null | |
20847 | rc=$? | |
20848 | if test $rc -eq 0; then | |
20849 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
20850 | $as_echo "yes" >&6; } | |
20851 | ||
20852 | cat >>confdefs.h <<\_ACEOF | |
20853 | #define HAVE_PGDAT_HELPERS 1 | |
20854 | _ACEOF | |
20855 | ||
20856 | else | |
20857 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
20858 | $as_echo "no" >&6; } | |
20859 | fi | |
20860 | ||
20861 | { $as_echo "$as_me:$LINENO: checking whether first_online_pgdat() is available" >&5 | |
20862 | $as_echo_n "checking whether first_online_pgdat() is available... " >&6; } | |
20863 | ||
6ae7fef5 BB |
20864 | |
20865 | ||
dbe561d8 | 20866 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
20867 | /* confdefs.h. */ |
20868 | _ACEOF | |
20869 | cat confdefs.h >>conftest.$ac_ext | |
20870 | cat >>conftest.$ac_ext <<_ACEOF | |
20871 | /* end confdefs.h. */ | |
20872 | ||
20873 | ||
723aa3b0 | 20874 | #include <linux/mmzone.h> |
6ae7fef5 BB |
20875 | |
20876 | int | |
20877 | main (void) | |
20878 | { | |
20879 | ||
723aa3b0 ED |
20880 | first_online_pgdat(); |
20881 | ||
6ae7fef5 BB |
20882 | ; |
20883 | return 0; | |
20884 | } | |
20885 | ||
20886 | _ACEOF | |
20887 | ||
20888 | ||
df7cc5bc | 20889 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 20890 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20891 | modpost_flag='' |
20892 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20893 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
20894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20895 | (eval $ac_try) 2>&5 | |
20896 | ac_status=$? | |
8934764e | 20897 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
20898 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
20899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20900 | (eval $ac_try) 2>&5 | |
20901 | ac_status=$? | |
8934764e | 20902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 20903 | (exit $ac_status); }; }; then |
723aa3b0 | 20904 | rc=0 |
6ae7fef5 | 20905 | else |
8934764e | 20906 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 | 20907 | sed 's/^/| /' conftest.$ac_ext >&5 |
723aa3b0 | 20908 | rc=1 |
6ae7fef5 BB |
20909 | |
20910 | ||
20911 | fi | |
20912 | ||
20913 | rm -Rf build | |
20914 | ||
20915 | ||
723aa3b0 | 20916 | if test $rc -ne 0; then : |
6ae7fef5 | 20917 | |
723aa3b0 ED |
20918 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20919 | $as_echo "no" >&6; } | |
6ae7fef5 | 20920 | |
723aa3b0 ED |
20921 | else |
20922 | if test "x$enable_linux_builtin" != xyes; then | |
6ae7fef5 | 20923 | |
723aa3b0 ED |
20924 | grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \ |
20925 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
20926 | rc=$? | |
20927 | if test $rc -ne 0; then | |
20928 | export=0 | |
20929 | for file in ; do | |
20930 | grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \ | |
20931 | "$LINUX_OBJ/$file" 2>/dev/null | |
20932 | rc=$? | |
20933 | if test $rc -eq 0; then | |
20934 | export=1 | |
20935 | break; | |
20936 | fi | |
20937 | done | |
20938 | if test $export -eq 0; then : | |
20939 | rc=1 | |
20940 | else : | |
20941 | rc=0 | |
20942 | fi | |
20943 | else : | |
20944 | rc=0 | |
20945 | fi | |
6ae7fef5 | 20946 | |
723aa3b0 ED |
20947 | fi |
20948 | if test $rc -ne 0; then : | |
6ae7fef5 | 20949 | |
723aa3b0 ED |
20950 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
20951 | $as_echo "no" >&6; } | |
6ae7fef5 | 20952 | |
723aa3b0 | 20953 | else : |
6ae7fef5 | 20954 | |
8934764e BB |
20955 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
20956 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
20957 | |
20958 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 20959 | #define HAVE_FIRST_ONLINE_PGDAT 1 |
6ae7fef5 BB |
20960 | _ACEOF |
20961 | ||
20962 | ||
723aa3b0 ED |
20963 | fi |
20964 | fi | |
6ae7fef5 BB |
20965 | |
20966 | ||
723aa3b0 ED |
20967 | { $as_echo "$as_me:$LINENO: checking whether next_online_pgdat() is available" >&5 |
20968 | $as_echo_n "checking whether next_online_pgdat() is available... " >&6; } | |
6ae7fef5 | 20969 | |
6ae7fef5 BB |
20970 | |
20971 | ||
dbe561d8 | 20972 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
20973 | /* confdefs.h. */ |
20974 | _ACEOF | |
20975 | cat confdefs.h >>conftest.$ac_ext | |
20976 | cat >>conftest.$ac_ext <<_ACEOF | |
20977 | /* end confdefs.h. */ | |
20978 | ||
20979 | ||
723aa3b0 | 20980 | #include <linux/mmzone.h> |
6ae7fef5 BB |
20981 | |
20982 | int | |
20983 | main (void) | |
20984 | { | |
20985 | ||
723aa3b0 | 20986 | next_online_pgdat(NULL); |
6ae7fef5 BB |
20987 | |
20988 | ; | |
20989 | return 0; | |
20990 | } | |
20991 | ||
20992 | _ACEOF | |
20993 | ||
20994 | ||
df7cc5bc | 20995 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 20996 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
20997 | modpost_flag='' |
20998 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
20999 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
21000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21001 | (eval $ac_try) 2>&5 | |
21002 | ac_status=$? | |
8934764e | 21003 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
21004 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
21005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21006 | (eval $ac_try) 2>&5 | |
21007 | ac_status=$? | |
8934764e | 21008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 21009 | (exit $ac_status); }; }; then |
723aa3b0 ED |
21010 | rc=0 |
21011 | else | |
21012 | $as_echo "$as_me: failed program was:" >&5 | |
21013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21014 | rc=1 | |
6ae7fef5 | 21015 | |
6ae7fef5 | 21016 | |
723aa3b0 ED |
21017 | fi |
21018 | ||
21019 | rm -Rf build | |
21020 | ||
21021 | ||
21022 | if test $rc -ne 0; then : | |
21023 | ||
21024 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
21025 | $as_echo "no" >&6; } | |
21026 | ||
21027 | else | |
21028 | if test "x$enable_linux_builtin" != xyes; then | |
6ae7fef5 | 21029 | |
723aa3b0 ED |
21030 | grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \ |
21031 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21032 | rc=$? | |
21033 | if test $rc -ne 0; then | |
21034 | export=0 | |
21035 | for file in ; do | |
21036 | grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \ | |
21037 | "$LINUX_OBJ/$file" 2>/dev/null | |
21038 | rc=$? | |
21039 | if test $rc -eq 0; then | |
21040 | export=1 | |
21041 | break; | |
21042 | fi | |
21043 | done | |
21044 | if test $export -eq 0; then : | |
21045 | rc=1 | |
21046 | else : | |
21047 | rc=0 | |
21048 | fi | |
21049 | else : | |
21050 | rc=0 | |
21051 | fi | |
6ae7fef5 | 21052 | |
723aa3b0 ED |
21053 | fi |
21054 | if test $rc -ne 0; then : | |
6ae7fef5 | 21055 | |
8934764e BB |
21056 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
21057 | $as_echo "no" >&6; } | |
6ae7fef5 | 21058 | |
723aa3b0 | 21059 | else : |
6ae7fef5 | 21060 | |
723aa3b0 ED |
21061 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
21062 | $as_echo "yes" >&6; } | |
6ae7fef5 | 21063 | |
723aa3b0 ED |
21064 | cat >>confdefs.h <<\_ACEOF |
21065 | #define HAVE_NEXT_ONLINE_PGDAT 1 | |
21066 | _ACEOF | |
6ae7fef5 | 21067 | |
6ae7fef5 | 21068 | |
723aa3b0 ED |
21069 | fi |
21070 | fi | |
6ae7fef5 BB |
21071 | |
21072 | ||
723aa3b0 ED |
21073 | { $as_echo "$as_me:$LINENO: checking whether next_zone() is available" >&5 |
21074 | $as_echo_n "checking whether next_zone() is available... " >&6; } | |
6ae7fef5 | 21075 | |
6ae7fef5 BB |
21076 | |
21077 | ||
dbe561d8 | 21078 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 BB |
21079 | /* confdefs.h. */ |
21080 | _ACEOF | |
21081 | cat confdefs.h >>conftest.$ac_ext | |
21082 | cat >>conftest.$ac_ext <<_ACEOF | |
21083 | /* end confdefs.h. */ | |
21084 | ||
21085 | ||
723aa3b0 | 21086 | #include <linux/mmzone.h> |
6ae7fef5 BB |
21087 | |
21088 | int | |
21089 | main (void) | |
21090 | { | |
21091 | ||
723aa3b0 | 21092 | next_zone(NULL); |
6ae7fef5 BB |
21093 | |
21094 | ; | |
21095 | return 0; | |
21096 | } | |
21097 | ||
21098 | _ACEOF | |
21099 | ||
21100 | ||
df7cc5bc | 21101 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 21102 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
21103 | modpost_flag='' |
21104 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21105 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
21106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21107 | (eval $ac_try) 2>&5 | |
21108 | ac_status=$? | |
8934764e | 21109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
21110 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
21111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21112 | (eval $ac_try) 2>&5 | |
21113 | ac_status=$? | |
8934764e | 21114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 21115 | (exit $ac_status); }; }; then |
723aa3b0 ED |
21116 | rc=0 |
21117 | else | |
21118 | $as_echo "$as_me: failed program was:" >&5 | |
21119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21120 | rc=1 | |
6ae7fef5 | 21121 | |
bf9f3bac | 21122 | |
723aa3b0 | 21123 | fi |
bf9f3bac | 21124 | |
723aa3b0 | 21125 | rm -Rf build |
bf9f3bac | 21126 | |
bf9f3bac | 21127 | |
723aa3b0 | 21128 | if test $rc -ne 0; then : |
6ae7fef5 | 21129 | |
8934764e BB |
21130 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
21131 | $as_echo "no" >&6; } | |
bf9f3bac | 21132 | |
723aa3b0 ED |
21133 | else |
21134 | if test "x$enable_linux_builtin" != xyes; then | |
21135 | ||
21136 | grep -q -E '[[:space:]]next_zone[[:space:]]' \ | |
21137 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21138 | rc=$? | |
21139 | if test $rc -ne 0; then | |
21140 | export=0 | |
21141 | for file in ; do | |
21142 | grep -q -E "EXPORT_SYMBOL.*(next_zone)" \ | |
21143 | "$LINUX_OBJ/$file" 2>/dev/null | |
21144 | rc=$? | |
21145 | if test $rc -eq 0; then | |
21146 | export=1 | |
21147 | break; | |
21148 | fi | |
21149 | done | |
21150 | if test $export -eq 0; then : | |
21151 | rc=1 | |
21152 | else : | |
21153 | rc=0 | |
21154 | fi | |
21155 | else : | |
21156 | rc=0 | |
21157 | fi | |
21158 | ||
21159 | fi | |
21160 | if test $rc -ne 0; then : | |
bf9f3bac | 21161 | |
723aa3b0 ED |
21162 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
21163 | $as_echo "no" >&6; } | |
bf9f3bac | 21164 | |
723aa3b0 | 21165 | else : |
6ae7fef5 | 21166 | |
723aa3b0 ED |
21167 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
21168 | $as_echo "yes" >&6; } | |
6ae7fef5 | 21169 | |
723aa3b0 ED |
21170 | cat >>confdefs.h <<\_ACEOF |
21171 | #define HAVE_NEXT_ZONE 1 | |
21172 | _ACEOF | |
6ae7fef5 BB |
21173 | |
21174 | ||
723aa3b0 ED |
21175 | fi |
21176 | fi | |
6ae7fef5 BB |
21177 | |
21178 | ||
723aa3b0 ED |
21179 | { $as_echo "$as_me:$LINENO: checking whether pgdat_list is available" >&5 |
21180 | $as_echo_n "checking whether pgdat_list is available... " >&6; } | |
6ae7fef5 | 21181 | |
bf9f3bac BB |
21182 | |
21183 | ||
dbe561d8 | 21184 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
21185 | /* confdefs.h. */ |
21186 | _ACEOF | |
21187 | cat confdefs.h >>conftest.$ac_ext | |
21188 | cat >>conftest.$ac_ext <<_ACEOF | |
21189 | /* end confdefs.h. */ | |
21190 | ||
21191 | ||
723aa3b0 ED |
21192 | #include <linux/topology.h> |
21193 | pg_data_t *tmp = pgdat_list; | |
bf9f3bac BB |
21194 | |
21195 | int | |
21196 | main (void) | |
21197 | { | |
21198 | ||
21199 | ; | |
21200 | return 0; | |
21201 | } | |
21202 | ||
21203 | _ACEOF | |
21204 | ||
c5f70460 | 21205 | |
df7cc5bc | 21206 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 21207 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
21208 | modpost_flag='' |
21209 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21210 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
21211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21212 | (eval $ac_try) 2>&5 | |
21213 | ac_status=$? | |
8934764e | 21214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
21215 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
21216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21217 | (eval $ac_try) 2>&5 | |
21218 | ac_status=$? | |
8934764e | 21219 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac | 21220 | (exit $ac_status); }; }; then |
723aa3b0 ED |
21221 | rc=0 |
21222 | else | |
21223 | $as_echo "$as_me: failed program was:" >&5 | |
21224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21225 | rc=1 | |
bf9f3bac | 21226 | |
bf9f3bac | 21227 | |
723aa3b0 | 21228 | fi |
bf9f3bac | 21229 | |
723aa3b0 | 21230 | rm -Rf build |
bf9f3bac | 21231 | |
723aa3b0 ED |
21232 | |
21233 | if test $rc -ne 0; then : | |
6ae7fef5 | 21234 | |
8934764e BB |
21235 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
21236 | $as_echo "no" >&6; } | |
6ae7fef5 | 21237 | |
723aa3b0 ED |
21238 | else |
21239 | if test "x$enable_linux_builtin" != xyes; then | |
c5f70460 | 21240 | |
723aa3b0 ED |
21241 | grep -q -E '[[:space:]]pgdat_list[[:space:]]' \ |
21242 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21243 | rc=$? | |
21244 | if test $rc -ne 0; then | |
21245 | export=0 | |
21246 | for file in ; do | |
21247 | grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \ | |
21248 | "$LINUX_OBJ/$file" 2>/dev/null | |
21249 | rc=$? | |
21250 | if test $rc -eq 0; then | |
21251 | export=1 | |
21252 | break; | |
21253 | fi | |
21254 | done | |
21255 | if test $export -eq 0; then : | |
21256 | rc=1 | |
21257 | else : | |
21258 | rc=0 | |
21259 | fi | |
21260 | else : | |
21261 | rc=0 | |
21262 | fi | |
c5f70460 | 21263 | |
723aa3b0 ED |
21264 | fi |
21265 | if test $rc -ne 0; then : | |
c5f70460 | 21266 | |
723aa3b0 ED |
21267 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
21268 | $as_echo "no" >&6; } | |
c5f70460 | 21269 | |
723aa3b0 | 21270 | else : |
bf9f3bac | 21271 | |
723aa3b0 ED |
21272 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
21273 | $as_echo "yes" >&6; } | |
bf9f3bac | 21274 | |
723aa3b0 ED |
21275 | cat >>confdefs.h <<\_ACEOF |
21276 | #define HAVE_PGDAT_LIST 1 | |
21277 | _ACEOF | |
bf9f3bac | 21278 | |
723aa3b0 ED |
21279 | |
21280 | fi | |
21281 | fi | |
21282 | ||
21283 | ||
21284 | ||
21285 | { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5 | |
21286 | $as_echo_n "checking whether global_page_state() is available... " >&6; } | |
e0093fea RY |
21287 | |
21288 | ||
21289 | cat confdefs.h - <<_ACEOF >conftest.c | |
21290 | /* confdefs.h. */ | |
21291 | _ACEOF | |
21292 | cat confdefs.h >>conftest.$ac_ext | |
21293 | cat >>conftest.$ac_ext <<_ACEOF | |
21294 | /* end confdefs.h. */ | |
21295 | ||
21296 | ||
723aa3b0 | 21297 | #include <linux/mm.h> |
e0093fea RY |
21298 | |
21299 | int | |
21300 | main (void) | |
21301 | { | |
21302 | ||
723aa3b0 ED |
21303 | unsigned long state __attribute__ ((unused)); |
21304 | state = global_page_state(0); | |
e0093fea RY |
21305 | |
21306 | ; | |
21307 | return 0; | |
21308 | } | |
21309 | ||
21310 | _ACEOF | |
21311 | ||
21312 | ||
df7cc5bc | 21313 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
e0093fea | 21314 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
21315 | modpost_flag='' |
21316 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21317 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
e0093fea RY |
21318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21319 | (eval $ac_try) 2>&5 | |
21320 | ac_status=$? | |
21321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21322 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21324 | (eval $ac_try) 2>&5 | |
21325 | ac_status=$? | |
21326 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21327 | (exit $ac_status); }; }; then | |
21328 | ||
21329 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
21330 | $as_echo "yes" >&6; } | |
21331 | ||
21332 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 21333 | #define HAVE_GLOBAL_PAGE_STATE 1 |
e0093fea RY |
21334 | _ACEOF |
21335 | ||
21336 | ||
21337 | else | |
21338 | $as_echo "$as_me: failed program was:" >&5 | |
21339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21340 | ||
21341 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
21342 | $as_echo "no" >&6; } | |
21343 | ||
21344 | ||
21345 | ||
21346 | fi | |
21347 | ||
21348 | rm -Rf build | |
21349 | ||
21350 | ||
21351 | ||
21352 | ||
723aa3b0 ED |
21353 | { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5 |
21354 | $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; } | |
bf9f3bac BB |
21355 | |
21356 | ||
dbe561d8 | 21357 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
21358 | /* confdefs.h. */ |
21359 | _ACEOF | |
21360 | cat confdefs.h >>conftest.$ac_ext | |
21361 | cat >>conftest.$ac_ext <<_ACEOF | |
21362 | /* end confdefs.h. */ | |
21363 | ||
21364 | ||
723aa3b0 | 21365 | #include <linux/mm.h> |
bf9f3bac BB |
21366 | |
21367 | int | |
21368 | main (void) | |
21369 | { | |
21370 | ||
723aa3b0 ED |
21371 | enum zone_stat_item zsi __attribute__ ((unused)); |
21372 | zsi = NR_FREE_PAGES; | |
bf9f3bac BB |
21373 | |
21374 | ; | |
21375 | return 0; | |
21376 | } | |
21377 | ||
21378 | _ACEOF | |
21379 | ||
c5f70460 | 21380 | |
df7cc5bc | 21381 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 21382 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
21383 | modpost_flag='' |
21384 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21385 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
21386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21387 | (eval $ac_try) 2>&5 | |
21388 | ac_status=$? | |
8934764e | 21389 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
21390 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
21391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21392 | (eval $ac_try) 2>&5 | |
21393 | ac_status=$? | |
8934764e | 21394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
21395 | (exit $ac_status); }; }; then |
21396 | ||
723aa3b0 ED |
21397 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
21398 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
21399 | |
21400 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 21401 | #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1 |
bf9f3bac BB |
21402 | _ACEOF |
21403 | ||
21404 | ||
21405 | else | |
8934764e | 21406 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
21407 | sed 's/^/| /' conftest.$ac_ext >&5 |
21408 | ||
8934764e BB |
21409 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
21410 | $as_echo "no" >&6; } | |
bf9f3bac | 21411 | |
c5f70460 BB |
21412 | |
21413 | ||
bf9f3bac | 21414 | fi |
c5f70460 BB |
21415 | |
21416 | rm -Rf build | |
21417 | ||
bf9f3bac BB |
21418 | |
21419 | ||
21420 | ||
723aa3b0 ED |
21421 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5 |
21422 | $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; } | |
bf9f3bac BB |
21423 | |
21424 | ||
dbe561d8 | 21425 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
21426 | /* confdefs.h. */ |
21427 | _ACEOF | |
21428 | cat confdefs.h >>conftest.$ac_ext | |
21429 | cat >>conftest.$ac_ext <<_ACEOF | |
21430 | /* end confdefs.h. */ | |
21431 | ||
21432 | ||
723aa3b0 | 21433 | #include <linux/mm.h> |
bf9f3bac BB |
21434 | |
21435 | int | |
21436 | main (void) | |
21437 | { | |
21438 | ||
723aa3b0 ED |
21439 | enum zone_stat_item zsi __attribute__ ((unused)); |
21440 | zsi = NR_INACTIVE; | |
bf9f3bac BB |
21441 | |
21442 | ; | |
21443 | return 0; | |
21444 | } | |
21445 | ||
21446 | _ACEOF | |
21447 | ||
c5f70460 | 21448 | |
df7cc5bc | 21449 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 21450 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
21451 | modpost_flag='' |
21452 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21453 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
21454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21455 | (eval $ac_try) 2>&5 | |
21456 | ac_status=$? | |
8934764e | 21457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
21458 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
21459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21460 | (eval $ac_try) 2>&5 | |
21461 | ac_status=$? | |
8934764e | 21462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
21463 | (exit $ac_status); }; }; then |
21464 | ||
8934764e BB |
21465 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
21466 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
21467 | |
21468 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 21469 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1 |
bf9f3bac BB |
21470 | _ACEOF |
21471 | ||
21472 | ||
21473 | else | |
8934764e BB |
21474 | $as_echo "$as_me: failed program was:" >&5 |
21475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21476 | ||
21477 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
21478 | $as_echo "no" >&6; } | |
21479 | ||
21480 | ||
21481 | ||
21482 | fi | |
21483 | ||
21484 | rm -Rf build | |
21485 | ||
21486 | ||
21487 | ||
723aa3b0 ED |
21488 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5 |
21489 | $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; } | |
8934764e BB |
21490 | |
21491 | ||
dbe561d8 | 21492 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e BB |
21493 | /* confdefs.h. */ |
21494 | _ACEOF | |
21495 | cat confdefs.h >>conftest.$ac_ext | |
21496 | cat >>conftest.$ac_ext <<_ACEOF | |
21497 | /* end confdefs.h. */ | |
21498 | ||
21499 | ||
723aa3b0 | 21500 | #include <linux/mm.h> |
8934764e BB |
21501 | |
21502 | int | |
21503 | main (void) | |
21504 | { | |
21505 | ||
723aa3b0 ED |
21506 | enum zone_stat_item zsi __attribute__ ((unused)); |
21507 | zsi = NR_INACTIVE_ANON; | |
8934764e BB |
21508 | |
21509 | ; | |
21510 | return 0; | |
21511 | } | |
21512 | ||
21513 | _ACEOF | |
21514 | ||
21515 | ||
df7cc5bc | 21516 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
8934764e | 21517 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
21518 | modpost_flag='' |
21519 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21520 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
8934764e BB |
21521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21522 | (eval $ac_try) 2>&5 | |
21523 | ac_status=$? | |
21524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21525 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21527 | (eval $ac_try) 2>&5 | |
21528 | ac_status=$? | |
21529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21530 | (exit $ac_status); }; }; then | |
21531 | ||
21532 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
21533 | $as_echo "yes" >&6; } | |
21534 | ||
21535 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 21536 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1 |
8934764e BB |
21537 | _ACEOF |
21538 | ||
21539 | ||
21540 | else | |
21541 | $as_echo "$as_me: failed program was:" >&5 | |
21542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21543 | ||
21544 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
21545 | $as_echo "no" >&6; } | |
21546 | ||
21547 | ||
21548 | ||
21549 | fi | |
21550 | ||
21551 | rm -Rf build | |
21552 | ||
21553 | ||
21554 | ||
723aa3b0 ED |
21555 | { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5 |
21556 | $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; } | |
8934764e BB |
21557 | |
21558 | ||
dbe561d8 | 21559 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e BB |
21560 | /* confdefs.h. */ |
21561 | _ACEOF | |
21562 | cat confdefs.h >>conftest.$ac_ext | |
21563 | cat >>conftest.$ac_ext <<_ACEOF | |
21564 | /* end confdefs.h. */ | |
21565 | ||
21566 | ||
723aa3b0 | 21567 | #include <linux/mm.h> |
8934764e BB |
21568 | |
21569 | int | |
21570 | main (void) | |
21571 | { | |
21572 | ||
723aa3b0 ED |
21573 | enum zone_stat_item zsi __attribute__ ((unused)); |
21574 | zsi = NR_INACTIVE_FILE; | |
8934764e BB |
21575 | |
21576 | ; | |
21577 | return 0; | |
21578 | } | |
21579 | ||
21580 | _ACEOF | |
21581 | ||
21582 | ||
df7cc5bc | 21583 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
8934764e | 21584 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
21585 | modpost_flag='' |
21586 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21587 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
8934764e BB |
21588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21589 | (eval $ac_try) 2>&5 | |
21590 | ac_status=$? | |
21591 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21592 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21594 | (eval $ac_try) 2>&5 | |
21595 | ac_status=$? | |
21596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21597 | (exit $ac_status); }; }; then | |
21598 | ||
21599 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
21600 | $as_echo "yes" >&6; } | |
21601 | ||
21602 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 21603 | #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1 |
8934764e BB |
21604 | _ACEOF |
21605 | ||
21606 | ||
21607 | else | |
21608 | $as_echo "$as_me: failed program was:" >&5 | |
21609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21610 | ||
21611 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
21612 | $as_echo "no" >&6; } | |
21613 | ||
21614 | ||
21615 | ||
21616 | fi | |
21617 | ||
21618 | rm -Rf build | |
21619 | ||
21620 | ||
21621 | ||
21622 | ||
723aa3b0 ED |
21623 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5 |
21624 | $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; } | |
86fd39f3 BB |
21625 | |
21626 | ||
21627 | cat confdefs.h - <<_ACEOF >conftest.c | |
21628 | /* confdefs.h. */ | |
21629 | _ACEOF | |
21630 | cat confdefs.h >>conftest.$ac_ext | |
21631 | cat >>conftest.$ac_ext <<_ACEOF | |
21632 | /* end confdefs.h. */ | |
21633 | ||
21634 | ||
723aa3b0 | 21635 | #include <linux/mm.h> |
86fd39f3 BB |
21636 | |
21637 | int | |
21638 | main (void) | |
21639 | { | |
21640 | ||
723aa3b0 ED |
21641 | enum zone_stat_item zsi __attribute__ ((unused)); |
21642 | zsi = NR_ACTIVE; | |
86fd39f3 BB |
21643 | |
21644 | ; | |
21645 | return 0; | |
21646 | } | |
21647 | ||
21648 | _ACEOF | |
21649 | ||
21650 | ||
df7cc5bc | 21651 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
86fd39f3 | 21652 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
21653 | modpost_flag='' |
21654 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21655 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
86fd39f3 BB |
21656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21657 | (eval $ac_try) 2>&5 | |
21658 | ac_status=$? | |
21659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21660 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21662 | (eval $ac_try) 2>&5 | |
21663 | ac_status=$? | |
21664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21665 | (exit $ac_status); }; }; then | |
21666 | ||
21667 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
21668 | $as_echo "yes" >&6; } | |
21669 | ||
21670 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 21671 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1 |
86fd39f3 BB |
21672 | _ACEOF |
21673 | ||
21674 | ||
21675 | else | |
21676 | $as_echo "$as_me: failed program was:" >&5 | |
21677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21678 | ||
21679 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
21680 | $as_echo "no" >&6; } | |
21681 | ||
21682 | ||
21683 | ||
21684 | fi | |
21685 | ||
21686 | rm -Rf build | |
21687 | ||
21688 | ||
723aa3b0 ED |
21689 | |
21690 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5 | |
21691 | $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; } | |
8934764e BB |
21692 | |
21693 | ||
dbe561d8 | 21694 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e BB |
21695 | /* confdefs.h. */ |
21696 | _ACEOF | |
21697 | cat confdefs.h >>conftest.$ac_ext | |
21698 | cat >>conftest.$ac_ext <<_ACEOF | |
21699 | /* end confdefs.h. */ | |
21700 | ||
21701 | ||
723aa3b0 | 21702 | #include <linux/mm.h> |
8934764e BB |
21703 | |
21704 | int | |
21705 | main (void) | |
21706 | { | |
21707 | ||
723aa3b0 ED |
21708 | enum zone_stat_item zsi __attribute__ ((unused)); |
21709 | zsi = NR_ACTIVE_ANON; | |
8934764e BB |
21710 | |
21711 | ; | |
21712 | return 0; | |
21713 | } | |
21714 | ||
21715 | _ACEOF | |
21716 | ||
21717 | ||
df7cc5bc | 21718 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
8934764e | 21719 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
21720 | modpost_flag='' |
21721 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21722 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
8934764e BB |
21723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21724 | (eval $ac_try) 2>&5 | |
21725 | ac_status=$? | |
21726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21727 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21729 | (eval $ac_try) 2>&5 | |
21730 | ac_status=$? | |
21731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21732 | (exit $ac_status); }; }; then | |
21733 | ||
21734 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
21735 | $as_echo "yes" >&6; } | |
21736 | ||
21737 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 21738 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1 |
8934764e BB |
21739 | _ACEOF |
21740 | ||
21741 | ||
21742 | else | |
21743 | $as_echo "$as_me: failed program was:" >&5 | |
bf9f3bac BB |
21744 | sed 's/^/| /' conftest.$ac_ext >&5 |
21745 | ||
8934764e BB |
21746 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
21747 | $as_echo "no" >&6; } | |
21748 | ||
21749 | ||
21750 | ||
21751 | fi | |
21752 | ||
21753 | rm -Rf build | |
21754 | ||
21755 | ||
21756 | ||
723aa3b0 ED |
21757 | { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5 |
21758 | $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; } | |
bf9f3bac BB |
21759 | |
21760 | ||
dbe561d8 | 21761 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
21762 | /* confdefs.h. */ |
21763 | _ACEOF | |
21764 | cat confdefs.h >>conftest.$ac_ext | |
21765 | cat >>conftest.$ac_ext <<_ACEOF | |
21766 | /* end confdefs.h. */ | |
21767 | ||
21768 | ||
723aa3b0 | 21769 | #include <linux/mm.h> |
bf9f3bac BB |
21770 | |
21771 | int | |
21772 | main (void) | |
21773 | { | |
21774 | ||
723aa3b0 ED |
21775 | enum zone_stat_item zsi __attribute__ ((unused)); |
21776 | zsi = NR_ACTIVE_FILE; | |
bf9f3bac BB |
21777 | |
21778 | ; | |
21779 | return 0; | |
21780 | } | |
21781 | ||
21782 | _ACEOF | |
21783 | ||
c5f70460 | 21784 | |
df7cc5bc | 21785 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 21786 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
21787 | modpost_flag='' |
21788 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21789 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
21790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21791 | (eval $ac_try) 2>&5 | |
21792 | ac_status=$? | |
8934764e | 21793 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
21794 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
21795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21796 | (eval $ac_try) 2>&5 | |
21797 | ac_status=$? | |
8934764e | 21798 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
21799 | (exit $ac_status); }; }; then |
21800 | ||
8934764e BB |
21801 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
21802 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
21803 | |
21804 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 21805 | #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1 |
bf9f3bac BB |
21806 | _ACEOF |
21807 | ||
bf9f3bac BB |
21808 | |
21809 | else | |
8934764e | 21810 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
21811 | sed 's/^/| /' conftest.$ac_ext >&5 |
21812 | ||
8934764e BB |
21813 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
21814 | $as_echo "no" >&6; } | |
bf9f3bac BB |
21815 | |
21816 | ||
c5f70460 | 21817 | |
bf9f3bac | 21818 | fi |
c5f70460 BB |
21819 | |
21820 | rm -Rf build | |
21821 | ||
bf9f3bac BB |
21822 | |
21823 | ||
21824 | ||
723aa3b0 ED |
21825 | { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5 |
21826 | $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; } | |
4d54fdee BB |
21827 | |
21828 | ||
723aa3b0 ED |
21829 | cat confdefs.h - <<_ACEOF >conftest.c |
21830 | /* confdefs.h. */ | |
8934764e | 21831 | _ACEOF |
723aa3b0 ED |
21832 | cat confdefs.h >>conftest.$ac_ext |
21833 | cat >>conftest.$ac_ext <<_ACEOF | |
21834 | /* end confdefs.h. */ | |
4d54fdee | 21835 | |
4d54fdee | 21836 | |
4d54fdee | 21837 | |
723aa3b0 ED |
21838 | int |
21839 | main (void) | |
21840 | { | |
4d54fdee | 21841 | |
723aa3b0 ED |
21842 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES) |
21843 | #error "global_page_state needs NR_FREE_PAGES" | |
21844 | #endif | |
4d54fdee | 21845 | |
723aa3b0 ED |
21846 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \ |
21847 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \ | |
21848 | !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE) | |
21849 | #error "global_page_state needs NR_ACTIVE*" | |
21850 | #endif | |
4d54fdee | 21851 | |
723aa3b0 ED |
21852 | #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \ |
21853 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \ | |
21854 | !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE) | |
21855 | #error "global_page_state needs NR_INACTIVE*" | |
21856 | #endif | |
4d54fdee | 21857 | |
723aa3b0 ED |
21858 | ; |
21859 | return 0; | |
21860 | } | |
4d54fdee | 21861 | |
4d54fdee BB |
21862 | _ACEOF |
21863 | ||
4d54fdee | 21864 | |
723aa3b0 ED |
21865 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
21866 | echo "obj-m := conftest.o" >build/Makefile | |
21867 | modpost_flag='' | |
21868 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21869 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
21870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21871 | (eval $ac_try) 2>&5 | |
21872 | ac_status=$? | |
21873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21874 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21876 | (eval $ac_try) 2>&5 | |
21877 | ac_status=$? | |
21878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21879 | (exit $ac_status); }; }; then | |
4d54fdee | 21880 | |
8934764e BB |
21881 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
21882 | $as_echo "no" >&6; } | |
8934764e | 21883 | |
723aa3b0 ED |
21884 | else |
21885 | $as_echo "$as_me: failed program was:" >&5 | |
21886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21887 | ||
8934764e BB |
21888 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
21889 | $as_echo "yes" >&6; } | |
21890 | ||
21891 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 21892 | #define NEED_GET_ZONE_COUNTS 1 |
8934764e BB |
21893 | _ACEOF |
21894 | ||
8934764e | 21895 | |
723aa3b0 ED |
21896 | { $as_echo "$as_me:$LINENO: checking whether get_zone_counts() is available" >&5 |
21897 | $as_echo_n "checking whether get_zone_counts() is available... " >&6; } | |
8934764e | 21898 | |
8934764e BB |
21899 | |
21900 | ||
dbe561d8 | 21901 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e BB |
21902 | /* confdefs.h. */ |
21903 | _ACEOF | |
21904 | cat confdefs.h >>conftest.$ac_ext | |
21905 | cat >>conftest.$ac_ext <<_ACEOF | |
21906 | /* end confdefs.h. */ | |
21907 | ||
21908 | ||
723aa3b0 | 21909 | #include <linux/mmzone.h> |
8934764e BB |
21910 | |
21911 | int | |
21912 | main (void) | |
21913 | { | |
21914 | ||
723aa3b0 | 21915 | get_zone_counts(NULL, NULL, NULL); |
8934764e BB |
21916 | |
21917 | ; | |
21918 | return 0; | |
21919 | } | |
21920 | ||
21921 | _ACEOF | |
21922 | ||
21923 | ||
df7cc5bc | 21924 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
8934764e | 21925 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
21926 | modpost_flag='' |
21927 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
21928 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
8934764e BB |
21929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21930 | (eval $ac_try) 2>&5 | |
21931 | ac_status=$? | |
21932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21933 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
21934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21935 | (eval $ac_try) 2>&5 | |
21936 | ac_status=$? | |
21937 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21938 | (exit $ac_status); }; }; then | |
723aa3b0 ED |
21939 | rc=0 |
21940 | else | |
21941 | $as_echo "$as_me: failed program was:" >&5 | |
21942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21943 | rc=1 | |
6ae7fef5 | 21944 | |
723aa3b0 ED |
21945 | |
21946 | fi | |
21947 | ||
21948 | rm -Rf build | |
21949 | ||
21950 | ||
21951 | if test $rc -ne 0; then : | |
21952 | ||
21953 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
21954 | $as_echo "no" >&6; } | |
21955 | ||
21956 | else | |
21957 | if test "x$enable_linux_builtin" != xyes; then | |
21958 | ||
21959 | grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \ | |
21960 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
21961 | rc=$? | |
21962 | if test $rc -ne 0; then | |
21963 | export=0 | |
21964 | for file in ; do | |
21965 | grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \ | |
21966 | "$LINUX_OBJ/$file" 2>/dev/null | |
21967 | rc=$? | |
21968 | if test $rc -eq 0; then | |
21969 | export=1 | |
21970 | break; | |
21971 | fi | |
21972 | done | |
21973 | if test $export -eq 0; then : | |
21974 | rc=1 | |
21975 | else : | |
21976 | rc=0 | |
21977 | fi | |
21978 | else : | |
21979 | rc=0 | |
21980 | fi | |
21981 | ||
21982 | fi | |
21983 | if test $rc -ne 0; then : | |
21984 | ||
21985 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
21986 | $as_echo "no" >&6; } | |
21987 | ||
21988 | else : | |
21989 | ||
21990 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
8934764e | 21991 | $as_echo "yes" >&6; } |
6ae7fef5 BB |
21992 | |
21993 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 21994 | #define HAVE_GET_ZONE_COUNTS 1 |
6ae7fef5 BB |
21995 | _ACEOF |
21996 | ||
6ae7fef5 | 21997 | |
723aa3b0 ED |
21998 | fi |
21999 | fi | |
8934764e | 22000 | |
8934764e BB |
22001 | |
22002 | ||
22003 | ||
22004 | fi | |
22005 | ||
22006 | rm -Rf build | |
6ae7fef5 | 22007 | |
6ae7fef5 BB |
22008 | |
22009 | ||
723aa3b0 ED |
22010 | { $as_echo "$as_me:$LINENO: checking whether user_path_dir() is available" >&5 |
22011 | $as_echo_n "checking whether user_path_dir() is available... " >&6; } | |
6ae7fef5 | 22012 | |
bf9f3bac BB |
22013 | |
22014 | ||
dbe561d8 | 22015 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
22016 | /* confdefs.h. */ |
22017 | _ACEOF | |
22018 | cat confdefs.h >>conftest.$ac_ext | |
22019 | cat >>conftest.$ac_ext <<_ACEOF | |
22020 | /* end confdefs.h. */ | |
22021 | ||
22022 | ||
723aa3b0 ED |
22023 | #include <linux/fcntl.h> |
22024 | #include <linux/namei.h> | |
bf9f3bac BB |
22025 | |
22026 | int | |
22027 | main (void) | |
22028 | { | |
22029 | ||
723aa3b0 | 22030 | user_path_dir(NULL, NULL); |
bf9f3bac BB |
22031 | |
22032 | ; | |
22033 | return 0; | |
22034 | } | |
22035 | ||
22036 | _ACEOF | |
22037 | ||
c5f70460 | 22038 | |
df7cc5bc | 22039 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 22040 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22041 | modpost_flag='' |
22042 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22043 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
22044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22045 | (eval $ac_try) 2>&5 | |
22046 | ac_status=$? | |
8934764e | 22047 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
22048 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
22049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22050 | (eval $ac_try) 2>&5 | |
22051 | ac_status=$? | |
8934764e | 22052 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac | 22053 | (exit $ac_status); }; }; then |
723aa3b0 ED |
22054 | rc=0 |
22055 | else | |
22056 | $as_echo "$as_me: failed program was:" >&5 | |
22057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22058 | rc=1 | |
bf9f3bac BB |
22059 | |
22060 | ||
723aa3b0 | 22061 | fi |
bf9f3bac | 22062 | |
723aa3b0 | 22063 | rm -Rf build |
bf9f3bac | 22064 | |
723aa3b0 ED |
22065 | |
22066 | if test $rc -ne 0; then : | |
bf9f3bac | 22067 | |
8934764e BB |
22068 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22069 | $as_echo "no" >&6; } | |
bf9f3bac | 22070 | |
723aa3b0 ED |
22071 | else |
22072 | if test "x$enable_linux_builtin" != xyes; then | |
bf9f3bac | 22073 | |
723aa3b0 ED |
22074 | grep -q -E '[[:space:]]user_path_at[[:space:]]' \ |
22075 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
22076 | rc=$? | |
22077 | if test $rc -ne 0; then | |
22078 | export=0 | |
22079 | for file in ; do | |
22080 | grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \ | |
22081 | "$LINUX_OBJ/$file" 2>/dev/null | |
22082 | rc=$? | |
22083 | if test $rc -eq 0; then | |
22084 | export=1 | |
22085 | break; | |
22086 | fi | |
22087 | done | |
22088 | if test $export -eq 0; then : | |
22089 | rc=1 | |
22090 | else : | |
22091 | rc=0 | |
22092 | fi | |
22093 | else : | |
22094 | rc=0 | |
22095 | fi | |
c5f70460 | 22096 | |
723aa3b0 ED |
22097 | fi |
22098 | if test $rc -ne 0; then : | |
c5f70460 | 22099 | |
723aa3b0 ED |
22100 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22101 | $as_echo "no" >&6; } | |
22102 | ||
22103 | else : | |
22104 | ||
22105 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
22106 | $as_echo "yes" >&6; } | |
22107 | ||
22108 | cat >>confdefs.h <<\_ACEOF | |
22109 | #define HAVE_USER_PATH_DIR 1 | |
22110 | _ACEOF | |
c5f70460 | 22111 | |
bf9f3bac | 22112 | |
723aa3b0 ED |
22113 | fi |
22114 | fi | |
bf9f3bac BB |
22115 | |
22116 | ||
723aa3b0 ED |
22117 | { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() is available" >&5 |
22118 | $as_echo_n "checking whether set_fs_pwd() is available... " >&6; } | |
22119 | ||
bf9f3bac | 22120 | |
bf9f3bac | 22121 | |
dbe561d8 | 22122 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e | 22123 | /* confdefs.h. */ |
6ae7fef5 | 22124 | _ACEOF |
8934764e BB |
22125 | cat confdefs.h >>conftest.$ac_ext |
22126 | cat >>conftest.$ac_ext <<_ACEOF | |
22127 | /* end confdefs.h. */ | |
bf9f3bac | 22128 | |
6ae7fef5 | 22129 | |
723aa3b0 ED |
22130 | #include <linux/spinlock.h> |
22131 | #include <linux/fs_struct.h> | |
bf9f3bac | 22132 | |
8934764e BB |
22133 | int |
22134 | main (void) | |
22135 | { | |
bf9f3bac | 22136 | |
723aa3b0 | 22137 | (void) set_fs_pwd; |
bf9f3bac | 22138 | |
8934764e BB |
22139 | ; |
22140 | return 0; | |
22141 | } | |
bf9f3bac | 22142 | |
8934764e | 22143 | _ACEOF |
bf9f3bac | 22144 | |
bf9f3bac | 22145 | |
df7cc5bc | 22146 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
8934764e | 22147 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22148 | modpost_flag='' |
22149 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22150 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
8934764e BB |
22151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22152 | (eval $ac_try) 2>&5 | |
22153 | ac_status=$? | |
22154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22155 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22157 | (eval $ac_try) 2>&5 | |
22158 | ac_status=$? | |
22159 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22160 | (exit $ac_status); }; }; then | |
723aa3b0 ED |
22161 | rc=0 |
22162 | else | |
22163 | $as_echo "$as_me: failed program was:" >&5 | |
22164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22165 | rc=1 | |
bf9f3bac | 22166 | |
6ae7fef5 | 22167 | |
723aa3b0 | 22168 | fi |
6ae7fef5 | 22169 | |
723aa3b0 | 22170 | rm -Rf build |
6ae7fef5 | 22171 | |
723aa3b0 ED |
22172 | |
22173 | if test $rc -ne 0; then : | |
c5f70460 | 22174 | |
8934764e BB |
22175 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22176 | $as_echo "no" >&6; } | |
bf9f3bac | 22177 | |
723aa3b0 ED |
22178 | else |
22179 | if test "x$enable_linux_builtin" != xyes; then | |
22180 | ||
22181 | grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \ | |
22182 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
22183 | rc=$? | |
22184 | if test $rc -ne 0; then | |
22185 | export=0 | |
22186 | for file in ; do | |
22187 | grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \ | |
22188 | "$LINUX_OBJ/$file" 2>/dev/null | |
22189 | rc=$? | |
22190 | if test $rc -eq 0; then | |
22191 | export=1 | |
22192 | break; | |
22193 | fi | |
22194 | done | |
22195 | if test $export -eq 0; then : | |
22196 | rc=1 | |
22197 | else : | |
22198 | rc=0 | |
22199 | fi | |
22200 | else : | |
22201 | rc=0 | |
22202 | fi | |
22203 | ||
22204 | fi | |
22205 | if test $rc -ne 0; then : | |
bf9f3bac | 22206 | |
723aa3b0 ED |
22207 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22208 | $as_echo "no" >&6; } | |
8934764e | 22209 | |
723aa3b0 | 22210 | else : |
8934764e | 22211 | |
723aa3b0 ED |
22212 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
22213 | $as_echo "yes" >&6; } | |
8934764e | 22214 | |
723aa3b0 ED |
22215 | cat >>confdefs.h <<\_ACEOF |
22216 | #define HAVE_SET_FS_PWD 1 | |
22217 | _ACEOF | |
8934764e BB |
22218 | |
22219 | ||
723aa3b0 ED |
22220 | fi |
22221 | fi | |
22222 | ||
22223 | ||
22224 | { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5 | |
22225 | $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; } | |
8934764e BB |
22226 | |
22227 | ||
dbe561d8 | 22228 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e | 22229 | /* confdefs.h. */ |
bf9f3bac | 22230 | _ACEOF |
8934764e BB |
22231 | cat confdefs.h >>conftest.$ac_ext |
22232 | cat >>conftest.$ac_ext <<_ACEOF | |
22233 | /* end confdefs.h. */ | |
bf9f3bac BB |
22234 | |
22235 | ||
723aa3b0 ED |
22236 | #include <linux/sched.h> |
22237 | #include <linux/fs_struct.h> | |
bf9f3bac | 22238 | |
8934764e BB |
22239 | int |
22240 | main (void) | |
22241 | { | |
bf9f3bac | 22242 | |
723aa3b0 | 22243 | set_fs_pwd(NULL, NULL); |
8934764e BB |
22244 | |
22245 | ; | |
22246 | return 0; | |
22247 | } | |
c5f70460 | 22248 | |
6ae7fef5 | 22249 | _ACEOF |
c5f70460 | 22250 | |
8934764e | 22251 | |
df7cc5bc | 22252 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
8934764e | 22253 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22254 | modpost_flag='' |
22255 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22256 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
8934764e BB |
22257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22258 | (eval $ac_try) 2>&5 | |
22259 | ac_status=$? | |
22260 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22261 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22263 | (eval $ac_try) 2>&5 | |
22264 | ac_status=$? | |
22265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22266 | (exit $ac_status); }; }; then | |
22267 | ||
22268 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
22269 | $as_echo "yes" >&6; } | |
c5f70460 | 22270 | |
6ae7fef5 | 22271 | cat >>confdefs.h <<\_ACEOF |
723aa3b0 | 22272 | #define HAVE_2ARGS_SET_FS_PWD 1 |
6ae7fef5 | 22273 | _ACEOF |
c5f70460 | 22274 | |
bf9f3bac | 22275 | |
8934764e BB |
22276 | else |
22277 | $as_echo "$as_me: failed program was:" >&5 | |
22278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 22279 | |
8934764e BB |
22280 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22281 | $as_echo "no" >&6; } | |
bf9f3bac | 22282 | |
bf9f3bac | 22283 | |
bf9f3bac | 22284 | |
8934764e | 22285 | fi |
bf9f3bac | 22286 | |
8934764e | 22287 | rm -Rf build |
bf9f3bac | 22288 | |
8934764e BB |
22289 | |
22290 | ||
723aa3b0 ED |
22291 | { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5 |
22292 | $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; } | |
8934764e BB |
22293 | |
22294 | ||
dbe561d8 | 22295 | cat confdefs.h - <<_ACEOF >conftest.c |
8934764e | 22296 | /* confdefs.h. */ |
bf9f3bac | 22297 | _ACEOF |
8934764e BB |
22298 | cat confdefs.h >>conftest.$ac_ext |
22299 | cat >>conftest.$ac_ext <<_ACEOF | |
22300 | /* end confdefs.h. */ | |
bf9f3bac | 22301 | |
bf9f3bac | 22302 | |
723aa3b0 | 22303 | #include <linux/fs.h> |
bf9f3bac | 22304 | |
8934764e BB |
22305 | int |
22306 | main (void) | |
22307 | { | |
bf9f3bac | 22308 | |
723aa3b0 | 22309 | vfs_unlink(NULL, NULL); |
6ae7fef5 | 22310 | |
8934764e BB |
22311 | ; |
22312 | return 0; | |
22313 | } | |
6ae7fef5 | 22314 | |
6ae7fef5 BB |
22315 | _ACEOF |
22316 | ||
8934764e | 22317 | |
df7cc5bc | 22318 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
8934764e | 22319 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22320 | modpost_flag='' |
22321 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22322 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
8934764e BB |
22323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22324 | (eval $ac_try) 2>&5 | |
22325 | ac_status=$? | |
22326 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22327 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22329 | (eval $ac_try) 2>&5 | |
22330 | ac_status=$? | |
22331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22332 | (exit $ac_status); }; }; then | |
22333 | ||
22334 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
22335 | $as_echo "yes" >&6; } | |
6ae7fef5 BB |
22336 | |
22337 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 22338 | #define HAVE_2ARGS_VFS_UNLINK 1 |
6ae7fef5 BB |
22339 | _ACEOF |
22340 | ||
6ae7fef5 | 22341 | |
8934764e BB |
22342 | else |
22343 | $as_echo "$as_me: failed program was:" >&5 | |
22344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6ae7fef5 | 22345 | |
8934764e BB |
22346 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22347 | $as_echo "no" >&6; } | |
6ae7fef5 | 22348 | |
6ae7fef5 | 22349 | |
6ae7fef5 | 22350 | |
8934764e | 22351 | fi |
6ae7fef5 | 22352 | |
8934764e | 22353 | rm -Rf build |
6ae7fef5 | 22354 | |
6ae7fef5 BB |
22355 | |
22356 | ||
723aa3b0 ED |
22357 | { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5 |
22358 | $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; } | |
bf9f3bac BB |
22359 | |
22360 | ||
dbe561d8 | 22361 | cat confdefs.h - <<_ACEOF >conftest.c |
bf9f3bac BB |
22362 | /* confdefs.h. */ |
22363 | _ACEOF | |
22364 | cat confdefs.h >>conftest.$ac_ext | |
22365 | cat >>conftest.$ac_ext <<_ACEOF | |
22366 | /* end confdefs.h. */ | |
22367 | ||
22368 | ||
723aa3b0 | 22369 | #include <linux/fs.h> |
bf9f3bac BB |
22370 | |
22371 | int | |
22372 | main (void) | |
22373 | { | |
22374 | ||
723aa3b0 | 22375 | vfs_rename(NULL, NULL, NULL, NULL); |
bf9f3bac BB |
22376 | |
22377 | ; | |
22378 | return 0; | |
22379 | } | |
22380 | ||
22381 | _ACEOF | |
22382 | ||
c5f70460 | 22383 | |
df7cc5bc | 22384 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 22385 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22386 | modpost_flag='' |
22387 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22388 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
bf9f3bac BB |
22389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22390 | (eval $ac_try) 2>&5 | |
22391 | ac_status=$? | |
8934764e | 22392 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
22393 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
22394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22395 | (eval $ac_try) 2>&5 | |
22396 | ac_status=$? | |
8934764e | 22397 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
bf9f3bac BB |
22398 | (exit $ac_status); }; }; then |
22399 | ||
8934764e BB |
22400 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
22401 | $as_echo "yes" >&6; } | |
bf9f3bac BB |
22402 | |
22403 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 22404 | #define HAVE_4ARGS_VFS_RENAME 1 |
bf9f3bac BB |
22405 | _ACEOF |
22406 | ||
22407 | ||
22408 | else | |
8934764e | 22409 | $as_echo "$as_me: failed program was:" >&5 |
bf9f3bac BB |
22410 | sed 's/^/| /' conftest.$ac_ext >&5 |
22411 | ||
8934764e BB |
22412 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22413 | $as_echo "no" >&6; } | |
bf9f3bac | 22414 | |
c5f70460 BB |
22415 | |
22416 | ||
bf9f3bac | 22417 | fi |
c5f70460 BB |
22418 | |
22419 | rm -Rf build | |
22420 | ||
bf9f3bac BB |
22421 | |
22422 | ||
723aa3b0 ED |
22423 | { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() is available" >&5 |
22424 | $as_echo_n "checking whether vfs_fsync() is available... " >&6; } | |
22425 | ||
6c9433c1 BB |
22426 | |
22427 | ||
dbe561d8 | 22428 | cat confdefs.h - <<_ACEOF >conftest.c |
6c9433c1 BB |
22429 | /* confdefs.h. */ |
22430 | _ACEOF | |
22431 | cat confdefs.h >>conftest.$ac_ext | |
22432 | cat >>conftest.$ac_ext <<_ACEOF | |
22433 | /* end confdefs.h. */ | |
22434 | ||
22435 | ||
723aa3b0 | 22436 | #include <linux/fs.h> |
6c9433c1 BB |
22437 | |
22438 | int | |
22439 | main (void) | |
22440 | { | |
22441 | ||
723aa3b0 | 22442 | (void) vfs_fsync; |
6c9433c1 BB |
22443 | |
22444 | ; | |
22445 | return 0; | |
22446 | } | |
22447 | ||
22448 | _ACEOF | |
22449 | ||
22450 | ||
df7cc5bc | 22451 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6c9433c1 | 22452 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22453 | modpost_flag='' |
22454 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22455 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6c9433c1 BB |
22456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22457 | (eval $ac_try) 2>&5 | |
22458 | ac_status=$? | |
8934764e | 22459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6c9433c1 BB |
22460 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
22461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22462 | (eval $ac_try) 2>&5 | |
22463 | ac_status=$? | |
8934764e | 22464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6c9433c1 | 22465 | (exit $ac_status); }; }; then |
723aa3b0 ED |
22466 | rc=0 |
22467 | else | |
22468 | $as_echo "$as_me: failed program was:" >&5 | |
22469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22470 | rc=1 | |
6c9433c1 | 22471 | |
6c9433c1 | 22472 | |
723aa3b0 | 22473 | fi |
6c9433c1 | 22474 | |
723aa3b0 | 22475 | rm -Rf build |
6c9433c1 | 22476 | |
723aa3b0 ED |
22477 | |
22478 | if test $rc -ne 0; then : | |
22479 | ||
22480 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
22481 | $as_echo "no" >&6; } | |
22482 | ||
22483 | else | |
22484 | if test "x$enable_linux_builtin" != xyes; then | |
22485 | ||
22486 | grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \ | |
22487 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
22488 | rc=$? | |
22489 | if test $rc -ne 0; then | |
22490 | export=0 | |
22491 | for file in fs/sync.c; do | |
22492 | grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \ | |
22493 | "$LINUX_OBJ/$file" 2>/dev/null | |
22494 | rc=$? | |
22495 | if test $rc -eq 0; then | |
22496 | export=1 | |
22497 | break; | |
22498 | fi | |
22499 | done | |
22500 | if test $export -eq 0; then : | |
22501 | rc=1 | |
22502 | else : | |
22503 | rc=0 | |
22504 | fi | |
22505 | else : | |
22506 | rc=0 | |
22507 | fi | |
22508 | ||
22509 | fi | |
22510 | if test $rc -ne 0; then : | |
6c9433c1 | 22511 | |
8934764e BB |
22512 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22513 | $as_echo "no" >&6; } | |
6c9433c1 | 22514 | |
723aa3b0 ED |
22515 | else : |
22516 | ||
22517 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
22518 | $as_echo "yes" >&6; } | |
6c9433c1 | 22519 | |
723aa3b0 ED |
22520 | cat >>confdefs.h <<\_ACEOF |
22521 | #define HAVE_VFS_FSYNC 1 | |
22522 | _ACEOF | |
6c9433c1 | 22523 | |
6c9433c1 | 22524 | |
723aa3b0 ED |
22525 | fi |
22526 | fi | |
6c9433c1 BB |
22527 | |
22528 | ||
22529 | ||
723aa3b0 ED |
22530 | { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5 |
22531 | $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; } | |
bf9f3bac | 22532 | |
bf9f3bac | 22533 | |
dbe561d8 | 22534 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 | 22535 | /* confdefs.h. */ |
bf9f3bac | 22536 | _ACEOF |
6ae7fef5 BB |
22537 | cat confdefs.h >>conftest.$ac_ext |
22538 | cat >>conftest.$ac_ext <<_ACEOF | |
22539 | /* end confdefs.h. */ | |
bf9f3bac | 22540 | |
bf9f3bac | 22541 | |
723aa3b0 | 22542 | #include <linux/fs.h> |
bf9f3bac | 22543 | |
6ae7fef5 BB |
22544 | int |
22545 | main (void) | |
22546 | { | |
96dded38 | 22547 | |
723aa3b0 | 22548 | vfs_fsync(NULL, 0); |
bf9f3bac | 22549 | |
6ae7fef5 BB |
22550 | ; |
22551 | return 0; | |
22552 | } | |
31a033ec | 22553 | |
6ae7fef5 | 22554 | _ACEOF |
31a033ec | 22555 | |
c5f70460 | 22556 | |
df7cc5bc | 22557 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 22558 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22559 | modpost_flag='' |
22560 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22561 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
22562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22563 | (eval $ac_try) 2>&5 | |
22564 | ac_status=$? | |
8934764e | 22565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
22566 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
22567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22568 | (eval $ac_try) 2>&5 | |
22569 | ac_status=$? | |
8934764e | 22570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 22571 | (exit $ac_status); }; }; then |
c5f70460 | 22572 | |
8934764e BB |
22573 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
22574 | $as_echo "yes" >&6; } | |
c5f70460 | 22575 | |
96dded38 | 22576 | cat >>confdefs.h <<\_ACEOF |
723aa3b0 | 22577 | #define HAVE_2ARGS_VFS_FSYNC 1 |
96dded38 | 22578 | _ACEOF |
c5f70460 | 22579 | |
31a033ec | 22580 | |
6ae7fef5 | 22581 | else |
8934764e | 22582 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 BB |
22583 | sed 's/^/| /' conftest.$ac_ext >&5 |
22584 | ||
8934764e BB |
22585 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22586 | $as_echo "no" >&6; } | |
6ae7fef5 BB |
22587 | |
22588 | ||
22589 | ||
22590 | fi | |
22591 | ||
22592 | rm -Rf build | |
31a033ec BB |
22593 | |
22594 | ||
6ae7fef5 | 22595 | |
8934764e | 22596 | |
723aa3b0 ED |
22597 | { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5 |
22598 | $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; } | |
22599 | tmp_flags="$EXTRA_KCFLAGS" | |
22600 | EXTRA_KCFLAGS="-Werror" | |
31a033ec BB |
22601 | |
22602 | ||
dbe561d8 | 22603 | cat confdefs.h - <<_ACEOF >conftest.c |
31a033ec BB |
22604 | /* confdefs.h. */ |
22605 | _ACEOF | |
22606 | cat confdefs.h >>conftest.$ac_ext | |
22607 | cat >>conftest.$ac_ext <<_ACEOF | |
22608 | /* end confdefs.h. */ | |
22609 | ||
22610 | ||
723aa3b0 ED |
22611 | #include <linux/sched.h> |
22612 | #include <linux/fs_struct.h> | |
31a033ec BB |
22613 | |
22614 | int | |
22615 | main (void) | |
22616 | { | |
22617 | ||
723aa3b0 ED |
22618 | struct fs_struct fs; |
22619 | spin_lock_init(&fs.lock); | |
31a033ec BB |
22620 | |
22621 | ; | |
22622 | return 0; | |
22623 | } | |
22624 | ||
22625 | _ACEOF | |
22626 | ||
c5f70460 | 22627 | |
df7cc5bc | 22628 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
c5f70460 | 22629 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22630 | modpost_flag='' |
22631 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22632 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
31a033ec BB |
22633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22634 | (eval $ac_try) 2>&5 | |
22635 | ac_status=$? | |
8934764e | 22636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31a033ec BB |
22637 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
22638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22639 | (eval $ac_try) 2>&5 | |
22640 | ac_status=$? | |
8934764e | 22641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31a033ec BB |
22642 | (exit $ac_status); }; }; then |
22643 | ||
8934764e BB |
22644 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
22645 | $as_echo "yes" >&6; } | |
31a033ec BB |
22646 | |
22647 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 22648 | #define HAVE_FS_STRUCT_SPINLOCK 1 |
8934764e BB |
22649 | _ACEOF |
22650 | ||
8934764e | 22651 | |
723aa3b0 ED |
22652 | else |
22653 | $as_echo "$as_me: failed program was:" >&5 | |
22654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bf9f3bac | 22655 | |
723aa3b0 ED |
22656 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22657 | $as_echo "no" >&6; } | |
bf9f3bac | 22658 | |
c5f70460 BB |
22659 | |
22660 | ||
bf9f3bac | 22661 | fi |
c5f70460 BB |
22662 | |
22663 | rm -Rf build | |
22664 | ||
bf9f3bac | 22665 | |
723aa3b0 | 22666 | EXTRA_KCFLAGS="$tmp_flags" |
bf9f3bac | 22667 | |
8934764e | 22668 | |
723aa3b0 ED |
22669 | { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5 |
22670 | $as_echo_n "checking whether struct cred exists... " >&6; } | |
bf9f3bac | 22671 | |
d1ff2312 | 22672 | |
dbe561d8 | 22673 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 | 22674 | /* confdefs.h. */ |
d1ff2312 | 22675 | _ACEOF |
6ae7fef5 BB |
22676 | cat confdefs.h >>conftest.$ac_ext |
22677 | cat >>conftest.$ac_ext <<_ACEOF | |
22678 | /* end confdefs.h. */ | |
d1ff2312 | 22679 | |
d1ff2312 | 22680 | |
723aa3b0 | 22681 | #include <linux/cred.h> |
d1ff2312 | 22682 | |
6ae7fef5 BB |
22683 | int |
22684 | main (void) | |
22685 | { | |
d1ff2312 | 22686 | |
723aa3b0 ED |
22687 | struct cred *cr __attribute__ ((unused)); |
22688 | cr = NULL; | |
d1ff2312 | 22689 | |
6ae7fef5 BB |
22690 | ; |
22691 | return 0; | |
22692 | } | |
d1ff2312 | 22693 | |
6ae7fef5 | 22694 | _ACEOF |
d1ff2312 | 22695 | |
d1ff2312 | 22696 | |
df7cc5bc | 22697 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 22698 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22699 | modpost_flag='' |
22700 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22701 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
22702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22703 | (eval $ac_try) 2>&5 | |
22704 | ac_status=$? | |
8934764e | 22705 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
22706 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
22707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22708 | (eval $ac_try) 2>&5 | |
22709 | ac_status=$? | |
8934764e | 22710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 22711 | (exit $ac_status); }; }; then |
d1ff2312 | 22712 | |
8934764e BB |
22713 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
22714 | $as_echo "yes" >&6; } | |
d1ff2312 BB |
22715 | |
22716 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 22717 | #define HAVE_CRED_STRUCT 1 |
d1ff2312 BB |
22718 | _ACEOF |
22719 | ||
5232d256 | 22720 | |
6ae7fef5 | 22721 | else |
8934764e | 22722 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 | 22723 | sed 's/^/| /' conftest.$ac_ext >&5 |
5232d256 | 22724 | |
8934764e BB |
22725 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22726 | $as_echo "no" >&6; } | |
5232d256 BB |
22727 | |
22728 | ||
36b313da | 22729 | |
6ae7fef5 BB |
22730 | fi |
22731 | ||
22732 | rm -Rf build | |
22733 | ||
36b313da | 22734 | |
36b313da | 22735 | |
723aa3b0 ED |
22736 | { $as_echo "$as_me:$LINENO: checking whether groups_search() is available" >&5 |
22737 | $as_echo_n "checking whether groups_search() is available... " >&6; } | |
22738 | ||
6ae7fef5 BB |
22739 | |
22740 | ||
dbe561d8 | 22741 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 | 22742 | /* confdefs.h. */ |
36b313da | 22743 | _ACEOF |
6ae7fef5 BB |
22744 | cat confdefs.h >>conftest.$ac_ext |
22745 | cat >>conftest.$ac_ext <<_ACEOF | |
22746 | /* end confdefs.h. */ | |
36b313da | 22747 | |
36b313da | 22748 | |
723aa3b0 | 22749 | #include <linux/cred.h> |
36b313da | 22750 | |
6ae7fef5 BB |
22751 | int |
22752 | main (void) | |
22753 | { | |
36b313da | 22754 | |
723aa3b0 | 22755 | groups_search(NULL, 0); |
36b313da | 22756 | |
6ae7fef5 BB |
22757 | ; |
22758 | return 0; | |
22759 | } | |
36b313da | 22760 | |
36b313da BB |
22761 | _ACEOF |
22762 | ||
6ae7fef5 | 22763 | |
df7cc5bc | 22764 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 22765 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22766 | modpost_flag='' |
22767 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22768 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
22769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22770 | (eval $ac_try) 2>&5 | |
22771 | ac_status=$? | |
8934764e | 22772 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
22773 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
22774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22775 | (eval $ac_try) 2>&5 | |
22776 | ac_status=$? | |
8934764e | 22777 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 22778 | (exit $ac_status); }; }; then |
723aa3b0 ED |
22779 | rc=0 |
22780 | else | |
22781 | $as_echo "$as_me: failed program was:" >&5 | |
22782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22783 | rc=1 | |
6ae7fef5 | 22784 | |
36b313da | 22785 | |
723aa3b0 | 22786 | fi |
36b313da | 22787 | |
723aa3b0 | 22788 | rm -Rf build |
36b313da | 22789 | |
723aa3b0 ED |
22790 | |
22791 | if test $rc -ne 0; then : | |
36b313da | 22792 | |
8934764e BB |
22793 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22794 | $as_echo "no" >&6; } | |
36b313da | 22795 | |
723aa3b0 ED |
22796 | else |
22797 | if test "x$enable_linux_builtin" != xyes; then | |
36b313da | 22798 | |
723aa3b0 ED |
22799 | grep -q -E '[[:space:]]groups_search[[:space:]]' \ |
22800 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
22801 | rc=$? | |
22802 | if test $rc -ne 0; then | |
22803 | export=0 | |
22804 | for file in ; do | |
22805 | grep -q -E "EXPORT_SYMBOL.*(groups_search)" \ | |
22806 | "$LINUX_OBJ/$file" 2>/dev/null | |
22807 | rc=$? | |
22808 | if test $rc -eq 0; then | |
22809 | export=1 | |
22810 | break; | |
22811 | fi | |
22812 | done | |
22813 | if test $export -eq 0; then : | |
22814 | rc=1 | |
22815 | else : | |
22816 | rc=0 | |
22817 | fi | |
22818 | else : | |
22819 | rc=0 | |
22820 | fi | |
36b313da | 22821 | |
723aa3b0 ED |
22822 | fi |
22823 | if test $rc -ne 0; then : | |
36b313da | 22824 | |
723aa3b0 ED |
22825 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22826 | $as_echo "no" >&6; } | |
6ae7fef5 | 22827 | |
723aa3b0 | 22828 | else : |
6ae7fef5 | 22829 | |
723aa3b0 ED |
22830 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
22831 | $as_echo "yes" >&6; } | |
22832 | ||
22833 | cat >>confdefs.h <<\_ACEOF | |
22834 | #define HAVE_GROUPS_SEARCH 1 | |
22835 | _ACEOF | |
22836 | ||
22837 | ||
22838 | fi | |
22839 | fi | |
22840 | ||
22841 | ||
22842 | { $as_echo "$as_me:$LINENO: checking whether __put_task_struct() is available" >&5 | |
22843 | $as_echo_n "checking whether __put_task_struct() is available... " >&6; } | |
6ae7fef5 | 22844 | |
6ae7fef5 BB |
22845 | |
22846 | ||
dbe561d8 | 22847 | cat confdefs.h - <<_ACEOF >conftest.c |
6ae7fef5 | 22848 | /* confdefs.h. */ |
36b313da | 22849 | _ACEOF |
6ae7fef5 BB |
22850 | cat confdefs.h >>conftest.$ac_ext |
22851 | cat >>conftest.$ac_ext <<_ACEOF | |
22852 | /* end confdefs.h. */ | |
36b313da | 22853 | |
36b313da | 22854 | |
723aa3b0 | 22855 | #include <linux/sched.h> |
36b313da | 22856 | |
6ae7fef5 BB |
22857 | int |
22858 | main (void) | |
22859 | { | |
36b313da | 22860 | |
723aa3b0 | 22861 | __put_task_struct(NULL); |
5232d256 | 22862 | |
6ae7fef5 BB |
22863 | ; |
22864 | return 0; | |
22865 | } | |
5232d256 | 22866 | |
5232d256 BB |
22867 | _ACEOF |
22868 | ||
6ae7fef5 | 22869 | |
df7cc5bc | 22870 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
6ae7fef5 | 22871 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22872 | modpost_flag='' |
22873 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22874 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
6ae7fef5 BB |
22875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22876 | (eval $ac_try) 2>&5 | |
22877 | ac_status=$? | |
8934764e | 22878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 BB |
22879 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
22880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22881 | (eval $ac_try) 2>&5 | |
22882 | ac_status=$? | |
8934764e | 22883 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6ae7fef5 | 22884 | (exit $ac_status); }; }; then |
723aa3b0 | 22885 | rc=0 |
9b2048c2 BB |
22886 | else |
22887 | $as_echo "$as_me: failed program was:" >&5 | |
22888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
723aa3b0 | 22889 | rc=1 |
9b2048c2 BB |
22890 | |
22891 | ||
22892 | fi | |
22893 | ||
22894 | rm -Rf build | |
22895 | ||
22896 | ||
723aa3b0 ED |
22897 | if test $rc -ne 0; then : |
22898 | ||
22899 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
22900 | $as_echo "no" >&6; } | |
9b2048c2 | 22901 | |
723aa3b0 ED |
22902 | else |
22903 | if test "x$enable_linux_builtin" != xyes; then | |
9b2048c2 | 22904 | |
723aa3b0 | 22905 | grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \ |
0d0b5237 BB |
22906 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
22907 | rc=$? | |
22908 | if test $rc -ne 0; then | |
22909 | export=0 | |
723aa3b0 ED |
22910 | for file in ; do |
22911 | grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \ | |
0d0b5237 BB |
22912 | "$LINUX_OBJ/$file" 2>/dev/null |
22913 | rc=$? | |
723aa3b0 ED |
22914 | if test $rc -eq 0; then |
22915 | export=1 | |
22916 | break; | |
22917 | fi | |
0d0b5237 | 22918 | done |
723aa3b0 ED |
22919 | if test $export -eq 0; then : |
22920 | rc=1 | |
22921 | else : | |
22922 | rc=0 | |
22923 | fi | |
22924 | else : | |
22925 | rc=0 | |
22926 | fi | |
0d0b5237 | 22927 | |
723aa3b0 ED |
22928 | fi |
22929 | if test $rc -ne 0; then : | |
0d0b5237 | 22930 | |
723aa3b0 ED |
22931 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
22932 | $as_echo "no" >&6; } | |
22933 | ||
22934 | else : | |
0d0b5237 | 22935 | |
0d0b5237 BB |
22936 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
22937 | $as_echo "yes" >&6; } | |
22938 | ||
22939 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 22940 | #define HAVE_PUT_TASK_STRUCT 1 |
0d0b5237 BB |
22941 | _ACEOF |
22942 | ||
723aa3b0 ED |
22943 | |
22944 | fi | |
0d0b5237 BB |
22945 | fi |
22946 | ||
22947 | ||
22948 | ||
723aa3b0 ED |
22949 | { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5 |
22950 | $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; } | |
0d0b5237 BB |
22951 | |
22952 | ||
22953 | cat confdefs.h - <<_ACEOF >conftest.c | |
22954 | /* confdefs.h. */ | |
22955 | _ACEOF | |
22956 | cat confdefs.h >>conftest.$ac_ext | |
22957 | cat >>conftest.$ac_ext <<_ACEOF | |
22958 | /* end confdefs.h. */ | |
22959 | ||
22960 | ||
723aa3b0 | 22961 | #include <linux/sysctl.h> |
0d0b5237 BB |
22962 | |
22963 | int | |
22964 | main (void) | |
22965 | { | |
22966 | ||
723aa3b0 | 22967 | proc_dostring(NULL, 0, NULL, NULL, NULL); |
0d0b5237 BB |
22968 | |
22969 | ; | |
22970 | return 0; | |
22971 | } | |
22972 | ||
22973 | _ACEOF | |
22974 | ||
22975 | ||
df7cc5bc | 22976 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
0d0b5237 | 22977 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
22978 | modpost_flag='' |
22979 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
22980 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
0d0b5237 BB |
22981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22982 | (eval $ac_try) 2>&5 | |
22983 | ac_status=$? | |
22984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22985 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
22986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22987 | (eval $ac_try) 2>&5 | |
22988 | ac_status=$? | |
22989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22990 | (exit $ac_status); }; }; then | |
22991 | ||
22992 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
22993 | $as_echo "yes" >&6; } | |
22994 | ||
22995 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 22996 | #define HAVE_5ARGS_PROC_HANDLER 1 |
0d0b5237 BB |
22997 | _ACEOF |
22998 | ||
22999 | ||
23000 | else | |
23001 | $as_echo "$as_me: failed program was:" >&5 | |
23002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23003 | ||
23004 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
23005 | $as_echo "no" >&6; } | |
23006 | ||
23007 | ||
23008 | ||
23009 | fi | |
23010 | ||
23011 | rm -Rf build | |
23012 | ||
23013 | ||
23014 | ||
723aa3b0 ED |
23015 | { $as_echo "$as_me:$LINENO: checking whether kvasprintf() is available" >&5 |
23016 | $as_echo_n "checking whether kvasprintf() is available... " >&6; } | |
0d0b5237 | 23017 | |
9b2048c2 BB |
23018 | |
23019 | ||
23020 | cat confdefs.h - <<_ACEOF >conftest.c | |
23021 | /* confdefs.h. */ | |
23022 | _ACEOF | |
23023 | cat confdefs.h >>conftest.$ac_ext | |
23024 | cat >>conftest.$ac_ext <<_ACEOF | |
23025 | /* end confdefs.h. */ | |
23026 | ||
23027 | ||
723aa3b0 | 23028 | #include <linux/kernel.h> |
9b2048c2 BB |
23029 | |
23030 | int | |
23031 | main (void) | |
23032 | { | |
23033 | ||
723aa3b0 | 23034 | kvasprintf(0, NULL, *((va_list*)NULL)); |
9b2048c2 BB |
23035 | |
23036 | ; | |
23037 | return 0; | |
23038 | } | |
23039 | ||
23040 | _ACEOF | |
23041 | ||
23042 | ||
df7cc5bc | 23043 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
9b2048c2 | 23044 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
23045 | modpost_flag='' |
23046 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23047 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
9b2048c2 BB |
23048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23049 | (eval $ac_try) 2>&5 | |
23050 | ac_status=$? | |
23051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23052 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23054 | (eval $ac_try) 2>&5 | |
23055 | ac_status=$? | |
23056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23057 | (exit $ac_status); }; }; then | |
723aa3b0 ED |
23058 | rc=0 |
23059 | else | |
23060 | $as_echo "$as_me: failed program was:" >&5 | |
23061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23062 | rc=1 | |
9b2048c2 | 23063 | |
9b2048c2 | 23064 | |
723aa3b0 | 23065 | fi |
9b2048c2 | 23066 | |
723aa3b0 | 23067 | rm -Rf build |
9b2048c2 | 23068 | |
723aa3b0 ED |
23069 | |
23070 | if test $rc -ne 0; then : | |
23071 | ||
23072 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
23073 | $as_echo "no" >&6; } | |
23074 | ||
23075 | else | |
23076 | if test "x$enable_linux_builtin" != xyes; then | |
23077 | ||
23078 | grep -q -E '[[:space:]]kvasprintf[[:space:]]' \ | |
23079 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23080 | rc=$? | |
23081 | if test $rc -ne 0; then | |
23082 | export=0 | |
23083 | for file in ; do | |
23084 | grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \ | |
23085 | "$LINUX_OBJ/$file" 2>/dev/null | |
23086 | rc=$? | |
23087 | if test $rc -eq 0; then | |
23088 | export=1 | |
23089 | break; | |
23090 | fi | |
23091 | done | |
23092 | if test $export -eq 0; then : | |
23093 | rc=1 | |
23094 | else : | |
23095 | rc=0 | |
23096 | fi | |
23097 | else : | |
23098 | rc=0 | |
23099 | fi | |
23100 | ||
23101 | fi | |
23102 | if test $rc -ne 0; then : | |
5232d256 | 23103 | |
8934764e BB |
23104 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
23105 | $as_echo "no" >&6; } | |
4ab13d3b | 23106 | |
723aa3b0 | 23107 | else : |
4ab13d3b | 23108 | |
723aa3b0 ED |
23109 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
23110 | $as_echo "yes" >&6; } | |
4ab13d3b | 23111 | |
723aa3b0 ED |
23112 | cat >>confdefs.h <<\_ACEOF |
23113 | #define HAVE_KVASPRINTF 1 | |
23114 | _ACEOF | |
4ab13d3b | 23115 | |
96dded38 | 23116 | |
723aa3b0 ED |
23117 | fi |
23118 | fi | |
96dded38 BB |
23119 | |
23120 | ||
723aa3b0 ED |
23121 | { $as_echo "$as_me:$LINENO: checking whether rwsem_is_locked() acquires sem->wait_lock" >&5 |
23122 | $as_echo_n "checking whether rwsem_is_locked() acquires sem->wait_lock... " >&6; } | |
8934764e | 23123 | |
96dded38 BB |
23124 | |
23125 | ||
dbe561d8 | 23126 | cat confdefs.h - <<_ACEOF >conftest.c |
96dded38 BB |
23127 | /* confdefs.h. */ |
23128 | _ACEOF | |
23129 | cat confdefs.h >>conftest.$ac_ext | |
23130 | cat >>conftest.$ac_ext <<_ACEOF | |
23131 | /* end confdefs.h. */ | |
23132 | ||
23133 | ||
723aa3b0 ED |
23134 | #include <linux/rwsem.h> |
23135 | int rwsem_is_locked(struct rw_semaphore *sem) { return 0; } | |
96dded38 BB |
23136 | |
23137 | int | |
23138 | main (void) | |
23139 | { | |
23140 | ||
96dded38 BB |
23141 | ; |
23142 | return 0; | |
23143 | } | |
23144 | ||
23145 | _ACEOF | |
23146 | ||
23147 | ||
df7cc5bc | 23148 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
96dded38 | 23149 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
23150 | modpost_flag='' |
23151 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23152 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
96dded38 BB |
23153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23154 | (eval $ac_try) 2>&5 | |
23155 | ac_status=$? | |
8934764e | 23156 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
96dded38 BB |
23157 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
23158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23159 | (eval $ac_try) 2>&5 | |
23160 | ac_status=$? | |
8934764e | 23161 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
96dded38 | 23162 | (exit $ac_status); }; }; then |
723aa3b0 | 23163 | rc=0 |
96dded38 | 23164 | else |
8934764e | 23165 | $as_echo "$as_me: failed program was:" >&5 |
96dded38 | 23166 | sed 's/^/| /' conftest.$ac_ext >&5 |
723aa3b0 | 23167 | rc=1 |
96dded38 BB |
23168 | |
23169 | ||
23170 | fi | |
23171 | ||
23172 | rm -Rf build | |
23173 | ||
4ab13d3b | 23174 | |
723aa3b0 | 23175 | if test $rc -ne 0; then : |
4ab13d3b | 23176 | |
723aa3b0 ED |
23177 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
23178 | $as_echo "no" >&6; } | |
4ab13d3b | 23179 | |
723aa3b0 ED |
23180 | else |
23181 | if test "x$enable_linux_builtin" != xyes; then | |
23182 | ||
23183 | grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \ | |
8934764e BB |
23184 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
23185 | rc=$? | |
23186 | if test $rc -ne 0; then | |
23187 | export=0 | |
723aa3b0 ED |
23188 | for file in lib/rwsem-spinlock.c; do |
23189 | grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \ | |
8934764e BB |
23190 | "$LINUX_OBJ/$file" 2>/dev/null |
23191 | rc=$? | |
723aa3b0 ED |
23192 | if test $rc -eq 0; then |
23193 | export=1 | |
23194 | break; | |
23195 | fi | |
8934764e | 23196 | done |
723aa3b0 ED |
23197 | if test $export -eq 0; then : |
23198 | rc=1 | |
23199 | else : | |
23200 | rc=0 | |
8934764e | 23201 | fi |
723aa3b0 ED |
23202 | else : |
23203 | rc=0 | |
8934764e BB |
23204 | fi |
23205 | ||
723aa3b0 ED |
23206 | fi |
23207 | if test $rc -ne 0; then : | |
8934764e | 23208 | |
723aa3b0 | 23209 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
8934764e BB |
23210 | $as_echo "no" >&6; } |
23211 | ||
723aa3b0 | 23212 | else : |
8934764e | 23213 | |
8934764e BB |
23214 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
23215 | $as_echo "yes" >&6; } | |
23216 | ||
23217 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 23218 | #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1 |
8934764e BB |
23219 | _ACEOF |
23220 | ||
723aa3b0 ED |
23221 | |
23222 | fi | |
8934764e BB |
23223 | fi |
23224 | ||
23225 | ||
23226 | ||
723aa3b0 ED |
23227 | { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() is available" >&5 |
23228 | $as_echo_n "checking whether invalidate_inodes() is available... " >&6; } | |
23229 | ||
e11d6c5f BB |
23230 | |
23231 | ||
dbe561d8 | 23232 | cat confdefs.h - <<_ACEOF >conftest.c |
e11d6c5f BB |
23233 | /* confdefs.h. */ |
23234 | _ACEOF | |
23235 | cat confdefs.h >>conftest.$ac_ext | |
23236 | cat >>conftest.$ac_ext <<_ACEOF | |
23237 | /* end confdefs.h. */ | |
23238 | ||
23239 | ||
723aa3b0 | 23240 | #include <linux/fs.h> |
e11d6c5f | 23241 | |
8934764e BB |
23242 | int |
23243 | main (void) | |
23244 | { | |
23245 | ||
723aa3b0 | 23246 | invalidate_inodes; |
e11d6c5f BB |
23247 | |
23248 | ; | |
23249 | return 0; | |
23250 | } | |
23251 | ||
23252 | _ACEOF | |
23253 | ||
23254 | ||
df7cc5bc | 23255 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
e11d6c5f | 23256 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
23257 | modpost_flag='' |
23258 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23259 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
e11d6c5f BB |
23260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23261 | (eval $ac_try) 2>&5 | |
23262 | ac_status=$? | |
8934764e | 23263 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e11d6c5f BB |
23264 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' |
23265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23266 | (eval $ac_try) 2>&5 | |
23267 | ac_status=$? | |
8934764e | 23268 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e11d6c5f | 23269 | (exit $ac_status); }; }; then |
723aa3b0 | 23270 | rc=0 |
6ae7fef5 | 23271 | else |
8934764e | 23272 | $as_echo "$as_me: failed program was:" >&5 |
6ae7fef5 | 23273 | sed 's/^/| /' conftest.$ac_ext >&5 |
723aa3b0 | 23274 | rc=1 |
e11d6c5f BB |
23275 | |
23276 | ||
8934764e | 23277 | fi |
e11d6c5f | 23278 | |
8934764e BB |
23279 | rm -Rf build |
23280 | ||
23281 | ||
723aa3b0 | 23282 | if test $rc -ne 0; then : |
8934764e | 23283 | |
723aa3b0 ED |
23284 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
23285 | $as_echo "no" >&6; } | |
8934764e | 23286 | |
723aa3b0 ED |
23287 | else |
23288 | if test "x$enable_linux_builtin" != xyes; then | |
23289 | ||
23290 | grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \ | |
b868e22f BB |
23291 | $LINUX_OBJ/Module*.symvers 2>/dev/null |
23292 | rc=$? | |
23293 | if test $rc -ne 0; then | |
23294 | export=0 | |
23295 | for file in ; do | |
723aa3b0 | 23296 | grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \ |
b868e22f BB |
23297 | "$LINUX_OBJ/$file" 2>/dev/null |
23298 | rc=$? | |
723aa3b0 ED |
23299 | if test $rc -eq 0; then |
23300 | export=1 | |
23301 | break; | |
23302 | fi | |
b868e22f | 23303 | done |
723aa3b0 ED |
23304 | if test $export -eq 0; then : |
23305 | rc=1 | |
23306 | else : | |
23307 | rc=0 | |
23308 | fi | |
23309 | else : | |
23310 | rc=0 | |
23311 | fi | |
b868e22f | 23312 | |
723aa3b0 ED |
23313 | fi |
23314 | if test $rc -ne 0; then : | |
b868e22f | 23315 | |
723aa3b0 ED |
23316 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
23317 | $as_echo "no" >&6; } | |
23318 | ||
23319 | else : | |
b868e22f | 23320 | |
b868e22f BB |
23321 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
23322 | $as_echo "yes" >&6; } | |
23323 | ||
23324 | cat >>confdefs.h <<\_ACEOF | |
723aa3b0 | 23325 | #define HAVE_INVALIDATE_INODES 1 |
b868e22f BB |
23326 | _ACEOF |
23327 | ||
723aa3b0 ED |
23328 | |
23329 | fi | |
b868e22f BB |
23330 | fi |
23331 | ||
23332 | ||
723aa3b0 ED |
23333 | { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes_check() is available" >&5 |
23334 | $as_echo_n "checking whether invalidate_inodes_check() is available... " >&6; } | |
b868e22f | 23335 | |
46aa7b39 | 23336 | |
46aa7b39 | 23337 | |
723aa3b0 ED |
23338 | cat confdefs.h - <<_ACEOF >conftest.c |
23339 | /* confdefs.h. */ | |
46aa7b39 | 23340 | _ACEOF |
723aa3b0 ED |
23341 | cat confdefs.h >>conftest.$ac_ext |
23342 | cat >>conftest.$ac_ext <<_ACEOF | |
23343 | /* end confdefs.h. */ | |
46aa7b39 | 23344 | |
46aa7b39 | 23345 | |
723aa3b0 | 23346 | #include <linux/fs.h> |
476ff5a4 ED |
23347 | #ifndef invalidate_inodes |
23348 | #error invalidate_inodes is not a macro | |
23349 | #endif | |
723aa3b0 ED |
23350 | |
23351 | int | |
23352 | main (void) | |
23353 | { | |
23354 | ||
723aa3b0 ED |
23355 | ; |
23356 | return 0; | |
23357 | } | |
23358 | ||
46aa7b39 NB |
23359 | _ACEOF |
23360 | ||
46aa7b39 | 23361 | |
723aa3b0 ED |
23362 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
23363 | echo "obj-m := conftest.o" >build/Makefile | |
23364 | modpost_flag='' | |
23365 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23366 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23368 | (eval $ac_try) 2>&5 | |
23369 | ac_status=$? | |
23370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23371 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23373 | (eval $ac_try) 2>&5 | |
23374 | ac_status=$? | |
23375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23376 | (exit $ac_status); }; }; then | |
23377 | rc=0 | |
23378 | else | |
23379 | $as_echo "$as_me: failed program was:" >&5 | |
23380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23381 | rc=1 | |
46aa7b39 NB |
23382 | |
23383 | ||
723aa3b0 | 23384 | fi |
914b0631 | 23385 | |
723aa3b0 | 23386 | rm -Rf build |
914b0631 | 23387 | |
914b0631 | 23388 | |
723aa3b0 | 23389 | if test $rc -ne 0; then : |
914b0631 | 23390 | |
723aa3b0 ED |
23391 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
23392 | $as_echo "no" >&6; } | |
914b0631 | 23393 | |
723aa3b0 ED |
23394 | else |
23395 | if test "x$enable_linux_builtin" != xyes; then | |
914b0631 | 23396 | |
5f6c14b1 BB |
23397 | grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \ |
23398 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23399 | rc=$? | |
23400 | if test $rc -ne 0; then | |
23401 | export=0 | |
23402 | for file in ; do | |
23403 | grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \ | |
23404 | "$LINUX_OBJ/$file" 2>/dev/null | |
23405 | rc=$? | |
723aa3b0 ED |
23406 | if test $rc -eq 0; then |
23407 | export=1 | |
23408 | break; | |
23409 | fi | |
5f6c14b1 | 23410 | done |
723aa3b0 ED |
23411 | if test $export -eq 0; then : |
23412 | rc=1 | |
23413 | else : | |
23414 | rc=0 | |
23415 | fi | |
23416 | else : | |
23417 | rc=0 | |
23418 | fi | |
5f6c14b1 | 23419 | |
723aa3b0 ED |
23420 | fi |
23421 | if test $rc -ne 0; then : | |
5f6c14b1 | 23422 | |
723aa3b0 ED |
23423 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
23424 | $as_echo "no" >&6; } | |
23425 | ||
23426 | else : | |
5f6c14b1 | 23427 | |
5f6c14b1 BB |
23428 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
23429 | $as_echo "yes" >&6; } | |
23430 | ||
23431 | cat >>confdefs.h <<\_ACEOF | |
23432 | #define HAVE_INVALIDATE_INODES_CHECK 1 | |
23433 | _ACEOF | |
23434 | ||
723aa3b0 ED |
23435 | |
23436 | fi | |
5f6c14b1 BB |
23437 | fi |
23438 | ||
914b0631 | 23439 | |
9b0f9079 BB |
23440 | { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5 |
23441 | $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; } | |
23442 | ||
23443 | ||
23444 | cat confdefs.h - <<_ACEOF >conftest.c | |
23445 | /* confdefs.h. */ | |
23446 | _ACEOF | |
23447 | cat confdefs.h >>conftest.$ac_ext | |
23448 | cat >>conftest.$ac_ext <<_ACEOF | |
23449 | /* end confdefs.h. */ | |
23450 | ||
23451 | ||
23452 | #include <linux/fs.h> | |
23453 | ||
23454 | int | |
23455 | main (void) | |
23456 | { | |
23457 | ||
23458 | return __invalidate_device(NULL, 0); | |
23459 | ||
23460 | ; | |
23461 | return 0; | |
23462 | } | |
23463 | ||
23464 | _ACEOF | |
23465 | ||
23466 | ||
df7cc5bc | 23467 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
9b0f9079 | 23468 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
23469 | modpost_flag='' |
23470 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23471 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
9b0f9079 BB |
23472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23473 | (eval $ac_try) 2>&5 | |
23474 | ac_status=$? | |
23475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23476 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23478 | (eval $ac_try) 2>&5 | |
23479 | ac_status=$? | |
23480 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23481 | (exit $ac_status); }; }; then | |
23482 | ||
23483 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
23484 | $as_echo "yes" >&6; } | |
23485 | ||
23486 | cat >>confdefs.h <<\_ACEOF | |
23487 | #define HAVE_2ARGS_INVALIDATE_INODES 1 | |
23488 | _ACEOF | |
23489 | ||
23490 | ||
23491 | else | |
23492 | $as_echo "$as_me: failed program was:" >&5 | |
23493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23494 | ||
23495 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
23496 | $as_echo "no" >&6; } | |
23497 | ||
23498 | ||
23499 | ||
23500 | fi | |
23501 | ||
23502 | rm -Rf build | |
23503 | ||
23504 | ||
23505 | ||
723aa3b0 ED |
23506 | { $as_echo "$as_me:$LINENO: checking whether shrink_dcache_memory() is available" >&5 |
23507 | $as_echo_n "checking whether shrink_dcache_memory() is available... " >&6; } | |
23508 | ||
23509 | ||
23510 | ||
23511 | cat confdefs.h - <<_ACEOF >conftest.c | |
23512 | /* confdefs.h. */ | |
23513 | _ACEOF | |
23514 | cat confdefs.h >>conftest.$ac_ext | |
23515 | cat >>conftest.$ac_ext <<_ACEOF | |
23516 | /* end confdefs.h. */ | |
23517 | ||
23518 | ||
23519 | #include <linux/dcache.h> | |
23520 | ||
23521 | int | |
23522 | main (void) | |
23523 | { | |
23524 | ||
23525 | shrink_dcache_memory(0, 0); | |
23526 | ||
23527 | ; | |
23528 | return 0; | |
23529 | } | |
23530 | ||
23531 | _ACEOF | |
23532 | ||
23533 | ||
23534 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23535 | echo "obj-m := conftest.o" >build/Makefile | |
23536 | modpost_flag='' | |
23537 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23538 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23540 | (eval $ac_try) 2>&5 | |
23541 | ac_status=$? | |
23542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23543 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23545 | (eval $ac_try) 2>&5 | |
23546 | ac_status=$? | |
23547 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23548 | (exit $ac_status); }; }; then | |
23549 | rc=0 | |
23550 | else | |
23551 | $as_echo "$as_me: failed program was:" >&5 | |
23552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23553 | rc=1 | |
23554 | ||
23555 | ||
23556 | fi | |
23557 | ||
23558 | rm -Rf build | |
23559 | ||
23560 | ||
23561 | if test $rc -ne 0; then : | |
23562 | ||
23563 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
23564 | $as_echo "no" >&6; } | |
23565 | ||
23566 | else | |
23567 | if test "x$enable_linux_builtin" != xyes; then | |
914b0631 | 23568 | |
e76f4bf1 BB |
23569 | grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \ |
23570 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23571 | rc=$? | |
23572 | if test $rc -ne 0; then | |
23573 | export=0 | |
23574 | for file in fs/dcache.c; do | |
23575 | grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \ | |
23576 | "$LINUX_OBJ/$file" 2>/dev/null | |
23577 | rc=$? | |
723aa3b0 ED |
23578 | if test $rc -eq 0; then |
23579 | export=1 | |
23580 | break; | |
23581 | fi | |
e76f4bf1 | 23582 | done |
723aa3b0 ED |
23583 | if test $export -eq 0; then : |
23584 | rc=1 | |
23585 | else : | |
23586 | rc=0 | |
23587 | fi | |
23588 | else : | |
23589 | rc=0 | |
23590 | fi | |
23591 | ||
23592 | fi | |
23593 | if test $rc -ne 0; then : | |
23594 | ||
23595 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
e76f4bf1 BB |
23596 | $as_echo "no" >&6; } |
23597 | ||
723aa3b0 ED |
23598 | else : |
23599 | ||
23600 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
e76f4bf1 BB |
23601 | $as_echo "yes" >&6; } |
23602 | ||
23603 | cat >>confdefs.h <<\_ACEOF | |
23604 | #define HAVE_SHRINK_DCACHE_MEMORY 1 | |
23605 | _ACEOF | |
23606 | ||
723aa3b0 | 23607 | |
e76f4bf1 | 23608 | fi |
723aa3b0 | 23609 | fi |
e76f4bf1 | 23610 | |
723aa3b0 ED |
23611 | |
23612 | { $as_echo "$as_me:$LINENO: checking whether shrink_icache_memory() is available" >&5 | |
23613 | $as_echo_n "checking whether shrink_icache_memory() is available... " >&6; } | |
23614 | ||
23615 | ||
23616 | ||
23617 | cat confdefs.h - <<_ACEOF >conftest.c | |
23618 | /* confdefs.h. */ | |
e76f4bf1 | 23619 | _ACEOF |
723aa3b0 ED |
23620 | cat confdefs.h >>conftest.$ac_ext |
23621 | cat >>conftest.$ac_ext <<_ACEOF | |
23622 | /* end confdefs.h. */ | |
e76f4bf1 | 23623 | |
e76f4bf1 | 23624 | |
723aa3b0 ED |
23625 | #include <linux/dcache.h> |
23626 | ||
23627 | int | |
23628 | main (void) | |
23629 | { | |
23630 | ||
23631 | shrink_icache_memory(0, 0); | |
23632 | ||
23633 | ; | |
23634 | return 0; | |
23635 | } | |
23636 | ||
23637 | _ACEOF | |
23638 | ||
23639 | ||
23640 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23641 | echo "obj-m := conftest.o" >build/Makefile | |
23642 | modpost_flag='' | |
23643 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23644 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23646 | (eval $ac_try) 2>&5 | |
23647 | ac_status=$? | |
23648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23649 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23651 | (eval $ac_try) 2>&5 | |
23652 | ac_status=$? | |
23653 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23654 | (exit $ac_status); }; }; then | |
23655 | rc=0 | |
23656 | else | |
23657 | $as_echo "$as_me: failed program was:" >&5 | |
23658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23659 | rc=1 | |
23660 | ||
23661 | ||
23662 | fi | |
23663 | ||
23664 | rm -Rf build | |
23665 | ||
23666 | ||
23667 | if test $rc -ne 0; then : | |
23668 | ||
23669 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
23670 | $as_echo "no" >&6; } | |
e76f4bf1 | 23671 | |
723aa3b0 ED |
23672 | else |
23673 | if test "x$enable_linux_builtin" != xyes; then | |
e76f4bf1 | 23674 | |
e76f4bf1 BB |
23675 | grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \ |
23676 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23677 | rc=$? | |
23678 | if test $rc -ne 0; then | |
23679 | export=0 | |
23680 | for file in fs/inode.c; do | |
23681 | grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \ | |
23682 | "$LINUX_OBJ/$file" 2>/dev/null | |
23683 | rc=$? | |
723aa3b0 ED |
23684 | if test $rc -eq 0; then |
23685 | export=1 | |
23686 | break; | |
23687 | fi | |
e76f4bf1 | 23688 | done |
723aa3b0 ED |
23689 | if test $export -eq 0; then : |
23690 | rc=1 | |
23691 | else : | |
23692 | rc=0 | |
23693 | fi | |
23694 | else : | |
23695 | rc=0 | |
23696 | fi | |
e76f4bf1 | 23697 | |
723aa3b0 ED |
23698 | fi |
23699 | if test $rc -ne 0; then : | |
e76f4bf1 | 23700 | |
723aa3b0 ED |
23701 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
23702 | $as_echo "no" >&6; } | |
23703 | ||
23704 | else : | |
e76f4bf1 | 23705 | |
e76f4bf1 BB |
23706 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
23707 | $as_echo "yes" >&6; } | |
23708 | ||
23709 | cat >>confdefs.h <<\_ACEOF | |
23710 | #define HAVE_SHRINK_ICACHE_MEMORY 1 | |
23711 | _ACEOF | |
23712 | ||
723aa3b0 ED |
23713 | |
23714 | fi | |
e76f4bf1 BB |
23715 | fi |
23716 | ||
23717 | ||
23718 | ||
12ff95ff BB |
23719 | |
23720 | { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5 | |
23721 | $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; } | |
23722 | header=0 | |
23723 | for file in include/linux/namei.h; do | |
23724 | grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null | |
23725 | rc=$? | |
723aa3b0 ED |
23726 | if test $rc -eq 0; then |
23727 | header=1 | |
23728 | break; | |
23729 | fi | |
12ff95ff BB |
23730 | done |
23731 | if test $header -eq 0; then | |
23732 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
23733 | $as_echo "no" >&6; } | |
23734 | ||
23735 | else | |
23736 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
23737 | $as_echo "yes" >&6; } | |
23738 | ||
23739 | cat >>confdefs.h <<\_ACEOF | |
23740 | #define HAVE_KERN_PATH_PARENT_HEADER 1 | |
23741 | _ACEOF | |
23742 | ||
23743 | fi | |
23744 | ||
23745 | ||
723aa3b0 ED |
23746 | { $as_echo "$as_me:$LINENO: checking whether kern_path_parent() is available" >&5 |
23747 | $as_echo_n "checking whether kern_path_parent() is available... " >&6; } | |
23748 | ||
23749 | ||
23750 | ||
23751 | cat confdefs.h - <<_ACEOF >conftest.c | |
23752 | /* confdefs.h. */ | |
23753 | _ACEOF | |
23754 | cat confdefs.h >>conftest.$ac_ext | |
23755 | cat >>conftest.$ac_ext <<_ACEOF | |
23756 | /* end confdefs.h. */ | |
23757 | ||
23758 | ||
23759 | #include <linux/namei.h> | |
23760 | ||
23761 | int | |
23762 | main (void) | |
23763 | { | |
23764 | ||
23765 | kern_path_parent(NULL, NULL); | |
23766 | ||
23767 | ; | |
23768 | return 0; | |
23769 | } | |
23770 | ||
23771 | _ACEOF | |
23772 | ||
23773 | ||
23774 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c | |
23775 | echo "obj-m := conftest.o" >build/Makefile | |
23776 | modpost_flag='' | |
23777 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23778 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
23779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23780 | (eval $ac_try) 2>&5 | |
23781 | ac_status=$? | |
23782 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23783 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23785 | (eval $ac_try) 2>&5 | |
23786 | ac_status=$? | |
23787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23788 | (exit $ac_status); }; }; then | |
23789 | rc=0 | |
23790 | else | |
23791 | $as_echo "$as_me: failed program was:" >&5 | |
23792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23793 | rc=1 | |
23794 | ||
23795 | ||
23796 | fi | |
23797 | ||
23798 | rm -Rf build | |
23799 | ||
23800 | ||
23801 | if test $rc -ne 0; then : | |
23802 | ||
23803 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
23804 | $as_echo "no" >&6; } | |
23805 | ||
23806 | else | |
23807 | if test "x$enable_linux_builtin" != xyes; then | |
12ff95ff | 23808 | |
b1cbc461 BB |
23809 | grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \ |
23810 | $LINUX_OBJ/Module*.symvers 2>/dev/null | |
23811 | rc=$? | |
23812 | if test $rc -ne 0; then | |
23813 | export=0 | |
23814 | for file in fs/namei.c; do | |
23815 | grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \ | |
23816 | "$LINUX_OBJ/$file" 2>/dev/null | |
23817 | rc=$? | |
723aa3b0 ED |
23818 | if test $rc -eq 0; then |
23819 | export=1 | |
23820 | break; | |
23821 | fi | |
b1cbc461 | 23822 | done |
723aa3b0 ED |
23823 | if test $export -eq 0; then : |
23824 | rc=1 | |
23825 | else : | |
23826 | rc=0 | |
23827 | fi | |
23828 | else : | |
23829 | rc=0 | |
23830 | fi | |
b1cbc461 | 23831 | |
723aa3b0 ED |
23832 | fi |
23833 | if test $rc -ne 0; then : | |
b1cbc461 | 23834 | |
723aa3b0 ED |
23835 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
23836 | $as_echo "no" >&6; } | |
23837 | ||
23838 | else : | |
b1cbc461 | 23839 | |
b1cbc461 BB |
23840 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
23841 | $as_echo "yes" >&6; } | |
23842 | ||
23843 | cat >>confdefs.h <<\_ACEOF | |
12ff95ff | 23844 | #define HAVE_KERN_PATH_PARENT_SYMBOL 1 |
b1cbc461 BB |
23845 | _ACEOF |
23846 | ||
723aa3b0 ED |
23847 | |
23848 | fi | |
b1cbc461 BB |
23849 | fi |
23850 | ||
23851 | ||
3dfc591a BB |
23852 | { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5 |
23853 | $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; } | |
23854 | ||
23855 | ||
23856 | cat confdefs.h - <<_ACEOF >conftest.c | |
23857 | /* confdefs.h. */ | |
23858 | _ACEOF | |
23859 | cat confdefs.h >>conftest.$ac_ext | |
23860 | cat >>conftest.$ac_ext <<_ACEOF | |
23861 | /* end confdefs.h. */ | |
23862 | ||
23863 | ||
23864 | #include <linux/zlib.h> | |
23865 | ||
23866 | int | |
23867 | main (void) | |
23868 | { | |
23869 | ||
23870 | return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL); | |
23871 | ||
23872 | ; | |
23873 | return 0; | |
23874 | } | |
23875 | ||
23876 | _ACEOF | |
23877 | ||
23878 | ||
df7cc5bc | 23879 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
3dfc591a | 23880 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
23881 | modpost_flag='' |
23882 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23883 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
3dfc591a BB |
23884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23885 | (eval $ac_try) 2>&5 | |
23886 | ac_status=$? | |
23887 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23888 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23890 | (eval $ac_try) 2>&5 | |
23891 | ac_status=$? | |
23892 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23893 | (exit $ac_status); }; }; then | |
23894 | ||
23895 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
23896 | $as_echo "yes" >&6; } | |
23897 | ||
23898 | cat >>confdefs.h <<\_ACEOF | |
23899 | #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1 | |
23900 | _ACEOF | |
23901 | ||
23902 | ||
23903 | else | |
23904 | $as_echo "$as_me: failed program was:" >&5 | |
23905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23906 | ||
23907 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
23908 | $as_echo "no" >&6; } | |
a55bcaad BB |
23909 | |
23910 | ||
23911 | ||
23912 | fi | |
23913 | ||
23914 | rm -Rf build | |
23915 | ||
23916 | ||
23917 | ||
23918 | ||
23919 | { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5 | |
23920 | $as_echo_n "checking whether struct shrink_control exists... " >&6; } | |
23921 | ||
23922 | ||
23923 | cat confdefs.h - <<_ACEOF >conftest.c | |
23924 | /* confdefs.h. */ | |
23925 | _ACEOF | |
23926 | cat confdefs.h >>conftest.$ac_ext | |
23927 | cat >>conftest.$ac_ext <<_ACEOF | |
23928 | /* end confdefs.h. */ | |
23929 | ||
23930 | ||
23931 | #include <linux/mm.h> | |
23932 | ||
23933 | int | |
23934 | main (void) | |
23935 | { | |
23936 | ||
23937 | struct shrink_control sc __attribute__ ((unused)); | |
23938 | ||
23939 | sc.nr_to_scan = 0; | |
23940 | sc.gfp_mask = GFP_KERNEL; | |
23941 | ||
23942 | ; | |
23943 | return 0; | |
23944 | } | |
23945 | ||
23946 | _ACEOF | |
23947 | ||
23948 | ||
df7cc5bc | 23949 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
a55bcaad | 23950 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
23951 | modpost_flag='' |
23952 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
23953 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
a55bcaad BB |
23954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23955 | (eval $ac_try) 2>&5 | |
23956 | ac_status=$? | |
23957 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23958 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
23959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23960 | (eval $ac_try) 2>&5 | |
23961 | ac_status=$? | |
23962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23963 | (exit $ac_status); }; }; then | |
23964 | ||
23965 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
23966 | $as_echo "yes" >&6; } | |
23967 | ||
23968 | cat >>confdefs.h <<\_ACEOF | |
23969 | #define HAVE_SHRINK_CONTROL_STRUCT 1 | |
23970 | _ACEOF | |
23971 | ||
23972 | ||
23973 | else | |
23974 | $as_echo "$as_me: failed program was:" >&5 | |
23975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23976 | ||
23977 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
23978 | $as_echo "no" >&6; } | |
3dfc591a BB |
23979 | |
23980 | ||
23981 | ||
23982 | fi | |
23983 | ||
23984 | rm -Rf build | |
23985 | ||
23986 | ||
23987 | ||
b1cbc461 | 23988 | |
588d9004 DH |
23989 | { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5 |
23990 | $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; } | |
23991 | tmp_flags="$EXTRA_KCFLAGS" | |
23992 | EXTRA_KCFLAGS="-Werror" | |
23993 | ||
23994 | ||
23995 | cat confdefs.h - <<_ACEOF >conftest.c | |
23996 | /* confdefs.h. */ | |
23997 | _ACEOF | |
23998 | cat confdefs.h >>conftest.$ac_ext | |
23999 | cat >>conftest.$ac_ext <<_ACEOF | |
24000 | /* end confdefs.h. */ | |
24001 | ||
24002 | ||
24003 | #include <linux/rwsem.h> | |
24004 | ||
24005 | int | |
24006 | main (void) | |
24007 | { | |
24008 | ||
24009 | struct rw_semaphore dummy_semaphore __attribute__ ((unused)); | |
24010 | raw_spinlock_t dummy_lock __attribute__ ((unused)); | |
24011 | dummy_semaphore.wait_lock = dummy_lock; | |
24012 | ||
24013 | ; | |
24014 | return 0; | |
24015 | } | |
24016 | ||
24017 | _ACEOF | |
24018 | ||
24019 | ||
df7cc5bc | 24020 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
588d9004 | 24021 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
24022 | modpost_flag='' |
24023 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24024 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
588d9004 DH |
24025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24026 | (eval $ac_try) 2>&5 | |
24027 | ac_status=$? | |
24028 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24029 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24031 | (eval $ac_try) 2>&5 | |
24032 | ac_status=$? | |
24033 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24034 | (exit $ac_status); }; }; then | |
24035 | ||
24036 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
24037 | $as_echo "yes" >&6; } | |
24038 | ||
24039 | cat >>confdefs.h <<\_ACEOF | |
24040 | #define RWSEM_SPINLOCK_IS_RAW 1 | |
24041 | _ACEOF | |
24042 | ||
24043 | ||
24044 | else | |
24045 | $as_echo "$as_me: failed program was:" >&5 | |
24046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24047 | ||
24048 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
24049 | $as_echo "no" >&6; } | |
24050 | ||
24051 | ||
24052 | ||
24053 | fi | |
24054 | ||
24055 | rm -Rf build | |
24056 | ||
24057 | ||
24058 | EXTRA_KCFLAGS="$tmp_flags" | |
24059 | ||
24060 | ||
36811b44 RY |
24061 | { $as_echo "$as_me:$LINENO: checking whether pmd_alloc_with_mask exists" >&5 |
24062 | $as_echo_n "checking whether pmd_alloc_with_mask exists... " >&6; } | |
24063 | ||
24064 | ||
24065 | cat confdefs.h - <<_ACEOF >conftest.c | |
24066 | /* confdefs.h. */ | |
24067 | _ACEOF | |
24068 | cat confdefs.h >>conftest.$ac_ext | |
24069 | cat >>conftest.$ac_ext <<_ACEOF | |
24070 | /* end confdefs.h. */ | |
24071 | ||
24072 | ||
24073 | #if !defined(CONFIG_MMU) | |
24074 | #define CONFIG_MMU | |
24075 | #endif | |
24076 | ||
24077 | #if defined(RCH_HAS_4LEVEL_HACK) | |
24078 | #undef RCH_HAS_4LEVEL_HACK | |
24079 | #endif | |
24080 | ||
24081 | #include <linux/mm.h> | |
24082 | ||
24083 | int | |
24084 | main (void) | |
24085 | { | |
24086 | ||
24087 | struct mm_struct init_mm; | |
24088 | pud_t *pud = NULL; | |
24089 | unsigned long addr = 0; | |
24090 | gfp_t gfp_mask = GFP_KERNEL; | |
24091 | ||
24092 | pmd_alloc_with_mask(&init_mm, pud, addr, gfp_mask); | |
24093 | ||
24094 | ; | |
24095 | return 0; | |
24096 | } | |
24097 | ||
24098 | _ACEOF | |
24099 | ||
24100 | ||
df7cc5bc | 24101 | rm -Rf build && mkdir -p build && touch build/conftest.mod.c |
36811b44 | 24102 | echo "obj-m := conftest.o" >build/Makefile |
df7cc5bc ED |
24103 | modpost_flag='' |
24104 | test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage | |
24105 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag' | |
36811b44 RY |
24106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24107 | (eval $ac_try) 2>&5 | |
24108 | ac_status=$? | |
24109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24110 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
24111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24112 | (eval $ac_try) 2>&5 | |
24113 | ac_status=$? | |
24114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24115 | (exit $ac_status); }; }; then | |
24116 | ||
24117 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
24118 | $as_echo "yes" >&6; } | |
24119 | ||
24120 | cat >>confdefs.h <<\_ACEOF | |
24121 | #define HAVE_PMD_ALLOC_WITH_MASK 1 | |
24122 | _ACEOF | |
24123 | ||
24124 | ||
24125 | else | |
24126 | $as_echo "$as_me: failed program was:" >&5 | |
24127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24128 | ||
24129 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
24130 | $as_echo "no" >&6; } | |
24131 | ||
24132 | ||
24133 | ||
24134 | fi | |
24135 | ||
24136 | rm -Rf build | |
24137 | ||
24138 | ||
24139 | ||
24140 | ||
0408008b | 24141 | ;; |
8934764e | 24142 | srpm) ;; |
0408008b ED |
24143 | *) |
24144 | { $as_echo "$as_me:$LINENO: result: Error!" >&5 | |
8934764e | 24145 | $as_echo "Error!" >&6; } |
0408008b ED |
24146 | { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config, |
24147 | user kernel|user|all|srpm" >&5 | |
8934764e | 24148 | $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config, |
0408008b | 24149 | user kernel|user|all|srpm" >&2;} |
8934764e | 24150 | { (exit 1); exit 1; }; } ;; |
0408008b | 24151 | esac |
8934764e | 24152 | |
0408008b | 24153 | if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then |
8934764e BB |
24154 | CONFIG_USER_TRUE= |
24155 | CONFIG_USER_FALSE='#' | |
24156 | else | |
24157 | CONFIG_USER_TRUE='#' | |
24158 | CONFIG_USER_FALSE= | |
24159 | fi | |
24160 | ||
0408008b ED |
24161 | if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all && |
24162 | test "x$enable_linux_builtin" != xyes ; then | |
8934764e BB |
24163 | CONFIG_KERNEL_TRUE= |
24164 | CONFIG_KERNEL_FALSE='#' | |
24165 | else | |
24166 | CONFIG_KERNEL_TRUE='#' | |
24167 | CONFIG_KERNEL_FALSE= | |
24168 | fi | |
24169 | ||
24170 | ||
24171 | ||
d83d25c2 | 24172 | ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec spl-modules.spec PKGBUILD-spl PKGBUILD-spl-modules spl.release dkms.conf" |
8934764e BB |
24173 | |
24174 | ||
24175 | cat >confcache <<\_ACEOF | |
24176 | # This file is a shell script that caches the results of configure | |
24177 | # tests run on this system so they can be shared between configure | |
24178 | # scripts and configure runs, see configure's option --config-cache. | |
24179 | # It is not useful on other systems. If it contains results you don't | |
24180 | # want to keep, you may remove or edit it. | |
24181 | # | |
24182 | # config.status only pays attention to the cache file if you give it | |
24183 | # the --recheck option to rerun configure. | |
24184 | # | |
24185 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
24186 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
24187 | # following values. | |
6ae7fef5 | 24188 | |
6ae7fef5 BB |
24189 | _ACEOF |
24190 | ||
8934764e BB |
24191 | # The following way of writing the cache mishandles newlines in values, |
24192 | # but we know of no workaround that is simple, portable, and efficient. | |
24193 | # So, we kill variables containing newlines. | |
24194 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
24195 | # and sets the high bit in the cache file unless we assign to the vars. | |
24196 | ( | |
24197 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
24198 | eval ac_val=\$$ac_var | |
24199 | case $ac_val in #( | |
24200 | *${as_nl}*) | |
24201 | case $ac_var in #( | |
24202 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
24203 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
24204 | esac | |
24205 | case $ac_var in #( | |
24206 | _ | IFS | as_nl) ;; #( | |
24207 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
24208 | *) $as_unset $ac_var ;; | |
24209 | esac ;; | |
24210 | esac | |
24211 | done | |
6ae7fef5 | 24212 | |
8934764e BB |
24213 | (set) 2>&1 | |
24214 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
24215 | *${as_nl}ac_space=\ *) | |
24216 | # `set' does not quote correctly, so add quotes (double-quote | |
24217 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
24218 | sed -n \ | |
24219 | "s/'/'\\\\''/g; | |
24220 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
24221 | ;; #( | |
24222 | *) | |
24223 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
24224 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
24225 | ;; | |
24226 | esac | | |
24227 | sort | |
24228 | ) | | |
24229 | sed ' | |
24230 | /^ac_cv_env_/b end | |
24231 | t clear | |
24232 | :clear | |
24233 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
24234 | t end | |
24235 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
24236 | :end' >>confcache | |
24237 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
24238 | if test -w "$cache_file"; then | |
24239 | test "x$cache_file" != "x/dev/null" && | |
24240 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
24241 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
24242 | cat confcache >$cache_file | |
24243 | else | |
24244 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
24245 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
24246 | fi | |
24247 | fi | |
24248 | rm -f confcache | |
24249 | ||
24250 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
24251 | # Let make expand exec_prefix. | |
24252 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
24253 | ||
24254 | DEFS=-DHAVE_CONFIG_H | |
24255 | ||
24256 | ac_libobjs= | |
24257 | ac_ltlibobjs= | |
24258 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
24259 | # 1. Remove the extension, and $U if already installed. | |
24260 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
24261 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
24262 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
24263 | # will be set to the directory where LIBOBJS objects are built. | |
24264 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
24265 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
24266 | done | |
24267 | LIBOBJS=$ac_libobjs | |
24268 | ||
24269 | LTLIBOBJS=$ac_ltlibobjs | |
24270 | ||
24271 | ||
24272 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
24273 | { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
24274 | Usually this means the macro was only invoked conditionally." >&5 | |
24275 | $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
24276 | Usually this means the macro was only invoked conditionally." >&2;} | |
24277 | { (exit 1); exit 1; }; } | |
24278 | fi | |
24279 | if test -n "$EXEEXT"; then | |
24280 | am__EXEEXT_TRUE= | |
24281 | am__EXEEXT_FALSE='#' | |
24282 | else | |
24283 | am__EXEEXT_TRUE='#' | |
24284 | am__EXEEXT_FALSE= | |
24285 | fi | |
24286 | ||
24287 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
24288 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
24289 | Usually this means the macro was only invoked conditionally." >&5 | |
24290 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
24291 | Usually this means the macro was only invoked conditionally." >&2;} | |
24292 | { (exit 1); exit 1; }; } | |
24293 | fi | |
24294 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
24295 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
24296 | Usually this means the macro was only invoked conditionally." >&5 | |
24297 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
24298 | Usually this means the macro was only invoked conditionally." >&2;} | |
24299 | { (exit 1); exit 1; }; } | |
24300 | fi | |
24301 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then | |
24302 | { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined. | |
24303 | Usually this means the macro was only invoked conditionally." >&5 | |
24304 | $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined. | |
24305 | Usually this means the macro was only invoked conditionally." >&2;} | |
24306 | { (exit 1); exit 1; }; } | |
24307 | fi | |
24308 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
24309 | { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined. | |
24310 | Usually this means the macro was only invoked conditionally." >&5 | |
24311 | $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined. | |
24312 | Usually this means the macro was only invoked conditionally." >&2;} | |
24313 | { (exit 1); exit 1; }; } | |
24314 | fi | |
24315 | ||
24316 | : ${CONFIG_STATUS=./config.status} | |
24317 | ac_write_fail=0 | |
24318 | ac_clean_files_save=$ac_clean_files | |
24319 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
24320 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
24321 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
24322 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24323 | #! $SHELL | |
24324 | # Generated by $as_me. | |
24325 | # Run this file to recreate the current configuration. | |
24326 | # Compiler output produced by configure, useful for debugging | |
24327 | # configure, is in config.log if it exists. | |
24328 | ||
24329 | debug=false | |
24330 | ac_cs_recheck=false | |
24331 | ac_cs_silent=false | |
24332 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6ae7fef5 BB |
24333 | _ACEOF |
24334 | ||
8934764e BB |
24335 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
24336 | ## --------------------- ## | |
24337 | ## M4sh Initialization. ## | |
24338 | ## --------------------- ## | |
24339 | ||
24340 | # Be more Bourne compatible | |
24341 | DUALCASE=1; export DUALCASE # for MKS sh | |
24342 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
24343 | emulate sh | |
24344 | NULLCMD=: | |
24345 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
24346 | # is contrary to our usage. Disable this feature. | |
24347 | alias -g '${1+"$@"}'='"$@"' | |
24348 | setopt NO_GLOB_SUBST | |
24349 | else | |
24350 | case `(set -o) 2>/dev/null` in | |
24351 | *posix*) set -o posix ;; | |
24352 | esac | |
24353 | ||
24354 | fi | |
24355 | ||
6ae7fef5 BB |
24356 | |
24357 | ||
e11d6c5f | 24358 | |
8934764e BB |
24359 | # PATH needs CR |
24360 | # Avoid depending upon Character Ranges. | |
24361 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
24362 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
24363 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
24364 | as_cr_digits='0123456789' | |
24365 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
e11d6c5f | 24366 | |
8934764e BB |
24367 | as_nl=' |
24368 | ' | |
24369 | export as_nl | |
24370 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
24371 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
24372 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
24373 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
24374 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
24375 | as_echo='printf %s\n' | |
24376 | as_echo_n='printf %s' | |
24377 | else | |
24378 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
24379 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
24380 | as_echo_n='/usr/ucb/echo -n' | |
24381 | else | |
24382 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
24383 | as_echo_n_body='eval | |
24384 | arg=$1; | |
24385 | case $arg in | |
24386 | *"$as_nl"*) | |
24387 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
24388 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
24389 | esac; | |
24390 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
24391 | ' | |
24392 | export as_echo_n_body | |
24393 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
24394 | fi | |
24395 | export as_echo_body | |
24396 | as_echo='sh -c $as_echo_body as_echo' | |
51a727e9 BB |
24397 | fi |
24398 | ||
8934764e BB |
24399 | # The user is always right. |
24400 | if test "${PATH_SEPARATOR+set}" != set; then | |
24401 | PATH_SEPARATOR=: | |
24402 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
24403 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
24404 | PATH_SEPARATOR=';' | |
24405 | } | |
24406 | fi | |
51a727e9 | 24407 | |
8934764e BB |
24408 | # Support unset when possible. |
24409 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
24410 | as_unset=unset | |
24411 | else | |
24412 | as_unset=false | |
24413 | fi | |
51a727e9 BB |
24414 | |
24415 | ||
8934764e BB |
24416 | # IFS |
24417 | # We need space, tab and new line, in precisely that order. Quoting is | |
24418 | # there to prevent editors from complaining about space-tab. | |
24419 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
24420 | # splitting by setting IFS to empty value.) | |
24421 | IFS=" "" $as_nl" | |
24422 | ||
24423 | # Find who we are. Look in the path if we contain no directory separator. | |
24424 | case $0 in | |
24425 | *[\\/]* ) as_myself=$0 ;; | |
24426 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24427 | for as_dir in $PATH | |
24428 | do | |
24429 | IFS=$as_save_IFS | |
24430 | test -z "$as_dir" && as_dir=. | |
24431 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
24432 | done | |
24433 | IFS=$as_save_IFS | |
51a727e9 | 24434 | |
8934764e BB |
24435 | ;; |
24436 | esac | |
24437 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
24438 | # in which case we are not to be found in the path. | |
24439 | if test "x$as_myself" = x; then | |
24440 | as_myself=$0 | |
24441 | fi | |
24442 | if test ! -f "$as_myself"; then | |
24443 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
24444 | { (exit 1); exit 1; } | |
24445 | fi | |
51a727e9 | 24446 | |
8934764e BB |
24447 | # Work around bugs in pre-3.0 UWIN ksh. |
24448 | for as_var in ENV MAIL MAILPATH | |
24449 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
24450 | done | |
24451 | PS1='$ ' | |
24452 | PS2='> ' | |
24453 | PS4='+ ' | |
51a727e9 | 24454 | |
8934764e BB |
24455 | # NLS nuisances. |
24456 | LC_ALL=C | |
24457 | export LC_ALL | |
24458 | LANGUAGE=C | |
24459 | export LANGUAGE | |
51a727e9 | 24460 | |
8934764e BB |
24461 | # Required to use basename. |
24462 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
24463 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
24464 | as_expr=expr | |
24465 | else | |
24466 | as_expr=false | |
24467 | fi | |
51a727e9 | 24468 | |
8934764e BB |
24469 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
24470 | as_basename=basename | |
24471 | else | |
24472 | as_basename=false | |
24473 | fi | |
51a727e9 | 24474 | |
51a727e9 | 24475 | |
8934764e BB |
24476 | # Name of the executable. |
24477 | as_me=`$as_basename -- "$0" || | |
24478 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
24479 | X"$0" : 'X\(//\)$' \| \ | |
24480 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
24481 | $as_echo X/"$0" | | |
24482 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
24483 | s//\1/ | |
24484 | q | |
24485 | } | |
24486 | /^X\/\(\/\/\)$/{ | |
24487 | s//\1/ | |
24488 | q | |
24489 | } | |
24490 | /^X\/\(\/\).*/{ | |
24491 | s//\1/ | |
24492 | q | |
24493 | } | |
24494 | s/.*/./; q'` | |
51a727e9 | 24495 | |
8934764e BB |
24496 | # CDPATH. |
24497 | $as_unset CDPATH | |
51a727e9 BB |
24498 | |
24499 | ||
51a727e9 | 24500 | |
8934764e BB |
24501 | as_lineno_1=$LINENO |
24502 | as_lineno_2=$LINENO | |
24503 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
24504 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
51a727e9 | 24505 | |
8934764e BB |
24506 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
24507 | # uniformly replaced by the line number. The first 'sed' inserts a | |
24508 | # line-number line after each line using $LINENO; the second 'sed' | |
24509 | # does the real work. The second script uses 'N' to pair each | |
24510 | # line-number line with the line containing $LINENO, and appends | |
24511 | # trailing '-' during substitution so that $LINENO is not a special | |
24512 | # case at line end. | |
24513 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
24514 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
24515 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
24516 | sed -n ' | |
24517 | p | |
24518 | /[$]LINENO/= | |
24519 | ' <$as_myself | | |
24520 | sed ' | |
24521 | s/[$]LINENO.*/&-/ | |
24522 | t lineno | |
24523 | b | |
24524 | :lineno | |
24525 | N | |
24526 | :loop | |
24527 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
24528 | t loop | |
24529 | s/-\n.*// | |
24530 | ' >$as_me.lineno && | |
24531 | chmod +x "$as_me.lineno" || | |
24532 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
24533 | { (exit 1); exit 1; }; } | |
51a727e9 | 24534 | |
8934764e BB |
24535 | # Don't try to exec as it changes $[0], causing all sort of problems |
24536 | # (the dirname of $[0] is not the place where we might find the | |
24537 | # original and so on. Autoconf is especially sensitive to this). | |
24538 | . "./$as_me.lineno" | |
24539 | # Exit status is that of the last command. | |
24540 | exit | |
24541 | } | |
51a727e9 | 24542 | |
51a727e9 | 24543 | |
8934764e BB |
24544 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
24545 | as_dirname=dirname | |
24546 | else | |
24547 | as_dirname=false | |
24548 | fi | |
51a727e9 | 24549 | |
8934764e BB |
24550 | ECHO_C= ECHO_N= ECHO_T= |
24551 | case `echo -n x` in | |
24552 | -n*) | |
24553 | case `echo 'x\c'` in | |
24554 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
24555 | *) ECHO_C='\c';; | |
24556 | esac;; | |
24557 | *) | |
24558 | ECHO_N='-n';; | |
24559 | esac | |
24560 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
24561 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
24562 | as_expr=expr | |
24563 | else | |
24564 | as_expr=false | |
24565 | fi | |
51a727e9 | 24566 | |
8934764e BB |
24567 | rm -f conf$$ conf$$.exe conf$$.file |
24568 | if test -d conf$$.dir; then | |
24569 | rm -f conf$$.dir/conf$$.file | |
24570 | else | |
24571 | rm -f conf$$.dir | |
24572 | mkdir conf$$.dir 2>/dev/null | |
24573 | fi | |
24574 | if (echo >conf$$.file) 2>/dev/null; then | |
24575 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
24576 | as_ln_s='ln -s' | |
24577 | # ... but there are two gotchas: | |
24578 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
24579 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
24580 | # In both cases, we have to default to `cp -p'. | |
24581 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
24582 | as_ln_s='cp -p' | |
24583 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
24584 | as_ln_s=ln | |
24585 | else | |
24586 | as_ln_s='cp -p' | |
24587 | fi | |
24588 | else | |
24589 | as_ln_s='cp -p' | |
24590 | fi | |
24591 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
24592 | rmdir conf$$.dir 2>/dev/null | |
51a727e9 | 24593 | |
8934764e BB |
24594 | if mkdir -p . 2>/dev/null; then |
24595 | as_mkdir_p=: | |
24596 | else | |
24597 | test -d ./-p && rmdir ./-p | |
24598 | as_mkdir_p=false | |
24599 | fi | |
51a727e9 | 24600 | |
8934764e BB |
24601 | if test -x / >/dev/null 2>&1; then |
24602 | as_test_x='test -x' | |
24603 | else | |
24604 | if ls -dL / >/dev/null 2>&1; then | |
24605 | as_ls_L_option=L | |
24606 | else | |
24607 | as_ls_L_option= | |
24608 | fi | |
24609 | as_test_x=' | |
24610 | eval sh -c '\'' | |
24611 | if test -d "$1"; then | |
24612 | test -d "$1/."; | |
24613 | else | |
24614 | case $1 in | |
24615 | -*)set "./$1";; | |
24616 | esac; | |
24617 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
24618 | ???[sx]*):;;*)false;;esac;fi | |
24619 | '\'' sh | |
24620 | ' | |
24621 | fi | |
24622 | as_executable_p=$as_test_x | |
51a727e9 | 24623 | |
8934764e BB |
24624 | # Sed expression to map a string onto a valid CPP name. |
24625 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
51a727e9 | 24626 | |
8934764e BB |
24627 | # Sed expression to map a string onto a valid variable name. |
24628 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
51a727e9 | 24629 | |
51a727e9 | 24630 | |
8934764e | 24631 | exec 6>&1 |
51a727e9 | 24632 | |
8934764e BB |
24633 | # Save the log message, to keep $[0] and so on meaningful, and to |
24634 | # report actual input values of CONFIG_FILES etc. instead of their | |
24635 | # values after options handling. | |
24636 | ac_log=" | |
24637 | This file was extended by $as_me, which was | |
24638 | generated by GNU Autoconf 2.63. Invocation command line was | |
51a727e9 | 24639 | |
8934764e BB |
24640 | CONFIG_FILES = $CONFIG_FILES |
24641 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24642 | CONFIG_LINKS = $CONFIG_LINKS | |
24643 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24644 | $ $0 $@ | |
51a727e9 | 24645 | |
8934764e BB |
24646 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
24647 | " | |
a093c6a4 | 24648 | |
8934764e | 24649 | _ACEOF |
a093c6a4 | 24650 | |
8934764e BB |
24651 | case $ac_config_files in *" |
24652 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
24653 | esac | |
a093c6a4 | 24654 | |
8934764e BB |
24655 | case $ac_config_headers in *" |
24656 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
24657 | esac | |
a093c6a4 | 24658 | |
a093c6a4 | 24659 | |
8934764e BB |
24660 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
24661 | # Files that config.status was made for. | |
24662 | config_files="$ac_config_files" | |
24663 | config_headers="$ac_config_headers" | |
24664 | config_commands="$ac_config_commands" | |
a093c6a4 | 24665 | |
a093c6a4 | 24666 | _ACEOF |
a093c6a4 | 24667 | |
8934764e BB |
24668 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
24669 | ac_cs_usage="\ | |
24670 | \`$as_me' instantiates files from templates according to the | |
24671 | current configuration. | |
a093c6a4 | 24672 | |
8934764e | 24673 | Usage: $0 [OPTION]... [FILE]... |
a093c6a4 | 24674 | |
8934764e BB |
24675 | -h, --help print this help, then exit |
24676 | -V, --version print version number and configuration settings, then exit | |
24677 | -q, --quiet, --silent | |
24678 | do not print progress messages | |
24679 | -d, --debug don't remove temporary files | |
24680 | --recheck update $as_me by reconfiguring in the same conditions | |
24681 | --file=FILE[:TEMPLATE] | |
24682 | instantiate the configuration file FILE | |
24683 | --header=FILE[:TEMPLATE] | |
24684 | instantiate the configuration header FILE | |
a093c6a4 | 24685 | |
8934764e BB |
24686 | Configuration files: |
24687 | $config_files | |
a093c6a4 | 24688 | |
8934764e BB |
24689 | Configuration headers: |
24690 | $config_headers | |
a093c6a4 | 24691 | |
8934764e BB |
24692 | Configuration commands: |
24693 | $config_commands | |
a093c6a4 | 24694 | |
8934764e | 24695 | Report bugs to <bug-autoconf@gnu.org>." |
a093c6a4 | 24696 | |
8934764e BB |
24697 | _ACEOF |
24698 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24699 | ac_cs_version="\\ | |
24700 | config.status | |
24701 | configured by $0, generated by GNU Autoconf 2.63, | |
24702 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
a093c6a4 | 24703 | |
8934764e BB |
24704 | Copyright (C) 2008 Free Software Foundation, Inc. |
24705 | This config.status script is free software; the Free Software Foundation | |
24706 | gives unlimited permission to copy, distribute and modify it." | |
a093c6a4 | 24707 | |
8934764e BB |
24708 | ac_pwd='$ac_pwd' |
24709 | srcdir='$srcdir' | |
24710 | INSTALL='$INSTALL' | |
24711 | MKDIR_P='$MKDIR_P' | |
24712 | AWK='$AWK' | |
24713 | test -n "\$AWK" || AWK=awk | |
a093c6a4 BB |
24714 | _ACEOF |
24715 | ||
8934764e BB |
24716 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
24717 | # The default lists apply if the user does not specify any file. | |
24718 | ac_need_defaults=: | |
24719 | while test $# != 0 | |
24720 | do | |
24721 | case $1 in | |
24722 | --*=*) | |
24723 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
24724 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
24725 | ac_shift=: | |
24726 | ;; | |
24727 | *) | |
24728 | ac_option=$1 | |
24729 | ac_optarg=$2 | |
24730 | ac_shift=shift | |
24731 | ;; | |
24732 | esac | |
a093c6a4 | 24733 | |
8934764e BB |
24734 | case $ac_option in |
24735 | # Handling of the options. | |
24736 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
24737 | ac_cs_recheck=: ;; | |
24738 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
24739 | $as_echo "$ac_cs_version"; exit ;; | |
24740 | --debug | --debu | --deb | --de | --d | -d ) | |
24741 | debug=: ;; | |
24742 | --file | --fil | --fi | --f ) | |
24743 | $ac_shift | |
24744 | case $ac_optarg in | |
24745 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
24746 | esac | |
24747 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
24748 | ac_need_defaults=false;; | |
24749 | --header | --heade | --head | --hea ) | |
24750 | $ac_shift | |
24751 | case $ac_optarg in | |
24752 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
24753 | esac | |
24754 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
24755 | ac_need_defaults=false;; | |
24756 | --he | --h) | |
24757 | # Conflict between --help and --header | |
24758 | { $as_echo "$as_me: error: ambiguous option: $1 | |
24759 | Try \`$0 --help' for more information." >&2 | |
24760 | { (exit 1); exit 1; }; };; | |
24761 | --help | --hel | -h ) | |
24762 | $as_echo "$ac_cs_usage"; exit ;; | |
24763 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
24764 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24765 | ac_cs_silent=: ;; | |
24766 | ||
24767 | # This is an error. | |
24768 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
24769 | Try \`$0 --help' for more information." >&2 | |
24770 | { (exit 1); exit 1; }; } ;; | |
a093c6a4 | 24771 | |
8934764e BB |
24772 | *) ac_config_targets="$ac_config_targets $1" |
24773 | ac_need_defaults=false ;; | |
a093c6a4 | 24774 | |
8934764e BB |
24775 | esac |
24776 | shift | |
24777 | done | |
a093c6a4 | 24778 | |
8934764e | 24779 | ac_configure_extra_args= |
a093c6a4 | 24780 | |
8934764e BB |
24781 | if $ac_cs_silent; then |
24782 | exec 6>/dev/null | |
24783 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
a093c6a4 BB |
24784 | fi |
24785 | ||
8934764e BB |
24786 | _ACEOF |
24787 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24788 | if \$ac_cs_recheck; then | |
24789 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
24790 | shift | |
24791 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
24792 | CONFIG_SHELL='$SHELL' | |
24793 | export CONFIG_SHELL | |
24794 | exec "\$@" | |
24795 | fi | |
a093c6a4 | 24796 | |
8934764e BB |
24797 | _ACEOF |
24798 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
24799 | exec 5>>config.log | |
24800 | { | |
24801 | echo | |
24802 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24803 | ## Running $as_me. ## | |
24804 | _ASBOX | |
24805 | $as_echo "$ac_log" | |
24806 | } >&5 | |
a093c6a4 | 24807 | |
8934764e BB |
24808 | _ACEOF |
24809 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
24810 | # | |
24811 | # INIT-COMMANDS | |
24812 | # | |
24813 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
a093c6a4 | 24814 | |
a093c6a4 | 24815 | |
8934764e BB |
24816 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
24817 | # if CDPATH is set. | |
24818 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
a093c6a4 | 24819 | |
8934764e BB |
24820 | sed_quote_subst='$sed_quote_subst' |
24821 | double_quote_subst='$double_quote_subst' | |
24822 | delay_variable_subst='$delay_variable_subst' | |
24823 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
24824 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
24825 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
24826 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
24827 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
24828 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
24829 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
24830 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
24831 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
24832 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
24833 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
24834 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
24835 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
24836 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
24837 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
24838 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
24839 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
24840 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
24841 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
24842 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
24843 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
24844 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
24845 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
24846 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
24847 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
24848 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
24849 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
24850 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24851 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
24852 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
24853 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
24854 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
24855 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
24856 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
24857 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
24858 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24859 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24860 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24861 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
24862 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
24863 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
24864 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
24865 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
24866 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
24867 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
24868 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
24869 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
24870 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
24871 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
24872 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
24873 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
24874 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
24875 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
24876 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
24877 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
24878 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
24879 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
24880 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
24881 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
24882 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
24883 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
24884 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
24885 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24886 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24887 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
24888 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
24889 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
24890 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
24891 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
24892 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24893 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24894 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24895 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24896 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24897 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24898 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
24899 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
24900 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
24901 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
24902 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
24903 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
24904 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
24905 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
24906 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
24907 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
24908 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
24909 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
24910 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
24911 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
24912 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
24913 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24914 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
24915 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
24916 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24917 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
24918 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
24919 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
24920 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
24921 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
24922 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
24923 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
24924 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
24925 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
24926 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
24927 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
24928 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24929 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24930 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
24931 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
24932 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
24933 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
24934 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
24935 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
24936 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
24937 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
24938 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
24939 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
24940 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
24941 | ||
24942 | LTCC='$LTCC' | |
24943 | LTCFLAGS='$LTCFLAGS' | |
24944 | compiler='$compiler_DEFAULT' | |
24945 | ||
24946 | # Quote evaled strings. | |
24947 | for var in SED \ | |
24948 | GREP \ | |
24949 | EGREP \ | |
24950 | FGREP \ | |
24951 | LD \ | |
24952 | NM \ | |
24953 | LN_S \ | |
24954 | lt_SP2NL \ | |
24955 | lt_NL2SP \ | |
24956 | reload_flag \ | |
24957 | OBJDUMP \ | |
24958 | deplibs_check_method \ | |
24959 | file_magic_cmd \ | |
24960 | AR \ | |
24961 | AR_FLAGS \ | |
24962 | STRIP \ | |
24963 | RANLIB \ | |
24964 | CC \ | |
24965 | CFLAGS \ | |
24966 | compiler \ | |
24967 | lt_cv_sys_global_symbol_pipe \ | |
24968 | lt_cv_sys_global_symbol_to_cdecl \ | |
24969 | lt_cv_sys_global_symbol_to_c_name_address \ | |
24970 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
24971 | SHELL \ | |
24972 | ECHO \ | |
24973 | lt_prog_compiler_no_builtin_flag \ | |
24974 | lt_prog_compiler_wl \ | |
24975 | lt_prog_compiler_pic \ | |
24976 | lt_prog_compiler_static \ | |
24977 | lt_cv_prog_compiler_c_o \ | |
24978 | need_locks \ | |
24979 | DSYMUTIL \ | |
24980 | NMEDIT \ | |
24981 | LIPO \ | |
24982 | OTOOL \ | |
24983 | OTOOL64 \ | |
24984 | shrext_cmds \ | |
24985 | export_dynamic_flag_spec \ | |
24986 | whole_archive_flag_spec \ | |
24987 | compiler_needs_object \ | |
24988 | with_gnu_ld \ | |
24989 | allow_undefined_flag \ | |
24990 | no_undefined_flag \ | |
24991 | hardcode_libdir_flag_spec \ | |
24992 | hardcode_libdir_flag_spec_ld \ | |
24993 | hardcode_libdir_separator \ | |
24994 | fix_srcfile_path \ | |
24995 | exclude_expsyms \ | |
24996 | include_expsyms \ | |
24997 | file_list_spec \ | |
24998 | variables_saved_for_relink \ | |
24999 | libname_spec \ | |
25000 | library_names_spec \ | |
25001 | soname_spec \ | |
25002 | finish_eval \ | |
25003 | old_striplib \ | |
25004 | striplib; do | |
25005 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
25006 | *[\\\\\\\`\\"\\\$]*) | |
25007 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
25008 | ;; | |
25009 | *) | |
25010 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
25011 | ;; | |
25012 | esac | |
25013 | done | |
a093c6a4 | 25014 | |
8934764e BB |
25015 | # Double-quote double-evaled strings. |
25016 | for var in reload_cmds \ | |
25017 | old_postinstall_cmds \ | |
25018 | old_postuninstall_cmds \ | |
25019 | old_archive_cmds \ | |
25020 | extract_expsyms_cmds \ | |
25021 | old_archive_from_new_cmds \ | |
25022 | old_archive_from_expsyms_cmds \ | |
25023 | archive_cmds \ | |
25024 | archive_expsym_cmds \ | |
25025 | module_cmds \ | |
25026 | module_expsym_cmds \ | |
25027 | export_symbols_cmds \ | |
25028 | prelink_cmds \ | |
25029 | postinstall_cmds \ | |
25030 | postuninstall_cmds \ | |
25031 | finish_cmds \ | |
25032 | sys_lib_search_path_spec \ | |
25033 | sys_lib_dlsearch_path_spec; do | |
25034 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
25035 | *[\\\\\\\`\\"\\\$]*) | |
25036 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
25037 | ;; | |
25038 | *) | |
25039 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
25040 | ;; | |
25041 | esac | |
25042 | done | |
a093c6a4 | 25043 | |
8934764e BB |
25044 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
25045 | case \$lt_ECHO in | |
25046 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
25047 | ;; | |
25048 | esac | |
a093c6a4 | 25049 | |
8934764e BB |
25050 | ac_aux_dir='$ac_aux_dir' |
25051 | xsi_shell='$xsi_shell' | |
25052 | lt_shell_append='$lt_shell_append' | |
a093c6a4 | 25053 | |
8934764e BB |
25054 | # See if we are running on zsh, and set the options which allow our |
25055 | # commands through without removal of \ escapes INIT. | |
25056 | if test -n "\${ZSH_VERSION+set}" ; then | |
25057 | setopt NO_GLOB_SUBST | |
25058 | fi | |
a093c6a4 | 25059 | |
a093c6a4 | 25060 | |
8934764e BB |
25061 | PACKAGE='$PACKAGE' |
25062 | VERSION='$VERSION' | |
25063 | TIMESTAMP='$TIMESTAMP' | |
25064 | RM='$RM' | |
25065 | ofile='$ofile' | |
a093c6a4 BB |
25066 | |
25067 | ||
a093c6a4 | 25068 | |
a093c6a4 | 25069 | |
a093c6a4 BB |
25070 | _ACEOF |
25071 | ||
8934764e | 25072 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a093c6a4 | 25073 | |
8934764e BB |
25074 | # Handling of arguments. |
25075 | for ac_config_target in $ac_config_targets | |
25076 | do | |
25077 | case $ac_config_target in | |
25078 | "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;; | |
25079 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
25080 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
25081 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
25082 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
25083 | "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;; | |
25084 | "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; | |
25085 | "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;; | |
25086 | "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;; | |
25087 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
25088 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; | |
25089 | "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;; | |
25090 | "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;; | |
c2dceb5c PS |
25091 | "PKGBUILD-spl") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl" ;; |
25092 | "PKGBUILD-spl-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl-modules" ;; | |
d801db14 | 25093 | "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;; |
d83d25c2 | 25094 | "dkms.conf") CONFIG_FILES="$CONFIG_FILES dkms.conf" ;; |
8934764e BB |
25095 | |
25096 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
25097 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
25098 | { (exit 1); exit 1; }; };; | |
25099 | esac | |
25100 | done | |
a093c6a4 BB |
25101 | |
25102 | ||
8934764e BB |
25103 | # If the user did not use the arguments to specify the items to instantiate, |
25104 | # then the envvar interface is used. Set only those that are not. | |
25105 | # We use the long form for the default assignment because of an extremely | |
25106 | # bizarre bug on SunOS 4.1.3. | |
25107 | if $ac_need_defaults; then | |
25108 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
25109 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
25110 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
e11d6c5f BB |
25111 | fi |
25112 | ||
8934764e BB |
25113 | # Have a temporary directory for convenience. Make it in the build tree |
25114 | # simply because there is no reason against having it here, and in addition, | |
25115 | # creating and moving files from /tmp can sometimes cause problems. | |
25116 | # Hook for its removal unless debugging. | |
25117 | # Note that there is a small window in which the directory will not be cleaned: | |
25118 | # after its creation but before its name has been assigned to `$tmp'. | |
25119 | $debug || | |
25120 | { | |
25121 | tmp= | |
25122 | trap 'exit_status=$? | |
25123 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
25124 | ' 0 | |
25125 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
25126 | } | |
25127 | # Create a (secure) tmp directory for tmp files. | |
e11d6c5f | 25128 | |
8934764e BB |
25129 | { |
25130 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
25131 | test -n "$tmp" && test -d "$tmp" | |
25132 | } || | |
25133 | { | |
25134 | tmp=./conf$$-$RANDOM | |
25135 | (umask 077 && mkdir "$tmp") | |
25136 | } || | |
25137 | { | |
25138 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
25139 | { (exit 1); exit 1; } | |
25140 | } | |
e11d6c5f | 25141 | |
8934764e BB |
25142 | # Set up the scripts for CONFIG_FILES section. |
25143 | # No need to generate them if there are no CONFIG_FILES. | |
25144 | # This happens for instance with `./config.status config.h'. | |
25145 | if test -n "$CONFIG_FILES"; then | |
e11d6c5f | 25146 | |
ec7d53e9 | 25147 | |
8934764e BB |
25148 | ac_cr='\r' |
25149 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
25150 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
25151 | ac_cs_awk_cr='\\r' | |
25152 | else | |
25153 | ac_cs_awk_cr=$ac_cr | |
25154 | fi | |
ec7d53e9 | 25155 | |
8934764e | 25156 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
ec7d53e9 | 25157 | _ACEOF |
ec7d53e9 | 25158 | |
ec7d53e9 | 25159 | |
ec7d53e9 | 25160 | { |
8934764e BB |
25161 | echo "cat >conf$$subs.awk <<_ACEOF" && |
25162 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
25163 | echo "_ACEOF" | |
25164 | } >conf$$subs.sh || | |
25165 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
25166 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
25167 | { (exit 1); exit 1; }; } | |
25168 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
25169 | ac_delim='%!_!# ' | |
25170 | for ac_last_try in false false false false false :; do | |
25171 | . ./conf$$subs.sh || | |
25172 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
25173 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
25174 | { (exit 1); exit 1; }; } | |
ec7d53e9 | 25175 | |
8934764e BB |
25176 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
25177 | if test $ac_delim_n = $ac_delim_num; then | |
25178 | break | |
25179 | elif $ac_last_try; then | |
25180 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
25181 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
25182 | { (exit 1); exit 1; }; } | |
25183 | else | |
25184 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
25185 | fi | |
25186 | done | |
25187 | rm -f conf$$subs.sh | |
25188 | ||
25189 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25190 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
25191 | _ACEOF | |
25192 | sed -n ' | |
25193 | h | |
25194 | s/^/S["/; s/!.*/"]=/ | |
25195 | p | |
25196 | g | |
25197 | s/^[^!]*!// | |
25198 | :repl | |
25199 | t repl | |
25200 | s/'"$ac_delim"'$// | |
25201 | t delim | |
25202 | :nl | |
25203 | h | |
25204 | s/\(.\{148\}\).*/\1/ | |
25205 | t more1 | |
25206 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
25207 | p | |
25208 | n | |
25209 | b repl | |
25210 | :more1 | |
25211 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
25212 | p | |
25213 | g | |
25214 | s/.\{148\}// | |
25215 | t nl | |
25216 | :delim | |
25217 | h | |
25218 | s/\(.\{148\}\).*/\1/ | |
25219 | t more2 | |
25220 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
25221 | p | |
25222 | b | |
25223 | :more2 | |
25224 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
25225 | p | |
25226 | g | |
25227 | s/.\{148\}// | |
25228 | t delim | |
25229 | ' <conf$$subs.awk | sed ' | |
25230 | /^[^""]/{ | |
25231 | N | |
25232 | s/\n// | |
25233 | } | |
25234 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
25235 | rm -f conf$$subs.awk | |
25236 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25237 | _ACAWK | |
25238 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
25239 | for (key in S) S_is_set[key] = 1 | |
25240 | FS = "\a" | |
ec7d53e9 | 25241 | |
8934764e BB |
25242 | } |
25243 | { | |
25244 | line = $ 0 | |
25245 | nfields = split(line, field, "@") | |
25246 | substed = 0 | |
25247 | len = length(field[1]) | |
25248 | for (i = 2; i < nfields; i++) { | |
25249 | key = field[i] | |
25250 | keylen = length(key) | |
25251 | if (S_is_set[key]) { | |
25252 | value = S[key] | |
25253 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
25254 | len += length(value) + length(field[++i]) | |
25255 | substed = 1 | |
25256 | } else | |
25257 | len += 1 + keylen | |
25258 | } | |
25259 | ||
25260 | print line | |
ec7d53e9 BB |
25261 | } |
25262 | ||
8934764e BB |
25263 | _ACAWK |
25264 | _ACEOF | |
25265 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25266 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
25267 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
25268 | else | |
25269 | cat | |
25270 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
25271 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
25272 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
25273 | { (exit 1); exit 1; }; } | |
ec7d53e9 BB |
25274 | _ACEOF |
25275 | ||
8934764e BB |
25276 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
25277 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
25278 | # trailing colons and then remove the whole line if VPATH becomes empty | |
25279 | # (actually we leave an empty line to preserve line numbers). | |
25280 | if test "x$srcdir" = x.; then | |
25281 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
25282 | s/:*\$(srcdir):*/:/ | |
25283 | s/:*\${srcdir}:*/:/ | |
25284 | s/:*@srcdir@:*/:/ | |
25285 | s/^\([^=]*=[ ]*\):*/\1/ | |
25286 | s/:*$// | |
25287 | s/^[^=]*=[ ]*$// | |
25288 | }' | |
25289 | fi | |
ec7d53e9 | 25290 | |
8934764e BB |
25291 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25292 | fi # test -n "$CONFIG_FILES" | |
ec7d53e9 | 25293 | |
8934764e BB |
25294 | # Set up the scripts for CONFIG_HEADERS section. |
25295 | # No need to generate them if there are no CONFIG_HEADERS. | |
25296 | # This happens for instance with `./config.status Makefile'. | |
25297 | if test -n "$CONFIG_HEADERS"; then | |
25298 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
25299 | BEGIN { | |
ec7d53e9 BB |
25300 | _ACEOF |
25301 | ||
8934764e BB |
25302 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
25303 | # here-document in config.status, that substitutes the proper values into | |
25304 | # config.h.in to produce config.h. | |
ec7d53e9 | 25305 | |
8934764e BB |
25306 | # Create a delimiter string that does not exist in confdefs.h, to ease |
25307 | # handling of long lines. | |
25308 | ac_delim='%!_!# ' | |
25309 | for ac_last_try in false false :; do | |
25310 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
25311 | if test -z "$ac_t"; then | |
25312 | break | |
25313 | elif $ac_last_try; then | |
25314 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
25315 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
25316 | { (exit 1); exit 1; }; } | |
25317 | else | |
25318 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
25319 | fi | |
25320 | done | |
ec7d53e9 | 25321 | |
8934764e BB |
25322 | # For the awk script, D is an array of macro values keyed by name, |
25323 | # likewise P contains macro parameters if any. Preserve backslash | |
25324 | # newline sequences. | |
25325 | ||
25326 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
25327 | sed -n ' | |
25328 | s/.\{148\}/&'"$ac_delim"'/g | |
25329 | t rset | |
25330 | :rset | |
25331 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
25332 | t def | |
25333 | d | |
25334 | :def | |
25335 | s/\\$// | |
25336 | t bsnl | |
25337 | s/["\\]/\\&/g | |
25338 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
25339 | D["\1"]=" \3"/p | |
25340 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
25341 | d | |
25342 | :bsnl | |
25343 | s/["\\]/\\&/g | |
25344 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
25345 | D["\1"]=" \3\\\\\\n"\\/p | |
25346 | t cont | |
25347 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
25348 | t cont | |
25349 | d | |
25350 | :cont | |
25351 | n | |
25352 | s/.\{148\}/&'"$ac_delim"'/g | |
25353 | t clear | |
25354 | :clear | |
25355 | s/\\$// | |
25356 | t bsnlc | |
25357 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
25358 | d | |
25359 | :bsnlc | |
25360 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
25361 | b cont | |
25362 | ' <confdefs.h | sed ' | |
25363 | s/'"$ac_delim"'/"\\\ | |
25364 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
25365 | ||
25366 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25367 | for (key in D) D_is_set[key] = 1 | |
25368 | FS = "\a" | |
25369 | } | |
25370 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
25371 | line = \$ 0 | |
25372 | split(line, arg, " ") | |
25373 | if (arg[1] == "#") { | |
25374 | defundef = arg[2] | |
25375 | mac1 = arg[3] | |
25376 | } else { | |
25377 | defundef = substr(arg[1], 2) | |
25378 | mac1 = arg[2] | |
25379 | } | |
25380 | split(mac1, mac2, "(") #) | |
25381 | macro = mac2[1] | |
25382 | prefix = substr(line, 1, index(line, defundef) - 1) | |
25383 | if (D_is_set[macro]) { | |
25384 | # Preserve the white space surrounding the "#". | |
25385 | print prefix "define", macro P[macro] D[macro] | |
25386 | next | |
25387 | } else { | |
25388 | # Replace #undef with comments. This is necessary, for example, | |
25389 | # in the case of _POSIX_SOURCE, which is predefined and required | |
25390 | # on some systems where configure will not decide to define it. | |
25391 | if (defundef == "undef") { | |
25392 | print "/*", prefix defundef, macro, "*/" | |
25393 | next | |
25394 | } | |
25395 | } | |
25396 | } | |
25397 | { print } | |
25398 | _ACAWK | |
25399 | _ACEOF | |
25400 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25401 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
25402 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
25403 | { (exit 1); exit 1; }; } | |
25404 | fi # test -n "$CONFIG_HEADERS" | |
ec7d53e9 BB |
25405 | |
25406 | ||
8934764e BB |
25407 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
25408 | shift | |
25409 | for ac_tag | |
25410 | do | |
25411 | case $ac_tag in | |
25412 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
25413 | esac | |
25414 | case $ac_mode$ac_tag in | |
25415 | :[FHL]*:*);; | |
25416 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
25417 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
25418 | { (exit 1); exit 1; }; };; | |
25419 | :[FH]-) ac_tag=-:-;; | |
25420 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
25421 | esac | |
25422 | ac_save_IFS=$IFS | |
25423 | IFS=: | |
25424 | set x $ac_tag | |
25425 | IFS=$ac_save_IFS | |
25426 | shift | |
25427 | ac_file=$1 | |
25428 | shift | |
ec7d53e9 | 25429 | |
8934764e BB |
25430 | case $ac_mode in |
25431 | :L) ac_source=$1;; | |
25432 | :[FH]) | |
25433 | ac_file_inputs= | |
25434 | for ac_f | |
25435 | do | |
25436 | case $ac_f in | |
25437 | -) ac_f="$tmp/stdin";; | |
25438 | *) # Look for the file first in the build tree, then in the source tree | |
25439 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
25440 | # because $ac_f cannot contain `:'. | |
25441 | test -f "$ac_f" || | |
25442 | case $ac_f in | |
25443 | [\\/$]*) false;; | |
25444 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
25445 | esac || | |
25446 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
25447 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
25448 | { (exit 1); exit 1; }; };; | |
25449 | esac | |
25450 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
25451 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
25452 | done | |
ec7d53e9 | 25453 | |
8934764e BB |
25454 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
25455 | # use $as_me), people would be surprised to read: | |
25456 | # /* config.h. Generated by config.status. */ | |
25457 | configure_input='Generated from '` | |
25458 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
25459 | `' by configure.' | |
25460 | if test x"$ac_file" != x-; then | |
25461 | configure_input="$ac_file. $configure_input" | |
25462 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25463 | $as_echo "$as_me: creating $ac_file" >&6;} | |
25464 | fi | |
25465 | # Neutralize special characters interpreted by sed in replacement strings. | |
25466 | case $configure_input in #( | |
25467 | *\&* | *\|* | *\\* ) | |
25468 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
25469 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
25470 | *) ac_sed_conf_input=$configure_input;; | |
25471 | esac | |
ec7d53e9 | 25472 | |
8934764e BB |
25473 | case $ac_tag in |
25474 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
25475 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
25476 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
25477 | { (exit 1); exit 1; }; } ;; | |
25478 | esac | |
25479 | ;; | |
25480 | esac | |
ec7d53e9 | 25481 | |
8934764e BB |
25482 | ac_dir=`$as_dirname -- "$ac_file" || |
25483 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25484 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
25485 | X"$ac_file" : 'X\(//\)$' \| \ | |
25486 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
25487 | $as_echo X"$ac_file" | | |
25488 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25489 | s//\1/ | |
25490 | q | |
25491 | } | |
25492 | /^X\(\/\/\)[^/].*/{ | |
25493 | s//\1/ | |
25494 | q | |
25495 | } | |
25496 | /^X\(\/\/\)$/{ | |
25497 | s//\1/ | |
25498 | q | |
25499 | } | |
25500 | /^X\(\/\).*/{ | |
25501 | s//\1/ | |
25502 | q | |
25503 | } | |
25504 | s/.*/./; q'` | |
25505 | { as_dir="$ac_dir" | |
25506 | case $as_dir in #( | |
25507 | -*) as_dir=./$as_dir;; | |
25508 | esac | |
25509 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
25510 | as_dirs= | |
25511 | while :; do | |
25512 | case $as_dir in #( | |
25513 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
25514 | *) as_qdir=$as_dir;; | |
25515 | esac | |
25516 | as_dirs="'$as_qdir' $as_dirs" | |
25517 | as_dir=`$as_dirname -- "$as_dir" || | |
25518 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25519 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25520 | X"$as_dir" : 'X\(//\)$' \| \ | |
25521 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
25522 | $as_echo X"$as_dir" | | |
25523 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25524 | s//\1/ | |
25525 | q | |
25526 | } | |
25527 | /^X\(\/\/\)[^/].*/{ | |
25528 | s//\1/ | |
25529 | q | |
25530 | } | |
25531 | /^X\(\/\/\)$/{ | |
25532 | s//\1/ | |
25533 | q | |
25534 | } | |
25535 | /^X\(\/\).*/{ | |
25536 | s//\1/ | |
25537 | q | |
25538 | } | |
25539 | s/.*/./; q'` | |
25540 | test -d "$as_dir" && break | |
25541 | done | |
25542 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
25543 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
25544 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
25545 | { (exit 1); exit 1; }; }; } | |
25546 | ac_builddir=. | |
ec7d53e9 | 25547 | |
8934764e BB |
25548 | case "$ac_dir" in |
25549 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
25550 | *) | |
25551 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
25552 | # A ".." for each directory in $ac_dir_suffix. | |
25553 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
25554 | case $ac_top_builddir_sub in | |
25555 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
25556 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
25557 | esac ;; | |
25558 | esac | |
25559 | ac_abs_top_builddir=$ac_pwd | |
25560 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
25561 | # for backward compatibility: | |
25562 | ac_top_builddir=$ac_top_build_prefix | |
ec7d53e9 | 25563 | |
8934764e BB |
25564 | case $srcdir in |
25565 | .) # We are building in place. | |
25566 | ac_srcdir=. | |
25567 | ac_top_srcdir=$ac_top_builddir_sub | |
25568 | ac_abs_top_srcdir=$ac_pwd ;; | |
25569 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
25570 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25571 | ac_top_srcdir=$srcdir | |
25572 | ac_abs_top_srcdir=$srcdir ;; | |
25573 | *) # Relative name. | |
25574 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
25575 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
25576 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
25577 | esac | |
25578 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
ec7d53e9 | 25579 | |
ec7d53e9 | 25580 | |
8934764e BB |
25581 | case $ac_mode in |
25582 | :F) | |
25583 | # | |
25584 | # CONFIG_FILE | |
25585 | # | |
25586 | ||
25587 | case $INSTALL in | |
25588 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
25589 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
25590 | esac | |
25591 | ac_MKDIR_P=$MKDIR_P | |
25592 | case $MKDIR_P in | |
25593 | [\\/$]* | ?:[\\/]* ) ;; | |
25594 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
25595 | esac | |
ec7d53e9 BB |
25596 | _ACEOF |
25597 | ||
8934764e BB |
25598 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
25599 | # If the template does not know about datarootdir, expand it. | |
25600 | # FIXME: This hack should be removed a few years after 2.60. | |
25601 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec7d53e9 | 25602 | |
8934764e BB |
25603 | ac_sed_dataroot=' |
25604 | /datarootdir/ { | |
25605 | p | |
25606 | q | |
25607 | } | |
25608 | /@datadir@/p | |
25609 | /@docdir@/p | |
25610 | /@infodir@/p | |
25611 | /@localedir@/p | |
25612 | /@mandir@/p | |
25613 | ' | |
25614 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
25615 | *datarootdir*) ac_datarootdir_seen=yes;; | |
25616 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
25617 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
25618 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
25619 | _ACEOF | |
25620 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25621 | ac_datarootdir_hack=' | |
25622 | s&@datadir@&$datadir&g | |
25623 | s&@docdir@&$docdir&g | |
25624 | s&@infodir@&$infodir&g | |
25625 | s&@localedir@&$localedir&g | |
25626 | s&@mandir@&$mandir&g | |
25627 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
25628 | esac | |
ec7d53e9 BB |
25629 | _ACEOF |
25630 | ||
8934764e BB |
25631 | # Neutralize VPATH when `$srcdir' = `.'. |
25632 | # Shell code in configure.ac might set extrasub. | |
25633 | # FIXME: do we really want to maintain this feature? | |
25634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
25635 | ac_sed_extra="$ac_vpsub | |
25636 | $extrasub | |
25637 | _ACEOF | |
25638 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
25639 | :t | |
25640 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
25641 | s|@configure_input@|$ac_sed_conf_input|;t t | |
25642 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
25643 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
25644 | s&@srcdir@&$ac_srcdir&;t t | |
25645 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
25646 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
25647 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
25648 | s&@builddir@&$ac_builddir&;t t | |
25649 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
25650 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
25651 | s&@INSTALL@&$ac_INSTALL&;t t | |
25652 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
25653 | $ac_datarootdir_hack | |
25654 | " | |
25655 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
25656 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
25657 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
25658 | { (exit 1); exit 1; }; } | |
ec7d53e9 | 25659 | |
8934764e BB |
25660 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
25661 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
25662 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
25663 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
25664 | which seems to be undefined. Please make sure it is defined." >&5 | |
25665 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
25666 | which seems to be undefined. Please make sure it is defined." >&2;} | |
ec7d53e9 | 25667 | |
8934764e BB |
25668 | rm -f "$tmp/stdin" |
25669 | case $ac_file in | |
25670 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
25671 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
25672 | esac \ | |
25673 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
25674 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
25675 | { (exit 1); exit 1; }; } | |
25676 | ;; | |
25677 | :H) | |
25678 | # | |
25679 | # CONFIG_HEADER | |
25680 | # | |
25681 | if test x"$ac_file" != x-; then | |
25682 | { | |
25683 | $as_echo "/* $configure_input */" \ | |
25684 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
25685 | } >"$tmp/config.h" \ | |
25686 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
25687 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
25688 | { (exit 1); exit 1; }; } | |
25689 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
25690 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
25691 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
25692 | else | |
25693 | rm -f "$ac_file" | |
25694 | mv "$tmp/config.h" "$ac_file" \ | |
25695 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
25696 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
25697 | { (exit 1); exit 1; }; } | |
25698 | fi | |
25699 | else | |
25700 | $as_echo "/* $configure_input */" \ | |
25701 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
25702 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
25703 | $as_echo "$as_me: error: could not create -" >&2;} | |
25704 | { (exit 1); exit 1; }; } | |
25705 | fi | |
25706 | # Compute "$ac_file"'s index in $config_headers. | |
25707 | _am_arg="$ac_file" | |
25708 | _am_stamp_count=1 | |
25709 | for _am_header in $config_headers :; do | |
25710 | case $_am_header in | |
25711 | $_am_arg | $_am_arg:* ) | |
25712 | break ;; | |
25713 | * ) | |
25714 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
25715 | esac | |
25716 | done | |
25717 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
25718 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25719 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
25720 | X"$_am_arg" : 'X\(//\)$' \| \ | |
25721 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
25722 | $as_echo X"$_am_arg" | | |
25723 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25724 | s//\1/ | |
25725 | q | |
25726 | } | |
25727 | /^X\(\/\/\)[^/].*/{ | |
25728 | s//\1/ | |
25729 | q | |
25730 | } | |
25731 | /^X\(\/\/\)$/{ | |
25732 | s//\1/ | |
25733 | q | |
25734 | } | |
25735 | /^X\(\/\).*/{ | |
25736 | s//\1/ | |
25737 | q | |
25738 | } | |
25739 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
25740 | ;; | |
ec7d53e9 | 25741 | |
8934764e BB |
25742 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
25743 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
25744 | ;; | |
25745 | esac | |
e811949a | 25746 | |
e811949a | 25747 | |
8934764e BB |
25748 | case $ac_file$ac_mode in |
25749 | "spl_config.h":H) | |
25750 | (mv spl_config.h spl_config.h.tmp && | |
a7958f7e | 25751 | awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h && |
8934764e BB |
25752 | rm spl_config.h.tmp) || exit 1 ;; |
25753 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
25754 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
25755 | # are listed without --file. Let's play safe and only enable the eval | |
25756 | # if we detect the quoting. | |
25757 | case $CONFIG_FILES in | |
25758 | *\'*) eval set x "$CONFIG_FILES" ;; | |
25759 | *) set x $CONFIG_FILES ;; | |
25760 | esac | |
25761 | shift | |
25762 | for mf | |
25763 | do | |
25764 | # Strip MF so we end up with the name of the file. | |
25765 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
25766 | # Check whether this is an Automake generated Makefile or not. | |
25767 | # We used to match only the files named `Makefile.in', but | |
25768 | # some people rename them; so instead we look at the file content. | |
25769 | # Grep'ing the first line is not enough: some people post-process | |
25770 | # each Makefile.in and add a new line on top of each file to say so. | |
25771 | # Grep'ing the whole file is not good either: AIX grep has a line | |
25772 | # limit of 2048, but all sed's we know have understand at least 4000. | |
25773 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
25774 | dirpart=`$as_dirname -- "$mf" || | |
25775 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25776 | X"$mf" : 'X\(//\)[^/]' \| \ | |
25777 | X"$mf" : 'X\(//\)$' \| \ | |
25778 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
25779 | $as_echo X"$mf" | | |
25780 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25781 | s//\1/ | |
25782 | q | |
25783 | } | |
25784 | /^X\(\/\/\)[^/].*/{ | |
25785 | s//\1/ | |
25786 | q | |
25787 | } | |
25788 | /^X\(\/\/\)$/{ | |
25789 | s//\1/ | |
25790 | q | |
25791 | } | |
25792 | /^X\(\/\).*/{ | |
25793 | s//\1/ | |
25794 | q | |
25795 | } | |
25796 | s/.*/./; q'` | |
25797 | else | |
25798 | continue | |
25799 | fi | |
25800 | # Extract the definition of DEPDIR, am__include, and am__quote | |
25801 | # from the Makefile without running `make'. | |
25802 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
25803 | test -z "$DEPDIR" && continue | |
25804 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
25805 | test -z "am__include" && continue | |
25806 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
25807 | # When using ansi2knr, U may be empty or an underscore; expand it | |
25808 | U=`sed -n 's/^U = //p' < "$mf"` | |
25809 | # Find all dependency output files, they are included files with | |
25810 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
25811 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
25812 | # expansion. | |
25813 | for file in `sed -n " | |
25814 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
25815 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
25816 | # Make sure the directory exists. | |
25817 | test -f "$dirpart/$file" && continue | |
25818 | fdir=`$as_dirname -- "$file" || | |
25819 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25820 | X"$file" : 'X\(//\)[^/]' \| \ | |
25821 | X"$file" : 'X\(//\)$' \| \ | |
25822 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
25823 | $as_echo X"$file" | | |
25824 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25825 | s//\1/ | |
25826 | q | |
25827 | } | |
25828 | /^X\(\/\/\)[^/].*/{ | |
25829 | s//\1/ | |
25830 | q | |
25831 | } | |
25832 | /^X\(\/\/\)$/{ | |
25833 | s//\1/ | |
25834 | q | |
25835 | } | |
25836 | /^X\(\/\).*/{ | |
25837 | s//\1/ | |
25838 | q | |
25839 | } | |
25840 | s/.*/./; q'` | |
25841 | { as_dir=$dirpart/$fdir | |
25842 | case $as_dir in #( | |
25843 | -*) as_dir=./$as_dir;; | |
25844 | esac | |
25845 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
25846 | as_dirs= | |
25847 | while :; do | |
25848 | case $as_dir in #( | |
25849 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
25850 | *) as_qdir=$as_dir;; | |
25851 | esac | |
25852 | as_dirs="'$as_qdir' $as_dirs" | |
25853 | as_dir=`$as_dirname -- "$as_dir" || | |
25854 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25855 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25856 | X"$as_dir" : 'X\(//\)$' \| \ | |
25857 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
25858 | $as_echo X"$as_dir" | | |
25859 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
25860 | s//\1/ | |
25861 | q | |
25862 | } | |
25863 | /^X\(\/\/\)[^/].*/{ | |
25864 | s//\1/ | |
25865 | q | |
25866 | } | |
25867 | /^X\(\/\/\)$/{ | |
25868 | s//\1/ | |
25869 | q | |
25870 | } | |
25871 | /^X\(\/\).*/{ | |
25872 | s//\1/ | |
25873 | q | |
25874 | } | |
25875 | s/.*/./; q'` | |
25876 | test -d "$as_dir" && break | |
25877 | done | |
25878 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
25879 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
25880 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
25881 | { (exit 1); exit 1; }; }; } | |
25882 | # echo "creating $dirpart/$file" | |
25883 | echo '# dummy' > "$dirpart/$file" | |
25884 | done | |
25885 | done | |
25886 | } | |
25887 | ;; | |
25888 | "libtool":C) | |
25889 | ||
25890 | # See if we are running on zsh, and set the options which allow our | |
25891 | # commands through without removal of \ escapes. | |
25892 | if test -n "${ZSH_VERSION+set}" ; then | |
25893 | setopt NO_GLOB_SUBST | |
25894 | fi | |
25895 | ||
25896 | cfgfile="${ofile}T" | |
25897 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
25898 | $RM "$cfgfile" | |
25899 | ||
25900 | cat <<_LT_EOF >> "$cfgfile" | |
25901 | #! $SHELL | |
25902 | ||
25903 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
25904 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
25905 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
25906 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
25907 | # | |
25908 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
25909 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
25910 | # Written by Gordon Matzigkeit, 1996 | |
25911 | # | |
25912 | # This file is part of GNU Libtool. | |
25913 | # | |
25914 | # GNU Libtool is free software; you can redistribute it and/or | |
25915 | # modify it under the terms of the GNU General Public License as | |
25916 | # published by the Free Software Foundation; either version 2 of | |
25917 | # the License, or (at your option) any later version. | |
25918 | # | |
25919 | # As a special exception to the GNU General Public License, | |
25920 | # if you distribute this file as part of a program or library that | |
25921 | # is built using GNU Libtool, you may include this file under the | |
25922 | # same distribution terms that you use for the rest of that program. | |
25923 | # | |
25924 | # GNU Libtool is distributed in the hope that it will be useful, | |
25925 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
25926 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
25927 | # GNU General Public License for more details. | |
25928 | # | |
25929 | # You should have received a copy of the GNU General Public License | |
25930 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
25931 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
25932 | # obtained by writing to the Free Software Foundation, Inc., | |
25933 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
25934 | ||
25935 | ||
25936 | # The names of the tagged configurations supported by this script. | |
25937 | available_tags="" | |
25938 | ||
25939 | # ### BEGIN LIBTOOL CONFIG | |
25940 | ||
25941 | # Which release of libtool.m4 was used? | |
25942 | macro_version=$macro_version | |
25943 | macro_revision=$macro_revision | |
e811949a | 25944 | |
8934764e BB |
25945 | # Whether or not to build shared libraries. |
25946 | build_libtool_libs=$enable_shared | |
e811949a | 25947 | |
8934764e BB |
25948 | # Whether or not to build static libraries. |
25949 | build_old_libs=$enable_static | |
e811949a | 25950 | |
8934764e BB |
25951 | # What type of objects to build. |
25952 | pic_mode=$pic_mode | |
e811949a | 25953 | |
8934764e BB |
25954 | # Whether or not to optimize for fast installation. |
25955 | fast_install=$enable_fast_install | |
e811949a | 25956 | |
8934764e BB |
25957 | # The host system. |
25958 | host_alias=$host_alias | |
25959 | host=$host | |
25960 | host_os=$host_os | |
e811949a | 25961 | |
8934764e BB |
25962 | # The build system. |
25963 | build_alias=$build_alias | |
25964 | build=$build | |
25965 | build_os=$build_os | |
3977f837 | 25966 | |
8934764e BB |
25967 | # A sed program that does not truncate output. |
25968 | SED=$lt_SED | |
3977f837 | 25969 | |
8934764e BB |
25970 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
25971 | Xsed="\$SED -e 1s/^X//" | |
3977f837 | 25972 | |
8934764e BB |
25973 | # A grep program that handles long lines. |
25974 | GREP=$lt_GREP | |
3977f837 | 25975 | |
8934764e BB |
25976 | # An ERE matcher. |
25977 | EGREP=$lt_EGREP | |
3977f837 | 25978 | |
8934764e BB |
25979 | # A literal string matcher. |
25980 | FGREP=$lt_FGREP | |
3977f837 | 25981 | |
8934764e BB |
25982 | # A BSD- or MS-compatible name lister. |
25983 | NM=$lt_NM | |
3977f837 | 25984 | |
8934764e BB |
25985 | # Whether we need soft or hard links. |
25986 | LN_S=$lt_LN_S | |
3977f837 | 25987 | |
8934764e BB |
25988 | # What is the maximum length of a command? |
25989 | max_cmd_len=$max_cmd_len | |
3977f837 | 25990 | |
8934764e BB |
25991 | # Object file suffix (normally "o"). |
25992 | objext=$ac_objext | |
3977f837 | 25993 | |
8934764e BB |
25994 | # Executable file suffix (normally ""). |
25995 | exeext=$exeext | |
3977f837 | 25996 | |
8934764e BB |
25997 | # whether the shell understands "unset". |
25998 | lt_unset=$lt_unset | |
3977f837 | 25999 | |
8934764e BB |
26000 | # turn spaces into newlines. |
26001 | SP2NL=$lt_lt_SP2NL | |
3977f837 | 26002 | |
8934764e BB |
26003 | # turn newlines into spaces. |
26004 | NL2SP=$lt_lt_NL2SP | |
3977f837 | 26005 | |
8934764e BB |
26006 | # How to create reloadable object files. |
26007 | reload_flag=$lt_reload_flag | |
26008 | reload_cmds=$lt_reload_cmds | |
3977f837 | 26009 | |
8934764e BB |
26010 | # An object symbol dumper. |
26011 | OBJDUMP=$lt_OBJDUMP | |
3977f837 | 26012 | |
8934764e BB |
26013 | # Method to check whether dependent libraries are shared objects. |
26014 | deplibs_check_method=$lt_deplibs_check_method | |
3977f837 | 26015 | |
8934764e BB |
26016 | # Command to use when deplibs_check_method == "file_magic". |
26017 | file_magic_cmd=$lt_file_magic_cmd | |
3977f837 | 26018 | |
8934764e BB |
26019 | # The archiver. |
26020 | AR=$lt_AR | |
26021 | AR_FLAGS=$lt_AR_FLAGS | |
3977f837 | 26022 | |
8934764e BB |
26023 | # A symbol stripping program. |
26024 | STRIP=$lt_STRIP | |
3977f837 | 26025 | |
8934764e BB |
26026 | # Commands used to install an old-style archive. |
26027 | RANLIB=$lt_RANLIB | |
26028 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
26029 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
3977f837 | 26030 | |
8934764e BB |
26031 | # A C compiler. |
26032 | LTCC=$lt_CC | |
3977f837 | 26033 | |
8934764e BB |
26034 | # LTCC compiler flags. |
26035 | LTCFLAGS=$lt_CFLAGS | |
3977f837 | 26036 | |
8934764e BB |
26037 | # Take the output of nm and produce a listing of raw symbols and C names. |
26038 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
86933a6e | 26039 | |
8934764e BB |
26040 | # Transform the output of nm in a proper C declaration. |
26041 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
86933a6e | 26042 | |
8934764e BB |
26043 | # Transform the output of nm in a C name address pair. |
26044 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
86933a6e | 26045 | |
8934764e BB |
26046 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
26047 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
86933a6e | 26048 | |
8934764e BB |
26049 | # The name of the directory that contains temporary libtool files. |
26050 | objdir=$objdir | |
86933a6e | 26051 | |
8934764e BB |
26052 | # Shell to use when invoking shell scripts. |
26053 | SHELL=$lt_SHELL | |
86933a6e | 26054 | |
8934764e BB |
26055 | # An echo program that does not interpret backslashes. |
26056 | ECHO=$lt_ECHO | |
86933a6e | 26057 | |
8934764e BB |
26058 | # Used to examine libraries when file_magic_cmd begins with "file". |
26059 | MAGIC_CMD=$MAGIC_CMD | |
86933a6e | 26060 | |
8934764e BB |
26061 | # Must we lock files when doing compilation? |
26062 | need_locks=$lt_need_locks | |
86933a6e | 26063 | |
8934764e BB |
26064 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
26065 | DSYMUTIL=$lt_DSYMUTIL | |
bf9f3bac | 26066 | |
8934764e BB |
26067 | # Tool to change global to local symbols on Mac OS X. |
26068 | NMEDIT=$lt_NMEDIT | |
bf9f3bac | 26069 | |
8934764e BB |
26070 | # Tool to manipulate fat objects and archives on Mac OS X. |
26071 | LIPO=$lt_LIPO | |
bf9f3bac | 26072 | |
8934764e BB |
26073 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
26074 | OTOOL=$lt_OTOOL | |
bf9f3bac | 26075 | |
8934764e BB |
26076 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
26077 | OTOOL64=$lt_OTOOL64 | |
bf9f3bac | 26078 | |
8934764e BB |
26079 | # Old archive suffix (normally "a"). |
26080 | libext=$libext | |
bf9f3bac | 26081 | |
8934764e BB |
26082 | # Shared library suffix (normally ".so"). |
26083 | shrext_cmds=$lt_shrext_cmds | |
bf9f3bac | 26084 | |
8934764e BB |
26085 | # The commands to extract the exported symbol list from a shared archive. |
26086 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
bf9f3bac | 26087 | |
8934764e BB |
26088 | # Variables whose values should be saved in libtool wrapper scripts and |
26089 | # restored at link time. | |
26090 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
bf9f3bac | 26091 | |
8934764e BB |
26092 | # Do we need the "lib" prefix for modules? |
26093 | need_lib_prefix=$need_lib_prefix | |
bf9f3bac | 26094 | |
8934764e BB |
26095 | # Do we need a version for libraries? |
26096 | need_version=$need_version | |
bf9f3bac | 26097 | |
8934764e BB |
26098 | # Library versioning type. |
26099 | version_type=$version_type | |
bf9f3bac | 26100 | |
8934764e BB |
26101 | # Shared library runtime path variable. |
26102 | runpath_var=$runpath_var | |
bf9f3bac | 26103 | |
8934764e BB |
26104 | # Shared library path variable. |
26105 | shlibpath_var=$shlibpath_var | |
bf9f3bac | 26106 | |
8934764e BB |
26107 | # Is shlibpath searched before the hard-coded library search path? |
26108 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
bf9f3bac | 26109 | |
8934764e BB |
26110 | # Format of library name prefix. |
26111 | libname_spec=$lt_libname_spec | |
bf9f3bac | 26112 | |
8934764e BB |
26113 | # List of archive names. First name is the real one, the rest are links. |
26114 | # The last name is the one that the linker finds with -lNAME | |
26115 | library_names_spec=$lt_library_names_spec | |
bf9f3bac | 26116 | |
8934764e BB |
26117 | # The coded name of the library, if different from the real name. |
26118 | soname_spec=$lt_soname_spec | |
bf9f3bac | 26119 | |
8934764e BB |
26120 | # Command to use after installation of a shared archive. |
26121 | postinstall_cmds=$lt_postinstall_cmds | |
bf9f3bac | 26122 | |
8934764e BB |
26123 | # Command to use after uninstallation of a shared archive. |
26124 | postuninstall_cmds=$lt_postuninstall_cmds | |
bf9f3bac | 26125 | |
8934764e BB |
26126 | # Commands used to finish a libtool library installation in a directory. |
26127 | finish_cmds=$lt_finish_cmds | |
bf9f3bac | 26128 | |
8934764e BB |
26129 | # As "finish_cmds", except a single script fragment to be evaled but |
26130 | # not shown. | |
26131 | finish_eval=$lt_finish_eval | |
bf9f3bac | 26132 | |
8934764e BB |
26133 | # Whether we should hardcode library paths into libraries. |
26134 | hardcode_into_libs=$hardcode_into_libs | |
bf9f3bac | 26135 | |
8934764e BB |
26136 | # Compile-time system search path for libraries. |
26137 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
bf9f3bac | 26138 | |
8934764e BB |
26139 | # Run-time system search path for libraries. |
26140 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
bf9f3bac | 26141 | |
8934764e BB |
26142 | # Whether dlopen is supported. |
26143 | dlopen_support=$enable_dlopen | |
bf9f3bac | 26144 | |
8934764e BB |
26145 | # Whether dlopen of programs is supported. |
26146 | dlopen_self=$enable_dlopen_self | |
bf9f3bac | 26147 | |
8934764e BB |
26148 | # Whether dlopen of statically linked programs is supported. |
26149 | dlopen_self_static=$enable_dlopen_self_static | |
bf9f3bac | 26150 | |
8934764e BB |
26151 | # Commands to strip libraries. |
26152 | old_striplib=$lt_old_striplib | |
26153 | striplib=$lt_striplib | |
bf9f3bac | 26154 | |
bf9f3bac | 26155 | |
8934764e BB |
26156 | # The linker used to build libraries. |
26157 | LD=$lt_LD | |
bf9f3bac | 26158 | |
8934764e BB |
26159 | # Commands used to build an old-style archive. |
26160 | old_archive_cmds=$lt_old_archive_cmds | |
bf9f3bac | 26161 | |
8934764e BB |
26162 | # A language specific compiler. |
26163 | CC=$lt_compiler | |
bf9f3bac | 26164 | |
8934764e BB |
26165 | # Is the compiler the GNU compiler? |
26166 | with_gcc=$GCC | |
bf9f3bac | 26167 | |
8934764e BB |
26168 | # Compiler flag to turn off builtin functions. |
26169 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
bf9f3bac | 26170 | |
8934764e BB |
26171 | # How to pass a linker flag through the compiler. |
26172 | wl=$lt_lt_prog_compiler_wl | |
bf9f3bac | 26173 | |
8934764e BB |
26174 | # Additional compiler flags for building library objects. |
26175 | pic_flag=$lt_lt_prog_compiler_pic | |
bf9f3bac | 26176 | |
8934764e BB |
26177 | # Compiler flag to prevent dynamic linking. |
26178 | link_static_flag=$lt_lt_prog_compiler_static | |
bf9f3bac | 26179 | |
8934764e BB |
26180 | # Does compiler simultaneously support -c and -o options? |
26181 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
bf9f3bac | 26182 | |
8934764e BB |
26183 | # Whether or not to add -lc for building shared libraries. |
26184 | build_libtool_need_lc=$archive_cmds_need_lc | |
bf9f3bac | 26185 | |
8934764e BB |
26186 | # Whether or not to disallow shared libs when runtime libs are static. |
26187 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
bf9f3bac | 26188 | |
8934764e BB |
26189 | # Compiler flag to allow reflexive dlopens. |
26190 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
bf9f3bac | 26191 | |
8934764e BB |
26192 | # Compiler flag to generate shared objects directly from archives. |
26193 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
bf9f3bac | 26194 | |
8934764e BB |
26195 | # Whether the compiler copes with passing no objects directly. |
26196 | compiler_needs_object=$lt_compiler_needs_object | |
bf9f3bac | 26197 | |
8934764e BB |
26198 | # Create an old-style archive from a shared archive. |
26199 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
bf9f3bac | 26200 | |
8934764e BB |
26201 | # Create a temporary old-style archive to link instead of a shared archive. |
26202 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
bf9f3bac | 26203 | |
8934764e BB |
26204 | # Commands used to build a shared archive. |
26205 | archive_cmds=$lt_archive_cmds | |
26206 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
bf9f3bac | 26207 | |
8934764e BB |
26208 | # Commands used to build a loadable module if different from building |
26209 | # a shared archive. | |
26210 | module_cmds=$lt_module_cmds | |
26211 | module_expsym_cmds=$lt_module_expsym_cmds | |
bf9f3bac | 26212 | |
8934764e BB |
26213 | # Whether we are building with GNU ld or not. |
26214 | with_gnu_ld=$lt_with_gnu_ld | |
bf9f3bac | 26215 | |
8934764e BB |
26216 | # Flag that allows shared libraries with undefined symbols to be built. |
26217 | allow_undefined_flag=$lt_allow_undefined_flag | |
bf9f3bac | 26218 | |
8934764e BB |
26219 | # Flag that enforces no undefined symbols. |
26220 | no_undefined_flag=$lt_no_undefined_flag | |
bf9f3bac | 26221 | |
8934764e BB |
26222 | # Flag to hardcode \$libdir into a binary during linking. |
26223 | # This must work even if \$libdir does not exist | |
26224 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
bf9f3bac | 26225 | |
8934764e BB |
26226 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
26227 | # during linking. This must work even if \$libdir does not exist. | |
26228 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
bf9f3bac | 26229 | |
8934764e BB |
26230 | # Whether we need a single "-rpath" flag with a separated argument. |
26231 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
bf9f3bac | 26232 | |
8934764e BB |
26233 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
26234 | # DIR into the resulting binary. | |
26235 | hardcode_direct=$hardcode_direct | |
bf9f3bac | 26236 | |
8934764e BB |
26237 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
26238 | # DIR into the resulting binary and the resulting library dependency is | |
26239 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
26240 | # library is relocated. | |
26241 | hardcode_direct_absolute=$hardcode_direct_absolute | |
bf9f3bac | 26242 | |
8934764e BB |
26243 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
26244 | # into the resulting binary. | |
26245 | hardcode_minus_L=$hardcode_minus_L | |
bf9f3bac | 26246 | |
8934764e BB |
26247 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
26248 | # into the resulting binary. | |
26249 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
bf9f3bac | 26250 | |
8934764e BB |
26251 | # Set to "yes" if building a shared library automatically hardcodes DIR |
26252 | # into the library and all subsequent libraries and executables linked | |
26253 | # against it. | |
26254 | hardcode_automatic=$hardcode_automatic | |
bf9f3bac | 26255 | |
8934764e BB |
26256 | # Set to yes if linker adds runtime paths of dependent libraries |
26257 | # to runtime path list. | |
26258 | inherit_rpath=$inherit_rpath | |
bf9f3bac | 26259 | |
8934764e BB |
26260 | # Whether libtool must link a program against all its dependency libraries. |
26261 | link_all_deplibs=$link_all_deplibs | |
bf9f3bac | 26262 | |
8934764e BB |
26263 | # Fix the shell variable \$srcfile for the compiler. |
26264 | fix_srcfile_path=$lt_fix_srcfile_path | |
bf9f3bac | 26265 | |
8934764e BB |
26266 | # Set to "yes" if exported symbols are required. |
26267 | always_export_symbols=$always_export_symbols | |
bf9f3bac | 26268 | |
8934764e BB |
26269 | # The commands to list exported symbols. |
26270 | export_symbols_cmds=$lt_export_symbols_cmds | |
bf9f3bac | 26271 | |
8934764e BB |
26272 | # Symbols that should not be listed in the preloaded symbols. |
26273 | exclude_expsyms=$lt_exclude_expsyms | |
bf9f3bac | 26274 | |
8934764e BB |
26275 | # Symbols that must always be exported. |
26276 | include_expsyms=$lt_include_expsyms | |
bf9f3bac | 26277 | |
8934764e BB |
26278 | # Commands necessary for linking programs (against libraries) with templates. |
26279 | prelink_cmds=$lt_prelink_cmds | |
bf9f3bac | 26280 | |
8934764e BB |
26281 | # Specify filename containing input files. |
26282 | file_list_spec=$lt_file_list_spec | |
bf9f3bac | 26283 | |
8934764e BB |
26284 | # How to hardcode a shared library path into an executable. |
26285 | hardcode_action=$hardcode_action | |
bf9f3bac | 26286 | |
8934764e BB |
26287 | # ### END LIBTOOL CONFIG |
26288 | ||
26289 | _LT_EOF | |
26290 | ||
26291 | case $host_os in | |
26292 | aix3*) | |
26293 | cat <<\_LT_EOF >> "$cfgfile" | |
26294 | # AIX sometimes has problems with the GCC collect2 program. For some | |
26295 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
26296 | # vanish in a puff of smoke. | |
26297 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
26298 | COLLECT_NAMES= | |
26299 | export COLLECT_NAMES | |
bf9f3bac | 26300 | fi |
8934764e BB |
26301 | _LT_EOF |
26302 | ;; | |
26303 | esac | |
bf9f3bac | 26304 | |
bf9f3bac | 26305 | |
8934764e | 26306 | ltmain="$ac_aux_dir/ltmain.sh" |
bf9f3bac | 26307 | |
bf9f3bac | 26308 | |
8934764e BB |
26309 | # We use sed instead of cat because bash on DJGPP gets confused if |
26310 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
26311 | # text mode, it properly converts lines to CR/LF. This bash problem | |
26312 | # is reportedly fixed, but why not run on old versions too? | |
26313 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
26314 | || (rm -f "$cfgfile"; exit 1) | |
bf9f3bac | 26315 | |
8934764e BB |
26316 | case $xsi_shell in |
26317 | yes) | |
26318 | cat << \_LT_EOF >> "$cfgfile" | |
bf9f3bac | 26319 | |
8934764e BB |
26320 | # func_dirname file append nondir_replacement |
26321 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
26322 | # otherwise set result to NONDIR_REPLACEMENT. | |
26323 | func_dirname () | |
26324 | { | |
26325 | case ${1} in | |
26326 | */*) func_dirname_result="${1%/*}${2}" ;; | |
26327 | * ) func_dirname_result="${3}" ;; | |
bf9f3bac | 26328 | esac |
8934764e | 26329 | } |
bf9f3bac | 26330 | |
8934764e BB |
26331 | # func_basename file |
26332 | func_basename () | |
26333 | { | |
26334 | func_basename_result="${1##*/}" | |
26335 | } | |
bf9f3bac | 26336 | |
8934764e BB |
26337 | # func_dirname_and_basename file append nondir_replacement |
26338 | # perform func_basename and func_dirname in a single function | |
26339 | # call: | |
26340 | # dirname: Compute the dirname of FILE. If nonempty, | |
26341 | # add APPEND to the result, otherwise set result | |
26342 | # to NONDIR_REPLACEMENT. | |
26343 | # value returned in "$func_dirname_result" | |
26344 | # basename: Compute filename of FILE. | |
26345 | # value retuned in "$func_basename_result" | |
26346 | # Implementation must be kept synchronized with func_dirname | |
26347 | # and func_basename. For efficiency, we do not delegate to | |
26348 | # those functions but instead duplicate the functionality here. | |
26349 | func_dirname_and_basename () | |
bf9f3bac | 26350 | { |
8934764e BB |
26351 | case ${1} in |
26352 | */*) func_dirname_result="${1%/*}${2}" ;; | |
26353 | * ) func_dirname_result="${3}" ;; | |
26354 | esac | |
26355 | func_basename_result="${1##*/}" | |
bf9f3bac BB |
26356 | } |
26357 | ||
8934764e BB |
26358 | # func_stripname prefix suffix name |
26359 | # strip PREFIX and SUFFIX off of NAME. | |
26360 | # PREFIX and SUFFIX must not contain globbing or regex special | |
26361 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
26362 | # dot (in which case that matches only a dot). | |
26363 | func_stripname () | |
26364 | { | |
26365 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
26366 | # positional parameters, so assign one to ordinary parameter first. | |
26367 | func_stripname_result=${3} | |
26368 | func_stripname_result=${func_stripname_result#"${1}"} | |
26369 | func_stripname_result=${func_stripname_result%"${2}"} | |
26370 | } | |
bf9f3bac | 26371 | |
8934764e BB |
26372 | # func_opt_split |
26373 | func_opt_split () | |
bf9f3bac | 26374 | { |
8934764e BB |
26375 | func_opt_split_opt=${1%%=*} |
26376 | func_opt_split_arg=${1#*=} | |
26377 | } | |
26378 | ||
26379 | # func_lo2o object | |
26380 | func_lo2o () | |
bf9f3bac | 26381 | { |
8934764e BB |
26382 | case ${1} in |
26383 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
26384 | *) func_lo2o_result=${1} ;; | |
26385 | esac | |
26386 | } | |
26387 | ||
26388 | # func_xform libobj-or-source | |
26389 | func_xform () | |
bf9f3bac | 26390 | { |
8934764e | 26391 | func_xform_result=${1%.*}.lo |
bf9f3bac BB |
26392 | } |
26393 | ||
8934764e BB |
26394 | # func_arith arithmetic-term... |
26395 | func_arith () | |
26396 | { | |
26397 | func_arith_result=$(( $* )) | |
26398 | } | |
bf9f3bac | 26399 | |
8934764e BB |
26400 | # func_len string |
26401 | # STRING may not start with a hyphen. | |
26402 | func_len () | |
26403 | { | |
26404 | func_len_result=${#1} | |
26405 | } | |
bf9f3bac | 26406 | |
8934764e BB |
26407 | _LT_EOF |
26408 | ;; | |
26409 | *) # Bourne compatible functions. | |
26410 | cat << \_LT_EOF >> "$cfgfile" | |
bf9f3bac | 26411 | |
8934764e BB |
26412 | # func_dirname file append nondir_replacement |
26413 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
26414 | # otherwise set result to NONDIR_REPLACEMENT. | |
26415 | func_dirname () | |
26416 | { | |
26417 | # Extract subdirectory from the argument. | |
26418 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
26419 | if test "X$func_dirname_result" = "X${1}"; then | |
26420 | func_dirname_result="${3}" | |
26421 | else | |
26422 | func_dirname_result="$func_dirname_result${2}" | |
bf9f3bac | 26423 | fi |
8934764e | 26424 | } |
bf9f3bac | 26425 | |
8934764e BB |
26426 | # func_basename file |
26427 | func_basename () | |
26428 | { | |
26429 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
26430 | } | |
bf9f3bac | 26431 | |
bf9f3bac | 26432 | |
8934764e BB |
26433 | # func_stripname prefix suffix name |
26434 | # strip PREFIX and SUFFIX off of NAME. | |
26435 | # PREFIX and SUFFIX must not contain globbing or regex special | |
26436 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
26437 | # dot (in which case that matches only a dot). | |
26438 | # func_strip_suffix prefix name | |
26439 | func_stripname () | |
26440 | { | |
26441 | case ${2} in | |
26442 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
26443 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
26444 | *) func_stripname_result=`$ECHO "X${3}" \ | |
26445 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
26446 | esac | |
26447 | } | |
bf9f3bac | 26448 | |
8934764e BB |
26449 | # sed scripts: |
26450 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
26451 | my_sed_long_arg='1s/^-[^=]*=//' | |
bf9f3bac | 26452 | |
8934764e BB |
26453 | # func_opt_split |
26454 | func_opt_split () | |
26455 | { | |
26456 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
26457 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
26458 | } | |
bf9f3bac | 26459 | |
8934764e BB |
26460 | # func_lo2o object |
26461 | func_lo2o () | |
26462 | { | |
26463 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
26464 | } | |
bf9f3bac | 26465 | |
8934764e BB |
26466 | # func_xform libobj-or-source |
26467 | func_xform () | |
26468 | { | |
26469 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
26470 | } | |
bf9f3bac | 26471 | |
8934764e BB |
26472 | # func_arith arithmetic-term... |
26473 | func_arith () | |
26474 | { | |
26475 | func_arith_result=`expr "$@"` | |
26476 | } | |
bf9f3bac | 26477 | |
8934764e BB |
26478 | # func_len string |
26479 | # STRING may not start with a hyphen. | |
26480 | func_len () | |
26481 | { | |
26482 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
26483 | } | |
bf9f3bac | 26484 | |
8934764e BB |
26485 | _LT_EOF |
26486 | esac | |
bf9f3bac | 26487 | |
8934764e BB |
26488 | case $lt_shell_append in |
26489 | yes) | |
26490 | cat << \_LT_EOF >> "$cfgfile" | |
bf9f3bac | 26491 | |
8934764e BB |
26492 | # func_append var value |
26493 | # Append VALUE to the end of shell variable VAR. | |
26494 | func_append () | |
26495 | { | |
26496 | eval "$1+=\$2" | |
26497 | } | |
26498 | _LT_EOF | |
26499 | ;; | |
26500 | *) | |
26501 | cat << \_LT_EOF >> "$cfgfile" | |
bf9f3bac | 26502 | |
8934764e BB |
26503 | # func_append var value |
26504 | # Append VALUE to the end of shell variable VAR. | |
26505 | func_append () | |
26506 | { | |
26507 | eval "$1=\$$1\$2" | |
26508 | } | |
bf9f3bac | 26509 | |
8934764e BB |
26510 | _LT_EOF |
26511 | ;; | |
16b719f0 | 26512 | esac |
bf9f3bac | 26513 | |
bf9f3bac | 26514 | |
8934764e BB |
26515 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
26516 | || (rm -f "$cfgfile"; exit 1) | |
bf9f3bac | 26517 | |
8934764e BB |
26518 | mv -f "$cfgfile" "$ofile" || |
26519 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
26520 | chmod +x "$ofile" | |
bf9f3bac | 26521 | |
bf9f3bac | 26522 | ;; |
8934764e | 26523 | |
bf9f3bac | 26524 | esac |
8934764e | 26525 | done # for ac_tag |
bf9f3bac | 26526 | |
bf9f3bac BB |
26527 | |
26528 | { (exit 0); exit 0; } | |
26529 | _ACEOF | |
26530 | chmod +x $CONFIG_STATUS | |
26531 | ac_clean_files=$ac_clean_files_save | |
26532 | ||
8934764e BB |
26533 | test $ac_write_fail = 0 || |
26534 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
26535 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
26536 | { (exit 1); exit 1; }; } | |
26537 | ||
bf9f3bac BB |
26538 | |
26539 | # configure is writing to config.log, and then calls config.status. | |
26540 | # config.status does its own redirection, appending to config.log. | |
26541 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
26542 | # by configure, so config.status won't be able to write to it; its | |
26543 | # output is simply discarded. So we exec the FD to /dev/null, | |
26544 | # effectively closing config.log, so it can be properly (re)opened and | |
26545 | # appended to by config.status. When coming back to configure, we | |
26546 | # need to make the FD available again. | |
26547 | if test "$no_create" != yes; then | |
26548 | ac_cs_success=: | |
26549 | ac_config_status_args= | |
26550 | test "$silent" = yes && | |
26551 | ac_config_status_args="$ac_config_status_args --quiet" | |
26552 | exec 5>/dev/null | |
26553 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
26554 | exec 5>>config.log | |
26555 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
26556 | # would make configure fail if this is the last instruction. | |
26557 | $ac_cs_success || { (exit 1); exit 1; } | |
26558 | fi | |
8934764e BB |
26559 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
26560 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
26561 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
26562 | fi | |
bf9f3bac | 26563 |