Mercurial > hg > sv-dependency-builds
comparison src/liblo-0.26/configure @ 4:e13257ea84a4
Add bzip2, zlib, liblo, portaudio sources
author | Chris Cannam |
---|---|
date | Wed, 20 Mar 2013 13:59:52 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:6c505a35919a | 4:e13257ea84a4 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.61 for liblo 0.26. | |
4 # | |
5 # Report bugs to <liblo-devel@lists.sourceforge.net>. | |
6 # | |
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
9 # This configure script is free software; the Free Software Foundation | |
10 # gives unlimited permission to copy, distribute and modify it. | |
11 ## --------------------- ## | |
12 ## M4sh Initialization. ## | |
13 ## --------------------- ## | |
14 | |
15 # Be more Bourne compatible | |
16 DUALCASE=1; export DUALCASE # for MKS sh | |
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 emulate sh | |
19 NULLCMD=: | |
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 # is contrary to our usage. Disable this feature. | |
22 alias -g '${1+"$@"}'='"$@"' | |
23 setopt NO_GLOB_SUBST | |
24 else | |
25 case `(set -o) 2>/dev/null` in | |
26 *posix*) set -o posix ;; | |
27 esac | |
28 | |
29 fi | |
30 | |
31 | |
32 | |
33 | |
34 # PATH needs CR | |
35 # Avoid depending upon Character Ranges. | |
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 as_cr_digits='0123456789' | |
40 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | |
42 # The user is always right. | |
43 if test "${PATH_SEPARATOR+set}" != set; then | |
44 echo "#! /bin/sh" >conf$$.sh | |
45 echo "exit 0" >>conf$$.sh | |
46 chmod +x conf$$.sh | |
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48 PATH_SEPARATOR=';' | |
49 else | |
50 PATH_SEPARATOR=: | |
51 fi | |
52 rm -f conf$$.sh | |
53 fi | |
54 | |
55 # Support unset when possible. | |
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
57 as_unset=unset | |
58 else | |
59 as_unset=false | |
60 fi | |
61 | |
62 | |
63 # IFS | |
64 # We need space, tab and new line, in precisely that order. Quoting is | |
65 # there to prevent editors from complaining about space-tab. | |
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
67 # splitting by setting IFS to empty value.) | |
68 as_nl=' | |
69 ' | |
70 IFS=" "" $as_nl" | |
71 | |
72 # Find who we are. Look in the path if we contain no directory separator. | |
73 case $0 in | |
74 *[\\/]* ) as_myself=$0 ;; | |
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
76 for as_dir in $PATH | |
77 do | |
78 IFS=$as_save_IFS | |
79 test -z "$as_dir" && as_dir=. | |
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
81 done | |
82 IFS=$as_save_IFS | |
83 | |
84 ;; | |
85 esac | |
86 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
87 # in which case we are not to be found in the path. | |
88 if test "x$as_myself" = x; then | |
89 as_myself=$0 | |
90 fi | |
91 if test ! -f "$as_myself"; then | |
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
93 { (exit 1); exit 1; } | |
94 fi | |
95 | |
96 # Work around bugs in pre-3.0 UWIN ksh. | |
97 for as_var in ENV MAIL MAILPATH | |
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
99 done | |
100 PS1='$ ' | |
101 PS2='> ' | |
102 PS4='+ ' | |
103 | |
104 # NLS nuisances. | |
105 for as_var in \ | |
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
108 LC_TELEPHONE LC_TIME | |
109 do | |
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
111 eval $as_var=C; export $as_var | |
112 else | |
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
114 fi | |
115 done | |
116 | |
117 # Required to use basename. | |
118 if expr a : '\(a\)' >/dev/null 2>&1 && | |
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
120 as_expr=expr | |
121 else | |
122 as_expr=false | |
123 fi | |
124 | |
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
126 as_basename=basename | |
127 else | |
128 as_basename=false | |
129 fi | |
130 | |
131 | |
132 # Name of the executable. | |
133 as_me=`$as_basename -- "$0" || | |
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
135 X"$0" : 'X\(//\)$' \| \ | |
136 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
137 echo X/"$0" | | |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
139 s//\1/ | |
140 q | |
141 } | |
142 /^X\/\(\/\/\)$/{ | |
143 s//\1/ | |
144 q | |
145 } | |
146 /^X\/\(\/\).*/{ | |
147 s//\1/ | |
148 q | |
149 } | |
150 s/.*/./; q'` | |
151 | |
152 # CDPATH. | |
153 $as_unset CDPATH | |
154 | |
155 | |
156 if test "x$CONFIG_SHELL" = x; then | |
157 if (eval ":") 2>/dev/null; then | |
158 as_have_required=yes | |
159 else | |
160 as_have_required=no | |
161 fi | |
162 | |
163 if test $as_have_required = yes && (eval ": | |
164 (as_func_return () { | |
165 (exit \$1) | |
166 } | |
167 as_func_success () { | |
168 as_func_return 0 | |
169 } | |
170 as_func_failure () { | |
171 as_func_return 1 | |
172 } | |
173 as_func_ret_success () { | |
174 return 0 | |
175 } | |
176 as_func_ret_failure () { | |
177 return 1 | |
178 } | |
179 | |
180 exitcode=0 | |
181 if as_func_success; then | |
182 : | |
183 else | |
184 exitcode=1 | |
185 echo as_func_success failed. | |
186 fi | |
187 | |
188 if as_func_failure; then | |
189 exitcode=1 | |
190 echo as_func_failure succeeded. | |
191 fi | |
192 | |
193 if as_func_ret_success; then | |
194 : | |
195 else | |
196 exitcode=1 | |
197 echo as_func_ret_success failed. | |
198 fi | |
199 | |
200 if as_func_ret_failure; then | |
201 exitcode=1 | |
202 echo as_func_ret_failure succeeded. | |
203 fi | |
204 | |
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
206 : | |
207 else | |
208 exitcode=1 | |
209 echo positional parameters were not saved. | |
210 fi | |
211 | |
212 test \$exitcode = 0) || { (exit 1); exit 1; } | |
213 | |
214 ( | |
215 as_lineno_1=\$LINENO | |
216 as_lineno_2=\$LINENO | |
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
219 ") 2> /dev/null; then | |
220 : | |
221 else | |
222 as_candidate_shells= | |
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
225 do | |
226 IFS=$as_save_IFS | |
227 test -z "$as_dir" && as_dir=. | |
228 case $as_dir in | |
229 /*) | |
230 for as_base in sh bash ksh sh5; do | |
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
232 done;; | |
233 esac | |
234 done | |
235 IFS=$as_save_IFS | |
236 | |
237 | |
238 for as_shell in $as_candidate_shells $SHELL; do | |
239 # Try only shells that exist, to save several forks. | |
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
241 { ("$as_shell") 2> /dev/null <<\_ASEOF | |
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
243 emulate sh | |
244 NULLCMD=: | |
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
246 # is contrary to our usage. Disable this feature. | |
247 alias -g '${1+"$@"}'='"$@"' | |
248 setopt NO_GLOB_SUBST | |
249 else | |
250 case `(set -o) 2>/dev/null` in | |
251 *posix*) set -o posix ;; | |
252 esac | |
253 | |
254 fi | |
255 | |
256 | |
257 : | |
258 _ASEOF | |
259 }; then | |
260 CONFIG_SHELL=$as_shell | |
261 as_have_required=yes | |
262 if { "$as_shell" 2> /dev/null <<\_ASEOF | |
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
264 emulate sh | |
265 NULLCMD=: | |
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
267 # is contrary to our usage. Disable this feature. | |
268 alias -g '${1+"$@"}'='"$@"' | |
269 setopt NO_GLOB_SUBST | |
270 else | |
271 case `(set -o) 2>/dev/null` in | |
272 *posix*) set -o posix ;; | |
273 esac | |
274 | |
275 fi | |
276 | |
277 | |
278 : | |
279 (as_func_return () { | |
280 (exit $1) | |
281 } | |
282 as_func_success () { | |
283 as_func_return 0 | |
284 } | |
285 as_func_failure () { | |
286 as_func_return 1 | |
287 } | |
288 as_func_ret_success () { | |
289 return 0 | |
290 } | |
291 as_func_ret_failure () { | |
292 return 1 | |
293 } | |
294 | |
295 exitcode=0 | |
296 if as_func_success; then | |
297 : | |
298 else | |
299 exitcode=1 | |
300 echo as_func_success failed. | |
301 fi | |
302 | |
303 if as_func_failure; then | |
304 exitcode=1 | |
305 echo as_func_failure succeeded. | |
306 fi | |
307 | |
308 if as_func_ret_success; then | |
309 : | |
310 else | |
311 exitcode=1 | |
312 echo as_func_ret_success failed. | |
313 fi | |
314 | |
315 if as_func_ret_failure; then | |
316 exitcode=1 | |
317 echo as_func_ret_failure succeeded. | |
318 fi | |
319 | |
320 if ( set x; as_func_ret_success y && test x = "$1" ); then | |
321 : | |
322 else | |
323 exitcode=1 | |
324 echo positional parameters were not saved. | |
325 fi | |
326 | |
327 test $exitcode = 0) || { (exit 1); exit 1; } | |
328 | |
329 ( | |
330 as_lineno_1=$LINENO | |
331 as_lineno_2=$LINENO | |
332 test "x$as_lineno_1" != "x$as_lineno_2" && | |
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
334 | |
335 _ASEOF | |
336 }; then | |
337 break | |
338 fi | |
339 | |
340 fi | |
341 | |
342 done | |
343 | |
344 if test "x$CONFIG_SHELL" != x; then | |
345 for as_var in BASH_ENV ENV | |
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
347 done | |
348 export CONFIG_SHELL | |
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
350 fi | |
351 | |
352 | |
353 if test $as_have_required = no; then | |
354 echo This script requires a shell more modern than all the | |
355 echo shells that I found on your system. Please install a | |
356 echo modern shell, or manually run the script under such a | |
357 echo shell if you do have one. | |
358 { (exit 1); exit 1; } | |
359 fi | |
360 | |
361 | |
362 fi | |
363 | |
364 fi | |
365 | |
366 | |
367 | |
368 (eval "as_func_return () { | |
369 (exit \$1) | |
370 } | |
371 as_func_success () { | |
372 as_func_return 0 | |
373 } | |
374 as_func_failure () { | |
375 as_func_return 1 | |
376 } | |
377 as_func_ret_success () { | |
378 return 0 | |
379 } | |
380 as_func_ret_failure () { | |
381 return 1 | |
382 } | |
383 | |
384 exitcode=0 | |
385 if as_func_success; then | |
386 : | |
387 else | |
388 exitcode=1 | |
389 echo as_func_success failed. | |
390 fi | |
391 | |
392 if as_func_failure; then | |
393 exitcode=1 | |
394 echo as_func_failure succeeded. | |
395 fi | |
396 | |
397 if as_func_ret_success; then | |
398 : | |
399 else | |
400 exitcode=1 | |
401 echo as_func_ret_success failed. | |
402 fi | |
403 | |
404 if as_func_ret_failure; then | |
405 exitcode=1 | |
406 echo as_func_ret_failure succeeded. | |
407 fi | |
408 | |
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
410 : | |
411 else | |
412 exitcode=1 | |
413 echo positional parameters were not saved. | |
414 fi | |
415 | |
416 test \$exitcode = 0") || { | |
417 echo No shell found that supports shell functions. | |
418 echo Please tell autoconf@gnu.org about your system, | |
419 echo including any error possibly output before this | |
420 echo message | |
421 } | |
422 | |
423 | |
424 | |
425 as_lineno_1=$LINENO | |
426 as_lineno_2=$LINENO | |
427 test "x$as_lineno_1" != "x$as_lineno_2" && | |
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
429 | |
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
431 # uniformly replaced by the line number. The first 'sed' inserts a | |
432 # line-number line after each line using $LINENO; the second 'sed' | |
433 # does the real work. The second script uses 'N' to pair each | |
434 # line-number line with the line containing $LINENO, and appends | |
435 # trailing '-' during substitution so that $LINENO is not a special | |
436 # case at line end. | |
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
438 # scripts with optimization help from Paolo Bonzini. Blame Lee | |
439 # E. McMahon (1931-1989) for sed's syntax. :-) | |
440 sed -n ' | |
441 p | |
442 /[$]LINENO/= | |
443 ' <$as_myself | | |
444 sed ' | |
445 s/[$]LINENO.*/&-/ | |
446 t lineno | |
447 b | |
448 :lineno | |
449 N | |
450 :loop | |
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
452 t loop | |
453 s/-\n.*// | |
454 ' >$as_me.lineno && | |
455 chmod +x "$as_me.lineno" || | |
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
457 { (exit 1); exit 1; }; } | |
458 | |
459 # Don't try to exec as it changes $[0], causing all sort of problems | |
460 # (the dirname of $[0] is not the place where we might find the | |
461 # original and so on. Autoconf is especially sensitive to this). | |
462 . "./$as_me.lineno" | |
463 # Exit status is that of the last command. | |
464 exit | |
465 } | |
466 | |
467 | |
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
469 as_dirname=dirname | |
470 else | |
471 as_dirname=false | |
472 fi | |
473 | |
474 ECHO_C= ECHO_N= ECHO_T= | |
475 case `echo -n x` in | |
476 -n*) | |
477 case `echo 'x\c'` in | |
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
479 *) ECHO_C='\c';; | |
480 esac;; | |
481 *) | |
482 ECHO_N='-n';; | |
483 esac | |
484 | |
485 if expr a : '\(a\)' >/dev/null 2>&1 && | |
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
487 as_expr=expr | |
488 else | |
489 as_expr=false | |
490 fi | |
491 | |
492 rm -f conf$$ conf$$.exe conf$$.file | |
493 if test -d conf$$.dir; then | |
494 rm -f conf$$.dir/conf$$.file | |
495 else | |
496 rm -f conf$$.dir | |
497 mkdir conf$$.dir | |
498 fi | |
499 echo >conf$$.file | |
500 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
501 as_ln_s='ln -s' | |
502 # ... but there are two gotchas: | |
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
505 # In both cases, we have to default to `cp -p'. | |
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
507 as_ln_s='cp -p' | |
508 elif ln conf$$.file conf$$ 2>/dev/null; then | |
509 as_ln_s=ln | |
510 else | |
511 as_ln_s='cp -p' | |
512 fi | |
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
514 rmdir conf$$.dir 2>/dev/null | |
515 | |
516 if mkdir -p . 2>/dev/null; then | |
517 as_mkdir_p=: | |
518 else | |
519 test -d ./-p && rmdir ./-p | |
520 as_mkdir_p=false | |
521 fi | |
522 | |
523 if test -x / >/dev/null 2>&1; then | |
524 as_test_x='test -x' | |
525 else | |
526 if ls -dL / >/dev/null 2>&1; then | |
527 as_ls_L_option=L | |
528 else | |
529 as_ls_L_option= | |
530 fi | |
531 as_test_x=' | |
532 eval sh -c '\'' | |
533 if test -d "$1"; then | |
534 test -d "$1/."; | |
535 else | |
536 case $1 in | |
537 -*)set "./$1";; | |
538 esac; | |
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
540 ???[sx]*):;;*)false;;esac;fi | |
541 '\'' sh | |
542 ' | |
543 fi | |
544 as_executable_p=$as_test_x | |
545 | |
546 # Sed expression to map a string onto a valid CPP name. | |
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
548 | |
549 # Sed expression to map a string onto a valid variable name. | |
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
551 | |
552 | |
553 | |
554 | |
555 # Check that we are running under the correct shell. | |
556 SHELL=${CONFIG_SHELL-/bin/sh} | |
557 | |
558 case X$lt_ECHO in | |
559 X*--fallback-echo) | |
560 # Remove one level of quotation (which was required for Make). | |
561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
562 ;; | |
563 esac | |
564 | |
565 ECHO=${lt_ECHO-echo} | |
566 if test "X$1" = X--no-reexec; then | |
567 # Discard the --no-reexec flag, and continue. | |
568 shift | |
569 elif test "X$1" = X--fallback-echo; then | |
570 # Avoid inline document here, it may be left over | |
571 : | |
572 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
573 # Yippee, $ECHO works! | |
574 : | |
575 else | |
576 # Restart under the correct shell. | |
577 exec $SHELL "$0" --no-reexec ${1+"$@"} | |
578 fi | |
579 | |
580 if test "X$1" = X--fallback-echo; then | |
581 # used as fallback echo | |
582 shift | |
583 cat <<_LT_EOF | |
584 $* | |
585 _LT_EOF | |
586 exit 0 | |
587 fi | |
588 | |
589 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
590 # if CDPATH is set. | |
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
592 | |
593 if test -z "$lt_ECHO"; then | |
594 if test "X${echo_test_string+set}" != Xset; then | |
595 # find a string as large as possible, as long as the shell can cope with it | |
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
598 if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
600 then | |
601 break | |
602 fi | |
603 done | |
604 fi | |
605 | |
606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
608 test "X$echo_testing_string" = "X$echo_test_string"; then | |
609 : | |
610 else | |
611 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
612 # backslashes. This makes it impossible to quote backslashes using | |
613 # echo "$something" | sed 's/\\/\\\\/g' | |
614 # | |
615 # So, first we look for a working echo in the user's PATH. | |
616 | |
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
618 for dir in $PATH /usr/ucb; do | |
619 IFS="$lt_save_ifs" | |
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
623 test "X$echo_testing_string" = "X$echo_test_string"; then | |
624 ECHO="$dir/echo" | |
625 break | |
626 fi | |
627 done | |
628 IFS="$lt_save_ifs" | |
629 | |
630 if test "X$ECHO" = Xecho; then | |
631 # We didn't find a better echo, so look for alternatives. | |
632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
634 test "X$echo_testing_string" = "X$echo_test_string"; then | |
635 # This shell has a builtin print -r that does the trick. | |
636 ECHO='print -r' | |
637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
638 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
639 # If we have ksh, try running configure again with it. | |
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
641 export ORIGINAL_CONFIG_SHELL | |
642 CONFIG_SHELL=/bin/ksh | |
643 export CONFIG_SHELL | |
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
645 else | |
646 # Try using printf. | |
647 ECHO='printf %s\n' | |
648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
650 test "X$echo_testing_string" = "X$echo_test_string"; then | |
651 # Cool, printf works | |
652 : | |
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
654 test "X$echo_testing_string" = 'X\t' && | |
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
656 test "X$echo_testing_string" = "X$echo_test_string"; then | |
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
658 export CONFIG_SHELL | |
659 SHELL="$CONFIG_SHELL" | |
660 export SHELL | |
661 ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
663 test "X$echo_testing_string" = 'X\t' && | |
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
665 test "X$echo_testing_string" = "X$echo_test_string"; then | |
666 ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
667 else | |
668 # maybe with a smaller string... | |
669 prev=: | |
670 | |
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
673 then | |
674 break | |
675 fi | |
676 prev="$cmd" | |
677 done | |
678 | |
679 if test "$prev" != 'sed 50q "$0"'; then | |
680 echo_test_string=`eval $prev` | |
681 export echo_test_string | |
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
683 else | |
684 # Oops. We lost completely, so just stick with echo. | |
685 ECHO=echo | |
686 fi | |
687 fi | |
688 fi | |
689 fi | |
690 fi | |
691 fi | |
692 | |
693 # Copy echo and quote the copy suitably for passing to libtool from | |
694 # the Makefile, instead of quoting the original, which is used later. | |
695 lt_ECHO=$ECHO | |
696 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
698 fi | |
699 | |
700 | |
701 | |
702 | |
703 exec 7<&0 </dev/null 6>&1 | |
704 | |
705 # Name of the host. | |
706 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
707 # so uname gets run too. | |
708 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
709 | |
710 # | |
711 # Initializations. | |
712 # | |
713 ac_default_prefix=/usr/local | |
714 ac_clean_files= | |
715 ac_config_libobj_dir=. | |
716 LIBOBJS= | |
717 cross_compiling=no | |
718 subdirs= | |
719 MFLAGS= | |
720 MAKEFLAGS= | |
721 SHELL=${CONFIG_SHELL-/bin/sh} | |
722 | |
723 # Identity of this package. | |
724 PACKAGE_NAME='liblo' | |
725 PACKAGE_TARNAME='liblo' | |
726 PACKAGE_VERSION='0.26' | |
727 PACKAGE_STRING='liblo 0.26' | |
728 PACKAGE_BUGREPORT='liblo-devel@lists.sourceforge.net' | |
729 | |
730 ac_unique_file="src/address.c" | |
731 # Factoring default headers for most tests. | |
732 ac_includes_default="\ | |
733 #include <stdio.h> | |
734 #ifdef HAVE_SYS_TYPES_H | |
735 # include <sys/types.h> | |
736 #endif | |
737 #ifdef HAVE_SYS_STAT_H | |
738 # include <sys/stat.h> | |
739 #endif | |
740 #ifdef STDC_HEADERS | |
741 # include <stdlib.h> | |
742 # include <stddef.h> | |
743 #else | |
744 # ifdef HAVE_STDLIB_H | |
745 # include <stdlib.h> | |
746 # endif | |
747 #endif | |
748 #ifdef HAVE_STRING_H | |
749 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
750 # include <memory.h> | |
751 # endif | |
752 # include <string.h> | |
753 #endif | |
754 #ifdef HAVE_STRINGS_H | |
755 # include <strings.h> | |
756 #endif | |
757 #ifdef HAVE_INTTYPES_H | |
758 # include <inttypes.h> | |
759 #endif | |
760 #ifdef HAVE_STDINT_H | |
761 # include <stdint.h> | |
762 #endif | |
763 #ifdef HAVE_UNISTD_H | |
764 # include <unistd.h> | |
765 #endif" | |
766 | |
767 ac_subst_vars='SHELL | |
768 PATH_SEPARATOR | |
769 PACKAGE_NAME | |
770 PACKAGE_TARNAME | |
771 PACKAGE_VERSION | |
772 PACKAGE_STRING | |
773 PACKAGE_BUGREPORT | |
774 exec_prefix | |
775 prefix | |
776 program_transform_name | |
777 bindir | |
778 sbindir | |
779 libexecdir | |
780 datarootdir | |
781 datadir | |
782 sysconfdir | |
783 sharedstatedir | |
784 localstatedir | |
785 includedir | |
786 oldincludedir | |
787 docdir | |
788 infodir | |
789 htmldir | |
790 dvidir | |
791 pdfdir | |
792 psdir | |
793 libdir | |
794 localedir | |
795 mandir | |
796 DEFS | |
797 ECHO_C | |
798 ECHO_N | |
799 ECHO_T | |
800 LIBS | |
801 build_alias | |
802 host_alias | |
803 target_alias | |
804 INSTALL_PROGRAM | |
805 INSTALL_SCRIPT | |
806 INSTALL_DATA | |
807 am__isrc | |
808 CYGPATH_W | |
809 PACKAGE | |
810 VERSION | |
811 ACLOCAL | |
812 AUTOCONF | |
813 AUTOMAKE | |
814 AUTOHEADER | |
815 MAKEINFO | |
816 install_sh | |
817 STRIP | |
818 INSTALL_STRIP_PROGRAM | |
819 mkdir_p | |
820 AWK | |
821 SET_MAKE | |
822 am__leading_dot | |
823 AMTAR | |
824 am__tar | |
825 am__untar | |
826 LO_SO_VERSION | |
827 CC | |
828 CFLAGS | |
829 LDFLAGS | |
830 CPPFLAGS | |
831 ac_ct_CC | |
832 EXEEXT | |
833 OBJEXT | |
834 DEPDIR | |
835 am__include | |
836 am__quote | |
837 AMDEP_TRUE | |
838 AMDEP_FALSE | |
839 AMDEPBACKSLASH | |
840 CCDEPMODE | |
841 am__fastdepCC_TRUE | |
842 am__fastdepCC_FALSE | |
843 LIBTOOL | |
844 build | |
845 build_cpu | |
846 build_vendor | |
847 build_os | |
848 host | |
849 host_cpu | |
850 host_vendor | |
851 host_os | |
852 SED | |
853 GREP | |
854 EGREP | |
855 FGREP | |
856 LD | |
857 DUMPBIN | |
858 ac_ct_DUMPBIN | |
859 NM | |
860 LN_S | |
861 AR | |
862 RANLIB | |
863 lt_ECHO | |
864 DSYMUTIL | |
865 NMEDIT | |
866 LIPO | |
867 OTOOL | |
868 OTOOL64 | |
869 CPP | |
870 DOXYGEN | |
871 LO_BIGENDIAN | |
872 LIBOBJS | |
873 LTLIBOBJS' | |
874 ac_subst_files='' | |
875 ac_precious_vars='build_alias | |
876 host_alias | |
877 target_alias | |
878 CC | |
879 CFLAGS | |
880 LDFLAGS | |
881 LIBS | |
882 CPPFLAGS | |
883 CPP' | |
884 | |
885 | |
886 # Initialize some variables set by options. | |
887 ac_init_help= | |
888 ac_init_version=false | |
889 # The variables have the same names as the options, with | |
890 # dashes changed to underlines. | |
891 cache_file=/dev/null | |
892 exec_prefix=NONE | |
893 no_create= | |
894 no_recursion= | |
895 prefix=NONE | |
896 program_prefix=NONE | |
897 program_suffix=NONE | |
898 program_transform_name=s,x,x, | |
899 silent= | |
900 site= | |
901 srcdir= | |
902 verbose= | |
903 x_includes=NONE | |
904 x_libraries=NONE | |
905 | |
906 # Installation directory options. | |
907 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
908 # and all the variables that are supposed to be based on exec_prefix | |
909 # by default will actually change. | |
910 # Use braces instead of parens because sh, perl, etc. also accept them. | |
911 # (The list follows the same order as the GNU Coding Standards.) | |
912 bindir='${exec_prefix}/bin' | |
913 sbindir='${exec_prefix}/sbin' | |
914 libexecdir='${exec_prefix}/libexec' | |
915 datarootdir='${prefix}/share' | |
916 datadir='${datarootdir}' | |
917 sysconfdir='${prefix}/etc' | |
918 sharedstatedir='${prefix}/com' | |
919 localstatedir='${prefix}/var' | |
920 includedir='${prefix}/include' | |
921 oldincludedir='/usr/include' | |
922 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
923 infodir='${datarootdir}/info' | |
924 htmldir='${docdir}' | |
925 dvidir='${docdir}' | |
926 pdfdir='${docdir}' | |
927 psdir='${docdir}' | |
928 libdir='${exec_prefix}/lib' | |
929 localedir='${datarootdir}/locale' | |
930 mandir='${datarootdir}/man' | |
931 | |
932 ac_prev= | |
933 ac_dashdash= | |
934 for ac_option | |
935 do | |
936 # If the previous option needs an argument, assign it. | |
937 if test -n "$ac_prev"; then | |
938 eval $ac_prev=\$ac_option | |
939 ac_prev= | |
940 continue | |
941 fi | |
942 | |
943 case $ac_option in | |
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
945 *) ac_optarg=yes ;; | |
946 esac | |
947 | |
948 # Accept the important Cygnus configure options, so we can diagnose typos. | |
949 | |
950 case $ac_dashdash$ac_option in | |
951 --) | |
952 ac_dashdash=yes ;; | |
953 | |
954 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
955 ac_prev=bindir ;; | |
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
957 bindir=$ac_optarg ;; | |
958 | |
959 -build | --build | --buil | --bui | --bu) | |
960 ac_prev=build_alias ;; | |
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
962 build_alias=$ac_optarg ;; | |
963 | |
964 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
966 ac_prev=cache_file ;; | |
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
969 cache_file=$ac_optarg ;; | |
970 | |
971 --config-cache | -C) | |
972 cache_file=config.cache ;; | |
973 | |
974 -datadir | --datadir | --datadi | --datad) | |
975 ac_prev=datadir ;; | |
976 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
977 datadir=$ac_optarg ;; | |
978 | |
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
980 | --dataroo | --dataro | --datar) | |
981 ac_prev=datarootdir ;; | |
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
984 datarootdir=$ac_optarg ;; | |
985 | |
986 -disable-* | --disable-*) | |
987 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
988 # Reject names that are not valid shell variable names. | |
989 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
990 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
991 { (exit 1); exit 1; }; } | |
992 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
993 eval enable_$ac_feature=no ;; | |
994 | |
995 -docdir | --docdir | --docdi | --doc | --do) | |
996 ac_prev=docdir ;; | |
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
998 docdir=$ac_optarg ;; | |
999 | |
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1001 ac_prev=dvidir ;; | |
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1003 dvidir=$ac_optarg ;; | |
1004 | |
1005 -enable-* | --enable-*) | |
1006 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1007 # Reject names that are not valid shell variable names. | |
1008 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1009 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1010 { (exit 1); exit 1; }; } | |
1011 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
1012 eval enable_$ac_feature=\$ac_optarg ;; | |
1013 | |
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1016 | --exec | --exe | --ex) | |
1017 ac_prev=exec_prefix ;; | |
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1020 | --exec=* | --exe=* | --ex=*) | |
1021 exec_prefix=$ac_optarg ;; | |
1022 | |
1023 -gas | --gas | --ga | --g) | |
1024 # Obsolete; use --with-gas. | |
1025 with_gas=yes ;; | |
1026 | |
1027 -help | --help | --hel | --he | -h) | |
1028 ac_init_help=long ;; | |
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1030 ac_init_help=recursive ;; | |
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1032 ac_init_help=short ;; | |
1033 | |
1034 -host | --host | --hos | --ho) | |
1035 ac_prev=host_alias ;; | |
1036 -host=* | --host=* | --hos=* | --ho=*) | |
1037 host_alias=$ac_optarg ;; | |
1038 | |
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1040 ac_prev=htmldir ;; | |
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1042 | --ht=*) | |
1043 htmldir=$ac_optarg ;; | |
1044 | |
1045 -includedir | --includedir | --includedi | --included | --include \ | |
1046 | --includ | --inclu | --incl | --inc) | |
1047 ac_prev=includedir ;; | |
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1049 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1050 includedir=$ac_optarg ;; | |
1051 | |
1052 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1053 ac_prev=infodir ;; | |
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1055 infodir=$ac_optarg ;; | |
1056 | |
1057 -libdir | --libdir | --libdi | --libd) | |
1058 ac_prev=libdir ;; | |
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1060 libdir=$ac_optarg ;; | |
1061 | |
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1063 | --libexe | --libex | --libe) | |
1064 ac_prev=libexecdir ;; | |
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1066 | --libexe=* | --libex=* | --libe=*) | |
1067 libexecdir=$ac_optarg ;; | |
1068 | |
1069 -localedir | --localedir | --localedi | --localed | --locale) | |
1070 ac_prev=localedir ;; | |
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1072 localedir=$ac_optarg ;; | |
1073 | |
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1075 | --localstate | --localstat | --localsta | --localst | --locals) | |
1076 ac_prev=localstatedir ;; | |
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1079 localstatedir=$ac_optarg ;; | |
1080 | |
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1082 ac_prev=mandir ;; | |
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1084 mandir=$ac_optarg ;; | |
1085 | |
1086 -nfp | --nfp | --nf) | |
1087 # Obsolete; use --without-fp. | |
1088 with_fp=no ;; | |
1089 | |
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1091 | --no-cr | --no-c | -n) | |
1092 no_create=yes ;; | |
1093 | |
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1096 no_recursion=yes ;; | |
1097 | |
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1100 | --oldin | --oldi | --old | --ol | --o) | |
1101 ac_prev=oldincludedir ;; | |
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1105 oldincludedir=$ac_optarg ;; | |
1106 | |
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1108 ac_prev=prefix ;; | |
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1110 prefix=$ac_optarg ;; | |
1111 | |
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1113 | --program-pre | --program-pr | --program-p) | |
1114 ac_prev=program_prefix ;; | |
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1117 program_prefix=$ac_optarg ;; | |
1118 | |
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1120 | --program-suf | --program-su | --program-s) | |
1121 ac_prev=program_suffix ;; | |
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1124 program_suffix=$ac_optarg ;; | |
1125 | |
1126 -program-transform-name | --program-transform-name \ | |
1127 | --program-transform-nam | --program-transform-na \ | |
1128 | --program-transform-n | --program-transform- \ | |
1129 | --program-transform | --program-transfor \ | |
1130 | --program-transfo | --program-transf \ | |
1131 | --program-trans | --program-tran \ | |
1132 | --progr-tra | --program-tr | --program-t) | |
1133 ac_prev=program_transform_name ;; | |
1134 -program-transform-name=* | --program-transform-name=* \ | |
1135 | --program-transform-nam=* | --program-transform-na=* \ | |
1136 | --program-transform-n=* | --program-transform-=* \ | |
1137 | --program-transform=* | --program-transfor=* \ | |
1138 | --program-transfo=* | --program-transf=* \ | |
1139 | --program-trans=* | --program-tran=* \ | |
1140 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1141 program_transform_name=$ac_optarg ;; | |
1142 | |
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1144 ac_prev=pdfdir ;; | |
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1146 pdfdir=$ac_optarg ;; | |
1147 | |
1148 -psdir | --psdir | --psdi | --psd | --ps) | |
1149 ac_prev=psdir ;; | |
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1151 psdir=$ac_optarg ;; | |
1152 | |
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1154 | -silent | --silent | --silen | --sile | --sil) | |
1155 silent=yes ;; | |
1156 | |
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1158 ac_prev=sbindir ;; | |
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1160 | --sbi=* | --sb=*) | |
1161 sbindir=$ac_optarg ;; | |
1162 | |
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1165 | --sharedst | --shareds | --shared | --share | --shar \ | |
1166 | --sha | --sh) | |
1167 ac_prev=sharedstatedir ;; | |
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1171 | --sha=* | --sh=*) | |
1172 sharedstatedir=$ac_optarg ;; | |
1173 | |
1174 -site | --site | --sit) | |
1175 ac_prev=site ;; | |
1176 -site=* | --site=* | --sit=*) | |
1177 site=$ac_optarg ;; | |
1178 | |
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1180 ac_prev=srcdir ;; | |
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1182 srcdir=$ac_optarg ;; | |
1183 | |
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1185 | --syscon | --sysco | --sysc | --sys | --sy) | |
1186 ac_prev=sysconfdir ;; | |
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1189 sysconfdir=$ac_optarg ;; | |
1190 | |
1191 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1192 ac_prev=target_alias ;; | |
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1194 target_alias=$ac_optarg ;; | |
1195 | |
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1197 verbose=yes ;; | |
1198 | |
1199 -version | --version | --versio | --versi | --vers | -V) | |
1200 ac_init_version=: ;; | |
1201 | |
1202 -with-* | --with-*) | |
1203 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1204 # Reject names that are not valid shell variable names. | |
1205 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1206 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1207 { (exit 1); exit 1; }; } | |
1208 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1209 eval with_$ac_package=\$ac_optarg ;; | |
1210 | |
1211 -without-* | --without-*) | |
1212 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1213 # Reject names that are not valid shell variable names. | |
1214 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1215 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1216 { (exit 1); exit 1; }; } | |
1217 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1218 eval with_$ac_package=no ;; | |
1219 | |
1220 --x) | |
1221 # Obsolete; use --with-x. | |
1222 with_x=yes ;; | |
1223 | |
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1225 | --x-incl | --x-inc | --x-in | --x-i) | |
1226 ac_prev=x_includes ;; | |
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1229 x_includes=$ac_optarg ;; | |
1230 | |
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1233 ac_prev=x_libraries ;; | |
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1236 x_libraries=$ac_optarg ;; | |
1237 | |
1238 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1239 Try \`$0 --help' for more information." >&2 | |
1240 { (exit 1); exit 1; }; } | |
1241 ;; | |
1242 | |
1243 *=*) | |
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1245 # Reject names that are not valid shell variable names. | |
1246 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1247 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1248 { (exit 1); exit 1; }; } | |
1249 eval $ac_envvar=\$ac_optarg | |
1250 export $ac_envvar ;; | |
1251 | |
1252 *) | |
1253 # FIXME: should be removed in autoconf 3.0. | |
1254 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1256 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1258 ;; | |
1259 | |
1260 esac | |
1261 done | |
1262 | |
1263 if test -n "$ac_prev"; then | |
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1265 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1266 { (exit 1); exit 1; }; } | |
1267 fi | |
1268 | |
1269 # Be sure to have absolute directory names. | |
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1271 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1273 libdir localedir mandir | |
1274 do | |
1275 eval ac_val=\$$ac_var | |
1276 case $ac_val in | |
1277 [\\/$]* | ?:[\\/]* ) continue;; | |
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1279 esac | |
1280 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1281 { (exit 1); exit 1; }; } | |
1282 done | |
1283 | |
1284 # There might be people who depend on the old broken behavior: `$host' | |
1285 # used to hold the argument of --host etc. | |
1286 # FIXME: To remove some day. | |
1287 build=$build_alias | |
1288 host=$host_alias | |
1289 target=$target_alias | |
1290 | |
1291 # FIXME: To remove some day. | |
1292 if test "x$host_alias" != x; then | |
1293 if test "x$build_alias" = x; then | |
1294 cross_compiling=maybe | |
1295 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1296 If a cross compiler is detected then cross compile mode will be used." >&2 | |
1297 elif test "x$build_alias" != "x$host_alias"; then | |
1298 cross_compiling=yes | |
1299 fi | |
1300 fi | |
1301 | |
1302 ac_tool_prefix= | |
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1304 | |
1305 test "$silent" = yes && exec 6>/dev/null | |
1306 | |
1307 | |
1308 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1309 ac_ls_di=`ls -di .` && | |
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1311 { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1312 { (exit 1); exit 1; }; } | |
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1314 { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1315 { (exit 1); exit 1; }; } | |
1316 | |
1317 | |
1318 # Find the source files, if location was not specified. | |
1319 if test -z "$srcdir"; then | |
1320 ac_srcdir_defaulted=yes | |
1321 # Try the directory containing this script, then the parent directory. | |
1322 ac_confdir=`$as_dirname -- "$0" || | |
1323 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1324 X"$0" : 'X\(//\)[^/]' \| \ | |
1325 X"$0" : 'X\(//\)$' \| \ | |
1326 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1327 echo X"$0" | | |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1329 s//\1/ | |
1330 q | |
1331 } | |
1332 /^X\(\/\/\)[^/].*/{ | |
1333 s//\1/ | |
1334 q | |
1335 } | |
1336 /^X\(\/\/\)$/{ | |
1337 s//\1/ | |
1338 q | |
1339 } | |
1340 /^X\(\/\).*/{ | |
1341 s//\1/ | |
1342 q | |
1343 } | |
1344 s/.*/./; q'` | |
1345 srcdir=$ac_confdir | |
1346 if test ! -r "$srcdir/$ac_unique_file"; then | |
1347 srcdir=.. | |
1348 fi | |
1349 else | |
1350 ac_srcdir_defaulted=no | |
1351 fi | |
1352 if test ! -r "$srcdir/$ac_unique_file"; then | |
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1354 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1355 { (exit 1); exit 1; }; } | |
1356 fi | |
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1358 ac_abs_confdir=`( | |
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1360 { (exit 1); exit 1; }; } | |
1361 pwd)` | |
1362 # When building in place, set srcdir=. | |
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1364 srcdir=. | |
1365 fi | |
1366 # Remove unnecessary trailing slashes from srcdir. | |
1367 # Double slashes in file names in object file debugging info | |
1368 # mess up M-x gdb in Emacs. | |
1369 case $srcdir in | |
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1371 esac | |
1372 for ac_var in $ac_precious_vars; do | |
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1374 eval ac_env_${ac_var}_value=\$${ac_var} | |
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1377 done | |
1378 | |
1379 # | |
1380 # Report the --help message. | |
1381 # | |
1382 if test "$ac_init_help" = "long"; then | |
1383 # Omit some internal or obsolete options to make the list less imposing. | |
1384 # This message is too long to be a string in the A/UX 3.1 sh. | |
1385 cat <<_ACEOF | |
1386 \`configure' configures liblo 0.26 to adapt to many kinds of systems. | |
1387 | |
1388 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1389 | |
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1391 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1392 | |
1393 Defaults for the options are specified in brackets. | |
1394 | |
1395 Configuration: | |
1396 -h, --help display this help and exit | |
1397 --help=short display options specific to this package | |
1398 --help=recursive display the short help of all the included packages | |
1399 -V, --version display version information and exit | |
1400 -q, --quiet, --silent do not print \`checking...' messages | |
1401 --cache-file=FILE cache test results in FILE [disabled] | |
1402 -C, --config-cache alias for \`--cache-file=config.cache' | |
1403 -n, --no-create do not create output files | |
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1405 | |
1406 Installation directories: | |
1407 --prefix=PREFIX install architecture-independent files in PREFIX | |
1408 [$ac_default_prefix] | |
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1410 [PREFIX] | |
1411 | |
1412 By default, \`make install' will install all the files in | |
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1415 for instance \`--prefix=\$HOME'. | |
1416 | |
1417 For better control, use the options below. | |
1418 | |
1419 Fine tuning of the installation directories: | |
1420 --bindir=DIR user executables [EPREFIX/bin] | |
1421 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1422 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1426 --libdir=DIR object code libraries [EPREFIX/lib] | |
1427 --includedir=DIR C header files [PREFIX/include] | |
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1431 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1433 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/liblo] | |
1435 --htmldir=DIR html documentation [DOCDIR] | |
1436 --dvidir=DIR dvi documentation [DOCDIR] | |
1437 --pdfdir=DIR pdf documentation [DOCDIR] | |
1438 --psdir=DIR ps documentation [DOCDIR] | |
1439 _ACEOF | |
1440 | |
1441 cat <<\_ACEOF | |
1442 | |
1443 Program names: | |
1444 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1445 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1447 | |
1448 System types: | |
1449 --build=BUILD configure for building on BUILD [guessed] | |
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1451 _ACEOF | |
1452 fi | |
1453 | |
1454 if test -n "$ac_init_help"; then | |
1455 case $ac_init_help in | |
1456 short | recursive ) echo "Configuration of liblo 0.26:";; | |
1457 esac | |
1458 cat <<\_ACEOF | |
1459 | |
1460 Optional Features: | |
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1463 --enable-static[=PKGS] build static libraries [default=no] | |
1464 --enable-shared[=PKGS] build shared libraries [default=yes] | |
1465 --enable-ipv6 Enable ipv6 support | |
1466 --disable-dependency-tracking speeds up one-time build | |
1467 --enable-dependency-tracking do not reject slow dependency extractors | |
1468 --enable-fast-install[=PKGS] | |
1469 optimize for fast installation [default=yes] | |
1470 --disable-libtool-lock avoid locking (might break parallel builds) | |
1471 | |
1472 Optional Packages: | |
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1475 --with-pic try to use only PIC/non-PIC objects [default=use | |
1476 both] | |
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1478 | |
1479 Some influential environment variables: | |
1480 CC C compiler command | |
1481 CFLAGS C compiler flags | |
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1483 nonstandard directory <lib dir> | |
1484 LIBS libraries to pass to the linker, e.g. -l<library> | |
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1486 you have headers in a nonstandard directory <include dir> | |
1487 CPP C preprocessor | |
1488 | |
1489 Use these variables to override the choices made by `configure' or to help | |
1490 it to find libraries and programs with nonstandard names/locations. | |
1491 | |
1492 Report bugs to <liblo-devel@lists.sourceforge.net>. | |
1493 _ACEOF | |
1494 ac_status=$? | |
1495 fi | |
1496 | |
1497 if test "$ac_init_help" = "recursive"; then | |
1498 # If there are subdirs, report their specific --help. | |
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1500 test -d "$ac_dir" || continue | |
1501 ac_builddir=. | |
1502 | |
1503 case "$ac_dir" in | |
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1505 *) | |
1506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1507 # A ".." for each directory in $ac_dir_suffix. | |
1508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1509 case $ac_top_builddir_sub in | |
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1512 esac ;; | |
1513 esac | |
1514 ac_abs_top_builddir=$ac_pwd | |
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1516 # for backward compatibility: | |
1517 ac_top_builddir=$ac_top_build_prefix | |
1518 | |
1519 case $srcdir in | |
1520 .) # We are building in place. | |
1521 ac_srcdir=. | |
1522 ac_top_srcdir=$ac_top_builddir_sub | |
1523 ac_abs_top_srcdir=$ac_pwd ;; | |
1524 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1525 ac_srcdir=$srcdir$ac_dir_suffix; | |
1526 ac_top_srcdir=$srcdir | |
1527 ac_abs_top_srcdir=$srcdir ;; | |
1528 *) # Relative name. | |
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1532 esac | |
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1534 | |
1535 cd "$ac_dir" || { ac_status=$?; continue; } | |
1536 # Check for guested configure. | |
1537 if test -f "$ac_srcdir/configure.gnu"; then | |
1538 echo && | |
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1540 elif test -f "$ac_srcdir/configure"; then | |
1541 echo && | |
1542 $SHELL "$ac_srcdir/configure" --help=recursive | |
1543 else | |
1544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1545 fi || ac_status=$? | |
1546 cd "$ac_pwd" || { ac_status=$?; break; } | |
1547 done | |
1548 fi | |
1549 | |
1550 test -n "$ac_init_help" && exit $ac_status | |
1551 if $ac_init_version; then | |
1552 cat <<\_ACEOF | |
1553 liblo configure 0.26 | |
1554 generated by GNU Autoconf 2.61 | |
1555 | |
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1558 This configure script is free software; the Free Software Foundation | |
1559 gives unlimited permission to copy, distribute and modify it. | |
1560 _ACEOF | |
1561 exit | |
1562 fi | |
1563 cat >config.log <<_ACEOF | |
1564 This file contains any messages produced by compilers while | |
1565 running configure, to aid debugging if configure makes a mistake. | |
1566 | |
1567 It was created by liblo $as_me 0.26, which was | |
1568 generated by GNU Autoconf 2.61. Invocation command line was | |
1569 | |
1570 $ $0 $@ | |
1571 | |
1572 _ACEOF | |
1573 exec 5>>config.log | |
1574 { | |
1575 cat <<_ASUNAME | |
1576 ## --------- ## | |
1577 ## Platform. ## | |
1578 ## --------- ## | |
1579 | |
1580 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1581 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1582 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1583 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1584 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1585 | |
1586 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1587 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1588 | |
1589 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1590 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1591 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1592 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1593 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1594 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1595 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1596 | |
1597 _ASUNAME | |
1598 | |
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1600 for as_dir in $PATH | |
1601 do | |
1602 IFS=$as_save_IFS | |
1603 test -z "$as_dir" && as_dir=. | |
1604 echo "PATH: $as_dir" | |
1605 done | |
1606 IFS=$as_save_IFS | |
1607 | |
1608 } >&5 | |
1609 | |
1610 cat >&5 <<_ACEOF | |
1611 | |
1612 | |
1613 ## ----------- ## | |
1614 ## Core tests. ## | |
1615 ## ----------- ## | |
1616 | |
1617 _ACEOF | |
1618 | |
1619 | |
1620 # Keep a trace of the command line. | |
1621 # Strip out --no-create and --no-recursion so they do not pile up. | |
1622 # Strip out --silent because we don't want to record it for future runs. | |
1623 # Also quote any args containing shell meta-characters. | |
1624 # Make two passes to allow for proper duplicate-argument suppression. | |
1625 ac_configure_args= | |
1626 ac_configure_args0= | |
1627 ac_configure_args1= | |
1628 ac_must_keep_next=false | |
1629 for ac_pass in 1 2 | |
1630 do | |
1631 for ac_arg | |
1632 do | |
1633 case $ac_arg in | |
1634 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1636 | -silent | --silent | --silen | --sile | --sil) | |
1637 continue ;; | |
1638 *\'*) | |
1639 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1640 esac | |
1641 case $ac_pass in | |
1642 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1643 2) | |
1644 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1645 if test $ac_must_keep_next = true; then | |
1646 ac_must_keep_next=false # Got value, back to normal. | |
1647 else | |
1648 case $ac_arg in | |
1649 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1650 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1651 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1652 | -with-* | --with-* | -without-* | --without-* | --x) | |
1653 case "$ac_configure_args0 " in | |
1654 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1655 esac | |
1656 ;; | |
1657 -* ) ac_must_keep_next=true ;; | |
1658 esac | |
1659 fi | |
1660 ac_configure_args="$ac_configure_args '$ac_arg'" | |
1661 ;; | |
1662 esac | |
1663 done | |
1664 done | |
1665 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1666 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1667 | |
1668 # When interrupted or exit'd, cleanup temporary files, and complete | |
1669 # config.log. We remove comments because anyway the quotes in there | |
1670 # would cause problems or look ugly. | |
1671 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1672 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1673 trap 'exit_status=$? | |
1674 # Save into config.log some information that might help in debugging. | |
1675 { | |
1676 echo | |
1677 | |
1678 cat <<\_ASBOX | |
1679 ## ---------------- ## | |
1680 ## Cache variables. ## | |
1681 ## ---------------- ## | |
1682 _ASBOX | |
1683 echo | |
1684 # The following way of writing the cache mishandles newlines in values, | |
1685 ( | |
1686 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1687 eval ac_val=\$$ac_var | |
1688 case $ac_val in #( | |
1689 *${as_nl}*) | |
1690 case $ac_var in #( | |
1691 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1692 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1693 esac | |
1694 case $ac_var in #( | |
1695 _ | IFS | as_nl) ;; #( | |
1696 *) $as_unset $ac_var ;; | |
1697 esac ;; | |
1698 esac | |
1699 done | |
1700 (set) 2>&1 | | |
1701 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1702 *${as_nl}ac_space=\ *) | |
1703 sed -n \ | |
1704 "s/'\''/'\''\\\\'\'''\''/g; | |
1705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1706 ;; #( | |
1707 *) | |
1708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1709 ;; | |
1710 esac | | |
1711 sort | |
1712 ) | |
1713 echo | |
1714 | |
1715 cat <<\_ASBOX | |
1716 ## ----------------- ## | |
1717 ## Output variables. ## | |
1718 ## ----------------- ## | |
1719 _ASBOX | |
1720 echo | |
1721 for ac_var in $ac_subst_vars | |
1722 do | |
1723 eval ac_val=\$$ac_var | |
1724 case $ac_val in | |
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1726 esac | |
1727 echo "$ac_var='\''$ac_val'\''" | |
1728 done | sort | |
1729 echo | |
1730 | |
1731 if test -n "$ac_subst_files"; then | |
1732 cat <<\_ASBOX | |
1733 ## ------------------- ## | |
1734 ## File substitutions. ## | |
1735 ## ------------------- ## | |
1736 _ASBOX | |
1737 echo | |
1738 for ac_var in $ac_subst_files | |
1739 do | |
1740 eval ac_val=\$$ac_var | |
1741 case $ac_val in | |
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1743 esac | |
1744 echo "$ac_var='\''$ac_val'\''" | |
1745 done | sort | |
1746 echo | |
1747 fi | |
1748 | |
1749 if test -s confdefs.h; then | |
1750 cat <<\_ASBOX | |
1751 ## ----------- ## | |
1752 ## confdefs.h. ## | |
1753 ## ----------- ## | |
1754 _ASBOX | |
1755 echo | |
1756 cat confdefs.h | |
1757 echo | |
1758 fi | |
1759 test "$ac_signal" != 0 && | |
1760 echo "$as_me: caught signal $ac_signal" | |
1761 echo "$as_me: exit $exit_status" | |
1762 } >&5 | |
1763 rm -f core *.core core.conftest.* && | |
1764 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1765 exit $exit_status | |
1766 ' 0 | |
1767 for ac_signal in 1 2 13 15; do | |
1768 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1769 done | |
1770 ac_signal=0 | |
1771 | |
1772 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1773 rm -f -r conftest* confdefs.h | |
1774 | |
1775 # Predefined preprocessor variables. | |
1776 | |
1777 cat >>confdefs.h <<_ACEOF | |
1778 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1779 _ACEOF | |
1780 | |
1781 | |
1782 cat >>confdefs.h <<_ACEOF | |
1783 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1784 _ACEOF | |
1785 | |
1786 | |
1787 cat >>confdefs.h <<_ACEOF | |
1788 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1789 _ACEOF | |
1790 | |
1791 | |
1792 cat >>confdefs.h <<_ACEOF | |
1793 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1794 _ACEOF | |
1795 | |
1796 | |
1797 cat >>confdefs.h <<_ACEOF | |
1798 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1799 _ACEOF | |
1800 | |
1801 | |
1802 # Let the site file select an alternate cache file if it wants to. | |
1803 # Prefer explicitly selected file to automatically selected ones. | |
1804 if test -n "$CONFIG_SITE"; then | |
1805 set x "$CONFIG_SITE" | |
1806 elif test "x$prefix" != xNONE; then | |
1807 set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1808 else | |
1809 set x "$ac_default_prefix/share/config.site" \ | |
1810 "$ac_default_prefix/etc/config.site" | |
1811 fi | |
1812 shift | |
1813 for ac_site_file | |
1814 do | |
1815 if test -r "$ac_site_file"; then | |
1816 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1817 echo "$as_me: loading site script $ac_site_file" >&6;} | |
1818 sed 's/^/| /' "$ac_site_file" >&5 | |
1819 . "$ac_site_file" | |
1820 fi | |
1821 done | |
1822 | |
1823 if test -r "$cache_file"; then | |
1824 # Some versions of bash will fail to source /dev/null (special | |
1825 # files actually), so we avoid doing that. | |
1826 if test -f "$cache_file"; then | |
1827 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1828 echo "$as_me: loading cache $cache_file" >&6;} | |
1829 case $cache_file in | |
1830 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1831 *) . "./$cache_file";; | |
1832 esac | |
1833 fi | |
1834 else | |
1835 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1836 echo "$as_me: creating cache $cache_file" >&6;} | |
1837 >$cache_file | |
1838 fi | |
1839 | |
1840 # Check that the precious variables saved in the cache have kept the same | |
1841 # value. | |
1842 ac_cache_corrupted=false | |
1843 for ac_var in $ac_precious_vars; do | |
1844 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1845 eval ac_new_set=\$ac_env_${ac_var}_set | |
1846 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1847 eval ac_new_val=\$ac_env_${ac_var}_value | |
1848 case $ac_old_set,$ac_new_set in | |
1849 set,) | |
1850 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1851 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1852 ac_cache_corrupted=: ;; | |
1853 ,set) | |
1854 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1855 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1856 ac_cache_corrupted=: ;; | |
1857 ,);; | |
1858 *) | |
1859 if test "x$ac_old_val" != "x$ac_new_val"; then | |
1860 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1861 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1862 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1863 echo "$as_me: former value: $ac_old_val" >&2;} | |
1864 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1865 echo "$as_me: current value: $ac_new_val" >&2;} | |
1866 ac_cache_corrupted=: | |
1867 fi;; | |
1868 esac | |
1869 # Pass precious variables to config.status. | |
1870 if test "$ac_new_set" = set; then | |
1871 case $ac_new_val in | |
1872 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1873 *) ac_arg=$ac_var=$ac_new_val ;; | |
1874 esac | |
1875 case " $ac_configure_args " in | |
1876 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1877 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1878 esac | |
1879 fi | |
1880 done | |
1881 if $ac_cache_corrupted; then | |
1882 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1883 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1884 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1885 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1886 { (exit 1); exit 1; }; } | |
1887 fi | |
1888 | |
1889 | |
1890 | |
1891 | |
1892 | |
1893 | |
1894 | |
1895 | |
1896 | |
1897 | |
1898 | |
1899 | |
1900 | |
1901 | |
1902 | |
1903 | |
1904 | |
1905 | |
1906 | |
1907 | |
1908 | |
1909 | |
1910 | |
1911 | |
1912 | |
1913 ac_ext=c | |
1914 ac_cpp='$CPP $CPPFLAGS' | |
1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1918 | |
1919 | |
1920 | |
1921 # libtool version: current:revision:age | |
1922 # | |
1923 # If the library source code has changed at all since the last update, then | |
1924 # increment revision (`c:r:a' becomes `c:r+1:a'). | |
1925 # | |
1926 # If any interfaces have been added, removed, or changed since the last update, | |
1927 # increment current, and set revision to 0. | |
1928 # | |
1929 # If any interfaces have been added since the last public release, then | |
1930 # increment age. | |
1931 # | |
1932 # If any interfaces have been removed since the last public release, then set | |
1933 # age to 0. | |
1934 LO_SO_VERSION=7:0:0 | |
1935 | |
1936 | |
1937 ac_config_headers="$ac_config_headers config.h" | |
1938 | |
1939 | |
1940 am__api_version='1.10' | |
1941 | |
1942 ac_aux_dir= | |
1943 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
1944 if test -f "$ac_dir/install-sh"; then | |
1945 ac_aux_dir=$ac_dir | |
1946 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1947 break | |
1948 elif test -f "$ac_dir/install.sh"; then | |
1949 ac_aux_dir=$ac_dir | |
1950 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1951 break | |
1952 elif test -f "$ac_dir/shtool"; then | |
1953 ac_aux_dir=$ac_dir | |
1954 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1955 break | |
1956 fi | |
1957 done | |
1958 if test -z "$ac_aux_dir"; then | |
1959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
1960 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
1961 { (exit 1); exit 1; }; } | |
1962 fi | |
1963 | |
1964 # These three variables are undocumented and unsupported, | |
1965 # and are intended to be withdrawn in a future Autoconf release. | |
1966 # They can cause serious problems if a builder's source tree is in a directory | |
1967 # whose full name contains unusual characters. | |
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1971 | |
1972 | |
1973 # Find a good install program. We prefer a C program (faster), | |
1974 # so one script is as good as another. But avoid the broken or | |
1975 # incompatible versions: | |
1976 # SysV /etc/install, /usr/sbin/install | |
1977 # SunOS /usr/etc/install | |
1978 # IRIX /sbin/install | |
1979 # AIX /bin/install | |
1980 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1984 # OS/2's system install, which has a completely different semantic | |
1985 # ./install, which can be erroneously created by make from ./install.sh. | |
1986 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1987 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
1988 if test -z "$INSTALL"; then | |
1989 if test "${ac_cv_path_install+set}" = set; then | |
1990 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1991 else | |
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1993 for as_dir in $PATH | |
1994 do | |
1995 IFS=$as_save_IFS | |
1996 test -z "$as_dir" && as_dir=. | |
1997 # Account for people who put trailing slashes in PATH elements. | |
1998 case $as_dir/ in | |
1999 ./ | .// | /cC/* | \ | |
2000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2002 /usr/ucb/* ) ;; | |
2003 *) | |
2004 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2005 # Don't use installbsd from OSF since it installs stuff as root | |
2006 # by default. | |
2007 for ac_prog in ginstall scoinst install; do | |
2008 for ac_exec_ext in '' $ac_executable_extensions; do | |
2009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2010 if test $ac_prog = install && | |
2011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2012 # AIX install. It has an incompatible calling convention. | |
2013 : | |
2014 elif test $ac_prog = install && | |
2015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2016 # program-specific install script used by HP pwplus--don't use. | |
2017 : | |
2018 else | |
2019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2020 break 3 | |
2021 fi | |
2022 fi | |
2023 done | |
2024 done | |
2025 ;; | |
2026 esac | |
2027 done | |
2028 IFS=$as_save_IFS | |
2029 | |
2030 | |
2031 fi | |
2032 if test "${ac_cv_path_install+set}" = set; then | |
2033 INSTALL=$ac_cv_path_install | |
2034 else | |
2035 # As a last resort, use the slow shell script. Don't cache a | |
2036 # value for INSTALL within a source directory, because that will | |
2037 # break other packages using the cache if that directory is | |
2038 # removed, or if the value is a relative name. | |
2039 INSTALL=$ac_install_sh | |
2040 fi | |
2041 fi | |
2042 { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2043 echo "${ECHO_T}$INSTALL" >&6; } | |
2044 | |
2045 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2046 # It thinks the first close brace ends the variable substitution. | |
2047 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2048 | |
2049 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2050 | |
2051 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2052 | |
2053 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
2054 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
2055 # Just in case | |
2056 sleep 1 | |
2057 echo timestamp > conftest.file | |
2058 # Do `set' in a subshell so we don't clobber the current shell's | |
2059 # arguments. Must try -L first in case configure is actually a | |
2060 # symlink; some systems play weird games with the mod time of symlinks | |
2061 # (eg FreeBSD returns the mod time of the symlink's containing | |
2062 # directory). | |
2063 if ( | |
2064 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2065 if test "$*" = "X"; then | |
2066 # -L didn't work. | |
2067 set X `ls -t $srcdir/configure conftest.file` | |
2068 fi | |
2069 rm -f conftest.file | |
2070 if test "$*" != "X $srcdir/configure conftest.file" \ | |
2071 && test "$*" != "X conftest.file $srcdir/configure"; then | |
2072 | |
2073 # If neither matched, then we have a broken ls. This can happen | |
2074 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2075 # broken ls alias from the environment. This has actually | |
2076 # happened. Such a system could not be considered "sane". | |
2077 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2078 alias in your environment" >&5 | |
2079 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2080 alias in your environment" >&2;} | |
2081 { (exit 1); exit 1; }; } | |
2082 fi | |
2083 | |
2084 test "$2" = conftest.file | |
2085 ) | |
2086 then | |
2087 # Ok. | |
2088 : | |
2089 else | |
2090 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2091 Check your system clock" >&5 | |
2092 echo "$as_me: error: newly created file is older than distributed files! | |
2093 Check your system clock" >&2;} | |
2094 { (exit 1); exit 1; }; } | |
2095 fi | |
2096 { echo "$as_me:$LINENO: result: yes" >&5 | |
2097 echo "${ECHO_T}yes" >&6; } | |
2098 test "$program_prefix" != NONE && | |
2099 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2100 # Use a double $ so make ignores it. | |
2101 test "$program_suffix" != NONE && | |
2102 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2103 # Double any \ or $. echo might interpret backslashes. | |
2104 # By default was `s,x,x', remove it if useless. | |
2105 cat <<\_ACEOF >conftest.sed | |
2106 s/[\\$]/&&/g;s/;s,x,x,$// | |
2107 _ACEOF | |
2108 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2109 rm -f conftest.sed | |
2110 | |
2111 # expand $ac_aux_dir to an absolute path | |
2112 am_aux_dir=`cd $ac_aux_dir && pwd` | |
2113 | |
2114 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2115 # Use eval to expand $SHELL | |
2116 if eval "$MISSING --run true"; then | |
2117 am_missing_run="$MISSING --run " | |
2118 else | |
2119 am_missing_run= | |
2120 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2121 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2122 fi | |
2123 | |
2124 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | |
2125 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
2126 if test -z "$MKDIR_P"; then | |
2127 if test "${ac_cv_path_mkdir+set}" = set; then | |
2128 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2129 else | |
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2131 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2132 do | |
2133 IFS=$as_save_IFS | |
2134 test -z "$as_dir" && as_dir=. | |
2135 for ac_prog in mkdir gmkdir; do | |
2136 for ac_exec_ext in '' $ac_executable_extensions; do | |
2137 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2138 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2139 'mkdir (GNU coreutils) '* | \ | |
2140 'mkdir (coreutils) '* | \ | |
2141 'mkdir (fileutils) '4.1*) | |
2142 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2143 break 3;; | |
2144 esac | |
2145 done | |
2146 done | |
2147 done | |
2148 IFS=$as_save_IFS | |
2149 | |
2150 fi | |
2151 | |
2152 if test "${ac_cv_path_mkdir+set}" = set; then | |
2153 MKDIR_P="$ac_cv_path_mkdir -p" | |
2154 else | |
2155 # As a last resort, use the slow shell script. Don't cache a | |
2156 # value for MKDIR_P within a source directory, because that will | |
2157 # break other packages using the cache if that directory is | |
2158 # removed, or if the value is a relative name. | |
2159 test -d ./--version && rmdir ./--version | |
2160 MKDIR_P="$ac_install_sh -d" | |
2161 fi | |
2162 fi | |
2163 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | |
2164 echo "${ECHO_T}$MKDIR_P" >&6; } | |
2165 | |
2166 mkdir_p="$MKDIR_P" | |
2167 case $mkdir_p in | |
2168 [\\/$]* | ?:[\\/]*) ;; | |
2169 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2170 esac | |
2171 | |
2172 for ac_prog in gawk mawk nawk awk | |
2173 do | |
2174 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2175 set dummy $ac_prog; ac_word=$2 | |
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2178 if test "${ac_cv_prog_AWK+set}" = set; then | |
2179 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2180 else | |
2181 if test -n "$AWK"; then | |
2182 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2183 else | |
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2185 for as_dir in $PATH | |
2186 do | |
2187 IFS=$as_save_IFS | |
2188 test -z "$as_dir" && as_dir=. | |
2189 for ac_exec_ext in '' $ac_executable_extensions; do | |
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2191 ac_cv_prog_AWK="$ac_prog" | |
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2193 break 2 | |
2194 fi | |
2195 done | |
2196 done | |
2197 IFS=$as_save_IFS | |
2198 | |
2199 fi | |
2200 fi | |
2201 AWK=$ac_cv_prog_AWK | |
2202 if test -n "$AWK"; then | |
2203 { echo "$as_me:$LINENO: result: $AWK" >&5 | |
2204 echo "${ECHO_T}$AWK" >&6; } | |
2205 else | |
2206 { echo "$as_me:$LINENO: result: no" >&5 | |
2207 echo "${ECHO_T}no" >&6; } | |
2208 fi | |
2209 | |
2210 | |
2211 test -n "$AWK" && break | |
2212 done | |
2213 | |
2214 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2215 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2216 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2217 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2218 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2219 else | |
2220 cat >conftest.make <<\_ACEOF | |
2221 SHELL = /bin/sh | |
2222 all: | |
2223 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2224 _ACEOF | |
2225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2226 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2227 *@@@%%%=?*=@@@%%%*) | |
2228 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2229 *) | |
2230 eval ac_cv_prog_make_${ac_make}_set=no;; | |
2231 esac | |
2232 rm -f conftest.make | |
2233 fi | |
2234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2235 { echo "$as_me:$LINENO: result: yes" >&5 | |
2236 echo "${ECHO_T}yes" >&6; } | |
2237 SET_MAKE= | |
2238 else | |
2239 { echo "$as_me:$LINENO: result: no" >&5 | |
2240 echo "${ECHO_T}no" >&6; } | |
2241 SET_MAKE="MAKE=${MAKE-make}" | |
2242 fi | |
2243 | |
2244 rm -rf .tst 2>/dev/null | |
2245 mkdir .tst 2>/dev/null | |
2246 if test -d .tst; then | |
2247 am__leading_dot=. | |
2248 else | |
2249 am__leading_dot=_ | |
2250 fi | |
2251 rmdir .tst 2>/dev/null | |
2252 | |
2253 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2255 # is not polluted with repeated "-I." | |
2256 am__isrc=' -I$(srcdir)' | |
2257 # test to see if srcdir already configured | |
2258 if test -f $srcdir/config.status; then | |
2259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2260 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2261 { (exit 1); exit 1; }; } | |
2262 fi | |
2263 fi | |
2264 | |
2265 # test whether we have cygpath | |
2266 if test -z "$CYGPATH_W"; then | |
2267 if (cygpath --version) >/dev/null 2>/dev/null; then | |
2268 CYGPATH_W='cygpath -w' | |
2269 else | |
2270 CYGPATH_W=echo | |
2271 fi | |
2272 fi | |
2273 | |
2274 | |
2275 # Define the identity of the package. | |
2276 PACKAGE='liblo' | |
2277 VERSION='0.26' | |
2278 | |
2279 | |
2280 cat >>confdefs.h <<_ACEOF | |
2281 #define PACKAGE "$PACKAGE" | |
2282 _ACEOF | |
2283 | |
2284 | |
2285 cat >>confdefs.h <<_ACEOF | |
2286 #define VERSION "$VERSION" | |
2287 _ACEOF | |
2288 | |
2289 # Some tools Automake needs. | |
2290 | |
2291 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2292 | |
2293 | |
2294 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2295 | |
2296 | |
2297 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2298 | |
2299 | |
2300 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2301 | |
2302 | |
2303 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2304 | |
2305 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | |
2306 | |
2307 # Installed binaries are usually stripped using `strip' when the user | |
2308 # run `make install-strip'. However `strip' might not be the right | |
2309 # tool to use in cross-compilation environments, therefore Automake | |
2310 # will honor the `STRIP' environment variable to overrule this program. | |
2311 if test "$cross_compiling" != no; then | |
2312 if test -n "$ac_tool_prefix"; then | |
2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2314 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2315 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2317 if test "${ac_cv_prog_STRIP+set}" = set; then | |
2318 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2319 else | |
2320 if test -n "$STRIP"; then | |
2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2322 else | |
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2324 for as_dir in $PATH | |
2325 do | |
2326 IFS=$as_save_IFS | |
2327 test -z "$as_dir" && as_dir=. | |
2328 for ac_exec_ext in '' $ac_executable_extensions; do | |
2329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2330 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2332 break 2 | |
2333 fi | |
2334 done | |
2335 done | |
2336 IFS=$as_save_IFS | |
2337 | |
2338 fi | |
2339 fi | |
2340 STRIP=$ac_cv_prog_STRIP | |
2341 if test -n "$STRIP"; then | |
2342 { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2343 echo "${ECHO_T}$STRIP" >&6; } | |
2344 else | |
2345 { echo "$as_me:$LINENO: result: no" >&5 | |
2346 echo "${ECHO_T}no" >&6; } | |
2347 fi | |
2348 | |
2349 | |
2350 fi | |
2351 if test -z "$ac_cv_prog_STRIP"; then | |
2352 ac_ct_STRIP=$STRIP | |
2353 # Extract the first word of "strip", so it can be a program name with args. | |
2354 set dummy strip; ac_word=$2 | |
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2358 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2359 else | |
2360 if test -n "$ac_ct_STRIP"; then | |
2361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2362 else | |
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2364 for as_dir in $PATH | |
2365 do | |
2366 IFS=$as_save_IFS | |
2367 test -z "$as_dir" && as_dir=. | |
2368 for ac_exec_ext in '' $ac_executable_extensions; do | |
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2370 ac_cv_prog_ac_ct_STRIP="strip" | |
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2372 break 2 | |
2373 fi | |
2374 done | |
2375 done | |
2376 IFS=$as_save_IFS | |
2377 | |
2378 fi | |
2379 fi | |
2380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2381 if test -n "$ac_ct_STRIP"; then | |
2382 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2383 echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
2384 else | |
2385 { echo "$as_me:$LINENO: result: no" >&5 | |
2386 echo "${ECHO_T}no" >&6; } | |
2387 fi | |
2388 | |
2389 if test "x$ac_ct_STRIP" = x; then | |
2390 STRIP=":" | |
2391 else | |
2392 case $cross_compiling:$ac_tool_warned in | |
2393 yes:) | |
2394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2395 whose name does not start with the host triplet. If you think this | |
2396 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2398 whose name does not start with the host triplet. If you think this | |
2399 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2400 ac_tool_warned=yes ;; | |
2401 esac | |
2402 STRIP=$ac_ct_STRIP | |
2403 fi | |
2404 else | |
2405 STRIP="$ac_cv_prog_STRIP" | |
2406 fi | |
2407 | |
2408 fi | |
2409 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2410 | |
2411 # We need awk for the "check" target. The system "awk" is bad on | |
2412 # some platforms. | |
2413 # Always define AMTAR for backward compatibility. | |
2414 | |
2415 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2416 | |
2417 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2418 | |
2419 | |
2420 | |
2421 | |
2422 | |
2423 | |
2424 # Check whether --enable-static was given. | |
2425 if test "${enable_static+set}" = set; then | |
2426 enableval=$enable_static; p=${PACKAGE-default} | |
2427 case $enableval in | |
2428 yes) enable_static=yes ;; | |
2429 no) enable_static=no ;; | |
2430 *) | |
2431 enable_static=no | |
2432 # Look at the argument we got. We use all the common list separators. | |
2433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2434 for pkg in $enableval; do | |
2435 IFS="$lt_save_ifs" | |
2436 if test "X$pkg" = "X$p"; then | |
2437 enable_static=yes | |
2438 fi | |
2439 done | |
2440 IFS="$lt_save_ifs" | |
2441 ;; | |
2442 esac | |
2443 else | |
2444 enable_static=no | |
2445 fi | |
2446 | |
2447 | |
2448 | |
2449 | |
2450 | |
2451 | |
2452 | |
2453 | |
2454 | |
2455 # Check whether --enable-shared was given. | |
2456 if test "${enable_shared+set}" = set; then | |
2457 enableval=$enable_shared; p=${PACKAGE-default} | |
2458 case $enableval in | |
2459 yes) enable_shared=yes ;; | |
2460 no) enable_shared=no ;; | |
2461 *) | |
2462 enable_shared=no | |
2463 # Look at the argument we got. We use all the common list separators. | |
2464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
2465 for pkg in $enableval; do | |
2466 IFS="$lt_save_ifs" | |
2467 if test "X$pkg" = "X$p"; then | |
2468 enable_shared=yes | |
2469 fi | |
2470 done | |
2471 IFS="$lt_save_ifs" | |
2472 ;; | |
2473 esac | |
2474 else | |
2475 enable_shared=yes | |
2476 fi | |
2477 | |
2478 | |
2479 | |
2480 | |
2481 | |
2482 | |
2483 | |
2484 | |
2485 | |
2486 | |
2487 | |
2488 # disable support for ipv6. | |
2489 # Check whether --enable-ipv6 was given. | |
2490 if test "${enable_ipv6+set}" = set; then | |
2491 enableval=$enable_ipv6; want_ipv6=yes | |
2492 fi | |
2493 | |
2494 if test "$want_ipv6" = "yes"; then | |
2495 | |
2496 cat >>confdefs.h <<\_ACEOF | |
2497 #define ENABLE_IPV6 1 | |
2498 _ACEOF | |
2499 | |
2500 fi | |
2501 | |
2502 # Checks for programs. | |
2503 ac_ext=c | |
2504 ac_cpp='$CPP $CPPFLAGS' | |
2505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2507 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2508 if test -n "$ac_tool_prefix"; then | |
2509 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2510 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2511 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2513 if test "${ac_cv_prog_CC+set}" = set; then | |
2514 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2515 else | |
2516 if test -n "$CC"; then | |
2517 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2518 else | |
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2520 for as_dir in $PATH | |
2521 do | |
2522 IFS=$as_save_IFS | |
2523 test -z "$as_dir" && as_dir=. | |
2524 for ac_exec_ext in '' $ac_executable_extensions; do | |
2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2526 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2528 break 2 | |
2529 fi | |
2530 done | |
2531 done | |
2532 IFS=$as_save_IFS | |
2533 | |
2534 fi | |
2535 fi | |
2536 CC=$ac_cv_prog_CC | |
2537 if test -n "$CC"; then | |
2538 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2539 echo "${ECHO_T}$CC" >&6; } | |
2540 else | |
2541 { echo "$as_me:$LINENO: result: no" >&5 | |
2542 echo "${ECHO_T}no" >&6; } | |
2543 fi | |
2544 | |
2545 | |
2546 fi | |
2547 if test -z "$ac_cv_prog_CC"; then | |
2548 ac_ct_CC=$CC | |
2549 # Extract the first word of "gcc", so it can be a program name with args. | |
2550 set dummy gcc; ac_word=$2 | |
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2554 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2555 else | |
2556 if test -n "$ac_ct_CC"; then | |
2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2558 else | |
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2560 for as_dir in $PATH | |
2561 do | |
2562 IFS=$as_save_IFS | |
2563 test -z "$as_dir" && as_dir=. | |
2564 for ac_exec_ext in '' $ac_executable_extensions; do | |
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2566 ac_cv_prog_ac_ct_CC="gcc" | |
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2568 break 2 | |
2569 fi | |
2570 done | |
2571 done | |
2572 IFS=$as_save_IFS | |
2573 | |
2574 fi | |
2575 fi | |
2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2577 if test -n "$ac_ct_CC"; then | |
2578 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2579 echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2580 else | |
2581 { echo "$as_me:$LINENO: result: no" >&5 | |
2582 echo "${ECHO_T}no" >&6; } | |
2583 fi | |
2584 | |
2585 if test "x$ac_ct_CC" = x; then | |
2586 CC="" | |
2587 else | |
2588 case $cross_compiling:$ac_tool_warned in | |
2589 yes:) | |
2590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2591 whose name does not start with the host triplet. If you think this | |
2592 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2594 whose name does not start with the host triplet. If you think this | |
2595 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2596 ac_tool_warned=yes ;; | |
2597 esac | |
2598 CC=$ac_ct_CC | |
2599 fi | |
2600 else | |
2601 CC="$ac_cv_prog_CC" | |
2602 fi | |
2603 | |
2604 if test -z "$CC"; then | |
2605 if test -n "$ac_tool_prefix"; then | |
2606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2607 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2610 if test "${ac_cv_prog_CC+set}" = set; then | |
2611 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2612 else | |
2613 if test -n "$CC"; then | |
2614 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2615 else | |
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2617 for as_dir in $PATH | |
2618 do | |
2619 IFS=$as_save_IFS | |
2620 test -z "$as_dir" && as_dir=. | |
2621 for ac_exec_ext in '' $ac_executable_extensions; do | |
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2623 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2625 break 2 | |
2626 fi | |
2627 done | |
2628 done | |
2629 IFS=$as_save_IFS | |
2630 | |
2631 fi | |
2632 fi | |
2633 CC=$ac_cv_prog_CC | |
2634 if test -n "$CC"; then | |
2635 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2636 echo "${ECHO_T}$CC" >&6; } | |
2637 else | |
2638 { echo "$as_me:$LINENO: result: no" >&5 | |
2639 echo "${ECHO_T}no" >&6; } | |
2640 fi | |
2641 | |
2642 | |
2643 fi | |
2644 fi | |
2645 if test -z "$CC"; then | |
2646 # Extract the first word of "cc", so it can be a program name with args. | |
2647 set dummy cc; ac_word=$2 | |
2648 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2650 if test "${ac_cv_prog_CC+set}" = set; then | |
2651 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2652 else | |
2653 if test -n "$CC"; then | |
2654 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2655 else | |
2656 ac_prog_rejected=no | |
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2658 for as_dir in $PATH | |
2659 do | |
2660 IFS=$as_save_IFS | |
2661 test -z "$as_dir" && as_dir=. | |
2662 for ac_exec_ext in '' $ac_executable_extensions; do | |
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2664 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2665 ac_prog_rejected=yes | |
2666 continue | |
2667 fi | |
2668 ac_cv_prog_CC="cc" | |
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2670 break 2 | |
2671 fi | |
2672 done | |
2673 done | |
2674 IFS=$as_save_IFS | |
2675 | |
2676 if test $ac_prog_rejected = yes; then | |
2677 # We found a bogon in the path, so make sure we never use it. | |
2678 set dummy $ac_cv_prog_CC | |
2679 shift | |
2680 if test $# != 0; then | |
2681 # We chose a different compiler from the bogus one. | |
2682 # However, it has the same basename, so the bogon will be chosen | |
2683 # first if we set CC to just the basename; use the full file name. | |
2684 shift | |
2685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2686 fi | |
2687 fi | |
2688 fi | |
2689 fi | |
2690 CC=$ac_cv_prog_CC | |
2691 if test -n "$CC"; then | |
2692 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2693 echo "${ECHO_T}$CC" >&6; } | |
2694 else | |
2695 { echo "$as_me:$LINENO: result: no" >&5 | |
2696 echo "${ECHO_T}no" >&6; } | |
2697 fi | |
2698 | |
2699 | |
2700 fi | |
2701 if test -z "$CC"; then | |
2702 if test -n "$ac_tool_prefix"; then | |
2703 for ac_prog in cl.exe | |
2704 do | |
2705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2709 if test "${ac_cv_prog_CC+set}" = set; then | |
2710 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2711 else | |
2712 if test -n "$CC"; then | |
2713 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2714 else | |
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2716 for as_dir in $PATH | |
2717 do | |
2718 IFS=$as_save_IFS | |
2719 test -z "$as_dir" && as_dir=. | |
2720 for ac_exec_ext in '' $ac_executable_extensions; do | |
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2724 break 2 | |
2725 fi | |
2726 done | |
2727 done | |
2728 IFS=$as_save_IFS | |
2729 | |
2730 fi | |
2731 fi | |
2732 CC=$ac_cv_prog_CC | |
2733 if test -n "$CC"; then | |
2734 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2735 echo "${ECHO_T}$CC" >&6; } | |
2736 else | |
2737 { echo "$as_me:$LINENO: result: no" >&5 | |
2738 echo "${ECHO_T}no" >&6; } | |
2739 fi | |
2740 | |
2741 | |
2742 test -n "$CC" && break | |
2743 done | |
2744 fi | |
2745 if test -z "$CC"; then | |
2746 ac_ct_CC=$CC | |
2747 for ac_prog in cl.exe | |
2748 do | |
2749 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2750 set dummy $ac_prog; ac_word=$2 | |
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2754 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2755 else | |
2756 if test -n "$ac_ct_CC"; then | |
2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2758 else | |
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2760 for as_dir in $PATH | |
2761 do | |
2762 IFS=$as_save_IFS | |
2763 test -z "$as_dir" && as_dir=. | |
2764 for ac_exec_ext in '' $ac_executable_extensions; do | |
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2766 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2768 break 2 | |
2769 fi | |
2770 done | |
2771 done | |
2772 IFS=$as_save_IFS | |
2773 | |
2774 fi | |
2775 fi | |
2776 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2777 if test -n "$ac_ct_CC"; then | |
2778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2779 echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2780 else | |
2781 { echo "$as_me:$LINENO: result: no" >&5 | |
2782 echo "${ECHO_T}no" >&6; } | |
2783 fi | |
2784 | |
2785 | |
2786 test -n "$ac_ct_CC" && break | |
2787 done | |
2788 | |
2789 if test "x$ac_ct_CC" = x; then | |
2790 CC="" | |
2791 else | |
2792 case $cross_compiling:$ac_tool_warned in | |
2793 yes:) | |
2794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2795 whose name does not start with the host triplet. If you think this | |
2796 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2798 whose name does not start with the host triplet. If you think this | |
2799 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2800 ac_tool_warned=yes ;; | |
2801 esac | |
2802 CC=$ac_ct_CC | |
2803 fi | |
2804 fi | |
2805 | |
2806 fi | |
2807 | |
2808 | |
2809 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2810 See \`config.log' for more details." >&5 | |
2811 echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2812 See \`config.log' for more details." >&2;} | |
2813 { (exit 1); exit 1; }; } | |
2814 | |
2815 # Provide some information about the compiler. | |
2816 echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2817 ac_compiler=`set X $ac_compile; echo $2` | |
2818 { (ac_try="$ac_compiler --version >&5" | |
2819 case "(($ac_try" in | |
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2821 *) ac_try_echo=$ac_try;; | |
2822 esac | |
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2824 (eval "$ac_compiler --version >&5") 2>&5 | |
2825 ac_status=$? | |
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2827 (exit $ac_status); } | |
2828 { (ac_try="$ac_compiler -v >&5" | |
2829 case "(($ac_try" in | |
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2831 *) ac_try_echo=$ac_try;; | |
2832 esac | |
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2834 (eval "$ac_compiler -v >&5") 2>&5 | |
2835 ac_status=$? | |
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2837 (exit $ac_status); } | |
2838 { (ac_try="$ac_compiler -V >&5" | |
2839 case "(($ac_try" in | |
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2841 *) ac_try_echo=$ac_try;; | |
2842 esac | |
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2844 (eval "$ac_compiler -V >&5") 2>&5 | |
2845 ac_status=$? | |
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2847 (exit $ac_status); } | |
2848 | |
2849 cat >conftest.$ac_ext <<_ACEOF | |
2850 /* confdefs.h. */ | |
2851 _ACEOF | |
2852 cat confdefs.h >>conftest.$ac_ext | |
2853 cat >>conftest.$ac_ext <<_ACEOF | |
2854 /* end confdefs.h. */ | |
2855 | |
2856 int | |
2857 main () | |
2858 { | |
2859 | |
2860 ; | |
2861 return 0; | |
2862 } | |
2863 _ACEOF | |
2864 ac_clean_files_save=$ac_clean_files | |
2865 ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2866 # Try to create an executable without -o first, disregard a.out. | |
2867 # It will help us diagnose broken compilers, and finding out an intuition | |
2868 # of exeext. | |
2869 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2870 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2871 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2872 # | |
2873 # List of possible output files, starting from the most likely. | |
2874 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2875 # only as a last resort. b.out is created by i960 compilers. | |
2876 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2877 # | |
2878 # The IRIX 6 linker writes into existing files which may not be | |
2879 # executable, retaining their permissions. Remove them first so a | |
2880 # subsequent execution test works. | |
2881 ac_rmfiles= | |
2882 for ac_file in $ac_files | |
2883 do | |
2884 case $ac_file in | |
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2886 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2887 esac | |
2888 done | |
2889 rm -f $ac_rmfiles | |
2890 | |
2891 if { (ac_try="$ac_link_default" | |
2892 case "(($ac_try" in | |
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2894 *) ac_try_echo=$ac_try;; | |
2895 esac | |
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2897 (eval "$ac_link_default") 2>&5 | |
2898 ac_status=$? | |
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2900 (exit $ac_status); }; then | |
2901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2903 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2904 # so that the user can short-circuit this test for compilers unknown to | |
2905 # Autoconf. | |
2906 for ac_file in $ac_files '' | |
2907 do | |
2908 test -f "$ac_file" || continue | |
2909 case $ac_file in | |
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
2911 ;; | |
2912 [ab].out ) | |
2913 # We found the default executable, but exeext='' is most | |
2914 # certainly right. | |
2915 break;; | |
2916 *.* ) | |
2917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2918 then :; else | |
2919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2920 fi | |
2921 # We set ac_cv_exeext here because the later test for it is not | |
2922 # safe: cross compilers may not add the suffix if given an `-o' | |
2923 # argument, so we may need to know it at that point already. | |
2924 # Even if this section looks crufty: it has the advantage of | |
2925 # actually working. | |
2926 break;; | |
2927 * ) | |
2928 break;; | |
2929 esac | |
2930 done | |
2931 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2932 | |
2933 else | |
2934 ac_file='' | |
2935 fi | |
2936 | |
2937 { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2938 echo "${ECHO_T}$ac_file" >&6; } | |
2939 if test -z "$ac_file"; then | |
2940 echo "$as_me: failed program was:" >&5 | |
2941 sed 's/^/| /' conftest.$ac_ext >&5 | |
2942 | |
2943 { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2944 See \`config.log' for more details." >&5 | |
2945 echo "$as_me: error: C compiler cannot create executables | |
2946 See \`config.log' for more details." >&2;} | |
2947 { (exit 77); exit 77; }; } | |
2948 fi | |
2949 | |
2950 ac_exeext=$ac_cv_exeext | |
2951 | |
2952 # Check that the compiler produces executables we can run. If not, either | |
2953 # the compiler is broken, or we cross compile. | |
2954 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2955 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
2956 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2957 # If not cross compiling, check that we can run a simple program. | |
2958 if test "$cross_compiling" != yes; then | |
2959 if { ac_try='./$ac_file' | |
2960 { (case "(($ac_try" in | |
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2962 *) ac_try_echo=$ac_try;; | |
2963 esac | |
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2965 (eval "$ac_try") 2>&5 | |
2966 ac_status=$? | |
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2968 (exit $ac_status); }; }; then | |
2969 cross_compiling=no | |
2970 else | |
2971 if test "$cross_compiling" = maybe; then | |
2972 cross_compiling=yes | |
2973 else | |
2974 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2975 If you meant to cross compile, use \`--host'. | |
2976 See \`config.log' for more details." >&5 | |
2977 echo "$as_me: error: cannot run C compiled programs. | |
2978 If you meant to cross compile, use \`--host'. | |
2979 See \`config.log' for more details." >&2;} | |
2980 { (exit 1); exit 1; }; } | |
2981 fi | |
2982 fi | |
2983 fi | |
2984 { echo "$as_me:$LINENO: result: yes" >&5 | |
2985 echo "${ECHO_T}yes" >&6; } | |
2986 | |
2987 rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2988 ac_clean_files=$ac_clean_files_save | |
2989 # Check that the compiler produces executables we can run. If not, either | |
2990 # the compiler is broken, or we cross compile. | |
2991 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2992 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2993 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2994 echo "${ECHO_T}$cross_compiling" >&6; } | |
2995 | |
2996 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2997 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2998 if { (ac_try="$ac_link" | |
2999 case "(($ac_try" in | |
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3001 *) ac_try_echo=$ac_try;; | |
3002 esac | |
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3004 (eval "$ac_link") 2>&5 | |
3005 ac_status=$? | |
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3007 (exit $ac_status); }; then | |
3008 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3009 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3010 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3011 # `rm'. | |
3012 for ac_file in conftest.exe conftest conftest.*; do | |
3013 test -f "$ac_file" || continue | |
3014 case $ac_file in | |
3015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3016 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3017 break;; | |
3018 * ) break;; | |
3019 esac | |
3020 done | |
3021 else | |
3022 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
3023 See \`config.log' for more details." >&5 | |
3024 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3025 See \`config.log' for more details." >&2;} | |
3026 { (exit 1); exit 1; }; } | |
3027 fi | |
3028 | |
3029 rm -f conftest$ac_cv_exeext | |
3030 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3031 echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
3032 | |
3033 rm -f conftest.$ac_ext | |
3034 EXEEXT=$ac_cv_exeext | |
3035 ac_exeext=$EXEEXT | |
3036 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3037 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
3038 if test "${ac_cv_objext+set}" = set; then | |
3039 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3040 else | |
3041 cat >conftest.$ac_ext <<_ACEOF | |
3042 /* confdefs.h. */ | |
3043 _ACEOF | |
3044 cat confdefs.h >>conftest.$ac_ext | |
3045 cat >>conftest.$ac_ext <<_ACEOF | |
3046 /* end confdefs.h. */ | |
3047 | |
3048 int | |
3049 main () | |
3050 { | |
3051 | |
3052 ; | |
3053 return 0; | |
3054 } | |
3055 _ACEOF | |
3056 rm -f conftest.o conftest.obj | |
3057 if { (ac_try="$ac_compile" | |
3058 case "(($ac_try" in | |
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3060 *) ac_try_echo=$ac_try;; | |
3061 esac | |
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3063 (eval "$ac_compile") 2>&5 | |
3064 ac_status=$? | |
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3066 (exit $ac_status); }; then | |
3067 for ac_file in conftest.o conftest.obj conftest.*; do | |
3068 test -f "$ac_file" || continue; | |
3069 case $ac_file in | |
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
3071 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3072 break;; | |
3073 esac | |
3074 done | |
3075 else | |
3076 echo "$as_me: failed program was:" >&5 | |
3077 sed 's/^/| /' conftest.$ac_ext >&5 | |
3078 | |
3079 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3080 See \`config.log' for more details." >&5 | |
3081 echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3082 See \`config.log' for more details." >&2;} | |
3083 { (exit 1); exit 1; }; } | |
3084 fi | |
3085 | |
3086 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3087 fi | |
3088 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3089 echo "${ECHO_T}$ac_cv_objext" >&6; } | |
3090 OBJEXT=$ac_cv_objext | |
3091 ac_objext=$OBJEXT | |
3092 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3093 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
3094 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3095 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3096 else | |
3097 cat >conftest.$ac_ext <<_ACEOF | |
3098 /* confdefs.h. */ | |
3099 _ACEOF | |
3100 cat confdefs.h >>conftest.$ac_ext | |
3101 cat >>conftest.$ac_ext <<_ACEOF | |
3102 /* end confdefs.h. */ | |
3103 | |
3104 int | |
3105 main () | |
3106 { | |
3107 #ifndef __GNUC__ | |
3108 choke me | |
3109 #endif | |
3110 | |
3111 ; | |
3112 return 0; | |
3113 } | |
3114 _ACEOF | |
3115 rm -f conftest.$ac_objext | |
3116 if { (ac_try="$ac_compile" | |
3117 case "(($ac_try" in | |
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3119 *) ac_try_echo=$ac_try;; | |
3120 esac | |
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3122 (eval "$ac_compile") 2>conftest.er1 | |
3123 ac_status=$? | |
3124 grep -v '^ *+' conftest.er1 >conftest.err | |
3125 rm -f conftest.er1 | |
3126 cat conftest.err >&5 | |
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3128 (exit $ac_status); } && { | |
3129 test -z "$ac_c_werror_flag" || | |
3130 test ! -s conftest.err | |
3131 } && test -s conftest.$ac_objext; then | |
3132 ac_compiler_gnu=yes | |
3133 else | |
3134 echo "$as_me: failed program was:" >&5 | |
3135 sed 's/^/| /' conftest.$ac_ext >&5 | |
3136 | |
3137 ac_compiler_gnu=no | |
3138 fi | |
3139 | |
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3141 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3142 | |
3143 fi | |
3144 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3145 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
3146 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3147 ac_test_CFLAGS=${CFLAGS+set} | |
3148 ac_save_CFLAGS=$CFLAGS | |
3149 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3150 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
3151 if test "${ac_cv_prog_cc_g+set}" = set; then | |
3152 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3153 else | |
3154 ac_save_c_werror_flag=$ac_c_werror_flag | |
3155 ac_c_werror_flag=yes | |
3156 ac_cv_prog_cc_g=no | |
3157 CFLAGS="-g" | |
3158 cat >conftest.$ac_ext <<_ACEOF | |
3159 /* confdefs.h. */ | |
3160 _ACEOF | |
3161 cat confdefs.h >>conftest.$ac_ext | |
3162 cat >>conftest.$ac_ext <<_ACEOF | |
3163 /* end confdefs.h. */ | |
3164 | |
3165 int | |
3166 main () | |
3167 { | |
3168 | |
3169 ; | |
3170 return 0; | |
3171 } | |
3172 _ACEOF | |
3173 rm -f conftest.$ac_objext | |
3174 if { (ac_try="$ac_compile" | |
3175 case "(($ac_try" in | |
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3177 *) ac_try_echo=$ac_try;; | |
3178 esac | |
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3180 (eval "$ac_compile") 2>conftest.er1 | |
3181 ac_status=$? | |
3182 grep -v '^ *+' conftest.er1 >conftest.err | |
3183 rm -f conftest.er1 | |
3184 cat conftest.err >&5 | |
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3186 (exit $ac_status); } && { | |
3187 test -z "$ac_c_werror_flag" || | |
3188 test ! -s conftest.err | |
3189 } && test -s conftest.$ac_objext; then | |
3190 ac_cv_prog_cc_g=yes | |
3191 else | |
3192 echo "$as_me: failed program was:" >&5 | |
3193 sed 's/^/| /' conftest.$ac_ext >&5 | |
3194 | |
3195 CFLAGS="" | |
3196 cat >conftest.$ac_ext <<_ACEOF | |
3197 /* confdefs.h. */ | |
3198 _ACEOF | |
3199 cat confdefs.h >>conftest.$ac_ext | |
3200 cat >>conftest.$ac_ext <<_ACEOF | |
3201 /* end confdefs.h. */ | |
3202 | |
3203 int | |
3204 main () | |
3205 { | |
3206 | |
3207 ; | |
3208 return 0; | |
3209 } | |
3210 _ACEOF | |
3211 rm -f conftest.$ac_objext | |
3212 if { (ac_try="$ac_compile" | |
3213 case "(($ac_try" in | |
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3215 *) ac_try_echo=$ac_try;; | |
3216 esac | |
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3218 (eval "$ac_compile") 2>conftest.er1 | |
3219 ac_status=$? | |
3220 grep -v '^ *+' conftest.er1 >conftest.err | |
3221 rm -f conftest.er1 | |
3222 cat conftest.err >&5 | |
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3224 (exit $ac_status); } && { | |
3225 test -z "$ac_c_werror_flag" || | |
3226 test ! -s conftest.err | |
3227 } && test -s conftest.$ac_objext; then | |
3228 : | |
3229 else | |
3230 echo "$as_me: failed program was:" >&5 | |
3231 sed 's/^/| /' conftest.$ac_ext >&5 | |
3232 | |
3233 ac_c_werror_flag=$ac_save_c_werror_flag | |
3234 CFLAGS="-g" | |
3235 cat >conftest.$ac_ext <<_ACEOF | |
3236 /* confdefs.h. */ | |
3237 _ACEOF | |
3238 cat confdefs.h >>conftest.$ac_ext | |
3239 cat >>conftest.$ac_ext <<_ACEOF | |
3240 /* end confdefs.h. */ | |
3241 | |
3242 int | |
3243 main () | |
3244 { | |
3245 | |
3246 ; | |
3247 return 0; | |
3248 } | |
3249 _ACEOF | |
3250 rm -f conftest.$ac_objext | |
3251 if { (ac_try="$ac_compile" | |
3252 case "(($ac_try" in | |
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3254 *) ac_try_echo=$ac_try;; | |
3255 esac | |
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3257 (eval "$ac_compile") 2>conftest.er1 | |
3258 ac_status=$? | |
3259 grep -v '^ *+' conftest.er1 >conftest.err | |
3260 rm -f conftest.er1 | |
3261 cat conftest.err >&5 | |
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3263 (exit $ac_status); } && { | |
3264 test -z "$ac_c_werror_flag" || | |
3265 test ! -s conftest.err | |
3266 } && test -s conftest.$ac_objext; then | |
3267 ac_cv_prog_cc_g=yes | |
3268 else | |
3269 echo "$as_me: failed program was:" >&5 | |
3270 sed 's/^/| /' conftest.$ac_ext >&5 | |
3271 | |
3272 | |
3273 fi | |
3274 | |
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3276 fi | |
3277 | |
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3279 fi | |
3280 | |
3281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3282 ac_c_werror_flag=$ac_save_c_werror_flag | |
3283 fi | |
3284 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3285 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
3286 if test "$ac_test_CFLAGS" = set; then | |
3287 CFLAGS=$ac_save_CFLAGS | |
3288 elif test $ac_cv_prog_cc_g = yes; then | |
3289 if test "$GCC" = yes; then | |
3290 CFLAGS="-g -O2" | |
3291 else | |
3292 CFLAGS="-g" | |
3293 fi | |
3294 else | |
3295 if test "$GCC" = yes; then | |
3296 CFLAGS="-O2" | |
3297 else | |
3298 CFLAGS= | |
3299 fi | |
3300 fi | |
3301 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3302 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3303 if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3304 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3305 else | |
3306 ac_cv_prog_cc_c89=no | |
3307 ac_save_CC=$CC | |
3308 cat >conftest.$ac_ext <<_ACEOF | |
3309 /* confdefs.h. */ | |
3310 _ACEOF | |
3311 cat confdefs.h >>conftest.$ac_ext | |
3312 cat >>conftest.$ac_ext <<_ACEOF | |
3313 /* end confdefs.h. */ | |
3314 #include <stdarg.h> | |
3315 #include <stdio.h> | |
3316 #include <sys/types.h> | |
3317 #include <sys/stat.h> | |
3318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3319 struct buf { int x; }; | |
3320 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3321 static char *e (p, i) | |
3322 char **p; | |
3323 int i; | |
3324 { | |
3325 return p[i]; | |
3326 } | |
3327 static char *f (char * (*g) (char **, int), char **p, ...) | |
3328 { | |
3329 char *s; | |
3330 va_list v; | |
3331 va_start (v,p); | |
3332 s = g (p, va_arg (v,int)); | |
3333 va_end (v); | |
3334 return s; | |
3335 } | |
3336 | |
3337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3338 function prototypes and stuff, but not '\xHH' hex character constants. | |
3339 These don't provoke an error unfortunately, instead are silently treated | |
3340 as 'x'. The following induces an error, until -std is added to get | |
3341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3342 array size at least. It's necessary to write '\x00'==0 to get something | |
3343 that's true only with -std. */ | |
3344 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3345 | |
3346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3347 inside strings and character constants. */ | |
3348 #define FOO(x) 'x' | |
3349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3350 | |
3351 int test (int i, double x); | |
3352 struct s1 {int (*f) (int a);}; | |
3353 struct s2 {int (*f) (double a);}; | |
3354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3355 int argc; | |
3356 char **argv; | |
3357 int | |
3358 main () | |
3359 { | |
3360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3361 ; | |
3362 return 0; | |
3363 } | |
3364 _ACEOF | |
3365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3367 do | |
3368 CC="$ac_save_CC $ac_arg" | |
3369 rm -f conftest.$ac_objext | |
3370 if { (ac_try="$ac_compile" | |
3371 case "(($ac_try" in | |
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3373 *) ac_try_echo=$ac_try;; | |
3374 esac | |
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3376 (eval "$ac_compile") 2>conftest.er1 | |
3377 ac_status=$? | |
3378 grep -v '^ *+' conftest.er1 >conftest.err | |
3379 rm -f conftest.er1 | |
3380 cat conftest.err >&5 | |
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3382 (exit $ac_status); } && { | |
3383 test -z "$ac_c_werror_flag" || | |
3384 test ! -s conftest.err | |
3385 } && test -s conftest.$ac_objext; then | |
3386 ac_cv_prog_cc_c89=$ac_arg | |
3387 else | |
3388 echo "$as_me: failed program was:" >&5 | |
3389 sed 's/^/| /' conftest.$ac_ext >&5 | |
3390 | |
3391 | |
3392 fi | |
3393 | |
3394 rm -f core conftest.err conftest.$ac_objext | |
3395 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3396 done | |
3397 rm -f conftest.$ac_ext | |
3398 CC=$ac_save_CC | |
3399 | |
3400 fi | |
3401 # AC_CACHE_VAL | |
3402 case "x$ac_cv_prog_cc_c89" in | |
3403 x) | |
3404 { echo "$as_me:$LINENO: result: none needed" >&5 | |
3405 echo "${ECHO_T}none needed" >&6; } ;; | |
3406 xno) | |
3407 { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3408 echo "${ECHO_T}unsupported" >&6; } ;; | |
3409 *) | |
3410 CC="$CC $ac_cv_prog_cc_c89" | |
3411 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3412 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
3413 esac | |
3414 | |
3415 | |
3416 ac_ext=c | |
3417 ac_cpp='$CPP $CPPFLAGS' | |
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3421 DEPDIR="${am__leading_dot}deps" | |
3422 | |
3423 ac_config_commands="$ac_config_commands depfiles" | |
3424 | |
3425 | |
3426 am_make=${MAKE-make} | |
3427 cat > confinc << 'END' | |
3428 am__doit: | |
3429 @echo done | |
3430 .PHONY: am__doit | |
3431 END | |
3432 # If we don't find an include directive, just comment out the code. | |
3433 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3434 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
3435 am__include="#" | |
3436 am__quote= | |
3437 _am_result=none | |
3438 # First try GNU make style include. | |
3439 echo "include confinc" > confmf | |
3440 # We grep out `Entering directory' and `Leaving directory' | |
3441 # messages which can occur if `w' ends up in MAKEFLAGS. | |
3442 # In particular we don't look at `^make:' because GNU make might | |
3443 # be invoked under some other name (usually "gmake"), in which | |
3444 # case it prints its new name instead of `make'. | |
3445 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3446 am__include=include | |
3447 am__quote= | |
3448 _am_result=GNU | |
3449 fi | |
3450 # Now try BSD make style include. | |
3451 if test "$am__include" = "#"; then | |
3452 echo '.include "confinc"' > confmf | |
3453 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3454 am__include=.include | |
3455 am__quote="\"" | |
3456 _am_result=BSD | |
3457 fi | |
3458 fi | |
3459 | |
3460 | |
3461 { echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3462 echo "${ECHO_T}$_am_result" >&6; } | |
3463 rm -f confinc confmf | |
3464 | |
3465 # Check whether --enable-dependency-tracking was given. | |
3466 if test "${enable_dependency_tracking+set}" = set; then | |
3467 enableval=$enable_dependency_tracking; | |
3468 fi | |
3469 | |
3470 if test "x$enable_dependency_tracking" != xno; then | |
3471 am_depcomp="$ac_aux_dir/depcomp" | |
3472 AMDEPBACKSLASH='\' | |
3473 fi | |
3474 if test "x$enable_dependency_tracking" != xno; then | |
3475 AMDEP_TRUE= | |
3476 AMDEP_FALSE='#' | |
3477 else | |
3478 AMDEP_TRUE='#' | |
3479 AMDEP_FALSE= | |
3480 fi | |
3481 | |
3482 | |
3483 | |
3484 depcc="$CC" am_compiler_list= | |
3485 | |
3486 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3487 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
3488 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3489 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3490 else | |
3491 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3492 # We make a subdir and do the tests there. Otherwise we can end up | |
3493 # making bogus files that we don't know about and never remove. For | |
3494 # instance it was reported that on HP-UX the gcc test will end up | |
3495 # making a dummy file named `D' -- because `-MD' means `put the output | |
3496 # in D'. | |
3497 mkdir conftest.dir | |
3498 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3499 # using a relative directory. | |
3500 cp "$am_depcomp" conftest.dir | |
3501 cd conftest.dir | |
3502 # We will build objects and dependencies in a subdirectory because | |
3503 # it helps to detect inapplicable dependency modes. For instance | |
3504 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3505 # side effect of compilation, but ICC will put the dependencies in | |
3506 # the current directory while Tru64 will put them in the object | |
3507 # directory. | |
3508 mkdir sub | |
3509 | |
3510 am_cv_CC_dependencies_compiler_type=none | |
3511 if test "$am_compiler_list" = ""; then | |
3512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3513 fi | |
3514 for depmode in $am_compiler_list; do | |
3515 # Setup a source with many dependencies, because some compilers | |
3516 # like to wrap large dependency lists on column 80 (with \), and | |
3517 # we should not choose a depcomp mode which is confused by this. | |
3518 # | |
3519 # We need to recreate these files for each test, as the compiler may | |
3520 # overwrite some of them when testing with obscure command lines. | |
3521 # This happens at least with the AIX C compiler. | |
3522 : > sub/conftest.c | |
3523 for i in 1 2 3 4 5 6; do | |
3524 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3525 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3526 # Solaris 8's {/usr,}/bin/sh. | |
3527 touch sub/conftst$i.h | |
3528 done | |
3529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3530 | |
3531 case $depmode in | |
3532 nosideeffect) | |
3533 # after this tag, mechanisms are not by side-effect, so they'll | |
3534 # only be used when explicitly requested | |
3535 if test "x$enable_dependency_tracking" = xyes; then | |
3536 continue | |
3537 else | |
3538 break | |
3539 fi | |
3540 ;; | |
3541 none) break ;; | |
3542 esac | |
3543 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3544 # mode. It turns out that the SunPro C++ compiler does not properly | |
3545 # handle `-M -o', and we need to detect this. | |
3546 if depmode=$depmode \ | |
3547 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3549 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3550 >/dev/null 2>conftest.err && | |
3551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3553 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3555 # icc doesn't choke on unknown options, it will just issue warnings | |
3556 # or remarks (even with -Werror). So we grep stderr for any message | |
3557 # that says an option was ignored or not supported. | |
3558 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3559 # icc: Command line warning: ignoring option '-M'; no argument required | |
3560 # The diagnosis changed in icc 8.0: | |
3561 # icc: Command line remark: option '-MP' not supported | |
3562 if (grep 'ignoring option' conftest.err || | |
3563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3564 am_cv_CC_dependencies_compiler_type=$depmode | |
3565 break | |
3566 fi | |
3567 fi | |
3568 done | |
3569 | |
3570 cd .. | |
3571 rm -rf conftest.dir | |
3572 else | |
3573 am_cv_CC_dependencies_compiler_type=none | |
3574 fi | |
3575 | |
3576 fi | |
3577 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3578 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
3579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3580 | |
3581 if | |
3582 test "x$enable_dependency_tracking" != xno \ | |
3583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3584 am__fastdepCC_TRUE= | |
3585 am__fastdepCC_FALSE='#' | |
3586 else | |
3587 am__fastdepCC_TRUE='#' | |
3588 am__fastdepCC_FALSE= | |
3589 fi | |
3590 | |
3591 | |
3592 case `pwd` in | |
3593 *\ * | *\ *) | |
3594 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
3595 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
3596 esac | |
3597 | |
3598 | |
3599 | |
3600 macro_version='2.2.4' | |
3601 macro_revision='1.2976' | |
3602 | |
3603 | |
3604 | |
3605 | |
3606 | |
3607 | |
3608 | |
3609 | |
3610 | |
3611 | |
3612 | |
3613 | |
3614 | |
3615 ltmain="$ac_aux_dir/ltmain.sh" | |
3616 | |
3617 # Make sure we can run config.sub. | |
3618 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3619 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
3620 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
3621 { (exit 1); exit 1; }; } | |
3622 | |
3623 { echo "$as_me:$LINENO: checking build system type" >&5 | |
3624 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
3625 if test "${ac_cv_build+set}" = set; then | |
3626 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3627 else | |
3628 ac_build_alias=$build_alias | |
3629 test "x$ac_build_alias" = x && | |
3630 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3631 test "x$ac_build_alias" = x && | |
3632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3634 { (exit 1); exit 1; }; } | |
3635 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3636 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
3637 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
3638 { (exit 1); exit 1; }; } | |
3639 | |
3640 fi | |
3641 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3642 echo "${ECHO_T}$ac_cv_build" >&6; } | |
3643 case $ac_cv_build in | |
3644 *-*-*) ;; | |
3645 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
3646 echo "$as_me: error: invalid value of canonical build" >&2;} | |
3647 { (exit 1); exit 1; }; };; | |
3648 esac | |
3649 build=$ac_cv_build | |
3650 ac_save_IFS=$IFS; IFS='-' | |
3651 set x $ac_cv_build | |
3652 shift | |
3653 build_cpu=$1 | |
3654 build_vendor=$2 | |
3655 shift; shift | |
3656 # Remember, the first character of IFS is used to create $*, | |
3657 # except with old shells: | |
3658 build_os=$* | |
3659 IFS=$ac_save_IFS | |
3660 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3661 | |
3662 | |
3663 { echo "$as_me:$LINENO: checking host system type" >&5 | |
3664 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
3665 if test "${ac_cv_host+set}" = set; then | |
3666 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3667 else | |
3668 if test "x$host_alias" = x; then | |
3669 ac_cv_host=$ac_cv_build | |
3670 else | |
3671 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3672 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
3673 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
3674 { (exit 1); exit 1; }; } | |
3675 fi | |
3676 | |
3677 fi | |
3678 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3679 echo "${ECHO_T}$ac_cv_host" >&6; } | |
3680 case $ac_cv_host in | |
3681 *-*-*) ;; | |
3682 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
3683 echo "$as_me: error: invalid value of canonical host" >&2;} | |
3684 { (exit 1); exit 1; }; };; | |
3685 esac | |
3686 host=$ac_cv_host | |
3687 ac_save_IFS=$IFS; IFS='-' | |
3688 set x $ac_cv_host | |
3689 shift | |
3690 host_cpu=$1 | |
3691 host_vendor=$2 | |
3692 shift; shift | |
3693 # Remember, the first character of IFS is used to create $*, | |
3694 # except with old shells: | |
3695 host_os=$* | |
3696 IFS=$ac_save_IFS | |
3697 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3698 | |
3699 | |
3700 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
3701 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
3702 if test "${ac_cv_path_SED+set}" = set; then | |
3703 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3704 else | |
3705 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
3706 for ac_i in 1 2 3 4 5 6 7; do | |
3707 ac_script="$ac_script$as_nl$ac_script" | |
3708 done | |
3709 echo "$ac_script" | sed 99q >conftest.sed | |
3710 $as_unset ac_script || ac_script= | |
3711 # Extract the first word of "sed gsed" to use in msg output | |
3712 if test -z "$SED"; then | |
3713 set dummy sed gsed; ac_prog_name=$2 | |
3714 if test "${ac_cv_path_SED+set}" = set; then | |
3715 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3716 else | |
3717 ac_path_SED_found=false | |
3718 # Loop through the user's path and test for each of PROGNAME-LIST | |
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3720 for as_dir in $PATH | |
3721 do | |
3722 IFS=$as_save_IFS | |
3723 test -z "$as_dir" && as_dir=. | |
3724 for ac_prog in sed gsed; do | |
3725 for ac_exec_ext in '' $ac_executable_extensions; do | |
3726 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
3727 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3728 # Check for GNU ac_path_SED and select it if it is found. | |
3729 # Check for GNU $ac_path_SED | |
3730 case `"$ac_path_SED" --version 2>&1` in | |
3731 *GNU*) | |
3732 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3733 *) | |
3734 ac_count=0 | |
3735 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3736 while : | |
3737 do | |
3738 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3739 mv "conftest.tmp" "conftest.in" | |
3740 cp "conftest.in" "conftest.nl" | |
3741 echo '' >> "conftest.nl" | |
3742 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3744 ac_count=`expr $ac_count + 1` | |
3745 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3746 # Best one so far, save it but keep looking for a better one | |
3747 ac_cv_path_SED="$ac_path_SED" | |
3748 ac_path_SED_max=$ac_count | |
3749 fi | |
3750 # 10*(2^10) chars as input seems more than enough | |
3751 test $ac_count -gt 10 && break | |
3752 done | |
3753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3754 esac | |
3755 | |
3756 | |
3757 $ac_path_SED_found && break 3 | |
3758 done | |
3759 done | |
3760 | |
3761 done | |
3762 IFS=$as_save_IFS | |
3763 | |
3764 | |
3765 fi | |
3766 | |
3767 SED="$ac_cv_path_SED" | |
3768 if test -z "$SED"; then | |
3769 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 | |
3770 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} | |
3771 { (exit 1); exit 1; }; } | |
3772 fi | |
3773 | |
3774 else | |
3775 ac_cv_path_SED=$SED | |
3776 fi | |
3777 | |
3778 fi | |
3779 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | |
3780 echo "${ECHO_T}$ac_cv_path_SED" >&6; } | |
3781 SED="$ac_cv_path_SED" | |
3782 rm -f conftest.sed | |
3783 | |
3784 test -z "$SED" && SED=sed | |
3785 Xsed="$SED -e 1s/^X//" | |
3786 | |
3787 | |
3788 | |
3789 | |
3790 | |
3791 | |
3792 | |
3793 | |
3794 | |
3795 | |
3796 | |
3797 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
3798 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3799 if test "${ac_cv_path_GREP+set}" = set; then | |
3800 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3801 else | |
3802 # Extract the first word of "grep ggrep" to use in msg output | |
3803 if test -z "$GREP"; then | |
3804 set dummy grep ggrep; ac_prog_name=$2 | |
3805 if test "${ac_cv_path_GREP+set}" = set; then | |
3806 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3807 else | |
3808 ac_path_GREP_found=false | |
3809 # Loop through the user's path and test for each of PROGNAME-LIST | |
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3812 do | |
3813 IFS=$as_save_IFS | |
3814 test -z "$as_dir" && as_dir=. | |
3815 for ac_prog in grep ggrep; do | |
3816 for ac_exec_ext in '' $ac_executable_extensions; do | |
3817 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3818 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3819 # Check for GNU ac_path_GREP and select it if it is found. | |
3820 # Check for GNU $ac_path_GREP | |
3821 case `"$ac_path_GREP" --version 2>&1` in | |
3822 *GNU*) | |
3823 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3824 *) | |
3825 ac_count=0 | |
3826 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3827 while : | |
3828 do | |
3829 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3830 mv "conftest.tmp" "conftest.in" | |
3831 cp "conftest.in" "conftest.nl" | |
3832 echo 'GREP' >> "conftest.nl" | |
3833 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3835 ac_count=`expr $ac_count + 1` | |
3836 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3837 # Best one so far, save it but keep looking for a better one | |
3838 ac_cv_path_GREP="$ac_path_GREP" | |
3839 ac_path_GREP_max=$ac_count | |
3840 fi | |
3841 # 10*(2^10) chars as input seems more than enough | |
3842 test $ac_count -gt 10 && break | |
3843 done | |
3844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3845 esac | |
3846 | |
3847 | |
3848 $ac_path_GREP_found && break 3 | |
3849 done | |
3850 done | |
3851 | |
3852 done | |
3853 IFS=$as_save_IFS | |
3854 | |
3855 | |
3856 fi | |
3857 | |
3858 GREP="$ac_cv_path_GREP" | |
3859 if test -z "$GREP"; then | |
3860 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3861 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3862 { (exit 1); exit 1; }; } | |
3863 fi | |
3864 | |
3865 else | |
3866 ac_cv_path_GREP=$GREP | |
3867 fi | |
3868 | |
3869 | |
3870 fi | |
3871 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3872 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3873 GREP="$ac_cv_path_GREP" | |
3874 | |
3875 | |
3876 { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3877 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3878 if test "${ac_cv_path_EGREP+set}" = set; then | |
3879 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3880 else | |
3881 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3882 then ac_cv_path_EGREP="$GREP -E" | |
3883 else | |
3884 # Extract the first word of "egrep" to use in msg output | |
3885 if test -z "$EGREP"; then | |
3886 set dummy egrep; ac_prog_name=$2 | |
3887 if test "${ac_cv_path_EGREP+set}" = set; then | |
3888 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3889 else | |
3890 ac_path_EGREP_found=false | |
3891 # Loop through the user's path and test for each of PROGNAME-LIST | |
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3894 do | |
3895 IFS=$as_save_IFS | |
3896 test -z "$as_dir" && as_dir=. | |
3897 for ac_prog in egrep; do | |
3898 for ac_exec_ext in '' $ac_executable_extensions; do | |
3899 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3900 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3901 # Check for GNU ac_path_EGREP and select it if it is found. | |
3902 # Check for GNU $ac_path_EGREP | |
3903 case `"$ac_path_EGREP" --version 2>&1` in | |
3904 *GNU*) | |
3905 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3906 *) | |
3907 ac_count=0 | |
3908 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3909 while : | |
3910 do | |
3911 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3912 mv "conftest.tmp" "conftest.in" | |
3913 cp "conftest.in" "conftest.nl" | |
3914 echo 'EGREP' >> "conftest.nl" | |
3915 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3917 ac_count=`expr $ac_count + 1` | |
3918 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3919 # Best one so far, save it but keep looking for a better one | |
3920 ac_cv_path_EGREP="$ac_path_EGREP" | |
3921 ac_path_EGREP_max=$ac_count | |
3922 fi | |
3923 # 10*(2^10) chars as input seems more than enough | |
3924 test $ac_count -gt 10 && break | |
3925 done | |
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3927 esac | |
3928 | |
3929 | |
3930 $ac_path_EGREP_found && break 3 | |
3931 done | |
3932 done | |
3933 | |
3934 done | |
3935 IFS=$as_save_IFS | |
3936 | |
3937 | |
3938 fi | |
3939 | |
3940 EGREP="$ac_cv_path_EGREP" | |
3941 if test -z "$EGREP"; then | |
3942 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3943 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3944 { (exit 1); exit 1; }; } | |
3945 fi | |
3946 | |
3947 else | |
3948 ac_cv_path_EGREP=$EGREP | |
3949 fi | |
3950 | |
3951 | |
3952 fi | |
3953 fi | |
3954 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3955 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3956 EGREP="$ac_cv_path_EGREP" | |
3957 | |
3958 | |
3959 { echo "$as_me:$LINENO: checking for fgrep" >&5 | |
3960 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } | |
3961 if test "${ac_cv_path_FGREP+set}" = set; then | |
3962 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3963 else | |
3964 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
3965 then ac_cv_path_FGREP="$GREP -F" | |
3966 else | |
3967 # Extract the first word of "fgrep" to use in msg output | |
3968 if test -z "$FGREP"; then | |
3969 set dummy fgrep; ac_prog_name=$2 | |
3970 if test "${ac_cv_path_FGREP+set}" = set; then | |
3971 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3972 else | |
3973 ac_path_FGREP_found=false | |
3974 # Loop through the user's path and test for each of PROGNAME-LIST | |
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3977 do | |
3978 IFS=$as_save_IFS | |
3979 test -z "$as_dir" && as_dir=. | |
3980 for ac_prog in fgrep; do | |
3981 for ac_exec_ext in '' $ac_executable_extensions; do | |
3982 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3983 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
3984 # Check for GNU ac_path_FGREP and select it if it is found. | |
3985 # Check for GNU $ac_path_FGREP | |
3986 case `"$ac_path_FGREP" --version 2>&1` in | |
3987 *GNU*) | |
3988 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
3989 *) | |
3990 ac_count=0 | |
3991 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3992 while : | |
3993 do | |
3994 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3995 mv "conftest.tmp" "conftest.in" | |
3996 cp "conftest.in" "conftest.nl" | |
3997 echo 'FGREP' >> "conftest.nl" | |
3998 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4000 ac_count=`expr $ac_count + 1` | |
4001 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4002 # Best one so far, save it but keep looking for a better one | |
4003 ac_cv_path_FGREP="$ac_path_FGREP" | |
4004 ac_path_FGREP_max=$ac_count | |
4005 fi | |
4006 # 10*(2^10) chars as input seems more than enough | |
4007 test $ac_count -gt 10 && break | |
4008 done | |
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4010 esac | |
4011 | |
4012 | |
4013 $ac_path_FGREP_found && break 3 | |
4014 done | |
4015 done | |
4016 | |
4017 done | |
4018 IFS=$as_save_IFS | |
4019 | |
4020 | |
4021 fi | |
4022 | |
4023 FGREP="$ac_cv_path_FGREP" | |
4024 if test -z "$FGREP"; then | |
4025 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4026 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4027 { (exit 1); exit 1; }; } | |
4028 fi | |
4029 | |
4030 else | |
4031 ac_cv_path_FGREP=$FGREP | |
4032 fi | |
4033 | |
4034 | |
4035 fi | |
4036 fi | |
4037 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 | |
4038 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } | |
4039 FGREP="$ac_cv_path_FGREP" | |
4040 | |
4041 | |
4042 test -z "$GREP" && GREP=grep | |
4043 | |
4044 | |
4045 | |
4046 | |
4047 | |
4048 | |
4049 | |
4050 | |
4051 | |
4052 | |
4053 | |
4054 | |
4055 | |
4056 | |
4057 | |
4058 | |
4059 | |
4060 | |
4061 | |
4062 # Check whether --with-gnu-ld was given. | |
4063 if test "${with_gnu_ld+set}" = set; then | |
4064 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4065 else | |
4066 with_gnu_ld=no | |
4067 fi | |
4068 | |
4069 ac_prog=ld | |
4070 if test "$GCC" = yes; then | |
4071 # Check if gcc -print-prog-name=ld gives a path. | |
4072 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
4073 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
4074 case $host in | |
4075 *-*-mingw*) | |
4076 # gcc leaves a trailing carriage return which upsets mingw | |
4077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4078 *) | |
4079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4080 esac | |
4081 case $ac_prog in | |
4082 # Accept absolute paths. | |
4083 [\\/]* | ?:[\\/]*) | |
4084 re_direlt='/[^/][^/]*/\.\./' | |
4085 # Canonicalize the pathname of ld | |
4086 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4087 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4088 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4089 done | |
4090 test -z "$LD" && LD="$ac_prog" | |
4091 ;; | |
4092 "") | |
4093 # If it fails, then pretend we aren't using GCC. | |
4094 ac_prog=ld | |
4095 ;; | |
4096 *) | |
4097 # If it is relative, then search for the first ld in PATH. | |
4098 with_gnu_ld=unknown | |
4099 ;; | |
4100 esac | |
4101 elif test "$with_gnu_ld" = yes; then | |
4102 { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4103 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
4104 else | |
4105 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4106 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
4107 fi | |
4108 if test "${lt_cv_path_LD+set}" = set; then | |
4109 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4110 else | |
4111 if test -z "$LD"; then | |
4112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4113 for ac_dir in $PATH; do | |
4114 IFS="$lt_save_ifs" | |
4115 test -z "$ac_dir" && ac_dir=. | |
4116 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4117 lt_cv_path_LD="$ac_dir/$ac_prog" | |
4118 # Check to see if the program is GNU ld. I'd rather use --version, | |
4119 # but apparently some variants of GNU ld only accept -v. | |
4120 # Break only if it was the GNU/non-GNU ld that we prefer. | |
4121 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4122 *GNU* | *'with BFD'*) | |
4123 test "$with_gnu_ld" != no && break | |
4124 ;; | |
4125 *) | |
4126 test "$with_gnu_ld" != yes && break | |
4127 ;; | |
4128 esac | |
4129 fi | |
4130 done | |
4131 IFS="$lt_save_ifs" | |
4132 else | |
4133 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4134 fi | |
4135 fi | |
4136 | |
4137 LD="$lt_cv_path_LD" | |
4138 if test -n "$LD"; then | |
4139 { echo "$as_me:$LINENO: result: $LD" >&5 | |
4140 echo "${ECHO_T}$LD" >&6; } | |
4141 else | |
4142 { echo "$as_me:$LINENO: result: no" >&5 | |
4143 echo "${ECHO_T}no" >&6; } | |
4144 fi | |
4145 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4146 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4147 { (exit 1); exit 1; }; } | |
4148 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4149 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
4150 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4151 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4152 else | |
4153 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4154 case `$LD -v 2>&1 </dev/null` in | |
4155 *GNU* | *'with BFD'*) | |
4156 lt_cv_prog_gnu_ld=yes | |
4157 ;; | |
4158 *) | |
4159 lt_cv_prog_gnu_ld=no | |
4160 ;; | |
4161 esac | |
4162 fi | |
4163 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
4164 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
4165 with_gnu_ld=$lt_cv_prog_gnu_ld | |
4166 | |
4167 | |
4168 | |
4169 | |
4170 | |
4171 | |
4172 | |
4173 | |
4174 | |
4175 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4176 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } | |
4177 if test "${lt_cv_path_NM+set}" = set; then | |
4178 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4179 else | |
4180 if test -n "$NM"; then | |
4181 # Let the user override the test. | |
4182 lt_cv_path_NM="$NM" | |
4183 else | |
4184 lt_nm_to_check="${ac_tool_prefix}nm" | |
4185 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4186 lt_nm_to_check="$lt_nm_to_check nm" | |
4187 fi | |
4188 for lt_tmp_nm in $lt_nm_to_check; do | |
4189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4190 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4191 IFS="$lt_save_ifs" | |
4192 test -z "$ac_dir" && ac_dir=. | |
4193 tmp_nm="$ac_dir/$lt_tmp_nm" | |
4194 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4195 # Check to see if the nm accepts a BSD-compat flag. | |
4196 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4197 # nm: unknown option "B" ignored | |
4198 # Tru64's nm complains that /dev/null is an invalid object file | |
4199 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4200 */dev/null* | *'Invalid file or object type'*) | |
4201 lt_cv_path_NM="$tmp_nm -B" | |
4202 break | |
4203 ;; | |
4204 *) | |
4205 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4206 */dev/null*) | |
4207 lt_cv_path_NM="$tmp_nm -p" | |
4208 break | |
4209 ;; | |
4210 *) | |
4211 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4212 continue # so that we can try to find one that supports BSD flags | |
4213 ;; | |
4214 esac | |
4215 ;; | |
4216 esac | |
4217 fi | |
4218 done | |
4219 IFS="$lt_save_ifs" | |
4220 done | |
4221 : ${lt_cv_path_NM=no} | |
4222 fi | |
4223 fi | |
4224 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4225 echo "${ECHO_T}$lt_cv_path_NM" >&6; } | |
4226 if test "$lt_cv_path_NM" != "no"; then | |
4227 NM="$lt_cv_path_NM" | |
4228 else | |
4229 # Didn't find any BSD compatible name lister, look for dumpbin. | |
4230 if test -n "$ac_tool_prefix"; then | |
4231 for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4232 do | |
4233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4235 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4237 if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4238 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4239 else | |
4240 if test -n "$DUMPBIN"; then | |
4241 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4242 else | |
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4244 for as_dir in $PATH | |
4245 do | |
4246 IFS=$as_save_IFS | |
4247 test -z "$as_dir" && as_dir=. | |
4248 for ac_exec_ext in '' $ac_executable_extensions; do | |
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4250 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4252 break 2 | |
4253 fi | |
4254 done | |
4255 done | |
4256 IFS=$as_save_IFS | |
4257 | |
4258 fi | |
4259 fi | |
4260 DUMPBIN=$ac_cv_prog_DUMPBIN | |
4261 if test -n "$DUMPBIN"; then | |
4262 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4263 echo "${ECHO_T}$DUMPBIN" >&6; } | |
4264 else | |
4265 { echo "$as_me:$LINENO: result: no" >&5 | |
4266 echo "${ECHO_T}no" >&6; } | |
4267 fi | |
4268 | |
4269 | |
4270 test -n "$DUMPBIN" && break | |
4271 done | |
4272 fi | |
4273 if test -z "$DUMPBIN"; then | |
4274 ac_ct_DUMPBIN=$DUMPBIN | |
4275 for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4276 do | |
4277 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4278 set dummy $ac_prog; ac_word=$2 | |
4279 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4281 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4282 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4283 else | |
4284 if test -n "$ac_ct_DUMPBIN"; then | |
4285 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4286 else | |
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4288 for as_dir in $PATH | |
4289 do | |
4290 IFS=$as_save_IFS | |
4291 test -z "$as_dir" && as_dir=. | |
4292 for ac_exec_ext in '' $ac_executable_extensions; do | |
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4294 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4296 break 2 | |
4297 fi | |
4298 done | |
4299 done | |
4300 IFS=$as_save_IFS | |
4301 | |
4302 fi | |
4303 fi | |
4304 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4305 if test -n "$ac_ct_DUMPBIN"; then | |
4306 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4307 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } | |
4308 else | |
4309 { echo "$as_me:$LINENO: result: no" >&5 | |
4310 echo "${ECHO_T}no" >&6; } | |
4311 fi | |
4312 | |
4313 | |
4314 test -n "$ac_ct_DUMPBIN" && break | |
4315 done | |
4316 | |
4317 if test "x$ac_ct_DUMPBIN" = x; then | |
4318 DUMPBIN=":" | |
4319 else | |
4320 case $cross_compiling:$ac_tool_warned in | |
4321 yes:) | |
4322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4323 whose name does not start with the host triplet. If you think this | |
4324 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4326 whose name does not start with the host triplet. If you think this | |
4327 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4328 ac_tool_warned=yes ;; | |
4329 esac | |
4330 DUMPBIN=$ac_ct_DUMPBIN | |
4331 fi | |
4332 fi | |
4333 | |
4334 | |
4335 if test "$DUMPBIN" != ":"; then | |
4336 NM="$DUMPBIN" | |
4337 fi | |
4338 fi | |
4339 test -z "$NM" && NM=nm | |
4340 | |
4341 | |
4342 | |
4343 | |
4344 | |
4345 | |
4346 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 | |
4347 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } | |
4348 if test "${lt_cv_nm_interface+set}" = set; then | |
4349 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4350 else | |
4351 lt_cv_nm_interface="BSD nm" | |
4352 echo "int some_variable = 0;" > conftest.$ac_ext | |
4353 (eval echo "\"\$as_me:4353: $ac_compile\"" >&5) | |
4354 (eval "$ac_compile" 2>conftest.err) | |
4355 cat conftest.err >&5 | |
4356 (eval echo "\"\$as_me:4356: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4357 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4358 cat conftest.err >&5 | |
4359 (eval echo "\"\$as_me:4359: output\"" >&5) | |
4360 cat conftest.out >&5 | |
4361 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4362 lt_cv_nm_interface="MS dumpbin" | |
4363 fi | |
4364 rm -f conftest* | |
4365 fi | |
4366 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4367 echo "${ECHO_T}$lt_cv_nm_interface" >&6; } | |
4368 | |
4369 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4370 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
4371 LN_S=$as_ln_s | |
4372 if test "$LN_S" = "ln -s"; then | |
4373 { echo "$as_me:$LINENO: result: yes" >&5 | |
4374 echo "${ECHO_T}yes" >&6; } | |
4375 else | |
4376 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4377 echo "${ECHO_T}no, using $LN_S" >&6; } | |
4378 fi | |
4379 | |
4380 # find the maximum length of command line arguments | |
4381 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4382 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | |
4383 if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4384 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4385 else | |
4386 i=0 | |
4387 teststring="ABCD" | |
4388 | |
4389 case $build_os in | |
4390 msdosdjgpp*) | |
4391 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4392 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4393 # during glob expansion). Even if it were fixed, the result of this | |
4394 # check would be larger than it should be. | |
4395 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4396 ;; | |
4397 | |
4398 gnu*) | |
4399 # Under GNU Hurd, this test is not required because there is | |
4400 # no limit to the length of command line arguments. | |
4401 # Libtool will interpret -1 as no limit whatsoever | |
4402 lt_cv_sys_max_cmd_len=-1; | |
4403 ;; | |
4404 | |
4405 cygwin* | mingw*) | |
4406 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4407 # about 5 minutes as the teststring grows exponentially. | |
4408 # Worse, since 9x/ME are not pre-emptively multitasking, | |
4409 # you end up with a "frozen" computer, even though with patience | |
4410 # the test eventually succeeds (with a max line length of 256k). | |
4411 # Instead, let's just punt: use the minimum linelength reported by | |
4412 # all of the supported platforms: 8192 (on NT/2K/XP). | |
4413 lt_cv_sys_max_cmd_len=8192; | |
4414 ;; | |
4415 | |
4416 amigaos*) | |
4417 # On AmigaOS with pdksh, this test takes hours, literally. | |
4418 # So we just punt and use a minimum line length of 8192. | |
4419 lt_cv_sys_max_cmd_len=8192; | |
4420 ;; | |
4421 | |
4422 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4423 # This has been around since 386BSD, at least. Likely further. | |
4424 if test -x /sbin/sysctl; then | |
4425 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4426 elif test -x /usr/sbin/sysctl; then | |
4427 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4428 else | |
4429 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4430 fi | |
4431 # And add a safety zone | |
4432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4434 ;; | |
4435 | |
4436 interix*) | |
4437 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4438 lt_cv_sys_max_cmd_len=196608 | |
4439 ;; | |
4440 | |
4441 osf*) | |
4442 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4443 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4444 # nice to cause kernel panics so lets avoid the loop below. | |
4445 # First set a reasonable default. | |
4446 lt_cv_sys_max_cmd_len=16384 | |
4447 # | |
4448 if test -x /sbin/sysconfig; then | |
4449 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4450 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4451 esac | |
4452 fi | |
4453 ;; | |
4454 sco3.2v5*) | |
4455 lt_cv_sys_max_cmd_len=102400 | |
4456 ;; | |
4457 sysv5* | sco5v6* | sysv4.2uw2*) | |
4458 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4459 if test -n "$kargmax"; then | |
4460 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4461 else | |
4462 lt_cv_sys_max_cmd_len=32768 | |
4463 fi | |
4464 ;; | |
4465 *) | |
4466 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4467 if test -n "$lt_cv_sys_max_cmd_len"; then | |
4468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4470 else | |
4471 # Make teststring a little bigger before we do anything with it. | |
4472 # a 1K string should be a reasonable start. | |
4473 for i in 1 2 3 4 5 6 7 8 ; do | |
4474 teststring=$teststring$teststring | |
4475 done | |
4476 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4477 # If test is not a shell built-in, we'll probably end up computing a | |
4478 # maximum length that is only half of the actual maximum length, but | |
4479 # we can't tell. | |
4480 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4481 = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4482 test $i != 17 # 1/2 MB should be enough | |
4483 do | |
4484 i=`expr $i + 1` | |
4485 teststring=$teststring$teststring | |
4486 done | |
4487 # Only check the string length outside the loop. | |
4488 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4489 teststring= | |
4490 # Add a significant safety factor because C++ compilers can tack on | |
4491 # massive amounts of additional arguments before passing them to the | |
4492 # linker. It appears as though 1/2 is a usable value. | |
4493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4494 fi | |
4495 ;; | |
4496 esac | |
4497 | |
4498 fi | |
4499 | |
4500 if test -n $lt_cv_sys_max_cmd_len ; then | |
4501 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4502 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | |
4503 else | |
4504 { echo "$as_me:$LINENO: result: none" >&5 | |
4505 echo "${ECHO_T}none" >&6; } | |
4506 fi | |
4507 max_cmd_len=$lt_cv_sys_max_cmd_len | |
4508 | |
4509 | |
4510 | |
4511 | |
4512 | |
4513 | |
4514 : ${CP="cp -f"} | |
4515 : ${MV="mv -f"} | |
4516 : ${RM="rm -f"} | |
4517 | |
4518 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4519 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } | |
4520 # Try some XSI features | |
4521 xsi_shell=no | |
4522 ( _lt_dummy="a/b/c" | |
4523 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4524 = c,a/b,, \ | |
4525 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4526 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4527 && xsi_shell=yes | |
4528 { echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4529 echo "${ECHO_T}$xsi_shell" >&6; } | |
4530 | |
4531 | |
4532 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
4533 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } | |
4534 lt_shell_append=no | |
4535 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4536 >/dev/null 2>&1 \ | |
4537 && lt_shell_append=yes | |
4538 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4539 echo "${ECHO_T}$lt_shell_append" >&6; } | |
4540 | |
4541 | |
4542 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4543 lt_unset=unset | |
4544 else | |
4545 lt_unset=false | |
4546 fi | |
4547 | |
4548 | |
4549 | |
4550 | |
4551 | |
4552 # test EBCDIC or ASCII | |
4553 case `echo X|tr X '\101'` in | |
4554 A) # ASCII based system | |
4555 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4556 lt_SP2NL='tr \040 \012' | |
4557 lt_NL2SP='tr \015\012 \040\040' | |
4558 ;; | |
4559 *) # EBCDIC based system | |
4560 lt_SP2NL='tr \100 \n' | |
4561 lt_NL2SP='tr \r\n \100\100' | |
4562 ;; | |
4563 esac | |
4564 | |
4565 | |
4566 | |
4567 | |
4568 | |
4569 | |
4570 | |
4571 | |
4572 | |
4573 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4574 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | |
4575 if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4576 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4577 else | |
4578 lt_cv_ld_reload_flag='-r' | |
4579 fi | |
4580 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4581 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | |
4582 reload_flag=$lt_cv_ld_reload_flag | |
4583 case $reload_flag in | |
4584 "" | " "*) ;; | |
4585 *) reload_flag=" $reload_flag" ;; | |
4586 esac | |
4587 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4588 case $host_os in | |
4589 darwin*) | |
4590 if test "$GCC" = yes; then | |
4591 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4592 else | |
4593 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4594 fi | |
4595 ;; | |
4596 esac | |
4597 | |
4598 | |
4599 | |
4600 | |
4601 | |
4602 | |
4603 | |
4604 | |
4605 | |
4606 | |
4607 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4608 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } | |
4609 if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4610 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4611 else | |
4612 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4613 lt_cv_file_magic_test_file= | |
4614 lt_cv_deplibs_check_method='unknown' | |
4615 # Need to set the preceding variable on all platforms that support | |
4616 # interlibrary dependencies. | |
4617 # 'none' -- dependencies not supported. | |
4618 # `unknown' -- same as none, but documents that we really don't know. | |
4619 # 'pass_all' -- all dependencies passed with no checks. | |
4620 # 'test_compile' -- check by making test program. | |
4621 # 'file_magic [[regex]]' -- check by looking for files in library path | |
4622 # which responds to the $file_magic_cmd with a given extended regex. | |
4623 # If you have `file' or equivalent on your system and you're not sure | |
4624 # whether `pass_all' will *always* work, you probably want this one. | |
4625 | |
4626 case $host_os in | |
4627 aix[4-9]*) | |
4628 lt_cv_deplibs_check_method=pass_all | |
4629 ;; | |
4630 | |
4631 beos*) | |
4632 lt_cv_deplibs_check_method=pass_all | |
4633 ;; | |
4634 | |
4635 bsdi[45]*) | |
4636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4637 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4638 lt_cv_file_magic_test_file=/shlib/libc.so | |
4639 ;; | |
4640 | |
4641 cygwin*) | |
4642 # func_win32_libid is a shell function defined in ltmain.sh | |
4643 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4644 lt_cv_file_magic_cmd='func_win32_libid' | |
4645 ;; | |
4646 | |
4647 mingw* | pw32*) | |
4648 # Base MSYS/MinGW do not provide the 'file' command needed by | |
4649 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4650 # unless we find 'file', for example because we are cross-compiling. | |
4651 if ( file / ) >/dev/null 2>&1; then | |
4652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4653 lt_cv_file_magic_cmd='func_win32_libid' | |
4654 else | |
4655 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4656 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4657 fi | |
4658 ;; | |
4659 | |
4660 darwin* | rhapsody*) | |
4661 lt_cv_deplibs_check_method=pass_all | |
4662 ;; | |
4663 | |
4664 freebsd* | dragonfly*) | |
4665 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4666 case $host_cpu in | |
4667 i*86 ) | |
4668 # Not sure whether the presence of OpenBSD here was a mistake. | |
4669 # Let's accept both of them until this is cleared up. | |
4670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4671 lt_cv_file_magic_cmd=/usr/bin/file | |
4672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4673 ;; | |
4674 esac | |
4675 else | |
4676 lt_cv_deplibs_check_method=pass_all | |
4677 fi | |
4678 ;; | |
4679 | |
4680 gnu*) | |
4681 lt_cv_deplibs_check_method=pass_all | |
4682 ;; | |
4683 | |
4684 hpux10.20* | hpux11*) | |
4685 lt_cv_file_magic_cmd=/usr/bin/file | |
4686 case $host_cpu in | |
4687 ia64*) | |
4688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4689 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4690 ;; | |
4691 hppa*64*) | |
4692 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]' | |
4693 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4694 ;; | |
4695 *) | |
4696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4697 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4698 ;; | |
4699 esac | |
4700 ;; | |
4701 | |
4702 interix[3-9]*) | |
4703 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4705 ;; | |
4706 | |
4707 irix5* | irix6* | nonstopux*) | |
4708 case $LD in | |
4709 *-32|*"-32 ") libmagic=32-bit;; | |
4710 *-n32|*"-n32 ") libmagic=N32;; | |
4711 *-64|*"-64 ") libmagic=64-bit;; | |
4712 *) libmagic=never-match;; | |
4713 esac | |
4714 lt_cv_deplibs_check_method=pass_all | |
4715 ;; | |
4716 | |
4717 # This must be Linux ELF. | |
4718 linux* | k*bsd*-gnu) | |
4719 lt_cv_deplibs_check_method=pass_all | |
4720 ;; | |
4721 | |
4722 netbsd* | netbsdelf*-gnu) | |
4723 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4725 else | |
4726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4727 fi | |
4728 ;; | |
4729 | |
4730 newos6*) | |
4731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4732 lt_cv_file_magic_cmd=/usr/bin/file | |
4733 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4734 ;; | |
4735 | |
4736 *nto* | *qnx*) | |
4737 lt_cv_deplibs_check_method=pass_all | |
4738 ;; | |
4739 | |
4740 openbsd*) | |
4741 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4743 else | |
4744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4745 fi | |
4746 ;; | |
4747 | |
4748 osf3* | osf4* | osf5*) | |
4749 lt_cv_deplibs_check_method=pass_all | |
4750 ;; | |
4751 | |
4752 rdos*) | |
4753 lt_cv_deplibs_check_method=pass_all | |
4754 ;; | |
4755 | |
4756 solaris*) | |
4757 lt_cv_deplibs_check_method=pass_all | |
4758 ;; | |
4759 | |
4760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4761 lt_cv_deplibs_check_method=pass_all | |
4762 ;; | |
4763 | |
4764 sysv4 | sysv4.3*) | |
4765 case $host_vendor in | |
4766 motorola) | |
4767 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]' | |
4768 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4769 ;; | |
4770 ncr) | |
4771 lt_cv_deplibs_check_method=pass_all | |
4772 ;; | |
4773 sequent) | |
4774 lt_cv_file_magic_cmd='/bin/file' | |
4775 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4776 ;; | |
4777 sni) | |
4778 lt_cv_file_magic_cmd='/bin/file' | |
4779 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4780 lt_cv_file_magic_test_file=/lib/libc.so | |
4781 ;; | |
4782 siemens) | |
4783 lt_cv_deplibs_check_method=pass_all | |
4784 ;; | |
4785 pc) | |
4786 lt_cv_deplibs_check_method=pass_all | |
4787 ;; | |
4788 esac | |
4789 ;; | |
4790 | |
4791 tpf*) | |
4792 lt_cv_deplibs_check_method=pass_all | |
4793 ;; | |
4794 esac | |
4795 | |
4796 fi | |
4797 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
4798 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } | |
4799 file_magic_cmd=$lt_cv_file_magic_cmd | |
4800 deplibs_check_method=$lt_cv_deplibs_check_method | |
4801 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
4802 | |
4803 | |
4804 | |
4805 | |
4806 | |
4807 | |
4808 | |
4809 | |
4810 | |
4811 | |
4812 | |
4813 | |
4814 if test -n "$ac_tool_prefix"; then | |
4815 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4816 set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4819 if test "${ac_cv_prog_AR+set}" = set; then | |
4820 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4821 else | |
4822 if test -n "$AR"; then | |
4823 ac_cv_prog_AR="$AR" # Let the user override the test. | |
4824 else | |
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4826 for as_dir in $PATH | |
4827 do | |
4828 IFS=$as_save_IFS | |
4829 test -z "$as_dir" && as_dir=. | |
4830 for ac_exec_ext in '' $ac_executable_extensions; do | |
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4832 ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4834 break 2 | |
4835 fi | |
4836 done | |
4837 done | |
4838 IFS=$as_save_IFS | |
4839 | |
4840 fi | |
4841 fi | |
4842 AR=$ac_cv_prog_AR | |
4843 if test -n "$AR"; then | |
4844 { echo "$as_me:$LINENO: result: $AR" >&5 | |
4845 echo "${ECHO_T}$AR" >&6; } | |
4846 else | |
4847 { echo "$as_me:$LINENO: result: no" >&5 | |
4848 echo "${ECHO_T}no" >&6; } | |
4849 fi | |
4850 | |
4851 | |
4852 fi | |
4853 if test -z "$ac_cv_prog_AR"; then | |
4854 ac_ct_AR=$AR | |
4855 # Extract the first word of "ar", so it can be a program name with args. | |
4856 set dummy ar; ac_word=$2 | |
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4859 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
4860 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4861 else | |
4862 if test -n "$ac_ct_AR"; then | |
4863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4864 else | |
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4866 for as_dir in $PATH | |
4867 do | |
4868 IFS=$as_save_IFS | |
4869 test -z "$as_dir" && as_dir=. | |
4870 for ac_exec_ext in '' $ac_executable_extensions; do | |
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4872 ac_cv_prog_ac_ct_AR="ar" | |
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4874 break 2 | |
4875 fi | |
4876 done | |
4877 done | |
4878 IFS=$as_save_IFS | |
4879 | |
4880 fi | |
4881 fi | |
4882 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4883 if test -n "$ac_ct_AR"; then | |
4884 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
4885 echo "${ECHO_T}$ac_ct_AR" >&6; } | |
4886 else | |
4887 { echo "$as_me:$LINENO: result: no" >&5 | |
4888 echo "${ECHO_T}no" >&6; } | |
4889 fi | |
4890 | |
4891 if test "x$ac_ct_AR" = x; then | |
4892 AR="false" | |
4893 else | |
4894 case $cross_compiling:$ac_tool_warned in | |
4895 yes:) | |
4896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4897 whose name does not start with the host triplet. If you think this | |
4898 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4900 whose name does not start with the host triplet. If you think this | |
4901 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4902 ac_tool_warned=yes ;; | |
4903 esac | |
4904 AR=$ac_ct_AR | |
4905 fi | |
4906 else | |
4907 AR="$ac_cv_prog_AR" | |
4908 fi | |
4909 | |
4910 test -z "$AR" && AR=ar | |
4911 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4912 | |
4913 | |
4914 | |
4915 | |
4916 | |
4917 | |
4918 | |
4919 | |
4920 | |
4921 | |
4922 | |
4923 if test -n "$ac_tool_prefix"; then | |
4924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4925 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4926 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4928 if test "${ac_cv_prog_STRIP+set}" = set; then | |
4929 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4930 else | |
4931 if test -n "$STRIP"; then | |
4932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4933 else | |
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4935 for as_dir in $PATH | |
4936 do | |
4937 IFS=$as_save_IFS | |
4938 test -z "$as_dir" && as_dir=. | |
4939 for ac_exec_ext in '' $ac_executable_extensions; do | |
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4941 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4943 break 2 | |
4944 fi | |
4945 done | |
4946 done | |
4947 IFS=$as_save_IFS | |
4948 | |
4949 fi | |
4950 fi | |
4951 STRIP=$ac_cv_prog_STRIP | |
4952 if test -n "$STRIP"; then | |
4953 { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
4954 echo "${ECHO_T}$STRIP" >&6; } | |
4955 else | |
4956 { echo "$as_me:$LINENO: result: no" >&5 | |
4957 echo "${ECHO_T}no" >&6; } | |
4958 fi | |
4959 | |
4960 | |
4961 fi | |
4962 if test -z "$ac_cv_prog_STRIP"; then | |
4963 ac_ct_STRIP=$STRIP | |
4964 # Extract the first word of "strip", so it can be a program name with args. | |
4965 set dummy strip; ac_word=$2 | |
4966 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4968 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4969 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4970 else | |
4971 if test -n "$ac_ct_STRIP"; then | |
4972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4973 else | |
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4975 for as_dir in $PATH | |
4976 do | |
4977 IFS=$as_save_IFS | |
4978 test -z "$as_dir" && as_dir=. | |
4979 for ac_exec_ext in '' $ac_executable_extensions; do | |
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4981 ac_cv_prog_ac_ct_STRIP="strip" | |
4982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4983 break 2 | |
4984 fi | |
4985 done | |
4986 done | |
4987 IFS=$as_save_IFS | |
4988 | |
4989 fi | |
4990 fi | |
4991 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4992 if test -n "$ac_ct_STRIP"; then | |
4993 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4994 echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
4995 else | |
4996 { echo "$as_me:$LINENO: result: no" >&5 | |
4997 echo "${ECHO_T}no" >&6; } | |
4998 fi | |
4999 | |
5000 if test "x$ac_ct_STRIP" = x; then | |
5001 STRIP=":" | |
5002 else | |
5003 case $cross_compiling:$ac_tool_warned in | |
5004 yes:) | |
5005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5006 whose name does not start with the host triplet. If you think this | |
5007 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5009 whose name does not start with the host triplet. If you think this | |
5010 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5011 ac_tool_warned=yes ;; | |
5012 esac | |
5013 STRIP=$ac_ct_STRIP | |
5014 fi | |
5015 else | |
5016 STRIP="$ac_cv_prog_STRIP" | |
5017 fi | |
5018 | |
5019 test -z "$STRIP" && STRIP=: | |
5020 | |
5021 | |
5022 | |
5023 | |
5024 | |
5025 | |
5026 if test -n "$ac_tool_prefix"; then | |
5027 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5028 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5029 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5031 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5032 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5033 else | |
5034 if test -n "$RANLIB"; then | |
5035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5036 else | |
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5038 for as_dir in $PATH | |
5039 do | |
5040 IFS=$as_save_IFS | |
5041 test -z "$as_dir" && as_dir=. | |
5042 for ac_exec_ext in '' $ac_executable_extensions; do | |
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5044 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5046 break 2 | |
5047 fi | |
5048 done | |
5049 done | |
5050 IFS=$as_save_IFS | |
5051 | |
5052 fi | |
5053 fi | |
5054 RANLIB=$ac_cv_prog_RANLIB | |
5055 if test -n "$RANLIB"; then | |
5056 { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5057 echo "${ECHO_T}$RANLIB" >&6; } | |
5058 else | |
5059 { echo "$as_me:$LINENO: result: no" >&5 | |
5060 echo "${ECHO_T}no" >&6; } | |
5061 fi | |
5062 | |
5063 | |
5064 fi | |
5065 if test -z "$ac_cv_prog_RANLIB"; then | |
5066 ac_ct_RANLIB=$RANLIB | |
5067 # Extract the first word of "ranlib", so it can be a program name with args. | |
5068 set dummy ranlib; ac_word=$2 | |
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5071 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5072 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5073 else | |
5074 if test -n "$ac_ct_RANLIB"; then | |
5075 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5076 else | |
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5078 for as_dir in $PATH | |
5079 do | |
5080 IFS=$as_save_IFS | |
5081 test -z "$as_dir" && as_dir=. | |
5082 for ac_exec_ext in '' $ac_executable_extensions; do | |
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5084 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5086 break 2 | |
5087 fi | |
5088 done | |
5089 done | |
5090 IFS=$as_save_IFS | |
5091 | |
5092 fi | |
5093 fi | |
5094 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5095 if test -n "$ac_ct_RANLIB"; then | |
5096 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5097 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
5098 else | |
5099 { echo "$as_me:$LINENO: result: no" >&5 | |
5100 echo "${ECHO_T}no" >&6; } | |
5101 fi | |
5102 | |
5103 if test "x$ac_ct_RANLIB" = x; then | |
5104 RANLIB=":" | |
5105 else | |
5106 case $cross_compiling:$ac_tool_warned in | |
5107 yes:) | |
5108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5109 whose name does not start with the host triplet. If you think this | |
5110 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5112 whose name does not start with the host triplet. If you think this | |
5113 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5114 ac_tool_warned=yes ;; | |
5115 esac | |
5116 RANLIB=$ac_ct_RANLIB | |
5117 fi | |
5118 else | |
5119 RANLIB="$ac_cv_prog_RANLIB" | |
5120 fi | |
5121 | |
5122 test -z "$RANLIB" && RANLIB=: | |
5123 | |
5124 | |
5125 | |
5126 | |
5127 | |
5128 | |
5129 # Determine commands to create old-style static archives. | |
5130 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5131 old_postinstall_cmds='chmod 644 $oldlib' | |
5132 old_postuninstall_cmds= | |
5133 | |
5134 if test -n "$RANLIB"; then | |
5135 case $host_os in | |
5136 openbsd*) | |
5137 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5138 ;; | |
5139 *) | |
5140 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5141 ;; | |
5142 esac | |
5143 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5144 fi | |
5145 | |
5146 | |
5147 | |
5148 | |
5149 | |
5150 | |
5151 | |
5152 | |
5153 | |
5154 | |
5155 | |
5156 | |
5157 | |
5158 | |
5159 | |
5160 | |
5161 | |
5162 | |
5163 | |
5164 | |
5165 | |
5166 | |
5167 | |
5168 | |
5169 | |
5170 | |
5171 | |
5172 | |
5173 | |
5174 | |
5175 | |
5176 | |
5177 | |
5178 | |
5179 # If no C compiler was specified, use CC. | |
5180 LTCC=${LTCC-"$CC"} | |
5181 | |
5182 # If no C compiler flags were specified, use CFLAGS. | |
5183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5184 | |
5185 # Allow CC to be a program name with arguments. | |
5186 compiler=$CC | |
5187 | |
5188 | |
5189 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5190 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5191 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | |
5192 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5193 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5194 else | |
5195 | |
5196 # These are sane defaults that work on at least a few old systems. | |
5197 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5198 | |
5199 # Character class describing NM global symbol codes. | |
5200 symcode='[BCDEGRST]' | |
5201 | |
5202 # Regexp to match symbols that can be accessed directly from C. | |
5203 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5204 | |
5205 # Define system-specific variables. | |
5206 case $host_os in | |
5207 aix*) | |
5208 symcode='[BCDT]' | |
5209 ;; | |
5210 cygwin* | mingw* | pw32*) | |
5211 symcode='[ABCDGISTW]' | |
5212 ;; | |
5213 hpux*) | |
5214 if test "$host_cpu" = ia64; then | |
5215 symcode='[ABCDEGRST]' | |
5216 fi | |
5217 ;; | |
5218 irix* | nonstopux*) | |
5219 symcode='[BCDEGRST]' | |
5220 ;; | |
5221 osf*) | |
5222 symcode='[BCDEGQRST]' | |
5223 ;; | |
5224 solaris*) | |
5225 symcode='[BDRT]' | |
5226 ;; | |
5227 sco3.2v5*) | |
5228 symcode='[DT]' | |
5229 ;; | |
5230 sysv4.2uw2*) | |
5231 symcode='[DT]' | |
5232 ;; | |
5233 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5234 symcode='[ABDT]' | |
5235 ;; | |
5236 sysv4) | |
5237 symcode='[DFNSTU]' | |
5238 ;; | |
5239 esac | |
5240 | |
5241 # If we're using GNU nm, then use its standard symbol codes. | |
5242 case `$NM -V 2>&1` in | |
5243 *GNU* | *'with BFD'*) | |
5244 symcode='[ABCDGIRSTW]' ;; | |
5245 esac | |
5246 | |
5247 # Transform an extracted symbol line into a proper C declaration. | |
5248 # Some systems (esp. on ia64) link data and code symbols differently, | |
5249 # so use this general approach. | |
5250 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5251 | |
5252 # Transform an extracted symbol line into symbol name and symbol address | |
5253 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5254 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'" | |
5255 | |
5256 # Handle CRLF in mingw tool chain | |
5257 opt_cr= | |
5258 case $build_os in | |
5259 mingw*) | |
5260 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5261 ;; | |
5262 esac | |
5263 | |
5264 # Try without a prefix underscore, then with it. | |
5265 for ac_symprfx in "" "_"; do | |
5266 | |
5267 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5268 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5269 | |
5270 # Write the raw and C identifiers. | |
5271 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5272 # Fake it for dumpbin and say T for any non-static function | |
5273 # and D for any global variable. | |
5274 # Also find C++ and __fastcall symbols from MSVC++, | |
5275 # which start with @ or ?. | |
5276 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5277 " {last_section=section; section=\$ 3};"\ | |
5278 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5279 " \$ 0!~/External *\|/{next};"\ | |
5280 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5281 " {if(hide[section]) next};"\ | |
5282 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5283 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5284 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5285 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5286 " ' prfx=^$ac_symprfx" | |
5287 else | |
5288 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5289 fi | |
5290 | |
5291 # Check to see that the pipe works correctly. | |
5292 pipe_works=no | |
5293 | |
5294 rm -f conftest* | |
5295 cat > conftest.$ac_ext <<_LT_EOF | |
5296 #ifdef __cplusplus | |
5297 extern "C" { | |
5298 #endif | |
5299 char nm_test_var; | |
5300 void nm_test_func(void); | |
5301 void nm_test_func(void){} | |
5302 #ifdef __cplusplus | |
5303 } | |
5304 #endif | |
5305 int main(){nm_test_var='a';nm_test_func();return(0);} | |
5306 _LT_EOF | |
5307 | |
5308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5309 (eval $ac_compile) 2>&5 | |
5310 ac_status=$? | |
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5312 (exit $ac_status); }; then | |
5313 # Now try to grab the symbols. | |
5314 nlist=conftest.nm | |
5315 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5316 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5317 ac_status=$? | |
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5319 (exit $ac_status); } && test -s "$nlist"; then | |
5320 # Try sorting and uniquifying the output. | |
5321 if sort "$nlist" | uniq > "$nlist"T; then | |
5322 mv -f "$nlist"T "$nlist" | |
5323 else | |
5324 rm -f "$nlist"T | |
5325 fi | |
5326 | |
5327 # Make sure that we snagged all the symbols we need. | |
5328 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5329 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5330 cat <<_LT_EOF > conftest.$ac_ext | |
5331 #ifdef __cplusplus | |
5332 extern "C" { | |
5333 #endif | |
5334 | |
5335 _LT_EOF | |
5336 # Now generate the symbol file. | |
5337 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5338 | |
5339 cat <<_LT_EOF >> conftest.$ac_ext | |
5340 | |
5341 /* The mapping between symbol names and symbols. */ | |
5342 const struct { | |
5343 const char *name; | |
5344 void *address; | |
5345 } | |
5346 lt__PROGRAM__LTX_preloaded_symbols[] = | |
5347 { | |
5348 { "@PROGRAM@", (void *) 0 }, | |
5349 _LT_EOF | |
5350 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5351 cat <<\_LT_EOF >> conftest.$ac_ext | |
5352 {0, (void *) 0} | |
5353 }; | |
5354 | |
5355 /* This works around a problem in FreeBSD linker */ | |
5356 #ifdef FREEBSD_WORKAROUND | |
5357 static const void *lt_preloaded_setup() { | |
5358 return lt__PROGRAM__LTX_preloaded_symbols; | |
5359 } | |
5360 #endif | |
5361 | |
5362 #ifdef __cplusplus | |
5363 } | |
5364 #endif | |
5365 _LT_EOF | |
5366 # Now try linking the two files. | |
5367 mv conftest.$ac_objext conftstm.$ac_objext | |
5368 lt_save_LIBS="$LIBS" | |
5369 lt_save_CFLAGS="$CFLAGS" | |
5370 LIBS="conftstm.$ac_objext" | |
5371 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5373 (eval $ac_link) 2>&5 | |
5374 ac_status=$? | |
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5376 (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5377 pipe_works=yes | |
5378 fi | |
5379 LIBS="$lt_save_LIBS" | |
5380 CFLAGS="$lt_save_CFLAGS" | |
5381 else | |
5382 echo "cannot find nm_test_func in $nlist" >&5 | |
5383 fi | |
5384 else | |
5385 echo "cannot find nm_test_var in $nlist" >&5 | |
5386 fi | |
5387 else | |
5388 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5389 fi | |
5390 else | |
5391 echo "$progname: failed program was:" >&5 | |
5392 cat conftest.$ac_ext >&5 | |
5393 fi | |
5394 rm -rf conftest* conftst* | |
5395 | |
5396 # Do not use the global_symbol_pipe unless it works. | |
5397 if test "$pipe_works" = yes; then | |
5398 break | |
5399 else | |
5400 lt_cv_sys_global_symbol_pipe= | |
5401 fi | |
5402 done | |
5403 | |
5404 fi | |
5405 | |
5406 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5407 lt_cv_sys_global_symbol_to_cdecl= | |
5408 fi | |
5409 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5410 { echo "$as_me:$LINENO: result: failed" >&5 | |
5411 echo "${ECHO_T}failed" >&6; } | |
5412 else | |
5413 { echo "$as_me:$LINENO: result: ok" >&5 | |
5414 echo "${ECHO_T}ok" >&6; } | |
5415 fi | |
5416 | |
5417 | |
5418 | |
5419 | |
5420 | |
5421 | |
5422 | |
5423 | |
5424 | |
5425 | |
5426 | |
5427 | |
5428 | |
5429 | |
5430 | |
5431 | |
5432 | |
5433 | |
5434 | |
5435 | |
5436 | |
5437 | |
5438 | |
5439 # Check whether --enable-libtool-lock was given. | |
5440 if test "${enable_libtool_lock+set}" = set; then | |
5441 enableval=$enable_libtool_lock; | |
5442 fi | |
5443 | |
5444 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5445 | |
5446 # Some flags need to be propagated to the compiler or linker for good | |
5447 # libtool support. | |
5448 case $host in | |
5449 ia64-*-hpux*) | |
5450 # Find out which ABI we are using. | |
5451 echo 'int i;' > conftest.$ac_ext | |
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5453 (eval $ac_compile) 2>&5 | |
5454 ac_status=$? | |
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5456 (exit $ac_status); }; then | |
5457 case `/usr/bin/file conftest.$ac_objext` in | |
5458 *ELF-32*) | |
5459 HPUX_IA64_MODE="32" | |
5460 ;; | |
5461 *ELF-64*) | |
5462 HPUX_IA64_MODE="64" | |
5463 ;; | |
5464 esac | |
5465 fi | |
5466 rm -rf conftest* | |
5467 ;; | |
5468 *-*-irix6*) | |
5469 # Find out which ABI we are using. | |
5470 echo '#line 5470 "configure"' > conftest.$ac_ext | |
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5472 (eval $ac_compile) 2>&5 | |
5473 ac_status=$? | |
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5475 (exit $ac_status); }; then | |
5476 if test "$lt_cv_prog_gnu_ld" = yes; then | |
5477 case `/usr/bin/file conftest.$ac_objext` in | |
5478 *32-bit*) | |
5479 LD="${LD-ld} -melf32bsmip" | |
5480 ;; | |
5481 *N32*) | |
5482 LD="${LD-ld} -melf32bmipn32" | |
5483 ;; | |
5484 *64-bit*) | |
5485 LD="${LD-ld} -melf64bmip" | |
5486 ;; | |
5487 esac | |
5488 else | |
5489 case `/usr/bin/file conftest.$ac_objext` in | |
5490 *32-bit*) | |
5491 LD="${LD-ld} -32" | |
5492 ;; | |
5493 *N32*) | |
5494 LD="${LD-ld} -n32" | |
5495 ;; | |
5496 *64-bit*) | |
5497 LD="${LD-ld} -64" | |
5498 ;; | |
5499 esac | |
5500 fi | |
5501 fi | |
5502 rm -rf conftest* | |
5503 ;; | |
5504 | |
5505 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5506 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5507 # Find out which ABI we are using. | |
5508 echo 'int i;' > conftest.$ac_ext | |
5509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5510 (eval $ac_compile) 2>&5 | |
5511 ac_status=$? | |
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5513 (exit $ac_status); }; then | |
5514 case `/usr/bin/file conftest.o` in | |
5515 *32-bit*) | |
5516 case $host in | |
5517 x86_64-*kfreebsd*-gnu) | |
5518 LD="${LD-ld} -m elf_i386_fbsd" | |
5519 ;; | |
5520 x86_64-*linux*) | |
5521 LD="${LD-ld} -m elf_i386" | |
5522 ;; | |
5523 ppc64-*linux*|powerpc64-*linux*) | |
5524 LD="${LD-ld} -m elf32ppclinux" | |
5525 ;; | |
5526 s390x-*linux*) | |
5527 LD="${LD-ld} -m elf_s390" | |
5528 ;; | |
5529 sparc64-*linux*) | |
5530 LD="${LD-ld} -m elf32_sparc" | |
5531 ;; | |
5532 esac | |
5533 ;; | |
5534 *64-bit*) | |
5535 case $host in | |
5536 x86_64-*kfreebsd*-gnu) | |
5537 LD="${LD-ld} -m elf_x86_64_fbsd" | |
5538 ;; | |
5539 x86_64-*linux*) | |
5540 LD="${LD-ld} -m elf_x86_64" | |
5541 ;; | |
5542 ppc*-*linux*|powerpc*-*linux*) | |
5543 LD="${LD-ld} -m elf64ppc" | |
5544 ;; | |
5545 s390*-*linux*|s390*-*tpf*) | |
5546 LD="${LD-ld} -m elf64_s390" | |
5547 ;; | |
5548 sparc*-*linux*) | |
5549 LD="${LD-ld} -m elf64_sparc" | |
5550 ;; | |
5551 esac | |
5552 ;; | |
5553 esac | |
5554 fi | |
5555 rm -rf conftest* | |
5556 ;; | |
5557 | |
5558 *-*-sco3.2v5*) | |
5559 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5560 SAVE_CFLAGS="$CFLAGS" | |
5561 CFLAGS="$CFLAGS -belf" | |
5562 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5563 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | |
5564 if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5565 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5566 else | |
5567 ac_ext=c | |
5568 ac_cpp='$CPP $CPPFLAGS' | |
5569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5571 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5572 | |
5573 cat >conftest.$ac_ext <<_ACEOF | |
5574 /* confdefs.h. */ | |
5575 _ACEOF | |
5576 cat confdefs.h >>conftest.$ac_ext | |
5577 cat >>conftest.$ac_ext <<_ACEOF | |
5578 /* end confdefs.h. */ | |
5579 | |
5580 int | |
5581 main () | |
5582 { | |
5583 | |
5584 ; | |
5585 return 0; | |
5586 } | |
5587 _ACEOF | |
5588 rm -f conftest.$ac_objext conftest$ac_exeext | |
5589 if { (ac_try="$ac_link" | |
5590 case "(($ac_try" in | |
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5592 *) ac_try_echo=$ac_try;; | |
5593 esac | |
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5595 (eval "$ac_link") 2>conftest.er1 | |
5596 ac_status=$? | |
5597 grep -v '^ *+' conftest.er1 >conftest.err | |
5598 rm -f conftest.er1 | |
5599 cat conftest.err >&5 | |
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5601 (exit $ac_status); } && { | |
5602 test -z "$ac_c_werror_flag" || | |
5603 test ! -s conftest.err | |
5604 } && test -s conftest$ac_exeext && | |
5605 $as_test_x conftest$ac_exeext; then | |
5606 lt_cv_cc_needs_belf=yes | |
5607 else | |
5608 echo "$as_me: failed program was:" >&5 | |
5609 sed 's/^/| /' conftest.$ac_ext >&5 | |
5610 | |
5611 lt_cv_cc_needs_belf=no | |
5612 fi | |
5613 | |
5614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5615 conftest$ac_exeext conftest.$ac_ext | |
5616 ac_ext=c | |
5617 ac_cpp='$CPP $CPPFLAGS' | |
5618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5620 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5621 | |
5622 fi | |
5623 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5624 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | |
5625 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5626 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5627 CFLAGS="$SAVE_CFLAGS" | |
5628 fi | |
5629 ;; | |
5630 sparc*-*solaris*) | |
5631 # Find out which ABI we are using. | |
5632 echo 'int i;' > conftest.$ac_ext | |
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5634 (eval $ac_compile) 2>&5 | |
5635 ac_status=$? | |
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5637 (exit $ac_status); }; then | |
5638 case `/usr/bin/file conftest.o` in | |
5639 *64-bit*) | |
5640 case $lt_cv_prog_gnu_ld in | |
5641 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5642 *) | |
5643 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5644 LD="${LD-ld} -64" | |
5645 fi | |
5646 ;; | |
5647 esac | |
5648 ;; | |
5649 esac | |
5650 fi | |
5651 rm -rf conftest* | |
5652 ;; | |
5653 esac | |
5654 | |
5655 need_locks="$enable_libtool_lock" | |
5656 | |
5657 | |
5658 case $host_os in | |
5659 rhapsody* | darwin*) | |
5660 if test -n "$ac_tool_prefix"; then | |
5661 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5662 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5663 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5665 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
5666 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5667 else | |
5668 if test -n "$DSYMUTIL"; then | |
5669 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5670 else | |
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5672 for as_dir in $PATH | |
5673 do | |
5674 IFS=$as_save_IFS | |
5675 test -z "$as_dir" && as_dir=. | |
5676 for ac_exec_ext in '' $ac_executable_extensions; do | |
5677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5678 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5680 break 2 | |
5681 fi | |
5682 done | |
5683 done | |
5684 IFS=$as_save_IFS | |
5685 | |
5686 fi | |
5687 fi | |
5688 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5689 if test -n "$DSYMUTIL"; then | |
5690 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
5691 echo "${ECHO_T}$DSYMUTIL" >&6; } | |
5692 else | |
5693 { echo "$as_me:$LINENO: result: no" >&5 | |
5694 echo "${ECHO_T}no" >&6; } | |
5695 fi | |
5696 | |
5697 | |
5698 fi | |
5699 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5700 ac_ct_DSYMUTIL=$DSYMUTIL | |
5701 # Extract the first word of "dsymutil", so it can be a program name with args. | |
5702 set dummy dsymutil; ac_word=$2 | |
5703 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5705 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
5706 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5707 else | |
5708 if test -n "$ac_ct_DSYMUTIL"; then | |
5709 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5710 else | |
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5712 for as_dir in $PATH | |
5713 do | |
5714 IFS=$as_save_IFS | |
5715 test -z "$as_dir" && as_dir=. | |
5716 for ac_exec_ext in '' $ac_executable_extensions; do | |
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5718 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5720 break 2 | |
5721 fi | |
5722 done | |
5723 done | |
5724 IFS=$as_save_IFS | |
5725 | |
5726 fi | |
5727 fi | |
5728 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5729 if test -n "$ac_ct_DSYMUTIL"; then | |
5730 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
5731 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } | |
5732 else | |
5733 { echo "$as_me:$LINENO: result: no" >&5 | |
5734 echo "${ECHO_T}no" >&6; } | |
5735 fi | |
5736 | |
5737 if test "x$ac_ct_DSYMUTIL" = x; then | |
5738 DSYMUTIL=":" | |
5739 else | |
5740 case $cross_compiling:$ac_tool_warned in | |
5741 yes:) | |
5742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5743 whose name does not start with the host triplet. If you think this | |
5744 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5746 whose name does not start with the host triplet. If you think this | |
5747 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5748 ac_tool_warned=yes ;; | |
5749 esac | |
5750 DSYMUTIL=$ac_ct_DSYMUTIL | |
5751 fi | |
5752 else | |
5753 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5754 fi | |
5755 | |
5756 if test -n "$ac_tool_prefix"; then | |
5757 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5758 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5759 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5761 if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
5762 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5763 else | |
5764 if test -n "$NMEDIT"; then | |
5765 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5766 else | |
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5768 for as_dir in $PATH | |
5769 do | |
5770 IFS=$as_save_IFS | |
5771 test -z "$as_dir" && as_dir=. | |
5772 for ac_exec_ext in '' $ac_executable_extensions; do | |
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5774 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5776 break 2 | |
5777 fi | |
5778 done | |
5779 done | |
5780 IFS=$as_save_IFS | |
5781 | |
5782 fi | |
5783 fi | |
5784 NMEDIT=$ac_cv_prog_NMEDIT | |
5785 if test -n "$NMEDIT"; then | |
5786 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
5787 echo "${ECHO_T}$NMEDIT" >&6; } | |
5788 else | |
5789 { echo "$as_me:$LINENO: result: no" >&5 | |
5790 echo "${ECHO_T}no" >&6; } | |
5791 fi | |
5792 | |
5793 | |
5794 fi | |
5795 if test -z "$ac_cv_prog_NMEDIT"; then | |
5796 ac_ct_NMEDIT=$NMEDIT | |
5797 # Extract the first word of "nmedit", so it can be a program name with args. | |
5798 set dummy nmedit; ac_word=$2 | |
5799 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5801 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
5802 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5803 else | |
5804 if test -n "$ac_ct_NMEDIT"; then | |
5805 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5806 else | |
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5808 for as_dir in $PATH | |
5809 do | |
5810 IFS=$as_save_IFS | |
5811 test -z "$as_dir" && as_dir=. | |
5812 for ac_exec_ext in '' $ac_executable_extensions; do | |
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5814 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5816 break 2 | |
5817 fi | |
5818 done | |
5819 done | |
5820 IFS=$as_save_IFS | |
5821 | |
5822 fi | |
5823 fi | |
5824 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5825 if test -n "$ac_ct_NMEDIT"; then | |
5826 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
5827 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } | |
5828 else | |
5829 { echo "$as_me:$LINENO: result: no" >&5 | |
5830 echo "${ECHO_T}no" >&6; } | |
5831 fi | |
5832 | |
5833 if test "x$ac_ct_NMEDIT" = x; then | |
5834 NMEDIT=":" | |
5835 else | |
5836 case $cross_compiling:$ac_tool_warned in | |
5837 yes:) | |
5838 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5839 whose name does not start with the host triplet. If you think this | |
5840 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5841 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5842 whose name does not start with the host triplet. If you think this | |
5843 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5844 ac_tool_warned=yes ;; | |
5845 esac | |
5846 NMEDIT=$ac_ct_NMEDIT | |
5847 fi | |
5848 else | |
5849 NMEDIT="$ac_cv_prog_NMEDIT" | |
5850 fi | |
5851 | |
5852 if test -n "$ac_tool_prefix"; then | |
5853 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5854 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5855 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5857 if test "${ac_cv_prog_LIPO+set}" = set; then | |
5858 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5859 else | |
5860 if test -n "$LIPO"; then | |
5861 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5862 else | |
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5864 for as_dir in $PATH | |
5865 do | |
5866 IFS=$as_save_IFS | |
5867 test -z "$as_dir" && as_dir=. | |
5868 for ac_exec_ext in '' $ac_executable_extensions; do | |
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5870 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5872 break 2 | |
5873 fi | |
5874 done | |
5875 done | |
5876 IFS=$as_save_IFS | |
5877 | |
5878 fi | |
5879 fi | |
5880 LIPO=$ac_cv_prog_LIPO | |
5881 if test -n "$LIPO"; then | |
5882 { echo "$as_me:$LINENO: result: $LIPO" >&5 | |
5883 echo "${ECHO_T}$LIPO" >&6; } | |
5884 else | |
5885 { echo "$as_me:$LINENO: result: no" >&5 | |
5886 echo "${ECHO_T}no" >&6; } | |
5887 fi | |
5888 | |
5889 | |
5890 fi | |
5891 if test -z "$ac_cv_prog_LIPO"; then | |
5892 ac_ct_LIPO=$LIPO | |
5893 # Extract the first word of "lipo", so it can be a program name with args. | |
5894 set dummy lipo; ac_word=$2 | |
5895 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5897 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
5898 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5899 else | |
5900 if test -n "$ac_ct_LIPO"; then | |
5901 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5902 else | |
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5904 for as_dir in $PATH | |
5905 do | |
5906 IFS=$as_save_IFS | |
5907 test -z "$as_dir" && as_dir=. | |
5908 for ac_exec_ext in '' $ac_executable_extensions; do | |
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5910 ac_cv_prog_ac_ct_LIPO="lipo" | |
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5912 break 2 | |
5913 fi | |
5914 done | |
5915 done | |
5916 IFS=$as_save_IFS | |
5917 | |
5918 fi | |
5919 fi | |
5920 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5921 if test -n "$ac_ct_LIPO"; then | |
5922 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
5923 echo "${ECHO_T}$ac_ct_LIPO" >&6; } | |
5924 else | |
5925 { echo "$as_me:$LINENO: result: no" >&5 | |
5926 echo "${ECHO_T}no" >&6; } | |
5927 fi | |
5928 | |
5929 if test "x$ac_ct_LIPO" = x; then | |
5930 LIPO=":" | |
5931 else | |
5932 case $cross_compiling:$ac_tool_warned in | |
5933 yes:) | |
5934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5935 whose name does not start with the host triplet. If you think this | |
5936 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5938 whose name does not start with the host triplet. If you think this | |
5939 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5940 ac_tool_warned=yes ;; | |
5941 esac | |
5942 LIPO=$ac_ct_LIPO | |
5943 fi | |
5944 else | |
5945 LIPO="$ac_cv_prog_LIPO" | |
5946 fi | |
5947 | |
5948 if test -n "$ac_tool_prefix"; then | |
5949 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
5950 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5951 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5953 if test "${ac_cv_prog_OTOOL+set}" = set; then | |
5954 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5955 else | |
5956 if test -n "$OTOOL"; then | |
5957 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5958 else | |
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5960 for as_dir in $PATH | |
5961 do | |
5962 IFS=$as_save_IFS | |
5963 test -z "$as_dir" && as_dir=. | |
5964 for ac_exec_ext in '' $ac_executable_extensions; do | |
5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5966 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5968 break 2 | |
5969 fi | |
5970 done | |
5971 done | |
5972 IFS=$as_save_IFS | |
5973 | |
5974 fi | |
5975 fi | |
5976 OTOOL=$ac_cv_prog_OTOOL | |
5977 if test -n "$OTOOL"; then | |
5978 { echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
5979 echo "${ECHO_T}$OTOOL" >&6; } | |
5980 else | |
5981 { echo "$as_me:$LINENO: result: no" >&5 | |
5982 echo "${ECHO_T}no" >&6; } | |
5983 fi | |
5984 | |
5985 | |
5986 fi | |
5987 if test -z "$ac_cv_prog_OTOOL"; then | |
5988 ac_ct_OTOOL=$OTOOL | |
5989 # Extract the first word of "otool", so it can be a program name with args. | |
5990 set dummy otool; ac_word=$2 | |
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5993 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
5994 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5995 else | |
5996 if test -n "$ac_ct_OTOOL"; then | |
5997 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5998 else | |
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6000 for as_dir in $PATH | |
6001 do | |
6002 IFS=$as_save_IFS | |
6003 test -z "$as_dir" && as_dir=. | |
6004 for ac_exec_ext in '' $ac_executable_extensions; do | |
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6006 ac_cv_prog_ac_ct_OTOOL="otool" | |
6007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6008 break 2 | |
6009 fi | |
6010 done | |
6011 done | |
6012 IFS=$as_save_IFS | |
6013 | |
6014 fi | |
6015 fi | |
6016 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6017 if test -n "$ac_ct_OTOOL"; then | |
6018 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
6019 echo "${ECHO_T}$ac_ct_OTOOL" >&6; } | |
6020 else | |
6021 { echo "$as_me:$LINENO: result: no" >&5 | |
6022 echo "${ECHO_T}no" >&6; } | |
6023 fi | |
6024 | |
6025 if test "x$ac_ct_OTOOL" = x; then | |
6026 OTOOL=":" | |
6027 else | |
6028 case $cross_compiling:$ac_tool_warned in | |
6029 yes:) | |
6030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6031 whose name does not start with the host triplet. If you think this | |
6032 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6034 whose name does not start with the host triplet. If you think this | |
6035 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6036 ac_tool_warned=yes ;; | |
6037 esac | |
6038 OTOOL=$ac_ct_OTOOL | |
6039 fi | |
6040 else | |
6041 OTOOL="$ac_cv_prog_OTOOL" | |
6042 fi | |
6043 | |
6044 if test -n "$ac_tool_prefix"; then | |
6045 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6046 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6049 if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
6050 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6051 else | |
6052 if test -n "$OTOOL64"; then | |
6053 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6054 else | |
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6056 for as_dir in $PATH | |
6057 do | |
6058 IFS=$as_save_IFS | |
6059 test -z "$as_dir" && as_dir=. | |
6060 for ac_exec_ext in '' $ac_executable_extensions; do | |
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6062 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6064 break 2 | |
6065 fi | |
6066 done | |
6067 done | |
6068 IFS=$as_save_IFS | |
6069 | |
6070 fi | |
6071 fi | |
6072 OTOOL64=$ac_cv_prog_OTOOL64 | |
6073 if test -n "$OTOOL64"; then | |
6074 { echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6075 echo "${ECHO_T}$OTOOL64" >&6; } | |
6076 else | |
6077 { echo "$as_me:$LINENO: result: no" >&5 | |
6078 echo "${ECHO_T}no" >&6; } | |
6079 fi | |
6080 | |
6081 | |
6082 fi | |
6083 if test -z "$ac_cv_prog_OTOOL64"; then | |
6084 ac_ct_OTOOL64=$OTOOL64 | |
6085 # Extract the first word of "otool64", so it can be a program name with args. | |
6086 set dummy otool64; ac_word=$2 | |
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6089 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6090 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6091 else | |
6092 if test -n "$ac_ct_OTOOL64"; then | |
6093 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6094 else | |
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6096 for as_dir in $PATH | |
6097 do | |
6098 IFS=$as_save_IFS | |
6099 test -z "$as_dir" && as_dir=. | |
6100 for ac_exec_ext in '' $ac_executable_extensions; do | |
6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6102 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6104 break 2 | |
6105 fi | |
6106 done | |
6107 done | |
6108 IFS=$as_save_IFS | |
6109 | |
6110 fi | |
6111 fi | |
6112 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6113 if test -n "$ac_ct_OTOOL64"; then | |
6114 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6115 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } | |
6116 else | |
6117 { echo "$as_me:$LINENO: result: no" >&5 | |
6118 echo "${ECHO_T}no" >&6; } | |
6119 fi | |
6120 | |
6121 if test "x$ac_ct_OTOOL64" = x; then | |
6122 OTOOL64=":" | |
6123 else | |
6124 case $cross_compiling:$ac_tool_warned in | |
6125 yes:) | |
6126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6127 whose name does not start with the host triplet. If you think this | |
6128 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6130 whose name does not start with the host triplet. If you think this | |
6131 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6132 ac_tool_warned=yes ;; | |
6133 esac | |
6134 OTOOL64=$ac_ct_OTOOL64 | |
6135 fi | |
6136 else | |
6137 OTOOL64="$ac_cv_prog_OTOOL64" | |
6138 fi | |
6139 | |
6140 | |
6141 | |
6142 | |
6143 | |
6144 | |
6145 | |
6146 | |
6147 | |
6148 | |
6149 | |
6150 | |
6151 | |
6152 | |
6153 | |
6154 | |
6155 | |
6156 | |
6157 | |
6158 | |
6159 | |
6160 | |
6161 | |
6162 | |
6163 | |
6164 | |
6165 | |
6166 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
6167 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } | |
6168 if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6169 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6170 else | |
6171 lt_cv_apple_cc_single_mod=no | |
6172 if test -z "${LT_MULTI_MODULE}"; then | |
6173 # By default we will add the -single_module flag. You can override | |
6174 # by either setting the environment variable LT_MULTI_MODULE | |
6175 # non-empty at configure time, or by adding -multi_module to the | |
6176 # link flags. | |
6177 rm -rf libconftest.dylib* | |
6178 echo "int foo(void){return 1;}" > conftest.c | |
6179 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6180 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6181 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6182 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6183 _lt_result=$? | |
6184 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6185 lt_cv_apple_cc_single_mod=yes | |
6186 else | |
6187 cat conftest.err >&5 | |
6188 fi | |
6189 rm -rf libconftest.dylib* | |
6190 rm -f conftest.* | |
6191 fi | |
6192 fi | |
6193 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
6194 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } | |
6195 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6196 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } | |
6197 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6198 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6199 else | |
6200 lt_cv_ld_exported_symbols_list=no | |
6201 save_LDFLAGS=$LDFLAGS | |
6202 echo "_main" > conftest.sym | |
6203 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6204 cat >conftest.$ac_ext <<_ACEOF | |
6205 /* confdefs.h. */ | |
6206 _ACEOF | |
6207 cat confdefs.h >>conftest.$ac_ext | |
6208 cat >>conftest.$ac_ext <<_ACEOF | |
6209 /* end confdefs.h. */ | |
6210 | |
6211 int | |
6212 main () | |
6213 { | |
6214 | |
6215 ; | |
6216 return 0; | |
6217 } | |
6218 _ACEOF | |
6219 rm -f conftest.$ac_objext conftest$ac_exeext | |
6220 if { (ac_try="$ac_link" | |
6221 case "(($ac_try" in | |
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6223 *) ac_try_echo=$ac_try;; | |
6224 esac | |
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6226 (eval "$ac_link") 2>conftest.er1 | |
6227 ac_status=$? | |
6228 grep -v '^ *+' conftest.er1 >conftest.err | |
6229 rm -f conftest.er1 | |
6230 cat conftest.err >&5 | |
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6232 (exit $ac_status); } && { | |
6233 test -z "$ac_c_werror_flag" || | |
6234 test ! -s conftest.err | |
6235 } && test -s conftest$ac_exeext && | |
6236 $as_test_x conftest$ac_exeext; then | |
6237 lt_cv_ld_exported_symbols_list=yes | |
6238 else | |
6239 echo "$as_me: failed program was:" >&5 | |
6240 sed 's/^/| /' conftest.$ac_ext >&5 | |
6241 | |
6242 lt_cv_ld_exported_symbols_list=no | |
6243 fi | |
6244 | |
6245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6246 conftest$ac_exeext conftest.$ac_ext | |
6247 LDFLAGS="$save_LDFLAGS" | |
6248 | |
6249 fi | |
6250 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6251 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } | |
6252 case $host_os in | |
6253 rhapsody* | darwin1.[012]) | |
6254 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6255 darwin1.*) | |
6256 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6257 darwin*) # darwin 5.x on | |
6258 # if running on 10.5 or later, the deployment target defaults | |
6259 # to the OS version, if on x86, and 10.4, the deployment | |
6260 # target defaults to 10.4. Don't you love it? | |
6261 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6262 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6263 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6264 10.[012]*) | |
6265 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6266 10.*) | |
6267 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6268 esac | |
6269 ;; | |
6270 esac | |
6271 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6272 _lt_dar_single_mod='$single_module' | |
6273 fi | |
6274 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6275 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6276 else | |
6277 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6278 fi | |
6279 if test "$DSYMUTIL" != ":"; then | |
6280 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6281 else | |
6282 _lt_dsymutil= | |
6283 fi | |
6284 ;; | |
6285 esac | |
6286 | |
6287 ac_ext=c | |
6288 ac_cpp='$CPP $CPPFLAGS' | |
6289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6291 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6292 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
6293 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
6294 # On Suns, sometimes $CPP names a directory. | |
6295 if test -n "$CPP" && test -d "$CPP"; then | |
6296 CPP= | |
6297 fi | |
6298 if test -z "$CPP"; then | |
6299 if test "${ac_cv_prog_CPP+set}" = set; then | |
6300 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6301 else | |
6302 # Double quotes because CPP needs to be expanded | |
6303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6304 do | |
6305 ac_preproc_ok=false | |
6306 for ac_c_preproc_warn_flag in '' yes | |
6307 do | |
6308 # Use a header file that comes with gcc, so configuring glibc | |
6309 # with a fresh cross-compiler works. | |
6310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6311 # <limits.h> exists even on freestanding compilers. | |
6312 # On the NeXT, cc -E runs the code through the compiler's parser, | |
6313 # not just through cpp. "Syntax error" is here to catch this case. | |
6314 cat >conftest.$ac_ext <<_ACEOF | |
6315 /* confdefs.h. */ | |
6316 _ACEOF | |
6317 cat confdefs.h >>conftest.$ac_ext | |
6318 cat >>conftest.$ac_ext <<_ACEOF | |
6319 /* end confdefs.h. */ | |
6320 #ifdef __STDC__ | |
6321 # include <limits.h> | |
6322 #else | |
6323 # include <assert.h> | |
6324 #endif | |
6325 Syntax error | |
6326 _ACEOF | |
6327 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6328 case "(($ac_try" in | |
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6330 *) ac_try_echo=$ac_try;; | |
6331 esac | |
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6334 ac_status=$? | |
6335 grep -v '^ *+' conftest.er1 >conftest.err | |
6336 rm -f conftest.er1 | |
6337 cat conftest.err >&5 | |
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6339 (exit $ac_status); } >/dev/null && { | |
6340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6341 test ! -s conftest.err | |
6342 }; then | |
6343 : | |
6344 else | |
6345 echo "$as_me: failed program was:" >&5 | |
6346 sed 's/^/| /' conftest.$ac_ext >&5 | |
6347 | |
6348 # Broken: fails on valid input. | |
6349 continue | |
6350 fi | |
6351 | |
6352 rm -f conftest.err conftest.$ac_ext | |
6353 | |
6354 # OK, works on sane cases. Now check whether nonexistent headers | |
6355 # can be detected and how. | |
6356 cat >conftest.$ac_ext <<_ACEOF | |
6357 /* confdefs.h. */ | |
6358 _ACEOF | |
6359 cat confdefs.h >>conftest.$ac_ext | |
6360 cat >>conftest.$ac_ext <<_ACEOF | |
6361 /* end confdefs.h. */ | |
6362 #include <ac_nonexistent.h> | |
6363 _ACEOF | |
6364 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6365 case "(($ac_try" in | |
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6367 *) ac_try_echo=$ac_try;; | |
6368 esac | |
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6371 ac_status=$? | |
6372 grep -v '^ *+' conftest.er1 >conftest.err | |
6373 rm -f conftest.er1 | |
6374 cat conftest.err >&5 | |
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6376 (exit $ac_status); } >/dev/null && { | |
6377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6378 test ! -s conftest.err | |
6379 }; then | |
6380 # Broken: success on invalid input. | |
6381 continue | |
6382 else | |
6383 echo "$as_me: failed program was:" >&5 | |
6384 sed 's/^/| /' conftest.$ac_ext >&5 | |
6385 | |
6386 # Passes both tests. | |
6387 ac_preproc_ok=: | |
6388 break | |
6389 fi | |
6390 | |
6391 rm -f conftest.err conftest.$ac_ext | |
6392 | |
6393 done | |
6394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6395 rm -f conftest.err conftest.$ac_ext | |
6396 if $ac_preproc_ok; then | |
6397 break | |
6398 fi | |
6399 | |
6400 done | |
6401 ac_cv_prog_CPP=$CPP | |
6402 | |
6403 fi | |
6404 CPP=$ac_cv_prog_CPP | |
6405 else | |
6406 ac_cv_prog_CPP=$CPP | |
6407 fi | |
6408 { echo "$as_me:$LINENO: result: $CPP" >&5 | |
6409 echo "${ECHO_T}$CPP" >&6; } | |
6410 ac_preproc_ok=false | |
6411 for ac_c_preproc_warn_flag in '' yes | |
6412 do | |
6413 # Use a header file that comes with gcc, so configuring glibc | |
6414 # with a fresh cross-compiler works. | |
6415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6416 # <limits.h> exists even on freestanding compilers. | |
6417 # On the NeXT, cc -E runs the code through the compiler's parser, | |
6418 # not just through cpp. "Syntax error" is here to catch this case. | |
6419 cat >conftest.$ac_ext <<_ACEOF | |
6420 /* confdefs.h. */ | |
6421 _ACEOF | |
6422 cat confdefs.h >>conftest.$ac_ext | |
6423 cat >>conftest.$ac_ext <<_ACEOF | |
6424 /* end confdefs.h. */ | |
6425 #ifdef __STDC__ | |
6426 # include <limits.h> | |
6427 #else | |
6428 # include <assert.h> | |
6429 #endif | |
6430 Syntax error | |
6431 _ACEOF | |
6432 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6433 case "(($ac_try" in | |
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6435 *) ac_try_echo=$ac_try;; | |
6436 esac | |
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6439 ac_status=$? | |
6440 grep -v '^ *+' conftest.er1 >conftest.err | |
6441 rm -f conftest.er1 | |
6442 cat conftest.err >&5 | |
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6444 (exit $ac_status); } >/dev/null && { | |
6445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6446 test ! -s conftest.err | |
6447 }; then | |
6448 : | |
6449 else | |
6450 echo "$as_me: failed program was:" >&5 | |
6451 sed 's/^/| /' conftest.$ac_ext >&5 | |
6452 | |
6453 # Broken: fails on valid input. | |
6454 continue | |
6455 fi | |
6456 | |
6457 rm -f conftest.err conftest.$ac_ext | |
6458 | |
6459 # OK, works on sane cases. Now check whether nonexistent headers | |
6460 # can be detected and how. | |
6461 cat >conftest.$ac_ext <<_ACEOF | |
6462 /* confdefs.h. */ | |
6463 _ACEOF | |
6464 cat confdefs.h >>conftest.$ac_ext | |
6465 cat >>conftest.$ac_ext <<_ACEOF | |
6466 /* end confdefs.h. */ | |
6467 #include <ac_nonexistent.h> | |
6468 _ACEOF | |
6469 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
6470 case "(($ac_try" in | |
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6472 *) ac_try_echo=$ac_try;; | |
6473 esac | |
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
6476 ac_status=$? | |
6477 grep -v '^ *+' conftest.er1 >conftest.err | |
6478 rm -f conftest.er1 | |
6479 cat conftest.err >&5 | |
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6481 (exit $ac_status); } >/dev/null && { | |
6482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6483 test ! -s conftest.err | |
6484 }; then | |
6485 # Broken: success on invalid input. | |
6486 continue | |
6487 else | |
6488 echo "$as_me: failed program was:" >&5 | |
6489 sed 's/^/| /' conftest.$ac_ext >&5 | |
6490 | |
6491 # Passes both tests. | |
6492 ac_preproc_ok=: | |
6493 break | |
6494 fi | |
6495 | |
6496 rm -f conftest.err conftest.$ac_ext | |
6497 | |
6498 done | |
6499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6500 rm -f conftest.err conftest.$ac_ext | |
6501 if $ac_preproc_ok; then | |
6502 : | |
6503 else | |
6504 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
6505 See \`config.log' for more details." >&5 | |
6506 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6507 See \`config.log' for more details." >&2;} | |
6508 { (exit 1); exit 1; }; } | |
6509 fi | |
6510 | |
6511 ac_ext=c | |
6512 ac_cpp='$CPP $CPPFLAGS' | |
6513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6515 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6516 | |
6517 | |
6518 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
6519 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
6520 if test "${ac_cv_header_stdc+set}" = set; then | |
6521 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6522 else | |
6523 cat >conftest.$ac_ext <<_ACEOF | |
6524 /* confdefs.h. */ | |
6525 _ACEOF | |
6526 cat confdefs.h >>conftest.$ac_ext | |
6527 cat >>conftest.$ac_ext <<_ACEOF | |
6528 /* end confdefs.h. */ | |
6529 #include <stdlib.h> | |
6530 #include <stdarg.h> | |
6531 #include <string.h> | |
6532 #include <float.h> | |
6533 | |
6534 int | |
6535 main () | |
6536 { | |
6537 | |
6538 ; | |
6539 return 0; | |
6540 } | |
6541 _ACEOF | |
6542 rm -f conftest.$ac_objext | |
6543 if { (ac_try="$ac_compile" | |
6544 case "(($ac_try" in | |
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6546 *) ac_try_echo=$ac_try;; | |
6547 esac | |
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6549 (eval "$ac_compile") 2>conftest.er1 | |
6550 ac_status=$? | |
6551 grep -v '^ *+' conftest.er1 >conftest.err | |
6552 rm -f conftest.er1 | |
6553 cat conftest.err >&5 | |
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6555 (exit $ac_status); } && { | |
6556 test -z "$ac_c_werror_flag" || | |
6557 test ! -s conftest.err | |
6558 } && test -s conftest.$ac_objext; then | |
6559 ac_cv_header_stdc=yes | |
6560 else | |
6561 echo "$as_me: failed program was:" >&5 | |
6562 sed 's/^/| /' conftest.$ac_ext >&5 | |
6563 | |
6564 ac_cv_header_stdc=no | |
6565 fi | |
6566 | |
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6568 | |
6569 if test $ac_cv_header_stdc = yes; then | |
6570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6571 cat >conftest.$ac_ext <<_ACEOF | |
6572 /* confdefs.h. */ | |
6573 _ACEOF | |
6574 cat confdefs.h >>conftest.$ac_ext | |
6575 cat >>conftest.$ac_ext <<_ACEOF | |
6576 /* end confdefs.h. */ | |
6577 #include <string.h> | |
6578 | |
6579 _ACEOF | |
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6581 $EGREP "memchr" >/dev/null 2>&1; then | |
6582 : | |
6583 else | |
6584 ac_cv_header_stdc=no | |
6585 fi | |
6586 rm -f conftest* | |
6587 | |
6588 fi | |
6589 | |
6590 if test $ac_cv_header_stdc = yes; then | |
6591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6592 cat >conftest.$ac_ext <<_ACEOF | |
6593 /* confdefs.h. */ | |
6594 _ACEOF | |
6595 cat confdefs.h >>conftest.$ac_ext | |
6596 cat >>conftest.$ac_ext <<_ACEOF | |
6597 /* end confdefs.h. */ | |
6598 #include <stdlib.h> | |
6599 | |
6600 _ACEOF | |
6601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6602 $EGREP "free" >/dev/null 2>&1; then | |
6603 : | |
6604 else | |
6605 ac_cv_header_stdc=no | |
6606 fi | |
6607 rm -f conftest* | |
6608 | |
6609 fi | |
6610 | |
6611 if test $ac_cv_header_stdc = yes; then | |
6612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6613 if test "$cross_compiling" = yes; then | |
6614 : | |
6615 else | |
6616 cat >conftest.$ac_ext <<_ACEOF | |
6617 /* confdefs.h. */ | |
6618 _ACEOF | |
6619 cat confdefs.h >>conftest.$ac_ext | |
6620 cat >>conftest.$ac_ext <<_ACEOF | |
6621 /* end confdefs.h. */ | |
6622 #include <ctype.h> | |
6623 #include <stdlib.h> | |
6624 #if ((' ' & 0x0FF) == 0x020) | |
6625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6627 #else | |
6628 # define ISLOWER(c) \ | |
6629 (('a' <= (c) && (c) <= 'i') \ | |
6630 || ('j' <= (c) && (c) <= 'r') \ | |
6631 || ('s' <= (c) && (c) <= 'z')) | |
6632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6633 #endif | |
6634 | |
6635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6636 int | |
6637 main () | |
6638 { | |
6639 int i; | |
6640 for (i = 0; i < 256; i++) | |
6641 if (XOR (islower (i), ISLOWER (i)) | |
6642 || toupper (i) != TOUPPER (i)) | |
6643 return 2; | |
6644 return 0; | |
6645 } | |
6646 _ACEOF | |
6647 rm -f conftest$ac_exeext | |
6648 if { (ac_try="$ac_link" | |
6649 case "(($ac_try" in | |
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6651 *) ac_try_echo=$ac_try;; | |
6652 esac | |
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6654 (eval "$ac_link") 2>&5 | |
6655 ac_status=$? | |
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6658 { (case "(($ac_try" in | |
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6660 *) ac_try_echo=$ac_try;; | |
6661 esac | |
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6663 (eval "$ac_try") 2>&5 | |
6664 ac_status=$? | |
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6666 (exit $ac_status); }; }; then | |
6667 : | |
6668 else | |
6669 echo "$as_me: program exited with status $ac_status" >&5 | |
6670 echo "$as_me: failed program was:" >&5 | |
6671 sed 's/^/| /' conftest.$ac_ext >&5 | |
6672 | |
6673 ( exit $ac_status ) | |
6674 ac_cv_header_stdc=no | |
6675 fi | |
6676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6677 fi | |
6678 | |
6679 | |
6680 fi | |
6681 fi | |
6682 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6683 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
6684 if test $ac_cv_header_stdc = yes; then | |
6685 | |
6686 cat >>confdefs.h <<\_ACEOF | |
6687 #define STDC_HEADERS 1 | |
6688 _ACEOF | |
6689 | |
6690 fi | |
6691 | |
6692 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6693 | |
6694 | |
6695 | |
6696 | |
6697 | |
6698 | |
6699 | |
6700 | |
6701 | |
6702 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6703 inttypes.h stdint.h unistd.h | |
6704 do | |
6705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6706 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6709 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6710 else | |
6711 cat >conftest.$ac_ext <<_ACEOF | |
6712 /* confdefs.h. */ | |
6713 _ACEOF | |
6714 cat confdefs.h >>conftest.$ac_ext | |
6715 cat >>conftest.$ac_ext <<_ACEOF | |
6716 /* end confdefs.h. */ | |
6717 $ac_includes_default | |
6718 | |
6719 #include <$ac_header> | |
6720 _ACEOF | |
6721 rm -f conftest.$ac_objext | |
6722 if { (ac_try="$ac_compile" | |
6723 case "(($ac_try" in | |
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6725 *) ac_try_echo=$ac_try;; | |
6726 esac | |
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6728 (eval "$ac_compile") 2>conftest.er1 | |
6729 ac_status=$? | |
6730 grep -v '^ *+' conftest.er1 >conftest.err | |
6731 rm -f conftest.er1 | |
6732 cat conftest.err >&5 | |
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6734 (exit $ac_status); } && { | |
6735 test -z "$ac_c_werror_flag" || | |
6736 test ! -s conftest.err | |
6737 } && test -s conftest.$ac_objext; then | |
6738 eval "$as_ac_Header=yes" | |
6739 else | |
6740 echo "$as_me: failed program was:" >&5 | |
6741 sed 's/^/| /' conftest.$ac_ext >&5 | |
6742 | |
6743 eval "$as_ac_Header=no" | |
6744 fi | |
6745 | |
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6747 fi | |
6748 ac_res=`eval echo '${'$as_ac_Header'}'` | |
6749 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6750 echo "${ECHO_T}$ac_res" >&6; } | |
6751 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6752 cat >>confdefs.h <<_ACEOF | |
6753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6754 _ACEOF | |
6755 | |
6756 fi | |
6757 | |
6758 done | |
6759 | |
6760 | |
6761 | |
6762 for ac_header in dlfcn.h | |
6763 do | |
6764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6765 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6768 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6769 else | |
6770 cat >conftest.$ac_ext <<_ACEOF | |
6771 /* confdefs.h. */ | |
6772 _ACEOF | |
6773 cat confdefs.h >>conftest.$ac_ext | |
6774 cat >>conftest.$ac_ext <<_ACEOF | |
6775 /* end confdefs.h. */ | |
6776 $ac_includes_default | |
6777 | |
6778 #include <$ac_header> | |
6779 _ACEOF | |
6780 rm -f conftest.$ac_objext | |
6781 if { (ac_try="$ac_compile" | |
6782 case "(($ac_try" in | |
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6784 *) ac_try_echo=$ac_try;; | |
6785 esac | |
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6787 (eval "$ac_compile") 2>conftest.er1 | |
6788 ac_status=$? | |
6789 grep -v '^ *+' conftest.er1 >conftest.err | |
6790 rm -f conftest.er1 | |
6791 cat conftest.err >&5 | |
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6793 (exit $ac_status); } && { | |
6794 test -z "$ac_c_werror_flag" || | |
6795 test ! -s conftest.err | |
6796 } && test -s conftest.$ac_objext; then | |
6797 eval "$as_ac_Header=yes" | |
6798 else | |
6799 echo "$as_me: failed program was:" >&5 | |
6800 sed 's/^/| /' conftest.$ac_ext >&5 | |
6801 | |
6802 eval "$as_ac_Header=no" | |
6803 fi | |
6804 | |
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6806 fi | |
6807 ac_res=`eval echo '${'$as_ac_Header'}'` | |
6808 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6809 echo "${ECHO_T}$ac_res" >&6; } | |
6810 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6811 cat >>confdefs.h <<_ACEOF | |
6812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6813 _ACEOF | |
6814 | |
6815 fi | |
6816 | |
6817 done | |
6818 | |
6819 | |
6820 | |
6821 # Set options | |
6822 | |
6823 | |
6824 | |
6825 enable_dlopen=no | |
6826 | |
6827 | |
6828 enable_win32_dll=no | |
6829 | |
6830 | |
6831 | |
6832 | |
6833 | |
6834 # Check whether --with-pic was given. | |
6835 if test "${with_pic+set}" = set; then | |
6836 withval=$with_pic; pic_mode="$withval" | |
6837 else | |
6838 pic_mode=default | |
6839 fi | |
6840 | |
6841 | |
6842 test -z "$pic_mode" && pic_mode=default | |
6843 | |
6844 | |
6845 | |
6846 | |
6847 | |
6848 | |
6849 | |
6850 # Check whether --enable-fast-install was given. | |
6851 if test "${enable_fast_install+set}" = set; then | |
6852 enableval=$enable_fast_install; p=${PACKAGE-default} | |
6853 case $enableval in | |
6854 yes) enable_fast_install=yes ;; | |
6855 no) enable_fast_install=no ;; | |
6856 *) | |
6857 enable_fast_install=no | |
6858 # Look at the argument we got. We use all the common list separators. | |
6859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6860 for pkg in $enableval; do | |
6861 IFS="$lt_save_ifs" | |
6862 if test "X$pkg" = "X$p"; then | |
6863 enable_fast_install=yes | |
6864 fi | |
6865 done | |
6866 IFS="$lt_save_ifs" | |
6867 ;; | |
6868 esac | |
6869 else | |
6870 enable_fast_install=yes | |
6871 fi | |
6872 | |
6873 | |
6874 | |
6875 | |
6876 | |
6877 | |
6878 | |
6879 | |
6880 | |
6881 | |
6882 | |
6883 # This can be used to rebuild libtool when needed | |
6884 LIBTOOL_DEPS="$ltmain" | |
6885 | |
6886 # Always use our own libtool. | |
6887 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6888 | |
6889 | |
6890 | |
6891 | |
6892 | |
6893 | |
6894 | |
6895 | |
6896 | |
6897 | |
6898 | |
6899 | |
6900 | |
6901 | |
6902 | |
6903 | |
6904 | |
6905 | |
6906 | |
6907 | |
6908 | |
6909 | |
6910 | |
6911 | |
6912 | |
6913 test -z "$LN_S" && LN_S="ln -s" | |
6914 | |
6915 | |
6916 | |
6917 | |
6918 | |
6919 | |
6920 | |
6921 | |
6922 | |
6923 | |
6924 | |
6925 | |
6926 | |
6927 | |
6928 if test -n "${ZSH_VERSION+set}" ; then | |
6929 setopt NO_GLOB_SUBST | |
6930 fi | |
6931 | |
6932 { echo "$as_me:$LINENO: checking for objdir" >&5 | |
6933 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | |
6934 if test "${lt_cv_objdir+set}" = set; then | |
6935 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6936 else | |
6937 rm -f .libs 2>/dev/null | |
6938 mkdir .libs 2>/dev/null | |
6939 if test -d .libs; then | |
6940 lt_cv_objdir=.libs | |
6941 else | |
6942 # MS-DOS does not allow filenames that begin with a dot. | |
6943 lt_cv_objdir=_libs | |
6944 fi | |
6945 rmdir .libs 2>/dev/null | |
6946 fi | |
6947 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6948 echo "${ECHO_T}$lt_cv_objdir" >&6; } | |
6949 objdir=$lt_cv_objdir | |
6950 | |
6951 | |
6952 | |
6953 | |
6954 | |
6955 cat >>confdefs.h <<_ACEOF | |
6956 #define LT_OBJDIR "$lt_cv_objdir/" | |
6957 _ACEOF | |
6958 | |
6959 | |
6960 | |
6961 | |
6962 | |
6963 | |
6964 | |
6965 | |
6966 | |
6967 | |
6968 | |
6969 | |
6970 | |
6971 | |
6972 | |
6973 | |
6974 | |
6975 case $host_os in | |
6976 aix3*) | |
6977 # AIX sometimes has problems with the GCC collect2 program. For some | |
6978 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6979 # vanish in a puff of smoke. | |
6980 if test "X${COLLECT_NAMES+set}" != Xset; then | |
6981 COLLECT_NAMES= | |
6982 export COLLECT_NAMES | |
6983 fi | |
6984 ;; | |
6985 esac | |
6986 | |
6987 # Sed substitution that helps us do robust quoting. It backslashifies | |
6988 # metacharacters that are still active within double-quoted strings. | |
6989 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6990 | |
6991 # Same as above, but do not quote variable references. | |
6992 double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6993 | |
6994 # Sed substitution to delay expansion of an escaped shell variable in a | |
6995 # double_quote_subst'ed string. | |
6996 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6997 | |
6998 # Sed substitution to delay expansion of an escaped single quote. | |
6999 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7000 | |
7001 # Sed substitution to avoid accidental globbing in evaled expressions | |
7002 no_glob_subst='s/\*/\\\*/g' | |
7003 | |
7004 # Global variables: | |
7005 ofile=libtool | |
7006 can_build_shared=yes | |
7007 | |
7008 # All known linkers require a `.a' archive for static linking (except MSVC, | |
7009 # which needs '.lib'). | |
7010 libext=a | |
7011 | |
7012 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7013 | |
7014 old_CC="$CC" | |
7015 old_CFLAGS="$CFLAGS" | |
7016 | |
7017 # Set sane defaults for various variables | |
7018 test -z "$CC" && CC=cc | |
7019 test -z "$LTCC" && LTCC=$CC | |
7020 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7021 test -z "$LD" && LD=ld | |
7022 test -z "$ac_objext" && ac_objext=o | |
7023 | |
7024 for cc_temp in $compiler""; do | |
7025 case $cc_temp in | |
7026 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7027 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7028 \-*) ;; | |
7029 *) break;; | |
7030 esac | |
7031 done | |
7032 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7033 | |
7034 | |
7035 # Only perform the check for file, if the check method requires it | |
7036 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7037 case $deplibs_check_method in | |
7038 file_magic*) | |
7039 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7040 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7041 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } | |
7042 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7043 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7044 else | |
7045 case $MAGIC_CMD in | |
7046 [\\/*] | ?:[\\/]*) | |
7047 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7048 ;; | |
7049 *) | |
7050 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7053 for ac_dir in $ac_dummy; do | |
7054 IFS="$lt_save_ifs" | |
7055 test -z "$ac_dir" && ac_dir=. | |
7056 if test -f $ac_dir/${ac_tool_prefix}file; then | |
7057 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7058 if test -n "$file_magic_test_file"; then | |
7059 case $deplibs_check_method in | |
7060 "file_magic "*) | |
7061 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7063 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7064 $EGREP "$file_magic_regex" > /dev/null; then | |
7065 : | |
7066 else | |
7067 cat <<_LT_EOF 1>&2 | |
7068 | |
7069 *** Warning: the command libtool uses to detect shared libraries, | |
7070 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7071 *** The result is that libtool may fail to recognize shared libraries | |
7072 *** as such. This will affect the creation of libtool libraries that | |
7073 *** depend on shared libraries, but programs linked with such libtool | |
7074 *** libraries will work regardless of this problem. Nevertheless, you | |
7075 *** may want to report the problem to your system manager and/or to | |
7076 *** bug-libtool@gnu.org | |
7077 | |
7078 _LT_EOF | |
7079 fi ;; | |
7080 esac | |
7081 fi | |
7082 break | |
7083 fi | |
7084 done | |
7085 IFS="$lt_save_ifs" | |
7086 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7087 ;; | |
7088 esac | |
7089 fi | |
7090 | |
7091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7092 if test -n "$MAGIC_CMD"; then | |
7093 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7094 echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
7095 else | |
7096 { echo "$as_me:$LINENO: result: no" >&5 | |
7097 echo "${ECHO_T}no" >&6; } | |
7098 fi | |
7099 | |
7100 | |
7101 | |
7102 | |
7103 | |
7104 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7105 if test -n "$ac_tool_prefix"; then | |
7106 { echo "$as_me:$LINENO: checking for file" >&5 | |
7107 echo $ECHO_N "checking for file... $ECHO_C" >&6; } | |
7108 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7109 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7110 else | |
7111 case $MAGIC_CMD in | |
7112 [\\/*] | ?:[\\/]*) | |
7113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7114 ;; | |
7115 *) | |
7116 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7119 for ac_dir in $ac_dummy; do | |
7120 IFS="$lt_save_ifs" | |
7121 test -z "$ac_dir" && ac_dir=. | |
7122 if test -f $ac_dir/file; then | |
7123 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7124 if test -n "$file_magic_test_file"; then | |
7125 case $deplibs_check_method in | |
7126 "file_magic "*) | |
7127 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7130 $EGREP "$file_magic_regex" > /dev/null; then | |
7131 : | |
7132 else | |
7133 cat <<_LT_EOF 1>&2 | |
7134 | |
7135 *** Warning: the command libtool uses to detect shared libraries, | |
7136 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7137 *** The result is that libtool may fail to recognize shared libraries | |
7138 *** as such. This will affect the creation of libtool libraries that | |
7139 *** depend on shared libraries, but programs linked with such libtool | |
7140 *** libraries will work regardless of this problem. Nevertheless, you | |
7141 *** may want to report the problem to your system manager and/or to | |
7142 *** bug-libtool@gnu.org | |
7143 | |
7144 _LT_EOF | |
7145 fi ;; | |
7146 esac | |
7147 fi | |
7148 break | |
7149 fi | |
7150 done | |
7151 IFS="$lt_save_ifs" | |
7152 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7153 ;; | |
7154 esac | |
7155 fi | |
7156 | |
7157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7158 if test -n "$MAGIC_CMD"; then | |
7159 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7160 echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
7161 else | |
7162 { echo "$as_me:$LINENO: result: no" >&5 | |
7163 echo "${ECHO_T}no" >&6; } | |
7164 fi | |
7165 | |
7166 | |
7167 else | |
7168 MAGIC_CMD=: | |
7169 fi | |
7170 fi | |
7171 | |
7172 fi | |
7173 ;; | |
7174 esac | |
7175 | |
7176 # Use C for the default configuration in the libtool script | |
7177 | |
7178 lt_save_CC="$CC" | |
7179 ac_ext=c | |
7180 ac_cpp='$CPP $CPPFLAGS' | |
7181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7183 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7184 | |
7185 | |
7186 # Source file extension for C test sources. | |
7187 ac_ext=c | |
7188 | |
7189 # Object file extension for compiled C test sources. | |
7190 objext=o | |
7191 objext=$objext | |
7192 | |
7193 # Code to be used in simple compile tests | |
7194 lt_simple_compile_test_code="int some_variable = 0;" | |
7195 | |
7196 # Code to be used in simple link tests | |
7197 lt_simple_link_test_code='int main(){return(0);}' | |
7198 | |
7199 | |
7200 | |
7201 | |
7202 | |
7203 | |
7204 | |
7205 # If no C compiler was specified, use CC. | |
7206 LTCC=${LTCC-"$CC"} | |
7207 | |
7208 # If no C compiler flags were specified, use CFLAGS. | |
7209 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7210 | |
7211 # Allow CC to be a program name with arguments. | |
7212 compiler=$CC | |
7213 | |
7214 # Save the default compiler, since it gets overwritten when the other | |
7215 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7216 compiler_DEFAULT=$CC | |
7217 | |
7218 # save warnings/boilerplate of simple test code | |
7219 ac_outfile=conftest.$ac_objext | |
7220 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7221 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7222 _lt_compiler_boilerplate=`cat conftest.err` | |
7223 $RM conftest* | |
7224 | |
7225 ac_outfile=conftest.$ac_objext | |
7226 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7227 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7228 _lt_linker_boilerplate=`cat conftest.err` | |
7229 $RM -r conftest* | |
7230 | |
7231 | |
7232 if test -n "$compiler"; then | |
7233 | |
7234 lt_prog_compiler_no_builtin_flag= | |
7235 | |
7236 if test "$GCC" = yes; then | |
7237 lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7238 | |
7239 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7240 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
7241 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
7242 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7243 else | |
7244 lt_cv_prog_compiler_rtti_exceptions=no | |
7245 ac_outfile=conftest.$ac_objext | |
7246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7247 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7248 # Insert the option either (1) after the last *FLAGS variable, or | |
7249 # (2) before a word containing "conftest.", or (3) at the end. | |
7250 # Note that $ac_compile itself does not contain backslashes and begins | |
7251 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7252 # The option is referenced via a variable to avoid confusing sed. | |
7253 lt_compile=`echo "$ac_compile" | $SED \ | |
7254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7256 -e 's:$: $lt_compiler_flag:'` | |
7257 (eval echo "\"\$as_me:7257: $lt_compile\"" >&5) | |
7258 (eval "$lt_compile" 2>conftest.err) | |
7259 ac_status=$? | |
7260 cat conftest.err >&5 | |
7261 echo "$as_me:7261: \$? = $ac_status" >&5 | |
7262 if (exit $ac_status) && test -s "$ac_outfile"; then | |
7263 # The compiler can only warn and ignore the option if not recognized | |
7264 # So say no if there are warnings other than the usual output. | |
7265 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7268 lt_cv_prog_compiler_rtti_exceptions=yes | |
7269 fi | |
7270 fi | |
7271 $RM conftest* | |
7272 | |
7273 fi | |
7274 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7275 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
7276 | |
7277 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7278 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7279 else | |
7280 : | |
7281 fi | |
7282 | |
7283 fi | |
7284 | |
7285 | |
7286 | |
7287 | |
7288 | |
7289 | |
7290 lt_prog_compiler_wl= | |
7291 lt_prog_compiler_pic= | |
7292 lt_prog_compiler_static= | |
7293 | |
7294 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
7295 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
7296 | |
7297 if test "$GCC" = yes; then | |
7298 lt_prog_compiler_wl='-Wl,' | |
7299 lt_prog_compiler_static='-static' | |
7300 | |
7301 case $host_os in | |
7302 aix*) | |
7303 # All AIX code is PIC. | |
7304 if test "$host_cpu" = ia64; then | |
7305 # AIX 5 now supports IA64 processor | |
7306 lt_prog_compiler_static='-Bstatic' | |
7307 fi | |
7308 ;; | |
7309 | |
7310 amigaos*) | |
7311 case $host_cpu in | |
7312 powerpc) | |
7313 # see comment about AmigaOS4 .so support | |
7314 lt_prog_compiler_pic='-fPIC' | |
7315 ;; | |
7316 m68k) | |
7317 # FIXME: we need at least 68020 code to build shared libraries, but | |
7318 # adding the `-m68020' flag to GCC prevents building anything better, | |
7319 # like `-m68040'. | |
7320 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7321 ;; | |
7322 esac | |
7323 ;; | |
7324 | |
7325 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7326 # PIC is the default for these OSes. | |
7327 ;; | |
7328 | |
7329 mingw* | cygwin* | pw32* | os2*) | |
7330 # This hack is so that the source file can tell whether it is being | |
7331 # built for inclusion in a dll (and should export symbols for example). | |
7332 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7333 # (--disable-auto-import) libraries | |
7334 lt_prog_compiler_pic='-DDLL_EXPORT' | |
7335 ;; | |
7336 | |
7337 darwin* | rhapsody*) | |
7338 # PIC is the default on this platform | |
7339 # Common symbols not allowed in MH_DYLIB files | |
7340 lt_prog_compiler_pic='-fno-common' | |
7341 ;; | |
7342 | |
7343 hpux*) | |
7344 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7345 # not for PA HP-UX. | |
7346 case $host_cpu in | |
7347 hppa*64*|ia64*) | |
7348 # +Z the default | |
7349 ;; | |
7350 *) | |
7351 lt_prog_compiler_pic='-fPIC' | |
7352 ;; | |
7353 esac | |
7354 ;; | |
7355 | |
7356 interix[3-9]*) | |
7357 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7358 # Instead, we relocate shared libraries at runtime. | |
7359 ;; | |
7360 | |
7361 msdosdjgpp*) | |
7362 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7363 # on systems that don't support them. | |
7364 lt_prog_compiler_can_build_shared=no | |
7365 enable_shared=no | |
7366 ;; | |
7367 | |
7368 *nto* | *qnx*) | |
7369 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7370 # it will coredump. | |
7371 lt_prog_compiler_pic='-fPIC -shared' | |
7372 ;; | |
7373 | |
7374 sysv4*MP*) | |
7375 if test -d /usr/nec; then | |
7376 lt_prog_compiler_pic=-Kconform_pic | |
7377 fi | |
7378 ;; | |
7379 | |
7380 *) | |
7381 lt_prog_compiler_pic='-fPIC' | |
7382 ;; | |
7383 esac | |
7384 else | |
7385 # PORTME Check for flag to pass linker flags through the system compiler. | |
7386 case $host_os in | |
7387 aix*) | |
7388 lt_prog_compiler_wl='-Wl,' | |
7389 if test "$host_cpu" = ia64; then | |
7390 # AIX 5 now supports IA64 processor | |
7391 lt_prog_compiler_static='-Bstatic' | |
7392 else | |
7393 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7394 fi | |
7395 ;; | |
7396 | |
7397 mingw* | cygwin* | pw32* | os2*) | |
7398 # This hack is so that the source file can tell whether it is being | |
7399 # built for inclusion in a dll (and should export symbols for example). | |
7400 lt_prog_compiler_pic='-DDLL_EXPORT' | |
7401 ;; | |
7402 | |
7403 hpux9* | hpux10* | hpux11*) | |
7404 lt_prog_compiler_wl='-Wl,' | |
7405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7406 # not for PA HP-UX. | |
7407 case $host_cpu in | |
7408 hppa*64*|ia64*) | |
7409 # +Z the default | |
7410 ;; | |
7411 *) | |
7412 lt_prog_compiler_pic='+Z' | |
7413 ;; | |
7414 esac | |
7415 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7416 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7417 ;; | |
7418 | |
7419 irix5* | irix6* | nonstopux*) | |
7420 lt_prog_compiler_wl='-Wl,' | |
7421 # PIC (with -KPIC) is the default. | |
7422 lt_prog_compiler_static='-non_shared' | |
7423 ;; | |
7424 | |
7425 linux* | k*bsd*-gnu) | |
7426 case $cc_basename in | |
7427 icc* | ecc* | ifort*) | |
7428 lt_prog_compiler_wl='-Wl,' | |
7429 lt_prog_compiler_pic='-KPIC' | |
7430 lt_prog_compiler_static='-static' | |
7431 ;; | |
7432 pgcc* | pgf77* | pgf90* | pgf95*) | |
7433 # Portland Group compilers (*not* the Pentium gcc compiler, | |
7434 # which looks to be a dead project) | |
7435 lt_prog_compiler_wl='-Wl,' | |
7436 lt_prog_compiler_pic='-fpic' | |
7437 lt_prog_compiler_static='-Bstatic' | |
7438 ;; | |
7439 ccc*) | |
7440 lt_prog_compiler_wl='-Wl,' | |
7441 # All Alpha code is PIC. | |
7442 lt_prog_compiler_static='-non_shared' | |
7443 ;; | |
7444 xl*) | |
7445 # IBM XL C 8.0/Fortran 10.1 on PPC | |
7446 lt_prog_compiler_wl='-Wl,' | |
7447 lt_prog_compiler_pic='-qpic' | |
7448 lt_prog_compiler_static='-qstaticlink' | |
7449 ;; | |
7450 *) | |
7451 case `$CC -V 2>&1 | sed 5q` in | |
7452 *Sun\ C*) | |
7453 # Sun C 5.9 | |
7454 lt_prog_compiler_pic='-KPIC' | |
7455 lt_prog_compiler_static='-Bstatic' | |
7456 lt_prog_compiler_wl='-Wl,' | |
7457 ;; | |
7458 *Sun\ F*) | |
7459 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7460 lt_prog_compiler_pic='-KPIC' | |
7461 lt_prog_compiler_static='-Bstatic' | |
7462 lt_prog_compiler_wl='' | |
7463 ;; | |
7464 esac | |
7465 ;; | |
7466 esac | |
7467 ;; | |
7468 | |
7469 newsos6) | |
7470 lt_prog_compiler_pic='-KPIC' | |
7471 lt_prog_compiler_static='-Bstatic' | |
7472 ;; | |
7473 | |
7474 *nto* | *qnx*) | |
7475 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7476 # it will coredump. | |
7477 lt_prog_compiler_pic='-fPIC -shared' | |
7478 ;; | |
7479 | |
7480 osf3* | osf4* | osf5*) | |
7481 lt_prog_compiler_wl='-Wl,' | |
7482 # All OSF/1 code is PIC. | |
7483 lt_prog_compiler_static='-non_shared' | |
7484 ;; | |
7485 | |
7486 rdos*) | |
7487 lt_prog_compiler_static='-non_shared' | |
7488 ;; | |
7489 | |
7490 solaris*) | |
7491 lt_prog_compiler_pic='-KPIC' | |
7492 lt_prog_compiler_static='-Bstatic' | |
7493 case $cc_basename in | |
7494 f77* | f90* | f95*) | |
7495 lt_prog_compiler_wl='-Qoption ld ';; | |
7496 *) | |
7497 lt_prog_compiler_wl='-Wl,';; | |
7498 esac | |
7499 ;; | |
7500 | |
7501 sunos4*) | |
7502 lt_prog_compiler_wl='-Qoption ld ' | |
7503 lt_prog_compiler_pic='-PIC' | |
7504 lt_prog_compiler_static='-Bstatic' | |
7505 ;; | |
7506 | |
7507 sysv4 | sysv4.2uw2* | sysv4.3*) | |
7508 lt_prog_compiler_wl='-Wl,' | |
7509 lt_prog_compiler_pic='-KPIC' | |
7510 lt_prog_compiler_static='-Bstatic' | |
7511 ;; | |
7512 | |
7513 sysv4*MP*) | |
7514 if test -d /usr/nec ;then | |
7515 lt_prog_compiler_pic='-Kconform_pic' | |
7516 lt_prog_compiler_static='-Bstatic' | |
7517 fi | |
7518 ;; | |
7519 | |
7520 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7521 lt_prog_compiler_wl='-Wl,' | |
7522 lt_prog_compiler_pic='-KPIC' | |
7523 lt_prog_compiler_static='-Bstatic' | |
7524 ;; | |
7525 | |
7526 unicos*) | |
7527 lt_prog_compiler_wl='-Wl,' | |
7528 lt_prog_compiler_can_build_shared=no | |
7529 ;; | |
7530 | |
7531 uts4*) | |
7532 lt_prog_compiler_pic='-pic' | |
7533 lt_prog_compiler_static='-Bstatic' | |
7534 ;; | |
7535 | |
7536 *) | |
7537 lt_prog_compiler_can_build_shared=no | |
7538 ;; | |
7539 esac | |
7540 fi | |
7541 | |
7542 case $host_os in | |
7543 # For platforms which do not support PIC, -DPIC is meaningless: | |
7544 *djgpp*) | |
7545 lt_prog_compiler_pic= | |
7546 ;; | |
7547 *) | |
7548 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7549 ;; | |
7550 esac | |
7551 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7552 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } | |
7553 | |
7554 | |
7555 | |
7556 | |
7557 | |
7558 | |
7559 # | |
7560 # Check to make sure the PIC flag actually works. | |
7561 # | |
7562 if test -n "$lt_prog_compiler_pic"; then | |
7563 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7564 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } | |
7565 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then | |
7566 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7567 else | |
7568 lt_cv_prog_compiler_pic_works=no | |
7569 ac_outfile=conftest.$ac_objext | |
7570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7571 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7572 # Insert the option either (1) after the last *FLAGS variable, or | |
7573 # (2) before a word containing "conftest.", or (3) at the end. | |
7574 # Note that $ac_compile itself does not contain backslashes and begins | |
7575 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7576 # The option is referenced via a variable to avoid confusing sed. | |
7577 lt_compile=`echo "$ac_compile" | $SED \ | |
7578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7580 -e 's:$: $lt_compiler_flag:'` | |
7581 (eval echo "\"\$as_me:7581: $lt_compile\"" >&5) | |
7582 (eval "$lt_compile" 2>conftest.err) | |
7583 ac_status=$? | |
7584 cat conftest.err >&5 | |
7585 echo "$as_me:7585: \$? = $ac_status" >&5 | |
7586 if (exit $ac_status) && test -s "$ac_outfile"; then | |
7587 # The compiler can only warn and ignore the option if not recognized | |
7588 # So say no if there are warnings other than the usual output. | |
7589 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7592 lt_cv_prog_compiler_pic_works=yes | |
7593 fi | |
7594 fi | |
7595 $RM conftest* | |
7596 | |
7597 fi | |
7598 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7599 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } | |
7600 | |
7601 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7602 case $lt_prog_compiler_pic in | |
7603 "" | " "*) ;; | |
7604 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7605 esac | |
7606 else | |
7607 lt_prog_compiler_pic= | |
7608 lt_prog_compiler_can_build_shared=no | |
7609 fi | |
7610 | |
7611 fi | |
7612 | |
7613 | |
7614 | |
7615 | |
7616 | |
7617 | |
7618 # | |
7619 # Check to make sure the static flag actually works. | |
7620 # | |
7621 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7622 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7623 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
7624 if test "${lt_cv_prog_compiler_static_works+set}" = set; then | |
7625 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7626 else | |
7627 lt_cv_prog_compiler_static_works=no | |
7628 save_LDFLAGS="$LDFLAGS" | |
7629 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7630 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7632 # The linker can only warn and ignore the option if not recognized | |
7633 # So say no if there are warnings | |
7634 if test -s conftest.err; then | |
7635 # Append any errors to the config.log. | |
7636 cat conftest.err 1>&5 | |
7637 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7639 if diff conftest.exp conftest.er2 >/dev/null; then | |
7640 lt_cv_prog_compiler_static_works=yes | |
7641 fi | |
7642 else | |
7643 lt_cv_prog_compiler_static_works=yes | |
7644 fi | |
7645 fi | |
7646 $RM -r conftest* | |
7647 LDFLAGS="$save_LDFLAGS" | |
7648 | |
7649 fi | |
7650 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 | |
7651 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } | |
7652 | |
7653 if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7654 : | |
7655 else | |
7656 lt_prog_compiler_static= | |
7657 fi | |
7658 | |
7659 | |
7660 | |
7661 | |
7662 | |
7663 | |
7664 | |
7665 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7666 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
7667 if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7668 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7669 else | |
7670 lt_cv_prog_compiler_c_o=no | |
7671 $RM -r conftest 2>/dev/null | |
7672 mkdir conftest | |
7673 cd conftest | |
7674 mkdir out | |
7675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7676 | |
7677 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7678 # Insert the option either (1) after the last *FLAGS variable, or | |
7679 # (2) before a word containing "conftest.", or (3) at the end. | |
7680 # Note that $ac_compile itself does not contain backslashes and begins | |
7681 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7682 lt_compile=`echo "$ac_compile" | $SED \ | |
7683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7685 -e 's:$: $lt_compiler_flag:'` | |
7686 (eval echo "\"\$as_me:7686: $lt_compile\"" >&5) | |
7687 (eval "$lt_compile" 2>out/conftest.err) | |
7688 ac_status=$? | |
7689 cat out/conftest.err >&5 | |
7690 echo "$as_me:7690: \$? = $ac_status" >&5 | |
7691 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7692 then | |
7693 # The compiler can only warn and ignore the option if not recognized | |
7694 # So say no if there are warnings | |
7695 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7696 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7697 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7698 lt_cv_prog_compiler_c_o=yes | |
7699 fi | |
7700 fi | |
7701 chmod u+w . 2>&5 | |
7702 $RM conftest* | |
7703 # SGI C++ compiler will create directory out/ii_files/ for | |
7704 # template instantiation | |
7705 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7706 $RM out/* && rmdir out | |
7707 cd .. | |
7708 $RM -r conftest | |
7709 $RM conftest* | |
7710 | |
7711 fi | |
7712 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7713 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | |
7714 | |
7715 | |
7716 | |
7717 | |
7718 | |
7719 | |
7720 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7721 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
7722 if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7723 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7724 else | |
7725 lt_cv_prog_compiler_c_o=no | |
7726 $RM -r conftest 2>/dev/null | |
7727 mkdir conftest | |
7728 cd conftest | |
7729 mkdir out | |
7730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7731 | |
7732 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7733 # Insert the option either (1) after the last *FLAGS variable, or | |
7734 # (2) before a word containing "conftest.", or (3) at the end. | |
7735 # Note that $ac_compile itself does not contain backslashes and begins | |
7736 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7737 lt_compile=`echo "$ac_compile" | $SED \ | |
7738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7740 -e 's:$: $lt_compiler_flag:'` | |
7741 (eval echo "\"\$as_me:7741: $lt_compile\"" >&5) | |
7742 (eval "$lt_compile" 2>out/conftest.err) | |
7743 ac_status=$? | |
7744 cat out/conftest.err >&5 | |
7745 echo "$as_me:7745: \$? = $ac_status" >&5 | |
7746 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7747 then | |
7748 # The compiler can only warn and ignore the option if not recognized | |
7749 # So say no if there are warnings | |
7750 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7753 lt_cv_prog_compiler_c_o=yes | |
7754 fi | |
7755 fi | |
7756 chmod u+w . 2>&5 | |
7757 $RM conftest* | |
7758 # SGI C++ compiler will create directory out/ii_files/ for | |
7759 # template instantiation | |
7760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7761 $RM out/* && rmdir out | |
7762 cd .. | |
7763 $RM -r conftest | |
7764 $RM conftest* | |
7765 | |
7766 fi | |
7767 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7768 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | |
7769 | |
7770 | |
7771 | |
7772 | |
7773 hard_links="nottested" | |
7774 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7775 # do not overwrite the value of need_locks provided by the user | |
7776 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7777 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
7778 hard_links=yes | |
7779 $RM conftest* | |
7780 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7781 touch conftest.a | |
7782 ln conftest.a conftest.b 2>&5 || hard_links=no | |
7783 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7784 { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7785 echo "${ECHO_T}$hard_links" >&6; } | |
7786 if test "$hard_links" = no; then | |
7787 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7788 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7789 need_locks=warn | |
7790 fi | |
7791 else | |
7792 need_locks=no | |
7793 fi | |
7794 | |
7795 | |
7796 | |
7797 | |
7798 | |
7799 | |
7800 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7801 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
7802 | |
7803 runpath_var= | |
7804 allow_undefined_flag= | |
7805 always_export_symbols=no | |
7806 archive_cmds= | |
7807 archive_expsym_cmds= | |
7808 compiler_needs_object=no | |
7809 enable_shared_with_static_runtimes=no | |
7810 export_dynamic_flag_spec= | |
7811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7812 hardcode_automatic=no | |
7813 hardcode_direct=no | |
7814 hardcode_direct_absolute=no | |
7815 hardcode_libdir_flag_spec= | |
7816 hardcode_libdir_flag_spec_ld= | |
7817 hardcode_libdir_separator= | |
7818 hardcode_minus_L=no | |
7819 hardcode_shlibpath_var=unsupported | |
7820 inherit_rpath=no | |
7821 link_all_deplibs=unknown | |
7822 module_cmds= | |
7823 module_expsym_cmds= | |
7824 old_archive_from_new_cmds= | |
7825 old_archive_from_expsyms_cmds= | |
7826 thread_safe_flag_spec= | |
7827 whole_archive_flag_spec= | |
7828 # include_expsyms should be a list of space-separated symbols to be *always* | |
7829 # included in the symbol list | |
7830 include_expsyms= | |
7831 # exclude_expsyms can be an extended regexp of symbols to exclude | |
7832 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7833 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7834 # as well as any symbol that contains `d'. | |
7835 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7836 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7837 # platforms (ab)use it in PIC code, but their linkers get confused if | |
7838 # the symbol is explicitly referenced. Since portable code cannot | |
7839 # rely on this symbol name, it's probably fine to never include it in | |
7840 # preloaded symbol tables. | |
7841 # Exclude shared library initialization/finalization symbols. | |
7842 extract_expsyms_cmds= | |
7843 | |
7844 case $host_os in | |
7845 cygwin* | mingw* | pw32*) | |
7846 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7847 # When not using gcc, we currently assume that we are using | |
7848 # Microsoft Visual C++. | |
7849 if test "$GCC" != yes; then | |
7850 with_gnu_ld=no | |
7851 fi | |
7852 ;; | |
7853 interix*) | |
7854 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7855 with_gnu_ld=yes | |
7856 ;; | |
7857 openbsd*) | |
7858 with_gnu_ld=no | |
7859 ;; | |
7860 esac | |
7861 | |
7862 ld_shlibs=yes | |
7863 if test "$with_gnu_ld" = yes; then | |
7864 # If archive_cmds runs LD, not CC, wlarc should be empty | |
7865 wlarc='${wl}' | |
7866 | |
7867 # Set some defaults for GNU ld with shared library support. These | |
7868 # are reset later if shared libraries are not supported. Putting them | |
7869 # here allows them to be overridden if necessary. | |
7870 runpath_var=LD_RUN_PATH | |
7871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7872 export_dynamic_flag_spec='${wl}--export-dynamic' | |
7873 # ancient GNU ld didn't support --whole-archive et. al. | |
7874 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7875 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7876 else | |
7877 whole_archive_flag_spec= | |
7878 fi | |
7879 supports_anon_versioning=no | |
7880 case `$LD -v 2>&1` in | |
7881 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7882 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7883 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7884 *\ 2.11.*) ;; # other 2.11 versions | |
7885 *) supports_anon_versioning=yes ;; | |
7886 esac | |
7887 | |
7888 # See if GNU ld supports shared libraries. | |
7889 case $host_os in | |
7890 aix[3-9]*) | |
7891 # On AIX/PPC, the GNU linker is very broken | |
7892 if test "$host_cpu" != ia64; then | |
7893 ld_shlibs=no | |
7894 cat <<_LT_EOF 1>&2 | |
7895 | |
7896 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7897 *** to be unable to reliably create shared libraries on AIX. | |
7898 *** Therefore, libtool is disabling shared libraries support. If you | |
7899 *** really care for shared libraries, you may want to modify your PATH | |
7900 *** so that a non-GNU linker is found, and then restart. | |
7901 | |
7902 _LT_EOF | |
7903 fi | |
7904 ;; | |
7905 | |
7906 amigaos*) | |
7907 case $host_cpu in | |
7908 powerpc) | |
7909 # see comment about AmigaOS4 .so support | |
7910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7911 archive_expsym_cmds='' | |
7912 ;; | |
7913 m68k) | |
7914 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)' | |
7915 hardcode_libdir_flag_spec='-L$libdir' | |
7916 hardcode_minus_L=yes | |
7917 ;; | |
7918 esac | |
7919 ;; | |
7920 | |
7921 beos*) | |
7922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7923 allow_undefined_flag=unsupported | |
7924 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7925 # support --undefined. This deserves some investigation. FIXME | |
7926 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7927 else | |
7928 ld_shlibs=no | |
7929 fi | |
7930 ;; | |
7931 | |
7932 cygwin* | mingw* | pw32*) | |
7933 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7934 # as there is no search path for DLLs. | |
7935 hardcode_libdir_flag_spec='-L$libdir' | |
7936 allow_undefined_flag=unsupported | |
7937 always_export_symbols=no | |
7938 enable_shared_with_static_runtimes=yes | |
7939 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7940 | |
7941 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7943 # If the export-symbols file already is a .def file (1st line | |
7944 # is EXPORTS), use it as is; otherwise, prepend... | |
7945 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7946 cp $export_symbols $output_objdir/$soname.def; | |
7947 else | |
7948 echo EXPORTS > $output_objdir/$soname.def; | |
7949 cat $export_symbols >> $output_objdir/$soname.def; | |
7950 fi~ | |
7951 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7952 else | |
7953 ld_shlibs=no | |
7954 fi | |
7955 ;; | |
7956 | |
7957 interix[3-9]*) | |
7958 hardcode_direct=no | |
7959 hardcode_shlibpath_var=no | |
7960 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7961 export_dynamic_flag_spec='${wl}-E' | |
7962 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7963 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7964 # default) and relocated if they conflict, which is a slow very memory | |
7965 # consuming and fragmenting process. To avoid this, we pick a random, | |
7966 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7967 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7969 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' | |
7970 ;; | |
7971 | |
7972 gnu* | linux* | tpf* | k*bsd*-gnu) | |
7973 tmp_diet=no | |
7974 if test "$host_os" = linux-dietlibc; then | |
7975 case $cc_basename in | |
7976 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7977 esac | |
7978 fi | |
7979 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7980 && test "$tmp_diet" = no | |
7981 then | |
7982 tmp_addflag= | |
7983 tmp_sharedflag='-shared' | |
7984 case $cc_basename,$host_cpu in | |
7985 pgcc*) # Portland Group C compiler | |
7986 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' | |
7987 tmp_addflag=' $pic_flag' | |
7988 ;; | |
7989 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7990 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' | |
7991 tmp_addflag=' $pic_flag -Mnomain' ;; | |
7992 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7993 tmp_addflag=' -i_dynamic' ;; | |
7994 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7995 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7996 ifc* | ifort*) # Intel Fortran compiler | |
7997 tmp_addflag=' -nofor_main' ;; | |
7998 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7999 tmp_sharedflag='-qmkshrobj' | |
8000 tmp_addflag= ;; | |
8001 esac | |
8002 case `$CC -V 2>&1 | sed 5q` in | |
8003 *Sun\ C*) # Sun C 5.9 | |
8004 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' | |
8005 compiler_needs_object=yes | |
8006 tmp_sharedflag='-G' ;; | |
8007 *Sun\ F*) # Sun Fortran 8.3 | |
8008 tmp_sharedflag='-G' ;; | |
8009 esac | |
8010 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8011 | |
8012 if test "x$supports_anon_versioning" = xyes; then | |
8013 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8015 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8016 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8017 fi | |
8018 | |
8019 case $cc_basename in | |
8020 xlf*) | |
8021 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8022 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8023 hardcode_libdir_flag_spec= | |
8024 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8025 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8026 if test "x$supports_anon_versioning" = xyes; then | |
8027 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8029 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8030 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8031 fi | |
8032 ;; | |
8033 esac | |
8034 else | |
8035 ld_shlibs=no | |
8036 fi | |
8037 ;; | |
8038 | |
8039 netbsd* | netbsdelf*-gnu) | |
8040 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8041 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8042 wlarc= | |
8043 else | |
8044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8046 fi | |
8047 ;; | |
8048 | |
8049 solaris*) | |
8050 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8051 ld_shlibs=no | |
8052 cat <<_LT_EOF 1>&2 | |
8053 | |
8054 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8055 *** create shared libraries on Solaris systems. Therefore, libtool | |
8056 *** is disabling shared libraries support. We urge you to upgrade GNU | |
8057 *** binutils to release 2.9.1 or newer. Another option is to modify | |
8058 *** your PATH or compiler configuration so that the native linker is | |
8059 *** used, and then restart. | |
8060 | |
8061 _LT_EOF | |
8062 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8065 else | |
8066 ld_shlibs=no | |
8067 fi | |
8068 ;; | |
8069 | |
8070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8071 case `$LD -v 2>&1` in | |
8072 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8073 ld_shlibs=no | |
8074 cat <<_LT_EOF 1>&2 | |
8075 | |
8076 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8077 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8078 *** is disabling shared libraries support. We urge you to upgrade GNU | |
8079 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8080 *** your PATH or compiler configuration so that the native linker is | |
8081 *** used, and then restart. | |
8082 | |
8083 _LT_EOF | |
8084 ;; | |
8085 *) | |
8086 # For security reasons, it is highly recommended that you always | |
8087 # use absolute paths for naming shared libraries, and exclude the | |
8088 # DT_RUNPATH tag from executables and libraries. But doing so | |
8089 # requires that you compile everything twice, which is a pain. | |
8090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8093 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8094 else | |
8095 ld_shlibs=no | |
8096 fi | |
8097 ;; | |
8098 esac | |
8099 ;; | |
8100 | |
8101 sunos4*) | |
8102 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8103 wlarc= | |
8104 hardcode_direct=yes | |
8105 hardcode_shlibpath_var=no | |
8106 ;; | |
8107 | |
8108 *) | |
8109 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8112 else | |
8113 ld_shlibs=no | |
8114 fi | |
8115 ;; | |
8116 esac | |
8117 | |
8118 if test "$ld_shlibs" = no; then | |
8119 runpath_var= | |
8120 hardcode_libdir_flag_spec= | |
8121 export_dynamic_flag_spec= | |
8122 whole_archive_flag_spec= | |
8123 fi | |
8124 else | |
8125 # PORTME fill in a description of your system's linker (not GNU ld) | |
8126 case $host_os in | |
8127 aix3*) | |
8128 allow_undefined_flag=unsupported | |
8129 always_export_symbols=yes | |
8130 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' | |
8131 # Note: this linker hardcodes the directories in LIBPATH if there | |
8132 # are no directories specified by -L. | |
8133 hardcode_minus_L=yes | |
8134 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8135 # Neither direct hardcoding nor static linking is supported with a | |
8136 # broken collect2. | |
8137 hardcode_direct=unsupported | |
8138 fi | |
8139 ;; | |
8140 | |
8141 aix[4-9]*) | |
8142 if test "$host_cpu" = ia64; then | |
8143 # On IA64, the linker does run time linking by default, so we don't | |
8144 # have to do anything special. | |
8145 aix_use_runtimelinking=no | |
8146 exp_sym_flag='-Bexport' | |
8147 no_entry_flag="" | |
8148 else | |
8149 # If we're using GNU nm, then we don't want the "-C" option. | |
8150 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8151 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8152 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' | |
8153 else | |
8154 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' | |
8155 fi | |
8156 aix_use_runtimelinking=no | |
8157 | |
8158 # Test if we are trying to use run time linking or normal | |
8159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8160 # need to do runtime linking. | |
8161 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
8162 for ld_flag in $LDFLAGS; do | |
8163 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8164 aix_use_runtimelinking=yes | |
8165 break | |
8166 fi | |
8167 done | |
8168 ;; | |
8169 esac | |
8170 | |
8171 exp_sym_flag='-bexport' | |
8172 no_entry_flag='-bnoentry' | |
8173 fi | |
8174 | |
8175 # When large executables or shared objects are built, AIX ld can | |
8176 # have problems creating the table of contents. If linking a library | |
8177 # or program results in "error TOC overflow" add -mminimal-toc to | |
8178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8180 | |
8181 archive_cmds='' | |
8182 hardcode_direct=yes | |
8183 hardcode_direct_absolute=yes | |
8184 hardcode_libdir_separator=':' | |
8185 link_all_deplibs=yes | |
8186 file_list_spec='${wl}-f,' | |
8187 | |
8188 if test "$GCC" = yes; then | |
8189 case $host_os in aix4.[012]|aix4.[012].*) | |
8190 # We only want to do this on AIX 4.2 and lower, the check | |
8191 # below for broken collect2 doesn't work under 4.3+ | |
8192 collect2name=`${CC} -print-prog-name=collect2` | |
8193 if test -f "$collect2name" && | |
8194 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8195 then | |
8196 # We have reworked collect2 | |
8197 : | |
8198 else | |
8199 # We have old collect2 | |
8200 hardcode_direct=unsupported | |
8201 # It fails to find uninstalled libraries when the uninstalled | |
8202 # path is not listed in the libpath. Setting hardcode_minus_L | |
8203 # to unsupported forces relinking | |
8204 hardcode_minus_L=yes | |
8205 hardcode_libdir_flag_spec='-L$libdir' | |
8206 hardcode_libdir_separator= | |
8207 fi | |
8208 ;; | |
8209 esac | |
8210 shared_flag='-shared' | |
8211 if test "$aix_use_runtimelinking" = yes; then | |
8212 shared_flag="$shared_flag "'${wl}-G' | |
8213 fi | |
8214 link_all_deplibs=no | |
8215 else | |
8216 # not using gcc | |
8217 if test "$host_cpu" = ia64; then | |
8218 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8219 # chokes on -Wl,-G. The following line is correct: | |
8220 shared_flag='-G' | |
8221 else | |
8222 if test "$aix_use_runtimelinking" = yes; then | |
8223 shared_flag='${wl}-G' | |
8224 else | |
8225 shared_flag='${wl}-bM:SRE' | |
8226 fi | |
8227 fi | |
8228 fi | |
8229 | |
8230 # It seems that -bexpall does not export symbols beginning with | |
8231 # underscore (_), so it is better to generate a list of symbols to export. | |
8232 always_export_symbols=yes | |
8233 if test "$aix_use_runtimelinking" = yes; then | |
8234 # Warning - without using the other runtime loading flags (-brtl), | |
8235 # -berok will link without error, but may produce a broken library. | |
8236 allow_undefined_flag='-berok' | |
8237 # Determine the default libpath from the value encoded in an | |
8238 # empty executable. | |
8239 cat >conftest.$ac_ext <<_ACEOF | |
8240 /* confdefs.h. */ | |
8241 _ACEOF | |
8242 cat confdefs.h >>conftest.$ac_ext | |
8243 cat >>conftest.$ac_ext <<_ACEOF | |
8244 /* end confdefs.h. */ | |
8245 | |
8246 int | |
8247 main () | |
8248 { | |
8249 | |
8250 ; | |
8251 return 0; | |
8252 } | |
8253 _ACEOF | |
8254 rm -f conftest.$ac_objext conftest$ac_exeext | |
8255 if { (ac_try="$ac_link" | |
8256 case "(($ac_try" in | |
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8258 *) ac_try_echo=$ac_try;; | |
8259 esac | |
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8261 (eval "$ac_link") 2>conftest.er1 | |
8262 ac_status=$? | |
8263 grep -v '^ *+' conftest.er1 >conftest.err | |
8264 rm -f conftest.er1 | |
8265 cat conftest.err >&5 | |
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8267 (exit $ac_status); } && { | |
8268 test -z "$ac_c_werror_flag" || | |
8269 test ! -s conftest.err | |
8270 } && test -s conftest$ac_exeext && | |
8271 $as_test_x conftest$ac_exeext; then | |
8272 | |
8273 lt_aix_libpath_sed=' | |
8274 /Import File Strings/,/^$/ { | |
8275 /^0/ { | |
8276 s/^0 *\(.*\)$/\1/ | |
8277 p | |
8278 } | |
8279 }' | |
8280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8281 # Check for a 64-bit object if we didn't find anything. | |
8282 if test -z "$aix_libpath"; then | |
8283 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8284 fi | |
8285 else | |
8286 echo "$as_me: failed program was:" >&5 | |
8287 sed 's/^/| /' conftest.$ac_ext >&5 | |
8288 | |
8289 | |
8290 fi | |
8291 | |
8292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8293 conftest$ac_exeext conftest.$ac_ext | |
8294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8295 | |
8296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8297 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" | |
8298 else | |
8299 if test "$host_cpu" = ia64; then | |
8300 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8301 allow_undefined_flag="-z nodefs" | |
8302 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" | |
8303 else | |
8304 # Determine the default libpath from the value encoded in an | |
8305 # empty executable. | |
8306 cat >conftest.$ac_ext <<_ACEOF | |
8307 /* confdefs.h. */ | |
8308 _ACEOF | |
8309 cat confdefs.h >>conftest.$ac_ext | |
8310 cat >>conftest.$ac_ext <<_ACEOF | |
8311 /* end confdefs.h. */ | |
8312 | |
8313 int | |
8314 main () | |
8315 { | |
8316 | |
8317 ; | |
8318 return 0; | |
8319 } | |
8320 _ACEOF | |
8321 rm -f conftest.$ac_objext conftest$ac_exeext | |
8322 if { (ac_try="$ac_link" | |
8323 case "(($ac_try" in | |
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8325 *) ac_try_echo=$ac_try;; | |
8326 esac | |
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8328 (eval "$ac_link") 2>conftest.er1 | |
8329 ac_status=$? | |
8330 grep -v '^ *+' conftest.er1 >conftest.err | |
8331 rm -f conftest.er1 | |
8332 cat conftest.err >&5 | |
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8334 (exit $ac_status); } && { | |
8335 test -z "$ac_c_werror_flag" || | |
8336 test ! -s conftest.err | |
8337 } && test -s conftest$ac_exeext && | |
8338 $as_test_x conftest$ac_exeext; then | |
8339 | |
8340 lt_aix_libpath_sed=' | |
8341 /Import File Strings/,/^$/ { | |
8342 /^0/ { | |
8343 s/^0 *\(.*\)$/\1/ | |
8344 p | |
8345 } | |
8346 }' | |
8347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8348 # Check for a 64-bit object if we didn't find anything. | |
8349 if test -z "$aix_libpath"; then | |
8350 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8351 fi | |
8352 else | |
8353 echo "$as_me: failed program was:" >&5 | |
8354 sed 's/^/| /' conftest.$ac_ext >&5 | |
8355 | |
8356 | |
8357 fi | |
8358 | |
8359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8360 conftest$ac_exeext conftest.$ac_ext | |
8361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8362 | |
8363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8364 # Warning - without using the other run time loading flags, | |
8365 # -berok will link without error, but may produce a broken library. | |
8366 no_undefined_flag=' ${wl}-bernotok' | |
8367 allow_undefined_flag=' ${wl}-berok' | |
8368 # Exported symbols can be pulled into shared objects from archives | |
8369 whole_archive_flag_spec='$convenience' | |
8370 archive_cmds_need_lc=yes | |
8371 # This is similar to how AIX traditionally builds its shared libraries. | |
8372 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' | |
8373 fi | |
8374 fi | |
8375 ;; | |
8376 | |
8377 amigaos*) | |
8378 case $host_cpu in | |
8379 powerpc) | |
8380 # see comment about AmigaOS4 .so support | |
8381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8382 archive_expsym_cmds='' | |
8383 ;; | |
8384 m68k) | |
8385 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)' | |
8386 hardcode_libdir_flag_spec='-L$libdir' | |
8387 hardcode_minus_L=yes | |
8388 ;; | |
8389 esac | |
8390 ;; | |
8391 | |
8392 bsdi[45]*) | |
8393 export_dynamic_flag_spec=-rdynamic | |
8394 ;; | |
8395 | |
8396 cygwin* | mingw* | pw32*) | |
8397 # When not using gcc, we currently assume that we are using | |
8398 # Microsoft Visual C++. | |
8399 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8400 # no search path for DLLs. | |
8401 hardcode_libdir_flag_spec=' ' | |
8402 allow_undefined_flag=unsupported | |
8403 # Tell ltmain to make .lib files, not .a files. | |
8404 libext=lib | |
8405 # Tell ltmain to make .dll files, not .so files. | |
8406 shrext_cmds=".dll" | |
8407 # FIXME: Setting linknames here is a bad hack. | |
8408 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8409 # The linker will automatically build a .lib file if we build a DLL. | |
8410 old_archive_from_new_cmds='true' | |
8411 # FIXME: Should let the user specify the lib program. | |
8412 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8413 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8414 enable_shared_with_static_runtimes=yes | |
8415 ;; | |
8416 | |
8417 darwin* | rhapsody*) | |
8418 | |
8419 | |
8420 archive_cmds_need_lc=no | |
8421 hardcode_direct=no | |
8422 hardcode_automatic=yes | |
8423 hardcode_shlibpath_var=unsupported | |
8424 whole_archive_flag_spec='' | |
8425 link_all_deplibs=yes | |
8426 allow_undefined_flag="$_lt_dar_allow_undefined" | |
8427 if test "$GCC" = "yes"; then | |
8428 output_verbose_link_cmd=echo | |
8429 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
8430 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8431 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}" | |
8432 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}" | |
8433 | |
8434 else | |
8435 ld_shlibs=no | |
8436 fi | |
8437 | |
8438 ;; | |
8439 | |
8440 dgux*) | |
8441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8442 hardcode_libdir_flag_spec='-L$libdir' | |
8443 hardcode_shlibpath_var=no | |
8444 ;; | |
8445 | |
8446 freebsd1*) | |
8447 ld_shlibs=no | |
8448 ;; | |
8449 | |
8450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8451 # support. Future versions do this automatically, but an explicit c++rt0.o | |
8452 # does not break anything, and helps significantly (at the cost of a little | |
8453 # extra space). | |
8454 freebsd2.2*) | |
8455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8456 hardcode_libdir_flag_spec='-R$libdir' | |
8457 hardcode_direct=yes | |
8458 hardcode_shlibpath_var=no | |
8459 ;; | |
8460 | |
8461 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8462 freebsd2*) | |
8463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8464 hardcode_direct=yes | |
8465 hardcode_minus_L=yes | |
8466 hardcode_shlibpath_var=no | |
8467 ;; | |
8468 | |
8469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8470 freebsd* | dragonfly*) | |
8471 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8472 hardcode_libdir_flag_spec='-R$libdir' | |
8473 hardcode_direct=yes | |
8474 hardcode_shlibpath_var=no | |
8475 ;; | |
8476 | |
8477 hpux9*) | |
8478 if test "$GCC" = yes; then | |
8479 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' | |
8480 else | |
8481 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' | |
8482 fi | |
8483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8484 hardcode_libdir_separator=: | |
8485 hardcode_direct=yes | |
8486 | |
8487 # hardcode_minus_L: Not really in the search PATH, | |
8488 # but as the default location of the library. | |
8489 hardcode_minus_L=yes | |
8490 export_dynamic_flag_spec='${wl}-E' | |
8491 ;; | |
8492 | |
8493 hpux10*) | |
8494 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8495 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8496 else | |
8497 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8498 fi | |
8499 if test "$with_gnu_ld" = no; then | |
8500 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8501 hardcode_libdir_flag_spec_ld='+b $libdir' | |
8502 hardcode_libdir_separator=: | |
8503 hardcode_direct=yes | |
8504 hardcode_direct_absolute=yes | |
8505 export_dynamic_flag_spec='${wl}-E' | |
8506 # hardcode_minus_L: Not really in the search PATH, | |
8507 # but as the default location of the library. | |
8508 hardcode_minus_L=yes | |
8509 fi | |
8510 ;; | |
8511 | |
8512 hpux11*) | |
8513 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8514 case $host_cpu in | |
8515 hppa*64*) | |
8516 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8517 ;; | |
8518 ia64*) | |
8519 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8520 ;; | |
8521 *) | |
8522 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8523 ;; | |
8524 esac | |
8525 else | |
8526 case $host_cpu in | |
8527 hppa*64*) | |
8528 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8529 ;; | |
8530 ia64*) | |
8531 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8532 ;; | |
8533 *) | |
8534 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8535 ;; | |
8536 esac | |
8537 fi | |
8538 if test "$with_gnu_ld" = no; then | |
8539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8540 hardcode_libdir_separator=: | |
8541 | |
8542 case $host_cpu in | |
8543 hppa*64*|ia64*) | |
8544 hardcode_direct=no | |
8545 hardcode_shlibpath_var=no | |
8546 ;; | |
8547 *) | |
8548 hardcode_direct=yes | |
8549 hardcode_direct_absolute=yes | |
8550 export_dynamic_flag_spec='${wl}-E' | |
8551 | |
8552 # hardcode_minus_L: Not really in the search PATH, | |
8553 # but as the default location of the library. | |
8554 hardcode_minus_L=yes | |
8555 ;; | |
8556 esac | |
8557 fi | |
8558 ;; | |
8559 | |
8560 irix5* | irix6* | nonstopux*) | |
8561 if test "$GCC" = yes; then | |
8562 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' | |
8563 # Try to use the -exported_symbol ld option, if it does not | |
8564 # work, assume that -exports_file does not work either and | |
8565 # implicitly export all symbols. | |
8566 save_LDFLAGS="$LDFLAGS" | |
8567 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8568 cat >conftest.$ac_ext <<_ACEOF | |
8569 int foo(void) {} | |
8570 _ACEOF | |
8571 rm -f conftest.$ac_objext conftest$ac_exeext | |
8572 if { (ac_try="$ac_link" | |
8573 case "(($ac_try" in | |
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8575 *) ac_try_echo=$ac_try;; | |
8576 esac | |
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8578 (eval "$ac_link") 2>conftest.er1 | |
8579 ac_status=$? | |
8580 grep -v '^ *+' conftest.er1 >conftest.err | |
8581 rm -f conftest.er1 | |
8582 cat conftest.err >&5 | |
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8584 (exit $ac_status); } && { | |
8585 test -z "$ac_c_werror_flag" || | |
8586 test ! -s conftest.err | |
8587 } && test -s conftest$ac_exeext && | |
8588 $as_test_x conftest$ac_exeext; then | |
8589 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' | |
8590 | |
8591 else | |
8592 echo "$as_me: failed program was:" >&5 | |
8593 sed 's/^/| /' conftest.$ac_ext >&5 | |
8594 | |
8595 | |
8596 fi | |
8597 | |
8598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8599 conftest$ac_exeext conftest.$ac_ext | |
8600 LDFLAGS="$save_LDFLAGS" | |
8601 else | |
8602 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' | |
8603 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' | |
8604 fi | |
8605 archive_cmds_need_lc='no' | |
8606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8607 hardcode_libdir_separator=: | |
8608 inherit_rpath=yes | |
8609 link_all_deplibs=yes | |
8610 ;; | |
8611 | |
8612 netbsd* | netbsdelf*-gnu) | |
8613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8615 else | |
8616 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8617 fi | |
8618 hardcode_libdir_flag_spec='-R$libdir' | |
8619 hardcode_direct=yes | |
8620 hardcode_shlibpath_var=no | |
8621 ;; | |
8622 | |
8623 newsos6) | |
8624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8625 hardcode_direct=yes | |
8626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8627 hardcode_libdir_separator=: | |
8628 hardcode_shlibpath_var=no | |
8629 ;; | |
8630 | |
8631 *nto* | *qnx*) | |
8632 ;; | |
8633 | |
8634 openbsd*) | |
8635 if test -f /usr/libexec/ld.so; then | |
8636 hardcode_direct=yes | |
8637 hardcode_shlibpath_var=no | |
8638 hardcode_direct_absolute=yes | |
8639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8640 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8641 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8643 export_dynamic_flag_spec='${wl}-E' | |
8644 else | |
8645 case $host_os in | |
8646 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8648 hardcode_libdir_flag_spec='-R$libdir' | |
8649 ;; | |
8650 *) | |
8651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8652 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8653 ;; | |
8654 esac | |
8655 fi | |
8656 else | |
8657 ld_shlibs=no | |
8658 fi | |
8659 ;; | |
8660 | |
8661 os2*) | |
8662 hardcode_libdir_flag_spec='-L$libdir' | |
8663 hardcode_minus_L=yes | |
8664 allow_undefined_flag=unsupported | |
8665 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' | |
8666 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8667 ;; | |
8668 | |
8669 osf3*) | |
8670 if test "$GCC" = yes; then | |
8671 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8672 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' | |
8673 else | |
8674 allow_undefined_flag=' -expect_unresolved \*' | |
8675 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' | |
8676 fi | |
8677 archive_cmds_need_lc='no' | |
8678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8679 hardcode_libdir_separator=: | |
8680 ;; | |
8681 | |
8682 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8683 if test "$GCC" = yes; then | |
8684 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8685 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' | |
8686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8687 else | |
8688 allow_undefined_flag=' -expect_unresolved \*' | |
8689 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' | |
8690 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~ | |
8691 $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' | |
8692 | |
8693 # Both c and cxx compiler support -rpath directly | |
8694 hardcode_libdir_flag_spec='-rpath $libdir' | |
8695 fi | |
8696 archive_cmds_need_lc='no' | |
8697 hardcode_libdir_separator=: | |
8698 ;; | |
8699 | |
8700 solaris*) | |
8701 no_undefined_flag=' -z defs' | |
8702 if test "$GCC" = yes; then | |
8703 wlarc='${wl}' | |
8704 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8705 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8706 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8707 else | |
8708 case `$CC -V 2>&1` in | |
8709 *"Compilers 5.0"*) | |
8710 wlarc='' | |
8711 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8712 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8713 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8714 ;; | |
8715 *) | |
8716 wlarc='${wl}' | |
8717 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8718 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8719 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8720 ;; | |
8721 esac | |
8722 fi | |
8723 hardcode_libdir_flag_spec='-R$libdir' | |
8724 hardcode_shlibpath_var=no | |
8725 case $host_os in | |
8726 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8727 *) | |
8728 # The compiler driver will combine and reorder linker options, | |
8729 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8730 # but is careful enough not to reorder. | |
8731 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8732 if test "$GCC" = yes; then | |
8733 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8734 else | |
8735 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8736 fi | |
8737 ;; | |
8738 esac | |
8739 link_all_deplibs=yes | |
8740 ;; | |
8741 | |
8742 sunos4*) | |
8743 if test "x$host_vendor" = xsequent; then | |
8744 # Use $CC to link under sequent, because it throws in some extra .o | |
8745 # files that make .init and .fini sections work. | |
8746 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8747 else | |
8748 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8749 fi | |
8750 hardcode_libdir_flag_spec='-L$libdir' | |
8751 hardcode_direct=yes | |
8752 hardcode_minus_L=yes | |
8753 hardcode_shlibpath_var=no | |
8754 ;; | |
8755 | |
8756 sysv4) | |
8757 case $host_vendor in | |
8758 sni) | |
8759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8760 hardcode_direct=yes # is this really true??? | |
8761 ;; | |
8762 siemens) | |
8763 ## LD is ld it makes a PLAMLIB | |
8764 ## CC just makes a GrossModule. | |
8765 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8766 reload_cmds='$CC -r -o $output$reload_objs' | |
8767 hardcode_direct=no | |
8768 ;; | |
8769 motorola) | |
8770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8771 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8772 ;; | |
8773 esac | |
8774 runpath_var='LD_RUN_PATH' | |
8775 hardcode_shlibpath_var=no | |
8776 ;; | |
8777 | |
8778 sysv4.3*) | |
8779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8780 hardcode_shlibpath_var=no | |
8781 export_dynamic_flag_spec='-Bexport' | |
8782 ;; | |
8783 | |
8784 sysv4*MP*) | |
8785 if test -d /usr/nec; then | |
8786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8787 hardcode_shlibpath_var=no | |
8788 runpath_var=LD_RUN_PATH | |
8789 hardcode_runpath_var=yes | |
8790 ld_shlibs=yes | |
8791 fi | |
8792 ;; | |
8793 | |
8794 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8795 no_undefined_flag='${wl}-z,text' | |
8796 archive_cmds_need_lc=no | |
8797 hardcode_shlibpath_var=no | |
8798 runpath_var='LD_RUN_PATH' | |
8799 | |
8800 if test "$GCC" = yes; then | |
8801 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8802 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8803 else | |
8804 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8805 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8806 fi | |
8807 ;; | |
8808 | |
8809 sysv5* | sco3.2v5* | sco5v6*) | |
8810 # Note: We can NOT use -z defs as we might desire, because we do not | |
8811 # link with -lc, and that would cause any symbols used from libc to | |
8812 # always be unresolved, which means just about no library would | |
8813 # ever link correctly. If we're not using GNU ld we use -z text | |
8814 # though, which does catch some bad symbols but isn't as heavy-handed | |
8815 # as -z defs. | |
8816 no_undefined_flag='${wl}-z,text' | |
8817 allow_undefined_flag='${wl}-z,nodefs' | |
8818 archive_cmds_need_lc=no | |
8819 hardcode_shlibpath_var=no | |
8820 hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8821 hardcode_libdir_separator=':' | |
8822 link_all_deplibs=yes | |
8823 export_dynamic_flag_spec='${wl}-Bexport' | |
8824 runpath_var='LD_RUN_PATH' | |
8825 | |
8826 if test "$GCC" = yes; then | |
8827 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8828 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8829 else | |
8830 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8831 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8832 fi | |
8833 ;; | |
8834 | |
8835 uts4*) | |
8836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8837 hardcode_libdir_flag_spec='-L$libdir' | |
8838 hardcode_shlibpath_var=no | |
8839 ;; | |
8840 | |
8841 *) | |
8842 ld_shlibs=no | |
8843 ;; | |
8844 esac | |
8845 | |
8846 if test x$host_vendor = xsni; then | |
8847 case $host in | |
8848 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8849 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8850 ;; | |
8851 esac | |
8852 fi | |
8853 fi | |
8854 | |
8855 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8856 echo "${ECHO_T}$ld_shlibs" >&6; } | |
8857 test "$ld_shlibs" = no && can_build_shared=no | |
8858 | |
8859 with_gnu_ld=$with_gnu_ld | |
8860 | |
8861 | |
8862 | |
8863 | |
8864 | |
8865 | |
8866 | |
8867 | |
8868 | |
8869 | |
8870 | |
8871 | |
8872 | |
8873 | |
8874 | |
8875 # | |
8876 # Do we need to explicitly link libc? | |
8877 # | |
8878 case "x$archive_cmds_need_lc" in | |
8879 x|xyes) | |
8880 # Assume -lc should be added | |
8881 archive_cmds_need_lc=yes | |
8882 | |
8883 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8884 case $archive_cmds in | |
8885 *'~'*) | |
8886 # FIXME: we may have to deal with multi-command sequences. | |
8887 ;; | |
8888 '$CC '*) | |
8889 # Test whether the compiler implicitly links with -lc since on some | |
8890 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8891 # to ld, don't add -lc before -lgcc. | |
8892 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8893 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
8894 $RM conftest* | |
8895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8896 | |
8897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8898 (eval $ac_compile) 2>&5 | |
8899 ac_status=$? | |
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8901 (exit $ac_status); } 2>conftest.err; then | |
8902 soname=conftest | |
8903 lib=conftest | |
8904 libobjs=conftest.$ac_objext | |
8905 deplibs= | |
8906 wl=$lt_prog_compiler_wl | |
8907 pic_flag=$lt_prog_compiler_pic | |
8908 compiler_flags=-v | |
8909 linker_flags=-v | |
8910 verstring= | |
8911 output_objdir=. | |
8912 libname=conftest | |
8913 lt_save_allow_undefined_flag=$allow_undefined_flag | |
8914 allow_undefined_flag= | |
8915 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8916 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8917 ac_status=$? | |
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8919 (exit $ac_status); } | |
8920 then | |
8921 archive_cmds_need_lc=no | |
8922 else | |
8923 archive_cmds_need_lc=yes | |
8924 fi | |
8925 allow_undefined_flag=$lt_save_allow_undefined_flag | |
8926 else | |
8927 cat conftest.err 1>&5 | |
8928 fi | |
8929 $RM conftest* | |
8930 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8931 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } | |
8932 ;; | |
8933 esac | |
8934 fi | |
8935 ;; | |
8936 esac | |
8937 | |
8938 | |
8939 | |
8940 | |
8941 | |
8942 | |
8943 | |
8944 | |
8945 | |
8946 | |
8947 | |
8948 | |
8949 | |
8950 | |
8951 | |
8952 | |
8953 | |
8954 | |
8955 | |
8956 | |
8957 | |
8958 | |
8959 | |
8960 | |
8961 | |
8962 | |
8963 | |
8964 | |
8965 | |
8966 | |
8967 | |
8968 | |
8969 | |
8970 | |
8971 | |
8972 | |
8973 | |
8974 | |
8975 | |
8976 | |
8977 | |
8978 | |
8979 | |
8980 | |
8981 | |
8982 | |
8983 | |
8984 | |
8985 | |
8986 | |
8987 | |
8988 | |
8989 | |
8990 | |
8991 | |
8992 | |
8993 | |
8994 | |
8995 | |
8996 | |
8997 | |
8998 | |
8999 | |
9000 | |
9001 | |
9002 | |
9003 | |
9004 | |
9005 | |
9006 | |
9007 | |
9008 | |
9009 | |
9010 | |
9011 | |
9012 | |
9013 | |
9014 | |
9015 | |
9016 | |
9017 | |
9018 | |
9019 | |
9020 | |
9021 | |
9022 | |
9023 | |
9024 | |
9025 | |
9026 | |
9027 | |
9028 | |
9029 | |
9030 | |
9031 | |
9032 | |
9033 | |
9034 | |
9035 | |
9036 | |
9037 | |
9038 | |
9039 | |
9040 | |
9041 | |
9042 | |
9043 | |
9044 | |
9045 | |
9046 | |
9047 | |
9048 | |
9049 | |
9050 | |
9051 | |
9052 | |
9053 | |
9054 | |
9055 | |
9056 | |
9057 | |
9058 | |
9059 | |
9060 | |
9061 | |
9062 | |
9063 | |
9064 | |
9065 | |
9066 | |
9067 | |
9068 | |
9069 | |
9070 | |
9071 | |
9072 | |
9073 | |
9074 | |
9075 | |
9076 | |
9077 | |
9078 | |
9079 | |
9080 | |
9081 | |
9082 | |
9083 | |
9084 | |
9085 | |
9086 | |
9087 | |
9088 | |
9089 | |
9090 | |
9091 | |
9092 | |
9093 | |
9094 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9095 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
9096 | |
9097 if test "$GCC" = yes; then | |
9098 case $host_os in | |
9099 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9100 *) lt_awk_arg="/^libraries:/" ;; | |
9101 esac | |
9102 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9103 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9104 # if the path contains ";" then we assume it to be the separator | |
9105 # otherwise default to the standard path separator (i.e. ":") - it is | |
9106 # assumed that no part of a normal pathname contains ";" but that should | |
9107 # okay in the real world where ";" in dirpaths is itself problematic. | |
9108 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9109 else | |
9110 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9111 fi | |
9112 # Ok, now we have the path, separated by spaces, we can step through it | |
9113 # and add multilib dir if necessary. | |
9114 lt_tmp_lt_search_path_spec= | |
9115 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9116 for lt_sys_path in $lt_search_path_spec; do | |
9117 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9118 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9119 else | |
9120 test -d "$lt_sys_path" && \ | |
9121 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9122 fi | |
9123 done | |
9124 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9125 BEGIN {RS=" "; FS="/|\n";} { | |
9126 lt_foo=""; | |
9127 lt_count=0; | |
9128 for (lt_i = NF; lt_i > 0; lt_i--) { | |
9129 if ($lt_i != "" && $lt_i != ".") { | |
9130 if ($lt_i == "..") { | |
9131 lt_count++; | |
9132 } else { | |
9133 if (lt_count == 0) { | |
9134 lt_foo="/" $lt_i lt_foo; | |
9135 } else { | |
9136 lt_count--; | |
9137 } | |
9138 } | |
9139 } | |
9140 } | |
9141 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9142 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9143 }'` | |
9144 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9145 else | |
9146 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9147 fi | |
9148 library_names_spec= | |
9149 libname_spec='lib$name' | |
9150 soname_spec= | |
9151 shrext_cmds=".so" | |
9152 postinstall_cmds= | |
9153 postuninstall_cmds= | |
9154 finish_cmds= | |
9155 finish_eval= | |
9156 shlibpath_var= | |
9157 shlibpath_overrides_runpath=unknown | |
9158 version_type=none | |
9159 dynamic_linker="$host_os ld.so" | |
9160 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9161 need_lib_prefix=unknown | |
9162 hardcode_into_libs=no | |
9163 | |
9164 # when you set need_version to no, make sure it does not cause -set_version | |
9165 # flags to be left without arguments | |
9166 need_version=unknown | |
9167 | |
9168 case $host_os in | |
9169 aix3*) | |
9170 version_type=linux | |
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9172 shlibpath_var=LIBPATH | |
9173 | |
9174 # AIX 3 has no versioning support, so we append a major version to the name. | |
9175 soname_spec='${libname}${release}${shared_ext}$major' | |
9176 ;; | |
9177 | |
9178 aix[4-9]*) | |
9179 version_type=linux | |
9180 need_lib_prefix=no | |
9181 need_version=no | |
9182 hardcode_into_libs=yes | |
9183 if test "$host_cpu" = ia64; then | |
9184 # AIX 5 supports IA64 | |
9185 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9186 shlibpath_var=LD_LIBRARY_PATH | |
9187 else | |
9188 # With GCC up to 2.95.x, collect2 would create an import file | |
9189 # for dependence libraries. The import file would start with | |
9190 # the line `#! .'. This would cause the generated library to | |
9191 # depend on `.', always an invalid library. This was fixed in | |
9192 # development snapshots of GCC prior to 3.0. | |
9193 case $host_os in | |
9194 aix4 | aix4.[01] | aix4.[01].*) | |
9195 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9196 echo ' yes ' | |
9197 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9198 : | |
9199 else | |
9200 can_build_shared=no | |
9201 fi | |
9202 ;; | |
9203 esac | |
9204 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9205 # soname into executable. Probably we can add versioning support to | |
9206 # collect2, so additional links can be useful in future. | |
9207 if test "$aix_use_runtimelinking" = yes; then | |
9208 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9209 # instead of lib<name>.a to let people know that these are not | |
9210 # typical AIX shared libraries. | |
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9212 else | |
9213 # We preserve .a as extension for shared libraries through AIX4.2 | |
9214 # and later when we are not doing run time linking. | |
9215 library_names_spec='${libname}${release}.a $libname.a' | |
9216 soname_spec='${libname}${release}${shared_ext}$major' | |
9217 fi | |
9218 shlibpath_var=LIBPATH | |
9219 fi | |
9220 ;; | |
9221 | |
9222 amigaos*) | |
9223 case $host_cpu in | |
9224 powerpc) | |
9225 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9226 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9228 ;; | |
9229 m68k) | |
9230 library_names_spec='$libname.ixlibrary $libname.a' | |
9231 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9232 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' | |
9233 ;; | |
9234 esac | |
9235 ;; | |
9236 | |
9237 beos*) | |
9238 library_names_spec='${libname}${shared_ext}' | |
9239 dynamic_linker="$host_os ld.so" | |
9240 shlibpath_var=LIBRARY_PATH | |
9241 ;; | |
9242 | |
9243 bsdi[45]*) | |
9244 version_type=linux | |
9245 need_version=no | |
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9247 soname_spec='${libname}${release}${shared_ext}$major' | |
9248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9249 shlibpath_var=LD_LIBRARY_PATH | |
9250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9252 # the default ld.so.conf also contains /usr/contrib/lib and | |
9253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9254 # libtool to hard-code these into programs | |
9255 ;; | |
9256 | |
9257 cygwin* | mingw* | pw32*) | |
9258 version_type=windows | |
9259 shrext_cmds=".dll" | |
9260 need_version=no | |
9261 need_lib_prefix=no | |
9262 | |
9263 case $GCC,$host_os in | |
9264 yes,cygwin* | yes,mingw* | yes,pw32*) | |
9265 library_names_spec='$libname.dll.a' | |
9266 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9267 postinstall_cmds='base_file=`basename \${file}`~ | |
9268 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9269 dldir=$destdir/`dirname \$dlpath`~ | |
9270 test -d \$dldir || mkdir -p \$dldir~ | |
9271 $install_prog $dir/$dlname \$dldir/$dlname~ | |
9272 chmod a+x \$dldir/$dlname~ | |
9273 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9274 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9275 fi' | |
9276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9277 dlpath=$dir/\$dldll~ | |
9278 $RM \$dlpath' | |
9279 shlibpath_overrides_runpath=yes | |
9280 | |
9281 case $host_os in | |
9282 cygwin*) | |
9283 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9285 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9286 ;; | |
9287 mingw*) | |
9288 # MinGW DLLs use traditional 'lib' prefix | |
9289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9290 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9291 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
9292 # It is most probably a Windows format PATH printed by | |
9293 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9294 # path with ; separators, and with drive letters. We can handle the | |
9295 # drive letters (cygwin fileutils understands them), so leave them, | |
9296 # especially as we might pass files found there to a mingw objdump, | |
9297 # which wouldn't understand a cygwinified path. Ahh. | |
9298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
9299 else | |
9300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9301 fi | |
9302 ;; | |
9303 pw32*) | |
9304 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9305 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9306 ;; | |
9307 esac | |
9308 ;; | |
9309 | |
9310 *) | |
9311 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9312 ;; | |
9313 esac | |
9314 dynamic_linker='Win32 ld.exe' | |
9315 # FIXME: first we should search . and the directory the executable is in | |
9316 shlibpath_var=PATH | |
9317 ;; | |
9318 | |
9319 darwin* | rhapsody*) | |
9320 dynamic_linker="$host_os dyld" | |
9321 version_type=darwin | |
9322 need_lib_prefix=no | |
9323 need_version=no | |
9324 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9325 soname_spec='${libname}${release}${major}$shared_ext' | |
9326 shlibpath_overrides_runpath=yes | |
9327 shlibpath_var=DYLD_LIBRARY_PATH | |
9328 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9329 | |
9330 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9331 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9332 ;; | |
9333 | |
9334 dgux*) | |
9335 version_type=linux | |
9336 need_lib_prefix=no | |
9337 need_version=no | |
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9339 soname_spec='${libname}${release}${shared_ext}$major' | |
9340 shlibpath_var=LD_LIBRARY_PATH | |
9341 ;; | |
9342 | |
9343 freebsd1*) | |
9344 dynamic_linker=no | |
9345 ;; | |
9346 | |
9347 freebsd* | dragonfly*) | |
9348 # DragonFly does not have aout. When/if they implement a new | |
9349 # versioning mechanism, adjust this. | |
9350 if test -x /usr/bin/objformat; then | |
9351 objformat=`/usr/bin/objformat` | |
9352 else | |
9353 case $host_os in | |
9354 freebsd[123]*) objformat=aout ;; | |
9355 *) objformat=elf ;; | |
9356 esac | |
9357 fi | |
9358 version_type=freebsd-$objformat | |
9359 case $version_type in | |
9360 freebsd-elf*) | |
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9362 need_version=no | |
9363 need_lib_prefix=no | |
9364 ;; | |
9365 freebsd-*) | |
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9367 need_version=yes | |
9368 ;; | |
9369 esac | |
9370 shlibpath_var=LD_LIBRARY_PATH | |
9371 case $host_os in | |
9372 freebsd2*) | |
9373 shlibpath_overrides_runpath=yes | |
9374 ;; | |
9375 freebsd3.[01]* | freebsdelf3.[01]*) | |
9376 shlibpath_overrides_runpath=yes | |
9377 hardcode_into_libs=yes | |
9378 ;; | |
9379 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9380 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9381 shlibpath_overrides_runpath=no | |
9382 hardcode_into_libs=yes | |
9383 ;; | |
9384 *) # from 4.6 on, and DragonFly | |
9385 shlibpath_overrides_runpath=yes | |
9386 hardcode_into_libs=yes | |
9387 ;; | |
9388 esac | |
9389 ;; | |
9390 | |
9391 gnu*) | |
9392 version_type=linux | |
9393 need_lib_prefix=no | |
9394 need_version=no | |
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9396 soname_spec='${libname}${release}${shared_ext}$major' | |
9397 shlibpath_var=LD_LIBRARY_PATH | |
9398 hardcode_into_libs=yes | |
9399 ;; | |
9400 | |
9401 hpux9* | hpux10* | hpux11*) | |
9402 # Give a soname corresponding to the major version so that dld.sl refuses to | |
9403 # link against other versions. | |
9404 version_type=sunos | |
9405 need_lib_prefix=no | |
9406 need_version=no | |
9407 case $host_cpu in | |
9408 ia64*) | |
9409 shrext_cmds='.so' | |
9410 hardcode_into_libs=yes | |
9411 dynamic_linker="$host_os dld.so" | |
9412 shlibpath_var=LD_LIBRARY_PATH | |
9413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9415 soname_spec='${libname}${release}${shared_ext}$major' | |
9416 if test "X$HPUX_IA64_MODE" = X32; then | |
9417 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9418 else | |
9419 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9420 fi | |
9421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9422 ;; | |
9423 hppa*64*) | |
9424 shrext_cmds='.sl' | |
9425 hardcode_into_libs=yes | |
9426 dynamic_linker="$host_os dld.sl" | |
9427 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9430 soname_spec='${libname}${release}${shared_ext}$major' | |
9431 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9433 ;; | |
9434 *) | |
9435 shrext_cmds='.sl' | |
9436 dynamic_linker="$host_os dld.sl" | |
9437 shlibpath_var=SHLIB_PATH | |
9438 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9440 soname_spec='${libname}${release}${shared_ext}$major' | |
9441 ;; | |
9442 esac | |
9443 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9444 postinstall_cmds='chmod 555 $lib' | |
9445 ;; | |
9446 | |
9447 interix[3-9]*) | |
9448 version_type=linux | |
9449 need_lib_prefix=no | |
9450 need_version=no | |
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9452 soname_spec='${libname}${release}${shared_ext}$major' | |
9453 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9454 shlibpath_var=LD_LIBRARY_PATH | |
9455 shlibpath_overrides_runpath=no | |
9456 hardcode_into_libs=yes | |
9457 ;; | |
9458 | |
9459 irix5* | irix6* | nonstopux*) | |
9460 case $host_os in | |
9461 nonstopux*) version_type=nonstopux ;; | |
9462 *) | |
9463 if test "$lt_cv_prog_gnu_ld" = yes; then | |
9464 version_type=linux | |
9465 else | |
9466 version_type=irix | |
9467 fi ;; | |
9468 esac | |
9469 need_lib_prefix=no | |
9470 need_version=no | |
9471 soname_spec='${libname}${release}${shared_ext}$major' | |
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9473 case $host_os in | |
9474 irix5* | nonstopux*) | |
9475 libsuff= shlibsuff= | |
9476 ;; | |
9477 *) | |
9478 case $LD in # libtool.m4 will add one of these switches to LD | |
9479 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9480 libsuff= shlibsuff= libmagic=32-bit;; | |
9481 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9482 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9483 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9484 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9485 *) libsuff= shlibsuff= libmagic=never-match;; | |
9486 esac | |
9487 ;; | |
9488 esac | |
9489 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9490 shlibpath_overrides_runpath=no | |
9491 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9492 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9493 hardcode_into_libs=yes | |
9494 ;; | |
9495 | |
9496 # No shared lib support for Linux oldld, aout, or coff. | |
9497 linux*oldld* | linux*aout* | linux*coff*) | |
9498 dynamic_linker=no | |
9499 ;; | |
9500 | |
9501 # This must be Linux ELF. | |
9502 linux* | k*bsd*-gnu) | |
9503 version_type=linux | |
9504 need_lib_prefix=no | |
9505 need_version=no | |
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9507 soname_spec='${libname}${release}${shared_ext}$major' | |
9508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9509 shlibpath_var=LD_LIBRARY_PATH | |
9510 shlibpath_overrides_runpath=no | |
9511 # Some binutils ld are patched to set DT_RUNPATH | |
9512 save_LDFLAGS=$LDFLAGS | |
9513 save_libdir=$libdir | |
9514 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9515 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9516 cat >conftest.$ac_ext <<_ACEOF | |
9517 /* confdefs.h. */ | |
9518 _ACEOF | |
9519 cat confdefs.h >>conftest.$ac_ext | |
9520 cat >>conftest.$ac_ext <<_ACEOF | |
9521 /* end confdefs.h. */ | |
9522 | |
9523 int | |
9524 main () | |
9525 { | |
9526 | |
9527 ; | |
9528 return 0; | |
9529 } | |
9530 _ACEOF | |
9531 rm -f conftest.$ac_objext conftest$ac_exeext | |
9532 if { (ac_try="$ac_link" | |
9533 case "(($ac_try" in | |
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9535 *) ac_try_echo=$ac_try;; | |
9536 esac | |
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9538 (eval "$ac_link") 2>conftest.er1 | |
9539 ac_status=$? | |
9540 grep -v '^ *+' conftest.er1 >conftest.err | |
9541 rm -f conftest.er1 | |
9542 cat conftest.err >&5 | |
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9544 (exit $ac_status); } && { | |
9545 test -z "$ac_c_werror_flag" || | |
9546 test ! -s conftest.err | |
9547 } && test -s conftest$ac_exeext && | |
9548 $as_test_x conftest$ac_exeext; then | |
9549 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
9550 shlibpath_overrides_runpath=yes | |
9551 fi | |
9552 | |
9553 else | |
9554 echo "$as_me: failed program was:" >&5 | |
9555 sed 's/^/| /' conftest.$ac_ext >&5 | |
9556 | |
9557 | |
9558 fi | |
9559 | |
9560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9561 conftest$ac_exeext conftest.$ac_ext | |
9562 LDFLAGS=$save_LDFLAGS | |
9563 libdir=$save_libdir | |
9564 | |
9565 # This implies no fast_install, which is unacceptable. | |
9566 # Some rework will be needed to allow for fast_install | |
9567 # before this can be enabled. | |
9568 hardcode_into_libs=yes | |
9569 | |
9570 # Append ld.so.conf contents to the search path | |
9571 if test -f /etc/ld.so.conf; then | |
9572 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' ' '` | |
9573 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9574 fi | |
9575 | |
9576 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9577 # powerpc, because MkLinux only supported shared libraries with the | |
9578 # GNU dynamic linker. Since this was broken with cross compilers, | |
9579 # most powerpc-linux boxes support dynamic linking these days and | |
9580 # people can always --disable-shared, the test was removed, and we | |
9581 # assume the GNU/Linux dynamic linker is in use. | |
9582 dynamic_linker='GNU/Linux ld.so' | |
9583 ;; | |
9584 | |
9585 netbsdelf*-gnu) | |
9586 version_type=linux | |
9587 need_lib_prefix=no | |
9588 need_version=no | |
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9590 soname_spec='${libname}${release}${shared_ext}$major' | |
9591 shlibpath_var=LD_LIBRARY_PATH | |
9592 shlibpath_overrides_runpath=no | |
9593 hardcode_into_libs=yes | |
9594 dynamic_linker='NetBSD ld.elf_so' | |
9595 ;; | |
9596 | |
9597 netbsd*) | |
9598 version_type=sunos | |
9599 need_lib_prefix=no | |
9600 need_version=no | |
9601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9604 dynamic_linker='NetBSD (a.out) ld.so' | |
9605 else | |
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9607 soname_spec='${libname}${release}${shared_ext}$major' | |
9608 dynamic_linker='NetBSD ld.elf_so' | |
9609 fi | |
9610 shlibpath_var=LD_LIBRARY_PATH | |
9611 shlibpath_overrides_runpath=yes | |
9612 hardcode_into_libs=yes | |
9613 ;; | |
9614 | |
9615 newsos6) | |
9616 version_type=linux | |
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9618 shlibpath_var=LD_LIBRARY_PATH | |
9619 shlibpath_overrides_runpath=yes | |
9620 ;; | |
9621 | |
9622 *nto* | *qnx*) | |
9623 version_type=qnx | |
9624 need_lib_prefix=no | |
9625 need_version=no | |
9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9627 soname_spec='${libname}${release}${shared_ext}$major' | |
9628 shlibpath_var=LD_LIBRARY_PATH | |
9629 shlibpath_overrides_runpath=no | |
9630 hardcode_into_libs=yes | |
9631 dynamic_linker='ldqnx.so' | |
9632 ;; | |
9633 | |
9634 openbsd*) | |
9635 version_type=sunos | |
9636 sys_lib_dlsearch_path_spec="/usr/lib" | |
9637 need_lib_prefix=no | |
9638 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9639 case $host_os in | |
9640 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9641 *) need_version=no ;; | |
9642 esac | |
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9645 shlibpath_var=LD_LIBRARY_PATH | |
9646 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9647 case $host_os in | |
9648 openbsd2.[89] | openbsd2.[89].*) | |
9649 shlibpath_overrides_runpath=no | |
9650 ;; | |
9651 *) | |
9652 shlibpath_overrides_runpath=yes | |
9653 ;; | |
9654 esac | |
9655 else | |
9656 shlibpath_overrides_runpath=yes | |
9657 fi | |
9658 ;; | |
9659 | |
9660 os2*) | |
9661 libname_spec='$name' | |
9662 shrext_cmds=".dll" | |
9663 need_lib_prefix=no | |
9664 library_names_spec='$libname${shared_ext} $libname.a' | |
9665 dynamic_linker='OS/2 ld.exe' | |
9666 shlibpath_var=LIBPATH | |
9667 ;; | |
9668 | |
9669 osf3* | osf4* | osf5*) | |
9670 version_type=osf | |
9671 need_lib_prefix=no | |
9672 need_version=no | |
9673 soname_spec='${libname}${release}${shared_ext}$major' | |
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9675 shlibpath_var=LD_LIBRARY_PATH | |
9676 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9677 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9678 ;; | |
9679 | |
9680 rdos*) | |
9681 dynamic_linker=no | |
9682 ;; | |
9683 | |
9684 solaris*) | |
9685 version_type=linux | |
9686 need_lib_prefix=no | |
9687 need_version=no | |
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9689 soname_spec='${libname}${release}${shared_ext}$major' | |
9690 shlibpath_var=LD_LIBRARY_PATH | |
9691 shlibpath_overrides_runpath=yes | |
9692 hardcode_into_libs=yes | |
9693 # ldd complains unless libraries are executable | |
9694 postinstall_cmds='chmod +x $lib' | |
9695 ;; | |
9696 | |
9697 sunos4*) | |
9698 version_type=sunos | |
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9700 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9701 shlibpath_var=LD_LIBRARY_PATH | |
9702 shlibpath_overrides_runpath=yes | |
9703 if test "$with_gnu_ld" = yes; then | |
9704 need_lib_prefix=no | |
9705 fi | |
9706 need_version=yes | |
9707 ;; | |
9708 | |
9709 sysv4 | sysv4.3*) | |
9710 version_type=linux | |
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9712 soname_spec='${libname}${release}${shared_ext}$major' | |
9713 shlibpath_var=LD_LIBRARY_PATH | |
9714 case $host_vendor in | |
9715 sni) | |
9716 shlibpath_overrides_runpath=no | |
9717 need_lib_prefix=no | |
9718 runpath_var=LD_RUN_PATH | |
9719 ;; | |
9720 siemens) | |
9721 need_lib_prefix=no | |
9722 ;; | |
9723 motorola) | |
9724 need_lib_prefix=no | |
9725 need_version=no | |
9726 shlibpath_overrides_runpath=no | |
9727 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9728 ;; | |
9729 esac | |
9730 ;; | |
9731 | |
9732 sysv4*MP*) | |
9733 if test -d /usr/nec ;then | |
9734 version_type=linux | |
9735 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9736 soname_spec='$libname${shared_ext}.$major' | |
9737 shlibpath_var=LD_LIBRARY_PATH | |
9738 fi | |
9739 ;; | |
9740 | |
9741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9742 version_type=freebsd-elf | |
9743 need_lib_prefix=no | |
9744 need_version=no | |
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9746 soname_spec='${libname}${release}${shared_ext}$major' | |
9747 shlibpath_var=LD_LIBRARY_PATH | |
9748 shlibpath_overrides_runpath=yes | |
9749 hardcode_into_libs=yes | |
9750 if test "$with_gnu_ld" = yes; then | |
9751 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9752 else | |
9753 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9754 case $host_os in | |
9755 sco3.2v5*) | |
9756 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9757 ;; | |
9758 esac | |
9759 fi | |
9760 sys_lib_dlsearch_path_spec='/usr/lib' | |
9761 ;; | |
9762 | |
9763 tpf*) | |
9764 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9765 version_type=linux | |
9766 need_lib_prefix=no | |
9767 need_version=no | |
9768 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9769 shlibpath_var=LD_LIBRARY_PATH | |
9770 shlibpath_overrides_runpath=no | |
9771 hardcode_into_libs=yes | |
9772 ;; | |
9773 | |
9774 uts4*) | |
9775 version_type=linux | |
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9777 soname_spec='${libname}${release}${shared_ext}$major' | |
9778 shlibpath_var=LD_LIBRARY_PATH | |
9779 ;; | |
9780 | |
9781 *) | |
9782 dynamic_linker=no | |
9783 ;; | |
9784 esac | |
9785 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9786 echo "${ECHO_T}$dynamic_linker" >&6; } | |
9787 test "$dynamic_linker" = no && can_build_shared=no | |
9788 | |
9789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9790 if test "$GCC" = yes; then | |
9791 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9792 fi | |
9793 | |
9794 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
9795 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9796 fi | |
9797 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9798 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9799 fi | |
9800 | |
9801 | |
9802 | |
9803 | |
9804 | |
9805 | |
9806 | |
9807 | |
9808 | |
9809 | |
9810 | |
9811 | |
9812 | |
9813 | |
9814 | |
9815 | |
9816 | |
9817 | |
9818 | |
9819 | |
9820 | |
9821 | |
9822 | |
9823 | |
9824 | |
9825 | |
9826 | |
9827 | |
9828 | |
9829 | |
9830 | |
9831 | |
9832 | |
9833 | |
9834 | |
9835 | |
9836 | |
9837 | |
9838 | |
9839 | |
9840 | |
9841 | |
9842 | |
9843 | |
9844 | |
9845 | |
9846 | |
9847 | |
9848 | |
9849 | |
9850 | |
9851 | |
9852 | |
9853 | |
9854 | |
9855 | |
9856 | |
9857 | |
9858 | |
9859 | |
9860 | |
9861 | |
9862 | |
9863 | |
9864 | |
9865 | |
9866 | |
9867 | |
9868 | |
9869 | |
9870 | |
9871 | |
9872 | |
9873 | |
9874 | |
9875 | |
9876 | |
9877 | |
9878 | |
9879 | |
9880 | |
9881 | |
9882 | |
9883 | |
9884 | |
9885 | |
9886 | |
9887 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9888 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
9889 hardcode_action= | |
9890 if test -n "$hardcode_libdir_flag_spec" || | |
9891 test -n "$runpath_var" || | |
9892 test "X$hardcode_automatic" = "Xyes" ; then | |
9893 | |
9894 # We can hardcode non-existent directories. | |
9895 if test "$hardcode_direct" != no && | |
9896 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9897 # have to relink, otherwise we might link with an installed library | |
9898 # when we should be linking with a yet-to-be-installed one | |
9899 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9900 test "$hardcode_minus_L" != no; then | |
9901 # Linking always hardcodes the temporary library directory. | |
9902 hardcode_action=relink | |
9903 else | |
9904 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9905 hardcode_action=immediate | |
9906 fi | |
9907 else | |
9908 # We cannot hardcode anything, or else we can only hardcode existing | |
9909 # directories. | |
9910 hardcode_action=unsupported | |
9911 fi | |
9912 { echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
9913 echo "${ECHO_T}$hardcode_action" >&6; } | |
9914 | |
9915 if test "$hardcode_action" = relink || | |
9916 test "$inherit_rpath" = yes; then | |
9917 # Fast installation is not supported | |
9918 enable_fast_install=no | |
9919 elif test "$shlibpath_overrides_runpath" = yes || | |
9920 test "$enable_shared" = no; then | |
9921 # Fast installation is not necessary | |
9922 enable_fast_install=needless | |
9923 fi | |
9924 | |
9925 | |
9926 | |
9927 | |
9928 | |
9929 | |
9930 if test "x$enable_dlopen" != xyes; then | |
9931 enable_dlopen=unknown | |
9932 enable_dlopen_self=unknown | |
9933 enable_dlopen_self_static=unknown | |
9934 else | |
9935 lt_cv_dlopen=no | |
9936 lt_cv_dlopen_libs= | |
9937 | |
9938 case $host_os in | |
9939 beos*) | |
9940 lt_cv_dlopen="load_add_on" | |
9941 lt_cv_dlopen_libs= | |
9942 lt_cv_dlopen_self=yes | |
9943 ;; | |
9944 | |
9945 mingw* | pw32*) | |
9946 lt_cv_dlopen="LoadLibrary" | |
9947 lt_cv_dlopen_libs= | |
9948 ;; | |
9949 | |
9950 cygwin*) | |
9951 lt_cv_dlopen="dlopen" | |
9952 lt_cv_dlopen_libs= | |
9953 ;; | |
9954 | |
9955 darwin*) | |
9956 # if libdl is installed we need to link against it | |
9957 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9958 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
9959 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9960 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9961 else | |
9962 ac_check_lib_save_LIBS=$LIBS | |
9963 LIBS="-ldl $LIBS" | |
9964 cat >conftest.$ac_ext <<_ACEOF | |
9965 /* confdefs.h. */ | |
9966 _ACEOF | |
9967 cat confdefs.h >>conftest.$ac_ext | |
9968 cat >>conftest.$ac_ext <<_ACEOF | |
9969 /* end confdefs.h. */ | |
9970 | |
9971 /* Override any GCC internal prototype to avoid an error. | |
9972 Use char because int might match the return type of a GCC | |
9973 builtin and then its argument prototype would still apply. */ | |
9974 #ifdef __cplusplus | |
9975 extern "C" | |
9976 #endif | |
9977 char dlopen (); | |
9978 int | |
9979 main () | |
9980 { | |
9981 return dlopen (); | |
9982 ; | |
9983 return 0; | |
9984 } | |
9985 _ACEOF | |
9986 rm -f conftest.$ac_objext conftest$ac_exeext | |
9987 if { (ac_try="$ac_link" | |
9988 case "(($ac_try" in | |
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9990 *) ac_try_echo=$ac_try;; | |
9991 esac | |
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9993 (eval "$ac_link") 2>conftest.er1 | |
9994 ac_status=$? | |
9995 grep -v '^ *+' conftest.er1 >conftest.err | |
9996 rm -f conftest.er1 | |
9997 cat conftest.err >&5 | |
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9999 (exit $ac_status); } && { | |
10000 test -z "$ac_c_werror_flag" || | |
10001 test ! -s conftest.err | |
10002 } && test -s conftest$ac_exeext && | |
10003 $as_test_x conftest$ac_exeext; then | |
10004 ac_cv_lib_dl_dlopen=yes | |
10005 else | |
10006 echo "$as_me: failed program was:" >&5 | |
10007 sed 's/^/| /' conftest.$ac_ext >&5 | |
10008 | |
10009 ac_cv_lib_dl_dlopen=no | |
10010 fi | |
10011 | |
10012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10013 conftest$ac_exeext conftest.$ac_ext | |
10014 LIBS=$ac_check_lib_save_LIBS | |
10015 fi | |
10016 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
10018 if test $ac_cv_lib_dl_dlopen = yes; then | |
10019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10020 else | |
10021 | |
10022 lt_cv_dlopen="dyld" | |
10023 lt_cv_dlopen_libs= | |
10024 lt_cv_dlopen_self=yes | |
10025 | |
10026 fi | |
10027 | |
10028 ;; | |
10029 | |
10030 *) | |
10031 { echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10032 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | |
10033 if test "${ac_cv_func_shl_load+set}" = set; then | |
10034 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10035 else | |
10036 cat >conftest.$ac_ext <<_ACEOF | |
10037 /* confdefs.h. */ | |
10038 _ACEOF | |
10039 cat confdefs.h >>conftest.$ac_ext | |
10040 cat >>conftest.$ac_ext <<_ACEOF | |
10041 /* end confdefs.h. */ | |
10042 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10043 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10044 #define shl_load innocuous_shl_load | |
10045 | |
10046 /* System header to define __stub macros and hopefully few prototypes, | |
10047 which can conflict with char shl_load (); below. | |
10048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10049 <limits.h> exists even on freestanding compilers. */ | |
10050 | |
10051 #ifdef __STDC__ | |
10052 # include <limits.h> | |
10053 #else | |
10054 # include <assert.h> | |
10055 #endif | |
10056 | |
10057 #undef shl_load | |
10058 | |
10059 /* Override any GCC internal prototype to avoid an error. | |
10060 Use char because int might match the return type of a GCC | |
10061 builtin and then its argument prototype would still apply. */ | |
10062 #ifdef __cplusplus | |
10063 extern "C" | |
10064 #endif | |
10065 char shl_load (); | |
10066 /* The GNU C library defines this for functions which it implements | |
10067 to always fail with ENOSYS. Some functions are actually named | |
10068 something starting with __ and the normal name is an alias. */ | |
10069 #if defined __stub_shl_load || defined __stub___shl_load | |
10070 choke me | |
10071 #endif | |
10072 | |
10073 int | |
10074 main () | |
10075 { | |
10076 return shl_load (); | |
10077 ; | |
10078 return 0; | |
10079 } | |
10080 _ACEOF | |
10081 rm -f conftest.$ac_objext conftest$ac_exeext | |
10082 if { (ac_try="$ac_link" | |
10083 case "(($ac_try" in | |
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10085 *) ac_try_echo=$ac_try;; | |
10086 esac | |
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10088 (eval "$ac_link") 2>conftest.er1 | |
10089 ac_status=$? | |
10090 grep -v '^ *+' conftest.er1 >conftest.err | |
10091 rm -f conftest.er1 | |
10092 cat conftest.err >&5 | |
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10094 (exit $ac_status); } && { | |
10095 test -z "$ac_c_werror_flag" || | |
10096 test ! -s conftest.err | |
10097 } && test -s conftest$ac_exeext && | |
10098 $as_test_x conftest$ac_exeext; then | |
10099 ac_cv_func_shl_load=yes | |
10100 else | |
10101 echo "$as_me: failed program was:" >&5 | |
10102 sed 's/^/| /' conftest.$ac_ext >&5 | |
10103 | |
10104 ac_cv_func_shl_load=no | |
10105 fi | |
10106 | |
10107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10108 conftest$ac_exeext conftest.$ac_ext | |
10109 fi | |
10110 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10111 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | |
10112 if test $ac_cv_func_shl_load = yes; then | |
10113 lt_cv_dlopen="shl_load" | |
10114 else | |
10115 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10116 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | |
10117 if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10118 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10119 else | |
10120 ac_check_lib_save_LIBS=$LIBS | |
10121 LIBS="-ldld $LIBS" | |
10122 cat >conftest.$ac_ext <<_ACEOF | |
10123 /* confdefs.h. */ | |
10124 _ACEOF | |
10125 cat confdefs.h >>conftest.$ac_ext | |
10126 cat >>conftest.$ac_ext <<_ACEOF | |
10127 /* end confdefs.h. */ | |
10128 | |
10129 /* Override any GCC internal prototype to avoid an error. | |
10130 Use char because int might match the return type of a GCC | |
10131 builtin and then its argument prototype would still apply. */ | |
10132 #ifdef __cplusplus | |
10133 extern "C" | |
10134 #endif | |
10135 char shl_load (); | |
10136 int | |
10137 main () | |
10138 { | |
10139 return shl_load (); | |
10140 ; | |
10141 return 0; | |
10142 } | |
10143 _ACEOF | |
10144 rm -f conftest.$ac_objext conftest$ac_exeext | |
10145 if { (ac_try="$ac_link" | |
10146 case "(($ac_try" in | |
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10148 *) ac_try_echo=$ac_try;; | |
10149 esac | |
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10151 (eval "$ac_link") 2>conftest.er1 | |
10152 ac_status=$? | |
10153 grep -v '^ *+' conftest.er1 >conftest.err | |
10154 rm -f conftest.er1 | |
10155 cat conftest.err >&5 | |
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10157 (exit $ac_status); } && { | |
10158 test -z "$ac_c_werror_flag" || | |
10159 test ! -s conftest.err | |
10160 } && test -s conftest$ac_exeext && | |
10161 $as_test_x conftest$ac_exeext; then | |
10162 ac_cv_lib_dld_shl_load=yes | |
10163 else | |
10164 echo "$as_me: failed program was:" >&5 | |
10165 sed 's/^/| /' conftest.$ac_ext >&5 | |
10166 | |
10167 ac_cv_lib_dld_shl_load=no | |
10168 fi | |
10169 | |
10170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10171 conftest$ac_exeext conftest.$ac_ext | |
10172 LIBS=$ac_check_lib_save_LIBS | |
10173 fi | |
10174 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10175 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | |
10176 if test $ac_cv_lib_dld_shl_load = yes; then | |
10177 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10178 else | |
10179 { echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10180 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | |
10181 if test "${ac_cv_func_dlopen+set}" = set; then | |
10182 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10183 else | |
10184 cat >conftest.$ac_ext <<_ACEOF | |
10185 /* confdefs.h. */ | |
10186 _ACEOF | |
10187 cat confdefs.h >>conftest.$ac_ext | |
10188 cat >>conftest.$ac_ext <<_ACEOF | |
10189 /* end confdefs.h. */ | |
10190 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10191 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10192 #define dlopen innocuous_dlopen | |
10193 | |
10194 /* System header to define __stub macros and hopefully few prototypes, | |
10195 which can conflict with char dlopen (); below. | |
10196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10197 <limits.h> exists even on freestanding compilers. */ | |
10198 | |
10199 #ifdef __STDC__ | |
10200 # include <limits.h> | |
10201 #else | |
10202 # include <assert.h> | |
10203 #endif | |
10204 | |
10205 #undef dlopen | |
10206 | |
10207 /* Override any GCC internal prototype to avoid an error. | |
10208 Use char because int might match the return type of a GCC | |
10209 builtin and then its argument prototype would still apply. */ | |
10210 #ifdef __cplusplus | |
10211 extern "C" | |
10212 #endif | |
10213 char dlopen (); | |
10214 /* The GNU C library defines this for functions which it implements | |
10215 to always fail with ENOSYS. Some functions are actually named | |
10216 something starting with __ and the normal name is an alias. */ | |
10217 #if defined __stub_dlopen || defined __stub___dlopen | |
10218 choke me | |
10219 #endif | |
10220 | |
10221 int | |
10222 main () | |
10223 { | |
10224 return dlopen (); | |
10225 ; | |
10226 return 0; | |
10227 } | |
10228 _ACEOF | |
10229 rm -f conftest.$ac_objext conftest$ac_exeext | |
10230 if { (ac_try="$ac_link" | |
10231 case "(($ac_try" in | |
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10233 *) ac_try_echo=$ac_try;; | |
10234 esac | |
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10236 (eval "$ac_link") 2>conftest.er1 | |
10237 ac_status=$? | |
10238 grep -v '^ *+' conftest.er1 >conftest.err | |
10239 rm -f conftest.er1 | |
10240 cat conftest.err >&5 | |
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10242 (exit $ac_status); } && { | |
10243 test -z "$ac_c_werror_flag" || | |
10244 test ! -s conftest.err | |
10245 } && test -s conftest$ac_exeext && | |
10246 $as_test_x conftest$ac_exeext; then | |
10247 ac_cv_func_dlopen=yes | |
10248 else | |
10249 echo "$as_me: failed program was:" >&5 | |
10250 sed 's/^/| /' conftest.$ac_ext >&5 | |
10251 | |
10252 ac_cv_func_dlopen=no | |
10253 fi | |
10254 | |
10255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10256 conftest$ac_exeext conftest.$ac_ext | |
10257 fi | |
10258 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
10259 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | |
10260 if test $ac_cv_func_dlopen = yes; then | |
10261 lt_cv_dlopen="dlopen" | |
10262 else | |
10263 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10264 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
10265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10266 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10267 else | |
10268 ac_check_lib_save_LIBS=$LIBS | |
10269 LIBS="-ldl $LIBS" | |
10270 cat >conftest.$ac_ext <<_ACEOF | |
10271 /* confdefs.h. */ | |
10272 _ACEOF | |
10273 cat confdefs.h >>conftest.$ac_ext | |
10274 cat >>conftest.$ac_ext <<_ACEOF | |
10275 /* end confdefs.h. */ | |
10276 | |
10277 /* Override any GCC internal prototype to avoid an error. | |
10278 Use char because int might match the return type of a GCC | |
10279 builtin and then its argument prototype would still apply. */ | |
10280 #ifdef __cplusplus | |
10281 extern "C" | |
10282 #endif | |
10283 char dlopen (); | |
10284 int | |
10285 main () | |
10286 { | |
10287 return dlopen (); | |
10288 ; | |
10289 return 0; | |
10290 } | |
10291 _ACEOF | |
10292 rm -f conftest.$ac_objext conftest$ac_exeext | |
10293 if { (ac_try="$ac_link" | |
10294 case "(($ac_try" in | |
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10296 *) ac_try_echo=$ac_try;; | |
10297 esac | |
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10299 (eval "$ac_link") 2>conftest.er1 | |
10300 ac_status=$? | |
10301 grep -v '^ *+' conftest.er1 >conftest.err | |
10302 rm -f conftest.er1 | |
10303 cat conftest.err >&5 | |
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10305 (exit $ac_status); } && { | |
10306 test -z "$ac_c_werror_flag" || | |
10307 test ! -s conftest.err | |
10308 } && test -s conftest$ac_exeext && | |
10309 $as_test_x conftest$ac_exeext; then | |
10310 ac_cv_lib_dl_dlopen=yes | |
10311 else | |
10312 echo "$as_me: failed program was:" >&5 | |
10313 sed 's/^/| /' conftest.$ac_ext >&5 | |
10314 | |
10315 ac_cv_lib_dl_dlopen=no | |
10316 fi | |
10317 | |
10318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10319 conftest$ac_exeext conftest.$ac_ext | |
10320 LIBS=$ac_check_lib_save_LIBS | |
10321 fi | |
10322 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10323 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
10324 if test $ac_cv_lib_dl_dlopen = yes; then | |
10325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10326 else | |
10327 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
10328 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | |
10329 if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10330 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10331 else | |
10332 ac_check_lib_save_LIBS=$LIBS | |
10333 LIBS="-lsvld $LIBS" | |
10334 cat >conftest.$ac_ext <<_ACEOF | |
10335 /* confdefs.h. */ | |
10336 _ACEOF | |
10337 cat confdefs.h >>conftest.$ac_ext | |
10338 cat >>conftest.$ac_ext <<_ACEOF | |
10339 /* end confdefs.h. */ | |
10340 | |
10341 /* Override any GCC internal prototype to avoid an error. | |
10342 Use char because int might match the return type of a GCC | |
10343 builtin and then its argument prototype would still apply. */ | |
10344 #ifdef __cplusplus | |
10345 extern "C" | |
10346 #endif | |
10347 char dlopen (); | |
10348 int | |
10349 main () | |
10350 { | |
10351 return dlopen (); | |
10352 ; | |
10353 return 0; | |
10354 } | |
10355 _ACEOF | |
10356 rm -f conftest.$ac_objext conftest$ac_exeext | |
10357 if { (ac_try="$ac_link" | |
10358 case "(($ac_try" in | |
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10360 *) ac_try_echo=$ac_try;; | |
10361 esac | |
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10363 (eval "$ac_link") 2>conftest.er1 | |
10364 ac_status=$? | |
10365 grep -v '^ *+' conftest.er1 >conftest.err | |
10366 rm -f conftest.er1 | |
10367 cat conftest.err >&5 | |
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10369 (exit $ac_status); } && { | |
10370 test -z "$ac_c_werror_flag" || | |
10371 test ! -s conftest.err | |
10372 } && test -s conftest$ac_exeext && | |
10373 $as_test_x conftest$ac_exeext; then | |
10374 ac_cv_lib_svld_dlopen=yes | |
10375 else | |
10376 echo "$as_me: failed program was:" >&5 | |
10377 sed 's/^/| /' conftest.$ac_ext >&5 | |
10378 | |
10379 ac_cv_lib_svld_dlopen=no | |
10380 fi | |
10381 | |
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10383 conftest$ac_exeext conftest.$ac_ext | |
10384 LIBS=$ac_check_lib_save_LIBS | |
10385 fi | |
10386 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10387 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | |
10388 if test $ac_cv_lib_svld_dlopen = yes; then | |
10389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10390 else | |
10391 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10392 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | |
10393 if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10394 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10395 else | |
10396 ac_check_lib_save_LIBS=$LIBS | |
10397 LIBS="-ldld $LIBS" | |
10398 cat >conftest.$ac_ext <<_ACEOF | |
10399 /* confdefs.h. */ | |
10400 _ACEOF | |
10401 cat confdefs.h >>conftest.$ac_ext | |
10402 cat >>conftest.$ac_ext <<_ACEOF | |
10403 /* end confdefs.h. */ | |
10404 | |
10405 /* Override any GCC internal prototype to avoid an error. | |
10406 Use char because int might match the return type of a GCC | |
10407 builtin and then its argument prototype would still apply. */ | |
10408 #ifdef __cplusplus | |
10409 extern "C" | |
10410 #endif | |
10411 char dld_link (); | |
10412 int | |
10413 main () | |
10414 { | |
10415 return dld_link (); | |
10416 ; | |
10417 return 0; | |
10418 } | |
10419 _ACEOF | |
10420 rm -f conftest.$ac_objext conftest$ac_exeext | |
10421 if { (ac_try="$ac_link" | |
10422 case "(($ac_try" in | |
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10424 *) ac_try_echo=$ac_try;; | |
10425 esac | |
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10427 (eval "$ac_link") 2>conftest.er1 | |
10428 ac_status=$? | |
10429 grep -v '^ *+' conftest.er1 >conftest.err | |
10430 rm -f conftest.er1 | |
10431 cat conftest.err >&5 | |
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10433 (exit $ac_status); } && { | |
10434 test -z "$ac_c_werror_flag" || | |
10435 test ! -s conftest.err | |
10436 } && test -s conftest$ac_exeext && | |
10437 $as_test_x conftest$ac_exeext; then | |
10438 ac_cv_lib_dld_dld_link=yes | |
10439 else | |
10440 echo "$as_me: failed program was:" >&5 | |
10441 sed 's/^/| /' conftest.$ac_ext >&5 | |
10442 | |
10443 ac_cv_lib_dld_dld_link=no | |
10444 fi | |
10445 | |
10446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10447 conftest$ac_exeext conftest.$ac_ext | |
10448 LIBS=$ac_check_lib_save_LIBS | |
10449 fi | |
10450 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10451 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | |
10452 if test $ac_cv_lib_dld_dld_link = yes; then | |
10453 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
10454 fi | |
10455 | |
10456 | |
10457 fi | |
10458 | |
10459 | |
10460 fi | |
10461 | |
10462 | |
10463 fi | |
10464 | |
10465 | |
10466 fi | |
10467 | |
10468 | |
10469 fi | |
10470 | |
10471 ;; | |
10472 esac | |
10473 | |
10474 if test "x$lt_cv_dlopen" != xno; then | |
10475 enable_dlopen=yes | |
10476 else | |
10477 enable_dlopen=no | |
10478 fi | |
10479 | |
10480 case $lt_cv_dlopen in | |
10481 dlopen) | |
10482 save_CPPFLAGS="$CPPFLAGS" | |
10483 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10484 | |
10485 save_LDFLAGS="$LDFLAGS" | |
10486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10487 | |
10488 save_LIBS="$LIBS" | |
10489 LIBS="$lt_cv_dlopen_libs $LIBS" | |
10490 | |
10491 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10492 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | |
10493 if test "${lt_cv_dlopen_self+set}" = set; then | |
10494 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10495 else | |
10496 if test "$cross_compiling" = yes; then : | |
10497 lt_cv_dlopen_self=cross | |
10498 else | |
10499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10500 lt_status=$lt_dlunknown | |
10501 cat > conftest.$ac_ext <<_LT_EOF | |
10502 #line 10502 "configure" | |
10503 #include "confdefs.h" | |
10504 | |
10505 #if HAVE_DLFCN_H | |
10506 #include <dlfcn.h> | |
10507 #endif | |
10508 | |
10509 #include <stdio.h> | |
10510 | |
10511 #ifdef RTLD_GLOBAL | |
10512 # define LT_DLGLOBAL RTLD_GLOBAL | |
10513 #else | |
10514 # ifdef DL_GLOBAL | |
10515 # define LT_DLGLOBAL DL_GLOBAL | |
10516 # else | |
10517 # define LT_DLGLOBAL 0 | |
10518 # endif | |
10519 #endif | |
10520 | |
10521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10522 find out it does not work in some platform. */ | |
10523 #ifndef LT_DLLAZY_OR_NOW | |
10524 # ifdef RTLD_LAZY | |
10525 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10526 # else | |
10527 # ifdef DL_LAZY | |
10528 # define LT_DLLAZY_OR_NOW DL_LAZY | |
10529 # else | |
10530 # ifdef RTLD_NOW | |
10531 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10532 # else | |
10533 # ifdef DL_NOW | |
10534 # define LT_DLLAZY_OR_NOW DL_NOW | |
10535 # else | |
10536 # define LT_DLLAZY_OR_NOW 0 | |
10537 # endif | |
10538 # endif | |
10539 # endif | |
10540 # endif | |
10541 #endif | |
10542 | |
10543 #ifdef __cplusplus | |
10544 extern "C" void exit (int); | |
10545 #endif | |
10546 | |
10547 void fnord() { int i=42;} | |
10548 int main () | |
10549 { | |
10550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10551 int status = $lt_dlunknown; | |
10552 | |
10553 if (self) | |
10554 { | |
10555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10556 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10557 /* dlclose (self); */ | |
10558 } | |
10559 else | |
10560 puts (dlerror ()); | |
10561 | |
10562 exit (status); | |
10563 } | |
10564 _LT_EOF | |
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10566 (eval $ac_link) 2>&5 | |
10567 ac_status=$? | |
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10569 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10570 (./conftest; exit; ) >&5 2>/dev/null | |
10571 lt_status=$? | |
10572 case x$lt_status in | |
10573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10575 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10576 esac | |
10577 else : | |
10578 # compilation failed | |
10579 lt_cv_dlopen_self=no | |
10580 fi | |
10581 fi | |
10582 rm -fr conftest* | |
10583 | |
10584 | |
10585 fi | |
10586 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10587 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | |
10588 | |
10589 if test "x$lt_cv_dlopen_self" = xyes; then | |
10590 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10591 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10592 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | |
10593 if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10594 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10595 else | |
10596 if test "$cross_compiling" = yes; then : | |
10597 lt_cv_dlopen_self_static=cross | |
10598 else | |
10599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10600 lt_status=$lt_dlunknown | |
10601 cat > conftest.$ac_ext <<_LT_EOF | |
10602 #line 10602 "configure" | |
10603 #include "confdefs.h" | |
10604 | |
10605 #if HAVE_DLFCN_H | |
10606 #include <dlfcn.h> | |
10607 #endif | |
10608 | |
10609 #include <stdio.h> | |
10610 | |
10611 #ifdef RTLD_GLOBAL | |
10612 # define LT_DLGLOBAL RTLD_GLOBAL | |
10613 #else | |
10614 # ifdef DL_GLOBAL | |
10615 # define LT_DLGLOBAL DL_GLOBAL | |
10616 # else | |
10617 # define LT_DLGLOBAL 0 | |
10618 # endif | |
10619 #endif | |
10620 | |
10621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10622 find out it does not work in some platform. */ | |
10623 #ifndef LT_DLLAZY_OR_NOW | |
10624 # ifdef RTLD_LAZY | |
10625 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10626 # else | |
10627 # ifdef DL_LAZY | |
10628 # define LT_DLLAZY_OR_NOW DL_LAZY | |
10629 # else | |
10630 # ifdef RTLD_NOW | |
10631 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10632 # else | |
10633 # ifdef DL_NOW | |
10634 # define LT_DLLAZY_OR_NOW DL_NOW | |
10635 # else | |
10636 # define LT_DLLAZY_OR_NOW 0 | |
10637 # endif | |
10638 # endif | |
10639 # endif | |
10640 # endif | |
10641 #endif | |
10642 | |
10643 #ifdef __cplusplus | |
10644 extern "C" void exit (int); | |
10645 #endif | |
10646 | |
10647 void fnord() { int i=42;} | |
10648 int main () | |
10649 { | |
10650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10651 int status = $lt_dlunknown; | |
10652 | |
10653 if (self) | |
10654 { | |
10655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10657 /* dlclose (self); */ | |
10658 } | |
10659 else | |
10660 puts (dlerror ()); | |
10661 | |
10662 exit (status); | |
10663 } | |
10664 _LT_EOF | |
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10666 (eval $ac_link) 2>&5 | |
10667 ac_status=$? | |
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10669 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10670 (./conftest; exit; ) >&5 2>/dev/null | |
10671 lt_status=$? | |
10672 case x$lt_status in | |
10673 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10674 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10675 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10676 esac | |
10677 else : | |
10678 # compilation failed | |
10679 lt_cv_dlopen_self_static=no | |
10680 fi | |
10681 fi | |
10682 rm -fr conftest* | |
10683 | |
10684 | |
10685 fi | |
10686 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
10687 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | |
10688 fi | |
10689 | |
10690 CPPFLAGS="$save_CPPFLAGS" | |
10691 LDFLAGS="$save_LDFLAGS" | |
10692 LIBS="$save_LIBS" | |
10693 ;; | |
10694 esac | |
10695 | |
10696 case $lt_cv_dlopen_self in | |
10697 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10698 *) enable_dlopen_self=unknown ;; | |
10699 esac | |
10700 | |
10701 case $lt_cv_dlopen_self_static in | |
10702 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10703 *) enable_dlopen_self_static=unknown ;; | |
10704 esac | |
10705 fi | |
10706 | |
10707 | |
10708 | |
10709 | |
10710 | |
10711 | |
10712 | |
10713 | |
10714 | |
10715 | |
10716 | |
10717 | |
10718 | |
10719 | |
10720 | |
10721 | |
10722 | |
10723 striplib= | |
10724 old_striplib= | |
10725 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10726 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | |
10727 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10728 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10729 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10730 { echo "$as_me:$LINENO: result: yes" >&5 | |
10731 echo "${ECHO_T}yes" >&6; } | |
10732 else | |
10733 # FIXME - insert some real tests, host_os isn't really good enough | |
10734 case $host_os in | |
10735 darwin*) | |
10736 if test -n "$STRIP" ; then | |
10737 striplib="$STRIP -x" | |
10738 old_striplib="$STRIP -S" | |
10739 { echo "$as_me:$LINENO: result: yes" >&5 | |
10740 echo "${ECHO_T}yes" >&6; } | |
10741 else | |
10742 { echo "$as_me:$LINENO: result: no" >&5 | |
10743 echo "${ECHO_T}no" >&6; } | |
10744 fi | |
10745 ;; | |
10746 *) | |
10747 { echo "$as_me:$LINENO: result: no" >&5 | |
10748 echo "${ECHO_T}no" >&6; } | |
10749 ;; | |
10750 esac | |
10751 fi | |
10752 | |
10753 | |
10754 | |
10755 | |
10756 | |
10757 | |
10758 | |
10759 | |
10760 | |
10761 | |
10762 | |
10763 | |
10764 # Report which library types will actually be built | |
10765 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10766 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
10767 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10768 echo "${ECHO_T}$can_build_shared" >&6; } | |
10769 | |
10770 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10771 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
10772 test "$can_build_shared" = "no" && enable_shared=no | |
10773 | |
10774 # On AIX, shared libraries and static libraries use the same namespace, and | |
10775 # are all built from PIC. | |
10776 case $host_os in | |
10777 aix3*) | |
10778 test "$enable_shared" = yes && enable_static=no | |
10779 if test -n "$RANLIB"; then | |
10780 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10781 postinstall_cmds='$RANLIB $lib' | |
10782 fi | |
10783 ;; | |
10784 | |
10785 aix[4-9]*) | |
10786 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
10787 test "$enable_shared" = yes && enable_static=no | |
10788 fi | |
10789 ;; | |
10790 esac | |
10791 { echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10792 echo "${ECHO_T}$enable_shared" >&6; } | |
10793 | |
10794 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10795 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
10796 # Make sure either enable_shared or enable_static is yes. | |
10797 test "$enable_shared" = yes || enable_static=yes | |
10798 { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10799 echo "${ECHO_T}$enable_static" >&6; } | |
10800 | |
10801 | |
10802 | |
10803 | |
10804 fi | |
10805 ac_ext=c | |
10806 ac_cpp='$CPP $CPPFLAGS' | |
10807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10809 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10810 | |
10811 CC="$lt_save_CC" | |
10812 | |
10813 | |
10814 | |
10815 | |
10816 | |
10817 | |
10818 | |
10819 | |
10820 | |
10821 | |
10822 | |
10823 | |
10824 | |
10825 ac_config_commands="$ac_config_commands libtool" | |
10826 | |
10827 | |
10828 | |
10829 | |
10830 # Only expand once: | |
10831 | |
10832 | |
10833 if test "x$CC" != xcc; then | |
10834 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 | |
10835 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } | |
10836 else | |
10837 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 | |
10838 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } | |
10839 fi | |
10840 set dummy $CC; ac_cc=`echo $2 | | |
10841 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
10842 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then | |
10843 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10844 else | |
10845 cat >conftest.$ac_ext <<_ACEOF | |
10846 /* confdefs.h. */ | |
10847 _ACEOF | |
10848 cat confdefs.h >>conftest.$ac_ext | |
10849 cat >>conftest.$ac_ext <<_ACEOF | |
10850 /* end confdefs.h. */ | |
10851 | |
10852 int | |
10853 main () | |
10854 { | |
10855 | |
10856 ; | |
10857 return 0; | |
10858 } | |
10859 _ACEOF | |
10860 # Make sure it works both with $CC and with simple cc. | |
10861 # We do the test twice because some compilers refuse to overwrite an | |
10862 # existing .o file with -o, though they will create one. | |
10863 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
10864 rm -f conftest2.* | |
10865 if { (case "(($ac_try" in | |
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10867 *) ac_try_echo=$ac_try;; | |
10868 esac | |
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10870 (eval "$ac_try") 2>&5 | |
10871 ac_status=$? | |
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10873 (exit $ac_status); } && | |
10874 test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10876 *) ac_try_echo=$ac_try;; | |
10877 esac | |
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10879 (eval "$ac_try") 2>&5 | |
10880 ac_status=$? | |
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10882 (exit $ac_status); }; | |
10883 then | |
10884 eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
10885 if test "x$CC" != xcc; then | |
10886 # Test first that cc exists at all. | |
10887 if { ac_try='cc -c conftest.$ac_ext >&5' | |
10888 { (case "(($ac_try" in | |
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10890 *) ac_try_echo=$ac_try;; | |
10891 esac | |
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10893 (eval "$ac_try") 2>&5 | |
10894 ac_status=$? | |
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10896 (exit $ac_status); }; }; then | |
10897 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
10898 rm -f conftest2.* | |
10899 if { (case "(($ac_try" in | |
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10901 *) ac_try_echo=$ac_try;; | |
10902 esac | |
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10904 (eval "$ac_try") 2>&5 | |
10905 ac_status=$? | |
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10907 (exit $ac_status); } && | |
10908 test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10910 *) ac_try_echo=$ac_try;; | |
10911 esac | |
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10913 (eval "$ac_try") 2>&5 | |
10914 ac_status=$? | |
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10916 (exit $ac_status); }; | |
10917 then | |
10918 # cc works too. | |
10919 : | |
10920 else | |
10921 # cc exists but doesn't like -o. | |
10922 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
10923 fi | |
10924 fi | |
10925 fi | |
10926 else | |
10927 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
10928 fi | |
10929 rm -f core conftest* | |
10930 | |
10931 fi | |
10932 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
10933 { echo "$as_me:$LINENO: result: yes" >&5 | |
10934 echo "${ECHO_T}yes" >&6; } | |
10935 else | |
10936 { echo "$as_me:$LINENO: result: no" >&5 | |
10937 echo "${ECHO_T}no" >&6; } | |
10938 | |
10939 cat >>confdefs.h <<\_ACEOF | |
10940 #define NO_MINUS_C_MINUS_O 1 | |
10941 _ACEOF | |
10942 | |
10943 fi | |
10944 | |
10945 # FIXME: we rely on the cache variable name because | |
10946 # there is no other way. | |
10947 set dummy $CC | |
10948 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
10949 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
10950 # Losing compiler, so override with the script. | |
10951 # FIXME: It is wrong to rewrite CC. | |
10952 # But if we don't then we get into trouble of one sort or another. | |
10953 # A longer-term fix would be to have automake use am__CC in this case, | |
10954 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
10955 CC="$am_aux_dir/compile $CC" | |
10956 fi | |
10957 | |
10958 | |
10959 # Extract the first word of "doxygen", so it can be a program name with args. | |
10960 set dummy doxygen; ac_word=$2 | |
10961 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
10963 if test "${ac_cv_prog_DOXYGEN+set}" = set; then | |
10964 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10965 else | |
10966 if test -n "$DOXYGEN"; then | |
10967 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. | |
10968 else | |
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10970 for as_dir in $PATH | |
10971 do | |
10972 IFS=$as_save_IFS | |
10973 test -z "$as_dir" && as_dir=. | |
10974 for ac_exec_ext in '' $ac_executable_extensions; do | |
10975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10976 ac_cv_prog_DOXYGEN="doc" | |
10977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10978 break 2 | |
10979 fi | |
10980 done | |
10981 done | |
10982 IFS=$as_save_IFS | |
10983 | |
10984 fi | |
10985 fi | |
10986 DOXYGEN=$ac_cv_prog_DOXYGEN | |
10987 if test -n "$DOXYGEN"; then | |
10988 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 | |
10989 echo "${ECHO_T}$DOXYGEN" >&6; } | |
10990 else | |
10991 { echo "$as_me:$LINENO: result: no" >&5 | |
10992 echo "${ECHO_T}no" >&6; } | |
10993 fi | |
10994 | |
10995 | |
10996 | |
10997 | |
10998 # Checks for libraries. | |
10999 | |
11000 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 | |
11001 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } | |
11002 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then | |
11003 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11004 else | |
11005 ac_check_lib_save_LIBS=$LIBS | |
11006 LIBS="-lpthread $LIBS" | |
11007 cat >conftest.$ac_ext <<_ACEOF | |
11008 /* confdefs.h. */ | |
11009 _ACEOF | |
11010 cat confdefs.h >>conftest.$ac_ext | |
11011 cat >>conftest.$ac_ext <<_ACEOF | |
11012 /* end confdefs.h. */ | |
11013 | |
11014 /* Override any GCC internal prototype to avoid an error. | |
11015 Use char because int might match the return type of a GCC | |
11016 builtin and then its argument prototype would still apply. */ | |
11017 #ifdef __cplusplus | |
11018 extern "C" | |
11019 #endif | |
11020 char pthread_create (); | |
11021 int | |
11022 main () | |
11023 { | |
11024 return pthread_create (); | |
11025 ; | |
11026 return 0; | |
11027 } | |
11028 _ACEOF | |
11029 rm -f conftest.$ac_objext conftest$ac_exeext | |
11030 if { (ac_try="$ac_link" | |
11031 case "(($ac_try" in | |
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11033 *) ac_try_echo=$ac_try;; | |
11034 esac | |
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11036 (eval "$ac_link") 2>conftest.er1 | |
11037 ac_status=$? | |
11038 grep -v '^ *+' conftest.er1 >conftest.err | |
11039 rm -f conftest.er1 | |
11040 cat conftest.err >&5 | |
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11042 (exit $ac_status); } && { | |
11043 test -z "$ac_c_werror_flag" || | |
11044 test ! -s conftest.err | |
11045 } && test -s conftest$ac_exeext && | |
11046 $as_test_x conftest$ac_exeext; then | |
11047 ac_cv_lib_pthread_pthread_create=yes | |
11048 else | |
11049 echo "$as_me: failed program was:" >&5 | |
11050 sed 's/^/| /' conftest.$ac_ext >&5 | |
11051 | |
11052 ac_cv_lib_pthread_pthread_create=no | |
11053 fi | |
11054 | |
11055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11056 conftest$ac_exeext conftest.$ac_ext | |
11057 LIBS=$ac_check_lib_save_LIBS | |
11058 fi | |
11059 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 | |
11060 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } | |
11061 if test $ac_cv_lib_pthread_pthread_create = yes; then | |
11062 cat >>confdefs.h <<_ACEOF | |
11063 #define HAVE_LIBPTHREAD 1 | |
11064 _ACEOF | |
11065 | |
11066 LIBS="-lpthread $LIBS" | |
11067 | |
11068 fi | |
11069 | |
11070 { echo "$as_me:$LINENO: checking for library containing recvfrom" >&5 | |
11071 echo $ECHO_N "checking for library containing recvfrom... $ECHO_C" >&6; } | |
11072 if test "${ac_cv_search_recvfrom+set}" = set; then | |
11073 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11074 else | |
11075 ac_func_search_save_LIBS=$LIBS | |
11076 cat >conftest.$ac_ext <<_ACEOF | |
11077 /* confdefs.h. */ | |
11078 _ACEOF | |
11079 cat confdefs.h >>conftest.$ac_ext | |
11080 cat >>conftest.$ac_ext <<_ACEOF | |
11081 /* end confdefs.h. */ | |
11082 | |
11083 /* Override any GCC internal prototype to avoid an error. | |
11084 Use char because int might match the return type of a GCC | |
11085 builtin and then its argument prototype would still apply. */ | |
11086 #ifdef __cplusplus | |
11087 extern "C" | |
11088 #endif | |
11089 char recvfrom (); | |
11090 int | |
11091 main () | |
11092 { | |
11093 return recvfrom (); | |
11094 ; | |
11095 return 0; | |
11096 } | |
11097 _ACEOF | |
11098 for ac_lib in '' socket; do | |
11099 if test -z "$ac_lib"; then | |
11100 ac_res="none required" | |
11101 else | |
11102 ac_res=-l$ac_lib | |
11103 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11104 fi | |
11105 rm -f conftest.$ac_objext conftest$ac_exeext | |
11106 if { (ac_try="$ac_link" | |
11107 case "(($ac_try" in | |
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11109 *) ac_try_echo=$ac_try;; | |
11110 esac | |
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11112 (eval "$ac_link") 2>conftest.er1 | |
11113 ac_status=$? | |
11114 grep -v '^ *+' conftest.er1 >conftest.err | |
11115 rm -f conftest.er1 | |
11116 cat conftest.err >&5 | |
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11118 (exit $ac_status); } && { | |
11119 test -z "$ac_c_werror_flag" || | |
11120 test ! -s conftest.err | |
11121 } && test -s conftest$ac_exeext && | |
11122 $as_test_x conftest$ac_exeext; then | |
11123 ac_cv_search_recvfrom=$ac_res | |
11124 else | |
11125 echo "$as_me: failed program was:" >&5 | |
11126 sed 's/^/| /' conftest.$ac_ext >&5 | |
11127 | |
11128 | |
11129 fi | |
11130 | |
11131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11132 conftest$ac_exeext | |
11133 if test "${ac_cv_search_recvfrom+set}" = set; then | |
11134 break | |
11135 fi | |
11136 done | |
11137 if test "${ac_cv_search_recvfrom+set}" = set; then | |
11138 : | |
11139 else | |
11140 ac_cv_search_recvfrom=no | |
11141 fi | |
11142 rm conftest.$ac_ext | |
11143 LIBS=$ac_func_search_save_LIBS | |
11144 fi | |
11145 { echo "$as_me:$LINENO: result: $ac_cv_search_recvfrom" >&5 | |
11146 echo "${ECHO_T}$ac_cv_search_recvfrom" >&6; } | |
11147 ac_res=$ac_cv_search_recvfrom | |
11148 if test "$ac_res" != no; then | |
11149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11150 | |
11151 fi | |
11152 | |
11153 { echo "$as_me:$LINENO: checking for log" >&5 | |
11154 echo $ECHO_N "checking for log... $ECHO_C" >&6; } | |
11155 if test "${ac_cv_func_log+set}" = set; then | |
11156 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11157 else | |
11158 cat >conftest.$ac_ext <<_ACEOF | |
11159 /* confdefs.h. */ | |
11160 _ACEOF | |
11161 cat confdefs.h >>conftest.$ac_ext | |
11162 cat >>conftest.$ac_ext <<_ACEOF | |
11163 /* end confdefs.h. */ | |
11164 /* Define log to an innocuous variant, in case <limits.h> declares log. | |
11165 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11166 #define log innocuous_log | |
11167 | |
11168 /* System header to define __stub macros and hopefully few prototypes, | |
11169 which can conflict with char log (); below. | |
11170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11171 <limits.h> exists even on freestanding compilers. */ | |
11172 | |
11173 #ifdef __STDC__ | |
11174 # include <limits.h> | |
11175 #else | |
11176 # include <assert.h> | |
11177 #endif | |
11178 | |
11179 #undef log | |
11180 | |
11181 /* Override any GCC internal prototype to avoid an error. | |
11182 Use char because int might match the return type of a GCC | |
11183 builtin and then its argument prototype would still apply. */ | |
11184 #ifdef __cplusplus | |
11185 extern "C" | |
11186 #endif | |
11187 char log (); | |
11188 /* The GNU C library defines this for functions which it implements | |
11189 to always fail with ENOSYS. Some functions are actually named | |
11190 something starting with __ and the normal name is an alias. */ | |
11191 #if defined __stub_log || defined __stub___log | |
11192 choke me | |
11193 #endif | |
11194 | |
11195 int | |
11196 main () | |
11197 { | |
11198 return log (); | |
11199 ; | |
11200 return 0; | |
11201 } | |
11202 _ACEOF | |
11203 rm -f conftest.$ac_objext conftest$ac_exeext | |
11204 if { (ac_try="$ac_link" | |
11205 case "(($ac_try" in | |
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11207 *) ac_try_echo=$ac_try;; | |
11208 esac | |
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11210 (eval "$ac_link") 2>conftest.er1 | |
11211 ac_status=$? | |
11212 grep -v '^ *+' conftest.er1 >conftest.err | |
11213 rm -f conftest.er1 | |
11214 cat conftest.err >&5 | |
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11216 (exit $ac_status); } && { | |
11217 test -z "$ac_c_werror_flag" || | |
11218 test ! -s conftest.err | |
11219 } && test -s conftest$ac_exeext && | |
11220 $as_test_x conftest$ac_exeext; then | |
11221 ac_cv_func_log=yes | |
11222 else | |
11223 echo "$as_me: failed program was:" >&5 | |
11224 sed 's/^/| /' conftest.$ac_ext >&5 | |
11225 | |
11226 ac_cv_func_log=no | |
11227 fi | |
11228 | |
11229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11230 conftest$ac_exeext conftest.$ac_ext | |
11231 fi | |
11232 { echo "$as_me:$LINENO: result: $ac_cv_func_log" >&5 | |
11233 echo "${ECHO_T}$ac_cv_func_log" >&6; } | |
11234 if test $ac_cv_func_log = yes; then | |
11235 : | |
11236 else | |
11237 | |
11238 { echo "$as_me:$LINENO: checking for log in -lm" >&5 | |
11239 echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; } | |
11240 if test "${ac_cv_lib_m_log+set}" = set; then | |
11241 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11242 else | |
11243 ac_check_lib_save_LIBS=$LIBS | |
11244 LIBS="-lm $LIBS" | |
11245 cat >conftest.$ac_ext <<_ACEOF | |
11246 /* confdefs.h. */ | |
11247 _ACEOF | |
11248 cat confdefs.h >>conftest.$ac_ext | |
11249 cat >>conftest.$ac_ext <<_ACEOF | |
11250 /* end confdefs.h. */ | |
11251 | |
11252 /* Override any GCC internal prototype to avoid an error. | |
11253 Use char because int might match the return type of a GCC | |
11254 builtin and then its argument prototype would still apply. */ | |
11255 #ifdef __cplusplus | |
11256 extern "C" | |
11257 #endif | |
11258 char log (); | |
11259 int | |
11260 main () | |
11261 { | |
11262 return log (); | |
11263 ; | |
11264 return 0; | |
11265 } | |
11266 _ACEOF | |
11267 rm -f conftest.$ac_objext conftest$ac_exeext | |
11268 if { (ac_try="$ac_link" | |
11269 case "(($ac_try" in | |
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11271 *) ac_try_echo=$ac_try;; | |
11272 esac | |
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11274 (eval "$ac_link") 2>conftest.er1 | |
11275 ac_status=$? | |
11276 grep -v '^ *+' conftest.er1 >conftest.err | |
11277 rm -f conftest.er1 | |
11278 cat conftest.err >&5 | |
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11280 (exit $ac_status); } && { | |
11281 test -z "$ac_c_werror_flag" || | |
11282 test ! -s conftest.err | |
11283 } && test -s conftest$ac_exeext && | |
11284 $as_test_x conftest$ac_exeext; then | |
11285 ac_cv_lib_m_log=yes | |
11286 else | |
11287 echo "$as_me: failed program was:" >&5 | |
11288 sed 's/^/| /' conftest.$ac_ext >&5 | |
11289 | |
11290 ac_cv_lib_m_log=no | |
11291 fi | |
11292 | |
11293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11294 conftest$ac_exeext conftest.$ac_ext | |
11295 LIBS=$ac_check_lib_save_LIBS | |
11296 fi | |
11297 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 | |
11298 echo "${ECHO_T}$ac_cv_lib_m_log" >&6; } | |
11299 if test $ac_cv_lib_m_log = yes; then | |
11300 cat >>confdefs.h <<_ACEOF | |
11301 #define HAVE_LIBM 1 | |
11302 _ACEOF | |
11303 | |
11304 LIBS="-lm $LIBS" | |
11305 | |
11306 fi | |
11307 | |
11308 fi | |
11309 | |
11310 | |
11311 # Checks for header files. | |
11312 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
11313 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
11314 if test "${ac_cv_header_stdc+set}" = set; then | |
11315 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11316 else | |
11317 cat >conftest.$ac_ext <<_ACEOF | |
11318 /* confdefs.h. */ | |
11319 _ACEOF | |
11320 cat confdefs.h >>conftest.$ac_ext | |
11321 cat >>conftest.$ac_ext <<_ACEOF | |
11322 /* end confdefs.h. */ | |
11323 #include <stdlib.h> | |
11324 #include <stdarg.h> | |
11325 #include <string.h> | |
11326 #include <float.h> | |
11327 | |
11328 int | |
11329 main () | |
11330 { | |
11331 | |
11332 ; | |
11333 return 0; | |
11334 } | |
11335 _ACEOF | |
11336 rm -f conftest.$ac_objext | |
11337 if { (ac_try="$ac_compile" | |
11338 case "(($ac_try" in | |
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11340 *) ac_try_echo=$ac_try;; | |
11341 esac | |
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11343 (eval "$ac_compile") 2>conftest.er1 | |
11344 ac_status=$? | |
11345 grep -v '^ *+' conftest.er1 >conftest.err | |
11346 rm -f conftest.er1 | |
11347 cat conftest.err >&5 | |
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11349 (exit $ac_status); } && { | |
11350 test -z "$ac_c_werror_flag" || | |
11351 test ! -s conftest.err | |
11352 } && test -s conftest.$ac_objext; then | |
11353 ac_cv_header_stdc=yes | |
11354 else | |
11355 echo "$as_me: failed program was:" >&5 | |
11356 sed 's/^/| /' conftest.$ac_ext >&5 | |
11357 | |
11358 ac_cv_header_stdc=no | |
11359 fi | |
11360 | |
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11362 | |
11363 if test $ac_cv_header_stdc = yes; then | |
11364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11365 cat >conftest.$ac_ext <<_ACEOF | |
11366 /* confdefs.h. */ | |
11367 _ACEOF | |
11368 cat confdefs.h >>conftest.$ac_ext | |
11369 cat >>conftest.$ac_ext <<_ACEOF | |
11370 /* end confdefs.h. */ | |
11371 #include <string.h> | |
11372 | |
11373 _ACEOF | |
11374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11375 $EGREP "memchr" >/dev/null 2>&1; then | |
11376 : | |
11377 else | |
11378 ac_cv_header_stdc=no | |
11379 fi | |
11380 rm -f conftest* | |
11381 | |
11382 fi | |
11383 | |
11384 if test $ac_cv_header_stdc = yes; then | |
11385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11386 cat >conftest.$ac_ext <<_ACEOF | |
11387 /* confdefs.h. */ | |
11388 _ACEOF | |
11389 cat confdefs.h >>conftest.$ac_ext | |
11390 cat >>conftest.$ac_ext <<_ACEOF | |
11391 /* end confdefs.h. */ | |
11392 #include <stdlib.h> | |
11393 | |
11394 _ACEOF | |
11395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11396 $EGREP "free" >/dev/null 2>&1; then | |
11397 : | |
11398 else | |
11399 ac_cv_header_stdc=no | |
11400 fi | |
11401 rm -f conftest* | |
11402 | |
11403 fi | |
11404 | |
11405 if test $ac_cv_header_stdc = yes; then | |
11406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11407 if test "$cross_compiling" = yes; then | |
11408 : | |
11409 else | |
11410 cat >conftest.$ac_ext <<_ACEOF | |
11411 /* confdefs.h. */ | |
11412 _ACEOF | |
11413 cat confdefs.h >>conftest.$ac_ext | |
11414 cat >>conftest.$ac_ext <<_ACEOF | |
11415 /* end confdefs.h. */ | |
11416 #include <ctype.h> | |
11417 #include <stdlib.h> | |
11418 #if ((' ' & 0x0FF) == 0x020) | |
11419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11421 #else | |
11422 # define ISLOWER(c) \ | |
11423 (('a' <= (c) && (c) <= 'i') \ | |
11424 || ('j' <= (c) && (c) <= 'r') \ | |
11425 || ('s' <= (c) && (c) <= 'z')) | |
11426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11427 #endif | |
11428 | |
11429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11430 int | |
11431 main () | |
11432 { | |
11433 int i; | |
11434 for (i = 0; i < 256; i++) | |
11435 if (XOR (islower (i), ISLOWER (i)) | |
11436 || toupper (i) != TOUPPER (i)) | |
11437 return 2; | |
11438 return 0; | |
11439 } | |
11440 _ACEOF | |
11441 rm -f conftest$ac_exeext | |
11442 if { (ac_try="$ac_link" | |
11443 case "(($ac_try" in | |
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11445 *) ac_try_echo=$ac_try;; | |
11446 esac | |
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11448 (eval "$ac_link") 2>&5 | |
11449 ac_status=$? | |
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11452 { (case "(($ac_try" in | |
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11454 *) ac_try_echo=$ac_try;; | |
11455 esac | |
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11457 (eval "$ac_try") 2>&5 | |
11458 ac_status=$? | |
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11460 (exit $ac_status); }; }; then | |
11461 : | |
11462 else | |
11463 echo "$as_me: program exited with status $ac_status" >&5 | |
11464 echo "$as_me: failed program was:" >&5 | |
11465 sed 's/^/| /' conftest.$ac_ext >&5 | |
11466 | |
11467 ( exit $ac_status ) | |
11468 ac_cv_header_stdc=no | |
11469 fi | |
11470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11471 fi | |
11472 | |
11473 | |
11474 fi | |
11475 fi | |
11476 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
11477 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
11478 if test $ac_cv_header_stdc = yes; then | |
11479 | |
11480 cat >>confdefs.h <<\_ACEOF | |
11481 #define STDC_HEADERS 1 | |
11482 _ACEOF | |
11483 | |
11484 fi | |
11485 | |
11486 | |
11487 | |
11488 | |
11489 | |
11490 | |
11491 | |
11492 for ac_header in netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h | |
11493 do | |
11494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11496 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11499 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11500 fi | |
11501 ac_res=`eval echo '${'$as_ac_Header'}'` | |
11502 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11503 echo "${ECHO_T}$ac_res" >&6; } | |
11504 else | |
11505 # Is the header compilable? | |
11506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
11508 cat >conftest.$ac_ext <<_ACEOF | |
11509 /* confdefs.h. */ | |
11510 _ACEOF | |
11511 cat confdefs.h >>conftest.$ac_ext | |
11512 cat >>conftest.$ac_ext <<_ACEOF | |
11513 /* end confdefs.h. */ | |
11514 $ac_includes_default | |
11515 #include <$ac_header> | |
11516 _ACEOF | |
11517 rm -f conftest.$ac_objext | |
11518 if { (ac_try="$ac_compile" | |
11519 case "(($ac_try" in | |
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11521 *) ac_try_echo=$ac_try;; | |
11522 esac | |
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11524 (eval "$ac_compile") 2>conftest.er1 | |
11525 ac_status=$? | |
11526 grep -v '^ *+' conftest.er1 >conftest.err | |
11527 rm -f conftest.er1 | |
11528 cat conftest.err >&5 | |
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11530 (exit $ac_status); } && { | |
11531 test -z "$ac_c_werror_flag" || | |
11532 test ! -s conftest.err | |
11533 } && test -s conftest.$ac_objext; then | |
11534 ac_header_compiler=yes | |
11535 else | |
11536 echo "$as_me: failed program was:" >&5 | |
11537 sed 's/^/| /' conftest.$ac_ext >&5 | |
11538 | |
11539 ac_header_compiler=no | |
11540 fi | |
11541 | |
11542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11544 echo "${ECHO_T}$ac_header_compiler" >&6; } | |
11545 | |
11546 # Is the header present? | |
11547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
11549 cat >conftest.$ac_ext <<_ACEOF | |
11550 /* confdefs.h. */ | |
11551 _ACEOF | |
11552 cat confdefs.h >>conftest.$ac_ext | |
11553 cat >>conftest.$ac_ext <<_ACEOF | |
11554 /* end confdefs.h. */ | |
11555 #include <$ac_header> | |
11556 _ACEOF | |
11557 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11558 case "(($ac_try" in | |
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11560 *) ac_try_echo=$ac_try;; | |
11561 esac | |
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11564 ac_status=$? | |
11565 grep -v '^ *+' conftest.er1 >conftest.err | |
11566 rm -f conftest.er1 | |
11567 cat conftest.err >&5 | |
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11569 (exit $ac_status); } >/dev/null && { | |
11570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11571 test ! -s conftest.err | |
11572 }; then | |
11573 ac_header_preproc=yes | |
11574 else | |
11575 echo "$as_me: failed program was:" >&5 | |
11576 sed 's/^/| /' conftest.$ac_ext >&5 | |
11577 | |
11578 ac_header_preproc=no | |
11579 fi | |
11580 | |
11581 rm -f conftest.err conftest.$ac_ext | |
11582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11583 echo "${ECHO_T}$ac_header_preproc" >&6; } | |
11584 | |
11585 # So? What about this header? | |
11586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11587 yes:no: ) | |
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11592 ac_header_preproc=yes | |
11593 ;; | |
11594 no:yes:* ) | |
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11607 ( cat <<\_ASBOX | |
11608 ## ------------------------------------------------ ## | |
11609 ## Report this to liblo-devel@lists.sourceforge.net ## | |
11610 ## ------------------------------------------------ ## | |
11611 _ASBOX | |
11612 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
11613 ;; | |
11614 esac | |
11615 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11618 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11619 else | |
11620 eval "$as_ac_Header=\$ac_header_preproc" | |
11621 fi | |
11622 ac_res=`eval echo '${'$as_ac_Header'}'` | |
11623 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11624 echo "${ECHO_T}$ac_res" >&6; } | |
11625 | |
11626 fi | |
11627 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11628 cat >>confdefs.h <<_ACEOF | |
11629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11630 _ACEOF | |
11631 | |
11632 fi | |
11633 | |
11634 done | |
11635 | |
11636 | |
11637 # Checks for typedefs, structures, and compiler characteristics. | |
11638 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
11639 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
11640 if test "${ac_cv_c_const+set}" = set; then | |
11641 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11642 else | |
11643 cat >conftest.$ac_ext <<_ACEOF | |
11644 /* confdefs.h. */ | |
11645 _ACEOF | |
11646 cat confdefs.h >>conftest.$ac_ext | |
11647 cat >>conftest.$ac_ext <<_ACEOF | |
11648 /* end confdefs.h. */ | |
11649 | |
11650 int | |
11651 main () | |
11652 { | |
11653 /* FIXME: Include the comments suggested by Paul. */ | |
11654 #ifndef __cplusplus | |
11655 /* Ultrix mips cc rejects this. */ | |
11656 typedef int charset[2]; | |
11657 const charset cs; | |
11658 /* SunOS 4.1.1 cc rejects this. */ | |
11659 char const *const *pcpcc; | |
11660 char **ppc; | |
11661 /* NEC SVR4.0.2 mips cc rejects this. */ | |
11662 struct point {int x, y;}; | |
11663 static struct point const zero = {0,0}; | |
11664 /* AIX XL C 1.02.0.0 rejects this. | |
11665 It does not let you subtract one const X* pointer from another in | |
11666 an arm of an if-expression whose if-part is not a constant | |
11667 expression */ | |
11668 const char *g = "string"; | |
11669 pcpcc = &g + (g ? g-g : 0); | |
11670 /* HPUX 7.0 cc rejects these. */ | |
11671 ++pcpcc; | |
11672 ppc = (char**) pcpcc; | |
11673 pcpcc = (char const *const *) ppc; | |
11674 { /* SCO 3.2v4 cc rejects this. */ | |
11675 char *t; | |
11676 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11677 | |
11678 *t++ = 0; | |
11679 if (s) return 0; | |
11680 } | |
11681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
11682 int x[] = {25, 17}; | |
11683 const int *foo = &x[0]; | |
11684 ++foo; | |
11685 } | |
11686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
11687 typedef const int *iptr; | |
11688 iptr p = 0; | |
11689 ++p; | |
11690 } | |
11691 { /* AIX XL C 1.02.0.0 rejects this saying | |
11692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11693 struct s { int j; const int *ap[3]; }; | |
11694 struct s *b; b->j = 5; | |
11695 } | |
11696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
11697 const int foo = 10; | |
11698 if (!foo) return 0; | |
11699 } | |
11700 return !cs[0] && !zero.x; | |
11701 #endif | |
11702 | |
11703 ; | |
11704 return 0; | |
11705 } | |
11706 _ACEOF | |
11707 rm -f conftest.$ac_objext | |
11708 if { (ac_try="$ac_compile" | |
11709 case "(($ac_try" in | |
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11711 *) ac_try_echo=$ac_try;; | |
11712 esac | |
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11714 (eval "$ac_compile") 2>conftest.er1 | |
11715 ac_status=$? | |
11716 grep -v '^ *+' conftest.er1 >conftest.err | |
11717 rm -f conftest.er1 | |
11718 cat conftest.err >&5 | |
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11720 (exit $ac_status); } && { | |
11721 test -z "$ac_c_werror_flag" || | |
11722 test ! -s conftest.err | |
11723 } && test -s conftest.$ac_objext; then | |
11724 ac_cv_c_const=yes | |
11725 else | |
11726 echo "$as_me: failed program was:" >&5 | |
11727 sed 's/^/| /' conftest.$ac_ext >&5 | |
11728 | |
11729 ac_cv_c_const=no | |
11730 fi | |
11731 | |
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11733 fi | |
11734 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
11735 echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
11736 if test $ac_cv_c_const = no; then | |
11737 | |
11738 cat >>confdefs.h <<\_ACEOF | |
11739 #define const | |
11740 _ACEOF | |
11741 | |
11742 fi | |
11743 | |
11744 { echo "$as_me:$LINENO: checking for size_t" >&5 | |
11745 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
11746 if test "${ac_cv_type_size_t+set}" = set; then | |
11747 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11748 else | |
11749 cat >conftest.$ac_ext <<_ACEOF | |
11750 /* confdefs.h. */ | |
11751 _ACEOF | |
11752 cat confdefs.h >>conftest.$ac_ext | |
11753 cat >>conftest.$ac_ext <<_ACEOF | |
11754 /* end confdefs.h. */ | |
11755 $ac_includes_default | |
11756 typedef size_t ac__type_new_; | |
11757 int | |
11758 main () | |
11759 { | |
11760 if ((ac__type_new_ *) 0) | |
11761 return 0; | |
11762 if (sizeof (ac__type_new_)) | |
11763 return 0; | |
11764 ; | |
11765 return 0; | |
11766 } | |
11767 _ACEOF | |
11768 rm -f conftest.$ac_objext | |
11769 if { (ac_try="$ac_compile" | |
11770 case "(($ac_try" in | |
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11772 *) ac_try_echo=$ac_try;; | |
11773 esac | |
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11775 (eval "$ac_compile") 2>conftest.er1 | |
11776 ac_status=$? | |
11777 grep -v '^ *+' conftest.er1 >conftest.err | |
11778 rm -f conftest.er1 | |
11779 cat conftest.err >&5 | |
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11781 (exit $ac_status); } && { | |
11782 test -z "$ac_c_werror_flag" || | |
11783 test ! -s conftest.err | |
11784 } && test -s conftest.$ac_objext; then | |
11785 ac_cv_type_size_t=yes | |
11786 else | |
11787 echo "$as_me: failed program was:" >&5 | |
11788 sed 's/^/| /' conftest.$ac_ext >&5 | |
11789 | |
11790 ac_cv_type_size_t=no | |
11791 fi | |
11792 | |
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11794 fi | |
11795 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
11796 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
11797 if test $ac_cv_type_size_t = yes; then | |
11798 : | |
11799 else | |
11800 | |
11801 cat >>confdefs.h <<_ACEOF | |
11802 #define size_t unsigned int | |
11803 _ACEOF | |
11804 | |
11805 fi | |
11806 | |
11807 | |
11808 # Check for features | |
11809 { echo "$as_me:$LINENO: checking for select" >&5 | |
11810 echo $ECHO_N "checking for select... $ECHO_C" >&6; } | |
11811 if test "${ac_cv_func_select+set}" = set; then | |
11812 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11813 else | |
11814 cat >conftest.$ac_ext <<_ACEOF | |
11815 /* confdefs.h. */ | |
11816 _ACEOF | |
11817 cat confdefs.h >>conftest.$ac_ext | |
11818 cat >>conftest.$ac_ext <<_ACEOF | |
11819 /* end confdefs.h. */ | |
11820 /* Define select to an innocuous variant, in case <limits.h> declares select. | |
11821 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11822 #define select innocuous_select | |
11823 | |
11824 /* System header to define __stub macros and hopefully few prototypes, | |
11825 which can conflict with char select (); below. | |
11826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11827 <limits.h> exists even on freestanding compilers. */ | |
11828 | |
11829 #ifdef __STDC__ | |
11830 # include <limits.h> | |
11831 #else | |
11832 # include <assert.h> | |
11833 #endif | |
11834 | |
11835 #undef select | |
11836 | |
11837 /* Override any GCC internal prototype to avoid an error. | |
11838 Use char because int might match the return type of a GCC | |
11839 builtin and then its argument prototype would still apply. */ | |
11840 #ifdef __cplusplus | |
11841 extern "C" | |
11842 #endif | |
11843 char select (); | |
11844 /* The GNU C library defines this for functions which it implements | |
11845 to always fail with ENOSYS. Some functions are actually named | |
11846 something starting with __ and the normal name is an alias. */ | |
11847 #if defined __stub_select || defined __stub___select | |
11848 choke me | |
11849 #endif | |
11850 | |
11851 int | |
11852 main () | |
11853 { | |
11854 return select (); | |
11855 ; | |
11856 return 0; | |
11857 } | |
11858 _ACEOF | |
11859 rm -f conftest.$ac_objext conftest$ac_exeext | |
11860 if { (ac_try="$ac_link" | |
11861 case "(($ac_try" in | |
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11863 *) ac_try_echo=$ac_try;; | |
11864 esac | |
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11866 (eval "$ac_link") 2>conftest.er1 | |
11867 ac_status=$? | |
11868 grep -v '^ *+' conftest.er1 >conftest.err | |
11869 rm -f conftest.er1 | |
11870 cat conftest.err >&5 | |
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11872 (exit $ac_status); } && { | |
11873 test -z "$ac_c_werror_flag" || | |
11874 test ! -s conftest.err | |
11875 } && test -s conftest$ac_exeext && | |
11876 $as_test_x conftest$ac_exeext; then | |
11877 ac_cv_func_select=yes | |
11878 else | |
11879 echo "$as_me: failed program was:" >&5 | |
11880 sed 's/^/| /' conftest.$ac_ext >&5 | |
11881 | |
11882 ac_cv_func_select=no | |
11883 fi | |
11884 | |
11885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11886 conftest$ac_exeext conftest.$ac_ext | |
11887 fi | |
11888 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5 | |
11889 echo "${ECHO_T}$ac_cv_func_select" >&6; } | |
11890 if test $ac_cv_func_select = yes; then | |
11891 | |
11892 cat >>confdefs.h <<\_ACEOF | |
11893 #define HAVE_SELECT 1 | |
11894 _ACEOF | |
11895 | |
11896 else | |
11897 | |
11898 { echo "$as_me:$LINENO: checking for select in ws2_32" >&5 | |
11899 echo $ECHO_N "checking for select in ws2_32... $ECHO_C" >&6; } | |
11900 LIBS="$LIBS -lws2_32" | |
11901 # some winsock2 functions require XP, so WINNT=0x501 | |
11902 CFLAGS="$CFLAGS -DWIN32 -D_WIN32_WINNT=0x501" | |
11903 cat >conftest.$ac_ext <<_ACEOF | |
11904 /* confdefs.h. */ | |
11905 _ACEOF | |
11906 cat confdefs.h >>conftest.$ac_ext | |
11907 cat >>conftest.$ac_ext <<_ACEOF | |
11908 /* end confdefs.h. */ | |
11909 #include <winsock2.h> | |
11910 int | |
11911 main () | |
11912 { | |
11913 select(0,0,0,0,0) | |
11914 ; | |
11915 return 0; | |
11916 } | |
11917 _ACEOF | |
11918 rm -f conftest.$ac_objext conftest$ac_exeext | |
11919 if { (ac_try="$ac_link" | |
11920 case "(($ac_try" in | |
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11922 *) ac_try_echo=$ac_try;; | |
11923 esac | |
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11925 (eval "$ac_link") 2>conftest.er1 | |
11926 ac_status=$? | |
11927 grep -v '^ *+' conftest.er1 >conftest.err | |
11928 rm -f conftest.er1 | |
11929 cat conftest.err >&5 | |
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11931 (exit $ac_status); } && { | |
11932 test -z "$ac_c_werror_flag" || | |
11933 test ! -s conftest.err | |
11934 } && test -s conftest$ac_exeext && | |
11935 $as_test_x conftest$ac_exeext; then | |
11936 { echo "$as_me:$LINENO: result: yes" >&5 | |
11937 echo "${ECHO_T}yes" >&6; } | |
11938 | |
11939 cat >>confdefs.h <<\_ACEOF | |
11940 #define HAVE_SELECT 1 | |
11941 _ACEOF | |
11942 | |
11943 else | |
11944 echo "$as_me: failed program was:" >&5 | |
11945 sed 's/^/| /' conftest.$ac_ext >&5 | |
11946 | |
11947 { echo "$as_me:$LINENO: result: no" >&5 | |
11948 echo "${ECHO_T}no" >&6; } | |
11949 fi | |
11950 | |
11951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11952 conftest$ac_exeext conftest.$ac_ext | |
11953 | |
11954 fi | |
11955 | |
11956 { echo "$as_me:$LINENO: checking for poll" >&5 | |
11957 echo $ECHO_N "checking for poll... $ECHO_C" >&6; } | |
11958 if test "${ac_cv_func_poll+set}" = set; then | |
11959 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11960 else | |
11961 cat >conftest.$ac_ext <<_ACEOF | |
11962 /* confdefs.h. */ | |
11963 _ACEOF | |
11964 cat confdefs.h >>conftest.$ac_ext | |
11965 cat >>conftest.$ac_ext <<_ACEOF | |
11966 /* end confdefs.h. */ | |
11967 /* Define poll to an innocuous variant, in case <limits.h> declares poll. | |
11968 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11969 #define poll innocuous_poll | |
11970 | |
11971 /* System header to define __stub macros and hopefully few prototypes, | |
11972 which can conflict with char poll (); below. | |
11973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11974 <limits.h> exists even on freestanding compilers. */ | |
11975 | |
11976 #ifdef __STDC__ | |
11977 # include <limits.h> | |
11978 #else | |
11979 # include <assert.h> | |
11980 #endif | |
11981 | |
11982 #undef poll | |
11983 | |
11984 /* Override any GCC internal prototype to avoid an error. | |
11985 Use char because int might match the return type of a GCC | |
11986 builtin and then its argument prototype would still apply. */ | |
11987 #ifdef __cplusplus | |
11988 extern "C" | |
11989 #endif | |
11990 char poll (); | |
11991 /* The GNU C library defines this for functions which it implements | |
11992 to always fail with ENOSYS. Some functions are actually named | |
11993 something starting with __ and the normal name is an alias. */ | |
11994 #if defined __stub_poll || defined __stub___poll | |
11995 choke me | |
11996 #endif | |
11997 | |
11998 int | |
11999 main () | |
12000 { | |
12001 return poll (); | |
12002 ; | |
12003 return 0; | |
12004 } | |
12005 _ACEOF | |
12006 rm -f conftest.$ac_objext conftest$ac_exeext | |
12007 if { (ac_try="$ac_link" | |
12008 case "(($ac_try" in | |
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12010 *) ac_try_echo=$ac_try;; | |
12011 esac | |
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12013 (eval "$ac_link") 2>conftest.er1 | |
12014 ac_status=$? | |
12015 grep -v '^ *+' conftest.er1 >conftest.err | |
12016 rm -f conftest.er1 | |
12017 cat conftest.err >&5 | |
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12019 (exit $ac_status); } && { | |
12020 test -z "$ac_c_werror_flag" || | |
12021 test ! -s conftest.err | |
12022 } && test -s conftest$ac_exeext && | |
12023 $as_test_x conftest$ac_exeext; then | |
12024 ac_cv_func_poll=yes | |
12025 else | |
12026 echo "$as_me: failed program was:" >&5 | |
12027 sed 's/^/| /' conftest.$ac_ext >&5 | |
12028 | |
12029 ac_cv_func_poll=no | |
12030 fi | |
12031 | |
12032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12033 conftest$ac_exeext conftest.$ac_ext | |
12034 fi | |
12035 { echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 | |
12036 echo "${ECHO_T}$ac_cv_func_poll" >&6; } | |
12037 if test $ac_cv_func_poll = yes; then | |
12038 | |
12039 cat >>confdefs.h <<\_ACEOF | |
12040 #define HAVE_POLL 1 | |
12041 _ACEOF | |
12042 | |
12043 fi | |
12044 | |
12045 { echo "$as_me:$LINENO: checking for inet_aton" >&5 | |
12046 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } | |
12047 if test "${ac_cv_func_inet_aton+set}" = set; then | |
12048 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12049 else | |
12050 cat >conftest.$ac_ext <<_ACEOF | |
12051 /* confdefs.h. */ | |
12052 _ACEOF | |
12053 cat confdefs.h >>conftest.$ac_ext | |
12054 cat >>conftest.$ac_ext <<_ACEOF | |
12055 /* end confdefs.h. */ | |
12056 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton. | |
12057 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12058 #define inet_aton innocuous_inet_aton | |
12059 | |
12060 /* System header to define __stub macros and hopefully few prototypes, | |
12061 which can conflict with char inet_aton (); below. | |
12062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12063 <limits.h> exists even on freestanding compilers. */ | |
12064 | |
12065 #ifdef __STDC__ | |
12066 # include <limits.h> | |
12067 #else | |
12068 # include <assert.h> | |
12069 #endif | |
12070 | |
12071 #undef inet_aton | |
12072 | |
12073 /* Override any GCC internal prototype to avoid an error. | |
12074 Use char because int might match the return type of a GCC | |
12075 builtin and then its argument prototype would still apply. */ | |
12076 #ifdef __cplusplus | |
12077 extern "C" | |
12078 #endif | |
12079 char inet_aton (); | |
12080 /* The GNU C library defines this for functions which it implements | |
12081 to always fail with ENOSYS. Some functions are actually named | |
12082 something starting with __ and the normal name is an alias. */ | |
12083 #if defined __stub_inet_aton || defined __stub___inet_aton | |
12084 choke me | |
12085 #endif | |
12086 | |
12087 int | |
12088 main () | |
12089 { | |
12090 return inet_aton (); | |
12091 ; | |
12092 return 0; | |
12093 } | |
12094 _ACEOF | |
12095 rm -f conftest.$ac_objext conftest$ac_exeext | |
12096 if { (ac_try="$ac_link" | |
12097 case "(($ac_try" in | |
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12099 *) ac_try_echo=$ac_try;; | |
12100 esac | |
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12102 (eval "$ac_link") 2>conftest.er1 | |
12103 ac_status=$? | |
12104 grep -v '^ *+' conftest.er1 >conftest.err | |
12105 rm -f conftest.er1 | |
12106 cat conftest.err >&5 | |
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12108 (exit $ac_status); } && { | |
12109 test -z "$ac_c_werror_flag" || | |
12110 test ! -s conftest.err | |
12111 } && test -s conftest$ac_exeext && | |
12112 $as_test_x conftest$ac_exeext; then | |
12113 ac_cv_func_inet_aton=yes | |
12114 else | |
12115 echo "$as_me: failed program was:" >&5 | |
12116 sed 's/^/| /' conftest.$ac_ext >&5 | |
12117 | |
12118 ac_cv_func_inet_aton=no | |
12119 fi | |
12120 | |
12121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12122 conftest$ac_exeext conftest.$ac_ext | |
12123 fi | |
12124 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5 | |
12125 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; } | |
12126 if test $ac_cv_func_inet_aton = yes; then | |
12127 | |
12128 cat >>confdefs.h <<\_ACEOF | |
12129 #define HAVE_INET_ATON 1 | |
12130 _ACEOF | |
12131 | |
12132 fi | |
12133 | |
12134 | |
12135 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
12136 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
12137 if test "${ac_cv_c_bigendian+set}" = set; then | |
12138 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12139 else | |
12140 # See if sys/param.h defines the BYTE_ORDER macro. | |
12141 cat >conftest.$ac_ext <<_ACEOF | |
12142 /* confdefs.h. */ | |
12143 _ACEOF | |
12144 cat confdefs.h >>conftest.$ac_ext | |
12145 cat >>conftest.$ac_ext <<_ACEOF | |
12146 /* end confdefs.h. */ | |
12147 #include <sys/types.h> | |
12148 #include <sys/param.h> | |
12149 | |
12150 int | |
12151 main () | |
12152 { | |
12153 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | |
12154 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
12155 bogus endian macros | |
12156 #endif | |
12157 | |
12158 ; | |
12159 return 0; | |
12160 } | |
12161 _ACEOF | |
12162 rm -f conftest.$ac_objext | |
12163 if { (ac_try="$ac_compile" | |
12164 case "(($ac_try" in | |
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12166 *) ac_try_echo=$ac_try;; | |
12167 esac | |
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12169 (eval "$ac_compile") 2>conftest.er1 | |
12170 ac_status=$? | |
12171 grep -v '^ *+' conftest.er1 >conftest.err | |
12172 rm -f conftest.er1 | |
12173 cat conftest.err >&5 | |
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12175 (exit $ac_status); } && { | |
12176 test -z "$ac_c_werror_flag" || | |
12177 test ! -s conftest.err | |
12178 } && test -s conftest.$ac_objext; then | |
12179 # It does; now see whether it defined to BIG_ENDIAN or not. | |
12180 cat >conftest.$ac_ext <<_ACEOF | |
12181 /* confdefs.h. */ | |
12182 _ACEOF | |
12183 cat confdefs.h >>conftest.$ac_ext | |
12184 cat >>conftest.$ac_ext <<_ACEOF | |
12185 /* end confdefs.h. */ | |
12186 #include <sys/types.h> | |
12187 #include <sys/param.h> | |
12188 | |
12189 int | |
12190 main () | |
12191 { | |
12192 #if BYTE_ORDER != BIG_ENDIAN | |
12193 not big endian | |
12194 #endif | |
12195 | |
12196 ; | |
12197 return 0; | |
12198 } | |
12199 _ACEOF | |
12200 rm -f conftest.$ac_objext | |
12201 if { (ac_try="$ac_compile" | |
12202 case "(($ac_try" in | |
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12204 *) ac_try_echo=$ac_try;; | |
12205 esac | |
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12207 (eval "$ac_compile") 2>conftest.er1 | |
12208 ac_status=$? | |
12209 grep -v '^ *+' conftest.er1 >conftest.err | |
12210 rm -f conftest.er1 | |
12211 cat conftest.err >&5 | |
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12213 (exit $ac_status); } && { | |
12214 test -z "$ac_c_werror_flag" || | |
12215 test ! -s conftest.err | |
12216 } && test -s conftest.$ac_objext; then | |
12217 ac_cv_c_bigendian=yes | |
12218 else | |
12219 echo "$as_me: failed program was:" >&5 | |
12220 sed 's/^/| /' conftest.$ac_ext >&5 | |
12221 | |
12222 ac_cv_c_bigendian=no | |
12223 fi | |
12224 | |
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12226 else | |
12227 echo "$as_me: failed program was:" >&5 | |
12228 sed 's/^/| /' conftest.$ac_ext >&5 | |
12229 | |
12230 # It does not; compile a test program. | |
12231 if test "$cross_compiling" = yes; then | |
12232 # try to guess the endianness by grepping values into an object file | |
12233 ac_cv_c_bigendian=unknown | |
12234 cat >conftest.$ac_ext <<_ACEOF | |
12235 /* confdefs.h. */ | |
12236 _ACEOF | |
12237 cat confdefs.h >>conftest.$ac_ext | |
12238 cat >>conftest.$ac_ext <<_ACEOF | |
12239 /* end confdefs.h. */ | |
12240 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
12241 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
12242 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
12243 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
12244 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
12245 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
12246 int | |
12247 main () | |
12248 { | |
12249 _ascii (); _ebcdic (); | |
12250 ; | |
12251 return 0; | |
12252 } | |
12253 _ACEOF | |
12254 rm -f conftest.$ac_objext | |
12255 if { (ac_try="$ac_compile" | |
12256 case "(($ac_try" in | |
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12258 *) ac_try_echo=$ac_try;; | |
12259 esac | |
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12261 (eval "$ac_compile") 2>conftest.er1 | |
12262 ac_status=$? | |
12263 grep -v '^ *+' conftest.er1 >conftest.err | |
12264 rm -f conftest.er1 | |
12265 cat conftest.err >&5 | |
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12267 (exit $ac_status); } && { | |
12268 test -z "$ac_c_werror_flag" || | |
12269 test ! -s conftest.err | |
12270 } && test -s conftest.$ac_objext; then | |
12271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
12272 ac_cv_c_bigendian=yes | |
12273 fi | |
12274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
12275 if test "$ac_cv_c_bigendian" = unknown; then | |
12276 ac_cv_c_bigendian=no | |
12277 else | |
12278 # finding both strings is unlikely to happen, but who knows? | |
12279 ac_cv_c_bigendian=unknown | |
12280 fi | |
12281 fi | |
12282 else | |
12283 echo "$as_me: failed program was:" >&5 | |
12284 sed 's/^/| /' conftest.$ac_ext >&5 | |
12285 | |
12286 | |
12287 fi | |
12288 | |
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12290 else | |
12291 cat >conftest.$ac_ext <<_ACEOF | |
12292 /* confdefs.h. */ | |
12293 _ACEOF | |
12294 cat confdefs.h >>conftest.$ac_ext | |
12295 cat >>conftest.$ac_ext <<_ACEOF | |
12296 /* end confdefs.h. */ | |
12297 $ac_includes_default | |
12298 int | |
12299 main () | |
12300 { | |
12301 | |
12302 /* Are we little or big endian? From Harbison&Steele. */ | |
12303 union | |
12304 { | |
12305 long int l; | |
12306 char c[sizeof (long int)]; | |
12307 } u; | |
12308 u.l = 1; | |
12309 return u.c[sizeof (long int) - 1] == 1; | |
12310 | |
12311 ; | |
12312 return 0; | |
12313 } | |
12314 _ACEOF | |
12315 rm -f conftest$ac_exeext | |
12316 if { (ac_try="$ac_link" | |
12317 case "(($ac_try" in | |
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12319 *) ac_try_echo=$ac_try;; | |
12320 esac | |
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12322 (eval "$ac_link") 2>&5 | |
12323 ac_status=$? | |
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12326 { (case "(($ac_try" in | |
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12328 *) ac_try_echo=$ac_try;; | |
12329 esac | |
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12331 (eval "$ac_try") 2>&5 | |
12332 ac_status=$? | |
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12334 (exit $ac_status); }; }; then | |
12335 ac_cv_c_bigendian=no | |
12336 else | |
12337 echo "$as_me: program exited with status $ac_status" >&5 | |
12338 echo "$as_me: failed program was:" >&5 | |
12339 sed 's/^/| /' conftest.$ac_ext >&5 | |
12340 | |
12341 ( exit $ac_status ) | |
12342 ac_cv_c_bigendian=yes | |
12343 fi | |
12344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12345 fi | |
12346 | |
12347 | |
12348 fi | |
12349 | |
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12351 fi | |
12352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
12353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
12354 case $ac_cv_c_bigendian in | |
12355 yes) | |
12356 LO_BIGENDIAN="1" ;; | |
12357 no) | |
12358 LO_BIGENDIAN="0" ;; | |
12359 *) | |
12360 { { echo "$as_me:$LINENO: error: unknown endianness | |
12361 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
12362 echo "$as_me: error: unknown endianness | |
12363 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
12364 { (exit 1); exit 1; }; } ;; | |
12365 esac | |
12366 | |
12367 | |
12368 cat >>confdefs.h <<_ACEOF | |
12369 #define LO_BIGENDIAN "$LO_BIGENDIAN" | |
12370 _ACEOF | |
12371 | |
12372 | |
12373 | |
12374 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile examples/Makefile lo/Makefile lo/lo_endian.h liblo.pc doc/Makefile doc/reference.doxygen build/Makefile" | |
12375 | |
12376 cat >confcache <<\_ACEOF | |
12377 # This file is a shell script that caches the results of configure | |
12378 # tests run on this system so they can be shared between configure | |
12379 # scripts and configure runs, see configure's option --config-cache. | |
12380 # It is not useful on other systems. If it contains results you don't | |
12381 # want to keep, you may remove or edit it. | |
12382 # | |
12383 # config.status only pays attention to the cache file if you give it | |
12384 # the --recheck option to rerun configure. | |
12385 # | |
12386 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12387 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12388 # following values. | |
12389 | |
12390 _ACEOF | |
12391 | |
12392 # The following way of writing the cache mishandles newlines in values, | |
12393 # but we know of no workaround that is simple, portable, and efficient. | |
12394 # So, we kill variables containing newlines. | |
12395 # Ultrix sh set writes to stderr and can't be redirected directly, | |
12396 # and sets the high bit in the cache file unless we assign to the vars. | |
12397 ( | |
12398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12399 eval ac_val=\$$ac_var | |
12400 case $ac_val in #( | |
12401 *${as_nl}*) | |
12402 case $ac_var in #( | |
12403 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
12404 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
12405 esac | |
12406 case $ac_var in #( | |
12407 _ | IFS | as_nl) ;; #( | |
12408 *) $as_unset $ac_var ;; | |
12409 esac ;; | |
12410 esac | |
12411 done | |
12412 | |
12413 (set) 2>&1 | | |
12414 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12415 *${as_nl}ac_space=\ *) | |
12416 # `set' does not quote correctly, so add quotes (double-quote | |
12417 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12418 sed -n \ | |
12419 "s/'/'\\\\''/g; | |
12420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12421 ;; #( | |
12422 *) | |
12423 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
12425 ;; | |
12426 esac | | |
12427 sort | |
12428 ) | | |
12429 sed ' | |
12430 /^ac_cv_env_/b end | |
12431 t clear | |
12432 :clear | |
12433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12434 t end | |
12435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12436 :end' >>confcache | |
12437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12438 if test -w "$cache_file"; then | |
12439 test "x$cache_file" != "x/dev/null" && | |
12440 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
12441 echo "$as_me: updating cache $cache_file" >&6;} | |
12442 cat confcache >$cache_file | |
12443 else | |
12444 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
12445 echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
12446 fi | |
12447 fi | |
12448 rm -f confcache | |
12449 | |
12450 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12451 # Let make expand exec_prefix. | |
12452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12453 | |
12454 DEFS=-DHAVE_CONFIG_H | |
12455 | |
12456 ac_libobjs= | |
12457 ac_ltlibobjs= | |
12458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12459 # 1. Remove the extension, and $U if already installed. | |
12460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
12461 ac_i=`echo "$ac_i" | sed "$ac_script"` | |
12462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12463 # will be set to the directory where LIBOBJS objects are built. | |
12464 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12465 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
12466 done | |
12467 LIBOBJS=$ac_libobjs | |
12468 | |
12469 LTLIBOBJS=$ac_ltlibobjs | |
12470 | |
12471 | |
12472 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
12473 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
12474 Usually this means the macro was only invoked conditionally." >&5 | |
12475 echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
12476 Usually this means the macro was only invoked conditionally." >&2;} | |
12477 { (exit 1); exit 1; }; } | |
12478 fi | |
12479 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
12480 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
12481 Usually this means the macro was only invoked conditionally." >&5 | |
12482 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
12483 Usually this means the macro was only invoked conditionally." >&2;} | |
12484 { (exit 1); exit 1; }; } | |
12485 fi | |
12486 | |
12487 : ${CONFIG_STATUS=./config.status} | |
12488 ac_clean_files_save=$ac_clean_files | |
12489 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
12490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
12491 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12492 cat >$CONFIG_STATUS <<_ACEOF | |
12493 #! $SHELL | |
12494 # Generated by $as_me. | |
12495 # Run this file to recreate the current configuration. | |
12496 # Compiler output produced by configure, useful for debugging | |
12497 # configure, is in config.log if it exists. | |
12498 | |
12499 debug=false | |
12500 ac_cs_recheck=false | |
12501 ac_cs_silent=false | |
12502 SHELL=\${CONFIG_SHELL-$SHELL} | |
12503 _ACEOF | |
12504 | |
12505 cat >>$CONFIG_STATUS <<\_ACEOF | |
12506 ## --------------------- ## | |
12507 ## M4sh Initialization. ## | |
12508 ## --------------------- ## | |
12509 | |
12510 # Be more Bourne compatible | |
12511 DUALCASE=1; export DUALCASE # for MKS sh | |
12512 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
12513 emulate sh | |
12514 NULLCMD=: | |
12515 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
12516 # is contrary to our usage. Disable this feature. | |
12517 alias -g '${1+"$@"}'='"$@"' | |
12518 setopt NO_GLOB_SUBST | |
12519 else | |
12520 case `(set -o) 2>/dev/null` in | |
12521 *posix*) set -o posix ;; | |
12522 esac | |
12523 | |
12524 fi | |
12525 | |
12526 | |
12527 | |
12528 | |
12529 # PATH needs CR | |
12530 # Avoid depending upon Character Ranges. | |
12531 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12534 as_cr_digits='0123456789' | |
12535 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12536 | |
12537 # The user is always right. | |
12538 if test "${PATH_SEPARATOR+set}" != set; then | |
12539 echo "#! /bin/sh" >conf$$.sh | |
12540 echo "exit 0" >>conf$$.sh | |
12541 chmod +x conf$$.sh | |
12542 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12543 PATH_SEPARATOR=';' | |
12544 else | |
12545 PATH_SEPARATOR=: | |
12546 fi | |
12547 rm -f conf$$.sh | |
12548 fi | |
12549 | |
12550 # Support unset when possible. | |
12551 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
12552 as_unset=unset | |
12553 else | |
12554 as_unset=false | |
12555 fi | |
12556 | |
12557 | |
12558 # IFS | |
12559 # We need space, tab and new line, in precisely that order. Quoting is | |
12560 # there to prevent editors from complaining about space-tab. | |
12561 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12562 # splitting by setting IFS to empty value.) | |
12563 as_nl=' | |
12564 ' | |
12565 IFS=" "" $as_nl" | |
12566 | |
12567 # Find who we are. Look in the path if we contain no directory separator. | |
12568 case $0 in | |
12569 *[\\/]* ) as_myself=$0 ;; | |
12570 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12571 for as_dir in $PATH | |
12572 do | |
12573 IFS=$as_save_IFS | |
12574 test -z "$as_dir" && as_dir=. | |
12575 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12576 done | |
12577 IFS=$as_save_IFS | |
12578 | |
12579 ;; | |
12580 esac | |
12581 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12582 # in which case we are not to be found in the path. | |
12583 if test "x$as_myself" = x; then | |
12584 as_myself=$0 | |
12585 fi | |
12586 if test ! -f "$as_myself"; then | |
12587 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12588 { (exit 1); exit 1; } | |
12589 fi | |
12590 | |
12591 # Work around bugs in pre-3.0 UWIN ksh. | |
12592 for as_var in ENV MAIL MAILPATH | |
12593 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12594 done | |
12595 PS1='$ ' | |
12596 PS2='> ' | |
12597 PS4='+ ' | |
12598 | |
12599 # NLS nuisances. | |
12600 for as_var in \ | |
12601 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
12602 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
12603 LC_TELEPHONE LC_TIME | |
12604 do | |
12605 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
12606 eval $as_var=C; export $as_var | |
12607 else | |
12608 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12609 fi | |
12610 done | |
12611 | |
12612 # Required to use basename. | |
12613 if expr a : '\(a\)' >/dev/null 2>&1 && | |
12614 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12615 as_expr=expr | |
12616 else | |
12617 as_expr=false | |
12618 fi | |
12619 | |
12620 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
12621 as_basename=basename | |
12622 else | |
12623 as_basename=false | |
12624 fi | |
12625 | |
12626 | |
12627 # Name of the executable. | |
12628 as_me=`$as_basename -- "$0" || | |
12629 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12630 X"$0" : 'X\(//\)$' \| \ | |
12631 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12632 echo X/"$0" | | |
12633 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12634 s//\1/ | |
12635 q | |
12636 } | |
12637 /^X\/\(\/\/\)$/{ | |
12638 s//\1/ | |
12639 q | |
12640 } | |
12641 /^X\/\(\/\).*/{ | |
12642 s//\1/ | |
12643 q | |
12644 } | |
12645 s/.*/./; q'` | |
12646 | |
12647 # CDPATH. | |
12648 $as_unset CDPATH | |
12649 | |
12650 | |
12651 | |
12652 as_lineno_1=$LINENO | |
12653 as_lineno_2=$LINENO | |
12654 test "x$as_lineno_1" != "x$as_lineno_2" && | |
12655 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
12656 | |
12657 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
12658 # uniformly replaced by the line number. The first 'sed' inserts a | |
12659 # line-number line after each line using $LINENO; the second 'sed' | |
12660 # does the real work. The second script uses 'N' to pair each | |
12661 # line-number line with the line containing $LINENO, and appends | |
12662 # trailing '-' during substitution so that $LINENO is not a special | |
12663 # case at line end. | |
12664 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
12665 # scripts with optimization help from Paolo Bonzini. Blame Lee | |
12666 # E. McMahon (1931-1989) for sed's syntax. :-) | |
12667 sed -n ' | |
12668 p | |
12669 /[$]LINENO/= | |
12670 ' <$as_myself | | |
12671 sed ' | |
12672 s/[$]LINENO.*/&-/ | |
12673 t lineno | |
12674 b | |
12675 :lineno | |
12676 N | |
12677 :loop | |
12678 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
12679 t loop | |
12680 s/-\n.*// | |
12681 ' >$as_me.lineno && | |
12682 chmod +x "$as_me.lineno" || | |
12683 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
12684 { (exit 1); exit 1; }; } | |
12685 | |
12686 # Don't try to exec as it changes $[0], causing all sort of problems | |
12687 # (the dirname of $[0] is not the place where we might find the | |
12688 # original and so on. Autoconf is especially sensitive to this). | |
12689 . "./$as_me.lineno" | |
12690 # Exit status is that of the last command. | |
12691 exit | |
12692 } | |
12693 | |
12694 | |
12695 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
12696 as_dirname=dirname | |
12697 else | |
12698 as_dirname=false | |
12699 fi | |
12700 | |
12701 ECHO_C= ECHO_N= ECHO_T= | |
12702 case `echo -n x` in | |
12703 -n*) | |
12704 case `echo 'x\c'` in | |
12705 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12706 *) ECHO_C='\c';; | |
12707 esac;; | |
12708 *) | |
12709 ECHO_N='-n';; | |
12710 esac | |
12711 | |
12712 if expr a : '\(a\)' >/dev/null 2>&1 && | |
12713 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12714 as_expr=expr | |
12715 else | |
12716 as_expr=false | |
12717 fi | |
12718 | |
12719 rm -f conf$$ conf$$.exe conf$$.file | |
12720 if test -d conf$$.dir; then | |
12721 rm -f conf$$.dir/conf$$.file | |
12722 else | |
12723 rm -f conf$$.dir | |
12724 mkdir conf$$.dir | |
12725 fi | |
12726 echo >conf$$.file | |
12727 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12728 as_ln_s='ln -s' | |
12729 # ... but there are two gotchas: | |
12730 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12731 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12732 # In both cases, we have to default to `cp -p'. | |
12733 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12734 as_ln_s='cp -p' | |
12735 elif ln conf$$.file conf$$ 2>/dev/null; then | |
12736 as_ln_s=ln | |
12737 else | |
12738 as_ln_s='cp -p' | |
12739 fi | |
12740 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
12741 rmdir conf$$.dir 2>/dev/null | |
12742 | |
12743 if mkdir -p . 2>/dev/null; then | |
12744 as_mkdir_p=: | |
12745 else | |
12746 test -d ./-p && rmdir ./-p | |
12747 as_mkdir_p=false | |
12748 fi | |
12749 | |
12750 if test -x / >/dev/null 2>&1; then | |
12751 as_test_x='test -x' | |
12752 else | |
12753 if ls -dL / >/dev/null 2>&1; then | |
12754 as_ls_L_option=L | |
12755 else | |
12756 as_ls_L_option= | |
12757 fi | |
12758 as_test_x=' | |
12759 eval sh -c '\'' | |
12760 if test -d "$1"; then | |
12761 test -d "$1/."; | |
12762 else | |
12763 case $1 in | |
12764 -*)set "./$1";; | |
12765 esac; | |
12766 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
12767 ???[sx]*):;;*)false;;esac;fi | |
12768 '\'' sh | |
12769 ' | |
12770 fi | |
12771 as_executable_p=$as_test_x | |
12772 | |
12773 # Sed expression to map a string onto a valid CPP name. | |
12774 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12775 | |
12776 # Sed expression to map a string onto a valid variable name. | |
12777 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12778 | |
12779 | |
12780 exec 6>&1 | |
12781 | |
12782 # Save the log message, to keep $[0] and so on meaningful, and to | |
12783 # report actual input values of CONFIG_FILES etc. instead of their | |
12784 # values after options handling. | |
12785 ac_log=" | |
12786 This file was extended by liblo $as_me 0.26, which was | |
12787 generated by GNU Autoconf 2.61. Invocation command line was | |
12788 | |
12789 CONFIG_FILES = $CONFIG_FILES | |
12790 CONFIG_HEADERS = $CONFIG_HEADERS | |
12791 CONFIG_LINKS = $CONFIG_LINKS | |
12792 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12793 $ $0 $@ | |
12794 | |
12795 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12796 " | |
12797 | |
12798 _ACEOF | |
12799 | |
12800 cat >>$CONFIG_STATUS <<_ACEOF | |
12801 # Files that config.status was made for. | |
12802 config_files="$ac_config_files" | |
12803 config_headers="$ac_config_headers" | |
12804 config_commands="$ac_config_commands" | |
12805 | |
12806 _ACEOF | |
12807 | |
12808 cat >>$CONFIG_STATUS <<\_ACEOF | |
12809 ac_cs_usage="\ | |
12810 \`$as_me' instantiates files from templates according to the | |
12811 current configuration. | |
12812 | |
12813 Usage: $0 [OPTIONS] [FILE]... | |
12814 | |
12815 -h, --help print this help, then exit | |
12816 -V, --version print version number and configuration settings, then exit | |
12817 -q, --quiet do not print progress messages | |
12818 -d, --debug don't remove temporary files | |
12819 --recheck update $as_me by reconfiguring in the same conditions | |
12820 --file=FILE[:TEMPLATE] | |
12821 instantiate the configuration file FILE | |
12822 --header=FILE[:TEMPLATE] | |
12823 instantiate the configuration header FILE | |
12824 | |
12825 Configuration files: | |
12826 $config_files | |
12827 | |
12828 Configuration headers: | |
12829 $config_headers | |
12830 | |
12831 Configuration commands: | |
12832 $config_commands | |
12833 | |
12834 Report bugs to <bug-autoconf@gnu.org>." | |
12835 | |
12836 _ACEOF | |
12837 cat >>$CONFIG_STATUS <<_ACEOF | |
12838 ac_cs_version="\\ | |
12839 liblo config.status 0.26 | |
12840 configured by $0, generated by GNU Autoconf 2.61, | |
12841 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
12842 | |
12843 Copyright (C) 2006 Free Software Foundation, Inc. | |
12844 This config.status script is free software; the Free Software Foundation | |
12845 gives unlimited permission to copy, distribute and modify it." | |
12846 | |
12847 ac_pwd='$ac_pwd' | |
12848 srcdir='$srcdir' | |
12849 INSTALL='$INSTALL' | |
12850 MKDIR_P='$MKDIR_P' | |
12851 _ACEOF | |
12852 | |
12853 cat >>$CONFIG_STATUS <<\_ACEOF | |
12854 # If no file are specified by the user, then we need to provide default | |
12855 # value. By we need to know if files were specified by the user. | |
12856 ac_need_defaults=: | |
12857 while test $# != 0 | |
12858 do | |
12859 case $1 in | |
12860 --*=*) | |
12861 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12862 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12863 ac_shift=: | |
12864 ;; | |
12865 *) | |
12866 ac_option=$1 | |
12867 ac_optarg=$2 | |
12868 ac_shift=shift | |
12869 ;; | |
12870 esac | |
12871 | |
12872 case $ac_option in | |
12873 # Handling of the options. | |
12874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12875 ac_cs_recheck=: ;; | |
12876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12877 echo "$ac_cs_version"; exit ;; | |
12878 --debug | --debu | --deb | --de | --d | -d ) | |
12879 debug=: ;; | |
12880 --file | --fil | --fi | --f ) | |
12881 $ac_shift | |
12882 CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
12883 ac_need_defaults=false;; | |
12884 --header | --heade | --head | --hea ) | |
12885 $ac_shift | |
12886 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
12887 ac_need_defaults=false;; | |
12888 --he | --h) | |
12889 # Conflict between --help and --header | |
12890 { echo "$as_me: error: ambiguous option: $1 | |
12891 Try \`$0 --help' for more information." >&2 | |
12892 { (exit 1); exit 1; }; };; | |
12893 --help | --hel | -h ) | |
12894 echo "$ac_cs_usage"; exit ;; | |
12895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12896 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12897 ac_cs_silent=: ;; | |
12898 | |
12899 # This is an error. | |
12900 -*) { echo "$as_me: error: unrecognized option: $1 | |
12901 Try \`$0 --help' for more information." >&2 | |
12902 { (exit 1); exit 1; }; } ;; | |
12903 | |
12904 *) ac_config_targets="$ac_config_targets $1" | |
12905 ac_need_defaults=false ;; | |
12906 | |
12907 esac | |
12908 shift | |
12909 done | |
12910 | |
12911 ac_configure_extra_args= | |
12912 | |
12913 if $ac_cs_silent; then | |
12914 exec 6>/dev/null | |
12915 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12916 fi | |
12917 | |
12918 _ACEOF | |
12919 cat >>$CONFIG_STATUS <<_ACEOF | |
12920 if \$ac_cs_recheck; then | |
12921 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
12922 CONFIG_SHELL=$SHELL | |
12923 export CONFIG_SHELL | |
12924 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
12925 fi | |
12926 | |
12927 _ACEOF | |
12928 cat >>$CONFIG_STATUS <<\_ACEOF | |
12929 exec 5>>config.log | |
12930 { | |
12931 echo | |
12932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12933 ## Running $as_me. ## | |
12934 _ASBOX | |
12935 echo "$ac_log" | |
12936 } >&5 | |
12937 | |
12938 _ACEOF | |
12939 cat >>$CONFIG_STATUS <<_ACEOF | |
12940 # | |
12941 # INIT-COMMANDS | |
12942 # | |
12943 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
12944 | |
12945 | |
12946 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
12947 # if CDPATH is set. | |
12948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12949 | |
12950 sed_quote_subst='$sed_quote_subst' | |
12951 double_quote_subst='$double_quote_subst' | |
12952 delay_variable_subst='$delay_variable_subst' | |
12953 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
12954 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
12955 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
12956 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
12957 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
12958 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
12959 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12960 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
12961 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12962 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
12963 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
12964 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
12965 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
12966 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
12967 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12968 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12969 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
12970 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
12971 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
12972 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
12973 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
12974 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
12975 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
12976 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
12977 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
12978 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
12979 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
12980 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12981 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
12982 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
12983 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
12984 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12985 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
12986 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
12987 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12988 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12989 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
12990 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
12991 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
12992 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
12993 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
12994 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
12995 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
12996 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"`' | |
12997 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"`' | |
12998 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
12999 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
13000 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
13001 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
13002 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13003 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
13004 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
13005 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13006 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
13007 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
13008 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
13009 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
13010 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
13011 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
13012 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
13013 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
13014 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13015 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13016 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
13017 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
13018 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13019 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13020 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
13021 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13022 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13023 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13024 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13025 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13026 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13027 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13028 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13029 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13030 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13031 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13032 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
13033 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
13034 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
13035 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
13036 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13037 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
13038 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13039 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
13040 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
13041 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
13042 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13043 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13044 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13045 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13046 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13047 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
13048 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
13049 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13050 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
13051 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13052 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13053 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13054 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13055 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13056 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13057 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13058 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13059 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13060 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
13061 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
13062 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13063 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13064 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
13065 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
13066 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
13067 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13068 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13069 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13070 | |
13071 LTCC='$LTCC' | |
13072 LTCFLAGS='$LTCFLAGS' | |
13073 compiler='$compiler_DEFAULT' | |
13074 | |
13075 # Quote evaled strings. | |
13076 for var in SED \ | |
13077 GREP \ | |
13078 EGREP \ | |
13079 FGREP \ | |
13080 LD \ | |
13081 NM \ | |
13082 LN_S \ | |
13083 lt_SP2NL \ | |
13084 lt_NL2SP \ | |
13085 reload_flag \ | |
13086 deplibs_check_method \ | |
13087 file_magic_cmd \ | |
13088 AR \ | |
13089 AR_FLAGS \ | |
13090 STRIP \ | |
13091 RANLIB \ | |
13092 CC \ | |
13093 CFLAGS \ | |
13094 compiler \ | |
13095 lt_cv_sys_global_symbol_pipe \ | |
13096 lt_cv_sys_global_symbol_to_cdecl \ | |
13097 lt_cv_sys_global_symbol_to_c_name_address \ | |
13098 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
13099 SHELL \ | |
13100 ECHO \ | |
13101 lt_prog_compiler_no_builtin_flag \ | |
13102 lt_prog_compiler_wl \ | |
13103 lt_prog_compiler_pic \ | |
13104 lt_prog_compiler_static \ | |
13105 lt_cv_prog_compiler_c_o \ | |
13106 need_locks \ | |
13107 DSYMUTIL \ | |
13108 NMEDIT \ | |
13109 LIPO \ | |
13110 OTOOL \ | |
13111 OTOOL64 \ | |
13112 shrext_cmds \ | |
13113 export_dynamic_flag_spec \ | |
13114 whole_archive_flag_spec \ | |
13115 compiler_needs_object \ | |
13116 with_gnu_ld \ | |
13117 allow_undefined_flag \ | |
13118 no_undefined_flag \ | |
13119 hardcode_libdir_flag_spec \ | |
13120 hardcode_libdir_flag_spec_ld \ | |
13121 hardcode_libdir_separator \ | |
13122 fix_srcfile_path \ | |
13123 exclude_expsyms \ | |
13124 include_expsyms \ | |
13125 file_list_spec \ | |
13126 variables_saved_for_relink \ | |
13127 libname_spec \ | |
13128 library_names_spec \ | |
13129 soname_spec \ | |
13130 finish_eval \ | |
13131 old_striplib \ | |
13132 striplib; do | |
13133 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13134 *[\\\\\\\`\\"\\\$]*) | |
13135 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13136 ;; | |
13137 *) | |
13138 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13139 ;; | |
13140 esac | |
13141 done | |
13142 | |
13143 # Double-quote double-evaled strings. | |
13144 for var in reload_cmds \ | |
13145 old_postinstall_cmds \ | |
13146 old_postuninstall_cmds \ | |
13147 old_archive_cmds \ | |
13148 extract_expsyms_cmds \ | |
13149 old_archive_from_new_cmds \ | |
13150 old_archive_from_expsyms_cmds \ | |
13151 archive_cmds \ | |
13152 archive_expsym_cmds \ | |
13153 module_cmds \ | |
13154 module_expsym_cmds \ | |
13155 export_symbols_cmds \ | |
13156 prelink_cmds \ | |
13157 postinstall_cmds \ | |
13158 postuninstall_cmds \ | |
13159 finish_cmds \ | |
13160 sys_lib_search_path_spec \ | |
13161 sys_lib_dlsearch_path_spec; do | |
13162 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13163 *[\\\\\\\`\\"\\\$]*) | |
13164 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
13165 ;; | |
13166 *) | |
13167 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13168 ;; | |
13169 esac | |
13170 done | |
13171 | |
13172 # Fix-up fallback echo if it was mangled by the above quoting rules. | |
13173 case \$lt_ECHO in | |
13174 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
13175 ;; | |
13176 esac | |
13177 | |
13178 ac_aux_dir='$ac_aux_dir' | |
13179 xsi_shell='$xsi_shell' | |
13180 lt_shell_append='$lt_shell_append' | |
13181 | |
13182 # See if we are running on zsh, and set the options which allow our | |
13183 # commands through without removal of \ escapes INIT. | |
13184 if test -n "\${ZSH_VERSION+set}" ; then | |
13185 setopt NO_GLOB_SUBST | |
13186 fi | |
13187 | |
13188 | |
13189 PACKAGE='$PACKAGE' | |
13190 VERSION='$VERSION' | |
13191 TIMESTAMP='$TIMESTAMP' | |
13192 RM='$RM' | |
13193 ofile='$ofile' | |
13194 | |
13195 | |
13196 | |
13197 | |
13198 _ACEOF | |
13199 | |
13200 cat >>$CONFIG_STATUS <<\_ACEOF | |
13201 | |
13202 # Handling of arguments. | |
13203 for ac_config_target in $ac_config_targets | |
13204 do | |
13205 case $ac_config_target in | |
13206 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
13207 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13208 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13209 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13210 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
13211 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; | |
13212 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; | |
13213 "lo/Makefile") CONFIG_FILES="$CONFIG_FILES lo/Makefile" ;; | |
13214 "lo/lo_endian.h") CONFIG_FILES="$CONFIG_FILES lo/lo_endian.h" ;; | |
13215 "liblo.pc") CONFIG_FILES="$CONFIG_FILES liblo.pc" ;; | |
13216 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
13217 "doc/reference.doxygen") CONFIG_FILES="$CONFIG_FILES doc/reference.doxygen" ;; | |
13218 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; | |
13219 | |
13220 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
13221 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
13222 { (exit 1); exit 1; }; };; | |
13223 esac | |
13224 done | |
13225 | |
13226 | |
13227 # If the user did not use the arguments to specify the items to instantiate, | |
13228 # then the envvar interface is used. Set only those that are not. | |
13229 # We use the long form for the default assignment because of an extremely | |
13230 # bizarre bug on SunOS 4.1.3. | |
13231 if $ac_need_defaults; then | |
13232 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13233 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13234 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13235 fi | |
13236 | |
13237 # Have a temporary directory for convenience. Make it in the build tree | |
13238 # simply because there is no reason against having it here, and in addition, | |
13239 # creating and moving files from /tmp can sometimes cause problems. | |
13240 # Hook for its removal unless debugging. | |
13241 # Note that there is a small window in which the directory will not be cleaned: | |
13242 # after its creation but before its name has been assigned to `$tmp'. | |
13243 $debug || | |
13244 { | |
13245 tmp= | |
13246 trap 'exit_status=$? | |
13247 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
13248 ' 0 | |
13249 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
13250 } | |
13251 # Create a (secure) tmp directory for tmp files. | |
13252 | |
13253 { | |
13254 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
13255 test -n "$tmp" && test -d "$tmp" | |
13256 } || | |
13257 { | |
13258 tmp=./conf$$-$RANDOM | |
13259 (umask 077 && mkdir "$tmp") | |
13260 } || | |
13261 { | |
13262 echo "$me: cannot create a temporary directory in ." >&2 | |
13263 { (exit 1); exit 1; } | |
13264 } | |
13265 | |
13266 # | |
13267 # Set up the sed scripts for CONFIG_FILES section. | |
13268 # | |
13269 | |
13270 # No need to generate the scripts if there are no CONFIG_FILES. | |
13271 # This happens for instance when ./config.status config.h | |
13272 if test -n "$CONFIG_FILES"; then | |
13273 | |
13274 _ACEOF | |
13275 | |
13276 | |
13277 | |
13278 ac_delim='%!_!# ' | |
13279 for ac_last_try in false false false false false :; do | |
13280 cat >conf$$subs.sed <<_ACEOF | |
13281 SHELL!$SHELL$ac_delim | |
13282 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
13283 PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
13284 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
13285 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
13286 PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
13287 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
13288 exec_prefix!$exec_prefix$ac_delim | |
13289 prefix!$prefix$ac_delim | |
13290 program_transform_name!$program_transform_name$ac_delim | |
13291 bindir!$bindir$ac_delim | |
13292 sbindir!$sbindir$ac_delim | |
13293 libexecdir!$libexecdir$ac_delim | |
13294 datarootdir!$datarootdir$ac_delim | |
13295 datadir!$datadir$ac_delim | |
13296 sysconfdir!$sysconfdir$ac_delim | |
13297 sharedstatedir!$sharedstatedir$ac_delim | |
13298 localstatedir!$localstatedir$ac_delim | |
13299 includedir!$includedir$ac_delim | |
13300 oldincludedir!$oldincludedir$ac_delim | |
13301 docdir!$docdir$ac_delim | |
13302 infodir!$infodir$ac_delim | |
13303 htmldir!$htmldir$ac_delim | |
13304 dvidir!$dvidir$ac_delim | |
13305 pdfdir!$pdfdir$ac_delim | |
13306 psdir!$psdir$ac_delim | |
13307 libdir!$libdir$ac_delim | |
13308 localedir!$localedir$ac_delim | |
13309 mandir!$mandir$ac_delim | |
13310 DEFS!$DEFS$ac_delim | |
13311 ECHO_C!$ECHO_C$ac_delim | |
13312 ECHO_N!$ECHO_N$ac_delim | |
13313 ECHO_T!$ECHO_T$ac_delim | |
13314 LIBS!$LIBS$ac_delim | |
13315 build_alias!$build_alias$ac_delim | |
13316 host_alias!$host_alias$ac_delim | |
13317 target_alias!$target_alias$ac_delim | |
13318 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
13319 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
13320 INSTALL_DATA!$INSTALL_DATA$ac_delim | |
13321 am__isrc!$am__isrc$ac_delim | |
13322 CYGPATH_W!$CYGPATH_W$ac_delim | |
13323 PACKAGE!$PACKAGE$ac_delim | |
13324 VERSION!$VERSION$ac_delim | |
13325 ACLOCAL!$ACLOCAL$ac_delim | |
13326 AUTOCONF!$AUTOCONF$ac_delim | |
13327 AUTOMAKE!$AUTOMAKE$ac_delim | |
13328 AUTOHEADER!$AUTOHEADER$ac_delim | |
13329 MAKEINFO!$MAKEINFO$ac_delim | |
13330 install_sh!$install_sh$ac_delim | |
13331 STRIP!$STRIP$ac_delim | |
13332 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
13333 mkdir_p!$mkdir_p$ac_delim | |
13334 AWK!$AWK$ac_delim | |
13335 SET_MAKE!$SET_MAKE$ac_delim | |
13336 am__leading_dot!$am__leading_dot$ac_delim | |
13337 AMTAR!$AMTAR$ac_delim | |
13338 am__tar!$am__tar$ac_delim | |
13339 am__untar!$am__untar$ac_delim | |
13340 LO_SO_VERSION!$LO_SO_VERSION$ac_delim | |
13341 CC!$CC$ac_delim | |
13342 CFLAGS!$CFLAGS$ac_delim | |
13343 LDFLAGS!$LDFLAGS$ac_delim | |
13344 CPPFLAGS!$CPPFLAGS$ac_delim | |
13345 ac_ct_CC!$ac_ct_CC$ac_delim | |
13346 EXEEXT!$EXEEXT$ac_delim | |
13347 OBJEXT!$OBJEXT$ac_delim | |
13348 DEPDIR!$DEPDIR$ac_delim | |
13349 am__include!$am__include$ac_delim | |
13350 am__quote!$am__quote$ac_delim | |
13351 AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
13352 AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
13353 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
13354 CCDEPMODE!$CCDEPMODE$ac_delim | |
13355 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
13356 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
13357 LIBTOOL!$LIBTOOL$ac_delim | |
13358 build!$build$ac_delim | |
13359 build_cpu!$build_cpu$ac_delim | |
13360 build_vendor!$build_vendor$ac_delim | |
13361 build_os!$build_os$ac_delim | |
13362 host!$host$ac_delim | |
13363 host_cpu!$host_cpu$ac_delim | |
13364 host_vendor!$host_vendor$ac_delim | |
13365 host_os!$host_os$ac_delim | |
13366 SED!$SED$ac_delim | |
13367 GREP!$GREP$ac_delim | |
13368 EGREP!$EGREP$ac_delim | |
13369 FGREP!$FGREP$ac_delim | |
13370 LD!$LD$ac_delim | |
13371 DUMPBIN!$DUMPBIN$ac_delim | |
13372 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim | |
13373 NM!$NM$ac_delim | |
13374 LN_S!$LN_S$ac_delim | |
13375 AR!$AR$ac_delim | |
13376 RANLIB!$RANLIB$ac_delim | |
13377 lt_ECHO!$lt_ECHO$ac_delim | |
13378 _ACEOF | |
13379 | |
13380 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
13381 break | |
13382 elif $ac_last_try; then | |
13383 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13384 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13385 { (exit 1); exit 1; }; } | |
13386 else | |
13387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13388 fi | |
13389 done | |
13390 | |
13391 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
13392 if test -n "$ac_eof"; then | |
13393 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
13394 ac_eof=`expr $ac_eof + 1` | |
13395 fi | |
13396 | |
13397 cat >>$CONFIG_STATUS <<_ACEOF | |
13398 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
13399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13400 _ACEOF | |
13401 sed ' | |
13402 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
13403 s/^/s,@/; s/!/@,|#_!!_#|/ | |
13404 :n | |
13405 t n | |
13406 s/'"$ac_delim"'$/,g/; t | |
13407 s/$/\\/; p | |
13408 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
13409 ' >>$CONFIG_STATUS <conf$$subs.sed | |
13410 rm -f conf$$subs.sed | |
13411 cat >>$CONFIG_STATUS <<_ACEOF | |
13412 CEOF$ac_eof | |
13413 _ACEOF | |
13414 | |
13415 | |
13416 ac_delim='%!_!# ' | |
13417 for ac_last_try in false false false false false :; do | |
13418 cat >conf$$subs.sed <<_ACEOF | |
13419 DSYMUTIL!$DSYMUTIL$ac_delim | |
13420 NMEDIT!$NMEDIT$ac_delim | |
13421 LIPO!$LIPO$ac_delim | |
13422 OTOOL!$OTOOL$ac_delim | |
13423 OTOOL64!$OTOOL64$ac_delim | |
13424 CPP!$CPP$ac_delim | |
13425 DOXYGEN!$DOXYGEN$ac_delim | |
13426 LO_BIGENDIAN!$LO_BIGENDIAN$ac_delim | |
13427 LIBOBJS!$LIBOBJS$ac_delim | |
13428 LTLIBOBJS!$LTLIBOBJS$ac_delim | |
13429 _ACEOF | |
13430 | |
13431 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then | |
13432 break | |
13433 elif $ac_last_try; then | |
13434 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13435 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13436 { (exit 1); exit 1; }; } | |
13437 else | |
13438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13439 fi | |
13440 done | |
13441 | |
13442 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
13443 if test -n "$ac_eof"; then | |
13444 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
13445 ac_eof=`expr $ac_eof + 1` | |
13446 fi | |
13447 | |
13448 cat >>$CONFIG_STATUS <<_ACEOF | |
13449 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
13450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
13451 _ACEOF | |
13452 sed ' | |
13453 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
13454 s/^/s,@/; s/!/@,|#_!!_#|/ | |
13455 :n | |
13456 t n | |
13457 s/'"$ac_delim"'$/,g/; t | |
13458 s/$/\\/; p | |
13459 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
13460 ' >>$CONFIG_STATUS <conf$$subs.sed | |
13461 rm -f conf$$subs.sed | |
13462 cat >>$CONFIG_STATUS <<_ACEOF | |
13463 :end | |
13464 s/|#_!!_#|//g | |
13465 CEOF$ac_eof | |
13466 _ACEOF | |
13467 | |
13468 | |
13469 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
13470 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13471 # trailing colons and then remove the whole line if VPATH becomes empty | |
13472 # (actually we leave an empty line to preserve line numbers). | |
13473 if test "x$srcdir" = x.; then | |
13474 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13475 s/:*\$(srcdir):*/:/ | |
13476 s/:*\${srcdir}:*/:/ | |
13477 s/:*@srcdir@:*/:/ | |
13478 s/^\([^=]*=[ ]*\):*/\1/ | |
13479 s/:*$// | |
13480 s/^[^=]*=[ ]*$// | |
13481 }' | |
13482 fi | |
13483 | |
13484 cat >>$CONFIG_STATUS <<\_ACEOF | |
13485 fi # test -n "$CONFIG_FILES" | |
13486 | |
13487 | |
13488 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
13489 do | |
13490 case $ac_tag in | |
13491 :[FHLC]) ac_mode=$ac_tag; continue;; | |
13492 esac | |
13493 case $ac_mode$ac_tag in | |
13494 :[FHL]*:*);; | |
13495 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
13496 echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
13497 { (exit 1); exit 1; }; };; | |
13498 :[FH]-) ac_tag=-:-;; | |
13499 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13500 esac | |
13501 ac_save_IFS=$IFS | |
13502 IFS=: | |
13503 set x $ac_tag | |
13504 IFS=$ac_save_IFS | |
13505 shift | |
13506 ac_file=$1 | |
13507 shift | |
13508 | |
13509 case $ac_mode in | |
13510 :L) ac_source=$1;; | |
13511 :[FH]) | |
13512 ac_file_inputs= | |
13513 for ac_f | |
13514 do | |
13515 case $ac_f in | |
13516 -) ac_f="$tmp/stdin";; | |
13517 *) # Look for the file first in the build tree, then in the source tree | |
13518 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13519 # because $ac_f cannot contain `:'. | |
13520 test -f "$ac_f" || | |
13521 case $ac_f in | |
13522 [\\/$]*) false;; | |
13523 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13524 esac || | |
13525 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
13526 echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
13527 { (exit 1); exit 1; }; };; | |
13528 esac | |
13529 ac_file_inputs="$ac_file_inputs $ac_f" | |
13530 done | |
13531 | |
13532 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13533 # use $as_me), people would be surprised to read: | |
13534 # /* config.h. Generated by config.status. */ | |
13535 configure_input="Generated from "`IFS=: | |
13536 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
13537 if test x"$ac_file" != x-; then | |
13538 configure_input="$ac_file. $configure_input" | |
13539 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
13540 echo "$as_me: creating $ac_file" >&6;} | |
13541 fi | |
13542 | |
13543 case $ac_tag in | |
13544 *:-:* | *:-) cat >"$tmp/stdin";; | |
13545 esac | |
13546 ;; | |
13547 esac | |
13548 | |
13549 ac_dir=`$as_dirname -- "$ac_file" || | |
13550 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13551 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13552 X"$ac_file" : 'X\(//\)$' \| \ | |
13553 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13554 echo X"$ac_file" | | |
13555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13556 s//\1/ | |
13557 q | |
13558 } | |
13559 /^X\(\/\/\)[^/].*/{ | |
13560 s//\1/ | |
13561 q | |
13562 } | |
13563 /^X\(\/\/\)$/{ | |
13564 s//\1/ | |
13565 q | |
13566 } | |
13567 /^X\(\/\).*/{ | |
13568 s//\1/ | |
13569 q | |
13570 } | |
13571 s/.*/./; q'` | |
13572 { as_dir="$ac_dir" | |
13573 case $as_dir in #( | |
13574 -*) as_dir=./$as_dir;; | |
13575 esac | |
13576 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
13577 as_dirs= | |
13578 while :; do | |
13579 case $as_dir in #( | |
13580 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
13581 *) as_qdir=$as_dir;; | |
13582 esac | |
13583 as_dirs="'$as_qdir' $as_dirs" | |
13584 as_dir=`$as_dirname -- "$as_dir" || | |
13585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13586 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13587 X"$as_dir" : 'X\(//\)$' \| \ | |
13588 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13589 echo X"$as_dir" | | |
13590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13591 s//\1/ | |
13592 q | |
13593 } | |
13594 /^X\(\/\/\)[^/].*/{ | |
13595 s//\1/ | |
13596 q | |
13597 } | |
13598 /^X\(\/\/\)$/{ | |
13599 s//\1/ | |
13600 q | |
13601 } | |
13602 /^X\(\/\).*/{ | |
13603 s//\1/ | |
13604 q | |
13605 } | |
13606 s/.*/./; q'` | |
13607 test -d "$as_dir" && break | |
13608 done | |
13609 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13610 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
13611 echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
13612 { (exit 1); exit 1; }; }; } | |
13613 ac_builddir=. | |
13614 | |
13615 case "$ac_dir" in | |
13616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13617 *) | |
13618 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
13619 # A ".." for each directory in $ac_dir_suffix. | |
13620 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
13621 case $ac_top_builddir_sub in | |
13622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13624 esac ;; | |
13625 esac | |
13626 ac_abs_top_builddir=$ac_pwd | |
13627 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13628 # for backward compatibility: | |
13629 ac_top_builddir=$ac_top_build_prefix | |
13630 | |
13631 case $srcdir in | |
13632 .) # We are building in place. | |
13633 ac_srcdir=. | |
13634 ac_top_srcdir=$ac_top_builddir_sub | |
13635 ac_abs_top_srcdir=$ac_pwd ;; | |
13636 [\\/]* | ?:[\\/]* ) # Absolute name. | |
13637 ac_srcdir=$srcdir$ac_dir_suffix; | |
13638 ac_top_srcdir=$srcdir | |
13639 ac_abs_top_srcdir=$srcdir ;; | |
13640 *) # Relative name. | |
13641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13642 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13644 esac | |
13645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
13646 | |
13647 | |
13648 case $ac_mode in | |
13649 :F) | |
13650 # | |
13651 # CONFIG_FILE | |
13652 # | |
13653 | |
13654 case $INSTALL in | |
13655 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13656 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13657 esac | |
13658 ac_MKDIR_P=$MKDIR_P | |
13659 case $MKDIR_P in | |
13660 [\\/$]* | ?:[\\/]* ) ;; | |
13661 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13662 esac | |
13663 _ACEOF | |
13664 | |
13665 cat >>$CONFIG_STATUS <<\_ACEOF | |
13666 # If the template does not know about datarootdir, expand it. | |
13667 # FIXME: This hack should be removed a few years after 2.60. | |
13668 ac_datarootdir_hack=; ac_datarootdir_seen= | |
13669 | |
13670 case `sed -n '/datarootdir/ { | |
13671 p | |
13672 q | |
13673 } | |
13674 /@datadir@/p | |
13675 /@docdir@/p | |
13676 /@infodir@/p | |
13677 /@localedir@/p | |
13678 /@mandir@/p | |
13679 ' $ac_file_inputs` in | |
13680 *datarootdir*) ac_datarootdir_seen=yes;; | |
13681 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13682 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13683 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
13684 _ACEOF | |
13685 cat >>$CONFIG_STATUS <<_ACEOF | |
13686 ac_datarootdir_hack=' | |
13687 s&@datadir@&$datadir&g | |
13688 s&@docdir@&$docdir&g | |
13689 s&@infodir@&$infodir&g | |
13690 s&@localedir@&$localedir&g | |
13691 s&@mandir@&$mandir&g | |
13692 s&\\\${datarootdir}&$datarootdir&g' ;; | |
13693 esac | |
13694 _ACEOF | |
13695 | |
13696 # Neutralize VPATH when `$srcdir' = `.'. | |
13697 # Shell code in configure.ac might set extrasub. | |
13698 # FIXME: do we really want to maintain this feature? | |
13699 cat >>$CONFIG_STATUS <<_ACEOF | |
13700 sed "$ac_vpsub | |
13701 $extrasub | |
13702 _ACEOF | |
13703 cat >>$CONFIG_STATUS <<\_ACEOF | |
13704 :t | |
13705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13706 s&@configure_input@&$configure_input&;t t | |
13707 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13708 s&@srcdir@&$ac_srcdir&;t t | |
13709 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13710 s&@top_srcdir@&$ac_top_srcdir&;t t | |
13711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13712 s&@builddir@&$ac_builddir&;t t | |
13713 s&@abs_builddir@&$ac_abs_builddir&;t t | |
13714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13715 s&@INSTALL@&$ac_INSTALL&;t t | |
13716 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13717 $ac_datarootdir_hack | |
13718 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
13719 | |
13720 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13721 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13722 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
13723 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13724 which seems to be undefined. Please make sure it is defined." >&5 | |
13725 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13726 which seems to be undefined. Please make sure it is defined." >&2;} | |
13727 | |
13728 rm -f "$tmp/stdin" | |
13729 case $ac_file in | |
13730 -) cat "$tmp/out"; rm -f "$tmp/out";; | |
13731 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
13732 esac | |
13733 ;; | |
13734 :H) | |
13735 # | |
13736 # CONFIG_HEADER | |
13737 # | |
13738 _ACEOF | |
13739 | |
13740 # Transform confdefs.h into a sed script `conftest.defines', that | |
13741 # substitutes the proper values into config.h.in to produce config.h. | |
13742 rm -f conftest.defines conftest.tail | |
13743 # First, append a space to every undef/define line, to ease matching. | |
13744 echo 's/$/ /' >conftest.defines | |
13745 # Then, protect against being on the right side of a sed subst, or in | |
13746 # an unquoted here document, in config.status. If some macros were | |
13747 # called several times there might be several #defines for the same | |
13748 # symbol, which is useless. But do not sort them, since the last | |
13749 # AC_DEFINE must be honored. | |
13750 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13751 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
13752 # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
13753 # PARAMS is the parameter list in the macro definition--in most cases, it's | |
13754 # just an empty string. | |
13755 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
13756 ac_dB='\\)[ (].*,\\1define\\2' | |
13757 ac_dC=' ' | |
13758 ac_dD=' ,' | |
13759 | |
13760 uniq confdefs.h | | |
13761 sed -n ' | |
13762 t rset | |
13763 :rset | |
13764 s/^[ ]*#[ ]*define[ ][ ]*// | |
13765 t ok | |
13766 d | |
13767 :ok | |
13768 s/[\\&,]/\\&/g | |
13769 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
13770 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
13771 ' >>conftest.defines | |
13772 | |
13773 # Remove the space that was appended to ease matching. | |
13774 # Then replace #undef with comments. This is necessary, for | |
13775 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13776 # on some systems where configure will not decide to define it. | |
13777 # (The regexp can be short, since the line contains either #define or #undef.) | |
13778 echo 's/ $// | |
13779 s,^[ #]*u.*,/* & */,' >>conftest.defines | |
13780 | |
13781 # Break up conftest.defines: | |
13782 ac_max_sed_lines=50 | |
13783 | |
13784 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
13785 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
13786 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
13787 # et cetera. | |
13788 ac_in='$ac_file_inputs' | |
13789 ac_out='"$tmp/out1"' | |
13790 ac_nxt='"$tmp/out2"' | |
13791 | |
13792 while : | |
13793 do | |
13794 # Write a here document: | |
13795 cat >>$CONFIG_STATUS <<_ACEOF | |
13796 # First, check the format of the line: | |
13797 cat >"\$tmp/defines.sed" <<\\CEOF | |
13798 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
13799 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
13800 b | |
13801 :def | |
13802 _ACEOF | |
13803 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
13804 echo 'CEOF | |
13805 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
13806 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
13807 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
13808 grep . conftest.tail >/dev/null || break | |
13809 rm -f conftest.defines | |
13810 mv conftest.tail conftest.defines | |
13811 done | |
13812 rm -f conftest.defines conftest.tail | |
13813 | |
13814 echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
13815 cat >>$CONFIG_STATUS <<\_ACEOF | |
13816 if test x"$ac_file" != x-; then | |
13817 echo "/* $configure_input */" >"$tmp/config.h" | |
13818 cat "$ac_result" >>"$tmp/config.h" | |
13819 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
13820 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13821 echo "$as_me: $ac_file is unchanged" >&6;} | |
13822 else | |
13823 rm -f $ac_file | |
13824 mv "$tmp/config.h" $ac_file | |
13825 fi | |
13826 else | |
13827 echo "/* $configure_input */" | |
13828 cat "$ac_result" | |
13829 fi | |
13830 rm -f "$tmp/out12" | |
13831 # Compute $ac_file's index in $config_headers. | |
13832 _am_arg=$ac_file | |
13833 _am_stamp_count=1 | |
13834 for _am_header in $config_headers :; do | |
13835 case $_am_header in | |
13836 $_am_arg | $_am_arg:* ) | |
13837 break ;; | |
13838 * ) | |
13839 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13840 esac | |
13841 done | |
13842 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
13843 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13844 X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13845 X"$_am_arg" : 'X\(//\)$' \| \ | |
13846 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13847 echo X"$_am_arg" | | |
13848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13849 s//\1/ | |
13850 q | |
13851 } | |
13852 /^X\(\/\/\)[^/].*/{ | |
13853 s//\1/ | |
13854 q | |
13855 } | |
13856 /^X\(\/\/\)$/{ | |
13857 s//\1/ | |
13858 q | |
13859 } | |
13860 /^X\(\/\).*/{ | |
13861 s//\1/ | |
13862 q | |
13863 } | |
13864 s/.*/./; q'`/stamp-h$_am_stamp_count | |
13865 ;; | |
13866 | |
13867 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
13868 echo "$as_me: executing $ac_file commands" >&6;} | |
13869 ;; | |
13870 esac | |
13871 | |
13872 | |
13873 case $ac_file$ac_mode in | |
13874 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
13875 # Strip MF so we end up with the name of the file. | |
13876 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13877 # Check whether this is an Automake generated Makefile or not. | |
13878 # We used to match only the files named `Makefile.in', but | |
13879 # some people rename them; so instead we look at the file content. | |
13880 # Grep'ing the first line is not enough: some people post-process | |
13881 # each Makefile.in and add a new line on top of each file to say so. | |
13882 # Grep'ing the whole file is not good either: AIX grep has a line | |
13883 # limit of 2048, but all sed's we know have understand at least 4000. | |
13884 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13885 dirpart=`$as_dirname -- "$mf" || | |
13886 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13887 X"$mf" : 'X\(//\)[^/]' \| \ | |
13888 X"$mf" : 'X\(//\)$' \| \ | |
13889 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13890 echo X"$mf" | | |
13891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13892 s//\1/ | |
13893 q | |
13894 } | |
13895 /^X\(\/\/\)[^/].*/{ | |
13896 s//\1/ | |
13897 q | |
13898 } | |
13899 /^X\(\/\/\)$/{ | |
13900 s//\1/ | |
13901 q | |
13902 } | |
13903 /^X\(\/\).*/{ | |
13904 s//\1/ | |
13905 q | |
13906 } | |
13907 s/.*/./; q'` | |
13908 else | |
13909 continue | |
13910 fi | |
13911 # Extract the definition of DEPDIR, am__include, and am__quote | |
13912 # from the Makefile without running `make'. | |
13913 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
13914 test -z "$DEPDIR" && continue | |
13915 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
13916 test -z "am__include" && continue | |
13917 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13918 # When using ansi2knr, U may be empty or an underscore; expand it | |
13919 U=`sed -n 's/^U = //p' < "$mf"` | |
13920 # Find all dependency output files, they are included files with | |
13921 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13922 # simplest approach to changing $(DEPDIR) to its actual value in the | |
13923 # expansion. | |
13924 for file in `sed -n " | |
13925 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13926 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
13927 # Make sure the directory exists. | |
13928 test -f "$dirpart/$file" && continue | |
13929 fdir=`$as_dirname -- "$file" || | |
13930 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13931 X"$file" : 'X\(//\)[^/]' \| \ | |
13932 X"$file" : 'X\(//\)$' \| \ | |
13933 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13934 echo X"$file" | | |
13935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13936 s//\1/ | |
13937 q | |
13938 } | |
13939 /^X\(\/\/\)[^/].*/{ | |
13940 s//\1/ | |
13941 q | |
13942 } | |
13943 /^X\(\/\/\)$/{ | |
13944 s//\1/ | |
13945 q | |
13946 } | |
13947 /^X\(\/\).*/{ | |
13948 s//\1/ | |
13949 q | |
13950 } | |
13951 s/.*/./; q'` | |
13952 { as_dir=$dirpart/$fdir | |
13953 case $as_dir in #( | |
13954 -*) as_dir=./$as_dir;; | |
13955 esac | |
13956 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
13957 as_dirs= | |
13958 while :; do | |
13959 case $as_dir in #( | |
13960 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
13961 *) as_qdir=$as_dir;; | |
13962 esac | |
13963 as_dirs="'$as_qdir' $as_dirs" | |
13964 as_dir=`$as_dirname -- "$as_dir" || | |
13965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13966 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13967 X"$as_dir" : 'X\(//\)$' \| \ | |
13968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13969 echo X"$as_dir" | | |
13970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13971 s//\1/ | |
13972 q | |
13973 } | |
13974 /^X\(\/\/\)[^/].*/{ | |
13975 s//\1/ | |
13976 q | |
13977 } | |
13978 /^X\(\/\/\)$/{ | |
13979 s//\1/ | |
13980 q | |
13981 } | |
13982 /^X\(\/\).*/{ | |
13983 s//\1/ | |
13984 q | |
13985 } | |
13986 s/.*/./; q'` | |
13987 test -d "$as_dir" && break | |
13988 done | |
13989 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13990 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
13991 echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
13992 { (exit 1); exit 1; }; }; } | |
13993 # echo "creating $dirpart/$file" | |
13994 echo '# dummy' > "$dirpart/$file" | |
13995 done | |
13996 done | |
13997 ;; | |
13998 "libtool":C) | |
13999 | |
14000 # See if we are running on zsh, and set the options which allow our | |
14001 # commands through without removal of \ escapes. | |
14002 if test -n "${ZSH_VERSION+set}" ; then | |
14003 setopt NO_GLOB_SUBST | |
14004 fi | |
14005 | |
14006 cfgfile="${ofile}T" | |
14007 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14008 $RM "$cfgfile" | |
14009 | |
14010 cat <<_LT_EOF >> "$cfgfile" | |
14011 #! $SHELL | |
14012 | |
14013 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
14014 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
14015 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14016 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
14017 # | |
14018 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
14019 # 2006, 2007, 2008 Free Software Foundation, Inc. | |
14020 # Written by Gordon Matzigkeit, 1996 | |
14021 # | |
14022 # This file is part of GNU Libtool. | |
14023 # | |
14024 # GNU Libtool is free software; you can redistribute it and/or | |
14025 # modify it under the terms of the GNU General Public License as | |
14026 # published by the Free Software Foundation; either version 2 of | |
14027 # the License, or (at your option) any later version. | |
14028 # | |
14029 # As a special exception to the GNU General Public License, | |
14030 # if you distribute this file as part of a program or library that | |
14031 # is built using GNU Libtool, you may include this file under the | |
14032 # same distribution terms that you use for the rest of that program. | |
14033 # | |
14034 # GNU Libtool is distributed in the hope that it will be useful, | |
14035 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14036 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14037 # GNU General Public License for more details. | |
14038 # | |
14039 # You should have received a copy of the GNU General Public License | |
14040 # along with GNU Libtool; see the file COPYING. If not, a copy | |
14041 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
14042 # obtained by writing to the Free Software Foundation, Inc., | |
14043 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
14044 | |
14045 | |
14046 # The names of the tagged configurations supported by this script. | |
14047 available_tags="" | |
14048 | |
14049 # ### BEGIN LIBTOOL CONFIG | |
14050 | |
14051 # Whether or not to build static libraries. | |
14052 build_old_libs=$enable_static | |
14053 | |
14054 # Whether or not to build shared libraries. | |
14055 build_libtool_libs=$enable_shared | |
14056 | |
14057 # Which release of libtool.m4 was used? | |
14058 macro_version=$macro_version | |
14059 macro_revision=$macro_revision | |
14060 | |
14061 # What type of objects to build. | |
14062 pic_mode=$pic_mode | |
14063 | |
14064 # Whether or not to optimize for fast installation. | |
14065 fast_install=$enable_fast_install | |
14066 | |
14067 # The host system. | |
14068 host_alias=$host_alias | |
14069 host=$host | |
14070 host_os=$host_os | |
14071 | |
14072 # The build system. | |
14073 build_alias=$build_alias | |
14074 build=$build | |
14075 build_os=$build_os | |
14076 | |
14077 # A sed program that does not truncate output. | |
14078 SED=$lt_SED | |
14079 | |
14080 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
14081 Xsed="\$SED -e 1s/^X//" | |
14082 | |
14083 # A grep program that handles long lines. | |
14084 GREP=$lt_GREP | |
14085 | |
14086 # An ERE matcher. | |
14087 EGREP=$lt_EGREP | |
14088 | |
14089 # A literal string matcher. | |
14090 FGREP=$lt_FGREP | |
14091 | |
14092 # A BSD- or MS-compatible name lister. | |
14093 NM=$lt_NM | |
14094 | |
14095 # Whether we need soft or hard links. | |
14096 LN_S=$lt_LN_S | |
14097 | |
14098 # What is the maximum length of a command? | |
14099 max_cmd_len=$max_cmd_len | |
14100 | |
14101 # Object file suffix (normally "o"). | |
14102 objext=$ac_objext | |
14103 | |
14104 # Executable file suffix (normally ""). | |
14105 exeext=$exeext | |
14106 | |
14107 # whether the shell understands "unset". | |
14108 lt_unset=$lt_unset | |
14109 | |
14110 # turn spaces into newlines. | |
14111 SP2NL=$lt_lt_SP2NL | |
14112 | |
14113 # turn newlines into spaces. | |
14114 NL2SP=$lt_lt_NL2SP | |
14115 | |
14116 # How to create reloadable object files. | |
14117 reload_flag=$lt_reload_flag | |
14118 reload_cmds=$lt_reload_cmds | |
14119 | |
14120 # Method to check whether dependent libraries are shared objects. | |
14121 deplibs_check_method=$lt_deplibs_check_method | |
14122 | |
14123 # Command to use when deplibs_check_method == "file_magic". | |
14124 file_magic_cmd=$lt_file_magic_cmd | |
14125 | |
14126 # The archiver. | |
14127 AR=$lt_AR | |
14128 AR_FLAGS=$lt_AR_FLAGS | |
14129 | |
14130 # A symbol stripping program. | |
14131 STRIP=$lt_STRIP | |
14132 | |
14133 # Commands used to install an old-style archive. | |
14134 RANLIB=$lt_RANLIB | |
14135 old_postinstall_cmds=$lt_old_postinstall_cmds | |
14136 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14137 | |
14138 # A C compiler. | |
14139 LTCC=$lt_CC | |
14140 | |
14141 # LTCC compiler flags. | |
14142 LTCFLAGS=$lt_CFLAGS | |
14143 | |
14144 # Take the output of nm and produce a listing of raw symbols and C names. | |
14145 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14146 | |
14147 # Transform the output of nm in a proper C declaration. | |
14148 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14149 | |
14150 # Transform the output of nm in a C name address pair. | |
14151 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14152 | |
14153 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
14154 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
14155 | |
14156 # The name of the directory that contains temporary libtool files. | |
14157 objdir=$objdir | |
14158 | |
14159 # Shell to use when invoking shell scripts. | |
14160 SHELL=$lt_SHELL | |
14161 | |
14162 # An echo program that does not interpret backslashes. | |
14163 ECHO=$lt_ECHO | |
14164 | |
14165 # Used to examine libraries when file_magic_cmd begins with "file". | |
14166 MAGIC_CMD=$MAGIC_CMD | |
14167 | |
14168 # Must we lock files when doing compilation? | |
14169 need_locks=$lt_need_locks | |
14170 | |
14171 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
14172 DSYMUTIL=$lt_DSYMUTIL | |
14173 | |
14174 # Tool to change global to local symbols on Mac OS X. | |
14175 NMEDIT=$lt_NMEDIT | |
14176 | |
14177 # Tool to manipulate fat objects and archives on Mac OS X. | |
14178 LIPO=$lt_LIPO | |
14179 | |
14180 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
14181 OTOOL=$lt_OTOOL | |
14182 | |
14183 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
14184 OTOOL64=$lt_OTOOL64 | |
14185 | |
14186 # Old archive suffix (normally "a"). | |
14187 libext=$libext | |
14188 | |
14189 # Shared library suffix (normally ".so"). | |
14190 shrext_cmds=$lt_shrext_cmds | |
14191 | |
14192 # The commands to extract the exported symbol list from a shared archive. | |
14193 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14194 | |
14195 # Variables whose values should be saved in libtool wrapper scripts and | |
14196 # restored at link time. | |
14197 variables_saved_for_relink=$lt_variables_saved_for_relink | |
14198 | |
14199 # Do we need the "lib" prefix for modules? | |
14200 need_lib_prefix=$need_lib_prefix | |
14201 | |
14202 # Do we need a version for libraries? | |
14203 need_version=$need_version | |
14204 | |
14205 # Library versioning type. | |
14206 version_type=$version_type | |
14207 | |
14208 # Shared library runtime path variable. | |
14209 runpath_var=$runpath_var | |
14210 | |
14211 # Shared library path variable. | |
14212 shlibpath_var=$shlibpath_var | |
14213 | |
14214 # Is shlibpath searched before the hard-coded library search path? | |
14215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14216 | |
14217 # Format of library name prefix. | |
14218 libname_spec=$lt_libname_spec | |
14219 | |
14220 # List of archive names. First name is the real one, the rest are links. | |
14221 # The last name is the one that the linker finds with -lNAME | |
14222 library_names_spec=$lt_library_names_spec | |
14223 | |
14224 # The coded name of the library, if different from the real name. | |
14225 soname_spec=$lt_soname_spec | |
14226 | |
14227 # Command to use after installation of a shared archive. | |
14228 postinstall_cmds=$lt_postinstall_cmds | |
14229 | |
14230 # Command to use after uninstallation of a shared archive. | |
14231 postuninstall_cmds=$lt_postuninstall_cmds | |
14232 | |
14233 # Commands used to finish a libtool library installation in a directory. | |
14234 finish_cmds=$lt_finish_cmds | |
14235 | |
14236 # As "finish_cmds", except a single script fragment to be evaled but | |
14237 # not shown. | |
14238 finish_eval=$lt_finish_eval | |
14239 | |
14240 # Whether we should hardcode library paths into libraries. | |
14241 hardcode_into_libs=$hardcode_into_libs | |
14242 | |
14243 # Compile-time system search path for libraries. | |
14244 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14245 | |
14246 # Run-time system search path for libraries. | |
14247 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14248 | |
14249 # Whether dlopen is supported. | |
14250 dlopen_support=$enable_dlopen | |
14251 | |
14252 # Whether dlopen of programs is supported. | |
14253 dlopen_self=$enable_dlopen_self | |
14254 | |
14255 # Whether dlopen of statically linked programs is supported. | |
14256 dlopen_self_static=$enable_dlopen_self_static | |
14257 | |
14258 # Commands to strip libraries. | |
14259 old_striplib=$lt_old_striplib | |
14260 striplib=$lt_striplib | |
14261 | |
14262 | |
14263 # The linker used to build libraries. | |
14264 LD=$lt_LD | |
14265 | |
14266 # Commands used to build an old-style archive. | |
14267 old_archive_cmds=$lt_old_archive_cmds | |
14268 | |
14269 # A language specific compiler. | |
14270 CC=$lt_compiler | |
14271 | |
14272 # Is the compiler the GNU compiler? | |
14273 with_gcc=$GCC | |
14274 | |
14275 # Compiler flag to turn off builtin functions. | |
14276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
14277 | |
14278 # How to pass a linker flag through the compiler. | |
14279 wl=$lt_lt_prog_compiler_wl | |
14280 | |
14281 # Additional compiler flags for building library objects. | |
14282 pic_flag=$lt_lt_prog_compiler_pic | |
14283 | |
14284 # Compiler flag to prevent dynamic linking. | |
14285 link_static_flag=$lt_lt_prog_compiler_static | |
14286 | |
14287 # Does compiler simultaneously support -c and -o options? | |
14288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14289 | |
14290 # Whether or not to add -lc for building shared libraries. | |
14291 build_libtool_need_lc=$archive_cmds_need_lc | |
14292 | |
14293 # Whether or not to disallow shared libs when runtime libs are static. | |
14294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14295 | |
14296 # Compiler flag to allow reflexive dlopens. | |
14297 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
14298 | |
14299 # Compiler flag to generate shared objects directly from archives. | |
14300 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
14301 | |
14302 # Whether the compiler copes with passing no objects directly. | |
14303 compiler_needs_object=$lt_compiler_needs_object | |
14304 | |
14305 # Create an old-style archive from a shared archive. | |
14306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
14307 | |
14308 # Create a temporary old-style archive to link instead of a shared archive. | |
14309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
14310 | |
14311 # Commands used to build a shared archive. | |
14312 archive_cmds=$lt_archive_cmds | |
14313 archive_expsym_cmds=$lt_archive_expsym_cmds | |
14314 | |
14315 # Commands used to build a loadable module if different from building | |
14316 # a shared archive. | |
14317 module_cmds=$lt_module_cmds | |
14318 module_expsym_cmds=$lt_module_expsym_cmds | |
14319 | |
14320 # Whether we are building with GNU ld or not. | |
14321 with_gnu_ld=$lt_with_gnu_ld | |
14322 | |
14323 # Flag that allows shared libraries with undefined symbols to be built. | |
14324 allow_undefined_flag=$lt_allow_undefined_flag | |
14325 | |
14326 # Flag that enforces no undefined symbols. | |
14327 no_undefined_flag=$lt_no_undefined_flag | |
14328 | |
14329 # Flag to hardcode \$libdir into a binary during linking. | |
14330 # This must work even if \$libdir does not exist | |
14331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
14332 | |
14333 # If ld is used when linking, flag to hardcode \$libdir into a binary | |
14334 # during linking. This must work even if \$libdir does not exist. | |
14335 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
14336 | |
14337 # Whether we need a single "-rpath" flag with a separated argument. | |
14338 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
14339 | |
14340 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14341 # DIR into the resulting binary. | |
14342 hardcode_direct=$hardcode_direct | |
14343 | |
14344 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14345 # DIR into the resulting binary and the resulting library dependency is | |
14346 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
14347 # library is relocated. | |
14348 hardcode_direct_absolute=$hardcode_direct_absolute | |
14349 | |
14350 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
14351 # into the resulting binary. | |
14352 hardcode_minus_L=$hardcode_minus_L | |
14353 | |
14354 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
14355 # into the resulting binary. | |
14356 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
14357 | |
14358 # Set to "yes" if building a shared library automatically hardcodes DIR | |
14359 # into the library and all subsequent libraries and executables linked | |
14360 # against it. | |
14361 hardcode_automatic=$hardcode_automatic | |
14362 | |
14363 # Set to yes if linker adds runtime paths of dependent libraries | |
14364 # to runtime path list. | |
14365 inherit_rpath=$inherit_rpath | |
14366 | |
14367 # Whether libtool must link a program against all its dependency libraries. | |
14368 link_all_deplibs=$link_all_deplibs | |
14369 | |
14370 # Fix the shell variable \$srcfile for the compiler. | |
14371 fix_srcfile_path=$lt_fix_srcfile_path | |
14372 | |
14373 # Set to "yes" if exported symbols are required. | |
14374 always_export_symbols=$always_export_symbols | |
14375 | |
14376 # The commands to list exported symbols. | |
14377 export_symbols_cmds=$lt_export_symbols_cmds | |
14378 | |
14379 # Symbols that should not be listed in the preloaded symbols. | |
14380 exclude_expsyms=$lt_exclude_expsyms | |
14381 | |
14382 # Symbols that must always be exported. | |
14383 include_expsyms=$lt_include_expsyms | |
14384 | |
14385 # Commands necessary for linking programs (against libraries) with templates. | |
14386 prelink_cmds=$lt_prelink_cmds | |
14387 | |
14388 # Specify filename containing input files. | |
14389 file_list_spec=$lt_file_list_spec | |
14390 | |
14391 # How to hardcode a shared library path into an executable. | |
14392 hardcode_action=$hardcode_action | |
14393 | |
14394 # ### END LIBTOOL CONFIG | |
14395 | |
14396 _LT_EOF | |
14397 | |
14398 case $host_os in | |
14399 aix3*) | |
14400 cat <<\_LT_EOF >> "$cfgfile" | |
14401 # AIX sometimes has problems with the GCC collect2 program. For some | |
14402 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14403 # vanish in a puff of smoke. | |
14404 if test "X${COLLECT_NAMES+set}" != Xset; then | |
14405 COLLECT_NAMES= | |
14406 export COLLECT_NAMES | |
14407 fi | |
14408 _LT_EOF | |
14409 ;; | |
14410 esac | |
14411 | |
14412 | |
14413 ltmain="$ac_aux_dir/ltmain.sh" | |
14414 | |
14415 | |
14416 # We use sed instead of cat because bash on DJGPP gets confused if | |
14417 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14418 # text mode, it properly converts lines to CR/LF. This bash problem | |
14419 # is reportedly fixed, but why not run on old versions too? | |
14420 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
14421 || (rm -f "$cfgfile"; exit 1) | |
14422 | |
14423 case $xsi_shell in | |
14424 yes) | |
14425 cat << \_LT_EOF >> "$cfgfile" | |
14426 | |
14427 # func_dirname file append nondir_replacement | |
14428 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14429 # otherwise set result to NONDIR_REPLACEMENT. | |
14430 func_dirname () | |
14431 { | |
14432 case ${1} in | |
14433 */*) func_dirname_result="${1%/*}${2}" ;; | |
14434 * ) func_dirname_result="${3}" ;; | |
14435 esac | |
14436 } | |
14437 | |
14438 # func_basename file | |
14439 func_basename () | |
14440 { | |
14441 func_basename_result="${1##*/}" | |
14442 } | |
14443 | |
14444 # func_dirname_and_basename file append nondir_replacement | |
14445 # perform func_basename and func_dirname in a single function | |
14446 # call: | |
14447 # dirname: Compute the dirname of FILE. If nonempty, | |
14448 # add APPEND to the result, otherwise set result | |
14449 # to NONDIR_REPLACEMENT. | |
14450 # value returned in "$func_dirname_result" | |
14451 # basename: Compute filename of FILE. | |
14452 # value retuned in "$func_basename_result" | |
14453 # Implementation must be kept synchronized with func_dirname | |
14454 # and func_basename. For efficiency, we do not delegate to | |
14455 # those functions but instead duplicate the functionality here. | |
14456 func_dirname_and_basename () | |
14457 { | |
14458 case ${1} in | |
14459 */*) func_dirname_result="${1%/*}${2}" ;; | |
14460 * ) func_dirname_result="${3}" ;; | |
14461 esac | |
14462 func_basename_result="${1##*/}" | |
14463 } | |
14464 | |
14465 # func_stripname prefix suffix name | |
14466 # strip PREFIX and SUFFIX off of NAME. | |
14467 # PREFIX and SUFFIX must not contain globbing or regex special | |
14468 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14469 # dot (in which case that matches only a dot). | |
14470 func_stripname () | |
14471 { | |
14472 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
14473 # positional parameters, so assign one to ordinary parameter first. | |
14474 func_stripname_result=${3} | |
14475 func_stripname_result=${func_stripname_result#"${1}"} | |
14476 func_stripname_result=${func_stripname_result%"${2}"} | |
14477 } | |
14478 | |
14479 # func_opt_split | |
14480 func_opt_split () | |
14481 { | |
14482 func_opt_split_opt=${1%%=*} | |
14483 func_opt_split_arg=${1#*=} | |
14484 } | |
14485 | |
14486 # func_lo2o object | |
14487 func_lo2o () | |
14488 { | |
14489 case ${1} in | |
14490 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
14491 *) func_lo2o_result=${1} ;; | |
14492 esac | |
14493 } | |
14494 | |
14495 # func_xform libobj-or-source | |
14496 func_xform () | |
14497 { | |
14498 func_xform_result=${1%.*}.lo | |
14499 } | |
14500 | |
14501 # func_arith arithmetic-term... | |
14502 func_arith () | |
14503 { | |
14504 func_arith_result=$(( $* )) | |
14505 } | |
14506 | |
14507 # func_len string | |
14508 # STRING may not start with a hyphen. | |
14509 func_len () | |
14510 { | |
14511 func_len_result=${#1} | |
14512 } | |
14513 | |
14514 _LT_EOF | |
14515 ;; | |
14516 *) # Bourne compatible functions. | |
14517 cat << \_LT_EOF >> "$cfgfile" | |
14518 | |
14519 # func_dirname file append nondir_replacement | |
14520 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14521 # otherwise set result to NONDIR_REPLACEMENT. | |
14522 func_dirname () | |
14523 { | |
14524 # Extract subdirectory from the argument. | |
14525 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
14526 if test "X$func_dirname_result" = "X${1}"; then | |
14527 func_dirname_result="${3}" | |
14528 else | |
14529 func_dirname_result="$func_dirname_result${2}" | |
14530 fi | |
14531 } | |
14532 | |
14533 # func_basename file | |
14534 func_basename () | |
14535 { | |
14536 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
14537 } | |
14538 | |
14539 | |
14540 # func_stripname prefix suffix name | |
14541 # strip PREFIX and SUFFIX off of NAME. | |
14542 # PREFIX and SUFFIX must not contain globbing or regex special | |
14543 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14544 # dot (in which case that matches only a dot). | |
14545 # func_strip_suffix prefix name | |
14546 func_stripname () | |
14547 { | |
14548 case ${2} in | |
14549 .*) func_stripname_result=`$ECHO "X${3}" \ | |
14550 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
14551 *) func_stripname_result=`$ECHO "X${3}" \ | |
14552 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
14553 esac | |
14554 } | |
14555 | |
14556 # sed scripts: | |
14557 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
14558 my_sed_long_arg='1s/^-[^=]*=//' | |
14559 | |
14560 # func_opt_split | |
14561 func_opt_split () | |
14562 { | |
14563 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
14564 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
14565 } | |
14566 | |
14567 # func_lo2o object | |
14568 func_lo2o () | |
14569 { | |
14570 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
14571 } | |
14572 | |
14573 # func_xform libobj-or-source | |
14574 func_xform () | |
14575 { | |
14576 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
14577 } | |
14578 | |
14579 # func_arith arithmetic-term... | |
14580 func_arith () | |
14581 { | |
14582 func_arith_result=`expr "$@"` | |
14583 } | |
14584 | |
14585 # func_len string | |
14586 # STRING may not start with a hyphen. | |
14587 func_len () | |
14588 { | |
14589 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
14590 } | |
14591 | |
14592 _LT_EOF | |
14593 esac | |
14594 | |
14595 case $lt_shell_append in | |
14596 yes) | |
14597 cat << \_LT_EOF >> "$cfgfile" | |
14598 | |
14599 # func_append var value | |
14600 # Append VALUE to the end of shell variable VAR. | |
14601 func_append () | |
14602 { | |
14603 eval "$1+=\$2" | |
14604 } | |
14605 _LT_EOF | |
14606 ;; | |
14607 *) | |
14608 cat << \_LT_EOF >> "$cfgfile" | |
14609 | |
14610 # func_append var value | |
14611 # Append VALUE to the end of shell variable VAR. | |
14612 func_append () | |
14613 { | |
14614 eval "$1=\$$1\$2" | |
14615 } | |
14616 | |
14617 _LT_EOF | |
14618 ;; | |
14619 esac | |
14620 | |
14621 | |
14622 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
14623 || (rm -f "$cfgfile"; exit 1) | |
14624 | |
14625 mv -f "$cfgfile" "$ofile" || | |
14626 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14627 chmod +x "$ofile" | |
14628 | |
14629 ;; | |
14630 | |
14631 esac | |
14632 done # for ac_tag | |
14633 | |
14634 | |
14635 { (exit 0); exit 0; } | |
14636 _ACEOF | |
14637 chmod +x $CONFIG_STATUS | |
14638 ac_clean_files=$ac_clean_files_save | |
14639 | |
14640 | |
14641 # configure is writing to config.log, and then calls config.status. | |
14642 # config.status does its own redirection, appending to config.log. | |
14643 # Unfortunately, on DOS this fails, as config.log is still kept open | |
14644 # by configure, so config.status won't be able to write to it; its | |
14645 # output is simply discarded. So we exec the FD to /dev/null, | |
14646 # effectively closing config.log, so it can be properly (re)opened and | |
14647 # appended to by config.status. When coming back to configure, we | |
14648 # need to make the FD available again. | |
14649 if test "$no_create" != yes; then | |
14650 ac_cs_success=: | |
14651 ac_config_status_args= | |
14652 test "$silent" = yes && | |
14653 ac_config_status_args="$ac_config_status_args --quiet" | |
14654 exec 5>/dev/null | |
14655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14656 exec 5>>config.log | |
14657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14658 # would make configure fail if this is the last instruction. | |
14659 $ac_cs_success || { (exit 1); exit 1; } | |
14660 fi | |
14661 |