]>
Commit | Line | Data |
---|---|---|
e70e591c BB |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.63. | |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
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 | ||
13 | # Be more Bourne compatible | |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16 | emulate sh | |
17 | NULLCMD=: | |
18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
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 | } | |
79 | fi | |
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 | ||
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 | ||
120 | # Work around bugs in pre-3.0 UWIN ksh. | |
121 | for as_var in ENV MAIL MAILPATH | |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
129 | LC_ALL=C | |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # Required to use basename. | |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
137 | as_expr=expr | |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
143 | as_basename=basename | |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
150 | as_me=`$as_basename -- "$0" || | |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
152 | X"$0" : 'X\(//\)$' \| \ | |
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'` | |
168 | ||
169 | # CDPATH. | |
170 | $as_unset CDPATH | |
171 | ||
172 | ||
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 | |
178 | fi | |
179 | ||
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 | } | |
196 | ||
197 | exitcode=0 | |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
204 | ||
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= | |
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=. | |
245 | case $as_dir in | |
246 | /*) | |
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 | ( | |
347 | as_lineno_1=$LINENO | |
348 | as_lineno_2=$LINENO | |
349 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
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" || { | |
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 | |
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. | |
455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
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 | | |
462 | sed ' | |
463 | s/[$]LINENO.*/&-/ | |
464 | t lineno | |
465 | b | |
466 | :lineno | |
467 | N | |
468 | :loop | |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
470 | t loop | |
471 | s/-\n.*// | |
472 | ' >$as_me.lineno && | |
473 | chmod +x "$as_me.lineno" || | |
474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
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 | |
479 | # original and so on. Autoconf is especially sensitive to this). | |
480 | . "./$as_me.lineno" | |
481 | # Exit status is that of the last command. | |
482 | exit | |
483 | } | |
484 | ||
485 | ||
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 | |
491 | ||
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 | |
504 | as_expr=expr | |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
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 | |
518 | as_ln_s='ln -s' | |
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' | |
529 | fi | |
530 | else | |
531 | as_ln_s='cp -p' | |
532 | fi | |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
534 | rmdir conf$$.dir 2>/dev/null | |
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 | ||
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 | |
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 | ||
573 | ||
574 | ||
575 | # Check that we are running under the correct shell. | |
576 | SHELL=${CONFIG_SHELL-/bin/sh} | |
577 | ||
578 | case X$lt_ECHO in | |
579 | X*--fallback-echo) | |
580 | # Remove one level of quotation (which was required for Make). | |
581 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
582 | ;; | |
583 | esac | |
584 | ||
585 | ECHO=${lt_ECHO-echo} | |
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 | : | |
592 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
593 | # Yippee, $ECHO works! | |
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 | |
603 | cat <<_LT_EOF | |
604 | $* | |
605 | _LT_EOF | |
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 | ||
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 | |
625 | ||
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. | |
636 | ||
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 | |
648 | IFS="$lt_save_ifs" | |
649 | ||
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+"$@"} | |
665 | else | |
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=: | |
690 | ||
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 | |
698 | ||
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 | |
708 | fi | |
709 | fi | |
710 | fi | |
711 | fi | |
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. | |
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" | |
718 | fi | |
719 | ||
720 | ||
721 | ||
722 | ||
723 | exec 7<&0 </dev/null 6>&1 | |
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 | ||
730 | # | |
731 | # Initializations. | |
732 | # | |
733 | ac_default_prefix=/usr/local | |
734 | ac_clean_files= | |
735 | ac_config_libobj_dir=. | |
736 | LIBOBJS= | |
737 | cross_compiling=no | |
738 | subdirs= | |
739 | MFLAGS= | |
740 | MAKEFLAGS= | |
741 | SHELL=${CONFIG_SHELL-/bin/sh} | |
742 | ||
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> | |
753 | #ifdef HAVE_SYS_TYPES_H | |
754 | # include <sys/types.h> | |
755 | #endif | |
756 | #ifdef HAVE_SYS_STAT_H | |
757 | # include <sys/stat.h> | |
758 | #endif | |
759 | #ifdef STDC_HEADERS | |
760 | # include <stdlib.h> | |
761 | # include <stddef.h> | |
762 | #else | |
763 | # ifdef HAVE_STDLIB_H | |
764 | # include <stdlib.h> | |
765 | # endif | |
766 | #endif | |
767 | #ifdef HAVE_STRING_H | |
768 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
769 | # include <memory.h> | |
770 | # endif | |
771 | # include <string.h> | |
772 | #endif | |
773 | #ifdef HAVE_STRINGS_H | |
774 | # include <strings.h> | |
775 | #endif | |
776 | #ifdef HAVE_INTTYPES_H | |
777 | # include <inttypes.h> | |
778 | #endif | |
779 | #ifdef HAVE_STDINT_H | |
780 | # include <stdint.h> | |
781 | #endif | |
782 | #ifdef HAVE_UNISTD_H | |
783 | # include <unistd.h> | |
784 | #endif" | |
785 | ||
786 | ac_subst_vars='am__EXEEXT_FALSE | |
787 | am__EXEEXT_TRUE | |
788 | LTLIBOBJS | |
789 | LIBOBJS | |
790 | DEBUG_STACKFLAGS | |
791 | DEBUG_CFLAGS | |
792 | CONFIG_KERNEL_FALSE | |
793 | CONFIG_KERNEL_TRUE | |
794 | CONFIG_USER_FALSE | |
795 | CONFIG_USER_TRUE | |
796 | FRAME_LARGER_THAN | |
b3259b6a | 797 | LIBSELINUX |
e70e591c BB |
798 | LIBBLKID |
799 | LIBUUID | |
800 | ZLIB | |
801 | KERNELCPPFLAGS | |
802 | KERNELMAKE_PARAMS | |
803 | SPL_SYMBOLS | |
804 | SPL_VERSION | |
805 | SPL_OBJ | |
806 | SPL | |
807 | LINUX_SYMBOLS | |
808 | LINUX_VERSION | |
809 | LINUX_OBJ | |
810 | LINUX | |
2e08aedb | 811 | NO_UNUSED_BUT_SET_VARIABLE |
e70e591c BB |
812 | ZFS_CONFIG |
813 | TARGET_ASM_DIR | |
01c0e61d | 814 | DEFAULT_INIT_SCRIPT |
615ab66d | 815 | DEFAULT_INIT_DIR |
e70e591c BB |
816 | DEFAULT_PACKAGE |
817 | VENDOR | |
818 | ALIEN_VERSION | |
819 | ALIEN | |
820 | HAVE_ALIEN | |
821 | DPKGBUILD_VERSION | |
822 | DPKGBUILD | |
823 | HAVE_DPKGBUILD | |
824 | DPKG_VERSION | |
825 | DPKG | |
826 | HAVE_DPKG | |
827 | RPMBUILD_VERSION | |
828 | RPMBUILD | |
829 | HAVE_RPMBUILD | |
830 | RPM_VERSION | |
831 | RPM | |
832 | HAVE_RPM | |
833 | am__fastdepCCAS_FALSE | |
834 | am__fastdepCCAS_TRUE | |
835 | CCASDEPMODE | |
836 | CCASFLAGS | |
837 | CCAS | |
838 | CPP | |
839 | OTOOL64 | |
840 | OTOOL | |
841 | LIPO | |
842 | NMEDIT | |
843 | DSYMUTIL | |
844 | lt_ECHO | |
845 | RANLIB | |
846 | AR | |
847 | OBJDUMP | |
848 | LN_S | |
849 | NM | |
850 | ac_ct_DUMPBIN | |
851 | DUMPBIN | |
852 | LD | |
853 | FGREP | |
854 | EGREP | |
855 | GREP | |
856 | SED | |
857 | LIBTOOL | |
858 | am__fastdepCC_FALSE | |
859 | am__fastdepCC_TRUE | |
860 | CCDEPMODE | |
861 | AMDEPBACKSLASH | |
862 | AMDEP_FALSE | |
863 | AMDEP_TRUE | |
864 | am__quote | |
865 | am__include | |
866 | DEPDIR | |
867 | OBJEXT | |
868 | EXEEXT | |
869 | ac_ct_CC | |
870 | CPPFLAGS | |
871 | LDFLAGS | |
872 | CFLAGS | |
873 | CC | |
874 | am__untar | |
875 | am__tar | |
876 | AMTAR | |
877 | am__leading_dot | |
878 | SET_MAKE | |
879 | AWK | |
880 | mkdir_p | |
881 | MKDIR_P | |
882 | INSTALL_STRIP_PROGRAM | |
883 | STRIP | |
884 | install_sh | |
885 | MAKEINFO | |
886 | AUTOHEADER | |
887 | AUTOMAKE | |
888 | AUTOCONF | |
889 | ACLOCAL | |
890 | VERSION | |
891 | PACKAGE | |
892 | CYGPATH_W | |
893 | am__isrc | |
894 | INSTALL_DATA | |
895 | INSTALL_SCRIPT | |
896 | INSTALL_PROGRAM | |
897 | AM_BACKSLASH | |
898 | AM_DEFAULT_VERBOSITY | |
899 | MAINT | |
900 | MAINTAINER_MODE_FALSE | |
901 | MAINTAINER_MODE_TRUE | |
902 | target_os | |
903 | target_vendor | |
904 | target_cpu | |
905 | target | |
906 | host_os | |
907 | host_vendor | |
908 | host_cpu | |
909 | host | |
910 | build_os | |
911 | build_vendor | |
912 | build_cpu | |
913 | build | |
914 | ZFS_META_LT_AGE | |
915 | ZFS_META_LT_REVISION | |
916 | ZFS_META_LT_CURRENT | |
917 | ZFS_META_AUTHOR | |
918 | ZFS_META_DATA | |
919 | ZFS_META_ALIAS | |
920 | ZFS_META_LICENSE | |
921 | ZFS_META_RELEASE | |
922 | ZFS_META_VERSION | |
923 | ZFS_META_NAME | |
924 | target_alias | |
925 | host_alias | |
926 | build_alias | |
927 | LIBS | |
928 | ECHO_T | |
929 | ECHO_N | |
930 | ECHO_C | |
931 | DEFS | |
932 | mandir | |
933 | localedir | |
934 | libdir | |
935 | psdir | |
936 | pdfdir | |
937 | dvidir | |
938 | htmldir | |
939 | infodir | |
940 | docdir | |
941 | oldincludedir | |
942 | includedir | |
943 | localstatedir | |
944 | sharedstatedir | |
945 | sysconfdir | |
946 | datadir | |
947 | datarootdir | |
948 | libexecdir | |
949 | sbindir | |
950 | bindir | |
951 | program_transform_name | |
952 | prefix | |
953 | exec_prefix | |
954 | PACKAGE_BUGREPORT | |
955 | PACKAGE_STRING | |
956 | PACKAGE_VERSION | |
957 | PACKAGE_TARNAME | |
958 | PACKAGE_NAME | |
959 | PATH_SEPARATOR | |
960 | SHELL' | |
961 | ac_subst_files='' | |
962 | ac_user_opts=' | |
963 | enable_option_checking | |
964 | enable_maintainer_mode | |
965 | enable_silent_rules | |
966 | enable_dependency_tracking | |
967 | enable_shared | |
968 | enable_static | |
969 | with_pic | |
970 | enable_fast_install | |
971 | with_gnu_ld | |
972 | enable_libtool_lock | |
973 | with_config | |
974 | with_linux | |
975 | with_linux_obj | |
976 | with_spl | |
977 | with_spl_obj | |
978 | with_blkid | |
b3259b6a | 979 | with_selinux |
e70e591c BB |
980 | enable_debug |
981 | ' | |
982 | ac_precious_vars='build_alias | |
983 | host_alias | |
984 | target_alias | |
985 | CC | |
986 | CFLAGS | |
987 | LDFLAGS | |
988 | LIBS | |
989 | CPPFLAGS | |
990 | CPP | |
991 | CCAS | |
992 | CCASFLAGS' | |
993 | ||
994 | ||
995 | # Initialize some variables set by options. | |
996 | ac_init_help= | |
997 | ac_init_version=false | |
998 | ac_unrecognized_opts= | |
999 | ac_unrecognized_sep= | |
1000 | # The variables have the same names as the options, with | |
1001 | # dashes changed to underlines. | |
1002 | cache_file=/dev/null | |
1003 | exec_prefix=NONE | |
1004 | no_create= | |
1005 | no_recursion= | |
1006 | prefix=NONE | |
1007 | program_prefix=NONE | |
1008 | program_suffix=NONE | |
1009 | program_transform_name=s,x,x, | |
1010 | silent= | |
1011 | site= | |
1012 | srcdir= | |
1013 | verbose= | |
1014 | x_includes=NONE | |
1015 | x_libraries=NONE | |
1016 | ||
1017 | # Installation directory options. | |
1018 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1019 | # and all the variables that are supposed to be based on exec_prefix | |
1020 | # by default will actually change. | |
1021 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
1022 | # (The list follows the same order as the GNU Coding Standards.) | |
1023 | bindir='${exec_prefix}/bin' | |
1024 | sbindir='${exec_prefix}/sbin' | |
1025 | libexecdir='${exec_prefix}/libexec' | |
1026 | datarootdir='${prefix}/share' | |
1027 | datadir='${datarootdir}' | |
1028 | sysconfdir='${prefix}/etc' | |
1029 | sharedstatedir='${prefix}/com' | |
1030 | localstatedir='${prefix}/var' | |
1031 | includedir='${prefix}/include' | |
1032 | oldincludedir='/usr/include' | |
1033 | docdir='${datarootdir}/doc/${PACKAGE}' | |
1034 | infodir='${datarootdir}/info' | |
1035 | htmldir='${docdir}' | |
1036 | dvidir='${docdir}' | |
1037 | pdfdir='${docdir}' | |
1038 | psdir='${docdir}' | |
1039 | libdir='${exec_prefix}/lib' | |
1040 | localedir='${datarootdir}/locale' | |
1041 | mandir='${datarootdir}/man' | |
1042 | ||
1043 | ac_prev= | |
1044 | ac_dashdash= | |
1045 | for ac_option | |
1046 | do | |
1047 | # If the previous option needs an argument, assign it. | |
1048 | if test -n "$ac_prev"; then | |
1049 | eval $ac_prev=\$ac_option | |
1050 | ac_prev= | |
1051 | continue | |
1052 | fi | |
1053 | ||
1054 | case $ac_option in | |
1055 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1056 | *) ac_optarg=yes ;; | |
1057 | esac | |
1058 | ||
1059 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1060 | ||
1061 | case $ac_dashdash$ac_option in | |
1062 | --) | |
1063 | ac_dashdash=yes ;; | |
1064 | ||
1065 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1066 | ac_prev=bindir ;; | |
1067 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1068 | bindir=$ac_optarg ;; | |
1069 | ||
1070 | -build | --build | --buil | --bui | --bu) | |
1071 | ac_prev=build_alias ;; | |
1072 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1073 | build_alias=$ac_optarg ;; | |
1074 | ||
1075 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1076 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1077 | ac_prev=cache_file ;; | |
1078 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1079 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1080 | cache_file=$ac_optarg ;; | |
1081 | ||
1082 | --config-cache | -C) | |
1083 | cache_file=config.cache ;; | |
1084 | ||
1085 | -datadir | --datadir | --datadi | --datad) | |
1086 | ac_prev=datadir ;; | |
1087 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1088 | datadir=$ac_optarg ;; | |
1089 | ||
1090 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1091 | | --dataroo | --dataro | --datar) | |
1092 | ac_prev=datarootdir ;; | |
1093 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1094 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1095 | datarootdir=$ac_optarg ;; | |
1096 | ||
1097 | -disable-* | --disable-*) | |
1098 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1099 | # Reject names that are not valid shell variable names. | |
1100 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1101 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
1102 | { (exit 1); exit 1; }; } | |
1103 | ac_useropt_orig=$ac_useropt | |
1104 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1105 | case $ac_user_opts in | |
1106 | *" | |
1107 | "enable_$ac_useropt" | |
1108 | "*) ;; | |
1109 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1110 | ac_unrecognized_sep=', ';; | |
1111 | esac | |
1112 | eval enable_$ac_useropt=no ;; | |
1113 | ||
1114 | -docdir | --docdir | --docdi | --doc | --do) | |
1115 | ac_prev=docdir ;; | |
1116 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1117 | docdir=$ac_optarg ;; | |
1118 | ||
1119 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1120 | ac_prev=dvidir ;; | |
1121 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1122 | dvidir=$ac_optarg ;; | |
1123 | ||
1124 | -enable-* | --enable-*) | |
1125 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1126 | # Reject names that are not valid shell variable names. | |
1127 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1128 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
1129 | { (exit 1); exit 1; }; } | |
1130 | ac_useropt_orig=$ac_useropt | |
1131 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1132 | case $ac_user_opts in | |
1133 | *" | |
1134 | "enable_$ac_useropt" | |
1135 | "*) ;; | |
1136 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1137 | ac_unrecognized_sep=', ';; | |
1138 | esac | |
1139 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1140 | ||
1141 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1142 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1143 | | --exec | --exe | --ex) | |
1144 | ac_prev=exec_prefix ;; | |
1145 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1146 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1147 | | --exec=* | --exe=* | --ex=*) | |
1148 | exec_prefix=$ac_optarg ;; | |
1149 | ||
1150 | -gas | --gas | --ga | --g) | |
1151 | # Obsolete; use --with-gas. | |
1152 | with_gas=yes ;; | |
1153 | ||
1154 | -help | --help | --hel | --he | -h) | |
1155 | ac_init_help=long ;; | |
1156 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1157 | ac_init_help=recursive ;; | |
1158 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1159 | ac_init_help=short ;; | |
1160 | ||
1161 | -host | --host | --hos | --ho) | |
1162 | ac_prev=host_alias ;; | |
1163 | -host=* | --host=* | --hos=* | --ho=*) | |
1164 | host_alias=$ac_optarg ;; | |
1165 | ||
1166 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1167 | ac_prev=htmldir ;; | |
1168 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1169 | | --ht=*) | |
1170 | htmldir=$ac_optarg ;; | |
1171 | ||
1172 | -includedir | --includedir | --includedi | --included | --include \ | |
1173 | | --includ | --inclu | --incl | --inc) | |
1174 | ac_prev=includedir ;; | |
1175 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1176 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1177 | includedir=$ac_optarg ;; | |
1178 | ||
1179 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1180 | ac_prev=infodir ;; | |
1181 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1182 | infodir=$ac_optarg ;; | |
1183 | ||
1184 | -libdir | --libdir | --libdi | --libd) | |
1185 | ac_prev=libdir ;; | |
1186 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1187 | libdir=$ac_optarg ;; | |
1188 | ||
1189 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1190 | | --libexe | --libex | --libe) | |
1191 | ac_prev=libexecdir ;; | |
1192 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1193 | | --libexe=* | --libex=* | --libe=*) | |
1194 | libexecdir=$ac_optarg ;; | |
1195 | ||
1196 | -localedir | --localedir | --localedi | --localed | --locale) | |
1197 | ac_prev=localedir ;; | |
1198 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1199 | localedir=$ac_optarg ;; | |
1200 | ||
1201 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1202 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1203 | ac_prev=localstatedir ;; | |
1204 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1205 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1206 | localstatedir=$ac_optarg ;; | |
1207 | ||
1208 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1209 | ac_prev=mandir ;; | |
1210 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1211 | mandir=$ac_optarg ;; | |
1212 | ||
1213 | -nfp | --nfp | --nf) | |
1214 | # Obsolete; use --without-fp. | |
1215 | with_fp=no ;; | |
1216 | ||
1217 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1218 | | --no-cr | --no-c | -n) | |
1219 | no_create=yes ;; | |
1220 | ||
1221 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1222 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1223 | no_recursion=yes ;; | |
1224 | ||
1225 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1226 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1227 | | --oldin | --oldi | --old | --ol | --o) | |
1228 | ac_prev=oldincludedir ;; | |
1229 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1230 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1231 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1232 | oldincludedir=$ac_optarg ;; | |
1233 | ||
1234 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1235 | ac_prev=prefix ;; | |
1236 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1237 | prefix=$ac_optarg ;; | |
1238 | ||
1239 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1240 | | --program-pre | --program-pr | --program-p) | |
1241 | ac_prev=program_prefix ;; | |
1242 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1243 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1244 | program_prefix=$ac_optarg ;; | |
1245 | ||
1246 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1247 | | --program-suf | --program-su | --program-s) | |
1248 | ac_prev=program_suffix ;; | |
1249 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1250 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1251 | program_suffix=$ac_optarg ;; | |
1252 | ||
1253 | -program-transform-name | --program-transform-name \ | |
1254 | | --program-transform-nam | --program-transform-na \ | |
1255 | | --program-transform-n | --program-transform- \ | |
1256 | | --program-transform | --program-transfor \ | |
1257 | | --program-transfo | --program-transf \ | |
1258 | | --program-trans | --program-tran \ | |
1259 | | --progr-tra | --program-tr | --program-t) | |
1260 | ac_prev=program_transform_name ;; | |
1261 | -program-transform-name=* | --program-transform-name=* \ | |
1262 | | --program-transform-nam=* | --program-transform-na=* \ | |
1263 | | --program-transform-n=* | --program-transform-=* \ | |
1264 | | --program-transform=* | --program-transfor=* \ | |
1265 | | --program-transfo=* | --program-transf=* \ | |
1266 | | --program-trans=* | --program-tran=* \ | |
1267 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1268 | program_transform_name=$ac_optarg ;; | |
1269 | ||
1270 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1271 | ac_prev=pdfdir ;; | |
1272 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1273 | pdfdir=$ac_optarg ;; | |
1274 | ||
1275 | -psdir | --psdir | --psdi | --psd | --ps) | |
1276 | ac_prev=psdir ;; | |
1277 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1278 | psdir=$ac_optarg ;; | |
1279 | ||
1280 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1281 | | -silent | --silent | --silen | --sile | --sil) | |
1282 | silent=yes ;; | |
1283 | ||
1284 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1285 | ac_prev=sbindir ;; | |
1286 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1287 | | --sbi=* | --sb=*) | |
1288 | sbindir=$ac_optarg ;; | |
1289 | ||
1290 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1291 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1292 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1293 | | --sha | --sh) | |
1294 | ac_prev=sharedstatedir ;; | |
1295 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1296 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1297 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1298 | | --sha=* | --sh=*) | |
1299 | sharedstatedir=$ac_optarg ;; | |
1300 | ||
1301 | -site | --site | --sit) | |
1302 | ac_prev=site ;; | |
1303 | -site=* | --site=* | --sit=*) | |
1304 | site=$ac_optarg ;; | |
1305 | ||
1306 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1307 | ac_prev=srcdir ;; | |
1308 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1309 | srcdir=$ac_optarg ;; | |
1310 | ||
1311 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1312 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1313 | ac_prev=sysconfdir ;; | |
1314 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1315 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1316 | sysconfdir=$ac_optarg ;; | |
1317 | ||
1318 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1319 | ac_prev=target_alias ;; | |
1320 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1321 | target_alias=$ac_optarg ;; | |
1322 | ||
1323 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1324 | verbose=yes ;; | |
1325 | ||
1326 | -version | --version | --versio | --versi | --vers | -V) | |
1327 | ac_init_version=: ;; | |
1328 | ||
1329 | -with-* | --with-*) | |
1330 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1331 | # Reject names that are not valid shell variable names. | |
1332 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1333 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1334 | { (exit 1); exit 1; }; } | |
1335 | ac_useropt_orig=$ac_useropt | |
1336 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1337 | case $ac_user_opts in | |
1338 | *" | |
1339 | "with_$ac_useropt" | |
1340 | "*) ;; | |
1341 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1342 | ac_unrecognized_sep=', ';; | |
1343 | esac | |
1344 | eval with_$ac_useropt=\$ac_optarg ;; | |
1345 | ||
1346 | -without-* | --without-*) | |
1347 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1348 | # Reject names that are not valid shell variable names. | |
1349 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1350 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1351 | { (exit 1); exit 1; }; } | |
1352 | ac_useropt_orig=$ac_useropt | |
1353 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1354 | case $ac_user_opts in | |
1355 | *" | |
1356 | "with_$ac_useropt" | |
1357 | "*) ;; | |
1358 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1359 | ac_unrecognized_sep=', ';; | |
1360 | esac | |
1361 | eval with_$ac_useropt=no ;; | |
1362 | ||
1363 | --x) | |
1364 | # Obsolete; use --with-x. | |
1365 | with_x=yes ;; | |
1366 | ||
1367 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1368 | | --x-incl | --x-inc | --x-in | --x-i) | |
1369 | ac_prev=x_includes ;; | |
1370 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1371 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1372 | x_includes=$ac_optarg ;; | |
1373 | ||
1374 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1375 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1376 | ac_prev=x_libraries ;; | |
1377 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1378 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1379 | x_libraries=$ac_optarg ;; | |
1380 | ||
1381 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option | |
1382 | Try \`$0 --help' for more information." >&2 | |
1383 | { (exit 1); exit 1; }; } | |
1384 | ;; | |
1385 | ||
1386 | *=*) | |
1387 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1388 | # Reject names that are not valid shell variable names. | |
1389 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1390 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1391 | { (exit 1); exit 1; }; } | |
1392 | eval $ac_envvar=\$ac_optarg | |
1393 | export $ac_envvar ;; | |
1394 | ||
1395 | *) | |
1396 | # FIXME: should be removed in autoconf 3.0. | |
1397 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1398 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1399 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1400 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1401 | ;; | |
1402 | ||
1403 | esac | |
1404 | done | |
1405 | ||
1406 | if test -n "$ac_prev"; then | |
1407 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1408 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 | |
1409 | { (exit 1); exit 1; }; } | |
1410 | fi | |
1411 | ||
1412 | if test -n "$ac_unrecognized_opts"; then | |
1413 | case $enable_option_checking in | |
1414 | no) ;; | |
1415 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1416 | { (exit 1); exit 1; }; } ;; | |
1417 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1418 | esac | |
1419 | fi | |
1420 | ||
1421 | # Check all directory arguments for consistency. | |
1422 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1423 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1424 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1425 | libdir localedir mandir | |
1426 | do | |
1427 | eval ac_val=\$$ac_var | |
1428 | # Remove trailing slashes. | |
1429 | case $ac_val in | |
1430 | */ ) | |
1431 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1432 | eval $ac_var=\$ac_val;; | |
1433 | esac | |
1434 | # Be sure to have absolute directory names. | |
1435 | case $ac_val in | |
1436 | [\\/$]* | ?:[\\/]* ) continue;; | |
1437 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1438 | esac | |
1439 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1440 | { (exit 1); exit 1; }; } | |
1441 | done | |
1442 | ||
1443 | # There might be people who depend on the old broken behavior: `$host' | |
1444 | # used to hold the argument of --host etc. | |
1445 | # FIXME: To remove some day. | |
1446 | build=$build_alias | |
1447 | host=$host_alias | |
1448 | target=$target_alias | |
1449 | ||
1450 | # FIXME: To remove some day. | |
1451 | if test "x$host_alias" != x; then | |
1452 | if test "x$build_alias" = x; then | |
1453 | cross_compiling=maybe | |
1454 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1455 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1456 | elif test "x$build_alias" != "x$host_alias"; then | |
1457 | cross_compiling=yes | |
1458 | fi | |
1459 | fi | |
1460 | ||
1461 | ac_tool_prefix= | |
1462 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1463 | ||
1464 | test "$silent" = yes && exec 6>/dev/null | |
1465 | ||
1466 | ||
1467 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1468 | ac_ls_di=`ls -di .` && | |
1469 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1470 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 | |
1471 | { (exit 1); exit 1; }; } | |
1472 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1473 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1474 | { (exit 1); exit 1; }; } | |
1475 | ||
1476 | ||
1477 | # Find the source files, if location was not specified. | |
1478 | if test -z "$srcdir"; then | |
1479 | ac_srcdir_defaulted=yes | |
1480 | # Try the directory containing this script, then the parent directory. | |
1481 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1482 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1483 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1484 | X"$as_myself" : 'X\(//\)$' \| \ | |
1485 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1486 | $as_echo X"$as_myself" | | |
1487 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1488 | s//\1/ | |
1489 | q | |
1490 | } | |
1491 | /^X\(\/\/\)[^/].*/{ | |
1492 | s//\1/ | |
1493 | q | |
1494 | } | |
1495 | /^X\(\/\/\)$/{ | |
1496 | s//\1/ | |
1497 | q | |
1498 | } | |
1499 | /^X\(\/\).*/{ | |
1500 | s//\1/ | |
1501 | q | |
1502 | } | |
1503 | s/.*/./; q'` | |
1504 | srcdir=$ac_confdir | |
1505 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1506 | srcdir=.. | |
1507 | fi | |
1508 | else | |
1509 | ac_srcdir_defaulted=no | |
1510 | fi | |
1511 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1512 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1513 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1514 | { (exit 1); exit 1; }; } | |
1515 | fi | |
1516 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1517 | ac_abs_confdir=`( | |
1518 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | |
1519 | { (exit 1); exit 1; }; } | |
1520 | pwd)` | |
1521 | # When building in place, set srcdir=. | |
1522 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1523 | srcdir=. | |
1524 | fi | |
1525 | # Remove unnecessary trailing slashes from srcdir. | |
1526 | # Double slashes in file names in object file debugging info | |
1527 | # mess up M-x gdb in Emacs. | |
1528 | case $srcdir in | |
1529 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1530 | esac | |
1531 | for ac_var in $ac_precious_vars; do | |
1532 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1533 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1534 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1535 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1536 | done | |
1537 | ||
1538 | # | |
1539 | # Report the --help message. | |
1540 | # | |
1541 | if test "$ac_init_help" = "long"; then | |
1542 | # Omit some internal or obsolete options to make the list less imposing. | |
1543 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1544 | cat <<_ACEOF | |
1545 | \`configure' configures this package to adapt to many kinds of systems. | |
1546 | ||
1547 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1548 | ||
1549 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1550 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1551 | ||
1552 | Defaults for the options are specified in brackets. | |
1553 | ||
1554 | Configuration: | |
1555 | -h, --help display this help and exit | |
1556 | --help=short display options specific to this package | |
1557 | --help=recursive display the short help of all the included packages | |
1558 | -V, --version display version information and exit | |
1559 | -q, --quiet, --silent do not print \`checking...' messages | |
1560 | --cache-file=FILE cache test results in FILE [disabled] | |
1561 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1562 | -n, --no-create do not create output files | |
1563 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1564 | ||
1565 | Installation directories: | |
1566 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1567 | [$ac_default_prefix] | |
1568 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1569 | [PREFIX] | |
1570 | ||
1571 | By default, \`make install' will install all the files in | |
1572 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1573 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1574 | for instance \`--prefix=\$HOME'. | |
1575 | ||
1576 | For better control, use the options below. | |
1577 | ||
1578 | Fine tuning of the installation directories: | |
1579 | --bindir=DIR user executables [EPREFIX/bin] | |
1580 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1581 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1582 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1583 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1584 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1585 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1586 | --includedir=DIR C header files [PREFIX/include] | |
1587 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1588 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1589 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1590 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1591 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1592 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1593 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1594 | --htmldir=DIR html documentation [DOCDIR] | |
1595 | --dvidir=DIR dvi documentation [DOCDIR] | |
1596 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1597 | --psdir=DIR ps documentation [DOCDIR] | |
1598 | _ACEOF | |
1599 | ||
1600 | cat <<\_ACEOF | |
1601 | ||
1602 | Program names: | |
1603 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1604 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1605 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1606 | ||
1607 | System types: | |
1608 | --build=BUILD configure for building on BUILD [guessed] | |
1609 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1610 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1611 | _ACEOF | |
1612 | fi | |
1613 | ||
1614 | if test -n "$ac_init_help"; then | |
1615 | ||
1616 | cat <<\_ACEOF | |
1617 | ||
1618 | Optional Features: | |
1619 | --disable-option-checking ignore unrecognized --enable/--with options | |
1620 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1621 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1622 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1623 | (and sometimes confusing) to the casual installer | |
1624 | --enable-silent-rules less verbose build output (undo: `make V=1') | |
1625 | --disable-silent-rules verbose build output (undo: `make V=0') | |
1626 | --disable-dependency-tracking speeds up one-time build | |
1627 | --enable-dependency-tracking do not reject slow dependency extractors | |
1628 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1629 | --enable-static[=PKGS] build static libraries [default=yes] | |
1630 | --enable-fast-install[=PKGS] | |
1631 | optimize for fast installation [default=yes] | |
1632 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1633 | --enable-debug Enable generic debug support [default=no] | |
1634 | ||
1635 | Optional Packages: | |
1636 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1637 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1638 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1639 | both] | |
1640 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1641 | --with-config=CONFIG Config file 'kernel|user|all|srpm' | |
1642 | --with-linux=PATH Path to kernel source | |
1643 | --with-linux-obj=PATH Path to kernel build objects | |
1644 | --with-spl=PATH Path to spl source | |
1645 | --with-spl-obj=PATH Path to spl build objects | |
1646 | --with-blkid support blkid caching [default=check] | |
b3259b6a | 1647 | --with-selinux support selinux [default=check] |
e70e591c BB |
1648 | |
1649 | Some influential environment variables: | |
1650 | CC C compiler command | |
1651 | CFLAGS C compiler flags | |
1652 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1653 | nonstandard directory <lib dir> | |
1654 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1655 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1656 | you have headers in a nonstandard directory <include dir> | |
1657 | CPP C preprocessor | |
1658 | CCAS assembler compiler command (defaults to CC) | |
1659 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1660 | ||
1661 | Use these variables to override the choices made by `configure' or to help | |
1662 | it to find libraries and programs with nonstandard names/locations. | |
1663 | ||
1664 | _ACEOF | |
1665 | ac_status=$? | |
1666 | fi | |
1667 | ||
1668 | if test "$ac_init_help" = "recursive"; then | |
1669 | # If there are subdirs, report their specific --help. | |
1670 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1671 | test -d "$ac_dir" || | |
1672 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1673 | continue | |
1674 | ac_builddir=. | |
1675 | ||
1676 | case "$ac_dir" in | |
1677 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1678 | *) | |
1679 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1680 | # A ".." for each directory in $ac_dir_suffix. | |
1681 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1682 | case $ac_top_builddir_sub in | |
1683 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1684 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1685 | esac ;; | |
1686 | esac | |
1687 | ac_abs_top_builddir=$ac_pwd | |
1688 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1689 | # for backward compatibility: | |
1690 | ac_top_builddir=$ac_top_build_prefix | |
1691 | ||
1692 | case $srcdir in | |
1693 | .) # We are building in place. | |
1694 | ac_srcdir=. | |
1695 | ac_top_srcdir=$ac_top_builddir_sub | |
1696 | ac_abs_top_srcdir=$ac_pwd ;; | |
1697 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1698 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1699 | ac_top_srcdir=$srcdir | |
1700 | ac_abs_top_srcdir=$srcdir ;; | |
1701 | *) # Relative name. | |
1702 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1703 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1704 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1705 | esac | |
1706 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1707 | ||
1708 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1709 | # Check for guested configure. | |
1710 | if test -f "$ac_srcdir/configure.gnu"; then | |
1711 | echo && | |
1712 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1713 | elif test -f "$ac_srcdir/configure"; then | |
1714 | echo && | |
1715 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1716 | else | |
1717 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1718 | fi || ac_status=$? | |
1719 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1720 | done | |
1721 | fi | |
1722 | ||
1723 | test -n "$ac_init_help" && exit $ac_status | |
1724 | if $ac_init_version; then | |
1725 | cat <<\_ACEOF | |
1726 | configure | |
1727 | generated by GNU Autoconf 2.63 | |
1728 | ||
1729 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1730 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
1731 | This configure script is free software; the Free Software Foundation | |
1732 | gives unlimited permission to copy, distribute and modify it. | |
1733 | _ACEOF | |
1734 | exit | |
1735 | fi | |
1736 | cat >config.log <<_ACEOF | |
1737 | This file contains any messages produced by compilers while | |
1738 | running configure, to aid debugging if configure makes a mistake. | |
1739 | ||
1740 | It was created by $as_me, which was | |
1741 | generated by GNU Autoconf 2.63. Invocation command line was | |
1742 | ||
1743 | $ $0 $@ | |
1744 | ||
1745 | _ACEOF | |
1746 | exec 5>>config.log | |
1747 | { | |
1748 | cat <<_ASUNAME | |
1749 | ## --------- ## | |
1750 | ## Platform. ## | |
1751 | ## --------- ## | |
1752 | ||
1753 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1754 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1755 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1756 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1757 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1758 | ||
1759 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1760 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1761 | ||
1762 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1763 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1764 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1765 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1766 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1767 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1768 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1769 | ||
1770 | _ASUNAME | |
1771 | ||
1772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1773 | for as_dir in $PATH | |
1774 | do | |
1775 | IFS=$as_save_IFS | |
1776 | test -z "$as_dir" && as_dir=. | |
1777 | $as_echo "PATH: $as_dir" | |
1778 | done | |
1779 | IFS=$as_save_IFS | |
1780 | ||
1781 | } >&5 | |
1782 | ||
1783 | cat >&5 <<_ACEOF | |
1784 | ||
1785 | ||
1786 | ## ----------- ## | |
1787 | ## Core tests. ## | |
1788 | ## ----------- ## | |
1789 | ||
1790 | _ACEOF | |
1791 | ||
1792 | ||
1793 | # Keep a trace of the command line. | |
1794 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1795 | # Strip out --silent because we don't want to record it for future runs. | |
1796 | # Also quote any args containing shell meta-characters. | |
1797 | # Make two passes to allow for proper duplicate-argument suppression. | |
1798 | ac_configure_args= | |
1799 | ac_configure_args0= | |
1800 | ac_configure_args1= | |
1801 | ac_must_keep_next=false | |
1802 | for ac_pass in 1 2 | |
1803 | do | |
1804 | for ac_arg | |
1805 | do | |
1806 | case $ac_arg in | |
1807 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1808 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1809 | | -silent | --silent | --silen | --sile | --sil) | |
1810 | continue ;; | |
1811 | *\'*) | |
1812 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1813 | esac | |
1814 | case $ac_pass in | |
1815 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1816 | 2) | |
1817 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1818 | if test $ac_must_keep_next = true; then | |
1819 | ac_must_keep_next=false # Got value, back to normal. | |
1820 | else | |
1821 | case $ac_arg in | |
1822 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1823 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1824 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1825 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1826 | case "$ac_configure_args0 " in | |
1827 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1828 | esac | |
1829 | ;; | |
1830 | -* ) ac_must_keep_next=true ;; | |
1831 | esac | |
1832 | fi | |
1833 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
1834 | ;; | |
1835 | esac | |
1836 | done | |
1837 | done | |
1838 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1839 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1840 | ||
1841 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1842 | # config.log. We remove comments because anyway the quotes in there | |
1843 | # would cause problems or look ugly. | |
1844 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1845 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1846 | trap 'exit_status=$? | |
1847 | # Save into config.log some information that might help in debugging. | |
1848 | { | |
1849 | echo | |
1850 | ||
1851 | cat <<\_ASBOX | |
1852 | ## ---------------- ## | |
1853 | ## Cache variables. ## | |
1854 | ## ---------------- ## | |
1855 | _ASBOX | |
1856 | echo | |
1857 | # The following way of writing the cache mishandles newlines in values, | |
1858 | ( | |
1859 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1860 | eval ac_val=\$$ac_var | |
1861 | case $ac_val in #( | |
1862 | *${as_nl}*) | |
1863 | case $ac_var in #( | |
1864 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
1865 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1866 | esac | |
1867 | case $ac_var in #( | |
1868 | _ | IFS | as_nl) ;; #( | |
1869 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1870 | *) $as_unset $ac_var ;; | |
1871 | esac ;; | |
1872 | esac | |
1873 | done | |
1874 | (set) 2>&1 | | |
1875 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1876 | *${as_nl}ac_space=\ *) | |
1877 | sed -n \ | |
1878 | "s/'\''/'\''\\\\'\'''\''/g; | |
1879 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1880 | ;; #( | |
1881 | *) | |
1882 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1883 | ;; | |
1884 | esac | | |
1885 | sort | |
1886 | ) | |
1887 | echo | |
1888 | ||
1889 | cat <<\_ASBOX | |
1890 | ## ----------------- ## | |
1891 | ## Output variables. ## | |
1892 | ## ----------------- ## | |
1893 | _ASBOX | |
1894 | echo | |
1895 | for ac_var in $ac_subst_vars | |
1896 | do | |
1897 | eval ac_val=\$$ac_var | |
1898 | case $ac_val in | |
1899 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1900 | esac | |
1901 | $as_echo "$ac_var='\''$ac_val'\''" | |
1902 | done | sort | |
1903 | echo | |
1904 | ||
1905 | if test -n "$ac_subst_files"; then | |
1906 | cat <<\_ASBOX | |
1907 | ## ------------------- ## | |
1908 | ## File substitutions. ## | |
1909 | ## ------------------- ## | |
1910 | _ASBOX | |
1911 | echo | |
1912 | for ac_var in $ac_subst_files | |
1913 | do | |
1914 | eval ac_val=\$$ac_var | |
1915 | case $ac_val in | |
1916 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1917 | esac | |
1918 | $as_echo "$ac_var='\''$ac_val'\''" | |
1919 | done | sort | |
1920 | echo | |
1921 | fi | |
1922 | ||
1923 | if test -s confdefs.h; then | |
1924 | cat <<\_ASBOX | |
1925 | ## ----------- ## | |
1926 | ## confdefs.h. ## | |
1927 | ## ----------- ## | |
1928 | _ASBOX | |
1929 | echo | |
1930 | cat confdefs.h | |
1931 | echo | |
1932 | fi | |
1933 | test "$ac_signal" != 0 && | |
1934 | $as_echo "$as_me: caught signal $ac_signal" | |
1935 | $as_echo "$as_me: exit $exit_status" | |
1936 | } >&5 | |
1937 | rm -f core *.core core.conftest.* && | |
1938 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1939 | exit $exit_status | |
1940 | ' 0 | |
1941 | for ac_signal in 1 2 13 15; do | |
1942 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1943 | done | |
1944 | ac_signal=0 | |
1945 | ||
1946 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1947 | rm -f -r conftest* confdefs.h | |
1948 | ||
1949 | # Predefined preprocessor variables. | |
1950 | ||
1951 | cat >>confdefs.h <<_ACEOF | |
1952 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1953 | _ACEOF | |
1954 | ||
1955 | ||
1956 | cat >>confdefs.h <<_ACEOF | |
1957 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1958 | _ACEOF | |
1959 | ||
1960 | ||
1961 | cat >>confdefs.h <<_ACEOF | |
1962 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1963 | _ACEOF | |
1964 | ||
1965 | ||
1966 | cat >>confdefs.h <<_ACEOF | |
1967 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1968 | _ACEOF | |
1969 | ||
1970 | ||
1971 | cat >>confdefs.h <<_ACEOF | |
1972 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1973 | _ACEOF | |
1974 | ||
1975 | ||
1976 | # Let the site file select an alternate cache file if it wants to. | |
1977 | # Prefer an explicitly selected file to automatically selected ones. | |
1978 | ac_site_file1=NONE | |
1979 | ac_site_file2=NONE | |
1980 | if test -n "$CONFIG_SITE"; then | |
1981 | ac_site_file1=$CONFIG_SITE | |
1982 | elif test "x$prefix" != xNONE; then | |
1983 | ac_site_file1=$prefix/share/config.site | |
1984 | ac_site_file2=$prefix/etc/config.site | |
1985 | else | |
1986 | ac_site_file1=$ac_default_prefix/share/config.site | |
1987 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1988 | fi | |
1989 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1990 | do | |
1991 | test "x$ac_site_file" = xNONE && continue | |
1992 | if test -r "$ac_site_file"; then | |
1993 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1994 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1995 | sed 's/^/| /' "$ac_site_file" >&5 | |
1996 | . "$ac_site_file" | |
1997 | fi | |
1998 | done | |
1999 | ||
2000 | if test -r "$cache_file"; then | |
2001 | # Some versions of bash will fail to source /dev/null (special | |
2002 | # files actually), so we avoid doing that. | |
2003 | if test -f "$cache_file"; then | |
2004 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
2005 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2006 | case $cache_file in | |
2007 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2008 | *) . "./$cache_file";; | |
2009 | esac | |
2010 | fi | |
2011 | else | |
2012 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
2013 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2014 | >$cache_file | |
2015 | fi | |
2016 | ||
2017 | # Check that the precious variables saved in the cache have kept the same | |
2018 | # value. | |
2019 | ac_cache_corrupted=false | |
2020 | for ac_var in $ac_precious_vars; do | |
2021 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2022 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2023 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2024 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2025 | case $ac_old_set,$ac_new_set in | |
2026 | set,) | |
2027 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2028 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2029 | ac_cache_corrupted=: ;; | |
2030 | ,set) | |
2031 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
2032 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2033 | ac_cache_corrupted=: ;; | |
2034 | ,);; | |
2035 | *) | |
2036 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2037 | # differences in whitespace do not lead to failure. | |
2038 | ac_old_val_w=`echo x $ac_old_val` | |
2039 | ac_new_val_w=`echo x $ac_new_val` | |
2040 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2041 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2042 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2043 | ac_cache_corrupted=: | |
2044 | else | |
2045 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2046 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2047 | eval $ac_var=\$ac_old_val | |
2048 | fi | |
2049 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2050 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2051 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2052 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2053 | fi;; | |
2054 | esac | |
2055 | # Pass precious variables to config.status. | |
2056 | if test "$ac_new_set" = set; then | |
2057 | case $ac_new_val in | |
2058 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2059 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2060 | esac | |
2061 | case " $ac_configure_args " in | |
2062 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2063 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2064 | esac | |
2065 | fi | |
2066 | done | |
2067 | if $ac_cache_corrupted; then | |
2068 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2069 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2070 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2071 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2072 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2073 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
2074 | { (exit 1); exit 1; }; } | |
2075 | fi | |
2076 | ||
2077 | ||
2078 | ||
2079 | ||
2080 | ||
2081 | ||
2082 | ||
2083 | ||
2084 | ||
2085 | ||
2086 | ||
2087 | ||
2088 | ||
2089 | ||
2090 | ||
2091 | ||
2092 | ||
2093 | ac_ext=c | |
2094 | ac_cpp='$CPP $CPPFLAGS' | |
2095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2098 | ||
2099 | ||
2100 | ac_ext=c | |
2101 | ac_cpp='$CPP $CPPFLAGS' | |
2102 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2103 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2104 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2105 | ||
2106 | ||
2107 | ||
2108 | ||
2109 | ||
2110 | ||
2111 | { $as_echo "$as_me:$LINENO: checking metadata" >&5 | |
2112 | $as_echo_n "checking metadata... " >&6; } | |
2113 | ||
2114 | META="$srcdir/META" | |
2115 | _zfs_ac_meta_got_file=no | |
2116 | if test -f "$META"; then | |
2117 | _zfs_ac_meta_got_file=yes | |
2118 | ||
2119 | ZFS_META_NAME=`perl -n\ | |
2120 | -e "BEGIN { \\$key=shift @ARGV; }"\ | |
2121 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2122 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2123 | -e "s/^\s+//;"\ | |
2124 | -e "s/\s+$//;"\ | |
2125 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2126 | -e "\\$val=\\$_;"\ | |
2127 | -e "END { print \\$val if defined \\$val; }"\ | |
2128 | '(?:NAME|PROJECT|PACKAGE)' $META`; | |
2129 | if test -n "$ZFS_META_NAME"; then | |
2130 | ||
2131 | cat >>confdefs.h <<_ACEOF | |
2132 | #define ZFS_META_NAME "$ZFS_META_NAME" | |
2133 | _ACEOF | |
2134 | ||
2135 | ||
2136 | fi | |
2137 | ||
2138 | ZFS_META_VERSION=`perl -n\ | |
2139 | -e "BEGIN { \\$key=shift @ARGV; }"\ | |
2140 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2141 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2142 | -e "s/^\s+//;"\ | |
2143 | -e "s/\s+$//;"\ | |
2144 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2145 | -e "\\$val=\\$_;"\ | |
2146 | -e "END { print \\$val if defined \\$val; }"\ | |
2147 | 'VERSION' $META`; | |
2148 | if test -n "$ZFS_META_VERSION"; then | |
2149 | ||
2150 | cat >>confdefs.h <<_ACEOF | |
2151 | #define ZFS_META_VERSION "$ZFS_META_VERSION" | |
2152 | _ACEOF | |
2153 | ||
2154 | ||
2155 | fi | |
2156 | ||
2157 | ZFS_META_RELEASE=`perl -n\ | |
2158 | -e "BEGIN { \\$key=shift @ARGV; }"\ | |
2159 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2160 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2161 | -e "s/^\s+//;"\ | |
2162 | -e "s/\s+$//;"\ | |
2163 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2164 | -e "\\$val=\\$_;"\ | |
2165 | -e "END { print \\$val if defined \\$val; }"\ | |
2166 | 'RELEASE' $META`; | |
2167 | if test -n "$ZFS_META_RELEASE"; then | |
2168 | ||
2169 | cat >>confdefs.h <<_ACEOF | |
2170 | #define ZFS_META_RELEASE "$ZFS_META_RELEASE" | |
2171 | _ACEOF | |
2172 | ||
2173 | ||
2174 | fi | |
2175 | ||
2176 | ZFS_META_LICENSE=`perl -n\ | |
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 | 'LICENSE' $META`; | |
2186 | if test -n "$ZFS_META_LICENSE"; then | |
2187 | ||
2188 | cat >>confdefs.h <<_ACEOF | |
2189 | #define ZFS_META_LICENSE "$ZFS_META_LICENSE" | |
2190 | _ACEOF | |
2191 | ||
2192 | ||
2193 | fi | |
2194 | ||
2195 | if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then | |
2196 | ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION" | |
2197 | test -n "$ZFS_META_RELEASE" && | |
2198 | ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE" | |
2199 | ||
2200 | cat >>confdefs.h <<_ACEOF | |
2201 | #define ZFS_META_ALIAS "$ZFS_META_ALIAS" | |
2202 | _ACEOF | |
2203 | ||
2204 | ||
2205 | fi | |
2206 | ||
2207 | ZFS_META_DATA=`perl -n\ | |
2208 | -e "BEGIN { \\$key=shift @ARGV; }"\ | |
2209 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2210 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2211 | -e "s/^\s+//;"\ | |
2212 | -e "s/\s+$//;"\ | |
2213 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2214 | -e "\\$val=\\$_;"\ | |
2215 | -e "END { print \\$val if defined \\$val; }"\ | |
2216 | 'DATE' $META`; | |
2217 | if test -n "$ZFS_META_DATA"; then | |
2218 | ||
2219 | cat >>confdefs.h <<_ACEOF | |
2220 | #define ZFS_META_DATA "$ZFS_META_DATA" | |
2221 | _ACEOF | |
2222 | ||
2223 | ||
2224 | fi | |
2225 | ||
2226 | ZFS_META_AUTHOR=`perl -n\ | |
2227 | -e "BEGIN { \\$key=shift @ARGV; }"\ | |
2228 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2229 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2230 | -e "s/^\s+//;"\ | |
2231 | -e "s/\s+$//;"\ | |
2232 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2233 | -e "\\$val=\\$_;"\ | |
2234 | -e "END { print \\$val if defined \\$val; }"\ | |
2235 | 'AUTHOR' $META`; | |
2236 | if test -n "$ZFS_META_AUTHOR"; then | |
2237 | ||
2238 | cat >>confdefs.h <<_ACEOF | |
2239 | #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR" | |
2240 | _ACEOF | |
2241 | ||
2242 | ||
2243 | fi | |
2244 | ||
2245 | ||
2246 | ZFS_META_LT_CURRENT=`perl -n\ | |
2247 | -e "BEGIN { \\$key=shift @ARGV; }"\ | |
2248 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2249 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2250 | -e "s/^\s+//;"\ | |
2251 | -e "s/\s+$//;"\ | |
2252 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2253 | -e "\\$val=\\$_;"\ | |
2254 | -e "END { print \\$val if defined \\$val; }"\ | |
2255 | 'LT_CURRENT' $META`; | |
2256 | ZFS_META_LT_REVISION=`perl -n\ | |
2257 | -e "BEGIN { \\$key=shift @ARGV; }"\ | |
2258 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2259 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2260 | -e "s/^\s+//;"\ | |
2261 | -e "s/\s+$//;"\ | |
2262 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2263 | -e "\\$val=\\$_;"\ | |
2264 | -e "END { print \\$val if defined \\$val; }"\ | |
2265 | 'LT_REVISION' $META`; | |
2266 | ZFS_META_LT_AGE=`perl -n\ | |
2267 | -e "BEGIN { \\$key=shift @ARGV; }"\ | |
2268 | -e "next unless s/^\s*\\$key[:=]//i;"\ | |
2269 | -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\ | |
2270 | -e "s/^\s+//;"\ | |
2271 | -e "s/\s+$//;"\ | |
2272 | -e "s/^(['\"])(.*)\1/\\$2/;"\ | |
2273 | -e "\\$val=\\$_;"\ | |
2274 | -e "END { print \\$val if defined \\$val; }"\ | |
2275 | 'LT_AGE' $META`; | |
2276 | if test -n "$ZFS_META_LT_CURRENT" \ | |
2277 | -o -n "$ZFS_META_LT_REVISION" \ | |
2278 | -o -n "$ZFS_META_LT_AGE"; then | |
2279 | test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0" | |
2280 | test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0" | |
2281 | test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0" | |
2282 | ||
2283 | cat >>confdefs.h <<_ACEOF | |
2284 | #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT" | |
2285 | _ACEOF | |
2286 | ||
2287 | ||
2288 | cat >>confdefs.h <<_ACEOF | |
2289 | #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION" | |
2290 | _ACEOF | |
2291 | ||
2292 | ||
2293 | cat >>confdefs.h <<_ACEOF | |
2294 | #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE" | |
2295 | _ACEOF | |
2296 | ||
2297 | ||
2298 | ||
2299 | ||
2300 | fi | |
2301 | fi | |
2302 | ||
2303 | { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5 | |
2304 | $as_echo "$_zfs_ac_meta_got_file" >&6; } | |
2305 | ||
2306 | ||
2307 | ac_aux_dir= | |
2308 | for ac_dir in config "$srcdir"/config; do | |
2309 | if test -f "$ac_dir/install-sh"; then | |
2310 | ac_aux_dir=$ac_dir | |
2311 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2312 | break | |
2313 | elif test -f "$ac_dir/install.sh"; then | |
2314 | ac_aux_dir=$ac_dir | |
2315 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2316 | break | |
2317 | elif test -f "$ac_dir/shtool"; then | |
2318 | ac_aux_dir=$ac_dir | |
2319 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2320 | break | |
2321 | fi | |
2322 | done | |
2323 | if test -z "$ac_aux_dir"; then | |
2324 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 | |
2325 | $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} | |
2326 | { (exit 1); exit 1; }; } | |
2327 | fi | |
2328 | ||
2329 | # These three variables are undocumented and unsupported, | |
2330 | # and are intended to be withdrawn in a future Autoconf release. | |
2331 | # They can cause serious problems if a builder's source tree is in a directory | |
2332 | # whose full name contains unusual characters. | |
2333 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2334 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2335 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2336 | ||
2337 | ||
2338 | # Make sure we can run config.sub. | |
2339 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2340 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2341 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
2342 | { (exit 1); exit 1; }; } | |
2343 | ||
2344 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 | |
2345 | $as_echo_n "checking build system type... " >&6; } | |
2346 | if test "${ac_cv_build+set}" = set; then | |
2347 | $as_echo_n "(cached) " >&6 | |
2348 | else | |
2349 | ac_build_alias=$build_alias | |
2350 | test "x$ac_build_alias" = x && | |
2351 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2352 | test "x$ac_build_alias" = x && | |
2353 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2354 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2355 | { (exit 1); exit 1; }; } | |
2356 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2357 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2358 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
2359 | { (exit 1); exit 1; }; } | |
2360 | ||
2361 | fi | |
2362 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2363 | $as_echo "$ac_cv_build" >&6; } | |
2364 | case $ac_cv_build in | |
2365 | *-*-*) ;; | |
2366 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2367 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
2368 | { (exit 1); exit 1; }; };; | |
2369 | esac | |
2370 | build=$ac_cv_build | |
2371 | ac_save_IFS=$IFS; IFS='-' | |
2372 | set x $ac_cv_build | |
2373 | shift | |
2374 | build_cpu=$1 | |
2375 | build_vendor=$2 | |
2376 | shift; shift | |
2377 | # Remember, the first character of IFS is used to create $*, | |
2378 | # except with old shells: | |
2379 | build_os=$* | |
2380 | IFS=$ac_save_IFS | |
2381 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2382 | ||
2383 | ||
2384 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 | |
2385 | $as_echo_n "checking host system type... " >&6; } | |
2386 | if test "${ac_cv_host+set}" = set; then | |
2387 | $as_echo_n "(cached) " >&6 | |
2388 | else | |
2389 | if test "x$host_alias" = x; then | |
2390 | ac_cv_host=$ac_cv_build | |
2391 | else | |
2392 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2393 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2394 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
2395 | { (exit 1); exit 1; }; } | |
2396 | fi | |
2397 | ||
2398 | fi | |
2399 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2400 | $as_echo "$ac_cv_host" >&6; } | |
2401 | case $ac_cv_host in | |
2402 | *-*-*) ;; | |
2403 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2404 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
2405 | { (exit 1); exit 1; }; };; | |
2406 | esac | |
2407 | host=$ac_cv_host | |
2408 | ac_save_IFS=$IFS; IFS='-' | |
2409 | set x $ac_cv_host | |
2410 | shift | |
2411 | host_cpu=$1 | |
2412 | host_vendor=$2 | |
2413 | shift; shift | |
2414 | # Remember, the first character of IFS is used to create $*, | |
2415 | # except with old shells: | |
2416 | host_os=$* | |
2417 | IFS=$ac_save_IFS | |
2418 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2419 | ||
2420 | ||
2421 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 | |
2422 | $as_echo_n "checking target system type... " >&6; } | |
2423 | if test "${ac_cv_target+set}" = set; then | |
2424 | $as_echo_n "(cached) " >&6 | |
2425 | else | |
2426 | if test "x$target_alias" = x; then | |
2427 | ac_cv_target=$ac_cv_host | |
2428 | else | |
2429 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2430 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
2431 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
2432 | { (exit 1); exit 1; }; } | |
2433 | fi | |
2434 | ||
2435 | fi | |
2436 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
2437 | $as_echo "$ac_cv_target" >&6; } | |
2438 | case $ac_cv_target in | |
2439 | *-*-*) ;; | |
2440 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
2441 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
2442 | { (exit 1); exit 1; }; };; | |
2443 | esac | |
2444 | target=$ac_cv_target | |
2445 | ac_save_IFS=$IFS; IFS='-' | |
2446 | set x $ac_cv_target | |
2447 | shift | |
2448 | target_cpu=$1 | |
2449 | target_vendor=$2 | |
2450 | shift; shift | |
2451 | # Remember, the first character of IFS is used to create $*, | |
2452 | # except with old shells: | |
2453 | target_os=$* | |
2454 | IFS=$ac_save_IFS | |
2455 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2456 | ||
2457 | ||
2458 | # The aliases save the names the user supplied, while $host etc. | |
2459 | # will get canonicalized. | |
2460 | test -n "$target_alias" && | |
2461 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2462 | NONENONEs,x,x, && | |
2463 | program_prefix=${target_alias}- | |
2464 | ||
2465 | { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2466 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2467 | # Check whether --enable-maintainer-mode was given. | |
2468 | if test "${enable_maintainer_mode+set}" = set; then | |
2469 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2470 | else | |
2471 | USE_MAINTAINER_MODE=no | |
2472 | fi | |
2473 | ||
2474 | { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2475 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2476 | if test $USE_MAINTAINER_MODE = yes; then | |
2477 | MAINTAINER_MODE_TRUE= | |
2478 | MAINTAINER_MODE_FALSE='#' | |
2479 | else | |
2480 | MAINTAINER_MODE_TRUE='#' | |
2481 | MAINTAINER_MODE_FALSE= | |
2482 | fi | |
2483 | ||
2484 | MAINT=$MAINTAINER_MODE_TRUE | |
2485 | ||
2486 | ||
2487 | # Check whether --enable-silent-rules was given. | |
2488 | if test "${enable_silent_rules+set}" = set; then | |
2489 | enableval=$enable_silent_rules; | |
2490 | fi | |
2491 | ||
2492 | case $enable_silent_rules in | |
2493 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2494 | no) AM_DEFAULT_VERBOSITY=1;; | |
2495 | *) AM_DEFAULT_VERBOSITY=1;; | |
2496 | esac | |
2497 | AM_BACKSLASH='\' | |
2498 | ||
2499 | am__api_version='1.11' | |
2500 | ||
2501 | # Find a good install program. We prefer a C program (faster), | |
2502 | # so one script is as good as another. But avoid the broken or | |
2503 | # incompatible versions: | |
2504 | # SysV /etc/install, /usr/sbin/install | |
2505 | # SunOS /usr/etc/install | |
2506 | # IRIX /sbin/install | |
2507 | # AIX /bin/install | |
2508 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2509 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2510 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2511 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2512 | # OS/2's system install, which has a completely different semantic | |
2513 | # ./install, which can be erroneously created by make from ./install.sh. | |
2514 | # Reject install programs that cannot install multiple files. | |
2515 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2516 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2517 | if test -z "$INSTALL"; then | |
2518 | if test "${ac_cv_path_install+set}" = set; then | |
2519 | $as_echo_n "(cached) " >&6 | |
2520 | else | |
2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2522 | for as_dir in $PATH | |
2523 | do | |
2524 | IFS=$as_save_IFS | |
2525 | test -z "$as_dir" && as_dir=. | |
2526 | # Account for people who put trailing slashes in PATH elements. | |
2527 | case $as_dir/ in | |
2528 | ./ | .// | /cC/* | \ | |
2529 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2530 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2531 | /usr/ucb/* ) ;; | |
2532 | *) | |
2533 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2534 | # Don't use installbsd from OSF since it installs stuff as root | |
2535 | # by default. | |
2536 | for ac_prog in ginstall scoinst install; do | |
2537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2538 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2539 | if test $ac_prog = install && | |
2540 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2541 | # AIX install. It has an incompatible calling convention. | |
2542 | : | |
2543 | elif test $ac_prog = install && | |
2544 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2545 | # program-specific install script used by HP pwplus--don't use. | |
2546 | : | |
2547 | else | |
2548 | rm -rf conftest.one conftest.two conftest.dir | |
2549 | echo one > conftest.one | |
2550 | echo two > conftest.two | |
2551 | mkdir conftest.dir | |
2552 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2553 | test -s conftest.one && test -s conftest.two && | |
2554 | test -s conftest.dir/conftest.one && | |
2555 | test -s conftest.dir/conftest.two | |
2556 | then | |
2557 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2558 | break 3 | |
2559 | fi | |
2560 | fi | |
2561 | fi | |
2562 | done | |
2563 | done | |
2564 | ;; | |
2565 | esac | |
2566 | ||
2567 | done | |
2568 | IFS=$as_save_IFS | |
2569 | ||
2570 | rm -rf conftest.one conftest.two conftest.dir | |
2571 | ||
2572 | fi | |
2573 | if test "${ac_cv_path_install+set}" = set; then | |
2574 | INSTALL=$ac_cv_path_install | |
2575 | else | |
2576 | # As a last resort, use the slow shell script. Don't cache a | |
2577 | # value for INSTALL within a source directory, because that will | |
2578 | # break other packages using the cache if that directory is | |
2579 | # removed, or if the value is a relative name. | |
2580 | INSTALL=$ac_install_sh | |
2581 | fi | |
2582 | fi | |
2583 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2584 | $as_echo "$INSTALL" >&6; } | |
2585 | ||
2586 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2587 | # It thinks the first close brace ends the variable substitution. | |
2588 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2589 | ||
2590 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2591 | ||
2592 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2593 | ||
2594 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
2595 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2596 | # Just in case | |
2597 | sleep 1 | |
2598 | echo timestamp > conftest.file | |
2599 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2600 | # name. Accept space and tab only in the latter. | |
2601 | am_lf=' | |
2602 | ' | |
2603 | case `pwd` in | |
2604 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2605 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 | |
2606 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} | |
2607 | { (exit 1); exit 1; }; };; | |
2608 | esac | |
2609 | case $srcdir in | |
2610 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2611 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 | |
2612 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} | |
2613 | { (exit 1); exit 1; }; };; | |
2614 | esac | |
2615 | ||
2616 | # Do `set' in a subshell so we don't clobber the current shell's | |
2617 | # arguments. Must try -L first in case configure is actually a | |
2618 | # symlink; some systems play weird games with the mod time of symlinks | |
2619 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2620 | # directory). | |
2621 | if ( | |
2622 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2623 | if test "$*" = "X"; then | |
2624 | # -L didn't work. | |
2625 | set X `ls -t "$srcdir/configure" conftest.file` | |
2626 | fi | |
2627 | rm -f conftest.file | |
2628 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2629 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2630 | ||
2631 | # If neither matched, then we have a broken ls. This can happen | |
2632 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2633 | # broken ls alias from the environment. This has actually | |
2634 | # happened. Such a system could not be considered "sane". | |
2635 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2636 | alias in your environment" >&5 | |
2637 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2638 | alias in your environment" >&2;} | |
2639 | { (exit 1); exit 1; }; } | |
2640 | fi | |
2641 | ||
2642 | test "$2" = conftest.file | |
2643 | ) | |
2644 | then | |
2645 | # Ok. | |
2646 | : | |
2647 | else | |
2648 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2649 | Check your system clock" >&5 | |
2650 | $as_echo "$as_me: error: newly created file is older than distributed files! | |
2651 | Check your system clock" >&2;} | |
2652 | { (exit 1); exit 1; }; } | |
2653 | fi | |
2654 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2655 | $as_echo "yes" >&6; } | |
2656 | test "$program_prefix" != NONE && | |
2657 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2658 | # Use a double $ so make ignores it. | |
2659 | test "$program_suffix" != NONE && | |
2660 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2661 | # Double any \ or $. | |
2662 | # By default was `s,x,x', remove it if useless. | |
2663 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2664 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2665 | ||
2666 | # expand $ac_aux_dir to an absolute path | |
2667 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2668 | ||
2669 | if test x"${MISSING+set}" != xset; then | |
2670 | case $am_aux_dir in | |
2671 | *\ * | *\ *) | |
2672 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2673 | *) | |
2674 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2675 | esac | |
2676 | fi | |
2677 | # Use eval to expand $SHELL | |
2678 | if eval "$MISSING --run true"; then | |
2679 | am_missing_run="$MISSING --run " | |
2680 | else | |
2681 | am_missing_run= | |
2682 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2683 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2684 | fi | |
2685 | ||
2686 | if test x"${install_sh}" != xset; then | |
2687 | case $am_aux_dir in | |
2688 | *\ * | *\ *) | |
2689 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2690 | *) | |
2691 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2692 | esac | |
2693 | fi | |
2694 | ||
2695 | # Installed binaries are usually stripped using `strip' when the user | |
2696 | # run `make install-strip'. However `strip' might not be the right | |
2697 | # tool to use in cross-compilation environments, therefore Automake | |
2698 | # will honor the `STRIP' environment variable to overrule this program. | |
2699 | if test "$cross_compiling" != no; then | |
2700 | if test -n "$ac_tool_prefix"; then | |
2701 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2702 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2703 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2704 | $as_echo_n "checking for $ac_word... " >&6; } | |
2705 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2706 | $as_echo_n "(cached) " >&6 | |
2707 | else | |
2708 | if test -n "$STRIP"; then | |
2709 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2710 | else | |
2711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2712 | for as_dir in $PATH | |
2713 | do | |
2714 | IFS=$as_save_IFS | |
2715 | test -z "$as_dir" && as_dir=. | |
2716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2718 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2719 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2720 | break 2 | |
2721 | fi | |
2722 | done | |
2723 | done | |
2724 | IFS=$as_save_IFS | |
2725 | ||
2726 | fi | |
2727 | fi | |
2728 | STRIP=$ac_cv_prog_STRIP | |
2729 | if test -n "$STRIP"; then | |
2730 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2731 | $as_echo "$STRIP" >&6; } | |
2732 | else | |
2733 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2734 | $as_echo "no" >&6; } | |
2735 | fi | |
2736 | ||
2737 | ||
2738 | fi | |
2739 | if test -z "$ac_cv_prog_STRIP"; then | |
2740 | ac_ct_STRIP=$STRIP | |
2741 | # Extract the first word of "strip", so it can be a program name with args. | |
2742 | set dummy strip; ac_word=$2 | |
2743 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2744 | $as_echo_n "checking for $ac_word... " >&6; } | |
2745 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2746 | $as_echo_n "(cached) " >&6 | |
2747 | else | |
2748 | if test -n "$ac_ct_STRIP"; then | |
2749 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2750 | else | |
2751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2752 | for as_dir in $PATH | |
2753 | do | |
2754 | IFS=$as_save_IFS | |
2755 | test -z "$as_dir" && as_dir=. | |
2756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2758 | ac_cv_prog_ac_ct_STRIP="strip" | |
2759 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2760 | break 2 | |
2761 | fi | |
2762 | done | |
2763 | done | |
2764 | IFS=$as_save_IFS | |
2765 | ||
2766 | fi | |
2767 | fi | |
2768 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2769 | if test -n "$ac_ct_STRIP"; then | |
2770 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2771 | $as_echo "$ac_ct_STRIP" >&6; } | |
2772 | else | |
2773 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2774 | $as_echo "no" >&6; } | |
2775 | fi | |
2776 | ||
2777 | if test "x$ac_ct_STRIP" = x; then | |
2778 | STRIP=":" | |
2779 | else | |
2780 | case $cross_compiling:$ac_tool_warned in | |
2781 | yes:) | |
2782 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2783 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2784 | ac_tool_warned=yes ;; | |
2785 | esac | |
2786 | STRIP=$ac_ct_STRIP | |
2787 | fi | |
2788 | else | |
2789 | STRIP="$ac_cv_prog_STRIP" | |
2790 | fi | |
2791 | ||
2792 | fi | |
2793 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2794 | ||
2795 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | |
2796 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2797 | if test -z "$MKDIR_P"; then | |
2798 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2799 | $as_echo_n "(cached) " >&6 | |
2800 | else | |
2801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2802 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2803 | do | |
2804 | IFS=$as_save_IFS | |
2805 | test -z "$as_dir" && as_dir=. | |
2806 | for ac_prog in mkdir gmkdir; do | |
2807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2808 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2809 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2810 | 'mkdir (GNU coreutils) '* | \ | |
2811 | 'mkdir (coreutils) '* | \ | |
2812 | 'mkdir (fileutils) '4.1*) | |
2813 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2814 | break 3;; | |
2815 | esac | |
2816 | done | |
2817 | done | |
2818 | done | |
2819 | IFS=$as_save_IFS | |
2820 | ||
2821 | fi | |
2822 | ||
2823 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2824 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2825 | else | |
2826 | # As a last resort, use the slow shell script. Don't cache a | |
2827 | # value for MKDIR_P within a source directory, because that will | |
2828 | # break other packages using the cache if that directory is | |
2829 | # removed, or if the value is a relative name. | |
2830 | test -d ./--version && rmdir ./--version | |
2831 | MKDIR_P="$ac_install_sh -d" | |
2832 | fi | |
2833 | fi | |
2834 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | |
2835 | $as_echo "$MKDIR_P" >&6; } | |
2836 | ||
2837 | mkdir_p="$MKDIR_P" | |
2838 | case $mkdir_p in | |
2839 | [\\/$]* | ?:[\\/]*) ;; | |
2840 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2841 | esac | |
2842 | ||
2843 | for ac_prog in gawk mawk nawk awk | |
2844 | do | |
2845 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2846 | set dummy $ac_prog; ac_word=$2 | |
2847 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2848 | $as_echo_n "checking for $ac_word... " >&6; } | |
2849 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2850 | $as_echo_n "(cached) " >&6 | |
2851 | else | |
2852 | if test -n "$AWK"; then | |
2853 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2854 | else | |
2855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2856 | for as_dir in $PATH | |
2857 | do | |
2858 | IFS=$as_save_IFS | |
2859 | test -z "$as_dir" && as_dir=. | |
2860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2862 | ac_cv_prog_AWK="$ac_prog" | |
2863 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2864 | break 2 | |
2865 | fi | |
2866 | done | |
2867 | done | |
2868 | IFS=$as_save_IFS | |
2869 | ||
2870 | fi | |
2871 | fi | |
2872 | AWK=$ac_cv_prog_AWK | |
2873 | if test -n "$AWK"; then | |
2874 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 | |
2875 | $as_echo "$AWK" >&6; } | |
2876 | else | |
2877 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2878 | $as_echo "no" >&6; } | |
2879 | fi | |
2880 | ||
2881 | ||
2882 | test -n "$AWK" && break | |
2883 | done | |
2884 | ||
2885 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2886 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2887 | set x ${MAKE-make} | |
2888 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2889 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2890 | $as_echo_n "(cached) " >&6 | |
2891 | else | |
2892 | cat >conftest.make <<\_ACEOF | |
2893 | SHELL = /bin/sh | |
2894 | all: | |
2895 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2896 | _ACEOF | |
2897 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2898 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2899 | *@@@%%%=?*=@@@%%%*) | |
2900 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2901 | *) | |
2902 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2903 | esac | |
2904 | rm -f conftest.make | |
2905 | fi | |
2906 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2907 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2908 | $as_echo "yes" >&6; } | |
2909 | SET_MAKE= | |
2910 | else | |
2911 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2912 | $as_echo "no" >&6; } | |
2913 | SET_MAKE="MAKE=${MAKE-make}" | |
2914 | fi | |
2915 | ||
2916 | rm -rf .tst 2>/dev/null | |
2917 | mkdir .tst 2>/dev/null | |
2918 | if test -d .tst; then | |
2919 | am__leading_dot=. | |
2920 | else | |
2921 | am__leading_dot=_ | |
2922 | fi | |
2923 | rmdir .tst 2>/dev/null | |
2924 | ||
2925 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2926 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2927 | # is not polluted with repeated "-I." | |
2928 | am__isrc=' -I$(srcdir)' | |
2929 | # test to see if srcdir already configured | |
2930 | if test -f $srcdir/config.status; then | |
2931 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2932 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2933 | { (exit 1); exit 1; }; } | |
2934 | fi | |
2935 | fi | |
2936 | ||
2937 | # test whether we have cygpath | |
2938 | if test -z "$CYGPATH_W"; then | |
2939 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2940 | CYGPATH_W='cygpath -w' | |
2941 | else | |
2942 | CYGPATH_W=echo | |
2943 | fi | |
2944 | fi | |
2945 | ||
2946 | ||
2947 | # Define the identity of the package. | |
2948 | PACKAGE=$ZFS_META_NAME | |
2949 | VERSION=$ZFS_META_VERSION | |
2950 | ||
2951 | ||
2952 | cat >>confdefs.h <<_ACEOF | |
2953 | #define PACKAGE "$PACKAGE" | |
2954 | _ACEOF | |
2955 | ||
2956 | ||
2957 | cat >>confdefs.h <<_ACEOF | |
2958 | #define VERSION "$VERSION" | |
2959 | _ACEOF | |
2960 | ||
2961 | # Some tools Automake needs. | |
2962 | ||
2963 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2964 | ||
2965 | ||
2966 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2967 | ||
2968 | ||
2969 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2970 | ||
2971 | ||
2972 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2973 | ||
2974 | ||
2975 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2976 | ||
2977 | # We need awk for the "check" target. The system "awk" is bad on | |
2978 | # some platforms. | |
2979 | # Always define AMTAR for backward compatibility. | |
2980 | ||
2981 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2982 | ||
2983 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2984 | ||
2985 | ||
2986 | ||
2987 | ||
2988 | ||
2989 | ac_config_headers="$ac_config_headers zfs_config.h" | |
2990 | ||
2991 | ||
2992 | # Find a good install program. We prefer a C program (faster), | |
2993 | # so one script is as good as another. But avoid the broken or | |
2994 | # incompatible versions: | |
2995 | # SysV /etc/install, /usr/sbin/install | |
2996 | # SunOS /usr/etc/install | |
2997 | # IRIX /sbin/install | |
2998 | # AIX /bin/install | |
2999 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3000 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3001 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3002 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3003 | # OS/2's system install, which has a completely different semantic | |
3004 | # ./install, which can be erroneously created by make from ./install.sh. | |
3005 | # Reject install programs that cannot install multiple files. | |
3006 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3007 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3008 | if test -z "$INSTALL"; then | |
3009 | if test "${ac_cv_path_install+set}" = set; then | |
3010 | $as_echo_n "(cached) " >&6 | |
3011 | else | |
3012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3013 | for as_dir in $PATH | |
3014 | do | |
3015 | IFS=$as_save_IFS | |
3016 | test -z "$as_dir" && as_dir=. | |
3017 | # Account for people who put trailing slashes in PATH elements. | |
3018 | case $as_dir/ in | |
3019 | ./ | .// | /cC/* | \ | |
3020 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3021 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3022 | /usr/ucb/* ) ;; | |
3023 | *) | |
3024 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3025 | # Don't use installbsd from OSF since it installs stuff as root | |
3026 | # by default. | |
3027 | for ac_prog in ginstall scoinst install; do | |
3028 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3029 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3030 | if test $ac_prog = install && | |
3031 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3032 | # AIX install. It has an incompatible calling convention. | |
3033 | : | |
3034 | elif test $ac_prog = install && | |
3035 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3036 | # program-specific install script used by HP pwplus--don't use. | |
3037 | : | |
3038 | else | |
3039 | rm -rf conftest.one conftest.two conftest.dir | |
3040 | echo one > conftest.one | |
3041 | echo two > conftest.two | |
3042 | mkdir conftest.dir | |
3043 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3044 | test -s conftest.one && test -s conftest.two && | |
3045 | test -s conftest.dir/conftest.one && | |
3046 | test -s conftest.dir/conftest.two | |
3047 | then | |
3048 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3049 | break 3 | |
3050 | fi | |
3051 | fi | |
3052 | fi | |
3053 | done | |
3054 | done | |
3055 | ;; | |
3056 | esac | |
3057 | ||
3058 | done | |
3059 | IFS=$as_save_IFS | |
3060 | ||
3061 | rm -rf conftest.one conftest.two conftest.dir | |
3062 | ||
3063 | fi | |
3064 | if test "${ac_cv_path_install+set}" = set; then | |
3065 | INSTALL=$ac_cv_path_install | |
3066 | else | |
3067 | # As a last resort, use the slow shell script. Don't cache a | |
3068 | # value for INSTALL within a source directory, because that will | |
3069 | # break other packages using the cache if that directory is | |
3070 | # removed, or if the value is a relative name. | |
3071 | INSTALL=$ac_install_sh | |
3072 | fi | |
3073 | fi | |
3074 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3075 | $as_echo "$INSTALL" >&6; } | |
3076 | ||
3077 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3078 | # It thinks the first close brace ends the variable substitution. | |
3079 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3080 | ||
3081 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3082 | ||
3083 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3084 | ||
3085 | ac_ext=c | |
3086 | ac_cpp='$CPP $CPPFLAGS' | |
3087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3090 | if test -n "$ac_tool_prefix"; then | |
3091 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3092 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3093 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3094 | $as_echo_n "checking for $ac_word... " >&6; } | |
3095 | if test "${ac_cv_prog_CC+set}" = set; then | |
3096 | $as_echo_n "(cached) " >&6 | |
3097 | else | |
3098 | if test -n "$CC"; then | |
3099 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3100 | else | |
3101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3102 | for as_dir in $PATH | |
3103 | do | |
3104 | IFS=$as_save_IFS | |
3105 | test -z "$as_dir" && as_dir=. | |
3106 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3108 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3109 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3110 | break 2 | |
3111 | fi | |
3112 | done | |
3113 | done | |
3114 | IFS=$as_save_IFS | |
3115 | ||
3116 | fi | |
3117 | fi | |
3118 | CC=$ac_cv_prog_CC | |
3119 | if test -n "$CC"; then | |
3120 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
3121 | $as_echo "$CC" >&6; } | |
3122 | else | |
3123 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3124 | $as_echo "no" >&6; } | |
3125 | fi | |
3126 | ||
3127 | ||
3128 | fi | |
3129 | if test -z "$ac_cv_prog_CC"; then | |
3130 | ac_ct_CC=$CC | |
3131 | # Extract the first word of "gcc", so it can be a program name with args. | |
3132 | set dummy gcc; ac_word=$2 | |
3133 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3134 | $as_echo_n "checking for $ac_word... " >&6; } | |
3135 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3136 | $as_echo_n "(cached) " >&6 | |
3137 | else | |
3138 | if test -n "$ac_ct_CC"; then | |
3139 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3140 | else | |
3141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3142 | for as_dir in $PATH | |
3143 | do | |
3144 | IFS=$as_save_IFS | |
3145 | test -z "$as_dir" && as_dir=. | |
3146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3148 | ac_cv_prog_ac_ct_CC="gcc" | |
3149 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3150 | break 2 | |
3151 | fi | |
3152 | done | |
3153 | done | |
3154 | IFS=$as_save_IFS | |
3155 | ||
3156 | fi | |
3157 | fi | |
3158 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3159 | if test -n "$ac_ct_CC"; then | |
3160 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3161 | $as_echo "$ac_ct_CC" >&6; } | |
3162 | else | |
3163 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3164 | $as_echo "no" >&6; } | |
3165 | fi | |
3166 | ||
3167 | if test "x$ac_ct_CC" = x; then | |
3168 | CC="" | |
3169 | else | |
3170 | case $cross_compiling:$ac_tool_warned in | |
3171 | yes:) | |
3172 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3173 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3174 | ac_tool_warned=yes ;; | |
3175 | esac | |
3176 | CC=$ac_ct_CC | |
3177 | fi | |
3178 | else | |
3179 | CC="$ac_cv_prog_CC" | |
3180 | fi | |
3181 | ||
3182 | if test -z "$CC"; then | |
3183 | if test -n "$ac_tool_prefix"; then | |
3184 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3185 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3186 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3187 | $as_echo_n "checking for $ac_word... " >&6; } | |
3188 | if test "${ac_cv_prog_CC+set}" = set; then | |
3189 | $as_echo_n "(cached) " >&6 | |
3190 | else | |
3191 | if test -n "$CC"; then | |
3192 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3193 | else | |
3194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3195 | for as_dir in $PATH | |
3196 | do | |
3197 | IFS=$as_save_IFS | |
3198 | test -z "$as_dir" && as_dir=. | |
3199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3200 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3201 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3202 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3203 | break 2 | |
3204 | fi | |
3205 | done | |
3206 | done | |
3207 | IFS=$as_save_IFS | |
3208 | ||
3209 | fi | |
3210 | fi | |
3211 | CC=$ac_cv_prog_CC | |
3212 | if test -n "$CC"; then | |
3213 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
3214 | $as_echo "$CC" >&6; } | |
3215 | else | |
3216 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3217 | $as_echo "no" >&6; } | |
3218 | fi | |
3219 | ||
3220 | ||
3221 | fi | |
3222 | fi | |
3223 | if test -z "$CC"; then | |
3224 | # Extract the first word of "cc", so it can be a program name with args. | |
3225 | set dummy cc; ac_word=$2 | |
3226 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3227 | $as_echo_n "checking for $ac_word... " >&6; } | |
3228 | if test "${ac_cv_prog_CC+set}" = set; then | |
3229 | $as_echo_n "(cached) " >&6 | |
3230 | else | |
3231 | if test -n "$CC"; then | |
3232 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3233 | else | |
3234 | ac_prog_rejected=no | |
3235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3236 | for as_dir in $PATH | |
3237 | do | |
3238 | IFS=$as_save_IFS | |
3239 | test -z "$as_dir" && as_dir=. | |
3240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3242 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3243 | ac_prog_rejected=yes | |
3244 | continue | |
3245 | fi | |
3246 | ac_cv_prog_CC="cc" | |
3247 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3248 | break 2 | |
3249 | fi | |
3250 | done | |
3251 | done | |
3252 | IFS=$as_save_IFS | |
3253 | ||
3254 | if test $ac_prog_rejected = yes; then | |
3255 | # We found a bogon in the path, so make sure we never use it. | |
3256 | set dummy $ac_cv_prog_CC | |
3257 | shift | |
3258 | if test $# != 0; then | |
3259 | # We chose a different compiler from the bogus one. | |
3260 | # However, it has the same basename, so the bogon will be chosen | |
3261 | # first if we set CC to just the basename; use the full file name. | |
3262 | shift | |
3263 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3264 | fi | |
3265 | fi | |
3266 | fi | |
3267 | fi | |
3268 | CC=$ac_cv_prog_CC | |
3269 | if test -n "$CC"; then | |
3270 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
3271 | $as_echo "$CC" >&6; } | |
3272 | else | |
3273 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3274 | $as_echo "no" >&6; } | |
3275 | fi | |
3276 | ||
3277 | ||
3278 | fi | |
3279 | if test -z "$CC"; then | |
3280 | if test -n "$ac_tool_prefix"; then | |
3281 | for ac_prog in cl.exe | |
3282 | do | |
3283 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3284 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3285 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3286 | $as_echo_n "checking for $ac_word... " >&6; } | |
3287 | if test "${ac_cv_prog_CC+set}" = set; then | |
3288 | $as_echo_n "(cached) " >&6 | |
3289 | else | |
3290 | if test -n "$CC"; then | |
3291 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3292 | else | |
3293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3294 | for as_dir in $PATH | |
3295 | do | |
3296 | IFS=$as_save_IFS | |
3297 | test -z "$as_dir" && as_dir=. | |
3298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3300 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3301 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3302 | break 2 | |
3303 | fi | |
3304 | done | |
3305 | done | |
3306 | IFS=$as_save_IFS | |
3307 | ||
3308 | fi | |
3309 | fi | |
3310 | CC=$ac_cv_prog_CC | |
3311 | if test -n "$CC"; then | |
3312 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
3313 | $as_echo "$CC" >&6; } | |
3314 | else | |
3315 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3316 | $as_echo "no" >&6; } | |
3317 | fi | |
3318 | ||
3319 | ||
3320 | test -n "$CC" && break | |
3321 | done | |
3322 | fi | |
3323 | if test -z "$CC"; then | |
3324 | ac_ct_CC=$CC | |
3325 | for ac_prog in cl.exe | |
3326 | do | |
3327 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3328 | set dummy $ac_prog; ac_word=$2 | |
3329 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3330 | $as_echo_n "checking for $ac_word... " >&6; } | |
3331 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3332 | $as_echo_n "(cached) " >&6 | |
3333 | else | |
3334 | if test -n "$ac_ct_CC"; then | |
3335 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3336 | else | |
3337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3338 | for as_dir in $PATH | |
3339 | do | |
3340 | IFS=$as_save_IFS | |
3341 | test -z "$as_dir" && as_dir=. | |
3342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3343 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3344 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3345 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3346 | break 2 | |
3347 | fi | |
3348 | done | |
3349 | done | |
3350 | IFS=$as_save_IFS | |
3351 | ||
3352 | fi | |
3353 | fi | |
3354 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3355 | if test -n "$ac_ct_CC"; then | |
3356 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3357 | $as_echo "$ac_ct_CC" >&6; } | |
3358 | else | |
3359 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3360 | $as_echo "no" >&6; } | |
3361 | fi | |
3362 | ||
3363 | ||
3364 | test -n "$ac_ct_CC" && break | |
3365 | done | |
3366 | ||
3367 | if test "x$ac_ct_CC" = x; then | |
3368 | CC="" | |
3369 | else | |
3370 | case $cross_compiling:$ac_tool_warned in | |
3371 | yes:) | |
3372 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3373 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3374 | ac_tool_warned=yes ;; | |
3375 | esac | |
3376 | CC=$ac_ct_CC | |
3377 | fi | |
3378 | fi | |
3379 | ||
3380 | fi | |
3381 | ||
3382 | ||
3383 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3384 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3385 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
3386 | See \`config.log' for more details." >&5 | |
3387 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3388 | See \`config.log' for more details." >&2;} | |
3389 | { (exit 1); exit 1; }; }; } | |
3390 | ||
3391 | # Provide some information about the compiler. | |
3392 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
3393 | set X $ac_compile | |
3394 | ac_compiler=$2 | |
3395 | { (ac_try="$ac_compiler --version >&5" | |
3396 | case "(($ac_try" in | |
3397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3398 | *) ac_try_echo=$ac_try;; | |
3399 | esac | |
3400 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3401 | $as_echo "$ac_try_echo") >&5 | |
3402 | (eval "$ac_compiler --version >&5") 2>&5 | |
3403 | ac_status=$? | |
3404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3405 | (exit $ac_status); } | |
3406 | { (ac_try="$ac_compiler -v >&5" | |
3407 | case "(($ac_try" in | |
3408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3409 | *) ac_try_echo=$ac_try;; | |
3410 | esac | |
3411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3412 | $as_echo "$ac_try_echo") >&5 | |
3413 | (eval "$ac_compiler -v >&5") 2>&5 | |
3414 | ac_status=$? | |
3415 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3416 | (exit $ac_status); } | |
3417 | { (ac_try="$ac_compiler -V >&5" | |
3418 | case "(($ac_try" in | |
3419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3420 | *) ac_try_echo=$ac_try;; | |
3421 | esac | |
3422 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3423 | $as_echo "$ac_try_echo") >&5 | |
3424 | (eval "$ac_compiler -V >&5") 2>&5 | |
3425 | ac_status=$? | |
3426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3427 | (exit $ac_status); } | |
3428 | ||
3429 | cat >conftest.$ac_ext <<_ACEOF | |
3430 | /* confdefs.h. */ | |
3431 | _ACEOF | |
3432 | cat confdefs.h >>conftest.$ac_ext | |
3433 | cat >>conftest.$ac_ext <<_ACEOF | |
3434 | /* end confdefs.h. */ | |
3435 | ||
3436 | int | |
3437 | main () | |
3438 | { | |
3439 | ||
3440 | ; | |
3441 | return 0; | |
3442 | } | |
3443 | _ACEOF | |
3444 | ac_clean_files_save=$ac_clean_files | |
3445 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3446 | # Try to create an executable without -o first, disregard a.out. | |
3447 | # It will help us diagnose broken compilers, and finding out an intuition | |
3448 | # of exeext. | |
3449 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
3450 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3451 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3452 | ||
3453 | # The possible output files: | |
3454 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3455 | ||
3456 | ac_rmfiles= | |
3457 | for ac_file in $ac_files | |
3458 | do | |
3459 | case $ac_file in | |
3460 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3461 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3462 | esac | |
3463 | done | |
3464 | rm -f $ac_rmfiles | |
3465 | ||
3466 | if { (ac_try="$ac_link_default" | |
3467 | case "(($ac_try" in | |
3468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3469 | *) ac_try_echo=$ac_try;; | |
3470 | esac | |
3471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3472 | $as_echo "$ac_try_echo") >&5 | |
3473 | (eval "$ac_link_default") 2>&5 | |
3474 | ac_status=$? | |
3475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3476 | (exit $ac_status); }; then | |
3477 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3478 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3479 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3480 | # so that the user can short-circuit this test for compilers unknown to | |
3481 | # Autoconf. | |
3482 | for ac_file in $ac_files '' | |
3483 | do | |
3484 | test -f "$ac_file" || continue | |
3485 | case $ac_file in | |
3486 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3487 | ;; | |
3488 | [ab].out ) | |
3489 | # We found the default executable, but exeext='' is most | |
3490 | # certainly right. | |
3491 | break;; | |
3492 | *.* ) | |
3493 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3494 | then :; else | |
3495 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3496 | fi | |
3497 | # We set ac_cv_exeext here because the later test for it is not | |
3498 | # safe: cross compilers may not add the suffix if given an `-o' | |
3499 | # argument, so we may need to know it at that point already. | |
3500 | # Even if this section looks crufty: it has the advantage of | |
3501 | # actually working. | |
3502 | break;; | |
3503 | * ) | |
3504 | break;; | |
3505 | esac | |
3506 | done | |
3507 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3508 | ||
3509 | else | |
3510 | ac_file='' | |
3511 | fi | |
3512 | ||
3513 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3514 | $as_echo "$ac_file" >&6; } | |
3515 | if test -z "$ac_file"; then | |
3516 | $as_echo "$as_me: failed program was:" >&5 | |
3517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3518 | ||
3519 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3520 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3521 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3522 | See \`config.log' for more details." >&5 | |
3523 | $as_echo "$as_me: error: C compiler cannot create executables | |
3524 | See \`config.log' for more details." >&2;} | |
3525 | { (exit 77); exit 77; }; }; } | |
3526 | fi | |
3527 | ||
3528 | ac_exeext=$ac_cv_exeext | |
3529 | ||
3530 | # Check that the compiler produces executables we can run. If not, either | |
3531 | # the compiler is broken, or we cross compile. | |
3532 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3533 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3534 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3535 | # If not cross compiling, check that we can run a simple program. | |
3536 | if test "$cross_compiling" != yes; then | |
3537 | if { ac_try='./$ac_file' | |
3538 | { (case "(($ac_try" in | |
3539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3540 | *) ac_try_echo=$ac_try;; | |
3541 | esac | |
3542 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3543 | $as_echo "$ac_try_echo") >&5 | |
3544 | (eval "$ac_try") 2>&5 | |
3545 | ac_status=$? | |
3546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3547 | (exit $ac_status); }; }; then | |
3548 | cross_compiling=no | |
3549 | else | |
3550 | if test "$cross_compiling" = maybe; then | |
3551 | cross_compiling=yes | |
3552 | else | |
3553 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3555 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3556 | If you meant to cross compile, use \`--host'. | |
3557 | See \`config.log' for more details." >&5 | |
3558 | $as_echo "$as_me: error: cannot run C compiled programs. | |
3559 | If you meant to cross compile, use \`--host'. | |
3560 | See \`config.log' for more details." >&2;} | |
3561 | { (exit 1); exit 1; }; }; } | |
3562 | fi | |
3563 | fi | |
3564 | fi | |
3565 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
3566 | $as_echo "yes" >&6; } | |
3567 | ||
3568 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3569 | ac_clean_files=$ac_clean_files_save | |
3570 | # Check that the compiler produces executables we can run. If not, either | |
3571 | # the compiler is broken, or we cross compile. | |
3572 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3573 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3574 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3575 | $as_echo "$cross_compiling" >&6; } | |
3576 | ||
3577 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3578 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3579 | if { (ac_try="$ac_link" | |
3580 | case "(($ac_try" in | |
3581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3582 | *) ac_try_echo=$ac_try;; | |
3583 | esac | |
3584 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3585 | $as_echo "$ac_try_echo") >&5 | |
3586 | (eval "$ac_link") 2>&5 | |
3587 | ac_status=$? | |
3588 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3589 | (exit $ac_status); }; then | |
3590 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3591 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3592 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3593 | # `rm'. | |
3594 | for ac_file in conftest.exe conftest conftest.*; do | |
3595 | test -f "$ac_file" || continue | |
3596 | case $ac_file in | |
3597 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3598 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3599 | break;; | |
3600 | * ) break;; | |
3601 | esac | |
3602 | done | |
3603 | else | |
3604 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3605 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3606 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
3607 | See \`config.log' for more details." >&5 | |
3608 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3609 | See \`config.log' for more details." >&2;} | |
3610 | { (exit 1); exit 1; }; }; } | |
3611 | fi | |
3612 | ||
3613 | rm -f conftest$ac_cv_exeext | |
3614 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3615 | $as_echo "$ac_cv_exeext" >&6; } | |
3616 | ||
3617 | rm -f conftest.$ac_ext | |
3618 | EXEEXT=$ac_cv_exeext | |
3619 | ac_exeext=$EXEEXT | |
3620 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3621 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3622 | if test "${ac_cv_objext+set}" = set; then | |
3623 | $as_echo_n "(cached) " >&6 | |
3624 | else | |
3625 | cat >conftest.$ac_ext <<_ACEOF | |
3626 | /* confdefs.h. */ | |
3627 | _ACEOF | |
3628 | cat confdefs.h >>conftest.$ac_ext | |
3629 | cat >>conftest.$ac_ext <<_ACEOF | |
3630 | /* end confdefs.h. */ | |
3631 | ||
3632 | int | |
3633 | main () | |
3634 | { | |
3635 | ||
3636 | ; | |
3637 | return 0; | |
3638 | } | |
3639 | _ACEOF | |
3640 | rm -f conftest.o conftest.obj | |
3641 | if { (ac_try="$ac_compile" | |
3642 | case "(($ac_try" in | |
3643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3644 | *) ac_try_echo=$ac_try;; | |
3645 | esac | |
3646 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3647 | $as_echo "$ac_try_echo") >&5 | |
3648 | (eval "$ac_compile") 2>&5 | |
3649 | ac_status=$? | |
3650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3651 | (exit $ac_status); }; then | |
3652 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3653 | test -f "$ac_file" || continue; | |
3654 | case $ac_file in | |
3655 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3656 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3657 | break;; | |
3658 | esac | |
3659 | done | |
3660 | else | |
3661 | $as_echo "$as_me: failed program was:" >&5 | |
3662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3663 | ||
3664 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3666 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3667 | See \`config.log' for more details." >&5 | |
3668 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3669 | See \`config.log' for more details." >&2;} | |
3670 | { (exit 1); exit 1; }; }; } | |
3671 | fi | |
3672 | ||
3673 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3674 | fi | |
3675 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3676 | $as_echo "$ac_cv_objext" >&6; } | |
3677 | OBJEXT=$ac_cv_objext | |
3678 | ac_objext=$OBJEXT | |
3679 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3680 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3681 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3682 | $as_echo_n "(cached) " >&6 | |
3683 | else | |
3684 | cat >conftest.$ac_ext <<_ACEOF | |
3685 | /* confdefs.h. */ | |
3686 | _ACEOF | |
3687 | cat confdefs.h >>conftest.$ac_ext | |
3688 | cat >>conftest.$ac_ext <<_ACEOF | |
3689 | /* end confdefs.h. */ | |
3690 | ||
3691 | int | |
3692 | main () | |
3693 | { | |
3694 | #ifndef __GNUC__ | |
3695 | choke me | |
3696 | #endif | |
3697 | ||
3698 | ; | |
3699 | return 0; | |
3700 | } | |
3701 | _ACEOF | |
3702 | rm -f conftest.$ac_objext | |
3703 | if { (ac_try="$ac_compile" | |
3704 | case "(($ac_try" in | |
3705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3706 | *) ac_try_echo=$ac_try;; | |
3707 | esac | |
3708 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3709 | $as_echo "$ac_try_echo") >&5 | |
3710 | (eval "$ac_compile") 2>conftest.er1 | |
3711 | ac_status=$? | |
3712 | grep -v '^ *+' conftest.er1 >conftest.err | |
3713 | rm -f conftest.er1 | |
3714 | cat conftest.err >&5 | |
3715 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3716 | (exit $ac_status); } && { | |
3717 | test -z "$ac_c_werror_flag" || | |
3718 | test ! -s conftest.err | |
3719 | } && test -s conftest.$ac_objext; then | |
3720 | ac_compiler_gnu=yes | |
3721 | else | |
3722 | $as_echo "$as_me: failed program was:" >&5 | |
3723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3724 | ||
3725 | ac_compiler_gnu=no | |
3726 | fi | |
3727 | ||
3728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3729 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3730 | ||
3731 | fi | |
3732 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3733 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3734 | if test $ac_compiler_gnu = yes; then | |
3735 | GCC=yes | |
3736 | else | |
3737 | GCC= | |
3738 | fi | |
3739 | ac_test_CFLAGS=${CFLAGS+set} | |
3740 | ac_save_CFLAGS=$CFLAGS | |
3741 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3742 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3743 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3744 | $as_echo_n "(cached) " >&6 | |
3745 | else | |
3746 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3747 | ac_c_werror_flag=yes | |
3748 | ac_cv_prog_cc_g=no | |
3749 | CFLAGS="-g" | |
3750 | cat >conftest.$ac_ext <<_ACEOF | |
3751 | /* confdefs.h. */ | |
3752 | _ACEOF | |
3753 | cat confdefs.h >>conftest.$ac_ext | |
3754 | cat >>conftest.$ac_ext <<_ACEOF | |
3755 | /* end confdefs.h. */ | |
3756 | ||
3757 | int | |
3758 | main () | |
3759 | { | |
3760 | ||
3761 | ; | |
3762 | return 0; | |
3763 | } | |
3764 | _ACEOF | |
3765 | rm -f conftest.$ac_objext | |
3766 | if { (ac_try="$ac_compile" | |
3767 | case "(($ac_try" in | |
3768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3769 | *) ac_try_echo=$ac_try;; | |
3770 | esac | |
3771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3772 | $as_echo "$ac_try_echo") >&5 | |
3773 | (eval "$ac_compile") 2>conftest.er1 | |
3774 | ac_status=$? | |
3775 | grep -v '^ *+' conftest.er1 >conftest.err | |
3776 | rm -f conftest.er1 | |
3777 | cat conftest.err >&5 | |
3778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3779 | (exit $ac_status); } && { | |
3780 | test -z "$ac_c_werror_flag" || | |
3781 | test ! -s conftest.err | |
3782 | } && test -s conftest.$ac_objext; then | |
3783 | ac_cv_prog_cc_g=yes | |
3784 | else | |
3785 | $as_echo "$as_me: failed program was:" >&5 | |
3786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3787 | ||
3788 | CFLAGS="" | |
3789 | cat >conftest.$ac_ext <<_ACEOF | |
3790 | /* confdefs.h. */ | |
3791 | _ACEOF | |
3792 | cat confdefs.h >>conftest.$ac_ext | |
3793 | cat >>conftest.$ac_ext <<_ACEOF | |
3794 | /* end confdefs.h. */ | |
3795 | ||
3796 | int | |
3797 | main () | |
3798 | { | |
3799 | ||
3800 | ; | |
3801 | return 0; | |
3802 | } | |
3803 | _ACEOF | |
3804 | rm -f conftest.$ac_objext | |
3805 | if { (ac_try="$ac_compile" | |
3806 | case "(($ac_try" in | |
3807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3808 | *) ac_try_echo=$ac_try;; | |
3809 | esac | |
3810 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3811 | $as_echo "$ac_try_echo") >&5 | |
3812 | (eval "$ac_compile") 2>conftest.er1 | |
3813 | ac_status=$? | |
3814 | grep -v '^ *+' conftest.er1 >conftest.err | |
3815 | rm -f conftest.er1 | |
3816 | cat conftest.err >&5 | |
3817 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3818 | (exit $ac_status); } && { | |
3819 | test -z "$ac_c_werror_flag" || | |
3820 | test ! -s conftest.err | |
3821 | } && test -s conftest.$ac_objext; then | |
3822 | : | |
3823 | else | |
3824 | $as_echo "$as_me: failed program was:" >&5 | |
3825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3826 | ||
3827 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3828 | CFLAGS="-g" | |
3829 | cat >conftest.$ac_ext <<_ACEOF | |
3830 | /* confdefs.h. */ | |
3831 | _ACEOF | |
3832 | cat confdefs.h >>conftest.$ac_ext | |
3833 | cat >>conftest.$ac_ext <<_ACEOF | |
3834 | /* end confdefs.h. */ | |
3835 | ||
3836 | int | |
3837 | main () | |
3838 | { | |
3839 | ||
3840 | ; | |
3841 | return 0; | |
3842 | } | |
3843 | _ACEOF | |
3844 | rm -f conftest.$ac_objext | |
3845 | if { (ac_try="$ac_compile" | |
3846 | case "(($ac_try" in | |
3847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3848 | *) ac_try_echo=$ac_try;; | |
3849 | esac | |
3850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3851 | $as_echo "$ac_try_echo") >&5 | |
3852 | (eval "$ac_compile") 2>conftest.er1 | |
3853 | ac_status=$? | |
3854 | grep -v '^ *+' conftest.er1 >conftest.err | |
3855 | rm -f conftest.er1 | |
3856 | cat conftest.err >&5 | |
3857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3858 | (exit $ac_status); } && { | |
3859 | test -z "$ac_c_werror_flag" || | |
3860 | test ! -s conftest.err | |
3861 | } && test -s conftest.$ac_objext; then | |
3862 | ac_cv_prog_cc_g=yes | |
3863 | else | |
3864 | $as_echo "$as_me: failed program was:" >&5 | |
3865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3866 | ||
3867 | ||
3868 | fi | |
3869 | ||
3870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3871 | fi | |
3872 | ||
3873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3874 | fi | |
3875 | ||
3876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3877 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3878 | fi | |
3879 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3880 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3881 | if test "$ac_test_CFLAGS" = set; then | |
3882 | CFLAGS=$ac_save_CFLAGS | |
3883 | elif test $ac_cv_prog_cc_g = yes; then | |
3884 | if test "$GCC" = yes; then | |
3885 | CFLAGS="-g -O2" | |
3886 | else | |
3887 | CFLAGS="-g" | |
3888 | fi | |
3889 | else | |
3890 | if test "$GCC" = yes; then | |
3891 | CFLAGS="-O2" | |
3892 | else | |
3893 | CFLAGS= | |
3894 | fi | |
3895 | fi | |
3896 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3897 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3898 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3899 | $as_echo_n "(cached) " >&6 | |
3900 | else | |
3901 | ac_cv_prog_cc_c89=no | |
3902 | ac_save_CC=$CC | |
3903 | cat >conftest.$ac_ext <<_ACEOF | |
3904 | /* confdefs.h. */ | |
3905 | _ACEOF | |
3906 | cat confdefs.h >>conftest.$ac_ext | |
3907 | cat >>conftest.$ac_ext <<_ACEOF | |
3908 | /* end confdefs.h. */ | |
3909 | #include <stdarg.h> | |
3910 | #include <stdio.h> | |
3911 | #include <sys/types.h> | |
3912 | #include <sys/stat.h> | |
3913 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3914 | struct buf { int x; }; | |
3915 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3916 | static char *e (p, i) | |
3917 | char **p; | |
3918 | int i; | |
3919 | { | |
3920 | return p[i]; | |
3921 | } | |
3922 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3923 | { | |
3924 | char *s; | |
3925 | va_list v; | |
3926 | va_start (v,p); | |
3927 | s = g (p, va_arg (v,int)); | |
3928 | va_end (v); | |
3929 | return s; | |
3930 | } | |
3931 | ||
3932 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3933 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3934 | These don't provoke an error unfortunately, instead are silently treated | |
3935 | as 'x'. The following induces an error, until -std is added to get | |
3936 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3937 | array size at least. It's necessary to write '\x00'==0 to get something | |
3938 | that's true only with -std. */ | |
3939 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3940 | ||
3941 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3942 | inside strings and character constants. */ | |
3943 | #define FOO(x) 'x' | |
3944 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3945 | ||
3946 | int test (int i, double x); | |
3947 | struct s1 {int (*f) (int a);}; | |
3948 | struct s2 {int (*f) (double a);}; | |
3949 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3950 | int argc; | |
3951 | char **argv; | |
3952 | int | |
3953 | main () | |
3954 | { | |
3955 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3956 | ; | |
3957 | return 0; | |
3958 | } | |
3959 | _ACEOF | |
3960 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3961 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3962 | do | |
3963 | CC="$ac_save_CC $ac_arg" | |
3964 | rm -f conftest.$ac_objext | |
3965 | if { (ac_try="$ac_compile" | |
3966 | case "(($ac_try" in | |
3967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3968 | *) ac_try_echo=$ac_try;; | |
3969 | esac | |
3970 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3971 | $as_echo "$ac_try_echo") >&5 | |
3972 | (eval "$ac_compile") 2>conftest.er1 | |
3973 | ac_status=$? | |
3974 | grep -v '^ *+' conftest.er1 >conftest.err | |
3975 | rm -f conftest.er1 | |
3976 | cat conftest.err >&5 | |
3977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3978 | (exit $ac_status); } && { | |
3979 | test -z "$ac_c_werror_flag" || | |
3980 | test ! -s conftest.err | |
3981 | } && test -s conftest.$ac_objext; then | |
3982 | ac_cv_prog_cc_c89=$ac_arg | |
3983 | else | |
3984 | $as_echo "$as_me: failed program was:" >&5 | |
3985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3986 | ||
3987 | ||
3988 | fi | |
3989 | ||
3990 | rm -f core conftest.err conftest.$ac_objext | |
3991 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3992 | done | |
3993 | rm -f conftest.$ac_ext | |
3994 | CC=$ac_save_CC | |
3995 | ||
3996 | fi | |
3997 | # AC_CACHE_VAL | |
3998 | case "x$ac_cv_prog_cc_c89" in | |
3999 | x) | |
4000 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
4001 | $as_echo "none needed" >&6; } ;; | |
4002 | xno) | |
4003 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
4004 | $as_echo "unsupported" >&6; } ;; | |
4005 | *) | |
4006 | CC="$CC $ac_cv_prog_cc_c89" | |
4007 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
4008 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4009 | esac | |
4010 | ||
4011 | ||
4012 | ac_ext=c | |
4013 | ac_cpp='$CPP $CPPFLAGS' | |
4014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4017 | DEPDIR="${am__leading_dot}deps" | |
4018 | ||
4019 | ac_config_commands="$ac_config_commands depfiles" | |
4020 | ||
4021 | ||
4022 | am_make=${MAKE-make} | |
4023 | cat > confinc << 'END' | |
4024 | am__doit: | |
4025 | @echo this is the am__doit target | |
4026 | .PHONY: am__doit | |
4027 | END | |
4028 | # If we don't find an include directive, just comment out the code. | |
4029 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
4030 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4031 | am__include="#" | |
4032 | am__quote= | |
4033 | _am_result=none | |
4034 | # First try GNU make style include. | |
4035 | echo "include confinc" > confmf | |
4036 | # Ignore all kinds of additional output from `make'. | |
4037 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4038 | *the\ am__doit\ target*) | |
4039 | am__include=include | |
4040 | am__quote= | |
4041 | _am_result=GNU | |
4042 | ;; | |
4043 | esac | |
4044 | # Now try BSD make style include. | |
4045 | if test "$am__include" = "#"; then | |
4046 | echo '.include "confinc"' > confmf | |
4047 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4048 | *the\ am__doit\ target*) | |
4049 | am__include=.include | |
4050 | am__quote="\"" | |
4051 | _am_result=BSD | |
4052 | ;; | |
4053 | esac | |
4054 | fi | |
4055 | ||
4056 | ||
4057 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 | |
4058 | $as_echo "$_am_result" >&6; } | |
4059 | rm -f confinc confmf | |
4060 | ||
4061 | # Check whether --enable-dependency-tracking was given. | |
4062 | if test "${enable_dependency_tracking+set}" = set; then | |
4063 | enableval=$enable_dependency_tracking; | |
4064 | fi | |
4065 | ||
4066 | if test "x$enable_dependency_tracking" != xno; then | |
4067 | am_depcomp="$ac_aux_dir/depcomp" | |
4068 | AMDEPBACKSLASH='\' | |
4069 | fi | |
4070 | if test "x$enable_dependency_tracking" != xno; then | |
4071 | AMDEP_TRUE= | |
4072 | AMDEP_FALSE='#' | |
4073 | else | |
4074 | AMDEP_TRUE='#' | |
4075 | AMDEP_FALSE= | |
4076 | fi | |
4077 | ||
4078 | ||
4079 | ||
4080 | depcc="$CC" am_compiler_list= | |
4081 | ||
4082 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
4083 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4084 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
4085 | $as_echo_n "(cached) " >&6 | |
4086 | else | |
4087 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4088 | # We make a subdir and do the tests there. Otherwise we can end up | |
4089 | # making bogus files that we don't know about and never remove. For | |
4090 | # instance it was reported that on HP-UX the gcc test will end up | |
4091 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4092 | # in D'. | |
4093 | mkdir conftest.dir | |
4094 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4095 | # using a relative directory. | |
4096 | cp "$am_depcomp" conftest.dir | |
4097 | cd conftest.dir | |
4098 | # We will build objects and dependencies in a subdirectory because | |
4099 | # it helps to detect inapplicable dependency modes. For instance | |
4100 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4101 | # side effect of compilation, but ICC will put the dependencies in | |
4102 | # the current directory while Tru64 will put them in the object | |
4103 | # directory. | |
4104 | mkdir sub | |
4105 | ||
4106 | am_cv_CC_dependencies_compiler_type=none | |
4107 | if test "$am_compiler_list" = ""; then | |
4108 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4109 | fi | |
4110 | am__universal=false | |
4111 | case " $depcc " in #( | |
4112 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4113 | esac | |
4114 | ||
4115 | for depmode in $am_compiler_list; do | |
4116 | # Setup a source with many dependencies, because some compilers | |
4117 | # like to wrap large dependency lists on column 80 (with \), and | |
4118 | # we should not choose a depcomp mode which is confused by this. | |
4119 | # | |
4120 | # We need to recreate these files for each test, as the compiler may | |
4121 | # overwrite some of them when testing with obscure command lines. | |
4122 | # This happens at least with the AIX C compiler. | |
4123 | : > sub/conftest.c | |
4124 | for i in 1 2 3 4 5 6; do | |
4125 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4126 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4127 | # Solaris 8's {/usr,}/bin/sh. | |
4128 | touch sub/conftst$i.h | |
4129 | done | |
4130 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4131 | ||
4132 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4133 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4134 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4135 | # versions had trouble with output in subdirs | |
4136 | am__obj=sub/conftest.${OBJEXT-o} | |
4137 | am__minus_obj="-o $am__obj" | |
4138 | case $depmode in | |
4139 | gcc) | |
4140 | # This depmode causes a compiler race in universal mode. | |
4141 | test "$am__universal" = false || continue | |
4142 | ;; | |
4143 | nosideeffect) | |
4144 | # after this tag, mechanisms are not by side-effect, so they'll | |
4145 | # only be used when explicitly requested | |
4146 | if test "x$enable_dependency_tracking" = xyes; then | |
4147 | continue | |
4148 | else | |
4149 | break | |
4150 | fi | |
4151 | ;; | |
4152 | msvisualcpp | msvcmsys) | |
4153 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4154 | # not run yet. These depmodes are late enough in the game, and | |
4155 | # so weak that their functioning should not be impacted. | |
4156 | am__obj=conftest.${OBJEXT-o} | |
4157 | am__minus_obj= | |
4158 | ;; | |
4159 | none) break ;; | |
4160 | esac | |
4161 | if depmode=$depmode \ | |
4162 | source=sub/conftest.c object=$am__obj \ | |
4163 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4164 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4165 | >/dev/null 2>conftest.err && | |
4166 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4167 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4168 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4169 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4170 | # icc doesn't choke on unknown options, it will just issue warnings | |
4171 | # or remarks (even with -Werror). So we grep stderr for any message | |
4172 | # that says an option was ignored or not supported. | |
4173 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4174 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4175 | # The diagnosis changed in icc 8.0: | |
4176 | # icc: Command line remark: option '-MP' not supported | |
4177 | if (grep 'ignoring option' conftest.err || | |
4178 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4179 | am_cv_CC_dependencies_compiler_type=$depmode | |
4180 | break | |
4181 | fi | |
4182 | fi | |
4183 | done | |
4184 | ||
4185 | cd .. | |
4186 | rm -rf conftest.dir | |
4187 | else | |
4188 | am_cv_CC_dependencies_compiler_type=none | |
4189 | fi | |
4190 | ||
4191 | fi | |
4192 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4193 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4194 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4195 | ||
4196 | if | |
4197 | test "x$enable_dependency_tracking" != xno \ | |
4198 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4199 | am__fastdepCC_TRUE= | |
4200 | am__fastdepCC_FALSE='#' | |
4201 | else | |
4202 | am__fastdepCC_TRUE='#' | |
4203 | am__fastdepCC_FALSE= | |
4204 | fi | |
4205 | ||
4206 | ||
4207 | case `pwd` in | |
4208 | *\ * | *\ *) | |
4209 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4210 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4211 | esac | |
4212 | ||
4213 | ||
4214 | ||
135cf6a8 BB |
4215 | macro_version='2.2.6b' |
4216 | macro_revision='1.3017' | |
e70e591c BB |
4217 | |
4218 | ||
4219 | ||
4220 | ||
4221 | ||
4222 | ||
4223 | ||
4224 | ||
4225 | ||
4226 | ||
4227 | ||
4228 | ||
4229 | ||
4230 | ltmain="$ac_aux_dir/ltmain.sh" | |
4231 | ||
4232 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4233 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4234 | if test "${ac_cv_path_SED+set}" = set; then | |
4235 | $as_echo_n "(cached) " >&6 | |
4236 | else | |
4237 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4238 | for ac_i in 1 2 3 4 5 6 7; do | |
4239 | ac_script="$ac_script$as_nl$ac_script" | |
4240 | done | |
4241 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4242 | $as_unset ac_script || ac_script= | |
4243 | if test -z "$SED"; then | |
4244 | ac_path_SED_found=false | |
4245 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4247 | for as_dir in $PATH | |
4248 | do | |
4249 | IFS=$as_save_IFS | |
4250 | test -z "$as_dir" && as_dir=. | |
4251 | for ac_prog in sed gsed; do | |
4252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4253 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4254 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
4255 | # Check for GNU ac_path_SED and select it if it is found. | |
4256 | # Check for GNU $ac_path_SED | |
4257 | case `"$ac_path_SED" --version 2>&1` in | |
4258 | *GNU*) | |
4259 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4260 | *) | |
4261 | ac_count=0 | |
4262 | $as_echo_n 0123456789 >"conftest.in" | |
4263 | while : | |
4264 | do | |
4265 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4266 | mv "conftest.tmp" "conftest.in" | |
4267 | cp "conftest.in" "conftest.nl" | |
4268 | $as_echo '' >> "conftest.nl" | |
4269 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4270 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4271 | ac_count=`expr $ac_count + 1` | |
4272 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4273 | # Best one so far, save it but keep looking for a better one | |
4274 | ac_cv_path_SED="$ac_path_SED" | |
4275 | ac_path_SED_max=$ac_count | |
4276 | fi | |
4277 | # 10*(2^10) chars as input seems more than enough | |
4278 | test $ac_count -gt 10 && break | |
4279 | done | |
4280 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4281 | esac | |
4282 | ||
4283 | $ac_path_SED_found && break 3 | |
4284 | done | |
4285 | done | |
4286 | done | |
4287 | IFS=$as_save_IFS | |
4288 | if test -z "$ac_cv_path_SED"; then | |
4289 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
4290 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
4291 | { (exit 1); exit 1; }; } | |
4292 | fi | |
4293 | else | |
4294 | ac_cv_path_SED=$SED | |
4295 | fi | |
4296 | ||
4297 | fi | |
4298 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | |
4299 | $as_echo "$ac_cv_path_SED" >&6; } | |
4300 | SED="$ac_cv_path_SED" | |
4301 | rm -f conftest.sed | |
4302 | ||
4303 | test -z "$SED" && SED=sed | |
4304 | Xsed="$SED -e 1s/^X//" | |
4305 | ||
4306 | ||
4307 | ||
4308 | ||
4309 | ||
4310 | ||
4311 | ||
4312 | ||
4313 | ||
4314 | ||
4315 | ||
4316 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
4317 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4318 | if test "${ac_cv_path_GREP+set}" = set; then | |
4319 | $as_echo_n "(cached) " >&6 | |
4320 | else | |
4321 | if test -z "$GREP"; then | |
4322 | ac_path_GREP_found=false | |
4323 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4325 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4326 | do | |
4327 | IFS=$as_save_IFS | |
4328 | test -z "$as_dir" && as_dir=. | |
4329 | for ac_prog in grep ggrep; do | |
4330 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4331 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4332 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4333 | # Check for GNU ac_path_GREP and select it if it is found. | |
4334 | # Check for GNU $ac_path_GREP | |
4335 | case `"$ac_path_GREP" --version 2>&1` in | |
4336 | *GNU*) | |
4337 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4338 | *) | |
4339 | ac_count=0 | |
4340 | $as_echo_n 0123456789 >"conftest.in" | |
4341 | while : | |
4342 | do | |
4343 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4344 | mv "conftest.tmp" "conftest.in" | |
4345 | cp "conftest.in" "conftest.nl" | |
4346 | $as_echo 'GREP' >> "conftest.nl" | |
4347 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4348 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4349 | ac_count=`expr $ac_count + 1` | |
4350 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4351 | # Best one so far, save it but keep looking for a better one | |
4352 | ac_cv_path_GREP="$ac_path_GREP" | |
4353 | ac_path_GREP_max=$ac_count | |
4354 | fi | |
4355 | # 10*(2^10) chars as input seems more than enough | |
4356 | test $ac_count -gt 10 && break | |
4357 | done | |
4358 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4359 | esac | |
4360 | ||
4361 | $ac_path_GREP_found && break 3 | |
4362 | done | |
4363 | done | |
4364 | done | |
4365 | IFS=$as_save_IFS | |
4366 | if test -z "$ac_cv_path_GREP"; then | |
4367 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4368 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4369 | { (exit 1); exit 1; }; } | |
4370 | fi | |
4371 | else | |
4372 | ac_cv_path_GREP=$GREP | |
4373 | fi | |
4374 | ||
4375 | fi | |
4376 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4377 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4378 | GREP="$ac_cv_path_GREP" | |
4379 | ||
4380 | ||
4381 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 | |
4382 | $as_echo_n "checking for egrep... " >&6; } | |
4383 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4384 | $as_echo_n "(cached) " >&6 | |
4385 | else | |
4386 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4387 | then ac_cv_path_EGREP="$GREP -E" | |
4388 | else | |
4389 | if test -z "$EGREP"; then | |
4390 | ac_path_EGREP_found=false | |
4391 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4393 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4394 | do | |
4395 | IFS=$as_save_IFS | |
4396 | test -z "$as_dir" && as_dir=. | |
4397 | for ac_prog in egrep; do | |
4398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4399 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4400 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4401 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4402 | # Check for GNU $ac_path_EGREP | |
4403 | case `"$ac_path_EGREP" --version 2>&1` in | |
4404 | *GNU*) | |
4405 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4406 | *) | |
4407 | ac_count=0 | |
4408 | $as_echo_n 0123456789 >"conftest.in" | |
4409 | while : | |
4410 | do | |
4411 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4412 | mv "conftest.tmp" "conftest.in" | |
4413 | cp "conftest.in" "conftest.nl" | |
4414 | $as_echo 'EGREP' >> "conftest.nl" | |
4415 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4416 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4417 | ac_count=`expr $ac_count + 1` | |
4418 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4419 | # Best one so far, save it but keep looking for a better one | |
4420 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4421 | ac_path_EGREP_max=$ac_count | |
4422 | fi | |
4423 | # 10*(2^10) chars as input seems more than enough | |
4424 | test $ac_count -gt 10 && break | |
4425 | done | |
4426 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4427 | esac | |
4428 | ||
4429 | $ac_path_EGREP_found && break 3 | |
4430 | done | |
4431 | done | |
4432 | done | |
4433 | IFS=$as_save_IFS | |
4434 | if test -z "$ac_cv_path_EGREP"; then | |
4435 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4436 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4437 | { (exit 1); exit 1; }; } | |
4438 | fi | |
4439 | else | |
4440 | ac_cv_path_EGREP=$EGREP | |
4441 | fi | |
4442 | ||
4443 | fi | |
4444 | fi | |
4445 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
4446 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4447 | EGREP="$ac_cv_path_EGREP" | |
4448 | ||
4449 | ||
4450 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4451 | $as_echo_n "checking for fgrep... " >&6; } | |
4452 | if test "${ac_cv_path_FGREP+set}" = set; then | |
4453 | $as_echo_n "(cached) " >&6 | |
4454 | else | |
4455 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4456 | then ac_cv_path_FGREP="$GREP -F" | |
4457 | else | |
4458 | if test -z "$FGREP"; then | |
4459 | ac_path_FGREP_found=false | |
4460 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4462 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4463 | do | |
4464 | IFS=$as_save_IFS | |
4465 | test -z "$as_dir" && as_dir=. | |
4466 | for ac_prog in fgrep; do | |
4467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4468 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4469 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4470 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4471 | # Check for GNU $ac_path_FGREP | |
4472 | case `"$ac_path_FGREP" --version 2>&1` in | |
4473 | *GNU*) | |
4474 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4475 | *) | |
4476 | ac_count=0 | |
4477 | $as_echo_n 0123456789 >"conftest.in" | |
4478 | while : | |
4479 | do | |
4480 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4481 | mv "conftest.tmp" "conftest.in" | |
4482 | cp "conftest.in" "conftest.nl" | |
4483 | $as_echo 'FGREP' >> "conftest.nl" | |
4484 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4485 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4486 | ac_count=`expr $ac_count + 1` | |
4487 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4488 | # Best one so far, save it but keep looking for a better one | |
4489 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4490 | ac_path_FGREP_max=$ac_count | |
4491 | fi | |
4492 | # 10*(2^10) chars as input seems more than enough | |
4493 | test $ac_count -gt 10 && break | |
4494 | done | |
4495 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4496 | esac | |
4497 | ||
4498 | $ac_path_FGREP_found && break 3 | |
4499 | done | |
4500 | done | |
4501 | done | |
4502 | IFS=$as_save_IFS | |
4503 | if test -z "$ac_cv_path_FGREP"; then | |
4504 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4505 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4506 | { (exit 1); exit 1; }; } | |
4507 | fi | |
4508 | else | |
4509 | ac_cv_path_FGREP=$FGREP | |
4510 | fi | |
4511 | ||
4512 | fi | |
4513 | fi | |
4514 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 | |
4515 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4516 | FGREP="$ac_cv_path_FGREP" | |
4517 | ||
4518 | ||
4519 | test -z "$GREP" && GREP=grep | |
4520 | ||
4521 | ||
4522 | ||
4523 | ||
4524 | ||
4525 | ||
4526 | ||
4527 | ||
4528 | ||
4529 | ||
4530 | ||
4531 | ||
4532 | ||
4533 | ||
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ||
4539 | # Check whether --with-gnu-ld was given. | |
4540 | if test "${with_gnu_ld+set}" = set; then | |
4541 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4542 | else | |
4543 | with_gnu_ld=no | |
4544 | fi | |
4545 | ||
4546 | ac_prog=ld | |
4547 | if test "$GCC" = yes; then | |
4548 | # Check if gcc -print-prog-name=ld gives a path. | |
4549 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
4550 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4551 | case $host in | |
4552 | *-*-mingw*) | |
4553 | # gcc leaves a trailing carriage return which upsets mingw | |
4554 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4555 | *) | |
4556 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4557 | esac | |
4558 | case $ac_prog in | |
4559 | # Accept absolute paths. | |
4560 | [\\/]* | ?:[\\/]*) | |
4561 | re_direlt='/[^/][^/]*/\.\./' | |
4562 | # Canonicalize the pathname of ld | |
4563 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4564 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4565 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4566 | done | |
4567 | test -z "$LD" && LD="$ac_prog" | |
4568 | ;; | |
4569 | "") | |
4570 | # If it fails, then pretend we aren't using GCC. | |
4571 | ac_prog=ld | |
4572 | ;; | |
4573 | *) | |
4574 | # If it is relative, then search for the first ld in PATH. | |
4575 | with_gnu_ld=unknown | |
4576 | ;; | |
4577 | esac | |
4578 | elif test "$with_gnu_ld" = yes; then | |
4579 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4580 | $as_echo_n "checking for GNU ld... " >&6; } | |
4581 | else | |
4582 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4583 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
4584 | fi | |
4585 | if test "${lt_cv_path_LD+set}" = set; then | |
4586 | $as_echo_n "(cached) " >&6 | |
4587 | else | |
4588 | if test -z "$LD"; then | |
4589 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4590 | for ac_dir in $PATH; do | |
4591 | IFS="$lt_save_ifs" | |
4592 | test -z "$ac_dir" && ac_dir=. | |
4593 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4594 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4595 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4596 | # but apparently some variants of GNU ld only accept -v. | |
4597 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4598 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4599 | *GNU* | *'with BFD'*) | |
4600 | test "$with_gnu_ld" != no && break | |
4601 | ;; | |
4602 | *) | |
4603 | test "$with_gnu_ld" != yes && break | |
4604 | ;; | |
4605 | esac | |
4606 | fi | |
4607 | done | |
4608 | IFS="$lt_save_ifs" | |
4609 | else | |
4610 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4611 | fi | |
4612 | fi | |
4613 | ||
4614 | LD="$lt_cv_path_LD" | |
4615 | if test -n "$LD"; then | |
4616 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 | |
4617 | $as_echo "$LD" >&6; } | |
4618 | else | |
4619 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4620 | $as_echo "no" >&6; } | |
4621 | fi | |
4622 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4623 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4624 | { (exit 1); exit 1; }; } | |
4625 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4626 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4627 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4628 | $as_echo_n "(cached) " >&6 | |
4629 | else | |
4630 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4631 | case `$LD -v 2>&1 </dev/null` in | |
4632 | *GNU* | *'with BFD'*) | |
4633 | lt_cv_prog_gnu_ld=yes | |
4634 | ;; | |
4635 | *) | |
4636 | lt_cv_prog_gnu_ld=no | |
4637 | ;; | |
4638 | esac | |
4639 | fi | |
4640 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
4641 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4642 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4643 | ||
4644 | ||
4645 | ||
4646 | ||
4647 | ||
4648 | ||
4649 | ||
4650 | ||
4651 | ||
4652 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4653 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4654 | if test "${lt_cv_path_NM+set}" = set; then | |
4655 | $as_echo_n "(cached) " >&6 | |
4656 | else | |
4657 | if test -n "$NM"; then | |
4658 | # Let the user override the test. | |
4659 | lt_cv_path_NM="$NM" | |
4660 | else | |
4661 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4662 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4663 | lt_nm_to_check="$lt_nm_to_check nm" | |
4664 | fi | |
4665 | for lt_tmp_nm in $lt_nm_to_check; do | |
4666 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4667 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4668 | IFS="$lt_save_ifs" | |
4669 | test -z "$ac_dir" && ac_dir=. | |
4670 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4671 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4672 | # Check to see if the nm accepts a BSD-compat flag. | |
4673 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4674 | # nm: unknown option "B" ignored | |
4675 | # Tru64's nm complains that /dev/null is an invalid object file | |
4676 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4677 | */dev/null* | *'Invalid file or object type'*) | |
4678 | lt_cv_path_NM="$tmp_nm -B" | |
4679 | break | |
4680 | ;; | |
4681 | *) | |
4682 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4683 | */dev/null*) | |
4684 | lt_cv_path_NM="$tmp_nm -p" | |
4685 | break | |
4686 | ;; | |
4687 | *) | |
4688 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4689 | continue # so that we can try to find one that supports BSD flags | |
4690 | ;; | |
4691 | esac | |
4692 | ;; | |
4693 | esac | |
4694 | fi | |
4695 | done | |
4696 | IFS="$lt_save_ifs" | |
4697 | done | |
4698 | : ${lt_cv_path_NM=no} | |
4699 | fi | |
4700 | fi | |
4701 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4702 | $as_echo "$lt_cv_path_NM" >&6; } | |
4703 | if test "$lt_cv_path_NM" != "no"; then | |
4704 | NM="$lt_cv_path_NM" | |
4705 | else | |
4706 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4707 | if test -n "$ac_tool_prefix"; then | |
4708 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4709 | do | |
4710 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4711 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4712 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4713 | $as_echo_n "checking for $ac_word... " >&6; } | |
4714 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4715 | $as_echo_n "(cached) " >&6 | |
4716 | else | |
4717 | if test -n "$DUMPBIN"; then | |
4718 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4719 | else | |
4720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4721 | for as_dir in $PATH | |
4722 | do | |
4723 | IFS=$as_save_IFS | |
4724 | test -z "$as_dir" && as_dir=. | |
4725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4727 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4728 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4729 | break 2 | |
4730 | fi | |
4731 | done | |
4732 | done | |
4733 | IFS=$as_save_IFS | |
4734 | ||
4735 | fi | |
4736 | fi | |
4737 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4738 | if test -n "$DUMPBIN"; then | |
4739 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4740 | $as_echo "$DUMPBIN" >&6; } | |
4741 | else | |
4742 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4743 | $as_echo "no" >&6; } | |
4744 | fi | |
4745 | ||
4746 | ||
4747 | test -n "$DUMPBIN" && break | |
4748 | done | |
4749 | fi | |
4750 | if test -z "$DUMPBIN"; then | |
4751 | ac_ct_DUMPBIN=$DUMPBIN | |
4752 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4753 | do | |
4754 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4755 | set dummy $ac_prog; ac_word=$2 | |
4756 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4757 | $as_echo_n "checking for $ac_word... " >&6; } | |
4758 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4759 | $as_echo_n "(cached) " >&6 | |
4760 | else | |
4761 | if test -n "$ac_ct_DUMPBIN"; then | |
4762 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4763 | else | |
4764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4765 | for as_dir in $PATH | |
4766 | do | |
4767 | IFS=$as_save_IFS | |
4768 | test -z "$as_dir" && as_dir=. | |
4769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4771 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4772 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4773 | break 2 | |
4774 | fi | |
4775 | done | |
4776 | done | |
4777 | IFS=$as_save_IFS | |
4778 | ||
4779 | fi | |
4780 | fi | |
4781 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4782 | if test -n "$ac_ct_DUMPBIN"; then | |
4783 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4784 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4785 | else | |
4786 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
4787 | $as_echo "no" >&6; } | |
4788 | fi | |
4789 | ||
4790 | ||
4791 | test -n "$ac_ct_DUMPBIN" && break | |
4792 | done | |
4793 | ||
4794 | if test "x$ac_ct_DUMPBIN" = x; then | |
4795 | DUMPBIN=":" | |
4796 | else | |
4797 | case $cross_compiling:$ac_tool_warned in | |
4798 | yes:) | |
4799 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4800 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4801 | ac_tool_warned=yes ;; | |
4802 | esac | |
4803 | DUMPBIN=$ac_ct_DUMPBIN | |
4804 | fi | |
4805 | fi | |
4806 | ||
4807 | ||
4808 | if test "$DUMPBIN" != ":"; then | |
4809 | NM="$DUMPBIN" | |
4810 | fi | |
4811 | fi | |
4812 | test -z "$NM" && NM=nm | |
4813 | ||
4814 | ||
4815 | ||
4816 | ||
4817 | ||
4818 | ||
4819 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 | |
4820 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4821 | if test "${lt_cv_nm_interface+set}" = set; then | |
4822 | $as_echo_n "(cached) " >&6 | |
4823 | else | |
4824 | lt_cv_nm_interface="BSD nm" | |
4825 | echo "int some_variable = 0;" > conftest.$ac_ext | |
615ab66d | 4826 | (eval echo "\"\$as_me:4826: $ac_compile\"" >&5) |
e70e591c BB |
4827 | (eval "$ac_compile" 2>conftest.err) |
4828 | cat conftest.err >&5 | |
615ab66d | 4829 | (eval echo "\"\$as_me:4829: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
e70e591c BB |
4830 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4831 | cat conftest.err >&5 | |
615ab66d | 4832 | (eval echo "\"\$as_me:4832: output\"" >&5) |
e70e591c BB |
4833 | cat conftest.out >&5 |
4834 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4835 | lt_cv_nm_interface="MS dumpbin" | |
4836 | fi | |
4837 | rm -f conftest* | |
4838 | fi | |
4839 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4840 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4841 | ||
4842 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4843 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4844 | LN_S=$as_ln_s | |
4845 | if test "$LN_S" = "ln -s"; then | |
4846 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
4847 | $as_echo "yes" >&6; } | |
4848 | else | |
4849 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4850 | $as_echo "no, using $LN_S" >&6; } | |
4851 | fi | |
4852 | ||
4853 | # find the maximum length of command line arguments | |
4854 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4855 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4856 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4857 | $as_echo_n "(cached) " >&6 | |
4858 | else | |
4859 | i=0 | |
4860 | teststring="ABCD" | |
4861 | ||
4862 | case $build_os in | |
4863 | msdosdjgpp*) | |
4864 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4865 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4866 | # during glob expansion). Even if it were fixed, the result of this | |
4867 | # check would be larger than it should be. | |
4868 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4869 | ;; | |
4870 | ||
4871 | gnu*) | |
4872 | # Under GNU Hurd, this test is not required because there is | |
4873 | # no limit to the length of command line arguments. | |
4874 | # Libtool will interpret -1 as no limit whatsoever | |
4875 | lt_cv_sys_max_cmd_len=-1; | |
4876 | ;; | |
4877 | ||
4878 | cygwin* | mingw* | cegcc*) | |
4879 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4880 | # about 5 minutes as the teststring grows exponentially. | |
4881 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4882 | # you end up with a "frozen" computer, even though with patience | |
4883 | # the test eventually succeeds (with a max line length of 256k). | |
4884 | # Instead, let's just punt: use the minimum linelength reported by | |
4885 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4886 | lt_cv_sys_max_cmd_len=8192; | |
4887 | ;; | |
4888 | ||
4889 | amigaos*) | |
4890 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4891 | # So we just punt and use a minimum line length of 8192. | |
4892 | lt_cv_sys_max_cmd_len=8192; | |
4893 | ;; | |
4894 | ||
4895 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4896 | # This has been around since 386BSD, at least. Likely further. | |
4897 | if test -x /sbin/sysctl; then | |
4898 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4899 | elif test -x /usr/sbin/sysctl; then | |
4900 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4901 | else | |
4902 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4903 | fi | |
4904 | # And add a safety zone | |
4905 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4906 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4907 | ;; | |
4908 | ||
4909 | interix*) | |
4910 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4911 | lt_cv_sys_max_cmd_len=196608 | |
4912 | ;; | |
4913 | ||
4914 | osf*) | |
4915 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4916 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4917 | # nice to cause kernel panics so lets avoid the loop below. | |
4918 | # First set a reasonable default. | |
4919 | lt_cv_sys_max_cmd_len=16384 | |
4920 | # | |
4921 | if test -x /sbin/sysconfig; then | |
4922 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4923 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4924 | esac | |
4925 | fi | |
4926 | ;; | |
4927 | sco3.2v5*) | |
4928 | lt_cv_sys_max_cmd_len=102400 | |
4929 | ;; | |
4930 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4931 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4932 | if test -n "$kargmax"; then | |
4933 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4934 | else | |
4935 | lt_cv_sys_max_cmd_len=32768 | |
4936 | fi | |
4937 | ;; | |
4938 | *) | |
4939 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4940 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4941 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4942 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4943 | else | |
4944 | # Make teststring a little bigger before we do anything with it. | |
4945 | # a 1K string should be a reasonable start. | |
4946 | for i in 1 2 3 4 5 6 7 8 ; do | |
4947 | teststring=$teststring$teststring | |
4948 | done | |
4949 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4950 | # If test is not a shell built-in, we'll probably end up computing a | |
4951 | # maximum length that is only half of the actual maximum length, but | |
4952 | # we can't tell. | |
4953 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4954 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4955 | test $i != 17 # 1/2 MB should be enough | |
4956 | do | |
4957 | i=`expr $i + 1` | |
4958 | teststring=$teststring$teststring | |
4959 | done | |
4960 | # Only check the string length outside the loop. | |
4961 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4962 | teststring= | |
4963 | # Add a significant safety factor because C++ compilers can tack on | |
4964 | # massive amounts of additional arguments before passing them to the | |
4965 | # linker. It appears as though 1/2 is a usable value. | |
4966 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4967 | fi | |
4968 | ;; | |
4969 | esac | |
4970 | ||
4971 | fi | |
4972 | ||
4973 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4974 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4975 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4976 | else | |
4977 | { $as_echo "$as_me:$LINENO: result: none" >&5 | |
4978 | $as_echo "none" >&6; } | |
4979 | fi | |
4980 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
4981 | ||
4982 | ||
4983 | ||
4984 | ||
4985 | ||
4986 | ||
4987 | : ${CP="cp -f"} | |
4988 | : ${MV="mv -f"} | |
4989 | : ${RM="rm -f"} | |
4990 | ||
4991 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4992 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4993 | # Try some XSI features | |
4994 | xsi_shell=no | |
4995 | ( _lt_dummy="a/b/c" | |
4996 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4997 | = c,a/b,, \ | |
4998 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4999 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5000 | && xsi_shell=yes | |
5001 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
5002 | $as_echo "$xsi_shell" >&6; } | |
5003 | ||
5004 | ||
5005 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
5006 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5007 | lt_shell_append=no | |
5008 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5009 | >/dev/null 2>&1 \ | |
5010 | && lt_shell_append=yes | |
5011 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
5012 | $as_echo "$lt_shell_append" >&6; } | |
5013 | ||
5014 | ||
5015 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5016 | lt_unset=unset | |
5017 | else | |
5018 | lt_unset=false | |
5019 | fi | |
5020 | ||
5021 | ||
5022 | ||
5023 | ||
5024 | ||
5025 | # test EBCDIC or ASCII | |
5026 | case `echo X|tr X '\101'` in | |
5027 | A) # ASCII based system | |
5028 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5029 | lt_SP2NL='tr \040 \012' | |
5030 | lt_NL2SP='tr \015\012 \040\040' | |
5031 | ;; | |
5032 | *) # EBCDIC based system | |
5033 | lt_SP2NL='tr \100 \n' | |
5034 | lt_NL2SP='tr \r\n \100\100' | |
5035 | ;; | |
5036 | esac | |
5037 | ||
5038 | ||
5039 | ||
5040 | ||
5041 | ||
5042 | ||
5043 | ||
5044 | ||
5045 | ||
5046 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
5047 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5048 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5049 | $as_echo_n "(cached) " >&6 | |
5050 | else | |
5051 | lt_cv_ld_reload_flag='-r' | |
5052 | fi | |
5053 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
5054 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5055 | reload_flag=$lt_cv_ld_reload_flag | |
5056 | case $reload_flag in | |
5057 | "" | " "*) ;; | |
5058 | *) reload_flag=" $reload_flag" ;; | |
5059 | esac | |
5060 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5061 | case $host_os in | |
5062 | darwin*) | |
5063 | if test "$GCC" = yes; then | |
5064 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5065 | else | |
5066 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5067 | fi | |
5068 | ;; | |
5069 | esac | |
5070 | ||
5071 | ||
5072 | ||
5073 | ||
5074 | ||
5075 | ||
5076 | ||
5077 | ||
5078 | ||
5079 | if test -n "$ac_tool_prefix"; then | |
5080 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5081 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5082 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5083 | $as_echo_n "checking for $ac_word... " >&6; } | |
5084 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
5085 | $as_echo_n "(cached) " >&6 | |
5086 | else | |
5087 | if test -n "$OBJDUMP"; then | |
5088 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5089 | else | |
5090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5091 | for as_dir in $PATH | |
5092 | do | |
5093 | IFS=$as_save_IFS | |
5094 | test -z "$as_dir" && as_dir=. | |
5095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5096 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5097 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5098 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5099 | break 2 | |
5100 | fi | |
5101 | done | |
5102 | done | |
5103 | IFS=$as_save_IFS | |
5104 | ||
5105 | fi | |
5106 | fi | |
5107 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5108 | if test -n "$OBJDUMP"; then | |
5109 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
5110 | $as_echo "$OBJDUMP" >&6; } | |
5111 | else | |
5112 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5113 | $as_echo "no" >&6; } | |
5114 | fi | |
5115 | ||
5116 | ||
5117 | fi | |
5118 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5119 | ac_ct_OBJDUMP=$OBJDUMP | |
5120 | # Extract the first word of "objdump", so it can be a program name with args. | |
5121 | set dummy objdump; ac_word=$2 | |
5122 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5123 | $as_echo_n "checking for $ac_word... " >&6; } | |
5124 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
5125 | $as_echo_n "(cached) " >&6 | |
5126 | else | |
5127 | if test -n "$ac_ct_OBJDUMP"; then | |
5128 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5129 | else | |
5130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5131 | for as_dir in $PATH | |
5132 | do | |
5133 | IFS=$as_save_IFS | |
5134 | test -z "$as_dir" && as_dir=. | |
5135 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5137 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5138 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5139 | break 2 | |
5140 | fi | |
5141 | done | |
5142 | done | |
5143 | IFS=$as_save_IFS | |
5144 | ||
5145 | fi | |
5146 | fi | |
5147 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5148 | if test -n "$ac_ct_OBJDUMP"; then | |
5149 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
5150 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5151 | else | |
5152 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5153 | $as_echo "no" >&6; } | |
5154 | fi | |
5155 | ||
5156 | if test "x$ac_ct_OBJDUMP" = x; then | |
5157 | OBJDUMP="false" | |
5158 | else | |
5159 | case $cross_compiling:$ac_tool_warned in | |
5160 | yes:) | |
5161 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5162 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5163 | ac_tool_warned=yes ;; | |
5164 | esac | |
5165 | OBJDUMP=$ac_ct_OBJDUMP | |
5166 | fi | |
5167 | else | |
5168 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5169 | fi | |
5170 | ||
5171 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5172 | ||
5173 | ||
5174 | ||
5175 | ||
5176 | ||
5177 | ||
5178 | ||
5179 | ||
5180 | ||
5181 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
5182 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5183 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
5184 | $as_echo_n "(cached) " >&6 | |
5185 | else | |
5186 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5187 | lt_cv_file_magic_test_file= | |
5188 | lt_cv_deplibs_check_method='unknown' | |
5189 | # Need to set the preceding variable on all platforms that support | |
5190 | # interlibrary dependencies. | |
5191 | # 'none' -- dependencies not supported. | |
5192 | # `unknown' -- same as none, but documents that we really don't know. | |
5193 | # 'pass_all' -- all dependencies passed with no checks. | |
5194 | # 'test_compile' -- check by making test program. | |
5195 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5196 | # which responds to the $file_magic_cmd with a given extended regex. | |
5197 | # If you have `file' or equivalent on your system and you're not sure | |
5198 | # whether `pass_all' will *always* work, you probably want this one. | |
5199 | ||
5200 | case $host_os in | |
5201 | aix[4-9]*) | |
5202 | lt_cv_deplibs_check_method=pass_all | |
5203 | ;; | |
5204 | ||
5205 | beos*) | |
5206 | lt_cv_deplibs_check_method=pass_all | |
5207 | ;; | |
5208 | ||
5209 | bsdi[45]*) | |
5210 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5211 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5212 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5213 | ;; | |
5214 | ||
5215 | cygwin*) | |
5216 | # func_win32_libid is a shell function defined in ltmain.sh | |
5217 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5218 | lt_cv_file_magic_cmd='func_win32_libid' | |
5219 | ;; | |
5220 | ||
5221 | mingw* | pw32*) | |
5222 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5223 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5224 | # unless we find 'file', for example because we are cross-compiling. | |
5225 | if ( file / ) >/dev/null 2>&1; then | |
5226 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5227 | lt_cv_file_magic_cmd='func_win32_libid' | |
5228 | else | |
5229 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5230 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5231 | fi | |
5232 | ;; | |
5233 | ||
5234 | cegcc) | |
5235 | # use the weaker test based on 'objdump'. See mingw*. | |
5236 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5237 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5238 | ;; | |
5239 | ||
5240 | darwin* | rhapsody*) | |
5241 | lt_cv_deplibs_check_method=pass_all | |
5242 | ;; | |
5243 | ||
5244 | freebsd* | dragonfly*) | |
5245 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5246 | case $host_cpu in | |
5247 | i*86 ) | |
5248 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5249 | # Let's accept both of them until this is cleared up. | |
5250 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5251 | lt_cv_file_magic_cmd=/usr/bin/file | |
5252 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5253 | ;; | |
5254 | esac | |
5255 | else | |
5256 | lt_cv_deplibs_check_method=pass_all | |
5257 | fi | |
5258 | ;; | |
5259 | ||
5260 | gnu*) | |
5261 | lt_cv_deplibs_check_method=pass_all | |
5262 | ;; | |
5263 | ||
5264 | hpux10.20* | hpux11*) | |
5265 | lt_cv_file_magic_cmd=/usr/bin/file | |
5266 | case $host_cpu in | |
5267 | ia64*) | |
5268 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5269 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5270 | ;; | |
5271 | hppa*64*) | |
5272 | 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]' | |
5273 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5274 | ;; | |
5275 | *) | |
5276 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5277 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5278 | ;; | |
5279 | esac | |
5280 | ;; | |
5281 | ||
5282 | interix[3-9]*) | |
5283 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5284 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5285 | ;; | |
5286 | ||
5287 | irix5* | irix6* | nonstopux*) | |
5288 | case $LD in | |
5289 | *-32|*"-32 ") libmagic=32-bit;; | |
5290 | *-n32|*"-n32 ") libmagic=N32;; | |
5291 | *-64|*"-64 ") libmagic=64-bit;; | |
5292 | *) libmagic=never-match;; | |
5293 | esac | |
5294 | lt_cv_deplibs_check_method=pass_all | |
5295 | ;; | |
5296 | ||
5297 | # This must be Linux ELF. | |
5298 | linux* | k*bsd*-gnu) | |
5299 | lt_cv_deplibs_check_method=pass_all | |
5300 | ;; | |
5301 | ||
5302 | netbsd*) | |
5303 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5304 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5305 | else | |
5306 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5307 | fi | |
5308 | ;; | |
5309 | ||
5310 | newos6*) | |
5311 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5312 | lt_cv_file_magic_cmd=/usr/bin/file | |
5313 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5314 | ;; | |
5315 | ||
5316 | *nto* | *qnx*) | |
5317 | lt_cv_deplibs_check_method=pass_all | |
5318 | ;; | |
5319 | ||
5320 | openbsd*) | |
5321 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5322 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5323 | else | |
5324 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5325 | fi | |
5326 | ;; | |
5327 | ||
5328 | osf3* | osf4* | osf5*) | |
5329 | lt_cv_deplibs_check_method=pass_all | |
5330 | ;; | |
5331 | ||
5332 | rdos*) | |
5333 | lt_cv_deplibs_check_method=pass_all | |
5334 | ;; | |
5335 | ||
5336 | solaris*) | |
5337 | lt_cv_deplibs_check_method=pass_all | |
5338 | ;; | |
5339 | ||
5340 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5341 | lt_cv_deplibs_check_method=pass_all | |
5342 | ;; | |
5343 | ||
5344 | sysv4 | sysv4.3*) | |
5345 | case $host_vendor in | |
5346 | motorola) | |
5347 | 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]' | |
5348 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5349 | ;; | |
5350 | ncr) | |
5351 | lt_cv_deplibs_check_method=pass_all | |
5352 | ;; | |
5353 | sequent) | |
5354 | lt_cv_file_magic_cmd='/bin/file' | |
5355 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5356 | ;; | |
5357 | sni) | |
5358 | lt_cv_file_magic_cmd='/bin/file' | |
5359 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5360 | lt_cv_file_magic_test_file=/lib/libc.so | |
5361 | ;; | |
5362 | siemens) | |
5363 | lt_cv_deplibs_check_method=pass_all | |
5364 | ;; | |
5365 | pc) | |
5366 | lt_cv_deplibs_check_method=pass_all | |
5367 | ;; | |
5368 | esac | |
5369 | ;; | |
5370 | ||
5371 | tpf*) | |
5372 | lt_cv_deplibs_check_method=pass_all | |
5373 | ;; | |
5374 | esac | |
5375 | ||
5376 | fi | |
5377 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
5378 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5379 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5380 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5381 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5382 | ||
5383 | ||
5384 | ||
5385 | ||
5386 | ||
5387 | ||
5388 | ||
5389 | ||
5390 | ||
5391 | ||
5392 | ||
5393 | ||
5394 | if test -n "$ac_tool_prefix"; then | |
5395 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5396 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5397 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5398 | $as_echo_n "checking for $ac_word... " >&6; } | |
5399 | if test "${ac_cv_prog_AR+set}" = set; then | |
5400 | $as_echo_n "(cached) " >&6 | |
5401 | else | |
5402 | if test -n "$AR"; then | |
5403 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5404 | else | |
5405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5406 | for as_dir in $PATH | |
5407 | do | |
5408 | IFS=$as_save_IFS | |
5409 | test -z "$as_dir" && as_dir=. | |
5410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5412 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5413 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5414 | break 2 | |
5415 | fi | |
5416 | done | |
5417 | done | |
5418 | IFS=$as_save_IFS | |
5419 | ||
5420 | fi | |
5421 | fi | |
5422 | AR=$ac_cv_prog_AR | |
5423 | if test -n "$AR"; then | |
5424 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 | |
5425 | $as_echo "$AR" >&6; } | |
5426 | else | |
5427 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5428 | $as_echo "no" >&6; } | |
5429 | fi | |
5430 | ||
5431 | ||
5432 | fi | |
5433 | if test -z "$ac_cv_prog_AR"; then | |
5434 | ac_ct_AR=$AR | |
5435 | # Extract the first word of "ar", so it can be a program name with args. | |
5436 | set dummy ar; ac_word=$2 | |
5437 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5438 | $as_echo_n "checking for $ac_word... " >&6; } | |
5439 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5440 | $as_echo_n "(cached) " >&6 | |
5441 | else | |
5442 | if test -n "$ac_ct_AR"; then | |
5443 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5444 | else | |
5445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5446 | for as_dir in $PATH | |
5447 | do | |
5448 | IFS=$as_save_IFS | |
5449 | test -z "$as_dir" && as_dir=. | |
5450 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5452 | ac_cv_prog_ac_ct_AR="ar" | |
5453 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5454 | break 2 | |
5455 | fi | |
5456 | done | |
5457 | done | |
5458 | IFS=$as_save_IFS | |
5459 | ||
5460 | fi | |
5461 | fi | |
5462 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5463 | if test -n "$ac_ct_AR"; then | |
5464 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5465 | $as_echo "$ac_ct_AR" >&6; } | |
5466 | else | |
5467 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5468 | $as_echo "no" >&6; } | |
5469 | fi | |
5470 | ||
5471 | if test "x$ac_ct_AR" = x; then | |
5472 | AR="false" | |
5473 | else | |
5474 | case $cross_compiling:$ac_tool_warned in | |
5475 | yes:) | |
5476 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5477 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5478 | ac_tool_warned=yes ;; | |
5479 | esac | |
5480 | AR=$ac_ct_AR | |
5481 | fi | |
5482 | else | |
5483 | AR="$ac_cv_prog_AR" | |
5484 | fi | |
5485 | ||
5486 | test -z "$AR" && AR=ar | |
5487 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5488 | ||
5489 | ||
5490 | ||
5491 | ||
5492 | ||
5493 | ||
5494 | ||
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | if test -n "$ac_tool_prefix"; then | |
5500 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5501 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5502 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5503 | $as_echo_n "checking for $ac_word... " >&6; } | |
5504 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5505 | $as_echo_n "(cached) " >&6 | |
5506 | else | |
5507 | if test -n "$STRIP"; then | |
5508 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5509 | else | |
5510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5511 | for as_dir in $PATH | |
5512 | do | |
5513 | IFS=$as_save_IFS | |
5514 | test -z "$as_dir" && as_dir=. | |
5515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5517 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5518 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5519 | break 2 | |
5520 | fi | |
5521 | done | |
5522 | done | |
5523 | IFS=$as_save_IFS | |
5524 | ||
5525 | fi | |
5526 | fi | |
5527 | STRIP=$ac_cv_prog_STRIP | |
5528 | if test -n "$STRIP"; then | |
5529 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5530 | $as_echo "$STRIP" >&6; } | |
5531 | else | |
5532 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5533 | $as_echo "no" >&6; } | |
5534 | fi | |
5535 | ||
5536 | ||
5537 | fi | |
5538 | if test -z "$ac_cv_prog_STRIP"; then | |
5539 | ac_ct_STRIP=$STRIP | |
5540 | # Extract the first word of "strip", so it can be a program name with args. | |
5541 | set dummy strip; ac_word=$2 | |
5542 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5543 | $as_echo_n "checking for $ac_word... " >&6; } | |
5544 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5545 | $as_echo_n "(cached) " >&6 | |
5546 | else | |
5547 | if test -n "$ac_ct_STRIP"; then | |
5548 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5549 | else | |
5550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5551 | for as_dir in $PATH | |
5552 | do | |
5553 | IFS=$as_save_IFS | |
5554 | test -z "$as_dir" && as_dir=. | |
5555 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5557 | ac_cv_prog_ac_ct_STRIP="strip" | |
5558 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5559 | break 2 | |
5560 | fi | |
5561 | done | |
5562 | done | |
5563 | IFS=$as_save_IFS | |
5564 | ||
5565 | fi | |
5566 | fi | |
5567 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5568 | if test -n "$ac_ct_STRIP"; then | |
5569 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5570 | $as_echo "$ac_ct_STRIP" >&6; } | |
5571 | else | |
5572 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5573 | $as_echo "no" >&6; } | |
5574 | fi | |
5575 | ||
5576 | if test "x$ac_ct_STRIP" = x; then | |
5577 | STRIP=":" | |
5578 | else | |
5579 | case $cross_compiling:$ac_tool_warned in | |
5580 | yes:) | |
5581 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5582 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5583 | ac_tool_warned=yes ;; | |
5584 | esac | |
5585 | STRIP=$ac_ct_STRIP | |
5586 | fi | |
5587 | else | |
5588 | STRIP="$ac_cv_prog_STRIP" | |
5589 | fi | |
5590 | ||
5591 | test -z "$STRIP" && STRIP=: | |
5592 | ||
5593 | ||
5594 | ||
5595 | ||
5596 | ||
5597 | ||
5598 | if test -n "$ac_tool_prefix"; then | |
5599 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5600 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5601 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5602 | $as_echo_n "checking for $ac_word... " >&6; } | |
5603 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5604 | $as_echo_n "(cached) " >&6 | |
5605 | else | |
5606 | if test -n "$RANLIB"; then | |
5607 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5608 | else | |
5609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5610 | for as_dir in $PATH | |
5611 | do | |
5612 | IFS=$as_save_IFS | |
5613 | test -z "$as_dir" && as_dir=. | |
5614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5616 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5617 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5618 | break 2 | |
5619 | fi | |
5620 | done | |
5621 | done | |
5622 | IFS=$as_save_IFS | |
5623 | ||
5624 | fi | |
5625 | fi | |
5626 | RANLIB=$ac_cv_prog_RANLIB | |
5627 | if test -n "$RANLIB"; then | |
5628 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5629 | $as_echo "$RANLIB" >&6; } | |
5630 | else | |
5631 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5632 | $as_echo "no" >&6; } | |
5633 | fi | |
5634 | ||
5635 | ||
5636 | fi | |
5637 | if test -z "$ac_cv_prog_RANLIB"; then | |
5638 | ac_ct_RANLIB=$RANLIB | |
5639 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5640 | set dummy ranlib; ac_word=$2 | |
5641 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5642 | $as_echo_n "checking for $ac_word... " >&6; } | |
5643 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5644 | $as_echo_n "(cached) " >&6 | |
5645 | else | |
5646 | if test -n "$ac_ct_RANLIB"; then | |
5647 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5648 | else | |
5649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5650 | for as_dir in $PATH | |
5651 | do | |
5652 | IFS=$as_save_IFS | |
5653 | test -z "$as_dir" && as_dir=. | |
5654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5656 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5657 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5658 | break 2 | |
5659 | fi | |
5660 | done | |
5661 | done | |
5662 | IFS=$as_save_IFS | |
5663 | ||
5664 | fi | |
5665 | fi | |
5666 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5667 | if test -n "$ac_ct_RANLIB"; then | |
5668 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5669 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5670 | else | |
5671 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
5672 | $as_echo "no" >&6; } | |
5673 | fi | |
5674 | ||
5675 | if test "x$ac_ct_RANLIB" = x; then | |
5676 | RANLIB=":" | |
5677 | else | |
5678 | case $cross_compiling:$ac_tool_warned in | |
5679 | yes:) | |
5680 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5681 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5682 | ac_tool_warned=yes ;; | |
5683 | esac | |
5684 | RANLIB=$ac_ct_RANLIB | |
5685 | fi | |
5686 | else | |
5687 | RANLIB="$ac_cv_prog_RANLIB" | |
5688 | fi | |
5689 | ||
5690 | test -z "$RANLIB" && RANLIB=: | |
5691 | ||
5692 | ||
5693 | ||
5694 | ||
5695 | ||
5696 | ||
5697 | # Determine commands to create old-style static archives. | |
5698 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5699 | old_postinstall_cmds='chmod 644 $oldlib' | |
5700 | old_postuninstall_cmds= | |
5701 | ||
5702 | if test -n "$RANLIB"; then | |
5703 | case $host_os in | |
5704 | openbsd*) | |
5705 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5706 | ;; | |
5707 | *) | |
5708 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5709 | ;; | |
5710 | esac | |
5711 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5712 | fi | |
5713 | ||
5714 | ||
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | ||
5724 | ||
5725 | ||
5726 | ||
5727 | ||
5728 | ||
5729 | ||
5730 | ||
5731 | ||
5732 | ||
5733 | ||
5734 | ||
5735 | ||
5736 | ||
5737 | ||
5738 | ||
5739 | ||
5740 | ||
5741 | ||
5742 | ||
5743 | ||
5744 | ||
5745 | ||
5746 | ||
5747 | # If no C compiler was specified, use CC. | |
5748 | LTCC=${LTCC-"$CC"} | |
5749 | ||
5750 | # If no C compiler flags were specified, use CFLAGS. | |
5751 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5752 | ||
5753 | # Allow CC to be a program name with arguments. | |
5754 | compiler=$CC | |
5755 | ||
5756 | ||
5757 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5758 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5759 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
5760 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5761 | $as_echo_n "(cached) " >&6 | |
5762 | else | |
5763 | ||
5764 | # These are sane defaults that work on at least a few old systems. | |
5765 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5766 | ||
5767 | # Character class describing NM global symbol codes. | |
5768 | symcode='[BCDEGRST]' | |
5769 | ||
5770 | # Regexp to match symbols that can be accessed directly from C. | |
5771 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5772 | ||
5773 | # Define system-specific variables. | |
5774 | case $host_os in | |
5775 | aix*) | |
5776 | symcode='[BCDT]' | |
5777 | ;; | |
5778 | cygwin* | mingw* | pw32* | cegcc*) | |
5779 | symcode='[ABCDGISTW]' | |
5780 | ;; | |
5781 | hpux*) | |
5782 | if test "$host_cpu" = ia64; then | |
5783 | symcode='[ABCDEGRST]' | |
5784 | fi | |
5785 | ;; | |
5786 | irix* | nonstopux*) | |
5787 | symcode='[BCDEGRST]' | |
5788 | ;; | |
5789 | osf*) | |
5790 | symcode='[BCDEGQRST]' | |
5791 | ;; | |
5792 | solaris*) | |
5793 | symcode='[BDRT]' | |
5794 | ;; | |
5795 | sco3.2v5*) | |
5796 | symcode='[DT]' | |
5797 | ;; | |
5798 | sysv4.2uw2*) | |
5799 | symcode='[DT]' | |
5800 | ;; | |
5801 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5802 | symcode='[ABDT]' | |
5803 | ;; | |
5804 | sysv4) | |
5805 | symcode='[DFNSTU]' | |
5806 | ;; | |
5807 | esac | |
5808 | ||
5809 | # If we're using GNU nm, then use its standard symbol codes. | |
5810 | case `$NM -V 2>&1` in | |
5811 | *GNU* | *'with BFD'*) | |
5812 | symcode='[ABCDGIRSTW]' ;; | |
5813 | esac | |
5814 | ||
5815 | # Transform an extracted symbol line into a proper C declaration. | |
5816 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5817 | # so use this general approach. | |
5818 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5819 | ||
5820 | # Transform an extracted symbol line into symbol name and symbol address | |
5821 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5822 | 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'" | |
5823 | ||
5824 | # Handle CRLF in mingw tool chain | |
5825 | opt_cr= | |
5826 | case $build_os in | |
5827 | mingw*) | |
5828 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5829 | ;; | |
5830 | esac | |
5831 | ||
5832 | # Try without a prefix underscore, then with it. | |
5833 | for ac_symprfx in "" "_"; do | |
5834 | ||
5835 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5836 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5837 | ||
5838 | # Write the raw and C identifiers. | |
5839 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5840 | # Fake it for dumpbin and say T for any non-static function | |
5841 | # and D for any global variable. | |
5842 | # Also find C++ and __fastcall symbols from MSVC++, | |
5843 | # which start with @ or ?. | |
5844 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5845 | " {last_section=section; section=\$ 3};"\ | |
5846 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5847 | " \$ 0!~/External *\|/{next};"\ | |
5848 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5849 | " {if(hide[section]) next};"\ | |
5850 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5851 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5852 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5853 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5854 | " ' prfx=^$ac_symprfx" | |
5855 | else | |
5856 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5857 | fi | |
5858 | ||
5859 | # Check to see that the pipe works correctly. | |
5860 | pipe_works=no | |
5861 | ||
5862 | rm -f conftest* | |
5863 | cat > conftest.$ac_ext <<_LT_EOF | |
5864 | #ifdef __cplusplus | |
5865 | extern "C" { | |
5866 | #endif | |
5867 | char nm_test_var; | |
5868 | void nm_test_func(void); | |
5869 | void nm_test_func(void){} | |
5870 | #ifdef __cplusplus | |
5871 | } | |
5872 | #endif | |
5873 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5874 | _LT_EOF | |
5875 | ||
5876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5877 | (eval $ac_compile) 2>&5 | |
5878 | ac_status=$? | |
5879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5880 | (exit $ac_status); }; then | |
5881 | # Now try to grab the symbols. | |
5882 | nlist=conftest.nm | |
5883 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5884 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5885 | ac_status=$? | |
5886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5887 | (exit $ac_status); } && test -s "$nlist"; then | |
5888 | # Try sorting and uniquifying the output. | |
5889 | if sort "$nlist" | uniq > "$nlist"T; then | |
5890 | mv -f "$nlist"T "$nlist" | |
5891 | else | |
5892 | rm -f "$nlist"T | |
5893 | fi | |
5894 | ||
5895 | # Make sure that we snagged all the symbols we need. | |
5896 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5897 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5898 | cat <<_LT_EOF > conftest.$ac_ext | |
5899 | #ifdef __cplusplus | |
5900 | extern "C" { | |
5901 | #endif | |
5902 | ||
5903 | _LT_EOF | |
5904 | # Now generate the symbol file. | |
5905 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5906 | ||
5907 | cat <<_LT_EOF >> conftest.$ac_ext | |
5908 | ||
5909 | /* The mapping between symbol names and symbols. */ | |
5910 | const struct { | |
5911 | const char *name; | |
5912 | void *address; | |
5913 | } | |
5914 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5915 | { | |
5916 | { "@PROGRAM@", (void *) 0 }, | |
5917 | _LT_EOF | |
5918 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5919 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5920 | {0, (void *) 0} | |
5921 | }; | |
5922 | ||
5923 | /* This works around a problem in FreeBSD linker */ | |
5924 | #ifdef FREEBSD_WORKAROUND | |
5925 | static const void *lt_preloaded_setup() { | |
5926 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5927 | } | |
5928 | #endif | |
5929 | ||
5930 | #ifdef __cplusplus | |
5931 | } | |
5932 | #endif | |
5933 | _LT_EOF | |
5934 | # Now try linking the two files. | |
5935 | mv conftest.$ac_objext conftstm.$ac_objext | |
5936 | lt_save_LIBS="$LIBS" | |
5937 | lt_save_CFLAGS="$CFLAGS" | |
5938 | LIBS="conftstm.$ac_objext" | |
5939 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5941 | (eval $ac_link) 2>&5 | |
5942 | ac_status=$? | |
5943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5944 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5945 | pipe_works=yes | |
5946 | fi | |
5947 | LIBS="$lt_save_LIBS" | |
5948 | CFLAGS="$lt_save_CFLAGS" | |
5949 | else | |
5950 | echo "cannot find nm_test_func in $nlist" >&5 | |
5951 | fi | |
5952 | else | |
5953 | echo "cannot find nm_test_var in $nlist" >&5 | |
5954 | fi | |
5955 | else | |
5956 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5957 | fi | |
5958 | else | |
5959 | echo "$progname: failed program was:" >&5 | |
5960 | cat conftest.$ac_ext >&5 | |
5961 | fi | |
5962 | rm -rf conftest* conftst* | |
5963 | ||
5964 | # Do not use the global_symbol_pipe unless it works. | |
5965 | if test "$pipe_works" = yes; then | |
5966 | break | |
5967 | else | |
5968 | lt_cv_sys_global_symbol_pipe= | |
5969 | fi | |
5970 | done | |
5971 | ||
5972 | fi | |
5973 | ||
5974 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5975 | lt_cv_sys_global_symbol_to_cdecl= | |
5976 | fi | |
5977 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5978 | { $as_echo "$as_me:$LINENO: result: failed" >&5 | |
5979 | $as_echo "failed" >&6; } | |
5980 | else | |
5981 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
5982 | $as_echo "ok" >&6; } | |
5983 | fi | |
5984 | ||
5985 | ||
5986 | ||
5987 | ||
5988 | ||
5989 | ||
5990 | ||
5991 | ||
5992 | ||
5993 | ||
5994 | ||
5995 | ||
5996 | ||
5997 | ||
5998 | ||
5999 | ||
6000 | ||
6001 | ||
6002 | ||
6003 | ||
6004 | ||
6005 | ||
6006 | ||
6007 | # Check whether --enable-libtool-lock was given. | |
6008 | if test "${enable_libtool_lock+set}" = set; then | |
6009 | enableval=$enable_libtool_lock; | |
6010 | fi | |
6011 | ||
6012 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6013 | ||
6014 | # Some flags need to be propagated to the compiler or linker for good | |
6015 | # libtool support. | |
6016 | case $host in | |
6017 | ia64-*-hpux*) | |
6018 | # Find out which ABI we are using. | |
6019 | echo 'int i;' > conftest.$ac_ext | |
6020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6021 | (eval $ac_compile) 2>&5 | |
6022 | ac_status=$? | |
6023 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6024 | (exit $ac_status); }; then | |
6025 | case `/usr/bin/file conftest.$ac_objext` in | |
6026 | *ELF-32*) | |
6027 | HPUX_IA64_MODE="32" | |
6028 | ;; | |
6029 | *ELF-64*) | |
6030 | HPUX_IA64_MODE="64" | |
6031 | ;; | |
6032 | esac | |
6033 | fi | |
6034 | rm -rf conftest* | |
6035 | ;; | |
6036 | *-*-irix6*) | |
6037 | # Find out which ABI we are using. | |
615ab66d | 6038 | echo '#line 6038 "configure"' > conftest.$ac_ext |
e70e591c BB |
6039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6040 | (eval $ac_compile) 2>&5 | |
6041 | ac_status=$? | |
6042 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6043 | (exit $ac_status); }; then | |
6044 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6045 | case `/usr/bin/file conftest.$ac_objext` in | |
6046 | *32-bit*) | |
6047 | LD="${LD-ld} -melf32bsmip" | |
6048 | ;; | |
6049 | *N32*) | |
6050 | LD="${LD-ld} -melf32bmipn32" | |
6051 | ;; | |
6052 | *64-bit*) | |
6053 | LD="${LD-ld} -melf64bmip" | |
6054 | ;; | |
6055 | esac | |
6056 | else | |
6057 | case `/usr/bin/file conftest.$ac_objext` in | |
6058 | *32-bit*) | |
6059 | LD="${LD-ld} -32" | |
6060 | ;; | |
6061 | *N32*) | |
6062 | LD="${LD-ld} -n32" | |
6063 | ;; | |
6064 | *64-bit*) | |
6065 | LD="${LD-ld} -64" | |
6066 | ;; | |
6067 | esac | |
6068 | fi | |
6069 | fi | |
6070 | rm -rf conftest* | |
6071 | ;; | |
6072 | ||
6073 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6074 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6075 | # Find out which ABI we are using. | |
6076 | echo 'int i;' > conftest.$ac_ext | |
6077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6078 | (eval $ac_compile) 2>&5 | |
6079 | ac_status=$? | |
6080 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6081 | (exit $ac_status); }; then | |
6082 | case `/usr/bin/file conftest.o` in | |
6083 | *32-bit*) | |
6084 | case $host in | |
6085 | x86_64-*kfreebsd*-gnu) | |
6086 | LD="${LD-ld} -m elf_i386_fbsd" | |
6087 | ;; | |
6088 | x86_64-*linux*) | |
6089 | LD="${LD-ld} -m elf_i386" | |
6090 | ;; | |
6091 | ppc64-*linux*|powerpc64-*linux*) | |
6092 | LD="${LD-ld} -m elf32ppclinux" | |
6093 | ;; | |
6094 | s390x-*linux*) | |
6095 | LD="${LD-ld} -m elf_s390" | |
6096 | ;; | |
6097 | sparc64-*linux*) | |
6098 | LD="${LD-ld} -m elf32_sparc" | |
6099 | ;; | |
6100 | esac | |
6101 | ;; | |
6102 | *64-bit*) | |
6103 | case $host in | |
6104 | x86_64-*kfreebsd*-gnu) | |
6105 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6106 | ;; | |
6107 | x86_64-*linux*) | |
6108 | LD="${LD-ld} -m elf_x86_64" | |
6109 | ;; | |
6110 | ppc*-*linux*|powerpc*-*linux*) | |
6111 | LD="${LD-ld} -m elf64ppc" | |
6112 | ;; | |
6113 | s390*-*linux*|s390*-*tpf*) | |
6114 | LD="${LD-ld} -m elf64_s390" | |
6115 | ;; | |
6116 | sparc*-*linux*) | |
6117 | LD="${LD-ld} -m elf64_sparc" | |
6118 | ;; | |
6119 | esac | |
6120 | ;; | |
6121 | esac | |
6122 | fi | |
6123 | rm -rf conftest* | |
6124 | ;; | |
6125 | ||
6126 | *-*-sco3.2v5*) | |
6127 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6128 | SAVE_CFLAGS="$CFLAGS" | |
6129 | CFLAGS="$CFLAGS -belf" | |
6130 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6131 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6132 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6133 | $as_echo_n "(cached) " >&6 | |
6134 | else | |
6135 | ac_ext=c | |
6136 | ac_cpp='$CPP $CPPFLAGS' | |
6137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6140 | ||
6141 | cat >conftest.$ac_ext <<_ACEOF | |
6142 | /* confdefs.h. */ | |
6143 | _ACEOF | |
6144 | cat confdefs.h >>conftest.$ac_ext | |
6145 | cat >>conftest.$ac_ext <<_ACEOF | |
6146 | /* end confdefs.h. */ | |
6147 | ||
6148 | int | |
6149 | main () | |
6150 | { | |
6151 | ||
6152 | ; | |
6153 | return 0; | |
6154 | } | |
6155 | _ACEOF | |
6156 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6157 | if { (ac_try="$ac_link" | |
6158 | case "(($ac_try" in | |
6159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6160 | *) ac_try_echo=$ac_try;; | |
6161 | esac | |
6162 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6163 | $as_echo "$ac_try_echo") >&5 | |
6164 | (eval "$ac_link") 2>conftest.er1 | |
6165 | ac_status=$? | |
6166 | grep -v '^ *+' conftest.er1 >conftest.err | |
6167 | rm -f conftest.er1 | |
6168 | cat conftest.err >&5 | |
6169 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6170 | (exit $ac_status); } && { | |
6171 | test -z "$ac_c_werror_flag" || | |
6172 | test ! -s conftest.err | |
6173 | } && test -s conftest$ac_exeext && { | |
6174 | test "$cross_compiling" = yes || | |
6175 | $as_test_x conftest$ac_exeext | |
6176 | }; then | |
6177 | lt_cv_cc_needs_belf=yes | |
6178 | else | |
6179 | $as_echo "$as_me: failed program was:" >&5 | |
6180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6181 | ||
6182 | lt_cv_cc_needs_belf=no | |
6183 | fi | |
6184 | ||
6185 | rm -rf conftest.dSYM | |
6186 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6187 | conftest$ac_exeext conftest.$ac_ext | |
6188 | ac_ext=c | |
6189 | ac_cpp='$CPP $CPPFLAGS' | |
6190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6193 | ||
6194 | fi | |
6195 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
6196 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6197 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6198 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6199 | CFLAGS="$SAVE_CFLAGS" | |
6200 | fi | |
6201 | ;; | |
6202 | sparc*-*solaris*) | |
6203 | # Find out which ABI we are using. | |
6204 | echo 'int i;' > conftest.$ac_ext | |
6205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6206 | (eval $ac_compile) 2>&5 | |
6207 | ac_status=$? | |
6208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6209 | (exit $ac_status); }; then | |
6210 | case `/usr/bin/file conftest.o` in | |
6211 | *64-bit*) | |
6212 | case $lt_cv_prog_gnu_ld in | |
6213 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6214 | *) | |
6215 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6216 | LD="${LD-ld} -64" | |
6217 | fi | |
6218 | ;; | |
6219 | esac | |
6220 | ;; | |
6221 | esac | |
6222 | fi | |
6223 | rm -rf conftest* | |
6224 | ;; | |
6225 | esac | |
6226 | ||
6227 | need_locks="$enable_libtool_lock" | |
6228 | ||
6229 | ||
6230 | case $host_os in | |
6231 | rhapsody* | darwin*) | |
6232 | if test -n "$ac_tool_prefix"; then | |
6233 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6234 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6235 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6236 | $as_echo_n "checking for $ac_word... " >&6; } | |
6237 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
6238 | $as_echo_n "(cached) " >&6 | |
6239 | else | |
6240 | if test -n "$DSYMUTIL"; then | |
6241 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6242 | else | |
6243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6244 | for as_dir in $PATH | |
6245 | do | |
6246 | IFS=$as_save_IFS | |
6247 | test -z "$as_dir" && as_dir=. | |
6248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6250 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6251 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6252 | break 2 | |
6253 | fi | |
6254 | done | |
6255 | done | |
6256 | IFS=$as_save_IFS | |
6257 | ||
6258 | fi | |
6259 | fi | |
6260 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6261 | if test -n "$DSYMUTIL"; then | |
6262 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
6263 | $as_echo "$DSYMUTIL" >&6; } | |
6264 | else | |
6265 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6266 | $as_echo "no" >&6; } | |
6267 | fi | |
6268 | ||
6269 | ||
6270 | fi | |
6271 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6272 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6273 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6274 | set dummy dsymutil; ac_word=$2 | |
6275 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6276 | $as_echo_n "checking for $ac_word... " >&6; } | |
6277 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
6278 | $as_echo_n "(cached) " >&6 | |
6279 | else | |
6280 | if test -n "$ac_ct_DSYMUTIL"; then | |
6281 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6282 | else | |
6283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6284 | for as_dir in $PATH | |
6285 | do | |
6286 | IFS=$as_save_IFS | |
6287 | test -z "$as_dir" && as_dir=. | |
6288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6290 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6291 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6292 | break 2 | |
6293 | fi | |
6294 | done | |
6295 | done | |
6296 | IFS=$as_save_IFS | |
6297 | ||
6298 | fi | |
6299 | fi | |
6300 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6301 | if test -n "$ac_ct_DSYMUTIL"; then | |
6302 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
6303 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
6304 | else | |
6305 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6306 | $as_echo "no" >&6; } | |
6307 | fi | |
6308 | ||
6309 | if test "x$ac_ct_DSYMUTIL" = x; then | |
6310 | DSYMUTIL=":" | |
6311 | else | |
6312 | case $cross_compiling:$ac_tool_warned in | |
6313 | yes:) | |
6314 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6315 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6316 | ac_tool_warned=yes ;; | |
6317 | esac | |
6318 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6319 | fi | |
6320 | else | |
6321 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6322 | fi | |
6323 | ||
6324 | if test -n "$ac_tool_prefix"; then | |
6325 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6326 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6327 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6328 | $as_echo_n "checking for $ac_word... " >&6; } | |
6329 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
6330 | $as_echo_n "(cached) " >&6 | |
6331 | else | |
6332 | if test -n "$NMEDIT"; then | |
6333 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6334 | else | |
6335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6336 | for as_dir in $PATH | |
6337 | do | |
6338 | IFS=$as_save_IFS | |
6339 | test -z "$as_dir" && as_dir=. | |
6340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6342 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6343 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6344 | break 2 | |
6345 | fi | |
6346 | done | |
6347 | done | |
6348 | IFS=$as_save_IFS | |
6349 | ||
6350 | fi | |
6351 | fi | |
6352 | NMEDIT=$ac_cv_prog_NMEDIT | |
6353 | if test -n "$NMEDIT"; then | |
6354 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
6355 | $as_echo "$NMEDIT" >&6; } | |
6356 | else | |
6357 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6358 | $as_echo "no" >&6; } | |
6359 | fi | |
6360 | ||
6361 | ||
6362 | fi | |
6363 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6364 | ac_ct_NMEDIT=$NMEDIT | |
6365 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6366 | set dummy nmedit; ac_word=$2 | |
6367 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6368 | $as_echo_n "checking for $ac_word... " >&6; } | |
6369 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6370 | $as_echo_n "(cached) " >&6 | |
6371 | else | |
6372 | if test -n "$ac_ct_NMEDIT"; then | |
6373 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6374 | else | |
6375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6376 | for as_dir in $PATH | |
6377 | do | |
6378 | IFS=$as_save_IFS | |
6379 | test -z "$as_dir" && as_dir=. | |
6380 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6381 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6382 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6383 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6384 | break 2 | |
6385 | fi | |
6386 | done | |
6387 | done | |
6388 | IFS=$as_save_IFS | |
6389 | ||
6390 | fi | |
6391 | fi | |
6392 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6393 | if test -n "$ac_ct_NMEDIT"; then | |
6394 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
6395 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
6396 | else | |
6397 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6398 | $as_echo "no" >&6; } | |
6399 | fi | |
6400 | ||
6401 | if test "x$ac_ct_NMEDIT" = x; then | |
6402 | NMEDIT=":" | |
6403 | else | |
6404 | case $cross_compiling:$ac_tool_warned in | |
6405 | yes:) | |
6406 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6407 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6408 | ac_tool_warned=yes ;; | |
6409 | esac | |
6410 | NMEDIT=$ac_ct_NMEDIT | |
6411 | fi | |
6412 | else | |
6413 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6414 | fi | |
6415 | ||
6416 | if test -n "$ac_tool_prefix"; then | |
6417 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6418 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6419 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6420 | $as_echo_n "checking for $ac_word... " >&6; } | |
6421 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
6422 | $as_echo_n "(cached) " >&6 | |
6423 | else | |
6424 | if test -n "$LIPO"; then | |
6425 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6426 | else | |
6427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6428 | for as_dir in $PATH | |
6429 | do | |
6430 | IFS=$as_save_IFS | |
6431 | test -z "$as_dir" && as_dir=. | |
6432 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6434 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6435 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6436 | break 2 | |
6437 | fi | |
6438 | done | |
6439 | done | |
6440 | IFS=$as_save_IFS | |
6441 | ||
6442 | fi | |
6443 | fi | |
6444 | LIPO=$ac_cv_prog_LIPO | |
6445 | if test -n "$LIPO"; then | |
6446 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 | |
6447 | $as_echo "$LIPO" >&6; } | |
6448 | else | |
6449 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6450 | $as_echo "no" >&6; } | |
6451 | fi | |
6452 | ||
6453 | ||
6454 | fi | |
6455 | if test -z "$ac_cv_prog_LIPO"; then | |
6456 | ac_ct_LIPO=$LIPO | |
6457 | # Extract the first word of "lipo", so it can be a program name with args. | |
6458 | set dummy lipo; ac_word=$2 | |
6459 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6460 | $as_echo_n "checking for $ac_word... " >&6; } | |
6461 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
6462 | $as_echo_n "(cached) " >&6 | |
6463 | else | |
6464 | if test -n "$ac_ct_LIPO"; then | |
6465 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6466 | else | |
6467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6468 | for as_dir in $PATH | |
6469 | do | |
6470 | IFS=$as_save_IFS | |
6471 | test -z "$as_dir" && as_dir=. | |
6472 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6473 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6474 | ac_cv_prog_ac_ct_LIPO="lipo" | |
6475 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6476 | break 2 | |
6477 | fi | |
6478 | done | |
6479 | done | |
6480 | IFS=$as_save_IFS | |
6481 | ||
6482 | fi | |
6483 | fi | |
6484 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6485 | if test -n "$ac_ct_LIPO"; then | |
6486 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
6487 | $as_echo "$ac_ct_LIPO" >&6; } | |
6488 | else | |
6489 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6490 | $as_echo "no" >&6; } | |
6491 | fi | |
6492 | ||
6493 | if test "x$ac_ct_LIPO" = x; then | |
6494 | LIPO=":" | |
6495 | else | |
6496 | case $cross_compiling:$ac_tool_warned in | |
6497 | yes:) | |
6498 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6499 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6500 | ac_tool_warned=yes ;; | |
6501 | esac | |
6502 | LIPO=$ac_ct_LIPO | |
6503 | fi | |
6504 | else | |
6505 | LIPO="$ac_cv_prog_LIPO" | |
6506 | fi | |
6507 | ||
6508 | if test -n "$ac_tool_prefix"; then | |
6509 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6510 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6511 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6512 | $as_echo_n "checking for $ac_word... " >&6; } | |
6513 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
6514 | $as_echo_n "(cached) " >&6 | |
6515 | else | |
6516 | if test -n "$OTOOL"; then | |
6517 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6518 | else | |
6519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6520 | for as_dir in $PATH | |
6521 | do | |
6522 | IFS=$as_save_IFS | |
6523 | test -z "$as_dir" && as_dir=. | |
6524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6526 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6527 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6528 | break 2 | |
6529 | fi | |
6530 | done | |
6531 | done | |
6532 | IFS=$as_save_IFS | |
6533 | ||
6534 | fi | |
6535 | fi | |
6536 | OTOOL=$ac_cv_prog_OTOOL | |
6537 | if test -n "$OTOOL"; then | |
6538 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
6539 | $as_echo "$OTOOL" >&6; } | |
6540 | else | |
6541 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6542 | $as_echo "no" >&6; } | |
6543 | fi | |
6544 | ||
6545 | ||
6546 | fi | |
6547 | if test -z "$ac_cv_prog_OTOOL"; then | |
6548 | ac_ct_OTOOL=$OTOOL | |
6549 | # Extract the first word of "otool", so it can be a program name with args. | |
6550 | set dummy otool; ac_word=$2 | |
6551 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6552 | $as_echo_n "checking for $ac_word... " >&6; } | |
6553 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
6554 | $as_echo_n "(cached) " >&6 | |
6555 | else | |
6556 | if test -n "$ac_ct_OTOOL"; then | |
6557 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6558 | else | |
6559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6560 | for as_dir in $PATH | |
6561 | do | |
6562 | IFS=$as_save_IFS | |
6563 | test -z "$as_dir" && as_dir=. | |
6564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6566 | ac_cv_prog_ac_ct_OTOOL="otool" | |
6567 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6568 | break 2 | |
6569 | fi | |
6570 | done | |
6571 | done | |
6572 | IFS=$as_save_IFS | |
6573 | ||
6574 | fi | |
6575 | fi | |
6576 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6577 | if test -n "$ac_ct_OTOOL"; then | |
6578 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
6579 | $as_echo "$ac_ct_OTOOL" >&6; } | |
6580 | else | |
6581 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6582 | $as_echo "no" >&6; } | |
6583 | fi | |
6584 | ||
6585 | if test "x$ac_ct_OTOOL" = x; then | |
6586 | OTOOL=":" | |
6587 | else | |
6588 | case $cross_compiling:$ac_tool_warned in | |
6589 | yes:) | |
6590 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6591 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6592 | ac_tool_warned=yes ;; | |
6593 | esac | |
6594 | OTOOL=$ac_ct_OTOOL | |
6595 | fi | |
6596 | else | |
6597 | OTOOL="$ac_cv_prog_OTOOL" | |
6598 | fi | |
6599 | ||
6600 | if test -n "$ac_tool_prefix"; then | |
6601 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6602 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6603 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6604 | $as_echo_n "checking for $ac_word... " >&6; } | |
6605 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
6606 | $as_echo_n "(cached) " >&6 | |
6607 | else | |
6608 | if test -n "$OTOOL64"; then | |
6609 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6610 | else | |
6611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6612 | for as_dir in $PATH | |
6613 | do | |
6614 | IFS=$as_save_IFS | |
6615 | test -z "$as_dir" && as_dir=. | |
6616 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6618 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6619 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6620 | break 2 | |
6621 | fi | |
6622 | done | |
6623 | done | |
6624 | IFS=$as_save_IFS | |
6625 | ||
6626 | fi | |
6627 | fi | |
6628 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6629 | if test -n "$OTOOL64"; then | |
6630 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6631 | $as_echo "$OTOOL64" >&6; } | |
6632 | else | |
6633 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6634 | $as_echo "no" >&6; } | |
6635 | fi | |
6636 | ||
6637 | ||
6638 | fi | |
6639 | if test -z "$ac_cv_prog_OTOOL64"; then | |
6640 | ac_ct_OTOOL64=$OTOOL64 | |
6641 | # Extract the first word of "otool64", so it can be a program name with args. | |
6642 | set dummy otool64; ac_word=$2 | |
6643 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6644 | $as_echo_n "checking for $ac_word... " >&6; } | |
6645 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6646 | $as_echo_n "(cached) " >&6 | |
6647 | else | |
6648 | if test -n "$ac_ct_OTOOL64"; then | |
6649 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6650 | else | |
6651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6652 | for as_dir in $PATH | |
6653 | do | |
6654 | IFS=$as_save_IFS | |
6655 | test -z "$as_dir" && as_dir=. | |
6656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6658 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6659 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6660 | break 2 | |
6661 | fi | |
6662 | done | |
6663 | done | |
6664 | IFS=$as_save_IFS | |
6665 | ||
6666 | fi | |
6667 | fi | |
6668 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6669 | if test -n "$ac_ct_OTOOL64"; then | |
6670 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6671 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
6672 | else | |
6673 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
6674 | $as_echo "no" >&6; } | |
6675 | fi | |
6676 | ||
6677 | if test "x$ac_ct_OTOOL64" = x; then | |
6678 | OTOOL64=":" | |
6679 | else | |
6680 | case $cross_compiling:$ac_tool_warned in | |
6681 | yes:) | |
6682 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6683 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6684 | ac_tool_warned=yes ;; | |
6685 | esac | |
6686 | OTOOL64=$ac_ct_OTOOL64 | |
6687 | fi | |
6688 | else | |
6689 | OTOOL64="$ac_cv_prog_OTOOL64" | |
6690 | fi | |
6691 | ||
6692 | ||
6693 | ||
6694 | ||
6695 | ||
6696 | ||
6697 | ||
6698 | ||
6699 | ||
6700 | ||
6701 | ||
6702 | ||
6703 | ||
6704 | ||
6705 | ||
6706 | ||
6707 | ||
6708 | ||
6709 | ||
6710 | ||
6711 | ||
6712 | ||
6713 | ||
6714 | ||
6715 | ||
6716 | ||
6717 | ||
6718 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
6719 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
6720 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6721 | $as_echo_n "(cached) " >&6 | |
6722 | else | |
6723 | lt_cv_apple_cc_single_mod=no | |
6724 | if test -z "${LT_MULTI_MODULE}"; then | |
6725 | # By default we will add the -single_module flag. You can override | |
6726 | # by either setting the environment variable LT_MULTI_MODULE | |
6727 | # non-empty at configure time, or by adding -multi_module to the | |
6728 | # link flags. | |
6729 | rm -rf libconftest.dylib* | |
6730 | echo "int foo(void){return 1;}" > conftest.c | |
6731 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6732 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6733 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6734 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6735 | _lt_result=$? | |
6736 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6737 | lt_cv_apple_cc_single_mod=yes | |
6738 | else | |
6739 | cat conftest.err >&5 | |
6740 | fi | |
6741 | rm -rf libconftest.dylib* | |
6742 | rm -f conftest.* | |
6743 | fi | |
6744 | fi | |
6745 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
6746 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6747 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6748 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
6749 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6750 | $as_echo_n "(cached) " >&6 | |
6751 | else | |
6752 | lt_cv_ld_exported_symbols_list=no | |
6753 | save_LDFLAGS=$LDFLAGS | |
6754 | echo "_main" > conftest.sym | |
6755 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6756 | cat >conftest.$ac_ext <<_ACEOF | |
6757 | /* confdefs.h. */ | |
6758 | _ACEOF | |
6759 | cat confdefs.h >>conftest.$ac_ext | |
6760 | cat >>conftest.$ac_ext <<_ACEOF | |
6761 | /* end confdefs.h. */ | |
6762 | ||
6763 | int | |
6764 | main () | |
6765 | { | |
6766 | ||
6767 | ; | |
6768 | return 0; | |
6769 | } | |
6770 | _ACEOF | |
6771 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6772 | if { (ac_try="$ac_link" | |
6773 | case "(($ac_try" in | |
6774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6775 | *) ac_try_echo=$ac_try;; | |
6776 | esac | |
6777 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6778 | $as_echo "$ac_try_echo") >&5 | |
6779 | (eval "$ac_link") 2>conftest.er1 | |
6780 | ac_status=$? | |
6781 | grep -v '^ *+' conftest.er1 >conftest.err | |
6782 | rm -f conftest.er1 | |
6783 | cat conftest.err >&5 | |
6784 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6785 | (exit $ac_status); } && { | |
6786 | test -z "$ac_c_werror_flag" || | |
6787 | test ! -s conftest.err | |
6788 | } && test -s conftest$ac_exeext && { | |
6789 | test "$cross_compiling" = yes || | |
6790 | $as_test_x conftest$ac_exeext | |
6791 | }; then | |
6792 | lt_cv_ld_exported_symbols_list=yes | |
6793 | else | |
6794 | $as_echo "$as_me: failed program was:" >&5 | |
6795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6796 | ||
6797 | lt_cv_ld_exported_symbols_list=no | |
6798 | fi | |
6799 | ||
6800 | rm -rf conftest.dSYM | |
6801 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6802 | conftest$ac_exeext conftest.$ac_ext | |
6803 | LDFLAGS="$save_LDFLAGS" | |
6804 | ||
6805 | fi | |
6806 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6807 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
6808 | case $host_os in | |
6809 | rhapsody* | darwin1.[012]) | |
6810 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6811 | darwin1.*) | |
6812 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6813 | darwin*) # darwin 5.x on | |
6814 | # if running on 10.5 or later, the deployment target defaults | |
6815 | # to the OS version, if on x86, and 10.4, the deployment | |
6816 | # target defaults to 10.4. Don't you love it? | |
6817 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6818 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6819 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6820 | 10.[012]*) | |
6821 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6822 | 10.*) | |
6823 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6824 | esac | |
6825 | ;; | |
6826 | esac | |
6827 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6828 | _lt_dar_single_mod='$single_module' | |
6829 | fi | |
6830 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6831 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6832 | else | |
6833 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6834 | fi | |
6835 | if test "$DSYMUTIL" != ":"; then | |
6836 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6837 | else | |
6838 | _lt_dsymutil= | |
6839 | fi | |
6840 | ;; | |
6841 | esac | |
6842 | ||
6843 | ac_ext=c | |
6844 | ac_cpp='$CPP $CPPFLAGS' | |
6845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6848 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
6849 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6850 | # On Suns, sometimes $CPP names a directory. | |
6851 | if test -n "$CPP" && test -d "$CPP"; then | |
6852 | CPP= | |
6853 | fi | |
6854 | if test -z "$CPP"; then | |
6855 | if test "${ac_cv_prog_CPP+set}" = set; then | |
6856 | $as_echo_n "(cached) " >&6 | |
6857 | else | |
6858 | # Double quotes because CPP needs to be expanded | |
6859 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6860 | do | |
6861 | ac_preproc_ok=false | |
6862 | for ac_c_preproc_warn_flag in '' yes | |
6863 | do | |
6864 | # Use a header file that comes with gcc, so configuring glibc | |
6865 | # with a fresh cross-compiler works. | |
6866 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6867 | # <limits.h> exists even on freestanding compilers. | |
6868 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6869 | # not just through cpp. "Syntax error" is here to catch this case. | |
6870 | cat >conftest.$ac_ext <<_ACEOF | |
6871 | /* confdefs.h. */ | |
6872 | _ACEOF | |
6873 | cat confdefs.h >>conftest.$ac_ext | |
6874 | cat >>conftest.$ac_ext <<_ACEOF | |
6875 | /* end confdefs.h. */ | |
6876 | #ifdef __STDC__ | |
6877 | # include <limits.h> | |
6878 | #else | |
6879 | # include <assert.h> | |
6880 | #endif | |
6881 | Syntax error | |
6882 | _ACEOF | |
6883 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6884 | case "(($ac_try" in | |
6885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6886 | *) ac_try_echo=$ac_try;; | |
6887 | esac | |
6888 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6889 | $as_echo "$ac_try_echo") >&5 | |
6890 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6891 | ac_status=$? | |
6892 | grep -v '^ *+' conftest.er1 >conftest.err | |
6893 | rm -f conftest.er1 | |
6894 | cat conftest.err >&5 | |
6895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6896 | (exit $ac_status); } >/dev/null && { | |
6897 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6898 | test ! -s conftest.err | |
6899 | }; then | |
6900 | : | |
6901 | else | |
6902 | $as_echo "$as_me: failed program was:" >&5 | |
6903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6904 | ||
6905 | # Broken: fails on valid input. | |
6906 | continue | |
6907 | fi | |
6908 | ||
6909 | rm -f conftest.err conftest.$ac_ext | |
6910 | ||
6911 | # OK, works on sane cases. Now check whether nonexistent headers | |
6912 | # can be detected and how. | |
6913 | cat >conftest.$ac_ext <<_ACEOF | |
6914 | /* confdefs.h. */ | |
6915 | _ACEOF | |
6916 | cat confdefs.h >>conftest.$ac_ext | |
6917 | cat >>conftest.$ac_ext <<_ACEOF | |
6918 | /* end confdefs.h. */ | |
6919 | #include <ac_nonexistent.h> | |
6920 | _ACEOF | |
6921 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6922 | case "(($ac_try" in | |
6923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6924 | *) ac_try_echo=$ac_try;; | |
6925 | esac | |
6926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6927 | $as_echo "$ac_try_echo") >&5 | |
6928 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6929 | ac_status=$? | |
6930 | grep -v '^ *+' conftest.er1 >conftest.err | |
6931 | rm -f conftest.er1 | |
6932 | cat conftest.err >&5 | |
6933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6934 | (exit $ac_status); } >/dev/null && { | |
6935 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6936 | test ! -s conftest.err | |
6937 | }; then | |
6938 | # Broken: success on invalid input. | |
6939 | continue | |
6940 | else | |
6941 | $as_echo "$as_me: failed program was:" >&5 | |
6942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6943 | ||
6944 | # Passes both tests. | |
6945 | ac_preproc_ok=: | |
6946 | break | |
6947 | fi | |
6948 | ||
6949 | rm -f conftest.err conftest.$ac_ext | |
6950 | ||
6951 | done | |
6952 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6953 | rm -f conftest.err conftest.$ac_ext | |
6954 | if $ac_preproc_ok; then | |
6955 | break | |
6956 | fi | |
6957 | ||
6958 | done | |
6959 | ac_cv_prog_CPP=$CPP | |
6960 | ||
6961 | fi | |
6962 | CPP=$ac_cv_prog_CPP | |
6963 | else | |
6964 | ac_cv_prog_CPP=$CPP | |
6965 | fi | |
6966 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | |
6967 | $as_echo "$CPP" >&6; } | |
6968 | ac_preproc_ok=false | |
6969 | for ac_c_preproc_warn_flag in '' yes | |
6970 | do | |
6971 | # Use a header file that comes with gcc, so configuring glibc | |
6972 | # with a fresh cross-compiler works. | |
6973 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6974 | # <limits.h> exists even on freestanding compilers. | |
6975 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6976 | # not just through cpp. "Syntax error" is here to catch this case. | |
6977 | cat >conftest.$ac_ext <<_ACEOF | |
6978 | /* confdefs.h. */ | |
6979 | _ACEOF | |
6980 | cat confdefs.h >>conftest.$ac_ext | |
6981 | cat >>conftest.$ac_ext <<_ACEOF | |
6982 | /* end confdefs.h. */ | |
6983 | #ifdef __STDC__ | |
6984 | # include <limits.h> | |
6985 | #else | |
6986 | # include <assert.h> | |
6987 | #endif | |
6988 | Syntax error | |
6989 | _ACEOF | |
6990 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6991 | case "(($ac_try" in | |
6992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6993 | *) ac_try_echo=$ac_try;; | |
6994 | esac | |
6995 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6996 | $as_echo "$ac_try_echo") >&5 | |
6997 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6998 | ac_status=$? | |
6999 | grep -v '^ *+' conftest.er1 >conftest.err | |
7000 | rm -f conftest.er1 | |
7001 | cat conftest.err >&5 | |
7002 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7003 | (exit $ac_status); } >/dev/null && { | |
7004 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7005 | test ! -s conftest.err | |
7006 | }; then | |
7007 | : | |
7008 | else | |
7009 | $as_echo "$as_me: failed program was:" >&5 | |
7010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7011 | ||
7012 | # Broken: fails on valid input. | |
7013 | continue | |
7014 | fi | |
7015 | ||
7016 | rm -f conftest.err conftest.$ac_ext | |
7017 | ||
7018 | # OK, works on sane cases. Now check whether nonexistent headers | |
7019 | # can be detected and how. | |
7020 | cat >conftest.$ac_ext <<_ACEOF | |
7021 | /* confdefs.h. */ | |
7022 | _ACEOF | |
7023 | cat confdefs.h >>conftest.$ac_ext | |
7024 | cat >>conftest.$ac_ext <<_ACEOF | |
7025 | /* end confdefs.h. */ | |
7026 | #include <ac_nonexistent.h> | |
7027 | _ACEOF | |
7028 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7029 | case "(($ac_try" in | |
7030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7031 | *) ac_try_echo=$ac_try;; | |
7032 | esac | |
7033 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7034 | $as_echo "$ac_try_echo") >&5 | |
7035 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7036 | ac_status=$? | |
7037 | grep -v '^ *+' conftest.er1 >conftest.err | |
7038 | rm -f conftest.er1 | |
7039 | cat conftest.err >&5 | |
7040 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7041 | (exit $ac_status); } >/dev/null && { | |
7042 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7043 | test ! -s conftest.err | |
7044 | }; then | |
7045 | # Broken: success on invalid input. | |
7046 | continue | |
7047 | else | |
7048 | $as_echo "$as_me: failed program was:" >&5 | |
7049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7050 | ||
7051 | # Passes both tests. | |
7052 | ac_preproc_ok=: | |
7053 | break | |
7054 | fi | |
7055 | ||
7056 | rm -f conftest.err conftest.$ac_ext | |
7057 | ||
7058 | done | |
7059 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7060 | rm -f conftest.err conftest.$ac_ext | |
7061 | if $ac_preproc_ok; then | |
7062 | : | |
7063 | else | |
7064 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
7065 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7066 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
7067 | See \`config.log' for more details." >&5 | |
7068 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
7069 | See \`config.log' for more details." >&2;} | |
7070 | { (exit 1); exit 1; }; }; } | |
7071 | fi | |
7072 | ||
7073 | ac_ext=c | |
7074 | ac_cpp='$CPP $CPPFLAGS' | |
7075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7078 | ||
7079 | ||
7080 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
7081 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7082 | if test "${ac_cv_header_stdc+set}" = set; then | |
7083 | $as_echo_n "(cached) " >&6 | |
7084 | else | |
7085 | cat >conftest.$ac_ext <<_ACEOF | |
7086 | /* confdefs.h. */ | |
7087 | _ACEOF | |
7088 | cat confdefs.h >>conftest.$ac_ext | |
7089 | cat >>conftest.$ac_ext <<_ACEOF | |
7090 | /* end confdefs.h. */ | |
7091 | #include <stdlib.h> | |
7092 | #include <stdarg.h> | |
7093 | #include <string.h> | |
7094 | #include <float.h> | |
7095 | ||
7096 | int | |
7097 | main () | |
7098 | { | |
7099 | ||
7100 | ; | |
7101 | return 0; | |
7102 | } | |
7103 | _ACEOF | |
7104 | rm -f conftest.$ac_objext | |
7105 | if { (ac_try="$ac_compile" | |
7106 | case "(($ac_try" in | |
7107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7108 | *) ac_try_echo=$ac_try;; | |
7109 | esac | |
7110 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7111 | $as_echo "$ac_try_echo") >&5 | |
7112 | (eval "$ac_compile") 2>conftest.er1 | |
7113 | ac_status=$? | |
7114 | grep -v '^ *+' conftest.er1 >conftest.err | |
7115 | rm -f conftest.er1 | |
7116 | cat conftest.err >&5 | |
7117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7118 | (exit $ac_status); } && { | |
7119 | test -z "$ac_c_werror_flag" || | |
7120 | test ! -s conftest.err | |
7121 | } && test -s conftest.$ac_objext; then | |
7122 | ac_cv_header_stdc=yes | |
7123 | else | |
7124 | $as_echo "$as_me: failed program was:" >&5 | |
7125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7126 | ||
7127 | ac_cv_header_stdc=no | |
7128 | fi | |
7129 | ||
7130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7131 | ||
7132 | if test $ac_cv_header_stdc = yes; then | |
7133 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7134 | cat >conftest.$ac_ext <<_ACEOF | |
7135 | /* confdefs.h. */ | |
7136 | _ACEOF | |
7137 | cat confdefs.h >>conftest.$ac_ext | |
7138 | cat >>conftest.$ac_ext <<_ACEOF | |
7139 | /* end confdefs.h. */ | |
7140 | #include <string.h> | |
7141 | ||
7142 | _ACEOF | |
7143 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7144 | $EGREP "memchr" >/dev/null 2>&1; then | |
7145 | : | |
7146 | else | |
7147 | ac_cv_header_stdc=no | |
7148 | fi | |
7149 | rm -f conftest* | |
7150 | ||
7151 | fi | |
7152 | ||
7153 | if test $ac_cv_header_stdc = yes; then | |
7154 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7155 | cat >conftest.$ac_ext <<_ACEOF | |
7156 | /* confdefs.h. */ | |
7157 | _ACEOF | |
7158 | cat confdefs.h >>conftest.$ac_ext | |
7159 | cat >>conftest.$ac_ext <<_ACEOF | |
7160 | /* end confdefs.h. */ | |
7161 | #include <stdlib.h> | |
7162 | ||
7163 | _ACEOF | |
7164 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7165 | $EGREP "free" >/dev/null 2>&1; then | |
7166 | : | |
7167 | else | |
7168 | ac_cv_header_stdc=no | |
7169 | fi | |
7170 | rm -f conftest* | |
7171 | ||
7172 | fi | |
7173 | ||
7174 | if test $ac_cv_header_stdc = yes; then | |
7175 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7176 | if test "$cross_compiling" = yes; then | |
7177 | : | |
7178 | else | |
7179 | cat >conftest.$ac_ext <<_ACEOF | |
7180 | /* confdefs.h. */ | |
7181 | _ACEOF | |
7182 | cat confdefs.h >>conftest.$ac_ext | |
7183 | cat >>conftest.$ac_ext <<_ACEOF | |
7184 | /* end confdefs.h. */ | |
7185 | #include <ctype.h> | |
7186 | #include <stdlib.h> | |
7187 | #if ((' ' & 0x0FF) == 0x020) | |
7188 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7189 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7190 | #else | |
7191 | # define ISLOWER(c) \ | |
7192 | (('a' <= (c) && (c) <= 'i') \ | |
7193 | || ('j' <= (c) && (c) <= 'r') \ | |
7194 | || ('s' <= (c) && (c) <= 'z')) | |
7195 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7196 | #endif | |
7197 | ||
7198 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7199 | int | |
7200 | main () | |
7201 | { | |
7202 | int i; | |
7203 | for (i = 0; i < 256; i++) | |
7204 | if (XOR (islower (i), ISLOWER (i)) | |
7205 | || toupper (i) != TOUPPER (i)) | |
7206 | return 2; | |
7207 | return 0; | |
7208 | } | |
7209 | _ACEOF | |
7210 | rm -f conftest$ac_exeext | |
7211 | if { (ac_try="$ac_link" | |
7212 | case "(($ac_try" in | |
7213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7214 | *) ac_try_echo=$ac_try;; | |
7215 | esac | |
7216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7217 | $as_echo "$ac_try_echo") >&5 | |
7218 | (eval "$ac_link") 2>&5 | |
7219 | ac_status=$? | |
7220 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7221 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7222 | { (case "(($ac_try" in | |
7223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7224 | *) ac_try_echo=$ac_try;; | |
7225 | esac | |
7226 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7227 | $as_echo "$ac_try_echo") >&5 | |
7228 | (eval "$ac_try") 2>&5 | |
7229 | ac_status=$? | |
7230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7231 | (exit $ac_status); }; }; then | |
7232 | : | |
7233 | else | |
7234 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
7235 | $as_echo "$as_me: failed program was:" >&5 | |
7236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7237 | ||
7238 | ( exit $ac_status ) | |
7239 | ac_cv_header_stdc=no | |
7240 | fi | |
7241 | rm -rf conftest.dSYM | |
7242 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7243 | fi | |
7244 | ||
7245 | ||
7246 | fi | |
7247 | fi | |
7248 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
7249 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7250 | if test $ac_cv_header_stdc = yes; then | |
7251 | ||
7252 | cat >>confdefs.h <<\_ACEOF | |
7253 | #define STDC_HEADERS 1 | |
7254 | _ACEOF | |
7255 | ||
7256 | fi | |
7257 | ||
7258 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7259 | ||
7260 | ||
7261 | ||
7262 | ||
7263 | ||
7264 | ||
7265 | ||
7266 | ||
7267 | ||
7268 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7269 | inttypes.h stdint.h unistd.h | |
7270 | do | |
7271 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7272 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7273 | $as_echo_n "checking for $ac_header... " >&6; } | |
7274 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7275 | $as_echo_n "(cached) " >&6 | |
7276 | else | |
7277 | cat >conftest.$ac_ext <<_ACEOF | |
7278 | /* confdefs.h. */ | |
7279 | _ACEOF | |
7280 | cat confdefs.h >>conftest.$ac_ext | |
7281 | cat >>conftest.$ac_ext <<_ACEOF | |
7282 | /* end confdefs.h. */ | |
7283 | $ac_includes_default | |
7284 | ||
7285 | #include <$ac_header> | |
7286 | _ACEOF | |
7287 | rm -f conftest.$ac_objext | |
7288 | if { (ac_try="$ac_compile" | |
7289 | case "(($ac_try" in | |
7290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7291 | *) ac_try_echo=$ac_try;; | |
7292 | esac | |
7293 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7294 | $as_echo "$ac_try_echo") >&5 | |
7295 | (eval "$ac_compile") 2>conftest.er1 | |
7296 | ac_status=$? | |
7297 | grep -v '^ *+' conftest.er1 >conftest.err | |
7298 | rm -f conftest.er1 | |
7299 | cat conftest.err >&5 | |
7300 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7301 | (exit $ac_status); } && { | |
7302 | test -z "$ac_c_werror_flag" || | |
7303 | test ! -s conftest.err | |
7304 | } && test -s conftest.$ac_objext; then | |
7305 | eval "$as_ac_Header=yes" | |
7306 | else | |
7307 | $as_echo "$as_me: failed program was:" >&5 | |
7308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7309 | ||
7310 | eval "$as_ac_Header=no" | |
7311 | fi | |
7312 | ||
7313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7314 | fi | |
7315 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7316 | $as_echo "$as_val"'` | |
7317 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7318 | $as_echo "$ac_res" >&6; } | |
7319 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7320 | $as_echo "$as_val"'` | |
7321 | if test "x$as_val" = x""yes; then | |
7322 | cat >>confdefs.h <<_ACEOF | |
7323 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7324 | _ACEOF | |
7325 | ||
7326 | fi | |
7327 | ||
7328 | done | |
7329 | ||
7330 | ||
7331 | ||
7332 | for ac_header in dlfcn.h | |
7333 | do | |
7334 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7335 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7336 | $as_echo_n "checking for $ac_header... " >&6; } | |
7337 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7338 | $as_echo_n "(cached) " >&6 | |
7339 | else | |
7340 | cat >conftest.$ac_ext <<_ACEOF | |
7341 | /* confdefs.h. */ | |
7342 | _ACEOF | |
7343 | cat confdefs.h >>conftest.$ac_ext | |
7344 | cat >>conftest.$ac_ext <<_ACEOF | |
7345 | /* end confdefs.h. */ | |
7346 | $ac_includes_default | |
7347 | ||
7348 | #include <$ac_header> | |
7349 | _ACEOF | |
7350 | rm -f conftest.$ac_objext | |
7351 | if { (ac_try="$ac_compile" | |
7352 | case "(($ac_try" in | |
7353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7354 | *) ac_try_echo=$ac_try;; | |
7355 | esac | |
7356 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7357 | $as_echo "$ac_try_echo") >&5 | |
7358 | (eval "$ac_compile") 2>conftest.er1 | |
7359 | ac_status=$? | |
7360 | grep -v '^ *+' conftest.er1 >conftest.err | |
7361 | rm -f conftest.er1 | |
7362 | cat conftest.err >&5 | |
7363 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7364 | (exit $ac_status); } && { | |
7365 | test -z "$ac_c_werror_flag" || | |
7366 | test ! -s conftest.err | |
7367 | } && test -s conftest.$ac_objext; then | |
7368 | eval "$as_ac_Header=yes" | |
7369 | else | |
7370 | $as_echo "$as_me: failed program was:" >&5 | |
7371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7372 | ||
7373 | eval "$as_ac_Header=no" | |
7374 | fi | |
7375 | ||
7376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7377 | fi | |
7378 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
7379 | $as_echo "$as_val"'` | |
7380 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7381 | $as_echo "$ac_res" >&6; } | |
7382 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
7383 | $as_echo "$as_val"'` | |
7384 | if test "x$as_val" = x""yes; then | |
7385 | cat >>confdefs.h <<_ACEOF | |
7386 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7387 | _ACEOF | |
7388 | ||
7389 | fi | |
7390 | ||
7391 | done | |
7392 | ||
7393 | ||
7394 | ||
7395 | # Set options | |
7396 | ||
7397 | ||
7398 | ||
7399 | enable_dlopen=no | |
7400 | ||
7401 | ||
7402 | enable_win32_dll=no | |
7403 | ||
7404 | ||
7405 | # Check whether --enable-shared was given. | |
7406 | if test "${enable_shared+set}" = set; then | |
7407 | enableval=$enable_shared; p=${PACKAGE-default} | |
7408 | case $enableval in | |
7409 | yes) enable_shared=yes ;; | |
7410 | no) enable_shared=no ;; | |
7411 | *) | |
7412 | enable_shared=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_shared=yes | |
7419 | fi | |
7420 | done | |
7421 | IFS="$lt_save_ifs" | |
7422 | ;; | |
7423 | esac | |
7424 | else | |
7425 | enable_shared=yes | |
7426 | fi | |
7427 | ||
7428 | ||
7429 | ||
7430 | ||
7431 | ||
7432 | ||
7433 | ||
7434 | ||
7435 | ||
7436 | # Check whether --enable-static was given. | |
7437 | if test "${enable_static+set}" = set; then | |
7438 | enableval=$enable_static; p=${PACKAGE-default} | |
7439 | case $enableval in | |
7440 | yes) enable_static=yes ;; | |
7441 | no) enable_static=no ;; | |
7442 | *) | |
7443 | enable_static=no | |
7444 | # Look at the argument we got. We use all the common list separators. | |
7445 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7446 | for pkg in $enableval; do | |
7447 | IFS="$lt_save_ifs" | |
7448 | if test "X$pkg" = "X$p"; then | |
7449 | enable_static=yes | |
7450 | fi | |
7451 | done | |
7452 | IFS="$lt_save_ifs" | |
7453 | ;; | |
7454 | esac | |
7455 | else | |
7456 | enable_static=yes | |
7457 | fi | |
7458 | ||
7459 | ||
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | ||
7466 | ||
7467 | ||
7468 | # Check whether --with-pic was given. | |
7469 | if test "${with_pic+set}" = set; then | |
7470 | withval=$with_pic; pic_mode="$withval" | |
7471 | else | |
7472 | pic_mode=default | |
7473 | fi | |
7474 | ||
7475 | ||
7476 | test -z "$pic_mode" && pic_mode=default | |
7477 | ||
7478 | ||
7479 | ||
7480 | ||
7481 | ||
7482 | ||
7483 | ||
7484 | # Check whether --enable-fast-install was given. | |
7485 | if test "${enable_fast_install+set}" = set; then | |
7486 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7487 | case $enableval in | |
7488 | yes) enable_fast_install=yes ;; | |
7489 | no) enable_fast_install=no ;; | |
7490 | *) | |
7491 | enable_fast_install=no | |
7492 | # Look at the argument we got. We use all the common list separators. | |
7493 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7494 | for pkg in $enableval; do | |
7495 | IFS="$lt_save_ifs" | |
7496 | if test "X$pkg" = "X$p"; then | |
7497 | enable_fast_install=yes | |
7498 | fi | |
7499 | done | |
7500 | IFS="$lt_save_ifs" | |
7501 | ;; | |
7502 | esac | |
7503 | else | |
7504 | enable_fast_install=yes | |
7505 | fi | |
7506 | ||
7507 | ||
7508 | ||
7509 | ||
7510 | ||
7511 | ||
7512 | ||
7513 | ||
7514 | ||
7515 | ||
7516 | ||
7517 | # This can be used to rebuild libtool when needed | |
7518 | LIBTOOL_DEPS="$ltmain" | |
7519 | ||
7520 | # Always use our own libtool. | |
7521 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7522 | ||
7523 | ||
7524 | ||
7525 | ||
7526 | ||
7527 | ||
7528 | ||
7529 | ||
7530 | ||
7531 | ||
7532 | ||
7533 | ||
7534 | ||
7535 | ||
7536 | ||
7537 | ||
7538 | ||
7539 | ||
7540 | ||
7541 | ||
7542 | ||
7543 | ||
7544 | ||
7545 | ||
7546 | ||
7547 | test -z "$LN_S" && LN_S="ln -s" | |
7548 | ||
7549 | ||
7550 | ||
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | ||
7556 | ||
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
7562 | if test -n "${ZSH_VERSION+set}" ; then | |
7563 | setopt NO_GLOB_SUBST | |
7564 | fi | |
7565 | ||
7566 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 | |
7567 | $as_echo_n "checking for objdir... " >&6; } | |
7568 | if test "${lt_cv_objdir+set}" = set; then | |
7569 | $as_echo_n "(cached) " >&6 | |
7570 | else | |
7571 | rm -f .libs 2>/dev/null | |
7572 | mkdir .libs 2>/dev/null | |
7573 | if test -d .libs; then | |
7574 | lt_cv_objdir=.libs | |
7575 | else | |
7576 | # MS-DOS does not allow filenames that begin with a dot. | |
7577 | lt_cv_objdir=_libs | |
7578 | fi | |
7579 | rmdir .libs 2>/dev/null | |
7580 | fi | |
7581 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7582 | $as_echo "$lt_cv_objdir" >&6; } | |
7583 | objdir=$lt_cv_objdir | |
7584 | ||
7585 | ||
7586 | ||
7587 | ||
7588 | ||
7589 | cat >>confdefs.h <<_ACEOF | |
7590 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7591 | _ACEOF | |
7592 | ||
7593 | ||
7594 | ||
7595 | ||
7596 | ||
7597 | ||
7598 | ||
7599 | ||
7600 | ||
7601 | ||
7602 | ||
7603 | ||
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | case $host_os in | |
7610 | aix3*) | |
7611 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7612 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7613 | # vanish in a puff of smoke. | |
7614 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7615 | COLLECT_NAMES= | |
7616 | export COLLECT_NAMES | |
7617 | fi | |
7618 | ;; | |
7619 | esac | |
7620 | ||
7621 | # Sed substitution that helps us do robust quoting. It backslashifies | |
7622 | # metacharacters that are still active within double-quoted strings. | |
7623 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
7624 | ||
7625 | # Same as above, but do not quote variable references. | |
7626 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
7627 | ||
7628 | # Sed substitution to delay expansion of an escaped shell variable in a | |
7629 | # double_quote_subst'ed string. | |
7630 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
7631 | ||
7632 | # Sed substitution to delay expansion of an escaped single quote. | |
7633 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7634 | ||
7635 | # Sed substitution to avoid accidental globbing in evaled expressions | |
7636 | no_glob_subst='s/\*/\\\*/g' | |
7637 | ||
7638 | # Global variables: | |
7639 | ofile=libtool | |
7640 | can_build_shared=yes | |
7641 | ||
7642 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7643 | # which needs '.lib'). | |
7644 | libext=a | |
7645 | ||
7646 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7647 | ||
7648 | old_CC="$CC" | |
7649 | old_CFLAGS="$CFLAGS" | |
7650 | ||
7651 | # Set sane defaults for various variables | |
7652 | test -z "$CC" && CC=cc | |
7653 | test -z "$LTCC" && LTCC=$CC | |
7654 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7655 | test -z "$LD" && LD=ld | |
7656 | test -z "$ac_objext" && ac_objext=o | |
7657 | ||
7658 | for cc_temp in $compiler""; do | |
7659 | case $cc_temp in | |
7660 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7661 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7662 | \-*) ;; | |
7663 | *) break;; | |
7664 | esac | |
7665 | done | |
7666 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7667 | ||
7668 | ||
7669 | # Only perform the check for file, if the check method requires it | |
7670 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7671 | case $deplibs_check_method in | |
7672 | file_magic*) | |
7673 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7674 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7675 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7676 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7677 | $as_echo_n "(cached) " >&6 | |
7678 | else | |
7679 | case $MAGIC_CMD in | |
7680 | [\\/*] | ?:[\\/]*) | |
7681 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7682 | ;; | |
7683 | *) | |
7684 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7685 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7686 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7687 | for ac_dir in $ac_dummy; do | |
7688 | IFS="$lt_save_ifs" | |
7689 | test -z "$ac_dir" && ac_dir=. | |
7690 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7691 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7692 | if test -n "$file_magic_test_file"; then | |
7693 | case $deplibs_check_method in | |
7694 | "file_magic "*) | |
7695 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7696 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7697 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7698 | $EGREP "$file_magic_regex" > /dev/null; then | |
7699 | : | |
7700 | else | |
7701 | cat <<_LT_EOF 1>&2 | |
7702 | ||
7703 | *** Warning: the command libtool uses to detect shared libraries, | |
7704 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7705 | *** The result is that libtool may fail to recognize shared libraries | |
7706 | *** as such. This will affect the creation of libtool libraries that | |
7707 | *** depend on shared libraries, but programs linked with such libtool | |
7708 | *** libraries will work regardless of this problem. Nevertheless, you | |
7709 | *** may want to report the problem to your system manager and/or to | |
7710 | *** bug-libtool@gnu.org | |
7711 | ||
7712 | _LT_EOF | |
7713 | fi ;; | |
7714 | esac | |
7715 | fi | |
7716 | break | |
7717 | fi | |
7718 | done | |
7719 | IFS="$lt_save_ifs" | |
7720 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7721 | ;; | |
7722 | esac | |
7723 | fi | |
7724 | ||
7725 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7726 | if test -n "$MAGIC_CMD"; then | |
7727 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7728 | $as_echo "$MAGIC_CMD" >&6; } | |
7729 | else | |
7730 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7731 | $as_echo "no" >&6; } | |
7732 | fi | |
7733 | ||
7734 | ||
7735 | ||
7736 | ||
7737 | ||
7738 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7739 | if test -n "$ac_tool_prefix"; then | |
7740 | { $as_echo "$as_me:$LINENO: checking for file" >&5 | |
7741 | $as_echo_n "checking for file... " >&6; } | |
7742 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7743 | $as_echo_n "(cached) " >&6 | |
7744 | else | |
7745 | case $MAGIC_CMD in | |
7746 | [\\/*] | ?:[\\/]*) | |
7747 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7748 | ;; | |
7749 | *) | |
7750 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7751 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7752 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7753 | for ac_dir in $ac_dummy; do | |
7754 | IFS="$lt_save_ifs" | |
7755 | test -z "$ac_dir" && ac_dir=. | |
7756 | if test -f $ac_dir/file; then | |
7757 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7758 | if test -n "$file_magic_test_file"; then | |
7759 | case $deplibs_check_method in | |
7760 | "file_magic "*) | |
7761 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7762 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7763 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7764 | $EGREP "$file_magic_regex" > /dev/null; then | |
7765 | : | |
7766 | else | |
7767 | cat <<_LT_EOF 1>&2 | |
7768 | ||
7769 | *** Warning: the command libtool uses to detect shared libraries, | |
7770 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7771 | *** The result is that libtool may fail to recognize shared libraries | |
7772 | *** as such. This will affect the creation of libtool libraries that | |
7773 | *** depend on shared libraries, but programs linked with such libtool | |
7774 | *** libraries will work regardless of this problem. Nevertheless, you | |
7775 | *** may want to report the problem to your system manager and/or to | |
7776 | *** bug-libtool@gnu.org | |
7777 | ||
7778 | _LT_EOF | |
7779 | fi ;; | |
7780 | esac | |
7781 | fi | |
7782 | break | |
7783 | fi | |
7784 | done | |
7785 | IFS="$lt_save_ifs" | |
7786 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7787 | ;; | |
7788 | esac | |
7789 | fi | |
7790 | ||
7791 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7792 | if test -n "$MAGIC_CMD"; then | |
7793 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7794 | $as_echo "$MAGIC_CMD" >&6; } | |
7795 | else | |
7796 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
7797 | $as_echo "no" >&6; } | |
7798 | fi | |
7799 | ||
7800 | ||
7801 | else | |
7802 | MAGIC_CMD=: | |
7803 | fi | |
7804 | fi | |
7805 | ||
7806 | fi | |
7807 | ;; | |
7808 | esac | |
7809 | ||
7810 | # Use C for the default configuration in the libtool script | |
7811 | ||
7812 | lt_save_CC="$CC" | |
7813 | ac_ext=c | |
7814 | ac_cpp='$CPP $CPPFLAGS' | |
7815 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7816 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7817 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7818 | ||
7819 | ||
7820 | # Source file extension for C test sources. | |
7821 | ac_ext=c | |
7822 | ||
7823 | # Object file extension for compiled C test sources. | |
7824 | objext=o | |
7825 | objext=$objext | |
7826 | ||
7827 | # Code to be used in simple compile tests | |
7828 | lt_simple_compile_test_code="int some_variable = 0;" | |
7829 | ||
7830 | # Code to be used in simple link tests | |
7831 | lt_simple_link_test_code='int main(){return(0);}' | |
7832 | ||
7833 | ||
7834 | ||
7835 | ||
7836 | ||
7837 | ||
7838 | ||
7839 | # If no C compiler was specified, use CC. | |
7840 | LTCC=${LTCC-"$CC"} | |
7841 | ||
7842 | # If no C compiler flags were specified, use CFLAGS. | |
7843 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7844 | ||
7845 | # Allow CC to be a program name with arguments. | |
7846 | compiler=$CC | |
7847 | ||
7848 | # Save the default compiler, since it gets overwritten when the other | |
7849 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7850 | compiler_DEFAULT=$CC | |
7851 | ||
7852 | # save warnings/boilerplate of simple test code | |
7853 | ac_outfile=conftest.$ac_objext | |
7854 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7855 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7856 | _lt_compiler_boilerplate=`cat conftest.err` | |
7857 | $RM conftest* | |
7858 | ||
7859 | ac_outfile=conftest.$ac_objext | |
7860 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7861 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7862 | _lt_linker_boilerplate=`cat conftest.err` | |
7863 | $RM -r conftest* | |
7864 | ||
7865 | ||
7866 | if test -n "$compiler"; then | |
7867 | ||
7868 | lt_prog_compiler_no_builtin_flag= | |
7869 | ||
7870 | if test "$GCC" = yes; then | |
7871 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7872 | ||
7873 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7874 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
7875 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7876 | $as_echo_n "(cached) " >&6 | |
7877 | else | |
7878 | lt_cv_prog_compiler_rtti_exceptions=no | |
7879 | ac_outfile=conftest.$ac_objext | |
7880 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7881 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7882 | # Insert the option either (1) after the last *FLAGS variable, or | |
7883 | # (2) before a word containing "conftest.", or (3) at the end. | |
7884 | # Note that $ac_compile itself does not contain backslashes and begins | |
7885 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7886 | # The option is referenced via a variable to avoid confusing sed. | |
7887 | lt_compile=`echo "$ac_compile" | $SED \ | |
7888 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7889 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7890 | -e 's:$: $lt_compiler_flag:'` | |
615ab66d | 7891 | (eval echo "\"\$as_me:7891: $lt_compile\"" >&5) |
e70e591c BB |
7892 | (eval "$lt_compile" 2>conftest.err) |
7893 | ac_status=$? | |
7894 | cat conftest.err >&5 | |
615ab66d | 7895 | echo "$as_me:7895: \$? = $ac_status" >&5 |
e70e591c BB |
7896 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7897 | # The compiler can only warn and ignore the option if not recognized | |
7898 | # So say no if there are warnings other than the usual output. | |
7899 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7900 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7901 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7902 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7903 | fi | |
7904 | fi | |
7905 | $RM conftest* | |
7906 | ||
7907 | fi | |
7908 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7909 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
7910 | ||
7911 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7912 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7913 | else | |
7914 | : | |
7915 | fi | |
7916 | ||
7917 | fi | |
7918 | ||
7919 | ||
7920 | ||
7921 | ||
7922 | ||
7923 | ||
7924 | lt_prog_compiler_wl= | |
7925 | lt_prog_compiler_pic= | |
7926 | lt_prog_compiler_static= | |
7927 | ||
7928 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7929 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
7930 | ||
7931 | if test "$GCC" = yes; then | |
7932 | lt_prog_compiler_wl='-Wl,' | |
7933 | lt_prog_compiler_static='-static' | |
7934 | ||
7935 | case $host_os in | |
7936 | aix*) | |
7937 | # All AIX code is PIC. | |
7938 | if test "$host_cpu" = ia64; then | |
7939 | # AIX 5 now supports IA64 processor | |
7940 | lt_prog_compiler_static='-Bstatic' | |
7941 | fi | |
7942 | ;; | |
7943 | ||
7944 | amigaos*) | |
7945 | case $host_cpu in | |
7946 | powerpc) | |
7947 | # see comment about AmigaOS4 .so support | |
7948 | lt_prog_compiler_pic='-fPIC' | |
7949 | ;; | |
7950 | m68k) | |
7951 | # FIXME: we need at least 68020 code to build shared libraries, but | |
7952 | # adding the `-m68020' flag to GCC prevents building anything better, | |
7953 | # like `-m68040'. | |
7954 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7955 | ;; | |
7956 | esac | |
7957 | ;; | |
7958 | ||
7959 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7960 | # PIC is the default for these OSes. | |
7961 | ;; | |
7962 | ||
7963 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
7964 | # This hack is so that the source file can tell whether it is being | |
7965 | # built for inclusion in a dll (and should export symbols for example). | |
7966 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7967 | # (--disable-auto-import) libraries | |
7968 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7969 | ;; | |
7970 | ||
7971 | darwin* | rhapsody*) | |
7972 | # PIC is the default on this platform | |
7973 | # Common symbols not allowed in MH_DYLIB files | |
7974 | lt_prog_compiler_pic='-fno-common' | |
7975 | ;; | |
7976 | ||
7977 | hpux*) | |
7978 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7979 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7980 | # sets the default TLS model and affects inlining. | |
7981 | case $host_cpu in | |
7982 | hppa*64*) | |
7983 | # +Z the default | |
7984 | ;; | |
7985 | *) | |
7986 | lt_prog_compiler_pic='-fPIC' | |
7987 | ;; | |
7988 | esac | |
7989 | ;; | |
7990 | ||
7991 | interix[3-9]*) | |
7992 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7993 | # Instead, we relocate shared libraries at runtime. | |
7994 | ;; | |
7995 | ||
7996 | msdosdjgpp*) | |
7997 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7998 | # on systems that don't support them. | |
7999 | lt_prog_compiler_can_build_shared=no | |
8000 | enable_shared=no | |
8001 | ;; | |
8002 | ||
8003 | *nto* | *qnx*) | |
8004 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8005 | # it will coredump. | |
8006 | lt_prog_compiler_pic='-fPIC -shared' | |
8007 | ;; | |
8008 | ||
8009 | sysv4*MP*) | |
8010 | if test -d /usr/nec; then | |
8011 | lt_prog_compiler_pic=-Kconform_pic | |
8012 | fi | |
8013 | ;; | |
8014 | ||
8015 | *) | |
8016 | lt_prog_compiler_pic='-fPIC' | |
8017 | ;; | |
8018 | esac | |
8019 | else | |
8020 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8021 | case $host_os in | |
8022 | aix*) | |
8023 | lt_prog_compiler_wl='-Wl,' | |
8024 | if test "$host_cpu" = ia64; then | |
8025 | # AIX 5 now supports IA64 processor | |
8026 | lt_prog_compiler_static='-Bstatic' | |
8027 | else | |
8028 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8029 | fi | |
8030 | ;; | |
8031 | ||
8032 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8033 | # This hack is so that the source file can tell whether it is being | |
8034 | # built for inclusion in a dll (and should export symbols for example). | |
8035 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8036 | ;; | |
8037 | ||
8038 | hpux9* | hpux10* | hpux11*) | |
8039 | lt_prog_compiler_wl='-Wl,' | |
8040 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8041 | # not for PA HP-UX. | |
8042 | case $host_cpu in | |
8043 | hppa*64*|ia64*) | |
8044 | # +Z the default | |
8045 | ;; | |
8046 | *) | |
8047 | lt_prog_compiler_pic='+Z' | |
8048 | ;; | |
8049 | esac | |
8050 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8051 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8052 | ;; | |
8053 | ||
8054 | irix5* | irix6* | nonstopux*) | |
8055 | lt_prog_compiler_wl='-Wl,' | |
8056 | # PIC (with -KPIC) is the default. | |
8057 | lt_prog_compiler_static='-non_shared' | |
8058 | ;; | |
8059 | ||
8060 | linux* | k*bsd*-gnu) | |
8061 | case $cc_basename in | |
8062 | # old Intel for x86_64 which still supported -KPIC. | |
8063 | ecc*) | |
8064 | lt_prog_compiler_wl='-Wl,' | |
8065 | lt_prog_compiler_pic='-KPIC' | |
8066 | lt_prog_compiler_static='-static' | |
8067 | ;; | |
8068 | # icc used to be incompatible with GCC. | |
8069 | # ICC 10 doesn't accept -KPIC any more. | |
8070 | icc* | ifort*) | |
8071 | lt_prog_compiler_wl='-Wl,' | |
8072 | lt_prog_compiler_pic='-fPIC' | |
8073 | lt_prog_compiler_static='-static' | |
8074 | ;; | |
8075 | # Lahey Fortran 8.1. | |
8076 | lf95*) | |
8077 | lt_prog_compiler_wl='-Wl,' | |
8078 | lt_prog_compiler_pic='--shared' | |
8079 | lt_prog_compiler_static='--static' | |
8080 | ;; | |
8081 | pgcc* | pgf77* | pgf90* | pgf95*) | |
8082 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8083 | # which looks to be a dead project) | |
8084 | lt_prog_compiler_wl='-Wl,' | |
8085 | lt_prog_compiler_pic='-fpic' | |
8086 | lt_prog_compiler_static='-Bstatic' | |
8087 | ;; | |
8088 | ccc*) | |
8089 | lt_prog_compiler_wl='-Wl,' | |
8090 | # All Alpha code is PIC. | |
8091 | lt_prog_compiler_static='-non_shared' | |
8092 | ;; | |
8093 | xl*) | |
8094 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8095 | lt_prog_compiler_wl='-Wl,' | |
8096 | lt_prog_compiler_pic='-qpic' | |
8097 | lt_prog_compiler_static='-qstaticlink' | |
8098 | ;; | |
8099 | *) | |
8100 | case `$CC -V 2>&1 | sed 5q` in | |
8101 | *Sun\ C*) | |
8102 | # Sun C 5.9 | |
8103 | lt_prog_compiler_pic='-KPIC' | |
8104 | lt_prog_compiler_static='-Bstatic' | |
8105 | lt_prog_compiler_wl='-Wl,' | |
8106 | ;; | |
8107 | *Sun\ F*) | |
8108 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8109 | lt_prog_compiler_pic='-KPIC' | |
8110 | lt_prog_compiler_static='-Bstatic' | |
8111 | lt_prog_compiler_wl='' | |
8112 | ;; | |
8113 | esac | |
8114 | ;; | |
8115 | esac | |
8116 | ;; | |
8117 | ||
8118 | newsos6) | |
8119 | lt_prog_compiler_pic='-KPIC' | |
8120 | lt_prog_compiler_static='-Bstatic' | |
8121 | ;; | |
8122 | ||
8123 | *nto* | *qnx*) | |
8124 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8125 | # it will coredump. | |
8126 | lt_prog_compiler_pic='-fPIC -shared' | |
8127 | ;; | |
8128 | ||
8129 | osf3* | osf4* | osf5*) | |
8130 | lt_prog_compiler_wl='-Wl,' | |
8131 | # All OSF/1 code is PIC. | |
8132 | lt_prog_compiler_static='-non_shared' | |
8133 | ;; | |
8134 | ||
8135 | rdos*) | |
8136 | lt_prog_compiler_static='-non_shared' | |
8137 | ;; | |
8138 | ||
8139 | solaris*) | |
8140 | lt_prog_compiler_pic='-KPIC' | |
8141 | lt_prog_compiler_static='-Bstatic' | |
8142 | case $cc_basename in | |
8143 | f77* | f90* | f95*) | |
8144 | lt_prog_compiler_wl='-Qoption ld ';; | |
8145 | *) | |
8146 | lt_prog_compiler_wl='-Wl,';; | |
8147 | esac | |
8148 | ;; | |
8149 | ||
8150 | sunos4*) | |
8151 | lt_prog_compiler_wl='-Qoption ld ' | |
8152 | lt_prog_compiler_pic='-PIC' | |
8153 | lt_prog_compiler_static='-Bstatic' | |
8154 | ;; | |
8155 | ||
8156 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8157 | lt_prog_compiler_wl='-Wl,' | |
8158 | lt_prog_compiler_pic='-KPIC' | |
8159 | lt_prog_compiler_static='-Bstatic' | |
8160 | ;; | |
8161 | ||
8162 | sysv4*MP*) | |
8163 | if test -d /usr/nec ;then | |
8164 | lt_prog_compiler_pic='-Kconform_pic' | |
8165 | lt_prog_compiler_static='-Bstatic' | |
8166 | fi | |
8167 | ;; | |
8168 | ||
8169 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8170 | lt_prog_compiler_wl='-Wl,' | |
8171 | lt_prog_compiler_pic='-KPIC' | |
8172 | lt_prog_compiler_static='-Bstatic' | |
8173 | ;; | |
8174 | ||
8175 | unicos*) | |
8176 | lt_prog_compiler_wl='-Wl,' | |
8177 | lt_prog_compiler_can_build_shared=no | |
8178 | ;; | |
8179 | ||
8180 | uts4*) | |
8181 | lt_prog_compiler_pic='-pic' | |
8182 | lt_prog_compiler_static='-Bstatic' | |
8183 | ;; | |
8184 | ||
8185 | *) | |
8186 | lt_prog_compiler_can_build_shared=no | |
8187 | ;; | |
8188 | esac | |
8189 | fi | |
8190 | ||
8191 | case $host_os in | |
8192 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8193 | *djgpp*) | |
8194 | lt_prog_compiler_pic= | |
8195 | ;; | |
8196 | *) | |
8197 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8198 | ;; | |
8199 | esac | |
8200 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
8201 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8202 | ||
8203 | ||
8204 | ||
8205 | ||
8206 | ||
8207 | ||
8208 | # | |
8209 | # Check to make sure the PIC flag actually works. | |
8210 | # | |
8211 | if test -n "$lt_prog_compiler_pic"; then | |
8212 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8213 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8214 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then | |
8215 | $as_echo_n "(cached) " >&6 | |
8216 | else | |
8217 | lt_cv_prog_compiler_pic_works=no | |
8218 | ac_outfile=conftest.$ac_objext | |
8219 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8220 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8221 | # Insert the option either (1) after the last *FLAGS variable, or | |
8222 | # (2) before a word containing "conftest.", or (3) at the end. | |
8223 | # Note that $ac_compile itself does not contain backslashes and begins | |
8224 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8225 | # The option is referenced via a variable to avoid confusing sed. | |
8226 | lt_compile=`echo "$ac_compile" | $SED \ | |
8227 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8228 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8229 | -e 's:$: $lt_compiler_flag:'` | |
615ab66d | 8230 | (eval echo "\"\$as_me:8230: $lt_compile\"" >&5) |
e70e591c BB |
8231 | (eval "$lt_compile" 2>conftest.err) |
8232 | ac_status=$? | |
8233 | cat conftest.err >&5 | |
615ab66d | 8234 | echo "$as_me:8234: \$? = $ac_status" >&5 |
e70e591c BB |
8235 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8236 | # The compiler can only warn and ignore the option if not recognized | |
8237 | # So say no if there are warnings other than the usual output. | |
8238 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8239 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8240 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8241 | lt_cv_prog_compiler_pic_works=yes | |
8242 | fi | |
8243 | fi | |
8244 | $RM conftest* | |
8245 | ||
8246 | fi | |
8247 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8248 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8249 | ||
8250 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8251 | case $lt_prog_compiler_pic in | |
8252 | "" | " "*) ;; | |
8253 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8254 | esac | |
8255 | else | |
8256 | lt_prog_compiler_pic= | |
8257 | lt_prog_compiler_can_build_shared=no | |
8258 | fi | |
8259 | ||
8260 | fi | |
8261 | ||
8262 | ||
8263 | ||
8264 | ||
8265 | ||
8266 | ||
8267 | # | |
8268 | # Check to make sure the static flag actually works. | |
8269 | # | |
8270 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8271 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8272 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8273 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then | |
8274 | $as_echo_n "(cached) " >&6 | |
8275 | else | |
8276 | lt_cv_prog_compiler_static_works=no | |
8277 | save_LDFLAGS="$LDFLAGS" | |
8278 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8279 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8280 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8281 | # The linker can only warn and ignore the option if not recognized | |
8282 | # So say no if there are warnings | |
8283 | if test -s conftest.err; then | |
8284 | # Append any errors to the config.log. | |
8285 | cat conftest.err 1>&5 | |
8286 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8287 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8288 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8289 | lt_cv_prog_compiler_static_works=yes | |
8290 | fi | |
8291 | else | |
8292 | lt_cv_prog_compiler_static_works=yes | |
8293 | fi | |
8294 | fi | |
8295 | $RM -r conftest* | |
8296 | LDFLAGS="$save_LDFLAGS" | |
8297 | ||
8298 | fi | |
8299 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 | |
8300 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8301 | ||
8302 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8303 | : | |
8304 | else | |
8305 | lt_prog_compiler_static= | |
8306 | fi | |
8307 | ||
8308 | ||
8309 | ||
8310 | ||
8311 | ||
8312 | ||
8313 | ||
8314 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8315 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8316 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8317 | $as_echo_n "(cached) " >&6 | |
8318 | else | |
8319 | lt_cv_prog_compiler_c_o=no | |
8320 | $RM -r conftest 2>/dev/null | |
8321 | mkdir conftest | |
8322 | cd conftest | |
8323 | mkdir out | |
8324 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8325 | ||
8326 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8327 | # Insert the option either (1) after the last *FLAGS variable, or | |
8328 | # (2) before a word containing "conftest.", or (3) at the end. | |
8329 | # Note that $ac_compile itself does not contain backslashes and begins | |
8330 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8331 | lt_compile=`echo "$ac_compile" | $SED \ | |
8332 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8333 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8334 | -e 's:$: $lt_compiler_flag:'` | |
615ab66d | 8335 | (eval echo "\"\$as_me:8335: $lt_compile\"" >&5) |
e70e591c BB |
8336 | (eval "$lt_compile" 2>out/conftest.err) |
8337 | ac_status=$? | |
8338 | cat out/conftest.err >&5 | |
615ab66d | 8339 | echo "$as_me:8339: \$? = $ac_status" >&5 |
e70e591c BB |
8340 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8341 | then | |
8342 | # The compiler can only warn and ignore the option if not recognized | |
8343 | # So say no if there are warnings | |
8344 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8345 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8346 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8347 | lt_cv_prog_compiler_c_o=yes | |
8348 | fi | |
8349 | fi | |
8350 | chmod u+w . 2>&5 | |
8351 | $RM conftest* | |
8352 | # SGI C++ compiler will create directory out/ii_files/ for | |
8353 | # template instantiation | |
8354 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8355 | $RM out/* && rmdir out | |
8356 | cd .. | |
8357 | $RM -r conftest | |
8358 | $RM conftest* | |
8359 | ||
8360 | fi | |
8361 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8362 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8363 | ||
8364 | ||
8365 | ||
8366 | ||
8367 | ||
8368 | ||
8369 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8370 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8371 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8372 | $as_echo_n "(cached) " >&6 | |
8373 | else | |
8374 | lt_cv_prog_compiler_c_o=no | |
8375 | $RM -r conftest 2>/dev/null | |
8376 | mkdir conftest | |
8377 | cd conftest | |
8378 | mkdir out | |
8379 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8380 | ||
8381 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8382 | # Insert the option either (1) after the last *FLAGS variable, or | |
8383 | # (2) before a word containing "conftest.", or (3) at the end. | |
8384 | # Note that $ac_compile itself does not contain backslashes and begins | |
8385 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8386 | lt_compile=`echo "$ac_compile" | $SED \ | |
8387 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8388 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8389 | -e 's:$: $lt_compiler_flag:'` | |
615ab66d | 8390 | (eval echo "\"\$as_me:8390: $lt_compile\"" >&5) |
e70e591c BB |
8391 | (eval "$lt_compile" 2>out/conftest.err) |
8392 | ac_status=$? | |
8393 | cat out/conftest.err >&5 | |
615ab66d | 8394 | echo "$as_me:8394: \$? = $ac_status" >&5 |
e70e591c BB |
8395 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8396 | then | |
8397 | # The compiler can only warn and ignore the option if not recognized | |
8398 | # So say no if there are warnings | |
8399 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8400 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8401 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8402 | lt_cv_prog_compiler_c_o=yes | |
8403 | fi | |
8404 | fi | |
8405 | chmod u+w . 2>&5 | |
8406 | $RM conftest* | |
8407 | # SGI C++ compiler will create directory out/ii_files/ for | |
8408 | # template instantiation | |
8409 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8410 | $RM out/* && rmdir out | |
8411 | cd .. | |
8412 | $RM -r conftest | |
8413 | $RM conftest* | |
8414 | ||
8415 | fi | |
8416 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8417 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8418 | ||
8419 | ||
8420 | ||
8421 | ||
8422 | hard_links="nottested" | |
8423 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8424 | # do not overwrite the value of need_locks provided by the user | |
8425 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
8426 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8427 | hard_links=yes | |
8428 | $RM conftest* | |
8429 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8430 | touch conftest.a | |
8431 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8432 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8433 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 | |
8434 | $as_echo "$hard_links" >&6; } | |
8435 | if test "$hard_links" = no; then | |
8436 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8437 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8438 | need_locks=warn | |
8439 | fi | |
8440 | else | |
8441 | need_locks=no | |
8442 | fi | |
8443 | ||
8444 | ||
8445 | ||
8446 | ||
8447 | ||
8448 | ||
8449 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8450 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8451 | ||
8452 | runpath_var= | |
8453 | allow_undefined_flag= | |
8454 | always_export_symbols=no | |
8455 | archive_cmds= | |
8456 | archive_expsym_cmds= | |
8457 | compiler_needs_object=no | |
8458 | enable_shared_with_static_runtimes=no | |
8459 | export_dynamic_flag_spec= | |
8460 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8461 | hardcode_automatic=no | |
8462 | hardcode_direct=no | |
8463 | hardcode_direct_absolute=no | |
8464 | hardcode_libdir_flag_spec= | |
8465 | hardcode_libdir_flag_spec_ld= | |
8466 | hardcode_libdir_separator= | |
8467 | hardcode_minus_L=no | |
8468 | hardcode_shlibpath_var=unsupported | |
8469 | inherit_rpath=no | |
8470 | link_all_deplibs=unknown | |
8471 | module_cmds= | |
8472 | module_expsym_cmds= | |
8473 | old_archive_from_new_cmds= | |
8474 | old_archive_from_expsyms_cmds= | |
8475 | thread_safe_flag_spec= | |
8476 | whole_archive_flag_spec= | |
8477 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8478 | # included in the symbol list | |
8479 | include_expsyms= | |
8480 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8481 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8482 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8483 | # as well as any symbol that contains `d'. | |
8484 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8485 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8486 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8487 | # the symbol is explicitly referenced. Since portable code cannot | |
8488 | # rely on this symbol name, it's probably fine to never include it in | |
8489 | # preloaded symbol tables. | |
8490 | # Exclude shared library initialization/finalization symbols. | |
8491 | extract_expsyms_cmds= | |
8492 | ||
8493 | case $host_os in | |
8494 | cygwin* | mingw* | pw32* | cegcc*) | |
8495 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8496 | # When not using gcc, we currently assume that we are using | |
8497 | # Microsoft Visual C++. | |
8498 | if test "$GCC" != yes; then | |
8499 | with_gnu_ld=no | |
8500 | fi | |
8501 | ;; | |
8502 | interix*) | |
8503 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8504 | with_gnu_ld=yes | |
8505 | ;; | |
8506 | openbsd*) | |
8507 | with_gnu_ld=no | |
8508 | ;; | |
8509 | esac | |
8510 | ||
8511 | ld_shlibs=yes | |
8512 | if test "$with_gnu_ld" = yes; then | |
8513 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8514 | wlarc='${wl}' | |
8515 | ||
8516 | # Set some defaults for GNU ld with shared library support. These | |
8517 | # are reset later if shared libraries are not supported. Putting them | |
8518 | # here allows them to be overridden if necessary. | |
8519 | runpath_var=LD_RUN_PATH | |
8520 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8521 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8522 | # ancient GNU ld didn't support --whole-archive et. al. | |
8523 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8524 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8525 | else | |
8526 | whole_archive_flag_spec= | |
8527 | fi | |
8528 | supports_anon_versioning=no | |
8529 | case `$LD -v 2>&1` in | |
8530 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8531 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8532 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8533 | *\ 2.11.*) ;; # other 2.11 versions | |
8534 | *) supports_anon_versioning=yes ;; | |
8535 | esac | |
8536 | ||
8537 | # See if GNU ld supports shared libraries. | |
8538 | case $host_os in | |
8539 | aix[3-9]*) | |
8540 | # On AIX/PPC, the GNU linker is very broken | |
8541 | if test "$host_cpu" != ia64; then | |
8542 | ld_shlibs=no | |
8543 | cat <<_LT_EOF 1>&2 | |
8544 | ||
8545 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
8546 | *** to be unable to reliably create shared libraries on AIX. | |
8547 | *** Therefore, libtool is disabling shared libraries support. If you | |
8548 | *** really care for shared libraries, you may want to modify your PATH | |
8549 | *** so that a non-GNU linker is found, and then restart. | |
8550 | ||
8551 | _LT_EOF | |
8552 | fi | |
8553 | ;; | |
8554 | ||
8555 | amigaos*) | |
8556 | case $host_cpu in | |
8557 | powerpc) | |
8558 | # see comment about AmigaOS4 .so support | |
8559 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8560 | archive_expsym_cmds='' | |
8561 | ;; | |
8562 | m68k) | |
8563 | 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)' | |
8564 | hardcode_libdir_flag_spec='-L$libdir' | |
8565 | hardcode_minus_L=yes | |
8566 | ;; | |
8567 | esac | |
8568 | ;; | |
8569 | ||
8570 | beos*) | |
8571 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8572 | allow_undefined_flag=unsupported | |
8573 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8574 | # support --undefined. This deserves some investigation. FIXME | |
8575 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8576 | else | |
8577 | ld_shlibs=no | |
8578 | fi | |
8579 | ;; | |
8580 | ||
8581 | cygwin* | mingw* | pw32* | cegcc*) | |
8582 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8583 | # as there is no search path for DLLs. | |
8584 | hardcode_libdir_flag_spec='-L$libdir' | |
8585 | allow_undefined_flag=unsupported | |
8586 | always_export_symbols=no | |
8587 | enable_shared_with_static_runtimes=yes | |
8588 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8589 | ||
8590 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8591 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8592 | # If the export-symbols file already is a .def file (1st line | |
8593 | # is EXPORTS), use it as is; otherwise, prepend... | |
8594 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8595 | cp $export_symbols $output_objdir/$soname.def; | |
8596 | else | |
8597 | echo EXPORTS > $output_objdir/$soname.def; | |
8598 | cat $export_symbols >> $output_objdir/$soname.def; | |
8599 | fi~ | |
8600 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8601 | else | |
8602 | ld_shlibs=no | |
8603 | fi | |
8604 | ;; | |
8605 | ||
8606 | interix[3-9]*) | |
8607 | hardcode_direct=no | |
8608 | hardcode_shlibpath_var=no | |
8609 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8610 | export_dynamic_flag_spec='${wl}-E' | |
8611 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8612 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8613 | # default) and relocated if they conflict, which is a slow very memory | |
8614 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8615 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8616 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8617 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8618 | 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' | |
8619 | ;; | |
8620 | ||
8621 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
8622 | tmp_diet=no | |
8623 | if test "$host_os" = linux-dietlibc; then | |
8624 | case $cc_basename in | |
8625 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8626 | esac | |
8627 | fi | |
8628 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8629 | && test "$tmp_diet" = no | |
8630 | then | |
8631 | tmp_addflag= | |
8632 | tmp_sharedflag='-shared' | |
8633 | case $cc_basename,$host_cpu in | |
8634 | pgcc*) # Portland Group C compiler | |
8635 | 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' | |
8636 | tmp_addflag=' $pic_flag' | |
8637 | ;; | |
8638 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8639 | 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' | |
8640 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8641 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8642 | tmp_addflag=' -i_dynamic' ;; | |
8643 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8644 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8645 | ifc* | ifort*) # Intel Fortran compiler | |
8646 | tmp_addflag=' -nofor_main' ;; | |
8647 | lf95*) # Lahey Fortran 8.1 | |
8648 | whole_archive_flag_spec= | |
8649 | tmp_sharedflag='--shared' ;; | |
8650 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8651 | tmp_sharedflag='-qmkshrobj' | |
8652 | tmp_addflag= ;; | |
8653 | esac | |
8654 | case `$CC -V 2>&1 | sed 5q` in | |
8655 | *Sun\ C*) # Sun C 5.9 | |
8656 | 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' | |
8657 | compiler_needs_object=yes | |
8658 | tmp_sharedflag='-G' ;; | |
8659 | *Sun\ F*) # Sun Fortran 8.3 | |
8660 | tmp_sharedflag='-G' ;; | |
8661 | esac | |
8662 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8663 | ||
8664 | if test "x$supports_anon_versioning" = xyes; then | |
8665 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8666 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8667 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8668 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8669 | fi | |
8670 | ||
8671 | case $cc_basename in | |
8672 | xlf*) | |
8673 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8674 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8675 | hardcode_libdir_flag_spec= | |
8676 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8677 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8678 | if test "x$supports_anon_versioning" = xyes; then | |
8679 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8680 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8681 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8682 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8683 | fi | |
8684 | ;; | |
8685 | esac | |
8686 | else | |
8687 | ld_shlibs=no | |
8688 | fi | |
8689 | ;; | |
8690 | ||
8691 | netbsd*) | |
8692 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8693 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8694 | wlarc= | |
8695 | else | |
8696 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8697 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8698 | fi | |
8699 | ;; | |
8700 | ||
8701 | solaris*) | |
8702 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8703 | ld_shlibs=no | |
8704 | cat <<_LT_EOF 1>&2 | |
8705 | ||
8706 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8707 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8708 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8709 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8710 | *** your PATH or compiler configuration so that the native linker is | |
8711 | *** used, and then restart. | |
8712 | ||
8713 | _LT_EOF | |
8714 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8715 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8716 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8717 | else | |
8718 | ld_shlibs=no | |
8719 | fi | |
8720 | ;; | |
8721 | ||
8722 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8723 | case `$LD -v 2>&1` in | |
8724 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8725 | ld_shlibs=no | |
8726 | cat <<_LT_EOF 1>&2 | |
8727 | ||
8728 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8729 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8730 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8731 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8732 | *** your PATH or compiler configuration so that the native linker is | |
8733 | *** used, and then restart. | |
8734 | ||
8735 | _LT_EOF | |
8736 | ;; | |
8737 | *) | |
8738 | # For security reasons, it is highly recommended that you always | |
8739 | # use absolute paths for naming shared libraries, and exclude the | |
8740 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8741 | # requires that you compile everything twice, which is a pain. | |
8742 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8743 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8744 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8745 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8746 | else | |
8747 | ld_shlibs=no | |
8748 | fi | |
8749 | ;; | |
8750 | esac | |
8751 | ;; | |
8752 | ||
8753 | sunos4*) | |
8754 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8755 | wlarc= | |
8756 | hardcode_direct=yes | |
8757 | hardcode_shlibpath_var=no | |
8758 | ;; | |
8759 | ||
8760 | *) | |
8761 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8762 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8763 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8764 | else | |
8765 | ld_shlibs=no | |
8766 | fi | |
8767 | ;; | |
8768 | esac | |
8769 | ||
8770 | if test "$ld_shlibs" = no; then | |
8771 | runpath_var= | |
8772 | hardcode_libdir_flag_spec= | |
8773 | export_dynamic_flag_spec= | |
8774 | whole_archive_flag_spec= | |
8775 | fi | |
8776 | else | |
8777 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8778 | case $host_os in | |
8779 | aix3*) | |
8780 | allow_undefined_flag=unsupported | |
8781 | always_export_symbols=yes | |
8782 | 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' | |
8783 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8784 | # are no directories specified by -L. | |
8785 | hardcode_minus_L=yes | |
8786 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8787 | # Neither direct hardcoding nor static linking is supported with a | |
8788 | # broken collect2. | |
8789 | hardcode_direct=unsupported | |
8790 | fi | |
8791 | ;; | |
8792 | ||
8793 | aix[4-9]*) | |
8794 | if test "$host_cpu" = ia64; then | |
8795 | # On IA64, the linker does run time linking by default, so we don't | |
8796 | # have to do anything special. | |
8797 | aix_use_runtimelinking=no | |
8798 | exp_sym_flag='-Bexport' | |
8799 | no_entry_flag="" | |
8800 | else | |
8801 | # If we're using GNU nm, then we don't want the "-C" option. | |
8802 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8803 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8804 | 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' | |
8805 | else | |
8806 | 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' | |
8807 | fi | |
8808 | aix_use_runtimelinking=no | |
8809 | ||
8810 | # Test if we are trying to use run time linking or normal | |
8811 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8812 | # need to do runtime linking. | |
8813 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
8814 | for ld_flag in $LDFLAGS; do | |
8815 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8816 | aix_use_runtimelinking=yes | |
8817 | break | |
8818 | fi | |
8819 | done | |
8820 | ;; | |
8821 | esac | |
8822 | ||
8823 | exp_sym_flag='-bexport' | |
8824 | no_entry_flag='-bnoentry' | |
8825 | fi | |
8826 | ||
8827 | # When large executables or shared objects are built, AIX ld can | |
8828 | # have problems creating the table of contents. If linking a library | |
8829 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8830 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8831 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8832 | ||
8833 | archive_cmds='' | |
8834 | hardcode_direct=yes | |
8835 | hardcode_direct_absolute=yes | |
8836 | hardcode_libdir_separator=':' | |
8837 | link_all_deplibs=yes | |
8838 | file_list_spec='${wl}-f,' | |
8839 | ||
8840 | if test "$GCC" = yes; then | |
8841 | case $host_os in aix4.[012]|aix4.[012].*) | |
8842 | # We only want to do this on AIX 4.2 and lower, the check | |
8843 | # below for broken collect2 doesn't work under 4.3+ | |
8844 | collect2name=`${CC} -print-prog-name=collect2` | |
8845 | if test -f "$collect2name" && | |
8846 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8847 | then | |
8848 | # We have reworked collect2 | |
8849 | : | |
8850 | else | |
8851 | # We have old collect2 | |
8852 | hardcode_direct=unsupported | |
8853 | # It fails to find uninstalled libraries when the uninstalled | |
8854 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8855 | # to unsupported forces relinking | |
8856 | hardcode_minus_L=yes | |
8857 | hardcode_libdir_flag_spec='-L$libdir' | |
8858 | hardcode_libdir_separator= | |
8859 | fi | |
8860 | ;; | |
8861 | esac | |
8862 | shared_flag='-shared' | |
8863 | if test "$aix_use_runtimelinking" = yes; then | |
8864 | shared_flag="$shared_flag "'${wl}-G' | |
8865 | fi | |
8866 | else | |
8867 | # not using gcc | |
8868 | if test "$host_cpu" = ia64; then | |
8869 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8870 | # chokes on -Wl,-G. The following line is correct: | |
8871 | shared_flag='-G' | |
8872 | else | |
8873 | if test "$aix_use_runtimelinking" = yes; then | |
8874 | shared_flag='${wl}-G' | |
8875 | else | |
8876 | shared_flag='${wl}-bM:SRE' | |
8877 | fi | |
8878 | fi | |
8879 | fi | |
8880 | ||
8881 | export_dynamic_flag_spec='${wl}-bexpall' | |
8882 | # It seems that -bexpall does not export symbols beginning with | |
8883 | # underscore (_), so it is better to generate a list of symbols to export. | |
8884 | always_export_symbols=yes | |
8885 | if test "$aix_use_runtimelinking" = yes; then | |
8886 | # Warning - without using the other runtime loading flags (-brtl), | |
8887 | # -berok will link without error, but may produce a broken library. | |
8888 | allow_undefined_flag='-berok' | |
8889 | # Determine the default libpath from the value encoded in an | |
8890 | # empty executable. | |
8891 | cat >conftest.$ac_ext <<_ACEOF | |
8892 | /* confdefs.h. */ | |
8893 | _ACEOF | |
8894 | cat confdefs.h >>conftest.$ac_ext | |
8895 | cat >>conftest.$ac_ext <<_ACEOF | |
8896 | /* end confdefs.h. */ | |
8897 | ||
8898 | int | |
8899 | main () | |
8900 | { | |
8901 | ||
8902 | ; | |
8903 | return 0; | |
8904 | } | |
8905 | _ACEOF | |
8906 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8907 | if { (ac_try="$ac_link" | |
8908 | case "(($ac_try" in | |
8909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8910 | *) ac_try_echo=$ac_try;; | |
8911 | esac | |
8912 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8913 | $as_echo "$ac_try_echo") >&5 | |
8914 | (eval "$ac_link") 2>conftest.er1 | |
8915 | ac_status=$? | |
8916 | grep -v '^ *+' conftest.er1 >conftest.err | |
8917 | rm -f conftest.er1 | |
8918 | cat conftest.err >&5 | |
8919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8920 | (exit $ac_status); } && { | |
8921 | test -z "$ac_c_werror_flag" || | |
8922 | test ! -s conftest.err | |
8923 | } && test -s conftest$ac_exeext && { | |
8924 | test "$cross_compiling" = yes || | |
8925 | $as_test_x conftest$ac_exeext | |
8926 | }; then | |
8927 | ||
8928 | lt_aix_libpath_sed=' | |
8929 | /Import File Strings/,/^$/ { | |
8930 | /^0/ { | |
8931 | s/^0 *\(.*\)$/\1/ | |
8932 | p | |
8933 | } | |
8934 | }' | |
8935 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8936 | # Check for a 64-bit object if we didn't find anything. | |
8937 | if test -z "$aix_libpath"; then | |
8938 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8939 | fi | |
8940 | else | |
8941 | $as_echo "$as_me: failed program was:" >&5 | |
8942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8943 | ||
8944 | ||
8945 | fi | |
8946 | ||
8947 | rm -rf conftest.dSYM | |
8948 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8949 | conftest$ac_exeext conftest.$ac_ext | |
8950 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8951 | ||
8952 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8953 | 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" | |
8954 | else | |
8955 | if test "$host_cpu" = ia64; then | |
8956 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8957 | allow_undefined_flag="-z nodefs" | |
8958 | 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" | |
8959 | else | |
8960 | # Determine the default libpath from the value encoded in an | |
8961 | # empty executable. | |
8962 | cat >conftest.$ac_ext <<_ACEOF | |
8963 | /* confdefs.h. */ | |
8964 | _ACEOF | |
8965 | cat confdefs.h >>conftest.$ac_ext | |
8966 | cat >>conftest.$ac_ext <<_ACEOF | |
8967 | /* end confdefs.h. */ | |
8968 | ||
8969 | int | |
8970 | main () | |
8971 | { | |
8972 | ||
8973 | ; | |
8974 | return 0; | |
8975 | } | |
8976 | _ACEOF | |
8977 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8978 | if { (ac_try="$ac_link" | |
8979 | case "(($ac_try" in | |
8980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8981 | *) ac_try_echo=$ac_try;; | |
8982 | esac | |
8983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8984 | $as_echo "$ac_try_echo") >&5 | |
8985 | (eval "$ac_link") 2>conftest.er1 | |
8986 | ac_status=$? | |
8987 | grep -v '^ *+' conftest.er1 >conftest.err | |
8988 | rm -f conftest.er1 | |
8989 | cat conftest.err >&5 | |
8990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8991 | (exit $ac_status); } && { | |
8992 | test -z "$ac_c_werror_flag" || | |
8993 | test ! -s conftest.err | |
8994 | } && test -s conftest$ac_exeext && { | |
8995 | test "$cross_compiling" = yes || | |
8996 | $as_test_x conftest$ac_exeext | |
8997 | }; then | |
8998 | ||
8999 | lt_aix_libpath_sed=' | |
9000 | /Import File Strings/,/^$/ { | |
9001 | /^0/ { | |
9002 | s/^0 *\(.*\)$/\1/ | |
9003 | p | |
9004 | } | |
9005 | }' | |
9006 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9007 | # Check for a 64-bit object if we didn't find anything. | |
9008 | if test -z "$aix_libpath"; then | |
9009 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9010 | fi | |
9011 | else | |
9012 | $as_echo "$as_me: failed program was:" >&5 | |
9013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9014 | ||
9015 | ||
9016 | fi | |
9017 | ||
9018 | rm -rf conftest.dSYM | |
9019 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9020 | conftest$ac_exeext conftest.$ac_ext | |
9021 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9022 | ||
9023 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9024 | # Warning - without using the other run time loading flags, | |
9025 | # -berok will link without error, but may produce a broken library. | |
9026 | no_undefined_flag=' ${wl}-bernotok' | |
9027 | allow_undefined_flag=' ${wl}-berok' | |
9028 | # Exported symbols can be pulled into shared objects from archives | |
9029 | whole_archive_flag_spec='$convenience' | |
9030 | archive_cmds_need_lc=yes | |
9031 | # This is similar to how AIX traditionally builds its shared libraries. | |
9032 | 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' | |
9033 | fi | |
9034 | fi | |
9035 | ;; | |
9036 | ||
9037 | amigaos*) | |
9038 | case $host_cpu in | |
9039 | powerpc) | |
9040 | # see comment about AmigaOS4 .so support | |
9041 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9042 | archive_expsym_cmds='' | |
9043 | ;; | |
9044 | m68k) | |
9045 | 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)' | |
9046 | hardcode_libdir_flag_spec='-L$libdir' | |
9047 | hardcode_minus_L=yes | |
9048 | ;; | |
9049 | esac | |
9050 | ;; | |
9051 | ||
9052 | bsdi[45]*) | |
9053 | export_dynamic_flag_spec=-rdynamic | |
9054 | ;; | |
9055 | ||
9056 | cygwin* | mingw* | pw32* | cegcc*) | |
9057 | # When not using gcc, we currently assume that we are using | |
9058 | # Microsoft Visual C++. | |
9059 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9060 | # no search path for DLLs. | |
9061 | hardcode_libdir_flag_spec=' ' | |
9062 | allow_undefined_flag=unsupported | |
9063 | # Tell ltmain to make .lib files, not .a files. | |
9064 | libext=lib | |
9065 | # Tell ltmain to make .dll files, not .so files. | |
9066 | shrext_cmds=".dll" | |
9067 | # FIXME: Setting linknames here is a bad hack. | |
9068 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9069 | # The linker will automatically build a .lib file if we build a DLL. | |
9070 | old_archive_from_new_cmds='true' | |
9071 | # FIXME: Should let the user specify the lib program. | |
9072 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9073 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9074 | enable_shared_with_static_runtimes=yes | |
9075 | ;; | |
9076 | ||
9077 | darwin* | rhapsody*) | |
9078 | ||
9079 | ||
9080 | archive_cmds_need_lc=no | |
9081 | hardcode_direct=no | |
9082 | hardcode_automatic=yes | |
9083 | hardcode_shlibpath_var=unsupported | |
9084 | whole_archive_flag_spec='' | |
9085 | link_all_deplibs=yes | |
9086 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9087 | case $cc_basename in | |
9088 | ifort*) _lt_dar_can_shared=yes ;; | |
9089 | *) _lt_dar_can_shared=$GCC ;; | |
9090 | esac | |
9091 | if test "$_lt_dar_can_shared" = "yes"; then | |
9092 | output_verbose_link_cmd=echo | |
9093 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9094 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9095 | 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}" | |
9096 | 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}" | |
9097 | ||
9098 | else | |
9099 | ld_shlibs=no | |
9100 | fi | |
9101 | ||
9102 | ;; | |
9103 | ||
9104 | dgux*) | |
9105 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9106 | hardcode_libdir_flag_spec='-L$libdir' | |
9107 | hardcode_shlibpath_var=no | |
9108 | ;; | |
9109 | ||
9110 | freebsd1*) | |
9111 | ld_shlibs=no | |
9112 | ;; | |
9113 | ||
9114 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9115 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9116 | # does not break anything, and helps significantly (at the cost of a little | |
9117 | # extra space). | |
9118 | freebsd2.2*) | |
9119 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9120 | hardcode_libdir_flag_spec='-R$libdir' | |
9121 | hardcode_direct=yes | |
9122 | hardcode_shlibpath_var=no | |
9123 | ;; | |
9124 | ||
9125 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9126 | freebsd2*) | |
9127 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9128 | hardcode_direct=yes | |
9129 | hardcode_minus_L=yes | |
9130 | hardcode_shlibpath_var=no | |
9131 | ;; | |
9132 | ||
9133 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9134 | freebsd* | dragonfly*) | |
9135 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9136 | hardcode_libdir_flag_spec='-R$libdir' | |
9137 | hardcode_direct=yes | |
9138 | hardcode_shlibpath_var=no | |
9139 | ;; | |
9140 | ||
9141 | hpux9*) | |
9142 | if test "$GCC" = yes; then | |
9143 | 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' | |
9144 | else | |
9145 | 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' | |
9146 | fi | |
9147 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9148 | hardcode_libdir_separator=: | |
9149 | hardcode_direct=yes | |
9150 | ||
9151 | # hardcode_minus_L: Not really in the search PATH, | |
9152 | # but as the default location of the library. | |
9153 | hardcode_minus_L=yes | |
9154 | export_dynamic_flag_spec='${wl}-E' | |
9155 | ;; | |
9156 | ||
9157 | hpux10*) | |
9158 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9159 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9160 | else | |
9161 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9162 | fi | |
9163 | if test "$with_gnu_ld" = no; then | |
9164 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9165 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9166 | hardcode_libdir_separator=: | |
9167 | hardcode_direct=yes | |
9168 | hardcode_direct_absolute=yes | |
9169 | export_dynamic_flag_spec='${wl}-E' | |
9170 | # hardcode_minus_L: Not really in the search PATH, | |
9171 | # but as the default location of the library. | |
9172 | hardcode_minus_L=yes | |
9173 | fi | |
9174 | ;; | |
9175 | ||
9176 | hpux11*) | |
9177 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9178 | case $host_cpu in | |
9179 | hppa*64*) | |
9180 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9181 | ;; | |
9182 | ia64*) | |
9183 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9184 | ;; | |
9185 | *) | |
9186 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9187 | ;; | |
9188 | esac | |
9189 | else | |
9190 | case $host_cpu in | |
9191 | hppa*64*) | |
9192 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9193 | ;; | |
9194 | ia64*) | |
9195 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9196 | ;; | |
9197 | *) | |
9198 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9199 | ;; | |
9200 | esac | |
9201 | fi | |
9202 | if test "$with_gnu_ld" = no; then | |
9203 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9204 | hardcode_libdir_separator=: | |
9205 | ||
9206 | case $host_cpu in | |
9207 | hppa*64*|ia64*) | |
9208 | hardcode_direct=no | |
9209 | hardcode_shlibpath_var=no | |
9210 | ;; | |
9211 | *) | |
9212 | hardcode_direct=yes | |
9213 | hardcode_direct_absolute=yes | |
9214 | export_dynamic_flag_spec='${wl}-E' | |
9215 | ||
9216 | # hardcode_minus_L: Not really in the search PATH, | |
9217 | # but as the default location of the library. | |
9218 | hardcode_minus_L=yes | |
9219 | ;; | |
9220 | esac | |
9221 | fi | |
9222 | ;; | |
9223 | ||
9224 | irix5* | irix6* | nonstopux*) | |
9225 | if test "$GCC" = yes; then | |
9226 | 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' | |
9227 | # Try to use the -exported_symbol ld option, if it does not | |
9228 | # work, assume that -exports_file does not work either and | |
9229 | # implicitly export all symbols. | |
9230 | save_LDFLAGS="$LDFLAGS" | |
9231 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9232 | cat >conftest.$ac_ext <<_ACEOF | |
9233 | int foo(void) {} | |
9234 | _ACEOF | |
9235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9236 | if { (ac_try="$ac_link" | |
9237 | case "(($ac_try" in | |
9238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9239 | *) ac_try_echo=$ac_try;; | |
9240 | esac | |
9241 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9242 | $as_echo "$ac_try_echo") >&5 | |
9243 | (eval "$ac_link") 2>conftest.er1 | |
9244 | ac_status=$? | |
9245 | grep -v '^ *+' conftest.er1 >conftest.err | |
9246 | rm -f conftest.er1 | |
9247 | cat conftest.err >&5 | |
9248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9249 | (exit $ac_status); } && { | |
9250 | test -z "$ac_c_werror_flag" || | |
9251 | test ! -s conftest.err | |
9252 | } && test -s conftest$ac_exeext && { | |
9253 | test "$cross_compiling" = yes || | |
9254 | $as_test_x conftest$ac_exeext | |
9255 | }; then | |
9256 | 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' | |
9257 | ||
9258 | else | |
9259 | $as_echo "$as_me: failed program was:" >&5 | |
9260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9261 | ||
9262 | ||
9263 | fi | |
9264 | ||
9265 | rm -rf conftest.dSYM | |
9266 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9267 | conftest$ac_exeext conftest.$ac_ext | |
9268 | LDFLAGS="$save_LDFLAGS" | |
9269 | else | |
9270 | 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' | |
9271 | 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' | |
9272 | fi | |
9273 | archive_cmds_need_lc='no' | |
9274 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9275 | hardcode_libdir_separator=: | |
9276 | inherit_rpath=yes | |
9277 | link_all_deplibs=yes | |
9278 | ;; | |
9279 | ||
9280 | netbsd*) | |
9281 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9282 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9283 | else | |
9284 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9285 | fi | |
9286 | hardcode_libdir_flag_spec='-R$libdir' | |
9287 | hardcode_direct=yes | |
9288 | hardcode_shlibpath_var=no | |
9289 | ;; | |
9290 | ||
9291 | newsos6) | |
9292 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9293 | hardcode_direct=yes | |
9294 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9295 | hardcode_libdir_separator=: | |
9296 | hardcode_shlibpath_var=no | |
9297 | ;; | |
9298 | ||
9299 | *nto* | *qnx*) | |
9300 | ;; | |
9301 | ||
9302 | openbsd*) | |
9303 | if test -f /usr/libexec/ld.so; then | |
9304 | hardcode_direct=yes | |
9305 | hardcode_shlibpath_var=no | |
9306 | hardcode_direct_absolute=yes | |
9307 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9308 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9309 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9310 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9311 | export_dynamic_flag_spec='${wl}-E' | |
9312 | else | |
9313 | case $host_os in | |
9314 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9315 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9316 | hardcode_libdir_flag_spec='-R$libdir' | |
9317 | ;; | |
9318 | *) | |
9319 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9320 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9321 | ;; | |
9322 | esac | |
9323 | fi | |
9324 | else | |
9325 | ld_shlibs=no | |
9326 | fi | |
9327 | ;; | |
9328 | ||
9329 | os2*) | |
9330 | hardcode_libdir_flag_spec='-L$libdir' | |
9331 | hardcode_minus_L=yes | |
9332 | allow_undefined_flag=unsupported | |
9333 | 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' | |
9334 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9335 | ;; | |
9336 | ||
9337 | osf3*) | |
9338 | if test "$GCC" = yes; then | |
9339 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9340 | 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' | |
9341 | else | |
9342 | allow_undefined_flag=' -expect_unresolved \*' | |
9343 | 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' | |
9344 | fi | |
9345 | archive_cmds_need_lc='no' | |
9346 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9347 | hardcode_libdir_separator=: | |
9348 | ;; | |
9349 | ||
9350 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9351 | if test "$GCC" = yes; then | |
9352 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9353 | 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' | |
9354 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9355 | else | |
9356 | allow_undefined_flag=' -expect_unresolved \*' | |
9357 | 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' | |
9358 | 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~ | |
9359 | $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' | |
9360 | ||
9361 | # Both c and cxx compiler support -rpath directly | |
9362 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9363 | fi | |
9364 | archive_cmds_need_lc='no' | |
9365 | hardcode_libdir_separator=: | |
9366 | ;; | |
9367 | ||
9368 | solaris*) | |
9369 | no_undefined_flag=' -z defs' | |
9370 | if test "$GCC" = yes; then | |
9371 | wlarc='${wl}' | |
9372 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9373 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9374 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9375 | else | |
9376 | case `$CC -V 2>&1` in | |
9377 | *"Compilers 5.0"*) | |
9378 | wlarc='' | |
9379 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9380 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9381 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9382 | ;; | |
9383 | *) | |
9384 | wlarc='${wl}' | |
9385 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9386 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9387 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9388 | ;; | |
9389 | esac | |
9390 | fi | |
9391 | hardcode_libdir_flag_spec='-R$libdir' | |
9392 | hardcode_shlibpath_var=no | |
9393 | case $host_os in | |
9394 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9395 | *) | |
9396 | # The compiler driver will combine and reorder linker options, | |
9397 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9398 | # but is careful enough not to reorder. | |
9399 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9400 | if test "$GCC" = yes; then | |
9401 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9402 | else | |
9403 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9404 | fi | |
9405 | ;; | |
9406 | esac | |
9407 | link_all_deplibs=yes | |
9408 | ;; | |
9409 | ||
9410 | sunos4*) | |
9411 | if test "x$host_vendor" = xsequent; then | |
9412 | # Use $CC to link under sequent, because it throws in some extra .o | |
9413 | # files that make .init and .fini sections work. | |
9414 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9415 | else | |
9416 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9417 | fi | |
9418 | hardcode_libdir_flag_spec='-L$libdir' | |
9419 | hardcode_direct=yes | |
9420 | hardcode_minus_L=yes | |
9421 | hardcode_shlibpath_var=no | |
9422 | ;; | |
9423 | ||
9424 | sysv4) | |
9425 | case $host_vendor in | |
9426 | sni) | |
9427 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9428 | hardcode_direct=yes # is this really true??? | |
9429 | ;; | |
9430 | siemens) | |
9431 | ## LD is ld it makes a PLAMLIB | |
9432 | ## CC just makes a GrossModule. | |
9433 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9434 | reload_cmds='$CC -r -o $output$reload_objs' | |
9435 | hardcode_direct=no | |
9436 | ;; | |
9437 | motorola) | |
9438 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9439 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9440 | ;; | |
9441 | esac | |
9442 | runpath_var='LD_RUN_PATH' | |
9443 | hardcode_shlibpath_var=no | |
9444 | ;; | |
9445 | ||
9446 | sysv4.3*) | |
9447 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9448 | hardcode_shlibpath_var=no | |
9449 | export_dynamic_flag_spec='-Bexport' | |
9450 | ;; | |
9451 | ||
9452 | sysv4*MP*) | |
9453 | if test -d /usr/nec; then | |
9454 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9455 | hardcode_shlibpath_var=no | |
9456 | runpath_var=LD_RUN_PATH | |
9457 | hardcode_runpath_var=yes | |
9458 | ld_shlibs=yes | |
9459 | fi | |
9460 | ;; | |
9461 | ||
9462 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9463 | no_undefined_flag='${wl}-z,text' | |
9464 | archive_cmds_need_lc=no | |
9465 | hardcode_shlibpath_var=no | |
9466 | runpath_var='LD_RUN_PATH' | |
9467 | ||
9468 | if test "$GCC" = yes; then | |
9469 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9470 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9471 | else | |
9472 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9473 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9474 | fi | |
9475 | ;; | |
9476 | ||
9477 | sysv5* | sco3.2v5* | sco5v6*) | |
9478 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9479 | # link with -lc, and that would cause any symbols used from libc to | |
9480 | # always be unresolved, which means just about no library would | |
9481 | # ever link correctly. If we're not using GNU ld we use -z text | |
9482 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9483 | # as -z defs. | |
9484 | no_undefined_flag='${wl}-z,text' | |
9485 | allow_undefined_flag='${wl}-z,nodefs' | |
9486 | archive_cmds_need_lc=no | |
9487 | hardcode_shlibpath_var=no | |
9488 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9489 | hardcode_libdir_separator=':' | |
9490 | link_all_deplibs=yes | |
9491 | export_dynamic_flag_spec='${wl}-Bexport' | |
9492 | runpath_var='LD_RUN_PATH' | |
9493 | ||
9494 | if test "$GCC" = yes; then | |
9495 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9496 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9497 | else | |
9498 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9499 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9500 | fi | |
9501 | ;; | |
9502 | ||
9503 | uts4*) | |
9504 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9505 | hardcode_libdir_flag_spec='-L$libdir' | |
9506 | hardcode_shlibpath_var=no | |
9507 | ;; | |
9508 | ||
9509 | *) | |
9510 | ld_shlibs=no | |
9511 | ;; | |
9512 | esac | |
9513 | ||
9514 | if test x$host_vendor = xsni; then | |
9515 | case $host in | |
9516 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9517 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9518 | ;; | |
9519 | esac | |
9520 | fi | |
9521 | fi | |
9522 | ||
9523 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
9524 | $as_echo "$ld_shlibs" >&6; } | |
9525 | test "$ld_shlibs" = no && can_build_shared=no | |
9526 | ||
9527 | with_gnu_ld=$with_gnu_ld | |
9528 | ||
9529 | ||
9530 | ||
9531 | ||
9532 | ||
9533 | ||
9534 | ||
9535 | ||
9536 | ||
9537 | ||
9538 | ||
9539 | ||
9540 | ||
9541 | ||
9542 | ||
9543 | # | |
9544 | # Do we need to explicitly link libc? | |
9545 | # | |
9546 | case "x$archive_cmds_need_lc" in | |
9547 | x|xyes) | |
9548 | # Assume -lc should be added | |
9549 | archive_cmds_need_lc=yes | |
9550 | ||
9551 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9552 | case $archive_cmds in | |
9553 | *'~'*) | |
9554 | # FIXME: we may have to deal with multi-command sequences. | |
9555 | ;; | |
9556 | '$CC '*) | |
9557 | # Test whether the compiler implicitly links with -lc since on some | |
9558 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9559 | # to ld, don't add -lc before -lgcc. | |
9560 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
9561 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9562 | $RM conftest* | |
9563 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9564 | ||
9565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9566 | (eval $ac_compile) 2>&5 | |
9567 | ac_status=$? | |
9568 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9569 | (exit $ac_status); } 2>conftest.err; then | |
9570 | soname=conftest | |
9571 | lib=conftest | |
9572 | libobjs=conftest.$ac_objext | |
9573 | deplibs= | |
9574 | wl=$lt_prog_compiler_wl | |
9575 | pic_flag=$lt_prog_compiler_pic | |
9576 | compiler_flags=-v | |
9577 | linker_flags=-v | |
9578 | verstring= | |
9579 | output_objdir=. | |
9580 | libname=conftest | |
9581 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9582 | allow_undefined_flag= | |
9583 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
9584 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9585 | ac_status=$? | |
9586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9587 | (exit $ac_status); } | |
9588 | then | |
9589 | archive_cmds_need_lc=no | |
9590 | else | |
9591 | archive_cmds_need_lc=yes | |
9592 | fi | |
9593 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9594 | else | |
9595 | cat conftest.err 1>&5 | |
9596 | fi | |
9597 | $RM conftest* | |
9598 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
9599 | $as_echo "$archive_cmds_need_lc" >&6; } | |
9600 | ;; | |
9601 | esac | |
9602 | fi | |
9603 | ;; | |
9604 | esac | |
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 | ||
9732 | ||
9733 | ||
9734 | ||
9735 | ||
9736 | ||
9737 | ||
9738 | ||
9739 | ||
9740 | ||
9741 | ||
9742 | ||
9743 | ||
9744 | ||
9745 | ||
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | ||
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | ||
9760 | ||
9761 | ||
9762 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9763 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9764 | ||
9765 | if test "$GCC" = yes; then | |
9766 | case $host_os in | |
9767 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9768 | *) lt_awk_arg="/^libraries:/" ;; | |
9769 | esac | |
9770 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9771 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9772 | # if the path contains ";" then we assume it to be the separator | |
9773 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9774 | # assumed that no part of a normal pathname contains ";" but that should | |
9775 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9776 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9777 | else | |
9778 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9779 | fi | |
9780 | # Ok, now we have the path, separated by spaces, we can step through it | |
9781 | # and add multilib dir if necessary. | |
9782 | lt_tmp_lt_search_path_spec= | |
9783 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9784 | for lt_sys_path in $lt_search_path_spec; do | |
9785 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9786 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9787 | else | |
9788 | test -d "$lt_sys_path" && \ | |
9789 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9790 | fi | |
9791 | done | |
9792 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9793 | BEGIN {RS=" "; FS="/|\n";} { | |
9794 | lt_foo=""; | |
9795 | lt_count=0; | |
9796 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9797 | if ($lt_i != "" && $lt_i != ".") { | |
9798 | if ($lt_i == "..") { | |
9799 | lt_count++; | |
9800 | } else { | |
9801 | if (lt_count == 0) { | |
9802 | lt_foo="/" $lt_i lt_foo; | |
9803 | } else { | |
9804 | lt_count--; | |
9805 | } | |
9806 | } | |
9807 | } | |
9808 | } | |
9809 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9810 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9811 | }'` | |
9812 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9813 | else | |
9814 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9815 | fi | |
9816 | library_names_spec= | |
9817 | libname_spec='lib$name' | |
9818 | soname_spec= | |
9819 | shrext_cmds=".so" | |
9820 | postinstall_cmds= | |
9821 | postuninstall_cmds= | |
9822 | finish_cmds= | |
9823 | finish_eval= | |
9824 | shlibpath_var= | |
9825 | shlibpath_overrides_runpath=unknown | |
9826 | version_type=none | |
9827 | dynamic_linker="$host_os ld.so" | |
9828 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9829 | need_lib_prefix=unknown | |
9830 | hardcode_into_libs=no | |
9831 | ||
9832 | # when you set need_version to no, make sure it does not cause -set_version | |
9833 | # flags to be left without arguments | |
9834 | need_version=unknown | |
9835 | ||
9836 | case $host_os in | |
9837 | aix3*) | |
9838 | version_type=linux | |
9839 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9840 | shlibpath_var=LIBPATH | |
9841 | ||
9842 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9843 | soname_spec='${libname}${release}${shared_ext}$major' | |
9844 | ;; | |
9845 | ||
9846 | aix[4-9]*) | |
9847 | version_type=linux | |
9848 | need_lib_prefix=no | |
9849 | need_version=no | |
9850 | hardcode_into_libs=yes | |
9851 | if test "$host_cpu" = ia64; then | |
9852 | # AIX 5 supports IA64 | |
9853 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9854 | shlibpath_var=LD_LIBRARY_PATH | |
9855 | else | |
9856 | # With GCC up to 2.95.x, collect2 would create an import file | |
9857 | # for dependence libraries. The import file would start with | |
9858 | # the line `#! .'. This would cause the generated library to | |
9859 | # depend on `.', always an invalid library. This was fixed in | |
9860 | # development snapshots of GCC prior to 3.0. | |
9861 | case $host_os in | |
9862 | aix4 | aix4.[01] | aix4.[01].*) | |
9863 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9864 | echo ' yes ' | |
9865 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9866 | : | |
9867 | else | |
9868 | can_build_shared=no | |
9869 | fi | |
9870 | ;; | |
9871 | esac | |
9872 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9873 | # soname into executable. Probably we can add versioning support to | |
9874 | # collect2, so additional links can be useful in future. | |
9875 | if test "$aix_use_runtimelinking" = yes; then | |
9876 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9877 | # instead of lib<name>.a to let people know that these are not | |
9878 | # typical AIX shared libraries. | |
9879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9880 | else | |
9881 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9882 | # and later when we are not doing run time linking. | |
9883 | library_names_spec='${libname}${release}.a $libname.a' | |
9884 | soname_spec='${libname}${release}${shared_ext}$major' | |
9885 | fi | |
9886 | shlibpath_var=LIBPATH | |
9887 | fi | |
9888 | ;; | |
9889 | ||
9890 | amigaos*) | |
9891 | case $host_cpu in | |
9892 | powerpc) | |
9893 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9894 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9896 | ;; | |
9897 | m68k) | |
9898 | library_names_spec='$libname.ixlibrary $libname.a' | |
9899 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9900 | 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' | |
9901 | ;; | |
9902 | esac | |
9903 | ;; | |
9904 | ||
9905 | beos*) | |
9906 | library_names_spec='${libname}${shared_ext}' | |
9907 | dynamic_linker="$host_os ld.so" | |
9908 | shlibpath_var=LIBRARY_PATH | |
9909 | ;; | |
9910 | ||
9911 | bsdi[45]*) | |
9912 | version_type=linux | |
9913 | need_version=no | |
9914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9915 | soname_spec='${libname}${release}${shared_ext}$major' | |
9916 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9917 | shlibpath_var=LD_LIBRARY_PATH | |
9918 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9919 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9920 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9921 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9922 | # libtool to hard-code these into programs | |
9923 | ;; | |
9924 | ||
9925 | cygwin* | mingw* | pw32* | cegcc*) | |
9926 | version_type=windows | |
9927 | shrext_cmds=".dll" | |
9928 | need_version=no | |
9929 | need_lib_prefix=no | |
9930 | ||
9931 | case $GCC,$host_os in | |
9932 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
9933 | library_names_spec='$libname.dll.a' | |
9934 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9935 | postinstall_cmds='base_file=`basename \${file}`~ | |
9936 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9937 | dldir=$destdir/`dirname \$dlpath`~ | |
9938 | test -d \$dldir || mkdir -p \$dldir~ | |
9939 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
9940 | chmod a+x \$dldir/$dlname~ | |
9941 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9942 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9943 | fi' | |
9944 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9945 | dlpath=$dir/\$dldll~ | |
9946 | $RM \$dlpath' | |
9947 | shlibpath_overrides_runpath=yes | |
9948 | ||
9949 | case $host_os in | |
9950 | cygwin*) | |
9951 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9952 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9953 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9954 | ;; | |
9955 | mingw* | cegcc*) | |
9956 | # MinGW DLLs use traditional 'lib' prefix | |
9957 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9958 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9959 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
9960 | # It is most probably a Windows format PATH printed by | |
9961 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9962 | # path with ; separators, and with drive letters. We can handle the | |
9963 | # drive letters (cygwin fileutils understands them), so leave them, | |
9964 | # especially as we might pass files found there to a mingw objdump, | |
9965 | # which wouldn't understand a cygwinified path. Ahh. | |
9966 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
9967 | else | |
9968 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9969 | fi | |
9970 | ;; | |
9971 | pw32*) | |
9972 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9973 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9974 | ;; | |
9975 | esac | |
9976 | ;; | |
9977 | ||
9978 | *) | |
9979 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9980 | ;; | |
9981 | esac | |
9982 | dynamic_linker='Win32 ld.exe' | |
9983 | # FIXME: first we should search . and the directory the executable is in | |
9984 | shlibpath_var=PATH | |
9985 | ;; | |
9986 | ||
9987 | darwin* | rhapsody*) | |
9988 | dynamic_linker="$host_os dyld" | |
9989 | version_type=darwin | |
9990 | need_lib_prefix=no | |
9991 | need_version=no | |
9992 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9993 | soname_spec='${libname}${release}${major}$shared_ext' | |
9994 | shlibpath_overrides_runpath=yes | |
9995 | shlibpath_var=DYLD_LIBRARY_PATH | |
9996 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9997 | ||
9998 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9999 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10000 | ;; | |
10001 | ||
10002 | dgux*) | |
10003 | version_type=linux | |
10004 | need_lib_prefix=no | |
10005 | need_version=no | |
10006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10007 | soname_spec='${libname}${release}${shared_ext}$major' | |
10008 | shlibpath_var=LD_LIBRARY_PATH | |
10009 | ;; | |
10010 | ||
10011 | freebsd1*) | |
10012 | dynamic_linker=no | |
10013 | ;; | |
10014 | ||
10015 | freebsd* | dragonfly*) | |
10016 | # DragonFly does not have aout. When/if they implement a new | |
10017 | # versioning mechanism, adjust this. | |
10018 | if test -x /usr/bin/objformat; then | |
10019 | objformat=`/usr/bin/objformat` | |
10020 | else | |
10021 | case $host_os in | |
10022 | freebsd[123]*) objformat=aout ;; | |
10023 | *) objformat=elf ;; | |
10024 | esac | |
10025 | fi | |
10026 | version_type=freebsd-$objformat | |
10027 | case $version_type in | |
10028 | freebsd-elf*) | |
10029 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10030 | need_version=no | |
10031 | need_lib_prefix=no | |
10032 | ;; | |
10033 | freebsd-*) | |
10034 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10035 | need_version=yes | |
10036 | ;; | |
10037 | esac | |
10038 | shlibpath_var=LD_LIBRARY_PATH | |
10039 | case $host_os in | |
10040 | freebsd2*) | |
10041 | shlibpath_overrides_runpath=yes | |
10042 | ;; | |
10043 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10044 | shlibpath_overrides_runpath=yes | |
10045 | hardcode_into_libs=yes | |
10046 | ;; | |
10047 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10048 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10049 | shlibpath_overrides_runpath=no | |
10050 | hardcode_into_libs=yes | |
10051 | ;; | |
10052 | *) # from 4.6 on, and DragonFly | |
10053 | shlibpath_overrides_runpath=yes | |
10054 | hardcode_into_libs=yes | |
10055 | ;; | |
10056 | esac | |
10057 | ;; | |
10058 | ||
10059 | gnu*) | |
10060 | version_type=linux | |
10061 | need_lib_prefix=no | |
10062 | need_version=no | |
10063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10064 | soname_spec='${libname}${release}${shared_ext}$major' | |
10065 | shlibpath_var=LD_LIBRARY_PATH | |
10066 | hardcode_into_libs=yes | |
10067 | ;; | |
10068 | ||
10069 | hpux9* | hpux10* | hpux11*) | |
10070 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10071 | # link against other versions. | |
10072 | version_type=sunos | |
10073 | need_lib_prefix=no | |
10074 | need_version=no | |
10075 | case $host_cpu in | |
10076 | ia64*) | |
10077 | shrext_cmds='.so' | |
10078 | hardcode_into_libs=yes | |
10079 | dynamic_linker="$host_os dld.so" | |
10080 | shlibpath_var=LD_LIBRARY_PATH | |
10081 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10083 | soname_spec='${libname}${release}${shared_ext}$major' | |
10084 | if test "X$HPUX_IA64_MODE" = X32; then | |
10085 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10086 | else | |
10087 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10088 | fi | |
10089 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10090 | ;; | |
10091 | hppa*64*) | |
10092 | shrext_cmds='.sl' | |
10093 | hardcode_into_libs=yes | |
10094 | dynamic_linker="$host_os dld.sl" | |
10095 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10096 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10098 | soname_spec='${libname}${release}${shared_ext}$major' | |
10099 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10100 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10101 | ;; | |
10102 | *) | |
10103 | shrext_cmds='.sl' | |
10104 | dynamic_linker="$host_os dld.sl" | |
10105 | shlibpath_var=SHLIB_PATH | |
10106 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10108 | soname_spec='${libname}${release}${shared_ext}$major' | |
10109 | ;; | |
10110 | esac | |
10111 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10112 | postinstall_cmds='chmod 555 $lib' | |
10113 | ;; | |
10114 | ||
10115 | interix[3-9]*) | |
10116 | version_type=linux | |
10117 | need_lib_prefix=no | |
10118 | need_version=no | |
10119 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10120 | soname_spec='${libname}${release}${shared_ext}$major' | |
10121 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10122 | shlibpath_var=LD_LIBRARY_PATH | |
10123 | shlibpath_overrides_runpath=no | |
10124 | hardcode_into_libs=yes | |
10125 | ;; | |
10126 | ||
10127 | irix5* | irix6* | nonstopux*) | |
10128 | case $host_os in | |
10129 | nonstopux*) version_type=nonstopux ;; | |
10130 | *) | |
10131 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10132 | version_type=linux | |
10133 | else | |
10134 | version_type=irix | |
10135 | fi ;; | |
10136 | esac | |
10137 | need_lib_prefix=no | |
10138 | need_version=no | |
10139 | soname_spec='${libname}${release}${shared_ext}$major' | |
10140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10141 | case $host_os in | |
10142 | irix5* | nonstopux*) | |
10143 | libsuff= shlibsuff= | |
10144 | ;; | |
10145 | *) | |
10146 | case $LD in # libtool.m4 will add one of these switches to LD | |
10147 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10148 | libsuff= shlibsuff= libmagic=32-bit;; | |
10149 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10150 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10151 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10152 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10153 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10154 | esac | |
10155 | ;; | |
10156 | esac | |
10157 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10158 | shlibpath_overrides_runpath=no | |
10159 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10160 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10161 | hardcode_into_libs=yes | |
10162 | ;; | |
10163 | ||
10164 | # No shared lib support for Linux oldld, aout, or coff. | |
10165 | linux*oldld* | linux*aout* | linux*coff*) | |
10166 | dynamic_linker=no | |
10167 | ;; | |
10168 | ||
10169 | # This must be Linux ELF. | |
10170 | linux* | k*bsd*-gnu) | |
10171 | version_type=linux | |
10172 | need_lib_prefix=no | |
10173 | need_version=no | |
10174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10175 | soname_spec='${libname}${release}${shared_ext}$major' | |
10176 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10177 | shlibpath_var=LD_LIBRARY_PATH | |
10178 | shlibpath_overrides_runpath=no | |
10179 | # Some binutils ld are patched to set DT_RUNPATH | |
10180 | save_LDFLAGS=$LDFLAGS | |
10181 | save_libdir=$libdir | |
10182 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10183 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10184 | cat >conftest.$ac_ext <<_ACEOF | |
10185 | /* confdefs.h. */ | |
10186 | _ACEOF | |
10187 | cat confdefs.h >>conftest.$ac_ext | |
10188 | cat >>conftest.$ac_ext <<_ACEOF | |
10189 | /* end confdefs.h. */ | |
10190 | ||
10191 | int | |
10192 | main () | |
10193 | { | |
10194 | ||
10195 | ; | |
10196 | return 0; | |
10197 | } | |
10198 | _ACEOF | |
10199 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10200 | if { (ac_try="$ac_link" | |
10201 | case "(($ac_try" in | |
10202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10203 | *) ac_try_echo=$ac_try;; | |
10204 | esac | |
10205 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10206 | $as_echo "$ac_try_echo") >&5 | |
10207 | (eval "$ac_link") 2>conftest.er1 | |
10208 | ac_status=$? | |
10209 | grep -v '^ *+' conftest.er1 >conftest.err | |
10210 | rm -f conftest.er1 | |
10211 | cat conftest.err >&5 | |
10212 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10213 | (exit $ac_status); } && { | |
10214 | test -z "$ac_c_werror_flag" || | |
10215 | test ! -s conftest.err | |
10216 | } && test -s conftest$ac_exeext && { | |
10217 | test "$cross_compiling" = yes || | |
10218 | $as_test_x conftest$ac_exeext | |
10219 | }; then | |
10220 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
10221 | shlibpath_overrides_runpath=yes | |
10222 | fi | |
10223 | ||
10224 | else | |
10225 | $as_echo "$as_me: failed program was:" >&5 | |
10226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10227 | ||
10228 | ||
10229 | fi | |
10230 | ||
10231 | rm -rf conftest.dSYM | |
10232 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10233 | conftest$ac_exeext conftest.$ac_ext | |
10234 | LDFLAGS=$save_LDFLAGS | |
10235 | libdir=$save_libdir | |
10236 | ||
10237 | # This implies no fast_install, which is unacceptable. | |
10238 | # Some rework will be needed to allow for fast_install | |
10239 | # before this can be enabled. | |
10240 | hardcode_into_libs=yes | |
10241 | ||
10242 | # Add ABI-specific directories to the system library path. | |
10243 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
10244 | ||
10245 | # Append ld.so.conf contents to the search path | |
10246 | if test -f /etc/ld.so.conf; then | |
10247 | 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' ' '` | |
10248 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | |
10249 | fi | |
10250 | ||
10251 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10252 | # powerpc, because MkLinux only supported shared libraries with the | |
10253 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10254 | # most powerpc-linux boxes support dynamic linking these days and | |
10255 | # people can always --disable-shared, the test was removed, and we | |
10256 | # assume the GNU/Linux dynamic linker is in use. | |
10257 | dynamic_linker='GNU/Linux ld.so' | |
10258 | ;; | |
10259 | ||
10260 | netbsd*) | |
10261 | version_type=sunos | |
10262 | need_lib_prefix=no | |
10263 | need_version=no | |
10264 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10266 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10267 | dynamic_linker='NetBSD (a.out) ld.so' | |
10268 | else | |
10269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10270 | soname_spec='${libname}${release}${shared_ext}$major' | |
10271 | dynamic_linker='NetBSD ld.elf_so' | |
10272 | fi | |
10273 | shlibpath_var=LD_LIBRARY_PATH | |
10274 | shlibpath_overrides_runpath=yes | |
10275 | hardcode_into_libs=yes | |
10276 | ;; | |
10277 | ||
10278 | newsos6) | |
10279 | version_type=linux | |
10280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10281 | shlibpath_var=LD_LIBRARY_PATH | |
10282 | shlibpath_overrides_runpath=yes | |
10283 | ;; | |
10284 | ||
10285 | *nto* | *qnx*) | |
10286 | version_type=qnx | |
10287 | need_lib_prefix=no | |
10288 | need_version=no | |
10289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10290 | soname_spec='${libname}${release}${shared_ext}$major' | |
10291 | shlibpath_var=LD_LIBRARY_PATH | |
10292 | shlibpath_overrides_runpath=no | |
10293 | hardcode_into_libs=yes | |
10294 | dynamic_linker='ldqnx.so' | |
10295 | ;; | |
10296 | ||
10297 | openbsd*) | |
10298 | version_type=sunos | |
10299 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10300 | need_lib_prefix=no | |
10301 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10302 | case $host_os in | |
10303 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10304 | *) need_version=no ;; | |
10305 | esac | |
10306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10307 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10308 | shlibpath_var=LD_LIBRARY_PATH | |
10309 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10310 | case $host_os in | |
10311 | openbsd2.[89] | openbsd2.[89].*) | |
10312 | shlibpath_overrides_runpath=no | |
10313 | ;; | |
10314 | *) | |
10315 | shlibpath_overrides_runpath=yes | |
10316 | ;; | |
10317 | esac | |
10318 | else | |
10319 | shlibpath_overrides_runpath=yes | |
10320 | fi | |
10321 | ;; | |
10322 | ||
10323 | os2*) | |
10324 | libname_spec='$name' | |
10325 | shrext_cmds=".dll" | |
10326 | need_lib_prefix=no | |
10327 | library_names_spec='$libname${shared_ext} $libname.a' | |
10328 | dynamic_linker='OS/2 ld.exe' | |
10329 | shlibpath_var=LIBPATH | |
10330 | ;; | |
10331 | ||
10332 | osf3* | osf4* | osf5*) | |
10333 | version_type=osf | |
10334 | need_lib_prefix=no | |
10335 | need_version=no | |
10336 | soname_spec='${libname}${release}${shared_ext}$major' | |
10337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10338 | shlibpath_var=LD_LIBRARY_PATH | |
10339 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10340 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10341 | ;; | |
10342 | ||
10343 | rdos*) | |
10344 | dynamic_linker=no | |
10345 | ;; | |
10346 | ||
10347 | solaris*) | |
10348 | version_type=linux | |
10349 | need_lib_prefix=no | |
10350 | need_version=no | |
10351 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10352 | soname_spec='${libname}${release}${shared_ext}$major' | |
10353 | shlibpath_var=LD_LIBRARY_PATH | |
10354 | shlibpath_overrides_runpath=yes | |
10355 | hardcode_into_libs=yes | |
10356 | # ldd complains unless libraries are executable | |
10357 | postinstall_cmds='chmod +x $lib' | |
10358 | ;; | |
10359 | ||
10360 | sunos4*) | |
10361 | version_type=sunos | |
10362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10363 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10364 | shlibpath_var=LD_LIBRARY_PATH | |
10365 | shlibpath_overrides_runpath=yes | |
10366 | if test "$with_gnu_ld" = yes; then | |
10367 | need_lib_prefix=no | |
10368 | fi | |
10369 | need_version=yes | |
10370 | ;; | |
10371 | ||
10372 | sysv4 | sysv4.3*) | |
10373 | version_type=linux | |
10374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10375 | soname_spec='${libname}${release}${shared_ext}$major' | |
10376 | shlibpath_var=LD_LIBRARY_PATH | |
10377 | case $host_vendor in | |
10378 | sni) | |
10379 | shlibpath_overrides_runpath=no | |
10380 | need_lib_prefix=no | |
10381 | runpath_var=LD_RUN_PATH | |
10382 | ;; | |
10383 | siemens) | |
10384 | need_lib_prefix=no | |
10385 | ;; | |
10386 | motorola) | |
10387 | need_lib_prefix=no | |
10388 | need_version=no | |
10389 | shlibpath_overrides_runpath=no | |
10390 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10391 | ;; | |
10392 | esac | |
10393 | ;; | |
10394 | ||
10395 | sysv4*MP*) | |
10396 | if test -d /usr/nec ;then | |
10397 | version_type=linux | |
10398 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10399 | soname_spec='$libname${shared_ext}.$major' | |
10400 | shlibpath_var=LD_LIBRARY_PATH | |
10401 | fi | |
10402 | ;; | |
10403 | ||
10404 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10405 | version_type=freebsd-elf | |
10406 | need_lib_prefix=no | |
10407 | need_version=no | |
10408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10409 | soname_spec='${libname}${release}${shared_ext}$major' | |
10410 | shlibpath_var=LD_LIBRARY_PATH | |
10411 | shlibpath_overrides_runpath=yes | |
10412 | hardcode_into_libs=yes | |
10413 | if test "$with_gnu_ld" = yes; then | |
10414 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10415 | else | |
10416 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10417 | case $host_os in | |
10418 | sco3.2v5*) | |
10419 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10420 | ;; | |
10421 | esac | |
10422 | fi | |
10423 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10424 | ;; | |
10425 | ||
10426 | tpf*) | |
10427 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10428 | version_type=linux | |
10429 | need_lib_prefix=no | |
10430 | need_version=no | |
10431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10432 | shlibpath_var=LD_LIBRARY_PATH | |
10433 | shlibpath_overrides_runpath=no | |
10434 | hardcode_into_libs=yes | |
10435 | ;; | |
10436 | ||
10437 | uts4*) | |
10438 | version_type=linux | |
10439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10440 | soname_spec='${libname}${release}${shared_ext}$major' | |
10441 | shlibpath_var=LD_LIBRARY_PATH | |
10442 | ;; | |
10443 | ||
10444 | *) | |
10445 | dynamic_linker=no | |
10446 | ;; | |
10447 | esac | |
10448 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
10449 | $as_echo "$dynamic_linker" >&6; } | |
10450 | test "$dynamic_linker" = no && can_build_shared=no | |
10451 | ||
10452 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10453 | if test "$GCC" = yes; then | |
10454 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10455 | fi | |
10456 | ||
10457 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10458 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10459 | fi | |
10460 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10461 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10462 | fi | |
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | ||
10472 | ||
10473 | ||
10474 | ||
10475 | ||
10476 | ||
10477 | ||
10478 | ||
10479 | ||
10480 | ||
10481 | ||
10482 | ||
10483 | ||
10484 | ||
10485 | ||
10486 | ||
10487 | ||
10488 | ||
10489 | ||
10490 | ||
10491 | ||
10492 | ||
10493 | ||
10494 | ||
10495 | ||
10496 | ||
10497 | ||
10498 | ||
10499 | ||
10500 | ||
10501 | ||
10502 | ||
10503 | ||
10504 | ||
10505 | ||
10506 | ||
10507 | ||
10508 | ||
10509 | ||
10510 | ||
10511 | ||
10512 | ||
10513 | ||
10514 | ||
10515 | ||
10516 | ||
10517 | ||
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | ||
10523 | ||
10524 | ||
10525 | ||
10526 | ||
10527 | ||
10528 | ||
10529 | ||
10530 | ||
10531 | ||
10532 | ||
10533 | ||
10534 | ||
10535 | ||
10536 | ||
10537 | ||
10538 | ||
10539 | ||
10540 | ||
10541 | ||
10542 | ||
10543 | ||
10544 | ||
10545 | ||
10546 | ||
10547 | ||
10548 | ||
10549 | ||
10550 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
10551 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10552 | hardcode_action= | |
10553 | if test -n "$hardcode_libdir_flag_spec" || | |
10554 | test -n "$runpath_var" || | |
10555 | test "X$hardcode_automatic" = "Xyes" ; then | |
10556 | ||
10557 | # We can hardcode non-existent directories. | |
10558 | if test "$hardcode_direct" != no && | |
10559 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10560 | # have to relink, otherwise we might link with an installed library | |
10561 | # when we should be linking with a yet-to-be-installed one | |
10562 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10563 | test "$hardcode_minus_L" != no; then | |
10564 | # Linking always hardcodes the temporary library directory. | |
10565 | hardcode_action=relink | |
10566 | else | |
10567 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10568 | hardcode_action=immediate | |
10569 | fi | |
10570 | else | |
10571 | # We cannot hardcode anything, or else we can only hardcode existing | |
10572 | # directories. | |
10573 | hardcode_action=unsupported | |
10574 | fi | |
10575 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
10576 | $as_echo "$hardcode_action" >&6; } | |
10577 | ||
10578 | if test "$hardcode_action" = relink || | |
10579 | test "$inherit_rpath" = yes; then | |
10580 | # Fast installation is not supported | |
10581 | enable_fast_install=no | |
10582 | elif test "$shlibpath_overrides_runpath" = yes || | |
10583 | test "$enable_shared" = no; then | |
10584 | # Fast installation is not necessary | |
10585 | enable_fast_install=needless | |
10586 | fi | |
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | if test "x$enable_dlopen" != xyes; then | |
10594 | enable_dlopen=unknown | |
10595 | enable_dlopen_self=unknown | |
10596 | enable_dlopen_self_static=unknown | |
10597 | else | |
10598 | lt_cv_dlopen=no | |
10599 | lt_cv_dlopen_libs= | |
10600 | ||
10601 | case $host_os in | |
10602 | beos*) | |
10603 | lt_cv_dlopen="load_add_on" | |
10604 | lt_cv_dlopen_libs= | |
10605 | lt_cv_dlopen_self=yes | |
10606 | ;; | |
10607 | ||
10608 | mingw* | pw32* | cegcc*) | |
10609 | lt_cv_dlopen="LoadLibrary" | |
10610 | lt_cv_dlopen_libs= | |
10611 | ;; | |
10612 | ||
10613 | cygwin*) | |
10614 | lt_cv_dlopen="dlopen" | |
10615 | lt_cv_dlopen_libs= | |
10616 | ;; | |
10617 | ||
10618 | darwin*) | |
10619 | # if libdl is installed we need to link against it | |
10620 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10621 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10622 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10623 | $as_echo_n "(cached) " >&6 | |
10624 | else | |
10625 | ac_check_lib_save_LIBS=$LIBS | |
10626 | LIBS="-ldl $LIBS" | |
10627 | cat >conftest.$ac_ext <<_ACEOF | |
10628 | /* confdefs.h. */ | |
10629 | _ACEOF | |
10630 | cat confdefs.h >>conftest.$ac_ext | |
10631 | cat >>conftest.$ac_ext <<_ACEOF | |
10632 | /* end confdefs.h. */ | |
10633 | ||
10634 | /* Override any GCC internal prototype to avoid an error. | |
10635 | Use char because int might match the return type of a GCC | |
10636 | builtin and then its argument prototype would still apply. */ | |
10637 | #ifdef __cplusplus | |
10638 | extern "C" | |
10639 | #endif | |
10640 | char dlopen (); | |
10641 | int | |
10642 | main () | |
10643 | { | |
10644 | return dlopen (); | |
10645 | ; | |
10646 | return 0; | |
10647 | } | |
10648 | _ACEOF | |
10649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10650 | if { (ac_try="$ac_link" | |
10651 | case "(($ac_try" in | |
10652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10653 | *) ac_try_echo=$ac_try;; | |
10654 | esac | |
10655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10656 | $as_echo "$ac_try_echo") >&5 | |
10657 | (eval "$ac_link") 2>conftest.er1 | |
10658 | ac_status=$? | |
10659 | grep -v '^ *+' conftest.er1 >conftest.err | |
10660 | rm -f conftest.er1 | |
10661 | cat conftest.err >&5 | |
10662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10663 | (exit $ac_status); } && { | |
10664 | test -z "$ac_c_werror_flag" || | |
10665 | test ! -s conftest.err | |
10666 | } && test -s conftest$ac_exeext && { | |
10667 | test "$cross_compiling" = yes || | |
10668 | $as_test_x conftest$ac_exeext | |
10669 | }; then | |
10670 | ac_cv_lib_dl_dlopen=yes | |
10671 | else | |
10672 | $as_echo "$as_me: failed program was:" >&5 | |
10673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10674 | ||
10675 | ac_cv_lib_dl_dlopen=no | |
10676 | fi | |
10677 | ||
10678 | rm -rf conftest.dSYM | |
10679 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10680 | conftest$ac_exeext conftest.$ac_ext | |
10681 | LIBS=$ac_check_lib_save_LIBS | |
10682 | fi | |
10683 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10684 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10685 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
10686 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10687 | else | |
10688 | ||
10689 | lt_cv_dlopen="dyld" | |
10690 | lt_cv_dlopen_libs= | |
10691 | lt_cv_dlopen_self=yes | |
10692 | ||
10693 | fi | |
10694 | ||
10695 | ;; | |
10696 | ||
10697 | *) | |
10698 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10699 | $as_echo_n "checking for shl_load... " >&6; } | |
10700 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10701 | $as_echo_n "(cached) " >&6 | |
10702 | else | |
10703 | cat >conftest.$ac_ext <<_ACEOF | |
10704 | /* confdefs.h. */ | |
10705 | _ACEOF | |
10706 | cat confdefs.h >>conftest.$ac_ext | |
10707 | cat >>conftest.$ac_ext <<_ACEOF | |
10708 | /* end confdefs.h. */ | |
10709 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10710 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10711 | #define shl_load innocuous_shl_load | |
10712 | ||
10713 | /* System header to define __stub macros and hopefully few prototypes, | |
10714 | which can conflict with char shl_load (); below. | |
10715 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10716 | <limits.h> exists even on freestanding compilers. */ | |
10717 | ||
10718 | #ifdef __STDC__ | |
10719 | # include <limits.h> | |
10720 | #else | |
10721 | # include <assert.h> | |
10722 | #endif | |
10723 | ||
10724 | #undef shl_load | |
10725 | ||
10726 | /* Override any GCC internal prototype to avoid an error. | |
10727 | Use char because int might match the return type of a GCC | |
10728 | builtin and then its argument prototype would still apply. */ | |
10729 | #ifdef __cplusplus | |
10730 | extern "C" | |
10731 | #endif | |
10732 | char shl_load (); | |
10733 | /* The GNU C library defines this for functions which it implements | |
10734 | to always fail with ENOSYS. Some functions are actually named | |
10735 | something starting with __ and the normal name is an alias. */ | |
10736 | #if defined __stub_shl_load || defined __stub___shl_load | |
10737 | choke me | |
10738 | #endif | |
10739 | ||
10740 | int | |
10741 | main () | |
10742 | { | |
10743 | return shl_load (); | |
10744 | ; | |
10745 | return 0; | |
10746 | } | |
10747 | _ACEOF | |
10748 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10749 | if { (ac_try="$ac_link" | |
10750 | case "(($ac_try" in | |
10751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10752 | *) ac_try_echo=$ac_try;; | |
10753 | esac | |
10754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10755 | $as_echo "$ac_try_echo") >&5 | |
10756 | (eval "$ac_link") 2>conftest.er1 | |
10757 | ac_status=$? | |
10758 | grep -v '^ *+' conftest.er1 >conftest.err | |
10759 | rm -f conftest.er1 | |
10760 | cat conftest.err >&5 | |
10761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10762 | (exit $ac_status); } && { | |
10763 | test -z "$ac_c_werror_flag" || | |
10764 | test ! -s conftest.err | |
10765 | } && test -s conftest$ac_exeext && { | |
10766 | test "$cross_compiling" = yes || | |
10767 | $as_test_x conftest$ac_exeext | |
10768 | }; then | |
10769 | ac_cv_func_shl_load=yes | |
10770 | else | |
10771 | $as_echo "$as_me: failed program was:" >&5 | |
10772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10773 | ||
10774 | ac_cv_func_shl_load=no | |
10775 | fi | |
10776 | ||
10777 | rm -rf conftest.dSYM | |
10778 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10779 | conftest$ac_exeext conftest.$ac_ext | |
10780 | fi | |
10781 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10782 | $as_echo "$ac_cv_func_shl_load" >&6; } | |
10783 | if test "x$ac_cv_func_shl_load" = x""yes; then | |
10784 | lt_cv_dlopen="shl_load" | |
10785 | else | |
10786 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10787 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10788 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10789 | $as_echo_n "(cached) " >&6 | |
10790 | else | |
10791 | ac_check_lib_save_LIBS=$LIBS | |
10792 | LIBS="-ldld $LIBS" | |
10793 | cat >conftest.$ac_ext <<_ACEOF | |
10794 | /* confdefs.h. */ | |
10795 | _ACEOF | |
10796 | cat confdefs.h >>conftest.$ac_ext | |
10797 | cat >>conftest.$ac_ext <<_ACEOF | |
10798 | /* end confdefs.h. */ | |
10799 | ||
10800 | /* Override any GCC internal prototype to avoid an error. | |
10801 | Use char because int might match the return type of a GCC | |
10802 | builtin and then its argument prototype would still apply. */ | |
10803 | #ifdef __cplusplus | |
10804 | extern "C" | |
10805 | #endif | |
10806 | char shl_load (); | |
10807 | int | |
10808 | main () | |
10809 | { | |
10810 | return shl_load (); | |
10811 | ; | |
10812 | return 0; | |
10813 | } | |
10814 | _ACEOF | |
10815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10816 | if { (ac_try="$ac_link" | |
10817 | case "(($ac_try" in | |
10818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10819 | *) ac_try_echo=$ac_try;; | |
10820 | esac | |
10821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10822 | $as_echo "$ac_try_echo") >&5 | |
10823 | (eval "$ac_link") 2>conftest.er1 | |
10824 | ac_status=$? | |
10825 | grep -v '^ *+' conftest.er1 >conftest.err | |
10826 | rm -f conftest.er1 | |
10827 | cat conftest.err >&5 | |
10828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10829 | (exit $ac_status); } && { | |
10830 | test -z "$ac_c_werror_flag" || | |
10831 | test ! -s conftest.err | |
10832 | } && test -s conftest$ac_exeext && { | |
10833 | test "$cross_compiling" = yes || | |
10834 | $as_test_x conftest$ac_exeext | |
10835 | }; then | |
10836 | ac_cv_lib_dld_shl_load=yes | |
10837 | else | |
10838 | $as_echo "$as_me: failed program was:" >&5 | |
10839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10840 | ||
10841 | ac_cv_lib_dld_shl_load=no | |
10842 | fi | |
10843 | ||
10844 | rm -rf conftest.dSYM | |
10845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10846 | conftest$ac_exeext conftest.$ac_ext | |
10847 | LIBS=$ac_check_lib_save_LIBS | |
10848 | fi | |
10849 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10850 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10851 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then | |
10852 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10853 | else | |
10854 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10855 | $as_echo_n "checking for dlopen... " >&6; } | |
10856 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10857 | $as_echo_n "(cached) " >&6 | |
10858 | else | |
10859 | cat >conftest.$ac_ext <<_ACEOF | |
10860 | /* confdefs.h. */ | |
10861 | _ACEOF | |
10862 | cat confdefs.h >>conftest.$ac_ext | |
10863 | cat >>conftest.$ac_ext <<_ACEOF | |
10864 | /* end confdefs.h. */ | |
10865 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10866 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10867 | #define dlopen innocuous_dlopen | |
10868 | ||
10869 | /* System header to define __stub macros and hopefully few prototypes, | |
10870 | which can conflict with char dlopen (); below. | |
10871 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10872 | <limits.h> exists even on freestanding compilers. */ | |
10873 | ||
10874 | #ifdef __STDC__ | |
10875 | # include <limits.h> | |
10876 | #else | |
10877 | # include <assert.h> | |
10878 | #endif | |
10879 | ||
10880 | #undef dlopen | |
10881 | ||
10882 | /* Override any GCC internal prototype to avoid an error. | |
10883 | Use char because int might match the return type of a GCC | |
10884 | builtin and then its argument prototype would still apply. */ | |
10885 | #ifdef __cplusplus | |
10886 | extern "C" | |
10887 | #endif | |
10888 | char dlopen (); | |
10889 | /* The GNU C library defines this for functions which it implements | |
10890 | to always fail with ENOSYS. Some functions are actually named | |
10891 | something starting with __ and the normal name is an alias. */ | |
10892 | #if defined __stub_dlopen || defined __stub___dlopen | |
10893 | choke me | |
10894 | #endif | |
10895 | ||
10896 | int | |
10897 | main () | |
10898 | { | |
10899 | return dlopen (); | |
10900 | ; | |
10901 | return 0; | |
10902 | } | |
10903 | _ACEOF | |
10904 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10905 | if { (ac_try="$ac_link" | |
10906 | case "(($ac_try" in | |
10907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10908 | *) ac_try_echo=$ac_try;; | |
10909 | esac | |
10910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10911 | $as_echo "$ac_try_echo") >&5 | |
10912 | (eval "$ac_link") 2>conftest.er1 | |
10913 | ac_status=$? | |
10914 | grep -v '^ *+' conftest.er1 >conftest.err | |
10915 | rm -f conftest.er1 | |
10916 | cat conftest.err >&5 | |
10917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10918 | (exit $ac_status); } && { | |
10919 | test -z "$ac_c_werror_flag" || | |
10920 | test ! -s conftest.err | |
10921 | } && test -s conftest$ac_exeext && { | |
10922 | test "$cross_compiling" = yes || | |
10923 | $as_test_x conftest$ac_exeext | |
10924 | }; then | |
10925 | ac_cv_func_dlopen=yes | |
10926 | else | |
10927 | $as_echo "$as_me: failed program was:" >&5 | |
10928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10929 | ||
10930 | ac_cv_func_dlopen=no | |
10931 | fi | |
10932 | ||
10933 | rm -rf conftest.dSYM | |
10934 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10935 | conftest$ac_exeext conftest.$ac_ext | |
10936 | fi | |
10937 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10938 | $as_echo "$ac_cv_func_dlopen" >&6; } | |
10939 | if test "x$ac_cv_func_dlopen" = x""yes; then | |
10940 | lt_cv_dlopen="dlopen" | |
10941 | else | |
10942 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10943 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10944 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10945 | $as_echo_n "(cached) " >&6 | |
10946 | else | |
10947 | ac_check_lib_save_LIBS=$LIBS | |
10948 | LIBS="-ldl $LIBS" | |
10949 | cat >conftest.$ac_ext <<_ACEOF | |
10950 | /* confdefs.h. */ | |
10951 | _ACEOF | |
10952 | cat confdefs.h >>conftest.$ac_ext | |
10953 | cat >>conftest.$ac_ext <<_ACEOF | |
10954 | /* end confdefs.h. */ | |
10955 | ||
10956 | /* Override any GCC internal prototype to avoid an error. | |
10957 | Use char because int might match the return type of a GCC | |
10958 | builtin and then its argument prototype would still apply. */ | |
10959 | #ifdef __cplusplus | |
10960 | extern "C" | |
10961 | #endif | |
10962 | char dlopen (); | |
10963 | int | |
10964 | main () | |
10965 | { | |
10966 | return dlopen (); | |
10967 | ; | |
10968 | return 0; | |
10969 | } | |
10970 | _ACEOF | |
10971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10972 | if { (ac_try="$ac_link" | |
10973 | case "(($ac_try" in | |
10974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10975 | *) ac_try_echo=$ac_try;; | |
10976 | esac | |
10977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10978 | $as_echo "$ac_try_echo") >&5 | |
10979 | (eval "$ac_link") 2>conftest.er1 | |
10980 | ac_status=$? | |
10981 | grep -v '^ *+' conftest.er1 >conftest.err | |
10982 | rm -f conftest.er1 | |
10983 | cat conftest.err >&5 | |
10984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10985 | (exit $ac_status); } && { | |
10986 | test -z "$ac_c_werror_flag" || | |
10987 | test ! -s conftest.err | |
10988 | } && test -s conftest$ac_exeext && { | |
10989 | test "$cross_compiling" = yes || | |
10990 | $as_test_x conftest$ac_exeext | |
10991 | }; then | |
10992 | ac_cv_lib_dl_dlopen=yes | |
10993 | else | |
10994 | $as_echo "$as_me: failed program was:" >&5 | |
10995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10996 | ||
10997 | ac_cv_lib_dl_dlopen=no | |
10998 | fi | |
10999 | ||
11000 | rm -rf conftest.dSYM | |
11001 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11002 | conftest$ac_exeext conftest.$ac_ext | |
11003 | LIBS=$ac_check_lib_save_LIBS | |
11004 | fi | |
11005 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11006 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11007 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
11008 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11009 | else | |
11010 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
11011 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11012 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
11013 | $as_echo_n "(cached) " >&6 | |
11014 | else | |
11015 | ac_check_lib_save_LIBS=$LIBS | |
11016 | LIBS="-lsvld $LIBS" | |
11017 | cat >conftest.$ac_ext <<_ACEOF | |
11018 | /* confdefs.h. */ | |
11019 | _ACEOF | |
11020 | cat confdefs.h >>conftest.$ac_ext | |
11021 | cat >>conftest.$ac_ext <<_ACEOF | |
11022 | /* end confdefs.h. */ | |
11023 | ||
11024 | /* Override any GCC internal prototype to avoid an error. | |
11025 | Use char because int might match the return type of a GCC | |
11026 | builtin and then its argument prototype would still apply. */ | |
11027 | #ifdef __cplusplus | |
11028 | extern "C" | |
11029 | #endif | |
11030 | char dlopen (); | |
11031 | int | |
11032 | main () | |
11033 | { | |
11034 | return dlopen (); | |
11035 | ; | |
11036 | return 0; | |
11037 | } | |
11038 | _ACEOF | |
11039 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11040 | if { (ac_try="$ac_link" | |
11041 | case "(($ac_try" in | |
11042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11043 | *) ac_try_echo=$ac_try;; | |
11044 | esac | |
11045 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11046 | $as_echo "$ac_try_echo") >&5 | |
11047 | (eval "$ac_link") 2>conftest.er1 | |
11048 | ac_status=$? | |
11049 | grep -v '^ *+' conftest.er1 >conftest.err | |
11050 | rm -f conftest.er1 | |
11051 | cat conftest.err >&5 | |
11052 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11053 | (exit $ac_status); } && { | |
11054 | test -z "$ac_c_werror_flag" || | |
11055 | test ! -s conftest.err | |
11056 | } && test -s conftest$ac_exeext && { | |
11057 | test "$cross_compiling" = yes || | |
11058 | $as_test_x conftest$ac_exeext | |
11059 | }; then | |
11060 | ac_cv_lib_svld_dlopen=yes | |
11061 | else | |
11062 | $as_echo "$as_me: failed program was:" >&5 | |
11063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11064 | ||
11065 | ac_cv_lib_svld_dlopen=no | |
11066 | fi | |
11067 | ||
11068 | rm -rf conftest.dSYM | |
11069 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11070 | conftest$ac_exeext conftest.$ac_ext | |
11071 | LIBS=$ac_check_lib_save_LIBS | |
11072 | fi | |
11073 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11074 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11075 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then | |
11076 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11077 | else | |
11078 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11079 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11080 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11081 | $as_echo_n "(cached) " >&6 | |
11082 | else | |
11083 | ac_check_lib_save_LIBS=$LIBS | |
11084 | LIBS="-ldld $LIBS" | |
11085 | cat >conftest.$ac_ext <<_ACEOF | |
11086 | /* confdefs.h. */ | |
11087 | _ACEOF | |
11088 | cat confdefs.h >>conftest.$ac_ext | |
11089 | cat >>conftest.$ac_ext <<_ACEOF | |
11090 | /* end confdefs.h. */ | |
11091 | ||
11092 | /* Override any GCC internal prototype to avoid an error. | |
11093 | Use char because int might match the return type of a GCC | |
11094 | builtin and then its argument prototype would still apply. */ | |
11095 | #ifdef __cplusplus | |
11096 | extern "C" | |
11097 | #endif | |
11098 | char dld_link (); | |
11099 | int | |
11100 | main () | |
11101 | { | |
11102 | return dld_link (); | |
11103 | ; | |
11104 | return 0; | |
11105 | } | |
11106 | _ACEOF | |
11107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11108 | if { (ac_try="$ac_link" | |
11109 | case "(($ac_try" in | |
11110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11111 | *) ac_try_echo=$ac_try;; | |
11112 | esac | |
11113 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11114 | $as_echo "$ac_try_echo") >&5 | |
11115 | (eval "$ac_link") 2>conftest.er1 | |
11116 | ac_status=$? | |
11117 | grep -v '^ *+' conftest.er1 >conftest.err | |
11118 | rm -f conftest.er1 | |
11119 | cat conftest.err >&5 | |
11120 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11121 | (exit $ac_status); } && { | |
11122 | test -z "$ac_c_werror_flag" || | |
11123 | test ! -s conftest.err | |
11124 | } && test -s conftest$ac_exeext && { | |
11125 | test "$cross_compiling" = yes || | |
11126 | $as_test_x conftest$ac_exeext | |
11127 | }; then | |
11128 | ac_cv_lib_dld_dld_link=yes | |
11129 | else | |
11130 | $as_echo "$as_me: failed program was:" >&5 | |
11131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11132 | ||
11133 | ac_cv_lib_dld_dld_link=no | |
11134 | fi | |
11135 | ||
11136 | rm -rf conftest.dSYM | |
11137 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11138 | conftest$ac_exeext conftest.$ac_ext | |
11139 | LIBS=$ac_check_lib_save_LIBS | |
11140 | fi | |
11141 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11142 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11143 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then | |
11144 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11145 | fi | |
11146 | ||
11147 | ||
11148 | fi | |
11149 | ||
11150 | ||
11151 | fi | |
11152 | ||
11153 | ||
11154 | fi | |
11155 | ||
11156 | ||
11157 | fi | |
11158 | ||
11159 | ||
11160 | fi | |
11161 | ||
11162 | ;; | |
11163 | esac | |
11164 | ||
11165 | if test "x$lt_cv_dlopen" != xno; then | |
11166 | enable_dlopen=yes | |
11167 | else | |
11168 | enable_dlopen=no | |
11169 | fi | |
11170 | ||
11171 | case $lt_cv_dlopen in | |
11172 | dlopen) | |
11173 | save_CPPFLAGS="$CPPFLAGS" | |
11174 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11175 | ||
11176 | save_LDFLAGS="$LDFLAGS" | |
11177 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11178 | ||
11179 | save_LIBS="$LIBS" | |
11180 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11181 | ||
11182 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
11183 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11184 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11185 | $as_echo_n "(cached) " >&6 | |
11186 | else | |
11187 | if test "$cross_compiling" = yes; then : | |
11188 | lt_cv_dlopen_self=cross | |
11189 | else | |
11190 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11191 | lt_status=$lt_dlunknown | |
11192 | cat > conftest.$ac_ext <<_LT_EOF | |
615ab66d | 11193 | #line 11193 "configure" |
e70e591c BB |
11194 | #include "confdefs.h" |
11195 | ||
11196 | #if HAVE_DLFCN_H | |
11197 | #include <dlfcn.h> | |
11198 | #endif | |
11199 | ||
11200 | #include <stdio.h> | |
11201 | ||
11202 | #ifdef RTLD_GLOBAL | |
11203 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11204 | #else | |
11205 | # ifdef DL_GLOBAL | |
11206 | # define LT_DLGLOBAL DL_GLOBAL | |
11207 | # else | |
11208 | # define LT_DLGLOBAL 0 | |
11209 | # endif | |
11210 | #endif | |
11211 | ||
11212 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11213 | find out it does not work in some platform. */ | |
11214 | #ifndef LT_DLLAZY_OR_NOW | |
11215 | # ifdef RTLD_LAZY | |
11216 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11217 | # else | |
11218 | # ifdef DL_LAZY | |
11219 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11220 | # else | |
11221 | # ifdef RTLD_NOW | |
11222 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11223 | # else | |
11224 | # ifdef DL_NOW | |
11225 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11226 | # else | |
11227 | # define LT_DLLAZY_OR_NOW 0 | |
11228 | # endif | |
11229 | # endif | |
11230 | # endif | |
11231 | # endif | |
11232 | #endif | |
11233 | ||
11234 | void fnord() { int i=42;} | |
11235 | int main () | |
11236 | { | |
11237 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11238 | int status = $lt_dlunknown; | |
11239 | ||
11240 | if (self) | |
11241 | { | |
11242 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11243 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11244 | /* dlclose (self); */ | |
11245 | } | |
11246 | else | |
11247 | puts (dlerror ()); | |
11248 | ||
11249 | return status; | |
11250 | } | |
11251 | _LT_EOF | |
11252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11253 | (eval $ac_link) 2>&5 | |
11254 | ac_status=$? | |
11255 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11256 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11257 | (./conftest; exit; ) >&5 2>/dev/null | |
11258 | lt_status=$? | |
11259 | case x$lt_status in | |
11260 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11261 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11262 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11263 | esac | |
11264 | else : | |
11265 | # compilation failed | |
11266 | lt_cv_dlopen_self=no | |
11267 | fi | |
11268 | fi | |
11269 | rm -fr conftest* | |
11270 | ||
11271 | ||
11272 | fi | |
11273 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11274 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11275 | ||
11276 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11277 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11278 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11279 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11280 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11281 | $as_echo_n "(cached) " >&6 | |
11282 | else | |
11283 | if test "$cross_compiling" = yes; then : | |
11284 | lt_cv_dlopen_self_static=cross | |
11285 | else | |
11286 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11287 | lt_status=$lt_dlunknown | |
11288 | cat > conftest.$ac_ext <<_LT_EOF | |
615ab66d | 11289 | #line 11289 "configure" |
e70e591c BB |
11290 | #include "confdefs.h" |
11291 | ||
11292 | #if HAVE_DLFCN_H | |
11293 | #include <dlfcn.h> | |
11294 | #endif | |
11295 | ||
11296 | #include <stdio.h> | |
11297 | ||
11298 | #ifdef RTLD_GLOBAL | |
11299 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11300 | #else | |
11301 | # ifdef DL_GLOBAL | |
11302 | # define LT_DLGLOBAL DL_GLOBAL | |
11303 | # else | |
11304 | # define LT_DLGLOBAL 0 | |
11305 | # endif | |
11306 | #endif | |
11307 | ||
11308 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11309 | find out it does not work in some platform. */ | |
11310 | #ifndef LT_DLLAZY_OR_NOW | |
11311 | # ifdef RTLD_LAZY | |
11312 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11313 | # else | |
11314 | # ifdef DL_LAZY | |
11315 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11316 | # else | |
11317 | # ifdef RTLD_NOW | |
11318 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11319 | # else | |
11320 | # ifdef DL_NOW | |
11321 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11322 | # else | |
11323 | # define LT_DLLAZY_OR_NOW 0 | |
11324 | # endif | |
11325 | # endif | |
11326 | # endif | |
11327 | # endif | |
11328 | #endif | |
11329 | ||
11330 | void fnord() { int i=42;} | |
11331 | int main () | |
11332 | { | |
11333 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11334 | int status = $lt_dlunknown; | |
11335 | ||
11336 | if (self) | |
11337 | { | |
11338 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11339 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11340 | /* dlclose (self); */ | |
11341 | } | |
11342 | else | |
11343 | puts (dlerror ()); | |
11344 | ||
11345 | return status; | |
11346 | } | |
11347 | _LT_EOF | |
11348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11349 | (eval $ac_link) 2>&5 | |
11350 | ac_status=$? | |
11351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11352 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11353 | (./conftest; exit; ) >&5 2>/dev/null | |
11354 | lt_status=$? | |
11355 | case x$lt_status in | |
11356 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11357 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11358 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11359 | esac | |
11360 | else : | |
11361 | # compilation failed | |
11362 | lt_cv_dlopen_self_static=no | |
11363 | fi | |
11364 | fi | |
11365 | rm -fr conftest* | |
11366 | ||
11367 | ||
11368 | fi | |
11369 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11370 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11371 | fi | |
11372 | ||
11373 | CPPFLAGS="$save_CPPFLAGS" | |
11374 | LDFLAGS="$save_LDFLAGS" | |
11375 | LIBS="$save_LIBS" | |
11376 | ;; | |
11377 | esac | |
11378 | ||
11379 | case $lt_cv_dlopen_self in | |
11380 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11381 | *) enable_dlopen_self=unknown ;; | |
11382 | esac | |
11383 | ||
11384 | case $lt_cv_dlopen_self_static in | |
11385 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11386 | *) enable_dlopen_self_static=unknown ;; | |
11387 | esac | |
11388 | fi | |
11389 | ||
11390 | ||
11391 | ||
11392 | ||
11393 | ||
11394 | ||
11395 | ||
11396 | ||
11397 | ||
11398 | ||
11399 | ||
11400 | ||
11401 | ||
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | striplib= | |
11407 | old_striplib= | |
11408 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11409 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11410 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11411 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11412 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11413 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11414 | $as_echo "yes" >&6; } | |
11415 | else | |
11416 | # FIXME - insert some real tests, host_os isn't really good enough | |
11417 | case $host_os in | |
11418 | darwin*) | |
11419 | if test -n "$STRIP" ; then | |
11420 | striplib="$STRIP -x" | |
11421 | old_striplib="$STRIP -S" | |
11422 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11423 | $as_echo "yes" >&6; } | |
11424 | else | |
11425 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11426 | $as_echo "no" >&6; } | |
11427 | fi | |
11428 | ;; | |
11429 | *) | |
11430 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11431 | $as_echo "no" >&6; } | |
11432 | ;; | |
11433 | esac | |
11434 | fi | |
11435 | ||
11436 | ||
11437 | ||
11438 | ||
11439 | ||
11440 | ||
11441 | ||
11442 | ||
11443 | ||
11444 | ||
11445 | ||
11446 | ||
11447 | # Report which library types will actually be built | |
11448 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11449 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11450 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11451 | $as_echo "$can_build_shared" >&6; } | |
11452 | ||
11453 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
11454 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11455 | test "$can_build_shared" = "no" && enable_shared=no | |
11456 | ||
11457 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11458 | # are all built from PIC. | |
11459 | case $host_os in | |
11460 | aix3*) | |
11461 | test "$enable_shared" = yes && enable_static=no | |
11462 | if test -n "$RANLIB"; then | |
11463 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11464 | postinstall_cmds='$RANLIB $lib' | |
11465 | fi | |
11466 | ;; | |
11467 | ||
11468 | aix[4-9]*) | |
11469 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11470 | test "$enable_shared" = yes && enable_static=no | |
11471 | fi | |
11472 | ;; | |
11473 | esac | |
11474 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11475 | $as_echo "$enable_shared" >&6; } | |
11476 | ||
11477 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
11478 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11479 | # Make sure either enable_shared or enable_static is yes. | |
11480 | test "$enable_shared" = yes || enable_static=yes | |
11481 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11482 | $as_echo "$enable_static" >&6; } | |
11483 | ||
11484 | ||
11485 | ||
11486 | ||
11487 | fi | |
11488 | ac_ext=c | |
11489 | ac_cpp='$CPP $CPPFLAGS' | |
11490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11493 | ||
11494 | CC="$lt_save_CC" | |
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ac_config_commands="$ac_config_commands libtool" | |
11509 | ||
11510 | ||
11511 | ||
11512 | ||
11513 | # Only expand once: | |
11514 | ||
11515 | ||
11516 | # By default we simply use the C compiler to build assembly code. | |
11517 | ||
11518 | test "${CCAS+set}" = set || CCAS=$CC | |
11519 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
11520 | ||
11521 | ||
11522 | ||
11523 | depcc="$CCAS" am_compiler_list= | |
11524 | ||
11525 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
11526 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
11527 | if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then | |
11528 | $as_echo_n "(cached) " >&6 | |
11529 | else | |
11530 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
11531 | # We make a subdir and do the tests there. Otherwise we can end up | |
11532 | # making bogus files that we don't know about and never remove. For | |
11533 | # instance it was reported that on HP-UX the gcc test will end up | |
11534 | # making a dummy file named `D' -- because `-MD' means `put the output | |
11535 | # in D'. | |
11536 | mkdir conftest.dir | |
11537 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
11538 | # using a relative directory. | |
11539 | cp "$am_depcomp" conftest.dir | |
11540 | cd conftest.dir | |
11541 | # We will build objects and dependencies in a subdirectory because | |
11542 | # it helps to detect inapplicable dependency modes. For instance | |
11543 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
11544 | # side effect of compilation, but ICC will put the dependencies in | |
11545 | # the current directory while Tru64 will put them in the object | |
11546 | # directory. | |
11547 | mkdir sub | |
11548 | ||
11549 | am_cv_CCAS_dependencies_compiler_type=none | |
11550 | if test "$am_compiler_list" = ""; then | |
11551 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
11552 | fi | |
11553 | am__universal=false | |
11554 | ||
11555 | ||
11556 | for depmode in $am_compiler_list; do | |
11557 | # Setup a source with many dependencies, because some compilers | |
11558 | # like to wrap large dependency lists on column 80 (with \), and | |
11559 | # we should not choose a depcomp mode which is confused by this. | |
11560 | # | |
11561 | # We need to recreate these files for each test, as the compiler may | |
11562 | # overwrite some of them when testing with obscure command lines. | |
11563 | # This happens at least with the AIX C compiler. | |
11564 | : > sub/conftest.c | |
11565 | for i in 1 2 3 4 5 6; do | |
11566 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
11567 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
11568 | # Solaris 8's {/usr,}/bin/sh. | |
11569 | touch sub/conftst$i.h | |
11570 | done | |
11571 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
11572 | ||
11573 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
11574 | # mode. It turns out that the SunPro C++ compiler does not properly | |
11575 | # handle `-M -o', and we need to detect this. Also, some Intel | |
11576 | # versions had trouble with output in subdirs | |
11577 | am__obj=sub/conftest.${OBJEXT-o} | |
11578 | am__minus_obj="-o $am__obj" | |
11579 | case $depmode in | |
11580 | gcc) | |
11581 | # This depmode causes a compiler race in universal mode. | |
11582 | test "$am__universal" = false || continue | |
11583 | ;; | |
11584 | nosideeffect) | |
11585 | # after this tag, mechanisms are not by side-effect, so they'll | |
11586 | # only be used when explicitly requested | |
11587 | if test "x$enable_dependency_tracking" = xyes; then | |
11588 | continue | |
11589 | else | |
11590 | break | |
11591 | fi | |
11592 | ;; | |
11593 | msvisualcpp | msvcmsys) | |
11594 | # This compiler won't grok `-c -o', but also, the minuso test has | |
11595 | # not run yet. These depmodes are late enough in the game, and | |
11596 | # so weak that their functioning should not be impacted. | |
11597 | am__obj=conftest.${OBJEXT-o} | |
11598 | am__minus_obj= | |
11599 | ;; | |
11600 | none) break ;; | |
11601 | esac | |
11602 | if depmode=$depmode \ | |
11603 | source=sub/conftest.c object=$am__obj \ | |
11604 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
11605 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
11606 | >/dev/null 2>conftest.err && | |
11607 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
11608 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
11609 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
11610 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
11611 | # icc doesn't choke on unknown options, it will just issue warnings | |
11612 | # or remarks (even with -Werror). So we grep stderr for any message | |
11613 | # that says an option was ignored or not supported. | |
11614 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
11615 | # icc: Command line warning: ignoring option '-M'; no argument required | |
11616 | # The diagnosis changed in icc 8.0: | |
11617 | # icc: Command line remark: option '-MP' not supported | |
11618 | if (grep 'ignoring option' conftest.err || | |
11619 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
11620 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
11621 | break | |
11622 | fi | |
11623 | fi | |
11624 | done | |
11625 | ||
11626 | cd .. | |
11627 | rm -rf conftest.dir | |
11628 | else | |
11629 | am_cv_CCAS_dependencies_compiler_type=none | |
11630 | fi | |
11631 | ||
11632 | fi | |
11633 | { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
11634 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
11635 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
11636 | ||
11637 | if | |
11638 | test "x$enable_dependency_tracking" != xno \ | |
11639 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
11640 | am__fastdepCCAS_TRUE= | |
11641 | am__fastdepCCAS_FALSE='#' | |
11642 | else | |
11643 | am__fastdepCCAS_TRUE='#' | |
11644 | am__fastdepCCAS_FALSE= | |
11645 | fi | |
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | { $as_echo "$as_me:$LINENO: checking zfs author" >&5 | |
11651 | $as_echo_n "checking zfs author... " >&6; } | |
11652 | { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5 | |
11653 | $as_echo "$ZFS_META_AUTHOR" >&6; } | |
11654 | ||
11655 | { $as_echo "$as_me:$LINENO: checking zfs license" >&5 | |
11656 | $as_echo_n "checking zfs license... " >&6; } | |
11657 | { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5 | |
11658 | $as_echo "$ZFS_META_LICENSE" >&6; } | |
11659 | ||
11660 | ||
11661 | ||
11662 | RPM=rpm | |
11663 | RPMBUILD=rpmbuild | |
11664 | ||
11665 | { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5 | |
11666 | $as_echo_n "checking whether $RPM is available... " >&6; } | |
11667 | if tmp=$($RPM --version 2>/dev/null); then | |
11668 | ||
11669 | RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
11670 | HAVE_RPM=yes | |
11671 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5 | |
11672 | $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; } | |
11673 | ||
11674 | else | |
11675 | ||
11676 | HAVE_RPM=no | |
11677 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5 | |
11678 | $as_echo "$HAVE_RPM" >&6; } | |
11679 | ||
11680 | fi | |
11681 | ||
11682 | ||
11683 | { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5 | |
11684 | $as_echo_n "checking whether $RPMBUILD is available... " >&6; } | |
11685 | if tmp=$($RPMBUILD --version 2>/dev/null); then | |
11686 | ||
11687 | RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }') | |
11688 | HAVE_RPMBUILD=yes | |
11689 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5 | |
11690 | $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; } | |
11691 | ||
11692 | else | |
11693 | ||
11694 | HAVE_RPMBUILD=no | |
11695 | { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5 | |
11696 | $as_echo "$HAVE_RPMBUILD" >&6; } | |
11697 | ||
11698 | fi | |
11699 | ||
11700 | ||
11701 | ||
11702 | ||
11703 | ||
11704 | ||
11705 | ||
11706 | ||
11707 | ||
11708 | ||
11709 | ||
11710 | DPKG=dpkg | |
11711 | DPKGBUILD=dpkg-buildpackage | |
11712 | ||
11713 | { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5 | |
11714 | $as_echo_n "checking whether $DPKG is available... " >&6; } | |
11715 | if tmp=$($DPKG --version 2>/dev/null); then | |
11716 | ||
11717 | DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }') | |
11718 | HAVE_DPKG=yes | |
11719 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5 | |
11720 | $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; } | |
11721 | ||
11722 | else | |
11723 | ||
11724 | HAVE_DPKG=no | |
11725 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5 | |
11726 | $as_echo "$HAVE_DPKG" >&6; } | |
11727 | ||
11728 | fi | |
11729 | ||
11730 | ||
11731 | { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5 | |
11732 | $as_echo_n "checking whether $DPKGBUILD is available... " >&6; } | |
11733 | if tmp=$($DPKGBUILD --version 2>/dev/null); then | |
11734 | ||
11735 | DPKGBUILD_VERSION=$(echo $tmp | \ | |
11736 | $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.') | |
11737 | HAVE_DPKGBUILD=yes | |
11738 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5 | |
11739 | $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; } | |
11740 | ||
11741 | else | |
11742 | ||
11743 | HAVE_DPKGBUILD=no | |
11744 | { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5 | |
11745 | $as_echo "$HAVE_DPKGBUILD" >&6; } | |
11746 | ||
11747 | fi | |
11748 | ||
11749 | ||
11750 | ||
11751 | ||
11752 | ||
11753 | ||
11754 | ||
11755 | ||
11756 | ||
11757 | ||
11758 | ||
11759 | ALIEN=alien | |
11760 | ||
11761 | { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5 | |
11762 | $as_echo_n "checking whether $ALIEN is available... " >&6; } | |
11763 | if tmp=$($ALIEN --version 2>/dev/null); then | |
11764 | ||
11765 | ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }') | |
11766 | HAVE_ALIEN=yes | |
11767 | { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5 | |
11768 | $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; } | |
11769 | ||
11770 | else | |
11771 | ||
11772 | HAVE_ALIEN=no | |
11773 | { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5 | |
11774 | $as_echo "$HAVE_ALIEN" >&6; } | |
11775 | ||
11776 | fi | |
11777 | ||
11778 | ||
11779 | ||
11780 | ||
11781 | ||
11782 | ||
11783 | ||
11784 | { $as_echo "$as_me:$LINENO: checking linux distribution" >&5 | |
11785 | $as_echo_n "checking linux distribution... " >&6; } | |
11786 | if test -f /etc/redhat-release ; then | |
11787 | VENDOR=redhat ; | |
11788 | elif test -f /etc/fedora-release ; then | |
11789 | VENDOR=fedora ; | |
d9bfe0f5 AS |
11790 | elif test -f /etc/gentoo-release ; then |
11791 | VENDOR=gentoo ; | |
6283f55e BB |
11792 | elif test -f /etc/debian_version ; then |
11793 | VENDOR=debian ; | |
e70e591c BB |
11794 | elif test -f /etc/SuSE-release ; then |
11795 | VENDOR=sles ; | |
11796 | elif test -f /etc/slackware-version ; then | |
11797 | VENDOR=slackware ; | |
d9bfe0f5 AS |
11798 | elif test -f /etc/lsb-release ; then |
11799 | VENDOR=ubuntu ; | |
712f8bd8 BB |
11800 | elif test -f /etc/lunar.release ; then |
11801 | VENDOR=lunar ; | |
615ab66d KF |
11802 | elif test -f /etc/arch-release ; then |
11803 | VENDOR=arch ; | |
e70e591c BB |
11804 | else |
11805 | VENDOR= ; | |
11806 | fi | |
11807 | { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5 | |
11808 | $as_echo "$VENDOR" >&6; } | |
11809 | ||
11810 | ||
11811 | { $as_echo "$as_me:$LINENO: checking default package type" >&5 | |
11812 | $as_echo_n "checking default package type... " >&6; } | |
11813 | case "$VENDOR" in | |
e70e591c | 11814 | redhat) DEFAULT_PACKAGE=rpm ;; |
712f8bd8 | 11815 | fedora) DEFAULT_PACKAGE=rpm ;; |
e70e591c BB |
11816 | ubuntu) DEFAULT_PACKAGE=deb ;; |
11817 | debian) DEFAULT_PACKAGE=deb ;; | |
712f8bd8 | 11818 | sles) DEFAULT_PACKAGE=rpm ;; |
e70e591c | 11819 | slackware) DEFAULT_PACKAGE=tgz ;; |
712f8bd8 BB |
11820 | gentoo) DEFAULT_PACKAGE=tgz ;; |
11821 | lunar) DEFAULT_PACKAGE=tgz ;; | |
e70e591c BB |
11822 | *) DEFAULT_PACKAGE=rpm ;; |
11823 | esac | |
11824 | ||
11825 | { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5 | |
11826 | $as_echo "$DEFAULT_PACKAGE" >&6; } | |
11827 | ||
11828 | ||
615ab66d KF |
11829 | { $as_echo "$as_me:$LINENO: checking default init directory" >&5 |
11830 | $as_echo_n "checking default init directory... " >&6; } | |
11831 | case "$VENDOR" in | |
11832 | arch) DEFAULT_INIT_DIR=$sysconfdir/rc.d ;; | |
11833 | *) DEFAULT_INIT_DIR=$sysconfdir/init.d ;; | |
11834 | esac | |
11835 | ||
11836 | { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5 | |
11837 | $as_echo "$DEFAULT_INIT_DIR" >&6; } | |
11838 | ||
11839 | ||
01c0e61d BB |
11840 | { $as_echo "$as_me:$LINENO: checking default init script type" >&5 |
11841 | $as_echo_n "checking default init script type... " >&6; } | |
11842 | case "$VENDOR" in | |
712f8bd8 | 11843 | redhat) DEFAULT_INIT_SCRIPT=redhat ;; |
01c0e61d | 11844 | fedora) DEFAULT_INIT_SCRIPT=fedora ;; |
01c0e61d BB |
11845 | ubuntu) DEFAULT_INIT_SCRIPT=lsb ;; |
11846 | debian) DEFAULT_INIT_SCRIPT=lsb ;; | |
712f8bd8 | 11847 | sles) DEFAULT_INIT_SCRIPT=lsb ;; |
01c0e61d | 11848 | slackware) DEFAULT_INIT_SCRIPT=lsb ;; |
712f8bd8 BB |
11849 | gentoo) DEFAULT_INIT_SCRIPT=gentoo ;; |
11850 | lunar) DEFAULT_INIT_SCRIPT=lunar ;; | |
615ab66d | 11851 | arch) DEFAULT_INIT_SCRIPT=arch ;; |
01c0e61d BB |
11852 | *) DEFAULT_INIT_SCRIPT=lsb ;; |
11853 | esac | |
11854 | ||
11855 | { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5 | |
11856 | $as_echo "$DEFAULT_INIT_SCRIPT" >&6; } | |
11857 | ||
11858 | ||
e70e591c BB |
11859 | |
11860 | ||
e70e591c BB |
11861 | TARGET_ASM_DIR=asm-generic |
11862 | ||
11863 | ||
e70e591c BB |
11864 | ZFS_CONFIG=all |
11865 | ||
11866 | # Check whether --with-config was given. | |
11867 | if test "${with_config+set}" = set; then | |
11868 | withval=$with_config; ZFS_CONFIG="$withval" | |
11869 | fi | |
11870 | ||
11871 | ||
11872 | { $as_echo "$as_me:$LINENO: checking zfs config" >&5 | |
11873 | $as_echo_n "checking zfs config... " >&6; } | |
11874 | { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5 | |
11875 | $as_echo "$ZFS_CONFIG" >&6; }; | |
11876 | ||
11877 | ||
2e08aedb BB |
11878 | |
11879 | ||
11880 | { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5 | |
11881 | $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; } | |
11882 | ||
11883 | saved_flags="$CFLAGS" | |
11884 | CFLAGS="$CFLAGS -Wunused-but-set-variable" | |
11885 | ||
11886 | if test "$cross_compiling" = yes; then | |
11887 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
11888 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11889 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
11890 | See \`config.log' for more details." >&5 | |
11891 | $as_echo "$as_me: error: cannot run test program while cross compiling | |
11892 | See \`config.log' for more details." >&2;} | |
11893 | { (exit 1); exit 1; }; }; } | |
11894 | else | |
11895 | cat >conftest.$ac_ext <<_ACEOF | |
11896 | /* confdefs.h. */ | |
11897 | _ACEOF | |
11898 | cat confdefs.h >>conftest.$ac_ext | |
11899 | cat >>conftest.$ac_ext <<_ACEOF | |
11900 | /* end confdefs.h. */ | |
11901 | ||
11902 | int | |
11903 | main () | |
11904 | { | |
11905 | ||
11906 | ; | |
11907 | return 0; | |
11908 | } | |
11909 | _ACEOF | |
11910 | rm -f conftest$ac_exeext | |
11911 | if { (ac_try="$ac_link" | |
11912 | case "(($ac_try" in | |
11913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11914 | *) ac_try_echo=$ac_try;; | |
11915 | esac | |
11916 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11917 | $as_echo "$ac_try_echo") >&5 | |
11918 | (eval "$ac_link") 2>&5 | |
11919 | ac_status=$? | |
11920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11921 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11922 | { (case "(($ac_try" in | |
11923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11924 | *) ac_try_echo=$ac_try;; | |
11925 | esac | |
11926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11927 | $as_echo "$ac_try_echo") >&5 | |
11928 | (eval "$ac_try") 2>&5 | |
11929 | ac_status=$? | |
11930 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11931 | (exit $ac_status); }; }; then | |
11932 | ||
11933 | NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable | |
11934 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11935 | $as_echo "yes" >&6; } | |
11936 | ||
11937 | else | |
11938 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
11939 | $as_echo "$as_me: failed program was:" >&5 | |
11940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11941 | ||
11942 | ( exit $ac_status ) | |
11943 | ||
11944 | NO_UNUSED_BUT_SET_VARIABLE= | |
11945 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11946 | $as_echo "no" >&6; } | |
11947 | ||
11948 | fi | |
11949 | rm -rf conftest.dSYM | |
11950 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11951 | fi | |
11952 | ||
11953 | ||
11954 | ||
11955 | CFLAGS="$saved_flags" | |
11956 | ||
11957 | ||
11958 | ||
11959 | ||
e70e591c BB |
11960 | case "$ZFS_CONFIG" in |
11961 | kernel) | |
11962 | ||
11963 | ||
11964 | # Check whether --with-linux was given. | |
11965 | if test "${with_linux+set}" = set; then | |
11966 | withval=$with_linux; kernelsrc="$withval" | |
11967 | fi | |
11968 | ||
11969 | ||
11970 | ||
11971 | # Check whether --with-linux-obj was given. | |
11972 | if test "${with_linux_obj+set}" = set; then | |
11973 | withval=$with_linux_obj; kernelbuild="$withval" | |
11974 | fi | |
11975 | ||
11976 | ||
11977 | { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5 | |
11978 | $as_echo_n "checking kernel source directory... " >&6; } | |
11979 | if test -z "$kernelsrc"; then | |
1b94c25c BB |
11980 | if test -e "/lib/modules/$(uname -r)/source"; then |
11981 | headersdir="/lib/modules/$(uname -r)/source" | |
11982 | sourcelink=$(readlink -f "$headersdir") | |
11983 | elif test -e "/lib/modules/$(uname -r)/build"; then | |
11984 | headersdir="/lib/modules/$(uname -r)/build" | |
e70e591c BB |
11985 | sourcelink=$(readlink -f "$headersdir") |
11986 | else | |
11987 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
11988 | /usr/src/linux-* \ | |
11989 | 2>/dev/null | grep -v obj | tail -1) | |
11990 | fi | |
11991 | ||
11992 | if test -n "$sourcelink" && test -e ${sourcelink}; then | |
11993 | kernelsrc=`readlink -f ${sourcelink}` | |
11994 | else | |
11995 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
11996 | $as_echo "Not found" >&6; } | |
11997 | { { $as_echo "$as_me:$LINENO: error: | |
11998 | *** Please make sure the kernel devel package for your distribution | |
11999 | *** is installed then try again. If that fails you can specify the | |
12000 | *** location of the kernel source with the '--with-linux=PATH' option." >&5 | |
12001 | $as_echo "$as_me: error: | |
12002 | *** Please make sure the kernel devel package for your distribution | |
12003 | *** is installed then try again. If that fails you can specify the | |
12004 | *** location of the kernel source with the '--with-linux=PATH' option." >&2;} | |
12005 | { (exit 1); exit 1; }; } | |
12006 | fi | |
12007 | else | |
12008 | if test "$kernelsrc" = "NONE"; then | |
12009 | kernsrcver=NONE | |
12010 | fi | |
12011 | fi | |
12012 | ||
12013 | { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5 | |
12014 | $as_echo "$kernelsrc" >&6; } | |
12015 | { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5 | |
12016 | $as_echo_n "checking kernel build directory... " >&6; } | |
12017 | if test -z "$kernelbuild"; then | |
1b94c25c BB |
12018 | if test -e "/lib/modules/$(uname -r)/build"; then |
12019 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
12020 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then | |
e70e591c BB |
12021 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} |
12022 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then | |
12023 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
12024 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then | |
12025 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
12026 | else | |
12027 | kernelbuild=${kernelsrc} | |
12028 | fi | |
12029 | fi | |
12030 | { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5 | |
12031 | $as_echo "$kernelbuild" >&6; } | |
12032 | ||
12033 | { $as_echo "$as_me:$LINENO: checking kernel source version" >&5 | |
12034 | $as_echo_n "checking kernel source version... " >&6; } | |
12035 | utsrelease1=$kernelbuild/include/linux/version.h | |
12036 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
12037 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
12038 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then | |
12039 | utsrelease=linux/version.h | |
12040 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then | |
12041 | utsrelease=linux/utsrelease.h | |
12042 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then | |
12043 | utsrelease=generated/utsrelease.h | |
12044 | fi | |
12045 | ||
12046 | if test "$utsrelease"; then | |
12047 | kernsrcver=`(echo "#include <$utsrelease>"; | |
12048 | echo "kernsrcver=UTS_RELEASE") | | |
12049 | cpp -I $kernelbuild/include | | |
12050 | grep "^kernsrcver=" | cut -d \" -f 2` | |
12051 | ||
12052 | if test -z "$kernsrcver"; then | |
12053 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
12054 | $as_echo "Not found" >&6; } | |
12055 | { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5 | |
12056 | $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;} | |
12057 | { (exit 1); exit 1; }; } | |
12058 | fi | |
12059 | else | |
12060 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
12061 | $as_echo "Not found" >&6; } | |
12062 | { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5 | |
12063 | $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;} | |
12064 | { (exit 1); exit 1; }; } | |
12065 | fi | |
12066 | ||
12067 | { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5 | |
12068 | $as_echo "$kernsrcver" >&6; } | |
12069 | ||
12070 | LINUX=${kernelsrc} | |
12071 | LINUX_OBJ=${kernelbuild} | |
12072 | LINUX_VERSION=${kernsrcver} | |
12073 | ||
12074 | ||
12075 | ||
12076 | ||
12077 | ||
12078 | ||
12079 | modpost=$LINUX/scripts/Makefile.modpost | |
12080 | { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5 | |
12081 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
12082 | if test -f "$modpost"; then | |
12083 | if grep -q Modules.symvers $modpost; then | |
12084 | LINUX_SYMBOLS=Modules.symvers | |
12085 | else | |
12086 | LINUX_SYMBOLS=Module.symvers | |
12087 | fi | |
a60b1c0a BB |
12088 | |
12089 | if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then | |
12090 | { { $as_echo "$as_me:$LINENO: error: | |
12091 | *** Please make sure the kernel devel package for your distribution | |
12092 | *** is installed. If your building with a custom kernel make sure the | |
12093 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
12094 | *** option refers to the location of the kernel source." >&5 | |
12095 | $as_echo "$as_me: error: | |
12096 | *** Please make sure the kernel devel package for your distribution | |
12097 | *** is installed. If your building with a custom kernel make sure the | |
12098 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
12099 | *** option refers to the location of the kernel source." >&2;} | |
12100 | { (exit 1); exit 1; }; } | |
12101 | fi | |
e70e591c BB |
12102 | else |
12103 | LINUX_SYMBOLS=NONE | |
12104 | fi | |
12105 | { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5 | |
12106 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
12107 | ||
12108 | ||
12109 | ||
12110 | ||
12111 | ||
12112 | # Check whether --with-spl was given. | |
12113 | if test "${with_spl+set}" = set; then | |
12114 | withval=$with_spl; splsrc="$withval" | |
12115 | fi | |
12116 | ||
12117 | ||
12118 | ||
12119 | # Check whether --with-spl-obj was given. | |
12120 | if test "${with_spl_obj+set}" = set; then | |
12121 | withval=$with_spl_obj; splbuild="$withval" | |
12122 | fi | |
12123 | ||
12124 | ||
12125 | ||
12126 | { $as_echo "$as_me:$LINENO: checking spl source directory" >&5 | |
12127 | $as_echo_n "checking spl source directory... " >&6; } | |
12128 | if test -z "$splsrc"; then | |
12129 | sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \ | |
12130 | 2>/dev/null | tail -1` | |
12131 | ||
12132 | if test -z "$sourcelink" || test ! -e $sourcelink; then | |
12133 | sourcelink=../spl | |
12134 | fi | |
12135 | ||
12136 | if test -e $sourcelink; then | |
12137 | splsrc=`readlink -f ${sourcelink}` | |
12138 | else | |
12139 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
12140 | $as_echo "Not found" >&6; } | |
12141 | { { $as_echo "$as_me:$LINENO: error: | |
12142 | *** Please make sure the spl devel package for your distribution | |
12143 | *** is installed then try again. If that fails you can specify the | |
12144 | *** location of the spl source with the '--with-spl=PATH' option." >&5 | |
12145 | $as_echo "$as_me: error: | |
12146 | *** Please make sure the spl devel package for your distribution | |
12147 | *** is installed then try again. If that fails you can specify the | |
12148 | *** location of the spl source with the '--with-spl=PATH' option." >&2;} | |
12149 | { (exit 1); exit 1; }; } | |
12150 | fi | |
12151 | else | |
12152 | if test "$splsrc" = "NONE"; then | |
12153 | splbuild=NONE | |
12154 | splsrcver=NONE | |
12155 | fi | |
12156 | fi | |
12157 | ||
12158 | { $as_echo "$as_me:$LINENO: result: $splsrc" >&5 | |
12159 | $as_echo "$splsrc" >&6; } | |
12160 | { $as_echo "$as_me:$LINENO: checking spl build directory" >&5 | |
12161 | $as_echo_n "checking spl build directory... " >&6; } | |
12162 | if test -z "$splbuild"; then | |
6283f55e | 12163 | splbuild=${splsrc} |
e70e591c BB |
12164 | fi |
12165 | { $as_echo "$as_me:$LINENO: result: $splbuild" >&5 | |
12166 | $as_echo "$splbuild" >&6; } | |
12167 | ||
12168 | { $as_echo "$as_me:$LINENO: checking spl source version" >&5 | |
12169 | $as_echo_n "checking spl source version... " >&6; } | |
5e612145 BB |
12170 | if test -r $splbuild/spl_config.h && |
12171 | fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then | |
e70e591c BB |
12172 | |
12173 | splsrcver=`(echo "#include <spl_config.h>"; | |
12174 | echo "splsrcver=SPL_META_VERSION") | | |
5e612145 | 12175 | cpp -I $splbuild | |
e70e591c BB |
12176 | grep "^splsrcver=" | cut -d \" -f 2` |
12177 | fi | |
12178 | ||
12179 | if test -z "$splsrcver"; then | |
12180 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
12181 | $as_echo "Not found" >&6; } | |
12182 | { { $as_echo "$as_me:$LINENO: error: | |
12183 | *** Cannot determine the version of the spl source. | |
12184 | *** Please prepare the spl source before running this script" >&5 | |
12185 | $as_echo "$as_me: error: | |
12186 | *** Cannot determine the version of the spl source. | |
12187 | *** Please prepare the spl source before running this script" >&2;} | |
12188 | { (exit 1); exit 1; }; } | |
12189 | fi | |
12190 | ||
12191 | { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5 | |
12192 | $as_echo "$splsrcver" >&6; } | |
12193 | ||
12194 | SPL=${splsrc} | |
12195 | SPL_OBJ=${splbuild} | |
12196 | SPL_VERSION=${splsrcver} | |
12197 | ||
12198 | ||
12199 | ||
12200 | ||
12201 | ||
12202 | ||
12203 | { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5 | |
12204 | $as_echo_n "checking spl file name for module symbols... " >&6; } | |
12205 | if test -r $SPL_OBJ/Module.symvers; then | |
12206 | SPL_SYMBOLS=Module.symvers | |
12207 | elif test -r $SPL_OBJ/Modules.symvers; then | |
12208 | SPL_SYMBOLS=Modules.symvers | |
6283f55e BB |
12209 | elif test -r $SPL_OBJ/module/Module.symvers; then |
12210 | SPL_SYMBOLS=Module.symvers | |
12211 | elif test -r $SPL_OBJ/module/Modules.symvers; then | |
12212 | SPL_SYMBOLS=Modules.symvers | |
e70e591c BB |
12213 | else |
12214 | SPL_SYMBOLS=$LINUX_SYMBOLS | |
12215 | fi | |
12216 | ||
12217 | { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5 | |
12218 | $as_echo "$SPL_SYMBOLS" >&6; } | |
12219 | ||
12220 | ||
12221 | ||
12222 | ||
12223 | ||
15805c77 BB |
12224 | { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5 |
12225 | $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; } | |
12226 | ||
12227 | ||
12228 | cat confdefs.h - <<_ACEOF >conftest.c | |
12229 | /* confdefs.h. */ | |
12230 | _ACEOF | |
12231 | cat confdefs.h >>conftest.$ac_ext | |
12232 | cat >>conftest.$ac_ext <<_ACEOF | |
12233 | /* end confdefs.h. */ | |
12234 | ||
12235 | ||
0da78696 | 12236 | #include <linux/module.h> |
15805c77 BB |
12237 | |
12238 | int | |
12239 | main (void) | |
12240 | { | |
12241 | ||
12242 | #ifndef CONFIG_PREEMPT | |
12243 | #error CONFIG_PREEMPT not #defined | |
12244 | #endif | |
12245 | ||
12246 | ; | |
12247 | return 0; | |
12248 | } | |
12249 | ||
12250 | _ACEOF | |
12251 | ||
12252 | ||
12253 | rm -Rf build && mkdir -p build | |
12254 | echo "obj-m := conftest.o" >build/Makefile | |
12255 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12257 | (eval $ac_try) 2>&5 | |
12258 | ac_status=$? | |
12259 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12260 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12262 | (eval $ac_try) 2>&5 | |
12263 | ac_status=$? | |
12264 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12265 | (exit $ac_status); }; }; then | |
12266 | ||
12267 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12268 | $as_echo "yes" >&6; } | |
12269 | { { $as_echo "$as_me:$LINENO: error: | |
12270 | *** Kernel built with CONFIG_PREEMPT which is not supported. | |
12271 | ** You must rebuild your kernel without this option." >&5 | |
12272 | $as_echo "$as_me: error: | |
12273 | *** Kernel built with CONFIG_PREEMPT which is not supported. | |
12274 | ** You must rebuild your kernel without this option." >&2;} | |
12275 | { (exit 1); exit 1; }; } | |
12276 | ||
12277 | else | |
12278 | $as_echo "$as_me: failed program was:" >&5 | |
12279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12280 | ||
12281 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12282 | $as_echo "no" >&6; } | |
12283 | ||
12284 | ||
12285 | ||
12286 | ||
12287 | fi | |
12288 | ||
12289 | rm -Rf build | |
12290 | ||
12291 | ||
12292 | ||
12293 | ||
e70e591c BB |
12294 | if test "$ZFS_META_LICENSE" = CDDL; then |
12295 | { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5 | |
12296 | $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; } | |
12297 | ||
12298 | ||
12299 | cat confdefs.h - <<_ACEOF >conftest.c | |
12300 | /* confdefs.h. */ | |
12301 | _ACEOF | |
12302 | cat confdefs.h >>conftest.$ac_ext | |
12303 | cat >>conftest.$ac_ext <<_ACEOF | |
12304 | /* end confdefs.h. */ | |
12305 | ||
12306 | ||
0da78696 | 12307 | #include <linux/module.h> |
e70e591c BB |
12308 | |
12309 | int | |
12310 | main (void) | |
12311 | { | |
12312 | ||
12313 | #ifndef CONFIG_DEBUG_LOCK_ALLOC | |
12314 | #error CONFIG_DEBUG_LOCK_ALLOC not #defined | |
12315 | #endif | |
12316 | ||
12317 | ; | |
12318 | return 0; | |
12319 | } | |
12320 | ||
12321 | _ACEOF | |
12322 | ||
12323 | ||
12324 | rm -Rf build && mkdir -p build | |
12325 | echo "obj-m := conftest.o" >build/Makefile | |
12326 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12328 | (eval $ac_try) 2>&5 | |
12329 | ac_status=$? | |
12330 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12331 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12333 | (eval $ac_try) 2>&5 | |
12334 | ac_status=$? | |
12335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12336 | (exit $ac_status); }; }; then | |
12337 | ||
12338 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12339 | $as_echo "yes" >&6; } | |
12340 | { { $as_echo "$as_me:$LINENO: error: | |
12341 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is | |
12342 | *** incompatible with the CDDL license. You must rebuild | |
12343 | *** your kernel without this option." >&5 | |
12344 | $as_echo "$as_me: error: | |
12345 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is | |
12346 | *** incompatible with the CDDL license. You must rebuild | |
12347 | *** your kernel without this option." >&2;} | |
12348 | { (exit 1); exit 1; }; } | |
12349 | ||
12350 | else | |
12351 | $as_echo "$as_me: failed program was:" >&5 | |
12352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12353 | ||
12354 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12355 | $as_echo "no" >&6; } | |
12356 | ||
12357 | ||
12358 | ||
12359 | ||
12360 | fi | |
12361 | ||
12362 | rm -Rf build | |
12363 | ||
12364 | ||
12365 | ||
12366 | fi | |
12367 | ||
12368 | if test "$ZFS_META_LICENSE" = GPL; then | |
12369 | ||
12370 | cat >>confdefs.h <<\_ACEOF | |
12371 | #define HAVE_GPL_ONLY_SYMBOLS 1 | |
12372 | _ACEOF | |
12373 | ||
12374 | fi | |
12375 | ||
12376 | ||
12377 | { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5 | |
12378 | $as_echo_n "checking block device operation prototypes... " >&6; } | |
12379 | ||
12380 | ||
12381 | cat confdefs.h - <<_ACEOF >conftest.c | |
12382 | /* confdefs.h. */ | |
12383 | _ACEOF | |
12384 | cat confdefs.h >>conftest.$ac_ext | |
12385 | cat >>conftest.$ac_ext <<_ACEOF | |
12386 | /* end confdefs.h. */ | |
12387 | ||
12388 | ||
12389 | #include <linux/blkdev.h> | |
12390 | ||
12391 | int | |
12392 | main (void) | |
12393 | { | |
12394 | ||
12395 | int (*blk_open) (struct block_device *, fmode_t) = NULL; | |
12396 | int (*blk_release) (struct gendisk *, fmode_t) = NULL; | |
12397 | int (*blk_ioctl) (struct block_device *, fmode_t, | |
12398 | unsigned, unsigned long) = NULL; | |
12399 | int (*blk_compat_ioctl) (struct block_device *, fmode_t, | |
12400 | unsigned, unsigned long) = NULL; | |
12401 | struct block_device_operations blk_ops = { | |
12402 | .open = blk_open, | |
12403 | .release = blk_release, | |
12404 | .ioctl = blk_ioctl, | |
12405 | .compat_ioctl = blk_compat_ioctl, | |
12406 | }; | |
12407 | ||
12408 | blk_ops.open(NULL, 0); | |
12409 | blk_ops.release(NULL, 0); | |
12410 | blk_ops.ioctl(NULL, 0, 0, 0); | |
12411 | blk_ops.compat_ioctl(NULL, 0, 0, 0); | |
12412 | ||
12413 | ; | |
12414 | return 0; | |
12415 | } | |
12416 | ||
12417 | _ACEOF | |
12418 | ||
12419 | ||
12420 | rm -Rf build && mkdir -p build | |
12421 | echo "obj-m := conftest.o" >build/Makefile | |
12422 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12424 | (eval $ac_try) 2>&5 | |
12425 | ac_status=$? | |
12426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12427 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12429 | (eval $ac_try) 2>&5 | |
12430 | ac_status=$? | |
12431 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12432 | (exit $ac_status); }; }; then | |
12433 | ||
12434 | { $as_echo "$as_me:$LINENO: result: struct block_device" >&5 | |
12435 | $as_echo "struct block_device" >&6; } | |
12436 | ||
12437 | cat >>confdefs.h <<\_ACEOF | |
12438 | #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1 | |
12439 | _ACEOF | |
12440 | ||
12441 | ||
12442 | else | |
12443 | $as_echo "$as_me: failed program was:" >&5 | |
12444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12445 | ||
12446 | { $as_echo "$as_me:$LINENO: result: struct inode" >&5 | |
12447 | $as_echo "struct inode" >&6; } | |
12448 | ||
12449 | ||
12450 | ||
12451 | fi | |
12452 | ||
12453 | rm -Rf build | |
12454 | ||
12455 | ||
12456 | ||
12457 | { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5 | |
12458 | $as_echo_n "checking whether kernel defines fmode_t... " >&6; } | |
12459 | ||
12460 | ||
12461 | cat confdefs.h - <<_ACEOF >conftest.c | |
12462 | /* confdefs.h. */ | |
12463 | _ACEOF | |
12464 | cat confdefs.h >>conftest.$ac_ext | |
12465 | cat >>conftest.$ac_ext <<_ACEOF | |
12466 | /* end confdefs.h. */ | |
12467 | ||
12468 | ||
12469 | #include <linux/types.h> | |
12470 | ||
12471 | int | |
12472 | main (void) | |
12473 | { | |
12474 | ||
79713039 | 12475 | fmode_t *ptr __attribute__ ((unused)); |
e70e591c BB |
12476 | |
12477 | ; | |
12478 | return 0; | |
12479 | } | |
12480 | ||
12481 | _ACEOF | |
12482 | ||
12483 | ||
12484 | rm -Rf build && mkdir -p build | |
12485 | echo "obj-m := conftest.o" >build/Makefile | |
12486 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12488 | (eval $ac_try) 2>&5 | |
12489 | ac_status=$? | |
12490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12491 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12493 | (eval $ac_try) 2>&5 | |
12494 | ac_status=$? | |
12495 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12496 | (exit $ac_status); }; }; then | |
12497 | ||
12498 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12499 | $as_echo "yes" >&6; } | |
12500 | ||
12501 | cat >>confdefs.h <<\_ACEOF | |
12502 | #define HAVE_FMODE_T 1 | |
12503 | _ACEOF | |
12504 | ||
12505 | ||
12506 | else | |
12507 | $as_echo "$as_me: failed program was:" >&5 | |
12508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12509 | ||
12510 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12511 | $as_echo "no" >&6; } | |
12512 | ||
12513 | ||
12514 | ||
12515 | fi | |
12516 | ||
12517 | rm -Rf build | |
12518 | ||
12519 | ||
12520 | ||
12521 | ||
12522 | { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5 | |
12523 | $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; } | |
12524 | ||
12525 | ||
12526 | cat confdefs.h - <<_ACEOF >conftest.c | |
12527 | /* confdefs.h. */ | |
12528 | _ACEOF | |
12529 | cat confdefs.h >>conftest.$ac_ext | |
12530 | cat >>conftest.$ac_ext <<_ACEOF | |
12531 | /* end confdefs.h. */ | |
12532 | ||
12533 | ||
12534 | #include <linux/kobject.h> | |
12535 | ||
12536 | int | |
12537 | main (void) | |
12538 | { | |
12539 | ||
79713039 | 12540 | int val __attribute__ ((unused)); |
e70e591c BB |
12541 | val = KOBJ_NAME_LEN; |
12542 | ||
12543 | ; | |
12544 | return 0; | |
12545 | } | |
12546 | ||
12547 | _ACEOF | |
12548 | ||
12549 | ||
12550 | rm -Rf build && mkdir -p build | |
12551 | echo "obj-m := conftest.o" >build/Makefile | |
12552 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12554 | (eval $ac_try) 2>&5 | |
12555 | ac_status=$? | |
12556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12557 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12559 | (eval $ac_try) 2>&5 | |
12560 | ac_status=$? | |
12561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12562 | (exit $ac_status); }; }; then | |
12563 | ||
12564 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12565 | $as_echo "yes" >&6; } | |
12566 | ||
12567 | cat >>confdefs.h <<\_ACEOF | |
12568 | #define HAVE_KOBJ_NAME_LEN 1 | |
12569 | _ACEOF | |
12570 | ||
12571 | ||
12572 | else | |
12573 | $as_echo "$as_me: failed program was:" >&5 | |
12574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12575 | ||
12576 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12577 | $as_echo "no" >&6; } | |
12578 | ||
12579 | ||
12580 | ||
12581 | fi | |
12582 | ||
12583 | rm -Rf build | |
12584 | ||
12585 | ||
12586 | ||
12587 | ||
45066d1f BB |
12588 | { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5 |
12589 | $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; } | |
12590 | grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \ | |
12591 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
12592 | rc=$? | |
12593 | if test $rc -ne 0; then | |
12594 | export=0 | |
12595 | for file in fs/block_dev.c; do | |
12596 | grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null | |
12597 | rc=$? | |
12598 | if test $rc -eq 0; then | |
12599 | export=1 | |
12600 | break; | |
12601 | fi | |
12602 | done | |
12603 | if test $export -eq 0; then | |
12604 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12605 | $as_echo "no" >&6; } | |
12606 | ||
12607 | else | |
12608 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12609 | $as_echo "yes" >&6; } | |
12610 | ||
12611 | cat >>confdefs.h <<\_ACEOF | |
12612 | #define HAVE_BLKDEV_GET_BY_PATH 1 | |
12613 | _ACEOF | |
12614 | ||
12615 | fi | |
12616 | else | |
12617 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12618 | $as_echo "yes" >&6; } | |
12619 | ||
12620 | cat >>confdefs.h <<\_ACEOF | |
12621 | #define HAVE_BLKDEV_GET_BY_PATH 1 | |
12622 | _ACEOF | |
12623 | ||
12624 | fi | |
12625 | ||
12626 | ||
12627 | ||
e70e591c BB |
12628 | { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5 |
12629 | $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; } | |
12630 | grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \ | |
12631 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
12632 | rc=$? | |
12633 | if test $rc -ne 0; then | |
12634 | export=0 | |
12635 | for file in fs/block_dev.c; do | |
12636 | grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null | |
12637 | rc=$? | |
12638 | if test $rc -eq 0; then | |
12639 | export=1 | |
12640 | break; | |
12641 | fi | |
12642 | done | |
12643 | if test $export -eq 0; then | |
12644 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12645 | $as_echo "no" >&6; } | |
12646 | ||
12647 | else | |
12648 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12649 | $as_echo "yes" >&6; } | |
12650 | ||
12651 | cat >>confdefs.h <<\_ACEOF | |
12652 | #define HAVE_OPEN_BDEV_EXCLUSIVE 1 | |
12653 | _ACEOF | |
12654 | ||
12655 | fi | |
12656 | else | |
12657 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12658 | $as_echo "yes" >&6; } | |
12659 | ||
12660 | cat >>confdefs.h <<\_ACEOF | |
12661 | #define HAVE_OPEN_BDEV_EXCLUSIVE 1 | |
12662 | _ACEOF | |
12663 | ||
12664 | fi | |
12665 | ||
12666 | ||
12667 | ||
12668 | { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5 | |
12669 | $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; } | |
12670 | ||
12671 | ||
12672 | cat confdefs.h - <<_ACEOF >conftest.c | |
12673 | /* confdefs.h. */ | |
12674 | _ACEOF | |
12675 | cat confdefs.h >>conftest.$ac_ext | |
12676 | cat >>conftest.$ac_ext <<_ACEOF | |
12677 | /* end confdefs.h. */ | |
12678 | ||
12679 | ||
12680 | #include <linux/buffer_head.h> | |
12681 | ||
12682 | int | |
12683 | main (void) | |
12684 | { | |
12685 | ||
79713039 | 12686 | struct block_device *bdev = NULL; |
e70e591c BB |
12687 | invalidate_bdev(bdev); |
12688 | ||
12689 | ; | |
12690 | return 0; | |
12691 | } | |
12692 | ||
12693 | _ACEOF | |
12694 | ||
12695 | ||
12696 | rm -Rf build && mkdir -p build | |
12697 | echo "obj-m := conftest.o" >build/Makefile | |
12698 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12700 | (eval $ac_try) 2>&5 | |
12701 | ac_status=$? | |
12702 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12703 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12705 | (eval $ac_try) 2>&5 | |
12706 | ac_status=$? | |
12707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12708 | (exit $ac_status); }; }; then | |
12709 | ||
12710 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12711 | $as_echo "yes" >&6; } | |
12712 | ||
12713 | cat >>confdefs.h <<\_ACEOF | |
12714 | #define HAVE_1ARG_INVALIDATE_BDEV 1 | |
12715 | _ACEOF | |
12716 | ||
12717 | ||
12718 | else | |
12719 | $as_echo "$as_me: failed program was:" >&5 | |
12720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12721 | ||
12722 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12723 | $as_echo "no" >&6; } | |
12724 | ||
12725 | ||
12726 | ||
12727 | fi | |
12728 | ||
12729 | rm -Rf build | |
12730 | ||
12731 | ||
12732 | ||
12733 | ||
12734 | { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5 | |
12735 | $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; } | |
12736 | ||
12737 | ||
12738 | cat confdefs.h - <<_ACEOF >conftest.c | |
12739 | /* confdefs.h. */ | |
12740 | _ACEOF | |
12741 | cat confdefs.h >>conftest.$ac_ext | |
12742 | cat >>conftest.$ac_ext <<_ACEOF | |
12743 | /* end confdefs.h. */ | |
12744 | ||
12745 | ||
12746 | #include <linux/blkdev.h> | |
12747 | ||
12748 | int | |
12749 | main (void) | |
12750 | { | |
12751 | ||
12752 | struct block_device *bdev = NULL; | |
12753 | bdev_logical_block_size(bdev); | |
12754 | ||
12755 | ; | |
12756 | return 0; | |
12757 | } | |
12758 | ||
12759 | _ACEOF | |
12760 | ||
12761 | ||
12762 | rm -Rf build && mkdir -p build | |
12763 | echo "obj-m := conftest.o" >build/Makefile | |
12764 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12766 | (eval $ac_try) 2>&5 | |
12767 | ac_status=$? | |
12768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12769 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12771 | (eval $ac_try) 2>&5 | |
12772 | ac_status=$? | |
12773 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12774 | (exit $ac_status); }; }; then | |
12775 | ||
12776 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12777 | $as_echo "yes" >&6; } | |
12778 | ||
12779 | cat >>confdefs.h <<\_ACEOF | |
12780 | #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1 | |
12781 | _ACEOF | |
12782 | ||
12783 | ||
12784 | else | |
12785 | $as_echo "$as_me: failed program was:" >&5 | |
12786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12787 | ||
12788 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12789 | $as_echo "no" >&6; } | |
12790 | ||
12791 | ||
12792 | ||
12793 | fi | |
12794 | ||
12795 | rm -Rf build | |
12796 | ||
12797 | ||
12798 | ||
12799 | ||
12800 | { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5 | |
12801 | $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; } | |
12802 | EXTRA_KCFLAGS="-Werror" | |
12803 | ||
12804 | ||
12805 | cat confdefs.h - <<_ACEOF >conftest.c | |
12806 | /* confdefs.h. */ | |
12807 | _ACEOF | |
12808 | cat confdefs.h >>conftest.$ac_ext | |
12809 | cat >>conftest.$ac_ext <<_ACEOF | |
12810 | /* end confdefs.h. */ | |
12811 | ||
12812 | ||
12813 | #include <linux/bio.h> | |
12814 | ||
12815 | int | |
12816 | main (void) | |
12817 | { | |
12818 | ||
12819 | struct bio bio; | |
12820 | (void)bio_empty_barrier(&bio); | |
12821 | ||
12822 | ; | |
12823 | return 0; | |
12824 | } | |
12825 | ||
12826 | _ACEOF | |
12827 | ||
12828 | ||
12829 | rm -Rf build && mkdir -p build | |
12830 | echo "obj-m := conftest.o" >build/Makefile | |
12831 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12833 | (eval $ac_try) 2>&5 | |
12834 | ac_status=$? | |
12835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12836 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12838 | (eval $ac_try) 2>&5 | |
12839 | ac_status=$? | |
12840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12841 | (exit $ac_status); }; }; then | |
12842 | ||
12843 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12844 | $as_echo "yes" >&6; } | |
12845 | ||
12846 | cat >>confdefs.h <<\_ACEOF | |
12847 | #define HAVE_BIO_EMPTY_BARRIER 1 | |
12848 | _ACEOF | |
12849 | ||
12850 | ||
12851 | else | |
12852 | $as_echo "$as_me: failed program was:" >&5 | |
12853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12854 | ||
12855 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12856 | $as_echo "no" >&6; } | |
12857 | ||
12858 | ||
12859 | ||
12860 | fi | |
12861 | ||
12862 | rm -Rf build | |
12863 | ||
12864 | ||
12865 | ||
12866 | ||
f4af6bb7 BB |
12867 | { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5 |
12868 | $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; } | |
12869 | ||
12870 | ||
12871 | cat confdefs.h - <<_ACEOF >conftest.c | |
12872 | /* confdefs.h. */ | |
12873 | _ACEOF | |
12874 | cat confdefs.h >>conftest.$ac_ext | |
12875 | cat >>conftest.$ac_ext <<_ACEOF | |
12876 | /* end confdefs.h. */ | |
12877 | ||
12878 | ||
12879 | #include <linux/bio.h> | |
12880 | ||
12881 | int | |
12882 | main (void) | |
12883 | { | |
12884 | ||
79713039 | 12885 | int flags __attribute__ ((unused)); |
f4af6bb7 BB |
12886 | flags = (1 << BIO_RW_FAILFAST); |
12887 | ||
12888 | ; | |
12889 | return 0; | |
12890 | } | |
12891 | ||
12892 | _ACEOF | |
12893 | ||
12894 | ||
12895 | rm -Rf build && mkdir -p build | |
12896 | echo "obj-m := conftest.o" >build/Makefile | |
12897 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12899 | (eval $ac_try) 2>&5 | |
12900 | ac_status=$? | |
12901 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12902 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12904 | (eval $ac_try) 2>&5 | |
12905 | ac_status=$? | |
12906 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12907 | (exit $ac_status); }; }; then | |
12908 | ||
12909 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12910 | $as_echo "yes" >&6; } | |
12911 | ||
12912 | cat >>confdefs.h <<\_ACEOF | |
12913 | #define HAVE_BIO_RW_FAILFAST 1 | |
12914 | _ACEOF | |
12915 | ||
12916 | ||
12917 | else | |
12918 | $as_echo "$as_me: failed program was:" >&5 | |
12919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12920 | ||
12921 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12922 | $as_echo "no" >&6; } | |
12923 | ||
12924 | ||
12925 | ||
12926 | fi | |
12927 | ||
12928 | rm -Rf build | |
12929 | ||
12930 | ||
12931 | ||
12932 | ||
2959d94a BB |
12933 | { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5 |
12934 | $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; } | |
12935 | ||
12936 | ||
12937 | cat confdefs.h - <<_ACEOF >conftest.c | |
12938 | /* confdefs.h. */ | |
12939 | _ACEOF | |
12940 | cat confdefs.h >>conftest.$ac_ext | |
12941 | cat >>conftest.$ac_ext <<_ACEOF | |
12942 | /* end confdefs.h. */ | |
12943 | ||
12944 | ||
12945 | #include <linux/bio.h> | |
12946 | ||
12947 | int | |
12948 | main (void) | |
12949 | { | |
12950 | ||
79713039 | 12951 | int flags __attribute__ ((unused)); |
2959d94a BB |
12952 | flags = ((1 << BIO_RW_FAILFAST_DEV) | |
12953 | (1 << BIO_RW_FAILFAST_TRANSPORT) | | |
12954 | (1 << BIO_RW_FAILFAST_DRIVER)); | |
12955 | ||
12956 | ; | |
12957 | return 0; | |
12958 | } | |
12959 | ||
12960 | _ACEOF | |
12961 | ||
12962 | ||
12963 | rm -Rf build && mkdir -p build | |
12964 | echo "obj-m := conftest.o" >build/Makefile | |
12965 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
12966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12967 | (eval $ac_try) 2>&5 | |
12968 | ac_status=$? | |
12969 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12970 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
12971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12972 | (eval $ac_try) 2>&5 | |
12973 | ac_status=$? | |
12974 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12975 | (exit $ac_status); }; }; then | |
12976 | ||
12977 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12978 | $as_echo "yes" >&6; } | |
12979 | ||
12980 | cat >>confdefs.h <<\_ACEOF | |
f4af6bb7 BB |
12981 | #define HAVE_BIO_RW_FAILFAST_DTD 1 |
12982 | _ACEOF | |
12983 | ||
12984 | ||
12985 | else | |
12986 | $as_echo "$as_me: failed program was:" >&5 | |
12987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12988 | ||
12989 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
12990 | $as_echo "no" >&6; } | |
12991 | ||
12992 | ||
12993 | ||
12994 | fi | |
12995 | ||
12996 | rm -Rf build | |
12997 | ||
12998 | ||
12999 | ||
13000 | ||
13001 | { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5 | |
13002 | $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; } | |
13003 | ||
13004 | ||
13005 | cat confdefs.h - <<_ACEOF >conftest.c | |
13006 | /* confdefs.h. */ | |
13007 | _ACEOF | |
13008 | cat confdefs.h >>conftest.$ac_ext | |
13009 | cat >>conftest.$ac_ext <<_ACEOF | |
13010 | /* end confdefs.h. */ | |
13011 | ||
13012 | ||
13013 | #include <linux/bio.h> | |
13014 | ||
13015 | int | |
13016 | main (void) | |
13017 | { | |
13018 | ||
79713039 | 13019 | int flags __attribute__ ((unused)); |
f4af6bb7 BB |
13020 | flags = REQ_FAILFAST_MASK; |
13021 | ||
13022 | ; | |
13023 | return 0; | |
13024 | } | |
13025 | ||
13026 | _ACEOF | |
13027 | ||
13028 | ||
13029 | rm -Rf build && mkdir -p build | |
13030 | echo "obj-m := conftest.o" >build/Makefile | |
13031 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13033 | (eval $ac_try) 2>&5 | |
13034 | ac_status=$? | |
13035 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13036 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13038 | (eval $ac_try) 2>&5 | |
13039 | ac_status=$? | |
13040 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13041 | (exit $ac_status); }; }; then | |
13042 | ||
13043 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13044 | $as_echo "yes" >&6; } | |
13045 | ||
13046 | cat >>confdefs.h <<\_ACEOF | |
13047 | #define HAVE_BIO_REQ_FAILFAST_MASK 1 | |
2959d94a BB |
13048 | _ACEOF |
13049 | ||
13050 | ||
13051 | else | |
13052 | $as_echo "$as_me: failed program was:" >&5 | |
13053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13054 | ||
13055 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13056 | $as_echo "no" >&6; } | |
13057 | ||
13058 | ||
13059 | ||
13060 | fi | |
13061 | ||
13062 | rm -Rf build | |
13063 | ||
13064 | ||
13065 | ||
13066 | ||
e70e591c BB |
13067 | { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5 |
13068 | $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; } | |
13069 | tmp_flags="$EXTRA_KCFLAGS" | |
13070 | EXTRA_KCFLAGS="-Werror" | |
13071 | ||
13072 | ||
13073 | cat confdefs.h - <<_ACEOF >conftest.c | |
13074 | /* confdefs.h. */ | |
13075 | _ACEOF | |
13076 | cat confdefs.h >>conftest.$ac_ext | |
13077 | cat >>conftest.$ac_ext <<_ACEOF | |
13078 | /* end confdefs.h. */ | |
13079 | ||
13080 | ||
13081 | #include <linux/bio.h> | |
13082 | ||
13083 | int | |
13084 | main (void) | |
13085 | { | |
13086 | ||
13087 | void (*wanted_end_io)(struct bio *, int) = NULL; | |
79713039 | 13088 | bio_end_io_t *local_end_io __attribute__ ((unused)); |
e70e591c BB |
13089 | |
13090 | local_end_io = wanted_end_io; | |
13091 | ||
13092 | ; | |
13093 | return 0; | |
13094 | } | |
13095 | ||
13096 | _ACEOF | |
13097 | ||
13098 | ||
13099 | rm -Rf build && mkdir -p build | |
13100 | echo "obj-m := conftest.o" >build/Makefile | |
13101 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13103 | (eval $ac_try) 2>&5 | |
13104 | ac_status=$? | |
13105 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13106 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13108 | (eval $ac_try) 2>&5 | |
13109 | ac_status=$? | |
13110 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13111 | (exit $ac_status); }; }; then | |
13112 | ||
13113 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13114 | $as_echo "yes" >&6; } | |
13115 | ||
13116 | cat >>confdefs.h <<\_ACEOF | |
13117 | #define HAVE_2ARGS_BIO_END_IO_T 1 | |
13118 | _ACEOF | |
13119 | ||
13120 | ||
13121 | else | |
13122 | $as_echo "$as_me: failed program was:" >&5 | |
13123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13124 | ||
13125 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13126 | $as_echo "no" >&6; } | |
13127 | ||
13128 | ||
13129 | ||
13130 | fi | |
13131 | ||
13132 | rm -Rf build | |
13133 | ||
13134 | ||
13135 | EXTRA_KCFLAGS="$tmp_flags" | |
13136 | ||
13137 | ||
675de5aa BB |
13138 | { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5 |
13139 | $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; } | |
13140 | ||
13141 | ||
13142 | cat confdefs.h - <<_ACEOF >conftest.c | |
13143 | /* confdefs.h. */ | |
13144 | _ACEOF | |
13145 | cat confdefs.h >>conftest.$ac_ext | |
13146 | cat >>conftest.$ac_ext <<_ACEOF | |
13147 | /* end confdefs.h. */ | |
13148 | ||
13149 | ||
13150 | #include <linux/bio.h> | |
13151 | ||
13152 | int | |
13153 | main (void) | |
13154 | { | |
13155 | ||
79713039 | 13156 | int flags __attribute__ ((unused)); |
675de5aa BB |
13157 | flags = BIO_RW_SYNC; |
13158 | ||
13159 | ; | |
13160 | return 0; | |
13161 | } | |
13162 | ||
13163 | _ACEOF | |
13164 | ||
13165 | ||
13166 | rm -Rf build && mkdir -p build | |
13167 | echo "obj-m := conftest.o" >build/Makefile | |
13168 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13170 | (eval $ac_try) 2>&5 | |
13171 | ac_status=$? | |
13172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13173 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13175 | (eval $ac_try) 2>&5 | |
13176 | ac_status=$? | |
13177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13178 | (exit $ac_status); }; }; then | |
13179 | ||
13180 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13181 | $as_echo "yes" >&6; } | |
13182 | ||
13183 | cat >>confdefs.h <<\_ACEOF | |
13184 | #define HAVE_BIO_RW_SYNC 1 | |
13185 | _ACEOF | |
13186 | ||
13187 | ||
13188 | else | |
13189 | $as_echo "$as_me: failed program was:" >&5 | |
13190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13191 | ||
13192 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13193 | $as_echo "no" >&6; } | |
13194 | ||
13195 | ||
13196 | ||
13197 | fi | |
13198 | ||
13199 | rm -Rf build | |
13200 | ||
13201 | ||
13202 | ||
13203 | ||
e70e591c BB |
13204 | { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5 |
13205 | $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; } | |
13206 | ||
13207 | ||
13208 | cat confdefs.h - <<_ACEOF >conftest.c | |
13209 | /* confdefs.h. */ | |
13210 | _ACEOF | |
13211 | cat confdefs.h >>conftest.$ac_ext | |
13212 | cat >>conftest.$ac_ext <<_ACEOF | |
13213 | /* end confdefs.h. */ | |
13214 | ||
13215 | ||
13216 | #include <linux/bio.h> | |
13217 | ||
13218 | int | |
13219 | main (void) | |
13220 | { | |
13221 | ||
79713039 | 13222 | int flags __attribute__ ((unused)); |
e70e591c BB |
13223 | flags = BIO_RW_SYNCIO; |
13224 | ||
13225 | ; | |
13226 | return 0; | |
13227 | } | |
13228 | ||
13229 | _ACEOF | |
13230 | ||
13231 | ||
13232 | rm -Rf build && mkdir -p build | |
13233 | echo "obj-m := conftest.o" >build/Makefile | |
13234 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13236 | (eval $ac_try) 2>&5 | |
13237 | ac_status=$? | |
13238 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13239 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13241 | (eval $ac_try) 2>&5 | |
13242 | ac_status=$? | |
13243 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13244 | (exit $ac_status); }; }; then | |
13245 | ||
13246 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13247 | $as_echo "yes" >&6; } | |
13248 | ||
13249 | cat >>confdefs.h <<\_ACEOF | |
13250 | #define HAVE_BIO_RW_SYNCIO 1 | |
13251 | _ACEOF | |
13252 | ||
13253 | ||
13254 | else | |
13255 | $as_echo "$as_me: failed program was:" >&5 | |
13256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13257 | ||
13258 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13259 | $as_echo "no" >&6; } | |
13260 | ||
13261 | ||
13262 | ||
13263 | fi | |
13264 | ||
13265 | rm -Rf build | |
13266 | ||
13267 | ||
13268 | ||
13269 | ||
675de5aa BB |
13270 | { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5 |
13271 | $as_echo_n "checking whether REQ_SYNC is defined... " >&6; } | |
13272 | ||
13273 | ||
13274 | cat confdefs.h - <<_ACEOF >conftest.c | |
13275 | /* confdefs.h. */ | |
13276 | _ACEOF | |
13277 | cat confdefs.h >>conftest.$ac_ext | |
13278 | cat >>conftest.$ac_ext <<_ACEOF | |
13279 | /* end confdefs.h. */ | |
13280 | ||
13281 | ||
13282 | #include <linux/bio.h> | |
13283 | ||
13284 | int | |
13285 | main (void) | |
13286 | { | |
13287 | ||
79713039 | 13288 | int flags __attribute__ ((unused)); |
675de5aa BB |
13289 | flags = REQ_SYNC; |
13290 | ||
13291 | ; | |
13292 | return 0; | |
13293 | } | |
13294 | ||
13295 | _ACEOF | |
13296 | ||
13297 | ||
13298 | rm -Rf build && mkdir -p build | |
13299 | echo "obj-m := conftest.o" >build/Makefile | |
13300 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13302 | (eval $ac_try) 2>&5 | |
13303 | ac_status=$? | |
13304 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13305 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13307 | (eval $ac_try) 2>&5 | |
13308 | ac_status=$? | |
13309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13310 | (exit $ac_status); }; }; then | |
13311 | ||
13312 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13313 | $as_echo "yes" >&6; } | |
13314 | ||
13315 | cat >>confdefs.h <<\_ACEOF | |
13316 | #define HAVE_REQ_SYNC 1 | |
13317 | _ACEOF | |
13318 | ||
13319 | ||
13320 | else | |
13321 | $as_echo "$as_me: failed program was:" >&5 | |
13322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13323 | ||
13324 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13325 | $as_echo "no" >&6; } | |
13326 | ||
13327 | ||
13328 | ||
13329 | fi | |
13330 | ||
13331 | rm -Rf build | |
13332 | ||
13333 | ||
13334 | ||
13335 | ||
e70e591c BB |
13336 | { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5 |
13337 | $as_echo_n "checking whether blk_end_request() is available... " >&6; } | |
13338 | ||
13339 | ||
13340 | cat confdefs.h - <<_ACEOF >conftest.c | |
13341 | /* confdefs.h. */ | |
13342 | _ACEOF | |
13343 | cat confdefs.h >>conftest.$ac_ext | |
13344 | cat >>conftest.$ac_ext <<_ACEOF | |
13345 | /* end confdefs.h. */ | |
13346 | ||
13347 | ||
13348 | #include <linux/blkdev.h> | |
13349 | ||
13350 | int | |
13351 | main (void) | |
13352 | { | |
13353 | ||
13354 | struct request *req = NULL; | |
13355 | (void) blk_end_request(req, 0, 0); | |
13356 | ||
13357 | ; | |
13358 | return 0; | |
13359 | } | |
13360 | ||
13361 | _ACEOF | |
13362 | ||
13363 | ||
13364 | rm -Rf build && mkdir -p build | |
13365 | echo "obj-m := conftest.o" >build/Makefile | |
13366 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13368 | (eval $ac_try) 2>&5 | |
13369 | ac_status=$? | |
13370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13371 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13373 | (eval $ac_try) 2>&5 | |
13374 | ac_status=$? | |
13375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13376 | (exit $ac_status); }; }; then | |
13377 | ||
13378 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13379 | $as_echo "yes" >&6; } | |
13380 | ||
13381 | cat >>confdefs.h <<\_ACEOF | |
13382 | #define HAVE_BLK_END_REQUEST 1 | |
13383 | _ACEOF | |
13384 | ||
13385 | ||
13386 | else | |
13387 | $as_echo "$as_me: failed program was:" >&5 | |
13388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13389 | ||
13390 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13391 | $as_echo "no" >&6; } | |
13392 | ||
13393 | ||
13394 | ||
13395 | fi | |
13396 | ||
13397 | rm -Rf build | |
13398 | ||
13399 | ||
13400 | ||
13401 | { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5 | |
13402 | $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; } | |
13403 | ||
13404 | ||
13405 | cat confdefs.h - <<_ACEOF >conftest.c | |
13406 | /* confdefs.h. */ | |
13407 | _ACEOF | |
13408 | cat confdefs.h >>conftest.$ac_ext | |
13409 | cat >>conftest.$ac_ext <<_ACEOF | |
13410 | /* end confdefs.h. */ | |
13411 | ||
13412 | ||
13413 | #include <linux/module.h> | |
13414 | #include <linux/blkdev.h> | |
13415 | ||
13416 | MODULE_LICENSE("CDDL"); | |
13417 | ||
13418 | int | |
13419 | main (void) | |
13420 | { | |
13421 | ||
13422 | struct request *req = NULL; | |
13423 | (void) blk_end_request(req, 0, 0); | |
13424 | ||
13425 | ; | |
13426 | return 0; | |
13427 | } | |
13428 | ||
13429 | _ACEOF | |
13430 | ||
13431 | ||
13432 | rm -Rf build && mkdir -p build | |
13433 | echo "obj-m := conftest.o" >build/Makefile | |
13434 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13436 | (eval $ac_try) 2>&5 | |
13437 | ac_status=$? | |
13438 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13439 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13441 | (eval $ac_try) 2>&5 | |
13442 | ac_status=$? | |
13443 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13444 | (exit $ac_status); }; }; then | |
13445 | ||
13446 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13447 | $as_echo "no" >&6; } | |
13448 | ||
13449 | else | |
13450 | $as_echo "$as_me: failed program was:" >&5 | |
13451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13452 | ||
13453 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13454 | $as_echo "yes" >&6; } | |
13455 | ||
13456 | cat >>confdefs.h <<\_ACEOF | |
13457 | #define HAVE_BLK_END_REQUEST_GPL_ONLY 1 | |
13458 | _ACEOF | |
13459 | ||
13460 | ||
13461 | ||
13462 | ||
13463 | fi | |
13464 | ||
13465 | rm -Rf build | |
13466 | ||
13467 | ||
13468 | ||
13469 | ||
13470 | { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5 | |
13471 | $as_echo_n "checking whether blk_fetch_request() is available... " >&6; } | |
13472 | ||
13473 | ||
13474 | cat confdefs.h - <<_ACEOF >conftest.c | |
13475 | /* confdefs.h. */ | |
13476 | _ACEOF | |
13477 | cat confdefs.h >>conftest.$ac_ext | |
13478 | cat >>conftest.$ac_ext <<_ACEOF | |
13479 | /* end confdefs.h. */ | |
13480 | ||
13481 | ||
13482 | #include <linux/blkdev.h> | |
13483 | ||
13484 | int | |
13485 | main (void) | |
13486 | { | |
13487 | ||
13488 | struct request_queue *q = NULL; | |
13489 | (void) blk_fetch_request(q); | |
13490 | ||
13491 | ; | |
13492 | return 0; | |
13493 | } | |
13494 | ||
13495 | _ACEOF | |
13496 | ||
13497 | ||
13498 | rm -Rf build && mkdir -p build | |
13499 | echo "obj-m := conftest.o" >build/Makefile | |
13500 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13502 | (eval $ac_try) 2>&5 | |
13503 | ac_status=$? | |
13504 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13505 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13507 | (eval $ac_try) 2>&5 | |
13508 | ac_status=$? | |
13509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13510 | (exit $ac_status); }; }; then | |
13511 | ||
13512 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13513 | $as_echo "yes" >&6; } | |
13514 | ||
13515 | cat >>confdefs.h <<\_ACEOF | |
13516 | #define HAVE_BLK_FETCH_REQUEST 1 | |
13517 | _ACEOF | |
13518 | ||
13519 | ||
13520 | else | |
13521 | $as_echo "$as_me: failed program was:" >&5 | |
13522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13523 | ||
13524 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13525 | $as_echo "no" >&6; } | |
13526 | ||
13527 | ||
13528 | ||
13529 | fi | |
13530 | ||
13531 | rm -Rf build | |
13532 | ||
13533 | ||
13534 | ||
13535 | ||
13536 | { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5 | |
13537 | $as_echo_n "checking whether blk_requeue_request() is available... " >&6; } | |
13538 | ||
13539 | ||
13540 | cat confdefs.h - <<_ACEOF >conftest.c | |
13541 | /* confdefs.h. */ | |
13542 | _ACEOF | |
13543 | cat confdefs.h >>conftest.$ac_ext | |
13544 | cat >>conftest.$ac_ext <<_ACEOF | |
13545 | /* end confdefs.h. */ | |
13546 | ||
13547 | ||
13548 | #include <linux/blkdev.h> | |
13549 | ||
13550 | int | |
13551 | main (void) | |
13552 | { | |
13553 | ||
13554 | struct request_queue *q = NULL; | |
13555 | struct request *req = NULL; | |
13556 | blk_requeue_request(q, req); | |
13557 | ||
13558 | ; | |
13559 | return 0; | |
13560 | } | |
13561 | ||
13562 | _ACEOF | |
13563 | ||
13564 | ||
13565 | rm -Rf build && mkdir -p build | |
13566 | echo "obj-m := conftest.o" >build/Makefile | |
13567 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13569 | (eval $ac_try) 2>&5 | |
13570 | ac_status=$? | |
13571 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13572 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13574 | (eval $ac_try) 2>&5 | |
13575 | ac_status=$? | |
13576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13577 | (exit $ac_status); }; }; then | |
13578 | ||
13579 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13580 | $as_echo "yes" >&6; } | |
13581 | ||
13582 | cat >>confdefs.h <<\_ACEOF | |
13583 | #define HAVE_BLK_REQUEUE_REQUEST 1 | |
13584 | _ACEOF | |
13585 | ||
13586 | ||
13587 | else | |
13588 | $as_echo "$as_me: failed program was:" >&5 | |
13589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13590 | ||
13591 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13592 | $as_echo "no" >&6; } | |
13593 | ||
13594 | ||
13595 | ||
13596 | fi | |
13597 | ||
13598 | rm -Rf build | |
13599 | ||
13600 | ||
13601 | ||
13602 | ||
13603 | { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5 | |
13604 | $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; } | |
13605 | ||
13606 | ||
13607 | cat confdefs.h - <<_ACEOF >conftest.c | |
13608 | /* confdefs.h. */ | |
13609 | _ACEOF | |
13610 | cat confdefs.h >>conftest.$ac_ext | |
13611 | cat >>conftest.$ac_ext <<_ACEOF | |
13612 | /* end confdefs.h. */ | |
13613 | ||
13614 | ||
13615 | #include <linux/blkdev.h> | |
13616 | ||
13617 | int | |
13618 | main (void) | |
13619 | { | |
13620 | ||
13621 | struct request *req = NULL; | |
13622 | (void) blk_rq_bytes(req); | |
13623 | ||
13624 | ; | |
13625 | return 0; | |
13626 | } | |
13627 | ||
13628 | _ACEOF | |
13629 | ||
13630 | ||
13631 | rm -Rf build && mkdir -p build | |
13632 | echo "obj-m := conftest.o" >build/Makefile | |
13633 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13635 | (eval $ac_try) 2>&5 | |
13636 | ac_status=$? | |
13637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13638 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13640 | (eval $ac_try) 2>&5 | |
13641 | ac_status=$? | |
13642 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13643 | (exit $ac_status); }; }; then | |
13644 | ||
13645 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13646 | $as_echo "yes" >&6; } | |
13647 | ||
13648 | cat >>confdefs.h <<\_ACEOF | |
13649 | #define HAVE_BLK_RQ_BYTES 1 | |
13650 | _ACEOF | |
13651 | ||
13652 | ||
13653 | else | |
13654 | $as_echo "$as_me: failed program was:" >&5 | |
13655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13656 | ||
13657 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13658 | $as_echo "no" >&6; } | |
13659 | ||
13660 | ||
13661 | ||
13662 | fi | |
13663 | ||
13664 | rm -Rf build | |
13665 | ||
13666 | ||
13667 | ||
13668 | { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5 | |
13669 | $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; } | |
13670 | ||
13671 | ||
13672 | cat confdefs.h - <<_ACEOF >conftest.c | |
13673 | /* confdefs.h. */ | |
13674 | _ACEOF | |
13675 | cat confdefs.h >>conftest.$ac_ext | |
13676 | cat >>conftest.$ac_ext <<_ACEOF | |
13677 | /* end confdefs.h. */ | |
13678 | ||
13679 | ||
13680 | #include <linux/module.h> | |
13681 | #include <linux/blkdev.h> | |
13682 | ||
13683 | MODULE_LICENSE("CDDL"); | |
13684 | ||
13685 | int | |
13686 | main (void) | |
13687 | { | |
13688 | ||
13689 | struct request *req = NULL; | |
13690 | (void) blk_rq_bytes(req); | |
13691 | ||
13692 | ; | |
13693 | return 0; | |
13694 | } | |
13695 | ||
13696 | _ACEOF | |
13697 | ||
13698 | ||
13699 | rm -Rf build && mkdir -p build | |
13700 | echo "obj-m := conftest.o" >build/Makefile | |
13701 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13703 | (eval $ac_try) 2>&5 | |
13704 | ac_status=$? | |
13705 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13706 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13708 | (eval $ac_try) 2>&5 | |
13709 | ac_status=$? | |
13710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13711 | (exit $ac_status); }; }; then | |
13712 | ||
13713 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13714 | $as_echo "no" >&6; } | |
13715 | ||
13716 | else | |
13717 | $as_echo "$as_me: failed program was:" >&5 | |
13718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13719 | ||
13720 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13721 | $as_echo "yes" >&6; } | |
13722 | ||
13723 | cat >>confdefs.h <<\_ACEOF | |
13724 | #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1 | |
13725 | _ACEOF | |
13726 | ||
13727 | ||
13728 | ||
13729 | ||
13730 | fi | |
13731 | ||
13732 | rm -Rf build | |
13733 | ||
13734 | ||
13735 | ||
13736 | ||
13737 | { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5 | |
13738 | $as_echo_n "checking whether blk_rq_pos() is available... " >&6; } | |
13739 | ||
13740 | ||
13741 | cat confdefs.h - <<_ACEOF >conftest.c | |
13742 | /* confdefs.h. */ | |
13743 | _ACEOF | |
13744 | cat confdefs.h >>conftest.$ac_ext | |
13745 | cat >>conftest.$ac_ext <<_ACEOF | |
13746 | /* end confdefs.h. */ | |
13747 | ||
13748 | ||
13749 | #include <linux/blkdev.h> | |
13750 | ||
13751 | int | |
13752 | main (void) | |
13753 | { | |
13754 | ||
13755 | struct request *req = NULL; | |
13756 | (void) blk_rq_pos(req); | |
13757 | ||
13758 | ; | |
13759 | return 0; | |
13760 | } | |
13761 | ||
13762 | _ACEOF | |
13763 | ||
13764 | ||
13765 | rm -Rf build && mkdir -p build | |
13766 | echo "obj-m := conftest.o" >build/Makefile | |
13767 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13769 | (eval $ac_try) 2>&5 | |
13770 | ac_status=$? | |
13771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13772 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13774 | (eval $ac_try) 2>&5 | |
13775 | ac_status=$? | |
13776 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13777 | (exit $ac_status); }; }; then | |
13778 | ||
13779 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13780 | $as_echo "yes" >&6; } | |
13781 | ||
13782 | cat >>confdefs.h <<\_ACEOF | |
13783 | #define HAVE_BLK_RQ_POS 1 | |
13784 | _ACEOF | |
13785 | ||
13786 | ||
13787 | else | |
13788 | $as_echo "$as_me: failed program was:" >&5 | |
13789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13790 | ||
13791 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13792 | $as_echo "no" >&6; } | |
13793 | ||
13794 | ||
13795 | ||
13796 | fi | |
13797 | ||
13798 | rm -Rf build | |
13799 | ||
13800 | ||
13801 | ||
13802 | ||
13803 | { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5 | |
13804 | $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; } | |
13805 | ||
13806 | ||
13807 | cat confdefs.h - <<_ACEOF >conftest.c | |
13808 | /* confdefs.h. */ | |
13809 | _ACEOF | |
13810 | cat confdefs.h >>conftest.$ac_ext | |
13811 | cat >>conftest.$ac_ext <<_ACEOF | |
13812 | /* end confdefs.h. */ | |
13813 | ||
13814 | ||
13815 | #include <linux/blkdev.h> | |
13816 | ||
13817 | int | |
13818 | main (void) | |
13819 | { | |
13820 | ||
13821 | struct request *req = NULL; | |
13822 | (void) blk_rq_sectors(req); | |
13823 | ||
13824 | ; | |
13825 | return 0; | |
13826 | } | |
13827 | ||
13828 | _ACEOF | |
13829 | ||
13830 | ||
13831 | rm -Rf build && mkdir -p build | |
13832 | echo "obj-m := conftest.o" >build/Makefile | |
13833 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13835 | (eval $ac_try) 2>&5 | |
13836 | ac_status=$? | |
13837 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13838 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13840 | (eval $ac_try) 2>&5 | |
13841 | ac_status=$? | |
13842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13843 | (exit $ac_status); }; }; then | |
13844 | ||
13845 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13846 | $as_echo "yes" >&6; } | |
13847 | ||
13848 | cat >>confdefs.h <<\_ACEOF | |
13849 | #define HAVE_BLK_RQ_SECTORS 1 | |
13850 | _ACEOF | |
13851 | ||
13852 | ||
13853 | else | |
13854 | $as_echo "$as_me: failed program was:" >&5 | |
13855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13856 | ||
13857 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13858 | $as_echo "no" >&6; } | |
13859 | ||
13860 | ||
13861 | ||
13862 | fi | |
13863 | ||
13864 | rm -Rf build | |
13865 | ||
13866 | ||
13867 | ||
13868 | ||
13869 | { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5 | |
13870 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
13871 | ||
13872 | ||
13873 | cat confdefs.h - <<_ACEOF >conftest.c | |
13874 | /* confdefs.h. */ | |
13875 | _ACEOF | |
13876 | cat confdefs.h >>conftest.$ac_ext | |
13877 | cat >>conftest.$ac_ext <<_ACEOF | |
13878 | /* end confdefs.h. */ | |
13879 | ||
13880 | ||
13881 | #include <linux/blkdev.h> | |
13882 | ||
13883 | int | |
13884 | main (void) | |
13885 | { | |
13886 | ||
13887 | struct gendisk *disk = NULL; | |
13888 | (void) get_disk_ro(disk); | |
13889 | ||
13890 | ; | |
13891 | return 0; | |
13892 | } | |
13893 | ||
13894 | _ACEOF | |
13895 | ||
13896 | ||
13897 | rm -Rf build && mkdir -p build | |
13898 | echo "obj-m := conftest.o" >build/Makefile | |
13899 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13901 | (eval $ac_try) 2>&5 | |
13902 | ac_status=$? | |
13903 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13904 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13906 | (eval $ac_try) 2>&5 | |
13907 | ac_status=$? | |
13908 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13909 | (exit $ac_status); }; }; then | |
13910 | ||
13911 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13912 | $as_echo "yes" >&6; } | |
13913 | ||
13914 | cat >>confdefs.h <<\_ACEOF | |
13915 | #define HAVE_GET_DISK_RO 1 | |
13916 | _ACEOF | |
13917 | ||
13918 | ||
13919 | else | |
13920 | $as_echo "$as_me: failed program was:" >&5 | |
13921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13922 | ||
13923 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13924 | $as_echo "no" >&6; } | |
13925 | ||
13926 | ||
13927 | ||
13928 | fi | |
13929 | ||
13930 | rm -Rf build | |
13931 | ||
13932 | ||
13933 | ||
13934 | ||
13935 | { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5 | |
13936 | $as_echo_n "checking whether rq_is_sync() is available... " >&6; } | |
13937 | ||
13938 | ||
13939 | cat confdefs.h - <<_ACEOF >conftest.c | |
13940 | /* confdefs.h. */ | |
13941 | _ACEOF | |
13942 | cat confdefs.h >>conftest.$ac_ext | |
13943 | cat >>conftest.$ac_ext <<_ACEOF | |
13944 | /* end confdefs.h. */ | |
13945 | ||
13946 | ||
13947 | #include <linux/blkdev.h> | |
13948 | ||
13949 | int | |
13950 | main (void) | |
13951 | { | |
13952 | ||
13953 | struct request *req = NULL; | |
13954 | (void) rq_is_sync(req); | |
13955 | ||
13956 | ; | |
13957 | return 0; | |
13958 | } | |
13959 | ||
13960 | _ACEOF | |
13961 | ||
13962 | ||
13963 | rm -Rf build && mkdir -p build | |
13964 | echo "obj-m := conftest.o" >build/Makefile | |
13965 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
13966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13967 | (eval $ac_try) 2>&5 | |
13968 | ac_status=$? | |
13969 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13970 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
13971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13972 | (eval $ac_try) 2>&5 | |
13973 | ac_status=$? | |
13974 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13975 | (exit $ac_status); }; }; then | |
13976 | ||
13977 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13978 | $as_echo "yes" >&6; } | |
13979 | ||
13980 | cat >>confdefs.h <<\_ACEOF | |
13981 | #define HAVE_RQ_IS_SYNC 1 | |
13982 | _ACEOF | |
13983 | ||
13984 | ||
13985 | else | |
13986 | $as_echo "$as_me: failed program was:" >&5 | |
13987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13988 | ||
13989 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
13990 | $as_echo "no" >&6; } | |
13991 | ||
13992 | ||
13993 | ||
13994 | fi | |
13995 | ||
13996 | rm -Rf build | |
13997 | ||
13998 | ||
13999 | ||
14000 | ||
14001 | { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5 | |
14002 | $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; } | |
14003 | ||
14004 | ||
14005 | cat confdefs.h - <<_ACEOF >conftest.c | |
14006 | /* confdefs.h. */ | |
14007 | _ACEOF | |
14008 | cat confdefs.h >>conftest.$ac_ext | |
14009 | cat >>conftest.$ac_ext <<_ACEOF | |
14010 | /* end confdefs.h. */ | |
14011 | ||
14012 | ||
14013 | #include <linux/blkdev.h> | |
14014 | ||
14015 | int | |
14016 | main (void) | |
14017 | { | |
14018 | ||
14019 | struct bio_vec *bv; | |
14020 | struct req_iterator iter; | |
14021 | struct request *req = NULL; | |
14022 | rq_for_each_segment(bv, req, iter) { } | |
14023 | ||
14024 | ; | |
14025 | return 0; | |
14026 | } | |
14027 | ||
14028 | _ACEOF | |
14029 | ||
14030 | ||
14031 | rm -Rf build && mkdir -p build | |
14032 | echo "obj-m := conftest.o" >build/Makefile | |
14033 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14035 | (eval $ac_try) 2>&5 | |
14036 | ac_status=$? | |
14037 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14038 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14040 | (eval $ac_try) 2>&5 | |
14041 | ac_status=$? | |
14042 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14043 | (exit $ac_status); }; }; then | |
14044 | ||
14045 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14046 | $as_echo "yes" >&6; } | |
14047 | ||
14048 | cat >>confdefs.h <<\_ACEOF | |
14049 | #define HAVE_RQ_FOR_EACH_SEGMENT 1 | |
14050 | _ACEOF | |
14051 | ||
14052 | ||
14053 | else | |
14054 | $as_echo "$as_me: failed program was:" >&5 | |
14055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14056 | ||
14057 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14058 | $as_echo "no" >&6; } | |
14059 | ||
14060 | ||
14061 | ||
777d4af8 BB |
14062 | fi |
14063 | ||
14064 | rm -Rf build | |
14065 | ||
14066 | ||
14067 | ||
14068 | { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5 | |
14069 | $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; } | |
14070 | ||
14071 | ||
14072 | cat confdefs.h - <<_ACEOF >conftest.c | |
14073 | /* confdefs.h. */ | |
14074 | _ACEOF | |
14075 | cat confdefs.h >>conftest.$ac_ext | |
14076 | cat >>conftest.$ac_ext <<_ACEOF | |
14077 | /* end confdefs.h. */ | |
14078 | ||
14079 | ||
14080 | #include <linux/fs.h> | |
14081 | #include <linux/xattr.h> | |
14082 | ||
14083 | const struct xattr_handler xattr_test_handler = { | |
14084 | .prefix = "test", | |
14085 | .get = NULL, | |
14086 | .set = NULL, | |
14087 | }; | |
14088 | ||
14089 | const struct xattr_handler *xattr_handlers[] = { | |
14090 | &xattr_test_handler, | |
14091 | }; | |
14092 | ||
14093 | int | |
14094 | main (void) | |
14095 | { | |
14096 | ||
79713039 | 14097 | struct super_block sb __attribute__ ((unused)); |
777d4af8 BB |
14098 | |
14099 | sb.s_xattr = xattr_handlers; | |
14100 | ||
14101 | ; | |
14102 | return 0; | |
14103 | } | |
14104 | ||
14105 | _ACEOF | |
14106 | ||
14107 | ||
14108 | rm -Rf build && mkdir -p build | |
14109 | echo "obj-m := conftest.o" >build/Makefile | |
14110 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14112 | (eval $ac_try) 2>&5 | |
14113 | ac_status=$? | |
14114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14115 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14117 | (eval $ac_try) 2>&5 | |
14118 | ac_status=$? | |
14119 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14120 | (exit $ac_status); }; }; then | |
14121 | ||
14122 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14123 | $as_echo "yes" >&6; } | |
14124 | ||
14125 | cat >>confdefs.h <<\_ACEOF | |
14126 | #define HAVE_CONST_XATTR_HANDLER 1 | |
14127 | _ACEOF | |
14128 | ||
14129 | ||
14130 | else | |
14131 | $as_echo "$as_me: failed program was:" >&5 | |
14132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14133 | ||
14134 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14135 | $as_echo "no" >&6; } | |
14136 | ||
14137 | ||
14138 | ||
e70e591c BB |
14139 | fi |
14140 | ||
14141 | rm -Rf build | |
14142 | ||
14143 | ||
14144 | ||
14145 | ||
f9637c6c BB |
14146 | { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5 |
14147 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
14148 | ||
14149 | ||
14150 | cat confdefs.h - <<_ACEOF >conftest.c | |
14151 | /* confdefs.h. */ | |
14152 | _ACEOF | |
14153 | cat confdefs.h >>conftest.$ac_ext | |
14154 | cat >>conftest.$ac_ext <<_ACEOF | |
14155 | /* end confdefs.h. */ | |
14156 | ||
14157 | ||
14158 | #include <linux/xattr.h> | |
14159 | ||
14160 | int | |
14161 | main (void) | |
14162 | { | |
14163 | ||
14164 | int (*get)(struct dentry *dentry, const char *name, | |
14165 | void *buffer, size_t size, int handler_flags) = NULL; | |
79713039 | 14166 | struct xattr_handler xops __attribute__ ((unused)); |
f9637c6c BB |
14167 | |
14168 | xops.get = get; | |
14169 | ||
14170 | ; | |
14171 | return 0; | |
14172 | } | |
14173 | ||
14174 | _ACEOF | |
14175 | ||
14176 | ||
14177 | rm -Rf build && mkdir -p build | |
14178 | echo "obj-m := conftest.o" >build/Makefile | |
14179 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14181 | (eval $ac_try) 2>&5 | |
14182 | ac_status=$? | |
14183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14184 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14186 | (eval $ac_try) 2>&5 | |
14187 | ac_status=$? | |
14188 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14189 | (exit $ac_status); }; }; then | |
14190 | ||
14191 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14192 | $as_echo "yes" >&6; } | |
14193 | ||
14194 | cat >>confdefs.h <<\_ACEOF | |
14195 | #define HAVE_DENTRY_XATTR_GET 1 | |
14196 | _ACEOF | |
14197 | ||
14198 | ||
14199 | else | |
14200 | $as_echo "$as_me: failed program was:" >&5 | |
14201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14202 | ||
14203 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14204 | $as_echo "no" >&6; } | |
14205 | ||
14206 | ||
14207 | ||
14208 | fi | |
14209 | ||
14210 | rm -Rf build | |
14211 | ||
14212 | ||
14213 | ||
14214 | ||
14215 | { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5 | |
14216 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
14217 | ||
14218 | ||
14219 | cat confdefs.h - <<_ACEOF >conftest.c | |
14220 | /* confdefs.h. */ | |
14221 | _ACEOF | |
14222 | cat confdefs.h >>conftest.$ac_ext | |
14223 | cat >>conftest.$ac_ext <<_ACEOF | |
14224 | /* end confdefs.h. */ | |
14225 | ||
14226 | ||
14227 | #include <linux/xattr.h> | |
14228 | ||
14229 | int | |
14230 | main (void) | |
14231 | { | |
14232 | ||
14233 | int (*set)(struct dentry *dentry, const char *name, | |
14234 | const void *buffer, size_t size, int flags, | |
14235 | int handler_flags) = NULL; | |
79713039 | 14236 | struct xattr_handler xops __attribute__ ((unused)); |
f9637c6c BB |
14237 | |
14238 | xops.set = set; | |
14239 | ||
14240 | ; | |
14241 | return 0; | |
14242 | } | |
14243 | ||
14244 | _ACEOF | |
14245 | ||
14246 | ||
14247 | rm -Rf build && mkdir -p build | |
14248 | echo "obj-m := conftest.o" >build/Makefile | |
14249 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14251 | (eval $ac_try) 2>&5 | |
14252 | ac_status=$? | |
14253 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14254 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14256 | (eval $ac_try) 2>&5 | |
14257 | ac_status=$? | |
14258 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14259 | (exit $ac_status); }; }; then | |
14260 | ||
14261 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14262 | $as_echo "yes" >&6; } | |
14263 | ||
14264 | cat >>confdefs.h <<\_ACEOF | |
14265 | #define HAVE_DENTRY_XATTR_SET 1 | |
14266 | _ACEOF | |
14267 | ||
14268 | ||
14269 | else | |
14270 | $as_echo "$as_me: failed program was:" >&5 | |
14271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14272 | ||
14273 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14274 | $as_echo "no" >&6; } | |
14275 | ||
14276 | ||
14277 | ||
14278 | fi | |
14279 | ||
14280 | rm -Rf build | |
14281 | ||
14282 | ||
14283 | ||
14284 | ||
7268e1be BB |
14285 | { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5 |
14286 | $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; } | |
14287 | ||
14288 | ||
14289 | cat confdefs.h - <<_ACEOF >conftest.c | |
14290 | /* confdefs.h. */ | |
14291 | _ACEOF | |
14292 | cat confdefs.h >>conftest.$ac_ext | |
14293 | cat >>conftest.$ac_ext <<_ACEOF | |
14294 | /* end confdefs.h. */ | |
14295 | ||
14296 | ||
14297 | #include <linux/fs.h> | |
14298 | ||
14299 | int | |
14300 | main (void) | |
14301 | { | |
14302 | ||
14303 | int (*fsync) (struct file *, int datasync) = NULL; | |
79713039 | 14304 | struct file_operations fops __attribute__ ((unused)); |
7268e1be BB |
14305 | |
14306 | fops.fsync = fsync; | |
14307 | ||
14308 | ; | |
14309 | return 0; | |
14310 | } | |
14311 | ||
14312 | _ACEOF | |
14313 | ||
14314 | ||
14315 | rm -Rf build && mkdir -p build | |
14316 | echo "obj-m := conftest.o" >build/Makefile | |
14317 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14319 | (eval $ac_try) 2>&5 | |
14320 | ac_status=$? | |
14321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14322 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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); }; }; then | |
14328 | ||
14329 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14330 | $as_echo "yes" >&6; } | |
14331 | ||
14332 | cat >>confdefs.h <<\_ACEOF | |
14333 | #define HAVE_2ARGS_FSYNC 1 | |
14334 | _ACEOF | |
14335 | ||
14336 | ||
14337 | else | |
14338 | $as_echo "$as_me: failed program was:" >&5 | |
14339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14340 | ||
14341 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14342 | $as_echo "no" >&6; } | |
14343 | ||
14344 | ||
14345 | ||
14346 | fi | |
14347 | ||
14348 | rm -Rf build | |
14349 | ||
14350 | ||
14351 | ||
14352 | ||
2c395def BB |
14353 | { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5 |
14354 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
14355 | ||
14356 | ||
14357 | cat confdefs.h - <<_ACEOF >conftest.c | |
14358 | /* confdefs.h. */ | |
14359 | _ACEOF | |
14360 | cat confdefs.h >>conftest.$ac_ext | |
14361 | cat >>conftest.$ac_ext <<_ACEOF | |
14362 | /* end confdefs.h. */ | |
14363 | ||
14364 | ||
14365 | #include <linux/fs.h> | |
14366 | ||
14367 | int | |
14368 | main (void) | |
14369 | { | |
14370 | ||
14371 | void (*evict_inode) (struct inode *) = NULL; | |
79713039 | 14372 | struct super_operations sops __attribute__ ((unused)); |
2c395def BB |
14373 | |
14374 | sops.evict_inode = evict_inode; | |
14375 | ||
14376 | ; | |
14377 | return 0; | |
14378 | } | |
14379 | ||
14380 | _ACEOF | |
14381 | ||
14382 | ||
14383 | rm -Rf build && mkdir -p build | |
14384 | echo "obj-m := conftest.o" >build/Makefile | |
14385 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14387 | (eval $ac_try) 2>&5 | |
14388 | ac_status=$? | |
14389 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14390 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14392 | (eval $ac_try) 2>&5 | |
14393 | ac_status=$? | |
14394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14395 | (exit $ac_status); }; }; then | |
14396 | ||
14397 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14398 | $as_echo "yes" >&6; } | |
14399 | ||
14400 | cat >>confdefs.h <<\_ACEOF | |
14401 | #define HAVE_EVICT_INODE 1 | |
14402 | _ACEOF | |
14403 | ||
14404 | ||
14405 | else | |
14406 | $as_echo "$as_me: failed program was:" >&5 | |
14407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14408 | ||
14409 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14410 | $as_echo "no" >&6; } | |
14411 | ||
14412 | ||
14413 | ||
14414 | fi | |
14415 | ||
14416 | rm -Rf build | |
14417 | ||
14418 | ||
14419 | ||
14420 | ||
bdf4328b BB |
14421 | { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5 |
14422 | $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; } | |
14423 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ | |
14424 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
14425 | rc=$? | |
14426 | if test $rc -ne 0; then | |
14427 | export=0 | |
14428 | for file in fs/inode.c; do | |
14429 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null | |
14430 | rc=$? | |
14431 | if test $rc -eq 0; then | |
14432 | export=1 | |
14433 | break; | |
14434 | fi | |
14435 | done | |
14436 | if test $export -eq 0; then | |
14437 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14438 | $as_echo "no" >&6; } | |
14439 | ||
14440 | else | |
14441 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14442 | $as_echo "yes" >&6; } | |
14443 | ||
14444 | cat >>confdefs.h <<\_ACEOF | |
14445 | #define HAVE_INSERT_INODE_LOCKED 1 | |
14446 | _ACEOF | |
14447 | ||
14448 | fi | |
14449 | else | |
14450 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14451 | $as_echo "yes" >&6; } | |
14452 | ||
14453 | cat >>confdefs.h <<\_ACEOF | |
14454 | #define HAVE_INSERT_INODE_LOCKED 1 | |
14455 | _ACEOF | |
14456 | ||
14457 | fi | |
14458 | ||
14459 | ||
14460 | ||
055656d4 GB |
14461 | { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5 |
14462 | $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; } | |
14463 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ | |
14464 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
14465 | rc=$? | |
14466 | if test $rc -ne 0; then | |
14467 | export=0 | |
14468 | for file in fs/dcache.c; do | |
14469 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null | |
14470 | rc=$? | |
14471 | if test $rc -eq 0; then | |
14472 | export=1 | |
14473 | break; | |
14474 | fi | |
14475 | done | |
14476 | if test $export -eq 0; then | |
14477 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14478 | $as_echo "no" >&6; } | |
14479 | ||
14480 | else | |
14481 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14482 | $as_echo "yes" >&6; } | |
14483 | ||
14484 | cat >>confdefs.h <<\_ACEOF | |
14485 | #define HAVE_D_OBTAIN_ALIAS 1 | |
14486 | _ACEOF | |
14487 | ||
14488 | fi | |
14489 | else | |
14490 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14491 | $as_echo "yes" >&6; } | |
14492 | ||
14493 | cat >>confdefs.h <<\_ACEOF | |
14494 | #define HAVE_D_OBTAIN_ALIAS 1 | |
14495 | _ACEOF | |
14496 | ||
14497 | fi | |
14498 | ||
14499 | ||
14500 | ||
df554c14 BB |
14501 | { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5 |
14502 | $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; } | |
14503 | grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \ | |
14504 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
14505 | rc=$? | |
14506 | if test $rc -ne 0; then | |
14507 | export=0 | |
14508 | for file in fs/block_dev.c; do | |
14509 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null | |
14510 | rc=$? | |
14511 | if test $rc -eq 0; then | |
14512 | export=1 | |
14513 | break; | |
14514 | fi | |
14515 | done | |
14516 | if test $export -eq 0; then | |
14517 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14518 | $as_echo "no" >&6; } | |
14519 | ||
14520 | else | |
14521 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14522 | $as_echo "yes" >&6; } | |
14523 | ||
14524 | cat >>confdefs.h <<\_ACEOF | |
14525 | #define HAVE_CHECK_DISK_SIZE_CHANGE 1 | |
14526 | _ACEOF | |
14527 | ||
14528 | fi | |
14529 | else | |
14530 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14531 | $as_echo "yes" >&6; } | |
14532 | ||
14533 | cat >>confdefs.h <<\_ACEOF | |
14534 | #define HAVE_CHECK_DISK_SIZE_CHANGE 1 | |
14535 | _ACEOF | |
14536 | ||
14537 | fi | |
14538 | ||
14539 | ||
14540 | ||
b3129792 PJ |
14541 | { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5 |
14542 | $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; } | |
14543 | grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \ | |
14544 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
14545 | rc=$? | |
14546 | if test $rc -ne 0; then | |
14547 | export=0 | |
14548 | for file in mm/truncate.c; do | |
14549 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null | |
14550 | rc=$? | |
14551 | if test $rc -eq 0; then | |
14552 | export=1 | |
14553 | break; | |
14554 | fi | |
14555 | done | |
14556 | if test $export -eq 0; then | |
14557 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14558 | $as_echo "no" >&6; } | |
14559 | ||
14560 | else | |
14561 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14562 | $as_echo "yes" >&6; } | |
14563 | ||
14564 | cat >>confdefs.h <<\_ACEOF | |
14565 | #define HAVE_TRUNCATE_SETSIZE 1 | |
14566 | _ACEOF | |
14567 | ||
14568 | fi | |
14569 | else | |
14570 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14571 | $as_echo "yes" >&6; } | |
14572 | ||
14573 | cat >>confdefs.h <<\_ACEOF | |
14574 | #define HAVE_TRUNCATE_SETSIZE 1 | |
14575 | _ACEOF | |
14576 | ||
14577 | fi | |
14578 | ||
14579 | ||
14580 | ||
5c03efc3 BB |
14581 | { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5 |
14582 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
14583 | tmp_flags="$EXTRA_KCFLAGS" | |
14584 | EXTRA_KCFLAGS="-Werror" | |
14585 | ||
14586 | ||
14587 | cat confdefs.h - <<_ACEOF >conftest.c | |
14588 | /* confdefs.h. */ | |
14589 | _ACEOF | |
14590 | cat confdefs.h >>conftest.$ac_ext | |
14591 | cat >>conftest.$ac_ext <<_ACEOF | |
14592 | /* end confdefs.h. */ | |
14593 | ||
14594 | ||
14595 | #include <linux/security.h> | |
14596 | ||
14597 | int | |
14598 | main (void) | |
14599 | { | |
14600 | ||
14601 | security_inode_init_security(NULL,NULL,NULL,NULL,NULL,NULL); | |
14602 | ||
14603 | ; | |
14604 | return 0; | |
14605 | } | |
14606 | ||
14607 | _ACEOF | |
14608 | ||
14609 | ||
14610 | rm -Rf build && mkdir -p build | |
14611 | echo "obj-m := conftest.o" >build/Makefile | |
14612 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14614 | (eval $ac_try) 2>&5 | |
14615 | ac_status=$? | |
14616 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14617 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14619 | (eval $ac_try) 2>&5 | |
14620 | ac_status=$? | |
14621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14622 | (exit $ac_status); }; }; then | |
14623 | ||
14624 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14625 | $as_echo "yes" >&6; } | |
14626 | ||
14627 | cat >>confdefs.h <<\_ACEOF | |
14628 | #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1 | |
14629 | _ACEOF | |
14630 | ||
14631 | ||
14632 | else | |
14633 | $as_echo "$as_me: failed program was:" >&5 | |
14634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14635 | ||
14636 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14637 | $as_echo "no" >&6; } | |
14638 | ||
14639 | ||
14640 | ||
14641 | fi | |
14642 | ||
14643 | rm -Rf build | |
14644 | ||
14645 | ||
14646 | EXTRA_KCFLAGS="$tmp_flags" | |
14647 | ||
14648 | ||
2cf7f52b BB |
14649 | { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5 |
14650 | $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; } | |
14651 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ | |
14652 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
14653 | rc=$? | |
14654 | if test $rc -ne 0; then | |
14655 | export=0 | |
14656 | for file in fs/super.c; do | |
14657 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null | |
14658 | rc=$? | |
14659 | if test $rc -eq 0; then | |
14660 | export=1 | |
14661 | break; | |
14662 | fi | |
14663 | done | |
14664 | if test $export -eq 0; then | |
14665 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14666 | $as_echo "no" >&6; } | |
14667 | ||
14668 | else | |
14669 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14670 | $as_echo "yes" >&6; } | |
14671 | ||
14672 | cat >>confdefs.h <<\_ACEOF | |
14673 | #define HAVE_MOUNT_NODEV 1 | |
14674 | _ACEOF | |
14675 | ||
14676 | fi | |
14677 | else | |
14678 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14679 | $as_echo "yes" >&6; } | |
14680 | ||
14681 | cat >>confdefs.h <<\_ACEOF | |
14682 | #define HAVE_MOUNT_NODEV 1 | |
14683 | _ACEOF | |
14684 | ||
14685 | fi | |
14686 | ||
14687 | ||
14688 | ||
76659dc1 BB |
14689 | { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5 |
14690 | $as_echo_n "checking whether super_block has s_bdi... " >&6; } | |
14691 | ||
14692 | ||
14693 | cat confdefs.h - <<_ACEOF >conftest.c | |
14694 | /* confdefs.h. */ | |
14695 | _ACEOF | |
14696 | cat confdefs.h >>conftest.$ac_ext | |
14697 | cat >>conftest.$ac_ext <<_ACEOF | |
14698 | /* end confdefs.h. */ | |
14699 | ||
14700 | ||
14701 | #include <linux/fs.h> | |
14702 | ||
14703 | int | |
14704 | main (void) | |
14705 | { | |
14706 | ||
14707 | struct super_block sb __attribute__ ((unused)); | |
14708 | sb.s_bdi = NULL; | |
14709 | ||
14710 | ; | |
14711 | return 0; | |
14712 | } | |
14713 | ||
14714 | _ACEOF | |
14715 | ||
14716 | ||
14717 | rm -Rf build && mkdir -p build | |
14718 | echo "obj-m := conftest.o" >build/Makefile | |
14719 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
14720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14721 | (eval $ac_try) 2>&5 | |
14722 | ac_status=$? | |
14723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14724 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
14725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14726 | (eval $ac_try) 2>&5 | |
14727 | ac_status=$? | |
14728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14729 | (exit $ac_status); }; }; then | |
14730 | ||
14731 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14732 | $as_echo "yes" >&6; } | |
14733 | ||
14734 | cat >>confdefs.h <<\_ACEOF | |
14735 | #define HAVE_BDI 1 | |
14736 | _ACEOF | |
14737 | ||
14738 | ||
14739 | else | |
14740 | $as_echo "$as_me: failed program was:" >&5 | |
14741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14742 | ||
14743 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14744 | $as_echo "no" >&6; } | |
14745 | ||
14746 | ||
14747 | ||
14748 | fi | |
14749 | ||
14750 | rm -Rf build | |
14751 | ||
14752 | ||
14753 | ||
14754 | ||
e70e591c BB |
14755 | if test "$LINUX_OBJ" != "$LINUX"; then |
14756 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
14757 | fi | |
14758 | ||
14759 | ||
14760 | ||
8a7e1cee | 14761 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" |
12c1acde | 14762 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" |
6283f55e BB |
14763 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" |
14764 | ||
14765 | ||
e70e591c BB |
14766 | ;; |
14767 | user) | |
14768 | ||
14769 | { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5 | |
14770 | $as_echo_n "checking for target asm dir... " >&6; } | |
14771 | TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/` | |
14772 | ||
14773 | case $TARGET_ARCH in | |
14774 | i386|x86_64) | |
14775 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
14776 | ;; | |
14777 | *) | |
14778 | TARGET_ASM_DIR=asm-generic | |
14779 | ;; | |
14780 | esac | |
14781 | ||
14782 | ||
14783 | { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5 | |
14784 | $as_echo "$TARGET_ASM_DIR" >&6; } | |
14785 | ||
14786 | ||
e70e591c BB |
14787 | { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5 |
14788 | $as_echo_n "checking for ioctl()... " >&6; } | |
14789 | cat >conftest.$ac_ext <<_ACEOF | |
14790 | /* confdefs.h. */ | |
14791 | _ACEOF | |
14792 | cat confdefs.h >>conftest.$ac_ext | |
14793 | cat >>conftest.$ac_ext <<_ACEOF | |
14794 | /* end confdefs.h. */ | |
14795 | #include <unistd.h> | |
14796 | ||
14797 | _ACEOF | |
14798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14799 | $EGREP "ioctl" >/dev/null 2>&1; then | |
14800 | is_unistd=yes | |
14801 | else | |
14802 | is_unistd=no | |
14803 | fi | |
14804 | rm -f conftest* | |
14805 | ||
14806 | cat >conftest.$ac_ext <<_ACEOF | |
14807 | /* confdefs.h. */ | |
14808 | _ACEOF | |
14809 | cat confdefs.h >>conftest.$ac_ext | |
14810 | cat >>conftest.$ac_ext <<_ACEOF | |
14811 | /* end confdefs.h. */ | |
14812 | #include <sys/ioctl.h> | |
14813 | ||
14814 | _ACEOF | |
14815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14816 | $EGREP "ioctl" >/dev/null 2>&1; then | |
14817 | is_sys_ioctl=yes | |
14818 | else | |
14819 | is_sys_ioctl=no | |
14820 | fi | |
14821 | rm -f conftest* | |
14822 | ||
14823 | cat >conftest.$ac_ext <<_ACEOF | |
14824 | /* confdefs.h. */ | |
14825 | _ACEOF | |
14826 | cat confdefs.h >>conftest.$ac_ext | |
14827 | cat >>conftest.$ac_ext <<_ACEOF | |
14828 | /* end confdefs.h. */ | |
14829 | #include <stropts.h> | |
14830 | ||
14831 | _ACEOF | |
14832 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14833 | $EGREP "ioctl" >/dev/null 2>&1; then | |
14834 | is_stropts=yes | |
14835 | else | |
14836 | is_stropts=no | |
14837 | fi | |
14838 | rm -f conftest* | |
14839 | ||
14840 | ||
14841 | if test $is_unistd = yes; then | |
14842 | result=unistd.h | |
14843 | ||
14844 | cat >>confdefs.h <<\_ACEOF | |
14845 | #define HAVE_IOCTL_IN_UNISTD_H 1 | |
14846 | _ACEOF | |
14847 | ||
14848 | else | |
14849 | ||
14850 | if test $is_sys_ioctl = yes; then | |
14851 | result=sys/ioctl.h | |
14852 | ||
14853 | cat >>confdefs.h <<\_ACEOF | |
14854 | #define HAVE_IOCTL_IN_SYS_IOCTL_H 1 | |
14855 | _ACEOF | |
14856 | ||
14857 | elif test $is_stropts = yes; then | |
14858 | ||
14859 | cat >>confdefs.h <<\_ACEOF | |
14860 | #define HAVE_IOCTL_IN_STROPTS_H 1 | |
14861 | _ACEOF | |
14862 | ||
14863 | else | |
14864 | result=no | |
14865 | fi | |
14866 | fi | |
14867 | ||
14868 | if test $result = no; then | |
14869 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14870 | $as_echo "no" >&6; } | |
14871 | { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5 | |
14872 | $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;} | |
14873 | { (exit 1); exit 1; }; } | |
14874 | else | |
14875 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14876 | $as_echo "yes" >&6; } | |
14877 | fi | |
14878 | ||
14879 | ||
14880 | ZLIB= | |
14881 | ||
14882 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
14883 | { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
14884 | $as_echo_n "checking for zlib.h... " >&6; } | |
14885 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
14886 | $as_echo_n "(cached) " >&6 | |
14887 | fi | |
14888 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
14889 | $as_echo "$ac_cv_header_zlib_h" >&6; } | |
14890 | else | |
14891 | # Is the header compilable? | |
14892 | { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
14893 | $as_echo_n "checking zlib.h usability... " >&6; } | |
14894 | cat >conftest.$ac_ext <<_ACEOF | |
14895 | /* confdefs.h. */ | |
14896 | _ACEOF | |
14897 | cat confdefs.h >>conftest.$ac_ext | |
14898 | cat >>conftest.$ac_ext <<_ACEOF | |
14899 | /* end confdefs.h. */ | |
14900 | $ac_includes_default | |
14901 | #include <zlib.h> | |
14902 | _ACEOF | |
14903 | rm -f conftest.$ac_objext | |
14904 | if { (ac_try="$ac_compile" | |
14905 | case "(($ac_try" in | |
14906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14907 | *) ac_try_echo=$ac_try;; | |
14908 | esac | |
14909 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14910 | $as_echo "$ac_try_echo") >&5 | |
14911 | (eval "$ac_compile") 2>conftest.er1 | |
14912 | ac_status=$? | |
14913 | grep -v '^ *+' conftest.er1 >conftest.err | |
14914 | rm -f conftest.er1 | |
14915 | cat conftest.err >&5 | |
14916 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14917 | (exit $ac_status); } && { | |
14918 | test -z "$ac_c_werror_flag" || | |
14919 | test ! -s conftest.err | |
14920 | } && test -s conftest.$ac_objext; then | |
14921 | ac_header_compiler=yes | |
14922 | else | |
14923 | $as_echo "$as_me: failed program was:" >&5 | |
14924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14925 | ||
14926 | ac_header_compiler=no | |
14927 | fi | |
14928 | ||
14929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14930 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14931 | $as_echo "$ac_header_compiler" >&6; } | |
14932 | ||
14933 | # Is the header present? | |
14934 | { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
14935 | $as_echo_n "checking zlib.h presence... " >&6; } | |
14936 | cat >conftest.$ac_ext <<_ACEOF | |
14937 | /* confdefs.h. */ | |
14938 | _ACEOF | |
14939 | cat confdefs.h >>conftest.$ac_ext | |
14940 | cat >>conftest.$ac_ext <<_ACEOF | |
14941 | /* end confdefs.h. */ | |
14942 | #include <zlib.h> | |
14943 | _ACEOF | |
14944 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14945 | case "(($ac_try" in | |
14946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14947 | *) ac_try_echo=$ac_try;; | |
14948 | esac | |
14949 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14950 | $as_echo "$ac_try_echo") >&5 | |
14951 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14952 | ac_status=$? | |
14953 | grep -v '^ *+' conftest.er1 >conftest.err | |
14954 | rm -f conftest.er1 | |
14955 | cat conftest.err >&5 | |
14956 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14957 | (exit $ac_status); } >/dev/null && { | |
14958 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14959 | test ! -s conftest.err | |
14960 | }; then | |
14961 | ac_header_preproc=yes | |
14962 | else | |
14963 | $as_echo "$as_me: failed program was:" >&5 | |
14964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14965 | ||
14966 | ac_header_preproc=no | |
14967 | fi | |
14968 | ||
14969 | rm -f conftest.err conftest.$ac_ext | |
14970 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14971 | $as_echo "$ac_header_preproc" >&6; } | |
14972 | ||
14973 | # So? What about this header? | |
14974 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14975 | yes:no: ) | |
14976 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14977 | $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14978 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
14979 | $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
14980 | ac_header_preproc=yes | |
14981 | ;; | |
14982 | no:yes:* ) | |
14983 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
14984 | $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
14985 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
14986 | $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
14987 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
14988 | $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
14989 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14990 | $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14991 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
14992 | $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
14993 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
14994 | $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
14995 | ||
14996 | ;; | |
14997 | esac | |
14998 | { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
14999 | $as_echo_n "checking for zlib.h... " >&6; } | |
15000 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
15001 | $as_echo_n "(cached) " >&6 | |
15002 | else | |
15003 | ac_cv_header_zlib_h=$ac_header_preproc | |
15004 | fi | |
15005 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
15006 | $as_echo "$ac_cv_header_zlib_h" >&6; } | |
15007 | ||
15008 | fi | |
15009 | if test "x$ac_cv_header_zlib_h" = x""yes; then | |
15010 | : | |
15011 | else | |
15012 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
15013 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15014 | { { $as_echo "$as_me:$LINENO: error: | |
15015 | *** zlib.h missing, zlib-devel package required | |
15016 | See \`config.log' for more details." >&5 | |
15017 | $as_echo "$as_me: error: | |
15018 | *** zlib.h missing, zlib-devel package required | |
15019 | See \`config.log' for more details." >&2;} | |
15020 | { (exit 1); exit 1; }; }; } | |
15021 | fi | |
15022 | ||
15023 | ||
15024 | ||
15025 | ||
15026 | { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 | |
15027 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
15028 | if test "${ac_cv_lib_z_compress2+set}" = set; then | |
15029 | $as_echo_n "(cached) " >&6 | |
15030 | else | |
15031 | ac_check_lib_save_LIBS=$LIBS | |
15032 | LIBS="-lz $LIBS" | |
15033 | cat >conftest.$ac_ext <<_ACEOF | |
15034 | /* confdefs.h. */ | |
15035 | _ACEOF | |
15036 | cat confdefs.h >>conftest.$ac_ext | |
15037 | cat >>conftest.$ac_ext <<_ACEOF | |
15038 | /* end confdefs.h. */ | |
15039 | ||
15040 | /* Override any GCC internal prototype to avoid an error. | |
15041 | Use char because int might match the return type of a GCC | |
15042 | builtin and then its argument prototype would still apply. */ | |
15043 | #ifdef __cplusplus | |
15044 | extern "C" | |
15045 | #endif | |
15046 | char compress2 (); | |
15047 | int | |
15048 | main () | |
15049 | { | |
15050 | return compress2 (); | |
15051 | ; | |
15052 | return 0; | |
15053 | } | |
15054 | _ACEOF | |
15055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15056 | if { (ac_try="$ac_link" | |
15057 | case "(($ac_try" in | |
15058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15059 | *) ac_try_echo=$ac_try;; | |
15060 | esac | |
15061 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15062 | $as_echo "$ac_try_echo") >&5 | |
15063 | (eval "$ac_link") 2>conftest.er1 | |
15064 | ac_status=$? | |
15065 | grep -v '^ *+' conftest.er1 >conftest.err | |
15066 | rm -f conftest.er1 | |
15067 | cat conftest.err >&5 | |
15068 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15069 | (exit $ac_status); } && { | |
15070 | test -z "$ac_c_werror_flag" || | |
15071 | test ! -s conftest.err | |
15072 | } && test -s conftest$ac_exeext && { | |
15073 | test "$cross_compiling" = yes || | |
15074 | $as_test_x conftest$ac_exeext | |
15075 | }; then | |
15076 | ac_cv_lib_z_compress2=yes | |
15077 | else | |
15078 | $as_echo "$as_me: failed program was:" >&5 | |
15079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15080 | ||
15081 | ac_cv_lib_z_compress2=no | |
15082 | fi | |
15083 | ||
15084 | rm -rf conftest.dSYM | |
15085 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15086 | conftest$ac_exeext conftest.$ac_ext | |
15087 | LIBS=$ac_check_lib_save_LIBS | |
15088 | fi | |
15089 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 | |
15090 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
15091 | if test "x$ac_cv_lib_z_compress2" = x""yes; then | |
15092 | cat >>confdefs.h <<_ACEOF | |
15093 | #define HAVE_LIBZ 1 | |
15094 | _ACEOF | |
15095 | ||
15096 | LIBS="-lz $LIBS" | |
15097 | ||
15098 | else | |
15099 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
15100 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15101 | { { $as_echo "$as_me:$LINENO: error: | |
15102 | *** compress2() missing, zlib-devel package required | |
15103 | See \`config.log' for more details." >&5 | |
15104 | $as_echo "$as_me: error: | |
15105 | *** compress2() missing, zlib-devel package required | |
15106 | See \`config.log' for more details." >&2;} | |
15107 | { (exit 1); exit 1; }; }; } | |
15108 | fi | |
15109 | ||
15110 | ||
15111 | ||
15112 | { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5 | |
15113 | $as_echo_n "checking for uncompress in -lz... " >&6; } | |
15114 | if test "${ac_cv_lib_z_uncompress+set}" = set; then | |
15115 | $as_echo_n "(cached) " >&6 | |
15116 | else | |
15117 | ac_check_lib_save_LIBS=$LIBS | |
15118 | LIBS="-lz $LIBS" | |
15119 | cat >conftest.$ac_ext <<_ACEOF | |
15120 | /* confdefs.h. */ | |
15121 | _ACEOF | |
15122 | cat confdefs.h >>conftest.$ac_ext | |
15123 | cat >>conftest.$ac_ext <<_ACEOF | |
15124 | /* end confdefs.h. */ | |
15125 | ||
15126 | /* Override any GCC internal prototype to avoid an error. | |
15127 | Use char because int might match the return type of a GCC | |
15128 | builtin and then its argument prototype would still apply. */ | |
15129 | #ifdef __cplusplus | |
15130 | extern "C" | |
15131 | #endif | |
15132 | char uncompress (); | |
15133 | int | |
15134 | main () | |
15135 | { | |
15136 | return uncompress (); | |
15137 | ; | |
15138 | return 0; | |
15139 | } | |
15140 | _ACEOF | |
15141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15142 | if { (ac_try="$ac_link" | |
15143 | case "(($ac_try" in | |
15144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15145 | *) ac_try_echo=$ac_try;; | |
15146 | esac | |
15147 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15148 | $as_echo "$ac_try_echo") >&5 | |
15149 | (eval "$ac_link") 2>conftest.er1 | |
15150 | ac_status=$? | |
15151 | grep -v '^ *+' conftest.er1 >conftest.err | |
15152 | rm -f conftest.er1 | |
15153 | cat conftest.err >&5 | |
15154 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15155 | (exit $ac_status); } && { | |
15156 | test -z "$ac_c_werror_flag" || | |
15157 | test ! -s conftest.err | |
15158 | } && test -s conftest$ac_exeext && { | |
15159 | test "$cross_compiling" = yes || | |
15160 | $as_test_x conftest$ac_exeext | |
15161 | }; then | |
15162 | ac_cv_lib_z_uncompress=yes | |
15163 | else | |
15164 | $as_echo "$as_me: failed program was:" >&5 | |
15165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15166 | ||
15167 | ac_cv_lib_z_uncompress=no | |
15168 | fi | |
15169 | ||
15170 | rm -rf conftest.dSYM | |
15171 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15172 | conftest$ac_exeext conftest.$ac_ext | |
15173 | LIBS=$ac_check_lib_save_LIBS | |
15174 | fi | |
15175 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5 | |
15176 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | |
15177 | if test "x$ac_cv_lib_z_uncompress" = x""yes; then | |
15178 | cat >>confdefs.h <<_ACEOF | |
15179 | #define HAVE_LIBZ 1 | |
15180 | _ACEOF | |
15181 | ||
15182 | LIBS="-lz $LIBS" | |
15183 | ||
15184 | else | |
15185 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
15186 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15187 | { { $as_echo "$as_me:$LINENO: error: | |
15188 | *** uncompress() missing, zlib-devel package required | |
15189 | See \`config.log' for more details." >&5 | |
15190 | $as_echo "$as_me: error: | |
15191 | *** uncompress() missing, zlib-devel package required | |
15192 | See \`config.log' for more details." >&2;} | |
15193 | { (exit 1); exit 1; }; }; } | |
15194 | fi | |
15195 | ||
15196 | ||
15197 | ||
15198 | { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5 | |
15199 | $as_echo_n "checking for crc32 in -lz... " >&6; } | |
15200 | if test "${ac_cv_lib_z_crc32+set}" = set; then | |
15201 | $as_echo_n "(cached) " >&6 | |
15202 | else | |
15203 | ac_check_lib_save_LIBS=$LIBS | |
15204 | LIBS="-lz $LIBS" | |
15205 | cat >conftest.$ac_ext <<_ACEOF | |
15206 | /* confdefs.h. */ | |
15207 | _ACEOF | |
15208 | cat confdefs.h >>conftest.$ac_ext | |
15209 | cat >>conftest.$ac_ext <<_ACEOF | |
15210 | /* end confdefs.h. */ | |
15211 | ||
15212 | /* Override any GCC internal prototype to avoid an error. | |
15213 | Use char because int might match the return type of a GCC | |
15214 | builtin and then its argument prototype would still apply. */ | |
15215 | #ifdef __cplusplus | |
15216 | extern "C" | |
15217 | #endif | |
15218 | char crc32 (); | |
15219 | int | |
15220 | main () | |
15221 | { | |
15222 | return crc32 (); | |
15223 | ; | |
15224 | return 0; | |
15225 | } | |
15226 | _ACEOF | |
15227 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15228 | if { (ac_try="$ac_link" | |
15229 | case "(($ac_try" in | |
15230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15231 | *) ac_try_echo=$ac_try;; | |
15232 | esac | |
15233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15234 | $as_echo "$ac_try_echo") >&5 | |
15235 | (eval "$ac_link") 2>conftest.er1 | |
15236 | ac_status=$? | |
15237 | grep -v '^ *+' conftest.er1 >conftest.err | |
15238 | rm -f conftest.er1 | |
15239 | cat conftest.err >&5 | |
15240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15241 | (exit $ac_status); } && { | |
15242 | test -z "$ac_c_werror_flag" || | |
15243 | test ! -s conftest.err | |
15244 | } && test -s conftest$ac_exeext && { | |
15245 | test "$cross_compiling" = yes || | |
15246 | $as_test_x conftest$ac_exeext | |
15247 | }; then | |
15248 | ac_cv_lib_z_crc32=yes | |
15249 | else | |
15250 | $as_echo "$as_me: failed program was:" >&5 | |
15251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15252 | ||
15253 | ac_cv_lib_z_crc32=no | |
15254 | fi | |
15255 | ||
15256 | rm -rf conftest.dSYM | |
15257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15258 | conftest$ac_exeext conftest.$ac_ext | |
15259 | LIBS=$ac_check_lib_save_LIBS | |
15260 | fi | |
15261 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5 | |
15262 | $as_echo "$ac_cv_lib_z_crc32" >&6; } | |
15263 | if test "x$ac_cv_lib_z_crc32" = x""yes; then | |
15264 | cat >>confdefs.h <<_ACEOF | |
15265 | #define HAVE_LIBZ 1 | |
15266 | _ACEOF | |
15267 | ||
15268 | LIBS="-lz $LIBS" | |
15269 | ||
15270 | else | |
15271 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
15272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15273 | { { $as_echo "$as_me:$LINENO: error: | |
15274 | *** crc32() missing, zlib-devel package required | |
15275 | See \`config.log' for more details." >&5 | |
15276 | $as_echo "$as_me: error: | |
15277 | *** crc32() missing, zlib-devel package required | |
15278 | See \`config.log' for more details." >&2;} | |
15279 | { (exit 1); exit 1; }; }; } | |
15280 | fi | |
15281 | ||
15282 | ||
15283 | ZLIB="-lz" | |
15284 | ||
15285 | ||
15286 | cat >>confdefs.h <<\_ACEOF | |
15287 | #define HAVE_ZLIB 1 | |
15288 | _ACEOF | |
15289 | ||
15290 | ||
15291 | ||
15292 | LIBUUID= | |
15293 | ||
15294 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then | |
15295 | { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 | |
15296 | $as_echo_n "checking for uuid/uuid.h... " >&6; } | |
15297 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then | |
15298 | $as_echo_n "(cached) " >&6 | |
15299 | fi | |
15300 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 | |
15301 | $as_echo "$ac_cv_header_uuid_uuid_h" >&6; } | |
15302 | else | |
15303 | # Is the header compilable? | |
15304 | { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 | |
15305 | $as_echo_n "checking uuid/uuid.h usability... " >&6; } | |
15306 | cat >conftest.$ac_ext <<_ACEOF | |
15307 | /* confdefs.h. */ | |
15308 | _ACEOF | |
15309 | cat confdefs.h >>conftest.$ac_ext | |
15310 | cat >>conftest.$ac_ext <<_ACEOF | |
15311 | /* end confdefs.h. */ | |
15312 | $ac_includes_default | |
15313 | #include <uuid/uuid.h> | |
15314 | _ACEOF | |
15315 | rm -f conftest.$ac_objext | |
15316 | if { (ac_try="$ac_compile" | |
15317 | case "(($ac_try" in | |
15318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15319 | *) ac_try_echo=$ac_try;; | |
15320 | esac | |
15321 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15322 | $as_echo "$ac_try_echo") >&5 | |
15323 | (eval "$ac_compile") 2>conftest.er1 | |
15324 | ac_status=$? | |
15325 | grep -v '^ *+' conftest.er1 >conftest.err | |
15326 | rm -f conftest.er1 | |
15327 | cat conftest.err >&5 | |
15328 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15329 | (exit $ac_status); } && { | |
15330 | test -z "$ac_c_werror_flag" || | |
15331 | test ! -s conftest.err | |
15332 | } && test -s conftest.$ac_objext; then | |
15333 | ac_header_compiler=yes | |
15334 | else | |
15335 | $as_echo "$as_me: failed program was:" >&5 | |
15336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15337 | ||
15338 | ac_header_compiler=no | |
15339 | fi | |
15340 | ||
15341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15342 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15343 | $as_echo "$ac_header_compiler" >&6; } | |
15344 | ||
15345 | # Is the header present? | |
15346 | { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 | |
15347 | $as_echo_n "checking uuid/uuid.h presence... " >&6; } | |
15348 | cat >conftest.$ac_ext <<_ACEOF | |
15349 | /* confdefs.h. */ | |
15350 | _ACEOF | |
15351 | cat confdefs.h >>conftest.$ac_ext | |
15352 | cat >>conftest.$ac_ext <<_ACEOF | |
15353 | /* end confdefs.h. */ | |
15354 | #include <uuid/uuid.h> | |
15355 | _ACEOF | |
15356 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15357 | case "(($ac_try" in | |
15358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15359 | *) ac_try_echo=$ac_try;; | |
15360 | esac | |
15361 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15362 | $as_echo "$ac_try_echo") >&5 | |
15363 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15364 | ac_status=$? | |
15365 | grep -v '^ *+' conftest.er1 >conftest.err | |
15366 | rm -f conftest.er1 | |
15367 | cat conftest.err >&5 | |
15368 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15369 | (exit $ac_status); } >/dev/null && { | |
15370 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15371 | test ! -s conftest.err | |
15372 | }; then | |
15373 | ac_header_preproc=yes | |
15374 | else | |
15375 | $as_echo "$as_me: failed program was:" >&5 | |
15376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15377 | ||
15378 | ac_header_preproc=no | |
15379 | fi | |
15380 | ||
15381 | rm -f conftest.err conftest.$ac_ext | |
15382 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15383 | $as_echo "$ac_header_preproc" >&6; } | |
15384 | ||
15385 | # So? What about this header? | |
15386 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15387 | yes:no: ) | |
15388 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15389 | $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15390 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 | |
15391 | $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} | |
15392 | ac_header_preproc=yes | |
15393 | ;; | |
15394 | no:yes:* ) | |
15395 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 | |
15396 | $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} | |
15397 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 | |
15398 | $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} | |
15399 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 | |
15400 | $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} | |
15401 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15402 | $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15403 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 | |
15404 | $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} | |
15405 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 | |
15406 | $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} | |
15407 | ||
15408 | ;; | |
15409 | esac | |
15410 | { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 | |
15411 | $as_echo_n "checking for uuid/uuid.h... " >&6; } | |
15412 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then | |
15413 | $as_echo_n "(cached) " >&6 | |
15414 | else | |
15415 | ac_cv_header_uuid_uuid_h=$ac_header_preproc | |
15416 | fi | |
15417 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 | |
15418 | $as_echo "$ac_cv_header_uuid_uuid_h" >&6; } | |
15419 | ||
15420 | fi | |
15421 | if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then | |
15422 | : | |
15423 | else | |
15424 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
15425 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15426 | { { $as_echo "$as_me:$LINENO: error: | |
15427 | *** uuid/uuid.h missing, libuuid-devel package required | |
15428 | See \`config.log' for more details." >&5 | |
15429 | $as_echo "$as_me: error: | |
15430 | *** uuid/uuid.h missing, libuuid-devel package required | |
15431 | See \`config.log' for more details." >&2;} | |
15432 | { (exit 1); exit 1; }; }; } | |
15433 | fi | |
15434 | ||
15435 | ||
15436 | ||
15437 | ||
15438 | { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 | |
15439 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
15440 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then | |
15441 | $as_echo_n "(cached) " >&6 | |
15442 | else | |
15443 | ac_check_lib_save_LIBS=$LIBS | |
15444 | LIBS="-luuid $LIBS" | |
15445 | cat >conftest.$ac_ext <<_ACEOF | |
15446 | /* confdefs.h. */ | |
15447 | _ACEOF | |
15448 | cat confdefs.h >>conftest.$ac_ext | |
15449 | cat >>conftest.$ac_ext <<_ACEOF | |
15450 | /* end confdefs.h. */ | |
15451 | ||
15452 | /* Override any GCC internal prototype to avoid an error. | |
15453 | Use char because int might match the return type of a GCC | |
15454 | builtin and then its argument prototype would still apply. */ | |
15455 | #ifdef __cplusplus | |
15456 | extern "C" | |
15457 | #endif | |
15458 | char uuid_generate (); | |
15459 | int | |
15460 | main () | |
15461 | { | |
15462 | return uuid_generate (); | |
15463 | ; | |
15464 | return 0; | |
15465 | } | |
15466 | _ACEOF | |
15467 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15468 | if { (ac_try="$ac_link" | |
15469 | case "(($ac_try" in | |
15470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15471 | *) ac_try_echo=$ac_try;; | |
15472 | esac | |
15473 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15474 | $as_echo "$ac_try_echo") >&5 | |
15475 | (eval "$ac_link") 2>conftest.er1 | |
15476 | ac_status=$? | |
15477 | grep -v '^ *+' conftest.er1 >conftest.err | |
15478 | rm -f conftest.er1 | |
15479 | cat conftest.err >&5 | |
15480 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15481 | (exit $ac_status); } && { | |
15482 | test -z "$ac_c_werror_flag" || | |
15483 | test ! -s conftest.err | |
15484 | } && test -s conftest$ac_exeext && { | |
15485 | test "$cross_compiling" = yes || | |
15486 | $as_test_x conftest$ac_exeext | |
15487 | }; then | |
15488 | ac_cv_lib_uuid_uuid_generate=yes | |
15489 | else | |
15490 | $as_echo "$as_me: failed program was:" >&5 | |
15491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15492 | ||
15493 | ac_cv_lib_uuid_uuid_generate=no | |
15494 | fi | |
15495 | ||
15496 | rm -rf conftest.dSYM | |
15497 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15498 | conftest$ac_exeext conftest.$ac_ext | |
15499 | LIBS=$ac_check_lib_save_LIBS | |
15500 | fi | |
15501 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
15502 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
15503 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then | |
15504 | cat >>confdefs.h <<_ACEOF | |
15505 | #define HAVE_LIBUUID 1 | |
15506 | _ACEOF | |
15507 | ||
15508 | LIBS="-luuid $LIBS" | |
15509 | ||
15510 | else | |
15511 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
15512 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15513 | { { $as_echo "$as_me:$LINENO: error: | |
15514 | *** uuid_generate() missing, libuuid-devel package required | |
15515 | See \`config.log' for more details." >&5 | |
15516 | $as_echo "$as_me: error: | |
15517 | *** uuid_generate() missing, libuuid-devel package required | |
15518 | See \`config.log' for more details." >&2;} | |
15519 | { (exit 1); exit 1; }; }; } | |
15520 | fi | |
15521 | ||
15522 | ||
15523 | ||
15524 | { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5 | |
15525 | $as_echo_n "checking for uuid_is_null in -luuid... " >&6; } | |
15526 | if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then | |
15527 | $as_echo_n "(cached) " >&6 | |
15528 | else | |
15529 | ac_check_lib_save_LIBS=$LIBS | |
15530 | LIBS="-luuid $LIBS" | |
15531 | cat >conftest.$ac_ext <<_ACEOF | |
15532 | /* confdefs.h. */ | |
15533 | _ACEOF | |
15534 | cat confdefs.h >>conftest.$ac_ext | |
15535 | cat >>conftest.$ac_ext <<_ACEOF | |
15536 | /* end confdefs.h. */ | |
15537 | ||
15538 | /* Override any GCC internal prototype to avoid an error. | |
15539 | Use char because int might match the return type of a GCC | |
15540 | builtin and then its argument prototype would still apply. */ | |
15541 | #ifdef __cplusplus | |
15542 | extern "C" | |
15543 | #endif | |
15544 | char uuid_is_null (); | |
15545 | int | |
15546 | main () | |
15547 | { | |
15548 | return uuid_is_null (); | |
15549 | ; | |
15550 | return 0; | |
15551 | } | |
15552 | _ACEOF | |
15553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15554 | if { (ac_try="$ac_link" | |
15555 | case "(($ac_try" in | |
15556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15557 | *) ac_try_echo=$ac_try;; | |
15558 | esac | |
15559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15560 | $as_echo "$ac_try_echo") >&5 | |
15561 | (eval "$ac_link") 2>conftest.er1 | |
15562 | ac_status=$? | |
15563 | grep -v '^ *+' conftest.er1 >conftest.err | |
15564 | rm -f conftest.er1 | |
15565 | cat conftest.err >&5 | |
15566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15567 | (exit $ac_status); } && { | |
15568 | test -z "$ac_c_werror_flag" || | |
15569 | test ! -s conftest.err | |
15570 | } && test -s conftest$ac_exeext && { | |
15571 | test "$cross_compiling" = yes || | |
15572 | $as_test_x conftest$ac_exeext | |
15573 | }; then | |
15574 | ac_cv_lib_uuid_uuid_is_null=yes | |
15575 | else | |
15576 | $as_echo "$as_me: failed program was:" >&5 | |
15577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15578 | ||
15579 | ac_cv_lib_uuid_uuid_is_null=no | |
15580 | fi | |
15581 | ||
15582 | rm -rf conftest.dSYM | |
15583 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15584 | conftest$ac_exeext conftest.$ac_ext | |
15585 | LIBS=$ac_check_lib_save_LIBS | |
15586 | fi | |
15587 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
15588 | $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; } | |
15589 | if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then | |
15590 | cat >>confdefs.h <<_ACEOF | |
15591 | #define HAVE_LIBUUID 1 | |
15592 | _ACEOF | |
15593 | ||
15594 | LIBS="-luuid $LIBS" | |
15595 | ||
15596 | else | |
15597 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
15598 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15599 | { { $as_echo "$as_me:$LINENO: error: | |
15600 | *** uuid_is_null() missing, libuuid-devel package required | |
15601 | See \`config.log' for more details." >&5 | |
15602 | $as_echo "$as_me: error: | |
15603 | *** uuid_is_null() missing, libuuid-devel package required | |
15604 | See \`config.log' for more details." >&2;} | |
15605 | { (exit 1); exit 1; }; }; } | |
15606 | fi | |
15607 | ||
15608 | ||
15609 | LIBUUID="-luuid" | |
15610 | ||
15611 | ||
15612 | cat >>confdefs.h <<\_ACEOF | |
15613 | #define HAVE_LIBUUID 1 | |
15614 | _ACEOF | |
15615 | ||
15616 | ||
15617 | ||
15618 | ||
15619 | # Check whether --with-blkid was given. | |
15620 | if test "${with_blkid+set}" = set; then | |
15621 | withval=$with_blkid; | |
15622 | else | |
15623 | with_blkid=check | |
15624 | fi | |
15625 | ||
15626 | ||
15627 | LIBBLKID= | |
15628 | if test "x$with_blkid" != xno; then | |
15629 | ||
15630 | { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5 | |
15631 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
15632 | if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then | |
15633 | $as_echo_n "(cached) " >&6 | |
15634 | else | |
15635 | ac_check_lib_save_LIBS=$LIBS | |
15636 | LIBS="-lblkid $LIBS" | |
15637 | cat >conftest.$ac_ext <<_ACEOF | |
15638 | /* confdefs.h. */ | |
15639 | _ACEOF | |
15640 | cat confdefs.h >>conftest.$ac_ext | |
15641 | cat >>conftest.$ac_ext <<_ACEOF | |
15642 | /* end confdefs.h. */ | |
15643 | ||
15644 | /* Override any GCC internal prototype to avoid an error. | |
15645 | Use char because int might match the return type of a GCC | |
15646 | builtin and then its argument prototype would still apply. */ | |
15647 | #ifdef __cplusplus | |
15648 | extern "C" | |
15649 | #endif | |
15650 | char blkid_get_cache (); | |
15651 | int | |
15652 | main () | |
15653 | { | |
15654 | return blkid_get_cache (); | |
15655 | ; | |
15656 | return 0; | |
15657 | } | |
15658 | _ACEOF | |
15659 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15660 | if { (ac_try="$ac_link" | |
15661 | case "(($ac_try" in | |
15662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15663 | *) ac_try_echo=$ac_try;; | |
15664 | esac | |
15665 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15666 | $as_echo "$ac_try_echo") >&5 | |
15667 | (eval "$ac_link") 2>conftest.er1 | |
15668 | ac_status=$? | |
15669 | grep -v '^ *+' conftest.er1 >conftest.err | |
15670 | rm -f conftest.er1 | |
15671 | cat conftest.err >&5 | |
15672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15673 | (exit $ac_status); } && { | |
15674 | test -z "$ac_c_werror_flag" || | |
15675 | test ! -s conftest.err | |
15676 | } && test -s conftest$ac_exeext && { | |
15677 | test "$cross_compiling" = yes || | |
15678 | $as_test_x conftest$ac_exeext | |
15679 | }; then | |
15680 | ac_cv_lib_blkid_blkid_get_cache=yes | |
15681 | else | |
15682 | $as_echo "$as_me: failed program was:" >&5 | |
15683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15684 | ||
15685 | ac_cv_lib_blkid_blkid_get_cache=no | |
15686 | fi | |
15687 | ||
15688 | rm -rf conftest.dSYM | |
15689 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15690 | conftest$ac_exeext conftest.$ac_ext | |
15691 | LIBS=$ac_check_lib_save_LIBS | |
15692 | fi | |
15693 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
15694 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
15695 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then | |
15696 | ||
15697 | { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5 | |
15698 | $as_echo_n "checking for blkid zfs support... " >&6; } | |
15699 | ||
15700 | ZFS_DEV=`mktemp` | |
15701 | dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \ | |
15702 | >/dev/null 2>/dev/null | |
15703 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
15704 | dd of=$ZFS_DEV bs=1k count=8 \ | |
15705 | seek=132 conv=notrunc &>/dev/null \ | |
15706 | >/dev/null 2>/dev/null | |
15707 | ||
15708 | saved_LDFLAGS="$LDFLAGS" | |
15709 | LDFLAGS="-lblkid" | |
15710 | ||
15711 | if test "$cross_compiling" = yes; then | |
15712 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
15713 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15714 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15715 | See \`config.log' for more details." >&5 | |
15716 | $as_echo "$as_me: error: cannot run test program while cross compiling | |
15717 | See \`config.log' for more details." >&2;} | |
15718 | { (exit 1); exit 1; }; }; } | |
15719 | else | |
15720 | cat >conftest.$ac_ext <<_ACEOF | |
15721 | /* confdefs.h. */ | |
15722 | _ACEOF | |
15723 | cat confdefs.h >>conftest.$ac_ext | |
15724 | cat >>conftest.$ac_ext <<_ACEOF | |
15725 | /* end confdefs.h. */ | |
15726 | ||
15727 | #include <stdio.h> | |
15728 | #include <blkid/blkid.h> | |
15729 | ||
15730 | int | |
15731 | main () | |
15732 | { | |
15733 | ||
15734 | blkid_cache cache; | |
15735 | char *value; | |
15736 | ||
15737 | if (blkid_get_cache(&cache, NULL) < 0) | |
15738 | return 1; | |
15739 | ||
15740 | value = blkid_get_tag_value(cache, "TYPE", | |
15741 | "$ZFS_DEV"); | |
15742 | if (!value) { | |
15743 | blkid_put_cache(cache); | |
15744 | return 2; | |
15745 | } | |
15746 | ||
15747 | if (strcmp(value, "zfs")) { | |
15748 | free(value); | |
15749 | blkid_put_cache(cache); | |
15750 | return 3; | |
15751 | } | |
15752 | ||
15753 | free(value); | |
15754 | blkid_put_cache(cache); | |
15755 | ||
15756 | ; | |
15757 | return 0; | |
15758 | } | |
15759 | _ACEOF | |
15760 | rm -f conftest$ac_exeext | |
15761 | if { (ac_try="$ac_link" | |
15762 | case "(($ac_try" in | |
15763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15764 | *) ac_try_echo=$ac_try;; | |
15765 | esac | |
15766 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15767 | $as_echo "$ac_try_echo") >&5 | |
15768 | (eval "$ac_link") 2>&5 | |
15769 | ac_status=$? | |
15770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15771 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15772 | { (case "(($ac_try" in | |
15773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15774 | *) ac_try_echo=$ac_try;; | |
15775 | esac | |
15776 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15777 | $as_echo "$ac_try_echo") >&5 | |
15778 | (eval "$ac_try") 2>&5 | |
15779 | ac_status=$? | |
15780 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15781 | (exit $ac_status); }; }; then | |
15782 | ||
15783 | rm -f $ZFS_DEV | |
15784 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
15785 | $as_echo "yes" >&6; } | |
15786 | LIBBLKID="-lblkid" | |
15787 | ||
15788 | ||
15789 | cat >>confdefs.h <<\_ACEOF | |
15790 | #define HAVE_LIBBLKID 1 | |
15791 | _ACEOF | |
15792 | ||
15793 | ||
15794 | else | |
15795 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
15796 | $as_echo "$as_me: failed program was:" >&5 | |
15797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15798 | ||
15799 | ( exit $ac_status ) | |
15800 | ||
15801 | rm -f $ZFS_DEV | |
15802 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
15803 | $as_echo "no" >&6; } | |
15804 | if test "x$with_blkid" != xcheck; then | |
15805 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
15806 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15807 | { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable | |
15808 | See \`config.log' for more details." >&5 | |
15809 | $as_echo "$as_me: error: --with-blkid given but unavailable | |
15810 | See \`config.log' for more details." >&2;} | |
15811 | { (exit 1); exit 1; }; }; } | |
15812 | fi | |
15813 | ||
15814 | ||
15815 | fi | |
15816 | rm -rf conftest.dSYM | |
15817 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15818 | fi | |
15819 | ||
15820 | ||
15821 | ||
15822 | LDFLAGS="$saved_LDFLAGS" | |
15823 | ||
15824 | else | |
15825 | ||
15826 | if test "x$with_blkid" != xcheck; then | |
15827 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
15828 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15829 | { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable | |
15830 | See \`config.log' for more details." >&5 | |
15831 | $as_echo "$as_me: error: --with-blkid given but unavailable | |
15832 | See \`config.log' for more details." >&2;} | |
15833 | { (exit 1); exit 1; }; }; } | |
15834 | fi | |
15835 | ||
15836 | ||
15837 | ||
15838 | fi | |
15839 | ||
15840 | ||
15841 | fi | |
15842 | ||
15843 | ||
15844 | ||
b3259b6a BB |
15845 | |
15846 | # Check whether --with-selinux was given. | |
15847 | if test "${with_selinux+set}" = set; then | |
15848 | withval=$with_selinux; | |
15849 | else | |
15850 | with_selinux=check | |
15851 | fi | |
15852 | ||
15853 | ||
15854 | LIBSELINUX= | |
15855 | if test "x$with_selinux" != xno; then | |
15856 | ||
15857 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | |
15858 | { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | |
15859 | $as_echo_n "checking for selinux/selinux.h... " >&6; } | |
15860 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | |
15861 | $as_echo_n "(cached) " >&6 | |
15862 | fi | |
15863 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | |
15864 | $as_echo "$ac_cv_header_selinux_selinux_h" >&6; } | |
15865 | else | |
15866 | # Is the header compilable? | |
15867 | { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | |
15868 | $as_echo_n "checking selinux/selinux.h usability... " >&6; } | |
15869 | cat >conftest.$ac_ext <<_ACEOF | |
15870 | /* confdefs.h. */ | |
15871 | _ACEOF | |
15872 | cat confdefs.h >>conftest.$ac_ext | |
15873 | cat >>conftest.$ac_ext <<_ACEOF | |
15874 | /* end confdefs.h. */ | |
15875 | $ac_includes_default | |
15876 | #include <selinux/selinux.h> | |
15877 | _ACEOF | |
15878 | rm -f conftest.$ac_objext | |
15879 | if { (ac_try="$ac_compile" | |
15880 | case "(($ac_try" in | |
15881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15882 | *) ac_try_echo=$ac_try;; | |
15883 | esac | |
15884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15885 | $as_echo "$ac_try_echo") >&5 | |
15886 | (eval "$ac_compile") 2>conftest.er1 | |
15887 | ac_status=$? | |
15888 | grep -v '^ *+' conftest.er1 >conftest.err | |
15889 | rm -f conftest.er1 | |
15890 | cat conftest.err >&5 | |
15891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15892 | (exit $ac_status); } && { | |
15893 | test -z "$ac_c_werror_flag" || | |
15894 | test ! -s conftest.err | |
15895 | } && test -s conftest.$ac_objext; then | |
15896 | ac_header_compiler=yes | |
15897 | else | |
15898 | $as_echo "$as_me: failed program was:" >&5 | |
15899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15900 | ||
15901 | ac_header_compiler=no | |
15902 | fi | |
15903 | ||
15904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15905 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15906 | $as_echo "$ac_header_compiler" >&6; } | |
15907 | ||
15908 | # Is the header present? | |
15909 | { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | |
15910 | $as_echo_n "checking selinux/selinux.h presence... " >&6; } | |
15911 | cat >conftest.$ac_ext <<_ACEOF | |
15912 | /* confdefs.h. */ | |
15913 | _ACEOF | |
15914 | cat confdefs.h >>conftest.$ac_ext | |
15915 | cat >>conftest.$ac_ext <<_ACEOF | |
15916 | /* end confdefs.h. */ | |
15917 | #include <selinux/selinux.h> | |
15918 | _ACEOF | |
15919 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15920 | case "(($ac_try" in | |
15921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15922 | *) ac_try_echo=$ac_try;; | |
15923 | esac | |
15924 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15925 | $as_echo "$ac_try_echo") >&5 | |
15926 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15927 | ac_status=$? | |
15928 | grep -v '^ *+' conftest.er1 >conftest.err | |
15929 | rm -f conftest.er1 | |
15930 | cat conftest.err >&5 | |
15931 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15932 | (exit $ac_status); } >/dev/null && { | |
15933 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15934 | test ! -s conftest.err | |
15935 | }; then | |
15936 | ac_header_preproc=yes | |
15937 | else | |
15938 | $as_echo "$as_me: failed program was:" >&5 | |
15939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15940 | ||
15941 | ac_header_preproc=no | |
15942 | fi | |
15943 | ||
15944 | rm -f conftest.err conftest.$ac_ext | |
15945 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15946 | $as_echo "$ac_header_preproc" >&6; } | |
15947 | ||
15948 | # So? What about this header? | |
15949 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15950 | yes:no: ) | |
15951 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15952 | $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15953 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | |
15954 | $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | |
15955 | ac_header_preproc=yes | |
15956 | ;; | |
15957 | no:yes:* ) | |
15958 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | |
15959 | $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | |
15960 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | |
15961 | $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | |
15962 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | |
15963 | $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | |
15964 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15965 | $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15966 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | |
15967 | $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | |
15968 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | |
15969 | $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | |
15970 | ||
15971 | ;; | |
15972 | esac | |
15973 | { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | |
15974 | $as_echo_n "checking for selinux/selinux.h... " >&6; } | |
15975 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | |
15976 | $as_echo_n "(cached) " >&6 | |
15977 | else | |
15978 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | |
15979 | fi | |
15980 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | |
15981 | $as_echo "$ac_cv_header_selinux_selinux_h" >&6; } | |
15982 | ||
15983 | fi | |
15984 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then | |
15985 | ||
15986 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 | |
15987 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
15988 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then | |
15989 | $as_echo_n "(cached) " >&6 | |
15990 | else | |
15991 | ac_check_lib_save_LIBS=$LIBS | |
15992 | LIBS="-lselinux $LIBS" | |
15993 | cat >conftest.$ac_ext <<_ACEOF | |
15994 | /* confdefs.h. */ | |
15995 | _ACEOF | |
15996 | cat confdefs.h >>conftest.$ac_ext | |
15997 | cat >>conftest.$ac_ext <<_ACEOF | |
15998 | /* end confdefs.h. */ | |
15999 | ||
16000 | /* Override any GCC internal prototype to avoid an error. | |
16001 | Use char because int might match the return type of a GCC | |
16002 | builtin and then its argument prototype would still apply. */ | |
16003 | #ifdef __cplusplus | |
16004 | extern "C" | |
16005 | #endif | |
16006 | char is_selinux_enabled (); | |
16007 | int | |
16008 | main () | |
16009 | { | |
16010 | return is_selinux_enabled (); | |
16011 | ; | |
16012 | return 0; | |
16013 | } | |
16014 | _ACEOF | |
16015 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16016 | if { (ac_try="$ac_link" | |
16017 | case "(($ac_try" in | |
16018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16019 | *) ac_try_echo=$ac_try;; | |
16020 | esac | |
16021 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16022 | $as_echo "$ac_try_echo") >&5 | |
16023 | (eval "$ac_link") 2>conftest.er1 | |
16024 | ac_status=$? | |
16025 | grep -v '^ *+' conftest.er1 >conftest.err | |
16026 | rm -f conftest.er1 | |
16027 | cat conftest.err >&5 | |
16028 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16029 | (exit $ac_status); } && { | |
16030 | test -z "$ac_c_werror_flag" || | |
16031 | test ! -s conftest.err | |
16032 | } && test -s conftest$ac_exeext && { | |
16033 | test "$cross_compiling" = yes || | |
16034 | $as_test_x conftest$ac_exeext | |
16035 | }; then | |
16036 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
16037 | else | |
16038 | $as_echo "$as_me: failed program was:" >&5 | |
16039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16040 | ||
16041 | ac_cv_lib_selinux_is_selinux_enabled=no | |
16042 | fi | |
16043 | ||
16044 | rm -rf conftest.dSYM | |
16045 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16046 | conftest$ac_exeext conftest.$ac_ext | |
16047 | LIBS=$ac_check_lib_save_LIBS | |
16048 | fi | |
16049 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 | |
16050 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
16051 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
16052 | ||
16053 | LIBSELINUX="-lselinux" | |
16054 | ||
16055 | ||
16056 | cat >>confdefs.h <<\_ACEOF | |
16057 | #define HAVE_LIBSELINUX 1 | |
16058 | _ACEOF | |
16059 | ||
16060 | ||
16061 | else | |
16062 | ||
16063 | if test "x$with_selinux" != xcheck; then | |
16064 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
16065 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16066 | { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable | |
16067 | See \`config.log' for more details." >&5 | |
16068 | $as_echo "$as_me: error: --with-selinux given but unavailable | |
16069 | See \`config.log' for more details." >&2;} | |
16070 | { (exit 1); exit 1; }; }; } | |
16071 | ||
16072 | fi | |
16073 | ||
16074 | ||
16075 | fi | |
16076 | ||
16077 | ||
16078 | else | |
16079 | ||
16080 | if test "x$with_selinux" != xcheck; then | |
16081 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
16082 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16083 | { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable | |
16084 | See \`config.log' for more details." >&5 | |
16085 | $as_echo "$as_me: error: --with-selinux given but unavailable | |
16086 | See \`config.log' for more details." >&2;} | |
16087 | { (exit 1); exit 1; }; }; } | |
16088 | ||
16089 | fi | |
16090 | ||
16091 | ||
16092 | fi | |
16093 | ||
16094 | ||
16095 | ||
16096 | else | |
16097 | ||
16098 | { $as_echo "$as_me:$LINENO: checking for selinux support" >&5 | |
16099 | $as_echo_n "checking for selinux support... " >&6; } | |
16100 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16101 | $as_echo "no" >&6; } | |
16102 | ||
16103 | fi | |
16104 | ||
16105 | ||
16106 | ||
e70e591c BB |
16107 | { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5 |
16108 | $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; } | |
16109 | ||
16110 | saved_flags="$CFLAGS" | |
16111 | CFLAGS="$CFLAGS -Wframe-larger-than=1024" | |
16112 | ||
16113 | if test "$cross_compiling" = yes; then | |
16114 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
16115 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16116 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16117 | See \`config.log' for more details." >&5 | |
16118 | $as_echo "$as_me: error: cannot run test program while cross compiling | |
16119 | See \`config.log' for more details." >&2;} | |
16120 | { (exit 1); exit 1; }; }; } | |
16121 | else | |
16122 | cat >conftest.$ac_ext <<_ACEOF | |
16123 | /* confdefs.h. */ | |
16124 | _ACEOF | |
16125 | cat confdefs.h >>conftest.$ac_ext | |
16126 | cat >>conftest.$ac_ext <<_ACEOF | |
16127 | /* end confdefs.h. */ | |
16128 | ||
16129 | int | |
16130 | main () | |
16131 | { | |
16132 | ||
16133 | ; | |
16134 | return 0; | |
16135 | } | |
16136 | _ACEOF | |
16137 | rm -f conftest$ac_exeext | |
16138 | if { (ac_try="$ac_link" | |
16139 | case "(($ac_try" in | |
16140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16141 | *) ac_try_echo=$ac_try;; | |
16142 | esac | |
16143 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16144 | $as_echo "$ac_try_echo") >&5 | |
16145 | (eval "$ac_link") 2>&5 | |
16146 | ac_status=$? | |
16147 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16148 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16149 | { (case "(($ac_try" in | |
16150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16151 | *) ac_try_echo=$ac_try;; | |
16152 | esac | |
16153 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16154 | $as_echo "$ac_try_echo") >&5 | |
16155 | (eval "$ac_try") 2>&5 | |
16156 | ac_status=$? | |
16157 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16158 | (exit $ac_status); }; }; then | |
16159 | ||
16160 | FRAME_LARGER_THAN=-Wframe-larger-than=1024 | |
16161 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16162 | $as_echo "yes" >&6; } | |
16163 | ||
16164 | else | |
16165 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
16166 | $as_echo "$as_me: failed program was:" >&5 | |
16167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16168 | ||
16169 | ( exit $ac_status ) | |
16170 | ||
16171 | FRAME_LARGER_THAN= | |
16172 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16173 | $as_echo "no" >&6; } | |
16174 | ||
16175 | fi | |
16176 | rm -rf conftest.dSYM | |
16177 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16178 | fi | |
16179 | ||
16180 | ||
16181 | ||
16182 | CFLAGS="$saved_flags" | |
16183 | ||
16184 | ||
16185 | ||
16186 | ||
16187 | { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5 | |
16188 | $as_echo_n "checking whether pthread stack includes guard... " >&6; } | |
16189 | ||
16190 | saved_CFLAGS="$CFLAGS" | |
16191 | CFLAGS="-fstack-check" | |
16192 | saved_LDFLAGS="$LDFLAGS" | |
16193 | LDFLAGS="-lpthread" | |
16194 | ||
16195 | if test "$cross_compiling" = yes; then | |
16196 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
16197 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16198 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16199 | See \`config.log' for more details." >&5 | |
16200 | $as_echo "$as_me: error: cannot run test program while cross compiling | |
16201 | See \`config.log' for more details." >&2;} | |
16202 | { (exit 1); exit 1; }; }; } | |
16203 | else | |
16204 | cat >conftest.$ac_ext <<_ACEOF | |
16205 | /* confdefs.h. */ | |
16206 | _ACEOF | |
16207 | cat confdefs.h >>conftest.$ac_ext | |
16208 | cat >>conftest.$ac_ext <<_ACEOF | |
16209 | /* end confdefs.h. */ | |
16210 | ||
16211 | #include <pthread.h> | |
16212 | #include <sys/resource.h> | |
16213 | #include <unistd.h> | |
16214 | #include <bits/local_lim.h> | |
16215 | ||
16216 | #define PAGESIZE (sysconf(_SC_PAGESIZE)) | |
16217 | #define STACK_SIZE 8192 | |
16218 | #define BUFSIZE 4096 | |
16219 | ||
16220 | void * func(void *arg) | |
16221 | { | |
16222 | char buf[BUFSIZE]; | |
16223 | } | |
16224 | ||
16225 | int | |
16226 | main () | |
16227 | { | |
16228 | ||
16229 | pthread_t tid; | |
16230 | pthread_attr_t attr; | |
16231 | struct rlimit l; | |
16232 | ||
16233 | l.rlim_cur = 0; | |
16234 | l.rlim_max = 0; | |
16235 | setrlimit(RLIMIT_CORE, &l); | |
16236 | pthread_attr_init(&attr); | |
16237 | pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE); | |
16238 | pthread_attr_setguardsize(&attr, PAGESIZE); | |
16239 | pthread_create(&tid, &attr, func, NULL); | |
16240 | pthread_join(tid, NULL); | |
16241 | ||
16242 | ; | |
16243 | return 0; | |
16244 | } | |
16245 | _ACEOF | |
16246 | rm -f conftest$ac_exeext | |
16247 | if { (ac_try="$ac_link" | |
16248 | case "(($ac_try" in | |
16249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16250 | *) ac_try_echo=$ac_try;; | |
16251 | esac | |
16252 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16253 | $as_echo "$ac_try_echo") >&5 | |
16254 | (eval "$ac_link") 2>&5 | |
16255 | ac_status=$? | |
16256 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16257 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16258 | { (case "(($ac_try" in | |
16259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16260 | *) ac_try_echo=$ac_try;; | |
16261 | esac | |
16262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
16263 | $as_echo "$ac_try_echo") >&5 | |
16264 | (eval "$ac_try") 2>&5 | |
16265 | ac_status=$? | |
16266 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16267 | (exit $ac_status); }; }; then | |
16268 | ||
16269 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16270 | $as_echo "no" >&6; } | |
16271 | ||
16272 | else | |
16273 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
16274 | $as_echo "$as_me: failed program was:" >&5 | |
16275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16276 | ||
16277 | ( exit $ac_status ) | |
16278 | ||
16279 | ||
16280 | cat >>confdefs.h <<\_ACEOF | |
16281 | #define NPTL_GUARD_WITHIN_STACK 1 | |
16282 | _ACEOF | |
16283 | ||
16284 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16285 | $as_echo "yes" >&6; } | |
16286 | ||
16287 | fi | |
16288 | rm -rf conftest.dSYM | |
16289 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16290 | fi | |
16291 | ||
16292 | ||
16293 | CFLAGS="$saved_CFLAGS" | |
16294 | LDFLAGS="$saved_LDFLAGS" | |
16295 | ||
16296 | ;; | |
16297 | all) | |
16298 | ||
16299 | ||
16300 | # Check whether --with-linux was given. | |
16301 | if test "${with_linux+set}" = set; then | |
16302 | withval=$with_linux; kernelsrc="$withval" | |
16303 | fi | |
16304 | ||
16305 | ||
16306 | ||
16307 | # Check whether --with-linux-obj was given. | |
16308 | if test "${with_linux_obj+set}" = set; then | |
16309 | withval=$with_linux_obj; kernelbuild="$withval" | |
16310 | fi | |
16311 | ||
16312 | ||
16313 | { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5 | |
16314 | $as_echo_n "checking kernel source directory... " >&6; } | |
16315 | if test -z "$kernelsrc"; then | |
1b94c25c BB |
16316 | if test -e "/lib/modules/$(uname -r)/source"; then |
16317 | headersdir="/lib/modules/$(uname -r)/source" | |
16318 | sourcelink=$(readlink -f "$headersdir") | |
16319 | elif test -e "/lib/modules/$(uname -r)/build"; then | |
16320 | headersdir="/lib/modules/$(uname -r)/build" | |
e70e591c BB |
16321 | sourcelink=$(readlink -f "$headersdir") |
16322 | else | |
16323 | sourcelink=$(ls -1d /usr/src/kernels/* \ | |
16324 | /usr/src/linux-* \ | |
16325 | 2>/dev/null | grep -v obj | tail -1) | |
16326 | fi | |
16327 | ||
16328 | if test -n "$sourcelink" && test -e ${sourcelink}; then | |
16329 | kernelsrc=`readlink -f ${sourcelink}` | |
16330 | else | |
16331 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
16332 | $as_echo "Not found" >&6; } | |
16333 | { { $as_echo "$as_me:$LINENO: error: | |
16334 | *** Please make sure the kernel devel package for your distribution | |
16335 | *** is installed then try again. If that fails you can specify the | |
16336 | *** location of the kernel source with the '--with-linux=PATH' option." >&5 | |
16337 | $as_echo "$as_me: error: | |
16338 | *** Please make sure the kernel devel package for your distribution | |
16339 | *** is installed then try again. If that fails you can specify the | |
16340 | *** location of the kernel source with the '--with-linux=PATH' option." >&2;} | |
16341 | { (exit 1); exit 1; }; } | |
16342 | fi | |
16343 | else | |
16344 | if test "$kernelsrc" = "NONE"; then | |
16345 | kernsrcver=NONE | |
16346 | fi | |
16347 | fi | |
16348 | ||
16349 | { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5 | |
16350 | $as_echo "$kernelsrc" >&6; } | |
16351 | { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5 | |
16352 | $as_echo_n "checking kernel build directory... " >&6; } | |
16353 | if test -z "$kernelbuild"; then | |
1b94c25c BB |
16354 | if test -e "/lib/modules/$(uname -r)/build"; then |
16355 | kernelbuild=`readlink -f /lib/modules/$(uname -r)/build` | |
16356 | elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then | |
e70e591c BB |
16357 | kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu} |
16358 | elif test -d ${kernelsrc}-obj/${target_cpu}/default; then | |
16359 | kernelbuild=${kernelsrc}-obj/${target_cpu}/default | |
16360 | elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then | |
16361 | kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu} | |
16362 | else | |
16363 | kernelbuild=${kernelsrc} | |
16364 | fi | |
16365 | fi | |
16366 | { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5 | |
16367 | $as_echo "$kernelbuild" >&6; } | |
16368 | ||
16369 | { $as_echo "$as_me:$LINENO: checking kernel source version" >&5 | |
16370 | $as_echo_n "checking kernel source version... " >&6; } | |
16371 | utsrelease1=$kernelbuild/include/linux/version.h | |
16372 | utsrelease2=$kernelbuild/include/linux/utsrelease.h | |
16373 | utsrelease3=$kernelbuild/include/generated/utsrelease.h | |
16374 | if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then | |
16375 | utsrelease=linux/version.h | |
16376 | elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then | |
16377 | utsrelease=linux/utsrelease.h | |
16378 | elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then | |
16379 | utsrelease=generated/utsrelease.h | |
16380 | fi | |
16381 | ||
16382 | if test "$utsrelease"; then | |
16383 | kernsrcver=`(echo "#include <$utsrelease>"; | |
16384 | echo "kernsrcver=UTS_RELEASE") | | |
16385 | cpp -I $kernelbuild/include | | |
16386 | grep "^kernsrcver=" | cut -d \" -f 2` | |
16387 | ||
16388 | if test -z "$kernsrcver"; then | |
16389 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
16390 | $as_echo "Not found" >&6; } | |
16391 | { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5 | |
16392 | $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;} | |
16393 | { (exit 1); exit 1; }; } | |
16394 | fi | |
16395 | else | |
16396 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
16397 | $as_echo "Not found" >&6; } | |
16398 | { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5 | |
16399 | $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;} | |
16400 | { (exit 1); exit 1; }; } | |
16401 | fi | |
16402 | ||
16403 | { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5 | |
16404 | $as_echo "$kernsrcver" >&6; } | |
16405 | ||
16406 | LINUX=${kernelsrc} | |
16407 | LINUX_OBJ=${kernelbuild} | |
16408 | LINUX_VERSION=${kernsrcver} | |
16409 | ||
16410 | ||
16411 | ||
16412 | ||
16413 | ||
16414 | ||
16415 | modpost=$LINUX/scripts/Makefile.modpost | |
16416 | { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5 | |
16417 | $as_echo_n "checking kernel file name for module symbols... " >&6; } | |
16418 | if test -f "$modpost"; then | |
16419 | if grep -q Modules.symvers $modpost; then | |
16420 | LINUX_SYMBOLS=Modules.symvers | |
16421 | else | |
16422 | LINUX_SYMBOLS=Module.symvers | |
16423 | fi | |
a60b1c0a BB |
16424 | |
16425 | if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then | |
16426 | { { $as_echo "$as_me:$LINENO: error: | |
16427 | *** Please make sure the kernel devel package for your distribution | |
16428 | *** is installed. If your building with a custom kernel make sure the | |
16429 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
16430 | *** option refers to the location of the kernel source." >&5 | |
16431 | $as_echo "$as_me: error: | |
16432 | *** Please make sure the kernel devel package for your distribution | |
16433 | *** is installed. If your building with a custom kernel make sure the | |
16434 | *** kernel is configured, built, and the '--with-linux=PATH' configure | |
16435 | *** option refers to the location of the kernel source." >&2;} | |
16436 | { (exit 1); exit 1; }; } | |
16437 | fi | |
e70e591c BB |
16438 | else |
16439 | LINUX_SYMBOLS=NONE | |
16440 | fi | |
16441 | { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5 | |
16442 | $as_echo "$LINUX_SYMBOLS" >&6; } | |
16443 | ||
16444 | ||
16445 | ||
16446 | ||
16447 | ||
16448 | # Check whether --with-spl was given. | |
16449 | if test "${with_spl+set}" = set; then | |
16450 | withval=$with_spl; splsrc="$withval" | |
16451 | fi | |
16452 | ||
16453 | ||
16454 | ||
16455 | # Check whether --with-spl-obj was given. | |
16456 | if test "${with_spl_obj+set}" = set; then | |
16457 | withval=$with_spl_obj; splbuild="$withval" | |
16458 | fi | |
16459 | ||
16460 | ||
16461 | ||
16462 | { $as_echo "$as_me:$LINENO: checking spl source directory" >&5 | |
16463 | $as_echo_n "checking spl source directory... " >&6; } | |
16464 | if test -z "$splsrc"; then | |
16465 | sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \ | |
16466 | 2>/dev/null | tail -1` | |
16467 | ||
16468 | if test -z "$sourcelink" || test ! -e $sourcelink; then | |
16469 | sourcelink=../spl | |
16470 | fi | |
16471 | ||
16472 | if test -e $sourcelink; then | |
16473 | splsrc=`readlink -f ${sourcelink}` | |
16474 | else | |
16475 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
16476 | $as_echo "Not found" >&6; } | |
16477 | { { $as_echo "$as_me:$LINENO: error: | |
16478 | *** Please make sure the spl devel package for your distribution | |
16479 | *** is installed then try again. If that fails you can specify the | |
16480 | *** location of the spl source with the '--with-spl=PATH' option." >&5 | |
16481 | $as_echo "$as_me: error: | |
16482 | *** Please make sure the spl devel package for your distribution | |
16483 | *** is installed then try again. If that fails you can specify the | |
16484 | *** location of the spl source with the '--with-spl=PATH' option." >&2;} | |
16485 | { (exit 1); exit 1; }; } | |
16486 | fi | |
16487 | else | |
16488 | if test "$splsrc" = "NONE"; then | |
16489 | splbuild=NONE | |
16490 | splsrcver=NONE | |
16491 | fi | |
16492 | fi | |
16493 | ||
16494 | { $as_echo "$as_me:$LINENO: result: $splsrc" >&5 | |
16495 | $as_echo "$splsrc" >&6; } | |
16496 | { $as_echo "$as_me:$LINENO: checking spl build directory" >&5 | |
16497 | $as_echo_n "checking spl build directory... " >&6; } | |
16498 | if test -z "$splbuild"; then | |
6283f55e | 16499 | splbuild=${splsrc} |
e70e591c BB |
16500 | fi |
16501 | { $as_echo "$as_me:$LINENO: result: $splbuild" >&5 | |
16502 | $as_echo "$splbuild" >&6; } | |
16503 | ||
16504 | { $as_echo "$as_me:$LINENO: checking spl source version" >&5 | |
16505 | $as_echo_n "checking spl source version... " >&6; } | |
5e612145 BB |
16506 | if test -r $splbuild/spl_config.h && |
16507 | fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then | |
e70e591c BB |
16508 | |
16509 | splsrcver=`(echo "#include <spl_config.h>"; | |
16510 | echo "splsrcver=SPL_META_VERSION") | | |
5e612145 | 16511 | cpp -I $splbuild | |
e70e591c BB |
16512 | grep "^splsrcver=" | cut -d \" -f 2` |
16513 | fi | |
16514 | ||
16515 | if test -z "$splsrcver"; then | |
16516 | { $as_echo "$as_me:$LINENO: result: Not found" >&5 | |
16517 | $as_echo "Not found" >&6; } | |
16518 | { { $as_echo "$as_me:$LINENO: error: | |
16519 | *** Cannot determine the version of the spl source. | |
16520 | *** Please prepare the spl source before running this script" >&5 | |
16521 | $as_echo "$as_me: error: | |
16522 | *** Cannot determine the version of the spl source. | |
16523 | *** Please prepare the spl source before running this script" >&2;} | |
16524 | { (exit 1); exit 1; }; } | |
16525 | fi | |
16526 | ||
16527 | { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5 | |
16528 | $as_echo "$splsrcver" >&6; } | |
16529 | ||
16530 | SPL=${splsrc} | |
16531 | SPL_OBJ=${splbuild} | |
16532 | SPL_VERSION=${splsrcver} | |
16533 | ||
16534 | ||
16535 | ||
16536 | ||
16537 | ||
16538 | ||
16539 | { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5 | |
16540 | $as_echo_n "checking spl file name for module symbols... " >&6; } | |
16541 | if test -r $SPL_OBJ/Module.symvers; then | |
16542 | SPL_SYMBOLS=Module.symvers | |
16543 | elif test -r $SPL_OBJ/Modules.symvers; then | |
16544 | SPL_SYMBOLS=Modules.symvers | |
6283f55e BB |
16545 | elif test -r $SPL_OBJ/module/Module.symvers; then |
16546 | SPL_SYMBOLS=Module.symvers | |
16547 | elif test -r $SPL_OBJ/module/Modules.symvers; then | |
16548 | SPL_SYMBOLS=Modules.symvers | |
e70e591c BB |
16549 | else |
16550 | SPL_SYMBOLS=$LINUX_SYMBOLS | |
16551 | fi | |
16552 | ||
16553 | { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5 | |
16554 | $as_echo "$SPL_SYMBOLS" >&6; } | |
16555 | ||
16556 | ||
16557 | ||
16558 | ||
16559 | ||
15805c77 BB |
16560 | { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5 |
16561 | $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; } | |
16562 | ||
16563 | ||
16564 | cat confdefs.h - <<_ACEOF >conftest.c | |
16565 | /* confdefs.h. */ | |
16566 | _ACEOF | |
16567 | cat confdefs.h >>conftest.$ac_ext | |
16568 | cat >>conftest.$ac_ext <<_ACEOF | |
16569 | /* end confdefs.h. */ | |
16570 | ||
16571 | ||
0da78696 | 16572 | #include <linux/module.h> |
15805c77 BB |
16573 | |
16574 | int | |
16575 | main (void) | |
16576 | { | |
16577 | ||
16578 | #ifndef CONFIG_PREEMPT | |
16579 | #error CONFIG_PREEMPT not #defined | |
16580 | #endif | |
16581 | ||
16582 | ; | |
16583 | return 0; | |
16584 | } | |
16585 | ||
16586 | _ACEOF | |
16587 | ||
16588 | ||
16589 | rm -Rf build && mkdir -p build | |
16590 | echo "obj-m := conftest.o" >build/Makefile | |
16591 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16593 | (eval $ac_try) 2>&5 | |
16594 | ac_status=$? | |
16595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16596 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16598 | (eval $ac_try) 2>&5 | |
16599 | ac_status=$? | |
16600 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16601 | (exit $ac_status); }; }; then | |
16602 | ||
16603 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16604 | $as_echo "yes" >&6; } | |
16605 | { { $as_echo "$as_me:$LINENO: error: | |
16606 | *** Kernel built with CONFIG_PREEMPT which is not supported. | |
16607 | ** You must rebuild your kernel without this option." >&5 | |
16608 | $as_echo "$as_me: error: | |
16609 | *** Kernel built with CONFIG_PREEMPT which is not supported. | |
16610 | ** You must rebuild your kernel without this option." >&2;} | |
16611 | { (exit 1); exit 1; }; } | |
16612 | ||
16613 | else | |
16614 | $as_echo "$as_me: failed program was:" >&5 | |
16615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16616 | ||
16617 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16618 | $as_echo "no" >&6; } | |
16619 | ||
16620 | ||
16621 | ||
16622 | ||
16623 | fi | |
16624 | ||
16625 | rm -Rf build | |
16626 | ||
16627 | ||
16628 | ||
16629 | ||
e70e591c BB |
16630 | if test "$ZFS_META_LICENSE" = CDDL; then |
16631 | { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5 | |
16632 | $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; } | |
16633 | ||
16634 | ||
16635 | cat confdefs.h - <<_ACEOF >conftest.c | |
16636 | /* confdefs.h. */ | |
16637 | _ACEOF | |
16638 | cat confdefs.h >>conftest.$ac_ext | |
16639 | cat >>conftest.$ac_ext <<_ACEOF | |
16640 | /* end confdefs.h. */ | |
16641 | ||
16642 | ||
0da78696 | 16643 | #include <linux/module.h> |
e70e591c BB |
16644 | |
16645 | int | |
16646 | main (void) | |
16647 | { | |
16648 | ||
16649 | #ifndef CONFIG_DEBUG_LOCK_ALLOC | |
16650 | #error CONFIG_DEBUG_LOCK_ALLOC not #defined | |
16651 | #endif | |
16652 | ||
16653 | ; | |
16654 | return 0; | |
16655 | } | |
16656 | ||
16657 | _ACEOF | |
16658 | ||
16659 | ||
16660 | rm -Rf build && mkdir -p build | |
16661 | echo "obj-m := conftest.o" >build/Makefile | |
16662 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16664 | (eval $ac_try) 2>&5 | |
16665 | ac_status=$? | |
16666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16667 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16669 | (eval $ac_try) 2>&5 | |
16670 | ac_status=$? | |
16671 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16672 | (exit $ac_status); }; }; then | |
16673 | ||
16674 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16675 | $as_echo "yes" >&6; } | |
16676 | { { $as_echo "$as_me:$LINENO: error: | |
16677 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is | |
16678 | *** incompatible with the CDDL license. You must rebuild | |
16679 | *** your kernel without this option." >&5 | |
16680 | $as_echo "$as_me: error: | |
16681 | *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is | |
16682 | *** incompatible with the CDDL license. You must rebuild | |
16683 | *** your kernel without this option." >&2;} | |
16684 | { (exit 1); exit 1; }; } | |
16685 | ||
16686 | else | |
16687 | $as_echo "$as_me: failed program was:" >&5 | |
16688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16689 | ||
16690 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16691 | $as_echo "no" >&6; } | |
16692 | ||
16693 | ||
16694 | ||
16695 | ||
16696 | fi | |
16697 | ||
16698 | rm -Rf build | |
16699 | ||
16700 | ||
16701 | ||
16702 | fi | |
16703 | ||
16704 | if test "$ZFS_META_LICENSE" = GPL; then | |
16705 | ||
16706 | cat >>confdefs.h <<\_ACEOF | |
16707 | #define HAVE_GPL_ONLY_SYMBOLS 1 | |
16708 | _ACEOF | |
16709 | ||
16710 | fi | |
16711 | ||
16712 | ||
16713 | { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5 | |
16714 | $as_echo_n "checking block device operation prototypes... " >&6; } | |
16715 | ||
16716 | ||
16717 | cat confdefs.h - <<_ACEOF >conftest.c | |
16718 | /* confdefs.h. */ | |
16719 | _ACEOF | |
16720 | cat confdefs.h >>conftest.$ac_ext | |
16721 | cat >>conftest.$ac_ext <<_ACEOF | |
16722 | /* end confdefs.h. */ | |
16723 | ||
16724 | ||
16725 | #include <linux/blkdev.h> | |
16726 | ||
16727 | int | |
16728 | main (void) | |
16729 | { | |
16730 | ||
16731 | int (*blk_open) (struct block_device *, fmode_t) = NULL; | |
16732 | int (*blk_release) (struct gendisk *, fmode_t) = NULL; | |
16733 | int (*blk_ioctl) (struct block_device *, fmode_t, | |
16734 | unsigned, unsigned long) = NULL; | |
16735 | int (*blk_compat_ioctl) (struct block_device *, fmode_t, | |
16736 | unsigned, unsigned long) = NULL; | |
16737 | struct block_device_operations blk_ops = { | |
16738 | .open = blk_open, | |
16739 | .release = blk_release, | |
16740 | .ioctl = blk_ioctl, | |
16741 | .compat_ioctl = blk_compat_ioctl, | |
16742 | }; | |
16743 | ||
16744 | blk_ops.open(NULL, 0); | |
16745 | blk_ops.release(NULL, 0); | |
16746 | blk_ops.ioctl(NULL, 0, 0, 0); | |
16747 | blk_ops.compat_ioctl(NULL, 0, 0, 0); | |
16748 | ||
16749 | ; | |
16750 | return 0; | |
16751 | } | |
16752 | ||
16753 | _ACEOF | |
16754 | ||
16755 | ||
16756 | rm -Rf build && mkdir -p build | |
16757 | echo "obj-m := conftest.o" >build/Makefile | |
16758 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16760 | (eval $ac_try) 2>&5 | |
16761 | ac_status=$? | |
16762 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16763 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16765 | (eval $ac_try) 2>&5 | |
16766 | ac_status=$? | |
16767 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16768 | (exit $ac_status); }; }; then | |
16769 | ||
16770 | { $as_echo "$as_me:$LINENO: result: struct block_device" >&5 | |
16771 | $as_echo "struct block_device" >&6; } | |
16772 | ||
16773 | cat >>confdefs.h <<\_ACEOF | |
16774 | #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1 | |
16775 | _ACEOF | |
16776 | ||
16777 | ||
16778 | else | |
16779 | $as_echo "$as_me: failed program was:" >&5 | |
16780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16781 | ||
16782 | { $as_echo "$as_me:$LINENO: result: struct inode" >&5 | |
16783 | $as_echo "struct inode" >&6; } | |
16784 | ||
16785 | ||
16786 | ||
16787 | fi | |
16788 | ||
16789 | rm -Rf build | |
16790 | ||
16791 | ||
16792 | ||
16793 | { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5 | |
16794 | $as_echo_n "checking whether kernel defines fmode_t... " >&6; } | |
16795 | ||
16796 | ||
16797 | cat confdefs.h - <<_ACEOF >conftest.c | |
16798 | /* confdefs.h. */ | |
16799 | _ACEOF | |
16800 | cat confdefs.h >>conftest.$ac_ext | |
16801 | cat >>conftest.$ac_ext <<_ACEOF | |
16802 | /* end confdefs.h. */ | |
16803 | ||
16804 | ||
16805 | #include <linux/types.h> | |
16806 | ||
16807 | int | |
16808 | main (void) | |
16809 | { | |
16810 | ||
79713039 | 16811 | fmode_t *ptr __attribute__ ((unused)); |
e70e591c BB |
16812 | |
16813 | ; | |
16814 | return 0; | |
16815 | } | |
16816 | ||
16817 | _ACEOF | |
16818 | ||
16819 | ||
16820 | rm -Rf build && mkdir -p build | |
16821 | echo "obj-m := conftest.o" >build/Makefile | |
16822 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16824 | (eval $ac_try) 2>&5 | |
16825 | ac_status=$? | |
16826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16827 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16829 | (eval $ac_try) 2>&5 | |
16830 | ac_status=$? | |
16831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16832 | (exit $ac_status); }; }; then | |
16833 | ||
16834 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16835 | $as_echo "yes" >&6; } | |
16836 | ||
16837 | cat >>confdefs.h <<\_ACEOF | |
16838 | #define HAVE_FMODE_T 1 | |
16839 | _ACEOF | |
16840 | ||
16841 | ||
16842 | else | |
16843 | $as_echo "$as_me: failed program was:" >&5 | |
16844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16845 | ||
16846 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16847 | $as_echo "no" >&6; } | |
16848 | ||
16849 | ||
16850 | ||
16851 | fi | |
16852 | ||
16853 | rm -Rf build | |
16854 | ||
16855 | ||
16856 | ||
16857 | ||
16858 | { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5 | |
16859 | $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; } | |
16860 | ||
16861 | ||
16862 | cat confdefs.h - <<_ACEOF >conftest.c | |
16863 | /* confdefs.h. */ | |
16864 | _ACEOF | |
16865 | cat confdefs.h >>conftest.$ac_ext | |
16866 | cat >>conftest.$ac_ext <<_ACEOF | |
16867 | /* end confdefs.h. */ | |
16868 | ||
16869 | ||
16870 | #include <linux/kobject.h> | |
16871 | ||
16872 | int | |
16873 | main (void) | |
16874 | { | |
16875 | ||
79713039 | 16876 | int val __attribute__ ((unused)); |
e70e591c BB |
16877 | val = KOBJ_NAME_LEN; |
16878 | ||
16879 | ; | |
16880 | return 0; | |
16881 | } | |
16882 | ||
16883 | _ACEOF | |
16884 | ||
16885 | ||
16886 | rm -Rf build && mkdir -p build | |
16887 | echo "obj-m := conftest.o" >build/Makefile | |
16888 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
16889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16890 | (eval $ac_try) 2>&5 | |
16891 | ac_status=$? | |
16892 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16893 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
16894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16895 | (eval $ac_try) 2>&5 | |
16896 | ac_status=$? | |
16897 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16898 | (exit $ac_status); }; }; then | |
16899 | ||
16900 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16901 | $as_echo "yes" >&6; } | |
16902 | ||
16903 | cat >>confdefs.h <<\_ACEOF | |
16904 | #define HAVE_KOBJ_NAME_LEN 1 | |
16905 | _ACEOF | |
16906 | ||
16907 | ||
16908 | else | |
16909 | $as_echo "$as_me: failed program was:" >&5 | |
16910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16911 | ||
16912 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16913 | $as_echo "no" >&6; } | |
16914 | ||
16915 | ||
16916 | ||
16917 | fi | |
16918 | ||
16919 | rm -Rf build | |
16920 | ||
16921 | ||
16922 | ||
16923 | ||
45066d1f BB |
16924 | { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5 |
16925 | $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; } | |
16926 | grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \ | |
16927 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
16928 | rc=$? | |
16929 | if test $rc -ne 0; then | |
16930 | export=0 | |
16931 | for file in fs/block_dev.c; do | |
16932 | grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null | |
16933 | rc=$? | |
16934 | if test $rc -eq 0; then | |
16935 | export=1 | |
16936 | break; | |
16937 | fi | |
16938 | done | |
16939 | if test $export -eq 0; then | |
16940 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16941 | $as_echo "no" >&6; } | |
16942 | ||
16943 | else | |
16944 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16945 | $as_echo "yes" >&6; } | |
16946 | ||
16947 | cat >>confdefs.h <<\_ACEOF | |
16948 | #define HAVE_BLKDEV_GET_BY_PATH 1 | |
16949 | _ACEOF | |
16950 | ||
16951 | fi | |
16952 | else | |
16953 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16954 | $as_echo "yes" >&6; } | |
16955 | ||
16956 | cat >>confdefs.h <<\_ACEOF | |
16957 | #define HAVE_BLKDEV_GET_BY_PATH 1 | |
16958 | _ACEOF | |
16959 | ||
16960 | fi | |
16961 | ||
16962 | ||
16963 | ||
e70e591c BB |
16964 | { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5 |
16965 | $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; } | |
16966 | grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \ | |
16967 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
16968 | rc=$? | |
16969 | if test $rc -ne 0; then | |
16970 | export=0 | |
16971 | for file in fs/block_dev.c; do | |
16972 | grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null | |
16973 | rc=$? | |
16974 | if test $rc -eq 0; then | |
16975 | export=1 | |
16976 | break; | |
16977 | fi | |
16978 | done | |
16979 | if test $export -eq 0; then | |
16980 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
16981 | $as_echo "no" >&6; } | |
16982 | ||
16983 | else | |
16984 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16985 | $as_echo "yes" >&6; } | |
16986 | ||
16987 | cat >>confdefs.h <<\_ACEOF | |
16988 | #define HAVE_OPEN_BDEV_EXCLUSIVE 1 | |
16989 | _ACEOF | |
16990 | ||
16991 | fi | |
16992 | else | |
16993 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
16994 | $as_echo "yes" >&6; } | |
16995 | ||
16996 | cat >>confdefs.h <<\_ACEOF | |
16997 | #define HAVE_OPEN_BDEV_EXCLUSIVE 1 | |
16998 | _ACEOF | |
16999 | ||
17000 | fi | |
17001 | ||
17002 | ||
17003 | ||
17004 | { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5 | |
17005 | $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; } | |
17006 | ||
17007 | ||
17008 | cat confdefs.h - <<_ACEOF >conftest.c | |
17009 | /* confdefs.h. */ | |
17010 | _ACEOF | |
17011 | cat confdefs.h >>conftest.$ac_ext | |
17012 | cat >>conftest.$ac_ext <<_ACEOF | |
17013 | /* end confdefs.h. */ | |
17014 | ||
17015 | ||
17016 | #include <linux/buffer_head.h> | |
17017 | ||
17018 | int | |
17019 | main (void) | |
17020 | { | |
17021 | ||
79713039 | 17022 | struct block_device *bdev = NULL; |
e70e591c BB |
17023 | invalidate_bdev(bdev); |
17024 | ||
17025 | ; | |
17026 | return 0; | |
17027 | } | |
17028 | ||
17029 | _ACEOF | |
17030 | ||
17031 | ||
17032 | rm -Rf build && mkdir -p build | |
17033 | echo "obj-m := conftest.o" >build/Makefile | |
17034 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17036 | (eval $ac_try) 2>&5 | |
17037 | ac_status=$? | |
17038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17039 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17041 | (eval $ac_try) 2>&5 | |
17042 | ac_status=$? | |
17043 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17044 | (exit $ac_status); }; }; then | |
17045 | ||
17046 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17047 | $as_echo "yes" >&6; } | |
17048 | ||
17049 | cat >>confdefs.h <<\_ACEOF | |
17050 | #define HAVE_1ARG_INVALIDATE_BDEV 1 | |
17051 | _ACEOF | |
17052 | ||
17053 | ||
17054 | else | |
17055 | $as_echo "$as_me: failed program was:" >&5 | |
17056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17057 | ||
17058 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17059 | $as_echo "no" >&6; } | |
17060 | ||
17061 | ||
17062 | ||
17063 | fi | |
17064 | ||
17065 | rm -Rf build | |
17066 | ||
17067 | ||
17068 | ||
17069 | ||
17070 | { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5 | |
17071 | $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; } | |
17072 | ||
17073 | ||
17074 | cat confdefs.h - <<_ACEOF >conftest.c | |
17075 | /* confdefs.h. */ | |
17076 | _ACEOF | |
17077 | cat confdefs.h >>conftest.$ac_ext | |
17078 | cat >>conftest.$ac_ext <<_ACEOF | |
17079 | /* end confdefs.h. */ | |
17080 | ||
17081 | ||
17082 | #include <linux/blkdev.h> | |
17083 | ||
17084 | int | |
17085 | main (void) | |
17086 | { | |
17087 | ||
17088 | struct block_device *bdev = NULL; | |
17089 | bdev_logical_block_size(bdev); | |
17090 | ||
17091 | ; | |
17092 | return 0; | |
17093 | } | |
17094 | ||
17095 | _ACEOF | |
17096 | ||
17097 | ||
17098 | rm -Rf build && mkdir -p build | |
17099 | echo "obj-m := conftest.o" >build/Makefile | |
17100 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17102 | (eval $ac_try) 2>&5 | |
17103 | ac_status=$? | |
17104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17105 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17107 | (eval $ac_try) 2>&5 | |
17108 | ac_status=$? | |
17109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17110 | (exit $ac_status); }; }; then | |
17111 | ||
17112 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17113 | $as_echo "yes" >&6; } | |
17114 | ||
17115 | cat >>confdefs.h <<\_ACEOF | |
17116 | #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1 | |
17117 | _ACEOF | |
17118 | ||
17119 | ||
17120 | else | |
17121 | $as_echo "$as_me: failed program was:" >&5 | |
17122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17123 | ||
17124 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17125 | $as_echo "no" >&6; } | |
17126 | ||
17127 | ||
17128 | ||
17129 | fi | |
17130 | ||
17131 | rm -Rf build | |
17132 | ||
17133 | ||
17134 | ||
17135 | ||
17136 | { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5 | |
17137 | $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; } | |
17138 | EXTRA_KCFLAGS="-Werror" | |
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/bio.h> | |
17150 | ||
17151 | int | |
17152 | main (void) | |
17153 | { | |
17154 | ||
17155 | struct bio bio; | |
17156 | (void)bio_empty_barrier(&bio); | |
17157 | ||
17158 | ; | |
17159 | return 0; | |
17160 | } | |
17161 | ||
17162 | _ACEOF | |
17163 | ||
17164 | ||
17165 | rm -Rf build && mkdir -p build | |
17166 | echo "obj-m := conftest.o" >build/Makefile | |
17167 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17169 | (eval $ac_try) 2>&5 | |
17170 | ac_status=$? | |
17171 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17172 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17174 | (eval $ac_try) 2>&5 | |
17175 | ac_status=$? | |
17176 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17177 | (exit $ac_status); }; }; then | |
17178 | ||
17179 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17180 | $as_echo "yes" >&6; } | |
17181 | ||
17182 | cat >>confdefs.h <<\_ACEOF | |
17183 | #define HAVE_BIO_EMPTY_BARRIER 1 | |
17184 | _ACEOF | |
17185 | ||
17186 | ||
17187 | else | |
17188 | $as_echo "$as_me: failed program was:" >&5 | |
17189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17190 | ||
17191 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17192 | $as_echo "no" >&6; } | |
17193 | ||
17194 | ||
17195 | ||
17196 | fi | |
17197 | ||
17198 | rm -Rf build | |
17199 | ||
17200 | ||
17201 | ||
17202 | ||
f4af6bb7 BB |
17203 | { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5 |
17204 | $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; } | |
17205 | ||
17206 | ||
17207 | cat confdefs.h - <<_ACEOF >conftest.c | |
17208 | /* confdefs.h. */ | |
17209 | _ACEOF | |
17210 | cat confdefs.h >>conftest.$ac_ext | |
17211 | cat >>conftest.$ac_ext <<_ACEOF | |
17212 | /* end confdefs.h. */ | |
17213 | ||
17214 | ||
17215 | #include <linux/bio.h> | |
17216 | ||
17217 | int | |
17218 | main (void) | |
17219 | { | |
17220 | ||
79713039 | 17221 | int flags __attribute__ ((unused)); |
f4af6bb7 BB |
17222 | flags = (1 << BIO_RW_FAILFAST); |
17223 | ||
17224 | ; | |
17225 | return 0; | |
17226 | } | |
17227 | ||
17228 | _ACEOF | |
17229 | ||
17230 | ||
17231 | rm -Rf build && mkdir -p build | |
17232 | echo "obj-m := conftest.o" >build/Makefile | |
17233 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17235 | (eval $ac_try) 2>&5 | |
17236 | ac_status=$? | |
17237 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17238 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17240 | (eval $ac_try) 2>&5 | |
17241 | ac_status=$? | |
17242 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17243 | (exit $ac_status); }; }; then | |
17244 | ||
17245 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17246 | $as_echo "yes" >&6; } | |
17247 | ||
17248 | cat >>confdefs.h <<\_ACEOF | |
17249 | #define HAVE_BIO_RW_FAILFAST 1 | |
17250 | _ACEOF | |
17251 | ||
17252 | ||
17253 | else | |
17254 | $as_echo "$as_me: failed program was:" >&5 | |
17255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17256 | ||
17257 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17258 | $as_echo "no" >&6; } | |
17259 | ||
17260 | ||
17261 | ||
17262 | fi | |
17263 | ||
17264 | rm -Rf build | |
17265 | ||
17266 | ||
17267 | ||
17268 | ||
2959d94a BB |
17269 | { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5 |
17270 | $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; } | |
17271 | ||
17272 | ||
17273 | cat confdefs.h - <<_ACEOF >conftest.c | |
17274 | /* confdefs.h. */ | |
17275 | _ACEOF | |
17276 | cat confdefs.h >>conftest.$ac_ext | |
17277 | cat >>conftest.$ac_ext <<_ACEOF | |
17278 | /* end confdefs.h. */ | |
17279 | ||
17280 | ||
17281 | #include <linux/bio.h> | |
17282 | ||
17283 | int | |
17284 | main (void) | |
17285 | { | |
17286 | ||
79713039 | 17287 | int flags __attribute__ ((unused)); |
2959d94a BB |
17288 | flags = ((1 << BIO_RW_FAILFAST_DEV) | |
17289 | (1 << BIO_RW_FAILFAST_TRANSPORT) | | |
17290 | (1 << BIO_RW_FAILFAST_DRIVER)); | |
17291 | ||
17292 | ; | |
17293 | return 0; | |
17294 | } | |
17295 | ||
17296 | _ACEOF | |
17297 | ||
17298 | ||
17299 | rm -Rf build && mkdir -p build | |
17300 | echo "obj-m := conftest.o" >build/Makefile | |
17301 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17303 | (eval $ac_try) 2>&5 | |
17304 | ac_status=$? | |
17305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17306 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17308 | (eval $ac_try) 2>&5 | |
17309 | ac_status=$? | |
17310 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17311 | (exit $ac_status); }; }; then | |
17312 | ||
17313 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17314 | $as_echo "yes" >&6; } | |
17315 | ||
17316 | cat >>confdefs.h <<\_ACEOF | |
f4af6bb7 BB |
17317 | #define HAVE_BIO_RW_FAILFAST_DTD 1 |
17318 | _ACEOF | |
17319 | ||
17320 | ||
17321 | else | |
17322 | $as_echo "$as_me: failed program was:" >&5 | |
17323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17324 | ||
17325 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17326 | $as_echo "no" >&6; } | |
17327 | ||
17328 | ||
17329 | ||
17330 | fi | |
17331 | ||
17332 | rm -Rf build | |
17333 | ||
17334 | ||
17335 | ||
17336 | ||
17337 | { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5 | |
17338 | $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; } | |
17339 | ||
17340 | ||
17341 | cat confdefs.h - <<_ACEOF >conftest.c | |
17342 | /* confdefs.h. */ | |
17343 | _ACEOF | |
17344 | cat confdefs.h >>conftest.$ac_ext | |
17345 | cat >>conftest.$ac_ext <<_ACEOF | |
17346 | /* end confdefs.h. */ | |
17347 | ||
17348 | ||
17349 | #include <linux/bio.h> | |
17350 | ||
17351 | int | |
17352 | main (void) | |
17353 | { | |
17354 | ||
79713039 | 17355 | int flags __attribute__ ((unused)); |
f4af6bb7 BB |
17356 | flags = REQ_FAILFAST_MASK; |
17357 | ||
17358 | ; | |
17359 | return 0; | |
17360 | } | |
17361 | ||
17362 | _ACEOF | |
17363 | ||
17364 | ||
17365 | rm -Rf build && mkdir -p build | |
17366 | echo "obj-m := conftest.o" >build/Makefile | |
17367 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17369 | (eval $ac_try) 2>&5 | |
17370 | ac_status=$? | |
17371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17372 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17374 | (eval $ac_try) 2>&5 | |
17375 | ac_status=$? | |
17376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17377 | (exit $ac_status); }; }; then | |
17378 | ||
17379 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17380 | $as_echo "yes" >&6; } | |
17381 | ||
17382 | cat >>confdefs.h <<\_ACEOF | |
17383 | #define HAVE_BIO_REQ_FAILFAST_MASK 1 | |
2959d94a BB |
17384 | _ACEOF |
17385 | ||
17386 | ||
17387 | else | |
17388 | $as_echo "$as_me: failed program was:" >&5 | |
17389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17390 | ||
17391 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17392 | $as_echo "no" >&6; } | |
17393 | ||
17394 | ||
17395 | ||
17396 | fi | |
17397 | ||
17398 | rm -Rf build | |
17399 | ||
17400 | ||
17401 | ||
17402 | ||
e70e591c BB |
17403 | { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5 |
17404 | $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; } | |
17405 | tmp_flags="$EXTRA_KCFLAGS" | |
17406 | EXTRA_KCFLAGS="-Werror" | |
17407 | ||
17408 | ||
17409 | cat confdefs.h - <<_ACEOF >conftest.c | |
17410 | /* confdefs.h. */ | |
17411 | _ACEOF | |
17412 | cat confdefs.h >>conftest.$ac_ext | |
17413 | cat >>conftest.$ac_ext <<_ACEOF | |
17414 | /* end confdefs.h. */ | |
17415 | ||
17416 | ||
17417 | #include <linux/bio.h> | |
17418 | ||
17419 | int | |
17420 | main (void) | |
17421 | { | |
17422 | ||
17423 | void (*wanted_end_io)(struct bio *, int) = NULL; | |
79713039 | 17424 | bio_end_io_t *local_end_io __attribute__ ((unused)); |
e70e591c BB |
17425 | |
17426 | local_end_io = wanted_end_io; | |
17427 | ||
17428 | ; | |
17429 | return 0; | |
17430 | } | |
17431 | ||
17432 | _ACEOF | |
17433 | ||
17434 | ||
17435 | rm -Rf build && mkdir -p build | |
17436 | echo "obj-m := conftest.o" >build/Makefile | |
17437 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17439 | (eval $ac_try) 2>&5 | |
17440 | ac_status=$? | |
17441 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17442 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17444 | (eval $ac_try) 2>&5 | |
17445 | ac_status=$? | |
17446 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17447 | (exit $ac_status); }; }; then | |
17448 | ||
17449 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17450 | $as_echo "yes" >&6; } | |
17451 | ||
17452 | cat >>confdefs.h <<\_ACEOF | |
17453 | #define HAVE_2ARGS_BIO_END_IO_T 1 | |
17454 | _ACEOF | |
17455 | ||
17456 | ||
17457 | else | |
17458 | $as_echo "$as_me: failed program was:" >&5 | |
17459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17460 | ||
17461 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17462 | $as_echo "no" >&6; } | |
17463 | ||
17464 | ||
17465 | ||
17466 | fi | |
17467 | ||
17468 | rm -Rf build | |
17469 | ||
17470 | ||
17471 | EXTRA_KCFLAGS="$tmp_flags" | |
17472 | ||
17473 | ||
675de5aa BB |
17474 | { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5 |
17475 | $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; } | |
17476 | ||
17477 | ||
17478 | cat confdefs.h - <<_ACEOF >conftest.c | |
17479 | /* confdefs.h. */ | |
17480 | _ACEOF | |
17481 | cat confdefs.h >>conftest.$ac_ext | |
17482 | cat >>conftest.$ac_ext <<_ACEOF | |
17483 | /* end confdefs.h. */ | |
17484 | ||
17485 | ||
17486 | #include <linux/bio.h> | |
17487 | ||
17488 | int | |
17489 | main (void) | |
17490 | { | |
17491 | ||
79713039 | 17492 | int flags __attribute__ ((unused)); |
675de5aa BB |
17493 | flags = BIO_RW_SYNC; |
17494 | ||
17495 | ; | |
17496 | return 0; | |
17497 | } | |
17498 | ||
17499 | _ACEOF | |
17500 | ||
17501 | ||
17502 | rm -Rf build && mkdir -p build | |
17503 | echo "obj-m := conftest.o" >build/Makefile | |
17504 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17506 | (eval $ac_try) 2>&5 | |
17507 | ac_status=$? | |
17508 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17509 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17511 | (eval $ac_try) 2>&5 | |
17512 | ac_status=$? | |
17513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17514 | (exit $ac_status); }; }; then | |
17515 | ||
17516 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17517 | $as_echo "yes" >&6; } | |
17518 | ||
17519 | cat >>confdefs.h <<\_ACEOF | |
17520 | #define HAVE_BIO_RW_SYNC 1 | |
17521 | _ACEOF | |
17522 | ||
17523 | ||
17524 | else | |
17525 | $as_echo "$as_me: failed program was:" >&5 | |
17526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17527 | ||
17528 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17529 | $as_echo "no" >&6; } | |
17530 | ||
17531 | ||
17532 | ||
17533 | fi | |
17534 | ||
17535 | rm -Rf build | |
17536 | ||
17537 | ||
17538 | ||
17539 | ||
e70e591c BB |
17540 | { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5 |
17541 | $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; } | |
17542 | ||
17543 | ||
17544 | cat confdefs.h - <<_ACEOF >conftest.c | |
17545 | /* confdefs.h. */ | |
17546 | _ACEOF | |
17547 | cat confdefs.h >>conftest.$ac_ext | |
17548 | cat >>conftest.$ac_ext <<_ACEOF | |
17549 | /* end confdefs.h. */ | |
17550 | ||
17551 | ||
17552 | #include <linux/bio.h> | |
17553 | ||
17554 | int | |
17555 | main (void) | |
17556 | { | |
17557 | ||
79713039 | 17558 | int flags __attribute__ ((unused)); |
e70e591c BB |
17559 | flags = BIO_RW_SYNCIO; |
17560 | ||
17561 | ; | |
17562 | return 0; | |
17563 | } | |
17564 | ||
17565 | _ACEOF | |
17566 | ||
17567 | ||
17568 | rm -Rf build && mkdir -p build | |
17569 | echo "obj-m := conftest.o" >build/Makefile | |
17570 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17572 | (eval $ac_try) 2>&5 | |
17573 | ac_status=$? | |
17574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17575 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17577 | (eval $ac_try) 2>&5 | |
17578 | ac_status=$? | |
17579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17580 | (exit $ac_status); }; }; then | |
17581 | ||
17582 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17583 | $as_echo "yes" >&6; } | |
17584 | ||
17585 | cat >>confdefs.h <<\_ACEOF | |
17586 | #define HAVE_BIO_RW_SYNCIO 1 | |
17587 | _ACEOF | |
17588 | ||
17589 | ||
17590 | else | |
17591 | $as_echo "$as_me: failed program was:" >&5 | |
17592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17593 | ||
17594 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17595 | $as_echo "no" >&6; } | |
17596 | ||
17597 | ||
17598 | ||
17599 | fi | |
17600 | ||
17601 | rm -Rf build | |
17602 | ||
17603 | ||
17604 | ||
17605 | ||
675de5aa BB |
17606 | { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5 |
17607 | $as_echo_n "checking whether REQ_SYNC is defined... " >&6; } | |
17608 | ||
17609 | ||
17610 | cat confdefs.h - <<_ACEOF >conftest.c | |
17611 | /* confdefs.h. */ | |
17612 | _ACEOF | |
17613 | cat confdefs.h >>conftest.$ac_ext | |
17614 | cat >>conftest.$ac_ext <<_ACEOF | |
17615 | /* end confdefs.h. */ | |
17616 | ||
17617 | ||
17618 | #include <linux/bio.h> | |
17619 | ||
17620 | int | |
17621 | main (void) | |
17622 | { | |
17623 | ||
79713039 | 17624 | int flags __attribute__ ((unused)); |
675de5aa BB |
17625 | flags = REQ_SYNC; |
17626 | ||
17627 | ; | |
17628 | return 0; | |
17629 | } | |
17630 | ||
17631 | _ACEOF | |
17632 | ||
17633 | ||
17634 | rm -Rf build && mkdir -p build | |
17635 | echo "obj-m := conftest.o" >build/Makefile | |
17636 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17638 | (eval $ac_try) 2>&5 | |
17639 | ac_status=$? | |
17640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17641 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17643 | (eval $ac_try) 2>&5 | |
17644 | ac_status=$? | |
17645 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17646 | (exit $ac_status); }; }; then | |
17647 | ||
17648 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17649 | $as_echo "yes" >&6; } | |
17650 | ||
17651 | cat >>confdefs.h <<\_ACEOF | |
17652 | #define HAVE_REQ_SYNC 1 | |
17653 | _ACEOF | |
17654 | ||
17655 | ||
17656 | else | |
17657 | $as_echo "$as_me: failed program was:" >&5 | |
17658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17659 | ||
17660 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17661 | $as_echo "no" >&6; } | |
17662 | ||
17663 | ||
17664 | ||
17665 | fi | |
17666 | ||
17667 | rm -Rf build | |
17668 | ||
17669 | ||
17670 | ||
17671 | ||
e70e591c BB |
17672 | { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5 |
17673 | $as_echo_n "checking whether blk_end_request() is available... " >&6; } | |
17674 | ||
17675 | ||
17676 | cat confdefs.h - <<_ACEOF >conftest.c | |
17677 | /* confdefs.h. */ | |
17678 | _ACEOF | |
17679 | cat confdefs.h >>conftest.$ac_ext | |
17680 | cat >>conftest.$ac_ext <<_ACEOF | |
17681 | /* end confdefs.h. */ | |
17682 | ||
17683 | ||
17684 | #include <linux/blkdev.h> | |
17685 | ||
17686 | int | |
17687 | main (void) | |
17688 | { | |
17689 | ||
17690 | struct request *req = NULL; | |
17691 | (void) blk_end_request(req, 0, 0); | |
17692 | ||
17693 | ; | |
17694 | return 0; | |
17695 | } | |
17696 | ||
17697 | _ACEOF | |
17698 | ||
17699 | ||
17700 | rm -Rf build && mkdir -p build | |
17701 | echo "obj-m := conftest.o" >build/Makefile | |
17702 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17704 | (eval $ac_try) 2>&5 | |
17705 | ac_status=$? | |
17706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17707 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17709 | (eval $ac_try) 2>&5 | |
17710 | ac_status=$? | |
17711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17712 | (exit $ac_status); }; }; then | |
17713 | ||
17714 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17715 | $as_echo "yes" >&6; } | |
17716 | ||
17717 | cat >>confdefs.h <<\_ACEOF | |
17718 | #define HAVE_BLK_END_REQUEST 1 | |
17719 | _ACEOF | |
17720 | ||
17721 | ||
17722 | else | |
17723 | $as_echo "$as_me: failed program was:" >&5 | |
17724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17725 | ||
17726 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17727 | $as_echo "no" >&6; } | |
17728 | ||
17729 | ||
17730 | ||
17731 | fi | |
17732 | ||
17733 | rm -Rf build | |
17734 | ||
17735 | ||
17736 | ||
17737 | { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5 | |
17738 | $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; } | |
17739 | ||
17740 | ||
17741 | cat confdefs.h - <<_ACEOF >conftest.c | |
17742 | /* confdefs.h. */ | |
17743 | _ACEOF | |
17744 | cat confdefs.h >>conftest.$ac_ext | |
17745 | cat >>conftest.$ac_ext <<_ACEOF | |
17746 | /* end confdefs.h. */ | |
17747 | ||
17748 | ||
17749 | #include <linux/module.h> | |
17750 | #include <linux/blkdev.h> | |
17751 | ||
17752 | MODULE_LICENSE("CDDL"); | |
17753 | ||
17754 | int | |
17755 | main (void) | |
17756 | { | |
17757 | ||
17758 | struct request *req = NULL; | |
17759 | (void) blk_end_request(req, 0, 0); | |
17760 | ||
17761 | ; | |
17762 | return 0; | |
17763 | } | |
17764 | ||
17765 | _ACEOF | |
17766 | ||
17767 | ||
17768 | rm -Rf build && mkdir -p build | |
17769 | echo "obj-m := conftest.o" >build/Makefile | |
17770 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17772 | (eval $ac_try) 2>&5 | |
17773 | ac_status=$? | |
17774 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17775 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17777 | (eval $ac_try) 2>&5 | |
17778 | ac_status=$? | |
17779 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17780 | (exit $ac_status); }; }; then | |
17781 | ||
17782 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17783 | $as_echo "no" >&6; } | |
17784 | ||
17785 | else | |
17786 | $as_echo "$as_me: failed program was:" >&5 | |
17787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17788 | ||
17789 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17790 | $as_echo "yes" >&6; } | |
17791 | ||
17792 | cat >>confdefs.h <<\_ACEOF | |
17793 | #define HAVE_BLK_END_REQUEST_GPL_ONLY 1 | |
17794 | _ACEOF | |
17795 | ||
17796 | ||
17797 | ||
17798 | ||
17799 | fi | |
17800 | ||
17801 | rm -Rf build | |
17802 | ||
17803 | ||
17804 | ||
17805 | ||
17806 | { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5 | |
17807 | $as_echo_n "checking whether blk_fetch_request() is available... " >&6; } | |
17808 | ||
17809 | ||
17810 | cat confdefs.h - <<_ACEOF >conftest.c | |
17811 | /* confdefs.h. */ | |
17812 | _ACEOF | |
17813 | cat confdefs.h >>conftest.$ac_ext | |
17814 | cat >>conftest.$ac_ext <<_ACEOF | |
17815 | /* end confdefs.h. */ | |
17816 | ||
17817 | ||
17818 | #include <linux/blkdev.h> | |
17819 | ||
17820 | int | |
17821 | main (void) | |
17822 | { | |
17823 | ||
17824 | struct request_queue *q = NULL; | |
17825 | (void) blk_fetch_request(q); | |
17826 | ||
17827 | ; | |
17828 | return 0; | |
17829 | } | |
17830 | ||
17831 | _ACEOF | |
17832 | ||
17833 | ||
17834 | rm -Rf build && mkdir -p build | |
17835 | echo "obj-m := conftest.o" >build/Makefile | |
17836 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17838 | (eval $ac_try) 2>&5 | |
17839 | ac_status=$? | |
17840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17841 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17843 | (eval $ac_try) 2>&5 | |
17844 | ac_status=$? | |
17845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17846 | (exit $ac_status); }; }; then | |
17847 | ||
17848 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17849 | $as_echo "yes" >&6; } | |
17850 | ||
17851 | cat >>confdefs.h <<\_ACEOF | |
17852 | #define HAVE_BLK_FETCH_REQUEST 1 | |
17853 | _ACEOF | |
17854 | ||
17855 | ||
17856 | else | |
17857 | $as_echo "$as_me: failed program was:" >&5 | |
17858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17859 | ||
17860 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17861 | $as_echo "no" >&6; } | |
17862 | ||
17863 | ||
17864 | ||
17865 | fi | |
17866 | ||
17867 | rm -Rf build | |
17868 | ||
17869 | ||
17870 | ||
17871 | ||
17872 | { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5 | |
17873 | $as_echo_n "checking whether blk_requeue_request() is available... " >&6; } | |
17874 | ||
17875 | ||
17876 | cat confdefs.h - <<_ACEOF >conftest.c | |
17877 | /* confdefs.h. */ | |
17878 | _ACEOF | |
17879 | cat confdefs.h >>conftest.$ac_ext | |
17880 | cat >>conftest.$ac_ext <<_ACEOF | |
17881 | /* end confdefs.h. */ | |
17882 | ||
17883 | ||
17884 | #include <linux/blkdev.h> | |
17885 | ||
17886 | int | |
17887 | main (void) | |
17888 | { | |
17889 | ||
17890 | struct request_queue *q = NULL; | |
17891 | struct request *req = NULL; | |
17892 | blk_requeue_request(q, req); | |
17893 | ||
17894 | ; | |
17895 | return 0; | |
17896 | } | |
17897 | ||
17898 | _ACEOF | |
17899 | ||
17900 | ||
17901 | rm -Rf build && mkdir -p build | |
17902 | echo "obj-m := conftest.o" >build/Makefile | |
17903 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17905 | (eval $ac_try) 2>&5 | |
17906 | ac_status=$? | |
17907 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17908 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
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); }; }; then | |
17914 | ||
17915 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17916 | $as_echo "yes" >&6; } | |
17917 | ||
17918 | cat >>confdefs.h <<\_ACEOF | |
17919 | #define HAVE_BLK_REQUEUE_REQUEST 1 | |
17920 | _ACEOF | |
17921 | ||
17922 | ||
17923 | else | |
17924 | $as_echo "$as_me: failed program was:" >&5 | |
17925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17926 | ||
17927 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17928 | $as_echo "no" >&6; } | |
17929 | ||
17930 | ||
17931 | ||
17932 | fi | |
17933 | ||
17934 | rm -Rf build | |
17935 | ||
17936 | ||
17937 | ||
17938 | ||
17939 | { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5 | |
17940 | $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; } | |
17941 | ||
17942 | ||
17943 | cat confdefs.h - <<_ACEOF >conftest.c | |
17944 | /* confdefs.h. */ | |
17945 | _ACEOF | |
17946 | cat confdefs.h >>conftest.$ac_ext | |
17947 | cat >>conftest.$ac_ext <<_ACEOF | |
17948 | /* end confdefs.h. */ | |
17949 | ||
17950 | ||
17951 | #include <linux/blkdev.h> | |
17952 | ||
17953 | int | |
17954 | main (void) | |
17955 | { | |
17956 | ||
17957 | struct request *req = NULL; | |
17958 | (void) blk_rq_bytes(req); | |
17959 | ||
17960 | ; | |
17961 | return 0; | |
17962 | } | |
17963 | ||
17964 | _ACEOF | |
17965 | ||
17966 | ||
17967 | rm -Rf build && mkdir -p build | |
17968 | echo "obj-m := conftest.o" >build/Makefile | |
17969 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
17970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17971 | (eval $ac_try) 2>&5 | |
17972 | ac_status=$? | |
17973 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17974 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
17975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17976 | (eval $ac_try) 2>&5 | |
17977 | ac_status=$? | |
17978 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17979 | (exit $ac_status); }; }; then | |
17980 | ||
17981 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
17982 | $as_echo "yes" >&6; } | |
17983 | ||
17984 | cat >>confdefs.h <<\_ACEOF | |
17985 | #define HAVE_BLK_RQ_BYTES 1 | |
17986 | _ACEOF | |
17987 | ||
17988 | ||
17989 | else | |
17990 | $as_echo "$as_me: failed program was:" >&5 | |
17991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17992 | ||
17993 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
17994 | $as_echo "no" >&6; } | |
17995 | ||
17996 | ||
17997 | ||
17998 | fi | |
17999 | ||
18000 | rm -Rf build | |
18001 | ||
18002 | ||
18003 | ||
18004 | { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5 | |
18005 | $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; } | |
18006 | ||
18007 | ||
18008 | cat confdefs.h - <<_ACEOF >conftest.c | |
18009 | /* confdefs.h. */ | |
18010 | _ACEOF | |
18011 | cat confdefs.h >>conftest.$ac_ext | |
18012 | cat >>conftest.$ac_ext <<_ACEOF | |
18013 | /* end confdefs.h. */ | |
18014 | ||
18015 | ||
18016 | #include <linux/module.h> | |
18017 | #include <linux/blkdev.h> | |
18018 | ||
18019 | MODULE_LICENSE("CDDL"); | |
18020 | ||
18021 | int | |
18022 | main (void) | |
18023 | { | |
18024 | ||
18025 | struct request *req = NULL; | |
18026 | (void) blk_rq_bytes(req); | |
18027 | ||
18028 | ; | |
18029 | return 0; | |
18030 | } | |
18031 | ||
18032 | _ACEOF | |
18033 | ||
18034 | ||
18035 | rm -Rf build && mkdir -p build | |
18036 | echo "obj-m := conftest.o" >build/Makefile | |
18037 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18039 | (eval $ac_try) 2>&5 | |
18040 | ac_status=$? | |
18041 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18042 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18044 | (eval $ac_try) 2>&5 | |
18045 | ac_status=$? | |
18046 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18047 | (exit $ac_status); }; }; then | |
18048 | ||
18049 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18050 | $as_echo "no" >&6; } | |
18051 | ||
18052 | else | |
18053 | $as_echo "$as_me: failed program was:" >&5 | |
18054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18055 | ||
18056 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18057 | $as_echo "yes" >&6; } | |
18058 | ||
18059 | cat >>confdefs.h <<\_ACEOF | |
18060 | #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1 | |
18061 | _ACEOF | |
18062 | ||
18063 | ||
18064 | ||
18065 | ||
18066 | fi | |
18067 | ||
18068 | rm -Rf build | |
18069 | ||
18070 | ||
18071 | ||
18072 | ||
18073 | { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5 | |
18074 | $as_echo_n "checking whether blk_rq_pos() is available... " >&6; } | |
18075 | ||
18076 | ||
18077 | cat confdefs.h - <<_ACEOF >conftest.c | |
18078 | /* confdefs.h. */ | |
18079 | _ACEOF | |
18080 | cat confdefs.h >>conftest.$ac_ext | |
18081 | cat >>conftest.$ac_ext <<_ACEOF | |
18082 | /* end confdefs.h. */ | |
18083 | ||
18084 | ||
18085 | #include <linux/blkdev.h> | |
18086 | ||
18087 | int | |
18088 | main (void) | |
18089 | { | |
18090 | ||
18091 | struct request *req = NULL; | |
18092 | (void) blk_rq_pos(req); | |
18093 | ||
18094 | ; | |
18095 | return 0; | |
18096 | } | |
18097 | ||
18098 | _ACEOF | |
18099 | ||
18100 | ||
18101 | rm -Rf build && mkdir -p build | |
18102 | echo "obj-m := conftest.o" >build/Makefile | |
18103 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18105 | (eval $ac_try) 2>&5 | |
18106 | ac_status=$? | |
18107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18108 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18110 | (eval $ac_try) 2>&5 | |
18111 | ac_status=$? | |
18112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18113 | (exit $ac_status); }; }; then | |
18114 | ||
18115 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18116 | $as_echo "yes" >&6; } | |
18117 | ||
18118 | cat >>confdefs.h <<\_ACEOF | |
18119 | #define HAVE_BLK_RQ_POS 1 | |
18120 | _ACEOF | |
18121 | ||
18122 | ||
18123 | else | |
18124 | $as_echo "$as_me: failed program was:" >&5 | |
18125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18126 | ||
18127 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18128 | $as_echo "no" >&6; } | |
18129 | ||
18130 | ||
18131 | ||
18132 | fi | |
18133 | ||
18134 | rm -Rf build | |
18135 | ||
18136 | ||
18137 | ||
18138 | ||
18139 | { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5 | |
18140 | $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; } | |
18141 | ||
18142 | ||
18143 | cat confdefs.h - <<_ACEOF >conftest.c | |
18144 | /* confdefs.h. */ | |
18145 | _ACEOF | |
18146 | cat confdefs.h >>conftest.$ac_ext | |
18147 | cat >>conftest.$ac_ext <<_ACEOF | |
18148 | /* end confdefs.h. */ | |
18149 | ||
18150 | ||
18151 | #include <linux/blkdev.h> | |
18152 | ||
18153 | int | |
18154 | main (void) | |
18155 | { | |
18156 | ||
18157 | struct request *req = NULL; | |
18158 | (void) blk_rq_sectors(req); | |
18159 | ||
18160 | ; | |
18161 | return 0; | |
18162 | } | |
18163 | ||
18164 | _ACEOF | |
18165 | ||
18166 | ||
18167 | rm -Rf build && mkdir -p build | |
18168 | echo "obj-m := conftest.o" >build/Makefile | |
18169 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18171 | (eval $ac_try) 2>&5 | |
18172 | ac_status=$? | |
18173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18174 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18176 | (eval $ac_try) 2>&5 | |
18177 | ac_status=$? | |
18178 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18179 | (exit $ac_status); }; }; then | |
18180 | ||
18181 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18182 | $as_echo "yes" >&6; } | |
18183 | ||
18184 | cat >>confdefs.h <<\_ACEOF | |
18185 | #define HAVE_BLK_RQ_SECTORS 1 | |
18186 | _ACEOF | |
18187 | ||
18188 | ||
18189 | else | |
18190 | $as_echo "$as_me: failed program was:" >&5 | |
18191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18192 | ||
18193 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18194 | $as_echo "no" >&6; } | |
18195 | ||
18196 | ||
18197 | ||
18198 | fi | |
18199 | ||
18200 | rm -Rf build | |
18201 | ||
18202 | ||
18203 | ||
18204 | ||
18205 | { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5 | |
18206 | $as_echo_n "checking whether get_disk_ro() is available... " >&6; } | |
18207 | ||
18208 | ||
18209 | cat confdefs.h - <<_ACEOF >conftest.c | |
18210 | /* confdefs.h. */ | |
18211 | _ACEOF | |
18212 | cat confdefs.h >>conftest.$ac_ext | |
18213 | cat >>conftest.$ac_ext <<_ACEOF | |
18214 | /* end confdefs.h. */ | |
18215 | ||
18216 | ||
18217 | #include <linux/blkdev.h> | |
18218 | ||
18219 | int | |
18220 | main (void) | |
18221 | { | |
18222 | ||
18223 | struct gendisk *disk = NULL; | |
18224 | (void) get_disk_ro(disk); | |
18225 | ||
18226 | ; | |
18227 | return 0; | |
18228 | } | |
18229 | ||
18230 | _ACEOF | |
18231 | ||
18232 | ||
18233 | rm -Rf build && mkdir -p build | |
18234 | echo "obj-m := conftest.o" >build/Makefile | |
18235 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18237 | (eval $ac_try) 2>&5 | |
18238 | ac_status=$? | |
18239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18240 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18242 | (eval $ac_try) 2>&5 | |
18243 | ac_status=$? | |
18244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18245 | (exit $ac_status); }; }; then | |
18246 | ||
18247 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18248 | $as_echo "yes" >&6; } | |
18249 | ||
18250 | cat >>confdefs.h <<\_ACEOF | |
18251 | #define HAVE_GET_DISK_RO 1 | |
18252 | _ACEOF | |
18253 | ||
18254 | ||
18255 | else | |
18256 | $as_echo "$as_me: failed program was:" >&5 | |
18257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18258 | ||
18259 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18260 | $as_echo "no" >&6; } | |
18261 | ||
18262 | ||
18263 | ||
18264 | fi | |
18265 | ||
18266 | rm -Rf build | |
18267 | ||
18268 | ||
18269 | ||
18270 | ||
18271 | { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5 | |
18272 | $as_echo_n "checking whether rq_is_sync() is available... " >&6; } | |
18273 | ||
18274 | ||
18275 | cat confdefs.h - <<_ACEOF >conftest.c | |
18276 | /* confdefs.h. */ | |
18277 | _ACEOF | |
18278 | cat confdefs.h >>conftest.$ac_ext | |
18279 | cat >>conftest.$ac_ext <<_ACEOF | |
18280 | /* end confdefs.h. */ | |
18281 | ||
18282 | ||
18283 | #include <linux/blkdev.h> | |
18284 | ||
18285 | int | |
18286 | main (void) | |
18287 | { | |
18288 | ||
18289 | struct request *req = NULL; | |
18290 | (void) rq_is_sync(req); | |
18291 | ||
18292 | ; | |
18293 | return 0; | |
18294 | } | |
18295 | ||
18296 | _ACEOF | |
18297 | ||
18298 | ||
18299 | rm -Rf build && mkdir -p build | |
18300 | echo "obj-m := conftest.o" >build/Makefile | |
18301 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18303 | (eval $ac_try) 2>&5 | |
18304 | ac_status=$? | |
18305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18306 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18308 | (eval $ac_try) 2>&5 | |
18309 | ac_status=$? | |
18310 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18311 | (exit $ac_status); }; }; then | |
18312 | ||
18313 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18314 | $as_echo "yes" >&6; } | |
18315 | ||
18316 | cat >>confdefs.h <<\_ACEOF | |
18317 | #define HAVE_RQ_IS_SYNC 1 | |
18318 | _ACEOF | |
18319 | ||
18320 | ||
18321 | else | |
18322 | $as_echo "$as_me: failed program was:" >&5 | |
18323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18324 | ||
18325 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18326 | $as_echo "no" >&6; } | |
18327 | ||
18328 | ||
18329 | ||
18330 | fi | |
18331 | ||
18332 | rm -Rf build | |
18333 | ||
18334 | ||
18335 | ||
18336 | ||
18337 | { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5 | |
18338 | $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; } | |
18339 | ||
18340 | ||
18341 | cat confdefs.h - <<_ACEOF >conftest.c | |
18342 | /* confdefs.h. */ | |
18343 | _ACEOF | |
18344 | cat confdefs.h >>conftest.$ac_ext | |
18345 | cat >>conftest.$ac_ext <<_ACEOF | |
18346 | /* end confdefs.h. */ | |
18347 | ||
18348 | ||
18349 | #include <linux/blkdev.h> | |
18350 | ||
18351 | int | |
18352 | main (void) | |
18353 | { | |
18354 | ||
18355 | struct bio_vec *bv; | |
18356 | struct req_iterator iter; | |
18357 | struct request *req = NULL; | |
18358 | rq_for_each_segment(bv, req, iter) { } | |
18359 | ||
18360 | ; | |
18361 | return 0; | |
18362 | } | |
18363 | ||
18364 | _ACEOF | |
18365 | ||
18366 | ||
18367 | rm -Rf build && mkdir -p build | |
18368 | echo "obj-m := conftest.o" >build/Makefile | |
18369 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18371 | (eval $ac_try) 2>&5 | |
18372 | ac_status=$? | |
18373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18374 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18376 | (eval $ac_try) 2>&5 | |
18377 | ac_status=$? | |
18378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18379 | (exit $ac_status); }; }; then | |
18380 | ||
18381 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18382 | $as_echo "yes" >&6; } | |
18383 | ||
18384 | cat >>confdefs.h <<\_ACEOF | |
18385 | #define HAVE_RQ_FOR_EACH_SEGMENT 1 | |
18386 | _ACEOF | |
18387 | ||
18388 | ||
18389 | else | |
18390 | $as_echo "$as_me: failed program was:" >&5 | |
18391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18392 | ||
18393 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18394 | $as_echo "no" >&6; } | |
18395 | ||
18396 | ||
18397 | ||
777d4af8 BB |
18398 | fi |
18399 | ||
18400 | rm -Rf build | |
18401 | ||
18402 | ||
18403 | ||
18404 | { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5 | |
18405 | $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; } | |
18406 | ||
18407 | ||
18408 | cat confdefs.h - <<_ACEOF >conftest.c | |
18409 | /* confdefs.h. */ | |
18410 | _ACEOF | |
18411 | cat confdefs.h >>conftest.$ac_ext | |
18412 | cat >>conftest.$ac_ext <<_ACEOF | |
18413 | /* end confdefs.h. */ | |
18414 | ||
18415 | ||
18416 | #include <linux/fs.h> | |
18417 | #include <linux/xattr.h> | |
18418 | ||
18419 | const struct xattr_handler xattr_test_handler = { | |
18420 | .prefix = "test", | |
18421 | .get = NULL, | |
18422 | .set = NULL, | |
18423 | }; | |
18424 | ||
18425 | const struct xattr_handler *xattr_handlers[] = { | |
18426 | &xattr_test_handler, | |
18427 | }; | |
18428 | ||
18429 | int | |
18430 | main (void) | |
18431 | { | |
18432 | ||
79713039 | 18433 | struct super_block sb __attribute__ ((unused)); |
777d4af8 BB |
18434 | |
18435 | sb.s_xattr = xattr_handlers; | |
18436 | ||
18437 | ; | |
18438 | return 0; | |
18439 | } | |
18440 | ||
18441 | _ACEOF | |
18442 | ||
18443 | ||
18444 | rm -Rf build && mkdir -p build | |
18445 | echo "obj-m := conftest.o" >build/Makefile | |
18446 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18448 | (eval $ac_try) 2>&5 | |
18449 | ac_status=$? | |
18450 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18451 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18453 | (eval $ac_try) 2>&5 | |
18454 | ac_status=$? | |
18455 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18456 | (exit $ac_status); }; }; then | |
18457 | ||
18458 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18459 | $as_echo "yes" >&6; } | |
18460 | ||
18461 | cat >>confdefs.h <<\_ACEOF | |
18462 | #define HAVE_CONST_XATTR_HANDLER 1 | |
18463 | _ACEOF | |
18464 | ||
18465 | ||
18466 | else | |
18467 | $as_echo "$as_me: failed program was:" >&5 | |
18468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18469 | ||
18470 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18471 | $as_echo "no" >&6; } | |
18472 | ||
18473 | ||
18474 | ||
e70e591c BB |
18475 | fi |
18476 | ||
18477 | rm -Rf build | |
18478 | ||
18479 | ||
18480 | ||
18481 | ||
f9637c6c BB |
18482 | { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5 |
18483 | $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; } | |
18484 | ||
18485 | ||
18486 | cat confdefs.h - <<_ACEOF >conftest.c | |
18487 | /* confdefs.h. */ | |
18488 | _ACEOF | |
18489 | cat confdefs.h >>conftest.$ac_ext | |
18490 | cat >>conftest.$ac_ext <<_ACEOF | |
18491 | /* end confdefs.h. */ | |
18492 | ||
18493 | ||
18494 | #include <linux/xattr.h> | |
18495 | ||
18496 | int | |
18497 | main (void) | |
18498 | { | |
18499 | ||
18500 | int (*get)(struct dentry *dentry, const char *name, | |
18501 | void *buffer, size_t size, int handler_flags) = NULL; | |
79713039 | 18502 | struct xattr_handler xops __attribute__ ((unused)); |
f9637c6c BB |
18503 | |
18504 | xops.get = get; | |
18505 | ||
18506 | ; | |
18507 | return 0; | |
18508 | } | |
18509 | ||
18510 | _ACEOF | |
18511 | ||
18512 | ||
18513 | rm -Rf build && mkdir -p build | |
18514 | echo "obj-m := conftest.o" >build/Makefile | |
18515 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18517 | (eval $ac_try) 2>&5 | |
18518 | ac_status=$? | |
18519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18520 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18522 | (eval $ac_try) 2>&5 | |
18523 | ac_status=$? | |
18524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18525 | (exit $ac_status); }; }; then | |
18526 | ||
18527 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18528 | $as_echo "yes" >&6; } | |
18529 | ||
18530 | cat >>confdefs.h <<\_ACEOF | |
18531 | #define HAVE_DENTRY_XATTR_GET 1 | |
18532 | _ACEOF | |
18533 | ||
18534 | ||
18535 | else | |
18536 | $as_echo "$as_me: failed program was:" >&5 | |
18537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18538 | ||
18539 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18540 | $as_echo "no" >&6; } | |
18541 | ||
18542 | ||
18543 | ||
18544 | fi | |
18545 | ||
18546 | rm -Rf build | |
18547 | ||
18548 | ||
18549 | ||
18550 | ||
18551 | { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5 | |
18552 | $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; } | |
18553 | ||
18554 | ||
18555 | cat confdefs.h - <<_ACEOF >conftest.c | |
18556 | /* confdefs.h. */ | |
18557 | _ACEOF | |
18558 | cat confdefs.h >>conftest.$ac_ext | |
18559 | cat >>conftest.$ac_ext <<_ACEOF | |
18560 | /* end confdefs.h. */ | |
18561 | ||
18562 | ||
18563 | #include <linux/xattr.h> | |
18564 | ||
18565 | int | |
18566 | main (void) | |
18567 | { | |
18568 | ||
18569 | int (*set)(struct dentry *dentry, const char *name, | |
18570 | const void *buffer, size_t size, int flags, | |
18571 | int handler_flags) = NULL; | |
79713039 | 18572 | struct xattr_handler xops __attribute__ ((unused)); |
f9637c6c BB |
18573 | |
18574 | xops.set = set; | |
18575 | ||
18576 | ; | |
18577 | return 0; | |
18578 | } | |
18579 | ||
18580 | _ACEOF | |
18581 | ||
18582 | ||
18583 | rm -Rf build && mkdir -p build | |
18584 | echo "obj-m := conftest.o" >build/Makefile | |
18585 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18587 | (eval $ac_try) 2>&5 | |
18588 | ac_status=$? | |
18589 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18590 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18592 | (eval $ac_try) 2>&5 | |
18593 | ac_status=$? | |
18594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18595 | (exit $ac_status); }; }; then | |
18596 | ||
18597 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18598 | $as_echo "yes" >&6; } | |
18599 | ||
18600 | cat >>confdefs.h <<\_ACEOF | |
18601 | #define HAVE_DENTRY_XATTR_SET 1 | |
18602 | _ACEOF | |
18603 | ||
18604 | ||
18605 | else | |
18606 | $as_echo "$as_me: failed program was:" >&5 | |
18607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18608 | ||
18609 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18610 | $as_echo "no" >&6; } | |
18611 | ||
18612 | ||
18613 | ||
18614 | fi | |
18615 | ||
18616 | rm -Rf build | |
18617 | ||
18618 | ||
18619 | ||
18620 | ||
7268e1be BB |
18621 | { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5 |
18622 | $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; } | |
18623 | ||
18624 | ||
18625 | cat confdefs.h - <<_ACEOF >conftest.c | |
18626 | /* confdefs.h. */ | |
18627 | _ACEOF | |
18628 | cat confdefs.h >>conftest.$ac_ext | |
18629 | cat >>conftest.$ac_ext <<_ACEOF | |
18630 | /* end confdefs.h. */ | |
18631 | ||
18632 | ||
18633 | #include <linux/fs.h> | |
18634 | ||
18635 | int | |
18636 | main (void) | |
18637 | { | |
18638 | ||
18639 | int (*fsync) (struct file *, int datasync) = NULL; | |
79713039 | 18640 | struct file_operations fops __attribute__ ((unused)); |
7268e1be BB |
18641 | |
18642 | fops.fsync = fsync; | |
18643 | ||
18644 | ; | |
18645 | return 0; | |
18646 | } | |
18647 | ||
18648 | _ACEOF | |
18649 | ||
18650 | ||
18651 | rm -Rf build && mkdir -p build | |
18652 | echo "obj-m := conftest.o" >build/Makefile | |
18653 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18655 | (eval $ac_try) 2>&5 | |
18656 | ac_status=$? | |
18657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18658 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18660 | (eval $ac_try) 2>&5 | |
18661 | ac_status=$? | |
18662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18663 | (exit $ac_status); }; }; then | |
18664 | ||
18665 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18666 | $as_echo "yes" >&6; } | |
18667 | ||
18668 | cat >>confdefs.h <<\_ACEOF | |
18669 | #define HAVE_2ARGS_FSYNC 1 | |
18670 | _ACEOF | |
18671 | ||
18672 | ||
18673 | else | |
18674 | $as_echo "$as_me: failed program was:" >&5 | |
18675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18676 | ||
18677 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18678 | $as_echo "no" >&6; } | |
18679 | ||
18680 | ||
18681 | ||
18682 | fi | |
18683 | ||
18684 | rm -Rf build | |
18685 | ||
18686 | ||
18687 | ||
18688 | ||
2c395def BB |
18689 | { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5 |
18690 | $as_echo_n "checking whether sops->evict_inode() exists... " >&6; } | |
18691 | ||
18692 | ||
18693 | cat confdefs.h - <<_ACEOF >conftest.c | |
18694 | /* confdefs.h. */ | |
18695 | _ACEOF | |
18696 | cat confdefs.h >>conftest.$ac_ext | |
18697 | cat >>conftest.$ac_ext <<_ACEOF | |
18698 | /* end confdefs.h. */ | |
18699 | ||
18700 | ||
18701 | #include <linux/fs.h> | |
18702 | ||
18703 | int | |
18704 | main (void) | |
18705 | { | |
18706 | ||
18707 | void (*evict_inode) (struct inode *) = NULL; | |
79713039 | 18708 | struct super_operations sops __attribute__ ((unused)); |
2c395def BB |
18709 | |
18710 | sops.evict_inode = evict_inode; | |
18711 | ||
18712 | ; | |
18713 | return 0; | |
18714 | } | |
18715 | ||
18716 | _ACEOF | |
18717 | ||
18718 | ||
18719 | rm -Rf build && mkdir -p build | |
18720 | echo "obj-m := conftest.o" >build/Makefile | |
18721 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18723 | (eval $ac_try) 2>&5 | |
18724 | ac_status=$? | |
18725 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18726 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18728 | (eval $ac_try) 2>&5 | |
18729 | ac_status=$? | |
18730 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18731 | (exit $ac_status); }; }; then | |
18732 | ||
18733 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18734 | $as_echo "yes" >&6; } | |
18735 | ||
18736 | cat >>confdefs.h <<\_ACEOF | |
18737 | #define HAVE_EVICT_INODE 1 | |
18738 | _ACEOF | |
18739 | ||
18740 | ||
18741 | else | |
18742 | $as_echo "$as_me: failed program was:" >&5 | |
18743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18744 | ||
18745 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18746 | $as_echo "no" >&6; } | |
18747 | ||
18748 | ||
18749 | ||
18750 | fi | |
18751 | ||
18752 | rm -Rf build | |
18753 | ||
18754 | ||
18755 | ||
18756 | ||
bdf4328b BB |
18757 | { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5 |
18758 | $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; } | |
18759 | grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \ | |
18760 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
18761 | rc=$? | |
18762 | if test $rc -ne 0; then | |
18763 | export=0 | |
18764 | for file in fs/inode.c; do | |
18765 | grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null | |
18766 | rc=$? | |
18767 | if test $rc -eq 0; then | |
18768 | export=1 | |
18769 | break; | |
18770 | fi | |
18771 | done | |
18772 | if test $export -eq 0; then | |
18773 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18774 | $as_echo "no" >&6; } | |
18775 | ||
18776 | else | |
18777 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18778 | $as_echo "yes" >&6; } | |
18779 | ||
18780 | cat >>confdefs.h <<\_ACEOF | |
18781 | #define HAVE_INSERT_INODE_LOCKED 1 | |
18782 | _ACEOF | |
18783 | ||
18784 | fi | |
18785 | else | |
18786 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18787 | $as_echo "yes" >&6; } | |
18788 | ||
18789 | cat >>confdefs.h <<\_ACEOF | |
18790 | #define HAVE_INSERT_INODE_LOCKED 1 | |
18791 | _ACEOF | |
18792 | ||
18793 | fi | |
18794 | ||
18795 | ||
18796 | ||
055656d4 GB |
18797 | { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5 |
18798 | $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; } | |
18799 | grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \ | |
18800 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
18801 | rc=$? | |
18802 | if test $rc -ne 0; then | |
18803 | export=0 | |
18804 | for file in fs/dcache.c; do | |
18805 | grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null | |
18806 | rc=$? | |
18807 | if test $rc -eq 0; then | |
18808 | export=1 | |
18809 | break; | |
18810 | fi | |
18811 | done | |
18812 | if test $export -eq 0; then | |
18813 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18814 | $as_echo "no" >&6; } | |
18815 | ||
18816 | else | |
18817 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18818 | $as_echo "yes" >&6; } | |
18819 | ||
18820 | cat >>confdefs.h <<\_ACEOF | |
18821 | #define HAVE_D_OBTAIN_ALIAS 1 | |
18822 | _ACEOF | |
18823 | ||
18824 | fi | |
18825 | else | |
18826 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18827 | $as_echo "yes" >&6; } | |
18828 | ||
18829 | cat >>confdefs.h <<\_ACEOF | |
18830 | #define HAVE_D_OBTAIN_ALIAS 1 | |
18831 | _ACEOF | |
18832 | ||
18833 | fi | |
18834 | ||
18835 | ||
18836 | ||
df554c14 BB |
18837 | { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5 |
18838 | $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; } | |
18839 | grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \ | |
18840 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
18841 | rc=$? | |
18842 | if test $rc -ne 0; then | |
18843 | export=0 | |
18844 | for file in fs/block_dev.c; do | |
18845 | grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null | |
18846 | rc=$? | |
18847 | if test $rc -eq 0; then | |
18848 | export=1 | |
18849 | break; | |
18850 | fi | |
18851 | done | |
18852 | if test $export -eq 0; then | |
18853 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18854 | $as_echo "no" >&6; } | |
18855 | ||
18856 | else | |
18857 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18858 | $as_echo "yes" >&6; } | |
18859 | ||
18860 | cat >>confdefs.h <<\_ACEOF | |
18861 | #define HAVE_CHECK_DISK_SIZE_CHANGE 1 | |
18862 | _ACEOF | |
18863 | ||
18864 | fi | |
18865 | else | |
18866 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18867 | $as_echo "yes" >&6; } | |
18868 | ||
18869 | cat >>confdefs.h <<\_ACEOF | |
18870 | #define HAVE_CHECK_DISK_SIZE_CHANGE 1 | |
18871 | _ACEOF | |
18872 | ||
18873 | fi | |
18874 | ||
18875 | ||
18876 | ||
b3129792 PJ |
18877 | { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5 |
18878 | $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; } | |
18879 | grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \ | |
18880 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
18881 | rc=$? | |
18882 | if test $rc -ne 0; then | |
18883 | export=0 | |
18884 | for file in mm/truncate.c; do | |
18885 | grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null | |
18886 | rc=$? | |
18887 | if test $rc -eq 0; then | |
18888 | export=1 | |
18889 | break; | |
18890 | fi | |
18891 | done | |
18892 | if test $export -eq 0; then | |
18893 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18894 | $as_echo "no" >&6; } | |
18895 | ||
18896 | else | |
18897 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18898 | $as_echo "yes" >&6; } | |
18899 | ||
18900 | cat >>confdefs.h <<\_ACEOF | |
18901 | #define HAVE_TRUNCATE_SETSIZE 1 | |
18902 | _ACEOF | |
18903 | ||
18904 | fi | |
18905 | else | |
18906 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18907 | $as_echo "yes" >&6; } | |
18908 | ||
18909 | cat >>confdefs.h <<\_ACEOF | |
18910 | #define HAVE_TRUNCATE_SETSIZE 1 | |
18911 | _ACEOF | |
18912 | ||
18913 | fi | |
18914 | ||
18915 | ||
18916 | ||
5c03efc3 BB |
18917 | { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5 |
18918 | $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; } | |
18919 | tmp_flags="$EXTRA_KCFLAGS" | |
18920 | EXTRA_KCFLAGS="-Werror" | |
18921 | ||
18922 | ||
18923 | cat confdefs.h - <<_ACEOF >conftest.c | |
18924 | /* confdefs.h. */ | |
18925 | _ACEOF | |
18926 | cat confdefs.h >>conftest.$ac_ext | |
18927 | cat >>conftest.$ac_ext <<_ACEOF | |
18928 | /* end confdefs.h. */ | |
18929 | ||
18930 | ||
18931 | #include <linux/security.h> | |
18932 | ||
18933 | int | |
18934 | main (void) | |
18935 | { | |
18936 | ||
18937 | security_inode_init_security(NULL,NULL,NULL,NULL,NULL,NULL); | |
18938 | ||
18939 | ; | |
18940 | return 0; | |
18941 | } | |
18942 | ||
18943 | _ACEOF | |
18944 | ||
18945 | ||
18946 | rm -Rf build && mkdir -p build | |
18947 | echo "obj-m := conftest.o" >build/Makefile | |
18948 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
18949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18950 | (eval $ac_try) 2>&5 | |
18951 | ac_status=$? | |
18952 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18953 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
18954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18955 | (eval $ac_try) 2>&5 | |
18956 | ac_status=$? | |
18957 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18958 | (exit $ac_status); }; }; then | |
18959 | ||
18960 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
18961 | $as_echo "yes" >&6; } | |
18962 | ||
18963 | cat >>confdefs.h <<\_ACEOF | |
18964 | #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1 | |
18965 | _ACEOF | |
18966 | ||
18967 | ||
18968 | else | |
18969 | $as_echo "$as_me: failed program was:" >&5 | |
18970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18971 | ||
18972 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
18973 | $as_echo "no" >&6; } | |
18974 | ||
18975 | ||
18976 | ||
18977 | fi | |
18978 | ||
18979 | rm -Rf build | |
18980 | ||
18981 | ||
18982 | EXTRA_KCFLAGS="$tmp_flags" | |
18983 | ||
18984 | ||
2cf7f52b BB |
18985 | { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5 |
18986 | $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; } | |
18987 | grep -q -E '[[:space:]]mount_nodev[[:space:]]' \ | |
18988 | $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null | |
18989 | rc=$? | |
18990 | if test $rc -ne 0; then | |
18991 | export=0 | |
18992 | for file in fs/super.c; do | |
18993 | grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null | |
18994 | rc=$? | |
18995 | if test $rc -eq 0; then | |
18996 | export=1 | |
18997 | break; | |
18998 | fi | |
18999 | done | |
19000 | if test $export -eq 0; then | |
19001 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
19002 | $as_echo "no" >&6; } | |
19003 | ||
19004 | else | |
19005 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
19006 | $as_echo "yes" >&6; } | |
19007 | ||
19008 | cat >>confdefs.h <<\_ACEOF | |
19009 | #define HAVE_MOUNT_NODEV 1 | |
19010 | _ACEOF | |
19011 | ||
19012 | fi | |
19013 | else | |
19014 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
19015 | $as_echo "yes" >&6; } | |
19016 | ||
19017 | cat >>confdefs.h <<\_ACEOF | |
19018 | #define HAVE_MOUNT_NODEV 1 | |
19019 | _ACEOF | |
19020 | ||
19021 | fi | |
19022 | ||
19023 | ||
19024 | ||
76659dc1 BB |
19025 | { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5 |
19026 | $as_echo_n "checking whether super_block has s_bdi... " >&6; } | |
19027 | ||
19028 | ||
19029 | cat confdefs.h - <<_ACEOF >conftest.c | |
19030 | /* confdefs.h. */ | |
19031 | _ACEOF | |
19032 | cat confdefs.h >>conftest.$ac_ext | |
19033 | cat >>conftest.$ac_ext <<_ACEOF | |
19034 | /* end confdefs.h. */ | |
19035 | ||
19036 | ||
19037 | #include <linux/fs.h> | |
19038 | ||
19039 | int | |
19040 | main (void) | |
19041 | { | |
19042 | ||
19043 | struct super_block sb __attribute__ ((unused)); | |
19044 | sb.s_bdi = NULL; | |
19045 | ||
19046 | ; | |
19047 | return 0; | |
19048 | } | |
19049 | ||
19050 | _ACEOF | |
19051 | ||
19052 | ||
19053 | rm -Rf build && mkdir -p build | |
19054 | echo "obj-m := conftest.o" >build/Makefile | |
19055 | if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build' | |
19056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19057 | (eval $ac_try) 2>&5 | |
19058 | ac_status=$? | |
19059 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19060 | (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o' | |
19061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19062 | (eval $ac_try) 2>&5 | |
19063 | ac_status=$? | |
19064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19065 | (exit $ac_status); }; }; then | |
19066 | ||
19067 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
19068 | $as_echo "yes" >&6; } | |
19069 | ||
19070 | cat >>confdefs.h <<\_ACEOF | |
19071 | #define HAVE_BDI 1 | |
19072 | _ACEOF | |
19073 | ||
19074 | ||
19075 | else | |
19076 | $as_echo "$as_me: failed program was:" >&5 | |
19077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19078 | ||
19079 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
19080 | $as_echo "no" >&6; } | |
19081 | ||
19082 | ||
19083 | ||
19084 | fi | |
19085 | ||
19086 | rm -Rf build | |
19087 | ||
19088 | ||
19089 | ||
19090 | ||
e70e591c BB |
19091 | if test "$LINUX_OBJ" != "$LINUX"; then |
19092 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ" | |
19093 | fi | |
19094 | ||
19095 | ||
19096 | ||
8a7e1cee | 19097 | KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE" |
12c1acde | 19098 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL" |
6283f55e BB |
19099 | KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\"" |
19100 | ||
19101 | ||
e70e591c BB |
19102 | |
19103 | ||
19104 | ||
19105 | { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5 | |
19106 | $as_echo_n "checking for target asm dir... " >&6; } | |
19107 | TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/` | |
19108 | ||
19109 | case $TARGET_ARCH in | |
19110 | i386|x86_64) | |
19111 | TARGET_ASM_DIR=asm-${TARGET_ARCH} | |
19112 | ;; | |
19113 | *) | |
19114 | TARGET_ASM_DIR=asm-generic | |
19115 | ;; | |
19116 | esac | |
19117 | ||
19118 | ||
19119 | { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5 | |
19120 | $as_echo "$TARGET_ASM_DIR" >&6; } | |
19121 | ||
19122 | ||
e70e591c BB |
19123 | { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5 |
19124 | $as_echo_n "checking for ioctl()... " >&6; } | |
19125 | cat >conftest.$ac_ext <<_ACEOF | |
19126 | /* confdefs.h. */ | |
19127 | _ACEOF | |
19128 | cat confdefs.h >>conftest.$ac_ext | |
19129 | cat >>conftest.$ac_ext <<_ACEOF | |
19130 | /* end confdefs.h. */ | |
19131 | #include <unistd.h> | |
19132 | ||
19133 | _ACEOF | |
19134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19135 | $EGREP "ioctl" >/dev/null 2>&1; then | |
19136 | is_unistd=yes | |
19137 | else | |
19138 | is_unistd=no | |
19139 | fi | |
19140 | rm -f conftest* | |
19141 | ||
19142 | cat >conftest.$ac_ext <<_ACEOF | |
19143 | /* confdefs.h. */ | |
19144 | _ACEOF | |
19145 | cat confdefs.h >>conftest.$ac_ext | |
19146 | cat >>conftest.$ac_ext <<_ACEOF | |
19147 | /* end confdefs.h. */ | |
19148 | #include <sys/ioctl.h> | |
19149 | ||
19150 | _ACEOF | |
19151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19152 | $EGREP "ioctl" >/dev/null 2>&1; then | |
19153 | is_sys_ioctl=yes | |
19154 | else | |
19155 | is_sys_ioctl=no | |
19156 | fi | |
19157 | rm -f conftest* | |
19158 | ||
19159 | cat >conftest.$ac_ext <<_ACEOF | |
19160 | /* confdefs.h. */ | |
19161 | _ACEOF | |
19162 | cat confdefs.h >>conftest.$ac_ext | |
19163 | cat >>conftest.$ac_ext <<_ACEOF | |
19164 | /* end confdefs.h. */ | |
19165 | #include <stropts.h> | |
19166 | ||
19167 | _ACEOF | |
19168 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19169 | $EGREP "ioctl" >/dev/null 2>&1; then | |
19170 | is_stropts=yes | |
19171 | else | |
19172 | is_stropts=no | |
19173 | fi | |
19174 | rm -f conftest* | |
19175 | ||
19176 | ||
19177 | if test $is_unistd = yes; then | |
19178 | result=unistd.h | |
19179 | ||
19180 | cat >>confdefs.h <<\_ACEOF | |
19181 | #define HAVE_IOCTL_IN_UNISTD_H 1 | |
19182 | _ACEOF | |
19183 | ||
19184 | else | |
19185 | ||
19186 | if test $is_sys_ioctl = yes; then | |
19187 | result=sys/ioctl.h | |
19188 | ||
19189 | cat >>confdefs.h <<\_ACEOF | |
19190 | #define HAVE_IOCTL_IN_SYS_IOCTL_H 1 | |
19191 | _ACEOF | |
19192 | ||
19193 | elif test $is_stropts = yes; then | |
19194 | ||
19195 | cat >>confdefs.h <<\_ACEOF | |
19196 | #define HAVE_IOCTL_IN_STROPTS_H 1 | |
19197 | _ACEOF | |
19198 | ||
19199 | else | |
19200 | result=no | |
19201 | fi | |
19202 | fi | |
19203 | ||
19204 | if test $result = no; then | |
19205 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
19206 | $as_echo "no" >&6; } | |
19207 | { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5 | |
19208 | $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;} | |
19209 | { (exit 1); exit 1; }; } | |
19210 | else | |
19211 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
19212 | $as_echo "yes" >&6; } | |
19213 | fi | |
19214 | ||
19215 | ||
19216 | ZLIB= | |
19217 | ||
19218 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19219 | { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19220 | $as_echo_n "checking for zlib.h... " >&6; } | |
19221 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19222 | $as_echo_n "(cached) " >&6 | |
19223 | fi | |
19224 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19225 | $as_echo "$ac_cv_header_zlib_h" >&6; } | |
19226 | else | |
19227 | # Is the header compilable? | |
19228 | { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
19229 | $as_echo_n "checking zlib.h usability... " >&6; } | |
19230 | cat >conftest.$ac_ext <<_ACEOF | |
19231 | /* confdefs.h. */ | |
19232 | _ACEOF | |
19233 | cat confdefs.h >>conftest.$ac_ext | |
19234 | cat >>conftest.$ac_ext <<_ACEOF | |
19235 | /* end confdefs.h. */ | |
19236 | $ac_includes_default | |
19237 | #include <zlib.h> | |
19238 | _ACEOF | |
19239 | rm -f conftest.$ac_objext | |
19240 | if { (ac_try="$ac_compile" | |
19241 | case "(($ac_try" in | |
19242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19243 | *) ac_try_echo=$ac_try;; | |
19244 | esac | |
19245 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19246 | $as_echo "$ac_try_echo") >&5 | |
19247 | (eval "$ac_compile") 2>conftest.er1 | |
19248 | ac_status=$? | |
19249 | grep -v '^ *+' conftest.er1 >conftest.err | |
19250 | rm -f conftest.er1 | |
19251 | cat conftest.err >&5 | |
19252 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19253 | (exit $ac_status); } && { | |
19254 | test -z "$ac_c_werror_flag" || | |
19255 | test ! -s conftest.err | |
19256 | } && test -s conftest.$ac_objext; then | |
19257 | ac_header_compiler=yes | |
19258 | else | |
19259 | $as_echo "$as_me: failed program was:" >&5 | |
19260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19261 | ||
19262 | ac_header_compiler=no | |
19263 | fi | |
19264 | ||
19265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19266 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19267 | $as_echo "$ac_header_compiler" >&6; } | |
19268 | ||
19269 | # Is the header present? | |
19270 | { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
19271 | $as_echo_n "checking zlib.h presence... " >&6; } | |
19272 | cat >conftest.$ac_ext <<_ACEOF | |
19273 | /* confdefs.h. */ | |
19274 | _ACEOF | |
19275 | cat confdefs.h >>conftest.$ac_ext | |
19276 | cat >>conftest.$ac_ext <<_ACEOF | |
19277 | /* end confdefs.h. */ | |
19278 | #include <zlib.h> | |
19279 | _ACEOF | |
19280 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19281 | case "(($ac_try" in | |
19282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19283 | *) ac_try_echo=$ac_try;; | |
19284 | esac | |
19285 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19286 | $as_echo "$ac_try_echo") >&5 | |
19287 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19288 | ac_status=$? | |
19289 | grep -v '^ *+' conftest.er1 >conftest.err | |
19290 | rm -f conftest.er1 | |
19291 | cat conftest.err >&5 | |
19292 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19293 | (exit $ac_status); } >/dev/null && { | |
19294 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19295 | test ! -s conftest.err | |
19296 | }; then | |
19297 | ac_header_preproc=yes | |
19298 | else | |
19299 | $as_echo "$as_me: failed program was:" >&5 | |
19300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19301 | ||
19302 | ac_header_preproc=no | |
19303 | fi | |
19304 | ||
19305 | rm -f conftest.err conftest.$ac_ext | |
19306 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19307 | $as_echo "$ac_header_preproc" >&6; } | |
19308 | ||
19309 | # So? What about this header? | |
19310 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19311 | yes:no: ) | |
19312 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19313 | $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19314 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
19315 | $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
19316 | ac_header_preproc=yes | |
19317 | ;; | |
19318 | no:yes:* ) | |
19319 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
19320 | $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
19321 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
19322 | $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
19323 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
19324 | $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
19325 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19326 | $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19327 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
19328 | $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
19329 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
19330 | $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
19331 | ||
19332 | ;; | |
19333 | esac | |
19334 | { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19335 | $as_echo_n "checking for zlib.h... " >&6; } | |
19336 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19337 | $as_echo_n "(cached) " >&6 | |
19338 | else | |
19339 | ac_cv_header_zlib_h=$ac_header_preproc | |
19340 | fi | |
19341 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19342 | $as_echo "$ac_cv_header_zlib_h" >&6; } | |
19343 | ||
19344 | fi | |
19345 | if test "x$ac_cv_header_zlib_h" = x""yes; then | |
19346 | : | |
19347 | else | |
19348 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
19349 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19350 | { { $as_echo "$as_me:$LINENO: error: | |
19351 | *** zlib.h missing, zlib-devel package required | |
19352 | See \`config.log' for more details." >&5 | |
19353 | $as_echo "$as_me: error: | |
19354 | *** zlib.h missing, zlib-devel package required | |
19355 | See \`config.log' for more details." >&2;} | |
19356 | { (exit 1); exit 1; }; }; } | |
19357 | fi | |
19358 | ||
19359 | ||
19360 | ||
19361 | ||
19362 | { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 | |
19363 | $as_echo_n "checking for compress2 in -lz... " >&6; } | |
19364 | if test "${ac_cv_lib_z_compress2+set}" = set; then | |
19365 | $as_echo_n "(cached) " >&6 | |
19366 | else | |
19367 | ac_check_lib_save_LIBS=$LIBS | |
19368 | LIBS="-lz $LIBS" | |
19369 | cat >conftest.$ac_ext <<_ACEOF | |
19370 | /* confdefs.h. */ | |
19371 | _ACEOF | |
19372 | cat confdefs.h >>conftest.$ac_ext | |
19373 | cat >>conftest.$ac_ext <<_ACEOF | |
19374 | /* end confdefs.h. */ | |
19375 | ||
19376 | /* Override any GCC internal prototype to avoid an error. | |
19377 | Use char because int might match the return type of a GCC | |
19378 | builtin and then its argument prototype would still apply. */ | |
19379 | #ifdef __cplusplus | |
19380 | extern "C" | |
19381 | #endif | |
19382 | char compress2 (); | |
19383 | int | |
19384 | main () | |
19385 | { | |
19386 | return compress2 (); | |
19387 | ; | |
19388 | return 0; | |
19389 | } | |
19390 | _ACEOF | |
19391 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19392 | if { (ac_try="$ac_link" | |
19393 | case "(($ac_try" in | |
19394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19395 | *) ac_try_echo=$ac_try;; | |
19396 | esac | |
19397 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19398 | $as_echo "$ac_try_echo") >&5 | |
19399 | (eval "$ac_link") 2>conftest.er1 | |
19400 | ac_status=$? | |
19401 | grep -v '^ *+' conftest.er1 >conftest.err | |
19402 | rm -f conftest.er1 | |
19403 | cat conftest.err >&5 | |
19404 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19405 | (exit $ac_status); } && { | |
19406 | test -z "$ac_c_werror_flag" || | |
19407 | test ! -s conftest.err | |
19408 | } && test -s conftest$ac_exeext && { | |
19409 | test "$cross_compiling" = yes || | |
19410 | $as_test_x conftest$ac_exeext | |
19411 | }; then | |
19412 | ac_cv_lib_z_compress2=yes | |
19413 | else | |
19414 | $as_echo "$as_me: failed program was:" >&5 | |
19415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19416 | ||
19417 | ac_cv_lib_z_compress2=no | |
19418 | fi | |
19419 | ||
19420 | rm -rf conftest.dSYM | |
19421 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19422 | conftest$ac_exeext conftest.$ac_ext | |
19423 | LIBS=$ac_check_lib_save_LIBS | |
19424 | fi | |
19425 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 | |
19426 | $as_echo "$ac_cv_lib_z_compress2" >&6; } | |
19427 | if test "x$ac_cv_lib_z_compress2" = x""yes; then | |
19428 | cat >>confdefs.h <<_ACEOF | |
19429 | #define HAVE_LIBZ 1 | |
19430 | _ACEOF | |
19431 | ||
19432 | LIBS="-lz $LIBS" | |
19433 | ||
19434 | else | |
19435 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
19436 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19437 | { { $as_echo "$as_me:$LINENO: error: | |
19438 | *** compress2() missing, zlib-devel package required | |
19439 | See \`config.log' for more details." >&5 | |
19440 | $as_echo "$as_me: error: | |
19441 | *** compress2() missing, zlib-devel package required | |
19442 | See \`config.log' for more details." >&2;} | |
19443 | { (exit 1); exit 1; }; }; } | |
19444 | fi | |
19445 | ||
19446 | ||
19447 | ||
19448 | { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5 | |
19449 | $as_echo_n "checking for uncompress in -lz... " >&6; } | |
19450 | if test "${ac_cv_lib_z_uncompress+set}" = set; then | |
19451 | $as_echo_n "(cached) " >&6 | |
19452 | else | |
19453 | ac_check_lib_save_LIBS=$LIBS | |
19454 | LIBS="-lz $LIBS" | |
19455 | cat >conftest.$ac_ext <<_ACEOF | |
19456 | /* confdefs.h. */ | |
19457 | _ACEOF | |
19458 | cat confdefs.h >>conftest.$ac_ext | |
19459 | cat >>conftest.$ac_ext <<_ACEOF | |
19460 | /* end confdefs.h. */ | |
19461 | ||
19462 | /* Override any GCC internal prototype to avoid an error. | |
19463 | Use char because int might match the return type of a GCC | |
19464 | builtin and then its argument prototype would still apply. */ | |
19465 | #ifdef __cplusplus | |
19466 | extern "C" | |
19467 | #endif | |
19468 | char uncompress (); | |
19469 | int | |
19470 | main () | |
19471 | { | |
19472 | return uncompress (); | |
19473 | ; | |
19474 | return 0; | |
19475 | } | |
19476 | _ACEOF | |
19477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19478 | if { (ac_try="$ac_link" | |
19479 | case "(($ac_try" in | |
19480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19481 | *) ac_try_echo=$ac_try;; | |
19482 | esac | |
19483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19484 | $as_echo "$ac_try_echo") >&5 | |
19485 | (eval "$ac_link") 2>conftest.er1 | |
19486 | ac_status=$? | |
19487 | grep -v '^ *+' conftest.er1 >conftest.err | |
19488 | rm -f conftest.er1 | |
19489 | cat conftest.err >&5 | |
19490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19491 | (exit $ac_status); } && { | |
19492 | test -z "$ac_c_werror_flag" || | |
19493 | test ! -s conftest.err | |
19494 | } && test -s conftest$ac_exeext && { | |
19495 | test "$cross_compiling" = yes || | |
19496 | $as_test_x conftest$ac_exeext | |
19497 | }; then | |
19498 | ac_cv_lib_z_uncompress=yes | |
19499 | else | |
19500 | $as_echo "$as_me: failed program was:" >&5 | |
19501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19502 | ||
19503 | ac_cv_lib_z_uncompress=no | |
19504 | fi | |
19505 | ||
19506 | rm -rf conftest.dSYM | |
19507 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19508 | conftest$ac_exeext conftest.$ac_ext | |
19509 | LIBS=$ac_check_lib_save_LIBS | |
19510 | fi | |
19511 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5 | |
19512 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | |
19513 | if test "x$ac_cv_lib_z_uncompress" = x""yes; then | |
19514 | cat >>confdefs.h <<_ACEOF | |
19515 | #define HAVE_LIBZ 1 | |
19516 | _ACEOF | |
19517 | ||
19518 | LIBS="-lz $LIBS" | |
19519 | ||
19520 | else | |
19521 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
19522 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19523 | { { $as_echo "$as_me:$LINENO: error: | |
19524 | *** uncompress() missing, zlib-devel package required | |
19525 | See \`config.log' for more details." >&5 | |
19526 | $as_echo "$as_me: error: | |
19527 | *** uncompress() missing, zlib-devel package required | |
19528 | See \`config.log' for more details." >&2;} | |
19529 | { (exit 1); exit 1; }; }; } | |
19530 | fi | |
19531 | ||
19532 | ||
19533 | ||
19534 | { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5 | |
19535 | $as_echo_n "checking for crc32 in -lz... " >&6; } | |
19536 | if test "${ac_cv_lib_z_crc32+set}" = set; then | |
19537 | $as_echo_n "(cached) " >&6 | |
19538 | else | |
19539 | ac_check_lib_save_LIBS=$LIBS | |
19540 | LIBS="-lz $LIBS" | |
19541 | cat >conftest.$ac_ext <<_ACEOF | |
19542 | /* confdefs.h. */ | |
19543 | _ACEOF | |
19544 | cat confdefs.h >>conftest.$ac_ext | |
19545 | cat >>conftest.$ac_ext <<_ACEOF | |
19546 | /* end confdefs.h. */ | |
19547 | ||
19548 | /* Override any GCC internal prototype to avoid an error. | |
19549 | Use char because int might match the return type of a GCC | |
19550 | builtin and then its argument prototype would still apply. */ | |
19551 | #ifdef __cplusplus | |
19552 | extern "C" | |
19553 | #endif | |
19554 | char crc32 (); | |
19555 | int | |
19556 | main () | |
19557 | { | |
19558 | return crc32 (); | |
19559 | ; | |
19560 | return 0; | |
19561 | } | |
19562 | _ACEOF | |
19563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19564 | if { (ac_try="$ac_link" | |
19565 | case "(($ac_try" in | |
19566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19567 | *) ac_try_echo=$ac_try;; | |
19568 | esac | |
19569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19570 | $as_echo "$ac_try_echo") >&5 | |
19571 | (eval "$ac_link") 2>conftest.er1 | |
19572 | ac_status=$? | |
19573 | grep -v '^ *+' conftest.er1 >conftest.err | |
19574 | rm -f conftest.er1 | |
19575 | cat conftest.err >&5 | |
19576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19577 | (exit $ac_status); } && { | |
19578 | test -z "$ac_c_werror_flag" || | |
19579 | test ! -s conftest.err | |
19580 | } && test -s conftest$ac_exeext && { | |
19581 | test "$cross_compiling" = yes || | |
19582 | $as_test_x conftest$ac_exeext | |
19583 | }; then | |
19584 | ac_cv_lib_z_crc32=yes | |
19585 | else | |
19586 | $as_echo "$as_me: failed program was:" >&5 | |
19587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19588 | ||
19589 | ac_cv_lib_z_crc32=no | |
19590 | fi | |
19591 | ||
19592 | rm -rf conftest.dSYM | |
19593 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19594 | conftest$ac_exeext conftest.$ac_ext | |
19595 | LIBS=$ac_check_lib_save_LIBS | |
19596 | fi | |
19597 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5 | |
19598 | $as_echo "$ac_cv_lib_z_crc32" >&6; } | |
19599 | if test "x$ac_cv_lib_z_crc32" = x""yes; then | |
19600 | cat >>confdefs.h <<_ACEOF | |
19601 | #define HAVE_LIBZ 1 | |
19602 | _ACEOF | |
19603 | ||
19604 | LIBS="-lz $LIBS" | |
19605 | ||
19606 | else | |
19607 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
19608 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19609 | { { $as_echo "$as_me:$LINENO: error: | |
19610 | *** crc32() missing, zlib-devel package required | |
19611 | See \`config.log' for more details." >&5 | |
19612 | $as_echo "$as_me: error: | |
19613 | *** crc32() missing, zlib-devel package required | |
19614 | See \`config.log' for more details." >&2;} | |
19615 | { (exit 1); exit 1; }; }; } | |
19616 | fi | |
19617 | ||
19618 | ||
19619 | ZLIB="-lz" | |
19620 | ||
19621 | ||
19622 | cat >>confdefs.h <<\_ACEOF | |
19623 | #define HAVE_ZLIB 1 | |
19624 | _ACEOF | |
19625 | ||
19626 | ||
19627 | ||
19628 | LIBUUID= | |
19629 | ||
19630 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then | |
19631 | { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 | |
19632 | $as_echo_n "checking for uuid/uuid.h... " >&6; } | |
19633 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then | |
19634 | $as_echo_n "(cached) " >&6 | |
19635 | fi | |
19636 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 | |
19637 | $as_echo "$ac_cv_header_uuid_uuid_h" >&6; } | |
19638 | else | |
19639 | # Is the header compilable? | |
19640 | { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 | |
19641 | $as_echo_n "checking uuid/uuid.h usability... " >&6; } | |
19642 | cat >conftest.$ac_ext <<_ACEOF | |
19643 | /* confdefs.h. */ | |
19644 | _ACEOF | |
19645 | cat confdefs.h >>conftest.$ac_ext | |
19646 | cat >>conftest.$ac_ext <<_ACEOF | |
19647 | /* end confdefs.h. */ | |
19648 | $ac_includes_default | |
19649 | #include <uuid/uuid.h> | |
19650 | _ACEOF | |
19651 | rm -f conftest.$ac_objext | |
19652 | if { (ac_try="$ac_compile" | |
19653 | case "(($ac_try" in | |
19654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19655 | *) ac_try_echo=$ac_try;; | |
19656 | esac | |
19657 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19658 | $as_echo "$ac_try_echo") >&5 | |
19659 | (eval "$ac_compile") 2>conftest.er1 | |
19660 | ac_status=$? | |
19661 | grep -v '^ *+' conftest.er1 >conftest.err | |
19662 | rm -f conftest.er1 | |
19663 | cat conftest.err >&5 | |
19664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19665 | (exit $ac_status); } && { | |
19666 | test -z "$ac_c_werror_flag" || | |
19667 | test ! -s conftest.err | |
19668 | } && test -s conftest.$ac_objext; then | |
19669 | ac_header_compiler=yes | |
19670 | else | |
19671 | $as_echo "$as_me: failed program was:" >&5 | |
19672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19673 | ||
19674 | ac_header_compiler=no | |
19675 | fi | |
19676 | ||
19677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19678 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19679 | $as_echo "$ac_header_compiler" >&6; } | |
19680 | ||
19681 | # Is the header present? | |
19682 | { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 | |
19683 | $as_echo_n "checking uuid/uuid.h presence... " >&6; } | |
19684 | cat >conftest.$ac_ext <<_ACEOF | |
19685 | /* confdefs.h. */ | |
19686 | _ACEOF | |
19687 | cat confdefs.h >>conftest.$ac_ext | |
19688 | cat >>conftest.$ac_ext <<_ACEOF | |
19689 | /* end confdefs.h. */ | |
19690 | #include <uuid/uuid.h> | |
19691 | _ACEOF | |
19692 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
19693 | case "(($ac_try" in | |
19694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19695 | *) ac_try_echo=$ac_try;; | |
19696 | esac | |
19697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19698 | $as_echo "$ac_try_echo") >&5 | |
19699 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
19700 | ac_status=$? | |
19701 | grep -v '^ *+' conftest.er1 >conftest.err | |
19702 | rm -f conftest.er1 | |
19703 | cat conftest.err >&5 | |
19704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19705 | (exit $ac_status); } >/dev/null && { | |
19706 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19707 | test ! -s conftest.err | |
19708 | }; then | |
19709 | ac_header_preproc=yes | |
19710 | else | |
19711 | $as_echo "$as_me: failed program was:" >&5 | |
19712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19713 | ||
19714 | ac_header_preproc=no | |
19715 | fi | |
19716 | ||
19717 | rm -f conftest.err conftest.$ac_ext | |
19718 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19719 | $as_echo "$ac_header_preproc" >&6; } | |
19720 | ||
19721 | # So? What about this header? | |
19722 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19723 | yes:no: ) | |
19724 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19725 | $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19726 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 | |
19727 | $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} | |
19728 | ac_header_preproc=yes | |
19729 | ;; | |
19730 | no:yes:* ) | |
19731 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 | |
19732 | $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} | |
19733 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 | |
19734 | $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} | |
19735 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 | |
19736 | $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} | |
19737 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19738 | $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
19739 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 | |
19740 | $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} | |
19741 | { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 | |
19742 | $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} | |
19743 | ||
19744 | ;; | |
19745 | esac | |
19746 | { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 | |
19747 | $as_echo_n "checking for uuid/uuid.h... " >&6; } | |
19748 | if test "${ac_cv_header_uuid_uuid_h+set}" = set; then | |
19749 | $as_echo_n "(cached) " >&6 | |
19750 | else | |
19751 | ac_cv_header_uuid_uuid_h=$ac_header_preproc | |
19752 | fi | |
19753 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 | |
19754 | $as_echo "$ac_cv_header_uuid_uuid_h" >&6; } | |
19755 | ||
19756 | fi | |
19757 | if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then | |
19758 | : | |
19759 | else | |
19760 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
19761 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19762 | { { $as_echo "$as_me:$LINENO: error: | |
19763 | *** uuid/uuid.h missing, libuuid-devel package required | |
19764 | See \`config.log' for more details." >&5 | |
19765 | $as_echo "$as_me: error: | |
19766 | *** uuid/uuid.h missing, libuuid-devel package required | |
19767 | See \`config.log' for more details." >&2;} | |
19768 | { (exit 1); exit 1; }; }; } | |
19769 | fi | |
19770 | ||
19771 | ||
19772 | ||
19773 | ||
19774 | { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 | |
19775 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
19776 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then | |
19777 | $as_echo_n "(cached) " >&6 | |
19778 | else | |
19779 | ac_check_lib_save_LIBS=$LIBS | |
19780 | LIBS="-luuid $LIBS" | |
19781 | cat >conftest.$ac_ext <<_ACEOF | |
19782 | /* confdefs.h. */ | |
19783 | _ACEOF | |
19784 | cat confdefs.h >>conftest.$ac_ext | |
19785 | cat >>conftest.$ac_ext <<_ACEOF | |
19786 | /* end confdefs.h. */ | |
19787 | ||
19788 | /* Override any GCC internal prototype to avoid an error. | |
19789 | Use char because int might match the return type of a GCC | |
19790 | builtin and then its argument prototype would still apply. */ | |
19791 | #ifdef __cplusplus | |
19792 | extern "C" | |
19793 | #endif | |
19794 | char uuid_generate (); | |
19795 | int | |
19796 | main () | |
19797 | { | |
19798 | return uuid_generate (); | |
19799 | ; | |
19800 | return 0; | |
19801 | } | |
19802 | _ACEOF | |
19803 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19804 | if { (ac_try="$ac_link" | |
19805 | case "(($ac_try" in | |
19806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19807 | *) ac_try_echo=$ac_try;; | |
19808 | esac | |
19809 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19810 | $as_echo "$ac_try_echo") >&5 | |
19811 | (eval "$ac_link") 2>conftest.er1 | |
19812 | ac_status=$? | |
19813 | grep -v '^ *+' conftest.er1 >conftest.err | |
19814 | rm -f conftest.er1 | |
19815 | cat conftest.err >&5 | |
19816 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19817 | (exit $ac_status); } && { | |
19818 | test -z "$ac_c_werror_flag" || | |
19819 | test ! -s conftest.err | |
19820 | } && test -s conftest$ac_exeext && { | |
19821 | test "$cross_compiling" = yes || | |
19822 | $as_test_x conftest$ac_exeext | |
19823 | }; then | |
19824 | ac_cv_lib_uuid_uuid_generate=yes | |
19825 | else | |
19826 | $as_echo "$as_me: failed program was:" >&5 | |
19827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19828 | ||
19829 | ac_cv_lib_uuid_uuid_generate=no | |
19830 | fi | |
19831 | ||
19832 | rm -rf conftest.dSYM | |
19833 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19834 | conftest$ac_exeext conftest.$ac_ext | |
19835 | LIBS=$ac_check_lib_save_LIBS | |
19836 | fi | |
19837 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
19838 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
19839 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then | |
19840 | cat >>confdefs.h <<_ACEOF | |
19841 | #define HAVE_LIBUUID 1 | |
19842 | _ACEOF | |
19843 | ||
19844 | LIBS="-luuid $LIBS" | |
19845 | ||
19846 | else | |
19847 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
19848 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19849 | { { $as_echo "$as_me:$LINENO: error: | |
19850 | *** uuid_generate() missing, libuuid-devel package required | |
19851 | See \`config.log' for more details." >&5 | |
19852 | $as_echo "$as_me: error: | |
19853 | *** uuid_generate() missing, libuuid-devel package required | |
19854 | See \`config.log' for more details." >&2;} | |
19855 | { (exit 1); exit 1; }; }; } | |
19856 | fi | |
19857 | ||
19858 | ||
19859 | ||
19860 | { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5 | |
19861 | $as_echo_n "checking for uuid_is_null in -luuid... " >&6; } | |
19862 | if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then | |
19863 | $as_echo_n "(cached) " >&6 | |
19864 | else | |
19865 | ac_check_lib_save_LIBS=$LIBS | |
19866 | LIBS="-luuid $LIBS" | |
19867 | cat >conftest.$ac_ext <<_ACEOF | |
19868 | /* confdefs.h. */ | |
19869 | _ACEOF | |
19870 | cat confdefs.h >>conftest.$ac_ext | |
19871 | cat >>conftest.$ac_ext <<_ACEOF | |
19872 | /* end confdefs.h. */ | |
19873 | ||
19874 | /* Override any GCC internal prototype to avoid an error. | |
19875 | Use char because int might match the return type of a GCC | |
19876 | builtin and then its argument prototype would still apply. */ | |
19877 | #ifdef __cplusplus | |
19878 | extern "C" | |
19879 | #endif | |
19880 | char uuid_is_null (); | |
19881 | int | |
19882 | main () | |
19883 | { | |
19884 | return uuid_is_null (); | |
19885 | ; | |
19886 | return 0; | |
19887 | } | |
19888 | _ACEOF | |
19889 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19890 | if { (ac_try="$ac_link" | |
19891 | case "(($ac_try" in | |
19892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19893 | *) ac_try_echo=$ac_try;; | |
19894 | esac | |
19895 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
19896 | $as_echo "$ac_try_echo") >&5 | |
19897 | (eval "$ac_link") 2>conftest.er1 | |
19898 | ac_status=$? | |
19899 | grep -v '^ *+' conftest.er1 >conftest.err | |
19900 | rm -f conftest.er1 | |
19901 | cat conftest.err >&5 | |
19902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19903 | (exit $ac_status); } && { | |
19904 | test -z "$ac_c_werror_flag" || | |
19905 | test ! -s conftest.err | |
19906 | } && test -s conftest$ac_exeext && { | |
19907 | test "$cross_compiling" = yes || | |
19908 | $as_test_x conftest$ac_exeext | |
19909 | }; then | |
19910 | ac_cv_lib_uuid_uuid_is_null=yes | |
19911 | else | |
19912 | $as_echo "$as_me: failed program was:" >&5 | |
19913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19914 | ||
19915 | ac_cv_lib_uuid_uuid_is_null=no | |
19916 | fi | |
19917 | ||
19918 | rm -rf conftest.dSYM | |
19919 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19920 | conftest$ac_exeext conftest.$ac_ext | |
19921 | LIBS=$ac_check_lib_save_LIBS | |
19922 | fi | |
19923 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5 | |
19924 | $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; } | |
19925 | if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then | |
19926 | cat >>confdefs.h <<_ACEOF | |
19927 | #define HAVE_LIBUUID 1 | |
19928 | _ACEOF | |
19929 | ||
19930 | LIBS="-luuid $LIBS" | |
19931 | ||
19932 | else | |
19933 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
19934 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19935 | { { $as_echo "$as_me:$LINENO: error: | |
19936 | *** uuid_is_null() missing, libuuid-devel package required | |
19937 | See \`config.log' for more details." >&5 | |
19938 | $as_echo "$as_me: error: | |
19939 | *** uuid_is_null() missing, libuuid-devel package required | |
19940 | See \`config.log' for more details." >&2;} | |
19941 | { (exit 1); exit 1; }; }; } | |
19942 | fi | |
19943 | ||
19944 | ||
19945 | LIBUUID="-luuid" | |
19946 | ||
19947 | ||
19948 | cat >>confdefs.h <<\_ACEOF | |
19949 | #define HAVE_LIBUUID 1 | |
19950 | _ACEOF | |
19951 | ||
19952 | ||
19953 | ||
19954 | ||
19955 | # Check whether --with-blkid was given. | |
19956 | if test "${with_blkid+set}" = set; then | |
19957 | withval=$with_blkid; | |
19958 | else | |
19959 | with_blkid=check | |
19960 | fi | |
19961 | ||
19962 | ||
19963 | LIBBLKID= | |
19964 | if test "x$with_blkid" != xno; then | |
19965 | ||
19966 | { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5 | |
19967 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
19968 | if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then | |
19969 | $as_echo_n "(cached) " >&6 | |
19970 | else | |
19971 | ac_check_lib_save_LIBS=$LIBS | |
19972 | LIBS="-lblkid $LIBS" | |
19973 | cat >conftest.$ac_ext <<_ACEOF | |
19974 | /* confdefs.h. */ | |
19975 | _ACEOF | |
19976 | cat confdefs.h >>conftest.$ac_ext | |
19977 | cat >>conftest.$ac_ext <<_ACEOF | |
19978 | /* end confdefs.h. */ | |
19979 | ||
19980 | /* Override any GCC internal prototype to avoid an error. | |
19981 | Use char because int might match the return type of a GCC | |
19982 | builtin and then its argument prototype would still apply. */ | |
19983 | #ifdef __cplusplus | |
19984 | extern "C" | |
19985 | #endif | |
19986 | char blkid_get_cache (); | |
19987 | int | |
19988 | main () | |
19989 | { | |
19990 | return blkid_get_cache (); | |
19991 | ; | |
19992 | return 0; | |
19993 | } | |
19994 | _ACEOF | |
19995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19996 | if { (ac_try="$ac_link" | |
19997 | case "(($ac_try" in | |
19998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19999 | *) ac_try_echo=$ac_try;; | |
20000 | esac | |
20001 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20002 | $as_echo "$ac_try_echo") >&5 | |
20003 | (eval "$ac_link") 2>conftest.er1 | |
20004 | ac_status=$? | |
20005 | grep -v '^ *+' conftest.er1 >conftest.err | |
20006 | rm -f conftest.er1 | |
20007 | cat conftest.err >&5 | |
20008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20009 | (exit $ac_status); } && { | |
20010 | test -z "$ac_c_werror_flag" || | |
20011 | test ! -s conftest.err | |
20012 | } && test -s conftest$ac_exeext && { | |
20013 | test "$cross_compiling" = yes || | |
20014 | $as_test_x conftest$ac_exeext | |
20015 | }; then | |
20016 | ac_cv_lib_blkid_blkid_get_cache=yes | |
20017 | else | |
20018 | $as_echo "$as_me: failed program was:" >&5 | |
20019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20020 | ||
20021 | ac_cv_lib_blkid_blkid_get_cache=no | |
20022 | fi | |
20023 | ||
20024 | rm -rf conftest.dSYM | |
20025 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20026 | conftest$ac_exeext conftest.$ac_ext | |
20027 | LIBS=$ac_check_lib_save_LIBS | |
20028 | fi | |
20029 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
20030 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
20031 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then | |
20032 | ||
20033 | { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5 | |
20034 | $as_echo_n "checking for blkid zfs support... " >&6; } | |
20035 | ||
20036 | ZFS_DEV=`mktemp` | |
20037 | dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \ | |
20038 | >/dev/null 2>/dev/null | |
20039 | echo -en "\x0c\xb1\xba\0\0\0\0\0" | \ | |
20040 | dd of=$ZFS_DEV bs=1k count=8 \ | |
20041 | seek=132 conv=notrunc &>/dev/null \ | |
20042 | >/dev/null 2>/dev/null | |
20043 | ||
20044 | saved_LDFLAGS="$LDFLAGS" | |
20045 | LDFLAGS="-lblkid" | |
20046 | ||
20047 | if test "$cross_compiling" = yes; then | |
20048 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20049 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20050 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
20051 | See \`config.log' for more details." >&5 | |
20052 | $as_echo "$as_me: error: cannot run test program while cross compiling | |
20053 | See \`config.log' for more details." >&2;} | |
20054 | { (exit 1); exit 1; }; }; } | |
20055 | else | |
20056 | cat >conftest.$ac_ext <<_ACEOF | |
20057 | /* confdefs.h. */ | |
20058 | _ACEOF | |
20059 | cat confdefs.h >>conftest.$ac_ext | |
20060 | cat >>conftest.$ac_ext <<_ACEOF | |
20061 | /* end confdefs.h. */ | |
20062 | ||
20063 | #include <stdio.h> | |
20064 | #include <blkid/blkid.h> | |
20065 | ||
20066 | int | |
20067 | main () | |
20068 | { | |
20069 | ||
20070 | blkid_cache cache; | |
20071 | char *value; | |
20072 | ||
20073 | if (blkid_get_cache(&cache, NULL) < 0) | |
20074 | return 1; | |
20075 | ||
20076 | value = blkid_get_tag_value(cache, "TYPE", | |
20077 | "$ZFS_DEV"); | |
20078 | if (!value) { | |
20079 | blkid_put_cache(cache); | |
20080 | return 2; | |
20081 | } | |
20082 | ||
20083 | if (strcmp(value, "zfs")) { | |
20084 | free(value); | |
20085 | blkid_put_cache(cache); | |
20086 | return 3; | |
20087 | } | |
20088 | ||
20089 | free(value); | |
20090 | blkid_put_cache(cache); | |
20091 | ||
20092 | ; | |
20093 | return 0; | |
20094 | } | |
20095 | _ACEOF | |
20096 | rm -f conftest$ac_exeext | |
20097 | if { (ac_try="$ac_link" | |
20098 | case "(($ac_try" in | |
20099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20100 | *) ac_try_echo=$ac_try;; | |
20101 | esac | |
20102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20103 | $as_echo "$ac_try_echo") >&5 | |
20104 | (eval "$ac_link") 2>&5 | |
20105 | ac_status=$? | |
20106 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20107 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20108 | { (case "(($ac_try" in | |
20109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20110 | *) ac_try_echo=$ac_try;; | |
20111 | esac | |
20112 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20113 | $as_echo "$ac_try_echo") >&5 | |
20114 | (eval "$ac_try") 2>&5 | |
20115 | ac_status=$? | |
20116 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20117 | (exit $ac_status); }; }; then | |
20118 | ||
20119 | rm -f $ZFS_DEV | |
20120 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
20121 | $as_echo "yes" >&6; } | |
20122 | LIBBLKID="-lblkid" | |
20123 | ||
20124 | ||
20125 | cat >>confdefs.h <<\_ACEOF | |
20126 | #define HAVE_LIBBLKID 1 | |
20127 | _ACEOF | |
20128 | ||
20129 | ||
20130 | else | |
20131 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
20132 | $as_echo "$as_me: failed program was:" >&5 | |
20133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20134 | ||
20135 | ( exit $ac_status ) | |
20136 | ||
20137 | rm -f $ZFS_DEV | |
20138 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
20139 | $as_echo "no" >&6; } | |
20140 | if test "x$with_blkid" != xcheck; then | |
20141 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20142 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20143 | { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable | |
20144 | See \`config.log' for more details." >&5 | |
20145 | $as_echo "$as_me: error: --with-blkid given but unavailable | |
20146 | See \`config.log' for more details." >&2;} | |
20147 | { (exit 1); exit 1; }; }; } | |
20148 | fi | |
20149 | ||
20150 | ||
20151 | fi | |
20152 | rm -rf conftest.dSYM | |
20153 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20154 | fi | |
20155 | ||
20156 | ||
20157 | ||
20158 | LDFLAGS="$saved_LDFLAGS" | |
20159 | ||
20160 | else | |
20161 | ||
20162 | if test "x$with_blkid" != xcheck; then | |
20163 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20164 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20165 | { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable | |
20166 | See \`config.log' for more details." >&5 | |
20167 | $as_echo "$as_me: error: --with-blkid given but unavailable | |
20168 | See \`config.log' for more details." >&2;} | |
20169 | { (exit 1); exit 1; }; }; } | |
20170 | fi | |
20171 | ||
20172 | ||
20173 | ||
20174 | fi | |
20175 | ||
20176 | ||
20177 | fi | |
20178 | ||
20179 | ||
20180 | ||
b3259b6a BB |
20181 | |
20182 | # Check whether --with-selinux was given. | |
20183 | if test "${with_selinux+set}" = set; then | |
20184 | withval=$with_selinux; | |
20185 | else | |
20186 | with_selinux=check | |
20187 | fi | |
20188 | ||
20189 | ||
20190 | LIBSELINUX= | |
20191 | if test "x$with_selinux" != xno; then | |
20192 | ||
20193 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | |
20194 | { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | |
20195 | $as_echo_n "checking for selinux/selinux.h... " >&6; } | |
20196 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | |
20197 | $as_echo_n "(cached) " >&6 | |
20198 | fi | |
20199 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | |
20200 | $as_echo "$ac_cv_header_selinux_selinux_h" >&6; } | |
20201 | else | |
20202 | # Is the header compilable? | |
20203 | { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | |
20204 | $as_echo_n "checking selinux/selinux.h usability... " >&6; } | |
20205 | cat >conftest.$ac_ext <<_ACEOF | |
20206 | /* confdefs.h. */ | |
20207 | _ACEOF | |
20208 | cat confdefs.h >>conftest.$ac_ext | |
20209 | cat >>conftest.$ac_ext <<_ACEOF | |
20210 | /* end confdefs.h. */ | |
20211 | $ac_includes_default | |
20212 | #include <selinux/selinux.h> | |
20213 | _ACEOF | |
20214 | rm -f conftest.$ac_objext | |
20215 | if { (ac_try="$ac_compile" | |
20216 | case "(($ac_try" in | |
20217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20218 | *) ac_try_echo=$ac_try;; | |
20219 | esac | |
20220 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20221 | $as_echo "$ac_try_echo") >&5 | |
20222 | (eval "$ac_compile") 2>conftest.er1 | |
20223 | ac_status=$? | |
20224 | grep -v '^ *+' conftest.er1 >conftest.err | |
20225 | rm -f conftest.er1 | |
20226 | cat conftest.err >&5 | |
20227 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20228 | (exit $ac_status); } && { | |
20229 | test -z "$ac_c_werror_flag" || | |
20230 | test ! -s conftest.err | |
20231 | } && test -s conftest.$ac_objext; then | |
20232 | ac_header_compiler=yes | |
20233 | else | |
20234 | $as_echo "$as_me: failed program was:" >&5 | |
20235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20236 | ||
20237 | ac_header_compiler=no | |
20238 | fi | |
20239 | ||
20240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20241 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20242 | $as_echo "$ac_header_compiler" >&6; } | |
20243 | ||
20244 | # Is the header present? | |
20245 | { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | |
20246 | $as_echo_n "checking selinux/selinux.h presence... " >&6; } | |
20247 | cat >conftest.$ac_ext <<_ACEOF | |
20248 | /* confdefs.h. */ | |
20249 | _ACEOF | |
20250 | cat confdefs.h >>conftest.$ac_ext | |
20251 | cat >>conftest.$ac_ext <<_ACEOF | |
20252 | /* end confdefs.h. */ | |
20253 | #include <selinux/selinux.h> | |
20254 | _ACEOF | |
20255 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
20256 | case "(($ac_try" in | |
20257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20258 | *) ac_try_echo=$ac_try;; | |
20259 | esac | |
20260 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20261 | $as_echo "$ac_try_echo") >&5 | |
20262 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
20263 | ac_status=$? | |
20264 | grep -v '^ *+' conftest.er1 >conftest.err | |
20265 | rm -f conftest.er1 | |
20266 | cat conftest.err >&5 | |
20267 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20268 | (exit $ac_status); } >/dev/null && { | |
20269 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20270 | test ! -s conftest.err | |
20271 | }; then | |
20272 | ac_header_preproc=yes | |
20273 | else | |
20274 | $as_echo "$as_me: failed program was:" >&5 | |
20275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20276 | ||
20277 | ac_header_preproc=no | |
20278 | fi | |
20279 | ||
20280 | rm -f conftest.err conftest.$ac_ext | |
20281 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20282 | $as_echo "$ac_header_preproc" >&6; } | |
20283 | ||
20284 | # So? What about this header? | |
20285 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20286 | yes:no: ) | |
20287 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20288 | $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20289 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | |
20290 | $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | |
20291 | ac_header_preproc=yes | |
20292 | ;; | |
20293 | no:yes:* ) | |
20294 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | |
20295 | $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | |
20296 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | |
20297 | $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | |
20298 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | |
20299 | $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | |
20300 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20301 | $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
20302 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | |
20303 | $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | |
20304 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | |
20305 | $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | |
20306 | ||
20307 | ;; | |
20308 | esac | |
20309 | { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | |
20310 | $as_echo_n "checking for selinux/selinux.h... " >&6; } | |
20311 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | |
20312 | $as_echo_n "(cached) " >&6 | |
20313 | else | |
20314 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | |
20315 | fi | |
20316 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | |
20317 | $as_echo "$ac_cv_header_selinux_selinux_h" >&6; } | |
20318 | ||
20319 | fi | |
20320 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then | |
20321 | ||
20322 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 | |
20323 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
20324 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then | |
20325 | $as_echo_n "(cached) " >&6 | |
20326 | else | |
20327 | ac_check_lib_save_LIBS=$LIBS | |
20328 | LIBS="-lselinux $LIBS" | |
20329 | cat >conftest.$ac_ext <<_ACEOF | |
20330 | /* confdefs.h. */ | |
20331 | _ACEOF | |
20332 | cat confdefs.h >>conftest.$ac_ext | |
20333 | cat >>conftest.$ac_ext <<_ACEOF | |
20334 | /* end confdefs.h. */ | |
20335 | ||
20336 | /* Override any GCC internal prototype to avoid an error. | |
20337 | Use char because int might match the return type of a GCC | |
20338 | builtin and then its argument prototype would still apply. */ | |
20339 | #ifdef __cplusplus | |
20340 | extern "C" | |
20341 | #endif | |
20342 | char is_selinux_enabled (); | |
20343 | int | |
20344 | main () | |
20345 | { | |
20346 | return is_selinux_enabled (); | |
20347 | ; | |
20348 | return 0; | |
20349 | } | |
20350 | _ACEOF | |
20351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20352 | if { (ac_try="$ac_link" | |
20353 | case "(($ac_try" in | |
20354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20355 | *) ac_try_echo=$ac_try;; | |
20356 | esac | |
20357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20358 | $as_echo "$ac_try_echo") >&5 | |
20359 | (eval "$ac_link") 2>conftest.er1 | |
20360 | ac_status=$? | |
20361 | grep -v '^ *+' conftest.er1 >conftest.err | |
20362 | rm -f conftest.er1 | |
20363 | cat conftest.err >&5 | |
20364 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20365 | (exit $ac_status); } && { | |
20366 | test -z "$ac_c_werror_flag" || | |
20367 | test ! -s conftest.err | |
20368 | } && test -s conftest$ac_exeext && { | |
20369 | test "$cross_compiling" = yes || | |
20370 | $as_test_x conftest$ac_exeext | |
20371 | }; then | |
20372 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
20373 | else | |
20374 | $as_echo "$as_me: failed program was:" >&5 | |
20375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20376 | ||
20377 | ac_cv_lib_selinux_is_selinux_enabled=no | |
20378 | fi | |
20379 | ||
20380 | rm -rf conftest.dSYM | |
20381 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20382 | conftest$ac_exeext conftest.$ac_ext | |
20383 | LIBS=$ac_check_lib_save_LIBS | |
20384 | fi | |
20385 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 | |
20386 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
20387 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
20388 | ||
20389 | LIBSELINUX="-lselinux" | |
20390 | ||
20391 | ||
20392 | cat >>confdefs.h <<\_ACEOF | |
20393 | #define HAVE_LIBSELINUX 1 | |
20394 | _ACEOF | |
20395 | ||
20396 | ||
20397 | else | |
20398 | ||
20399 | if test "x$with_selinux" != xcheck; then | |
20400 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20401 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20402 | { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable | |
20403 | See \`config.log' for more details." >&5 | |
20404 | $as_echo "$as_me: error: --with-selinux given but unavailable | |
20405 | See \`config.log' for more details." >&2;} | |
20406 | { (exit 1); exit 1; }; }; } | |
20407 | ||
20408 | fi | |
20409 | ||
20410 | ||
20411 | fi | |
20412 | ||
20413 | ||
20414 | else | |
20415 | ||
20416 | if test "x$with_selinux" != xcheck; then | |
20417 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20418 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20419 | { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable | |
20420 | See \`config.log' for more details." >&5 | |
20421 | $as_echo "$as_me: error: --with-selinux given but unavailable | |
20422 | See \`config.log' for more details." >&2;} | |
20423 | { (exit 1); exit 1; }; }; } | |
20424 | ||
20425 | fi | |
20426 | ||
20427 | ||
20428 | fi | |
20429 | ||
20430 | ||
20431 | ||
20432 | else | |
20433 | ||
20434 | { $as_echo "$as_me:$LINENO: checking for selinux support" >&5 | |
20435 | $as_echo_n "checking for selinux support... " >&6; } | |
20436 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
20437 | $as_echo "no" >&6; } | |
20438 | ||
20439 | fi | |
20440 | ||
20441 | ||
20442 | ||
e70e591c BB |
20443 | { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5 |
20444 | $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; } | |
20445 | ||
20446 | saved_flags="$CFLAGS" | |
20447 | CFLAGS="$CFLAGS -Wframe-larger-than=1024" | |
20448 | ||
20449 | if test "$cross_compiling" = yes; then | |
20450 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20451 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20452 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
20453 | See \`config.log' for more details." >&5 | |
20454 | $as_echo "$as_me: error: cannot run test program while cross compiling | |
20455 | See \`config.log' for more details." >&2;} | |
20456 | { (exit 1); exit 1; }; }; } | |
20457 | else | |
20458 | cat >conftest.$ac_ext <<_ACEOF | |
20459 | /* confdefs.h. */ | |
20460 | _ACEOF | |
20461 | cat confdefs.h >>conftest.$ac_ext | |
20462 | cat >>conftest.$ac_ext <<_ACEOF | |
20463 | /* end confdefs.h. */ | |
20464 | ||
20465 | int | |
20466 | main () | |
20467 | { | |
20468 | ||
20469 | ; | |
20470 | return 0; | |
20471 | } | |
20472 | _ACEOF | |
20473 | rm -f conftest$ac_exeext | |
20474 | if { (ac_try="$ac_link" | |
20475 | case "(($ac_try" in | |
20476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20477 | *) ac_try_echo=$ac_try;; | |
20478 | esac | |
20479 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20480 | $as_echo "$ac_try_echo") >&5 | |
20481 | (eval "$ac_link") 2>&5 | |
20482 | ac_status=$? | |
20483 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20484 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20485 | { (case "(($ac_try" in | |
20486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20487 | *) ac_try_echo=$ac_try;; | |
20488 | esac | |
20489 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20490 | $as_echo "$ac_try_echo") >&5 | |
20491 | (eval "$ac_try") 2>&5 | |
20492 | ac_status=$? | |
20493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20494 | (exit $ac_status); }; }; then | |
20495 | ||
20496 | FRAME_LARGER_THAN=-Wframe-larger-than=1024 | |
20497 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
20498 | $as_echo "yes" >&6; } | |
20499 | ||
20500 | else | |
20501 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
20502 | $as_echo "$as_me: failed program was:" >&5 | |
20503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20504 | ||
20505 | ( exit $ac_status ) | |
20506 | ||
20507 | FRAME_LARGER_THAN= | |
20508 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
20509 | $as_echo "no" >&6; } | |
20510 | ||
20511 | fi | |
20512 | rm -rf conftest.dSYM | |
20513 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20514 | fi | |
20515 | ||
20516 | ||
20517 | ||
20518 | CFLAGS="$saved_flags" | |
20519 | ||
20520 | ||
20521 | ||
20522 | ||
20523 | { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5 | |
20524 | $as_echo_n "checking whether pthread stack includes guard... " >&6; } | |
20525 | ||
20526 | saved_CFLAGS="$CFLAGS" | |
20527 | CFLAGS="-fstack-check" | |
20528 | saved_LDFLAGS="$LDFLAGS" | |
20529 | LDFLAGS="-lpthread" | |
20530 | ||
20531 | if test "$cross_compiling" = yes; then | |
20532 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
20533 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20534 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
20535 | See \`config.log' for more details." >&5 | |
20536 | $as_echo "$as_me: error: cannot run test program while cross compiling | |
20537 | See \`config.log' for more details." >&2;} | |
20538 | { (exit 1); exit 1; }; }; } | |
20539 | else | |
20540 | cat >conftest.$ac_ext <<_ACEOF | |
20541 | /* confdefs.h. */ | |
20542 | _ACEOF | |
20543 | cat confdefs.h >>conftest.$ac_ext | |
20544 | cat >>conftest.$ac_ext <<_ACEOF | |
20545 | /* end confdefs.h. */ | |
20546 | ||
20547 | #include <pthread.h> | |
20548 | #include <sys/resource.h> | |
20549 | #include <unistd.h> | |
20550 | #include <bits/local_lim.h> | |
20551 | ||
20552 | #define PAGESIZE (sysconf(_SC_PAGESIZE)) | |
20553 | #define STACK_SIZE 8192 | |
20554 | #define BUFSIZE 4096 | |
20555 | ||
20556 | void * func(void *arg) | |
20557 | { | |
20558 | char buf[BUFSIZE]; | |
20559 | } | |
20560 | ||
20561 | int | |
20562 | main () | |
20563 | { | |
20564 | ||
20565 | pthread_t tid; | |
20566 | pthread_attr_t attr; | |
20567 | struct rlimit l; | |
20568 | ||
20569 | l.rlim_cur = 0; | |
20570 | l.rlim_max = 0; | |
20571 | setrlimit(RLIMIT_CORE, &l); | |
20572 | pthread_attr_init(&attr); | |
20573 | pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE); | |
20574 | pthread_attr_setguardsize(&attr, PAGESIZE); | |
20575 | pthread_create(&tid, &attr, func, NULL); | |
20576 | pthread_join(tid, NULL); | |
20577 | ||
20578 | ; | |
20579 | return 0; | |
20580 | } | |
20581 | _ACEOF | |
20582 | rm -f conftest$ac_exeext | |
20583 | if { (ac_try="$ac_link" | |
20584 | case "(($ac_try" in | |
20585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20586 | *) ac_try_echo=$ac_try;; | |
20587 | esac | |
20588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20589 | $as_echo "$ac_try_echo") >&5 | |
20590 | (eval "$ac_link") 2>&5 | |
20591 | ac_status=$? | |
20592 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20593 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20594 | { (case "(($ac_try" in | |
20595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20596 | *) ac_try_echo=$ac_try;; | |
20597 | esac | |
20598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
20599 | $as_echo "$ac_try_echo") >&5 | |
20600 | (eval "$ac_try") 2>&5 | |
20601 | ac_status=$? | |
20602 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20603 | (exit $ac_status); }; }; then | |
20604 | ||
20605 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
20606 | $as_echo "no" >&6; } | |
20607 | ||
20608 | else | |
20609 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
20610 | $as_echo "$as_me: failed program was:" >&5 | |
20611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20612 | ||
20613 | ( exit $ac_status ) | |
20614 | ||
20615 | ||
20616 | cat >>confdefs.h <<\_ACEOF | |
20617 | #define NPTL_GUARD_WITHIN_STACK 1 | |
20618 | _ACEOF | |
20619 | ||
20620 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
20621 | $as_echo "yes" >&6; } | |
20622 | ||
20623 | fi | |
20624 | rm -rf conftest.dSYM | |
20625 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20626 | fi | |
20627 | ||
20628 | ||
20629 | CFLAGS="$saved_CFLAGS" | |
20630 | LDFLAGS="$saved_LDFLAGS" | |
20631 | ||
20632 | ;; | |
20633 | srpm) ;; | |
20634 | *) | |
20635 | { $as_echo "$as_me:$LINENO: result: Error!" >&5 | |
20636 | $as_echo "Error!" >&6; } | |
20637 | { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config, | |
20638 | user kernel|user|all|srpm" >&5 | |
20639 | $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config, | |
20640 | user kernel|user|all|srpm" >&2;} | |
20641 | { (exit 1); exit 1; }; } ;; | |
20642 | esac | |
20643 | ||
20644 | if test "$ZFS_CONFIG" = user || | |
20645 | test "$ZFS_CONFIG" = all; then | |
20646 | CONFIG_USER_TRUE= | |
20647 | CONFIG_USER_FALSE='#' | |
20648 | else | |
20649 | CONFIG_USER_TRUE='#' | |
20650 | CONFIG_USER_FALSE= | |
20651 | fi | |
20652 | ||
20653 | if test "$ZFS_CONFIG" = kernel || | |
20654 | test "$ZFS_CONFIG" = all; then | |
20655 | CONFIG_KERNEL_TRUE= | |
20656 | CONFIG_KERNEL_FALSE='#' | |
20657 | else | |
20658 | CONFIG_KERNEL_TRUE='#' | |
20659 | CONFIG_KERNEL_FALSE= | |
20660 | fi | |
20661 | ||
20662 | ||
20663 | ||
e70e591c BB |
20664 | { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5 |
20665 | $as_echo_n "checking whether debugging is enabled... " >&6; } | |
20666 | # Check whether --enable-debug was given. | |
20667 | if test "${enable_debug+set}" = set; then | |
20668 | enableval=$enable_debug; | |
20669 | else | |
20670 | enable_debug=no | |
20671 | fi | |
20672 | ||
20673 | ||
20674 | if test "x$enable_debug" = xyes; then | |
20675 | ||
20676 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror" | |
20677 | HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror" | |
20678 | DEBUG_CFLAGS="-DDEBUG -Werror" | |
20679 | DEBUG_STACKFLAGS="-fstack-check" | |
20680 | ||
20681 | else | |
20682 | ||
20683 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG " | |
20684 | HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG " | |
20685 | DEBUG_CFLAGS="-DNDEBUG" | |
20686 | DEBUG_STACKFLAGS="" | |
20687 | ||
20688 | fi | |
20689 | ||
20690 | ||
20691 | ||
20692 | ||
20693 | { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5 | |
20694 | $as_echo "$enable_debug" >&6; } | |
20695 | ||
20696 | ||
5faa9c03 | 20697 | ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile etc/Makefile etc/udev/Makefile etc/udev/rules.d/Makefile etc/init.d/Makefile etc/init.d/zfs.arch etc/init.d/zfs.gentoo etc/init.d/zfs.lunar etc/init.d/zfs.fedora etc/init.d/zfs.lsb etc/init.d/zfs.redhat etc/zfs/Makefile man/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile cmd/sas_switch_id/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/zpool-layout/Makefile scripts/common.sh zfs.spec zfs-modules.spec zfs-script-config.sh" |
e70e591c BB |
20698 | |
20699 | ||
20700 | cat >confcache <<\_ACEOF | |
20701 | # This file is a shell script that caches the results of configure | |
20702 | # tests run on this system so they can be shared between configure | |
20703 | # scripts and configure runs, see configure's option --config-cache. | |
20704 | # It is not useful on other systems. If it contains results you don't | |
20705 | # want to keep, you may remove or edit it. | |
20706 | # | |
20707 | # config.status only pays attention to the cache file if you give it | |
20708 | # the --recheck option to rerun configure. | |
20709 | # | |
20710 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20711 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20712 | # following values. | |
20713 | ||
20714 | _ACEOF | |
20715 | ||
20716 | # The following way of writing the cache mishandles newlines in values, | |
20717 | # but we know of no workaround that is simple, portable, and efficient. | |
20718 | # So, we kill variables containing newlines. | |
20719 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20720 | # and sets the high bit in the cache file unless we assign to the vars. | |
20721 | ( | |
20722 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
20723 | eval ac_val=\$$ac_var | |
20724 | case $ac_val in #( | |
20725 | *${as_nl}*) | |
20726 | case $ac_var in #( | |
20727 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
20728 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
20729 | esac | |
20730 | case $ac_var in #( | |
20731 | _ | IFS | as_nl) ;; #( | |
20732 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
20733 | *) $as_unset $ac_var ;; | |
20734 | esac ;; | |
20735 | esac | |
20736 | done | |
20737 | ||
20738 | (set) 2>&1 | | |
20739 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
20740 | *${as_nl}ac_space=\ *) | |
20741 | # `set' does not quote correctly, so add quotes (double-quote | |
20742 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20743 | sed -n \ | |
20744 | "s/'/'\\\\''/g; | |
20745 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20746 | ;; #( | |
20747 | *) | |
20748 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20749 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
20750 | ;; | |
20751 | esac | | |
20752 | sort | |
20753 | ) | | |
20754 | sed ' | |
20755 | /^ac_cv_env_/b end | |
20756 | t clear | |
20757 | :clear | |
20758 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20759 | t end | |
20760 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20761 | :end' >>confcache | |
20762 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
20763 | if test -w "$cache_file"; then | |
20764 | test "x$cache_file" != "x/dev/null" && | |
20765 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
20766 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
20767 | cat confcache >$cache_file | |
20768 | else | |
20769 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
20770 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
20771 | fi | |
20772 | fi | |
20773 | rm -f confcache | |
20774 | ||
20775 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20776 | # Let make expand exec_prefix. | |
20777 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20778 | ||
20779 | DEFS=-DHAVE_CONFIG_H | |
20780 | ||
20781 | ac_libobjs= | |
20782 | ac_ltlibobjs= | |
20783 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
20784 | # 1. Remove the extension, and $U if already installed. | |
20785 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
20786 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
20787 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
20788 | # will be set to the directory where LIBOBJS objects are built. | |
20789 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
20790 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
20791 | done | |
20792 | LIBOBJS=$ac_libobjs | |
20793 | ||
20794 | LTLIBOBJS=$ac_ltlibobjs | |
20795 | ||
20796 | ||
20797 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
20798 | { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
20799 | Usually this means the macro was only invoked conditionally." >&5 | |
20800 | $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
20801 | Usually this means the macro was only invoked conditionally." >&2;} | |
20802 | { (exit 1); exit 1; }; } | |
20803 | fi | |
20804 | if test -n "$EXEEXT"; then | |
20805 | am__EXEEXT_TRUE= | |
20806 | am__EXEEXT_FALSE='#' | |
20807 | else | |
20808 | am__EXEEXT_TRUE='#' | |
20809 | am__EXEEXT_FALSE= | |
20810 | fi | |
20811 | ||
20812 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
20813 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
20814 | Usually this means the macro was only invoked conditionally." >&5 | |
20815 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
20816 | Usually this means the macro was only invoked conditionally." >&2;} | |
20817 | { (exit 1); exit 1; }; } | |
20818 | fi | |
20819 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
20820 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
20821 | Usually this means the macro was only invoked conditionally." >&5 | |
20822 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
20823 | Usually this means the macro was only invoked conditionally." >&2;} | |
20824 | { (exit 1); exit 1; }; } | |
20825 | fi | |
20826 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
20827 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined. | |
20828 | Usually this means the macro was only invoked conditionally." >&5 | |
20829 | $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined. | |
20830 | Usually this means the macro was only invoked conditionally." >&2;} | |
20831 | { (exit 1); exit 1; }; } | |
20832 | fi | |
20833 | if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then | |
20834 | { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined. | |
20835 | Usually this means the macro was only invoked conditionally." >&5 | |
20836 | $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined. | |
20837 | Usually this means the macro was only invoked conditionally." >&2;} | |
20838 | { (exit 1); exit 1; }; } | |
20839 | fi | |
20840 | if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then | |
20841 | { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined. | |
20842 | Usually this means the macro was only invoked conditionally." >&5 | |
20843 | $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined. | |
20844 | Usually this means the macro was only invoked conditionally." >&2;} | |
20845 | { (exit 1); exit 1; }; } | |
20846 | fi | |
20847 | ||
20848 | : ${CONFIG_STATUS=./config.status} | |
20849 | ac_write_fail=0 | |
20850 | ac_clean_files_save=$ac_clean_files | |
20851 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
20852 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
20853 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
20854 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20855 | #! $SHELL | |
20856 | # Generated by $as_me. | |
20857 | # Run this file to recreate the current configuration. | |
20858 | # Compiler output produced by configure, useful for debugging | |
20859 | # configure, is in config.log if it exists. | |
20860 | ||
20861 | debug=false | |
20862 | ac_cs_recheck=false | |
20863 | ac_cs_silent=false | |
20864 | SHELL=\${CONFIG_SHELL-$SHELL} | |
20865 | _ACEOF | |
20866 | ||
20867 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20868 | ## --------------------- ## | |
20869 | ## M4sh Initialization. ## | |
20870 | ## --------------------- ## | |
20871 | ||
20872 | # Be more Bourne compatible | |
20873 | DUALCASE=1; export DUALCASE # for MKS sh | |
20874 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
20875 | emulate sh | |
20876 | NULLCMD=: | |
20877 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
20878 | # is contrary to our usage. Disable this feature. | |
20879 | alias -g '${1+"$@"}'='"$@"' | |
20880 | setopt NO_GLOB_SUBST | |
20881 | else | |
20882 | case `(set -o) 2>/dev/null` in | |
20883 | *posix*) set -o posix ;; | |
20884 | esac | |
20885 | ||
20886 | fi | |
20887 | ||
20888 | ||
20889 | ||
20890 | ||
20891 | # PATH needs CR | |
20892 | # Avoid depending upon Character Ranges. | |
20893 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20894 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20895 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20896 | as_cr_digits='0123456789' | |
20897 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
20898 | ||
20899 | as_nl=' | |
20900 | ' | |
20901 | export as_nl | |
20902 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
20903 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
20904 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
20905 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
20906 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
20907 | as_echo='printf %s\n' | |
20908 | as_echo_n='printf %s' | |
20909 | else | |
20910 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
20911 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
20912 | as_echo_n='/usr/ucb/echo -n' | |
20913 | else | |
20914 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
20915 | as_echo_n_body='eval | |
20916 | arg=$1; | |
20917 | case $arg in | |
20918 | *"$as_nl"*) | |
20919 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
20920 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
20921 | esac; | |
20922 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
20923 | ' | |
20924 | export as_echo_n_body | |
20925 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
20926 | fi | |
20927 | export as_echo_body | |
20928 | as_echo='sh -c $as_echo_body as_echo' | |
20929 | fi | |
20930 | ||
20931 | # The user is always right. | |
20932 | if test "${PATH_SEPARATOR+set}" != set; then | |
20933 | PATH_SEPARATOR=: | |
20934 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
20935 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
20936 | PATH_SEPARATOR=';' | |
20937 | } | |
20938 | fi | |
20939 | ||
20940 | # Support unset when possible. | |
20941 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
20942 | as_unset=unset | |
20943 | else | |
20944 | as_unset=false | |
20945 | fi | |
20946 | ||
20947 | ||
20948 | # IFS | |
20949 | # We need space, tab and new line, in precisely that order. Quoting is | |
20950 | # there to prevent editors from complaining about space-tab. | |
20951 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
20952 | # splitting by setting IFS to empty value.) | |
20953 | IFS=" "" $as_nl" | |
20954 | ||
20955 | # Find who we are. Look in the path if we contain no directory separator. | |
20956 | case $0 in | |
20957 | *[\\/]* ) as_myself=$0 ;; | |
20958 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20959 | for as_dir in $PATH | |
20960 | do | |
20961 | IFS=$as_save_IFS | |
20962 | test -z "$as_dir" && as_dir=. | |
20963 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
20964 | done | |
20965 | IFS=$as_save_IFS | |
20966 | ||
20967 | ;; | |
20968 | esac | |
20969 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
20970 | # in which case we are not to be found in the path. | |
20971 | if test "x$as_myself" = x; then | |
20972 | as_myself=$0 | |
20973 | fi | |
20974 | if test ! -f "$as_myself"; then | |
20975 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
20976 | { (exit 1); exit 1; } | |
20977 | fi | |
20978 | ||
20979 | # Work around bugs in pre-3.0 UWIN ksh. | |
20980 | for as_var in ENV MAIL MAILPATH | |
20981 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
20982 | done | |
20983 | PS1='$ ' | |
20984 | PS2='> ' | |
20985 | PS4='+ ' | |
20986 | ||
20987 | # NLS nuisances. | |
20988 | LC_ALL=C | |
20989 | export LC_ALL | |
20990 | LANGUAGE=C | |
20991 | export LANGUAGE | |
20992 | ||
20993 | # Required to use basename. | |
20994 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
20995 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
20996 | as_expr=expr | |
20997 | else | |
20998 | as_expr=false | |
20999 | fi | |
21000 | ||
21001 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
21002 | as_basename=basename | |
21003 | else | |
21004 | as_basename=false | |
21005 | fi | |
21006 | ||
21007 | ||
21008 | # Name of the executable. | |
21009 | as_me=`$as_basename -- "$0" || | |
21010 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
21011 | X"$0" : 'X\(//\)$' \| \ | |
21012 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
21013 | $as_echo X/"$0" | | |
21014 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
21015 | s//\1/ | |
21016 | q | |
21017 | } | |
21018 | /^X\/\(\/\/\)$/{ | |
21019 | s//\1/ | |
21020 | q | |
21021 | } | |
21022 | /^X\/\(\/\).*/{ | |
21023 | s//\1/ | |
21024 | q | |
21025 | } | |
21026 | s/.*/./; q'` | |
21027 | ||
21028 | # CDPATH. | |
21029 | $as_unset CDPATH | |
21030 | ||
21031 | ||
21032 | ||
21033 | as_lineno_1=$LINENO | |
21034 | as_lineno_2=$LINENO | |
21035 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21036 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
21037 | ||
21038 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21039 | # uniformly replaced by the line number. The first 'sed' inserts a | |
21040 | # line-number line after each line using $LINENO; the second 'sed' | |
21041 | # does the real work. The second script uses 'N' to pair each | |
21042 | # line-number line with the line containing $LINENO, and appends | |
21043 | # trailing '-' during substitution so that $LINENO is not a special | |
21044 | # case at line end. | |
21045 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21046 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
21047 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
21048 | sed -n ' | |
21049 | p | |
21050 | /[$]LINENO/= | |
21051 | ' <$as_myself | | |
21052 | sed ' | |
21053 | s/[$]LINENO.*/&-/ | |
21054 | t lineno | |
21055 | b | |
21056 | :lineno | |
21057 | N | |
21058 | :loop | |
21059 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
21060 | t loop | |
21061 | s/-\n.*// | |
21062 | ' >$as_me.lineno && | |
21063 | chmod +x "$as_me.lineno" || | |
21064 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
21065 | { (exit 1); exit 1; }; } | |
21066 | ||
21067 | # Don't try to exec as it changes $[0], causing all sort of problems | |
21068 | # (the dirname of $[0] is not the place where we might find the | |
21069 | # original and so on. Autoconf is especially sensitive to this). | |
21070 | . "./$as_me.lineno" | |
21071 | # Exit status is that of the last command. | |
21072 | exit | |
21073 | } | |
21074 | ||
21075 | ||
21076 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
21077 | as_dirname=dirname | |
21078 | else | |
21079 | as_dirname=false | |
21080 | fi | |
21081 | ||
21082 | ECHO_C= ECHO_N= ECHO_T= | |
21083 | case `echo -n x` in | |
21084 | -n*) | |
21085 | case `echo 'x\c'` in | |
21086 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
21087 | *) ECHO_C='\c';; | |
21088 | esac;; | |
21089 | *) | |
21090 | ECHO_N='-n';; | |
21091 | esac | |
21092 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
21093 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
21094 | as_expr=expr | |
21095 | else | |
21096 | as_expr=false | |
21097 | fi | |
21098 | ||
21099 | rm -f conf$$ conf$$.exe conf$$.file | |
21100 | if test -d conf$$.dir; then | |
21101 | rm -f conf$$.dir/conf$$.file | |
21102 | else | |
21103 | rm -f conf$$.dir | |
21104 | mkdir conf$$.dir 2>/dev/null | |
21105 | fi | |
21106 | if (echo >conf$$.file) 2>/dev/null; then | |
21107 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21108 | as_ln_s='ln -s' | |
21109 | # ... but there are two gotchas: | |
21110 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
21111 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
21112 | # In both cases, we have to default to `cp -p'. | |
21113 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
21114 | as_ln_s='cp -p' | |
21115 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
21116 | as_ln_s=ln | |
21117 | else | |
21118 | as_ln_s='cp -p' | |
21119 | fi | |
21120 | else | |
21121 | as_ln_s='cp -p' | |
21122 | fi | |
21123 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
21124 | rmdir conf$$.dir 2>/dev/null | |
21125 | ||
21126 | if mkdir -p . 2>/dev/null; then | |
21127 | as_mkdir_p=: | |
21128 | else | |
21129 | test -d ./-p && rmdir ./-p | |
21130 | as_mkdir_p=false | |
21131 | fi | |
21132 | ||
21133 | if test -x / >/dev/null 2>&1; then | |
21134 | as_test_x='test -x' | |
21135 | else | |
21136 | if ls -dL / >/dev/null 2>&1; then | |
21137 | as_ls_L_option=L | |
21138 | else | |
21139 | as_ls_L_option= | |
21140 | fi | |
21141 | as_test_x=' | |
21142 | eval sh -c '\'' | |
21143 | if test -d "$1"; then | |
21144 | test -d "$1/."; | |
21145 | else | |
21146 | case $1 in | |
21147 | -*)set "./$1";; | |
21148 | esac; | |
21149 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
21150 | ???[sx]*):;;*)false;;esac;fi | |
21151 | '\'' sh | |
21152 | ' | |
21153 | fi | |
21154 | as_executable_p=$as_test_x | |
21155 | ||
21156 | # Sed expression to map a string onto a valid CPP name. | |
21157 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
21158 | ||
21159 | # Sed expression to map a string onto a valid variable name. | |
21160 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
21161 | ||
21162 | ||
21163 | exec 6>&1 | |
21164 | ||
21165 | # Save the log message, to keep $[0] and so on meaningful, and to | |
21166 | # report actual input values of CONFIG_FILES etc. instead of their | |
21167 | # values after options handling. | |
21168 | ac_log=" | |
21169 | This file was extended by $as_me, which was | |
21170 | generated by GNU Autoconf 2.63. Invocation command line was | |
21171 | ||
21172 | CONFIG_FILES = $CONFIG_FILES | |
21173 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21174 | CONFIG_LINKS = $CONFIG_LINKS | |
21175 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21176 | $ $0 $@ | |
21177 | ||
21178 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
21179 | " | |
21180 | ||
21181 | _ACEOF | |
21182 | ||
21183 | case $ac_config_files in *" | |
21184 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
21185 | esac | |
21186 | ||
21187 | case $ac_config_headers in *" | |
21188 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
21189 | esac | |
21190 | ||
21191 | ||
21192 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21193 | # Files that config.status was made for. | |
21194 | config_files="$ac_config_files" | |
21195 | config_headers="$ac_config_headers" | |
21196 | config_commands="$ac_config_commands" | |
21197 | ||
21198 | _ACEOF | |
21199 | ||
21200 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21201 | ac_cs_usage="\ | |
21202 | \`$as_me' instantiates files from templates according to the | |
21203 | current configuration. | |
21204 | ||
21205 | Usage: $0 [OPTION]... [FILE]... | |
21206 | ||
21207 | -h, --help print this help, then exit | |
21208 | -V, --version print version number and configuration settings, then exit | |
21209 | -q, --quiet, --silent | |
21210 | do not print progress messages | |
21211 | -d, --debug don't remove temporary files | |
21212 | --recheck update $as_me by reconfiguring in the same conditions | |
21213 | --file=FILE[:TEMPLATE] | |
21214 | instantiate the configuration file FILE | |
21215 | --header=FILE[:TEMPLATE] | |
21216 | instantiate the configuration header FILE | |
21217 | ||
21218 | Configuration files: | |
21219 | $config_files | |
21220 | ||
21221 | Configuration headers: | |
21222 | $config_headers | |
21223 | ||
21224 | Configuration commands: | |
21225 | $config_commands | |
21226 | ||
21227 | Report bugs to <bug-autoconf@gnu.org>." | |
21228 | ||
21229 | _ACEOF | |
21230 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21231 | ac_cs_version="\\ | |
21232 | config.status | |
21233 | configured by $0, generated by GNU Autoconf 2.63, | |
21234 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
21235 | ||
21236 | Copyright (C) 2008 Free Software Foundation, Inc. | |
21237 | This config.status script is free software; the Free Software Foundation | |
21238 | gives unlimited permission to copy, distribute and modify it." | |
21239 | ||
21240 | ac_pwd='$ac_pwd' | |
21241 | srcdir='$srcdir' | |
21242 | INSTALL='$INSTALL' | |
21243 | MKDIR_P='$MKDIR_P' | |
21244 | AWK='$AWK' | |
21245 | test -n "\$AWK" || AWK=awk | |
21246 | _ACEOF | |
21247 | ||
21248 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21249 | # The default lists apply if the user does not specify any file. | |
21250 | ac_need_defaults=: | |
21251 | while test $# != 0 | |
21252 | do | |
21253 | case $1 in | |
21254 | --*=*) | |
21255 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
21256 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
21257 | ac_shift=: | |
21258 | ;; | |
21259 | *) | |
21260 | ac_option=$1 | |
21261 | ac_optarg=$2 | |
21262 | ac_shift=shift | |
21263 | ;; | |
21264 | esac | |
21265 | ||
21266 | case $ac_option in | |
21267 | # Handling of the options. | |
21268 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21269 | ac_cs_recheck=: ;; | |
21270 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
21271 | $as_echo "$ac_cs_version"; exit ;; | |
21272 | --debug | --debu | --deb | --de | --d | -d ) | |
21273 | debug=: ;; | |
21274 | --file | --fil | --fi | --f ) | |
21275 | $ac_shift | |
21276 | case $ac_optarg in | |
21277 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
21278 | esac | |
21279 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
21280 | ac_need_defaults=false;; | |
21281 | --header | --heade | --head | --hea ) | |
21282 | $ac_shift | |
21283 | case $ac_optarg in | |
21284 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
21285 | esac | |
21286 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
21287 | ac_need_defaults=false;; | |
21288 | --he | --h) | |
21289 | # Conflict between --help and --header | |
21290 | { $as_echo "$as_me: error: ambiguous option: $1 | |
21291 | Try \`$0 --help' for more information." >&2 | |
21292 | { (exit 1); exit 1; }; };; | |
21293 | --help | --hel | -h ) | |
21294 | $as_echo "$ac_cs_usage"; exit ;; | |
21295 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21296 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21297 | ac_cs_silent=: ;; | |
21298 | ||
21299 | # This is an error. | |
21300 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
21301 | Try \`$0 --help' for more information." >&2 | |
21302 | { (exit 1); exit 1; }; } ;; | |
21303 | ||
21304 | *) ac_config_targets="$ac_config_targets $1" | |
21305 | ac_need_defaults=false ;; | |
21306 | ||
21307 | esac | |
21308 | shift | |
21309 | done | |
21310 | ||
21311 | ac_configure_extra_args= | |
21312 | ||
21313 | if $ac_cs_silent; then | |
21314 | exec 6>/dev/null | |
21315 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21316 | fi | |
21317 | ||
21318 | _ACEOF | |
21319 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21320 | if \$ac_cs_recheck; then | |
21321 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
21322 | shift | |
21323 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
21324 | CONFIG_SHELL='$SHELL' | |
21325 | export CONFIG_SHELL | |
21326 | exec "\$@" | |
21327 | fi | |
21328 | ||
21329 | _ACEOF | |
21330 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21331 | exec 5>>config.log | |
21332 | { | |
21333 | echo | |
21334 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21335 | ## Running $as_me. ## | |
21336 | _ASBOX | |
21337 | $as_echo "$ac_log" | |
21338 | } >&5 | |
21339 | ||
21340 | _ACEOF | |
21341 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21342 | # | |
21343 | # INIT-COMMANDS | |
21344 | # | |
21345 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
21346 | ||
21347 | ||
21348 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
21349 | # if CDPATH is set. | |
21350 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21351 | ||
21352 | sed_quote_subst='$sed_quote_subst' | |
21353 | double_quote_subst='$double_quote_subst' | |
21354 | delay_variable_subst='$delay_variable_subst' | |
21355 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
21356 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
21357 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
21358 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21359 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
21360 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
21361 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
21362 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
21363 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
21364 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
21365 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
21366 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
21367 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
21368 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
21369 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21370 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21371 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21372 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
21373 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
21374 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
21375 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
21376 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
21377 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
21378 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
21379 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
21380 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
21381 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21382 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21383 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
21384 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
21385 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
21386 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
21387 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
21388 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
21389 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
21390 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21391 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21392 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21393 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
21394 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
21395 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
21396 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
21397 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
21398 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
21399 | 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"`' | |
21400 | 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"`' | |
21401 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
21402 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
21403 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
21404 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
21405 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21406 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
21407 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
21408 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21409 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
21410 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
21411 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
21412 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
21413 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
21414 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
21415 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
21416 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
21417 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21418 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21419 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
21420 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
21421 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21422 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21423 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
21424 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21425 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21426 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21427 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21428 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21429 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21430 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
21431 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21432 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21433 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21434 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
21435 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
21436 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
21437 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
21438 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
21439 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21440 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
21441 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
21442 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
21443 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
21444 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
21445 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21446 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
21447 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
21448 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21449 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21450 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
21451 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
21452 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
21453 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
21454 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21455 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21456 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
21457 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21458 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21459 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21460 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21461 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21462 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21463 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
21464 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
21465 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21466 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21467 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
21468 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
21469 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
21470 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21471 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
21472 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
21473 | ||
21474 | LTCC='$LTCC' | |
21475 | LTCFLAGS='$LTCFLAGS' | |
21476 | compiler='$compiler_DEFAULT' | |
21477 | ||
21478 | # Quote evaled strings. | |
21479 | for var in SED \ | |
21480 | GREP \ | |
21481 | EGREP \ | |
21482 | FGREP \ | |
21483 | LD \ | |
21484 | NM \ | |
21485 | LN_S \ | |
21486 | lt_SP2NL \ | |
21487 | lt_NL2SP \ | |
21488 | reload_flag \ | |
21489 | OBJDUMP \ | |
21490 | deplibs_check_method \ | |
21491 | file_magic_cmd \ | |
21492 | AR \ | |
21493 | AR_FLAGS \ | |
21494 | STRIP \ | |
21495 | RANLIB \ | |
21496 | CC \ | |
21497 | CFLAGS \ | |
21498 | compiler \ | |
21499 | lt_cv_sys_global_symbol_pipe \ | |
21500 | lt_cv_sys_global_symbol_to_cdecl \ | |
21501 | lt_cv_sys_global_symbol_to_c_name_address \ | |
21502 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
21503 | SHELL \ | |
21504 | ECHO \ | |
21505 | lt_prog_compiler_no_builtin_flag \ | |
21506 | lt_prog_compiler_wl \ | |
21507 | lt_prog_compiler_pic \ | |
21508 | lt_prog_compiler_static \ | |
21509 | lt_cv_prog_compiler_c_o \ | |
21510 | need_locks \ | |
21511 | DSYMUTIL \ | |
21512 | NMEDIT \ | |
21513 | LIPO \ | |
21514 | OTOOL \ | |
21515 | OTOOL64 \ | |
21516 | shrext_cmds \ | |
21517 | export_dynamic_flag_spec \ | |
21518 | whole_archive_flag_spec \ | |
21519 | compiler_needs_object \ | |
21520 | with_gnu_ld \ | |
21521 | allow_undefined_flag \ | |
21522 | no_undefined_flag \ | |
21523 | hardcode_libdir_flag_spec \ | |
21524 | hardcode_libdir_flag_spec_ld \ | |
21525 | hardcode_libdir_separator \ | |
21526 | fix_srcfile_path \ | |
21527 | exclude_expsyms \ | |
21528 | include_expsyms \ | |
21529 | file_list_spec \ | |
21530 | variables_saved_for_relink \ | |
21531 | libname_spec \ | |
21532 | library_names_spec \ | |
21533 | soname_spec \ | |
21534 | finish_eval \ | |
21535 | old_striplib \ | |
21536 | striplib; do | |
21537 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
21538 | *[\\\\\\\`\\"\\\$]*) | |
21539 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
21540 | ;; | |
21541 | *) | |
21542 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21543 | ;; | |
21544 | esac | |
21545 | done | |
21546 | ||
21547 | # Double-quote double-evaled strings. | |
21548 | for var in reload_cmds \ | |
21549 | old_postinstall_cmds \ | |
21550 | old_postuninstall_cmds \ | |
21551 | old_archive_cmds \ | |
21552 | extract_expsyms_cmds \ | |
21553 | old_archive_from_new_cmds \ | |
21554 | old_archive_from_expsyms_cmds \ | |
21555 | archive_cmds \ | |
21556 | archive_expsym_cmds \ | |
21557 | module_cmds \ | |
21558 | module_expsym_cmds \ | |
21559 | export_symbols_cmds \ | |
21560 | prelink_cmds \ | |
21561 | postinstall_cmds \ | |
21562 | postuninstall_cmds \ | |
21563 | finish_cmds \ | |
21564 | sys_lib_search_path_spec \ | |
21565 | sys_lib_dlsearch_path_spec; do | |
21566 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
21567 | *[\\\\\\\`\\"\\\$]*) | |
21568 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
21569 | ;; | |
21570 | *) | |
21571 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21572 | ;; | |
21573 | esac | |
21574 | done | |
21575 | ||
21576 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
21577 | case \$lt_ECHO in | |
21578 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
21579 | ;; | |
21580 | esac | |
21581 | ||
21582 | ac_aux_dir='$ac_aux_dir' | |
21583 | xsi_shell='$xsi_shell' | |
21584 | lt_shell_append='$lt_shell_append' | |
21585 | ||
21586 | # See if we are running on zsh, and set the options which allow our | |
21587 | # commands through without removal of \ escapes INIT. | |
21588 | if test -n "\${ZSH_VERSION+set}" ; then | |
21589 | setopt NO_GLOB_SUBST | |
21590 | fi | |
21591 | ||
21592 | ||
21593 | PACKAGE='$PACKAGE' | |
21594 | VERSION='$VERSION' | |
21595 | TIMESTAMP='$TIMESTAMP' | |
21596 | RM='$RM' | |
21597 | ofile='$ofile' | |
21598 | ||
21599 | ||
21600 | ||
21601 | ||
21602 | _ACEOF | |
21603 | ||
21604 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21605 | ||
21606 | # Handling of arguments. | |
21607 | for ac_config_target in $ac_config_targets | |
21608 | do | |
21609 | case $ac_config_target in | |
21610 | "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;; | |
21611 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
21612 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
21613 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
ae26d046 MAR |
21614 | "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;; |
21615 | "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;; | |
e70e591c | 21616 | "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; |
01c0e61d BB |
21617 | "etc/udev/Makefile") CONFIG_FILES="$CONFIG_FILES etc/udev/Makefile" ;; |
21618 | "etc/udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/udev/rules.d/Makefile" ;; | |
21619 | "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;; | |
5faa9c03 KF |
21620 | "etc/init.d/zfs.arch") CONFIG_FILES="$CONFIG_FILES etc/init.d/zfs.arch" ;; |
21621 | "etc/init.d/zfs.gentoo") CONFIG_FILES="$CONFIG_FILES etc/init.d/zfs.gentoo" ;; | |
21622 | "etc/init.d/zfs.lunar") CONFIG_FILES="$CONFIG_FILES etc/init.d/zfs.lunar" ;; | |
21623 | "etc/init.d/zfs.fedora") CONFIG_FILES="$CONFIG_FILES etc/init.d/zfs.fedora" ;; | |
21624 | "etc/init.d/zfs.lsb") CONFIG_FILES="$CONFIG_FILES etc/init.d/zfs.lsb" ;; | |
21625 | "etc/init.d/zfs.redhat") CONFIG_FILES="$CONFIG_FILES etc/init.d/zfs.redhat" ;; | |
01c0e61d | 21626 | "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;; |
e70e591c BB |
21627 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
21628 | "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;; | |
21629 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
21630 | "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;; | |
21631 | "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;; | |
21632 | "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;; | |
21633 | "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;; | |
21634 | "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;; | |
6283f55e BB |
21635 | "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;; |
21636 | "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;; | |
21637 | "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;; | |
21638 | "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;; | |
21639 | "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;; | |
21640 | "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;; | |
21641 | "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;; | |
e70e591c BB |
21642 | "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;; |
21643 | "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;; | |
21644 | "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;; | |
21645 | "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;; | |
21646 | "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;; | |
21647 | "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;; | |
e70e591c | 21648 | "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;; |
46e18b3f | 21649 | "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;; |
e70e591c BB |
21650 | "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;; |
21651 | "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;; | |
21652 | "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;; | |
21653 | "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;; | |
21654 | "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;; | |
e70e591c BB |
21655 | "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;; |
21656 | "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;; | |
d53368f6 BB |
21657 | "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;; |
21658 | "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;; | |
4c0d8e50 | 21659 | "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;; |
d53368f6 | 21660 | "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;; |
560bcf9d | 21661 | "cmd/sas_switch_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/sas_switch_id/Makefile" ;; |
e70e591c BB |
21662 | "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; |
21663 | "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;; | |
21664 | "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;; | |
21665 | "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;; | |
21666 | "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;; | |
21667 | "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;; | |
21668 | "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;; | |
6283f55e | 21669 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
8299a1f4 | 21670 | "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;; |
6283f55e BB |
21671 | "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;; |
21672 | "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;; | |
21673 | "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;; | |
21674 | "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;; | |
e70e591c | 21675 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
6283f55e BB |
21676 | "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;; |
21677 | "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;; | |
21678 | "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;; | |
a5b4d635 | 21679 | "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;; |
e70e591c BB |
21680 | "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;; |
21681 | "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;; | |
21682 | "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;; | |
6283f55e | 21683 | "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;; |
e70e591c BB |
21684 | |
21685 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
21686 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
21687 | { (exit 1); exit 1; }; };; | |
21688 | esac | |
21689 | done | |
21690 | ||
21691 | ||
21692 | # If the user did not use the arguments to specify the items to instantiate, | |
21693 | # then the envvar interface is used. Set only those that are not. | |
21694 | # We use the long form for the default assignment because of an extremely | |
21695 | # bizarre bug on SunOS 4.1.3. | |
21696 | if $ac_need_defaults; then | |
21697 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
21698 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
21699 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
21700 | fi | |
21701 | ||
21702 | # Have a temporary directory for convenience. Make it in the build tree | |
21703 | # simply because there is no reason against having it here, and in addition, | |
21704 | # creating and moving files from /tmp can sometimes cause problems. | |
21705 | # Hook for its removal unless debugging. | |
21706 | # Note that there is a small window in which the directory will not be cleaned: | |
21707 | # after its creation but before its name has been assigned to `$tmp'. | |
21708 | $debug || | |
21709 | { | |
21710 | tmp= | |
21711 | trap 'exit_status=$? | |
21712 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
21713 | ' 0 | |
21714 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
21715 | } | |
21716 | # Create a (secure) tmp directory for tmp files. | |
21717 | ||
21718 | { | |
21719 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
21720 | test -n "$tmp" && test -d "$tmp" | |
21721 | } || | |
21722 | { | |
21723 | tmp=./conf$$-$RANDOM | |
21724 | (umask 077 && mkdir "$tmp") | |
21725 | } || | |
21726 | { | |
21727 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
21728 | { (exit 1); exit 1; } | |
21729 | } | |
21730 | ||
21731 | # Set up the scripts for CONFIG_FILES section. | |
21732 | # No need to generate them if there are no CONFIG_FILES. | |
21733 | # This happens for instance with `./config.status config.h'. | |
21734 | if test -n "$CONFIG_FILES"; then | |
21735 | ||
21736 | ||
21737 | ac_cr='\r' | |
21738 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
21739 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
21740 | ac_cs_awk_cr='\\r' | |
21741 | else | |
21742 | ac_cs_awk_cr=$ac_cr | |
21743 | fi | |
21744 | ||
21745 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
21746 | _ACEOF | |
21747 | ||
21748 | ||
21749 | { | |
21750 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
21751 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
21752 | echo "_ACEOF" | |
21753 | } >conf$$subs.sh || | |
21754 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
21755 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
21756 | { (exit 1); exit 1; }; } | |
21757 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
21758 | ac_delim='%!_!# ' | |
21759 | for ac_last_try in false false false false false :; do | |
21760 | . ./conf$$subs.sh || | |
21761 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
21762 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
21763 | { (exit 1); exit 1; }; } | |
21764 | ||
21765 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
21766 | if test $ac_delim_n = $ac_delim_num; then | |
21767 | break | |
21768 | elif $ac_last_try; then | |
21769 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
21770 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
21771 | { (exit 1); exit 1; }; } | |
21772 | else | |
21773 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21774 | fi | |
21775 | done | |
21776 | rm -f conf$$subs.sh | |
21777 | ||
21778 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21779 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
21780 | _ACEOF | |
21781 | sed -n ' | |
21782 | h | |
21783 | s/^/S["/; s/!.*/"]=/ | |
21784 | p | |
21785 | g | |
21786 | s/^[^!]*!// | |
21787 | :repl | |
21788 | t repl | |
21789 | s/'"$ac_delim"'$// | |
21790 | t delim | |
21791 | :nl | |
21792 | h | |
21793 | s/\(.\{148\}\).*/\1/ | |
21794 | t more1 | |
21795 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
21796 | p | |
21797 | n | |
21798 | b repl | |
21799 | :more1 | |
21800 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
21801 | p | |
21802 | g | |
21803 | s/.\{148\}// | |
21804 | t nl | |
21805 | :delim | |
21806 | h | |
21807 | s/\(.\{148\}\).*/\1/ | |
21808 | t more2 | |
21809 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
21810 | p | |
21811 | b | |
21812 | :more2 | |
21813 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
21814 | p | |
21815 | g | |
21816 | s/.\{148\}// | |
21817 | t delim | |
21818 | ' <conf$$subs.awk | sed ' | |
21819 | /^[^""]/{ | |
21820 | N | |
21821 | s/\n// | |
21822 | } | |
21823 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
21824 | rm -f conf$$subs.awk | |
21825 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21826 | _ACAWK | |
21827 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
21828 | for (key in S) S_is_set[key] = 1 | |
21829 | FS = "\a" | |
21830 | ||
21831 | } | |
21832 | { | |
21833 | line = $ 0 | |
21834 | nfields = split(line, field, "@") | |
21835 | substed = 0 | |
21836 | len = length(field[1]) | |
21837 | for (i = 2; i < nfields; i++) { | |
21838 | key = field[i] | |
21839 | keylen = length(key) | |
21840 | if (S_is_set[key]) { | |
21841 | value = S[key] | |
21842 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
21843 | len += length(value) + length(field[++i]) | |
21844 | substed = 1 | |
21845 | } else | |
21846 | len += 1 + keylen | |
21847 | } | |
21848 | ||
21849 | print line | |
21850 | } | |
21851 | ||
21852 | _ACAWK | |
21853 | _ACEOF | |
21854 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21855 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
21856 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
21857 | else | |
21858 | cat | |
21859 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
21860 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
21861 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
21862 | { (exit 1); exit 1; }; } | |
21863 | _ACEOF | |
21864 | ||
21865 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
21866 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21867 | # trailing colons and then remove the whole line if VPATH becomes empty | |
21868 | # (actually we leave an empty line to preserve line numbers). | |
21869 | if test "x$srcdir" = x.; then | |
21870 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
21871 | s/:*\$(srcdir):*/:/ | |
21872 | s/:*\${srcdir}:*/:/ | |
21873 | s/:*@srcdir@:*/:/ | |
21874 | s/^\([^=]*=[ ]*\):*/\1/ | |
21875 | s/:*$// | |
21876 | s/^[^=]*=[ ]*$// | |
21877 | }' | |
21878 | fi | |
21879 | ||
21880 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21881 | fi # test -n "$CONFIG_FILES" | |
21882 | ||
21883 | # Set up the scripts for CONFIG_HEADERS section. | |
21884 | # No need to generate them if there are no CONFIG_HEADERS. | |
21885 | # This happens for instance with `./config.status Makefile'. | |
21886 | if test -n "$CONFIG_HEADERS"; then | |
21887 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
21888 | BEGIN { | |
21889 | _ACEOF | |
21890 | ||
21891 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
21892 | # here-document in config.status, that substitutes the proper values into | |
21893 | # config.h.in to produce config.h. | |
21894 | ||
21895 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
21896 | # handling of long lines. | |
21897 | ac_delim='%!_!# ' | |
21898 | for ac_last_try in false false :; do | |
21899 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
21900 | if test -z "$ac_t"; then | |
21901 | break | |
21902 | elif $ac_last_try; then | |
21903 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
21904 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
21905 | { (exit 1); exit 1; }; } | |
21906 | else | |
21907 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21908 | fi | |
21909 | done | |
21910 | ||
21911 | # For the awk script, D is an array of macro values keyed by name, | |
21912 | # likewise P contains macro parameters if any. Preserve backslash | |
21913 | # newline sequences. | |
21914 | ||
21915 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
21916 | sed -n ' | |
21917 | s/.\{148\}/&'"$ac_delim"'/g | |
21918 | t rset | |
21919 | :rset | |
21920 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
21921 | t def | |
21922 | d | |
21923 | :def | |
21924 | s/\\$// | |
21925 | t bsnl | |
21926 | s/["\\]/\\&/g | |
21927 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
21928 | D["\1"]=" \3"/p | |
21929 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
21930 | d | |
21931 | :bsnl | |
21932 | s/["\\]/\\&/g | |
21933 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
21934 | D["\1"]=" \3\\\\\\n"\\/p | |
21935 | t cont | |
21936 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
21937 | t cont | |
21938 | d | |
21939 | :cont | |
21940 | n | |
21941 | s/.\{148\}/&'"$ac_delim"'/g | |
21942 | t clear | |
21943 | :clear | |
21944 | s/\\$// | |
21945 | t bsnlc | |
21946 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
21947 | d | |
21948 | :bsnlc | |
21949 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
21950 | b cont | |
21951 | ' <confdefs.h | sed ' | |
21952 | s/'"$ac_delim"'/"\\\ | |
21953 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
21954 | ||
21955 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21956 | for (key in D) D_is_set[key] = 1 | |
21957 | FS = "\a" | |
21958 | } | |
21959 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
21960 | line = \$ 0 | |
21961 | split(line, arg, " ") | |
21962 | if (arg[1] == "#") { | |
21963 | defundef = arg[2] | |
21964 | mac1 = arg[3] | |
21965 | } else { | |
21966 | defundef = substr(arg[1], 2) | |
21967 | mac1 = arg[2] | |
21968 | } | |
21969 | split(mac1, mac2, "(") #) | |
21970 | macro = mac2[1] | |
21971 | prefix = substr(line, 1, index(line, defundef) - 1) | |
21972 | if (D_is_set[macro]) { | |
21973 | # Preserve the white space surrounding the "#". | |
21974 | print prefix "define", macro P[macro] D[macro] | |
21975 | next | |
21976 | } else { | |
21977 | # Replace #undef with comments. This is necessary, for example, | |
21978 | # in the case of _POSIX_SOURCE, which is predefined and required | |
21979 | # on some systems where configure will not decide to define it. | |
21980 | if (defundef == "undef") { | |
21981 | print "/*", prefix defundef, macro, "*/" | |
21982 | next | |
21983 | } | |
21984 | } | |
21985 | } | |
21986 | { print } | |
21987 | _ACAWK | |
21988 | _ACEOF | |
21989 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21990 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
21991 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
21992 | { (exit 1); exit 1; }; } | |
21993 | fi # test -n "$CONFIG_HEADERS" | |
21994 | ||
21995 | ||
21996 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
21997 | shift | |
21998 | for ac_tag | |
21999 | do | |
22000 | case $ac_tag in | |
22001 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
22002 | esac | |
22003 | case $ac_mode$ac_tag in | |
22004 | :[FHL]*:*);; | |
22005 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
22006 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
22007 | { (exit 1); exit 1; }; };; | |
22008 | :[FH]-) ac_tag=-:-;; | |
22009 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
22010 | esac | |
22011 | ac_save_IFS=$IFS | |
22012 | IFS=: | |
22013 | set x $ac_tag | |
22014 | IFS=$ac_save_IFS | |
22015 | shift | |
22016 | ac_file=$1 | |
22017 | shift | |
22018 | ||
22019 | case $ac_mode in | |
22020 | :L) ac_source=$1;; | |
22021 | :[FH]) | |
22022 | ac_file_inputs= | |
22023 | for ac_f | |
22024 | do | |
22025 | case $ac_f in | |
22026 | -) ac_f="$tmp/stdin";; | |
22027 | *) # Look for the file first in the build tree, then in the source tree | |
22028 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
22029 | # because $ac_f cannot contain `:'. | |
22030 | test -f "$ac_f" || | |
22031 | case $ac_f in | |
22032 | [\\/$]*) false;; | |
22033 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
22034 | esac || | |
22035 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
22036 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
22037 | { (exit 1); exit 1; }; };; | |
22038 | esac | |
22039 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
22040 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
22041 | done | |
22042 | ||
22043 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22044 | # use $as_me), people would be surprised to read: | |
22045 | # /* config.h. Generated by config.status. */ | |
22046 | configure_input='Generated from '` | |
22047 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
22048 | `' by configure.' | |
22049 | if test x"$ac_file" != x-; then | |
22050 | configure_input="$ac_file. $configure_input" | |
22051 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22052 | $as_echo "$as_me: creating $ac_file" >&6;} | |
22053 | fi | |
22054 | # Neutralize special characters interpreted by sed in replacement strings. | |
22055 | case $configure_input in #( | |
22056 | *\&* | *\|* | *\\* ) | |
22057 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
22058 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
22059 | *) ac_sed_conf_input=$configure_input;; | |
22060 | esac | |
22061 | ||
22062 | case $ac_tag in | |
22063 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
22064 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
22065 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
22066 | { (exit 1); exit 1; }; } ;; | |
22067 | esac | |
22068 | ;; | |
22069 | esac | |
22070 | ||
22071 | ac_dir=`$as_dirname -- "$ac_file" || | |
22072 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22073 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22074 | X"$ac_file" : 'X\(//\)$' \| \ | |
22075 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
22076 | $as_echo X"$ac_file" | | |
22077 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22078 | s//\1/ | |
22079 | q | |
22080 | } | |
22081 | /^X\(\/\/\)[^/].*/{ | |
22082 | s//\1/ | |
22083 | q | |
22084 | } | |
22085 | /^X\(\/\/\)$/{ | |
22086 | s//\1/ | |
22087 | q | |
22088 | } | |
22089 | /^X\(\/\).*/{ | |
22090 | s//\1/ | |
22091 | q | |
22092 | } | |
22093 | s/.*/./; q'` | |
22094 | { as_dir="$ac_dir" | |
22095 | case $as_dir in #( | |
22096 | -*) as_dir=./$as_dir;; | |
22097 | esac | |
22098 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
22099 | as_dirs= | |
22100 | while :; do | |
22101 | case $as_dir in #( | |
22102 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
22103 | *) as_qdir=$as_dir;; | |
22104 | esac | |
22105 | as_dirs="'$as_qdir' $as_dirs" | |
22106 | as_dir=`$as_dirname -- "$as_dir" || | |
22107 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22108 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22109 | X"$as_dir" : 'X\(//\)$' \| \ | |
22110 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
22111 | $as_echo X"$as_dir" | | |
22112 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22113 | s//\1/ | |
22114 | q | |
22115 | } | |
22116 | /^X\(\/\/\)[^/].*/{ | |
22117 | s//\1/ | |
22118 | q | |
22119 | } | |
22120 | /^X\(\/\/\)$/{ | |
22121 | s//\1/ | |
22122 | q | |
22123 | } | |
22124 | /^X\(\/\).*/{ | |
22125 | s//\1/ | |
22126 | q | |
22127 | } | |
22128 | s/.*/./; q'` | |
22129 | test -d "$as_dir" && break | |
22130 | done | |
22131 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22132 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
22133 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
22134 | { (exit 1); exit 1; }; }; } | |
22135 | ac_builddir=. | |
22136 | ||
22137 | case "$ac_dir" in | |
22138 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22139 | *) | |
22140 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
22141 | # A ".." for each directory in $ac_dir_suffix. | |
22142 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
22143 | case $ac_top_builddir_sub in | |
22144 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22145 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
22146 | esac ;; | |
22147 | esac | |
22148 | ac_abs_top_builddir=$ac_pwd | |
22149 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
22150 | # for backward compatibility: | |
22151 | ac_top_builddir=$ac_top_build_prefix | |
22152 | ||
22153 | case $srcdir in | |
22154 | .) # We are building in place. | |
22155 | ac_srcdir=. | |
22156 | ac_top_srcdir=$ac_top_builddir_sub | |
22157 | ac_abs_top_srcdir=$ac_pwd ;; | |
22158 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
22159 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22160 | ac_top_srcdir=$srcdir | |
22161 | ac_abs_top_srcdir=$srcdir ;; | |
22162 | *) # Relative name. | |
22163 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
22164 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
22165 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
22166 | esac | |
22167 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
22168 | ||
22169 | ||
22170 | case $ac_mode in | |
22171 | :F) | |
22172 | # | |
22173 | # CONFIG_FILE | |
22174 | # | |
22175 | ||
22176 | case $INSTALL in | |
22177 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
22178 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
22179 | esac | |
22180 | ac_MKDIR_P=$MKDIR_P | |
22181 | case $MKDIR_P in | |
22182 | [\\/$]* | ?:[\\/]* ) ;; | |
22183 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
22184 | esac | |
22185 | _ACEOF | |
22186 | ||
22187 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22188 | # If the template does not know about datarootdir, expand it. | |
22189 | # FIXME: This hack should be removed a few years after 2.60. | |
22190 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
22191 | ||
22192 | ac_sed_dataroot=' | |
22193 | /datarootdir/ { | |
22194 | p | |
22195 | q | |
22196 | } | |
22197 | /@datadir@/p | |
22198 | /@docdir@/p | |
22199 | /@infodir@/p | |
22200 | /@localedir@/p | |
22201 | /@mandir@/p | |
22202 | ' | |
22203 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
22204 | *datarootdir*) ac_datarootdir_seen=yes;; | |
22205 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
22206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
22207 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
22208 | _ACEOF | |
22209 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22210 | ac_datarootdir_hack=' | |
22211 | s&@datadir@&$datadir&g | |
22212 | s&@docdir@&$docdir&g | |
22213 | s&@infodir@&$infodir&g | |
22214 | s&@localedir@&$localedir&g | |
22215 | s&@mandir@&$mandir&g | |
22216 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
22217 | esac | |
22218 | _ACEOF | |
22219 | ||
22220 | # Neutralize VPATH when `$srcdir' = `.'. | |
22221 | # Shell code in configure.ac might set extrasub. | |
22222 | # FIXME: do we really want to maintain this feature? | |
22223 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22224 | ac_sed_extra="$ac_vpsub | |
22225 | $extrasub | |
22226 | _ACEOF | |
22227 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22228 | :t | |
22229 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22230 | s|@configure_input@|$ac_sed_conf_input|;t t | |
22231 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
22232 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
22233 | s&@srcdir@&$ac_srcdir&;t t | |
22234 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
22235 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
22236 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
22237 | s&@builddir@&$ac_builddir&;t t | |
22238 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
22239 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
22240 | s&@INSTALL@&$ac_INSTALL&;t t | |
22241 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
22242 | $ac_datarootdir_hack | |
22243 | " | |
22244 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
22245 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
22246 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
22247 | { (exit 1); exit 1; }; } | |
22248 | ||
22249 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22250 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
22251 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
22252 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
22253 | which seems to be undefined. Please make sure it is defined." >&5 | |
22254 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
22255 | which seems to be undefined. Please make sure it is defined." >&2;} | |
22256 | ||
22257 | rm -f "$tmp/stdin" | |
22258 | case $ac_file in | |
22259 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
22260 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
22261 | esac \ | |
22262 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
22263 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
22264 | { (exit 1); exit 1; }; } | |
22265 | ;; | |
22266 | :H) | |
22267 | # | |
22268 | # CONFIG_HEADER | |
22269 | # | |
22270 | if test x"$ac_file" != x-; then | |
22271 | { | |
22272 | $as_echo "/* $configure_input */" \ | |
22273 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
22274 | } >"$tmp/config.h" \ | |
22275 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
22276 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
22277 | { (exit 1); exit 1; }; } | |
22278 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
22279 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
22280 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
22281 | else | |
22282 | rm -f "$ac_file" | |
22283 | mv "$tmp/config.h" "$ac_file" \ | |
22284 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
22285 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
22286 | { (exit 1); exit 1; }; } | |
22287 | fi | |
22288 | else | |
22289 | $as_echo "/* $configure_input */" \ | |
22290 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
22291 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
22292 | $as_echo "$as_me: error: could not create -" >&2;} | |
22293 | { (exit 1); exit 1; }; } | |
22294 | fi | |
22295 | # Compute "$ac_file"'s index in $config_headers. | |
22296 | _am_arg="$ac_file" | |
22297 | _am_stamp_count=1 | |
22298 | for _am_header in $config_headers :; do | |
22299 | case $_am_header in | |
22300 | $_am_arg | $_am_arg:* ) | |
22301 | break ;; | |
22302 | * ) | |
22303 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22304 | esac | |
22305 | done | |
22306 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
22307 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22308 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
22309 | X"$_am_arg" : 'X\(//\)$' \| \ | |
22310 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
22311 | $as_echo X"$_am_arg" | | |
22312 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22313 | s//\1/ | |
22314 | q | |
22315 | } | |
22316 | /^X\(\/\/\)[^/].*/{ | |
22317 | s//\1/ | |
22318 | q | |
22319 | } | |
22320 | /^X\(\/\/\)$/{ | |
22321 | s//\1/ | |
22322 | q | |
22323 | } | |
22324 | /^X\(\/\).*/{ | |
22325 | s//\1/ | |
22326 | q | |
22327 | } | |
22328 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
22329 | ;; | |
22330 | ||
22331 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
22332 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
22333 | ;; | |
22334 | esac | |
22335 | ||
22336 | ||
22337 | case $ac_file$ac_mode in | |
22338 | "zfs_config.h":H) | |
22339 | (mv zfs_config.h zfs_config.h.tmp && | |
6283f55e | 22340 | awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h && |
e70e591c BB |
22341 | rm zfs_config.h.tmp) || exit 1 ;; |
22342 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
22343 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
22344 | # are listed without --file. Let's play safe and only enable the eval | |
22345 | # if we detect the quoting. | |
22346 | case $CONFIG_FILES in | |
22347 | *\'*) eval set x "$CONFIG_FILES" ;; | |
22348 | *) set x $CONFIG_FILES ;; | |
22349 | esac | |
22350 | shift | |
22351 | for mf | |
22352 | do | |
22353 | # Strip MF so we end up with the name of the file. | |
22354 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
22355 | # Check whether this is an Automake generated Makefile or not. | |
22356 | # We used to match only the files named `Makefile.in', but | |
22357 | # some people rename them; so instead we look at the file content. | |
22358 | # Grep'ing the first line is not enough: some people post-process | |
22359 | # each Makefile.in and add a new line on top of each file to say so. | |
22360 | # Grep'ing the whole file is not good either: AIX grep has a line | |
22361 | # limit of 2048, but all sed's we know have understand at least 4000. | |
22362 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
22363 | dirpart=`$as_dirname -- "$mf" || | |
22364 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22365 | X"$mf" : 'X\(//\)[^/]' \| \ | |
22366 | X"$mf" : 'X\(//\)$' \| \ | |
22367 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
22368 | $as_echo X"$mf" | | |
22369 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22370 | s//\1/ | |
22371 | q | |
22372 | } | |
22373 | /^X\(\/\/\)[^/].*/{ | |
22374 | s//\1/ | |
22375 | q | |
22376 | } | |
22377 | /^X\(\/\/\)$/{ | |
22378 | s//\1/ | |
22379 | q | |
22380 | } | |
22381 | /^X\(\/\).*/{ | |
22382 | s//\1/ | |
22383 | q | |
22384 | } | |
22385 | s/.*/./; q'` | |
22386 | else | |
22387 | continue | |
22388 | fi | |
22389 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22390 | # from the Makefile without running `make'. | |
22391 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
22392 | test -z "$DEPDIR" && continue | |
22393 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22394 | test -z "am__include" && continue | |
22395 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
22396 | # When using ansi2knr, U may be empty or an underscore; expand it | |
22397 | U=`sed -n 's/^U = //p' < "$mf"` | |
22398 | # Find all dependency output files, they are included files with | |
22399 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
22400 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
22401 | # expansion. | |
22402 | for file in `sed -n " | |
22403 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22404 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
22405 | # Make sure the directory exists. | |
22406 | test -f "$dirpart/$file" && continue | |
22407 | fdir=`$as_dirname -- "$file" || | |
22408 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22409 | X"$file" : 'X\(//\)[^/]' \| \ | |
22410 | X"$file" : 'X\(//\)$' \| \ | |
22411 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
22412 | $as_echo X"$file" | | |
22413 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22414 | s//\1/ | |
22415 | q | |
22416 | } | |
22417 | /^X\(\/\/\)[^/].*/{ | |
22418 | s//\1/ | |
22419 | q | |
22420 | } | |
22421 | /^X\(\/\/\)$/{ | |
22422 | s//\1/ | |
22423 | q | |
22424 | } | |
22425 | /^X\(\/\).*/{ | |
22426 | s//\1/ | |
22427 | q | |
22428 | } | |
22429 | s/.*/./; q'` | |
22430 | { as_dir=$dirpart/$fdir | |
22431 | case $as_dir in #( | |
22432 | -*) as_dir=./$as_dir;; | |
22433 | esac | |
22434 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
22435 | as_dirs= | |
22436 | while :; do | |
22437 | case $as_dir in #( | |
22438 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
22439 | *) as_qdir=$as_dir;; | |
22440 | esac | |
22441 | as_dirs="'$as_qdir' $as_dirs" | |
22442 | as_dir=`$as_dirname -- "$as_dir" || | |
22443 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22444 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22445 | X"$as_dir" : 'X\(//\)$' \| \ | |
22446 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
22447 | $as_echo X"$as_dir" | | |
22448 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22449 | s//\1/ | |
22450 | q | |
22451 | } | |
22452 | /^X\(\/\/\)[^/].*/{ | |
22453 | s//\1/ | |
22454 | q | |
22455 | } | |
22456 | /^X\(\/\/\)$/{ | |
22457 | s//\1/ | |
22458 | q | |
22459 | } | |
22460 | /^X\(\/\).*/{ | |
22461 | s//\1/ | |
22462 | q | |
22463 | } | |
22464 | s/.*/./; q'` | |
22465 | test -d "$as_dir" && break | |
22466 | done | |
22467 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22468 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
22469 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
22470 | { (exit 1); exit 1; }; }; } | |
22471 | # echo "creating $dirpart/$file" | |
22472 | echo '# dummy' > "$dirpart/$file" | |
22473 | done | |
22474 | done | |
22475 | } | |
22476 | ;; | |
22477 | "libtool":C) | |
22478 | ||
22479 | # See if we are running on zsh, and set the options which allow our | |
22480 | # commands through without removal of \ escapes. | |
22481 | if test -n "${ZSH_VERSION+set}" ; then | |
22482 | setopt NO_GLOB_SUBST | |
22483 | fi | |
22484 | ||
22485 | cfgfile="${ofile}T" | |
22486 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
22487 | $RM "$cfgfile" | |
22488 | ||
22489 | cat <<_LT_EOF >> "$cfgfile" | |
22490 | #! $SHELL | |
22491 | ||
22492 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
22493 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
22494 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
22495 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
22496 | # | |
22497 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
22498 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
22499 | # Written by Gordon Matzigkeit, 1996 | |
22500 | # | |
22501 | # This file is part of GNU Libtool. | |
22502 | # | |
22503 | # GNU Libtool is free software; you can redistribute it and/or | |
22504 | # modify it under the terms of the GNU General Public License as | |
22505 | # published by the Free Software Foundation; either version 2 of | |
22506 | # the License, or (at your option) any later version. | |
22507 | # | |
22508 | # As a special exception to the GNU General Public License, | |
22509 | # if you distribute this file as part of a program or library that | |
22510 | # is built using GNU Libtool, you may include this file under the | |
22511 | # same distribution terms that you use for the rest of that program. | |
22512 | # | |
22513 | # GNU Libtool is distributed in the hope that it will be useful, | |
22514 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
22515 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22516 | # GNU General Public License for more details. | |
22517 | # | |
22518 | # You should have received a copy of the GNU General Public License | |
22519 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
22520 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
22521 | # obtained by writing to the Free Software Foundation, Inc., | |
22522 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
22523 | ||
22524 | ||
22525 | # The names of the tagged configurations supported by this script. | |
22526 | available_tags="" | |
22527 | ||
22528 | # ### BEGIN LIBTOOL CONFIG | |
22529 | ||
22530 | # Which release of libtool.m4 was used? | |
22531 | macro_version=$macro_version | |
22532 | macro_revision=$macro_revision | |
22533 | ||
22534 | # Whether or not to build shared libraries. | |
22535 | build_libtool_libs=$enable_shared | |
22536 | ||
22537 | # Whether or not to build static libraries. | |
22538 | build_old_libs=$enable_static | |
22539 | ||
22540 | # What type of objects to build. | |
22541 | pic_mode=$pic_mode | |
22542 | ||
22543 | # Whether or not to optimize for fast installation. | |
22544 | fast_install=$enable_fast_install | |
22545 | ||
22546 | # The host system. | |
22547 | host_alias=$host_alias | |
22548 | host=$host | |
22549 | host_os=$host_os | |
22550 | ||
22551 | # The build system. | |
22552 | build_alias=$build_alias | |
22553 | build=$build | |
22554 | build_os=$build_os | |
22555 | ||
22556 | # A sed program that does not truncate output. | |
22557 | SED=$lt_SED | |
22558 | ||
22559 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
22560 | Xsed="\$SED -e 1s/^X//" | |
22561 | ||
22562 | # A grep program that handles long lines. | |
22563 | GREP=$lt_GREP | |
22564 | ||
22565 | # An ERE matcher. | |
22566 | EGREP=$lt_EGREP | |
22567 | ||
22568 | # A literal string matcher. | |
22569 | FGREP=$lt_FGREP | |
22570 | ||
22571 | # A BSD- or MS-compatible name lister. | |
22572 | NM=$lt_NM | |
22573 | ||
22574 | # Whether we need soft or hard links. | |
22575 | LN_S=$lt_LN_S | |
22576 | ||
22577 | # What is the maximum length of a command? | |
22578 | max_cmd_len=$max_cmd_len | |
22579 | ||
22580 | # Object file suffix (normally "o"). | |
22581 | objext=$ac_objext | |
22582 | ||
22583 | # Executable file suffix (normally ""). | |
22584 | exeext=$exeext | |
22585 | ||
22586 | # whether the shell understands "unset". | |
22587 | lt_unset=$lt_unset | |
22588 | ||
22589 | # turn spaces into newlines. | |
22590 | SP2NL=$lt_lt_SP2NL | |
22591 | ||
22592 | # turn newlines into spaces. | |
22593 | NL2SP=$lt_lt_NL2SP | |
22594 | ||
22595 | # How to create reloadable object files. | |
22596 | reload_flag=$lt_reload_flag | |
22597 | reload_cmds=$lt_reload_cmds | |
22598 | ||
22599 | # An object symbol dumper. | |
22600 | OBJDUMP=$lt_OBJDUMP | |
22601 | ||
22602 | # Method to check whether dependent libraries are shared objects. | |
22603 | deplibs_check_method=$lt_deplibs_check_method | |
22604 | ||
22605 | # Command to use when deplibs_check_method == "file_magic". | |
22606 | file_magic_cmd=$lt_file_magic_cmd | |
22607 | ||
22608 | # The archiver. | |
22609 | AR=$lt_AR | |
22610 | AR_FLAGS=$lt_AR_FLAGS | |
22611 | ||
22612 | # A symbol stripping program. | |
22613 | STRIP=$lt_STRIP | |
22614 | ||
22615 | # Commands used to install an old-style archive. | |
22616 | RANLIB=$lt_RANLIB | |
22617 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
22618 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
22619 | ||
22620 | # A C compiler. | |
22621 | LTCC=$lt_CC | |
22622 | ||
22623 | # LTCC compiler flags. | |
22624 | LTCFLAGS=$lt_CFLAGS | |
22625 | ||
22626 | # Take the output of nm and produce a listing of raw symbols and C names. | |
22627 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
22628 | ||
22629 | # Transform the output of nm in a proper C declaration. | |
22630 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
22631 | ||
22632 | # Transform the output of nm in a C name address pair. | |
22633 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
22634 | ||
22635 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
22636 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
22637 | ||
22638 | # The name of the directory that contains temporary libtool files. | |
22639 | objdir=$objdir | |
22640 | ||
22641 | # Shell to use when invoking shell scripts. | |
22642 | SHELL=$lt_SHELL | |
22643 | ||
22644 | # An echo program that does not interpret backslashes. | |
22645 | ECHO=$lt_ECHO | |
22646 | ||
22647 | # Used to examine libraries when file_magic_cmd begins with "file". | |
22648 | MAGIC_CMD=$MAGIC_CMD | |
22649 | ||
22650 | # Must we lock files when doing compilation? | |
22651 | need_locks=$lt_need_locks | |
22652 | ||
22653 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
22654 | DSYMUTIL=$lt_DSYMUTIL | |
22655 | ||
22656 | # Tool to change global to local symbols on Mac OS X. | |
22657 | NMEDIT=$lt_NMEDIT | |
22658 | ||
22659 | # Tool to manipulate fat objects and archives on Mac OS X. | |
22660 | LIPO=$lt_LIPO | |
22661 | ||
22662 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
22663 | OTOOL=$lt_OTOOL | |
22664 | ||
22665 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
22666 | OTOOL64=$lt_OTOOL64 | |
22667 | ||
22668 | # Old archive suffix (normally "a"). | |
22669 | libext=$libext | |
22670 | ||
22671 | # Shared library suffix (normally ".so"). | |
22672 | shrext_cmds=$lt_shrext_cmds | |
22673 | ||
22674 | # The commands to extract the exported symbol list from a shared archive. | |
22675 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
22676 | ||
22677 | # Variables whose values should be saved in libtool wrapper scripts and | |
22678 | # restored at link time. | |
22679 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
22680 | ||
22681 | # Do we need the "lib" prefix for modules? | |
22682 | need_lib_prefix=$need_lib_prefix | |
22683 | ||
22684 | # Do we need a version for libraries? | |
22685 | need_version=$need_version | |
22686 | ||
22687 | # Library versioning type. | |
22688 | version_type=$version_type | |
22689 | ||
22690 | # Shared library runtime path variable. | |
22691 | runpath_var=$runpath_var | |
22692 | ||
22693 | # Shared library path variable. | |
22694 | shlibpath_var=$shlibpath_var | |
22695 | ||
22696 | # Is shlibpath searched before the hard-coded library search path? | |
22697 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
22698 | ||
22699 | # Format of library name prefix. | |
22700 | libname_spec=$lt_libname_spec | |
22701 | ||
22702 | # List of archive names. First name is the real one, the rest are links. | |
22703 | # The last name is the one that the linker finds with -lNAME | |
22704 | library_names_spec=$lt_library_names_spec | |
22705 | ||
22706 | # The coded name of the library, if different from the real name. | |
22707 | soname_spec=$lt_soname_spec | |
22708 | ||
22709 | # Command to use after installation of a shared archive. | |
22710 | postinstall_cmds=$lt_postinstall_cmds | |
22711 | ||
22712 | # Command to use after uninstallation of a shared archive. | |
22713 | postuninstall_cmds=$lt_postuninstall_cmds | |
22714 | ||
22715 | # Commands used to finish a libtool library installation in a directory. | |
22716 | finish_cmds=$lt_finish_cmds | |
22717 | ||
22718 | # As "finish_cmds", except a single script fragment to be evaled but | |
22719 | # not shown. | |
22720 | finish_eval=$lt_finish_eval | |
22721 | ||
22722 | # Whether we should hardcode library paths into libraries. | |
22723 | hardcode_into_libs=$hardcode_into_libs | |
22724 | ||
22725 | # Compile-time system search path for libraries. | |
22726 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
22727 | ||
22728 | # Run-time system search path for libraries. | |
22729 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
22730 | ||
22731 | # Whether dlopen is supported. | |
22732 | dlopen_support=$enable_dlopen | |
22733 | ||
22734 | # Whether dlopen of programs is supported. | |
22735 | dlopen_self=$enable_dlopen_self | |
22736 | ||
22737 | # Whether dlopen of statically linked programs is supported. | |
22738 | dlopen_self_static=$enable_dlopen_self_static | |
22739 | ||
22740 | # Commands to strip libraries. | |
22741 | old_striplib=$lt_old_striplib | |
22742 | striplib=$lt_striplib | |
22743 | ||
22744 | ||
22745 | # The linker used to build libraries. | |
22746 | LD=$lt_LD | |
22747 | ||
22748 | # Commands used to build an old-style archive. | |
22749 | old_archive_cmds=$lt_old_archive_cmds | |
22750 | ||
22751 | # A language specific compiler. | |
22752 | CC=$lt_compiler | |
22753 | ||
22754 | # Is the compiler the GNU compiler? | |
22755 | with_gcc=$GCC | |
22756 | ||
22757 | # Compiler flag to turn off builtin functions. | |
22758 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
22759 | ||
22760 | # How to pass a linker flag through the compiler. | |
22761 | wl=$lt_lt_prog_compiler_wl | |
22762 | ||
22763 | # Additional compiler flags for building library objects. | |
22764 | pic_flag=$lt_lt_prog_compiler_pic | |
22765 | ||
22766 | # Compiler flag to prevent dynamic linking. | |
22767 | link_static_flag=$lt_lt_prog_compiler_static | |
22768 | ||
22769 | # Does compiler simultaneously support -c and -o options? | |
22770 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
22771 | ||
22772 | # Whether or not to add -lc for building shared libraries. | |
22773 | build_libtool_need_lc=$archive_cmds_need_lc | |
22774 | ||
22775 | # Whether or not to disallow shared libs when runtime libs are static. | |
22776 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
22777 | ||
22778 | # Compiler flag to allow reflexive dlopens. | |
22779 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
22780 | ||
22781 | # Compiler flag to generate shared objects directly from archives. | |
22782 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
22783 | ||
22784 | # Whether the compiler copes with passing no objects directly. | |
22785 | compiler_needs_object=$lt_compiler_needs_object | |
22786 | ||
22787 | # Create an old-style archive from a shared archive. | |
22788 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
22789 | ||
22790 | # Create a temporary old-style archive to link instead of a shared archive. | |
22791 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
22792 | ||
22793 | # Commands used to build a shared archive. | |
22794 | archive_cmds=$lt_archive_cmds | |
22795 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
22796 | ||
22797 | # Commands used to build a loadable module if different from building | |
22798 | # a shared archive. | |
22799 | module_cmds=$lt_module_cmds | |
22800 | module_expsym_cmds=$lt_module_expsym_cmds | |
22801 | ||
22802 | # Whether we are building with GNU ld or not. | |
22803 | with_gnu_ld=$lt_with_gnu_ld | |
22804 | ||
22805 | # Flag that allows shared libraries with undefined symbols to be built. | |
22806 | allow_undefined_flag=$lt_allow_undefined_flag | |
22807 | ||
22808 | # Flag that enforces no undefined symbols. | |
22809 | no_undefined_flag=$lt_no_undefined_flag | |
22810 | ||
22811 | # Flag to hardcode \$libdir into a binary during linking. | |
22812 | # This must work even if \$libdir does not exist | |
22813 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
22814 | ||
22815 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
22816 | # during linking. This must work even if \$libdir does not exist. | |
22817 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
22818 | ||
22819 | # Whether we need a single "-rpath" flag with a separated argument. | |
22820 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
22821 | ||
22822 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
22823 | # DIR into the resulting binary. | |
22824 | hardcode_direct=$hardcode_direct | |
22825 | ||
22826 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
22827 | # DIR into the resulting binary and the resulting library dependency is | |
22828 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
22829 | # library is relocated. | |
22830 | hardcode_direct_absolute=$hardcode_direct_absolute | |
22831 | ||
22832 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
22833 | # into the resulting binary. | |
22834 | hardcode_minus_L=$hardcode_minus_L | |
22835 | ||
22836 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
22837 | # into the resulting binary. | |
22838 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
22839 | ||
22840 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
22841 | # into the library and all subsequent libraries and executables linked | |
22842 | # against it. | |
22843 | hardcode_automatic=$hardcode_automatic | |
22844 | ||
22845 | # Set to yes if linker adds runtime paths of dependent libraries | |
22846 | # to runtime path list. | |
22847 | inherit_rpath=$inherit_rpath | |
22848 | ||
22849 | # Whether libtool must link a program against all its dependency libraries. | |
22850 | link_all_deplibs=$link_all_deplibs | |
22851 | ||
22852 | # Fix the shell variable \$srcfile for the compiler. | |
22853 | fix_srcfile_path=$lt_fix_srcfile_path | |
22854 | ||
22855 | # Set to "yes" if exported symbols are required. | |
22856 | always_export_symbols=$always_export_symbols | |
22857 | ||
22858 | # The commands to list exported symbols. | |
22859 | export_symbols_cmds=$lt_export_symbols_cmds | |
22860 | ||
22861 | # Symbols that should not be listed in the preloaded symbols. | |
22862 | exclude_expsyms=$lt_exclude_expsyms | |
22863 | ||
22864 | # Symbols that must always be exported. | |
22865 | include_expsyms=$lt_include_expsyms | |
22866 | ||
22867 | # Commands necessary for linking programs (against libraries) with templates. | |
22868 | prelink_cmds=$lt_prelink_cmds | |
22869 | ||
22870 | # Specify filename containing input files. | |
22871 | file_list_spec=$lt_file_list_spec | |
22872 | ||
22873 | # How to hardcode a shared library path into an executable. | |
22874 | hardcode_action=$hardcode_action | |
22875 | ||
22876 | # ### END LIBTOOL CONFIG | |
22877 | ||
22878 | _LT_EOF | |
22879 | ||
22880 | case $host_os in | |
22881 | aix3*) | |
22882 | cat <<\_LT_EOF >> "$cfgfile" | |
22883 | # AIX sometimes has problems with the GCC collect2 program. For some | |
22884 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
22885 | # vanish in a puff of smoke. | |
22886 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
22887 | COLLECT_NAMES= | |
22888 | export COLLECT_NAMES | |
22889 | fi | |
22890 | _LT_EOF | |
22891 | ;; | |
22892 | esac | |
22893 | ||
22894 | ||
22895 | ltmain="$ac_aux_dir/ltmain.sh" | |
22896 | ||
22897 | ||
22898 | # We use sed instead of cat because bash on DJGPP gets confused if | |
22899 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
22900 | # text mode, it properly converts lines to CR/LF. This bash problem | |
22901 | # is reportedly fixed, but why not run on old versions too? | |
22902 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
22903 | || (rm -f "$cfgfile"; exit 1) | |
22904 | ||
22905 | case $xsi_shell in | |
22906 | yes) | |
22907 | cat << \_LT_EOF >> "$cfgfile" | |
22908 | ||
22909 | # func_dirname file append nondir_replacement | |
22910 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
22911 | # otherwise set result to NONDIR_REPLACEMENT. | |
22912 | func_dirname () | |
22913 | { | |
22914 | case ${1} in | |
22915 | */*) func_dirname_result="${1%/*}${2}" ;; | |
22916 | * ) func_dirname_result="${3}" ;; | |
22917 | esac | |
22918 | } | |
22919 | ||
22920 | # func_basename file | |
22921 | func_basename () | |
22922 | { | |
22923 | func_basename_result="${1##*/}" | |
22924 | } | |
22925 | ||
22926 | # func_dirname_and_basename file append nondir_replacement | |
22927 | # perform func_basename and func_dirname in a single function | |
22928 | # call: | |
22929 | # dirname: Compute the dirname of FILE. If nonempty, | |
22930 | # add APPEND to the result, otherwise set result | |
22931 | # to NONDIR_REPLACEMENT. | |
22932 | # value returned in "$func_dirname_result" | |
22933 | # basename: Compute filename of FILE. | |
22934 | # value retuned in "$func_basename_result" | |
22935 | # Implementation must be kept synchronized with func_dirname | |
22936 | # and func_basename. For efficiency, we do not delegate to | |
22937 | # those functions but instead duplicate the functionality here. | |
22938 | func_dirname_and_basename () | |
22939 | { | |
22940 | case ${1} in | |
22941 | */*) func_dirname_result="${1%/*}${2}" ;; | |
22942 | * ) func_dirname_result="${3}" ;; | |
22943 | esac | |
22944 | func_basename_result="${1##*/}" | |
22945 | } | |
22946 | ||
22947 | # func_stripname prefix suffix name | |
22948 | # strip PREFIX and SUFFIX off of NAME. | |
22949 | # PREFIX and SUFFIX must not contain globbing or regex special | |
22950 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
22951 | # dot (in which case that matches only a dot). | |
22952 | func_stripname () | |
22953 | { | |
22954 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
22955 | # positional parameters, so assign one to ordinary parameter first. | |
22956 | func_stripname_result=${3} | |
22957 | func_stripname_result=${func_stripname_result#"${1}"} | |
22958 | func_stripname_result=${func_stripname_result%"${2}"} | |
22959 | } | |
22960 | ||
22961 | # func_opt_split | |
22962 | func_opt_split () | |
22963 | { | |
22964 | func_opt_split_opt=${1%%=*} | |
22965 | func_opt_split_arg=${1#*=} | |
22966 | } | |
22967 | ||
22968 | # func_lo2o object | |
22969 | func_lo2o () | |
22970 | { | |
22971 | case ${1} in | |
22972 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
22973 | *) func_lo2o_result=${1} ;; | |
22974 | esac | |
22975 | } | |
22976 | ||
22977 | # func_xform libobj-or-source | |
22978 | func_xform () | |
22979 | { | |
22980 | func_xform_result=${1%.*}.lo | |
22981 | } | |
22982 | ||
22983 | # func_arith arithmetic-term... | |
22984 | func_arith () | |
22985 | { | |
22986 | func_arith_result=$(( $* )) | |
22987 | } | |
22988 | ||
22989 | # func_len string | |
22990 | # STRING may not start with a hyphen. | |
22991 | func_len () | |
22992 | { | |
22993 | func_len_result=${#1} | |
22994 | } | |
22995 | ||
22996 | _LT_EOF | |
22997 | ;; | |
22998 | *) # Bourne compatible functions. | |
22999 | cat << \_LT_EOF >> "$cfgfile" | |
23000 | ||
23001 | # func_dirname file append nondir_replacement | |
23002 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
23003 | # otherwise set result to NONDIR_REPLACEMENT. | |
23004 | func_dirname () | |
23005 | { | |
23006 | # Extract subdirectory from the argument. | |
23007 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
23008 | if test "X$func_dirname_result" = "X${1}"; then | |
23009 | func_dirname_result="${3}" | |
23010 | else | |
23011 | func_dirname_result="$func_dirname_result${2}" | |
23012 | fi | |
23013 | } | |
23014 | ||
23015 | # func_basename file | |
23016 | func_basename () | |
23017 | { | |
23018 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
23019 | } | |
23020 | ||
23021 | ||
23022 | # func_stripname prefix suffix name | |
23023 | # strip PREFIX and SUFFIX off of NAME. | |
23024 | # PREFIX and SUFFIX must not contain globbing or regex special | |
23025 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
23026 | # dot (in which case that matches only a dot). | |
23027 | # func_strip_suffix prefix name | |
23028 | func_stripname () | |
23029 | { | |
23030 | case ${2} in | |
23031 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
23032 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
23033 | *) func_stripname_result=`$ECHO "X${3}" \ | |
23034 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
23035 | esac | |
23036 | } | |
23037 | ||
23038 | # sed scripts: | |
23039 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
23040 | my_sed_long_arg='1s/^-[^=]*=//' | |
23041 | ||
23042 | # func_opt_split | |
23043 | func_opt_split () | |
23044 | { | |
23045 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
23046 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
23047 | } | |
23048 | ||
23049 | # func_lo2o object | |
23050 | func_lo2o () | |
23051 | { | |
23052 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
23053 | } | |
23054 | ||
23055 | # func_xform libobj-or-source | |
23056 | func_xform () | |
23057 | { | |
23058 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
23059 | } | |
23060 | ||
23061 | # func_arith arithmetic-term... | |
23062 | func_arith () | |
23063 | { | |
23064 | func_arith_result=`expr "$@"` | |
23065 | } | |
23066 | ||
23067 | # func_len string | |
23068 | # STRING may not start with a hyphen. | |
23069 | func_len () | |
23070 | { | |
23071 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
23072 | } | |
23073 | ||
23074 | _LT_EOF | |
23075 | esac | |
23076 | ||
23077 | case $lt_shell_append in | |
23078 | yes) | |
23079 | cat << \_LT_EOF >> "$cfgfile" | |
23080 | ||
23081 | # func_append var value | |
23082 | # Append VALUE to the end of shell variable VAR. | |
23083 | func_append () | |
23084 | { | |
23085 | eval "$1+=\$2" | |
23086 | } | |
23087 | _LT_EOF | |
23088 | ;; | |
23089 | *) | |
23090 | cat << \_LT_EOF >> "$cfgfile" | |
23091 | ||
23092 | # func_append var value | |
23093 | # Append VALUE to the end of shell variable VAR. | |
23094 | func_append () | |
23095 | { | |
23096 | eval "$1=\$$1\$2" | |
23097 | } | |
23098 | ||
23099 | _LT_EOF | |
23100 | ;; | |
23101 | esac | |
23102 | ||
23103 | ||
23104 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
23105 | || (rm -f "$cfgfile"; exit 1) | |
23106 | ||
23107 | mv -f "$cfgfile" "$ofile" || | |
23108 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
23109 | chmod +x "$ofile" | |
23110 | ||
23111 | ;; | |
23112 | ||
23113 | esac | |
23114 | done # for ac_tag | |
23115 | ||
23116 | ||
23117 | { (exit 0); exit 0; } | |
23118 | _ACEOF | |
23119 | chmod +x $CONFIG_STATUS | |
23120 | ac_clean_files=$ac_clean_files_save | |
23121 | ||
23122 | test $ac_write_fail = 0 || | |
23123 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
23124 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
23125 | { (exit 1); exit 1; }; } | |
23126 | ||
23127 | ||
23128 | # configure is writing to config.log, and then calls config.status. | |
23129 | # config.status does its own redirection, appending to config.log. | |
23130 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23131 | # by configure, so config.status won't be able to write to it; its | |
23132 | # output is simply discarded. So we exec the FD to /dev/null, | |
23133 | # effectively closing config.log, so it can be properly (re)opened and | |
23134 | # appended to by config.status. When coming back to configure, we | |
23135 | # need to make the FD available again. | |
23136 | if test "$no_create" != yes; then | |
23137 | ac_cs_success=: | |
23138 | ac_config_status_args= | |
23139 | test "$silent" = yes && | |
23140 | ac_config_status_args="$ac_config_status_args --quiet" | |
23141 | exec 5>/dev/null | |
23142 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23143 | exec 5>>config.log | |
23144 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23145 | # would make configure fail if this is the last instruction. | |
23146 | $ac_cs_success || { (exit 1); exit 1; } | |
23147 | fi | |
23148 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
23149 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
23150 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
23151 | fi | |
23152 |