|
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 ac_unique_file="configure.ac" |
|
751 # Factoring default headers for most tests. |
|
752 ac_includes_default="\ |
|
753 #include <stdio.h> |
|
754 #ifdef HAVE_SYS_TYPES_H |
|
755 # include <sys/types.h> |
|
756 #endif |
|
757 #ifdef HAVE_SYS_STAT_H |
|
758 # include <sys/stat.h> |
|
759 #endif |
|
760 #ifdef STDC_HEADERS |
|
761 # include <stdlib.h> |
|
762 # include <stddef.h> |
|
763 #else |
|
764 # ifdef HAVE_STDLIB_H |
|
765 # include <stdlib.h> |
|
766 # endif |
|
767 #endif |
|
768 #ifdef HAVE_STRING_H |
|
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
770 # include <memory.h> |
|
771 # endif |
|
772 # include <string.h> |
|
773 #endif |
|
774 #ifdef HAVE_STRINGS_H |
|
775 # include <strings.h> |
|
776 #endif |
|
777 #ifdef HAVE_INTTYPES_H |
|
778 # include <inttypes.h> |
|
779 #endif |
|
780 #ifdef HAVE_STDINT_H |
|
781 # include <stdint.h> |
|
782 #endif |
|
783 #ifdef HAVE_UNISTD_H |
|
784 # include <unistd.h> |
|
785 #endif" |
|
786 |
|
787 ac_subst_vars='LTLIBOBJS |
|
788 LIBOBJS |
|
789 PROJECT_CFLAGS |
|
790 PROJECT_LIBS |
|
791 BASE_LIBS |
|
792 privdatadir |
|
793 ALL_LIBS |
|
794 ALL_CFLAGS |
|
795 PKG_CONFIG |
|
796 OTOOL64 |
|
797 OTOOL |
|
798 LIPO |
|
799 NMEDIT |
|
800 DSYMUTIL |
|
801 lt_ECHO |
|
802 RANLIB |
|
803 AR |
|
804 OBJDUMP |
|
805 LN_S |
|
806 NM |
|
807 ac_ct_DUMPBIN |
|
808 DUMPBIN |
|
809 LD |
|
810 FGREP |
|
811 EGREP |
|
812 GREP |
|
813 SED |
|
814 LIBTOOL |
|
815 CPP |
|
816 am__fastdepCC_FALSE |
|
817 am__fastdepCC_TRUE |
|
818 CCDEPMODE |
|
819 AMDEPBACKSLASH |
|
820 AMDEP_FALSE |
|
821 AMDEP_TRUE |
|
822 am__quote |
|
823 am__include |
|
824 DEPDIR |
|
825 OBJEXT |
|
826 EXEEXT |
|
827 ac_ct_CC |
|
828 CPPFLAGS |
|
829 LDFLAGS |
|
830 CFLAGS |
|
831 CC |
|
832 host_os |
|
833 host_vendor |
|
834 host_cpu |
|
835 host |
|
836 build_os |
|
837 build_vendor |
|
838 build_cpu |
|
839 build |
|
840 MAINT |
|
841 MAINTAINER_MODE_FALSE |
|
842 MAINTAINER_MODE_TRUE |
|
843 am__untar |
|
844 am__tar |
|
845 AMTAR |
|
846 am__leading_dot |
|
847 SET_MAKE |
|
848 AWK |
|
849 mkdir_p |
|
850 MKDIR_P |
|
851 INSTALL_STRIP_PROGRAM |
|
852 STRIP |
|
853 install_sh |
|
854 MAKEINFO |
|
855 AUTOHEADER |
|
856 AUTOMAKE |
|
857 AUTOCONF |
|
858 ACLOCAL |
|
859 VERSION |
|
860 PACKAGE |
|
861 CYGPATH_W |
|
862 am__isrc |
|
863 INSTALL_DATA |
|
864 INSTALL_SCRIPT |
|
865 INSTALL_PROGRAM |
|
866 target_alias |
|
867 host_alias |
|
868 build_alias |
|
869 LIBS |
|
870 ECHO_T |
|
871 ECHO_N |
|
872 ECHO_C |
|
873 DEFS |
|
874 mandir |
|
875 localedir |
|
876 libdir |
|
877 psdir |
|
878 pdfdir |
|
879 dvidir |
|
880 htmldir |
|
881 infodir |
|
882 docdir |
|
883 oldincludedir |
|
884 includedir |
|
885 localstatedir |
|
886 sharedstatedir |
|
887 sysconfdir |
|
888 datadir |
|
889 datarootdir |
|
890 libexecdir |
|
891 sbindir |
|
892 bindir |
|
893 program_transform_name |
|
894 prefix |
|
895 exec_prefix |
|
896 PACKAGE_BUGREPORT |
|
897 PACKAGE_STRING |
|
898 PACKAGE_VERSION |
|
899 PACKAGE_TARNAME |
|
900 PACKAGE_NAME |
|
901 PATH_SEPARATOR |
|
902 SHELL' |
|
903 ac_subst_files='' |
|
904 ac_user_opts=' |
|
905 enable_option_checking |
|
906 enable_maintainer_mode |
|
907 enable_dependency_tracking |
|
908 enable_static |
|
909 enable_shared |
|
910 with_pic |
|
911 enable_fast_install |
|
912 with_gnu_ld |
|
913 enable_libtool_lock |
|
914 ' |
|
915 ac_precious_vars='build_alias |
|
916 host_alias |
|
917 target_alias |
|
918 CC |
|
919 CFLAGS |
|
920 LDFLAGS |
|
921 LIBS |
|
922 CPPFLAGS |
|
923 CPP |
|
924 PKG_CONFIG |
|
925 ALL_CFLAGS |
|
926 ALL_LIBS' |
|
927 |
|
928 |
|
929 # Initialize some variables set by options. |
|
930 ac_init_help= |
|
931 ac_init_version=false |
|
932 ac_unrecognized_opts= |
|
933 ac_unrecognized_sep= |
|
934 # The variables have the same names as the options, with |
|
935 # dashes changed to underlines. |
|
936 cache_file=/dev/null |
|
937 exec_prefix=NONE |
|
938 no_create= |
|
939 no_recursion= |
|
940 prefix=NONE |
|
941 program_prefix=NONE |
|
942 program_suffix=NONE |
|
943 program_transform_name=s,x,x, |
|
944 silent= |
|
945 site= |
|
946 srcdir= |
|
947 verbose= |
|
948 x_includes=NONE |
|
949 x_libraries=NONE |
|
950 |
|
951 # Installation directory options. |
|
952 # These are left unexpanded so users can "make install exec_prefix=/foo" |
|
953 # and all the variables that are supposed to be based on exec_prefix |
|
954 # by default will actually change. |
|
955 # Use braces instead of parens because sh, perl, etc. also accept them. |
|
956 # (The list follows the same order as the GNU Coding Standards.) |
|
957 bindir='${exec_prefix}/bin' |
|
958 sbindir='${exec_prefix}/sbin' |
|
959 libexecdir='${exec_prefix}/libexec' |
|
960 datarootdir='${prefix}/share' |
|
961 datadir='${datarootdir}' |
|
962 sysconfdir='${prefix}/etc' |
|
963 sharedstatedir='${prefix}/com' |
|
964 localstatedir='${prefix}/var' |
|
965 includedir='${prefix}/include' |
|
966 oldincludedir='/usr/include' |
|
967 docdir='${datarootdir}/doc/${PACKAGE}' |
|
968 infodir='${datarootdir}/info' |
|
969 htmldir='${docdir}' |
|
970 dvidir='${docdir}' |
|
971 pdfdir='${docdir}' |
|
972 psdir='${docdir}' |
|
973 libdir='${exec_prefix}/lib' |
|
974 localedir='${datarootdir}/locale' |
|
975 mandir='${datarootdir}/man' |
|
976 |
|
977 ac_prev= |
|
978 ac_dashdash= |
|
979 for ac_option |
|
980 do |
|
981 # If the previous option needs an argument, assign it. |
|
982 if test -n "$ac_prev"; then |
|
983 eval $ac_prev=\$ac_option |
|
984 ac_prev= |
|
985 continue |
|
986 fi |
|
987 |
|
988 case $ac_option in |
|
989 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
990 *) ac_optarg=yes ;; |
|
991 esac |
|
992 |
|
993 # Accept the important Cygnus configure options, so we can diagnose typos. |
|
994 |
|
995 case $ac_dashdash$ac_option in |
|
996 --) |
|
997 ac_dashdash=yes ;; |
|
998 |
|
999 -bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
1000 ac_prev=bindir ;; |
|
1001 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
1002 bindir=$ac_optarg ;; |
|
1003 |
|
1004 -build | --build | --buil | --bui | --bu) |
|
1005 ac_prev=build_alias ;; |
|
1006 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
1007 build_alias=$ac_optarg ;; |
|
1008 |
|
1009 -cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
1010 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
1011 ac_prev=cache_file ;; |
|
1012 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
1013 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
1014 cache_file=$ac_optarg ;; |
|
1015 |
|
1016 --config-cache | -C) |
|
1017 cache_file=config.cache ;; |
|
1018 |
|
1019 -datadir | --datadir | --datadi | --datad) |
|
1020 ac_prev=datadir ;; |
|
1021 -datadir=* | --datadir=* | --datadi=* | --datad=*) |
|
1022 datadir=$ac_optarg ;; |
|
1023 |
|
1024 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|
1025 | --dataroo | --dataro | --datar) |
|
1026 ac_prev=datarootdir ;; |
|
1027 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
1028 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
1029 datarootdir=$ac_optarg ;; |
|
1030 |
|
1031 -disable-* | --disable-*) |
|
1032 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|
1033 # Reject names that are not valid shell variable names. |
|
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1035 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
|
1036 { (exit 1); exit 1; }; } |
|
1037 ac_useropt_orig=$ac_useropt |
|
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1039 case $ac_user_opts in |
|
1040 *" |
|
1041 "enable_$ac_useropt" |
|
1042 "*) ;; |
|
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|
1044 ac_unrecognized_sep=', ';; |
|
1045 esac |
|
1046 eval enable_$ac_useropt=no ;; |
|
1047 |
|
1048 -docdir | --docdir | --docdi | --doc | --do) |
|
1049 ac_prev=docdir ;; |
|
1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
1051 docdir=$ac_optarg ;; |
|
1052 |
|
1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
1054 ac_prev=dvidir ;; |
|
1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
1056 dvidir=$ac_optarg ;; |
|
1057 |
|
1058 -enable-* | --enable-*) |
|
1059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|
1060 # Reject names that are not valid shell variable names. |
|
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1062 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
|
1063 { (exit 1); exit 1; }; } |
|
1064 ac_useropt_orig=$ac_useropt |
|
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1066 case $ac_user_opts in |
|
1067 *" |
|
1068 "enable_$ac_useropt" |
|
1069 "*) ;; |
|
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|
1071 ac_unrecognized_sep=', ';; |
|
1072 esac |
|
1073 eval enable_$ac_useropt=\$ac_optarg ;; |
|
1074 |
|
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
1077 | --exec | --exe | --ex) |
|
1078 ac_prev=exec_prefix ;; |
|
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
1081 | --exec=* | --exe=* | --ex=*) |
|
1082 exec_prefix=$ac_optarg ;; |
|
1083 |
|
1084 -gas | --gas | --ga | --g) |
|
1085 # Obsolete; use --with-gas. |
|
1086 with_gas=yes ;; |
|
1087 |
|
1088 -help | --help | --hel | --he | -h) |
|
1089 ac_init_help=long ;; |
|
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
1091 ac_init_help=recursive ;; |
|
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
1093 ac_init_help=short ;; |
|
1094 |
|
1095 -host | --host | --hos | --ho) |
|
1096 ac_prev=host_alias ;; |
|
1097 -host=* | --host=* | --hos=* | --ho=*) |
|
1098 host_alias=$ac_optarg ;; |
|
1099 |
|
1100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|
1101 ac_prev=htmldir ;; |
|
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
1103 | --ht=*) |
|
1104 htmldir=$ac_optarg ;; |
|
1105 |
|
1106 -includedir | --includedir | --includedi | --included | --include \ |
|
1107 | --includ | --inclu | --incl | --inc) |
|
1108 ac_prev=includedir ;; |
|
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
1110 | --includ=* | --inclu=* | --incl=* | --inc=*) |
|
1111 includedir=$ac_optarg ;; |
|
1112 |
|
1113 -infodir | --infodir | --infodi | --infod | --info | --inf) |
|
1114 ac_prev=infodir ;; |
|
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
1116 infodir=$ac_optarg ;; |
|
1117 |
|
1118 -libdir | --libdir | --libdi | --libd) |
|
1119 ac_prev=libdir ;; |
|
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
1121 libdir=$ac_optarg ;; |
|
1122 |
|
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
1124 | --libexe | --libex | --libe) |
|
1125 ac_prev=libexecdir ;; |
|
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
1127 | --libexe=* | --libex=* | --libe=*) |
|
1128 libexecdir=$ac_optarg ;; |
|
1129 |
|
1130 -localedir | --localedir | --localedi | --localed | --locale) |
|
1131 ac_prev=localedir ;; |
|
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
1133 localedir=$ac_optarg ;; |
|
1134 |
|
1135 -localstatedir | --localstatedir | --localstatedi | --localstated \ |
|
1136 | --localstate | --localstat | --localsta | --localst | --locals) |
|
1137 ac_prev=localstatedir ;; |
|
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
1139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
|
1140 localstatedir=$ac_optarg ;; |
|
1141 |
|
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
1143 ac_prev=mandir ;; |
|
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
1145 mandir=$ac_optarg ;; |
|
1146 |
|
1147 -nfp | --nfp | --nf) |
|
1148 # Obsolete; use --without-fp. |
|
1149 with_fp=no ;; |
|
1150 |
|
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
1152 | --no-cr | --no-c | -n) |
|
1153 no_create=yes ;; |
|
1154 |
|
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
1157 no_recursion=yes ;; |
|
1158 |
|
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
1161 | --oldin | --oldi | --old | --ol | --o) |
|
1162 ac_prev=oldincludedir ;; |
|
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
1166 oldincludedir=$ac_optarg ;; |
|
1167 |
|
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
1169 ac_prev=prefix ;; |
|
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
1171 prefix=$ac_optarg ;; |
|
1172 |
|
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
1174 | --program-pre | --program-pr | --program-p) |
|
1175 ac_prev=program_prefix ;; |
|
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
1178 program_prefix=$ac_optarg ;; |
|
1179 |
|
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
1181 | --program-suf | --program-su | --program-s) |
|
1182 ac_prev=program_suffix ;; |
|
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
1185 program_suffix=$ac_optarg ;; |
|
1186 |
|
1187 -program-transform-name | --program-transform-name \ |
|
1188 | --program-transform-nam | --program-transform-na \ |
|
1189 | --program-transform-n | --program-transform- \ |
|
1190 | --program-transform | --program-transfor \ |
|
1191 | --program-transfo | --program-transf \ |
|
1192 | --program-trans | --program-tran \ |
|
1193 | --progr-tra | --program-tr | --program-t) |
|
1194 ac_prev=program_transform_name ;; |
|
1195 -program-transform-name=* | --program-transform-name=* \ |
|
1196 | --program-transform-nam=* | --program-transform-na=* \ |
|
1197 | --program-transform-n=* | --program-transform-=* \ |
|
1198 | --program-transform=* | --program-transfor=* \ |
|
1199 | --program-transfo=* | --program-transf=* \ |
|
1200 | --program-trans=* | --program-tran=* \ |
|
1201 | --progr-tra=* | --program-tr=* | --program-t=*) |
|
1202 program_transform_name=$ac_optarg ;; |
|
1203 |
|
1204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|
1205 ac_prev=pdfdir ;; |
|
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
1207 pdfdir=$ac_optarg ;; |
|
1208 |
|
1209 -psdir | --psdir | --psdi | --psd | --ps) |
|
1210 ac_prev=psdir ;; |
|
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
1212 psdir=$ac_optarg ;; |
|
1213 |
|
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1215 | -silent | --silent | --silen | --sile | --sil) |
|
1216 silent=yes ;; |
|
1217 |
|
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
1219 ac_prev=sbindir ;; |
|
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
1221 | --sbi=* | --sb=*) |
|
1222 sbindir=$ac_optarg ;; |
|
1223 |
|
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
1226 | --sharedst | --shareds | --shared | --share | --shar \ |
|
1227 | --sha | --sh) |
|
1228 ac_prev=sharedstatedir ;; |
|
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
1232 | --sha=* | --sh=*) |
|
1233 sharedstatedir=$ac_optarg ;; |
|
1234 |
|
1235 -site | --site | --sit) |
|
1236 ac_prev=site ;; |
|
1237 -site=* | --site=* | --sit=*) |
|
1238 site=$ac_optarg ;; |
|
1239 |
|
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
1241 ac_prev=srcdir ;; |
|
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
1243 srcdir=$ac_optarg ;; |
|
1244 |
|
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
1246 | --syscon | --sysco | --sysc | --sys | --sy) |
|
1247 ac_prev=sysconfdir ;; |
|
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
1250 sysconfdir=$ac_optarg ;; |
|
1251 |
|
1252 -target | --target | --targe | --targ | --tar | --ta | --t) |
|
1253 ac_prev=target_alias ;; |
|
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
1255 target_alias=$ac_optarg ;; |
|
1256 |
|
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
1258 verbose=yes ;; |
|
1259 |
|
1260 -version | --version | --versio | --versi | --vers | -V) |
|
1261 ac_init_version=: ;; |
|
1262 |
|
1263 -with-* | --with-*) |
|
1264 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|
1265 # Reject names that are not valid shell variable names. |
|
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1267 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
|
1268 { (exit 1); exit 1; }; } |
|
1269 ac_useropt_orig=$ac_useropt |
|
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1271 case $ac_user_opts in |
|
1272 *" |
|
1273 "with_$ac_useropt" |
|
1274 "*) ;; |
|
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|
1276 ac_unrecognized_sep=', ';; |
|
1277 esac |
|
1278 eval with_$ac_useropt=\$ac_optarg ;; |
|
1279 |
|
1280 -without-* | --without-*) |
|
1281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|
1282 # Reject names that are not valid shell variable names. |
|
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1284 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
|
1285 { (exit 1); exit 1; }; } |
|
1286 ac_useropt_orig=$ac_useropt |
|
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1288 case $ac_user_opts in |
|
1289 *" |
|
1290 "with_$ac_useropt" |
|
1291 "*) ;; |
|
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|
1293 ac_unrecognized_sep=', ';; |
|
1294 esac |
|
1295 eval with_$ac_useropt=no ;; |
|
1296 |
|
1297 --x) |
|
1298 # Obsolete; use --with-x. |
|
1299 with_x=yes ;; |
|
1300 |
|
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
1302 | --x-incl | --x-inc | --x-in | --x-i) |
|
1303 ac_prev=x_includes ;; |
|
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
1306 x_includes=$ac_optarg ;; |
|
1307 |
|
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
1310 ac_prev=x_libraries ;; |
|
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
1313 x_libraries=$ac_optarg ;; |
|
1314 |
|
1315 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
|
1316 Try \`$0 --help' for more information." >&2 |
|
1317 { (exit 1); exit 1; }; } |
|
1318 ;; |
|
1319 |
|
1320 *=*) |
|
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
1322 # Reject names that are not valid shell variable names. |
|
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
|
1324 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
|
1325 { (exit 1); exit 1; }; } |
|
1326 eval $ac_envvar=\$ac_optarg |
|
1327 export $ac_envvar ;; |
|
1328 |
|
1329 *) |
|
1330 # FIXME: should be removed in autoconf 3.0. |
|
1331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
|
1335 ;; |
|
1336 |
|
1337 esac |
|
1338 done |
|
1339 |
|
1340 if test -n "$ac_prev"; then |
|
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
1342 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
|
1343 { (exit 1); exit 1; }; } |
|
1344 fi |
|
1345 |
|
1346 if test -n "$ac_unrecognized_opts"; then |
|
1347 case $enable_option_checking in |
|
1348 no) ;; |
|
1349 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
|
1350 { (exit 1); exit 1; }; } ;; |
|
1351 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
|
1352 esac |
|
1353 fi |
|
1354 |
|
1355 # Check all directory arguments for consistency. |
|
1356 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|
1357 datadir sysconfdir sharedstatedir localstatedir includedir \ |
|
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|
1359 libdir localedir mandir |
|
1360 do |
|
1361 eval ac_val=\$$ac_var |
|
1362 # Remove trailing slashes. |
|
1363 case $ac_val in |
|
1364 */ ) |
|
1365 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
|
1366 eval $ac_var=\$ac_val;; |
|
1367 esac |
|
1368 # Be sure to have absolute directory names. |
|
1369 case $ac_val in |
|
1370 [\\/$]* | ?:[\\/]* ) continue;; |
|
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|
1372 esac |
|
1373 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
|
1374 { (exit 1); exit 1; }; } |
|
1375 done |
|
1376 |
|
1377 # There might be people who depend on the old broken behavior: `$host' |
|
1378 # used to hold the argument of --host etc. |
|
1379 # FIXME: To remove some day. |
|
1380 build=$build_alias |
|
1381 host=$host_alias |
|
1382 target=$target_alias |
|
1383 |
|
1384 # FIXME: To remove some day. |
|
1385 if test "x$host_alias" != x; then |
|
1386 if test "x$build_alias" = x; then |
|
1387 cross_compiling=maybe |
|
1388 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|
1389 If a cross compiler is detected then cross compile mode will be used." >&2 |
|
1390 elif test "x$build_alias" != "x$host_alias"; then |
|
1391 cross_compiling=yes |
|
1392 fi |
|
1393 fi |
|
1394 |
|
1395 ac_tool_prefix= |
|
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
1397 |
|
1398 test "$silent" = yes && exec 6>/dev/null |
|
1399 |
|
1400 |
|
1401 ac_pwd=`pwd` && test -n "$ac_pwd" && |
|
1402 ac_ls_di=`ls -di .` && |
|
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
1404 { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
|
1405 { (exit 1); exit 1; }; } |
|
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
1407 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
|
1408 { (exit 1); exit 1; }; } |
|
1409 |
|
1410 |
|
1411 # Find the source files, if location was not specified. |
|
1412 if test -z "$srcdir"; then |
|
1413 ac_srcdir_defaulted=yes |
|
1414 # Try the directory containing this script, then the parent directory. |
|
1415 ac_confdir=`$as_dirname -- "$as_myself" || |
|
1416 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
1417 X"$as_myself" : 'X\(//\)[^/]' \| \ |
|
1418 X"$as_myself" : 'X\(//\)$' \| \ |
|
1419 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
|
1420 $as_echo X"$as_myself" | |
|
1421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
1422 s//\1/ |
|
1423 q |
|
1424 } |
|
1425 /^X\(\/\/\)[^/].*/{ |
|
1426 s//\1/ |
|
1427 q |
|
1428 } |
|
1429 /^X\(\/\/\)$/{ |
|
1430 s//\1/ |
|
1431 q |
|
1432 } |
|
1433 /^X\(\/\).*/{ |
|
1434 s//\1/ |
|
1435 q |
|
1436 } |
|
1437 s/.*/./; q'` |
|
1438 srcdir=$ac_confdir |
|
1439 if test ! -r "$srcdir/$ac_unique_file"; then |
|
1440 srcdir=.. |
|
1441 fi |
|
1442 else |
|
1443 ac_srcdir_defaulted=no |
|
1444 fi |
|
1445 if test ! -r "$srcdir/$ac_unique_file"; then |
|
1446 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|
1447 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
|
1448 { (exit 1); exit 1; }; } |
|
1449 fi |
|
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
1451 ac_abs_confdir=`( |
|
1452 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
|
1453 { (exit 1); exit 1; }; } |
|
1454 pwd)` |
|
1455 # When building in place, set srcdir=. |
|
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
1457 srcdir=. |
|
1458 fi |
|
1459 # Remove unnecessary trailing slashes from srcdir. |
|
1460 # Double slashes in file names in object file debugging info |
|
1461 # mess up M-x gdb in Emacs. |
|
1462 case $srcdir in |
|
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|
1464 esac |
|
1465 for ac_var in $ac_precious_vars; do |
|
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|
1467 eval ac_env_${ac_var}_value=\$${ac_var} |
|
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|
1470 done |
|
1471 |
|
1472 # |
|
1473 # Report the --help message. |
|
1474 # |
|
1475 if test "$ac_init_help" = "long"; then |
|
1476 # Omit some internal or obsolete options to make the list less imposing. |
|
1477 # This message is too long to be a string in the A/UX 3.1 sh. |
|
1478 cat <<_ACEOF |
|
1479 \`configure' configures this package to adapt to many kinds of systems. |
|
1480 |
|
1481 Usage: $0 [OPTION]... [VAR=VALUE]... |
|
1482 |
|
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
1484 VAR=VALUE. See below for descriptions of some of the useful variables. |
|
1485 |
|
1486 Defaults for the options are specified in brackets. |
|
1487 |
|
1488 Configuration: |
|
1489 -h, --help display this help and exit |
|
1490 --help=short display options specific to this package |
|
1491 --help=recursive display the short help of all the included packages |
|
1492 -V, --version display version information and exit |
|
1493 -q, --quiet, --silent do not print \`checking...' messages |
|
1494 --cache-file=FILE cache test results in FILE [disabled] |
|
1495 -C, --config-cache alias for \`--cache-file=config.cache' |
|
1496 -n, --no-create do not create output files |
|
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
1498 |
|
1499 Installation directories: |
|
1500 --prefix=PREFIX install architecture-independent files in PREFIX |
|
1501 [$ac_default_prefix] |
|
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
1503 [PREFIX] |
|
1504 |
|
1505 By default, \`make install' will install all the files in |
|
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
1508 for instance \`--prefix=\$HOME'. |
|
1509 |
|
1510 For better control, use the options below. |
|
1511 |
|
1512 Fine tuning of the installation directories: |
|
1513 --bindir=DIR user executables [EPREFIX/bin] |
|
1514 --sbindir=DIR system admin executables [EPREFIX/sbin] |
|
1515 --libexecdir=DIR program executables [EPREFIX/libexec] |
|
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
1519 --libdir=DIR object code libraries [EPREFIX/lib] |
|
1520 --includedir=DIR C header files [PREFIX/include] |
|
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|
1524 --infodir=DIR info documentation [DATAROOTDIR/info] |
|
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|
1526 --mandir=DIR man documentation [DATAROOTDIR/man] |
|
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
|
1528 --htmldir=DIR html documentation [DOCDIR] |
|
1529 --dvidir=DIR dvi documentation [DOCDIR] |
|
1530 --pdfdir=DIR pdf documentation [DOCDIR] |
|
1531 --psdir=DIR ps documentation [DOCDIR] |
|
1532 _ACEOF |
|
1533 |
|
1534 cat <<\_ACEOF |
|
1535 |
|
1536 Program names: |
|
1537 --program-prefix=PREFIX prepend PREFIX to installed program names |
|
1538 --program-suffix=SUFFIX append SUFFIX to installed program names |
|
1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
|
1540 |
|
1541 System types: |
|
1542 --build=BUILD configure for building on BUILD [guessed] |
|
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
1544 _ACEOF |
|
1545 fi |
|
1546 |
|
1547 if test -n "$ac_init_help"; then |
|
1548 |
|
1549 cat <<\_ACEOF |
|
1550 |
|
1551 Optional Features: |
|
1552 --disable-option-checking ignore unrecognized --enable/--with options |
|
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
1555 --enable-maintainer-mode enable make rules and dependencies not useful |
|
1556 (and sometimes confusing) to the casual installer |
|
1557 --disable-dependency-tracking speeds up one-time build |
|
1558 --enable-dependency-tracking do not reject slow dependency extractors |
|
1559 --enable-static[=PKGS] build static libraries [default=no] |
|
1560 --enable-shared[=PKGS] build shared libraries [default=yes] |
|
1561 --enable-fast-install[=PKGS] |
|
1562 optimize for fast installation [default=yes] |
|
1563 --disable-libtool-lock avoid locking (might break parallel builds) |
|
1564 |
|
1565 Optional Packages: |
|
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
1568 --with-pic try to use only PIC/non-PIC objects [default=use |
|
1569 both] |
|
1570 --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
|
1571 |
|
1572 Some influential environment variables: |
|
1573 CC C compiler command |
|
1574 CFLAGS C compiler flags |
|
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
1576 nonstandard directory <lib dir> |
|
1577 LIBS libraries to pass to the linker, e.g. -l<library> |
|
1578 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
|
1579 you have headers in a nonstandard directory <include dir> |
|
1580 CPP C preprocessor |
|
1581 PKG_CONFIG path to pkg-config utility |
|
1582 ALL_CFLAGS C compiler flags for ALL, overriding pkg-config |
|
1583 ALL_LIBS linker flags for ALL, overriding pkg-config |
|
1584 |
|
1585 Use these variables to override the choices made by `configure' or to help |
|
1586 it to find libraries and programs with nonstandard names/locations. |
|
1587 |
|
1588 _ACEOF |
|
1589 ac_status=$? |
|
1590 fi |
|
1591 |
|
1592 if test "$ac_init_help" = "recursive"; then |
|
1593 # If there are subdirs, report their specific --help. |
|
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
1595 test -d "$ac_dir" || |
|
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|
1597 continue |
|
1598 ac_builddir=. |
|
1599 |
|
1600 case "$ac_dir" in |
|
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1602 *) |
|
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|
1604 # A ".." for each directory in $ac_dir_suffix. |
|
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
1606 case $ac_top_builddir_sub in |
|
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
1609 esac ;; |
|
1610 esac |
|
1611 ac_abs_top_builddir=$ac_pwd |
|
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
1613 # for backward compatibility: |
|
1614 ac_top_builddir=$ac_top_build_prefix |
|
1615 |
|
1616 case $srcdir in |
|
1617 .) # We are building in place. |
|
1618 ac_srcdir=. |
|
1619 ac_top_srcdir=$ac_top_builddir_sub |
|
1620 ac_abs_top_srcdir=$ac_pwd ;; |
|
1621 [\\/]* | ?:[\\/]* ) # Absolute name. |
|
1622 ac_srcdir=$srcdir$ac_dir_suffix; |
|
1623 ac_top_srcdir=$srcdir |
|
1624 ac_abs_top_srcdir=$srcdir ;; |
|
1625 *) # Relative name. |
|
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
1629 esac |
|
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
1631 |
|
1632 cd "$ac_dir" || { ac_status=$?; continue; } |
|
1633 # Check for guested configure. |
|
1634 if test -f "$ac_srcdir/configure.gnu"; then |
|
1635 echo && |
|
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|
1637 elif test -f "$ac_srcdir/configure"; then |
|
1638 echo && |
|
1639 $SHELL "$ac_srcdir/configure" --help=recursive |
|
1640 else |
|
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
1642 fi || ac_status=$? |
|
1643 cd "$ac_pwd" || { ac_status=$?; break; } |
|
1644 done |
|
1645 fi |
|
1646 |
|
1647 test -n "$ac_init_help" && exit $ac_status |
|
1648 if $ac_init_version; then |
|
1649 cat <<\_ACEOF |
|
1650 configure |
|
1651 generated by GNU Autoconf 2.63 |
|
1652 |
|
1653 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
|
1654 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
|
1655 This configure script is free software; the Free Software Foundation |
|
1656 gives unlimited permission to copy, distribute and modify it. |
|
1657 _ACEOF |
|
1658 exit |
|
1659 fi |
|
1660 cat >config.log <<_ACEOF |
|
1661 This file contains any messages produced by compilers while |
|
1662 running configure, to aid debugging if configure makes a mistake. |
|
1663 |
|
1664 It was created by $as_me, which was |
|
1665 generated by GNU Autoconf 2.63. Invocation command line was |
|
1666 |
|
1667 $ $0 $@ |
|
1668 |
|
1669 _ACEOF |
|
1670 exec 5>>config.log |
|
1671 { |
|
1672 cat <<_ASUNAME |
|
1673 ## --------- ## |
|
1674 ## Platform. ## |
|
1675 ## --------- ## |
|
1676 |
|
1677 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
1678 uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
1679 uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
1680 uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
1681 uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
1682 |
|
1683 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
1684 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
1685 |
|
1686 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
1687 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
1688 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
1689 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
|
1690 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|
1691 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
1692 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
1693 |
|
1694 _ASUNAME |
|
1695 |
|
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1697 for as_dir in $PATH |
|
1698 do |
|
1699 IFS=$as_save_IFS |
|
1700 test -z "$as_dir" && as_dir=. |
|
1701 $as_echo "PATH: $as_dir" |
|
1702 done |
|
1703 IFS=$as_save_IFS |
|
1704 |
|
1705 } >&5 |
|
1706 |
|
1707 cat >&5 <<_ACEOF |
|
1708 |
|
1709 |
|
1710 ## ----------- ## |
|
1711 ## Core tests. ## |
|
1712 ## ----------- ## |
|
1713 |
|
1714 _ACEOF |
|
1715 |
|
1716 |
|
1717 # Keep a trace of the command line. |
|
1718 # Strip out --no-create and --no-recursion so they do not pile up. |
|
1719 # Strip out --silent because we don't want to record it for future runs. |
|
1720 # Also quote any args containing shell meta-characters. |
|
1721 # Make two passes to allow for proper duplicate-argument suppression. |
|
1722 ac_configure_args= |
|
1723 ac_configure_args0= |
|
1724 ac_configure_args1= |
|
1725 ac_must_keep_next=false |
|
1726 for ac_pass in 1 2 |
|
1727 do |
|
1728 for ac_arg |
|
1729 do |
|
1730 case $ac_arg in |
|
1731 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
1732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1733 | -silent | --silent | --silen | --sile | --sil) |
|
1734 continue ;; |
|
1735 *\'*) |
|
1736 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
1737 esac |
|
1738 case $ac_pass in |
|
1739 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
|
1740 2) |
|
1741 ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
|
1742 if test $ac_must_keep_next = true; then |
|
1743 ac_must_keep_next=false # Got value, back to normal. |
|
1744 else |
|
1745 case $ac_arg in |
|
1746 *=* | --config-cache | -C | -disable-* | --disable-* \ |
|
1747 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
1748 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
1749 | -with-* | --with-* | -without-* | --without-* | --x) |
|
1750 case "$ac_configure_args0 " in |
|
1751 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
1752 esac |
|
1753 ;; |
|
1754 -* ) ac_must_keep_next=true ;; |
|
1755 esac |
|
1756 fi |
|
1757 ac_configure_args="$ac_configure_args '$ac_arg'" |
|
1758 ;; |
|
1759 esac |
|
1760 done |
|
1761 done |
|
1762 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
|
1763 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
|
1764 |
|
1765 # When interrupted or exit'd, cleanup temporary files, and complete |
|
1766 # config.log. We remove comments because anyway the quotes in there |
|
1767 # would cause problems or look ugly. |
|
1768 # WARNING: Use '\'' to represent an apostrophe within the trap. |
|
1769 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|
1770 trap 'exit_status=$? |
|
1771 # Save into config.log some information that might help in debugging. |
|
1772 { |
|
1773 echo |
|
1774 |
|
1775 cat <<\_ASBOX |
|
1776 ## ---------------- ## |
|
1777 ## Cache variables. ## |
|
1778 ## ---------------- ## |
|
1779 _ASBOX |
|
1780 echo |
|
1781 # The following way of writing the cache mishandles newlines in values, |
|
1782 ( |
|
1783 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
1784 eval ac_val=\$$ac_var |
|
1785 case $ac_val in #( |
|
1786 *${as_nl}*) |
|
1787 case $ac_var in #( |
|
1788 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
|
1789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
1790 esac |
|
1791 case $ac_var in #( |
|
1792 _ | IFS | as_nl) ;; #( |
|
1793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
1794 *) $as_unset $ac_var ;; |
|
1795 esac ;; |
|
1796 esac |
|
1797 done |
|
1798 (set) 2>&1 | |
|
1799 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
|
1800 *${as_nl}ac_space=\ *) |
|
1801 sed -n \ |
|
1802 "s/'\''/'\''\\\\'\'''\''/g; |
|
1803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
1804 ;; #( |
|
1805 *) |
|
1806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
1807 ;; |
|
1808 esac | |
|
1809 sort |
|
1810 ) |
|
1811 echo |
|
1812 |
|
1813 cat <<\_ASBOX |
|
1814 ## ----------------- ## |
|
1815 ## Output variables. ## |
|
1816 ## ----------------- ## |
|
1817 _ASBOX |
|
1818 echo |
|
1819 for ac_var in $ac_subst_vars |
|
1820 do |
|
1821 eval ac_val=\$$ac_var |
|
1822 case $ac_val in |
|
1823 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
1824 esac |
|
1825 $as_echo "$ac_var='\''$ac_val'\''" |
|
1826 done | sort |
|
1827 echo |
|
1828 |
|
1829 if test -n "$ac_subst_files"; then |
|
1830 cat <<\_ASBOX |
|
1831 ## ------------------- ## |
|
1832 ## File substitutions. ## |
|
1833 ## ------------------- ## |
|
1834 _ASBOX |
|
1835 echo |
|
1836 for ac_var in $ac_subst_files |
|
1837 do |
|
1838 eval ac_val=\$$ac_var |
|
1839 case $ac_val in |
|
1840 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
1841 esac |
|
1842 $as_echo "$ac_var='\''$ac_val'\''" |
|
1843 done | sort |
|
1844 echo |
|
1845 fi |
|
1846 |
|
1847 if test -s confdefs.h; then |
|
1848 cat <<\_ASBOX |
|
1849 ## ----------- ## |
|
1850 ## confdefs.h. ## |
|
1851 ## ----------- ## |
|
1852 _ASBOX |
|
1853 echo |
|
1854 cat confdefs.h |
|
1855 echo |
|
1856 fi |
|
1857 test "$ac_signal" != 0 && |
|
1858 $as_echo "$as_me: caught signal $ac_signal" |
|
1859 $as_echo "$as_me: exit $exit_status" |
|
1860 } >&5 |
|
1861 rm -f core *.core core.conftest.* && |
|
1862 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|
1863 exit $exit_status |
|
1864 ' 0 |
|
1865 for ac_signal in 1 2 13 15; do |
|
1866 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
|
1867 done |
|
1868 ac_signal=0 |
|
1869 |
|
1870 # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
1871 rm -f -r conftest* confdefs.h |
|
1872 |
|
1873 # Predefined preprocessor variables. |
|
1874 |
|
1875 cat >>confdefs.h <<_ACEOF |
|
1876 #define PACKAGE_NAME "$PACKAGE_NAME" |
|
1877 _ACEOF |
|
1878 |
|
1879 |
|
1880 cat >>confdefs.h <<_ACEOF |
|
1881 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
1882 _ACEOF |
|
1883 |
|
1884 |
|
1885 cat >>confdefs.h <<_ACEOF |
|
1886 #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
1887 _ACEOF |
|
1888 |
|
1889 |
|
1890 cat >>confdefs.h <<_ACEOF |
|
1891 #define PACKAGE_STRING "$PACKAGE_STRING" |
|
1892 _ACEOF |
|
1893 |
|
1894 |
|
1895 cat >>confdefs.h <<_ACEOF |
|
1896 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
1897 _ACEOF |
|
1898 |
|
1899 |
|
1900 # Let the site file select an alternate cache file if it wants to. |
|
1901 # Prefer an explicitly selected file to automatically selected ones. |
|
1902 ac_site_file1=NONE |
|
1903 ac_site_file2=NONE |
|
1904 if test -n "$CONFIG_SITE"; then |
|
1905 ac_site_file1=$CONFIG_SITE |
|
1906 elif test "x$prefix" != xNONE; then |
|
1907 ac_site_file1=$prefix/share/config.site |
|
1908 ac_site_file2=$prefix/etc/config.site |
|
1909 else |
|
1910 ac_site_file1=$ac_default_prefix/share/config.site |
|
1911 ac_site_file2=$ac_default_prefix/etc/config.site |
|
1912 fi |
|
1913 for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
|
1914 do |
|
1915 test "x$ac_site_file" = xNONE && continue |
|
1916 if test -r "$ac_site_file"; then |
|
1917 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
|
1918 $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
|
1919 sed 's/^/| /' "$ac_site_file" >&5 |
|
1920 . "$ac_site_file" |
|
1921 fi |
|
1922 done |
|
1923 |
|
1924 if test -r "$cache_file"; then |
|
1925 # Some versions of bash will fail to source /dev/null (special |
|
1926 # files actually), so we avoid doing that. |
|
1927 if test -f "$cache_file"; then |
|
1928 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
|
1929 $as_echo "$as_me: loading cache $cache_file" >&6;} |
|
1930 case $cache_file in |
|
1931 [\\/]* | ?:[\\/]* ) . "$cache_file";; |
|
1932 *) . "./$cache_file";; |
|
1933 esac |
|
1934 fi |
|
1935 else |
|
1936 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
|
1937 $as_echo "$as_me: creating cache $cache_file" >&6;} |
|
1938 >$cache_file |
|
1939 fi |
|
1940 |
|
1941 # Check that the precious variables saved in the cache have kept the same |
|
1942 # value. |
|
1943 ac_cache_corrupted=false |
|
1944 for ac_var in $ac_precious_vars; do |
|
1945 eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
1946 eval ac_new_set=\$ac_env_${ac_var}_set |
|
1947 eval ac_old_val=\$ac_cv_env_${ac_var}_value |
|
1948 eval ac_new_val=\$ac_env_${ac_var}_value |
|
1949 case $ac_old_set,$ac_new_set in |
|
1950 set,) |
|
1951 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
1952 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
1953 ac_cache_corrupted=: ;; |
|
1954 ,set) |
|
1955 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
|
1956 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
1957 ac_cache_corrupted=: ;; |
|
1958 ,);; |
|
1959 *) |
|
1960 if test "x$ac_old_val" != "x$ac_new_val"; then |
|
1961 # differences in whitespace do not lead to failure. |
|
1962 ac_old_val_w=`echo x $ac_old_val` |
|
1963 ac_new_val_w=`echo x $ac_new_val` |
|
1964 if test "$ac_old_val_w" != "$ac_new_val_w"; then |
|
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
|
1966 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
1967 ac_cache_corrupted=: |
|
1968 else |
|
1969 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|
1970 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|
1971 eval $ac_var=\$ac_old_val |
|
1972 fi |
|
1973 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
|
1974 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
|
1975 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
|
1976 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
|
1977 fi;; |
|
1978 esac |
|
1979 # Pass precious variables to config.status. |
|
1980 if test "$ac_new_set" = set; then |
|
1981 case $ac_new_val in |
|
1982 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
1983 *) ac_arg=$ac_var=$ac_new_val ;; |
|
1984 esac |
|
1985 case " $ac_configure_args " in |
|
1986 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
1987 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|
1988 esac |
|
1989 fi |
|
1990 done |
|
1991 if $ac_cache_corrupted; then |
|
1992 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
|
1993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
1994 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
|
1995 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
1996 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
|
1997 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
|
1998 { (exit 1); exit 1; }; } |
|
1999 fi |
|
2000 |
|
2001 |
|
2002 |
|
2003 |
|
2004 |
|
2005 |
|
2006 |
|
2007 |
|
2008 |
|
2009 |
|
2010 |
|
2011 |
|
2012 |
|
2013 |
|
2014 |
|
2015 |
|
2016 |
|
2017 ac_ext=c |
|
2018 ac_cpp='$CPP $CPPFLAGS' |
|
2019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2021 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2022 |
|
2023 |
|
2024 |
|
2025 |
|
2026 NSS_REQUIRED=3.12.3 |
|
2027 |
|
2028 |
|
2029 am__api_version='1.10' |
|
2030 |
|
2031 ac_aux_dir= |
|
2032 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
|
2033 if test -f "$ac_dir/install-sh"; then |
|
2034 ac_aux_dir=$ac_dir |
|
2035 ac_install_sh="$ac_aux_dir/install-sh -c" |
|
2036 break |
|
2037 elif test -f "$ac_dir/install.sh"; then |
|
2038 ac_aux_dir=$ac_dir |
|
2039 ac_install_sh="$ac_aux_dir/install.sh -c" |
|
2040 break |
|
2041 elif test -f "$ac_dir/shtool"; then |
|
2042 ac_aux_dir=$ac_dir |
|
2043 ac_install_sh="$ac_aux_dir/shtool install -c" |
|
2044 break |
|
2045 fi |
|
2046 done |
|
2047 if test -z "$ac_aux_dir"; then |
|
2048 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
|
2049 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
|
2050 { (exit 1); exit 1; }; } |
|
2051 fi |
|
2052 |
|
2053 # These three variables are undocumented and unsupported, |
|
2054 # and are intended to be withdrawn in a future Autoconf release. |
|
2055 # They can cause serious problems if a builder's source tree is in a directory |
|
2056 # whose full name contains unusual characters. |
|
2057 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|
2058 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|
2059 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|
2060 |
|
2061 |
|
2062 # Find a good install program. We prefer a C program (faster), |
|
2063 # so one script is as good as another. But avoid the broken or |
|
2064 # incompatible versions: |
|
2065 # SysV /etc/install, /usr/sbin/install |
|
2066 # SunOS /usr/etc/install |
|
2067 # IRIX /sbin/install |
|
2068 # AIX /bin/install |
|
2069 # AmigaOS /C/install, which installs bootblocks on floppy discs |
|
2070 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
2071 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
2072 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
2073 # OS/2's system install, which has a completely different semantic |
|
2074 # ./install, which can be erroneously created by make from ./install.sh. |
|
2075 # Reject install programs that cannot install multiple files. |
|
2076 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
|
2077 $as_echo_n "checking for a BSD-compatible install... " >&6; } |
|
2078 if test -z "$INSTALL"; then |
|
2079 if test "${ac_cv_path_install+set}" = set; then |
|
2080 $as_echo_n "(cached) " >&6 |
|
2081 else |
|
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2083 for as_dir in $PATH |
|
2084 do |
|
2085 IFS=$as_save_IFS |
|
2086 test -z "$as_dir" && as_dir=. |
|
2087 # Account for people who put trailing slashes in PATH elements. |
|
2088 case $as_dir/ in |
|
2089 ./ | .// | /cC/* | \ |
|
2090 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|
2091 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
|
2092 /usr/ucb/* ) ;; |
|
2093 *) |
|
2094 # OSF1 and SCO ODT 3.0 have their own names for install. |
|
2095 # Don't use installbsd from OSF since it installs stuff as root |
|
2096 # by default. |
|
2097 for ac_prog in ginstall scoinst install; do |
|
2098 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2099 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
|
2100 if test $ac_prog = install && |
|
2101 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
2102 # AIX install. It has an incompatible calling convention. |
|
2103 : |
|
2104 elif test $ac_prog = install && |
|
2105 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
2106 # program-specific install script used by HP pwplus--don't use. |
|
2107 : |
|
2108 else |
|
2109 rm -rf conftest.one conftest.two conftest.dir |
|
2110 echo one > conftest.one |
|
2111 echo two > conftest.two |
|
2112 mkdir conftest.dir |
|
2113 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
|
2114 test -s conftest.one && test -s conftest.two && |
|
2115 test -s conftest.dir/conftest.one && |
|
2116 test -s conftest.dir/conftest.two |
|
2117 then |
|
2118 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|
2119 break 3 |
|
2120 fi |
|
2121 fi |
|
2122 fi |
|
2123 done |
|
2124 done |
|
2125 ;; |
|
2126 esac |
|
2127 |
|
2128 done |
|
2129 IFS=$as_save_IFS |
|
2130 |
|
2131 rm -rf conftest.one conftest.two conftest.dir |
|
2132 |
|
2133 fi |
|
2134 if test "${ac_cv_path_install+set}" = set; then |
|
2135 INSTALL=$ac_cv_path_install |
|
2136 else |
|
2137 # As a last resort, use the slow shell script. Don't cache a |
|
2138 # value for INSTALL within a source directory, because that will |
|
2139 # break other packages using the cache if that directory is |
|
2140 # removed, or if the value is a relative name. |
|
2141 INSTALL=$ac_install_sh |
|
2142 fi |
|
2143 fi |
|
2144 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
|
2145 $as_echo "$INSTALL" >&6; } |
|
2146 |
|
2147 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
2148 # It thinks the first close brace ends the variable substitution. |
|
2149 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
2150 |
|
2151 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|
2152 |
|
2153 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
2154 |
|
2155 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
|
2156 $as_echo_n "checking whether build environment is sane... " >&6; } |
|
2157 # Just in case |
|
2158 sleep 1 |
|
2159 echo timestamp > conftest.file |
|
2160 # Do `set' in a subshell so we don't clobber the current shell's |
|
2161 # arguments. Must try -L first in case configure is actually a |
|
2162 # symlink; some systems play weird games with the mod time of symlinks |
|
2163 # (eg FreeBSD returns the mod time of the symlink's containing |
|
2164 # directory). |
|
2165 if ( |
|
2166 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
|
2167 if test "$*" = "X"; then |
|
2168 # -L didn't work. |
|
2169 set X `ls -t $srcdir/configure conftest.file` |
|
2170 fi |
|
2171 rm -f conftest.file |
|
2172 if test "$*" != "X $srcdir/configure conftest.file" \ |
|
2173 && test "$*" != "X conftest.file $srcdir/configure"; then |
|
2174 |
|
2175 # If neither matched, then we have a broken ls. This can happen |
|
2176 # if, for instance, CONFIG_SHELL is bash and it inherits a |
|
2177 # broken ls alias from the environment. This has actually |
|
2178 # happened. Such a system could not be considered "sane". |
|
2179 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
|
2180 alias in your environment" >&5 |
|
2181 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
|
2182 alias in your environment" >&2;} |
|
2183 { (exit 1); exit 1; }; } |
|
2184 fi |
|
2185 |
|
2186 test "$2" = conftest.file |
|
2187 ) |
|
2188 then |
|
2189 # Ok. |
|
2190 : |
|
2191 else |
|
2192 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
|
2193 Check your system clock" >&5 |
|
2194 $as_echo "$as_me: error: newly created file is older than distributed files! |
|
2195 Check your system clock" >&2;} |
|
2196 { (exit 1); exit 1; }; } |
|
2197 fi |
|
2198 { $as_echo "$as_me:$LINENO: result: yes" >&5 |
|
2199 $as_echo "yes" >&6; } |
|
2200 test "$program_prefix" != NONE && |
|
2201 program_transform_name="s&^&$program_prefix&;$program_transform_name" |
|
2202 # Use a double $ so make ignores it. |
|
2203 test "$program_suffix" != NONE && |
|
2204 program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
|
2205 # Double any \ or $. |
|
2206 # By default was `s,x,x', remove it if useless. |
|
2207 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
|
2208 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
|
2209 |
|
2210 # expand $ac_aux_dir to an absolute path |
|
2211 am_aux_dir=`cd $ac_aux_dir && pwd` |
|
2212 |
|
2213 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
|
2214 # Use eval to expand $SHELL |
|
2215 if eval "$MISSING --run true"; then |
|
2216 am_missing_run="$MISSING --run " |
|
2217 else |
|
2218 am_missing_run= |
|
2219 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
|
2220 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
|
2221 fi |
|
2222 |
|
2223 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
|
2224 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
|
2225 if test -z "$MKDIR_P"; then |
|
2226 if test "${ac_cv_path_mkdir+set}" = set; then |
|
2227 $as_echo_n "(cached) " >&6 |
|
2228 else |
|
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2230 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
|
2231 do |
|
2232 IFS=$as_save_IFS |
|
2233 test -z "$as_dir" && as_dir=. |
|
2234 for ac_prog in mkdir gmkdir; do |
|
2235 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2236 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
|
2237 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
|
2238 'mkdir (GNU coreutils) '* | \ |
|
2239 'mkdir (coreutils) '* | \ |
|
2240 'mkdir (fileutils) '4.1*) |
|
2241 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
|
2242 break 3;; |
|
2243 esac |
|
2244 done |
|
2245 done |
|
2246 done |
|
2247 IFS=$as_save_IFS |
|
2248 |
|
2249 fi |
|
2250 |
|
2251 if test "${ac_cv_path_mkdir+set}" = set; then |
|
2252 MKDIR_P="$ac_cv_path_mkdir -p" |
|
2253 else |
|
2254 # As a last resort, use the slow shell script. Don't cache a |
|
2255 # value for MKDIR_P within a source directory, because that will |
|
2256 # break other packages using the cache if that directory is |
|
2257 # removed, or if the value is a relative name. |
|
2258 test -d ./--version && rmdir ./--version |
|
2259 MKDIR_P="$ac_install_sh -d" |
|
2260 fi |
|
2261 fi |
|
2262 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
|
2263 $as_echo "$MKDIR_P" >&6; } |
|
2264 |
|
2265 mkdir_p="$MKDIR_P" |
|
2266 case $mkdir_p in |
|
2267 [\\/$]* | ?:[\\/]*) ;; |
|
2268 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
|
2269 esac |
|
2270 |
|
2271 for ac_prog in gawk mawk nawk awk |
|
2272 do |
|
2273 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2274 set dummy $ac_prog; ac_word=$2 |
|
2275 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2276 $as_echo_n "checking for $ac_word... " >&6; } |
|
2277 if test "${ac_cv_prog_AWK+set}" = set; then |
|
2278 $as_echo_n "(cached) " >&6 |
|
2279 else |
|
2280 if test -n "$AWK"; then |
|
2281 ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
2282 else |
|
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2284 for as_dir in $PATH |
|
2285 do |
|
2286 IFS=$as_save_IFS |
|
2287 test -z "$as_dir" && as_dir=. |
|
2288 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2290 ac_cv_prog_AWK="$ac_prog" |
|
2291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2292 break 2 |
|
2293 fi |
|
2294 done |
|
2295 done |
|
2296 IFS=$as_save_IFS |
|
2297 |
|
2298 fi |
|
2299 fi |
|
2300 AWK=$ac_cv_prog_AWK |
|
2301 if test -n "$AWK"; then |
|
2302 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
|
2303 $as_echo "$AWK" >&6; } |
|
2304 else |
|
2305 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
2306 $as_echo "no" >&6; } |
|
2307 fi |
|
2308 |
|
2309 |
|
2310 test -n "$AWK" && break |
|
2311 done |
|
2312 |
|
2313 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
|
2314 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
|
2315 set x ${MAKE-make} |
|
2316 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
|
2317 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
|
2318 $as_echo_n "(cached) " >&6 |
|
2319 else |
|
2320 cat >conftest.make <<\_ACEOF |
|
2321 SHELL = /bin/sh |
|
2322 all: |
|
2323 @echo '@@@%%%=$(MAKE)=@@@%%%' |
|
2324 _ACEOF |
|
2325 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|
2326 case `${MAKE-make} -f conftest.make 2>/dev/null` in |
|
2327 *@@@%%%=?*=@@@%%%*) |
|
2328 eval ac_cv_prog_make_${ac_make}_set=yes;; |
|
2329 *) |
|
2330 eval ac_cv_prog_make_${ac_make}_set=no;; |
|
2331 esac |
|
2332 rm -f conftest.make |
|
2333 fi |
|
2334 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
|
2335 { $as_echo "$as_me:$LINENO: result: yes" >&5 |
|
2336 $as_echo "yes" >&6; } |
|
2337 SET_MAKE= |
|
2338 else |
|
2339 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
2340 $as_echo "no" >&6; } |
|
2341 SET_MAKE="MAKE=${MAKE-make}" |
|
2342 fi |
|
2343 |
|
2344 rm -rf .tst 2>/dev/null |
|
2345 mkdir .tst 2>/dev/null |
|
2346 if test -d .tst; then |
|
2347 am__leading_dot=. |
|
2348 else |
|
2349 am__leading_dot=_ |
|
2350 fi |
|
2351 rmdir .tst 2>/dev/null |
|
2352 |
|
2353 if test "`cd $srcdir && pwd`" != "`pwd`"; then |
|
2354 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
|
2355 # is not polluted with repeated "-I." |
|
2356 am__isrc=' -I$(srcdir)' |
|
2357 # test to see if srcdir already configured |
|
2358 if test -f $srcdir/config.status; then |
|
2359 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
|
2360 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
|
2361 { (exit 1); exit 1; }; } |
|
2362 fi |
|
2363 fi |
|
2364 |
|
2365 # test whether we have cygpath |
|
2366 if test -z "$CYGPATH_W"; then |
|
2367 if (cygpath --version) >/dev/null 2>/dev/null; then |
|
2368 CYGPATH_W='cygpath -w' |
|
2369 else |
|
2370 CYGPATH_W=echo |
|
2371 fi |
|
2372 fi |
|
2373 |
|
2374 |
|
2375 # Define the identity of the package. |
|
2376 PACKAGE=nss-shared-helper |
|
2377 VERSION=1.0.9 |
|
2378 |
|
2379 |
|
2380 cat >>confdefs.h <<_ACEOF |
|
2381 #define PACKAGE "$PACKAGE" |
|
2382 _ACEOF |
|
2383 |
|
2384 |
|
2385 cat >>confdefs.h <<_ACEOF |
|
2386 #define VERSION "$VERSION" |
|
2387 _ACEOF |
|
2388 |
|
2389 # Some tools Automake needs. |
|
2390 |
|
2391 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
|
2392 |
|
2393 |
|
2394 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
|
2395 |
|
2396 |
|
2397 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
|
2398 |
|
2399 |
|
2400 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
|
2401 |
|
2402 |
|
2403 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
|
2404 |
|
2405 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
|
2406 |
|
2407 # Installed binaries are usually stripped using `strip' when the user |
|
2408 # run `make install-strip'. However `strip' might not be the right |
|
2409 # tool to use in cross-compilation environments, therefore Automake |
|
2410 # will honor the `STRIP' environment variable to overrule this program. |
|
2411 if test "$cross_compiling" != no; then |
|
2412 if test -n "$ac_tool_prefix"; then |
|
2413 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
2414 set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
2415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2416 $as_echo_n "checking for $ac_word... " >&6; } |
|
2417 if test "${ac_cv_prog_STRIP+set}" = set; then |
|
2418 $as_echo_n "(cached) " >&6 |
|
2419 else |
|
2420 if test -n "$STRIP"; then |
|
2421 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
2422 else |
|
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2424 for as_dir in $PATH |
|
2425 do |
|
2426 IFS=$as_save_IFS |
|
2427 test -z "$as_dir" && as_dir=. |
|
2428 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2430 ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
2431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2432 break 2 |
|
2433 fi |
|
2434 done |
|
2435 done |
|
2436 IFS=$as_save_IFS |
|
2437 |
|
2438 fi |
|
2439 fi |
|
2440 STRIP=$ac_cv_prog_STRIP |
|
2441 if test -n "$STRIP"; then |
|
2442 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
2443 $as_echo "$STRIP" >&6; } |
|
2444 else |
|
2445 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
2446 $as_echo "no" >&6; } |
|
2447 fi |
|
2448 |
|
2449 |
|
2450 fi |
|
2451 if test -z "$ac_cv_prog_STRIP"; then |
|
2452 ac_ct_STRIP=$STRIP |
|
2453 # Extract the first word of "strip", so it can be a program name with args. |
|
2454 set dummy strip; ac_word=$2 |
|
2455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2456 $as_echo_n "checking for $ac_word... " >&6; } |
|
2457 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
2458 $as_echo_n "(cached) " >&6 |
|
2459 else |
|
2460 if test -n "$ac_ct_STRIP"; then |
|
2461 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
2462 else |
|
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2464 for as_dir in $PATH |
|
2465 do |
|
2466 IFS=$as_save_IFS |
|
2467 test -z "$as_dir" && as_dir=. |
|
2468 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2470 ac_cv_prog_ac_ct_STRIP="strip" |
|
2471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2472 break 2 |
|
2473 fi |
|
2474 done |
|
2475 done |
|
2476 IFS=$as_save_IFS |
|
2477 |
|
2478 fi |
|
2479 fi |
|
2480 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
2481 if test -n "$ac_ct_STRIP"; then |
|
2482 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
2483 $as_echo "$ac_ct_STRIP" >&6; } |
|
2484 else |
|
2485 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
2486 $as_echo "no" >&6; } |
|
2487 fi |
|
2488 |
|
2489 if test "x$ac_ct_STRIP" = x; then |
|
2490 STRIP=":" |
|
2491 else |
|
2492 case $cross_compiling:$ac_tool_warned in |
|
2493 yes:) |
|
2494 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
2495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
2496 ac_tool_warned=yes ;; |
|
2497 esac |
|
2498 STRIP=$ac_ct_STRIP |
|
2499 fi |
|
2500 else |
|
2501 STRIP="$ac_cv_prog_STRIP" |
|
2502 fi |
|
2503 |
|
2504 fi |
|
2505 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
|
2506 |
|
2507 # We need awk for the "check" target. The system "awk" is bad on |
|
2508 # some platforms. |
|
2509 # Always define AMTAR for backward compatibility. |
|
2510 |
|
2511 AMTAR=${AMTAR-"${am_missing_run}tar"} |
|
2512 |
|
2513 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
|
2514 |
|
2515 |
|
2516 |
|
2517 |
|
2518 |
|
2519 ac_config_headers="$ac_config_headers config.h" |
|
2520 |
|
2521 |
|
2522 |
|
2523 |
|
2524 |
|
2525 |
|
2526 cat >>confdefs.h <<_ACEOF |
|
2527 #define VERSION "$VERSION" |
|
2528 _ACEOF |
|
2529 |
|
2530 |
|
2531 cat >>confdefs.h <<_ACEOF |
|
2532 #define PACKAGE "$PACKAGE" |
|
2533 _ACEOF |
|
2534 |
|
2535 |
|
2536 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
|
2537 $as_echo_n "checking whether build environment is sane... " >&6; } |
|
2538 # Just in case |
|
2539 sleep 1 |
|
2540 echo timestamp > conftest.file |
|
2541 # Do `set' in a subshell so we don't clobber the current shell's |
|
2542 # arguments. Must try -L first in case configure is actually a |
|
2543 # symlink; some systems play weird games with the mod time of symlinks |
|
2544 # (eg FreeBSD returns the mod time of the symlink's containing |
|
2545 # directory). |
|
2546 if ( |
|
2547 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
|
2548 if test "$*" = "X"; then |
|
2549 # -L didn't work. |
|
2550 set X `ls -t $srcdir/configure conftest.file` |
|
2551 fi |
|
2552 rm -f conftest.file |
|
2553 if test "$*" != "X $srcdir/configure conftest.file" \ |
|
2554 && test "$*" != "X conftest.file $srcdir/configure"; then |
|
2555 |
|
2556 # If neither matched, then we have a broken ls. This can happen |
|
2557 # if, for instance, CONFIG_SHELL is bash and it inherits a |
|
2558 # broken ls alias from the environment. This has actually |
|
2559 # happened. Such a system could not be considered "sane". |
|
2560 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
|
2561 alias in your environment" >&5 |
|
2562 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
|
2563 alias in your environment" >&2;} |
|
2564 { (exit 1); exit 1; }; } |
|
2565 fi |
|
2566 |
|
2567 test "$2" = conftest.file |
|
2568 ) |
|
2569 then |
|
2570 # Ok. |
|
2571 : |
|
2572 else |
|
2573 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
|
2574 Check your system clock" >&5 |
|
2575 $as_echo "$as_me: error: newly created file is older than distributed files! |
|
2576 Check your system clock" >&2;} |
|
2577 { (exit 1); exit 1; }; } |
|
2578 fi |
|
2579 { $as_echo "$as_me:$LINENO: result: yes" >&5 |
|
2580 $as_echo "yes" >&6; } |
|
2581 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
|
2582 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
|
2583 # Check whether --enable-maintainer-mode was given. |
|
2584 if test "${enable_maintainer_mode+set}" = set; then |
|
2585 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
|
2586 else |
|
2587 USE_MAINTAINER_MODE=no |
|
2588 fi |
|
2589 |
|
2590 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
|
2591 $as_echo "$USE_MAINTAINER_MODE" >&6; } |
|
2592 if test $USE_MAINTAINER_MODE = yes; then |
|
2593 MAINTAINER_MODE_TRUE= |
|
2594 MAINTAINER_MODE_FALSE='#' |
|
2595 else |
|
2596 MAINTAINER_MODE_TRUE='#' |
|
2597 MAINTAINER_MODE_FALSE= |
|
2598 fi |
|
2599 |
|
2600 MAINT=$MAINTAINER_MODE_TRUE |
|
2601 |
|
2602 |
|
2603 # Make sure we can run config.sub. |
|
2604 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
|
2605 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
|
2606 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
|
2607 { (exit 1); exit 1; }; } |
|
2608 |
|
2609 { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
|
2610 $as_echo_n "checking build system type... " >&6; } |
|
2611 if test "${ac_cv_build+set}" = set; then |
|
2612 $as_echo_n "(cached) " >&6 |
|
2613 else |
|
2614 ac_build_alias=$build_alias |
|
2615 test "x$ac_build_alias" = x && |
|
2616 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
|
2617 test "x$ac_build_alias" = x && |
|
2618 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
2619 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
2620 { (exit 1); exit 1; }; } |
|
2621 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
|
2622 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
|
2623 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
|
2624 { (exit 1); exit 1; }; } |
|
2625 |
|
2626 fi |
|
2627 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
2628 $as_echo "$ac_cv_build" >&6; } |
|
2629 case $ac_cv_build in |
|
2630 *-*-*) ;; |
|
2631 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
|
2632 $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
|
2633 { (exit 1); exit 1; }; };; |
|
2634 esac |
|
2635 build=$ac_cv_build |
|
2636 ac_save_IFS=$IFS; IFS='-' |
|
2637 set x $ac_cv_build |
|
2638 shift |
|
2639 build_cpu=$1 |
|
2640 build_vendor=$2 |
|
2641 shift; shift |
|
2642 # Remember, the first character of IFS is used to create $*, |
|
2643 # except with old shells: |
|
2644 build_os=$* |
|
2645 IFS=$ac_save_IFS |
|
2646 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
|
2647 |
|
2648 |
|
2649 { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
|
2650 $as_echo_n "checking host system type... " >&6; } |
|
2651 if test "${ac_cv_host+set}" = set; then |
|
2652 $as_echo_n "(cached) " >&6 |
|
2653 else |
|
2654 if test "x$host_alias" = x; then |
|
2655 ac_cv_host=$ac_cv_build |
|
2656 else |
|
2657 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
|
2658 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
|
2659 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
|
2660 { (exit 1); exit 1; }; } |
|
2661 fi |
|
2662 |
|
2663 fi |
|
2664 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
2665 $as_echo "$ac_cv_host" >&6; } |
|
2666 case $ac_cv_host in |
|
2667 *-*-*) ;; |
|
2668 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
|
2669 $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
|
2670 { (exit 1); exit 1; }; };; |
|
2671 esac |
|
2672 host=$ac_cv_host |
|
2673 ac_save_IFS=$IFS; IFS='-' |
|
2674 set x $ac_cv_host |
|
2675 shift |
|
2676 host_cpu=$1 |
|
2677 host_vendor=$2 |
|
2678 shift; shift |
|
2679 # Remember, the first character of IFS is used to create $*, |
|
2680 # except with old shells: |
|
2681 host_os=$* |
|
2682 IFS=$ac_save_IFS |
|
2683 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|
2684 |
|
2685 |
|
2686 |
|
2687 DEPDIR="${am__leading_dot}deps" |
|
2688 |
|
2689 ac_config_commands="$ac_config_commands depfiles" |
|
2690 |
|
2691 |
|
2692 am_make=${MAKE-make} |
|
2693 cat > confinc << 'END' |
|
2694 am__doit: |
|
2695 @echo done |
|
2696 .PHONY: am__doit |
|
2697 END |
|
2698 # If we don't find an include directive, just comment out the code. |
|
2699 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
|
2700 $as_echo_n "checking for style of include used by $am_make... " >&6; } |
|
2701 am__include="#" |
|
2702 am__quote= |
|
2703 _am_result=none |
|
2704 # First try GNU make style include. |
|
2705 echo "include confinc" > confmf |
|
2706 # We grep out `Entering directory' and `Leaving directory' |
|
2707 # messages which can occur if `w' ends up in MAKEFLAGS. |
|
2708 # In particular we don't look at `^make:' because GNU make might |
|
2709 # be invoked under some other name (usually "gmake"), in which |
|
2710 # case it prints its new name instead of `make'. |
|
2711 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
|
2712 am__include=include |
|
2713 am__quote= |
|
2714 _am_result=GNU |
|
2715 fi |
|
2716 # Now try BSD make style include. |
|
2717 if test "$am__include" = "#"; then |
|
2718 echo '.include "confinc"' > confmf |
|
2719 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
|
2720 am__include=.include |
|
2721 am__quote="\"" |
|
2722 _am_result=BSD |
|
2723 fi |
|
2724 fi |
|
2725 |
|
2726 |
|
2727 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
|
2728 $as_echo "$_am_result" >&6; } |
|
2729 rm -f confinc confmf |
|
2730 |
|
2731 # Check whether --enable-dependency-tracking was given. |
|
2732 if test "${enable_dependency_tracking+set}" = set; then |
|
2733 enableval=$enable_dependency_tracking; |
|
2734 fi |
|
2735 |
|
2736 if test "x$enable_dependency_tracking" != xno; then |
|
2737 am_depcomp="$ac_aux_dir/depcomp" |
|
2738 AMDEPBACKSLASH='\' |
|
2739 fi |
|
2740 if test "x$enable_dependency_tracking" != xno; then |
|
2741 AMDEP_TRUE= |
|
2742 AMDEP_FALSE='#' |
|
2743 else |
|
2744 AMDEP_TRUE='#' |
|
2745 AMDEP_FALSE= |
|
2746 fi |
|
2747 |
|
2748 |
|
2749 ac_ext=c |
|
2750 ac_cpp='$CPP $CPPFLAGS' |
|
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2754 if test -n "$ac_tool_prefix"; then |
|
2755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
2756 set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
2757 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2758 $as_echo_n "checking for $ac_word... " >&6; } |
|
2759 if test "${ac_cv_prog_CC+set}" = set; then |
|
2760 $as_echo_n "(cached) " >&6 |
|
2761 else |
|
2762 if test -n "$CC"; then |
|
2763 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2764 else |
|
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2766 for as_dir in $PATH |
|
2767 do |
|
2768 IFS=$as_save_IFS |
|
2769 test -z "$as_dir" && as_dir=. |
|
2770 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2772 ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
2773 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2774 break 2 |
|
2775 fi |
|
2776 done |
|
2777 done |
|
2778 IFS=$as_save_IFS |
|
2779 |
|
2780 fi |
|
2781 fi |
|
2782 CC=$ac_cv_prog_CC |
|
2783 if test -n "$CC"; then |
|
2784 { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
2785 $as_echo "$CC" >&6; } |
|
2786 else |
|
2787 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
2788 $as_echo "no" >&6; } |
|
2789 fi |
|
2790 |
|
2791 |
|
2792 fi |
|
2793 if test -z "$ac_cv_prog_CC"; then |
|
2794 ac_ct_CC=$CC |
|
2795 # Extract the first word of "gcc", so it can be a program name with args. |
|
2796 set dummy gcc; ac_word=$2 |
|
2797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2798 $as_echo_n "checking for $ac_word... " >&6; } |
|
2799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2800 $as_echo_n "(cached) " >&6 |
|
2801 else |
|
2802 if test -n "$ac_ct_CC"; then |
|
2803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2804 else |
|
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2806 for as_dir in $PATH |
|
2807 do |
|
2808 IFS=$as_save_IFS |
|
2809 test -z "$as_dir" && as_dir=. |
|
2810 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2812 ac_cv_prog_ac_ct_CC="gcc" |
|
2813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2814 break 2 |
|
2815 fi |
|
2816 done |
|
2817 done |
|
2818 IFS=$as_save_IFS |
|
2819 |
|
2820 fi |
|
2821 fi |
|
2822 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2823 if test -n "$ac_ct_CC"; then |
|
2824 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
2825 $as_echo "$ac_ct_CC" >&6; } |
|
2826 else |
|
2827 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
2828 $as_echo "no" >&6; } |
|
2829 fi |
|
2830 |
|
2831 if test "x$ac_ct_CC" = x; then |
|
2832 CC="" |
|
2833 else |
|
2834 case $cross_compiling:$ac_tool_warned in |
|
2835 yes:) |
|
2836 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
2837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
2838 ac_tool_warned=yes ;; |
|
2839 esac |
|
2840 CC=$ac_ct_CC |
|
2841 fi |
|
2842 else |
|
2843 CC="$ac_cv_prog_CC" |
|
2844 fi |
|
2845 |
|
2846 if test -z "$CC"; then |
|
2847 if test -n "$ac_tool_prefix"; then |
|
2848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
2849 set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
2850 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2851 $as_echo_n "checking for $ac_word... " >&6; } |
|
2852 if test "${ac_cv_prog_CC+set}" = set; then |
|
2853 $as_echo_n "(cached) " >&6 |
|
2854 else |
|
2855 if test -n "$CC"; then |
|
2856 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2857 else |
|
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2859 for as_dir in $PATH |
|
2860 do |
|
2861 IFS=$as_save_IFS |
|
2862 test -z "$as_dir" && as_dir=. |
|
2863 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2865 ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
2866 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2867 break 2 |
|
2868 fi |
|
2869 done |
|
2870 done |
|
2871 IFS=$as_save_IFS |
|
2872 |
|
2873 fi |
|
2874 fi |
|
2875 CC=$ac_cv_prog_CC |
|
2876 if test -n "$CC"; then |
|
2877 { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
2878 $as_echo "$CC" >&6; } |
|
2879 else |
|
2880 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
2881 $as_echo "no" >&6; } |
|
2882 fi |
|
2883 |
|
2884 |
|
2885 fi |
|
2886 fi |
|
2887 if test -z "$CC"; then |
|
2888 # Extract the first word of "cc", so it can be a program name with args. |
|
2889 set dummy cc; ac_word=$2 |
|
2890 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2891 $as_echo_n "checking for $ac_word... " >&6; } |
|
2892 if test "${ac_cv_prog_CC+set}" = set; then |
|
2893 $as_echo_n "(cached) " >&6 |
|
2894 else |
|
2895 if test -n "$CC"; then |
|
2896 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2897 else |
|
2898 ac_prog_rejected=no |
|
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2900 for as_dir in $PATH |
|
2901 do |
|
2902 IFS=$as_save_IFS |
|
2903 test -z "$as_dir" && as_dir=. |
|
2904 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
2907 ac_prog_rejected=yes |
|
2908 continue |
|
2909 fi |
|
2910 ac_cv_prog_CC="cc" |
|
2911 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2912 break 2 |
|
2913 fi |
|
2914 done |
|
2915 done |
|
2916 IFS=$as_save_IFS |
|
2917 |
|
2918 if test $ac_prog_rejected = yes; then |
|
2919 # We found a bogon in the path, so make sure we never use it. |
|
2920 set dummy $ac_cv_prog_CC |
|
2921 shift |
|
2922 if test $# != 0; then |
|
2923 # We chose a different compiler from the bogus one. |
|
2924 # However, it has the same basename, so the bogon will be chosen |
|
2925 # first if we set CC to just the basename; use the full file name. |
|
2926 shift |
|
2927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
2928 fi |
|
2929 fi |
|
2930 fi |
|
2931 fi |
|
2932 CC=$ac_cv_prog_CC |
|
2933 if test -n "$CC"; then |
|
2934 { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
2935 $as_echo "$CC" >&6; } |
|
2936 else |
|
2937 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
2938 $as_echo "no" >&6; } |
|
2939 fi |
|
2940 |
|
2941 |
|
2942 fi |
|
2943 if test -z "$CC"; then |
|
2944 if test -n "$ac_tool_prefix"; then |
|
2945 for ac_prog in cl.exe |
|
2946 do |
|
2947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
2948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
2949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2950 $as_echo_n "checking for $ac_word... " >&6; } |
|
2951 if test "${ac_cv_prog_CC+set}" = set; then |
|
2952 $as_echo_n "(cached) " >&6 |
|
2953 else |
|
2954 if test -n "$CC"; then |
|
2955 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2956 else |
|
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2958 for as_dir in $PATH |
|
2959 do |
|
2960 IFS=$as_save_IFS |
|
2961 test -z "$as_dir" && as_dir=. |
|
2962 for ac_exec_ext in '' $ac_executable_extensions; do |
|
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
2965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2966 break 2 |
|
2967 fi |
|
2968 done |
|
2969 done |
|
2970 IFS=$as_save_IFS |
|
2971 |
|
2972 fi |
|
2973 fi |
|
2974 CC=$ac_cv_prog_CC |
|
2975 if test -n "$CC"; then |
|
2976 { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
2977 $as_echo "$CC" >&6; } |
|
2978 else |
|
2979 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
2980 $as_echo "no" >&6; } |
|
2981 fi |
|
2982 |
|
2983 |
|
2984 test -n "$CC" && break |
|
2985 done |
|
2986 fi |
|
2987 if test -z "$CC"; then |
|
2988 ac_ct_CC=$CC |
|
2989 for ac_prog in cl.exe |
|
2990 do |
|
2991 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2992 set dummy $ac_prog; ac_word=$2 |
|
2993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
2994 $as_echo_n "checking for $ac_word... " >&6; } |
|
2995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
2996 $as_echo_n "(cached) " >&6 |
|
2997 else |
|
2998 if test -n "$ac_ct_CC"; then |
|
2999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
3000 else |
|
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3002 for as_dir in $PATH |
|
3003 do |
|
3004 IFS=$as_save_IFS |
|
3005 test -z "$as_dir" && as_dir=. |
|
3006 for ac_exec_ext in '' $ac_executable_extensions; do |
|
3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
3008 ac_cv_prog_ac_ct_CC="$ac_prog" |
|
3009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3010 break 2 |
|
3011 fi |
|
3012 done |
|
3013 done |
|
3014 IFS=$as_save_IFS |
|
3015 |
|
3016 fi |
|
3017 fi |
|
3018 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
3019 if test -n "$ac_ct_CC"; then |
|
3020 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
3021 $as_echo "$ac_ct_CC" >&6; } |
|
3022 else |
|
3023 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
3024 $as_echo "no" >&6; } |
|
3025 fi |
|
3026 |
|
3027 |
|
3028 test -n "$ac_ct_CC" && break |
|
3029 done |
|
3030 |
|
3031 if test "x$ac_ct_CC" = x; then |
|
3032 CC="" |
|
3033 else |
|
3034 case $cross_compiling:$ac_tool_warned in |
|
3035 yes:) |
|
3036 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
3038 ac_tool_warned=yes ;; |
|
3039 esac |
|
3040 CC=$ac_ct_CC |
|
3041 fi |
|
3042 fi |
|
3043 |
|
3044 fi |
|
3045 |
|
3046 |
|
3047 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
|
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3049 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|
3050 See \`config.log' for more details." >&5 |
|
3051 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
3052 See \`config.log' for more details." >&2;} |
|
3053 { (exit 1); exit 1; }; }; } |
|
3054 |
|
3055 # Provide some information about the compiler. |
|
3056 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
|
3057 set X $ac_compile |
|
3058 ac_compiler=$2 |
|
3059 { (ac_try="$ac_compiler --version >&5" |
|
3060 case "(($ac_try" in |
|
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3062 *) ac_try_echo=$ac_try;; |
|
3063 esac |
|
3064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3065 $as_echo "$ac_try_echo") >&5 |
|
3066 (eval "$ac_compiler --version >&5") 2>&5 |
|
3067 ac_status=$? |
|
3068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3069 (exit $ac_status); } |
|
3070 { (ac_try="$ac_compiler -v >&5" |
|
3071 case "(($ac_try" in |
|
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3073 *) ac_try_echo=$ac_try;; |
|
3074 esac |
|
3075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3076 $as_echo "$ac_try_echo") >&5 |
|
3077 (eval "$ac_compiler -v >&5") 2>&5 |
|
3078 ac_status=$? |
|
3079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3080 (exit $ac_status); } |
|
3081 { (ac_try="$ac_compiler -V >&5" |
|
3082 case "(($ac_try" in |
|
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3084 *) ac_try_echo=$ac_try;; |
|
3085 esac |
|
3086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3087 $as_echo "$ac_try_echo") >&5 |
|
3088 (eval "$ac_compiler -V >&5") 2>&5 |
|
3089 ac_status=$? |
|
3090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3091 (exit $ac_status); } |
|
3092 |
|
3093 cat >conftest.$ac_ext <<_ACEOF |
|
3094 /* confdefs.h. */ |
|
3095 _ACEOF |
|
3096 cat confdefs.h >>conftest.$ac_ext |
|
3097 cat >>conftest.$ac_ext <<_ACEOF |
|
3098 /* end confdefs.h. */ |
|
3099 |
|
3100 int |
|
3101 main () |
|
3102 { |
|
3103 |
|
3104 ; |
|
3105 return 0; |
|
3106 } |
|
3107 _ACEOF |
|
3108 ac_clean_files_save=$ac_clean_files |
|
3109 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|
3110 # Try to create an executable without -o first, disregard a.out. |
|
3111 # It will help us diagnose broken compilers, and finding out an intuition |
|
3112 # of exeext. |
|
3113 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
|
3114 $as_echo_n "checking for C compiler default output file name... " >&6; } |
|
3115 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
3116 |
|
3117 # The possible output files: |
|
3118 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|
3119 |
|
3120 ac_rmfiles= |
|
3121 for ac_file in $ac_files |
|
3122 do |
|
3123 case $ac_file in |
|
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
3125 * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
3126 esac |
|
3127 done |
|
3128 rm -f $ac_rmfiles |
|
3129 |
|
3130 if { (ac_try="$ac_link_default" |
|
3131 case "(($ac_try" in |
|
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3133 *) ac_try_echo=$ac_try;; |
|
3134 esac |
|
3135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3136 $as_echo "$ac_try_echo") >&5 |
|
3137 (eval "$ac_link_default") 2>&5 |
|
3138 ac_status=$? |
|
3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3140 (exit $ac_status); }; then |
|
3141 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
|
3142 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|
3143 # in a Makefile. We should not override ac_cv_exeext if it was cached, |
|
3144 # so that the user can short-circuit this test for compilers unknown to |
|
3145 # Autoconf. |
|
3146 for ac_file in $ac_files '' |
|
3147 do |
|
3148 test -f "$ac_file" || continue |
|
3149 case $ac_file in |
|
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
|
3151 ;; |
|
3152 [ab].out ) |
|
3153 # We found the default executable, but exeext='' is most |
|
3154 # certainly right. |
|
3155 break;; |
|
3156 *.* ) |
|
3157 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|
3158 then :; else |
|
3159 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
3160 fi |
|
3161 # We set ac_cv_exeext here because the later test for it is not |
|
3162 # safe: cross compilers may not add the suffix if given an `-o' |
|
3163 # argument, so we may need to know it at that point already. |
|
3164 # Even if this section looks crufty: it has the advantage of |
|
3165 # actually working. |
|
3166 break;; |
|
3167 * ) |
|
3168 break;; |
|
3169 esac |
|
3170 done |
|
3171 test "$ac_cv_exeext" = no && ac_cv_exeext= |
|
3172 |
|
3173 else |
|
3174 ac_file='' |
|
3175 fi |
|
3176 |
|
3177 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
3178 $as_echo "$ac_file" >&6; } |
|
3179 if test -z "$ac_file"; then |
|
3180 $as_echo "$as_me: failed program was:" >&5 |
|
3181 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3182 |
|
3183 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
|
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3185 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
|
3186 See \`config.log' for more details." >&5 |
|
3187 $as_echo "$as_me: error: C compiler cannot create executables |
|
3188 See \`config.log' for more details." >&2;} |
|
3189 { (exit 77); exit 77; }; }; } |
|
3190 fi |
|
3191 |
|
3192 ac_exeext=$ac_cv_exeext |
|
3193 |
|
3194 # Check that the compiler produces executables we can run. If not, either |
|
3195 # the compiler is broken, or we cross compile. |
|
3196 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
|
3197 $as_echo_n "checking whether the C compiler works... " >&6; } |
|
3198 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
|
3199 # If not cross compiling, check that we can run a simple program. |
|
3200 if test "$cross_compiling" != yes; then |
|
3201 if { ac_try='./$ac_file' |
|
3202 { (case "(($ac_try" in |
|
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3204 *) ac_try_echo=$ac_try;; |
|
3205 esac |
|
3206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3207 $as_echo "$ac_try_echo") >&5 |
|
3208 (eval "$ac_try") 2>&5 |
|
3209 ac_status=$? |
|
3210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3211 (exit $ac_status); }; }; then |
|
3212 cross_compiling=no |
|
3213 else |
|
3214 if test "$cross_compiling" = maybe; then |
|
3215 cross_compiling=yes |
|
3216 else |
|
3217 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
|
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3219 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
3220 If you meant to cross compile, use \`--host'. |
|
3221 See \`config.log' for more details." >&5 |
|
3222 $as_echo "$as_me: error: cannot run C compiled programs. |
|
3223 If you meant to cross compile, use \`--host'. |
|
3224 See \`config.log' for more details." >&2;} |
|
3225 { (exit 1); exit 1; }; }; } |
|
3226 fi |
|
3227 fi |
|
3228 fi |
|
3229 { $as_echo "$as_me:$LINENO: result: yes" >&5 |
|
3230 $as_echo "yes" >&6; } |
|
3231 |
|
3232 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
|
3233 ac_clean_files=$ac_clean_files_save |
|
3234 # Check that the compiler produces executables we can run. If not, either |
|
3235 # the compiler is broken, or we cross compile. |
|
3236 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
3237 $as_echo_n "checking whether we are cross compiling... " >&6; } |
|
3238 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
3239 $as_echo "$cross_compiling" >&6; } |
|
3240 |
|
3241 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
|
3242 $as_echo_n "checking for suffix of executables... " >&6; } |
|
3243 if { (ac_try="$ac_link" |
|
3244 case "(($ac_try" in |
|
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3246 *) ac_try_echo=$ac_try;; |
|
3247 esac |
|
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3249 $as_echo "$ac_try_echo") >&5 |
|
3250 (eval "$ac_link") 2>&5 |
|
3251 ac_status=$? |
|
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3253 (exit $ac_status); }; then |
|
3254 # If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
3255 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
3256 # work properly (i.e., refer to `conftest.exe'), while it won't with |
|
3257 # `rm'. |
|
3258 for ac_file in conftest.exe conftest conftest.*; do |
|
3259 test -f "$ac_file" || continue |
|
3260 case $ac_file in |
|
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
3262 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
3263 break;; |
|
3264 * ) break;; |
|
3265 esac |
|
3266 done |
|
3267 else |
|
3268 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
|
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3270 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
|
3271 See \`config.log' for more details." >&5 |
|
3272 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
|
3273 See \`config.log' for more details." >&2;} |
|
3274 { (exit 1); exit 1; }; }; } |
|
3275 fi |
|
3276 |
|
3277 rm -f conftest$ac_cv_exeext |
|
3278 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
|
3279 $as_echo "$ac_cv_exeext" >&6; } |
|
3280 |
|
3281 rm -f conftest.$ac_ext |
|
3282 EXEEXT=$ac_cv_exeext |
|
3283 ac_exeext=$EXEEXT |
|
3284 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
3285 $as_echo_n "checking for suffix of object files... " >&6; } |
|
3286 if test "${ac_cv_objext+set}" = set; then |
|
3287 $as_echo_n "(cached) " >&6 |
|
3288 else |
|
3289 cat >conftest.$ac_ext <<_ACEOF |
|
3290 /* confdefs.h. */ |
|
3291 _ACEOF |
|
3292 cat confdefs.h >>conftest.$ac_ext |
|
3293 cat >>conftest.$ac_ext <<_ACEOF |
|
3294 /* end confdefs.h. */ |
|
3295 |
|
3296 int |
|
3297 main () |
|
3298 { |
|
3299 |
|
3300 ; |
|
3301 return 0; |
|
3302 } |
|
3303 _ACEOF |
|
3304 rm -f conftest.o conftest.obj |
|
3305 if { (ac_try="$ac_compile" |
|
3306 case "(($ac_try" in |
|
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3308 *) ac_try_echo=$ac_try;; |
|
3309 esac |
|
3310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3311 $as_echo "$ac_try_echo") >&5 |
|
3312 (eval "$ac_compile") 2>&5 |
|
3313 ac_status=$? |
|
3314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3315 (exit $ac_status); }; then |
|
3316 for ac_file in conftest.o conftest.obj conftest.*; do |
|
3317 test -f "$ac_file" || continue; |
|
3318 case $ac_file in |
|
3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
|
3320 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
3321 break;; |
|
3322 esac |
|
3323 done |
|
3324 else |
|
3325 $as_echo "$as_me: failed program was:" >&5 |
|
3326 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3327 |
|
3328 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
|
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3330 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
|
3331 See \`config.log' for more details." >&5 |
|
3332 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
|
3333 See \`config.log' for more details." >&2;} |
|
3334 { (exit 1); exit 1; }; }; } |
|
3335 fi |
|
3336 |
|
3337 rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
3338 fi |
|
3339 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
|
3340 $as_echo "$ac_cv_objext" >&6; } |
|
3341 OBJEXT=$ac_cv_objext |
|
3342 ac_objext=$OBJEXT |
|
3343 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
3344 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
|
3345 if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
3346 $as_echo_n "(cached) " >&6 |
|
3347 else |
|
3348 cat >conftest.$ac_ext <<_ACEOF |
|
3349 /* confdefs.h. */ |
|
3350 _ACEOF |
|
3351 cat confdefs.h >>conftest.$ac_ext |
|
3352 cat >>conftest.$ac_ext <<_ACEOF |
|
3353 /* end confdefs.h. */ |
|
3354 |
|
3355 int |
|
3356 main () |
|
3357 { |
|
3358 #ifndef __GNUC__ |
|
3359 choke me |
|
3360 #endif |
|
3361 |
|
3362 ; |
|
3363 return 0; |
|
3364 } |
|
3365 _ACEOF |
|
3366 rm -f conftest.$ac_objext |
|
3367 if { (ac_try="$ac_compile" |
|
3368 case "(($ac_try" in |
|
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3370 *) ac_try_echo=$ac_try;; |
|
3371 esac |
|
3372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3373 $as_echo "$ac_try_echo") >&5 |
|
3374 (eval "$ac_compile") 2>conftest.er1 |
|
3375 ac_status=$? |
|
3376 grep -v '^ *+' conftest.er1 >conftest.err |
|
3377 rm -f conftest.er1 |
|
3378 cat conftest.err >&5 |
|
3379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3380 (exit $ac_status); } && { |
|
3381 test -z "$ac_c_werror_flag" || |
|
3382 test ! -s conftest.err |
|
3383 } && test -s conftest.$ac_objext; then |
|
3384 ac_compiler_gnu=yes |
|
3385 else |
|
3386 $as_echo "$as_me: failed program was:" >&5 |
|
3387 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3388 |
|
3389 ac_compiler_gnu=no |
|
3390 fi |
|
3391 |
|
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3393 ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
3394 |
|
3395 fi |
|
3396 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
3397 $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
|
3398 if test $ac_compiler_gnu = yes; then |
|
3399 GCC=yes |
|
3400 else |
|
3401 GCC= |
|
3402 fi |
|
3403 ac_test_CFLAGS=${CFLAGS+set} |
|
3404 ac_save_CFLAGS=$CFLAGS |
|
3405 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
3406 $as_echo_n "checking whether $CC accepts -g... " >&6; } |
|
3407 if test "${ac_cv_prog_cc_g+set}" = set; then |
|
3408 $as_echo_n "(cached) " >&6 |
|
3409 else |
|
3410 ac_save_c_werror_flag=$ac_c_werror_flag |
|
3411 ac_c_werror_flag=yes |
|
3412 ac_cv_prog_cc_g=no |
|
3413 CFLAGS="-g" |
|
3414 cat >conftest.$ac_ext <<_ACEOF |
|
3415 /* confdefs.h. */ |
|
3416 _ACEOF |
|
3417 cat confdefs.h >>conftest.$ac_ext |
|
3418 cat >>conftest.$ac_ext <<_ACEOF |
|
3419 /* end confdefs.h. */ |
|
3420 |
|
3421 int |
|
3422 main () |
|
3423 { |
|
3424 |
|
3425 ; |
|
3426 return 0; |
|
3427 } |
|
3428 _ACEOF |
|
3429 rm -f conftest.$ac_objext |
|
3430 if { (ac_try="$ac_compile" |
|
3431 case "(($ac_try" in |
|
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3433 *) ac_try_echo=$ac_try;; |
|
3434 esac |
|
3435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3436 $as_echo "$ac_try_echo") >&5 |
|
3437 (eval "$ac_compile") 2>conftest.er1 |
|
3438 ac_status=$? |
|
3439 grep -v '^ *+' conftest.er1 >conftest.err |
|
3440 rm -f conftest.er1 |
|
3441 cat conftest.err >&5 |
|
3442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3443 (exit $ac_status); } && { |
|
3444 test -z "$ac_c_werror_flag" || |
|
3445 test ! -s conftest.err |
|
3446 } && test -s conftest.$ac_objext; then |
|
3447 ac_cv_prog_cc_g=yes |
|
3448 else |
|
3449 $as_echo "$as_me: failed program was:" >&5 |
|
3450 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3451 |
|
3452 CFLAGS="" |
|
3453 cat >conftest.$ac_ext <<_ACEOF |
|
3454 /* confdefs.h. */ |
|
3455 _ACEOF |
|
3456 cat confdefs.h >>conftest.$ac_ext |
|
3457 cat >>conftest.$ac_ext <<_ACEOF |
|
3458 /* end confdefs.h. */ |
|
3459 |
|
3460 int |
|
3461 main () |
|
3462 { |
|
3463 |
|
3464 ; |
|
3465 return 0; |
|
3466 } |
|
3467 _ACEOF |
|
3468 rm -f conftest.$ac_objext |
|
3469 if { (ac_try="$ac_compile" |
|
3470 case "(($ac_try" in |
|
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3472 *) ac_try_echo=$ac_try;; |
|
3473 esac |
|
3474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3475 $as_echo "$ac_try_echo") >&5 |
|
3476 (eval "$ac_compile") 2>conftest.er1 |
|
3477 ac_status=$? |
|
3478 grep -v '^ *+' conftest.er1 >conftest.err |
|
3479 rm -f conftest.er1 |
|
3480 cat conftest.err >&5 |
|
3481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3482 (exit $ac_status); } && { |
|
3483 test -z "$ac_c_werror_flag" || |
|
3484 test ! -s conftest.err |
|
3485 } && test -s conftest.$ac_objext; then |
|
3486 : |
|
3487 else |
|
3488 $as_echo "$as_me: failed program was:" >&5 |
|
3489 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3490 |
|
3491 ac_c_werror_flag=$ac_save_c_werror_flag |
|
3492 CFLAGS="-g" |
|
3493 cat >conftest.$ac_ext <<_ACEOF |
|
3494 /* confdefs.h. */ |
|
3495 _ACEOF |
|
3496 cat confdefs.h >>conftest.$ac_ext |
|
3497 cat >>conftest.$ac_ext <<_ACEOF |
|
3498 /* end confdefs.h. */ |
|
3499 |
|
3500 int |
|
3501 main () |
|
3502 { |
|
3503 |
|
3504 ; |
|
3505 return 0; |
|
3506 } |
|
3507 _ACEOF |
|
3508 rm -f conftest.$ac_objext |
|
3509 if { (ac_try="$ac_compile" |
|
3510 case "(($ac_try" in |
|
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3512 *) ac_try_echo=$ac_try;; |
|
3513 esac |
|
3514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3515 $as_echo "$ac_try_echo") >&5 |
|
3516 (eval "$ac_compile") 2>conftest.er1 |
|
3517 ac_status=$? |
|
3518 grep -v '^ *+' conftest.er1 >conftest.err |
|
3519 rm -f conftest.er1 |
|
3520 cat conftest.err >&5 |
|
3521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3522 (exit $ac_status); } && { |
|
3523 test -z "$ac_c_werror_flag" || |
|
3524 test ! -s conftest.err |
|
3525 } && test -s conftest.$ac_objext; then |
|
3526 ac_cv_prog_cc_g=yes |
|
3527 else |
|
3528 $as_echo "$as_me: failed program was:" >&5 |
|
3529 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3530 |
|
3531 |
|
3532 fi |
|
3533 |
|
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3535 fi |
|
3536 |
|
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3538 fi |
|
3539 |
|
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3541 ac_c_werror_flag=$ac_save_c_werror_flag |
|
3542 fi |
|
3543 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
3544 $as_echo "$ac_cv_prog_cc_g" >&6; } |
|
3545 if test "$ac_test_CFLAGS" = set; then |
|
3546 CFLAGS=$ac_save_CFLAGS |
|
3547 elif test $ac_cv_prog_cc_g = yes; then |
|
3548 if test "$GCC" = yes; then |
|
3549 CFLAGS="-g -O2" |
|
3550 else |
|
3551 CFLAGS="-g" |
|
3552 fi |
|
3553 else |
|
3554 if test "$GCC" = yes; then |
|
3555 CFLAGS="-O2" |
|
3556 else |
|
3557 CFLAGS= |
|
3558 fi |
|
3559 fi |
|
3560 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
|
3561 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
|
3562 if test "${ac_cv_prog_cc_c89+set}" = set; then |
|
3563 $as_echo_n "(cached) " >&6 |
|
3564 else |
|
3565 ac_cv_prog_cc_c89=no |
|
3566 ac_save_CC=$CC |
|
3567 cat >conftest.$ac_ext <<_ACEOF |
|
3568 /* confdefs.h. */ |
|
3569 _ACEOF |
|
3570 cat confdefs.h >>conftest.$ac_ext |
|
3571 cat >>conftest.$ac_ext <<_ACEOF |
|
3572 /* end confdefs.h. */ |
|
3573 #include <stdarg.h> |
|
3574 #include <stdio.h> |
|
3575 #include <sys/types.h> |
|
3576 #include <sys/stat.h> |
|
3577 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
3578 struct buf { int x; }; |
|
3579 FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
3580 static char *e (p, i) |
|
3581 char **p; |
|
3582 int i; |
|
3583 { |
|
3584 return p[i]; |
|
3585 } |
|
3586 static char *f (char * (*g) (char **, int), char **p, ...) |
|
3587 { |
|
3588 char *s; |
|
3589 va_list v; |
|
3590 va_start (v,p); |
|
3591 s = g (p, va_arg (v,int)); |
|
3592 va_end (v); |
|
3593 return s; |
|
3594 } |
|
3595 |
|
3596 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
3597 function prototypes and stuff, but not '\xHH' hex character constants. |
|
3598 These don't provoke an error unfortunately, instead are silently treated |
|
3599 as 'x'. The following induces an error, until -std is added to get |
|
3600 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
3601 array size at least. It's necessary to write '\x00'==0 to get something |
|
3602 that's true only with -std. */ |
|
3603 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
3604 |
|
3605 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
3606 inside strings and character constants. */ |
|
3607 #define FOO(x) 'x' |
|
3608 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
3609 |
|
3610 int test (int i, double x); |
|
3611 struct s1 {int (*f) (int a);}; |
|
3612 struct s2 {int (*f) (double a);}; |
|
3613 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
3614 int argc; |
|
3615 char **argv; |
|
3616 int |
|
3617 main () |
|
3618 { |
|
3619 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
3620 ; |
|
3621 return 0; |
|
3622 } |
|
3623 _ACEOF |
|
3624 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
3625 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
3626 do |
|
3627 CC="$ac_save_CC $ac_arg" |
|
3628 rm -f conftest.$ac_objext |
|
3629 if { (ac_try="$ac_compile" |
|
3630 case "(($ac_try" in |
|
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3632 *) ac_try_echo=$ac_try;; |
|
3633 esac |
|
3634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3635 $as_echo "$ac_try_echo") >&5 |
|
3636 (eval "$ac_compile") 2>conftest.er1 |
|
3637 ac_status=$? |
|
3638 grep -v '^ *+' conftest.er1 >conftest.err |
|
3639 rm -f conftest.er1 |
|
3640 cat conftest.err >&5 |
|
3641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3642 (exit $ac_status); } && { |
|
3643 test -z "$ac_c_werror_flag" || |
|
3644 test ! -s conftest.err |
|
3645 } && test -s conftest.$ac_objext; then |
|
3646 ac_cv_prog_cc_c89=$ac_arg |
|
3647 else |
|
3648 $as_echo "$as_me: failed program was:" >&5 |
|
3649 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3650 |
|
3651 |
|
3652 fi |
|
3653 |
|
3654 rm -f core conftest.err conftest.$ac_objext |
|
3655 test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
3656 done |
|
3657 rm -f conftest.$ac_ext |
|
3658 CC=$ac_save_CC |
|
3659 |
|
3660 fi |
|
3661 # AC_CACHE_VAL |
|
3662 case "x$ac_cv_prog_cc_c89" in |
|
3663 x) |
|
3664 { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
|
3665 $as_echo "none needed" >&6; } ;; |
|
3666 xno) |
|
3667 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
|
3668 $as_echo "unsupported" >&6; } ;; |
|
3669 *) |
|
3670 CC="$CC $ac_cv_prog_cc_c89" |
|
3671 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
|
3672 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
|
3673 esac |
|
3674 |
|
3675 |
|
3676 ac_ext=c |
|
3677 ac_cpp='$CPP $CPPFLAGS' |
|
3678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3680 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3681 |
|
3682 depcc="$CC" am_compiler_list= |
|
3683 |
|
3684 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
3685 $as_echo_n "checking dependency style of $depcc... " >&6; } |
|
3686 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
|
3687 $as_echo_n "(cached) " >&6 |
|
3688 else |
|
3689 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
3690 # We make a subdir and do the tests there. Otherwise we can end up |
|
3691 # making bogus files that we don't know about and never remove. For |
|
3692 # instance it was reported that on HP-UX the gcc test will end up |
|
3693 # making a dummy file named `D' -- because `-MD' means `put the output |
|
3694 # in D'. |
|
3695 mkdir conftest.dir |
|
3696 # Copy depcomp to subdir because otherwise we won't find it if we're |
|
3697 # using a relative directory. |
|
3698 cp "$am_depcomp" conftest.dir |
|
3699 cd conftest.dir |
|
3700 # We will build objects and dependencies in a subdirectory because |
|
3701 # it helps to detect inapplicable dependency modes. For instance |
|
3702 # both Tru64's cc and ICC support -MD to output dependencies as a |
|
3703 # side effect of compilation, but ICC will put the dependencies in |
|
3704 # the current directory while Tru64 will put them in the object |
|
3705 # directory. |
|
3706 mkdir sub |
|
3707 |
|
3708 am_cv_CC_dependencies_compiler_type=none |
|
3709 if test "$am_compiler_list" = ""; then |
|
3710 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
3711 fi |
|
3712 for depmode in $am_compiler_list; do |
|
3713 # Setup a source with many dependencies, because some compilers |
|
3714 # like to wrap large dependency lists on column 80 (with \), and |
|
3715 # we should not choose a depcomp mode which is confused by this. |
|
3716 # |
|
3717 # We need to recreate these files for each test, as the compiler may |
|
3718 # overwrite some of them when testing with obscure command lines. |
|
3719 # This happens at least with the AIX C compiler. |
|
3720 : > sub/conftest.c |
|
3721 for i in 1 2 3 4 5 6; do |
|
3722 echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
3723 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
3724 # Solaris 8's {/usr,}/bin/sh. |
|
3725 touch sub/conftst$i.h |
|
3726 done |
|
3727 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
3728 |
|
3729 case $depmode in |
|
3730 nosideeffect) |
|
3731 # after this tag, mechanisms are not by side-effect, so they'll |
|
3732 # only be used when explicitly requested |
|
3733 if test "x$enable_dependency_tracking" = xyes; then |
|
3734 continue |
|
3735 else |
|
3736 break |
|
3737 fi |
|
3738 ;; |
|
3739 none) break ;; |
|
3740 esac |
|
3741 # We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
3742 # mode. It turns out that the SunPro C++ compiler does not properly |
|
3743 # handle `-M -o', and we need to detect this. |
|
3744 if depmode=$depmode \ |
|
3745 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
3746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
3747 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
3748 >/dev/null 2>conftest.err && |
|
3749 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
|
3750 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
3751 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
3752 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
3753 # icc doesn't choke on unknown options, it will just issue warnings |
|
3754 # or remarks (even with -Werror). So we grep stderr for any message |
|
3755 # that says an option was ignored or not supported. |
|
3756 # When given -MP, icc 7.0 and 7.1 complain thusly: |
|
3757 # icc: Command line warning: ignoring option '-M'; no argument required |
|
3758 # The diagnosis changed in icc 8.0: |
|
3759 # icc: Command line remark: option '-MP' not supported |
|
3760 if (grep 'ignoring option' conftest.err || |
|
3761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
3762 am_cv_CC_dependencies_compiler_type=$depmode |
|
3763 break |
|
3764 fi |
|
3765 fi |
|
3766 done |
|
3767 |
|
3768 cd .. |
|
3769 rm -rf conftest.dir |
|
3770 else |
|
3771 am_cv_CC_dependencies_compiler_type=none |
|
3772 fi |
|
3773 |
|
3774 fi |
|
3775 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
|
3776 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
|
3777 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
|
3778 |
|
3779 if |
|
3780 test "x$enable_dependency_tracking" != xno \ |
|
3781 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
|
3782 am__fastdepCC_TRUE= |
|
3783 am__fastdepCC_FALSE='#' |
|
3784 else |
|
3785 am__fastdepCC_TRUE='#' |
|
3786 am__fastdepCC_FALSE= |
|
3787 fi |
|
3788 |
|
3789 |
|
3790 |
|
3791 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
3792 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
|
3793 if test "${ac_cv_c_const+set}" = set; then |
|
3794 $as_echo_n "(cached) " >&6 |
|
3795 else |
|
3796 cat >conftest.$ac_ext <<_ACEOF |
|
3797 /* confdefs.h. */ |
|
3798 _ACEOF |
|
3799 cat confdefs.h >>conftest.$ac_ext |
|
3800 cat >>conftest.$ac_ext <<_ACEOF |
|
3801 /* end confdefs.h. */ |
|
3802 |
|
3803 int |
|
3804 main () |
|
3805 { |
|
3806 /* FIXME: Include the comments suggested by Paul. */ |
|
3807 #ifndef __cplusplus |
|
3808 /* Ultrix mips cc rejects this. */ |
|
3809 typedef int charset[2]; |
|
3810 const charset cs; |
|
3811 /* SunOS 4.1.1 cc rejects this. */ |
|
3812 char const *const *pcpcc; |
|
3813 char **ppc; |
|
3814 /* NEC SVR4.0.2 mips cc rejects this. */ |
|
3815 struct point {int x, y;}; |
|
3816 static struct point const zero = {0,0}; |
|
3817 /* AIX XL C 1.02.0.0 rejects this. |
|
3818 It does not let you subtract one const X* pointer from another in |
|
3819 an arm of an if-expression whose if-part is not a constant |
|
3820 expression */ |
|
3821 const char *g = "string"; |
|
3822 pcpcc = &g + (g ? g-g : 0); |
|
3823 /* HPUX 7.0 cc rejects these. */ |
|
3824 ++pcpcc; |
|
3825 ppc = (char**) pcpcc; |
|
3826 pcpcc = (char const *const *) ppc; |
|
3827 { /* SCO 3.2v4 cc rejects this. */ |
|
3828 char *t; |
|
3829 char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
3830 |
|
3831 *t++ = 0; |
|
3832 if (s) return 0; |
|
3833 } |
|
3834 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
3835 int x[] = {25, 17}; |
|
3836 const int *foo = &x[0]; |
|
3837 ++foo; |
|
3838 } |
|
3839 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
3840 typedef const int *iptr; |
|
3841 iptr p = 0; |
|
3842 ++p; |
|
3843 } |
|
3844 { /* AIX XL C 1.02.0.0 rejects this saying |
|
3845 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
3846 struct s { int j; const int *ap[3]; }; |
|
3847 struct s *b; b->j = 5; |
|
3848 } |
|
3849 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
3850 const int foo = 10; |
|
3851 if (!foo) return 0; |
|
3852 } |
|
3853 return !cs[0] && !zero.x; |
|
3854 #endif |
|
3855 |
|
3856 ; |
|
3857 return 0; |
|
3858 } |
|
3859 _ACEOF |
|
3860 rm -f conftest.$ac_objext |
|
3861 if { (ac_try="$ac_compile" |
|
3862 case "(($ac_try" in |
|
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3864 *) ac_try_echo=$ac_try;; |
|
3865 esac |
|
3866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3867 $as_echo "$ac_try_echo") >&5 |
|
3868 (eval "$ac_compile") 2>conftest.er1 |
|
3869 ac_status=$? |
|
3870 grep -v '^ *+' conftest.er1 >conftest.err |
|
3871 rm -f conftest.er1 |
|
3872 cat conftest.err >&5 |
|
3873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3874 (exit $ac_status); } && { |
|
3875 test -z "$ac_c_werror_flag" || |
|
3876 test ! -s conftest.err |
|
3877 } && test -s conftest.$ac_objext; then |
|
3878 ac_cv_c_const=yes |
|
3879 else |
|
3880 $as_echo "$as_me: failed program was:" >&5 |
|
3881 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3882 |
|
3883 ac_cv_c_const=no |
|
3884 fi |
|
3885 |
|
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3887 fi |
|
3888 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
3889 $as_echo "$ac_cv_c_const" >&6; } |
|
3890 if test $ac_cv_c_const = no; then |
|
3891 |
|
3892 cat >>confdefs.h <<\_ACEOF |
|
3893 #define const /**/ |
|
3894 _ACEOF |
|
3895 |
|
3896 fi |
|
3897 |
|
3898 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
|
3899 $as_echo_n "checking for library containing strerror... " >&6; } |
|
3900 if test "${ac_cv_search_strerror+set}" = set; then |
|
3901 $as_echo_n "(cached) " >&6 |
|
3902 else |
|
3903 ac_func_search_save_LIBS=$LIBS |
|
3904 cat >conftest.$ac_ext <<_ACEOF |
|
3905 /* confdefs.h. */ |
|
3906 _ACEOF |
|
3907 cat confdefs.h >>conftest.$ac_ext |
|
3908 cat >>conftest.$ac_ext <<_ACEOF |
|
3909 /* end confdefs.h. */ |
|
3910 |
|
3911 /* Override any GCC internal prototype to avoid an error. |
|
3912 Use char because int might match the return type of a GCC |
|
3913 builtin and then its argument prototype would still apply. */ |
|
3914 #ifdef __cplusplus |
|
3915 extern "C" |
|
3916 #endif |
|
3917 char strerror (); |
|
3918 int |
|
3919 main () |
|
3920 { |
|
3921 return strerror (); |
|
3922 ; |
|
3923 return 0; |
|
3924 } |
|
3925 _ACEOF |
|
3926 for ac_lib in '' cposix; do |
|
3927 if test -z "$ac_lib"; then |
|
3928 ac_res="none required" |
|
3929 else |
|
3930 ac_res=-l$ac_lib |
|
3931 LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
3932 fi |
|
3933 rm -f conftest.$ac_objext conftest$ac_exeext |
|
3934 if { (ac_try="$ac_link" |
|
3935 case "(($ac_try" in |
|
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3937 *) ac_try_echo=$ac_try;; |
|
3938 esac |
|
3939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
3940 $as_echo "$ac_try_echo") >&5 |
|
3941 (eval "$ac_link") 2>conftest.er1 |
|
3942 ac_status=$? |
|
3943 grep -v '^ *+' conftest.er1 >conftest.err |
|
3944 rm -f conftest.er1 |
|
3945 cat conftest.err >&5 |
|
3946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
3947 (exit $ac_status); } && { |
|
3948 test -z "$ac_c_werror_flag" || |
|
3949 test ! -s conftest.err |
|
3950 } && test -s conftest$ac_exeext && { |
|
3951 test "$cross_compiling" = yes || |
|
3952 $as_test_x conftest$ac_exeext |
|
3953 }; then |
|
3954 ac_cv_search_strerror=$ac_res |
|
3955 else |
|
3956 $as_echo "$as_me: failed program was:" >&5 |
|
3957 sed 's/^/| /' conftest.$ac_ext >&5 |
|
3958 |
|
3959 |
|
3960 fi |
|
3961 |
|
3962 rm -rf conftest.dSYM |
|
3963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
3964 conftest$ac_exeext |
|
3965 if test "${ac_cv_search_strerror+set}" = set; then |
|
3966 break |
|
3967 fi |
|
3968 done |
|
3969 if test "${ac_cv_search_strerror+set}" = set; then |
|
3970 : |
|
3971 else |
|
3972 ac_cv_search_strerror=no |
|
3973 fi |
|
3974 rm conftest.$ac_ext |
|
3975 LIBS=$ac_func_search_save_LIBS |
|
3976 fi |
|
3977 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
|
3978 $as_echo "$ac_cv_search_strerror" >&6; } |
|
3979 ac_res=$ac_cv_search_strerror |
|
3980 if test "$ac_res" != no; then |
|
3981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
3982 |
|
3983 fi |
|
3984 |
|
3985 ac_ext=c |
|
3986 ac_cpp='$CPP $CPPFLAGS' |
|
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3990 if test -n "$ac_tool_prefix"; then |
|
3991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
3992 set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
3993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
3994 $as_echo_n "checking for $ac_word... " >&6; } |
|
3995 if test "${ac_cv_prog_CC+set}" = set; then |
|
3996 $as_echo_n "(cached) " >&6 |
|
3997 else |
|
3998 if test -n "$CC"; then |
|
3999 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
4000 else |
|
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4002 for as_dir in $PATH |
|
4003 do |
|
4004 IFS=$as_save_IFS |
|
4005 test -z "$as_dir" && as_dir=. |
|
4006 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4008 ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
4009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4010 break 2 |
|
4011 fi |
|
4012 done |
|
4013 done |
|
4014 IFS=$as_save_IFS |
|
4015 |
|
4016 fi |
|
4017 fi |
|
4018 CC=$ac_cv_prog_CC |
|
4019 if test -n "$CC"; then |
|
4020 { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
4021 $as_echo "$CC" >&6; } |
|
4022 else |
|
4023 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
4024 $as_echo "no" >&6; } |
|
4025 fi |
|
4026 |
|
4027 |
|
4028 fi |
|
4029 if test -z "$ac_cv_prog_CC"; then |
|
4030 ac_ct_CC=$CC |
|
4031 # Extract the first word of "gcc", so it can be a program name with args. |
|
4032 set dummy gcc; ac_word=$2 |
|
4033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
4034 $as_echo_n "checking for $ac_word... " >&6; } |
|
4035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
4036 $as_echo_n "(cached) " >&6 |
|
4037 else |
|
4038 if test -n "$ac_ct_CC"; then |
|
4039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
4040 else |
|
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4042 for as_dir in $PATH |
|
4043 do |
|
4044 IFS=$as_save_IFS |
|
4045 test -z "$as_dir" && as_dir=. |
|
4046 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4048 ac_cv_prog_ac_ct_CC="gcc" |
|
4049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4050 break 2 |
|
4051 fi |
|
4052 done |
|
4053 done |
|
4054 IFS=$as_save_IFS |
|
4055 |
|
4056 fi |
|
4057 fi |
|
4058 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
4059 if test -n "$ac_ct_CC"; then |
|
4060 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
4061 $as_echo "$ac_ct_CC" >&6; } |
|
4062 else |
|
4063 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
4064 $as_echo "no" >&6; } |
|
4065 fi |
|
4066 |
|
4067 if test "x$ac_ct_CC" = x; then |
|
4068 CC="" |
|
4069 else |
|
4070 case $cross_compiling:$ac_tool_warned in |
|
4071 yes:) |
|
4072 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
4073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
4074 ac_tool_warned=yes ;; |
|
4075 esac |
|
4076 CC=$ac_ct_CC |
|
4077 fi |
|
4078 else |
|
4079 CC="$ac_cv_prog_CC" |
|
4080 fi |
|
4081 |
|
4082 if test -z "$CC"; then |
|
4083 if test -n "$ac_tool_prefix"; then |
|
4084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
4085 set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
4086 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
4087 $as_echo_n "checking for $ac_word... " >&6; } |
|
4088 if test "${ac_cv_prog_CC+set}" = set; then |
|
4089 $as_echo_n "(cached) " >&6 |
|
4090 else |
|
4091 if test -n "$CC"; then |
|
4092 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
4093 else |
|
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4095 for as_dir in $PATH |
|
4096 do |
|
4097 IFS=$as_save_IFS |
|
4098 test -z "$as_dir" && as_dir=. |
|
4099 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4101 ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
4102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4103 break 2 |
|
4104 fi |
|
4105 done |
|
4106 done |
|
4107 IFS=$as_save_IFS |
|
4108 |
|
4109 fi |
|
4110 fi |
|
4111 CC=$ac_cv_prog_CC |
|
4112 if test -n "$CC"; then |
|
4113 { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
4114 $as_echo "$CC" >&6; } |
|
4115 else |
|
4116 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
4117 $as_echo "no" >&6; } |
|
4118 fi |
|
4119 |
|
4120 |
|
4121 fi |
|
4122 fi |
|
4123 if test -z "$CC"; then |
|
4124 # Extract the first word of "cc", so it can be a program name with args. |
|
4125 set dummy cc; ac_word=$2 |
|
4126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
4127 $as_echo_n "checking for $ac_word... " >&6; } |
|
4128 if test "${ac_cv_prog_CC+set}" = set; then |
|
4129 $as_echo_n "(cached) " >&6 |
|
4130 else |
|
4131 if test -n "$CC"; then |
|
4132 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
4133 else |
|
4134 ac_prog_rejected=no |
|
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4136 for as_dir in $PATH |
|
4137 do |
|
4138 IFS=$as_save_IFS |
|
4139 test -z "$as_dir" && as_dir=. |
|
4140 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
4143 ac_prog_rejected=yes |
|
4144 continue |
|
4145 fi |
|
4146 ac_cv_prog_CC="cc" |
|
4147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4148 break 2 |
|
4149 fi |
|
4150 done |
|
4151 done |
|
4152 IFS=$as_save_IFS |
|
4153 |
|
4154 if test $ac_prog_rejected = yes; then |
|
4155 # We found a bogon in the path, so make sure we never use it. |
|
4156 set dummy $ac_cv_prog_CC |
|
4157 shift |
|
4158 if test $# != 0; then |
|
4159 # We chose a different compiler from the bogus one. |
|
4160 # However, it has the same basename, so the bogon will be chosen |
|
4161 # first if we set CC to just the basename; use the full file name. |
|
4162 shift |
|
4163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
4164 fi |
|
4165 fi |
|
4166 fi |
|
4167 fi |
|
4168 CC=$ac_cv_prog_CC |
|
4169 if test -n "$CC"; then |
|
4170 { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
4171 $as_echo "$CC" >&6; } |
|
4172 else |
|
4173 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
4174 $as_echo "no" >&6; } |
|
4175 fi |
|
4176 |
|
4177 |
|
4178 fi |
|
4179 if test -z "$CC"; then |
|
4180 if test -n "$ac_tool_prefix"; then |
|
4181 for ac_prog in cl.exe |
|
4182 do |
|
4183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
4184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
4185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
4186 $as_echo_n "checking for $ac_word... " >&6; } |
|
4187 if test "${ac_cv_prog_CC+set}" = set; then |
|
4188 $as_echo_n "(cached) " >&6 |
|
4189 else |
|
4190 if test -n "$CC"; then |
|
4191 ac_cv_prog_CC="$CC" # Let the user override the test. |
|
4192 else |
|
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4194 for as_dir in $PATH |
|
4195 do |
|
4196 IFS=$as_save_IFS |
|
4197 test -z "$as_dir" && as_dir=. |
|
4198 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
4201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4202 break 2 |
|
4203 fi |
|
4204 done |
|
4205 done |
|
4206 IFS=$as_save_IFS |
|
4207 |
|
4208 fi |
|
4209 fi |
|
4210 CC=$ac_cv_prog_CC |
|
4211 if test -n "$CC"; then |
|
4212 { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
|
4213 $as_echo "$CC" >&6; } |
|
4214 else |
|
4215 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
4216 $as_echo "no" >&6; } |
|
4217 fi |
|
4218 |
|
4219 |
|
4220 test -n "$CC" && break |
|
4221 done |
|
4222 fi |
|
4223 if test -z "$CC"; then |
|
4224 ac_ct_CC=$CC |
|
4225 for ac_prog in cl.exe |
|
4226 do |
|
4227 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4228 set dummy $ac_prog; ac_word=$2 |
|
4229 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
4230 $as_echo_n "checking for $ac_word... " >&6; } |
|
4231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
4232 $as_echo_n "(cached) " >&6 |
|
4233 else |
|
4234 if test -n "$ac_ct_CC"; then |
|
4235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
4236 else |
|
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4238 for as_dir in $PATH |
|
4239 do |
|
4240 IFS=$as_save_IFS |
|
4241 test -z "$as_dir" && as_dir=. |
|
4242 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4244 ac_cv_prog_ac_ct_CC="$ac_prog" |
|
4245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4246 break 2 |
|
4247 fi |
|
4248 done |
|
4249 done |
|
4250 IFS=$as_save_IFS |
|
4251 |
|
4252 fi |
|
4253 fi |
|
4254 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
4255 if test -n "$ac_ct_CC"; then |
|
4256 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
4257 $as_echo "$ac_ct_CC" >&6; } |
|
4258 else |
|
4259 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
4260 $as_echo "no" >&6; } |
|
4261 fi |
|
4262 |
|
4263 |
|
4264 test -n "$ac_ct_CC" && break |
|
4265 done |
|
4266 |
|
4267 if test "x$ac_ct_CC" = x; then |
|
4268 CC="" |
|
4269 else |
|
4270 case $cross_compiling:$ac_tool_warned in |
|
4271 yes:) |
|
4272 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
4273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
4274 ac_tool_warned=yes ;; |
|
4275 esac |
|
4276 CC=$ac_ct_CC |
|
4277 fi |
|
4278 fi |
|
4279 |
|
4280 fi |
|
4281 |
|
4282 |
|
4283 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
|
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
4285 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|
4286 See \`config.log' for more details." >&5 |
|
4287 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
4288 See \`config.log' for more details." >&2;} |
|
4289 { (exit 1); exit 1; }; }; } |
|
4290 |
|
4291 # Provide some information about the compiler. |
|
4292 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
|
4293 set X $ac_compile |
|
4294 ac_compiler=$2 |
|
4295 { (ac_try="$ac_compiler --version >&5" |
|
4296 case "(($ac_try" in |
|
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4298 *) ac_try_echo=$ac_try;; |
|
4299 esac |
|
4300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4301 $as_echo "$ac_try_echo") >&5 |
|
4302 (eval "$ac_compiler --version >&5") 2>&5 |
|
4303 ac_status=$? |
|
4304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4305 (exit $ac_status); } |
|
4306 { (ac_try="$ac_compiler -v >&5" |
|
4307 case "(($ac_try" in |
|
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4309 *) ac_try_echo=$ac_try;; |
|
4310 esac |
|
4311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4312 $as_echo "$ac_try_echo") >&5 |
|
4313 (eval "$ac_compiler -v >&5") 2>&5 |
|
4314 ac_status=$? |
|
4315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4316 (exit $ac_status); } |
|
4317 { (ac_try="$ac_compiler -V >&5" |
|
4318 case "(($ac_try" in |
|
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4320 *) ac_try_echo=$ac_try;; |
|
4321 esac |
|
4322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4323 $as_echo "$ac_try_echo") >&5 |
|
4324 (eval "$ac_compiler -V >&5") 2>&5 |
|
4325 ac_status=$? |
|
4326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4327 (exit $ac_status); } |
|
4328 |
|
4329 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
4330 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
|
4331 if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
4332 $as_echo_n "(cached) " >&6 |
|
4333 else |
|
4334 cat >conftest.$ac_ext <<_ACEOF |
|
4335 /* confdefs.h. */ |
|
4336 _ACEOF |
|
4337 cat confdefs.h >>conftest.$ac_ext |
|
4338 cat >>conftest.$ac_ext <<_ACEOF |
|
4339 /* end confdefs.h. */ |
|
4340 |
|
4341 int |
|
4342 main () |
|
4343 { |
|
4344 #ifndef __GNUC__ |
|
4345 choke me |
|
4346 #endif |
|
4347 |
|
4348 ; |
|
4349 return 0; |
|
4350 } |
|
4351 _ACEOF |
|
4352 rm -f conftest.$ac_objext |
|
4353 if { (ac_try="$ac_compile" |
|
4354 case "(($ac_try" in |
|
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4356 *) ac_try_echo=$ac_try;; |
|
4357 esac |
|
4358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4359 $as_echo "$ac_try_echo") >&5 |
|
4360 (eval "$ac_compile") 2>conftest.er1 |
|
4361 ac_status=$? |
|
4362 grep -v '^ *+' conftest.er1 >conftest.err |
|
4363 rm -f conftest.er1 |
|
4364 cat conftest.err >&5 |
|
4365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4366 (exit $ac_status); } && { |
|
4367 test -z "$ac_c_werror_flag" || |
|
4368 test ! -s conftest.err |
|
4369 } && test -s conftest.$ac_objext; then |
|
4370 ac_compiler_gnu=yes |
|
4371 else |
|
4372 $as_echo "$as_me: failed program was:" >&5 |
|
4373 sed 's/^/| /' conftest.$ac_ext >&5 |
|
4374 |
|
4375 ac_compiler_gnu=no |
|
4376 fi |
|
4377 |
|
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4379 ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
4380 |
|
4381 fi |
|
4382 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
4383 $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
|
4384 if test $ac_compiler_gnu = yes; then |
|
4385 GCC=yes |
|
4386 else |
|
4387 GCC= |
|
4388 fi |
|
4389 ac_test_CFLAGS=${CFLAGS+set} |
|
4390 ac_save_CFLAGS=$CFLAGS |
|
4391 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
4392 $as_echo_n "checking whether $CC accepts -g... " >&6; } |
|
4393 if test "${ac_cv_prog_cc_g+set}" = set; then |
|
4394 $as_echo_n "(cached) " >&6 |
|
4395 else |
|
4396 ac_save_c_werror_flag=$ac_c_werror_flag |
|
4397 ac_c_werror_flag=yes |
|
4398 ac_cv_prog_cc_g=no |
|
4399 CFLAGS="-g" |
|
4400 cat >conftest.$ac_ext <<_ACEOF |
|
4401 /* confdefs.h. */ |
|
4402 _ACEOF |
|
4403 cat confdefs.h >>conftest.$ac_ext |
|
4404 cat >>conftest.$ac_ext <<_ACEOF |
|
4405 /* end confdefs.h. */ |
|
4406 |
|
4407 int |
|
4408 main () |
|
4409 { |
|
4410 |
|
4411 ; |
|
4412 return 0; |
|
4413 } |
|
4414 _ACEOF |
|
4415 rm -f conftest.$ac_objext |
|
4416 if { (ac_try="$ac_compile" |
|
4417 case "(($ac_try" in |
|
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4419 *) ac_try_echo=$ac_try;; |
|
4420 esac |
|
4421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4422 $as_echo "$ac_try_echo") >&5 |
|
4423 (eval "$ac_compile") 2>conftest.er1 |
|
4424 ac_status=$? |
|
4425 grep -v '^ *+' conftest.er1 >conftest.err |
|
4426 rm -f conftest.er1 |
|
4427 cat conftest.err >&5 |
|
4428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4429 (exit $ac_status); } && { |
|
4430 test -z "$ac_c_werror_flag" || |
|
4431 test ! -s conftest.err |
|
4432 } && test -s conftest.$ac_objext; then |
|
4433 ac_cv_prog_cc_g=yes |
|
4434 else |
|
4435 $as_echo "$as_me: failed program was:" >&5 |
|
4436 sed 's/^/| /' conftest.$ac_ext >&5 |
|
4437 |
|
4438 CFLAGS="" |
|
4439 cat >conftest.$ac_ext <<_ACEOF |
|
4440 /* confdefs.h. */ |
|
4441 _ACEOF |
|
4442 cat confdefs.h >>conftest.$ac_ext |
|
4443 cat >>conftest.$ac_ext <<_ACEOF |
|
4444 /* end confdefs.h. */ |
|
4445 |
|
4446 int |
|
4447 main () |
|
4448 { |
|
4449 |
|
4450 ; |
|
4451 return 0; |
|
4452 } |
|
4453 _ACEOF |
|
4454 rm -f conftest.$ac_objext |
|
4455 if { (ac_try="$ac_compile" |
|
4456 case "(($ac_try" in |
|
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4458 *) ac_try_echo=$ac_try;; |
|
4459 esac |
|
4460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4461 $as_echo "$ac_try_echo") >&5 |
|
4462 (eval "$ac_compile") 2>conftest.er1 |
|
4463 ac_status=$? |
|
4464 grep -v '^ *+' conftest.er1 >conftest.err |
|
4465 rm -f conftest.er1 |
|
4466 cat conftest.err >&5 |
|
4467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4468 (exit $ac_status); } && { |
|
4469 test -z "$ac_c_werror_flag" || |
|
4470 test ! -s conftest.err |
|
4471 } && test -s conftest.$ac_objext; then |
|
4472 : |
|
4473 else |
|
4474 $as_echo "$as_me: failed program was:" >&5 |
|
4475 sed 's/^/| /' conftest.$ac_ext >&5 |
|
4476 |
|
4477 ac_c_werror_flag=$ac_save_c_werror_flag |
|
4478 CFLAGS="-g" |
|
4479 cat >conftest.$ac_ext <<_ACEOF |
|
4480 /* confdefs.h. */ |
|
4481 _ACEOF |
|
4482 cat confdefs.h >>conftest.$ac_ext |
|
4483 cat >>conftest.$ac_ext <<_ACEOF |
|
4484 /* end confdefs.h. */ |
|
4485 |
|
4486 int |
|
4487 main () |
|
4488 { |
|
4489 |
|
4490 ; |
|
4491 return 0; |
|
4492 } |
|
4493 _ACEOF |
|
4494 rm -f conftest.$ac_objext |
|
4495 if { (ac_try="$ac_compile" |
|
4496 case "(($ac_try" in |
|
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4498 *) ac_try_echo=$ac_try;; |
|
4499 esac |
|
4500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4501 $as_echo "$ac_try_echo") >&5 |
|
4502 (eval "$ac_compile") 2>conftest.er1 |
|
4503 ac_status=$? |
|
4504 grep -v '^ *+' conftest.er1 >conftest.err |
|
4505 rm -f conftest.er1 |
|
4506 cat conftest.err >&5 |
|
4507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4508 (exit $ac_status); } && { |
|
4509 test -z "$ac_c_werror_flag" || |
|
4510 test ! -s conftest.err |
|
4511 } && test -s conftest.$ac_objext; then |
|
4512 ac_cv_prog_cc_g=yes |
|
4513 else |
|
4514 $as_echo "$as_me: failed program was:" >&5 |
|
4515 sed 's/^/| /' conftest.$ac_ext >&5 |
|
4516 |
|
4517 |
|
4518 fi |
|
4519 |
|
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4521 fi |
|
4522 |
|
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4524 fi |
|
4525 |
|
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
4527 ac_c_werror_flag=$ac_save_c_werror_flag |
|
4528 fi |
|
4529 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
4530 $as_echo "$ac_cv_prog_cc_g" >&6; } |
|
4531 if test "$ac_test_CFLAGS" = set; then |
|
4532 CFLAGS=$ac_save_CFLAGS |
|
4533 elif test $ac_cv_prog_cc_g = yes; then |
|
4534 if test "$GCC" = yes; then |
|
4535 CFLAGS="-g -O2" |
|
4536 else |
|
4537 CFLAGS="-g" |
|
4538 fi |
|
4539 else |
|
4540 if test "$GCC" = yes; then |
|
4541 CFLAGS="-O2" |
|
4542 else |
|
4543 CFLAGS= |
|
4544 fi |
|
4545 fi |
|
4546 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
|
4547 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
|
4548 if test "${ac_cv_prog_cc_c89+set}" = set; then |
|
4549 $as_echo_n "(cached) " >&6 |
|
4550 else |
|
4551 ac_cv_prog_cc_c89=no |
|
4552 ac_save_CC=$CC |
|
4553 cat >conftest.$ac_ext <<_ACEOF |
|
4554 /* confdefs.h. */ |
|
4555 _ACEOF |
|
4556 cat confdefs.h >>conftest.$ac_ext |
|
4557 cat >>conftest.$ac_ext <<_ACEOF |
|
4558 /* end confdefs.h. */ |
|
4559 #include <stdarg.h> |
|
4560 #include <stdio.h> |
|
4561 #include <sys/types.h> |
|
4562 #include <sys/stat.h> |
|
4563 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
4564 struct buf { int x; }; |
|
4565 FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
4566 static char *e (p, i) |
|
4567 char **p; |
|
4568 int i; |
|
4569 { |
|
4570 return p[i]; |
|
4571 } |
|
4572 static char *f (char * (*g) (char **, int), char **p, ...) |
|
4573 { |
|
4574 char *s; |
|
4575 va_list v; |
|
4576 va_start (v,p); |
|
4577 s = g (p, va_arg (v,int)); |
|
4578 va_end (v); |
|
4579 return s; |
|
4580 } |
|
4581 |
|
4582 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
4583 function prototypes and stuff, but not '\xHH' hex character constants. |
|
4584 These don't provoke an error unfortunately, instead are silently treated |
|
4585 as 'x'. The following induces an error, until -std is added to get |
|
4586 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
4587 array size at least. It's necessary to write '\x00'==0 to get something |
|
4588 that's true only with -std. */ |
|
4589 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
4590 |
|
4591 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
4592 inside strings and character constants. */ |
|
4593 #define FOO(x) 'x' |
|
4594 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
4595 |
|
4596 int test (int i, double x); |
|
4597 struct s1 {int (*f) (int a);}; |
|
4598 struct s2 {int (*f) (double a);}; |
|
4599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
4600 int argc; |
|
4601 char **argv; |
|
4602 int |
|
4603 main () |
|
4604 { |
|
4605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
4606 ; |
|
4607 return 0; |
|
4608 } |
|
4609 _ACEOF |
|
4610 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
4611 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
4612 do |
|
4613 CC="$ac_save_CC $ac_arg" |
|
4614 rm -f conftest.$ac_objext |
|
4615 if { (ac_try="$ac_compile" |
|
4616 case "(($ac_try" in |
|
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4618 *) ac_try_echo=$ac_try;; |
|
4619 esac |
|
4620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4621 $as_echo "$ac_try_echo") >&5 |
|
4622 (eval "$ac_compile") 2>conftest.er1 |
|
4623 ac_status=$? |
|
4624 grep -v '^ *+' conftest.er1 >conftest.err |
|
4625 rm -f conftest.er1 |
|
4626 cat conftest.err >&5 |
|
4627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4628 (exit $ac_status); } && { |
|
4629 test -z "$ac_c_werror_flag" || |
|
4630 test ! -s conftest.err |
|
4631 } && test -s conftest.$ac_objext; then |
|
4632 ac_cv_prog_cc_c89=$ac_arg |
|
4633 else |
|
4634 $as_echo "$as_me: failed program was:" >&5 |
|
4635 sed 's/^/| /' conftest.$ac_ext >&5 |
|
4636 |
|
4637 |
|
4638 fi |
|
4639 |
|
4640 rm -f core conftest.err conftest.$ac_objext |
|
4641 test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
4642 done |
|
4643 rm -f conftest.$ac_ext |
|
4644 CC=$ac_save_CC |
|
4645 |
|
4646 fi |
|
4647 # AC_CACHE_VAL |
|
4648 case "x$ac_cv_prog_cc_c89" in |
|
4649 x) |
|
4650 { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
|
4651 $as_echo "none needed" >&6; } ;; |
|
4652 xno) |
|
4653 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
|
4654 $as_echo "unsupported" >&6; } ;; |
|
4655 *) |
|
4656 CC="$CC $ac_cv_prog_cc_c89" |
|
4657 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
|
4658 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
|
4659 esac |
|
4660 |
|
4661 |
|
4662 ac_ext=c |
|
4663 ac_cpp='$CPP $CPPFLAGS' |
|
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4667 |
|
4668 depcc="$CC" am_compiler_list= |
|
4669 |
|
4670 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
4671 $as_echo_n "checking dependency style of $depcc... " >&6; } |
|
4672 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
|
4673 $as_echo_n "(cached) " >&6 |
|
4674 else |
|
4675 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
4676 # We make a subdir and do the tests there. Otherwise we can end up |
|
4677 # making bogus files that we don't know about and never remove. For |
|
4678 # instance it was reported that on HP-UX the gcc test will end up |
|
4679 # making a dummy file named `D' -- because `-MD' means `put the output |
|
4680 # in D'. |
|
4681 mkdir conftest.dir |
|
4682 # Copy depcomp to subdir because otherwise we won't find it if we're |
|
4683 # using a relative directory. |
|
4684 cp "$am_depcomp" conftest.dir |
|
4685 cd conftest.dir |
|
4686 # We will build objects and dependencies in a subdirectory because |
|
4687 # it helps to detect inapplicable dependency modes. For instance |
|
4688 # both Tru64's cc and ICC support -MD to output dependencies as a |
|
4689 # side effect of compilation, but ICC will put the dependencies in |
|
4690 # the current directory while Tru64 will put them in the object |
|
4691 # directory. |
|
4692 mkdir sub |
|
4693 |
|
4694 am_cv_CC_dependencies_compiler_type=none |
|
4695 if test "$am_compiler_list" = ""; then |
|
4696 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
4697 fi |
|
4698 for depmode in $am_compiler_list; do |
|
4699 # Setup a source with many dependencies, because some compilers |
|
4700 # like to wrap large dependency lists on column 80 (with \), and |
|
4701 # we should not choose a depcomp mode which is confused by this. |
|
4702 # |
|
4703 # We need to recreate these files for each test, as the compiler may |
|
4704 # overwrite some of them when testing with obscure command lines. |
|
4705 # This happens at least with the AIX C compiler. |
|
4706 : > sub/conftest.c |
|
4707 for i in 1 2 3 4 5 6; do |
|
4708 echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
4709 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
4710 # Solaris 8's {/usr,}/bin/sh. |
|
4711 touch sub/conftst$i.h |
|
4712 done |
|
4713 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
4714 |
|
4715 case $depmode in |
|
4716 nosideeffect) |
|
4717 # after this tag, mechanisms are not by side-effect, so they'll |
|
4718 # only be used when explicitly requested |
|
4719 if test "x$enable_dependency_tracking" = xyes; then |
|
4720 continue |
|
4721 else |
|
4722 break |
|
4723 fi |
|
4724 ;; |
|
4725 none) break ;; |
|
4726 esac |
|
4727 # We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
4728 # mode. It turns out that the SunPro C++ compiler does not properly |
|
4729 # handle `-M -o', and we need to detect this. |
|
4730 if depmode=$depmode \ |
|
4731 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
4732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
4733 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
4734 >/dev/null 2>conftest.err && |
|
4735 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
|
4736 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
4737 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
4738 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
4739 # icc doesn't choke on unknown options, it will just issue warnings |
|
4740 # or remarks (even with -Werror). So we grep stderr for any message |
|
4741 # that says an option was ignored or not supported. |
|
4742 # When given -MP, icc 7.0 and 7.1 complain thusly: |
|
4743 # icc: Command line warning: ignoring option '-M'; no argument required |
|
4744 # The diagnosis changed in icc 8.0: |
|
4745 # icc: Command line remark: option '-MP' not supported |
|
4746 if (grep 'ignoring option' conftest.err || |
|
4747 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
4748 am_cv_CC_dependencies_compiler_type=$depmode |
|
4749 break |
|
4750 fi |
|
4751 fi |
|
4752 done |
|
4753 |
|
4754 cd .. |
|
4755 rm -rf conftest.dir |
|
4756 else |
|
4757 am_cv_CC_dependencies_compiler_type=none |
|
4758 fi |
|
4759 |
|
4760 fi |
|
4761 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
|
4762 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
|
4763 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
|
4764 |
|
4765 if |
|
4766 test "x$enable_dependency_tracking" != xno \ |
|
4767 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
|
4768 am__fastdepCC_TRUE= |
|
4769 am__fastdepCC_FALSE='#' |
|
4770 else |
|
4771 am__fastdepCC_TRUE='#' |
|
4772 am__fastdepCC_FALSE= |
|
4773 fi |
|
4774 |
|
4775 |
|
4776 ac_ext=c |
|
4777 ac_cpp='$CPP $CPPFLAGS' |
|
4778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
4779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
4780 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
4781 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
|
4782 $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
4783 # On Suns, sometimes $CPP names a directory. |
|
4784 if test -n "$CPP" && test -d "$CPP"; then |
|
4785 CPP= |
|
4786 fi |
|
4787 if test -z "$CPP"; then |
|
4788 if test "${ac_cv_prog_CPP+set}" = set; then |
|
4789 $as_echo_n "(cached) " >&6 |
|
4790 else |
|
4791 # Double quotes because CPP needs to be expanded |
|
4792 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
4793 do |
|
4794 ac_preproc_ok=false |
|
4795 for ac_c_preproc_warn_flag in '' yes |
|
4796 do |
|
4797 # Use a header file that comes with gcc, so configuring glibc |
|
4798 # with a fresh cross-compiler works. |
|
4799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
4800 # <limits.h> exists even on freestanding compilers. |
|
4801 # On the NeXT, cc -E runs the code through the compiler's parser, |
|
4802 # not just through cpp. "Syntax error" is here to catch this case. |
|
4803 cat >conftest.$ac_ext <<_ACEOF |
|
4804 /* confdefs.h. */ |
|
4805 _ACEOF |
|
4806 cat confdefs.h >>conftest.$ac_ext |
|
4807 cat >>conftest.$ac_ext <<_ACEOF |
|
4808 /* end confdefs.h. */ |
|
4809 #ifdef __STDC__ |
|
4810 # include <limits.h> |
|
4811 #else |
|
4812 # include <assert.h> |
|
4813 #endif |
|
4814 Syntax error |
|
4815 _ACEOF |
|
4816 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
4817 case "(($ac_try" in |
|
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4819 *) ac_try_echo=$ac_try;; |
|
4820 esac |
|
4821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4822 $as_echo "$ac_try_echo") >&5 |
|
4823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
4824 ac_status=$? |
|
4825 grep -v '^ *+' conftest.er1 >conftest.err |
|
4826 rm -f conftest.er1 |
|
4827 cat conftest.err >&5 |
|
4828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4829 (exit $ac_status); } >/dev/null && { |
|
4830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
4831 test ! -s conftest.err |
|
4832 }; then |
|
4833 : |
|
4834 else |
|
4835 $as_echo "$as_me: failed program was:" >&5 |
|
4836 sed 's/^/| /' conftest.$ac_ext >&5 |
|
4837 |
|
4838 # Broken: fails on valid input. |
|
4839 continue |
|
4840 fi |
|
4841 |
|
4842 rm -f conftest.err conftest.$ac_ext |
|
4843 |
|
4844 # OK, works on sane cases. Now check whether nonexistent headers |
|
4845 # can be detected and how. |
|
4846 cat >conftest.$ac_ext <<_ACEOF |
|
4847 /* confdefs.h. */ |
|
4848 _ACEOF |
|
4849 cat confdefs.h >>conftest.$ac_ext |
|
4850 cat >>conftest.$ac_ext <<_ACEOF |
|
4851 /* end confdefs.h. */ |
|
4852 #include <ac_nonexistent.h> |
|
4853 _ACEOF |
|
4854 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
4855 case "(($ac_try" in |
|
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4857 *) ac_try_echo=$ac_try;; |
|
4858 esac |
|
4859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4860 $as_echo "$ac_try_echo") >&5 |
|
4861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
4862 ac_status=$? |
|
4863 grep -v '^ *+' conftest.er1 >conftest.err |
|
4864 rm -f conftest.er1 |
|
4865 cat conftest.err >&5 |
|
4866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4867 (exit $ac_status); } >/dev/null && { |
|
4868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
4869 test ! -s conftest.err |
|
4870 }; then |
|
4871 # Broken: success on invalid input. |
|
4872 continue |
|
4873 else |
|
4874 $as_echo "$as_me: failed program was:" >&5 |
|
4875 sed 's/^/| /' conftest.$ac_ext >&5 |
|
4876 |
|
4877 # Passes both tests. |
|
4878 ac_preproc_ok=: |
|
4879 break |
|
4880 fi |
|
4881 |
|
4882 rm -f conftest.err conftest.$ac_ext |
|
4883 |
|
4884 done |
|
4885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
4886 rm -f conftest.err conftest.$ac_ext |
|
4887 if $ac_preproc_ok; then |
|
4888 break |
|
4889 fi |
|
4890 |
|
4891 done |
|
4892 ac_cv_prog_CPP=$CPP |
|
4893 |
|
4894 fi |
|
4895 CPP=$ac_cv_prog_CPP |
|
4896 else |
|
4897 ac_cv_prog_CPP=$CPP |
|
4898 fi |
|
4899 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
|
4900 $as_echo "$CPP" >&6; } |
|
4901 ac_preproc_ok=false |
|
4902 for ac_c_preproc_warn_flag in '' yes |
|
4903 do |
|
4904 # Use a header file that comes with gcc, so configuring glibc |
|
4905 # with a fresh cross-compiler works. |
|
4906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
4907 # <limits.h> exists even on freestanding compilers. |
|
4908 # On the NeXT, cc -E runs the code through the compiler's parser, |
|
4909 # not just through cpp. "Syntax error" is here to catch this case. |
|
4910 cat >conftest.$ac_ext <<_ACEOF |
|
4911 /* confdefs.h. */ |
|
4912 _ACEOF |
|
4913 cat confdefs.h >>conftest.$ac_ext |
|
4914 cat >>conftest.$ac_ext <<_ACEOF |
|
4915 /* end confdefs.h. */ |
|
4916 #ifdef __STDC__ |
|
4917 # include <limits.h> |
|
4918 #else |
|
4919 # include <assert.h> |
|
4920 #endif |
|
4921 Syntax error |
|
4922 _ACEOF |
|
4923 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
4924 case "(($ac_try" in |
|
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4926 *) ac_try_echo=$ac_try;; |
|
4927 esac |
|
4928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4929 $as_echo "$ac_try_echo") >&5 |
|
4930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
4931 ac_status=$? |
|
4932 grep -v '^ *+' conftest.er1 >conftest.err |
|
4933 rm -f conftest.er1 |
|
4934 cat conftest.err >&5 |
|
4935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4936 (exit $ac_status); } >/dev/null && { |
|
4937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
4938 test ! -s conftest.err |
|
4939 }; then |
|
4940 : |
|
4941 else |
|
4942 $as_echo "$as_me: failed program was:" >&5 |
|
4943 sed 's/^/| /' conftest.$ac_ext >&5 |
|
4944 |
|
4945 # Broken: fails on valid input. |
|
4946 continue |
|
4947 fi |
|
4948 |
|
4949 rm -f conftest.err conftest.$ac_ext |
|
4950 |
|
4951 # OK, works on sane cases. Now check whether nonexistent headers |
|
4952 # can be detected and how. |
|
4953 cat >conftest.$ac_ext <<_ACEOF |
|
4954 /* confdefs.h. */ |
|
4955 _ACEOF |
|
4956 cat confdefs.h >>conftest.$ac_ext |
|
4957 cat >>conftest.$ac_ext <<_ACEOF |
|
4958 /* end confdefs.h. */ |
|
4959 #include <ac_nonexistent.h> |
|
4960 _ACEOF |
|
4961 if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
4962 case "(($ac_try" in |
|
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
4964 *) ac_try_echo=$ac_try;; |
|
4965 esac |
|
4966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
4967 $as_echo "$ac_try_echo") >&5 |
|
4968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
4969 ac_status=$? |
|
4970 grep -v '^ *+' conftest.er1 >conftest.err |
|
4971 rm -f conftest.er1 |
|
4972 cat conftest.err >&5 |
|
4973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
4974 (exit $ac_status); } >/dev/null && { |
|
4975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
4976 test ! -s conftest.err |
|
4977 }; then |
|
4978 # Broken: success on invalid input. |
|
4979 continue |
|
4980 else |
|
4981 $as_echo "$as_me: failed program was:" >&5 |
|
4982 sed 's/^/| /' conftest.$ac_ext >&5 |
|
4983 |
|
4984 # Passes both tests. |
|
4985 ac_preproc_ok=: |
|
4986 break |
|
4987 fi |
|
4988 |
|
4989 rm -f conftest.err conftest.$ac_ext |
|
4990 |
|
4991 done |
|
4992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
4993 rm -f conftest.err conftest.$ac_ext |
|
4994 if $ac_preproc_ok; then |
|
4995 : |
|
4996 else |
|
4997 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
|
4998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
4999 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
|
5000 See \`config.log' for more details." >&5 |
|
5001 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
5002 See \`config.log' for more details." >&2;} |
|
5003 { (exit 1); exit 1; }; }; } |
|
5004 fi |
|
5005 |
|
5006 ac_ext=c |
|
5007 ac_cpp='$CPP $CPPFLAGS' |
|
5008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5010 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5011 |
|
5012 # Find a good install program. We prefer a C program (faster), |
|
5013 # so one script is as good as another. But avoid the broken or |
|
5014 # incompatible versions: |
|
5015 # SysV /etc/install, /usr/sbin/install |
|
5016 # SunOS /usr/etc/install |
|
5017 # IRIX /sbin/install |
|
5018 # AIX /bin/install |
|
5019 # AmigaOS /C/install, which installs bootblocks on floppy discs |
|
5020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
5021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
5022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
5023 # OS/2's system install, which has a completely different semantic |
|
5024 # ./install, which can be erroneously created by make from ./install.sh. |
|
5025 # Reject install programs that cannot install multiple files. |
|
5026 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
|
5027 $as_echo_n "checking for a BSD-compatible install... " >&6; } |
|
5028 if test -z "$INSTALL"; then |
|
5029 if test "${ac_cv_path_install+set}" = set; then |
|
5030 $as_echo_n "(cached) " >&6 |
|
5031 else |
|
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5033 for as_dir in $PATH |
|
5034 do |
|
5035 IFS=$as_save_IFS |
|
5036 test -z "$as_dir" && as_dir=. |
|
5037 # Account for people who put trailing slashes in PATH elements. |
|
5038 case $as_dir/ in |
|
5039 ./ | .// | /cC/* | \ |
|
5040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|
5041 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
|
5042 /usr/ucb/* ) ;; |
|
5043 *) |
|
5044 # OSF1 and SCO ODT 3.0 have their own names for install. |
|
5045 # Don't use installbsd from OSF since it installs stuff as root |
|
5046 # by default. |
|
5047 for ac_prog in ginstall scoinst install; do |
|
5048 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
|
5050 if test $ac_prog = install && |
|
5051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
5052 # AIX install. It has an incompatible calling convention. |
|
5053 : |
|
5054 elif test $ac_prog = install && |
|
5055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
5056 # program-specific install script used by HP pwplus--don't use. |
|
5057 : |
|
5058 else |
|
5059 rm -rf conftest.one conftest.two conftest.dir |
|
5060 echo one > conftest.one |
|
5061 echo two > conftest.two |
|
5062 mkdir conftest.dir |
|
5063 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
|
5064 test -s conftest.one && test -s conftest.two && |
|
5065 test -s conftest.dir/conftest.one && |
|
5066 test -s conftest.dir/conftest.two |
|
5067 then |
|
5068 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|
5069 break 3 |
|
5070 fi |
|
5071 fi |
|
5072 fi |
|
5073 done |
|
5074 done |
|
5075 ;; |
|
5076 esac |
|
5077 |
|
5078 done |
|
5079 IFS=$as_save_IFS |
|
5080 |
|
5081 rm -rf conftest.one conftest.two conftest.dir |
|
5082 |
|
5083 fi |
|
5084 if test "${ac_cv_path_install+set}" = set; then |
|
5085 INSTALL=$ac_cv_path_install |
|
5086 else |
|
5087 # As a last resort, use the slow shell script. Don't cache a |
|
5088 # value for INSTALL within a source directory, because that will |
|
5089 # break other packages using the cache if that directory is |
|
5090 # removed, or if the value is a relative name. |
|
5091 INSTALL=$ac_install_sh |
|
5092 fi |
|
5093 fi |
|
5094 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
|
5095 $as_echo "$INSTALL" >&6; } |
|
5096 |
|
5097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
5098 # It thinks the first close brace ends the variable substitution. |
|
5099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
5100 |
|
5101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|
5102 |
|
5103 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
5104 |
|
5105 # Check whether --enable-static was given. |
|
5106 if test "${enable_static+set}" = set; then |
|
5107 enableval=$enable_static; p=${PACKAGE-default} |
|
5108 case $enableval in |
|
5109 yes) enable_static=yes ;; |
|
5110 no) enable_static=no ;; |
|
5111 *) |
|
5112 enable_static=no |
|
5113 # Look at the argument we got. We use all the common list separators. |
|
5114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
5115 for pkg in $enableval; do |
|
5116 IFS="$lt_save_ifs" |
|
5117 if test "X$pkg" = "X$p"; then |
|
5118 enable_static=yes |
|
5119 fi |
|
5120 done |
|
5121 IFS="$lt_save_ifs" |
|
5122 ;; |
|
5123 esac |
|
5124 else |
|
5125 enable_static=no |
|
5126 fi |
|
5127 |
|
5128 |
|
5129 |
|
5130 |
|
5131 |
|
5132 |
|
5133 |
|
5134 |
|
5135 |
|
5136 case `pwd` in |
|
5137 *\ * | *\ *) |
|
5138 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
|
5139 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
|
5140 esac |
|
5141 |
|
5142 |
|
5143 |
|
5144 macro_version='2.2.6' |
|
5145 macro_revision='1.3012' |
|
5146 |
|
5147 |
|
5148 |
|
5149 |
|
5150 |
|
5151 |
|
5152 |
|
5153 |
|
5154 |
|
5155 |
|
5156 |
|
5157 |
|
5158 |
|
5159 ltmain="$ac_aux_dir/ltmain.sh" |
|
5160 |
|
5161 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
|
5162 $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
|
5163 if test "${ac_cv_path_SED+set}" = set; then |
|
5164 $as_echo_n "(cached) " >&6 |
|
5165 else |
|
5166 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
|
5167 for ac_i in 1 2 3 4 5 6 7; do |
|
5168 ac_script="$ac_script$as_nl$ac_script" |
|
5169 done |
|
5170 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
|
5171 $as_unset ac_script || ac_script= |
|
5172 if test -z "$SED"; then |
|
5173 ac_path_SED_found=false |
|
5174 # Loop through the user's path and test for each of PROGNAME-LIST |
|
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5176 for as_dir in $PATH |
|
5177 do |
|
5178 IFS=$as_save_IFS |
|
5179 test -z "$as_dir" && as_dir=. |
|
5180 for ac_prog in sed gsed; do |
|
5181 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5182 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
|
5183 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
|
5184 # Check for GNU ac_path_SED and select it if it is found. |
|
5185 # Check for GNU $ac_path_SED |
|
5186 case `"$ac_path_SED" --version 2>&1` in |
|
5187 *GNU*) |
|
5188 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
|
5189 *) |
|
5190 ac_count=0 |
|
5191 $as_echo_n 0123456789 >"conftest.in" |
|
5192 while : |
|
5193 do |
|
5194 cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
5195 mv "conftest.tmp" "conftest.in" |
|
5196 cp "conftest.in" "conftest.nl" |
|
5197 $as_echo '' >> "conftest.nl" |
|
5198 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
5200 ac_count=`expr $ac_count + 1` |
|
5201 if test $ac_count -gt ${ac_path_SED_max-0}; then |
|
5202 # Best one so far, save it but keep looking for a better one |
|
5203 ac_cv_path_SED="$ac_path_SED" |
|
5204 ac_path_SED_max=$ac_count |
|
5205 fi |
|
5206 # 10*(2^10) chars as input seems more than enough |
|
5207 test $ac_count -gt 10 && break |
|
5208 done |
|
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
5210 esac |
|
5211 |
|
5212 $ac_path_SED_found && break 3 |
|
5213 done |
|
5214 done |
|
5215 done |
|
5216 IFS=$as_save_IFS |
|
5217 if test -z "$ac_cv_path_SED"; then |
|
5218 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 |
|
5219 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} |
|
5220 { (exit 1); exit 1; }; } |
|
5221 fi |
|
5222 else |
|
5223 ac_cv_path_SED=$SED |
|
5224 fi |
|
5225 |
|
5226 fi |
|
5227 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
|
5228 $as_echo "$ac_cv_path_SED" >&6; } |
|
5229 SED="$ac_cv_path_SED" |
|
5230 rm -f conftest.sed |
|
5231 |
|
5232 test -z "$SED" && SED=sed |
|
5233 Xsed="$SED -e 1s/^X//" |
|
5234 |
|
5235 |
|
5236 |
|
5237 |
|
5238 |
|
5239 |
|
5240 |
|
5241 |
|
5242 |
|
5243 |
|
5244 |
|
5245 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
|
5246 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|
5247 if test "${ac_cv_path_GREP+set}" = set; then |
|
5248 $as_echo_n "(cached) " >&6 |
|
5249 else |
|
5250 if test -z "$GREP"; then |
|
5251 ac_path_GREP_found=false |
|
5252 # Loop through the user's path and test for each of PROGNAME-LIST |
|
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
5255 do |
|
5256 IFS=$as_save_IFS |
|
5257 test -z "$as_dir" && as_dir=. |
|
5258 for ac_prog in grep ggrep; do |
|
5259 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5260 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
5261 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
|
5262 # Check for GNU ac_path_GREP and select it if it is found. |
|
5263 # Check for GNU $ac_path_GREP |
|
5264 case `"$ac_path_GREP" --version 2>&1` in |
|
5265 *GNU*) |
|
5266 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
5267 *) |
|
5268 ac_count=0 |
|
5269 $as_echo_n 0123456789 >"conftest.in" |
|
5270 while : |
|
5271 do |
|
5272 cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
5273 mv "conftest.tmp" "conftest.in" |
|
5274 cp "conftest.in" "conftest.nl" |
|
5275 $as_echo 'GREP' >> "conftest.nl" |
|
5276 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
5277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
5278 ac_count=`expr $ac_count + 1` |
|
5279 if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
5280 # Best one so far, save it but keep looking for a better one |
|
5281 ac_cv_path_GREP="$ac_path_GREP" |
|
5282 ac_path_GREP_max=$ac_count |
|
5283 fi |
|
5284 # 10*(2^10) chars as input seems more than enough |
|
5285 test $ac_count -gt 10 && break |
|
5286 done |
|
5287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
5288 esac |
|
5289 |
|
5290 $ac_path_GREP_found && break 3 |
|
5291 done |
|
5292 done |
|
5293 done |
|
5294 IFS=$as_save_IFS |
|
5295 if test -z "$ac_cv_path_GREP"; then |
|
5296 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
5297 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
5298 { (exit 1); exit 1; }; } |
|
5299 fi |
|
5300 else |
|
5301 ac_cv_path_GREP=$GREP |
|
5302 fi |
|
5303 |
|
5304 fi |
|
5305 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
|
5306 $as_echo "$ac_cv_path_GREP" >&6; } |
|
5307 GREP="$ac_cv_path_GREP" |
|
5308 |
|
5309 |
|
5310 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
|
5311 $as_echo_n "checking for egrep... " >&6; } |
|
5312 if test "${ac_cv_path_EGREP+set}" = set; then |
|
5313 $as_echo_n "(cached) " >&6 |
|
5314 else |
|
5315 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
5316 then ac_cv_path_EGREP="$GREP -E" |
|
5317 else |
|
5318 if test -z "$EGREP"; then |
|
5319 ac_path_EGREP_found=false |
|
5320 # Loop through the user's path and test for each of PROGNAME-LIST |
|
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
5323 do |
|
5324 IFS=$as_save_IFS |
|
5325 test -z "$as_dir" && as_dir=. |
|
5326 for ac_prog in egrep; do |
|
5327 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
5329 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
|
5330 # Check for GNU ac_path_EGREP and select it if it is found. |
|
5331 # Check for GNU $ac_path_EGREP |
|
5332 case `"$ac_path_EGREP" --version 2>&1` in |
|
5333 *GNU*) |
|
5334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
5335 *) |
|
5336 ac_count=0 |
|
5337 $as_echo_n 0123456789 >"conftest.in" |
|
5338 while : |
|
5339 do |
|
5340 cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
5341 mv "conftest.tmp" "conftest.in" |
|
5342 cp "conftest.in" "conftest.nl" |
|
5343 $as_echo 'EGREP' >> "conftest.nl" |
|
5344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
5345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
5346 ac_count=`expr $ac_count + 1` |
|
5347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
5348 # Best one so far, save it but keep looking for a better one |
|
5349 ac_cv_path_EGREP="$ac_path_EGREP" |
|
5350 ac_path_EGREP_max=$ac_count |
|
5351 fi |
|
5352 # 10*(2^10) chars as input seems more than enough |
|
5353 test $ac_count -gt 10 && break |
|
5354 done |
|
5355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
5356 esac |
|
5357 |
|
5358 $ac_path_EGREP_found && break 3 |
|
5359 done |
|
5360 done |
|
5361 done |
|
5362 IFS=$as_save_IFS |
|
5363 if test -z "$ac_cv_path_EGREP"; then |
|
5364 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
5365 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
5366 { (exit 1); exit 1; }; } |
|
5367 fi |
|
5368 else |
|
5369 ac_cv_path_EGREP=$EGREP |
|
5370 fi |
|
5371 |
|
5372 fi |
|
5373 fi |
|
5374 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
|
5375 $as_echo "$ac_cv_path_EGREP" >&6; } |
|
5376 EGREP="$ac_cv_path_EGREP" |
|
5377 |
|
5378 |
|
5379 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 |
|
5380 $as_echo_n "checking for fgrep... " >&6; } |
|
5381 if test "${ac_cv_path_FGREP+set}" = set; then |
|
5382 $as_echo_n "(cached) " >&6 |
|
5383 else |
|
5384 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
|
5385 then ac_cv_path_FGREP="$GREP -F" |
|
5386 else |
|
5387 if test -z "$FGREP"; then |
|
5388 ac_path_FGREP_found=false |
|
5389 # Loop through the user's path and test for each of PROGNAME-LIST |
|
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
5392 do |
|
5393 IFS=$as_save_IFS |
|
5394 test -z "$as_dir" && as_dir=. |
|
5395 for ac_prog in fgrep; do |
|
5396 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5397 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
5398 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
|
5399 # Check for GNU ac_path_FGREP and select it if it is found. |
|
5400 # Check for GNU $ac_path_FGREP |
|
5401 case `"$ac_path_FGREP" --version 2>&1` in |
|
5402 *GNU*) |
|
5403 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
|
5404 *) |
|
5405 ac_count=0 |
|
5406 $as_echo_n 0123456789 >"conftest.in" |
|
5407 while : |
|
5408 do |
|
5409 cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
5410 mv "conftest.tmp" "conftest.in" |
|
5411 cp "conftest.in" "conftest.nl" |
|
5412 $as_echo 'FGREP' >> "conftest.nl" |
|
5413 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
5414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
5415 ac_count=`expr $ac_count + 1` |
|
5416 if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
|
5417 # Best one so far, save it but keep looking for a better one |
|
5418 ac_cv_path_FGREP="$ac_path_FGREP" |
|
5419 ac_path_FGREP_max=$ac_count |
|
5420 fi |
|
5421 # 10*(2^10) chars as input seems more than enough |
|
5422 test $ac_count -gt 10 && break |
|
5423 done |
|
5424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
5425 esac |
|
5426 |
|
5427 $ac_path_FGREP_found && break 3 |
|
5428 done |
|
5429 done |
|
5430 done |
|
5431 IFS=$as_save_IFS |
|
5432 if test -z "$ac_cv_path_FGREP"; then |
|
5433 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
5434 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
5435 { (exit 1); exit 1; }; } |
|
5436 fi |
|
5437 else |
|
5438 ac_cv_path_FGREP=$FGREP |
|
5439 fi |
|
5440 |
|
5441 fi |
|
5442 fi |
|
5443 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
|
5444 $as_echo "$ac_cv_path_FGREP" >&6; } |
|
5445 FGREP="$ac_cv_path_FGREP" |
|
5446 |
|
5447 |
|
5448 test -z "$GREP" && GREP=grep |
|
5449 |
|
5450 |
|
5451 |
|
5452 |
|
5453 |
|
5454 |
|
5455 |
|
5456 |
|
5457 |
|
5458 |
|
5459 |
|
5460 |
|
5461 |
|
5462 |
|
5463 |
|
5464 |
|
5465 |
|
5466 |
|
5467 |
|
5468 # Check whether --with-gnu-ld was given. |
|
5469 if test "${with_gnu_ld+set}" = set; then |
|
5470 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
|
5471 else |
|
5472 with_gnu_ld=no |
|
5473 fi |
|
5474 |
|
5475 ac_prog=ld |
|
5476 if test "$GCC" = yes; then |
|
5477 # Check if gcc -print-prog-name=ld gives a path. |
|
5478 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
5479 $as_echo_n "checking for ld used by $CC... " >&6; } |
|
5480 case $host in |
|
5481 *-*-mingw*) |
|
5482 # gcc leaves a trailing carriage return which upsets mingw |
|
5483 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
5484 *) |
|
5485 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
5486 esac |
|
5487 case $ac_prog in |
|
5488 # Accept absolute paths. |
|
5489 [\\/]* | ?:[\\/]*) |
|
5490 re_direlt='/[^/][^/]*/\.\./' |
|
5491 # Canonicalize the pathname of ld |
|
5492 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
|
5493 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
|
5494 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
|
5495 done |
|
5496 test -z "$LD" && LD="$ac_prog" |
|
5497 ;; |
|
5498 "") |
|
5499 # If it fails, then pretend we aren't using GCC. |
|
5500 ac_prog=ld |
|
5501 ;; |
|
5502 *) |
|
5503 # If it is relative, then search for the first ld in PATH. |
|
5504 with_gnu_ld=unknown |
|
5505 ;; |
|
5506 esac |
|
5507 elif test "$with_gnu_ld" = yes; then |
|
5508 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
5509 $as_echo_n "checking for GNU ld... " >&6; } |
|
5510 else |
|
5511 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
5512 $as_echo_n "checking for non-GNU ld... " >&6; } |
|
5513 fi |
|
5514 if test "${lt_cv_path_LD+set}" = set; then |
|
5515 $as_echo_n "(cached) " >&6 |
|
5516 else |
|
5517 if test -z "$LD"; then |
|
5518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
5519 for ac_dir in $PATH; do |
|
5520 IFS="$lt_save_ifs" |
|
5521 test -z "$ac_dir" && ac_dir=. |
|
5522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
5523 lt_cv_path_LD="$ac_dir/$ac_prog" |
|
5524 # Check to see if the program is GNU ld. I'd rather use --version, |
|
5525 # but apparently some variants of GNU ld only accept -v. |
|
5526 # Break only if it was the GNU/non-GNU ld that we prefer. |
|
5527 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
5528 *GNU* | *'with BFD'*) |
|
5529 test "$with_gnu_ld" != no && break |
|
5530 ;; |
|
5531 *) |
|
5532 test "$with_gnu_ld" != yes && break |
|
5533 ;; |
|
5534 esac |
|
5535 fi |
|
5536 done |
|
5537 IFS="$lt_save_ifs" |
|
5538 else |
|
5539 lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
5540 fi |
|
5541 fi |
|
5542 |
|
5543 LD="$lt_cv_path_LD" |
|
5544 if test -n "$LD"; then |
|
5545 { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
|
5546 $as_echo "$LD" >&6; } |
|
5547 else |
|
5548 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
5549 $as_echo "no" >&6; } |
|
5550 fi |
|
5551 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
5552 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
5553 { (exit 1); exit 1; }; } |
|
5554 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
5555 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
|
5556 if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
5557 $as_echo_n "(cached) " >&6 |
|
5558 else |
|
5559 # I'd rather use --version here, but apparently some GNU lds only accept -v. |
|
5560 case `$LD -v 2>&1 </dev/null` in |
|
5561 *GNU* | *'with BFD'*) |
|
5562 lt_cv_prog_gnu_ld=yes |
|
5563 ;; |
|
5564 *) |
|
5565 lt_cv_prog_gnu_ld=no |
|
5566 ;; |
|
5567 esac |
|
5568 fi |
|
5569 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
5570 $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
|
5571 with_gnu_ld=$lt_cv_prog_gnu_ld |
|
5572 |
|
5573 |
|
5574 |
|
5575 |
|
5576 |
|
5577 |
|
5578 |
|
5579 |
|
5580 |
|
5581 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
|
5582 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
|
5583 if test "${lt_cv_path_NM+set}" = set; then |
|
5584 $as_echo_n "(cached) " >&6 |
|
5585 else |
|
5586 if test -n "$NM"; then |
|
5587 # Let the user override the test. |
|
5588 lt_cv_path_NM="$NM" |
|
5589 else |
|
5590 lt_nm_to_check="${ac_tool_prefix}nm" |
|
5591 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
|
5592 lt_nm_to_check="$lt_nm_to_check nm" |
|
5593 fi |
|
5594 for lt_tmp_nm in $lt_nm_to_check; do |
|
5595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
5596 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
|
5597 IFS="$lt_save_ifs" |
|
5598 test -z "$ac_dir" && ac_dir=. |
|
5599 tmp_nm="$ac_dir/$lt_tmp_nm" |
|
5600 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
|
5601 # Check to see if the nm accepts a BSD-compat flag. |
|
5602 # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
5603 # nm: unknown option "B" ignored |
|
5604 # Tru64's nm complains that /dev/null is an invalid object file |
|
5605 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
|
5606 */dev/null* | *'Invalid file or object type'*) |
|
5607 lt_cv_path_NM="$tmp_nm -B" |
|
5608 break |
|
5609 ;; |
|
5610 *) |
|
5611 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
|
5612 */dev/null*) |
|
5613 lt_cv_path_NM="$tmp_nm -p" |
|
5614 break |
|
5615 ;; |
|
5616 *) |
|
5617 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
5618 continue # so that we can try to find one that supports BSD flags |
|
5619 ;; |
|
5620 esac |
|
5621 ;; |
|
5622 esac |
|
5623 fi |
|
5624 done |
|
5625 IFS="$lt_save_ifs" |
|
5626 done |
|
5627 : ${lt_cv_path_NM=no} |
|
5628 fi |
|
5629 fi |
|
5630 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
|
5631 $as_echo "$lt_cv_path_NM" >&6; } |
|
5632 if test "$lt_cv_path_NM" != "no"; then |
|
5633 NM="$lt_cv_path_NM" |
|
5634 else |
|
5635 # Didn't find any BSD compatible name lister, look for dumpbin. |
|
5636 if test -n "$ac_tool_prefix"; then |
|
5637 for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
|
5638 do |
|
5639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
5640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
5641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
5642 $as_echo_n "checking for $ac_word... " >&6; } |
|
5643 if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
|
5644 $as_echo_n "(cached) " >&6 |
|
5645 else |
|
5646 if test -n "$DUMPBIN"; then |
|
5647 ac_cv_prog_DUMPBIN="$DUMPBIN" # 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_DUMPBIN="$ac_tool_prefix$ac_prog" |
|
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 DUMPBIN=$ac_cv_prog_DUMPBIN |
|
5667 if test -n "$DUMPBIN"; then |
|
5668 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
|
5669 $as_echo "$DUMPBIN" >&6; } |
|
5670 else |
|
5671 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
5672 $as_echo "no" >&6; } |
|
5673 fi |
|
5674 |
|
5675 |
|
5676 test -n "$DUMPBIN" && break |
|
5677 done |
|
5678 fi |
|
5679 if test -z "$DUMPBIN"; then |
|
5680 ac_ct_DUMPBIN=$DUMPBIN |
|
5681 for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
|
5682 do |
|
5683 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
5684 set dummy $ac_prog; ac_word=$2 |
|
5685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
5686 $as_echo_n "checking for $ac_word... " >&6; } |
|
5687 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
|
5688 $as_echo_n "(cached) " >&6 |
|
5689 else |
|
5690 if test -n "$ac_ct_DUMPBIN"; then |
|
5691 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
|
5692 else |
|
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5694 for as_dir in $PATH |
|
5695 do |
|
5696 IFS=$as_save_IFS |
|
5697 test -z "$as_dir" && as_dir=. |
|
5698 for ac_exec_ext in '' $ac_executable_extensions; do |
|
5699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5700 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
|
5701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5702 break 2 |
|
5703 fi |
|
5704 done |
|
5705 done |
|
5706 IFS=$as_save_IFS |
|
5707 |
|
5708 fi |
|
5709 fi |
|
5710 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
|
5711 if test -n "$ac_ct_DUMPBIN"; then |
|
5712 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
|
5713 $as_echo "$ac_ct_DUMPBIN" >&6; } |
|
5714 else |
|
5715 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
5716 $as_echo "no" >&6; } |
|
5717 fi |
|
5718 |
|
5719 |
|
5720 test -n "$ac_ct_DUMPBIN" && break |
|
5721 done |
|
5722 |
|
5723 if test "x$ac_ct_DUMPBIN" = x; then |
|
5724 DUMPBIN=":" |
|
5725 else |
|
5726 case $cross_compiling:$ac_tool_warned in |
|
5727 yes:) |
|
5728 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
5729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
5730 ac_tool_warned=yes ;; |
|
5731 esac |
|
5732 DUMPBIN=$ac_ct_DUMPBIN |
|
5733 fi |
|
5734 fi |
|
5735 |
|
5736 |
|
5737 if test "$DUMPBIN" != ":"; then |
|
5738 NM="$DUMPBIN" |
|
5739 fi |
|
5740 fi |
|
5741 test -z "$NM" && NM=nm |
|
5742 |
|
5743 |
|
5744 |
|
5745 |
|
5746 |
|
5747 |
|
5748 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
|
5749 $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
|
5750 if test "${lt_cv_nm_interface+set}" = set; then |
|
5751 $as_echo_n "(cached) " >&6 |
|
5752 else |
|
5753 lt_cv_nm_interface="BSD nm" |
|
5754 echo "int some_variable = 0;" > conftest.$ac_ext |
|
5755 (eval echo "\"\$as_me:5755: $ac_compile\"" >&5) |
|
5756 (eval "$ac_compile" 2>conftest.err) |
|
5757 cat conftest.err >&5 |
|
5758 (eval echo "\"\$as_me:5758: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
|
5759 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
|
5760 cat conftest.err >&5 |
|
5761 (eval echo "\"\$as_me:5761: output\"" >&5) |
|
5762 cat conftest.out >&5 |
|
5763 if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
|
5764 lt_cv_nm_interface="MS dumpbin" |
|
5765 fi |
|
5766 rm -f conftest* |
|
5767 fi |
|
5768 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
|
5769 $as_echo "$lt_cv_nm_interface" >&6; } |
|
5770 |
|
5771 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
5772 $as_echo_n "checking whether ln -s works... " >&6; } |
|
5773 LN_S=$as_ln_s |
|
5774 if test "$LN_S" = "ln -s"; then |
|
5775 { $as_echo "$as_me:$LINENO: result: yes" >&5 |
|
5776 $as_echo "yes" >&6; } |
|
5777 else |
|
5778 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
5779 $as_echo "no, using $LN_S" >&6; } |
|
5780 fi |
|
5781 |
|
5782 # find the maximum length of command line arguments |
|
5783 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
|
5784 $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
|
5785 if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
|
5786 $as_echo_n "(cached) " >&6 |
|
5787 else |
|
5788 i=0 |
|
5789 teststring="ABCD" |
|
5790 |
|
5791 case $build_os in |
|
5792 msdosdjgpp*) |
|
5793 # On DJGPP, this test can blow up pretty badly due to problems in libc |
|
5794 # (any single argument exceeding 2000 bytes causes a buffer overrun |
|
5795 # during glob expansion). Even if it were fixed, the result of this |
|
5796 # check would be larger than it should be. |
|
5797 lt_cv_sys_max_cmd_len=12288; # 12K is about right |
|
5798 ;; |
|
5799 |
|
5800 gnu*) |
|
5801 # Under GNU Hurd, this test is not required because there is |
|
5802 # no limit to the length of command line arguments. |
|
5803 # Libtool will interpret -1 as no limit whatsoever |
|
5804 lt_cv_sys_max_cmd_len=-1; |
|
5805 ;; |
|
5806 |
|
5807 cygwin* | mingw* | cegcc*) |
|
5808 # On Win9x/ME, this test blows up -- it succeeds, but takes |
|
5809 # about 5 minutes as the teststring grows exponentially. |
|
5810 # Worse, since 9x/ME are not pre-emptively multitasking, |
|
5811 # you end up with a "frozen" computer, even though with patience |
|
5812 # the test eventually succeeds (with a max line length of 256k). |
|
5813 # Instead, let's just punt: use the minimum linelength reported by |
|
5814 # all of the supported platforms: 8192 (on NT/2K/XP). |
|
5815 lt_cv_sys_max_cmd_len=8192; |
|
5816 ;; |
|
5817 |
|
5818 amigaos*) |
|
5819 # On AmigaOS with pdksh, this test takes hours, literally. |
|
5820 # So we just punt and use a minimum line length of 8192. |
|
5821 lt_cv_sys_max_cmd_len=8192; |
|
5822 ;; |
|
5823 |
|
5824 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
|
5825 # This has been around since 386BSD, at least. Likely further. |
|
5826 if test -x /sbin/sysctl; then |
|
5827 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
|
5828 elif test -x /usr/sbin/sysctl; then |
|
5829 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
|
5830 else |
|
5831 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
|
5832 fi |
|
5833 # And add a safety zone |
|
5834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
|
5836 ;; |
|
5837 |
|
5838 interix*) |
|
5839 # We know the value 262144 and hardcode it with a safety zone (like BSD) |
|
5840 lt_cv_sys_max_cmd_len=196608 |
|
5841 ;; |
|
5842 |
|
5843 osf*) |
|
5844 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
|
5845 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
|
5846 # nice to cause kernel panics so lets avoid the loop below. |
|
5847 # First set a reasonable default. |
|
5848 lt_cv_sys_max_cmd_len=16384 |
|
5849 # |
|
5850 if test -x /sbin/sysconfig; then |
|
5851 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
|
5852 *1*) lt_cv_sys_max_cmd_len=-1 ;; |
|
5853 esac |
|
5854 fi |
|
5855 ;; |
|
5856 sco3.2v5*) |
|
5857 lt_cv_sys_max_cmd_len=102400 |
|
5858 ;; |
|
5859 sysv5* | sco5v6* | sysv4.2uw2*) |
|
5860 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
|
5861 if test -n "$kargmax"; then |
|
5862 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
|
5863 else |
|
5864 lt_cv_sys_max_cmd_len=32768 |
|
5865 fi |
|
5866 ;; |
|
5867 *) |
|
5868 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
|
5869 if test -n "$lt_cv_sys_max_cmd_len"; then |
|
5870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
5871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
|
5872 else |
|
5873 # Make teststring a little bigger before we do anything with it. |
|
5874 # a 1K string should be a reasonable start. |
|
5875 for i in 1 2 3 4 5 6 7 8 ; do |
|
5876 teststring=$teststring$teststring |
|
5877 done |
|
5878 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
|
5879 # If test is not a shell built-in, we'll probably end up computing a |
|
5880 # maximum length that is only half of the actual maximum length, but |
|
5881 # we can't tell. |
|
5882 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
|
5883 = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
|
5884 test $i != 17 # 1/2 MB should be enough |
|
5885 do |
|
5886 i=`expr $i + 1` |
|
5887 teststring=$teststring$teststring |
|
5888 done |
|
5889 # Only check the string length outside the loop. |
|
5890 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
|
5891 teststring= |
|
5892 # Add a significant safety factor because C++ compilers can tack on |
|
5893 # massive amounts of additional arguments before passing them to the |
|
5894 # linker. It appears as though 1/2 is a usable value. |
|
5895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
|
5896 fi |
|
5897 ;; |
|
5898 esac |
|
5899 |
|
5900 fi |
|
5901 |
|
5902 if test -n $lt_cv_sys_max_cmd_len ; then |
|
5903 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
|
5904 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
|
5905 else |
|
5906 { $as_echo "$as_me:$LINENO: result: none" >&5 |
|
5907 $as_echo "none" >&6; } |
|
5908 fi |
|
5909 max_cmd_len=$lt_cv_sys_max_cmd_len |
|
5910 |
|
5911 |
|
5912 |
|
5913 |
|
5914 |
|
5915 |
|
5916 : ${CP="cp -f"} |
|
5917 : ${MV="mv -f"} |
|
5918 : ${RM="rm -f"} |
|
5919 |
|
5920 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
|
5921 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
|
5922 # Try some XSI features |
|
5923 xsi_shell=no |
|
5924 ( _lt_dummy="a/b/c" |
|
5925 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
|
5926 = c,a/b,, \ |
|
5927 && eval 'test $(( 1 + 1 )) -eq 2 \ |
|
5928 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
|
5929 && xsi_shell=yes |
|
5930 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
|
5931 $as_echo "$xsi_shell" >&6; } |
|
5932 |
|
5933 |
|
5934 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
|
5935 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
|
5936 lt_shell_append=no |
|
5937 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
|
5938 >/dev/null 2>&1 \ |
|
5939 && lt_shell_append=yes |
|
5940 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
|
5941 $as_echo "$lt_shell_append" >&6; } |
|
5942 |
|
5943 |
|
5944 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
5945 lt_unset=unset |
|
5946 else |
|
5947 lt_unset=false |
|
5948 fi |
|
5949 |
|
5950 |
|
5951 |
|
5952 |
|
5953 |
|
5954 # test EBCDIC or ASCII |
|
5955 case `echo X|tr X '\101'` in |
|
5956 A) # ASCII based system |
|
5957 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
|
5958 lt_SP2NL='tr \040 \012' |
|
5959 lt_NL2SP='tr \015\012 \040\040' |
|
5960 ;; |
|
5961 *) # EBCDIC based system |
|
5962 lt_SP2NL='tr \100 \n' |
|
5963 lt_NL2SP='tr \r\n \100\100' |
|
5964 ;; |
|
5965 esac |
|
5966 |
|
5967 |
|
5968 |
|
5969 |
|
5970 |
|
5971 |
|
5972 |
|
5973 |
|
5974 |
|
5975 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
5976 $as_echo_n "checking for $LD option to reload object files... " >&6; } |
|
5977 if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
5978 $as_echo_n "(cached) " >&6 |
|
5979 else |
|
5980 lt_cv_ld_reload_flag='-r' |
|
5981 fi |
|
5982 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
5983 $as_echo "$lt_cv_ld_reload_flag" >&6; } |
|
5984 reload_flag=$lt_cv_ld_reload_flag |
|
5985 case $reload_flag in |
|
5986 "" | " "*) ;; |
|
5987 *) reload_flag=" $reload_flag" ;; |
|
5988 esac |
|
5989 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
5990 case $host_os in |
|
5991 darwin*) |
|
5992 if test "$GCC" = yes; then |
|
5993 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
|
5994 else |
|
5995 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
5996 fi |
|
5997 ;; |
|
5998 esac |
|
5999 |
|
6000 |
|
6001 |
|
6002 |
|
6003 |
|
6004 |
|
6005 |
|
6006 |
|
6007 |
|
6008 if test -n "$ac_tool_prefix"; then |
|
6009 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
|
6010 set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
|
6011 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6012 $as_echo_n "checking for $ac_word... " >&6; } |
|
6013 if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
|
6014 $as_echo_n "(cached) " >&6 |
|
6015 else |
|
6016 if test -n "$OBJDUMP"; then |
|
6017 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
|
6018 else |
|
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6020 for as_dir in $PATH |
|
6021 do |
|
6022 IFS=$as_save_IFS |
|
6023 test -z "$as_dir" && as_dir=. |
|
6024 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6026 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
|
6027 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6028 break 2 |
|
6029 fi |
|
6030 done |
|
6031 done |
|
6032 IFS=$as_save_IFS |
|
6033 |
|
6034 fi |
|
6035 fi |
|
6036 OBJDUMP=$ac_cv_prog_OBJDUMP |
|
6037 if test -n "$OBJDUMP"; then |
|
6038 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
|
6039 $as_echo "$OBJDUMP" >&6; } |
|
6040 else |
|
6041 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
6042 $as_echo "no" >&6; } |
|
6043 fi |
|
6044 |
|
6045 |
|
6046 fi |
|
6047 if test -z "$ac_cv_prog_OBJDUMP"; then |
|
6048 ac_ct_OBJDUMP=$OBJDUMP |
|
6049 # Extract the first word of "objdump", so it can be a program name with args. |
|
6050 set dummy objdump; ac_word=$2 |
|
6051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6052 $as_echo_n "checking for $ac_word... " >&6; } |
|
6053 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
|
6054 $as_echo_n "(cached) " >&6 |
|
6055 else |
|
6056 if test -n "$ac_ct_OBJDUMP"; then |
|
6057 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
|
6058 else |
|
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6060 for as_dir in $PATH |
|
6061 do |
|
6062 IFS=$as_save_IFS |
|
6063 test -z "$as_dir" && as_dir=. |
|
6064 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6066 ac_cv_prog_ac_ct_OBJDUMP="objdump" |
|
6067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6068 break 2 |
|
6069 fi |
|
6070 done |
|
6071 done |
|
6072 IFS=$as_save_IFS |
|
6073 |
|
6074 fi |
|
6075 fi |
|
6076 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
|
6077 if test -n "$ac_ct_OBJDUMP"; then |
|
6078 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
|
6079 $as_echo "$ac_ct_OBJDUMP" >&6; } |
|
6080 else |
|
6081 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
6082 $as_echo "no" >&6; } |
|
6083 fi |
|
6084 |
|
6085 if test "x$ac_ct_OBJDUMP" = x; then |
|
6086 OBJDUMP="false" |
|
6087 else |
|
6088 case $cross_compiling:$ac_tool_warned in |
|
6089 yes:) |
|
6090 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6092 ac_tool_warned=yes ;; |
|
6093 esac |
|
6094 OBJDUMP=$ac_ct_OBJDUMP |
|
6095 fi |
|
6096 else |
|
6097 OBJDUMP="$ac_cv_prog_OBJDUMP" |
|
6098 fi |
|
6099 |
|
6100 test -z "$OBJDUMP" && OBJDUMP=objdump |
|
6101 |
|
6102 |
|
6103 |
|
6104 |
|
6105 |
|
6106 |
|
6107 |
|
6108 |
|
6109 |
|
6110 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
|
6111 $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
|
6112 if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
6113 $as_echo_n "(cached) " >&6 |
|
6114 else |
|
6115 lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
6116 lt_cv_file_magic_test_file= |
|
6117 lt_cv_deplibs_check_method='unknown' |
|
6118 # Need to set the preceding variable on all platforms that support |
|
6119 # interlibrary dependencies. |
|
6120 # 'none' -- dependencies not supported. |
|
6121 # `unknown' -- same as none, but documents that we really don't know. |
|
6122 # 'pass_all' -- all dependencies passed with no checks. |
|
6123 # 'test_compile' -- check by making test program. |
|
6124 # 'file_magic [[regex]]' -- check by looking for files in library path |
|
6125 # which responds to the $file_magic_cmd with a given extended regex. |
|
6126 # If you have `file' or equivalent on your system and you're not sure |
|
6127 # whether `pass_all' will *always* work, you probably want this one. |
|
6128 |
|
6129 case $host_os in |
|
6130 aix[4-9]*) |
|
6131 lt_cv_deplibs_check_method=pass_all |
|
6132 ;; |
|
6133 |
|
6134 beos*) |
|
6135 lt_cv_deplibs_check_method=pass_all |
|
6136 ;; |
|
6137 |
|
6138 bsdi[45]*) |
|
6139 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
6140 lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
6141 lt_cv_file_magic_test_file=/shlib/libc.so |
|
6142 ;; |
|
6143 |
|
6144 cygwin*) |
|
6145 # func_win32_libid is a shell function defined in ltmain.sh |
|
6146 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
6147 lt_cv_file_magic_cmd='func_win32_libid' |
|
6148 ;; |
|
6149 |
|
6150 mingw* | pw32*) |
|
6151 # Base MSYS/MinGW do not provide the 'file' command needed by |
|
6152 # func_win32_libid shell function, so use a weaker test based on 'objdump', |
|
6153 # unless we find 'file', for example because we are cross-compiling. |
|
6154 if ( file / ) >/dev/null 2>&1; then |
|
6155 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
6156 lt_cv_file_magic_cmd='func_win32_libid' |
|
6157 else |
|
6158 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
6159 lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
6160 fi |
|
6161 ;; |
|
6162 |
|
6163 cegcc) |
|
6164 # use the weaker test based on 'objdump'. See mingw*. |
|
6165 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
|
6166 lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
6167 ;; |
|
6168 |
|
6169 darwin* | rhapsody*) |
|
6170 lt_cv_deplibs_check_method=pass_all |
|
6171 ;; |
|
6172 |
|
6173 freebsd* | dragonfly*) |
|
6174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
|
6175 case $host_cpu in |
|
6176 i*86 ) |
|
6177 # Not sure whether the presence of OpenBSD here was a mistake. |
|
6178 # Let's accept both of them until this is cleared up. |
|
6179 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
|
6180 lt_cv_file_magic_cmd=/usr/bin/file |
|
6181 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
6182 ;; |
|
6183 esac |
|
6184 else |
|
6185 lt_cv_deplibs_check_method=pass_all |
|
6186 fi |
|
6187 ;; |
|
6188 |
|
6189 gnu*) |
|
6190 lt_cv_deplibs_check_method=pass_all |
|
6191 ;; |
|
6192 |
|
6193 hpux10.20* | hpux11*) |
|
6194 lt_cv_file_magic_cmd=/usr/bin/file |
|
6195 case $host_cpu in |
|
6196 ia64*) |
|
6197 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
|
6198 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
|
6199 ;; |
|
6200 hppa*64*) |
|
6201 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]' |
|
6202 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
|
6203 ;; |
|
6204 *) |
|
6205 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
6206 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
6207 ;; |
|
6208 esac |
|
6209 ;; |
|
6210 |
|
6211 interix[3-9]*) |
|
6212 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
|
6213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
|
6214 ;; |
|
6215 |
|
6216 irix5* | irix6* | nonstopux*) |
|
6217 case $LD in |
|
6218 *-32|*"-32 ") libmagic=32-bit;; |
|
6219 *-n32|*"-n32 ") libmagic=N32;; |
|
6220 *-64|*"-64 ") libmagic=64-bit;; |
|
6221 *) libmagic=never-match;; |
|
6222 esac |
|
6223 lt_cv_deplibs_check_method=pass_all |
|
6224 ;; |
|
6225 |
|
6226 # This must be Linux ELF. |
|
6227 linux* | k*bsd*-gnu) |
|
6228 lt_cv_deplibs_check_method=pass_all |
|
6229 ;; |
|
6230 |
|
6231 netbsd*) |
|
6232 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
|
6233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
6234 else |
|
6235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
|
6236 fi |
|
6237 ;; |
|
6238 |
|
6239 newos6*) |
|
6240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
6241 lt_cv_file_magic_cmd=/usr/bin/file |
|
6242 lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
6243 ;; |
|
6244 |
|
6245 *nto* | *qnx*) |
|
6246 lt_cv_deplibs_check_method=pass_all |
|
6247 ;; |
|
6248 |
|
6249 openbsd*) |
|
6250 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
6251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
|
6252 else |
|
6253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
6254 fi |
|
6255 ;; |
|
6256 |
|
6257 osf3* | osf4* | osf5*) |
|
6258 lt_cv_deplibs_check_method=pass_all |
|
6259 ;; |
|
6260 |
|
6261 rdos*) |
|
6262 lt_cv_deplibs_check_method=pass_all |
|
6263 ;; |
|
6264 |
|
6265 solaris*) |
|
6266 lt_cv_deplibs_check_method=pass_all |
|
6267 ;; |
|
6268 |
|
6269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
6270 lt_cv_deplibs_check_method=pass_all |
|
6271 ;; |
|
6272 |
|
6273 sysv4 | sysv4.3*) |
|
6274 case $host_vendor in |
|
6275 motorola) |
|
6276 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]' |
|
6277 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
6278 ;; |
|
6279 ncr) |
|
6280 lt_cv_deplibs_check_method=pass_all |
|
6281 ;; |
|
6282 sequent) |
|
6283 lt_cv_file_magic_cmd='/bin/file' |
|
6284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
6285 ;; |
|
6286 sni) |
|
6287 lt_cv_file_magic_cmd='/bin/file' |
|
6288 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
6289 lt_cv_file_magic_test_file=/lib/libc.so |
|
6290 ;; |
|
6291 siemens) |
|
6292 lt_cv_deplibs_check_method=pass_all |
|
6293 ;; |
|
6294 pc) |
|
6295 lt_cv_deplibs_check_method=pass_all |
|
6296 ;; |
|
6297 esac |
|
6298 ;; |
|
6299 |
|
6300 tpf*) |
|
6301 lt_cv_deplibs_check_method=pass_all |
|
6302 ;; |
|
6303 esac |
|
6304 |
|
6305 fi |
|
6306 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
6307 $as_echo "$lt_cv_deplibs_check_method" >&6; } |
|
6308 file_magic_cmd=$lt_cv_file_magic_cmd |
|
6309 deplibs_check_method=$lt_cv_deplibs_check_method |
|
6310 test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
6311 |
|
6312 |
|
6313 |
|
6314 |
|
6315 |
|
6316 |
|
6317 |
|
6318 |
|
6319 |
|
6320 |
|
6321 |
|
6322 |
|
6323 if test -n "$ac_tool_prefix"; then |
|
6324 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
6325 set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|
6326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6327 $as_echo_n "checking for $ac_word... " >&6; } |
|
6328 if test "${ac_cv_prog_AR+set}" = set; then |
|
6329 $as_echo_n "(cached) " >&6 |
|
6330 else |
|
6331 if test -n "$AR"; then |
|
6332 ac_cv_prog_AR="$AR" # Let the user override the test. |
|
6333 else |
|
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6335 for as_dir in $PATH |
|
6336 do |
|
6337 IFS=$as_save_IFS |
|
6338 test -z "$as_dir" && as_dir=. |
|
6339 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6341 ac_cv_prog_AR="${ac_tool_prefix}ar" |
|
6342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6343 break 2 |
|
6344 fi |
|
6345 done |
|
6346 done |
|
6347 IFS=$as_save_IFS |
|
6348 |
|
6349 fi |
|
6350 fi |
|
6351 AR=$ac_cv_prog_AR |
|
6352 if test -n "$AR"; then |
|
6353 { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
|
6354 $as_echo "$AR" >&6; } |
|
6355 else |
|
6356 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
6357 $as_echo "no" >&6; } |
|
6358 fi |
|
6359 |
|
6360 |
|
6361 fi |
|
6362 if test -z "$ac_cv_prog_AR"; then |
|
6363 ac_ct_AR=$AR |
|
6364 # Extract the first word of "ar", so it can be a program name with args. |
|
6365 set dummy ar; ac_word=$2 |
|
6366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6367 $as_echo_n "checking for $ac_word... " >&6; } |
|
6368 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
|
6369 $as_echo_n "(cached) " >&6 |
|
6370 else |
|
6371 if test -n "$ac_ct_AR"; then |
|
6372 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
6373 else |
|
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6375 for as_dir in $PATH |
|
6376 do |
|
6377 IFS=$as_save_IFS |
|
6378 test -z "$as_dir" && as_dir=. |
|
6379 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6381 ac_cv_prog_ac_ct_AR="ar" |
|
6382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6383 break 2 |
|
6384 fi |
|
6385 done |
|
6386 done |
|
6387 IFS=$as_save_IFS |
|
6388 |
|
6389 fi |
|
6390 fi |
|
6391 ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
6392 if test -n "$ac_ct_AR"; then |
|
6393 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
|
6394 $as_echo "$ac_ct_AR" >&6; } |
|
6395 else |
|
6396 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
6397 $as_echo "no" >&6; } |
|
6398 fi |
|
6399 |
|
6400 if test "x$ac_ct_AR" = x; then |
|
6401 AR="false" |
|
6402 else |
|
6403 case $cross_compiling:$ac_tool_warned in |
|
6404 yes:) |
|
6405 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6407 ac_tool_warned=yes ;; |
|
6408 esac |
|
6409 AR=$ac_ct_AR |
|
6410 fi |
|
6411 else |
|
6412 AR="$ac_cv_prog_AR" |
|
6413 fi |
|
6414 |
|
6415 test -z "$AR" && AR=ar |
|
6416 test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
6417 |
|
6418 |
|
6419 |
|
6420 |
|
6421 |
|
6422 |
|
6423 |
|
6424 |
|
6425 |
|
6426 |
|
6427 |
|
6428 if test -n "$ac_tool_prefix"; then |
|
6429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
6430 set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
6431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6432 $as_echo_n "checking for $ac_word... " >&6; } |
|
6433 if test "${ac_cv_prog_STRIP+set}" = set; then |
|
6434 $as_echo_n "(cached) " >&6 |
|
6435 else |
|
6436 if test -n "$STRIP"; then |
|
6437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
6438 else |
|
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6440 for as_dir in $PATH |
|
6441 do |
|
6442 IFS=$as_save_IFS |
|
6443 test -z "$as_dir" && as_dir=. |
|
6444 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6446 ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
6447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6448 break 2 |
|
6449 fi |
|
6450 done |
|
6451 done |
|
6452 IFS=$as_save_IFS |
|
6453 |
|
6454 fi |
|
6455 fi |
|
6456 STRIP=$ac_cv_prog_STRIP |
|
6457 if test -n "$STRIP"; then |
|
6458 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
6459 $as_echo "$STRIP" >&6; } |
|
6460 else |
|
6461 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
6462 $as_echo "no" >&6; } |
|
6463 fi |
|
6464 |
|
6465 |
|
6466 fi |
|
6467 if test -z "$ac_cv_prog_STRIP"; then |
|
6468 ac_ct_STRIP=$STRIP |
|
6469 # Extract the first word of "strip", so it can be a program name with args. |
|
6470 set dummy strip; ac_word=$2 |
|
6471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6472 $as_echo_n "checking for $ac_word... " >&6; } |
|
6473 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
6474 $as_echo_n "(cached) " >&6 |
|
6475 else |
|
6476 if test -n "$ac_ct_STRIP"; then |
|
6477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
6478 else |
|
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6480 for as_dir in $PATH |
|
6481 do |
|
6482 IFS=$as_save_IFS |
|
6483 test -z "$as_dir" && as_dir=. |
|
6484 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6486 ac_cv_prog_ac_ct_STRIP="strip" |
|
6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6488 break 2 |
|
6489 fi |
|
6490 done |
|
6491 done |
|
6492 IFS=$as_save_IFS |
|
6493 |
|
6494 fi |
|
6495 fi |
|
6496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
6497 if test -n "$ac_ct_STRIP"; then |
|
6498 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
6499 $as_echo "$ac_ct_STRIP" >&6; } |
|
6500 else |
|
6501 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
6502 $as_echo "no" >&6; } |
|
6503 fi |
|
6504 |
|
6505 if test "x$ac_ct_STRIP" = x; then |
|
6506 STRIP=":" |
|
6507 else |
|
6508 case $cross_compiling:$ac_tool_warned in |
|
6509 yes:) |
|
6510 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6512 ac_tool_warned=yes ;; |
|
6513 esac |
|
6514 STRIP=$ac_ct_STRIP |
|
6515 fi |
|
6516 else |
|
6517 STRIP="$ac_cv_prog_STRIP" |
|
6518 fi |
|
6519 |
|
6520 test -z "$STRIP" && STRIP=: |
|
6521 |
|
6522 |
|
6523 |
|
6524 |
|
6525 |
|
6526 |
|
6527 if test -n "$ac_tool_prefix"; then |
|
6528 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
6529 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
6530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6531 $as_echo_n "checking for $ac_word... " >&6; } |
|
6532 if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
6533 $as_echo_n "(cached) " >&6 |
|
6534 else |
|
6535 if test -n "$RANLIB"; then |
|
6536 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
6537 else |
|
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6539 for as_dir in $PATH |
|
6540 do |
|
6541 IFS=$as_save_IFS |
|
6542 test -z "$as_dir" && as_dir=. |
|
6543 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6545 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
6546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6547 break 2 |
|
6548 fi |
|
6549 done |
|
6550 done |
|
6551 IFS=$as_save_IFS |
|
6552 |
|
6553 fi |
|
6554 fi |
|
6555 RANLIB=$ac_cv_prog_RANLIB |
|
6556 if test -n "$RANLIB"; then |
|
6557 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
6558 $as_echo "$RANLIB" >&6; } |
|
6559 else |
|
6560 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
6561 $as_echo "no" >&6; } |
|
6562 fi |
|
6563 |
|
6564 |
|
6565 fi |
|
6566 if test -z "$ac_cv_prog_RANLIB"; then |
|
6567 ac_ct_RANLIB=$RANLIB |
|
6568 # Extract the first word of "ranlib", so it can be a program name with args. |
|
6569 set dummy ranlib; ac_word=$2 |
|
6570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
6571 $as_echo_n "checking for $ac_word... " >&6; } |
|
6572 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
6573 $as_echo_n "(cached) " >&6 |
|
6574 else |
|
6575 if test -n "$ac_ct_RANLIB"; then |
|
6576 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
6577 else |
|
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6579 for as_dir in $PATH |
|
6580 do |
|
6581 IFS=$as_save_IFS |
|
6582 test -z "$as_dir" && as_dir=. |
|
6583 for ac_exec_ext in '' $ac_executable_extensions; do |
|
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6585 ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
6586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6587 break 2 |
|
6588 fi |
|
6589 done |
|
6590 done |
|
6591 IFS=$as_save_IFS |
|
6592 |
|
6593 fi |
|
6594 fi |
|
6595 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
6596 if test -n "$ac_ct_RANLIB"; then |
|
6597 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
6598 $as_echo "$ac_ct_RANLIB" >&6; } |
|
6599 else |
|
6600 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
6601 $as_echo "no" >&6; } |
|
6602 fi |
|
6603 |
|
6604 if test "x$ac_ct_RANLIB" = x; then |
|
6605 RANLIB=":" |
|
6606 else |
|
6607 case $cross_compiling:$ac_tool_warned in |
|
6608 yes:) |
|
6609 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6611 ac_tool_warned=yes ;; |
|
6612 esac |
|
6613 RANLIB=$ac_ct_RANLIB |
|
6614 fi |
|
6615 else |
|
6616 RANLIB="$ac_cv_prog_RANLIB" |
|
6617 fi |
|
6618 |
|
6619 test -z "$RANLIB" && RANLIB=: |
|
6620 |
|
6621 |
|
6622 |
|
6623 |
|
6624 |
|
6625 |
|
6626 # Determine commands to create old-style static archives. |
|
6627 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
|
6628 old_postinstall_cmds='chmod 644 $oldlib' |
|
6629 old_postuninstall_cmds= |
|
6630 |
|
6631 if test -n "$RANLIB"; then |
|
6632 case $host_os in |
|
6633 openbsd*) |
|
6634 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
|
6635 ;; |
|
6636 *) |
|
6637 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
|
6638 ;; |
|
6639 esac |
|
6640 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
6641 fi |
|
6642 |
|
6643 |
|
6644 |
|
6645 |
|
6646 |
|
6647 |
|
6648 |
|
6649 |
|
6650 |
|
6651 |
|
6652 |
|
6653 |
|
6654 |
|
6655 |
|
6656 |
|
6657 |
|
6658 |
|
6659 |
|
6660 |
|
6661 |
|
6662 |
|
6663 |
|
6664 |
|
6665 |
|
6666 |
|
6667 |
|
6668 |
|
6669 |
|
6670 |
|
6671 |
|
6672 |
|
6673 |
|
6674 |
|
6675 |
|
6676 # If no C compiler was specified, use CC. |
|
6677 LTCC=${LTCC-"$CC"} |
|
6678 |
|
6679 # If no C compiler flags were specified, use CFLAGS. |
|
6680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
6681 |
|
6682 # Allow CC to be a program name with arguments. |
|
6683 compiler=$CC |
|
6684 |
|
6685 |
|
6686 # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
6687 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
|
6688 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
|
6689 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
6690 $as_echo_n "(cached) " >&6 |
|
6691 else |
|
6692 |
|
6693 # These are sane defaults that work on at least a few old systems. |
|
6694 # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
6695 |
|
6696 # Character class describing NM global symbol codes. |
|
6697 symcode='[BCDEGRST]' |
|
6698 |
|
6699 # Regexp to match symbols that can be accessed directly from C. |
|
6700 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
6701 |
|
6702 # Define system-specific variables. |
|
6703 case $host_os in |
|
6704 aix*) |
|
6705 symcode='[BCDT]' |
|
6706 ;; |
|
6707 cygwin* | mingw* | pw32* | cegcc*) |
|
6708 symcode='[ABCDGISTW]' |
|
6709 ;; |
|
6710 hpux*) |
|
6711 if test "$host_cpu" = ia64; then |
|
6712 symcode='[ABCDEGRST]' |
|
6713 fi |
|
6714 ;; |
|
6715 irix* | nonstopux*) |
|
6716 symcode='[BCDEGRST]' |
|
6717 ;; |
|
6718 osf*) |
|
6719 symcode='[BCDEGQRST]' |
|
6720 ;; |
|
6721 solaris*) |
|
6722 symcode='[BDRT]' |
|
6723 ;; |
|
6724 sco3.2v5*) |
|
6725 symcode='[DT]' |
|
6726 ;; |
|
6727 sysv4.2uw2*) |
|
6728 symcode='[DT]' |
|
6729 ;; |
|
6730 sysv5* | sco5v6* | unixware* | OpenUNIX*) |
|
6731 symcode='[ABDT]' |
|
6732 ;; |
|
6733 sysv4) |
|
6734 symcode='[DFNSTU]' |
|
6735 ;; |
|
6736 esac |
|
6737 |
|
6738 # If we're using GNU nm, then use its standard symbol codes. |
|
6739 case `$NM -V 2>&1` in |
|
6740 *GNU* | *'with BFD'*) |
|
6741 symcode='[ABCDGIRSTW]' ;; |
|
6742 esac |
|
6743 |
|
6744 # Transform an extracted symbol line into a proper C declaration. |
|
6745 # Some systems (esp. on ia64) link data and code symbols differently, |
|
6746 # so use this general approach. |
|
6747 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
6748 |
|
6749 # Transform an extracted symbol line into symbol name and symbol address |
|
6750 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
|
6751 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'" |
|
6752 |
|
6753 # Handle CRLF in mingw tool chain |
|
6754 opt_cr= |
|
6755 case $build_os in |
|
6756 mingw*) |
|
6757 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
6758 ;; |
|
6759 esac |
|
6760 |
|
6761 # Try without a prefix underscore, then with it. |
|
6762 for ac_symprfx in "" "_"; do |
|
6763 |
|
6764 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
|
6765 symxfrm="\\1 $ac_symprfx\\2 \\2" |
|
6766 |
|
6767 # Write the raw and C identifiers. |
|
6768 if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
|
6769 # Fake it for dumpbin and say T for any non-static function |
|
6770 # and D for any global variable. |
|
6771 # Also find C++ and __fastcall symbols from MSVC++, |
|
6772 # which start with @ or ?. |
|
6773 lt_cv_sys_global_symbol_pipe="$AWK '"\ |
|
6774 " {last_section=section; section=\$ 3};"\ |
|
6775 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
|
6776 " \$ 0!~/External *\|/{next};"\ |
|
6777 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
|
6778 " {if(hide[section]) next};"\ |
|
6779 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
|
6780 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
|
6781 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
|
6782 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
|
6783 " ' prfx=^$ac_symprfx" |
|
6784 else |
|
6785 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
|
6786 fi |
|
6787 |
|
6788 # Check to see that the pipe works correctly. |
|
6789 pipe_works=no |
|
6790 |
|
6791 rm -f conftest* |
|
6792 cat > conftest.$ac_ext <<_LT_EOF |
|
6793 #ifdef __cplusplus |
|
6794 extern "C" { |
|
6795 #endif |
|
6796 char nm_test_var; |
|
6797 void nm_test_func(void); |
|
6798 void nm_test_func(void){} |
|
6799 #ifdef __cplusplus |
|
6800 } |
|
6801 #endif |
|
6802 int main(){nm_test_var='a';nm_test_func();return(0);} |
|
6803 _LT_EOF |
|
6804 |
|
6805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
6806 (eval $ac_compile) 2>&5 |
|
6807 ac_status=$? |
|
6808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6809 (exit $ac_status); }; then |
|
6810 # Now try to grab the symbols. |
|
6811 nlist=conftest.nm |
|
6812 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
6813 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
6814 ac_status=$? |
|
6815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6816 (exit $ac_status); } && test -s "$nlist"; then |
|
6817 # Try sorting and uniquifying the output. |
|
6818 if sort "$nlist" | uniq > "$nlist"T; then |
|
6819 mv -f "$nlist"T "$nlist" |
|
6820 else |
|
6821 rm -f "$nlist"T |
|
6822 fi |
|
6823 |
|
6824 # Make sure that we snagged all the symbols we need. |
|
6825 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
|
6826 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
|
6827 cat <<_LT_EOF > conftest.$ac_ext |
|
6828 #ifdef __cplusplus |
|
6829 extern "C" { |
|
6830 #endif |
|
6831 |
|
6832 _LT_EOF |
|
6833 # Now generate the symbol file. |
|
6834 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
|
6835 |
|
6836 cat <<_LT_EOF >> conftest.$ac_ext |
|
6837 |
|
6838 /* The mapping between symbol names and symbols. */ |
|
6839 const struct { |
|
6840 const char *name; |
|
6841 void *address; |
|
6842 } |
|
6843 lt__PROGRAM__LTX_preloaded_symbols[] = |
|
6844 { |
|
6845 { "@PROGRAM@", (void *) 0 }, |
|
6846 _LT_EOF |
|
6847 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
|
6848 cat <<\_LT_EOF >> conftest.$ac_ext |
|
6849 {0, (void *) 0} |
|
6850 }; |
|
6851 |
|
6852 /* This works around a problem in FreeBSD linker */ |
|
6853 #ifdef FREEBSD_WORKAROUND |
|
6854 static const void *lt_preloaded_setup() { |
|
6855 return lt__PROGRAM__LTX_preloaded_symbols; |
|
6856 } |
|
6857 #endif |
|
6858 |
|
6859 #ifdef __cplusplus |
|
6860 } |
|
6861 #endif |
|
6862 _LT_EOF |
|
6863 # Now try linking the two files. |
|
6864 mv conftest.$ac_objext conftstm.$ac_objext |
|
6865 lt_save_LIBS="$LIBS" |
|
6866 lt_save_CFLAGS="$CFLAGS" |
|
6867 LIBS="conftstm.$ac_objext" |
|
6868 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
|
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
6870 (eval $ac_link) 2>&5 |
|
6871 ac_status=$? |
|
6872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6873 (exit $ac_status); } && test -s conftest${ac_exeext}; then |
|
6874 pipe_works=yes |
|
6875 fi |
|
6876 LIBS="$lt_save_LIBS" |
|
6877 CFLAGS="$lt_save_CFLAGS" |
|
6878 else |
|
6879 echo "cannot find nm_test_func in $nlist" >&5 |
|
6880 fi |
|
6881 else |
|
6882 echo "cannot find nm_test_var in $nlist" >&5 |
|
6883 fi |
|
6884 else |
|
6885 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
6886 fi |
|
6887 else |
|
6888 echo "$progname: failed program was:" >&5 |
|
6889 cat conftest.$ac_ext >&5 |
|
6890 fi |
|
6891 rm -rf conftest* conftst* |
|
6892 |
|
6893 # Do not use the global_symbol_pipe unless it works. |
|
6894 if test "$pipe_works" = yes; then |
|
6895 break |
|
6896 else |
|
6897 lt_cv_sys_global_symbol_pipe= |
|
6898 fi |
|
6899 done |
|
6900 |
|
6901 fi |
|
6902 |
|
6903 if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
6904 lt_cv_sys_global_symbol_to_cdecl= |
|
6905 fi |
|
6906 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
|
6907 { $as_echo "$as_me:$LINENO: result: failed" >&5 |
|
6908 $as_echo "failed" >&6; } |
|
6909 else |
|
6910 { $as_echo "$as_me:$LINENO: result: ok" >&5 |
|
6911 $as_echo "ok" >&6; } |
|
6912 fi |
|
6913 |
|
6914 |
|
6915 |
|
6916 |
|
6917 |
|
6918 |
|
6919 |
|
6920 |
|
6921 |
|
6922 |
|
6923 |
|
6924 |
|
6925 |
|
6926 |
|
6927 |
|
6928 |
|
6929 |
|
6930 |
|
6931 |
|
6932 |
|
6933 |
|
6934 |
|
6935 # Check whether --enable-libtool-lock was given. |
|
6936 if test "${enable_libtool_lock+set}" = set; then |
|
6937 enableval=$enable_libtool_lock; |
|
6938 fi |
|
6939 |
|
6940 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
6941 |
|
6942 # Some flags need to be propagated to the compiler or linker for good |
|
6943 # libtool support. |
|
6944 case $host in |
|
6945 ia64-*-hpux*) |
|
6946 # Find out which ABI we are using. |
|
6947 echo 'int i;' > conftest.$ac_ext |
|
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
6949 (eval $ac_compile) 2>&5 |
|
6950 ac_status=$? |
|
6951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6952 (exit $ac_status); }; then |
|
6953 case `/usr/bin/file conftest.$ac_objext` in |
|
6954 *ELF-32*) |
|
6955 HPUX_IA64_MODE="32" |
|
6956 ;; |
|
6957 *ELF-64*) |
|
6958 HPUX_IA64_MODE="64" |
|
6959 ;; |
|
6960 esac |
|
6961 fi |
|
6962 rm -rf conftest* |
|
6963 ;; |
|
6964 *-*-irix6*) |
|
6965 # Find out which ABI we are using. |
|
6966 echo '#line 6966 "configure"' > conftest.$ac_ext |
|
6967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
6968 (eval $ac_compile) 2>&5 |
|
6969 ac_status=$? |
|
6970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
6971 (exit $ac_status); }; then |
|
6972 if test "$lt_cv_prog_gnu_ld" = yes; then |
|
6973 case `/usr/bin/file conftest.$ac_objext` in |
|
6974 *32-bit*) |
|
6975 LD="${LD-ld} -melf32bsmip" |
|
6976 ;; |
|
6977 *N32*) |
|
6978 LD="${LD-ld} -melf32bmipn32" |
|
6979 ;; |
|
6980 *64-bit*) |
|
6981 LD="${LD-ld} -melf64bmip" |
|
6982 ;; |
|
6983 esac |
|
6984 else |
|
6985 case `/usr/bin/file conftest.$ac_objext` in |
|
6986 *32-bit*) |
|
6987 LD="${LD-ld} -32" |
|
6988 ;; |
|
6989 *N32*) |
|
6990 LD="${LD-ld} -n32" |
|
6991 ;; |
|
6992 *64-bit*) |
|
6993 LD="${LD-ld} -64" |
|
6994 ;; |
|
6995 esac |
|
6996 fi |
|
6997 fi |
|
6998 rm -rf conftest* |
|
6999 ;; |
|
7000 |
|
7001 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
|
7002 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
|
7003 # Find out which ABI we are using. |
|
7004 echo 'int i;' > conftest.$ac_ext |
|
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
7006 (eval $ac_compile) 2>&5 |
|
7007 ac_status=$? |
|
7008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7009 (exit $ac_status); }; then |
|
7010 case `/usr/bin/file conftest.o` in |
|
7011 *32-bit*) |
|
7012 case $host in |
|
7013 x86_64-*kfreebsd*-gnu) |
|
7014 LD="${LD-ld} -m elf_i386_fbsd" |
|
7015 ;; |
|
7016 x86_64-*linux*) |
|
7017 LD="${LD-ld} -m elf_i386" |
|
7018 ;; |
|
7019 ppc64-*linux*|powerpc64-*linux*) |
|
7020 LD="${LD-ld} -m elf32ppclinux" |
|
7021 ;; |
|
7022 s390x-*linux*) |
|
7023 LD="${LD-ld} -m elf_s390" |
|
7024 ;; |
|
7025 sparc64-*linux*) |
|
7026 LD="${LD-ld} -m elf32_sparc" |
|
7027 ;; |
|
7028 esac |
|
7029 ;; |
|
7030 *64-bit*) |
|
7031 case $host in |
|
7032 x86_64-*kfreebsd*-gnu) |
|
7033 LD="${LD-ld} -m elf_x86_64_fbsd" |
|
7034 ;; |
|
7035 x86_64-*linux*) |
|
7036 LD="${LD-ld} -m elf_x86_64" |
|
7037 ;; |
|
7038 ppc*-*linux*|powerpc*-*linux*) |
|
7039 LD="${LD-ld} -m elf64ppc" |
|
7040 ;; |
|
7041 s390*-*linux*|s390*-*tpf*) |
|
7042 LD="${LD-ld} -m elf64_s390" |
|
7043 ;; |
|
7044 sparc*-*linux*) |
|
7045 LD="${LD-ld} -m elf64_sparc" |
|
7046 ;; |
|
7047 esac |
|
7048 ;; |
|
7049 esac |
|
7050 fi |
|
7051 rm -rf conftest* |
|
7052 ;; |
|
7053 |
|
7054 *-*-sco3.2v5*) |
|
7055 # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
7056 SAVE_CFLAGS="$CFLAGS" |
|
7057 CFLAGS="$CFLAGS -belf" |
|
7058 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
7059 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
|
7060 if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
7061 $as_echo_n "(cached) " >&6 |
|
7062 else |
|
7063 ac_ext=c |
|
7064 ac_cpp='$CPP $CPPFLAGS' |
|
7065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7067 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7068 |
|
7069 cat >conftest.$ac_ext <<_ACEOF |
|
7070 /* confdefs.h. */ |
|
7071 _ACEOF |
|
7072 cat confdefs.h >>conftest.$ac_ext |
|
7073 cat >>conftest.$ac_ext <<_ACEOF |
|
7074 /* end confdefs.h. */ |
|
7075 |
|
7076 int |
|
7077 main () |
|
7078 { |
|
7079 |
|
7080 ; |
|
7081 return 0; |
|
7082 } |
|
7083 _ACEOF |
|
7084 rm -f conftest.$ac_objext conftest$ac_exeext |
|
7085 if { (ac_try="$ac_link" |
|
7086 case "(($ac_try" in |
|
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
7088 *) ac_try_echo=$ac_try;; |
|
7089 esac |
|
7090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
7091 $as_echo "$ac_try_echo") >&5 |
|
7092 (eval "$ac_link") 2>conftest.er1 |
|
7093 ac_status=$? |
|
7094 grep -v '^ *+' conftest.er1 >conftest.err |
|
7095 rm -f conftest.er1 |
|
7096 cat conftest.err >&5 |
|
7097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7098 (exit $ac_status); } && { |
|
7099 test -z "$ac_c_werror_flag" || |
|
7100 test ! -s conftest.err |
|
7101 } && test -s conftest$ac_exeext && { |
|
7102 test "$cross_compiling" = yes || |
|
7103 $as_test_x conftest$ac_exeext |
|
7104 }; then |
|
7105 lt_cv_cc_needs_belf=yes |
|
7106 else |
|
7107 $as_echo "$as_me: failed program was:" >&5 |
|
7108 sed 's/^/| /' conftest.$ac_ext >&5 |
|
7109 |
|
7110 lt_cv_cc_needs_belf=no |
|
7111 fi |
|
7112 |
|
7113 rm -rf conftest.dSYM |
|
7114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
7115 conftest$ac_exeext conftest.$ac_ext |
|
7116 ac_ext=c |
|
7117 ac_cpp='$CPP $CPPFLAGS' |
|
7118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7120 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7121 |
|
7122 fi |
|
7123 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
7124 $as_echo "$lt_cv_cc_needs_belf" >&6; } |
|
7125 if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
7126 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
7127 CFLAGS="$SAVE_CFLAGS" |
|
7128 fi |
|
7129 ;; |
|
7130 sparc*-*solaris*) |
|
7131 # Find out which ABI we are using. |
|
7132 echo 'int i;' > conftest.$ac_ext |
|
7133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
7134 (eval $ac_compile) 2>&5 |
|
7135 ac_status=$? |
|
7136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7137 (exit $ac_status); }; then |
|
7138 case `/usr/bin/file conftest.o` in |
|
7139 *64-bit*) |
|
7140 case $lt_cv_prog_gnu_ld in |
|
7141 yes*) LD="${LD-ld} -m elf64_sparc" ;; |
|
7142 *) |
|
7143 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
|
7144 LD="${LD-ld} -64" |
|
7145 fi |
|
7146 ;; |
|
7147 esac |
|
7148 ;; |
|
7149 esac |
|
7150 fi |
|
7151 rm -rf conftest* |
|
7152 ;; |
|
7153 esac |
|
7154 |
|
7155 need_locks="$enable_libtool_lock" |
|
7156 |
|
7157 |
|
7158 case $host_os in |
|
7159 rhapsody* | darwin*) |
|
7160 if test -n "$ac_tool_prefix"; then |
|
7161 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
|
7162 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
|
7163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7164 $as_echo_n "checking for $ac_word... " >&6; } |
|
7165 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
|
7166 $as_echo_n "(cached) " >&6 |
|
7167 else |
|
7168 if test -n "$DSYMUTIL"; then |
|
7169 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
|
7170 else |
|
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7172 for as_dir in $PATH |
|
7173 do |
|
7174 IFS=$as_save_IFS |
|
7175 test -z "$as_dir" && as_dir=. |
|
7176 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7178 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
|
7179 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7180 break 2 |
|
7181 fi |
|
7182 done |
|
7183 done |
|
7184 IFS=$as_save_IFS |
|
7185 |
|
7186 fi |
|
7187 fi |
|
7188 DSYMUTIL=$ac_cv_prog_DSYMUTIL |
|
7189 if test -n "$DSYMUTIL"; then |
|
7190 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
|
7191 $as_echo "$DSYMUTIL" >&6; } |
|
7192 else |
|
7193 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
7194 $as_echo "no" >&6; } |
|
7195 fi |
|
7196 |
|
7197 |
|
7198 fi |
|
7199 if test -z "$ac_cv_prog_DSYMUTIL"; then |
|
7200 ac_ct_DSYMUTIL=$DSYMUTIL |
|
7201 # Extract the first word of "dsymutil", so it can be a program name with args. |
|
7202 set dummy dsymutil; ac_word=$2 |
|
7203 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7204 $as_echo_n "checking for $ac_word... " >&6; } |
|
7205 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
|
7206 $as_echo_n "(cached) " >&6 |
|
7207 else |
|
7208 if test -n "$ac_ct_DSYMUTIL"; then |
|
7209 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
|
7210 else |
|
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7212 for as_dir in $PATH |
|
7213 do |
|
7214 IFS=$as_save_IFS |
|
7215 test -z "$as_dir" && as_dir=. |
|
7216 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7218 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
|
7219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7220 break 2 |
|
7221 fi |
|
7222 done |
|
7223 done |
|
7224 IFS=$as_save_IFS |
|
7225 |
|
7226 fi |
|
7227 fi |
|
7228 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
|
7229 if test -n "$ac_ct_DSYMUTIL"; then |
|
7230 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
|
7231 $as_echo "$ac_ct_DSYMUTIL" >&6; } |
|
7232 else |
|
7233 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
7234 $as_echo "no" >&6; } |
|
7235 fi |
|
7236 |
|
7237 if test "x$ac_ct_DSYMUTIL" = x; then |
|
7238 DSYMUTIL=":" |
|
7239 else |
|
7240 case $cross_compiling:$ac_tool_warned in |
|
7241 yes:) |
|
7242 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
7244 ac_tool_warned=yes ;; |
|
7245 esac |
|
7246 DSYMUTIL=$ac_ct_DSYMUTIL |
|
7247 fi |
|
7248 else |
|
7249 DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
|
7250 fi |
|
7251 |
|
7252 if test -n "$ac_tool_prefix"; then |
|
7253 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
|
7254 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
|
7255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7256 $as_echo_n "checking for $ac_word... " >&6; } |
|
7257 if test "${ac_cv_prog_NMEDIT+set}" = set; then |
|
7258 $as_echo_n "(cached) " >&6 |
|
7259 else |
|
7260 if test -n "$NMEDIT"; then |
|
7261 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
|
7262 else |
|
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7264 for as_dir in $PATH |
|
7265 do |
|
7266 IFS=$as_save_IFS |
|
7267 test -z "$as_dir" && as_dir=. |
|
7268 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7270 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
|
7271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7272 break 2 |
|
7273 fi |
|
7274 done |
|
7275 done |
|
7276 IFS=$as_save_IFS |
|
7277 |
|
7278 fi |
|
7279 fi |
|
7280 NMEDIT=$ac_cv_prog_NMEDIT |
|
7281 if test -n "$NMEDIT"; then |
|
7282 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
|
7283 $as_echo "$NMEDIT" >&6; } |
|
7284 else |
|
7285 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
7286 $as_echo "no" >&6; } |
|
7287 fi |
|
7288 |
|
7289 |
|
7290 fi |
|
7291 if test -z "$ac_cv_prog_NMEDIT"; then |
|
7292 ac_ct_NMEDIT=$NMEDIT |
|
7293 # Extract the first word of "nmedit", so it can be a program name with args. |
|
7294 set dummy nmedit; ac_word=$2 |
|
7295 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7296 $as_echo_n "checking for $ac_word... " >&6; } |
|
7297 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
|
7298 $as_echo_n "(cached) " >&6 |
|
7299 else |
|
7300 if test -n "$ac_ct_NMEDIT"; then |
|
7301 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
|
7302 else |
|
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7304 for as_dir in $PATH |
|
7305 do |
|
7306 IFS=$as_save_IFS |
|
7307 test -z "$as_dir" && as_dir=. |
|
7308 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7310 ac_cv_prog_ac_ct_NMEDIT="nmedit" |
|
7311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7312 break 2 |
|
7313 fi |
|
7314 done |
|
7315 done |
|
7316 IFS=$as_save_IFS |
|
7317 |
|
7318 fi |
|
7319 fi |
|
7320 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
|
7321 if test -n "$ac_ct_NMEDIT"; then |
|
7322 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
|
7323 $as_echo "$ac_ct_NMEDIT" >&6; } |
|
7324 else |
|
7325 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
7326 $as_echo "no" >&6; } |
|
7327 fi |
|
7328 |
|
7329 if test "x$ac_ct_NMEDIT" = x; then |
|
7330 NMEDIT=":" |
|
7331 else |
|
7332 case $cross_compiling:$ac_tool_warned in |
|
7333 yes:) |
|
7334 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
7335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
7336 ac_tool_warned=yes ;; |
|
7337 esac |
|
7338 NMEDIT=$ac_ct_NMEDIT |
|
7339 fi |
|
7340 else |
|
7341 NMEDIT="$ac_cv_prog_NMEDIT" |
|
7342 fi |
|
7343 |
|
7344 if test -n "$ac_tool_prefix"; then |
|
7345 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
|
7346 set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
|
7347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7348 $as_echo_n "checking for $ac_word... " >&6; } |
|
7349 if test "${ac_cv_prog_LIPO+set}" = set; then |
|
7350 $as_echo_n "(cached) " >&6 |
|
7351 else |
|
7352 if test -n "$LIPO"; then |
|
7353 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
|
7354 else |
|
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7356 for as_dir in $PATH |
|
7357 do |
|
7358 IFS=$as_save_IFS |
|
7359 test -z "$as_dir" && as_dir=. |
|
7360 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7362 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
|
7363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7364 break 2 |
|
7365 fi |
|
7366 done |
|
7367 done |
|
7368 IFS=$as_save_IFS |
|
7369 |
|
7370 fi |
|
7371 fi |
|
7372 LIPO=$ac_cv_prog_LIPO |
|
7373 if test -n "$LIPO"; then |
|
7374 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 |
|
7375 $as_echo "$LIPO" >&6; } |
|
7376 else |
|
7377 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
7378 $as_echo "no" >&6; } |
|
7379 fi |
|
7380 |
|
7381 |
|
7382 fi |
|
7383 if test -z "$ac_cv_prog_LIPO"; then |
|
7384 ac_ct_LIPO=$LIPO |
|
7385 # Extract the first word of "lipo", so it can be a program name with args. |
|
7386 set dummy lipo; ac_word=$2 |
|
7387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7388 $as_echo_n "checking for $ac_word... " >&6; } |
|
7389 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then |
|
7390 $as_echo_n "(cached) " >&6 |
|
7391 else |
|
7392 if test -n "$ac_ct_LIPO"; then |
|
7393 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
|
7394 else |
|
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7396 for as_dir in $PATH |
|
7397 do |
|
7398 IFS=$as_save_IFS |
|
7399 test -z "$as_dir" && as_dir=. |
|
7400 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7402 ac_cv_prog_ac_ct_LIPO="lipo" |
|
7403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7404 break 2 |
|
7405 fi |
|
7406 done |
|
7407 done |
|
7408 IFS=$as_save_IFS |
|
7409 |
|
7410 fi |
|
7411 fi |
|
7412 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
|
7413 if test -n "$ac_ct_LIPO"; then |
|
7414 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 |
|
7415 $as_echo "$ac_ct_LIPO" >&6; } |
|
7416 else |
|
7417 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
7418 $as_echo "no" >&6; } |
|
7419 fi |
|
7420 |
|
7421 if test "x$ac_ct_LIPO" = x; then |
|
7422 LIPO=":" |
|
7423 else |
|
7424 case $cross_compiling:$ac_tool_warned in |
|
7425 yes:) |
|
7426 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
7427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
7428 ac_tool_warned=yes ;; |
|
7429 esac |
|
7430 LIPO=$ac_ct_LIPO |
|
7431 fi |
|
7432 else |
|
7433 LIPO="$ac_cv_prog_LIPO" |
|
7434 fi |
|
7435 |
|
7436 if test -n "$ac_tool_prefix"; then |
|
7437 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
|
7438 set dummy ${ac_tool_prefix}otool; ac_word=$2 |
|
7439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7440 $as_echo_n "checking for $ac_word... " >&6; } |
|
7441 if test "${ac_cv_prog_OTOOL+set}" = set; then |
|
7442 $as_echo_n "(cached) " >&6 |
|
7443 else |
|
7444 if test -n "$OTOOL"; then |
|
7445 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
|
7446 else |
|
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7448 for as_dir in $PATH |
|
7449 do |
|
7450 IFS=$as_save_IFS |
|
7451 test -z "$as_dir" && as_dir=. |
|
7452 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7454 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
|
7455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7456 break 2 |
|
7457 fi |
|
7458 done |
|
7459 done |
|
7460 IFS=$as_save_IFS |
|
7461 |
|
7462 fi |
|
7463 fi |
|
7464 OTOOL=$ac_cv_prog_OTOOL |
|
7465 if test -n "$OTOOL"; then |
|
7466 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 |
|
7467 $as_echo "$OTOOL" >&6; } |
|
7468 else |
|
7469 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
7470 $as_echo "no" >&6; } |
|
7471 fi |
|
7472 |
|
7473 |
|
7474 fi |
|
7475 if test -z "$ac_cv_prog_OTOOL"; then |
|
7476 ac_ct_OTOOL=$OTOOL |
|
7477 # Extract the first word of "otool", so it can be a program name with args. |
|
7478 set dummy otool; ac_word=$2 |
|
7479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7480 $as_echo_n "checking for $ac_word... " >&6; } |
|
7481 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then |
|
7482 $as_echo_n "(cached) " >&6 |
|
7483 else |
|
7484 if test -n "$ac_ct_OTOOL"; then |
|
7485 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
|
7486 else |
|
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7488 for as_dir in $PATH |
|
7489 do |
|
7490 IFS=$as_save_IFS |
|
7491 test -z "$as_dir" && as_dir=. |
|
7492 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7494 ac_cv_prog_ac_ct_OTOOL="otool" |
|
7495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7496 break 2 |
|
7497 fi |
|
7498 done |
|
7499 done |
|
7500 IFS=$as_save_IFS |
|
7501 |
|
7502 fi |
|
7503 fi |
|
7504 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
|
7505 if test -n "$ac_ct_OTOOL"; then |
|
7506 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 |
|
7507 $as_echo "$ac_ct_OTOOL" >&6; } |
|
7508 else |
|
7509 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
7510 $as_echo "no" >&6; } |
|
7511 fi |
|
7512 |
|
7513 if test "x$ac_ct_OTOOL" = x; then |
|
7514 OTOOL=":" |
|
7515 else |
|
7516 case $cross_compiling:$ac_tool_warned in |
|
7517 yes:) |
|
7518 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
7519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
7520 ac_tool_warned=yes ;; |
|
7521 esac |
|
7522 OTOOL=$ac_ct_OTOOL |
|
7523 fi |
|
7524 else |
|
7525 OTOOL="$ac_cv_prog_OTOOL" |
|
7526 fi |
|
7527 |
|
7528 if test -n "$ac_tool_prefix"; then |
|
7529 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
|
7530 set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
|
7531 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7532 $as_echo_n "checking for $ac_word... " >&6; } |
|
7533 if test "${ac_cv_prog_OTOOL64+set}" = set; then |
|
7534 $as_echo_n "(cached) " >&6 |
|
7535 else |
|
7536 if test -n "$OTOOL64"; then |
|
7537 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
|
7538 else |
|
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7540 for as_dir in $PATH |
|
7541 do |
|
7542 IFS=$as_save_IFS |
|
7543 test -z "$as_dir" && as_dir=. |
|
7544 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7546 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
|
7547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7548 break 2 |
|
7549 fi |
|
7550 done |
|
7551 done |
|
7552 IFS=$as_save_IFS |
|
7553 |
|
7554 fi |
|
7555 fi |
|
7556 OTOOL64=$ac_cv_prog_OTOOL64 |
|
7557 if test -n "$OTOOL64"; then |
|
7558 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 |
|
7559 $as_echo "$OTOOL64" >&6; } |
|
7560 else |
|
7561 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
7562 $as_echo "no" >&6; } |
|
7563 fi |
|
7564 |
|
7565 |
|
7566 fi |
|
7567 if test -z "$ac_cv_prog_OTOOL64"; then |
|
7568 ac_ct_OTOOL64=$OTOOL64 |
|
7569 # Extract the first word of "otool64", so it can be a program name with args. |
|
7570 set dummy otool64; ac_word=$2 |
|
7571 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
7572 $as_echo_n "checking for $ac_word... " >&6; } |
|
7573 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then |
|
7574 $as_echo_n "(cached) " >&6 |
|
7575 else |
|
7576 if test -n "$ac_ct_OTOOL64"; then |
|
7577 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
|
7578 else |
|
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
7580 for as_dir in $PATH |
|
7581 do |
|
7582 IFS=$as_save_IFS |
|
7583 test -z "$as_dir" && as_dir=. |
|
7584 for ac_exec_ext in '' $ac_executable_extensions; do |
|
7585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
7586 ac_cv_prog_ac_ct_OTOOL64="otool64" |
|
7587 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
7588 break 2 |
|
7589 fi |
|
7590 done |
|
7591 done |
|
7592 IFS=$as_save_IFS |
|
7593 |
|
7594 fi |
|
7595 fi |
|
7596 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
|
7597 if test -n "$ac_ct_OTOOL64"; then |
|
7598 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 |
|
7599 $as_echo "$ac_ct_OTOOL64" >&6; } |
|
7600 else |
|
7601 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
7602 $as_echo "no" >&6; } |
|
7603 fi |
|
7604 |
|
7605 if test "x$ac_ct_OTOOL64" = x; then |
|
7606 OTOOL64=":" |
|
7607 else |
|
7608 case $cross_compiling:$ac_tool_warned in |
|
7609 yes:) |
|
7610 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
7611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
7612 ac_tool_warned=yes ;; |
|
7613 esac |
|
7614 OTOOL64=$ac_ct_OTOOL64 |
|
7615 fi |
|
7616 else |
|
7617 OTOOL64="$ac_cv_prog_OTOOL64" |
|
7618 fi |
|
7619 |
|
7620 |
|
7621 |
|
7622 |
|
7623 |
|
7624 |
|
7625 |
|
7626 |
|
7627 |
|
7628 |
|
7629 |
|
7630 |
|
7631 |
|
7632 |
|
7633 |
|
7634 |
|
7635 |
|
7636 |
|
7637 |
|
7638 |
|
7639 |
|
7640 |
|
7641 |
|
7642 |
|
7643 |
|
7644 |
|
7645 |
|
7646 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
|
7647 $as_echo_n "checking for -single_module linker flag... " >&6; } |
|
7648 if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
|
7649 $as_echo_n "(cached) " >&6 |
|
7650 else |
|
7651 lt_cv_apple_cc_single_mod=no |
|
7652 if test -z "${LT_MULTI_MODULE}"; then |
|
7653 # By default we will add the -single_module flag. You can override |
|
7654 # by either setting the environment variable LT_MULTI_MODULE |
|
7655 # non-empty at configure time, or by adding -multi_module to the |
|
7656 # link flags. |
|
7657 rm -rf libconftest.dylib* |
|
7658 echo "int foo(void){return 1;}" > conftest.c |
|
7659 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
|
7660 -dynamiclib -Wl,-single_module conftest.c" >&5 |
|
7661 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
|
7662 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
|
7663 _lt_result=$? |
|
7664 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
|
7665 lt_cv_apple_cc_single_mod=yes |
|
7666 else |
|
7667 cat conftest.err >&5 |
|
7668 fi |
|
7669 rm -rf libconftest.dylib* |
|
7670 rm -f conftest.* |
|
7671 fi |
|
7672 fi |
|
7673 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
|
7674 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
|
7675 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
|
7676 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
|
7677 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
|
7678 $as_echo_n "(cached) " >&6 |
|
7679 else |
|
7680 lt_cv_ld_exported_symbols_list=no |
|
7681 save_LDFLAGS=$LDFLAGS |
|
7682 echo "_main" > conftest.sym |
|
7683 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
|
7684 cat >conftest.$ac_ext <<_ACEOF |
|
7685 /* confdefs.h. */ |
|
7686 _ACEOF |
|
7687 cat confdefs.h >>conftest.$ac_ext |
|
7688 cat >>conftest.$ac_ext <<_ACEOF |
|
7689 /* end confdefs.h. */ |
|
7690 |
|
7691 int |
|
7692 main () |
|
7693 { |
|
7694 |
|
7695 ; |
|
7696 return 0; |
|
7697 } |
|
7698 _ACEOF |
|
7699 rm -f conftest.$ac_objext conftest$ac_exeext |
|
7700 if { (ac_try="$ac_link" |
|
7701 case "(($ac_try" in |
|
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
7703 *) ac_try_echo=$ac_try;; |
|
7704 esac |
|
7705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
7706 $as_echo "$ac_try_echo") >&5 |
|
7707 (eval "$ac_link") 2>conftest.er1 |
|
7708 ac_status=$? |
|
7709 grep -v '^ *+' conftest.er1 >conftest.err |
|
7710 rm -f conftest.er1 |
|
7711 cat conftest.err >&5 |
|
7712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7713 (exit $ac_status); } && { |
|
7714 test -z "$ac_c_werror_flag" || |
|
7715 test ! -s conftest.err |
|
7716 } && test -s conftest$ac_exeext && { |
|
7717 test "$cross_compiling" = yes || |
|
7718 $as_test_x conftest$ac_exeext |
|
7719 }; then |
|
7720 lt_cv_ld_exported_symbols_list=yes |
|
7721 else |
|
7722 $as_echo "$as_me: failed program was:" >&5 |
|
7723 sed 's/^/| /' conftest.$ac_ext >&5 |
|
7724 |
|
7725 lt_cv_ld_exported_symbols_list=no |
|
7726 fi |
|
7727 |
|
7728 rm -rf conftest.dSYM |
|
7729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
7730 conftest$ac_exeext conftest.$ac_ext |
|
7731 LDFLAGS="$save_LDFLAGS" |
|
7732 |
|
7733 fi |
|
7734 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
|
7735 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
|
7736 case $host_os in |
|
7737 rhapsody* | darwin1.[012]) |
|
7738 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
|
7739 darwin1.*) |
|
7740 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
|
7741 darwin*) # darwin 5.x on |
|
7742 # if running on 10.5 or later, the deployment target defaults |
|
7743 # to the OS version, if on x86, and 10.4, the deployment |
|
7744 # target defaults to 10.4. Don't you love it? |
|
7745 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
|
7746 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
|
7747 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
|
7748 10.[012]*) |
|
7749 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
|
7750 10.*) |
|
7751 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
|
7752 esac |
|
7753 ;; |
|
7754 esac |
|
7755 if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
|
7756 _lt_dar_single_mod='$single_module' |
|
7757 fi |
|
7758 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
|
7759 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
|
7760 else |
|
7761 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
7762 fi |
|
7763 if test "$DSYMUTIL" != ":"; then |
|
7764 _lt_dsymutil='~$DSYMUTIL $lib || :' |
|
7765 else |
|
7766 _lt_dsymutil= |
|
7767 fi |
|
7768 ;; |
|
7769 esac |
|
7770 |
|
7771 |
|
7772 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
7773 $as_echo_n "checking for ANSI C header files... " >&6; } |
|
7774 if test "${ac_cv_header_stdc+set}" = set; then |
|
7775 $as_echo_n "(cached) " >&6 |
|
7776 else |
|
7777 cat >conftest.$ac_ext <<_ACEOF |
|
7778 /* confdefs.h. */ |
|
7779 _ACEOF |
|
7780 cat confdefs.h >>conftest.$ac_ext |
|
7781 cat >>conftest.$ac_ext <<_ACEOF |
|
7782 /* end confdefs.h. */ |
|
7783 #include <stdlib.h> |
|
7784 #include <stdarg.h> |
|
7785 #include <string.h> |
|
7786 #include <float.h> |
|
7787 |
|
7788 int |
|
7789 main () |
|
7790 { |
|
7791 |
|
7792 ; |
|
7793 return 0; |
|
7794 } |
|
7795 _ACEOF |
|
7796 rm -f conftest.$ac_objext |
|
7797 if { (ac_try="$ac_compile" |
|
7798 case "(($ac_try" in |
|
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
7800 *) ac_try_echo=$ac_try;; |
|
7801 esac |
|
7802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
7803 $as_echo "$ac_try_echo") >&5 |
|
7804 (eval "$ac_compile") 2>conftest.er1 |
|
7805 ac_status=$? |
|
7806 grep -v '^ *+' conftest.er1 >conftest.err |
|
7807 rm -f conftest.er1 |
|
7808 cat conftest.err >&5 |
|
7809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7810 (exit $ac_status); } && { |
|
7811 test -z "$ac_c_werror_flag" || |
|
7812 test ! -s conftest.err |
|
7813 } && test -s conftest.$ac_objext; then |
|
7814 ac_cv_header_stdc=yes |
|
7815 else |
|
7816 $as_echo "$as_me: failed program was:" >&5 |
|
7817 sed 's/^/| /' conftest.$ac_ext >&5 |
|
7818 |
|
7819 ac_cv_header_stdc=no |
|
7820 fi |
|
7821 |
|
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7823 |
|
7824 if test $ac_cv_header_stdc = yes; then |
|
7825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
7826 cat >conftest.$ac_ext <<_ACEOF |
|
7827 /* confdefs.h. */ |
|
7828 _ACEOF |
|
7829 cat confdefs.h >>conftest.$ac_ext |
|
7830 cat >>conftest.$ac_ext <<_ACEOF |
|
7831 /* end confdefs.h. */ |
|
7832 #include <string.h> |
|
7833 |
|
7834 _ACEOF |
|
7835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
7836 $EGREP "memchr" >/dev/null 2>&1; then |
|
7837 : |
|
7838 else |
|
7839 ac_cv_header_stdc=no |
|
7840 fi |
|
7841 rm -f conftest* |
|
7842 |
|
7843 fi |
|
7844 |
|
7845 if test $ac_cv_header_stdc = yes; then |
|
7846 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
7847 cat >conftest.$ac_ext <<_ACEOF |
|
7848 /* confdefs.h. */ |
|
7849 _ACEOF |
|
7850 cat confdefs.h >>conftest.$ac_ext |
|
7851 cat >>conftest.$ac_ext <<_ACEOF |
|
7852 /* end confdefs.h. */ |
|
7853 #include <stdlib.h> |
|
7854 |
|
7855 _ACEOF |
|
7856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
7857 $EGREP "free" >/dev/null 2>&1; then |
|
7858 : |
|
7859 else |
|
7860 ac_cv_header_stdc=no |
|
7861 fi |
|
7862 rm -f conftest* |
|
7863 |
|
7864 fi |
|
7865 |
|
7866 if test $ac_cv_header_stdc = yes; then |
|
7867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
7868 if test "$cross_compiling" = yes; then |
|
7869 : |
|
7870 else |
|
7871 cat >conftest.$ac_ext <<_ACEOF |
|
7872 /* confdefs.h. */ |
|
7873 _ACEOF |
|
7874 cat confdefs.h >>conftest.$ac_ext |
|
7875 cat >>conftest.$ac_ext <<_ACEOF |
|
7876 /* end confdefs.h. */ |
|
7877 #include <ctype.h> |
|
7878 #include <stdlib.h> |
|
7879 #if ((' ' & 0x0FF) == 0x020) |
|
7880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
7881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
7882 #else |
|
7883 # define ISLOWER(c) \ |
|
7884 (('a' <= (c) && (c) <= 'i') \ |
|
7885 || ('j' <= (c) && (c) <= 'r') \ |
|
7886 || ('s' <= (c) && (c) <= 'z')) |
|
7887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
7888 #endif |
|
7889 |
|
7890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
7891 int |
|
7892 main () |
|
7893 { |
|
7894 int i; |
|
7895 for (i = 0; i < 256; i++) |
|
7896 if (XOR (islower (i), ISLOWER (i)) |
|
7897 || toupper (i) != TOUPPER (i)) |
|
7898 return 2; |
|
7899 return 0; |
|
7900 } |
|
7901 _ACEOF |
|
7902 rm -f conftest$ac_exeext |
|
7903 if { (ac_try="$ac_link" |
|
7904 case "(($ac_try" in |
|
7905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
7906 *) ac_try_echo=$ac_try;; |
|
7907 esac |
|
7908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
7909 $as_echo "$ac_try_echo") >&5 |
|
7910 (eval "$ac_link") 2>&5 |
|
7911 ac_status=$? |
|
7912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
7914 { (case "(($ac_try" in |
|
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
7916 *) ac_try_echo=$ac_try;; |
|
7917 esac |
|
7918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
7919 $as_echo "$ac_try_echo") >&5 |
|
7920 (eval "$ac_try") 2>&5 |
|
7921 ac_status=$? |
|
7922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7923 (exit $ac_status); }; }; then |
|
7924 : |
|
7925 else |
|
7926 $as_echo "$as_me: program exited with status $ac_status" >&5 |
|
7927 $as_echo "$as_me: failed program was:" >&5 |
|
7928 sed 's/^/| /' conftest.$ac_ext >&5 |
|
7929 |
|
7930 ( exit $ac_status ) |
|
7931 ac_cv_header_stdc=no |
|
7932 fi |
|
7933 rm -rf conftest.dSYM |
|
7934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
7935 fi |
|
7936 |
|
7937 |
|
7938 fi |
|
7939 fi |
|
7940 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
7941 $as_echo "$ac_cv_header_stdc" >&6; } |
|
7942 if test $ac_cv_header_stdc = yes; then |
|
7943 |
|
7944 cat >>confdefs.h <<\_ACEOF |
|
7945 #define STDC_HEADERS 1 |
|
7946 _ACEOF |
|
7947 |
|
7948 fi |
|
7949 |
|
7950 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
7951 |
|
7952 |
|
7953 |
|
7954 |
|
7955 |
|
7956 |
|
7957 |
|
7958 |
|
7959 |
|
7960 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
7961 inttypes.h stdint.h unistd.h |
|
7962 do |
|
7963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
7964 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
7965 $as_echo_n "checking for $ac_header... " >&6; } |
|
7966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
7967 $as_echo_n "(cached) " >&6 |
|
7968 else |
|
7969 cat >conftest.$ac_ext <<_ACEOF |
|
7970 /* confdefs.h. */ |
|
7971 _ACEOF |
|
7972 cat confdefs.h >>conftest.$ac_ext |
|
7973 cat >>conftest.$ac_ext <<_ACEOF |
|
7974 /* end confdefs.h. */ |
|
7975 $ac_includes_default |
|
7976 |
|
7977 #include <$ac_header> |
|
7978 _ACEOF |
|
7979 rm -f conftest.$ac_objext |
|
7980 if { (ac_try="$ac_compile" |
|
7981 case "(($ac_try" in |
|
7982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
7983 *) ac_try_echo=$ac_try;; |
|
7984 esac |
|
7985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
7986 $as_echo "$ac_try_echo") >&5 |
|
7987 (eval "$ac_compile") 2>conftest.er1 |
|
7988 ac_status=$? |
|
7989 grep -v '^ *+' conftest.er1 >conftest.err |
|
7990 rm -f conftest.er1 |
|
7991 cat conftest.err >&5 |
|
7992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7993 (exit $ac_status); } && { |
|
7994 test -z "$ac_c_werror_flag" || |
|
7995 test ! -s conftest.err |
|
7996 } && test -s conftest.$ac_objext; then |
|
7997 eval "$as_ac_Header=yes" |
|
7998 else |
|
7999 $as_echo "$as_me: failed program was:" >&5 |
|
8000 sed 's/^/| /' conftest.$ac_ext >&5 |
|
8001 |
|
8002 eval "$as_ac_Header=no" |
|
8003 fi |
|
8004 |
|
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
8006 fi |
|
8007 ac_res=`eval 'as_val=${'$as_ac_Header'} |
|
8008 $as_echo "$as_val"'` |
|
8009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
8010 $as_echo "$ac_res" >&6; } |
|
8011 as_val=`eval 'as_val=${'$as_ac_Header'} |
|
8012 $as_echo "$as_val"'` |
|
8013 if test "x$as_val" = x""yes; then |
|
8014 cat >>confdefs.h <<_ACEOF |
|
8015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
8016 _ACEOF |
|
8017 |
|
8018 fi |
|
8019 |
|
8020 done |
|
8021 |
|
8022 |
|
8023 |
|
8024 for ac_header in dlfcn.h |
|
8025 do |
|
8026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
8027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
8028 $as_echo_n "checking for $ac_header... " >&6; } |
|
8029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
8030 $as_echo_n "(cached) " >&6 |
|
8031 else |
|
8032 cat >conftest.$ac_ext <<_ACEOF |
|
8033 /* confdefs.h. */ |
|
8034 _ACEOF |
|
8035 cat confdefs.h >>conftest.$ac_ext |
|
8036 cat >>conftest.$ac_ext <<_ACEOF |
|
8037 /* end confdefs.h. */ |
|
8038 $ac_includes_default |
|
8039 |
|
8040 #include <$ac_header> |
|
8041 _ACEOF |
|
8042 rm -f conftest.$ac_objext |
|
8043 if { (ac_try="$ac_compile" |
|
8044 case "(($ac_try" in |
|
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
8046 *) ac_try_echo=$ac_try;; |
|
8047 esac |
|
8048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
8049 $as_echo "$ac_try_echo") >&5 |
|
8050 (eval "$ac_compile") 2>conftest.er1 |
|
8051 ac_status=$? |
|
8052 grep -v '^ *+' conftest.er1 >conftest.err |
|
8053 rm -f conftest.er1 |
|
8054 cat conftest.err >&5 |
|
8055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8056 (exit $ac_status); } && { |
|
8057 test -z "$ac_c_werror_flag" || |
|
8058 test ! -s conftest.err |
|
8059 } && test -s conftest.$ac_objext; then |
|
8060 eval "$as_ac_Header=yes" |
|
8061 else |
|
8062 $as_echo "$as_me: failed program was:" >&5 |
|
8063 sed 's/^/| /' conftest.$ac_ext >&5 |
|
8064 |
|
8065 eval "$as_ac_Header=no" |
|
8066 fi |
|
8067 |
|
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
8069 fi |
|
8070 ac_res=`eval 'as_val=${'$as_ac_Header'} |
|
8071 $as_echo "$as_val"'` |
|
8072 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
8073 $as_echo "$ac_res" >&6; } |
|
8074 as_val=`eval 'as_val=${'$as_ac_Header'} |
|
8075 $as_echo "$as_val"'` |
|
8076 if test "x$as_val" = x""yes; then |
|
8077 cat >>confdefs.h <<_ACEOF |
|
8078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
8079 _ACEOF |
|
8080 |
|
8081 fi |
|
8082 |
|
8083 done |
|
8084 |
|
8085 |
|
8086 |
|
8087 # Set options |
|
8088 |
|
8089 |
|
8090 |
|
8091 enable_dlopen=no |
|
8092 |
|
8093 |
|
8094 enable_win32_dll=no |
|
8095 |
|
8096 |
|
8097 # Check whether --enable-shared was given. |
|
8098 if test "${enable_shared+set}" = set; then |
|
8099 enableval=$enable_shared; p=${PACKAGE-default} |
|
8100 case $enableval in |
|
8101 yes) enable_shared=yes ;; |
|
8102 no) enable_shared=no ;; |
|
8103 *) |
|
8104 enable_shared=no |
|
8105 # Look at the argument we got. We use all the common list separators. |
|
8106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
8107 for pkg in $enableval; do |
|
8108 IFS="$lt_save_ifs" |
|
8109 if test "X$pkg" = "X$p"; then |
|
8110 enable_shared=yes |
|
8111 fi |
|
8112 done |
|
8113 IFS="$lt_save_ifs" |
|
8114 ;; |
|
8115 esac |
|
8116 else |
|
8117 enable_shared=yes |
|
8118 fi |
|
8119 |
|
8120 |
|
8121 |
|
8122 |
|
8123 |
|
8124 |
|
8125 |
|
8126 |
|
8127 |
|
8128 |
|
8129 |
|
8130 # Check whether --with-pic was given. |
|
8131 if test "${with_pic+set}" = set; then |
|
8132 withval=$with_pic; pic_mode="$withval" |
|
8133 else |
|
8134 pic_mode=default |
|
8135 fi |
|
8136 |
|
8137 |
|
8138 test -z "$pic_mode" && pic_mode=default |
|
8139 |
|
8140 |
|
8141 |
|
8142 |
|
8143 |
|
8144 |
|
8145 |
|
8146 # Check whether --enable-fast-install was given. |
|
8147 if test "${enable_fast_install+set}" = set; then |
|
8148 enableval=$enable_fast_install; p=${PACKAGE-default} |
|
8149 case $enableval in |
|
8150 yes) enable_fast_install=yes ;; |
|
8151 no) enable_fast_install=no ;; |
|
8152 *) |
|
8153 enable_fast_install=no |
|
8154 # Look at the argument we got. We use all the common list separators. |
|
8155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
8156 for pkg in $enableval; do |
|
8157 IFS="$lt_save_ifs" |
|
8158 if test "X$pkg" = "X$p"; then |
|
8159 enable_fast_install=yes |
|
8160 fi |
|
8161 done |
|
8162 IFS="$lt_save_ifs" |
|
8163 ;; |
|
8164 esac |
|
8165 else |
|
8166 enable_fast_install=yes |
|
8167 fi |
|
8168 |
|
8169 |
|
8170 |
|
8171 |
|
8172 |
|
8173 |
|
8174 |
|
8175 |
|
8176 |
|
8177 |
|
8178 |
|
8179 # This can be used to rebuild libtool when needed |
|
8180 LIBTOOL_DEPS="$ltmain" |
|
8181 |
|
8182 # Always use our own libtool. |
|
8183 LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
8184 |
|
8185 |
|
8186 |
|
8187 |
|
8188 |
|
8189 |
|
8190 |
|
8191 |
|
8192 |
|
8193 |
|
8194 |
|
8195 |
|
8196 |
|
8197 |
|
8198 |
|
8199 |
|
8200 |
|
8201 |
|
8202 |
|
8203 |
|
8204 |
|
8205 |
|
8206 |
|
8207 |
|
8208 |
|
8209 test -z "$LN_S" && LN_S="ln -s" |
|
8210 |
|
8211 |
|
8212 |
|
8213 |
|
8214 |
|
8215 |
|
8216 |
|
8217 |
|
8218 |
|
8219 |
|
8220 |
|
8221 |
|
8222 |
|
8223 |
|
8224 if test -n "${ZSH_VERSION+set}" ; then |
|
8225 setopt NO_GLOB_SUBST |
|
8226 fi |
|
8227 |
|
8228 { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
|
8229 $as_echo_n "checking for objdir... " >&6; } |
|
8230 if test "${lt_cv_objdir+set}" = set; then |
|
8231 $as_echo_n "(cached) " >&6 |
|
8232 else |
|
8233 rm -f .libs 2>/dev/null |
|
8234 mkdir .libs 2>/dev/null |
|
8235 if test -d .libs; then |
|
8236 lt_cv_objdir=.libs |
|
8237 else |
|
8238 # MS-DOS does not allow filenames that begin with a dot. |
|
8239 lt_cv_objdir=_libs |
|
8240 fi |
|
8241 rmdir .libs 2>/dev/null |
|
8242 fi |
|
8243 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
|
8244 $as_echo "$lt_cv_objdir" >&6; } |
|
8245 objdir=$lt_cv_objdir |
|
8246 |
|
8247 |
|
8248 |
|
8249 |
|
8250 |
|
8251 cat >>confdefs.h <<_ACEOF |
|
8252 #define LT_OBJDIR "$lt_cv_objdir/" |
|
8253 _ACEOF |
|
8254 |
|
8255 |
|
8256 |
|
8257 |
|
8258 |
|
8259 |
|
8260 |
|
8261 |
|
8262 |
|
8263 |
|
8264 |
|
8265 |
|
8266 |
|
8267 |
|
8268 |
|
8269 |
|
8270 |
|
8271 case $host_os in |
|
8272 aix3*) |
|
8273 # AIX sometimes has problems with the GCC collect2 program. For some |
|
8274 # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
8275 # vanish in a puff of smoke. |
|
8276 if test "X${COLLECT_NAMES+set}" != Xset; then |
|
8277 COLLECT_NAMES= |
|
8278 export COLLECT_NAMES |
|
8279 fi |
|
8280 ;; |
|
8281 esac |
|
8282 |
|
8283 # Sed substitution that helps us do robust quoting. It backslashifies |
|
8284 # metacharacters that are still active within double-quoted strings. |
|
8285 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
|
8286 |
|
8287 # Same as above, but do not quote variable references. |
|
8288 double_quote_subst='s/\(["`\\]\)/\\\1/g' |
|
8289 |
|
8290 # Sed substitution to delay expansion of an escaped shell variable in a |
|
8291 # double_quote_subst'ed string. |
|
8292 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
8293 |
|
8294 # Sed substitution to delay expansion of an escaped single quote. |
|
8295 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
|
8296 |
|
8297 # Sed substitution to avoid accidental globbing in evaled expressions |
|
8298 no_glob_subst='s/\*/\\\*/g' |
|
8299 |
|
8300 # Global variables: |
|
8301 ofile=libtool |
|
8302 can_build_shared=yes |
|
8303 |
|
8304 # All known linkers require a `.a' archive for static linking (except MSVC, |
|
8305 # which needs '.lib'). |
|
8306 libext=a |
|
8307 |
|
8308 with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
8309 |
|
8310 old_CC="$CC" |
|
8311 old_CFLAGS="$CFLAGS" |
|
8312 |
|
8313 # Set sane defaults for various variables |
|
8314 test -z "$CC" && CC=cc |
|
8315 test -z "$LTCC" && LTCC=$CC |
|
8316 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
|
8317 test -z "$LD" && LD=ld |
|
8318 test -z "$ac_objext" && ac_objext=o |
|
8319 |
|
8320 for cc_temp in $compiler""; do |
|
8321 case $cc_temp in |
|
8322 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
8323 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
8324 \-*) ;; |
|
8325 *) break;; |
|
8326 esac |
|
8327 done |
|
8328 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
8329 |
|
8330 |
|
8331 # Only perform the check for file, if the check method requires it |
|
8332 test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
8333 case $deplibs_check_method in |
|
8334 file_magic*) |
|
8335 if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
8336 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
8337 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
|
8338 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
8339 $as_echo_n "(cached) " >&6 |
|
8340 else |
|
8341 case $MAGIC_CMD in |
|
8342 [\\/*] | ?:[\\/]*) |
|
8343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
8344 ;; |
|
8345 *) |
|
8346 lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
8347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
8348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
8349 for ac_dir in $ac_dummy; do |
|
8350 IFS="$lt_save_ifs" |
|
8351 test -z "$ac_dir" && ac_dir=. |
|
8352 if test -f $ac_dir/${ac_tool_prefix}file; then |
|
8353 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
8354 if test -n "$file_magic_test_file"; then |
|
8355 case $deplibs_check_method in |
|
8356 "file_magic "*) |
|
8357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
8358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
8359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
8360 $EGREP "$file_magic_regex" > /dev/null; then |
|
8361 : |
|
8362 else |
|
8363 cat <<_LT_EOF 1>&2 |
|
8364 |
|
8365 *** Warning: the command libtool uses to detect shared libraries, |
|
8366 *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
8367 *** The result is that libtool may fail to recognize shared libraries |
|
8368 *** as such. This will affect the creation of libtool libraries that |
|
8369 *** depend on shared libraries, but programs linked with such libtool |
|
8370 *** libraries will work regardless of this problem. Nevertheless, you |
|
8371 *** may want to report the problem to your system manager and/or to |
|
8372 *** bug-libtool@gnu.org |
|
8373 |
|
8374 _LT_EOF |
|
8375 fi ;; |
|
8376 esac |
|
8377 fi |
|
8378 break |
|
8379 fi |
|
8380 done |
|
8381 IFS="$lt_save_ifs" |
|
8382 MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
8383 ;; |
|
8384 esac |
|
8385 fi |
|
8386 |
|
8387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
8388 if test -n "$MAGIC_CMD"; then |
|
8389 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
8390 $as_echo "$MAGIC_CMD" >&6; } |
|
8391 else |
|
8392 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
8393 $as_echo "no" >&6; } |
|
8394 fi |
|
8395 |
|
8396 |
|
8397 |
|
8398 |
|
8399 |
|
8400 if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
8401 if test -n "$ac_tool_prefix"; then |
|
8402 { $as_echo "$as_me:$LINENO: checking for file" >&5 |
|
8403 $as_echo_n "checking for file... " >&6; } |
|
8404 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
8405 $as_echo_n "(cached) " >&6 |
|
8406 else |
|
8407 case $MAGIC_CMD in |
|
8408 [\\/*] | ?:[\\/]*) |
|
8409 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
8410 ;; |
|
8411 *) |
|
8412 lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
8413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
8414 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
8415 for ac_dir in $ac_dummy; do |
|
8416 IFS="$lt_save_ifs" |
|
8417 test -z "$ac_dir" && ac_dir=. |
|
8418 if test -f $ac_dir/file; then |
|
8419 lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
8420 if test -n "$file_magic_test_file"; then |
|
8421 case $deplibs_check_method in |
|
8422 "file_magic "*) |
|
8423 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
8424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
8425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
8426 $EGREP "$file_magic_regex" > /dev/null; then |
|
8427 : |
|
8428 else |
|
8429 cat <<_LT_EOF 1>&2 |
|
8430 |
|
8431 *** Warning: the command libtool uses to detect shared libraries, |
|
8432 *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
8433 *** The result is that libtool may fail to recognize shared libraries |
|
8434 *** as such. This will affect the creation of libtool libraries that |
|
8435 *** depend on shared libraries, but programs linked with such libtool |
|
8436 *** libraries will work regardless of this problem. Nevertheless, you |
|
8437 *** may want to report the problem to your system manager and/or to |
|
8438 *** bug-libtool@gnu.org |
|
8439 |
|
8440 _LT_EOF |
|
8441 fi ;; |
|
8442 esac |
|
8443 fi |
|
8444 break |
|
8445 fi |
|
8446 done |
|
8447 IFS="$lt_save_ifs" |
|
8448 MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
8449 ;; |
|
8450 esac |
|
8451 fi |
|
8452 |
|
8453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
8454 if test -n "$MAGIC_CMD"; then |
|
8455 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
8456 $as_echo "$MAGIC_CMD" >&6; } |
|
8457 else |
|
8458 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
8459 $as_echo "no" >&6; } |
|
8460 fi |
|
8461 |
|
8462 |
|
8463 else |
|
8464 MAGIC_CMD=: |
|
8465 fi |
|
8466 fi |
|
8467 |
|
8468 fi |
|
8469 ;; |
|
8470 esac |
|
8471 |
|
8472 # Use C for the default configuration in the libtool script |
|
8473 |
|
8474 lt_save_CC="$CC" |
|
8475 ac_ext=c |
|
8476 ac_cpp='$CPP $CPPFLAGS' |
|
8477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
8478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
8479 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
8480 |
|
8481 |
|
8482 # Source file extension for C test sources. |
|
8483 ac_ext=c |
|
8484 |
|
8485 # Object file extension for compiled C test sources. |
|
8486 objext=o |
|
8487 objext=$objext |
|
8488 |
|
8489 # Code to be used in simple compile tests |
|
8490 lt_simple_compile_test_code="int some_variable = 0;" |
|
8491 |
|
8492 # Code to be used in simple link tests |
|
8493 lt_simple_link_test_code='int main(){return(0);}' |
|
8494 |
|
8495 |
|
8496 |
|
8497 |
|
8498 |
|
8499 |
|
8500 |
|
8501 # If no C compiler was specified, use CC. |
|
8502 LTCC=${LTCC-"$CC"} |
|
8503 |
|
8504 # If no C compiler flags were specified, use CFLAGS. |
|
8505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
8506 |
|
8507 # Allow CC to be a program name with arguments. |
|
8508 compiler=$CC |
|
8509 |
|
8510 # Save the default compiler, since it gets overwritten when the other |
|
8511 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
|
8512 compiler_DEFAULT=$CC |
|
8513 |
|
8514 # save warnings/boilerplate of simple test code |
|
8515 ac_outfile=conftest.$ac_objext |
|
8516 echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
8517 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
8518 _lt_compiler_boilerplate=`cat conftest.err` |
|
8519 $RM conftest* |
|
8520 |
|
8521 ac_outfile=conftest.$ac_objext |
|
8522 echo "$lt_simple_link_test_code" >conftest.$ac_ext |
|
8523 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
8524 _lt_linker_boilerplate=`cat conftest.err` |
|
8525 $RM -r conftest* |
|
8526 |
|
8527 |
|
8528 if test -n "$compiler"; then |
|
8529 |
|
8530 lt_prog_compiler_no_builtin_flag= |
|
8531 |
|
8532 if test "$GCC" = yes; then |
|
8533 lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
8534 |
|
8535 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
8536 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
|
8537 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
8538 $as_echo_n "(cached) " >&6 |
|
8539 else |
|
8540 lt_cv_prog_compiler_rtti_exceptions=no |
|
8541 ac_outfile=conftest.$ac_objext |
|
8542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
8543 lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
8544 # Insert the option either (1) after the last *FLAGS variable, or |
|
8545 # (2) before a word containing "conftest.", or (3) at the end. |
|
8546 # Note that $ac_compile itself does not contain backslashes and begins |
|
8547 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
8548 # The option is referenced via a variable to avoid confusing sed. |
|
8549 lt_compile=`echo "$ac_compile" | $SED \ |
|
8550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
8551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
8552 -e 's:$: $lt_compiler_flag:'` |
|
8553 (eval echo "\"\$as_me:8553: $lt_compile\"" >&5) |
|
8554 (eval "$lt_compile" 2>conftest.err) |
|
8555 ac_status=$? |
|
8556 cat conftest.err >&5 |
|
8557 echo "$as_me:8557: \$? = $ac_status" >&5 |
|
8558 if (exit $ac_status) && test -s "$ac_outfile"; then |
|
8559 # The compiler can only warn and ignore the option if not recognized |
|
8560 # So say no if there are warnings other than the usual output. |
|
8561 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
8562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
8563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
8564 lt_cv_prog_compiler_rtti_exceptions=yes |
|
8565 fi |
|
8566 fi |
|
8567 $RM conftest* |
|
8568 |
|
8569 fi |
|
8570 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
8571 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
|
8572 |
|
8573 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
8574 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
|
8575 else |
|
8576 : |
|
8577 fi |
|
8578 |
|
8579 fi |
|
8580 |
|
8581 |
|
8582 |
|
8583 |
|
8584 |
|
8585 |
|
8586 lt_prog_compiler_wl= |
|
8587 lt_prog_compiler_pic= |
|
8588 lt_prog_compiler_static= |
|
8589 |
|
8590 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
8591 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
|
8592 |
|
8593 if test "$GCC" = yes; then |
|
8594 lt_prog_compiler_wl='-Wl,' |
|
8595 lt_prog_compiler_static='-static' |
|
8596 |
|
8597 case $host_os in |
|
8598 aix*) |
|
8599 # All AIX code is PIC. |
|
8600 if test "$host_cpu" = ia64; then |
|
8601 # AIX 5 now supports IA64 processor |
|
8602 lt_prog_compiler_static='-Bstatic' |
|
8603 fi |
|
8604 ;; |
|
8605 |
|
8606 amigaos*) |
|
8607 case $host_cpu in |
|
8608 powerpc) |
|
8609 # see comment about AmigaOS4 .so support |
|
8610 lt_prog_compiler_pic='-fPIC' |
|
8611 ;; |
|
8612 m68k) |
|
8613 # FIXME: we need at least 68020 code to build shared libraries, but |
|
8614 # adding the `-m68020' flag to GCC prevents building anything better, |
|
8615 # like `-m68040'. |
|
8616 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
|
8617 ;; |
|
8618 esac |
|
8619 ;; |
|
8620 |
|
8621 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
8622 # PIC is the default for these OSes. |
|
8623 ;; |
|
8624 |
|
8625 mingw* | cygwin* | pw32* | os2* | cegcc*) |
|
8626 # This hack is so that the source file can tell whether it is being |
|
8627 # built for inclusion in a dll (and should export symbols for example). |
|
8628 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
|
8629 # (--disable-auto-import) libraries |
|
8630 lt_prog_compiler_pic='-DDLL_EXPORT' |
|
8631 ;; |
|
8632 |
|
8633 darwin* | rhapsody*) |
|
8634 # PIC is the default on this platform |
|
8635 # Common symbols not allowed in MH_DYLIB files |
|
8636 lt_prog_compiler_pic='-fno-common' |
|
8637 ;; |
|
8638 |
|
8639 hpux*) |
|
8640 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
|
8641 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
|
8642 # sets the default TLS model and affects inlining. |
|
8643 case $host_cpu in |
|
8644 hppa*64*) |
|
8645 # +Z the default |
|
8646 ;; |
|
8647 *) |
|
8648 lt_prog_compiler_pic='-fPIC' |
|
8649 ;; |
|
8650 esac |
|
8651 ;; |
|
8652 |
|
8653 interix[3-9]*) |
|
8654 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
8655 # Instead, we relocate shared libraries at runtime. |
|
8656 ;; |
|
8657 |
|
8658 msdosdjgpp*) |
|
8659 # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
8660 # on systems that don't support them. |
|
8661 lt_prog_compiler_can_build_shared=no |
|
8662 enable_shared=no |
|
8663 ;; |
|
8664 |
|
8665 *nto* | *qnx*) |
|
8666 # QNX uses GNU C++, but need to define -shared option too, otherwise |
|
8667 # it will coredump. |
|
8668 lt_prog_compiler_pic='-fPIC -shared' |
|
8669 ;; |
|
8670 |
|
8671 sysv4*MP*) |
|
8672 if test -d /usr/nec; then |
|
8673 lt_prog_compiler_pic=-Kconform_pic |
|
8674 fi |
|
8675 ;; |
|
8676 |
|
8677 *) |
|
8678 lt_prog_compiler_pic='-fPIC' |
|
8679 ;; |
|
8680 esac |
|
8681 else |
|
8682 # PORTME Check for flag to pass linker flags through the system compiler. |
|
8683 case $host_os in |
|
8684 aix*) |
|
8685 lt_prog_compiler_wl='-Wl,' |
|
8686 if test "$host_cpu" = ia64; then |
|
8687 # AIX 5 now supports IA64 processor |
|
8688 lt_prog_compiler_static='-Bstatic' |
|
8689 else |
|
8690 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
|
8691 fi |
|
8692 ;; |
|
8693 |
|
8694 mingw* | cygwin* | pw32* | os2* | cegcc*) |
|
8695 # This hack is so that the source file can tell whether it is being |
|
8696 # built for inclusion in a dll (and should export symbols for example). |
|
8697 lt_prog_compiler_pic='-DDLL_EXPORT' |
|
8698 ;; |
|
8699 |
|
8700 hpux9* | hpux10* | hpux11*) |
|
8701 lt_prog_compiler_wl='-Wl,' |
|
8702 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
8703 # not for PA HP-UX. |
|
8704 case $host_cpu in |
|
8705 hppa*64*|ia64*) |
|
8706 # +Z the default |
|
8707 ;; |
|
8708 *) |
|
8709 lt_prog_compiler_pic='+Z' |
|
8710 ;; |
|
8711 esac |
|
8712 # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
8713 lt_prog_compiler_static='${wl}-a ${wl}archive' |
|
8714 ;; |
|
8715 |
|
8716 irix5* | irix6* | nonstopux*) |
|
8717 lt_prog_compiler_wl='-Wl,' |
|
8718 # PIC (with -KPIC) is the default. |
|
8719 lt_prog_compiler_static='-non_shared' |
|
8720 ;; |
|
8721 |
|
8722 linux* | k*bsd*-gnu) |
|
8723 case $cc_basename in |
|
8724 # old Intel for x86_64 which still supported -KPIC. |
|
8725 ecc*) |
|
8726 lt_prog_compiler_wl='-Wl,' |
|
8727 lt_prog_compiler_pic='-KPIC' |
|
8728 lt_prog_compiler_static='-static' |
|
8729 ;; |
|
8730 # icc used to be incompatible with GCC. |
|
8731 # ICC 10 doesn't accept -KPIC any more. |
|
8732 icc* | ifort*) |
|
8733 lt_prog_compiler_wl='-Wl,' |
|
8734 lt_prog_compiler_pic='-fPIC' |
|
8735 lt_prog_compiler_static='-static' |
|
8736 ;; |
|
8737 # Lahey Fortran 8.1. |
|
8738 lf95*) |
|
8739 lt_prog_compiler_wl='-Wl,' |
|
8740 lt_prog_compiler_pic='--shared' |
|
8741 lt_prog_compiler_static='--static' |
|
8742 ;; |
|
8743 pgcc* | pgf77* | pgf90* | pgf95*) |
|
8744 # Portland Group compilers (*not* the Pentium gcc compiler, |
|
8745 # which looks to be a dead project) |
|
8746 lt_prog_compiler_wl='-Wl,' |
|
8747 lt_prog_compiler_pic='-fpic' |
|
8748 lt_prog_compiler_static='-Bstatic' |
|
8749 ;; |
|
8750 ccc*) |
|
8751 lt_prog_compiler_wl='-Wl,' |
|
8752 # All Alpha code is PIC. |
|
8753 lt_prog_compiler_static='-non_shared' |
|
8754 ;; |
|
8755 xl*) |
|
8756 # IBM XL C 8.0/Fortran 10.1 on PPC |
|
8757 lt_prog_compiler_wl='-Wl,' |
|
8758 lt_prog_compiler_pic='-qpic' |
|
8759 lt_prog_compiler_static='-qstaticlink' |
|
8760 ;; |
|
8761 *) |
|
8762 case `$CC -V 2>&1 | sed 5q` in |
|
8763 *Sun\ C*) |
|
8764 # Sun C 5.9 |
|
8765 lt_prog_compiler_pic='-KPIC' |
|
8766 lt_prog_compiler_static='-Bstatic' |
|
8767 lt_prog_compiler_wl='-Wl,' |
|
8768 ;; |
|
8769 *Sun\ F*) |
|
8770 # Sun Fortran 8.3 passes all unrecognized flags to the linker |
|
8771 lt_prog_compiler_pic='-KPIC' |
|
8772 lt_prog_compiler_static='-Bstatic' |
|
8773 lt_prog_compiler_wl='' |
|
8774 ;; |
|
8775 esac |
|
8776 ;; |
|
8777 esac |
|
8778 ;; |
|
8779 |
|
8780 newsos6) |
|
8781 lt_prog_compiler_pic='-KPIC' |
|
8782 lt_prog_compiler_static='-Bstatic' |
|
8783 ;; |
|
8784 |
|
8785 *nto* | *qnx*) |
|
8786 # QNX uses GNU C++, but need to define -shared option too, otherwise |
|
8787 # it will coredump. |
|
8788 lt_prog_compiler_pic='-fPIC -shared' |
|
8789 ;; |
|
8790 |
|
8791 osf3* | osf4* | osf5*) |
|
8792 lt_prog_compiler_wl='-Wl,' |
|
8793 # All OSF/1 code is PIC. |
|
8794 lt_prog_compiler_static='-non_shared' |
|
8795 ;; |
|
8796 |
|
8797 rdos*) |
|
8798 lt_prog_compiler_static='-non_shared' |
|
8799 ;; |
|
8800 |
|
8801 solaris*) |
|
8802 lt_prog_compiler_pic='-KPIC' |
|
8803 lt_prog_compiler_static='-Bstatic' |
|
8804 case $cc_basename in |
|
8805 f77* | f90* | f95*) |
|
8806 lt_prog_compiler_wl='-Qoption ld ';; |
|
8807 *) |
|
8808 lt_prog_compiler_wl='-Wl,';; |
|
8809 esac |
|
8810 ;; |
|
8811 |
|
8812 sunos4*) |
|
8813 lt_prog_compiler_wl='-Qoption ld ' |
|
8814 lt_prog_compiler_pic='-PIC' |
|
8815 lt_prog_compiler_static='-Bstatic' |
|
8816 ;; |
|
8817 |
|
8818 sysv4 | sysv4.2uw2* | sysv4.3*) |
|
8819 lt_prog_compiler_wl='-Wl,' |
|
8820 lt_prog_compiler_pic='-KPIC' |
|
8821 lt_prog_compiler_static='-Bstatic' |
|
8822 ;; |
|
8823 |
|
8824 sysv4*MP*) |
|
8825 if test -d /usr/nec ;then |
|
8826 lt_prog_compiler_pic='-Kconform_pic' |
|
8827 lt_prog_compiler_static='-Bstatic' |
|
8828 fi |
|
8829 ;; |
|
8830 |
|
8831 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
8832 lt_prog_compiler_wl='-Wl,' |
|
8833 lt_prog_compiler_pic='-KPIC' |
|
8834 lt_prog_compiler_static='-Bstatic' |
|
8835 ;; |
|
8836 |
|
8837 unicos*) |
|
8838 lt_prog_compiler_wl='-Wl,' |
|
8839 lt_prog_compiler_can_build_shared=no |
|
8840 ;; |
|
8841 |
|
8842 uts4*) |
|
8843 lt_prog_compiler_pic='-pic' |
|
8844 lt_prog_compiler_static='-Bstatic' |
|
8845 ;; |
|
8846 |
|
8847 *) |
|
8848 lt_prog_compiler_can_build_shared=no |
|
8849 ;; |
|
8850 esac |
|
8851 fi |
|
8852 |
|
8853 case $host_os in |
|
8854 # For platforms which do not support PIC, -DPIC is meaningless: |
|
8855 *djgpp*) |
|
8856 lt_prog_compiler_pic= |
|
8857 ;; |
|
8858 *) |
|
8859 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
|
8860 ;; |
|
8861 esac |
|
8862 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
|
8863 $as_echo "$lt_prog_compiler_pic" >&6; } |
|
8864 |
|
8865 |
|
8866 |
|
8867 |
|
8868 |
|
8869 |
|
8870 # |
|
8871 # Check to make sure the PIC flag actually works. |
|
8872 # |
|
8873 if test -n "$lt_prog_compiler_pic"; then |
|
8874 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
|
8875 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
|
8876 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
|
8877 $as_echo_n "(cached) " >&6 |
|
8878 else |
|
8879 lt_cv_prog_compiler_pic_works=no |
|
8880 ac_outfile=conftest.$ac_objext |
|
8881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
8882 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
|
8883 # Insert the option either (1) after the last *FLAGS variable, or |
|
8884 # (2) before a word containing "conftest.", or (3) at the end. |
|
8885 # Note that $ac_compile itself does not contain backslashes and begins |
|
8886 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
8887 # The option is referenced via a variable to avoid confusing sed. |
|
8888 lt_compile=`echo "$ac_compile" | $SED \ |
|
8889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
8890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
8891 -e 's:$: $lt_compiler_flag:'` |
|
8892 (eval echo "\"\$as_me:8892: $lt_compile\"" >&5) |
|
8893 (eval "$lt_compile" 2>conftest.err) |
|
8894 ac_status=$? |
|
8895 cat conftest.err >&5 |
|
8896 echo "$as_me:8896: \$? = $ac_status" >&5 |
|
8897 if (exit $ac_status) && test -s "$ac_outfile"; then |
|
8898 # The compiler can only warn and ignore the option if not recognized |
|
8899 # So say no if there are warnings other than the usual output. |
|
8900 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
8901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
8902 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
8903 lt_cv_prog_compiler_pic_works=yes |
|
8904 fi |
|
8905 fi |
|
8906 $RM conftest* |
|
8907 |
|
8908 fi |
|
8909 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
|
8910 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
|
8911 |
|
8912 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
|
8913 case $lt_prog_compiler_pic in |
|
8914 "" | " "*) ;; |
|
8915 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
|
8916 esac |
|
8917 else |
|
8918 lt_prog_compiler_pic= |
|
8919 lt_prog_compiler_can_build_shared=no |
|
8920 fi |
|
8921 |
|
8922 fi |
|
8923 |
|
8924 |
|
8925 |
|
8926 |
|
8927 |
|
8928 |
|
8929 # |
|
8930 # Check to make sure the static flag actually works. |
|
8931 # |
|
8932 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
|
8933 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
8934 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
|
8935 if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
|
8936 $as_echo_n "(cached) " >&6 |
|
8937 else |
|
8938 lt_cv_prog_compiler_static_works=no |
|
8939 save_LDFLAGS="$LDFLAGS" |
|
8940 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
8941 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
|
8942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
8943 # The linker can only warn and ignore the option if not recognized |
|
8944 # So say no if there are warnings |
|
8945 if test -s conftest.err; then |
|
8946 # Append any errors to the config.log. |
|
8947 cat conftest.err 1>&5 |
|
8948 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
8949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
8950 if diff conftest.exp conftest.er2 >/dev/null; then |
|
8951 lt_cv_prog_compiler_static_works=yes |
|
8952 fi |
|
8953 else |
|
8954 lt_cv_prog_compiler_static_works=yes |
|
8955 fi |
|
8956 fi |
|
8957 $RM -r conftest* |
|
8958 LDFLAGS="$save_LDFLAGS" |
|
8959 |
|
8960 fi |
|
8961 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
|
8962 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
|
8963 |
|
8964 if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
|
8965 : |
|
8966 else |
|
8967 lt_prog_compiler_static= |
|
8968 fi |
|
8969 |
|
8970 |
|
8971 |
|
8972 |
|
8973 |
|
8974 |
|
8975 |
|
8976 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
8977 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
|
8978 if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
|
8979 $as_echo_n "(cached) " >&6 |
|
8980 else |
|
8981 lt_cv_prog_compiler_c_o=no |
|
8982 $RM -r conftest 2>/dev/null |
|
8983 mkdir conftest |
|
8984 cd conftest |
|
8985 mkdir out |
|
8986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
8987 |
|
8988 lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
8989 # Insert the option either (1) after the last *FLAGS variable, or |
|
8990 # (2) before a word containing "conftest.", or (3) at the end. |
|
8991 # Note that $ac_compile itself does not contain backslashes and begins |
|
8992 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
8993 lt_compile=`echo "$ac_compile" | $SED \ |
|
8994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
8995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
8996 -e 's:$: $lt_compiler_flag:'` |
|
8997 (eval echo "\"\$as_me:8997: $lt_compile\"" >&5) |
|
8998 (eval "$lt_compile" 2>out/conftest.err) |
|
8999 ac_status=$? |
|
9000 cat out/conftest.err >&5 |
|
9001 echo "$as_me:9001: \$? = $ac_status" >&5 |
|
9002 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
9003 then |
|
9004 # The compiler can only warn and ignore the option if not recognized |
|
9005 # So say no if there are warnings |
|
9006 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
9007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
9008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
9009 lt_cv_prog_compiler_c_o=yes |
|
9010 fi |
|
9011 fi |
|
9012 chmod u+w . 2>&5 |
|
9013 $RM conftest* |
|
9014 # SGI C++ compiler will create directory out/ii_files/ for |
|
9015 # template instantiation |
|
9016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
|
9017 $RM out/* && rmdir out |
|
9018 cd .. |
|
9019 $RM -r conftest |
|
9020 $RM conftest* |
|
9021 |
|
9022 fi |
|
9023 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
|
9024 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
|
9025 |
|
9026 |
|
9027 |
|
9028 |
|
9029 |
|
9030 |
|
9031 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
9032 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
|
9033 if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
|
9034 $as_echo_n "(cached) " >&6 |
|
9035 else |
|
9036 lt_cv_prog_compiler_c_o=no |
|
9037 $RM -r conftest 2>/dev/null |
|
9038 mkdir conftest |
|
9039 cd conftest |
|
9040 mkdir out |
|
9041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
9042 |
|
9043 lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
9044 # Insert the option either (1) after the last *FLAGS variable, or |
|
9045 # (2) before a word containing "conftest.", or (3) at the end. |
|
9046 # Note that $ac_compile itself does not contain backslashes and begins |
|
9047 # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
9048 lt_compile=`echo "$ac_compile" | $SED \ |
|
9049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
9050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
9051 -e 's:$: $lt_compiler_flag:'` |
|
9052 (eval echo "\"\$as_me:9052: $lt_compile\"" >&5) |
|
9053 (eval "$lt_compile" 2>out/conftest.err) |
|
9054 ac_status=$? |
|
9055 cat out/conftest.err >&5 |
|
9056 echo "$as_me:9056: \$? = $ac_status" >&5 |
|
9057 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
9058 then |
|
9059 # The compiler can only warn and ignore the option if not recognized |
|
9060 # So say no if there are warnings |
|
9061 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
9062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
9063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
9064 lt_cv_prog_compiler_c_o=yes |
|
9065 fi |
|
9066 fi |
|
9067 chmod u+w . 2>&5 |
|
9068 $RM conftest* |
|
9069 # SGI C++ compiler will create directory out/ii_files/ for |
|
9070 # template instantiation |
|
9071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
|
9072 $RM out/* && rmdir out |
|
9073 cd .. |
|
9074 $RM -r conftest |
|
9075 $RM conftest* |
|
9076 |
|
9077 fi |
|
9078 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
|
9079 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
|
9080 |
|
9081 |
|
9082 |
|
9083 |
|
9084 hard_links="nottested" |
|
9085 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
|
9086 # do not overwrite the value of need_locks provided by the user |
|
9087 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
9088 $as_echo_n "checking if we can lock with hard links... " >&6; } |
|
9089 hard_links=yes |
|
9090 $RM conftest* |
|
9091 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
9092 touch conftest.a |
|
9093 ln conftest.a conftest.b 2>&5 || hard_links=no |
|
9094 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
9095 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
9096 $as_echo "$hard_links" >&6; } |
|
9097 if test "$hard_links" = no; then |
|
9098 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
9099 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
9100 need_locks=warn |
|
9101 fi |
|
9102 else |
|
9103 need_locks=no |
|
9104 fi |
|
9105 |
|
9106 |
|
9107 |
|
9108 |
|
9109 |
|
9110 |
|
9111 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
9112 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
|
9113 |
|
9114 runpath_var= |
|
9115 allow_undefined_flag= |
|
9116 always_export_symbols=no |
|
9117 archive_cmds= |
|
9118 archive_expsym_cmds= |
|
9119 compiler_needs_object=no |
|
9120 enable_shared_with_static_runtimes=no |
|
9121 export_dynamic_flag_spec= |
|
9122 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
9123 hardcode_automatic=no |
|
9124 hardcode_direct=no |
|
9125 hardcode_direct_absolute=no |
|
9126 hardcode_libdir_flag_spec= |
|
9127 hardcode_libdir_flag_spec_ld= |
|
9128 hardcode_libdir_separator= |
|
9129 hardcode_minus_L=no |
|
9130 hardcode_shlibpath_var=unsupported |
|
9131 inherit_rpath=no |
|
9132 link_all_deplibs=unknown |
|
9133 module_cmds= |
|
9134 module_expsym_cmds= |
|
9135 old_archive_from_new_cmds= |
|
9136 old_archive_from_expsyms_cmds= |
|
9137 thread_safe_flag_spec= |
|
9138 whole_archive_flag_spec= |
|
9139 # include_expsyms should be a list of space-separated symbols to be *always* |
|
9140 # included in the symbol list |
|
9141 include_expsyms= |
|
9142 # exclude_expsyms can be an extended regexp of symbols to exclude |
|
9143 # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
9144 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
9145 # as well as any symbol that contains `d'. |
|
9146 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
|
9147 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
9148 # platforms (ab)use it in PIC code, but their linkers get confused if |
|
9149 # the symbol is explicitly referenced. Since portable code cannot |
|
9150 # rely on this symbol name, it's probably fine to never include it in |
|
9151 # preloaded symbol tables. |
|
9152 # Exclude shared library initialization/finalization symbols. |
|
9153 extract_expsyms_cmds= |
|
9154 |
|
9155 case $host_os in |
|
9156 cygwin* | mingw* | pw32* | cegcc*) |
|
9157 # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
9158 # When not using gcc, we currently assume that we are using |
|
9159 # Microsoft Visual C++. |
|
9160 if test "$GCC" != yes; then |
|
9161 with_gnu_ld=no |
|
9162 fi |
|
9163 ;; |
|
9164 interix*) |
|
9165 # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
9166 with_gnu_ld=yes |
|
9167 ;; |
|
9168 openbsd*) |
|
9169 with_gnu_ld=no |
|
9170 ;; |
|
9171 esac |
|
9172 |
|
9173 ld_shlibs=yes |
|
9174 if test "$with_gnu_ld" = yes; then |
|
9175 # If archive_cmds runs LD, not CC, wlarc should be empty |
|
9176 wlarc='${wl}' |
|
9177 |
|
9178 # Set some defaults for GNU ld with shared library support. These |
|
9179 # are reset later if shared libraries are not supported. Putting them |
|
9180 # here allows them to be overridden if necessary. |
|
9181 runpath_var=LD_RUN_PATH |
|
9182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9183 export_dynamic_flag_spec='${wl}--export-dynamic' |
|
9184 # ancient GNU ld didn't support --whole-archive et. al. |
|
9185 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
|
9186 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
9187 else |
|
9188 whole_archive_flag_spec= |
|
9189 fi |
|
9190 supports_anon_versioning=no |
|
9191 case `$LD -v 2>&1` in |
|
9192 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
9193 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
9194 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
9195 *\ 2.11.*) ;; # other 2.11 versions |
|
9196 *) supports_anon_versioning=yes ;; |
|
9197 esac |
|
9198 |
|
9199 # See if GNU ld supports shared libraries. |
|
9200 case $host_os in |
|
9201 aix[3-9]*) |
|
9202 # On AIX/PPC, the GNU linker is very broken |
|
9203 if test "$host_cpu" != ia64; then |
|
9204 ld_shlibs=no |
|
9205 cat <<_LT_EOF 1>&2 |
|
9206 |
|
9207 *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
9208 *** to be unable to reliably create shared libraries on AIX. |
|
9209 *** Therefore, libtool is disabling shared libraries support. If you |
|
9210 *** really care for shared libraries, you may want to modify your PATH |
|
9211 *** so that a non-GNU linker is found, and then restart. |
|
9212 |
|
9213 _LT_EOF |
|
9214 fi |
|
9215 ;; |
|
9216 |
|
9217 amigaos*) |
|
9218 case $host_cpu in |
|
9219 powerpc) |
|
9220 # see comment about AmigaOS4 .so support |
|
9221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
9222 archive_expsym_cmds='' |
|
9223 ;; |
|
9224 m68k) |
|
9225 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)' |
|
9226 hardcode_libdir_flag_spec='-L$libdir' |
|
9227 hardcode_minus_L=yes |
|
9228 ;; |
|
9229 esac |
|
9230 ;; |
|
9231 |
|
9232 beos*) |
|
9233 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
9234 allow_undefined_flag=unsupported |
|
9235 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
9236 # support --undefined. This deserves some investigation. FIXME |
|
9237 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
9238 else |
|
9239 ld_shlibs=no |
|
9240 fi |
|
9241 ;; |
|
9242 |
|
9243 cygwin* | mingw* | pw32* | cegcc*) |
|
9244 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
|
9245 # as there is no search path for DLLs. |
|
9246 hardcode_libdir_flag_spec='-L$libdir' |
|
9247 allow_undefined_flag=unsupported |
|
9248 always_export_symbols=no |
|
9249 enable_shared_with_static_runtimes=yes |
|
9250 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
|
9251 |
|
9252 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
|
9253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
9254 # If the export-symbols file already is a .def file (1st line |
|
9255 # is EXPORTS), use it as is; otherwise, prepend... |
|
9256 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
9257 cp $export_symbols $output_objdir/$soname.def; |
|
9258 else |
|
9259 echo EXPORTS > $output_objdir/$soname.def; |
|
9260 cat $export_symbols >> $output_objdir/$soname.def; |
|
9261 fi~ |
|
9262 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
9263 else |
|
9264 ld_shlibs=no |
|
9265 fi |
|
9266 ;; |
|
9267 |
|
9268 interix[3-9]*) |
|
9269 hardcode_direct=no |
|
9270 hardcode_shlibpath_var=no |
|
9271 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
9272 export_dynamic_flag_spec='${wl}-E' |
|
9273 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
9274 # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
9275 # default) and relocated if they conflict, which is a slow very memory |
|
9276 # consuming and fragmenting process. To avoid this, we pick a random, |
|
9277 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
9278 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
9279 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
9280 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' |
|
9281 ;; |
|
9282 |
|
9283 gnu* | linux* | tpf* | k*bsd*-gnu) |
|
9284 tmp_diet=no |
|
9285 if test "$host_os" = linux-dietlibc; then |
|
9286 case $cc_basename in |
|
9287 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
|
9288 esac |
|
9289 fi |
|
9290 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
|
9291 && test "$tmp_diet" = no |
|
9292 then |
|
9293 tmp_addflag= |
|
9294 tmp_sharedflag='-shared' |
|
9295 case $cc_basename,$host_cpu in |
|
9296 pgcc*) # Portland Group C compiler |
|
9297 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' |
|
9298 tmp_addflag=' $pic_flag' |
|
9299 ;; |
|
9300 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
9301 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' |
|
9302 tmp_addflag=' $pic_flag -Mnomain' ;; |
|
9303 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
9304 tmp_addflag=' -i_dynamic' ;; |
|
9305 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
9306 tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
9307 ifc* | ifort*) # Intel Fortran compiler |
|
9308 tmp_addflag=' -nofor_main' ;; |
|
9309 lf95*) # Lahey Fortran 8.1 |
|
9310 whole_archive_flag_spec= |
|
9311 tmp_sharedflag='--shared' ;; |
|
9312 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
|
9313 tmp_sharedflag='-qmkshrobj' |
|
9314 tmp_addflag= ;; |
|
9315 esac |
|
9316 case `$CC -V 2>&1 | sed 5q` in |
|
9317 *Sun\ C*) # Sun C 5.9 |
|
9318 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' |
|
9319 compiler_needs_object=yes |
|
9320 tmp_sharedflag='-G' ;; |
|
9321 *Sun\ F*) # Sun Fortran 8.3 |
|
9322 tmp_sharedflag='-G' ;; |
|
9323 esac |
|
9324 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
9325 |
|
9326 if test "x$supports_anon_versioning" = xyes; then |
|
9327 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
|
9328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
9329 echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
9330 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
9331 fi |
|
9332 |
|
9333 case $cc_basename in |
|
9334 xlf*) |
|
9335 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
|
9336 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
|
9337 hardcode_libdir_flag_spec= |
|
9338 hardcode_libdir_flag_spec_ld='-rpath $libdir' |
|
9339 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
|
9340 if test "x$supports_anon_versioning" = xyes; then |
|
9341 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
|
9342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
9343 echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
9344 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
|
9345 fi |
|
9346 ;; |
|
9347 esac |
|
9348 else |
|
9349 ld_shlibs=no |
|
9350 fi |
|
9351 ;; |
|
9352 |
|
9353 netbsd*) |
|
9354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
9355 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
9356 wlarc= |
|
9357 else |
|
9358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
9359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
9360 fi |
|
9361 ;; |
|
9362 |
|
9363 solaris*) |
|
9364 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
|
9365 ld_shlibs=no |
|
9366 cat <<_LT_EOF 1>&2 |
|
9367 |
|
9368 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
9369 *** create shared libraries on Solaris systems. Therefore, libtool |
|
9370 *** is disabling shared libraries support. We urge you to upgrade GNU |
|
9371 *** binutils to release 2.9.1 or newer. Another option is to modify |
|
9372 *** your PATH or compiler configuration so that the native linker is |
|
9373 *** used, and then restart. |
|
9374 |
|
9375 _LT_EOF |
|
9376 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
9377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
9378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
9379 else |
|
9380 ld_shlibs=no |
|
9381 fi |
|
9382 ;; |
|
9383 |
|
9384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
9385 case `$LD -v 2>&1` in |
|
9386 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
9387 ld_shlibs=no |
|
9388 cat <<_LT_EOF 1>&2 |
|
9389 |
|
9390 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
9391 *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
9392 *** is disabling shared libraries support. We urge you to upgrade GNU |
|
9393 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
9394 *** your PATH or compiler configuration so that the native linker is |
|
9395 *** used, and then restart. |
|
9396 |
|
9397 _LT_EOF |
|
9398 ;; |
|
9399 *) |
|
9400 # For security reasons, it is highly recommended that you always |
|
9401 # use absolute paths for naming shared libraries, and exclude the |
|
9402 # DT_RUNPATH tag from executables and libraries. But doing so |
|
9403 # requires that you compile everything twice, which is a pain. |
|
9404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
9405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
9407 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
9408 else |
|
9409 ld_shlibs=no |
|
9410 fi |
|
9411 ;; |
|
9412 esac |
|
9413 ;; |
|
9414 |
|
9415 sunos4*) |
|
9416 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
9417 wlarc= |
|
9418 hardcode_direct=yes |
|
9419 hardcode_shlibpath_var=no |
|
9420 ;; |
|
9421 |
|
9422 *) |
|
9423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
9424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
9425 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
9426 else |
|
9427 ld_shlibs=no |
|
9428 fi |
|
9429 ;; |
|
9430 esac |
|
9431 |
|
9432 if test "$ld_shlibs" = no; then |
|
9433 runpath_var= |
|
9434 hardcode_libdir_flag_spec= |
|
9435 export_dynamic_flag_spec= |
|
9436 whole_archive_flag_spec= |
|
9437 fi |
|
9438 else |
|
9439 # PORTME fill in a description of your system's linker (not GNU ld) |
|
9440 case $host_os in |
|
9441 aix3*) |
|
9442 allow_undefined_flag=unsupported |
|
9443 always_export_symbols=yes |
|
9444 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' |
|
9445 # Note: this linker hardcodes the directories in LIBPATH if there |
|
9446 # are no directories specified by -L. |
|
9447 hardcode_minus_L=yes |
|
9448 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
9449 # Neither direct hardcoding nor static linking is supported with a |
|
9450 # broken collect2. |
|
9451 hardcode_direct=unsupported |
|
9452 fi |
|
9453 ;; |
|
9454 |
|
9455 aix[4-9]*) |
|
9456 if test "$host_cpu" = ia64; then |
|
9457 # On IA64, the linker does run time linking by default, so we don't |
|
9458 # have to do anything special. |
|
9459 aix_use_runtimelinking=no |
|
9460 exp_sym_flag='-Bexport' |
|
9461 no_entry_flag="" |
|
9462 else |
|
9463 # If we're using GNU nm, then we don't want the "-C" option. |
|
9464 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
9465 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
|
9466 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' |
|
9467 else |
|
9468 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' |
|
9469 fi |
|
9470 aix_use_runtimelinking=no |
|
9471 |
|
9472 # Test if we are trying to use run time linking or normal |
|
9473 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
9474 # need to do runtime linking. |
|
9475 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
|
9476 for ld_flag in $LDFLAGS; do |
|
9477 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
9478 aix_use_runtimelinking=yes |
|
9479 break |
|
9480 fi |
|
9481 done |
|
9482 ;; |
|
9483 esac |
|
9484 |
|
9485 exp_sym_flag='-bexport' |
|
9486 no_entry_flag='-bnoentry' |
|
9487 fi |
|
9488 |
|
9489 # When large executables or shared objects are built, AIX ld can |
|
9490 # have problems creating the table of contents. If linking a library |
|
9491 # or program results in "error TOC overflow" add -mminimal-toc to |
|
9492 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
9493 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
9494 |
|
9495 archive_cmds='' |
|
9496 hardcode_direct=yes |
|
9497 hardcode_direct_absolute=yes |
|
9498 hardcode_libdir_separator=':' |
|
9499 link_all_deplibs=yes |
|
9500 file_list_spec='${wl}-f,' |
|
9501 |
|
9502 if test "$GCC" = yes; then |
|
9503 case $host_os in aix4.[012]|aix4.[012].*) |
|
9504 # We only want to do this on AIX 4.2 and lower, the check |
|
9505 # below for broken collect2 doesn't work under 4.3+ |
|
9506 collect2name=`${CC} -print-prog-name=collect2` |
|
9507 if test -f "$collect2name" && |
|
9508 strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
|
9509 then |
|
9510 # We have reworked collect2 |
|
9511 : |
|
9512 else |
|
9513 # We have old collect2 |
|
9514 hardcode_direct=unsupported |
|
9515 # It fails to find uninstalled libraries when the uninstalled |
|
9516 # path is not listed in the libpath. Setting hardcode_minus_L |
|
9517 # to unsupported forces relinking |
|
9518 hardcode_minus_L=yes |
|
9519 hardcode_libdir_flag_spec='-L$libdir' |
|
9520 hardcode_libdir_separator= |
|
9521 fi |
|
9522 ;; |
|
9523 esac |
|
9524 shared_flag='-shared' |
|
9525 if test "$aix_use_runtimelinking" = yes; then |
|
9526 shared_flag="$shared_flag "'${wl}-G' |
|
9527 fi |
|
9528 else |
|
9529 # not using gcc |
|
9530 if test "$host_cpu" = ia64; then |
|
9531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
9532 # chokes on -Wl,-G. The following line is correct: |
|
9533 shared_flag='-G' |
|
9534 else |
|
9535 if test "$aix_use_runtimelinking" = yes; then |
|
9536 shared_flag='${wl}-G' |
|
9537 else |
|
9538 shared_flag='${wl}-bM:SRE' |
|
9539 fi |
|
9540 fi |
|
9541 fi |
|
9542 |
|
9543 export_dynamic_flag_spec='${wl}-bexpall' |
|
9544 # It seems that -bexpall does not export symbols beginning with |
|
9545 # underscore (_), so it is better to generate a list of symbols to export. |
|
9546 always_export_symbols=yes |
|
9547 if test "$aix_use_runtimelinking" = yes; then |
|
9548 # Warning - without using the other runtime loading flags (-brtl), |
|
9549 # -berok will link without error, but may produce a broken library. |
|
9550 allow_undefined_flag='-berok' |
|
9551 # Determine the default libpath from the value encoded in an |
|
9552 # empty executable. |
|
9553 cat >conftest.$ac_ext <<_ACEOF |
|
9554 /* confdefs.h. */ |
|
9555 _ACEOF |
|
9556 cat confdefs.h >>conftest.$ac_ext |
|
9557 cat >>conftest.$ac_ext <<_ACEOF |
|
9558 /* end confdefs.h. */ |
|
9559 |
|
9560 int |
|
9561 main () |
|
9562 { |
|
9563 |
|
9564 ; |
|
9565 return 0; |
|
9566 } |
|
9567 _ACEOF |
|
9568 rm -f conftest.$ac_objext conftest$ac_exeext |
|
9569 if { (ac_try="$ac_link" |
|
9570 case "(($ac_try" in |
|
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
9572 *) ac_try_echo=$ac_try;; |
|
9573 esac |
|
9574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
9575 $as_echo "$ac_try_echo") >&5 |
|
9576 (eval "$ac_link") 2>conftest.er1 |
|
9577 ac_status=$? |
|
9578 grep -v '^ *+' conftest.er1 >conftest.err |
|
9579 rm -f conftest.er1 |
|
9580 cat conftest.err >&5 |
|
9581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9582 (exit $ac_status); } && { |
|
9583 test -z "$ac_c_werror_flag" || |
|
9584 test ! -s conftest.err |
|
9585 } && test -s conftest$ac_exeext && { |
|
9586 test "$cross_compiling" = yes || |
|
9587 $as_test_x conftest$ac_exeext |
|
9588 }; then |
|
9589 |
|
9590 lt_aix_libpath_sed=' |
|
9591 /Import File Strings/,/^$/ { |
|
9592 /^0/ { |
|
9593 s/^0 *\(.*\)$/\1/ |
|
9594 p |
|
9595 } |
|
9596 }' |
|
9597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
9598 # Check for a 64-bit object if we didn't find anything. |
|
9599 if test -z "$aix_libpath"; then |
|
9600 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
9601 fi |
|
9602 else |
|
9603 $as_echo "$as_me: failed program was:" >&5 |
|
9604 sed 's/^/| /' conftest.$ac_ext >&5 |
|
9605 |
|
9606 |
|
9607 fi |
|
9608 |
|
9609 rm -rf conftest.dSYM |
|
9610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
9611 conftest$ac_exeext conftest.$ac_ext |
|
9612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
9613 |
|
9614 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
9615 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" |
|
9616 else |
|
9617 if test "$host_cpu" = ia64; then |
|
9618 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|
9619 allow_undefined_flag="-z nodefs" |
|
9620 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" |
|
9621 else |
|
9622 # Determine the default libpath from the value encoded in an |
|
9623 # empty executable. |
|
9624 cat >conftest.$ac_ext <<_ACEOF |
|
9625 /* confdefs.h. */ |
|
9626 _ACEOF |
|
9627 cat confdefs.h >>conftest.$ac_ext |
|
9628 cat >>conftest.$ac_ext <<_ACEOF |
|
9629 /* end confdefs.h. */ |
|
9630 |
|
9631 int |
|
9632 main () |
|
9633 { |
|
9634 |
|
9635 ; |
|
9636 return 0; |
|
9637 } |
|
9638 _ACEOF |
|
9639 rm -f conftest.$ac_objext conftest$ac_exeext |
|
9640 if { (ac_try="$ac_link" |
|
9641 case "(($ac_try" in |
|
9642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
9643 *) ac_try_echo=$ac_try;; |
|
9644 esac |
|
9645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
9646 $as_echo "$ac_try_echo") >&5 |
|
9647 (eval "$ac_link") 2>conftest.er1 |
|
9648 ac_status=$? |
|
9649 grep -v '^ *+' conftest.er1 >conftest.err |
|
9650 rm -f conftest.er1 |
|
9651 cat conftest.err >&5 |
|
9652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9653 (exit $ac_status); } && { |
|
9654 test -z "$ac_c_werror_flag" || |
|
9655 test ! -s conftest.err |
|
9656 } && test -s conftest$ac_exeext && { |
|
9657 test "$cross_compiling" = yes || |
|
9658 $as_test_x conftest$ac_exeext |
|
9659 }; then |
|
9660 |
|
9661 lt_aix_libpath_sed=' |
|
9662 /Import File Strings/,/^$/ { |
|
9663 /^0/ { |
|
9664 s/^0 *\(.*\)$/\1/ |
|
9665 p |
|
9666 } |
|
9667 }' |
|
9668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
9669 # Check for a 64-bit object if we didn't find anything. |
|
9670 if test -z "$aix_libpath"; then |
|
9671 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
9672 fi |
|
9673 else |
|
9674 $as_echo "$as_me: failed program was:" >&5 |
|
9675 sed 's/^/| /' conftest.$ac_ext >&5 |
|
9676 |
|
9677 |
|
9678 fi |
|
9679 |
|
9680 rm -rf conftest.dSYM |
|
9681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
9682 conftest$ac_exeext conftest.$ac_ext |
|
9683 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
9684 |
|
9685 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
9686 # Warning - without using the other run time loading flags, |
|
9687 # -berok will link without error, but may produce a broken library. |
|
9688 no_undefined_flag=' ${wl}-bernotok' |
|
9689 allow_undefined_flag=' ${wl}-berok' |
|
9690 # Exported symbols can be pulled into shared objects from archives |
|
9691 whole_archive_flag_spec='$convenience' |
|
9692 archive_cmds_need_lc=yes |
|
9693 # This is similar to how AIX traditionally builds its shared libraries. |
|
9694 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' |
|
9695 fi |
|
9696 fi |
|
9697 ;; |
|
9698 |
|
9699 amigaos*) |
|
9700 case $host_cpu in |
|
9701 powerpc) |
|
9702 # see comment about AmigaOS4 .so support |
|
9703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
9704 archive_expsym_cmds='' |
|
9705 ;; |
|
9706 m68k) |
|
9707 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
9708 hardcode_libdir_flag_spec='-L$libdir' |
|
9709 hardcode_minus_L=yes |
|
9710 ;; |
|
9711 esac |
|
9712 ;; |
|
9713 |
|
9714 bsdi[45]*) |
|
9715 export_dynamic_flag_spec=-rdynamic |
|
9716 ;; |
|
9717 |
|
9718 cygwin* | mingw* | pw32* | cegcc*) |
|
9719 # When not using gcc, we currently assume that we are using |
|
9720 # Microsoft Visual C++. |
|
9721 # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
9722 # no search path for DLLs. |
|
9723 hardcode_libdir_flag_spec=' ' |
|
9724 allow_undefined_flag=unsupported |
|
9725 # Tell ltmain to make .lib files, not .a files. |
|
9726 libext=lib |
|
9727 # Tell ltmain to make .dll files, not .so files. |
|
9728 shrext_cmds=".dll" |
|
9729 # FIXME: Setting linknames here is a bad hack. |
|
9730 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
9731 # The linker will automatically build a .lib file if we build a DLL. |
|
9732 old_archive_from_new_cmds='true' |
|
9733 # FIXME: Should let the user specify the lib program. |
|
9734 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
|
9735 fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
9736 enable_shared_with_static_runtimes=yes |
|
9737 ;; |
|
9738 |
|
9739 darwin* | rhapsody*) |
|
9740 |
|
9741 |
|
9742 archive_cmds_need_lc=no |
|
9743 hardcode_direct=no |
|
9744 hardcode_automatic=yes |
|
9745 hardcode_shlibpath_var=unsupported |
|
9746 whole_archive_flag_spec='' |
|
9747 link_all_deplibs=yes |
|
9748 allow_undefined_flag="$_lt_dar_allow_undefined" |
|
9749 case $cc_basename in |
|
9750 ifort*) _lt_dar_can_shared=yes ;; |
|
9751 *) _lt_dar_can_shared=$GCC ;; |
|
9752 esac |
|
9753 if test "$_lt_dar_can_shared" = "yes"; then |
|
9754 output_verbose_link_cmd=echo |
|
9755 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
|
9756 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
|
9757 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}" |
|
9758 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}" |
|
9759 |
|
9760 else |
|
9761 ld_shlibs=no |
|
9762 fi |
|
9763 |
|
9764 ;; |
|
9765 |
|
9766 dgux*) |
|
9767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9768 hardcode_libdir_flag_spec='-L$libdir' |
|
9769 hardcode_shlibpath_var=no |
|
9770 ;; |
|
9771 |
|
9772 freebsd1*) |
|
9773 ld_shlibs=no |
|
9774 ;; |
|
9775 |
|
9776 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
9777 # support. Future versions do this automatically, but an explicit c++rt0.o |
|
9778 # does not break anything, and helps significantly (at the cost of a little |
|
9779 # extra space). |
|
9780 freebsd2.2*) |
|
9781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
9782 hardcode_libdir_flag_spec='-R$libdir' |
|
9783 hardcode_direct=yes |
|
9784 hardcode_shlibpath_var=no |
|
9785 ;; |
|
9786 |
|
9787 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
9788 freebsd2*) |
|
9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
9790 hardcode_direct=yes |
|
9791 hardcode_minus_L=yes |
|
9792 hardcode_shlibpath_var=no |
|
9793 ;; |
|
9794 |
|
9795 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
9796 freebsd* | dragonfly*) |
|
9797 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
9798 hardcode_libdir_flag_spec='-R$libdir' |
|
9799 hardcode_direct=yes |
|
9800 hardcode_shlibpath_var=no |
|
9801 ;; |
|
9802 |
|
9803 hpux9*) |
|
9804 if test "$GCC" = yes; then |
|
9805 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' |
|
9806 else |
|
9807 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' |
|
9808 fi |
|
9809 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
9810 hardcode_libdir_separator=: |
|
9811 hardcode_direct=yes |
|
9812 |
|
9813 # hardcode_minus_L: Not really in the search PATH, |
|
9814 # but as the default location of the library. |
|
9815 hardcode_minus_L=yes |
|
9816 export_dynamic_flag_spec='${wl}-E' |
|
9817 ;; |
|
9818 |
|
9819 hpux10*) |
|
9820 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
9821 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
9822 else |
|
9823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
9824 fi |
|
9825 if test "$with_gnu_ld" = no; then |
|
9826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
9827 hardcode_libdir_flag_spec_ld='+b $libdir' |
|
9828 hardcode_libdir_separator=: |
|
9829 hardcode_direct=yes |
|
9830 hardcode_direct_absolute=yes |
|
9831 export_dynamic_flag_spec='${wl}-E' |
|
9832 # hardcode_minus_L: Not really in the search PATH, |
|
9833 # but as the default location of the library. |
|
9834 hardcode_minus_L=yes |
|
9835 fi |
|
9836 ;; |
|
9837 |
|
9838 hpux11*) |
|
9839 if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
9840 case $host_cpu in |
|
9841 hppa*64*) |
|
9842 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9843 ;; |
|
9844 ia64*) |
|
9845 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
9846 ;; |
|
9847 *) |
|
9848 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
9849 ;; |
|
9850 esac |
|
9851 else |
|
9852 case $host_cpu in |
|
9853 hppa*64*) |
|
9854 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9855 ;; |
|
9856 ia64*) |
|
9857 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
9858 ;; |
|
9859 *) |
|
9860 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
9861 ;; |
|
9862 esac |
|
9863 fi |
|
9864 if test "$with_gnu_ld" = no; then |
|
9865 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
9866 hardcode_libdir_separator=: |
|
9867 |
|
9868 case $host_cpu in |
|
9869 hppa*64*|ia64*) |
|
9870 hardcode_direct=no |
|
9871 hardcode_shlibpath_var=no |
|
9872 ;; |
|
9873 *) |
|
9874 hardcode_direct=yes |
|
9875 hardcode_direct_absolute=yes |
|
9876 export_dynamic_flag_spec='${wl}-E' |
|
9877 |
|
9878 # hardcode_minus_L: Not really in the search PATH, |
|
9879 # but as the default location of the library. |
|
9880 hardcode_minus_L=yes |
|
9881 ;; |
|
9882 esac |
|
9883 fi |
|
9884 ;; |
|
9885 |
|
9886 irix5* | irix6* | nonstopux*) |
|
9887 if test "$GCC" = yes; then |
|
9888 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' |
|
9889 # Try to use the -exported_symbol ld option, if it does not |
|
9890 # work, assume that -exports_file does not work either and |
|
9891 # implicitly export all symbols. |
|
9892 save_LDFLAGS="$LDFLAGS" |
|
9893 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
|
9894 cat >conftest.$ac_ext <<_ACEOF |
|
9895 int foo(void) {} |
|
9896 _ACEOF |
|
9897 rm -f conftest.$ac_objext conftest$ac_exeext |
|
9898 if { (ac_try="$ac_link" |
|
9899 case "(($ac_try" in |
|
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
9901 *) ac_try_echo=$ac_try;; |
|
9902 esac |
|
9903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
9904 $as_echo "$ac_try_echo") >&5 |
|
9905 (eval "$ac_link") 2>conftest.er1 |
|
9906 ac_status=$? |
|
9907 grep -v '^ *+' conftest.er1 >conftest.err |
|
9908 rm -f conftest.er1 |
|
9909 cat conftest.err >&5 |
|
9910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
9911 (exit $ac_status); } && { |
|
9912 test -z "$ac_c_werror_flag" || |
|
9913 test ! -s conftest.err |
|
9914 } && test -s conftest$ac_exeext && { |
|
9915 test "$cross_compiling" = yes || |
|
9916 $as_test_x conftest$ac_exeext |
|
9917 }; then |
|
9918 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' |
|
9919 |
|
9920 else |
|
9921 $as_echo "$as_me: failed program was:" >&5 |
|
9922 sed 's/^/| /' conftest.$ac_ext >&5 |
|
9923 |
|
9924 |
|
9925 fi |
|
9926 |
|
9927 rm -rf conftest.dSYM |
|
9928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
9929 conftest$ac_exeext conftest.$ac_ext |
|
9930 LDFLAGS="$save_LDFLAGS" |
|
9931 else |
|
9932 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' |
|
9933 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' |
|
9934 fi |
|
9935 archive_cmds_need_lc='no' |
|
9936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9937 hardcode_libdir_separator=: |
|
9938 inherit_rpath=yes |
|
9939 link_all_deplibs=yes |
|
9940 ;; |
|
9941 |
|
9942 netbsd*) |
|
9943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
9944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
9945 else |
|
9946 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
9947 fi |
|
9948 hardcode_libdir_flag_spec='-R$libdir' |
|
9949 hardcode_direct=yes |
|
9950 hardcode_shlibpath_var=no |
|
9951 ;; |
|
9952 |
|
9953 newsos6) |
|
9954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9955 hardcode_direct=yes |
|
9956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9957 hardcode_libdir_separator=: |
|
9958 hardcode_shlibpath_var=no |
|
9959 ;; |
|
9960 |
|
9961 *nto* | *qnx*) |
|
9962 ;; |
|
9963 |
|
9964 openbsd*) |
|
9965 if test -f /usr/libexec/ld.so; then |
|
9966 hardcode_direct=yes |
|
9967 hardcode_shlibpath_var=no |
|
9968 hardcode_direct_absolute=yes |
|
9969 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
9970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
9971 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
9972 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
9973 export_dynamic_flag_spec='${wl}-E' |
|
9974 else |
|
9975 case $host_os in |
|
9976 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
9977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
9978 hardcode_libdir_flag_spec='-R$libdir' |
|
9979 ;; |
|
9980 *) |
|
9981 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
9982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
9983 ;; |
|
9984 esac |
|
9985 fi |
|
9986 else |
|
9987 ld_shlibs=no |
|
9988 fi |
|
9989 ;; |
|
9990 |
|
9991 os2*) |
|
9992 hardcode_libdir_flag_spec='-L$libdir' |
|
9993 hardcode_minus_L=yes |
|
9994 allow_undefined_flag=unsupported |
|
9995 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' |
|
9996 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
9997 ;; |
|
9998 |
|
9999 osf3*) |
|
10000 if test "$GCC" = yes; then |
|
10001 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
10002 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' |
|
10003 else |
|
10004 allow_undefined_flag=' -expect_unresolved \*' |
|
10005 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' |
|
10006 fi |
|
10007 archive_cmds_need_lc='no' |
|
10008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
10009 hardcode_libdir_separator=: |
|
10010 ;; |
|
10011 |
|
10012 osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
10013 if test "$GCC" = yes; then |
|
10014 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
10015 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' |
|
10016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
10017 else |
|
10018 allow_undefined_flag=' -expect_unresolved \*' |
|
10019 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' |
|
10020 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~ |
|
10021 $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' |
|
10022 |
|
10023 # Both c and cxx compiler support -rpath directly |
|
10024 hardcode_libdir_flag_spec='-rpath $libdir' |
|
10025 fi |
|
10026 archive_cmds_need_lc='no' |
|
10027 hardcode_libdir_separator=: |
|
10028 ;; |
|
10029 |
|
10030 solaris*) |
|
10031 no_undefined_flag=' -z defs' |
|
10032 if test "$GCC" = yes; then |
|
10033 wlarc='${wl}' |
|
10034 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
10035 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
10036 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
|
10037 else |
|
10038 case `$CC -V 2>&1` in |
|
10039 *"Compilers 5.0"*) |
|
10040 wlarc='' |
|
10041 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10042 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
10043 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
|
10044 ;; |
|
10045 *) |
|
10046 wlarc='${wl}' |
|
10047 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
10048 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
10049 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
|
10050 ;; |
|
10051 esac |
|
10052 fi |
|
10053 hardcode_libdir_flag_spec='-R$libdir' |
|
10054 hardcode_shlibpath_var=no |
|
10055 case $host_os in |
|
10056 solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
10057 *) |
|
10058 # The compiler driver will combine and reorder linker options, |
|
10059 # but understands `-z linker_flag'. GCC discards it without `$wl', |
|
10060 # but is careful enough not to reorder. |
|
10061 # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
10062 if test "$GCC" = yes; then |
|
10063 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
10064 else |
|
10065 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
|
10066 fi |
|
10067 ;; |
|
10068 esac |
|
10069 link_all_deplibs=yes |
|
10070 ;; |
|
10071 |
|
10072 sunos4*) |
|
10073 if test "x$host_vendor" = xsequent; then |
|
10074 # Use $CC to link under sequent, because it throws in some extra .o |
|
10075 # files that make .init and .fini sections work. |
|
10076 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
10077 else |
|
10078 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
10079 fi |
|
10080 hardcode_libdir_flag_spec='-L$libdir' |
|
10081 hardcode_direct=yes |
|
10082 hardcode_minus_L=yes |
|
10083 hardcode_shlibpath_var=no |
|
10084 ;; |
|
10085 |
|
10086 sysv4) |
|
10087 case $host_vendor in |
|
10088 sni) |
|
10089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10090 hardcode_direct=yes # is this really true??? |
|
10091 ;; |
|
10092 siemens) |
|
10093 ## LD is ld it makes a PLAMLIB |
|
10094 ## CC just makes a GrossModule. |
|
10095 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
10096 reload_cmds='$CC -r -o $output$reload_objs' |
|
10097 hardcode_direct=no |
|
10098 ;; |
|
10099 motorola) |
|
10100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10101 hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
10102 ;; |
|
10103 esac |
|
10104 runpath_var='LD_RUN_PATH' |
|
10105 hardcode_shlibpath_var=no |
|
10106 ;; |
|
10107 |
|
10108 sysv4.3*) |
|
10109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10110 hardcode_shlibpath_var=no |
|
10111 export_dynamic_flag_spec='-Bexport' |
|
10112 ;; |
|
10113 |
|
10114 sysv4*MP*) |
|
10115 if test -d /usr/nec; then |
|
10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10117 hardcode_shlibpath_var=no |
|
10118 runpath_var=LD_RUN_PATH |
|
10119 hardcode_runpath_var=yes |
|
10120 ld_shlibs=yes |
|
10121 fi |
|
10122 ;; |
|
10123 |
|
10124 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
10125 no_undefined_flag='${wl}-z,text' |
|
10126 archive_cmds_need_lc=no |
|
10127 hardcode_shlibpath_var=no |
|
10128 runpath_var='LD_RUN_PATH' |
|
10129 |
|
10130 if test "$GCC" = yes; then |
|
10131 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
10132 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
10133 else |
|
10134 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
10135 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
10136 fi |
|
10137 ;; |
|
10138 |
|
10139 sysv5* | sco3.2v5* | sco5v6*) |
|
10140 # Note: We can NOT use -z defs as we might desire, because we do not |
|
10141 # link with -lc, and that would cause any symbols used from libc to |
|
10142 # always be unresolved, which means just about no library would |
|
10143 # ever link correctly. If we're not using GNU ld we use -z text |
|
10144 # though, which does catch some bad symbols but isn't as heavy-handed |
|
10145 # as -z defs. |
|
10146 no_undefined_flag='${wl}-z,text' |
|
10147 allow_undefined_flag='${wl}-z,nodefs' |
|
10148 archive_cmds_need_lc=no |
|
10149 hardcode_shlibpath_var=no |
|
10150 hardcode_libdir_flag_spec='${wl}-R,$libdir' |
|
10151 hardcode_libdir_separator=':' |
|
10152 link_all_deplibs=yes |
|
10153 export_dynamic_flag_spec='${wl}-Bexport' |
|
10154 runpath_var='LD_RUN_PATH' |
|
10155 |
|
10156 if test "$GCC" = yes; then |
|
10157 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
10158 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
10159 else |
|
10160 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
10161 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
10162 fi |
|
10163 ;; |
|
10164 |
|
10165 uts4*) |
|
10166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
10167 hardcode_libdir_flag_spec='-L$libdir' |
|
10168 hardcode_shlibpath_var=no |
|
10169 ;; |
|
10170 |
|
10171 *) |
|
10172 ld_shlibs=no |
|
10173 ;; |
|
10174 esac |
|
10175 |
|
10176 if test x$host_vendor = xsni; then |
|
10177 case $host in |
|
10178 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
10179 export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
10180 ;; |
|
10181 esac |
|
10182 fi |
|
10183 fi |
|
10184 |
|
10185 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
10186 $as_echo "$ld_shlibs" >&6; } |
|
10187 test "$ld_shlibs" = no && can_build_shared=no |
|
10188 |
|
10189 with_gnu_ld=$with_gnu_ld |
|
10190 |
|
10191 |
|
10192 |
|
10193 |
|
10194 |
|
10195 |
|
10196 |
|
10197 |
|
10198 |
|
10199 |
|
10200 |
|
10201 |
|
10202 |
|
10203 |
|
10204 |
|
10205 # |
|
10206 # Do we need to explicitly link libc? |
|
10207 # |
|
10208 case "x$archive_cmds_need_lc" in |
|
10209 x|xyes) |
|
10210 # Assume -lc should be added |
|
10211 archive_cmds_need_lc=yes |
|
10212 |
|
10213 if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
10214 case $archive_cmds in |
|
10215 *'~'*) |
|
10216 # FIXME: we may have to deal with multi-command sequences. |
|
10217 ;; |
|
10218 '$CC '*) |
|
10219 # Test whether the compiler implicitly links with -lc since on some |
|
10220 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
10221 # to ld, don't add -lc before -lgcc. |
|
10222 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
10223 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
|
10224 $RM conftest* |
|
10225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
10226 |
|
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
10228 (eval $ac_compile) 2>&5 |
|
10229 ac_status=$? |
|
10230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10231 (exit $ac_status); } 2>conftest.err; then |
|
10232 soname=conftest |
|
10233 lib=conftest |
|
10234 libobjs=conftest.$ac_objext |
|
10235 deplibs= |
|
10236 wl=$lt_prog_compiler_wl |
|
10237 pic_flag=$lt_prog_compiler_pic |
|
10238 compiler_flags=-v |
|
10239 linker_flags=-v |
|
10240 verstring= |
|
10241 output_objdir=. |
|
10242 libname=conftest |
|
10243 lt_save_allow_undefined_flag=$allow_undefined_flag |
|
10244 allow_undefined_flag= |
|
10245 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
10246 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
10247 ac_status=$? |
|
10248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10249 (exit $ac_status); } |
|
10250 then |
|
10251 archive_cmds_need_lc=no |
|
10252 else |
|
10253 archive_cmds_need_lc=yes |
|
10254 fi |
|
10255 allow_undefined_flag=$lt_save_allow_undefined_flag |
|
10256 else |
|
10257 cat conftest.err 1>&5 |
|
10258 fi |
|
10259 $RM conftest* |
|
10260 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
|
10261 $as_echo "$archive_cmds_need_lc" >&6; } |
|
10262 ;; |
|
10263 esac |
|
10264 fi |
|
10265 ;; |
|
10266 esac |
|
10267 |
|
10268 |
|
10269 |
|
10270 |
|
10271 |
|
10272 |
|
10273 |
|
10274 |
|
10275 |
|
10276 |
|
10277 |
|
10278 |
|
10279 |
|
10280 |
|
10281 |
|
10282 |
|
10283 |
|
10284 |
|
10285 |
|
10286 |
|
10287 |
|
10288 |
|
10289 |
|
10290 |
|
10291 |
|
10292 |
|
10293 |
|
10294 |
|
10295 |
|
10296 |
|
10297 |
|
10298 |
|
10299 |
|
10300 |
|
10301 |
|
10302 |
|
10303 |
|
10304 |
|
10305 |
|
10306 |
|
10307 |
|
10308 |
|
10309 |
|
10310 |
|
10311 |
|
10312 |
|
10313 |
|
10314 |
|
10315 |
|
10316 |
|
10317 |
|
10318 |
|
10319 |
|
10320 |
|
10321 |
|
10322 |
|
10323 |
|
10324 |
|
10325 |
|
10326 |
|
10327 |
|
10328 |
|
10329 |
|
10330 |
|
10331 |
|
10332 |
|
10333 |
|
10334 |
|
10335 |
|
10336 |
|
10337 |
|
10338 |
|
10339 |
|
10340 |
|
10341 |
|
10342 |
|
10343 |
|
10344 |
|
10345 |
|
10346 |
|
10347 |
|
10348 |
|
10349 |
|
10350 |
|
10351 |
|
10352 |
|
10353 |
|
10354 |
|
10355 |
|
10356 |
|
10357 |
|
10358 |
|
10359 |
|
10360 |
|
10361 |
|
10362 |
|
10363 |
|
10364 |
|
10365 |
|
10366 |
|
10367 |
|
10368 |
|
10369 |
|
10370 |
|
10371 |
|
10372 |
|
10373 |
|
10374 |
|
10375 |
|
10376 |
|
10377 |
|
10378 |
|
10379 |
|
10380 |
|
10381 |
|
10382 |
|
10383 |
|
10384 |
|
10385 |
|
10386 |
|
10387 |
|
10388 |
|
10389 |
|
10390 |
|
10391 |
|
10392 |
|
10393 |
|
10394 |
|
10395 |
|
10396 |
|
10397 |
|
10398 |
|
10399 |
|
10400 |
|
10401 |
|
10402 |
|
10403 |
|
10404 |
|
10405 |
|
10406 |
|
10407 |
|
10408 |
|
10409 |
|
10410 |
|
10411 |
|
10412 |
|
10413 |
|
10414 |
|
10415 |
|
10416 |
|
10417 |
|
10418 |
|
10419 |
|
10420 |
|
10421 |
|
10422 |
|
10423 |
|
10424 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
10425 $as_echo_n "checking dynamic linker characteristics... " >&6; } |
|
10426 |
|
10427 if test "$GCC" = yes; then |
|
10428 case $host_os in |
|
10429 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
|
10430 *) lt_awk_arg="/^libraries:/" ;; |
|
10431 esac |
|
10432 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
10433 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
|
10434 # if the path contains ";" then we assume it to be the separator |
|
10435 # otherwise default to the standard path separator (i.e. ":") - it is |
|
10436 # assumed that no part of a normal pathname contains ";" but that should |
|
10437 # okay in the real world where ";" in dirpaths is itself problematic. |
|
10438 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
|
10439 else |
|
10440 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
10441 fi |
|
10442 # Ok, now we have the path, separated by spaces, we can step through it |
|
10443 # and add multilib dir if necessary. |
|
10444 lt_tmp_lt_search_path_spec= |
|
10445 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
|
10446 for lt_sys_path in $lt_search_path_spec; do |
|
10447 if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
|
10448 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
|
10449 else |
|
10450 test -d "$lt_sys_path" && \ |
|
10451 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
|
10452 fi |
|
10453 done |
|
10454 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
|
10455 BEGIN {RS=" "; FS="/|\n";} { |
|
10456 lt_foo=""; |
|
10457 lt_count=0; |
|
10458 for (lt_i = NF; lt_i > 0; lt_i--) { |
|
10459 if ($lt_i != "" && $lt_i != ".") { |
|
10460 if ($lt_i == "..") { |
|
10461 lt_count++; |
|
10462 } else { |
|
10463 if (lt_count == 0) { |
|
10464 lt_foo="/" $lt_i lt_foo; |
|
10465 } else { |
|
10466 lt_count--; |
|
10467 } |
|
10468 } |
|
10469 } |
|
10470 } |
|
10471 if (lt_foo != "") { lt_freq[lt_foo]++; } |
|
10472 if (lt_freq[lt_foo] == 1) { print lt_foo; } |
|
10473 }'` |
|
10474 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
|
10475 else |
|
10476 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
10477 fi |
|
10478 library_names_spec= |
|
10479 libname_spec='lib$name' |
|
10480 soname_spec= |
|
10481 shrext_cmds=".so" |
|
10482 postinstall_cmds= |
|
10483 postuninstall_cmds= |
|
10484 finish_cmds= |
|
10485 finish_eval= |
|
10486 shlibpath_var= |
|
10487 shlibpath_overrides_runpath=unknown |
|
10488 version_type=none |
|
10489 dynamic_linker="$host_os ld.so" |
|
10490 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
10491 need_lib_prefix=unknown |
|
10492 hardcode_into_libs=no |
|
10493 |
|
10494 # when you set need_version to no, make sure it does not cause -set_version |
|
10495 # flags to be left without arguments |
|
10496 need_version=unknown |
|
10497 |
|
10498 case $host_os in |
|
10499 aix3*) |
|
10500 version_type=linux |
|
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
10502 shlibpath_var=LIBPATH |
|
10503 |
|
10504 # AIX 3 has no versioning support, so we append a major version to the name. |
|
10505 soname_spec='${libname}${release}${shared_ext}$major' |
|
10506 ;; |
|
10507 |
|
10508 aix[4-9]*) |
|
10509 version_type=linux |
|
10510 need_lib_prefix=no |
|
10511 need_version=no |
|
10512 hardcode_into_libs=yes |
|
10513 if test "$host_cpu" = ia64; then |
|
10514 # AIX 5 supports IA64 |
|
10515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
10516 shlibpath_var=LD_LIBRARY_PATH |
|
10517 else |
|
10518 # With GCC up to 2.95.x, collect2 would create an import file |
|
10519 # for dependence libraries. The import file would start with |
|
10520 # the line `#! .'. This would cause the generated library to |
|
10521 # depend on `.', always an invalid library. This was fixed in |
|
10522 # development snapshots of GCC prior to 3.0. |
|
10523 case $host_os in |
|
10524 aix4 | aix4.[01] | aix4.[01].*) |
|
10525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
10526 echo ' yes ' |
|
10527 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
|
10528 : |
|
10529 else |
|
10530 can_build_shared=no |
|
10531 fi |
|
10532 ;; |
|
10533 esac |
|
10534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
10535 # soname into executable. Probably we can add versioning support to |
|
10536 # collect2, so additional links can be useful in future. |
|
10537 if test "$aix_use_runtimelinking" = yes; then |
|
10538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
10539 # instead of lib<name>.a to let people know that these are not |
|
10540 # typical AIX shared libraries. |
|
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10542 else |
|
10543 # We preserve .a as extension for shared libraries through AIX4.2 |
|
10544 # and later when we are not doing run time linking. |
|
10545 library_names_spec='${libname}${release}.a $libname.a' |
|
10546 soname_spec='${libname}${release}${shared_ext}$major' |
|
10547 fi |
|
10548 shlibpath_var=LIBPATH |
|
10549 fi |
|
10550 ;; |
|
10551 |
|
10552 amigaos*) |
|
10553 case $host_cpu in |
|
10554 powerpc) |
|
10555 # Since July 2007 AmigaOS4 officially supports .so libraries. |
|
10556 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
|
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10558 ;; |
|
10559 m68k) |
|
10560 library_names_spec='$libname.ixlibrary $libname.a' |
|
10561 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
10562 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' |
|
10563 ;; |
|
10564 esac |
|
10565 ;; |
|
10566 |
|
10567 beos*) |
|
10568 library_names_spec='${libname}${shared_ext}' |
|
10569 dynamic_linker="$host_os ld.so" |
|
10570 shlibpath_var=LIBRARY_PATH |
|
10571 ;; |
|
10572 |
|
10573 bsdi[45]*) |
|
10574 version_type=linux |
|
10575 need_version=no |
|
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10577 soname_spec='${libname}${release}${shared_ext}$major' |
|
10578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
10579 shlibpath_var=LD_LIBRARY_PATH |
|
10580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
10581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
10582 # the default ld.so.conf also contains /usr/contrib/lib and |
|
10583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
10584 # libtool to hard-code these into programs |
|
10585 ;; |
|
10586 |
|
10587 cygwin* | mingw* | pw32* | cegcc*) |
|
10588 version_type=windows |
|
10589 shrext_cmds=".dll" |
|
10590 need_version=no |
|
10591 need_lib_prefix=no |
|
10592 |
|
10593 case $GCC,$host_os in |
|
10594 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
|
10595 library_names_spec='$libname.dll.a' |
|
10596 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
10597 postinstall_cmds='base_file=`basename \${file}`~ |
|
10598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
|
10599 dldir=$destdir/`dirname \$dlpath`~ |
|
10600 test -d \$dldir || mkdir -p \$dldir~ |
|
10601 $install_prog $dir/$dlname \$dldir/$dlname~ |
|
10602 chmod a+x \$dldir/$dlname~ |
|
10603 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
|
10604 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
|
10605 fi' |
|
10606 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
10607 dlpath=$dir/\$dldll~ |
|
10608 $RM \$dlpath' |
|
10609 shlibpath_overrides_runpath=yes |
|
10610 |
|
10611 case $host_os in |
|
10612 cygwin*) |
|
10613 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
10614 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
10615 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
10616 ;; |
|
10617 mingw* | cegcc*) |
|
10618 # MinGW DLLs use traditional 'lib' prefix |
|
10619 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
10620 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
10621 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
|
10622 # It is most probably a Windows format PATH printed by |
|
10623 # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
10624 # path with ; separators, and with drive letters. We can handle the |
|
10625 # drive letters (cygwin fileutils understands them), so leave them, |
|
10626 # especially as we might pass files found there to a mingw objdump, |
|
10627 # which wouldn't understand a cygwinified path. Ahh. |
|
10628 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
10629 else |
|
10630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
10631 fi |
|
10632 ;; |
|
10633 pw32*) |
|
10634 # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
10635 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
10636 ;; |
|
10637 esac |
|
10638 ;; |
|
10639 |
|
10640 *) |
|
10641 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
10642 ;; |
|
10643 esac |
|
10644 dynamic_linker='Win32 ld.exe' |
|
10645 # FIXME: first we should search . and the directory the executable is in |
|
10646 shlibpath_var=PATH |
|
10647 ;; |
|
10648 |
|
10649 darwin* | rhapsody*) |
|
10650 dynamic_linker="$host_os dyld" |
|
10651 version_type=darwin |
|
10652 need_lib_prefix=no |
|
10653 need_version=no |
|
10654 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
10655 soname_spec='${libname}${release}${major}$shared_ext' |
|
10656 shlibpath_overrides_runpath=yes |
|
10657 shlibpath_var=DYLD_LIBRARY_PATH |
|
10658 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
10659 |
|
10660 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
|
10661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
10662 ;; |
|
10663 |
|
10664 dgux*) |
|
10665 version_type=linux |
|
10666 need_lib_prefix=no |
|
10667 need_version=no |
|
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
10669 soname_spec='${libname}${release}${shared_ext}$major' |
|
10670 shlibpath_var=LD_LIBRARY_PATH |
|
10671 ;; |
|
10672 |
|
10673 freebsd1*) |
|
10674 dynamic_linker=no |
|
10675 ;; |
|
10676 |
|
10677 freebsd* | dragonfly*) |
|
10678 # DragonFly does not have aout. When/if they implement a new |
|
10679 # versioning mechanism, adjust this. |
|
10680 if test -x /usr/bin/objformat; then |
|
10681 objformat=`/usr/bin/objformat` |
|
10682 else |
|
10683 case $host_os in |
|
10684 freebsd[123]*) objformat=aout ;; |
|
10685 *) objformat=elf ;; |
|
10686 esac |
|
10687 fi |
|
10688 version_type=freebsd-$objformat |
|
10689 case $version_type in |
|
10690 freebsd-elf*) |
|
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
10692 need_version=no |
|
10693 need_lib_prefix=no |
|
10694 ;; |
|
10695 freebsd-*) |
|
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
10697 need_version=yes |
|
10698 ;; |
|
10699 esac |
|
10700 shlibpath_var=LD_LIBRARY_PATH |
|
10701 case $host_os in |
|
10702 freebsd2*) |
|
10703 shlibpath_overrides_runpath=yes |
|
10704 ;; |
|
10705 freebsd3.[01]* | freebsdelf3.[01]*) |
|
10706 shlibpath_overrides_runpath=yes |
|
10707 hardcode_into_libs=yes |
|
10708 ;; |
|
10709 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
10710 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
10711 shlibpath_overrides_runpath=no |
|
10712 hardcode_into_libs=yes |
|
10713 ;; |
|
10714 *) # from 4.6 on, and DragonFly |
|
10715 shlibpath_overrides_runpath=yes |
|
10716 hardcode_into_libs=yes |
|
10717 ;; |
|
10718 esac |
|
10719 ;; |
|
10720 |
|
10721 gnu*) |
|
10722 version_type=linux |
|
10723 need_lib_prefix=no |
|
10724 need_version=no |
|
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
10726 soname_spec='${libname}${release}${shared_ext}$major' |
|
10727 shlibpath_var=LD_LIBRARY_PATH |
|
10728 hardcode_into_libs=yes |
|
10729 ;; |
|
10730 |
|
10731 hpux9* | hpux10* | hpux11*) |
|
10732 # Give a soname corresponding to the major version so that dld.sl refuses to |
|
10733 # link against other versions. |
|
10734 version_type=sunos |
|
10735 need_lib_prefix=no |
|
10736 need_version=no |
|
10737 case $host_cpu in |
|
10738 ia64*) |
|
10739 shrext_cmds='.so' |
|
10740 hardcode_into_libs=yes |
|
10741 dynamic_linker="$host_os dld.so" |
|
10742 shlibpath_var=LD_LIBRARY_PATH |
|
10743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10745 soname_spec='${libname}${release}${shared_ext}$major' |
|
10746 if test "X$HPUX_IA64_MODE" = X32; then |
|
10747 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
10748 else |
|
10749 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
10750 fi |
|
10751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
10752 ;; |
|
10753 hppa*64*) |
|
10754 shrext_cmds='.sl' |
|
10755 hardcode_into_libs=yes |
|
10756 dynamic_linker="$host_os dld.sl" |
|
10757 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
10758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10760 soname_spec='${libname}${release}${shared_ext}$major' |
|
10761 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
10762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
10763 ;; |
|
10764 *) |
|
10765 shrext_cmds='.sl' |
|
10766 dynamic_linker="$host_os dld.sl" |
|
10767 shlibpath_var=SHLIB_PATH |
|
10768 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10770 soname_spec='${libname}${release}${shared_ext}$major' |
|
10771 ;; |
|
10772 esac |
|
10773 # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
10774 postinstall_cmds='chmod 555 $lib' |
|
10775 ;; |
|
10776 |
|
10777 interix[3-9]*) |
|
10778 version_type=linux |
|
10779 need_lib_prefix=no |
|
10780 need_version=no |
|
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
10782 soname_spec='${libname}${release}${shared_ext}$major' |
|
10783 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
10784 shlibpath_var=LD_LIBRARY_PATH |
|
10785 shlibpath_overrides_runpath=no |
|
10786 hardcode_into_libs=yes |
|
10787 ;; |
|
10788 |
|
10789 irix5* | irix6* | nonstopux*) |
|
10790 case $host_os in |
|
10791 nonstopux*) version_type=nonstopux ;; |
|
10792 *) |
|
10793 if test "$lt_cv_prog_gnu_ld" = yes; then |
|
10794 version_type=linux |
|
10795 else |
|
10796 version_type=irix |
|
10797 fi ;; |
|
10798 esac |
|
10799 need_lib_prefix=no |
|
10800 need_version=no |
|
10801 soname_spec='${libname}${release}${shared_ext}$major' |
|
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
10803 case $host_os in |
|
10804 irix5* | nonstopux*) |
|
10805 libsuff= shlibsuff= |
|
10806 ;; |
|
10807 *) |
|
10808 case $LD in # libtool.m4 will add one of these switches to LD |
|
10809 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
10810 libsuff= shlibsuff= libmagic=32-bit;; |
|
10811 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
10812 libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
10813 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
10814 libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
10815 *) libsuff= shlibsuff= libmagic=never-match;; |
|
10816 esac |
|
10817 ;; |
|
10818 esac |
|
10819 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
10820 shlibpath_overrides_runpath=no |
|
10821 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
10822 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
10823 hardcode_into_libs=yes |
|
10824 ;; |
|
10825 |
|
10826 # No shared lib support for Linux oldld, aout, or coff. |
|
10827 linux*oldld* | linux*aout* | linux*coff*) |
|
10828 dynamic_linker=no |
|
10829 ;; |
|
10830 |
|
10831 # This must be Linux ELF. |
|
10832 linux* | k*bsd*-gnu) |
|
10833 version_type=linux |
|
10834 need_lib_prefix=no |
|
10835 need_version=no |
|
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10837 soname_spec='${libname}${release}${shared_ext}$major' |
|
10838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
10839 shlibpath_var=LD_LIBRARY_PATH |
|
10840 shlibpath_overrides_runpath=no |
|
10841 # Some binutils ld are patched to set DT_RUNPATH |
|
10842 save_LDFLAGS=$LDFLAGS |
|
10843 save_libdir=$libdir |
|
10844 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
|
10845 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
|
10846 cat >conftest.$ac_ext <<_ACEOF |
|
10847 /* confdefs.h. */ |
|
10848 _ACEOF |
|
10849 cat confdefs.h >>conftest.$ac_ext |
|
10850 cat >>conftest.$ac_ext <<_ACEOF |
|
10851 /* end confdefs.h. */ |
|
10852 |
|
10853 int |
|
10854 main () |
|
10855 { |
|
10856 |
|
10857 ; |
|
10858 return 0; |
|
10859 } |
|
10860 _ACEOF |
|
10861 rm -f conftest.$ac_objext conftest$ac_exeext |
|
10862 if { (ac_try="$ac_link" |
|
10863 case "(($ac_try" in |
|
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
10865 *) ac_try_echo=$ac_try;; |
|
10866 esac |
|
10867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
10868 $as_echo "$ac_try_echo") >&5 |
|
10869 (eval "$ac_link") 2>conftest.er1 |
|
10870 ac_status=$? |
|
10871 grep -v '^ *+' conftest.er1 >conftest.err |
|
10872 rm -f conftest.er1 |
|
10873 cat conftest.err >&5 |
|
10874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
10875 (exit $ac_status); } && { |
|
10876 test -z "$ac_c_werror_flag" || |
|
10877 test ! -s conftest.err |
|
10878 } && test -s conftest$ac_exeext && { |
|
10879 test "$cross_compiling" = yes || |
|
10880 $as_test_x conftest$ac_exeext |
|
10881 }; then |
|
10882 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
|
10883 shlibpath_overrides_runpath=yes |
|
10884 fi |
|
10885 |
|
10886 else |
|
10887 $as_echo "$as_me: failed program was:" >&5 |
|
10888 sed 's/^/| /' conftest.$ac_ext >&5 |
|
10889 |
|
10890 |
|
10891 fi |
|
10892 |
|
10893 rm -rf conftest.dSYM |
|
10894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
10895 conftest$ac_exeext conftest.$ac_ext |
|
10896 LDFLAGS=$save_LDFLAGS |
|
10897 libdir=$save_libdir |
|
10898 |
|
10899 # This implies no fast_install, which is unacceptable. |
|
10900 # Some rework will be needed to allow for fast_install |
|
10901 # before this can be enabled. |
|
10902 hardcode_into_libs=yes |
|
10903 |
|
10904 # Append ld.so.conf contents to the search path |
|
10905 if test -f /etc/ld.so.conf; then |
|
10906 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' ' '` |
|
10907 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
10908 fi |
|
10909 |
|
10910 # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
10911 # powerpc, because MkLinux only supported shared libraries with the |
|
10912 # GNU dynamic linker. Since this was broken with cross compilers, |
|
10913 # most powerpc-linux boxes support dynamic linking these days and |
|
10914 # people can always --disable-shared, the test was removed, and we |
|
10915 # assume the GNU/Linux dynamic linker is in use. |
|
10916 dynamic_linker='GNU/Linux ld.so' |
|
10917 ;; |
|
10918 |
|
10919 netbsd*) |
|
10920 version_type=sunos |
|
10921 need_lib_prefix=no |
|
10922 need_version=no |
|
10923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
10925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
10926 dynamic_linker='NetBSD (a.out) ld.so' |
|
10927 else |
|
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
10929 soname_spec='${libname}${release}${shared_ext}$major' |
|
10930 dynamic_linker='NetBSD ld.elf_so' |
|
10931 fi |
|
10932 shlibpath_var=LD_LIBRARY_PATH |
|
10933 shlibpath_overrides_runpath=yes |
|
10934 hardcode_into_libs=yes |
|
10935 ;; |
|
10936 |
|
10937 newsos6) |
|
10938 version_type=linux |
|
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10940 shlibpath_var=LD_LIBRARY_PATH |
|
10941 shlibpath_overrides_runpath=yes |
|
10942 ;; |
|
10943 |
|
10944 *nto* | *qnx*) |
|
10945 version_type=qnx |
|
10946 need_lib_prefix=no |
|
10947 need_version=no |
|
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10949 soname_spec='${libname}${release}${shared_ext}$major' |
|
10950 shlibpath_var=LD_LIBRARY_PATH |
|
10951 shlibpath_overrides_runpath=no |
|
10952 hardcode_into_libs=yes |
|
10953 dynamic_linker='ldqnx.so' |
|
10954 ;; |
|
10955 |
|
10956 openbsd*) |
|
10957 version_type=sunos |
|
10958 sys_lib_dlsearch_path_spec="/usr/lib" |
|
10959 need_lib_prefix=no |
|
10960 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
10961 case $host_os in |
|
10962 openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
10963 *) need_version=no ;; |
|
10964 esac |
|
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
10966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
10967 shlibpath_var=LD_LIBRARY_PATH |
|
10968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
10969 case $host_os in |
|
10970 openbsd2.[89] | openbsd2.[89].*) |
|
10971 shlibpath_overrides_runpath=no |
|
10972 ;; |
|
10973 *) |
|
10974 shlibpath_overrides_runpath=yes |
|
10975 ;; |
|
10976 esac |
|
10977 else |
|
10978 shlibpath_overrides_runpath=yes |
|
10979 fi |
|
10980 ;; |
|
10981 |
|
10982 os2*) |
|
10983 libname_spec='$name' |
|
10984 shrext_cmds=".dll" |
|
10985 need_lib_prefix=no |
|
10986 library_names_spec='$libname${shared_ext} $libname.a' |
|
10987 dynamic_linker='OS/2 ld.exe' |
|
10988 shlibpath_var=LIBPATH |
|
10989 ;; |
|
10990 |
|
10991 osf3* | osf4* | osf5*) |
|
10992 version_type=osf |
|
10993 need_lib_prefix=no |
|
10994 need_version=no |
|
10995 soname_spec='${libname}${release}${shared_ext}$major' |
|
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10997 shlibpath_var=LD_LIBRARY_PATH |
|
10998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
10999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
11000 ;; |
|
11001 |
|
11002 rdos*) |
|
11003 dynamic_linker=no |
|
11004 ;; |
|
11005 |
|
11006 solaris*) |
|
11007 version_type=linux |
|
11008 need_lib_prefix=no |
|
11009 need_version=no |
|
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
11011 soname_spec='${libname}${release}${shared_ext}$major' |
|
11012 shlibpath_var=LD_LIBRARY_PATH |
|
11013 shlibpath_overrides_runpath=yes |
|
11014 hardcode_into_libs=yes |
|
11015 # ldd complains unless libraries are executable |
|
11016 postinstall_cmds='chmod +x $lib' |
|
11017 ;; |
|
11018 |
|
11019 sunos4*) |
|
11020 version_type=sunos |
|
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
11022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
11023 shlibpath_var=LD_LIBRARY_PATH |
|
11024 shlibpath_overrides_runpath=yes |
|
11025 if test "$with_gnu_ld" = yes; then |
|
11026 need_lib_prefix=no |
|
11027 fi |
|
11028 need_version=yes |
|
11029 ;; |
|
11030 |
|
11031 sysv4 | sysv4.3*) |
|
11032 version_type=linux |
|
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
11034 soname_spec='${libname}${release}${shared_ext}$major' |
|
11035 shlibpath_var=LD_LIBRARY_PATH |
|
11036 case $host_vendor in |
|
11037 sni) |
|
11038 shlibpath_overrides_runpath=no |
|
11039 need_lib_prefix=no |
|
11040 runpath_var=LD_RUN_PATH |
|
11041 ;; |
|
11042 siemens) |
|
11043 need_lib_prefix=no |
|
11044 ;; |
|
11045 motorola) |
|
11046 need_lib_prefix=no |
|
11047 need_version=no |
|
11048 shlibpath_overrides_runpath=no |
|
11049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
11050 ;; |
|
11051 esac |
|
11052 ;; |
|
11053 |
|
11054 sysv4*MP*) |
|
11055 if test -d /usr/nec ;then |
|
11056 version_type=linux |
|
11057 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
11058 soname_spec='$libname${shared_ext}.$major' |
|
11059 shlibpath_var=LD_LIBRARY_PATH |
|
11060 fi |
|
11061 ;; |
|
11062 |
|
11063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
11064 version_type=freebsd-elf |
|
11065 need_lib_prefix=no |
|
11066 need_version=no |
|
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
11068 soname_spec='${libname}${release}${shared_ext}$major' |
|
11069 shlibpath_var=LD_LIBRARY_PATH |
|
11070 shlibpath_overrides_runpath=yes |
|
11071 hardcode_into_libs=yes |
|
11072 if test "$with_gnu_ld" = yes; then |
|
11073 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
11074 else |
|
11075 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
11076 case $host_os in |
|
11077 sco3.2v5*) |
|
11078 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
11079 ;; |
|
11080 esac |
|
11081 fi |
|
11082 sys_lib_dlsearch_path_spec='/usr/lib' |
|
11083 ;; |
|
11084 |
|
11085 tpf*) |
|
11086 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
|
11087 version_type=linux |
|
11088 need_lib_prefix=no |
|
11089 need_version=no |
|
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
11091 shlibpath_var=LD_LIBRARY_PATH |
|
11092 shlibpath_overrides_runpath=no |
|
11093 hardcode_into_libs=yes |
|
11094 ;; |
|
11095 |
|
11096 uts4*) |
|
11097 version_type=linux |
|
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
11099 soname_spec='${libname}${release}${shared_ext}$major' |
|
11100 shlibpath_var=LD_LIBRARY_PATH |
|
11101 ;; |
|
11102 |
|
11103 *) |
|
11104 dynamic_linker=no |
|
11105 ;; |
|
11106 esac |
|
11107 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
11108 $as_echo "$dynamic_linker" >&6; } |
|
11109 test "$dynamic_linker" = no && can_build_shared=no |
|
11110 |
|
11111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
11112 if test "$GCC" = yes; then |
|
11113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
11114 fi |
|
11115 |
|
11116 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
|
11117 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
|
11118 fi |
|
11119 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
|
11120 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
|
11121 fi |
|
11122 |
|
11123 |
|
11124 |
|
11125 |
|
11126 |
|
11127 |
|
11128 |
|
11129 |
|
11130 |
|
11131 |
|
11132 |
|
11133 |
|
11134 |
|
11135 |
|
11136 |
|
11137 |
|
11138 |
|
11139 |
|
11140 |
|
11141 |
|
11142 |
|
11143 |
|
11144 |
|
11145 |
|
11146 |
|
11147 |
|
11148 |
|
11149 |
|
11150 |
|
11151 |
|
11152 |
|
11153 |
|
11154 |
|
11155 |
|
11156 |
|
11157 |
|
11158 |
|
11159 |
|
11160 |
|
11161 |
|
11162 |
|
11163 |
|
11164 |
|
11165 |
|
11166 |
|
11167 |
|
11168 |
|
11169 |
|
11170 |
|
11171 |
|
11172 |
|
11173 |
|
11174 |
|
11175 |
|
11176 |
|
11177 |
|
11178 |
|
11179 |
|
11180 |
|
11181 |
|
11182 |
|
11183 |
|
11184 |
|
11185 |
|
11186 |
|
11187 |
|
11188 |
|
11189 |
|
11190 |
|
11191 |
|
11192 |
|
11193 |
|
11194 |
|
11195 |
|
11196 |
|
11197 |
|
11198 |
|
11199 |
|
11200 |
|
11201 |
|
11202 |
|
11203 |
|
11204 |
|
11205 |
|
11206 |
|
11207 |
|
11208 |
|
11209 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
11210 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
|
11211 hardcode_action= |
|
11212 if test -n "$hardcode_libdir_flag_spec" || |
|
11213 test -n "$runpath_var" || |
|
11214 test "X$hardcode_automatic" = "Xyes" ; then |
|
11215 |
|
11216 # We can hardcode non-existent directories. |
|
11217 if test "$hardcode_direct" != no && |
|
11218 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
11219 # have to relink, otherwise we might link with an installed library |
|
11220 # when we should be linking with a yet-to-be-installed one |
|
11221 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
|
11222 test "$hardcode_minus_L" != no; then |
|
11223 # Linking always hardcodes the temporary library directory. |
|
11224 hardcode_action=relink |
|
11225 else |
|
11226 # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
11227 hardcode_action=immediate |
|
11228 fi |
|
11229 else |
|
11230 # We cannot hardcode anything, or else we can only hardcode existing |
|
11231 # directories. |
|
11232 hardcode_action=unsupported |
|
11233 fi |
|
11234 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
11235 $as_echo "$hardcode_action" >&6; } |
|
11236 |
|
11237 if test "$hardcode_action" = relink || |
|
11238 test "$inherit_rpath" = yes; then |
|
11239 # Fast installation is not supported |
|
11240 enable_fast_install=no |
|
11241 elif test "$shlibpath_overrides_runpath" = yes || |
|
11242 test "$enable_shared" = no; then |
|
11243 # Fast installation is not necessary |
|
11244 enable_fast_install=needless |
|
11245 fi |
|
11246 |
|
11247 |
|
11248 |
|
11249 |
|
11250 |
|
11251 |
|
11252 if test "x$enable_dlopen" != xyes; then |
|
11253 enable_dlopen=unknown |
|
11254 enable_dlopen_self=unknown |
|
11255 enable_dlopen_self_static=unknown |
|
11256 else |
|
11257 lt_cv_dlopen=no |
|
11258 lt_cv_dlopen_libs= |
|
11259 |
|
11260 case $host_os in |
|
11261 beos*) |
|
11262 lt_cv_dlopen="load_add_on" |
|
11263 lt_cv_dlopen_libs= |
|
11264 lt_cv_dlopen_self=yes |
|
11265 ;; |
|
11266 |
|
11267 mingw* | pw32* | cegcc*) |
|
11268 lt_cv_dlopen="LoadLibrary" |
|
11269 lt_cv_dlopen_libs= |
|
11270 ;; |
|
11271 |
|
11272 cygwin*) |
|
11273 lt_cv_dlopen="dlopen" |
|
11274 lt_cv_dlopen_libs= |
|
11275 ;; |
|
11276 |
|
11277 darwin*) |
|
11278 # if libdl is installed we need to link against it |
|
11279 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
11280 $as_echo_n "checking for dlopen in -ldl... " >&6; } |
|
11281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
11282 $as_echo_n "(cached) " >&6 |
|
11283 else |
|
11284 ac_check_lib_save_LIBS=$LIBS |
|
11285 LIBS="-ldl $LIBS" |
|
11286 cat >conftest.$ac_ext <<_ACEOF |
|
11287 /* confdefs.h. */ |
|
11288 _ACEOF |
|
11289 cat confdefs.h >>conftest.$ac_ext |
|
11290 cat >>conftest.$ac_ext <<_ACEOF |
|
11291 /* end confdefs.h. */ |
|
11292 |
|
11293 /* Override any GCC internal prototype to avoid an error. |
|
11294 Use char because int might match the return type of a GCC |
|
11295 builtin and then its argument prototype would still apply. */ |
|
11296 #ifdef __cplusplus |
|
11297 extern "C" |
|
11298 #endif |
|
11299 char dlopen (); |
|
11300 int |
|
11301 main () |
|
11302 { |
|
11303 return dlopen (); |
|
11304 ; |
|
11305 return 0; |
|
11306 } |
|
11307 _ACEOF |
|
11308 rm -f conftest.$ac_objext conftest$ac_exeext |
|
11309 if { (ac_try="$ac_link" |
|
11310 case "(($ac_try" in |
|
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
11312 *) ac_try_echo=$ac_try;; |
|
11313 esac |
|
11314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
11315 $as_echo "$ac_try_echo") >&5 |
|
11316 (eval "$ac_link") 2>conftest.er1 |
|
11317 ac_status=$? |
|
11318 grep -v '^ *+' conftest.er1 >conftest.err |
|
11319 rm -f conftest.er1 |
|
11320 cat conftest.err >&5 |
|
11321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11322 (exit $ac_status); } && { |
|
11323 test -z "$ac_c_werror_flag" || |
|
11324 test ! -s conftest.err |
|
11325 } && test -s conftest$ac_exeext && { |
|
11326 test "$cross_compiling" = yes || |
|
11327 $as_test_x conftest$ac_exeext |
|
11328 }; then |
|
11329 ac_cv_lib_dl_dlopen=yes |
|
11330 else |
|
11331 $as_echo "$as_me: failed program was:" >&5 |
|
11332 sed 's/^/| /' conftest.$ac_ext >&5 |
|
11333 |
|
11334 ac_cv_lib_dl_dlopen=no |
|
11335 fi |
|
11336 |
|
11337 rm -rf conftest.dSYM |
|
11338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
11339 conftest$ac_exeext conftest.$ac_ext |
|
11340 LIBS=$ac_check_lib_save_LIBS |
|
11341 fi |
|
11342 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
11343 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
|
11344 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
|
11345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
11346 else |
|
11347 |
|
11348 lt_cv_dlopen="dyld" |
|
11349 lt_cv_dlopen_libs= |
|
11350 lt_cv_dlopen_self=yes |
|
11351 |
|
11352 fi |
|
11353 |
|
11354 ;; |
|
11355 |
|
11356 *) |
|
11357 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
11358 $as_echo_n "checking for shl_load... " >&6; } |
|
11359 if test "${ac_cv_func_shl_load+set}" = set; then |
|
11360 $as_echo_n "(cached) " >&6 |
|
11361 else |
|
11362 cat >conftest.$ac_ext <<_ACEOF |
|
11363 /* confdefs.h. */ |
|
11364 _ACEOF |
|
11365 cat confdefs.h >>conftest.$ac_ext |
|
11366 cat >>conftest.$ac_ext <<_ACEOF |
|
11367 /* end confdefs.h. */ |
|
11368 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
11369 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
11370 #define shl_load innocuous_shl_load |
|
11371 |
|
11372 /* System header to define __stub macros and hopefully few prototypes, |
|
11373 which can conflict with char shl_load (); below. |
|
11374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
11375 <limits.h> exists even on freestanding compilers. */ |
|
11376 |
|
11377 #ifdef __STDC__ |
|
11378 # include <limits.h> |
|
11379 #else |
|
11380 # include <assert.h> |
|
11381 #endif |
|
11382 |
|
11383 #undef shl_load |
|
11384 |
|
11385 /* Override any GCC internal prototype to avoid an error. |
|
11386 Use char because int might match the return type of a GCC |
|
11387 builtin and then its argument prototype would still apply. */ |
|
11388 #ifdef __cplusplus |
|
11389 extern "C" |
|
11390 #endif |
|
11391 char shl_load (); |
|
11392 /* The GNU C library defines this for functions which it implements |
|
11393 to always fail with ENOSYS. Some functions are actually named |
|
11394 something starting with __ and the normal name is an alias. */ |
|
11395 #if defined __stub_shl_load || defined __stub___shl_load |
|
11396 choke me |
|
11397 #endif |
|
11398 |
|
11399 int |
|
11400 main () |
|
11401 { |
|
11402 return shl_load (); |
|
11403 ; |
|
11404 return 0; |
|
11405 } |
|
11406 _ACEOF |
|
11407 rm -f conftest.$ac_objext conftest$ac_exeext |
|
11408 if { (ac_try="$ac_link" |
|
11409 case "(($ac_try" in |
|
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
11411 *) ac_try_echo=$ac_try;; |
|
11412 esac |
|
11413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
11414 $as_echo "$ac_try_echo") >&5 |
|
11415 (eval "$ac_link") 2>conftest.er1 |
|
11416 ac_status=$? |
|
11417 grep -v '^ *+' conftest.er1 >conftest.err |
|
11418 rm -f conftest.er1 |
|
11419 cat conftest.err >&5 |
|
11420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11421 (exit $ac_status); } && { |
|
11422 test -z "$ac_c_werror_flag" || |
|
11423 test ! -s conftest.err |
|
11424 } && test -s conftest$ac_exeext && { |
|
11425 test "$cross_compiling" = yes || |
|
11426 $as_test_x conftest$ac_exeext |
|
11427 }; then |
|
11428 ac_cv_func_shl_load=yes |
|
11429 else |
|
11430 $as_echo "$as_me: failed program was:" >&5 |
|
11431 sed 's/^/| /' conftest.$ac_ext >&5 |
|
11432 |
|
11433 ac_cv_func_shl_load=no |
|
11434 fi |
|
11435 |
|
11436 rm -rf conftest.dSYM |
|
11437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
11438 conftest$ac_exeext conftest.$ac_ext |
|
11439 fi |
|
11440 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
11441 $as_echo "$ac_cv_func_shl_load" >&6; } |
|
11442 if test "x$ac_cv_func_shl_load" = x""yes; then |
|
11443 lt_cv_dlopen="shl_load" |
|
11444 else |
|
11445 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
11446 $as_echo_n "checking for shl_load in -ldld... " >&6; } |
|
11447 if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
11448 $as_echo_n "(cached) " >&6 |
|
11449 else |
|
11450 ac_check_lib_save_LIBS=$LIBS |
|
11451 LIBS="-ldld $LIBS" |
|
11452 cat >conftest.$ac_ext <<_ACEOF |
|
11453 /* confdefs.h. */ |
|
11454 _ACEOF |
|
11455 cat confdefs.h >>conftest.$ac_ext |
|
11456 cat >>conftest.$ac_ext <<_ACEOF |
|
11457 /* end confdefs.h. */ |
|
11458 |
|
11459 /* Override any GCC internal prototype to avoid an error. |
|
11460 Use char because int might match the return type of a GCC |
|
11461 builtin and then its argument prototype would still apply. */ |
|
11462 #ifdef __cplusplus |
|
11463 extern "C" |
|
11464 #endif |
|
11465 char shl_load (); |
|
11466 int |
|
11467 main () |
|
11468 { |
|
11469 return shl_load (); |
|
11470 ; |
|
11471 return 0; |
|
11472 } |
|
11473 _ACEOF |
|
11474 rm -f conftest.$ac_objext conftest$ac_exeext |
|
11475 if { (ac_try="$ac_link" |
|
11476 case "(($ac_try" in |
|
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
11478 *) ac_try_echo=$ac_try;; |
|
11479 esac |
|
11480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
11481 $as_echo "$ac_try_echo") >&5 |
|
11482 (eval "$ac_link") 2>conftest.er1 |
|
11483 ac_status=$? |
|
11484 grep -v '^ *+' conftest.er1 >conftest.err |
|
11485 rm -f conftest.er1 |
|
11486 cat conftest.err >&5 |
|
11487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11488 (exit $ac_status); } && { |
|
11489 test -z "$ac_c_werror_flag" || |
|
11490 test ! -s conftest.err |
|
11491 } && test -s conftest$ac_exeext && { |
|
11492 test "$cross_compiling" = yes || |
|
11493 $as_test_x conftest$ac_exeext |
|
11494 }; then |
|
11495 ac_cv_lib_dld_shl_load=yes |
|
11496 else |
|
11497 $as_echo "$as_me: failed program was:" >&5 |
|
11498 sed 's/^/| /' conftest.$ac_ext >&5 |
|
11499 |
|
11500 ac_cv_lib_dld_shl_load=no |
|
11501 fi |
|
11502 |
|
11503 rm -rf conftest.dSYM |
|
11504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
11505 conftest$ac_exeext conftest.$ac_ext |
|
11506 LIBS=$ac_check_lib_save_LIBS |
|
11507 fi |
|
11508 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
11509 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
|
11510 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then |
|
11511 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
|
11512 else |
|
11513 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
11514 $as_echo_n "checking for dlopen... " >&6; } |
|
11515 if test "${ac_cv_func_dlopen+set}" = set; then |
|
11516 $as_echo_n "(cached) " >&6 |
|
11517 else |
|
11518 cat >conftest.$ac_ext <<_ACEOF |
|
11519 /* confdefs.h. */ |
|
11520 _ACEOF |
|
11521 cat confdefs.h >>conftest.$ac_ext |
|
11522 cat >>conftest.$ac_ext <<_ACEOF |
|
11523 /* end confdefs.h. */ |
|
11524 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
11525 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
11526 #define dlopen innocuous_dlopen |
|
11527 |
|
11528 /* System header to define __stub macros and hopefully few prototypes, |
|
11529 which can conflict with char dlopen (); below. |
|
11530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
11531 <limits.h> exists even on freestanding compilers. */ |
|
11532 |
|
11533 #ifdef __STDC__ |
|
11534 # include <limits.h> |
|
11535 #else |
|
11536 # include <assert.h> |
|
11537 #endif |
|
11538 |
|
11539 #undef dlopen |
|
11540 |
|
11541 /* Override any GCC internal prototype to avoid an error. |
|
11542 Use char because int might match the return type of a GCC |
|
11543 builtin and then its argument prototype would still apply. */ |
|
11544 #ifdef __cplusplus |
|
11545 extern "C" |
|
11546 #endif |
|
11547 char dlopen (); |
|
11548 /* The GNU C library defines this for functions which it implements |
|
11549 to always fail with ENOSYS. Some functions are actually named |
|
11550 something starting with __ and the normal name is an alias. */ |
|
11551 #if defined __stub_dlopen || defined __stub___dlopen |
|
11552 choke me |
|
11553 #endif |
|
11554 |
|
11555 int |
|
11556 main () |
|
11557 { |
|
11558 return dlopen (); |
|
11559 ; |
|
11560 return 0; |
|
11561 } |
|
11562 _ACEOF |
|
11563 rm -f conftest.$ac_objext conftest$ac_exeext |
|
11564 if { (ac_try="$ac_link" |
|
11565 case "(($ac_try" in |
|
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
11567 *) ac_try_echo=$ac_try;; |
|
11568 esac |
|
11569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
11570 $as_echo "$ac_try_echo") >&5 |
|
11571 (eval "$ac_link") 2>conftest.er1 |
|
11572 ac_status=$? |
|
11573 grep -v '^ *+' conftest.er1 >conftest.err |
|
11574 rm -f conftest.er1 |
|
11575 cat conftest.err >&5 |
|
11576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11577 (exit $ac_status); } && { |
|
11578 test -z "$ac_c_werror_flag" || |
|
11579 test ! -s conftest.err |
|
11580 } && test -s conftest$ac_exeext && { |
|
11581 test "$cross_compiling" = yes || |
|
11582 $as_test_x conftest$ac_exeext |
|
11583 }; then |
|
11584 ac_cv_func_dlopen=yes |
|
11585 else |
|
11586 $as_echo "$as_me: failed program was:" >&5 |
|
11587 sed 's/^/| /' conftest.$ac_ext >&5 |
|
11588 |
|
11589 ac_cv_func_dlopen=no |
|
11590 fi |
|
11591 |
|
11592 rm -rf conftest.dSYM |
|
11593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
11594 conftest$ac_exeext conftest.$ac_ext |
|
11595 fi |
|
11596 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
11597 $as_echo "$ac_cv_func_dlopen" >&6; } |
|
11598 if test "x$ac_cv_func_dlopen" = x""yes; then |
|
11599 lt_cv_dlopen="dlopen" |
|
11600 else |
|
11601 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
11602 $as_echo_n "checking for dlopen in -ldl... " >&6; } |
|
11603 if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
11604 $as_echo_n "(cached) " >&6 |
|
11605 else |
|
11606 ac_check_lib_save_LIBS=$LIBS |
|
11607 LIBS="-ldl $LIBS" |
|
11608 cat >conftest.$ac_ext <<_ACEOF |
|
11609 /* confdefs.h. */ |
|
11610 _ACEOF |
|
11611 cat confdefs.h >>conftest.$ac_ext |
|
11612 cat >>conftest.$ac_ext <<_ACEOF |
|
11613 /* end confdefs.h. */ |
|
11614 |
|
11615 /* Override any GCC internal prototype to avoid an error. |
|
11616 Use char because int might match the return type of a GCC |
|
11617 builtin and then its argument prototype would still apply. */ |
|
11618 #ifdef __cplusplus |
|
11619 extern "C" |
|
11620 #endif |
|
11621 char dlopen (); |
|
11622 int |
|
11623 main () |
|
11624 { |
|
11625 return dlopen (); |
|
11626 ; |
|
11627 return 0; |
|
11628 } |
|
11629 _ACEOF |
|
11630 rm -f conftest.$ac_objext conftest$ac_exeext |
|
11631 if { (ac_try="$ac_link" |
|
11632 case "(($ac_try" in |
|
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
11634 *) ac_try_echo=$ac_try;; |
|
11635 esac |
|
11636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
11637 $as_echo "$ac_try_echo") >&5 |
|
11638 (eval "$ac_link") 2>conftest.er1 |
|
11639 ac_status=$? |
|
11640 grep -v '^ *+' conftest.er1 >conftest.err |
|
11641 rm -f conftest.er1 |
|
11642 cat conftest.err >&5 |
|
11643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11644 (exit $ac_status); } && { |
|
11645 test -z "$ac_c_werror_flag" || |
|
11646 test ! -s conftest.err |
|
11647 } && test -s conftest$ac_exeext && { |
|
11648 test "$cross_compiling" = yes || |
|
11649 $as_test_x conftest$ac_exeext |
|
11650 }; then |
|
11651 ac_cv_lib_dl_dlopen=yes |
|
11652 else |
|
11653 $as_echo "$as_me: failed program was:" >&5 |
|
11654 sed 's/^/| /' conftest.$ac_ext >&5 |
|
11655 |
|
11656 ac_cv_lib_dl_dlopen=no |
|
11657 fi |
|
11658 |
|
11659 rm -rf conftest.dSYM |
|
11660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
11661 conftest$ac_exeext conftest.$ac_ext |
|
11662 LIBS=$ac_check_lib_save_LIBS |
|
11663 fi |
|
11664 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
11665 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
|
11666 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
|
11667 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
11668 else |
|
11669 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
11670 $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
|
11671 if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
11672 $as_echo_n "(cached) " >&6 |
|
11673 else |
|
11674 ac_check_lib_save_LIBS=$LIBS |
|
11675 LIBS="-lsvld $LIBS" |
|
11676 cat >conftest.$ac_ext <<_ACEOF |
|
11677 /* confdefs.h. */ |
|
11678 _ACEOF |
|
11679 cat confdefs.h >>conftest.$ac_ext |
|
11680 cat >>conftest.$ac_ext <<_ACEOF |
|
11681 /* end confdefs.h. */ |
|
11682 |
|
11683 /* Override any GCC internal prototype to avoid an error. |
|
11684 Use char because int might match the return type of a GCC |
|
11685 builtin and then its argument prototype would still apply. */ |
|
11686 #ifdef __cplusplus |
|
11687 extern "C" |
|
11688 #endif |
|
11689 char dlopen (); |
|
11690 int |
|
11691 main () |
|
11692 { |
|
11693 return dlopen (); |
|
11694 ; |
|
11695 return 0; |
|
11696 } |
|
11697 _ACEOF |
|
11698 rm -f conftest.$ac_objext conftest$ac_exeext |
|
11699 if { (ac_try="$ac_link" |
|
11700 case "(($ac_try" in |
|
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
11702 *) ac_try_echo=$ac_try;; |
|
11703 esac |
|
11704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
11705 $as_echo "$ac_try_echo") >&5 |
|
11706 (eval "$ac_link") 2>conftest.er1 |
|
11707 ac_status=$? |
|
11708 grep -v '^ *+' conftest.er1 >conftest.err |
|
11709 rm -f conftest.er1 |
|
11710 cat conftest.err >&5 |
|
11711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11712 (exit $ac_status); } && { |
|
11713 test -z "$ac_c_werror_flag" || |
|
11714 test ! -s conftest.err |
|
11715 } && test -s conftest$ac_exeext && { |
|
11716 test "$cross_compiling" = yes || |
|
11717 $as_test_x conftest$ac_exeext |
|
11718 }; then |
|
11719 ac_cv_lib_svld_dlopen=yes |
|
11720 else |
|
11721 $as_echo "$as_me: failed program was:" >&5 |
|
11722 sed 's/^/| /' conftest.$ac_ext >&5 |
|
11723 |
|
11724 ac_cv_lib_svld_dlopen=no |
|
11725 fi |
|
11726 |
|
11727 rm -rf conftest.dSYM |
|
11728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
11729 conftest$ac_exeext conftest.$ac_ext |
|
11730 LIBS=$ac_check_lib_save_LIBS |
|
11731 fi |
|
11732 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
11733 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
|
11734 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then |
|
11735 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
11736 else |
|
11737 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
11738 $as_echo_n "checking for dld_link in -ldld... " >&6; } |
|
11739 if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
11740 $as_echo_n "(cached) " >&6 |
|
11741 else |
|
11742 ac_check_lib_save_LIBS=$LIBS |
|
11743 LIBS="-ldld $LIBS" |
|
11744 cat >conftest.$ac_ext <<_ACEOF |
|
11745 /* confdefs.h. */ |
|
11746 _ACEOF |
|
11747 cat confdefs.h >>conftest.$ac_ext |
|
11748 cat >>conftest.$ac_ext <<_ACEOF |
|
11749 /* end confdefs.h. */ |
|
11750 |
|
11751 /* Override any GCC internal prototype to avoid an error. |
|
11752 Use char because int might match the return type of a GCC |
|
11753 builtin and then its argument prototype would still apply. */ |
|
11754 #ifdef __cplusplus |
|
11755 extern "C" |
|
11756 #endif |
|
11757 char dld_link (); |
|
11758 int |
|
11759 main () |
|
11760 { |
|
11761 return dld_link (); |
|
11762 ; |
|
11763 return 0; |
|
11764 } |
|
11765 _ACEOF |
|
11766 rm -f conftest.$ac_objext conftest$ac_exeext |
|
11767 if { (ac_try="$ac_link" |
|
11768 case "(($ac_try" in |
|
11769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
11770 *) ac_try_echo=$ac_try;; |
|
11771 esac |
|
11772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
|
11773 $as_echo "$ac_try_echo") >&5 |
|
11774 (eval "$ac_link") 2>conftest.er1 |
|
11775 ac_status=$? |
|
11776 grep -v '^ *+' conftest.er1 >conftest.err |
|
11777 rm -f conftest.er1 |
|
11778 cat conftest.err >&5 |
|
11779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11780 (exit $ac_status); } && { |
|
11781 test -z "$ac_c_werror_flag" || |
|
11782 test ! -s conftest.err |
|
11783 } && test -s conftest$ac_exeext && { |
|
11784 test "$cross_compiling" = yes || |
|
11785 $as_test_x conftest$ac_exeext |
|
11786 }; then |
|
11787 ac_cv_lib_dld_dld_link=yes |
|
11788 else |
|
11789 $as_echo "$as_me: failed program was:" >&5 |
|
11790 sed 's/^/| /' conftest.$ac_ext >&5 |
|
11791 |
|
11792 ac_cv_lib_dld_dld_link=no |
|
11793 fi |
|
11794 |
|
11795 rm -rf conftest.dSYM |
|
11796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
11797 conftest$ac_exeext conftest.$ac_ext |
|
11798 LIBS=$ac_check_lib_save_LIBS |
|
11799 fi |
|
11800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
11801 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
|
11802 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then |
|
11803 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
|
11804 fi |
|
11805 |
|
11806 |
|
11807 fi |
|
11808 |
|
11809 |
|
11810 fi |
|
11811 |
|
11812 |
|
11813 fi |
|
11814 |
|
11815 |
|
11816 fi |
|
11817 |
|
11818 |
|
11819 fi |
|
11820 |
|
11821 ;; |
|
11822 esac |
|
11823 |
|
11824 if test "x$lt_cv_dlopen" != xno; then |
|
11825 enable_dlopen=yes |
|
11826 else |
|
11827 enable_dlopen=no |
|
11828 fi |
|
11829 |
|
11830 case $lt_cv_dlopen in |
|
11831 dlopen) |
|
11832 save_CPPFLAGS="$CPPFLAGS" |
|
11833 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
11834 |
|
11835 save_LDFLAGS="$LDFLAGS" |
|
11836 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
11837 |
|
11838 save_LIBS="$LIBS" |
|
11839 LIBS="$lt_cv_dlopen_libs $LIBS" |
|
11840 |
|
11841 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
11842 $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
|
11843 if test "${lt_cv_dlopen_self+set}" = set; then |
|
11844 $as_echo_n "(cached) " >&6 |
|
11845 else |
|
11846 if test "$cross_compiling" = yes; then : |
|
11847 lt_cv_dlopen_self=cross |
|
11848 else |
|
11849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
11850 lt_status=$lt_dlunknown |
|
11851 cat > conftest.$ac_ext <<_LT_EOF |
|
11852 #line 11852 "configure" |
|
11853 #include "confdefs.h" |
|
11854 |
|
11855 #if HAVE_DLFCN_H |
|
11856 #include <dlfcn.h> |
|
11857 #endif |
|
11858 |
|
11859 #include <stdio.h> |
|
11860 |
|
11861 #ifdef RTLD_GLOBAL |
|
11862 # define LT_DLGLOBAL RTLD_GLOBAL |
|
11863 #else |
|
11864 # ifdef DL_GLOBAL |
|
11865 # define LT_DLGLOBAL DL_GLOBAL |
|
11866 # else |
|
11867 # define LT_DLGLOBAL 0 |
|
11868 # endif |
|
11869 #endif |
|
11870 |
|
11871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
11872 find out it does not work in some platform. */ |
|
11873 #ifndef LT_DLLAZY_OR_NOW |
|
11874 # ifdef RTLD_LAZY |
|
11875 # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
11876 # else |
|
11877 # ifdef DL_LAZY |
|
11878 # define LT_DLLAZY_OR_NOW DL_LAZY |
|
11879 # else |
|
11880 # ifdef RTLD_NOW |
|
11881 # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
11882 # else |
|
11883 # ifdef DL_NOW |
|
11884 # define LT_DLLAZY_OR_NOW DL_NOW |
|
11885 # else |
|
11886 # define LT_DLLAZY_OR_NOW 0 |
|
11887 # endif |
|
11888 # endif |
|
11889 # endif |
|
11890 # endif |
|
11891 #endif |
|
11892 |
|
11893 void fnord() { int i=42;} |
|
11894 int main () |
|
11895 { |
|
11896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
11897 int status = $lt_dlunknown; |
|
11898 |
|
11899 if (self) |
|
11900 { |
|
11901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
11902 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
11903 /* dlclose (self); */ |
|
11904 } |
|
11905 else |
|
11906 puts (dlerror ()); |
|
11907 |
|
11908 return status; |
|
11909 } |
|
11910 _LT_EOF |
|
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
11912 (eval $ac_link) 2>&5 |
|
11913 ac_status=$? |
|
11914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
11915 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
11916 (./conftest; exit; ) >&5 2>/dev/null |
|
11917 lt_status=$? |
|
11918 case x$lt_status in |
|
11919 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
11920 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
11921 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
|
11922 esac |
|
11923 else : |
|
11924 # compilation failed |
|
11925 lt_cv_dlopen_self=no |
|
11926 fi |
|
11927 fi |
|
11928 rm -fr conftest* |
|
11929 |
|
11930 |
|
11931 fi |
|
11932 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
11933 $as_echo "$lt_cv_dlopen_self" >&6; } |
|
11934 |
|
11935 if test "x$lt_cv_dlopen_self" = xyes; then |
|
11936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
|
11937 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
11938 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
|
11939 if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
11940 $as_echo_n "(cached) " >&6 |
|
11941 else |
|
11942 if test "$cross_compiling" = yes; then : |
|
11943 lt_cv_dlopen_self_static=cross |
|
11944 else |
|
11945 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
11946 lt_status=$lt_dlunknown |
|
11947 cat > conftest.$ac_ext <<_LT_EOF |
|
11948 #line 11948 "configure" |
|
11949 #include "confdefs.h" |
|
11950 |
|
11951 #if HAVE_DLFCN_H |
|
11952 #include <dlfcn.h> |
|
11953 #endif |
|
11954 |
|
11955 #include <stdio.h> |
|
11956 |
|
11957 #ifdef RTLD_GLOBAL |
|
11958 # define LT_DLGLOBAL RTLD_GLOBAL |
|
11959 #else |
|
11960 # ifdef DL_GLOBAL |
|
11961 # define LT_DLGLOBAL DL_GLOBAL |
|
11962 # else |
|
11963 # define LT_DLGLOBAL 0 |
|
11964 # endif |
|
11965 #endif |
|
11966 |
|
11967 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
11968 find out it does not work in some platform. */ |
|
11969 #ifndef LT_DLLAZY_OR_NOW |
|
11970 # ifdef RTLD_LAZY |
|
11971 # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
11972 # else |
|
11973 # ifdef DL_LAZY |
|
11974 # define LT_DLLAZY_OR_NOW DL_LAZY |
|
11975 # else |
|
11976 # ifdef RTLD_NOW |
|
11977 # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
11978 # else |
|
11979 # ifdef DL_NOW |
|
11980 # define LT_DLLAZY_OR_NOW DL_NOW |
|
11981 # else |
|
11982 # define LT_DLLAZY_OR_NOW 0 |
|
11983 # endif |
|
11984 # endif |
|
11985 # endif |
|
11986 # endif |
|
11987 #endif |
|
11988 |
|
11989 void fnord() { int i=42;} |
|
11990 int main () |
|
11991 { |
|
11992 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
11993 int status = $lt_dlunknown; |
|
11994 |
|
11995 if (self) |
|
11996 { |
|
11997 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
11998 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
11999 /* dlclose (self); */ |
|
12000 } |
|
12001 else |
|
12002 puts (dlerror ()); |
|
12003 |
|
12004 return status; |
|
12005 } |
|
12006 _LT_EOF |
|
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
12008 (eval $ac_link) 2>&5 |
|
12009 ac_status=$? |
|
12010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12011 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
12012 (./conftest; exit; ) >&5 2>/dev/null |
|
12013 lt_status=$? |
|
12014 case x$lt_status in |
|
12015 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
12016 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
12017 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
|
12018 esac |
|
12019 else : |
|
12020 # compilation failed |
|
12021 lt_cv_dlopen_self_static=no |
|
12022 fi |
|
12023 fi |
|
12024 rm -fr conftest* |
|
12025 |
|
12026 |
|
12027 fi |
|
12028 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
12029 $as_echo "$lt_cv_dlopen_self_static" >&6; } |
|
12030 fi |
|
12031 |
|
12032 CPPFLAGS="$save_CPPFLAGS" |
|
12033 LDFLAGS="$save_LDFLAGS" |
|
12034 LIBS="$save_LIBS" |
|
12035 ;; |
|
12036 esac |
|
12037 |
|
12038 case $lt_cv_dlopen_self in |
|
12039 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
12040 *) enable_dlopen_self=unknown ;; |
|
12041 esac |
|
12042 |
|
12043 case $lt_cv_dlopen_self_static in |
|
12044 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
12045 *) enable_dlopen_self_static=unknown ;; |
|
12046 esac |
|
12047 fi |
|
12048 |
|
12049 |
|
12050 |
|
12051 |
|
12052 |
|
12053 |
|
12054 |
|
12055 |
|
12056 |
|
12057 |
|
12058 |
|
12059 |
|
12060 |
|
12061 |
|
12062 |
|
12063 |
|
12064 |
|
12065 striplib= |
|
12066 old_striplib= |
|
12067 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
12068 $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
|
12069 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
|
12070 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
12071 test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
12072 { $as_echo "$as_me:$LINENO: result: yes" >&5 |
|
12073 $as_echo "yes" >&6; } |
|
12074 else |
|
12075 # FIXME - insert some real tests, host_os isn't really good enough |
|
12076 case $host_os in |
|
12077 darwin*) |
|
12078 if test -n "$STRIP" ; then |
|
12079 striplib="$STRIP -x" |
|
12080 old_striplib="$STRIP -S" |
|
12081 { $as_echo "$as_me:$LINENO: result: yes" >&5 |
|
12082 $as_echo "yes" >&6; } |
|
12083 else |
|
12084 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
12085 $as_echo "no" >&6; } |
|
12086 fi |
|
12087 ;; |
|
12088 *) |
|
12089 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
12090 $as_echo "no" >&6; } |
|
12091 ;; |
|
12092 esac |
|
12093 fi |
|
12094 |
|
12095 |
|
12096 |
|
12097 |
|
12098 |
|
12099 |
|
12100 |
|
12101 |
|
12102 |
|
12103 |
|
12104 |
|
12105 |
|
12106 # Report which library types will actually be built |
|
12107 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
12108 $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
|
12109 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
12110 $as_echo "$can_build_shared" >&6; } |
|
12111 |
|
12112 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
12113 $as_echo_n "checking whether to build shared libraries... " >&6; } |
|
12114 test "$can_build_shared" = "no" && enable_shared=no |
|
12115 |
|
12116 # On AIX, shared libraries and static libraries use the same namespace, and |
|
12117 # are all built from PIC. |
|
12118 case $host_os in |
|
12119 aix3*) |
|
12120 test "$enable_shared" = yes && enable_static=no |
|
12121 if test -n "$RANLIB"; then |
|
12122 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
12123 postinstall_cmds='$RANLIB $lib' |
|
12124 fi |
|
12125 ;; |
|
12126 |
|
12127 aix[4-9]*) |
|
12128 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
12129 test "$enable_shared" = yes && enable_static=no |
|
12130 fi |
|
12131 ;; |
|
12132 esac |
|
12133 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
12134 $as_echo "$enable_shared" >&6; } |
|
12135 |
|
12136 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
12137 $as_echo_n "checking whether to build static libraries... " >&6; } |
|
12138 # Make sure either enable_shared or enable_static is yes. |
|
12139 test "$enable_shared" = yes || enable_static=yes |
|
12140 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
12141 $as_echo "$enable_static" >&6; } |
|
12142 |
|
12143 |
|
12144 |
|
12145 |
|
12146 fi |
|
12147 ac_ext=c |
|
12148 ac_cpp='$CPP $CPPFLAGS' |
|
12149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
12150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
12151 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
12152 |
|
12153 CC="$lt_save_CC" |
|
12154 |
|
12155 |
|
12156 |
|
12157 |
|
12158 |
|
12159 |
|
12160 |
|
12161 |
|
12162 |
|
12163 |
|
12164 |
|
12165 |
|
12166 |
|
12167 ac_config_commands="$ac_config_commands libtool" |
|
12168 |
|
12169 |
|
12170 |
|
12171 |
|
12172 # Only expand once: |
|
12173 |
|
12174 |
|
12175 |
|
12176 |
|
12177 |
|
12178 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
|
12179 if test -n "$ac_tool_prefix"; then |
|
12180 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
|
12181 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
|
12182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
12183 $as_echo_n "checking for $ac_word... " >&6; } |
|
12184 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
|
12185 $as_echo_n "(cached) " >&6 |
|
12186 else |
|
12187 case $PKG_CONFIG in |
|
12188 [\\/]* | ?:[\\/]*) |
|
12189 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
|
12190 ;; |
|
12191 *) |
|
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
12193 for as_dir in $PATH |
|
12194 do |
|
12195 IFS=$as_save_IFS |
|
12196 test -z "$as_dir" && as_dir=. |
|
12197 for ac_exec_ext in '' $ac_executable_extensions; do |
|
12198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
12199 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
12200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
12201 break 2 |
|
12202 fi |
|
12203 done |
|
12204 done |
|
12205 IFS=$as_save_IFS |
|
12206 |
|
12207 ;; |
|
12208 esac |
|
12209 fi |
|
12210 PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
12211 if test -n "$PKG_CONFIG"; then |
|
12212 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
12213 $as_echo "$PKG_CONFIG" >&6; } |
|
12214 else |
|
12215 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
12216 $as_echo "no" >&6; } |
|
12217 fi |
|
12218 |
|
12219 |
|
12220 fi |
|
12221 if test -z "$ac_cv_path_PKG_CONFIG"; then |
|
12222 ac_pt_PKG_CONFIG=$PKG_CONFIG |
|
12223 # Extract the first word of "pkg-config", so it can be a program name with args. |
|
12224 set dummy pkg-config; ac_word=$2 |
|
12225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
12226 $as_echo_n "checking for $ac_word... " >&6; } |
|
12227 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
|
12228 $as_echo_n "(cached) " >&6 |
|
12229 else |
|
12230 case $ac_pt_PKG_CONFIG in |
|
12231 [\\/]* | ?:[\\/]*) |
|
12232 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
|
12233 ;; |
|
12234 *) |
|
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
12236 for as_dir in $PATH |
|
12237 do |
|
12238 IFS=$as_save_IFS |
|
12239 test -z "$as_dir" && as_dir=. |
|
12240 for ac_exec_ext in '' $ac_executable_extensions; do |
|
12241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
12242 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
12243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
12244 break 2 |
|
12245 fi |
|
12246 done |
|
12247 done |
|
12248 IFS=$as_save_IFS |
|
12249 |
|
12250 ;; |
|
12251 esac |
|
12252 fi |
|
12253 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
|
12254 if test -n "$ac_pt_PKG_CONFIG"; then |
|
12255 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
|
12256 $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
|
12257 else |
|
12258 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
12259 $as_echo "no" >&6; } |
|
12260 fi |
|
12261 |
|
12262 if test "x$ac_pt_PKG_CONFIG" = x; then |
|
12263 PKG_CONFIG="" |
|
12264 else |
|
12265 case $cross_compiling:$ac_tool_warned in |
|
12266 yes:) |
|
12267 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
12268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
12269 ac_tool_warned=yes ;; |
|
12270 esac |
|
12271 PKG_CONFIG=$ac_pt_PKG_CONFIG |
|
12272 fi |
|
12273 else |
|
12274 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
|
12275 fi |
|
12276 |
|
12277 fi |
|
12278 if test -n "$PKG_CONFIG"; then |
|
12279 _pkg_min_version=0.9.0 |
|
12280 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
|
12281 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
|
12282 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
|
12283 { $as_echo "$as_me:$LINENO: result: yes" >&5 |
|
12284 $as_echo "yes" >&6; } |
|
12285 else |
|
12286 { $as_echo "$as_me:$LINENO: result: no" >&5 |
|
12287 $as_echo "no" >&6; } |
|
12288 PKG_CONFIG="" |
|
12289 fi |
|
12290 |
|
12291 fi |
|
12292 |
|
12293 pkg_failed=no |
|
12294 { $as_echo "$as_me:$LINENO: checking for ALL" >&5 |
|
12295 $as_echo_n "checking for ALL... " >&6; } |
|
12296 |
|
12297 if test -n "$ALL_CFLAGS"; then |
|
12298 pkg_cv_ALL_CFLAGS="$ALL_CFLAGS" |
|
12299 elif test -n "$PKG_CONFIG"; then |
|
12300 if test -n "$PKG_CONFIG" && \ |
|
12301 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss >= 3.12.3\"") >&5 |
|
12302 ($PKG_CONFIG --exists --print-errors "nss >= 3.12.3") 2>&5 |
|
12303 ac_status=$? |
|
12304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12305 (exit $ac_status); }; then |
|
12306 pkg_cv_ALL_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3.12.3" 2>/dev/null` |
|
12307 else |
|
12308 pkg_failed=yes |
|
12309 fi |
|
12310 else |
|
12311 pkg_failed=untried |
|
12312 fi |
|
12313 if test -n "$ALL_LIBS"; then |
|
12314 pkg_cv_ALL_LIBS="$ALL_LIBS" |
|
12315 elif test -n "$PKG_CONFIG"; then |
|
12316 if test -n "$PKG_CONFIG" && \ |
|
12317 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss >= 3.12.3\"") >&5 |
|
12318 ($PKG_CONFIG --exists --print-errors "nss >= 3.12.3") 2>&5 |
|
12319 ac_status=$? |
|
12320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
12321 (exit $ac_status); }; then |
|
12322 pkg_cv_ALL_LIBS=`$PKG_CONFIG --libs "nss >= 3.12.3" 2>/dev/null` |
|
12323 else |
|
12324 pkg_failed=yes |
|
12325 fi |
|
12326 else |
|
12327 pkg_failed=untried |
|
12328 fi |
|
12329 |
|
12330 |
|
12331 |
|
12332 if test $pkg_failed = yes; then |
|
12333 |
|
12334 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
|
12335 _pkg_short_errors_supported=yes |
|
12336 else |
|
12337 _pkg_short_errors_supported=no |
|
12338 fi |
|
12339 if test $_pkg_short_errors_supported = yes; then |
|
12340 ALL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "nss >= 3.12.3" 2>&1` |
|
12341 else |
|
12342 ALL_PKG_ERRORS=`$PKG_CONFIG --print-errors "nss >= 3.12.3" 2>&1` |
|
12343 fi |
|
12344 # Put the nasty error message in config.log where it belongs |
|
12345 echo "$ALL_PKG_ERRORS" >&5 |
|
12346 |
|
12347 { { $as_echo "$as_me:$LINENO: error: Package requirements (nss >= 3.12.3) were not met: |
|
12348 |
|
12349 $ALL_PKG_ERRORS |
|
12350 |
|
12351 Consider adjusting the PKG_CONFIG_PATH environment variable if you |
|
12352 installed software in a non-standard prefix. |
|
12353 |
|
12354 Alternatively, you may set the environment variables ALL_CFLAGS |
|
12355 and ALL_LIBS to avoid the need to call pkg-config. |
|
12356 See the pkg-config man page for more details. |
|
12357 " >&5 |
|
12358 $as_echo "$as_me: error: Package requirements (nss >= 3.12.3) were not met: |
|
12359 |
|
12360 $ALL_PKG_ERRORS |
|
12361 |
|
12362 Consider adjusting the PKG_CONFIG_PATH environment variable if you |
|
12363 installed software in a non-standard prefix. |
|
12364 |
|
12365 Alternatively, you may set the environment variables ALL_CFLAGS |
|
12366 and ALL_LIBS to avoid the need to call pkg-config. |
|
12367 See the pkg-config man page for more details. |
|
12368 " >&2;} |
|
12369 { (exit 1); exit 1; }; } |
|
12370 elif test $pkg_failed = untried; then |
|
12371 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
|
12372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
12373 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
|
12374 is in your PATH or set the PKG_CONFIG environment variable to the full |
|
12375 path to pkg-config. |
|
12376 |
|
12377 Alternatively, you may set the environment variables ALL_CFLAGS |
|
12378 and ALL_LIBS to avoid the need to call pkg-config. |
|
12379 See the pkg-config man page for more details. |
|
12380 |
|
12381 To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
|
12382 See \`config.log' for more details." >&5 |
|
12383 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
|
12384 is in your PATH or set the PKG_CONFIG environment variable to the full |
|
12385 path to pkg-config. |
|
12386 |
|
12387 Alternatively, you may set the environment variables ALL_CFLAGS |
|
12388 and ALL_LIBS to avoid the need to call pkg-config. |
|
12389 See the pkg-config man page for more details. |
|
12390 |
|
12391 To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
|
12392 See \`config.log' for more details." >&2;} |
|
12393 { (exit 1); exit 1; }; }; } |
|
12394 else |
|
12395 ALL_CFLAGS=$pkg_cv_ALL_CFLAGS |
|
12396 ALL_LIBS=$pkg_cv_ALL_LIBS |
|
12397 { $as_echo "$as_me:$LINENO: result: yes" >&5 |
|
12398 $as_echo "yes" >&6; } |
|
12399 : |
|
12400 fi |
|
12401 |
|
12402 |
|
12403 privdatadir=$(eval echo "${datadir}/nss-shared-helper") |
|
12404 |
|
12405 |
|
12406 |
|
12407 |
|
12408 BASE_LIBS="" |
|
12409 BASE_CFLAGS="-Wall" |
|
12410 PROJECT_LIBS="$BASE_LIBS `pkg-config --libs nss`" |
|
12411 PROJECT_CFLAGS="$BASE_CFLAGS `pkg-config --cflags nss`" |
|
12412 |
|
12413 |
|
12414 |
|
12415 |
|
12416 |
|
12417 |
|
12418 ac_config_files="$ac_config_files Makefile nss-shared-helper/Makefile nss-shared-helper/nss-shared-helper.pc" |
|
12419 |
|
12420 cat >confcache <<\_ACEOF |
|
12421 # This file is a shell script that caches the results of configure |
|
12422 # tests run on this system so they can be shared between configure |
|
12423 # scripts and configure runs, see configure's option --config-cache. |
|
12424 # It is not useful on other systems. If it contains results you don't |
|
12425 # want to keep, you may remove or edit it. |
|
12426 # |
|
12427 # config.status only pays attention to the cache file if you give it |
|
12428 # the --recheck option to rerun configure. |
|
12429 # |
|
12430 # `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
12431 # loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
12432 # following values. |
|
12433 |
|
12434 _ACEOF |
|
12435 |
|
12436 # The following way of writing the cache mishandles newlines in values, |
|
12437 # but we know of no workaround that is simple, portable, and efficient. |
|
12438 # So, we kill variables containing newlines. |
|
12439 # Ultrix sh set writes to stderr and can't be redirected directly, |
|
12440 # and sets the high bit in the cache file unless we assign to the vars. |
|
12441 ( |
|
12442 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
12443 eval ac_val=\$$ac_var |
|
12444 case $ac_val in #( |
|
12445 *${as_nl}*) |
|
12446 case $ac_var in #( |
|
12447 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
|
12448 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
12449 esac |
|
12450 case $ac_var in #( |
|
12451 _ | IFS | as_nl) ;; #( |
|
12452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
12453 *) $as_unset $ac_var ;; |
|
12454 esac ;; |
|
12455 esac |
|
12456 done |
|
12457 |
|
12458 (set) 2>&1 | |
|
12459 case $as_nl`(ac_space=' '; set) 2>&1` in #( |
|
12460 *${as_nl}ac_space=\ *) |
|
12461 # `set' does not quote correctly, so add quotes (double-quote |
|
12462 # substitution turns \\\\ into \\, and sed turns \\ into \). |
|
12463 sed -n \ |
|
12464 "s/'/'\\\\''/g; |
|
12465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
12466 ;; #( |
|
12467 *) |
|
12468 # `set' quotes correctly as required by POSIX, so do not add quotes. |
|
12469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
12470 ;; |
|
12471 esac | |
|
12472 sort |
|
12473 ) | |
|
12474 sed ' |
|
12475 /^ac_cv_env_/b end |
|
12476 t clear |
|
12477 :clear |
|
12478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
12479 t end |
|
12480 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
12481 :end' >>confcache |
|
12482 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
|
12483 if test -w "$cache_file"; then |
|
12484 test "x$cache_file" != "x/dev/null" && |
|
12485 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
|
12486 $as_echo "$as_me: updating cache $cache_file" >&6;} |
|
12487 cat confcache >$cache_file |
|
12488 else |
|
12489 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
|
12490 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
|
12491 fi |
|
12492 fi |
|
12493 rm -f confcache |
|
12494 |
|
12495 test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
12496 # Let make expand exec_prefix. |
|
12497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
12498 |
|
12499 DEFS=-DHAVE_CONFIG_H |
|
12500 |
|
12501 ac_libobjs= |
|
12502 ac_ltlibobjs= |
|
12503 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
12504 # 1. Remove the extension, and $U if already installed. |
|
12505 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
|
12506 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
|
12507 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|
12508 # will be set to the directory where LIBOBJS objects are built. |
|
12509 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
|
12510 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
|
12511 done |
|
12512 LIBOBJS=$ac_libobjs |
|
12513 |
|
12514 LTLIBOBJS=$ac_ltlibobjs |
|
12515 |
|
12516 |
|
12517 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
|
12518 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
|
12519 Usually this means the macro was only invoked conditionally." >&5 |
|
12520 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
|
12521 Usually this means the macro was only invoked conditionally." >&2;} |
|
12522 { (exit 1); exit 1; }; } |
|
12523 fi |
|
12524 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
|
12525 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
|
12526 Usually this means the macro was only invoked conditionally." >&5 |
|
12527 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. |
|
12528 Usually this means the macro was only invoked conditionally." >&2;} |
|
12529 { (exit 1); exit 1; }; } |
|
12530 fi |
|
12531 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
12532 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
|
12533 Usually this means the macro was only invoked conditionally." >&5 |
|
12534 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
|
12535 Usually this means the macro was only invoked conditionally." >&2;} |
|
12536 { (exit 1); exit 1; }; } |
|
12537 fi |
|
12538 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
12539 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
|
12540 Usually this means the macro was only invoked conditionally." >&5 |
|
12541 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
|
12542 Usually this means the macro was only invoked conditionally." >&2;} |
|
12543 { (exit 1); exit 1; }; } |
|
12544 fi |
|
12545 |
|
12546 : ${CONFIG_STATUS=./config.status} |
|
12547 ac_write_fail=0 |
|
12548 ac_clean_files_save=$ac_clean_files |
|
12549 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
12550 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
|
12551 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
12552 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
12553 #! $SHELL |
|
12554 # Generated by $as_me. |
|
12555 # Run this file to recreate the current configuration. |
|
12556 # Compiler output produced by configure, useful for debugging |
|
12557 # configure, is in config.log if it exists. |
|
12558 |
|
12559 debug=false |
|
12560 ac_cs_recheck=false |
|
12561 ac_cs_silent=false |
|
12562 SHELL=\${CONFIG_SHELL-$SHELL} |
|
12563 _ACEOF |
|
12564 |
|
12565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
12566 ## --------------------- ## |
|
12567 ## M4sh Initialization. ## |
|
12568 ## --------------------- ## |
|
12569 |
|
12570 # Be more Bourne compatible |
|
12571 DUALCASE=1; export DUALCASE # for MKS sh |
|
12572 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
12573 emulate sh |
|
12574 NULLCMD=: |
|
12575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|
12576 # is contrary to our usage. Disable this feature. |
|
12577 alias -g '${1+"$@"}'='"$@"' |
|
12578 setopt NO_GLOB_SUBST |
|
12579 else |
|
12580 case `(set -o) 2>/dev/null` in |
|
12581 *posix*) set -o posix ;; |
|
12582 esac |
|
12583 |
|
12584 fi |
|
12585 |
|
12586 |
|
12587 |
|
12588 |
|
12589 # PATH needs CR |
|
12590 # Avoid depending upon Character Ranges. |
|
12591 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
12592 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
12593 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
12594 as_cr_digits='0123456789' |
|
12595 as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
12596 |
|
12597 as_nl=' |
|
12598 ' |
|
12599 export as_nl |
|
12600 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
|
12601 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
12602 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|
12603 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|
12604 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
12605 as_echo='printf %s\n' |
|
12606 as_echo_n='printf %s' |
|
12607 else |
|
12608 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|
12609 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|
12610 as_echo_n='/usr/ucb/echo -n' |
|
12611 else |
|
12612 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|
12613 as_echo_n_body='eval |
|
12614 arg=$1; |
|
12615 case $arg in |
|
12616 *"$as_nl"*) |
|
12617 expr "X$arg" : "X\\(.*\\)$as_nl"; |
|
12618 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|
12619 esac; |
|
12620 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
12621 ' |
|
12622 export as_echo_n_body |
|
12623 as_echo_n='sh -c $as_echo_n_body as_echo' |
|
12624 fi |
|
12625 export as_echo_body |
|
12626 as_echo='sh -c $as_echo_body as_echo' |
|
12627 fi |
|
12628 |
|
12629 # The user is always right. |
|
12630 if test "${PATH_SEPARATOR+set}" != set; then |
|
12631 PATH_SEPARATOR=: |
|
12632 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
12633 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
12634 PATH_SEPARATOR=';' |
|
12635 } |
|
12636 fi |
|
12637 |
|
12638 # Support unset when possible. |
|
12639 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
12640 as_unset=unset |
|
12641 else |
|
12642 as_unset=false |
|
12643 fi |
|
12644 |
|
12645 |
|
12646 # IFS |
|
12647 # We need space, tab and new line, in precisely that order. Quoting is |
|
12648 # there to prevent editors from complaining about space-tab. |
|
12649 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
12650 # splitting by setting IFS to empty value.) |
|
12651 IFS=" "" $as_nl" |
|
12652 |
|
12653 # Find who we are. Look in the path if we contain no directory separator. |
|
12654 case $0 in |
|
12655 *[\\/]* ) as_myself=$0 ;; |
|
12656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
12657 for as_dir in $PATH |
|
12658 do |
|
12659 IFS=$as_save_IFS |
|
12660 test -z "$as_dir" && as_dir=. |
|
12661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
12662 done |
|
12663 IFS=$as_save_IFS |
|
12664 |
|
12665 ;; |
|
12666 esac |
|
12667 # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
12668 # in which case we are not to be found in the path. |
|
12669 if test "x$as_myself" = x; then |
|
12670 as_myself=$0 |
|
12671 fi |
|
12672 if test ! -f "$as_myself"; then |
|
12673 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
12674 { (exit 1); exit 1; } |
|
12675 fi |
|
12676 |
|
12677 # Work around bugs in pre-3.0 UWIN ksh. |
|
12678 for as_var in ENV MAIL MAILPATH |
|
12679 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
12680 done |
|
12681 PS1='$ ' |
|
12682 PS2='> ' |
|
12683 PS4='+ ' |
|
12684 |
|
12685 # NLS nuisances. |
|
12686 LC_ALL=C |
|
12687 export LC_ALL |
|
12688 LANGUAGE=C |
|
12689 export LANGUAGE |
|
12690 |
|
12691 # Required to use basename. |
|
12692 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
12693 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
12694 as_expr=expr |
|
12695 else |
|
12696 as_expr=false |
|
12697 fi |
|
12698 |
|
12699 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
12700 as_basename=basename |
|
12701 else |
|
12702 as_basename=false |
|
12703 fi |
|
12704 |
|
12705 |
|
12706 # Name of the executable. |
|
12707 as_me=`$as_basename -- "$0" || |
|
12708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
12709 X"$0" : 'X\(//\)$' \| \ |
|
12710 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
12711 $as_echo X/"$0" | |
|
12712 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
12713 s//\1/ |
|
12714 q |
|
12715 } |
|
12716 /^X\/\(\/\/\)$/{ |
|
12717 s//\1/ |
|
12718 q |
|
12719 } |
|
12720 /^X\/\(\/\).*/{ |
|
12721 s//\1/ |
|
12722 q |
|
12723 } |
|
12724 s/.*/./; q'` |
|
12725 |
|
12726 # CDPATH. |
|
12727 $as_unset CDPATH |
|
12728 |
|
12729 |
|
12730 |
|
12731 as_lineno_1=$LINENO |
|
12732 as_lineno_2=$LINENO |
|
12733 test "x$as_lineno_1" != "x$as_lineno_2" && |
|
12734 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
|
12735 |
|
12736 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
12737 # uniformly replaced by the line number. The first 'sed' inserts a |
|
12738 # line-number line after each line using $LINENO; the second 'sed' |
|
12739 # does the real work. The second script uses 'N' to pair each |
|
12740 # line-number line with the line containing $LINENO, and appends |
|
12741 # trailing '-' during substitution so that $LINENO is not a special |
|
12742 # case at line end. |
|
12743 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
12744 # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
12745 # E. McMahon (1931-1989) for sed's syntax. :-) |
|
12746 sed -n ' |
|
12747 p |
|
12748 /[$]LINENO/= |
|
12749 ' <$as_myself | |
|
12750 sed ' |
|
12751 s/[$]LINENO.*/&-/ |
|
12752 t lineno |
|
12753 b |
|
12754 :lineno |
|
12755 N |
|
12756 :loop |
|
12757 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
12758 t loop |
|
12759 s/-\n.*// |
|
12760 ' >$as_me.lineno && |
|
12761 chmod +x "$as_me.lineno" || |
|
12762 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
|
12763 { (exit 1); exit 1; }; } |
|
12764 |
|
12765 # Don't try to exec as it changes $[0], causing all sort of problems |
|
12766 # (the dirname of $[0] is not the place where we might find the |
|
12767 # original and so on. Autoconf is especially sensitive to this). |
|
12768 . "./$as_me.lineno" |
|
12769 # Exit status is that of the last command. |
|
12770 exit |
|
12771 } |
|
12772 |
|
12773 |
|
12774 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
12775 as_dirname=dirname |
|
12776 else |
|
12777 as_dirname=false |
|
12778 fi |
|
12779 |
|
12780 ECHO_C= ECHO_N= ECHO_T= |
|
12781 case `echo -n x` in |
|
12782 -n*) |
|
12783 case `echo 'x\c'` in |
|
12784 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
12785 *) ECHO_C='\c';; |
|
12786 esac;; |
|
12787 *) |
|
12788 ECHO_N='-n';; |
|
12789 esac |
|
12790 if expr a : '\(a\)' >/dev/null 2>&1 && |
|
12791 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
12792 as_expr=expr |
|
12793 else |
|
12794 as_expr=false |
|
12795 fi |
|
12796 |
|
12797 rm -f conf$$ conf$$.exe conf$$.file |
|
12798 if test -d conf$$.dir; then |
|
12799 rm -f conf$$.dir/conf$$.file |
|
12800 else |
|
12801 rm -f conf$$.dir |
|
12802 mkdir conf$$.dir 2>/dev/null |
|
12803 fi |
|
12804 if (echo >conf$$.file) 2>/dev/null; then |
|
12805 if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
12806 as_ln_s='ln -s' |
|
12807 # ... but there are two gotchas: |
|
12808 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
12809 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
12810 # In both cases, we have to default to `cp -p'. |
|
12811 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
12812 as_ln_s='cp -p' |
|
12813 elif ln conf$$.file conf$$ 2>/dev/null; then |
|
12814 as_ln_s=ln |
|
12815 else |
|
12816 as_ln_s='cp -p' |
|
12817 fi |
|
12818 else |
|
12819 as_ln_s='cp -p' |
|
12820 fi |
|
12821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
12822 rmdir conf$$.dir 2>/dev/null |
|
12823 |
|
12824 if mkdir -p . 2>/dev/null; then |
|
12825 as_mkdir_p=: |
|
12826 else |
|
12827 test -d ./-p && rmdir ./-p |
|
12828 as_mkdir_p=false |
|
12829 fi |
|
12830 |
|
12831 if test -x / >/dev/null 2>&1; then |
|
12832 as_test_x='test -x' |
|
12833 else |
|
12834 if ls -dL / >/dev/null 2>&1; then |
|
12835 as_ls_L_option=L |
|
12836 else |
|
12837 as_ls_L_option= |
|
12838 fi |
|
12839 as_test_x=' |
|
12840 eval sh -c '\'' |
|
12841 if test -d "$1"; then |
|
12842 test -d "$1/."; |
|
12843 else |
|
12844 case $1 in |
|
12845 -*)set "./$1";; |
|
12846 esac; |
|
12847 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
12848 ???[sx]*):;;*)false;;esac;fi |
|
12849 '\'' sh |
|
12850 ' |
|
12851 fi |
|
12852 as_executable_p=$as_test_x |
|
12853 |
|
12854 # Sed expression to map a string onto a valid CPP name. |
|
12855 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
12856 |
|
12857 # Sed expression to map a string onto a valid variable name. |
|
12858 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
12859 |
|
12860 |
|
12861 exec 6>&1 |
|
12862 |
|
12863 # Save the log message, to keep $[0] and so on meaningful, and to |
|
12864 # report actual input values of CONFIG_FILES etc. instead of their |
|
12865 # values after options handling. |
|
12866 ac_log=" |
|
12867 This file was extended by $as_me, which was |
|
12868 generated by GNU Autoconf 2.63. Invocation command line was |
|
12869 |
|
12870 CONFIG_FILES = $CONFIG_FILES |
|
12871 CONFIG_HEADERS = $CONFIG_HEADERS |
|
12872 CONFIG_LINKS = $CONFIG_LINKS |
|
12873 CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
12874 $ $0 $@ |
|
12875 |
|
12876 on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
12877 " |
|
12878 |
|
12879 _ACEOF |
|
12880 |
|
12881 case $ac_config_files in *" |
|
12882 "*) set x $ac_config_files; shift; ac_config_files=$*;; |
|
12883 esac |
|
12884 |
|
12885 case $ac_config_headers in *" |
|
12886 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
|
12887 esac |
|
12888 |
|
12889 |
|
12890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
12891 # Files that config.status was made for. |
|
12892 config_files="$ac_config_files" |
|
12893 config_headers="$ac_config_headers" |
|
12894 config_commands="$ac_config_commands" |
|
12895 |
|
12896 _ACEOF |
|
12897 |
|
12898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
12899 ac_cs_usage="\ |
|
12900 \`$as_me' instantiates files from templates according to the |
|
12901 current configuration. |
|
12902 |
|
12903 Usage: $0 [OPTION]... [FILE]... |
|
12904 |
|
12905 -h, --help print this help, then exit |
|
12906 -V, --version print version number and configuration settings, then exit |
|
12907 -q, --quiet, --silent |
|
12908 do not print progress messages |
|
12909 -d, --debug don't remove temporary files |
|
12910 --recheck update $as_me by reconfiguring in the same conditions |
|
12911 --file=FILE[:TEMPLATE] |
|
12912 instantiate the configuration file FILE |
|
12913 --header=FILE[:TEMPLATE] |
|
12914 instantiate the configuration header FILE |
|
12915 |
|
12916 Configuration files: |
|
12917 $config_files |
|
12918 |
|
12919 Configuration headers: |
|
12920 $config_headers |
|
12921 |
|
12922 Configuration commands: |
|
12923 $config_commands |
|
12924 |
|
12925 Report bugs to <bug-autoconf@gnu.org>." |
|
12926 |
|
12927 _ACEOF |
|
12928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
12929 ac_cs_version="\\ |
|
12930 config.status |
|
12931 configured by $0, generated by GNU Autoconf 2.63, |
|
12932 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
|
12933 |
|
12934 Copyright (C) 2008 Free Software Foundation, Inc. |
|
12935 This config.status script is free software; the Free Software Foundation |
|
12936 gives unlimited permission to copy, distribute and modify it." |
|
12937 |
|
12938 ac_pwd='$ac_pwd' |
|
12939 srcdir='$srcdir' |
|
12940 INSTALL='$INSTALL' |
|
12941 MKDIR_P='$MKDIR_P' |
|
12942 AWK='$AWK' |
|
12943 test -n "\$AWK" || AWK=awk |
|
12944 _ACEOF |
|
12945 |
|
12946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
12947 # The default lists apply if the user does not specify any file. |
|
12948 ac_need_defaults=: |
|
12949 while test $# != 0 |
|
12950 do |
|
12951 case $1 in |
|
12952 --*=*) |
|
12953 ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
12954 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
12955 ac_shift=: |
|
12956 ;; |
|
12957 *) |
|
12958 ac_option=$1 |
|
12959 ac_optarg=$2 |
|
12960 ac_shift=shift |
|
12961 ;; |
|
12962 esac |
|
12963 |
|
12964 case $ac_option in |
|
12965 # Handling of the options. |
|
12966 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
12967 ac_cs_recheck=: ;; |
|
12968 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
12969 $as_echo "$ac_cs_version"; exit ;; |
|
12970 --debug | --debu | --deb | --de | --d | -d ) |
|
12971 debug=: ;; |
|
12972 --file | --fil | --fi | --f ) |
|
12973 $ac_shift |
|
12974 case $ac_optarg in |
|
12975 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
12976 esac |
|
12977 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
|
12978 ac_need_defaults=false;; |
|
12979 --header | --heade | --head | --hea ) |
|
12980 $ac_shift |
|
12981 case $ac_optarg in |
|
12982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
12983 esac |
|
12984 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
|
12985 ac_need_defaults=false;; |
|
12986 --he | --h) |
|
12987 # Conflict between --help and --header |
|
12988 { $as_echo "$as_me: error: ambiguous option: $1 |
|
12989 Try \`$0 --help' for more information." >&2 |
|
12990 { (exit 1); exit 1; }; };; |
|
12991 --help | --hel | -h ) |
|
12992 $as_echo "$ac_cs_usage"; exit ;; |
|
12993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
12994 | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
12995 ac_cs_silent=: ;; |
|
12996 |
|
12997 # This is an error. |
|
12998 -*) { $as_echo "$as_me: error: unrecognized option: $1 |
|
12999 Try \`$0 --help' for more information." >&2 |
|
13000 { (exit 1); exit 1; }; } ;; |
|
13001 |
|
13002 *) ac_config_targets="$ac_config_targets $1" |
|
13003 ac_need_defaults=false ;; |
|
13004 |
|
13005 esac |
|
13006 shift |
|
13007 done |
|
13008 |
|
13009 ac_configure_extra_args= |
|
13010 |
|
13011 if $ac_cs_silent; then |
|
13012 exec 6>/dev/null |
|
13013 ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
13014 fi |
|
13015 |
|
13016 _ACEOF |
|
13017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
13018 if \$ac_cs_recheck; then |
|
13019 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
13020 shift |
|
13021 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
|
13022 CONFIG_SHELL='$SHELL' |
|
13023 export CONFIG_SHELL |
|
13024 exec "\$@" |
|
13025 fi |
|
13026 |
|
13027 _ACEOF |
|
13028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
13029 exec 5>>config.log |
|
13030 { |
|
13031 echo |
|
13032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
13033 ## Running $as_me. ## |
|
13034 _ASBOX |
|
13035 $as_echo "$ac_log" |
|
13036 } >&5 |
|
13037 |
|
13038 _ACEOF |
|
13039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
13040 # |
|
13041 # INIT-COMMANDS |
|
13042 # |
|
13043 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
|
13044 |
|
13045 |
|
13046 # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
13047 # if CDPATH is set. |
|
13048 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
13049 |
|
13050 sed_quote_subst='$sed_quote_subst' |
|
13051 double_quote_subst='$double_quote_subst' |
|
13052 delay_variable_subst='$delay_variable_subst' |
|
13053 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
|
13054 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
|
13055 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
|
13056 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
|
13057 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
|
13058 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
|
13059 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
|
13060 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
|
13061 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
|
13062 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
|
13063 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
|
13064 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
|
13065 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
|
13066 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
|
13067 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
|
13068 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
|
13069 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
|
13070 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
|
13071 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
|
13072 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
|
13073 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
|
13074 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
|
13075 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
|
13076 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
|
13077 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
|
13078 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
|
13079 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
13080 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13081 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
|
13082 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
|
13083 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
|
13084 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
|
13085 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
|
13086 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
|
13087 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
|
13088 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13089 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13090 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13091 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
|
13092 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
|
13093 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
|
13094 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
|
13095 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
|
13096 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
|
13097 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"`' |
|
13098 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"`' |
|
13099 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
|
13100 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
|
13101 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
|
13102 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
|
13103 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
13104 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
|
13105 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
|
13106 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
|
13107 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
|
13108 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
|
13109 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
|
13110 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
|
13111 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
|
13112 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
|
13113 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
|
13114 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
|
13115 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13116 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13117 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
|
13118 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
|
13119 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
13120 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
13121 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
|
13122 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13123 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13124 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13125 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13126 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13127 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13128 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
|
13129 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
13130 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
13131 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
13132 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
|
13133 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
|
13134 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
|
13135 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
|
13136 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
|
13137 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
|
13138 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
|
13139 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
|
13140 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
|
13141 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
|
13142 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
|
13143 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13144 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
|
13145 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
|
13146 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13147 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
13148 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
|
13149 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
|
13150 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
|
13151 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
|
13152 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
|
13153 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
|
13154 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
|
13155 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
13156 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
13157 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
13158 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13159 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13160 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
13161 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
|
13162 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
|
13163 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
13164 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
13165 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
|
13166 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
|
13167 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
|
13168 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
|
13169 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
|
13170 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
|
13171 |
|
13172 LTCC='$LTCC' |
|
13173 LTCFLAGS='$LTCFLAGS' |
|
13174 compiler='$compiler_DEFAULT' |
|
13175 |
|
13176 # Quote evaled strings. |
|
13177 for var in SED \ |
|
13178 GREP \ |
|
13179 EGREP \ |
|
13180 FGREP \ |
|
13181 LD \ |
|
13182 NM \ |
|
13183 LN_S \ |
|
13184 lt_SP2NL \ |
|
13185 lt_NL2SP \ |
|
13186 reload_flag \ |
|
13187 OBJDUMP \ |
|
13188 deplibs_check_method \ |
|
13189 file_magic_cmd \ |
|
13190 AR \ |
|
13191 AR_FLAGS \ |
|
13192 STRIP \ |
|
13193 RANLIB \ |
|
13194 CC \ |
|
13195 CFLAGS \ |
|
13196 compiler \ |
|
13197 lt_cv_sys_global_symbol_pipe \ |
|
13198 lt_cv_sys_global_symbol_to_cdecl \ |
|
13199 lt_cv_sys_global_symbol_to_c_name_address \ |
|
13200 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
|
13201 SHELL \ |
|
13202 ECHO \ |
|
13203 lt_prog_compiler_no_builtin_flag \ |
|
13204 lt_prog_compiler_wl \ |
|
13205 lt_prog_compiler_pic \ |
|
13206 lt_prog_compiler_static \ |
|
13207 lt_cv_prog_compiler_c_o \ |
|
13208 need_locks \ |
|
13209 DSYMUTIL \ |
|
13210 NMEDIT \ |
|
13211 LIPO \ |
|
13212 OTOOL \ |
|
13213 OTOOL64 \ |
|
13214 shrext_cmds \ |
|
13215 export_dynamic_flag_spec \ |
|
13216 whole_archive_flag_spec \ |
|
13217 compiler_needs_object \ |
|
13218 with_gnu_ld \ |
|
13219 allow_undefined_flag \ |
|
13220 no_undefined_flag \ |
|
13221 hardcode_libdir_flag_spec \ |
|
13222 hardcode_libdir_flag_spec_ld \ |
|
13223 hardcode_libdir_separator \ |
|
13224 fix_srcfile_path \ |
|
13225 exclude_expsyms \ |
|
13226 include_expsyms \ |
|
13227 file_list_spec \ |
|
13228 variables_saved_for_relink \ |
|
13229 libname_spec \ |
|
13230 library_names_spec \ |
|
13231 soname_spec \ |
|
13232 finish_eval \ |
|
13233 old_striplib \ |
|
13234 striplib; do |
|
13235 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
|
13236 *[\\\\\\\`\\"\\\$]*) |
|
13237 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
|
13238 ;; |
|
13239 *) |
|
13240 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
|
13241 ;; |
|
13242 esac |
|
13243 done |
|
13244 |
|
13245 # Double-quote double-evaled strings. |
|
13246 for var in reload_cmds \ |
|
13247 old_postinstall_cmds \ |
|
13248 old_postuninstall_cmds \ |
|
13249 old_archive_cmds \ |
|
13250 extract_expsyms_cmds \ |
|
13251 old_archive_from_new_cmds \ |
|
13252 old_archive_from_expsyms_cmds \ |
|
13253 archive_cmds \ |
|
13254 archive_expsym_cmds \ |
|
13255 module_cmds \ |
|
13256 module_expsym_cmds \ |
|
13257 export_symbols_cmds \ |
|
13258 prelink_cmds \ |
|
13259 postinstall_cmds \ |
|
13260 postuninstall_cmds \ |
|
13261 finish_cmds \ |
|
13262 sys_lib_search_path_spec \ |
|
13263 sys_lib_dlsearch_path_spec; do |
|
13264 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
|
13265 *[\\\\\\\`\\"\\\$]*) |
|
13266 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
|
13267 ;; |
|
13268 *) |
|
13269 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
|
13270 ;; |
|
13271 esac |
|
13272 done |
|
13273 |
|
13274 # Fix-up fallback echo if it was mangled by the above quoting rules. |
|
13275 case \$lt_ECHO in |
|
13276 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
|
13277 ;; |
|
13278 esac |
|
13279 |
|
13280 ac_aux_dir='$ac_aux_dir' |
|
13281 xsi_shell='$xsi_shell' |
|
13282 lt_shell_append='$lt_shell_append' |
|
13283 |
|
13284 # See if we are running on zsh, and set the options which allow our |
|
13285 # commands through without removal of \ escapes INIT. |
|
13286 if test -n "\${ZSH_VERSION+set}" ; then |
|
13287 setopt NO_GLOB_SUBST |
|
13288 fi |
|
13289 |
|
13290 |
|
13291 PACKAGE='$PACKAGE' |
|
13292 VERSION='$VERSION' |
|
13293 TIMESTAMP='$TIMESTAMP' |
|
13294 RM='$RM' |
|
13295 ofile='$ofile' |
|
13296 |
|
13297 |
|
13298 |
|
13299 |
|
13300 _ACEOF |
|
13301 |
|
13302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
13303 |
|
13304 # Handling of arguments. |
|
13305 for ac_config_target in $ac_config_targets |
|
13306 do |
|
13307 case $ac_config_target in |
|
13308 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
|
13309 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
|
13310 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
|
13311 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
13312 "nss-shared-helper/Makefile") CONFIG_FILES="$CONFIG_FILES nss-shared-helper/Makefile" ;; |
|
13313 "nss-shared-helper/nss-shared-helper.pc") CONFIG_FILES="$CONFIG_FILES nss-shared-helper/nss-shared-helper.pc" ;; |
|
13314 |
|
13315 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
|
13316 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
13317 { (exit 1); exit 1; }; };; |
|
13318 esac |
|
13319 done |
|
13320 |
|
13321 |
|
13322 # If the user did not use the arguments to specify the items to instantiate, |
|
13323 # then the envvar interface is used. Set only those that are not. |
|
13324 # We use the long form for the default assignment because of an extremely |
|
13325 # bizarre bug on SunOS 4.1.3. |
|
13326 if $ac_need_defaults; then |
|
13327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
13328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
13329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
|
13330 fi |
|
13331 |
|
13332 # Have a temporary directory for convenience. Make it in the build tree |
|
13333 # simply because there is no reason against having it here, and in addition, |
|
13334 # creating and moving files from /tmp can sometimes cause problems. |
|
13335 # Hook for its removal unless debugging. |
|
13336 # Note that there is a small window in which the directory will not be cleaned: |
|
13337 # after its creation but before its name has been assigned to `$tmp'. |
|
13338 $debug || |
|
13339 { |
|
13340 tmp= |
|
13341 trap 'exit_status=$? |
|
13342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
|
13343 ' 0 |
|
13344 trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
13345 } |
|
13346 # Create a (secure) tmp directory for tmp files. |
|
13347 |
|
13348 { |
|
13349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
13350 test -n "$tmp" && test -d "$tmp" |
|
13351 } || |
|
13352 { |
|
13353 tmp=./conf$$-$RANDOM |
|
13354 (umask 077 && mkdir "$tmp") |
|
13355 } || |
|
13356 { |
|
13357 $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
|
13358 { (exit 1); exit 1; } |
|
13359 } |
|
13360 |
|
13361 # Set up the scripts for CONFIG_FILES section. |
|
13362 # No need to generate them if there are no CONFIG_FILES. |
|
13363 # This happens for instance with `./config.status config.h'. |
|
13364 if test -n "$CONFIG_FILES"; then |
|
13365 |
|
13366 |
|
13367 ac_cr=' |
|
13368 ' |
|
13369 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
|
13370 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
|
13371 ac_cs_awk_cr='\\r' |
|
13372 else |
|
13373 ac_cs_awk_cr=$ac_cr |
|
13374 fi |
|
13375 |
|
13376 echo 'BEGIN {' >"$tmp/subs1.awk" && |
|
13377 _ACEOF |
|
13378 |
|
13379 |
|
13380 { |
|
13381 echo "cat >conf$$subs.awk <<_ACEOF" && |
|
13382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
|
13383 echo "_ACEOF" |
|
13384 } >conf$$subs.sh || |
|
13385 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
13386 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
13387 { (exit 1); exit 1; }; } |
|
13388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
|
13389 ac_delim='%!_!# ' |
|
13390 for ac_last_try in false false false false false :; do |
|
13391 . ./conf$$subs.sh || |
|
13392 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
13393 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
13394 { (exit 1); exit 1; }; } |
|
13395 |
|
13396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
|
13397 if test $ac_delim_n = $ac_delim_num; then |
|
13398 break |
|
13399 elif $ac_last_try; then |
|
13400 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
13401 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
13402 { (exit 1); exit 1; }; } |
|
13403 else |
|
13404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
13405 fi |
|
13406 done |
|
13407 rm -f conf$$subs.sh |
|
13408 |
|
13409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
13410 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
|
13411 _ACEOF |
|
13412 sed -n ' |
|
13413 h |
|
13414 s/^/S["/; s/!.*/"]=/ |
|
13415 p |
|
13416 g |
|
13417 s/^[^!]*!// |
|
13418 :repl |
|
13419 t repl |
|
13420 s/'"$ac_delim"'$// |
|
13421 t delim |
|
13422 :nl |
|
13423 h |
|
13424 s/\(.\{148\}\).*/\1/ |
|
13425 t more1 |
|
13426 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
|
13427 p |
|
13428 n |
|
13429 b repl |
|
13430 :more1 |
|
13431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
13432 p |
|
13433 g |
|
13434 s/.\{148\}// |
|
13435 t nl |
|
13436 :delim |
|
13437 h |
|
13438 s/\(.\{148\}\).*/\1/ |
|
13439 t more2 |
|
13440 s/["\\]/\\&/g; s/^/"/; s/$/"/ |
|
13441 p |
|
13442 b |
|
13443 :more2 |
|
13444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
13445 p |
|
13446 g |
|
13447 s/.\{148\}// |
|
13448 t delim |
|
13449 ' <conf$$subs.awk | sed ' |
|
13450 /^[^""]/{ |
|
13451 N |
|
13452 s/\n// |
|
13453 } |
|
13454 ' >>$CONFIG_STATUS || ac_write_fail=1 |
|
13455 rm -f conf$$subs.awk |
|
13456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
13457 _ACAWK |
|
13458 cat >>"\$tmp/subs1.awk" <<_ACAWK && |
|
13459 for (key in S) S_is_set[key] = 1 |
|
13460 FS = "" |
|
13461 |
|
13462 } |
|
13463 { |
|
13464 line = $ 0 |
|
13465 nfields = split(line, field, "@") |
|
13466 substed = 0 |
|
13467 len = length(field[1]) |
|
13468 for (i = 2; i < nfields; i++) { |
|
13469 key = field[i] |
|
13470 keylen = length(key) |
|
13471 if (S_is_set[key]) { |
|
13472 value = S[key] |
|
13473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
|
13474 len += length(value) + length(field[++i]) |
|
13475 substed = 1 |
|
13476 } else |
|
13477 len += 1 + keylen |
|
13478 } |
|
13479 |
|
13480 print line |
|
13481 } |
|
13482 |
|
13483 _ACAWK |
|
13484 _ACEOF |
|
13485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
13486 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
|
13487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
|
13488 else |
|
13489 cat |
|
13490 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
|
13491 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
|
13492 $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
|
13493 { (exit 1); exit 1; }; } |
|
13494 _ACEOF |
|
13495 |
|
13496 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
13497 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
13498 # trailing colons and then remove the whole line if VPATH becomes empty |
|
13499 # (actually we leave an empty line to preserve line numbers). |
|
13500 if test "x$srcdir" = x.; then |
|
13501 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
13502 s/:*\$(srcdir):*/:/ |
|
13503 s/:*\${srcdir}:*/:/ |
|
13504 s/:*@srcdir@:*/:/ |
|
13505 s/^\([^=]*=[ ]*\):*/\1/ |
|
13506 s/:*$// |
|
13507 s/^[^=]*=[ ]*$// |
|
13508 }' |
|
13509 fi |
|
13510 |
|
13511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
13512 fi # test -n "$CONFIG_FILES" |
|
13513 |
|
13514 # Set up the scripts for CONFIG_HEADERS section. |
|
13515 # No need to generate them if there are no CONFIG_HEADERS. |
|
13516 # This happens for instance with `./config.status Makefile'. |
|
13517 if test -n "$CONFIG_HEADERS"; then |
|
13518 cat >"$tmp/defines.awk" <<\_ACAWK || |
|
13519 BEGIN { |
|
13520 _ACEOF |
|
13521 |
|
13522 # Transform confdefs.h into an awk script `defines.awk', embedded as |
|
13523 # here-document in config.status, that substitutes the proper values into |
|
13524 # config.h.in to produce config.h. |
|
13525 |
|
13526 # Create a delimiter string that does not exist in confdefs.h, to ease |
|
13527 # handling of long lines. |
|
13528 ac_delim='%!_!# ' |
|
13529 for ac_last_try in false false :; do |
|
13530 ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
|
13531 if test -z "$ac_t"; then |
|
13532 break |
|
13533 elif $ac_last_try; then |
|
13534 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
|
13535 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
|
13536 { (exit 1); exit 1; }; } |
|
13537 else |
|
13538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
13539 fi |
|
13540 done |
|
13541 |
|
13542 # For the awk script, D is an array of macro values keyed by name, |
|
13543 # likewise P contains macro parameters if any. Preserve backslash |
|
13544 # newline sequences. |
|
13545 |
|
13546 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
13547 sed -n ' |
|
13548 s/.\{148\}/&'"$ac_delim"'/g |
|
13549 t rset |
|
13550 :rset |
|
13551 s/^[ ]*#[ ]*define[ ][ ]*/ / |
|
13552 t def |
|
13553 d |
|
13554 :def |
|
13555 s/\\$// |
|
13556 t bsnl |
|
13557 s/["\\]/\\&/g |
|
13558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
13559 D["\1"]=" \3"/p |
|
13560 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
|
13561 d |
|
13562 :bsnl |
|
13563 s/["\\]/\\&/g |
|
13564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
13565 D["\1"]=" \3\\\\\\n"\\/p |
|
13566 t cont |
|
13567 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
|
13568 t cont |
|
13569 d |
|
13570 :cont |
|
13571 n |
|
13572 s/.\{148\}/&'"$ac_delim"'/g |
|
13573 t clear |
|
13574 :clear |
|
13575 s/\\$// |
|
13576 t bsnlc |
|
13577 s/["\\]/\\&/g; s/^/"/; s/$/"/p |
|
13578 d |
|
13579 :bsnlc |
|
13580 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
|
13581 b cont |
|
13582 ' <confdefs.h | sed ' |
|
13583 s/'"$ac_delim"'/"\\\ |
|
13584 "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
|
13585 |
|
13586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
13587 for (key in D) D_is_set[key] = 1 |
|
13588 FS = "" |
|
13589 } |
|
13590 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
|
13591 line = \$ 0 |
|
13592 split(line, arg, " ") |
|
13593 if (arg[1] == "#") { |
|
13594 defundef = arg[2] |
|
13595 mac1 = arg[3] |
|
13596 } else { |
|
13597 defundef = substr(arg[1], 2) |
|
13598 mac1 = arg[2] |
|
13599 } |
|
13600 split(mac1, mac2, "(") #) |
|
13601 macro = mac2[1] |
|
13602 prefix = substr(line, 1, index(line, defundef) - 1) |
|
13603 if (D_is_set[macro]) { |
|
13604 # Preserve the white space surrounding the "#". |
|
13605 print prefix "define", macro P[macro] D[macro] |
|
13606 next |
|
13607 } else { |
|
13608 # Replace #undef with comments. This is necessary, for example, |
|
13609 # in the case of _POSIX_SOURCE, which is predefined and required |
|
13610 # on some systems where configure will not decide to define it. |
|
13611 if (defundef == "undef") { |
|
13612 print "/*", prefix defundef, macro, "*/" |
|
13613 next |
|
13614 } |
|
13615 } |
|
13616 } |
|
13617 { print } |
|
13618 _ACAWK |
|
13619 _ACEOF |
|
13620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
13621 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
|
13622 $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
|
13623 { (exit 1); exit 1; }; } |
|
13624 fi # test -n "$CONFIG_HEADERS" |
|
13625 |
|
13626 |
|
13627 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
|
13628 shift |
|
13629 for ac_tag |
|
13630 do |
|
13631 case $ac_tag in |
|
13632 :[FHLC]) ac_mode=$ac_tag; continue;; |
|
13633 esac |
|
13634 case $ac_mode$ac_tag in |
|
13635 :[FHL]*:*);; |
|
13636 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
|
13637 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
|
13638 { (exit 1); exit 1; }; };; |
|
13639 :[FH]-) ac_tag=-:-;; |
|
13640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
13641 esac |
|
13642 ac_save_IFS=$IFS |
|
13643 IFS=: |
|
13644 set x $ac_tag |
|
13645 IFS=$ac_save_IFS |
|
13646 shift |
|
13647 ac_file=$1 |
|
13648 shift |
|
13649 |
|
13650 case $ac_mode in |
|
13651 :L) ac_source=$1;; |
|
13652 :[FH]) |
|
13653 ac_file_inputs= |
|
13654 for ac_f |
|
13655 do |
|
13656 case $ac_f in |
|
13657 -) ac_f="$tmp/stdin";; |
|
13658 *) # Look for the file first in the build tree, then in the source tree |
|
13659 # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
13660 # because $ac_f cannot contain `:'. |
|
13661 test -f "$ac_f" || |
|
13662 case $ac_f in |
|
13663 [\\/$]*) false;; |
|
13664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
13665 esac || |
|
13666 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
|
13667 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
|
13668 { (exit 1); exit 1; }; };; |
|
13669 esac |
|
13670 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
|
13671 ac_file_inputs="$ac_file_inputs '$ac_f'" |
|
13672 done |
|
13673 |
|
13674 # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
13675 # use $as_me), people would be surprised to read: |
|
13676 # /* config.h. Generated by config.status. */ |
|
13677 configure_input='Generated from '` |
|
13678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
|
13679 `' by configure.' |
|
13680 if test x"$ac_file" != x-; then |
|
13681 configure_input="$ac_file. $configure_input" |
|
13682 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
13683 $as_echo "$as_me: creating $ac_file" >&6;} |
|
13684 fi |
|
13685 # Neutralize special characters interpreted by sed in replacement strings. |
|
13686 case $configure_input in #( |
|
13687 *\&* | *\|* | *\\* ) |
|
13688 ac_sed_conf_input=`$as_echo "$configure_input" | |
|
13689 sed 's/[\\\\&|]/\\\\&/g'`;; #( |
|
13690 *) ac_sed_conf_input=$configure_input;; |
|
13691 esac |
|
13692 |
|
13693 case $ac_tag in |
|
13694 *:-:* | *:-) cat >"$tmp/stdin" \ |
|
13695 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
|
13696 $as_echo "$as_me: error: could not create $ac_file" >&2;} |
|
13697 { (exit 1); exit 1; }; } ;; |
|
13698 esac |
|
13699 ;; |
|
13700 esac |
|
13701 |
|
13702 ac_dir=`$as_dirname -- "$ac_file" || |
|
13703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
13704 X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
13705 X"$ac_file" : 'X\(//\)$' \| \ |
|
13706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
13707 $as_echo X"$ac_file" | |
|
13708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
13709 s//\1/ |
|
13710 q |
|
13711 } |
|
13712 /^X\(\/\/\)[^/].*/{ |
|
13713 s//\1/ |
|
13714 q |
|
13715 } |
|
13716 /^X\(\/\/\)$/{ |
|
13717 s//\1/ |
|
13718 q |
|
13719 } |
|
13720 /^X\(\/\).*/{ |
|
13721 s//\1/ |
|
13722 q |
|
13723 } |
|
13724 s/.*/./; q'` |
|
13725 { as_dir="$ac_dir" |
|
13726 case $as_dir in #( |
|
13727 -*) as_dir=./$as_dir;; |
|
13728 esac |
|
13729 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
|
13730 as_dirs= |
|
13731 while :; do |
|
13732 case $as_dir in #( |
|
13733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
13734 *) as_qdir=$as_dir;; |
|
13735 esac |
|
13736 as_dirs="'$as_qdir' $as_dirs" |
|
13737 as_dir=`$as_dirname -- "$as_dir" || |
|
13738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
13739 X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
13740 X"$as_dir" : 'X\(//\)$' \| \ |
|
13741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
13742 $as_echo X"$as_dir" | |
|
13743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
13744 s//\1/ |
|
13745 q |
|
13746 } |
|
13747 /^X\(\/\/\)[^/].*/{ |
|
13748 s//\1/ |
|
13749 q |
|
13750 } |
|
13751 /^X\(\/\/\)$/{ |
|
13752 s//\1/ |
|
13753 q |
|
13754 } |
|
13755 /^X\(\/\).*/{ |
|
13756 s//\1/ |
|
13757 q |
|
13758 } |
|
13759 s/.*/./; q'` |
|
13760 test -d "$as_dir" && break |
|
13761 done |
|
13762 test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
13763 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
|
13764 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
|
13765 { (exit 1); exit 1; }; }; } |
|
13766 ac_builddir=. |
|
13767 |
|
13768 case "$ac_dir" in |
|
13769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
13770 *) |
|
13771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|
13772 # A ".." for each directory in $ac_dir_suffix. |
|
13773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
13774 case $ac_top_builddir_sub in |
|
13775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
13776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
13777 esac ;; |
|
13778 esac |
|
13779 ac_abs_top_builddir=$ac_pwd |
|
13780 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
13781 # for backward compatibility: |
|
13782 ac_top_builddir=$ac_top_build_prefix |
|
13783 |
|
13784 case $srcdir in |
|
13785 .) # We are building in place. |
|
13786 ac_srcdir=. |
|
13787 ac_top_srcdir=$ac_top_builddir_sub |
|
13788 ac_abs_top_srcdir=$ac_pwd ;; |
|
13789 [\\/]* | ?:[\\/]* ) # Absolute name. |
|
13790 ac_srcdir=$srcdir$ac_dir_suffix; |
|
13791 ac_top_srcdir=$srcdir |
|
13792 ac_abs_top_srcdir=$srcdir ;; |
|
13793 *) # Relative name. |
|
13794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
13795 ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
13796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
13797 esac |
|
13798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
13799 |
|
13800 |
|
13801 case $ac_mode in |
|
13802 :F) |
|
13803 # |
|
13804 # CONFIG_FILE |
|
13805 # |
|
13806 |
|
13807 case $INSTALL in |
|
13808 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
|
13809 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
|
13810 esac |
|
13811 ac_MKDIR_P=$MKDIR_P |
|
13812 case $MKDIR_P in |
|
13813 [\\/$]* | ?:[\\/]* ) ;; |
|
13814 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
|
13815 esac |
|
13816 _ACEOF |
|
13817 |
|
13818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
13819 # If the template does not know about datarootdir, expand it. |
|
13820 # FIXME: This hack should be removed a few years after 2.60. |
|
13821 ac_datarootdir_hack=; ac_datarootdir_seen= |
|
13822 |
|
13823 ac_sed_dataroot=' |
|
13824 /datarootdir/ { |
|
13825 p |
|
13826 q |
|
13827 } |
|
13828 /@datadir@/p |
|
13829 /@docdir@/p |
|
13830 /@infodir@/p |
|
13831 /@localedir@/p |
|
13832 /@mandir@/p |
|
13833 ' |
|
13834 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
|
13835 *datarootdir*) ac_datarootdir_seen=yes;; |
|
13836 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|
13837 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
|
13838 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|
13839 _ACEOF |
|
13840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
13841 ac_datarootdir_hack=' |
|
13842 s&@datadir@&$datadir&g |
|
13843 s&@docdir@&$docdir&g |
|
13844 s&@infodir@&$infodir&g |
|
13845 s&@localedir@&$localedir&g |
|
13846 s&@mandir@&$mandir&g |
|
13847 s&\\\${datarootdir}&$datarootdir&g' ;; |
|
13848 esac |
|
13849 _ACEOF |
|
13850 |
|
13851 # Neutralize VPATH when `$srcdir' = `.'. |
|
13852 # Shell code in configure.ac might set extrasub. |
|
13853 # FIXME: do we really want to maintain this feature? |
|
13854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
13855 ac_sed_extra="$ac_vpsub |
|
13856 $extrasub |
|
13857 _ACEOF |
|
13858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
13859 :t |
|
13860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
13861 s|@configure_input@|$ac_sed_conf_input|;t t |
|
13862 s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
13863 s&@top_build_prefix@&$ac_top_build_prefix&;t t |
|
13864 s&@srcdir@&$ac_srcdir&;t t |
|
13865 s&@abs_srcdir@&$ac_abs_srcdir&;t t |
|
13866 s&@top_srcdir@&$ac_top_srcdir&;t t |
|
13867 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
|
13868 s&@builddir@&$ac_builddir&;t t |
|
13869 s&@abs_builddir@&$ac_abs_builddir&;t t |
|
13870 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
|
13871 s&@INSTALL@&$ac_INSTALL&;t t |
|
13872 s&@MKDIR_P@&$ac_MKDIR_P&;t t |
|
13873 $ac_datarootdir_hack |
|
13874 " |
|
13875 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
|
13876 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
|
13877 $as_echo "$as_me: error: could not create $ac_file" >&2;} |
|
13878 { (exit 1); exit 1; }; } |
|
13879 |
|
13880 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|
13881 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
|
13882 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
|
13883 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
13884 which seems to be undefined. Please make sure it is defined." >&5 |
|
13885 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
13886 which seems to be undefined. Please make sure it is defined." >&2;} |
|
13887 |
|
13888 rm -f "$tmp/stdin" |
|
13889 case $ac_file in |
|
13890 -) cat "$tmp/out" && rm -f "$tmp/out";; |
|
13891 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
|
13892 esac \ |
|
13893 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
|
13894 $as_echo "$as_me: error: could not create $ac_file" >&2;} |
|
13895 { (exit 1); exit 1; }; } |
|
13896 ;; |
|
13897 :H) |
|
13898 # |
|
13899 # CONFIG_HEADER |
|
13900 # |
|
13901 if test x"$ac_file" != x-; then |
|
13902 { |
|
13903 $as_echo "/* $configure_input */" \ |
|
13904 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
|
13905 } >"$tmp/config.h" \ |
|
13906 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
|
13907 $as_echo "$as_me: error: could not create $ac_file" >&2;} |
|
13908 { (exit 1); exit 1; }; } |
|
13909 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
|
13910 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
|
13911 $as_echo "$as_me: $ac_file is unchanged" >&6;} |
|
13912 else |
|
13913 rm -f "$ac_file" |
|
13914 mv "$tmp/config.h" "$ac_file" \ |
|
13915 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
|
13916 $as_echo "$as_me: error: could not create $ac_file" >&2;} |
|
13917 { (exit 1); exit 1; }; } |
|
13918 fi |
|
13919 else |
|
13920 $as_echo "/* $configure_input */" \ |
|
13921 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
|
13922 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
|
13923 $as_echo "$as_me: error: could not create -" >&2;} |
|
13924 { (exit 1); exit 1; }; } |
|
13925 fi |
|
13926 # Compute "$ac_file"'s index in $config_headers. |
|
13927 _am_arg="$ac_file" |
|
13928 _am_stamp_count=1 |
|
13929 for _am_header in $config_headers :; do |
|
13930 case $_am_header in |
|
13931 $_am_arg | $_am_arg:* ) |
|
13932 break ;; |
|
13933 * ) |
|
13934 _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|
13935 esac |
|
13936 done |
|
13937 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
|
13938 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
13939 X"$_am_arg" : 'X\(//\)[^/]' \| \ |
|
13940 X"$_am_arg" : 'X\(//\)$' \| \ |
|
13941 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
|
13942 $as_echo X"$_am_arg" | |
|
13943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
13944 s//\1/ |
|
13945 q |
|
13946 } |
|
13947 /^X\(\/\/\)[^/].*/{ |
|
13948 s//\1/ |
|
13949 q |
|
13950 } |
|
13951 /^X\(\/\/\)$/{ |
|
13952 s//\1/ |
|
13953 q |
|
13954 } |
|
13955 /^X\(\/\).*/{ |
|
13956 s//\1/ |
|
13957 q |
|
13958 } |
|
13959 s/.*/./; q'`/stamp-h$_am_stamp_count |
|
13960 ;; |
|
13961 |
|
13962 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
|
13963 $as_echo "$as_me: executing $ac_file commands" >&6;} |
|
13964 ;; |
|
13965 esac |
|
13966 |
|
13967 |
|
13968 case $ac_file$ac_mode in |
|
13969 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
|
13970 # Strip MF so we end up with the name of the file. |
|
13971 mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
13972 # Check whether this is an Automake generated Makefile or not. |
|
13973 # We used to match only the files named `Makefile.in', but |
|
13974 # some people rename them; so instead we look at the file content. |
|
13975 # Grep'ing the first line is not enough: some people post-process |
|
13976 # each Makefile.in and add a new line on top of each file to say so. |
|
13977 # Grep'ing the whole file is not good either: AIX grep has a line |
|
13978 # limit of 2048, but all sed's we know have understand at least 4000. |
|
13979 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
|
13980 dirpart=`$as_dirname -- "$mf" || |
|
13981 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
13982 X"$mf" : 'X\(//\)[^/]' \| \ |
|
13983 X"$mf" : 'X\(//\)$' \| \ |
|
13984 X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
|
13985 $as_echo X"$mf" | |
|
13986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
13987 s//\1/ |
|
13988 q |
|
13989 } |
|
13990 /^X\(\/\/\)[^/].*/{ |
|
13991 s//\1/ |
|
13992 q |
|
13993 } |
|
13994 /^X\(\/\/\)$/{ |
|
13995 s//\1/ |
|
13996 q |
|
13997 } |
|
13998 /^X\(\/\).*/{ |
|
13999 s//\1/ |
|
14000 q |
|
14001 } |
|
14002 s/.*/./; q'` |
|
14003 else |
|
14004 continue |
|
14005 fi |
|
14006 # Extract the definition of DEPDIR, am__include, and am__quote |
|
14007 # from the Makefile without running `make'. |
|
14008 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
|
14009 test -z "$DEPDIR" && continue |
|
14010 am__include=`sed -n 's/^am__include = //p' < "$mf"` |
|
14011 test -z "am__include" && continue |
|
14012 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|
14013 # When using ansi2knr, U may be empty or an underscore; expand it |
|
14014 U=`sed -n 's/^U = //p' < "$mf"` |
|
14015 # Find all dependency output files, they are included files with |
|
14016 # $(DEPDIR) in their names. We invoke sed twice because it is the |
|
14017 # simplest approach to changing $(DEPDIR) to its actual value in the |
|
14018 # expansion. |
|
14019 for file in `sed -n " |
|
14020 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
|
14021 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
|
14022 # Make sure the directory exists. |
|
14023 test -f "$dirpart/$file" && continue |
|
14024 fdir=`$as_dirname -- "$file" || |
|
14025 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
14026 X"$file" : 'X\(//\)[^/]' \| \ |
|
14027 X"$file" : 'X\(//\)$' \| \ |
|
14028 X"$file" : 'X\(/\)' \| . 2>/dev/null || |
|
14029 $as_echo X"$file" | |
|
14030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
14031 s//\1/ |
|
14032 q |
|
14033 } |
|
14034 /^X\(\/\/\)[^/].*/{ |
|
14035 s//\1/ |
|
14036 q |
|
14037 } |
|
14038 /^X\(\/\/\)$/{ |
|
14039 s//\1/ |
|
14040 q |
|
14041 } |
|
14042 /^X\(\/\).*/{ |
|
14043 s//\1/ |
|
14044 q |
|
14045 } |
|
14046 s/.*/./; q'` |
|
14047 { as_dir=$dirpart/$fdir |
|
14048 case $as_dir in #( |
|
14049 -*) as_dir=./$as_dir;; |
|
14050 esac |
|
14051 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
|
14052 as_dirs= |
|
14053 while :; do |
|
14054 case $as_dir in #( |
|
14055 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
14056 *) as_qdir=$as_dir;; |
|
14057 esac |
|
14058 as_dirs="'$as_qdir' $as_dirs" |
|
14059 as_dir=`$as_dirname -- "$as_dir" || |
|
14060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
14061 X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
14062 X"$as_dir" : 'X\(//\)$' \| \ |
|
14063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
14064 $as_echo X"$as_dir" | |
|
14065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
14066 s//\1/ |
|
14067 q |
|
14068 } |
|
14069 /^X\(\/\/\)[^/].*/{ |
|
14070 s//\1/ |
|
14071 q |
|
14072 } |
|
14073 /^X\(\/\/\)$/{ |
|
14074 s//\1/ |
|
14075 q |
|
14076 } |
|
14077 /^X\(\/\).*/{ |
|
14078 s//\1/ |
|
14079 q |
|
14080 } |
|
14081 s/.*/./; q'` |
|
14082 test -d "$as_dir" && break |
|
14083 done |
|
14084 test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
14085 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
|
14086 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
|
14087 { (exit 1); exit 1; }; }; } |
|
14088 # echo "creating $dirpart/$file" |
|
14089 echo '# dummy' > "$dirpart/$file" |
|
14090 done |
|
14091 done |
|
14092 ;; |
|
14093 "libtool":C) |
|
14094 |
|
14095 # See if we are running on zsh, and set the options which allow our |
|
14096 # commands through without removal of \ escapes. |
|
14097 if test -n "${ZSH_VERSION+set}" ; then |
|
14098 setopt NO_GLOB_SUBST |
|
14099 fi |
|
14100 |
|
14101 cfgfile="${ofile}T" |
|
14102 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
|
14103 $RM "$cfgfile" |
|
14104 |
|
14105 cat <<_LT_EOF >> "$cfgfile" |
|
14106 #! $SHELL |
|
14107 |
|
14108 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
14109 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
|
14110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
14111 # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
14112 # |
|
14113 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
|
14114 # 2006, 2007, 2008 Free Software Foundation, Inc. |
|
14115 # Written by Gordon Matzigkeit, 1996 |
|
14116 # |
|
14117 # This file is part of GNU Libtool. |
|
14118 # |
|
14119 # GNU Libtool is free software; you can redistribute it and/or |
|
14120 # modify it under the terms of the GNU General Public License as |
|
14121 # published by the Free Software Foundation; either version 2 of |
|
14122 # the License, or (at your option) any later version. |
|
14123 # |
|
14124 # As a special exception to the GNU General Public License, |
|
14125 # if you distribute this file as part of a program or library that |
|
14126 # is built using GNU Libtool, you may include this file under the |
|
14127 # same distribution terms that you use for the rest of that program. |
|
14128 # |
|
14129 # GNU Libtool is distributed in the hope that it will be useful, |
|
14130 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14131 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14132 # GNU General Public License for more details. |
|
14133 # |
|
14134 # You should have received a copy of the GNU General Public License |
|
14135 # along with GNU Libtool; see the file COPYING. If not, a copy |
|
14136 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
|
14137 # obtained by writing to the Free Software Foundation, Inc., |
|
14138 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
14139 |
|
14140 |
|
14141 # The names of the tagged configurations supported by this script. |
|
14142 available_tags="" |
|
14143 |
|
14144 # ### BEGIN LIBTOOL CONFIG |
|
14145 |
|
14146 # Whether or not to build static libraries. |
|
14147 build_old_libs=$enable_static |
|
14148 |
|
14149 # Which release of libtool.m4 was used? |
|
14150 macro_version=$macro_version |
|
14151 macro_revision=$macro_revision |
|
14152 |
|
14153 # Whether or not to build shared libraries. |
|
14154 build_libtool_libs=$enable_shared |
|
14155 |
|
14156 # What type of objects to build. |
|
14157 pic_mode=$pic_mode |
|
14158 |
|
14159 # Whether or not to optimize for fast installation. |
|
14160 fast_install=$enable_fast_install |
|
14161 |
|
14162 # The host system. |
|
14163 host_alias=$host_alias |
|
14164 host=$host |
|
14165 host_os=$host_os |
|
14166 |
|
14167 # The build system. |
|
14168 build_alias=$build_alias |
|
14169 build=$build |
|
14170 build_os=$build_os |
|
14171 |
|
14172 # A sed program that does not truncate output. |
|
14173 SED=$lt_SED |
|
14174 |
|
14175 # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
14176 Xsed="\$SED -e 1s/^X//" |
|
14177 |
|
14178 # A grep program that handles long lines. |
|
14179 GREP=$lt_GREP |
|
14180 |
|
14181 # An ERE matcher. |
|
14182 EGREP=$lt_EGREP |
|
14183 |
|
14184 # A literal string matcher. |
|
14185 FGREP=$lt_FGREP |
|
14186 |
|
14187 # A BSD- or MS-compatible name lister. |
|
14188 NM=$lt_NM |
|
14189 |
|
14190 # Whether we need soft or hard links. |
|
14191 LN_S=$lt_LN_S |
|
14192 |
|
14193 # What is the maximum length of a command? |
|
14194 max_cmd_len=$max_cmd_len |
|
14195 |
|
14196 # Object file suffix (normally "o"). |
|
14197 objext=$ac_objext |
|
14198 |
|
14199 # Executable file suffix (normally ""). |
|
14200 exeext=$exeext |
|
14201 |
|
14202 # whether the shell understands "unset". |
|
14203 lt_unset=$lt_unset |
|
14204 |
|
14205 # turn spaces into newlines. |
|
14206 SP2NL=$lt_lt_SP2NL |
|
14207 |
|
14208 # turn newlines into spaces. |
|
14209 NL2SP=$lt_lt_NL2SP |
|
14210 |
|
14211 # How to create reloadable object files. |
|
14212 reload_flag=$lt_reload_flag |
|
14213 reload_cmds=$lt_reload_cmds |
|
14214 |
|
14215 # An object symbol dumper. |
|
14216 OBJDUMP=$lt_OBJDUMP |
|
14217 |
|
14218 # Method to check whether dependent libraries are shared objects. |
|
14219 deplibs_check_method=$lt_deplibs_check_method |
|
14220 |
|
14221 # Command to use when deplibs_check_method == "file_magic". |
|
14222 file_magic_cmd=$lt_file_magic_cmd |
|
14223 |
|
14224 # The archiver. |
|
14225 AR=$lt_AR |
|
14226 AR_FLAGS=$lt_AR_FLAGS |
|
14227 |
|
14228 # A symbol stripping program. |
|
14229 STRIP=$lt_STRIP |
|
14230 |
|
14231 # Commands used to install an old-style archive. |
|
14232 RANLIB=$lt_RANLIB |
|
14233 old_postinstall_cmds=$lt_old_postinstall_cmds |
|
14234 old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
14235 |
|
14236 # A C compiler. |
|
14237 LTCC=$lt_CC |
|
14238 |
|
14239 # LTCC compiler flags. |
|
14240 LTCFLAGS=$lt_CFLAGS |
|
14241 |
|
14242 # Take the output of nm and produce a listing of raw symbols and C names. |
|
14243 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
14244 |
|
14245 # Transform the output of nm in a proper C declaration. |
|
14246 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
14247 |
|
14248 # Transform the output of nm in a C name address pair. |
|
14249 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
14250 |
|
14251 # Transform the output of nm in a C name address pair when lib prefix is needed. |
|
14252 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
|
14253 |
|
14254 # The name of the directory that contains temporary libtool files. |
|
14255 objdir=$objdir |
|
14256 |
|
14257 # Shell to use when invoking shell scripts. |
|
14258 SHELL=$lt_SHELL |
|
14259 |
|
14260 # An echo program that does not interpret backslashes. |
|
14261 ECHO=$lt_ECHO |
|
14262 |
|
14263 # Used to examine libraries when file_magic_cmd begins with "file". |
|
14264 MAGIC_CMD=$MAGIC_CMD |
|
14265 |
|
14266 # Must we lock files when doing compilation? |
|
14267 need_locks=$lt_need_locks |
|
14268 |
|
14269 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
|
14270 DSYMUTIL=$lt_DSYMUTIL |
|
14271 |
|
14272 # Tool to change global to local symbols on Mac OS X. |
|
14273 NMEDIT=$lt_NMEDIT |
|
14274 |
|
14275 # Tool to manipulate fat objects and archives on Mac OS X. |
|
14276 LIPO=$lt_LIPO |
|
14277 |
|
14278 # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
|
14279 OTOOL=$lt_OTOOL |
|
14280 |
|
14281 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
|
14282 OTOOL64=$lt_OTOOL64 |
|
14283 |
|
14284 # Old archive suffix (normally "a"). |
|
14285 libext=$libext |
|
14286 |
|
14287 # Shared library suffix (normally ".so"). |
|
14288 shrext_cmds=$lt_shrext_cmds |
|
14289 |
|
14290 # The commands to extract the exported symbol list from a shared archive. |
|
14291 extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
14292 |
|
14293 # Variables whose values should be saved in libtool wrapper scripts and |
|
14294 # restored at link time. |
|
14295 variables_saved_for_relink=$lt_variables_saved_for_relink |
|
14296 |
|
14297 # Do we need the "lib" prefix for modules? |
|
14298 need_lib_prefix=$need_lib_prefix |
|
14299 |
|
14300 # Do we need a version for libraries? |
|
14301 need_version=$need_version |
|
14302 |
|
14303 # Library versioning type. |
|
14304 version_type=$version_type |
|
14305 |
|
14306 # Shared library runtime path variable. |
|
14307 runpath_var=$runpath_var |
|
14308 |
|
14309 # Shared library path variable. |
|
14310 shlibpath_var=$shlibpath_var |
|
14311 |
|
14312 # Is shlibpath searched before the hard-coded library search path? |
|
14313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
14314 |
|
14315 # Format of library name prefix. |
|
14316 libname_spec=$lt_libname_spec |
|
14317 |
|
14318 # List of archive names. First name is the real one, the rest are links. |
|
14319 # The last name is the one that the linker finds with -lNAME |
|
14320 library_names_spec=$lt_library_names_spec |
|
14321 |
|
14322 # The coded name of the library, if different from the real name. |
|
14323 soname_spec=$lt_soname_spec |
|
14324 |
|
14325 # Command to use after installation of a shared archive. |
|
14326 postinstall_cmds=$lt_postinstall_cmds |
|
14327 |
|
14328 # Command to use after uninstallation of a shared archive. |
|
14329 postuninstall_cmds=$lt_postuninstall_cmds |
|
14330 |
|
14331 # Commands used to finish a libtool library installation in a directory. |
|
14332 finish_cmds=$lt_finish_cmds |
|
14333 |
|
14334 # As "finish_cmds", except a single script fragment to be evaled but |
|
14335 # not shown. |
|
14336 finish_eval=$lt_finish_eval |
|
14337 |
|
14338 # Whether we should hardcode library paths into libraries. |
|
14339 hardcode_into_libs=$hardcode_into_libs |
|
14340 |
|
14341 # Compile-time system search path for libraries. |
|
14342 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
14343 |
|
14344 # Run-time system search path for libraries. |
|
14345 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
14346 |
|
14347 # Whether dlopen is supported. |
|
14348 dlopen_support=$enable_dlopen |
|
14349 |
|
14350 # Whether dlopen of programs is supported. |
|
14351 dlopen_self=$enable_dlopen_self |
|
14352 |
|
14353 # Whether dlopen of statically linked programs is supported. |
|
14354 dlopen_self_static=$enable_dlopen_self_static |
|
14355 |
|
14356 # Commands to strip libraries. |
|
14357 old_striplib=$lt_old_striplib |
|
14358 striplib=$lt_striplib |
|
14359 |
|
14360 |
|
14361 # The linker used to build libraries. |
|
14362 LD=$lt_LD |
|
14363 |
|
14364 # Commands used to build an old-style archive. |
|
14365 old_archive_cmds=$lt_old_archive_cmds |
|
14366 |
|
14367 # A language specific compiler. |
|
14368 CC=$lt_compiler |
|
14369 |
|
14370 # Is the compiler the GNU compiler? |
|
14371 with_gcc=$GCC |
|
14372 |
|
14373 # Compiler flag to turn off builtin functions. |
|
14374 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
|
14375 |
|
14376 # How to pass a linker flag through the compiler. |
|
14377 wl=$lt_lt_prog_compiler_wl |
|
14378 |
|
14379 # Additional compiler flags for building library objects. |
|
14380 pic_flag=$lt_lt_prog_compiler_pic |
|
14381 |
|
14382 # Compiler flag to prevent dynamic linking. |
|
14383 link_static_flag=$lt_lt_prog_compiler_static |
|
14384 |
|
14385 # Does compiler simultaneously support -c and -o options? |
|
14386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
|
14387 |
|
14388 # Whether or not to add -lc for building shared libraries. |
|
14389 build_libtool_need_lc=$archive_cmds_need_lc |
|
14390 |
|
14391 # Whether or not to disallow shared libs when runtime libs are static. |
|
14392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
|
14393 |
|
14394 # Compiler flag to allow reflexive dlopens. |
|
14395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
14396 |
|
14397 # Compiler flag to generate shared objects directly from archives. |
|
14398 whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
14399 |
|
14400 # Whether the compiler copes with passing no objects directly. |
|
14401 compiler_needs_object=$lt_compiler_needs_object |
|
14402 |
|
14403 # Create an old-style archive from a shared archive. |
|
14404 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
14405 |
|
14406 # Create a temporary old-style archive to link instead of a shared archive. |
|
14407 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
14408 |
|
14409 # Commands used to build a shared archive. |
|
14410 archive_cmds=$lt_archive_cmds |
|
14411 archive_expsym_cmds=$lt_archive_expsym_cmds |
|
14412 |
|
14413 # Commands used to build a loadable module if different from building |
|
14414 # a shared archive. |
|
14415 module_cmds=$lt_module_cmds |
|
14416 module_expsym_cmds=$lt_module_expsym_cmds |
|
14417 |
|
14418 # Whether we are building with GNU ld or not. |
|
14419 with_gnu_ld=$lt_with_gnu_ld |
|
14420 |
|
14421 # Flag that allows shared libraries with undefined symbols to be built. |
|
14422 allow_undefined_flag=$lt_allow_undefined_flag |
|
14423 |
|
14424 # Flag that enforces no undefined symbols. |
|
14425 no_undefined_flag=$lt_no_undefined_flag |
|
14426 |
|
14427 # Flag to hardcode \$libdir into a binary during linking. |
|
14428 # This must work even if \$libdir does not exist |
|
14429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
14430 |
|
14431 # If ld is used when linking, flag to hardcode \$libdir into a binary |
|
14432 # during linking. This must work even if \$libdir does not exist. |
|
14433 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
|
14434 |
|
14435 # Whether we need a single "-rpath" flag with a separated argument. |
|
14436 hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
14437 |
|
14438 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
|
14439 # DIR into the resulting binary. |
|
14440 hardcode_direct=$hardcode_direct |
|
14441 |
|
14442 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
|
14443 # DIR into the resulting binary and the resulting library dependency is |
|
14444 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
|
14445 # library is relocated. |
|
14446 hardcode_direct_absolute=$hardcode_direct_absolute |
|
14447 |
|
14448 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
|
14449 # into the resulting binary. |
|
14450 hardcode_minus_L=$hardcode_minus_L |
|
14451 |
|
14452 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
|
14453 # into the resulting binary. |
|
14454 hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
14455 |
|
14456 # Set to "yes" if building a shared library automatically hardcodes DIR |
|
14457 # into the library and all subsequent libraries and executables linked |
|
14458 # against it. |
|
14459 hardcode_automatic=$hardcode_automatic |
|
14460 |
|
14461 # Set to yes if linker adds runtime paths of dependent libraries |
|
14462 # to runtime path list. |
|
14463 inherit_rpath=$inherit_rpath |
|
14464 |
|
14465 # Whether libtool must link a program against all its dependency libraries. |
|
14466 link_all_deplibs=$link_all_deplibs |
|
14467 |
|
14468 # Fix the shell variable \$srcfile for the compiler. |
|
14469 fix_srcfile_path=$lt_fix_srcfile_path |
|
14470 |
|
14471 # Set to "yes" if exported symbols are required. |
|
14472 always_export_symbols=$always_export_symbols |
|
14473 |
|
14474 # The commands to list exported symbols. |
|
14475 export_symbols_cmds=$lt_export_symbols_cmds |
|
14476 |
|
14477 # Symbols that should not be listed in the preloaded symbols. |
|
14478 exclude_expsyms=$lt_exclude_expsyms |
|
14479 |
|
14480 # Symbols that must always be exported. |
|
14481 include_expsyms=$lt_include_expsyms |
|
14482 |
|
14483 # Commands necessary for linking programs (against libraries) with templates. |
|
14484 prelink_cmds=$lt_prelink_cmds |
|
14485 |
|
14486 # Specify filename containing input files. |
|
14487 file_list_spec=$lt_file_list_spec |
|
14488 |
|
14489 # How to hardcode a shared library path into an executable. |
|
14490 hardcode_action=$hardcode_action |
|
14491 |
|
14492 # ### END LIBTOOL CONFIG |
|
14493 |
|
14494 _LT_EOF |
|
14495 |
|
14496 case $host_os in |
|
14497 aix3*) |
|
14498 cat <<\_LT_EOF >> "$cfgfile" |
|
14499 # AIX sometimes has problems with the GCC collect2 program. For some |
|
14500 # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
14501 # vanish in a puff of smoke. |
|
14502 if test "X${COLLECT_NAMES+set}" != Xset; then |
|
14503 COLLECT_NAMES= |
|
14504 export COLLECT_NAMES |
|
14505 fi |
|
14506 _LT_EOF |
|
14507 ;; |
|
14508 esac |
|
14509 |
|
14510 |
|
14511 ltmain="$ac_aux_dir/ltmain.sh" |
|
14512 |
|
14513 |
|
14514 # We use sed instead of cat because bash on DJGPP gets confused if |
|
14515 # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
14516 # text mode, it properly converts lines to CR/LF. This bash problem |
|
14517 # is reportedly fixed, but why not run on old versions too? |
|
14518 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
|
14519 || (rm -f "$cfgfile"; exit 1) |
|
14520 |
|
14521 case $xsi_shell in |
|
14522 yes) |
|
14523 cat << \_LT_EOF >> "$cfgfile" |
|
14524 |
|
14525 # func_dirname file append nondir_replacement |
|
14526 # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
|
14527 # otherwise set result to NONDIR_REPLACEMENT. |
|
14528 func_dirname () |
|
14529 { |
|
14530 case ${1} in |
|
14531 */*) func_dirname_result="${1%/*}${2}" ;; |
|
14532 * ) func_dirname_result="${3}" ;; |
|
14533 esac |
|
14534 } |
|
14535 |
|
14536 # func_basename file |
|
14537 func_basename () |
|
14538 { |
|
14539 func_basename_result="${1##*/}" |
|
14540 } |
|
14541 |
|
14542 # func_dirname_and_basename file append nondir_replacement |
|
14543 # perform func_basename and func_dirname in a single function |
|
14544 # call: |
|
14545 # dirname: Compute the dirname of FILE. If nonempty, |
|
14546 # add APPEND to the result, otherwise set result |
|
14547 # to NONDIR_REPLACEMENT. |
|
14548 # value returned in "$func_dirname_result" |
|
14549 # basename: Compute filename of FILE. |
|
14550 # value retuned in "$func_basename_result" |
|
14551 # Implementation must be kept synchronized with func_dirname |
|
14552 # and func_basename. For efficiency, we do not delegate to |
|
14553 # those functions but instead duplicate the functionality here. |
|
14554 func_dirname_and_basename () |
|
14555 { |
|
14556 case ${1} in |
|
14557 */*) func_dirname_result="${1%/*}${2}" ;; |
|
14558 * ) func_dirname_result="${3}" ;; |
|
14559 esac |
|
14560 func_basename_result="${1##*/}" |
|
14561 } |
|
14562 |
|
14563 # func_stripname prefix suffix name |
|
14564 # strip PREFIX and SUFFIX off of NAME. |
|
14565 # PREFIX and SUFFIX must not contain globbing or regex special |
|
14566 # characters, hashes, percent signs, but SUFFIX may contain a leading |
|
14567 # dot (in which case that matches only a dot). |
|
14568 func_stripname () |
|
14569 { |
|
14570 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
|
14571 # positional parameters, so assign one to ordinary parameter first. |
|
14572 func_stripname_result=${3} |
|
14573 func_stripname_result=${func_stripname_result#"${1}"} |
|
14574 func_stripname_result=${func_stripname_result%"${2}"} |
|
14575 } |
|
14576 |
|
14577 # func_opt_split |
|
14578 func_opt_split () |
|
14579 { |
|
14580 func_opt_split_opt=${1%%=*} |
|
14581 func_opt_split_arg=${1#*=} |
|
14582 } |
|
14583 |
|
14584 # func_lo2o object |
|
14585 func_lo2o () |
|
14586 { |
|
14587 case ${1} in |
|
14588 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
|
14589 *) func_lo2o_result=${1} ;; |
|
14590 esac |
|
14591 } |
|
14592 |
|
14593 # func_xform libobj-or-source |
|
14594 func_xform () |
|
14595 { |
|
14596 func_xform_result=${1%.*}.lo |
|
14597 } |
|
14598 |
|
14599 # func_arith arithmetic-term... |
|
14600 func_arith () |
|
14601 { |
|
14602 func_arith_result=$(( $* )) |
|
14603 } |
|
14604 |
|
14605 # func_len string |
|
14606 # STRING may not start with a hyphen. |
|
14607 func_len () |
|
14608 { |
|
14609 func_len_result=${#1} |
|
14610 } |
|
14611 |
|
14612 _LT_EOF |
|
14613 ;; |
|
14614 *) # Bourne compatible functions. |
|
14615 cat << \_LT_EOF >> "$cfgfile" |
|
14616 |
|
14617 # func_dirname file append nondir_replacement |
|
14618 # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
|
14619 # otherwise set result to NONDIR_REPLACEMENT. |
|
14620 func_dirname () |
|
14621 { |
|
14622 # Extract subdirectory from the argument. |
|
14623 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
|
14624 if test "X$func_dirname_result" = "X${1}"; then |
|
14625 func_dirname_result="${3}" |
|
14626 else |
|
14627 func_dirname_result="$func_dirname_result${2}" |
|
14628 fi |
|
14629 } |
|
14630 |
|
14631 # func_basename file |
|
14632 func_basename () |
|
14633 { |
|
14634 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
|
14635 } |
|
14636 |
|
14637 |
|
14638 # func_stripname prefix suffix name |
|
14639 # strip PREFIX and SUFFIX off of NAME. |
|
14640 # PREFIX and SUFFIX must not contain globbing or regex special |
|
14641 # characters, hashes, percent signs, but SUFFIX may contain a leading |
|
14642 # dot (in which case that matches only a dot). |
|
14643 # func_strip_suffix prefix name |
|
14644 func_stripname () |
|
14645 { |
|
14646 case ${2} in |
|
14647 .*) func_stripname_result=`$ECHO "X${3}" \ |
|
14648 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
|
14649 *) func_stripname_result=`$ECHO "X${3}" \ |
|
14650 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
|
14651 esac |
|
14652 } |
|
14653 |
|
14654 # sed scripts: |
|
14655 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
|
14656 my_sed_long_arg='1s/^-[^=]*=//' |
|
14657 |
|
14658 # func_opt_split |
|
14659 func_opt_split () |
|
14660 { |
|
14661 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
|
14662 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
|
14663 } |
|
14664 |
|
14665 # func_lo2o object |
|
14666 func_lo2o () |
|
14667 { |
|
14668 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
|
14669 } |
|
14670 |
|
14671 # func_xform libobj-or-source |
|
14672 func_xform () |
|
14673 { |
|
14674 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
|
14675 } |
|
14676 |
|
14677 # func_arith arithmetic-term... |
|
14678 func_arith () |
|
14679 { |
|
14680 func_arith_result=`expr "$@"` |
|
14681 } |
|
14682 |
|
14683 # func_len string |
|
14684 # STRING may not start with a hyphen. |
|
14685 func_len () |
|
14686 { |
|
14687 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
|
14688 } |
|
14689 |
|
14690 _LT_EOF |
|
14691 esac |
|
14692 |
|
14693 case $lt_shell_append in |
|
14694 yes) |
|
14695 cat << \_LT_EOF >> "$cfgfile" |
|
14696 |
|
14697 # func_append var value |
|
14698 # Append VALUE to the end of shell variable VAR. |
|
14699 func_append () |
|
14700 { |
|
14701 eval "$1+=\$2" |
|
14702 } |
|
14703 _LT_EOF |
|
14704 ;; |
|
14705 *) |
|
14706 cat << \_LT_EOF >> "$cfgfile" |
|
14707 |
|
14708 # func_append var value |
|
14709 # Append VALUE to the end of shell variable VAR. |
|
14710 func_append () |
|
14711 { |
|
14712 eval "$1=\$$1\$2" |
|
14713 } |
|
14714 |
|
14715 _LT_EOF |
|
14716 ;; |
|
14717 esac |
|
14718 |
|
14719 |
|
14720 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
|
14721 || (rm -f "$cfgfile"; exit 1) |
|
14722 |
|
14723 mv -f "$cfgfile" "$ofile" || |
|
14724 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
14725 chmod +x "$ofile" |
|
14726 |
|
14727 ;; |
|
14728 |
|
14729 esac |
|
14730 done # for ac_tag |
|
14731 |
|
14732 |
|
14733 { (exit 0); exit 0; } |
|
14734 _ACEOF |
|
14735 chmod +x $CONFIG_STATUS |
|
14736 ac_clean_files=$ac_clean_files_save |
|
14737 |
|
14738 test $ac_write_fail = 0 || |
|
14739 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
|
14740 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
|
14741 { (exit 1); exit 1; }; } |
|
14742 |
|
14743 |
|
14744 # configure is writing to config.log, and then calls config.status. |
|
14745 # config.status does its own redirection, appending to config.log. |
|
14746 # Unfortunately, on DOS this fails, as config.log is still kept open |
|
14747 # by configure, so config.status won't be able to write to it; its |
|
14748 # output is simply discarded. So we exec the FD to /dev/null, |
|
14749 # effectively closing config.log, so it can be properly (re)opened and |
|
14750 # appended to by config.status. When coming back to configure, we |
|
14751 # need to make the FD available again. |
|
14752 if test "$no_create" != yes; then |
|
14753 ac_cs_success=: |
|
14754 ac_config_status_args= |
|
14755 test "$silent" = yes && |
|
14756 ac_config_status_args="$ac_config_status_args --quiet" |
|
14757 exec 5>/dev/null |
|
14758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
14759 exec 5>>config.log |
|
14760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
14761 # would make configure fail if this is the last instruction. |
|
14762 $ac_cs_success || { (exit 1); exit 1; } |
|
14763 fi |
|
14764 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
|
14765 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
|
14766 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
|
14767 fi |
|
14768 |