1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.61 for OGRE 1.4.5. |
---|
4 | # |
---|
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | ## --------------------- ## |
---|
10 | ## M4sh Initialization. ## |
---|
11 | ## --------------------- ## |
---|
12 | |
---|
13 | # Be more Bourne compatible |
---|
14 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
16 | emulate sh |
---|
17 | NULLCMD=: |
---|
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
19 | # is contrary to our usage. Disable this feature. |
---|
20 | alias -g '${1+"$@"}'='"$@"' |
---|
21 | setopt NO_GLOB_SUBST |
---|
22 | else |
---|
23 | case `(set -o) 2>/dev/null` in |
---|
24 | *posix*) set -o posix ;; |
---|
25 | esac |
---|
26 | |
---|
27 | fi |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | # PATH needs CR |
---|
33 | # Avoid depending upon Character Ranges. |
---|
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
37 | as_cr_digits='0123456789' |
---|
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
39 | |
---|
40 | # The user is always right. |
---|
41 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
42 | echo "#! /bin/sh" >conf$$.sh |
---|
43 | echo "exit 0" >>conf$$.sh |
---|
44 | chmod +x conf$$.sh |
---|
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
46 | PATH_SEPARATOR=';' |
---|
47 | else |
---|
48 | PATH_SEPARATOR=: |
---|
49 | fi |
---|
50 | rm -f conf$$.sh |
---|
51 | fi |
---|
52 | |
---|
53 | # Support unset when possible. |
---|
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
55 | as_unset=unset |
---|
56 | else |
---|
57 | as_unset=false |
---|
58 | fi |
---|
59 | |
---|
60 | |
---|
61 | # IFS |
---|
62 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
63 | # there to prevent editors from complaining about space-tab. |
---|
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
65 | # splitting by setting IFS to empty value.) |
---|
66 | as_nl=' |
---|
67 | ' |
---|
68 | IFS=" "" $as_nl" |
---|
69 | |
---|
70 | # Find who we are. Look in the path if we contain no directory separator. |
---|
71 | case $0 in |
---|
72 | *[\\/]* ) as_myself=$0 ;; |
---|
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
74 | for as_dir in $PATH |
---|
75 | do |
---|
76 | IFS=$as_save_IFS |
---|
77 | test -z "$as_dir" && as_dir=. |
---|
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
79 | done |
---|
80 | IFS=$as_save_IFS |
---|
81 | |
---|
82 | ;; |
---|
83 | esac |
---|
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
85 | # in which case we are not to be found in the path. |
---|
86 | if test "x$as_myself" = x; then |
---|
87 | as_myself=$0 |
---|
88 | fi |
---|
89 | if test ! -f "$as_myself"; then |
---|
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
91 | { (exit 1); exit 1; } |
---|
92 | fi |
---|
93 | |
---|
94 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
95 | for as_var in ENV MAIL MAILPATH |
---|
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
97 | done |
---|
98 | PS1='$ ' |
---|
99 | PS2='> ' |
---|
100 | PS4='+ ' |
---|
101 | |
---|
102 | # NLS nuisances. |
---|
103 | for as_var in \ |
---|
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
106 | LC_TELEPHONE LC_TIME |
---|
107 | do |
---|
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
109 | eval $as_var=C; export $as_var |
---|
110 | else |
---|
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
112 | fi |
---|
113 | done |
---|
114 | |
---|
115 | # Required to use basename. |
---|
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
118 | as_expr=expr |
---|
119 | else |
---|
120 | as_expr=false |
---|
121 | fi |
---|
122 | |
---|
123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
124 | as_basename=basename |
---|
125 | else |
---|
126 | as_basename=false |
---|
127 | fi |
---|
128 | |
---|
129 | |
---|
130 | # Name of the executable. |
---|
131 | as_me=`$as_basename -- "$0" || |
---|
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
133 | X"$0" : 'X\(//\)$' \| \ |
---|
134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
135 | echo X/"$0" | |
---|
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
137 | s//\1/ |
---|
138 | q |
---|
139 | } |
---|
140 | /^X\/\(\/\/\)$/{ |
---|
141 | s//\1/ |
---|
142 | q |
---|
143 | } |
---|
144 | /^X\/\(\/\).*/{ |
---|
145 | s//\1/ |
---|
146 | q |
---|
147 | } |
---|
148 | s/.*/./; q'` |
---|
149 | |
---|
150 | # CDPATH. |
---|
151 | $as_unset CDPATH |
---|
152 | |
---|
153 | |
---|
154 | if test "x$CONFIG_SHELL" = x; then |
---|
155 | if (eval ":") 2>/dev/null; then |
---|
156 | as_have_required=yes |
---|
157 | else |
---|
158 | as_have_required=no |
---|
159 | fi |
---|
160 | |
---|
161 | if test $as_have_required = yes && (eval ": |
---|
162 | (as_func_return () { |
---|
163 | (exit \$1) |
---|
164 | } |
---|
165 | as_func_success () { |
---|
166 | as_func_return 0 |
---|
167 | } |
---|
168 | as_func_failure () { |
---|
169 | as_func_return 1 |
---|
170 | } |
---|
171 | as_func_ret_success () { |
---|
172 | return 0 |
---|
173 | } |
---|
174 | as_func_ret_failure () { |
---|
175 | return 1 |
---|
176 | } |
---|
177 | |
---|
178 | exitcode=0 |
---|
179 | if as_func_success; then |
---|
180 | : |
---|
181 | else |
---|
182 | exitcode=1 |
---|
183 | echo as_func_success failed. |
---|
184 | fi |
---|
185 | |
---|
186 | if as_func_failure; then |
---|
187 | exitcode=1 |
---|
188 | echo as_func_failure succeeded. |
---|
189 | fi |
---|
190 | |
---|
191 | if as_func_ret_success; then |
---|
192 | : |
---|
193 | else |
---|
194 | exitcode=1 |
---|
195 | echo as_func_ret_success failed. |
---|
196 | fi |
---|
197 | |
---|
198 | if as_func_ret_failure; then |
---|
199 | exitcode=1 |
---|
200 | echo as_func_ret_failure succeeded. |
---|
201 | fi |
---|
202 | |
---|
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
204 | : |
---|
205 | else |
---|
206 | exitcode=1 |
---|
207 | echo positional parameters were not saved. |
---|
208 | fi |
---|
209 | |
---|
210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
---|
211 | |
---|
212 | ( |
---|
213 | as_lineno_1=\$LINENO |
---|
214 | as_lineno_2=\$LINENO |
---|
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
---|
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
---|
217 | ") 2> /dev/null; then |
---|
218 | : |
---|
219 | else |
---|
220 | as_candidate_shells= |
---|
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
223 | do |
---|
224 | IFS=$as_save_IFS |
---|
225 | test -z "$as_dir" && as_dir=. |
---|
226 | case $as_dir in |
---|
227 | /*) |
---|
228 | for as_base in sh bash ksh sh5; do |
---|
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
---|
230 | done;; |
---|
231 | esac |
---|
232 | done |
---|
233 | IFS=$as_save_IFS |
---|
234 | |
---|
235 | |
---|
236 | for as_shell in $as_candidate_shells $SHELL; do |
---|
237 | # Try only shells that exist, to save several forks. |
---|
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
---|
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
241 | emulate sh |
---|
242 | NULLCMD=: |
---|
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
244 | # is contrary to our usage. Disable this feature. |
---|
245 | alias -g '${1+"$@"}'='"$@"' |
---|
246 | setopt NO_GLOB_SUBST |
---|
247 | else |
---|
248 | case `(set -o) 2>/dev/null` in |
---|
249 | *posix*) set -o posix ;; |
---|
250 | esac |
---|
251 | |
---|
252 | fi |
---|
253 | |
---|
254 | |
---|
255 | : |
---|
256 | _ASEOF |
---|
257 | }; then |
---|
258 | CONFIG_SHELL=$as_shell |
---|
259 | as_have_required=yes |
---|
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
---|
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
262 | emulate sh |
---|
263 | NULLCMD=: |
---|
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
265 | # is contrary to our usage. Disable this feature. |
---|
266 | alias -g '${1+"$@"}'='"$@"' |
---|
267 | setopt NO_GLOB_SUBST |
---|
268 | else |
---|
269 | case `(set -o) 2>/dev/null` in |
---|
270 | *posix*) set -o posix ;; |
---|
271 | esac |
---|
272 | |
---|
273 | fi |
---|
274 | |
---|
275 | |
---|
276 | : |
---|
277 | (as_func_return () { |
---|
278 | (exit $1) |
---|
279 | } |
---|
280 | as_func_success () { |
---|
281 | as_func_return 0 |
---|
282 | } |
---|
283 | as_func_failure () { |
---|
284 | as_func_return 1 |
---|
285 | } |
---|
286 | as_func_ret_success () { |
---|
287 | return 0 |
---|
288 | } |
---|
289 | as_func_ret_failure () { |
---|
290 | return 1 |
---|
291 | } |
---|
292 | |
---|
293 | exitcode=0 |
---|
294 | if as_func_success; then |
---|
295 | : |
---|
296 | else |
---|
297 | exitcode=1 |
---|
298 | echo as_func_success failed. |
---|
299 | fi |
---|
300 | |
---|
301 | if as_func_failure; then |
---|
302 | exitcode=1 |
---|
303 | echo as_func_failure succeeded. |
---|
304 | fi |
---|
305 | |
---|
306 | if as_func_ret_success; then |
---|
307 | : |
---|
308 | else |
---|
309 | exitcode=1 |
---|
310 | echo as_func_ret_success failed. |
---|
311 | fi |
---|
312 | |
---|
313 | if as_func_ret_failure; then |
---|
314 | exitcode=1 |
---|
315 | echo as_func_ret_failure succeeded. |
---|
316 | fi |
---|
317 | |
---|
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
---|
319 | : |
---|
320 | else |
---|
321 | exitcode=1 |
---|
322 | echo positional parameters were not saved. |
---|
323 | fi |
---|
324 | |
---|
325 | test $exitcode = 0) || { (exit 1); exit 1; } |
---|
326 | |
---|
327 | ( |
---|
328 | as_lineno_1=$LINENO |
---|
329 | as_lineno_2=$LINENO |
---|
330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
---|
332 | |
---|
333 | _ASEOF |
---|
334 | }; then |
---|
335 | break |
---|
336 | fi |
---|
337 | |
---|
338 | fi |
---|
339 | |
---|
340 | done |
---|
341 | |
---|
342 | if test "x$CONFIG_SHELL" != x; then |
---|
343 | for as_var in BASH_ENV ENV |
---|
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
345 | done |
---|
346 | export CONFIG_SHELL |
---|
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
348 | fi |
---|
349 | |
---|
350 | |
---|
351 | if test $as_have_required = no; then |
---|
352 | echo This script requires a shell more modern than all the |
---|
353 | echo shells that I found on your system. Please install a |
---|
354 | echo modern shell, or manually run the script under such a |
---|
355 | echo shell if you do have one. |
---|
356 | { (exit 1); exit 1; } |
---|
357 | fi |
---|
358 | |
---|
359 | |
---|
360 | fi |
---|
361 | |
---|
362 | fi |
---|
363 | |
---|
364 | |
---|
365 | |
---|
366 | (eval "as_func_return () { |
---|
367 | (exit \$1) |
---|
368 | } |
---|
369 | as_func_success () { |
---|
370 | as_func_return 0 |
---|
371 | } |
---|
372 | as_func_failure () { |
---|
373 | as_func_return 1 |
---|
374 | } |
---|
375 | as_func_ret_success () { |
---|
376 | return 0 |
---|
377 | } |
---|
378 | as_func_ret_failure () { |
---|
379 | return 1 |
---|
380 | } |
---|
381 | |
---|
382 | exitcode=0 |
---|
383 | if as_func_success; then |
---|
384 | : |
---|
385 | else |
---|
386 | exitcode=1 |
---|
387 | echo as_func_success failed. |
---|
388 | fi |
---|
389 | |
---|
390 | if as_func_failure; then |
---|
391 | exitcode=1 |
---|
392 | echo as_func_failure succeeded. |
---|
393 | fi |
---|
394 | |
---|
395 | if as_func_ret_success; then |
---|
396 | : |
---|
397 | else |
---|
398 | exitcode=1 |
---|
399 | echo as_func_ret_success failed. |
---|
400 | fi |
---|
401 | |
---|
402 | if as_func_ret_failure; then |
---|
403 | exitcode=1 |
---|
404 | echo as_func_ret_failure succeeded. |
---|
405 | fi |
---|
406 | |
---|
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
408 | : |
---|
409 | else |
---|
410 | exitcode=1 |
---|
411 | echo positional parameters were not saved. |
---|
412 | fi |
---|
413 | |
---|
414 | test \$exitcode = 0") || { |
---|
415 | echo No shell found that supports shell functions. |
---|
416 | echo Please tell autoconf@gnu.org about your system, |
---|
417 | echo including any error possibly output before this |
---|
418 | echo message |
---|
419 | } |
---|
420 | |
---|
421 | |
---|
422 | |
---|
423 | as_lineno_1=$LINENO |
---|
424 | as_lineno_2=$LINENO |
---|
425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
427 | |
---|
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
429 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
430 | # line-number line after each line using $LINENO; the second 'sed' |
---|
431 | # does the real work. The second script uses 'N' to pair each |
---|
432 | # line-number line with the line containing $LINENO, and appends |
---|
433 | # trailing '-' during substitution so that $LINENO is not a special |
---|
434 | # case at line end. |
---|
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
438 | sed -n ' |
---|
439 | p |
---|
440 | /[$]LINENO/= |
---|
441 | ' <$as_myself | |
---|
442 | sed ' |
---|
443 | s/[$]LINENO.*/&-/ |
---|
444 | t lineno |
---|
445 | b |
---|
446 | :lineno |
---|
447 | N |
---|
448 | :loop |
---|
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
450 | t loop |
---|
451 | s/-\n.*// |
---|
452 | ' >$as_me.lineno && |
---|
453 | chmod +x "$as_me.lineno" || |
---|
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
455 | { (exit 1); exit 1; }; } |
---|
456 | |
---|
457 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
458 | # (the dirname of $[0] is not the place where we might find the |
---|
459 | # original and so on. Autoconf is especially sensitive to this). |
---|
460 | . "./$as_me.lineno" |
---|
461 | # Exit status is that of the last command. |
---|
462 | exit |
---|
463 | } |
---|
464 | |
---|
465 | |
---|
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
467 | as_dirname=dirname |
---|
468 | else |
---|
469 | as_dirname=false |
---|
470 | fi |
---|
471 | |
---|
472 | ECHO_C= ECHO_N= ECHO_T= |
---|
473 | case `echo -n x` in |
---|
474 | -n*) |
---|
475 | case `echo 'x\c'` in |
---|
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
477 | *) ECHO_C='\c';; |
---|
478 | esac;; |
---|
479 | *) |
---|
480 | ECHO_N='-n';; |
---|
481 | esac |
---|
482 | |
---|
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
485 | as_expr=expr |
---|
486 | else |
---|
487 | as_expr=false |
---|
488 | fi |
---|
489 | |
---|
490 | rm -f conf$$ conf$$.exe conf$$.file |
---|
491 | if test -d conf$$.dir; then |
---|
492 | rm -f conf$$.dir/conf$$.file |
---|
493 | else |
---|
494 | rm -f conf$$.dir |
---|
495 | mkdir conf$$.dir |
---|
496 | fi |
---|
497 | echo >conf$$.file |
---|
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
499 | as_ln_s='ln -s' |
---|
500 | # ... but there are two gotchas: |
---|
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
503 | # In both cases, we have to default to `cp -p'. |
---|
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
505 | as_ln_s='cp -p' |
---|
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
507 | as_ln_s=ln |
---|
508 | else |
---|
509 | as_ln_s='cp -p' |
---|
510 | fi |
---|
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
512 | rmdir conf$$.dir 2>/dev/null |
---|
513 | |
---|
514 | if mkdir -p . 2>/dev/null; then |
---|
515 | as_mkdir_p=: |
---|
516 | else |
---|
517 | test -d ./-p && rmdir ./-p |
---|
518 | as_mkdir_p=false |
---|
519 | fi |
---|
520 | |
---|
521 | if test -x / >/dev/null 2>&1; then |
---|
522 | as_test_x='test -x' |
---|
523 | else |
---|
524 | if ls -dL / >/dev/null 2>&1; then |
---|
525 | as_ls_L_option=L |
---|
526 | else |
---|
527 | as_ls_L_option= |
---|
528 | fi |
---|
529 | as_test_x=' |
---|
530 | eval sh -c '\'' |
---|
531 | if test -d "$1"; then |
---|
532 | test -d "$1/."; |
---|
533 | else |
---|
534 | case $1 in |
---|
535 | -*)set "./$1";; |
---|
536 | esac; |
---|
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
538 | ???[sx]*):;;*)false;;esac;fi |
---|
539 | '\'' sh |
---|
540 | ' |
---|
541 | fi |
---|
542 | as_executable_p=$as_test_x |
---|
543 | |
---|
544 | # Sed expression to map a string onto a valid CPP name. |
---|
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
546 | |
---|
547 | # Sed expression to map a string onto a valid variable name. |
---|
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
549 | |
---|
550 | |
---|
551 | |
---|
552 | |
---|
553 | # Check that we are running under the correct shell. |
---|
554 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
555 | |
---|
556 | case X$ECHO in |
---|
557 | X*--fallback-echo) |
---|
558 | # Remove one level of quotation (which was required for Make). |
---|
559 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
---|
560 | ;; |
---|
561 | esac |
---|
562 | |
---|
563 | echo=${ECHO-echo} |
---|
564 | if test "X$1" = X--no-reexec; then |
---|
565 | # Discard the --no-reexec flag, and continue. |
---|
566 | shift |
---|
567 | elif test "X$1" = X--fallback-echo; then |
---|
568 | # Avoid inline document here, it may be left over |
---|
569 | : |
---|
570 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
---|
571 | # Yippee, $echo works! |
---|
572 | : |
---|
573 | else |
---|
574 | # Restart under the correct shell. |
---|
575 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
---|
576 | fi |
---|
577 | |
---|
578 | if test "X$1" = X--fallback-echo; then |
---|
579 | # used as fallback echo |
---|
580 | shift |
---|
581 | cat <<EOF |
---|
582 | $* |
---|
583 | EOF |
---|
584 | exit 0 |
---|
585 | fi |
---|
586 | |
---|
587 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
588 | # if CDPATH is set. |
---|
589 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
590 | |
---|
591 | if test -z "$ECHO"; then |
---|
592 | if test "X${echo_test_string+set}" != Xset; then |
---|
593 | # find a string as large as possible, as long as the shell can cope with it |
---|
594 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
---|
595 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
---|
596 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
---|
597 | echo_test_string=`eval $cmd` && |
---|
598 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
---|
599 | then |
---|
600 | break |
---|
601 | fi |
---|
602 | done |
---|
603 | fi |
---|
604 | |
---|
605 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
606 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
607 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
608 | : |
---|
609 | else |
---|
610 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
---|
611 | # backslashes. This makes it impossible to quote backslashes using |
---|
612 | # echo "$something" | sed 's/\\/\\\\/g' |
---|
613 | # |
---|
614 | # So, first we look for a working echo in the user's PATH. |
---|
615 | |
---|
616 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
617 | for dir in $PATH /usr/ucb; do |
---|
618 | IFS="$lt_save_ifs" |
---|
619 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
---|
620 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
---|
621 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
---|
622 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
623 | echo="$dir/echo" |
---|
624 | break |
---|
625 | fi |
---|
626 | done |
---|
627 | IFS="$lt_save_ifs" |
---|
628 | |
---|
629 | if test "X$echo" = Xecho; then |
---|
630 | # We didn't find a better echo, so look for alternatives. |
---|
631 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
---|
632 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
---|
633 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
634 | # This shell has a builtin print -r that does the trick. |
---|
635 | echo='print -r' |
---|
636 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
---|
637 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
---|
638 | # If we have ksh, try running configure again with it. |
---|
639 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
---|
640 | export ORIGINAL_CONFIG_SHELL |
---|
641 | CONFIG_SHELL=/bin/ksh |
---|
642 | export CONFIG_SHELL |
---|
643 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
---|
644 | else |
---|
645 | # Try using printf. |
---|
646 | echo='printf %s\n' |
---|
647 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
---|
648 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
---|
649 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
650 | # Cool, printf works |
---|
651 | : |
---|
652 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
653 | test "X$echo_testing_string" = 'X\t' && |
---|
654 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
655 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
656 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
---|
657 | export CONFIG_SHELL |
---|
658 | SHELL="$CONFIG_SHELL" |
---|
659 | export SHELL |
---|
660 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
661 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
---|
662 | test "X$echo_testing_string" = 'X\t' && |
---|
663 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
---|
664 | test "X$echo_testing_string" = "X$echo_test_string"; then |
---|
665 | echo="$CONFIG_SHELL $0 --fallback-echo" |
---|
666 | else |
---|
667 | # maybe with a smaller string... |
---|
668 | prev=: |
---|
669 | |
---|
670 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
---|
671 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
---|
672 | then |
---|
673 | break |
---|
674 | fi |
---|
675 | prev="$cmd" |
---|
676 | done |
---|
677 | |
---|
678 | if test "$prev" != 'sed 50q "$0"'; then |
---|
679 | echo_test_string=`eval $prev` |
---|
680 | export echo_test_string |
---|
681 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
---|
682 | else |
---|
683 | # Oops. We lost completely, so just stick with echo. |
---|
684 | echo=echo |
---|
685 | fi |
---|
686 | fi |
---|
687 | fi |
---|
688 | fi |
---|
689 | fi |
---|
690 | fi |
---|
691 | |
---|
692 | # Copy echo and quote the copy suitably for passing to libtool from |
---|
693 | # the Makefile, instead of quoting the original, which is used later. |
---|
694 | ECHO=$echo |
---|
695 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
---|
696 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
---|
697 | fi |
---|
698 | |
---|
699 | |
---|
700 | |
---|
701 | |
---|
702 | tagnames=${tagnames+${tagnames},}CXX |
---|
703 | |
---|
704 | tagnames=${tagnames+${tagnames},}F77 |
---|
705 | |
---|
706 | exec 7<&0 </dev/null 6>&1 |
---|
707 | |
---|
708 | # Name of the host. |
---|
709 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
710 | # so uname gets run too. |
---|
711 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
712 | |
---|
713 | # |
---|
714 | # Initializations. |
---|
715 | # |
---|
716 | ac_default_prefix=/usr/local |
---|
717 | ac_clean_files= |
---|
718 | ac_config_libobj_dir=. |
---|
719 | LIBOBJS= |
---|
720 | cross_compiling=no |
---|
721 | subdirs= |
---|
722 | MFLAGS= |
---|
723 | MAKEFLAGS= |
---|
724 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
725 | |
---|
726 | # Identity of this package. |
---|
727 | PACKAGE_NAME='OGRE' |
---|
728 | PACKAGE_TARNAME='ogre' |
---|
729 | PACKAGE_VERSION='1.4.5' |
---|
730 | PACKAGE_STRING='OGRE 1.4.5' |
---|
731 | PACKAGE_BUGREPORT='' |
---|
732 | |
---|
733 | # Factoring default headers for most tests. |
---|
734 | ac_includes_default="\ |
---|
735 | #include <stdio.h> |
---|
736 | #ifdef HAVE_SYS_TYPES_H |
---|
737 | # include <sys/types.h> |
---|
738 | #endif |
---|
739 | #ifdef HAVE_SYS_STAT_H |
---|
740 | # include <sys/stat.h> |
---|
741 | #endif |
---|
742 | #ifdef STDC_HEADERS |
---|
743 | # include <stdlib.h> |
---|
744 | # include <stddef.h> |
---|
745 | #else |
---|
746 | # ifdef HAVE_STDLIB_H |
---|
747 | # include <stdlib.h> |
---|
748 | # endif |
---|
749 | #endif |
---|
750 | #ifdef HAVE_STRING_H |
---|
751 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
752 | # include <memory.h> |
---|
753 | # endif |
---|
754 | # include <string.h> |
---|
755 | #endif |
---|
756 | #ifdef HAVE_STRINGS_H |
---|
757 | # include <strings.h> |
---|
758 | #endif |
---|
759 | #ifdef HAVE_INTTYPES_H |
---|
760 | # include <inttypes.h> |
---|
761 | #endif |
---|
762 | #ifdef HAVE_STDINT_H |
---|
763 | # include <stdint.h> |
---|
764 | #endif |
---|
765 | #ifdef HAVE_UNISTD_H |
---|
766 | # include <unistd.h> |
---|
767 | #endif" |
---|
768 | |
---|
769 | ac_subst_vars='SHELL |
---|
770 | PATH_SEPARATOR |
---|
771 | PACKAGE_NAME |
---|
772 | PACKAGE_TARNAME |
---|
773 | PACKAGE_VERSION |
---|
774 | PACKAGE_STRING |
---|
775 | PACKAGE_BUGREPORT |
---|
776 | exec_prefix |
---|
777 | prefix |
---|
778 | program_transform_name |
---|
779 | bindir |
---|
780 | sbindir |
---|
781 | libexecdir |
---|
782 | datarootdir |
---|
783 | datadir |
---|
784 | sysconfdir |
---|
785 | sharedstatedir |
---|
786 | localstatedir |
---|
787 | includedir |
---|
788 | oldincludedir |
---|
789 | docdir |
---|
790 | infodir |
---|
791 | htmldir |
---|
792 | dvidir |
---|
793 | pdfdir |
---|
794 | psdir |
---|
795 | libdir |
---|
796 | localedir |
---|
797 | mandir |
---|
798 | DEFS |
---|
799 | ECHO_C |
---|
800 | ECHO_N |
---|
801 | ECHO_T |
---|
802 | LIBS |
---|
803 | build_alias |
---|
804 | host_alias |
---|
805 | target_alias |
---|
806 | build |
---|
807 | build_cpu |
---|
808 | build_vendor |
---|
809 | build_os |
---|
810 | host |
---|
811 | host_cpu |
---|
812 | host_vendor |
---|
813 | host_os |
---|
814 | target |
---|
815 | target_cpu |
---|
816 | target_vendor |
---|
817 | target_os |
---|
818 | INSTALL_PROGRAM |
---|
819 | INSTALL_SCRIPT |
---|
820 | INSTALL_DATA |
---|
821 | am__isrc |
---|
822 | CYGPATH_W |
---|
823 | PACKAGE |
---|
824 | VERSION |
---|
825 | ACLOCAL |
---|
826 | AUTOCONF |
---|
827 | AUTOMAKE |
---|
828 | AUTOHEADER |
---|
829 | MAKEINFO |
---|
830 | install_sh |
---|
831 | STRIP |
---|
832 | INSTALL_STRIP_PROGRAM |
---|
833 | mkdir_p |
---|
834 | AWK |
---|
835 | SET_MAKE |
---|
836 | am__leading_dot |
---|
837 | AMTAR |
---|
838 | am__tar |
---|
839 | am__untar |
---|
840 | CC |
---|
841 | CFLAGS |
---|
842 | LDFLAGS |
---|
843 | CPPFLAGS |
---|
844 | ac_ct_CC |
---|
845 | EXEEXT |
---|
846 | OBJEXT |
---|
847 | DEPDIR |
---|
848 | am__include |
---|
849 | am__quote |
---|
850 | AMDEP_TRUE |
---|
851 | AMDEP_FALSE |
---|
852 | AMDEPBACKSLASH |
---|
853 | CCDEPMODE |
---|
854 | am__fastdepCC_TRUE |
---|
855 | am__fastdepCC_FALSE |
---|
856 | CXX |
---|
857 | CXXFLAGS |
---|
858 | ac_ct_CXX |
---|
859 | CXXDEPMODE |
---|
860 | am__fastdepCXX_TRUE |
---|
861 | am__fastdepCXX_FALSE |
---|
862 | YACC |
---|
863 | YFLAGS |
---|
864 | LEX |
---|
865 | LEX_OUTPUT_ROOT |
---|
866 | LEXLIB |
---|
867 | SHARED_FLAGS |
---|
868 | PLUGIN_FLAGS |
---|
869 | GL_LIBS |
---|
870 | RC |
---|
871 | OGRE_NT_TRUE |
---|
872 | OGRE_NT_FALSE |
---|
873 | OGRE_LINUX_TRUE |
---|
874 | OGRE_LINUX_FALSE |
---|
875 | OGRE_OSX_TRUE |
---|
876 | OGRE_OSX_FALSE |
---|
877 | SED |
---|
878 | GREP |
---|
879 | EGREP |
---|
880 | LN_S |
---|
881 | ECHO |
---|
882 | AR |
---|
883 | RANLIB |
---|
884 | CPP |
---|
885 | CXXCPP |
---|
886 | F77 |
---|
887 | FFLAGS |
---|
888 | ac_ct_F77 |
---|
889 | LIBTOOL |
---|
890 | OGRE_CFLAGS |
---|
891 | CFLAGS_VISIBILITY |
---|
892 | STLPORT_CFLAGS |
---|
893 | STLPORT_LIBS |
---|
894 | FT2_CONFIG |
---|
895 | FT2_CFLAGS |
---|
896 | FT2_LIBS |
---|
897 | CPPUNIT_CONFIG |
---|
898 | CPPUNIT_CFLAGS |
---|
899 | CPPUNIT_LIBS |
---|
900 | BUILD_UNIT_TESTS_TRUE |
---|
901 | BUILD_UNIT_TESTS_FALSE |
---|
902 | PKG_CONFIG |
---|
903 | ZZIPLIB_CFLAGS |
---|
904 | ZZIPLIB_LIBS |
---|
905 | XMKMF |
---|
906 | PLATFORM_CFLAGS |
---|
907 | PLATFORM_LIBS |
---|
908 | OGRE_PLATFORM |
---|
909 | GLSUPPORT_CFLAGS |
---|
910 | GLSUPPORT_LIBS |
---|
911 | OGRE_GLSUPPORT |
---|
912 | GTK_CFLAGS |
---|
913 | GTK_LIBS |
---|
914 | OGRE_GUI |
---|
915 | OGRE_THREAD_LIBS |
---|
916 | USE_FREEIMAGE_TRUE |
---|
917 | USE_FREEIMAGE_FALSE |
---|
918 | USE_DEVIL_TRUE |
---|
919 | USE_DEVIL_FALSE |
---|
920 | BUILD_CGPLUGIN_TRUE |
---|
921 | BUILD_CGPLUGIN_FALSE |
---|
922 | OPENEXR_CFLAGS |
---|
923 | OPENEXR_LIBS |
---|
924 | BUILD_EXRPLUGIN_TRUE |
---|
925 | BUILD_EXRPLUGIN_FALSE |
---|
926 | BUILD_DX9RENDERSYSTEM_TRUE |
---|
927 | BUILD_DX9RENDERSYSTEM_FALSE |
---|
928 | OGRE_BUILD_SSE_TRUE |
---|
929 | OGRE_BUILD_SSE_FALSE |
---|
930 | SAME_PLATFORM_AND_GUI_TRUE |
---|
931 | SAME_PLATFORM_AND_GUI_FALSE |
---|
932 | OIS_CFLAGS |
---|
933 | OIS_LIBS |
---|
934 | OGRE_BUILDING_DEMOS_TRUE |
---|
935 | OGRE_BUILDING_DEMOS_FALSE |
---|
936 | CEGUI_CFLAGS |
---|
937 | CEGUI_LIBS |
---|
938 | HAVE_CEGUI_TRUE |
---|
939 | HAVE_CEGUI_FALSE |
---|
940 | abs_top_builddir |
---|
941 | ogreexecdir |
---|
942 | LIBOBJS |
---|
943 | LTLIBOBJS' |
---|
944 | ac_subst_files='' |
---|
945 | ac_precious_vars='build_alias |
---|
946 | host_alias |
---|
947 | target_alias |
---|
948 | CC |
---|
949 | CFLAGS |
---|
950 | LDFLAGS |
---|
951 | LIBS |
---|
952 | CPPFLAGS |
---|
953 | CXX |
---|
954 | CXXFLAGS |
---|
955 | CCC |
---|
956 | YACC |
---|
957 | YFLAGS |
---|
958 | CPP |
---|
959 | CXXCPP |
---|
960 | F77 |
---|
961 | FFLAGS |
---|
962 | PKG_CONFIG |
---|
963 | ZZIPLIB_CFLAGS |
---|
964 | ZZIPLIB_LIBS |
---|
965 | XMKMF |
---|
966 | GTK_CFLAGS |
---|
967 | GTK_LIBS |
---|
968 | OPENEXR_CFLAGS |
---|
969 | OPENEXR_LIBS |
---|
970 | OIS_CFLAGS |
---|
971 | OIS_LIBS |
---|
972 | CEGUI_CFLAGS |
---|
973 | CEGUI_LIBS' |
---|
974 | |
---|
975 | |
---|
976 | # Initialize some variables set by options. |
---|
977 | ac_init_help= |
---|
978 | ac_init_version=false |
---|
979 | # The variables have the same names as the options, with |
---|
980 | # dashes changed to underlines. |
---|
981 | cache_file=/dev/null |
---|
982 | exec_prefix=NONE |
---|
983 | no_create= |
---|
984 | no_recursion= |
---|
985 | prefix=NONE |
---|
986 | program_prefix=NONE |
---|
987 | program_suffix=NONE |
---|
988 | program_transform_name=s,x,x, |
---|
989 | silent= |
---|
990 | site= |
---|
991 | srcdir= |
---|
992 | verbose= |
---|
993 | x_includes=NONE |
---|
994 | x_libraries=NONE |
---|
995 | |
---|
996 | # Installation directory options. |
---|
997 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
998 | # and all the variables that are supposed to be based on exec_prefix |
---|
999 | # by default will actually change. |
---|
1000 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
1001 | # (The list follows the same order as the GNU Coding Standards.) |
---|
1002 | bindir='${exec_prefix}/bin' |
---|
1003 | sbindir='${exec_prefix}/sbin' |
---|
1004 | libexecdir='${exec_prefix}/libexec' |
---|
1005 | datarootdir='${prefix}/share' |
---|
1006 | datadir='${datarootdir}' |
---|
1007 | sysconfdir='${prefix}/etc' |
---|
1008 | sharedstatedir='${prefix}/com' |
---|
1009 | localstatedir='${prefix}/var' |
---|
1010 | includedir='${prefix}/include' |
---|
1011 | oldincludedir='/usr/include' |
---|
1012 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
1013 | infodir='${datarootdir}/info' |
---|
1014 | htmldir='${docdir}' |
---|
1015 | dvidir='${docdir}' |
---|
1016 | pdfdir='${docdir}' |
---|
1017 | psdir='${docdir}' |
---|
1018 | libdir='${exec_prefix}/lib' |
---|
1019 | localedir='${datarootdir}/locale' |
---|
1020 | mandir='${datarootdir}/man' |
---|
1021 | |
---|
1022 | ac_prev= |
---|
1023 | ac_dashdash= |
---|
1024 | for ac_option |
---|
1025 | do |
---|
1026 | # If the previous option needs an argument, assign it. |
---|
1027 | if test -n "$ac_prev"; then |
---|
1028 | eval $ac_prev=\$ac_option |
---|
1029 | ac_prev= |
---|
1030 | continue |
---|
1031 | fi |
---|
1032 | |
---|
1033 | case $ac_option in |
---|
1034 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
1035 | *) ac_optarg=yes ;; |
---|
1036 | esac |
---|
1037 | |
---|
1038 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
1039 | |
---|
1040 | case $ac_dashdash$ac_option in |
---|
1041 | --) |
---|
1042 | ac_dashdash=yes ;; |
---|
1043 | |
---|
1044 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
1045 | ac_prev=bindir ;; |
---|
1046 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
1047 | bindir=$ac_optarg ;; |
---|
1048 | |
---|
1049 | -build | --build | --buil | --bui | --bu) |
---|
1050 | ac_prev=build_alias ;; |
---|
1051 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
1052 | build_alias=$ac_optarg ;; |
---|
1053 | |
---|
1054 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
1055 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
1056 | ac_prev=cache_file ;; |
---|
1057 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
1058 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
1059 | cache_file=$ac_optarg ;; |
---|
1060 | |
---|
1061 | --config-cache | -C) |
---|
1062 | cache_file=config.cache ;; |
---|
1063 | |
---|
1064 | -datadir | --datadir | --datadi | --datad) |
---|
1065 | ac_prev=datadir ;; |
---|
1066 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
1067 | datadir=$ac_optarg ;; |
---|
1068 | |
---|
1069 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
1070 | | --dataroo | --dataro | --datar) |
---|
1071 | ac_prev=datarootdir ;; |
---|
1072 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
1073 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
1074 | datarootdir=$ac_optarg ;; |
---|
1075 | |
---|
1076 | -disable-* | --disable-*) |
---|
1077 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
1078 | # Reject names that are not valid shell variable names. |
---|
1079 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1080 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
1081 | { (exit 1); exit 1; }; } |
---|
1082 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
1083 | eval enable_$ac_feature=no ;; |
---|
1084 | |
---|
1085 | -docdir | --docdir | --docdi | --doc | --do) |
---|
1086 | ac_prev=docdir ;; |
---|
1087 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
1088 | docdir=$ac_optarg ;; |
---|
1089 | |
---|
1090 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
1091 | ac_prev=dvidir ;; |
---|
1092 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
1093 | dvidir=$ac_optarg ;; |
---|
1094 | |
---|
1095 | -enable-* | --enable-*) |
---|
1096 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
1097 | # Reject names that are not valid shell variable names. |
---|
1098 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1099 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
1100 | { (exit 1); exit 1; }; } |
---|
1101 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
1102 | eval enable_$ac_feature=\$ac_optarg ;; |
---|
1103 | |
---|
1104 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
1105 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
1106 | | --exec | --exe | --ex) |
---|
1107 | ac_prev=exec_prefix ;; |
---|
1108 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
1109 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
1110 | | --exec=* | --exe=* | --ex=*) |
---|
1111 | exec_prefix=$ac_optarg ;; |
---|
1112 | |
---|
1113 | -gas | --gas | --ga | --g) |
---|
1114 | # Obsolete; use --with-gas. |
---|
1115 | with_gas=yes ;; |
---|
1116 | |
---|
1117 | -help | --help | --hel | --he | -h) |
---|
1118 | ac_init_help=long ;; |
---|
1119 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
1120 | ac_init_help=recursive ;; |
---|
1121 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
1122 | ac_init_help=short ;; |
---|
1123 | |
---|
1124 | -host | --host | --hos | --ho) |
---|
1125 | ac_prev=host_alias ;; |
---|
1126 | -host=* | --host=* | --hos=* | --ho=*) |
---|
1127 | host_alias=$ac_optarg ;; |
---|
1128 | |
---|
1129 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
1130 | ac_prev=htmldir ;; |
---|
1131 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
1132 | | --ht=*) |
---|
1133 | htmldir=$ac_optarg ;; |
---|
1134 | |
---|
1135 | -includedir | --includedir | --includedi | --included | --include \ |
---|
1136 | | --includ | --inclu | --incl | --inc) |
---|
1137 | ac_prev=includedir ;; |
---|
1138 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
1139 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
1140 | includedir=$ac_optarg ;; |
---|
1141 | |
---|
1142 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
1143 | ac_prev=infodir ;; |
---|
1144 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
1145 | infodir=$ac_optarg ;; |
---|
1146 | |
---|
1147 | -libdir | --libdir | --libdi | --libd) |
---|
1148 | ac_prev=libdir ;; |
---|
1149 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
1150 | libdir=$ac_optarg ;; |
---|
1151 | |
---|
1152 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
1153 | | --libexe | --libex | --libe) |
---|
1154 | ac_prev=libexecdir ;; |
---|
1155 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
1156 | | --libexe=* | --libex=* | --libe=*) |
---|
1157 | libexecdir=$ac_optarg ;; |
---|
1158 | |
---|
1159 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
1160 | ac_prev=localedir ;; |
---|
1161 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
1162 | localedir=$ac_optarg ;; |
---|
1163 | |
---|
1164 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
1165 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
1166 | ac_prev=localstatedir ;; |
---|
1167 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
1168 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
1169 | localstatedir=$ac_optarg ;; |
---|
1170 | |
---|
1171 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
1172 | ac_prev=mandir ;; |
---|
1173 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
1174 | mandir=$ac_optarg ;; |
---|
1175 | |
---|
1176 | -nfp | --nfp | --nf) |
---|
1177 | # Obsolete; use --without-fp. |
---|
1178 | with_fp=no ;; |
---|
1179 | |
---|
1180 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
1181 | | --no-cr | --no-c | -n) |
---|
1182 | no_create=yes ;; |
---|
1183 | |
---|
1184 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
1185 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
1186 | no_recursion=yes ;; |
---|
1187 | |
---|
1188 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
1189 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
1190 | | --oldin | --oldi | --old | --ol | --o) |
---|
1191 | ac_prev=oldincludedir ;; |
---|
1192 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1193 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1194 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1195 | oldincludedir=$ac_optarg ;; |
---|
1196 | |
---|
1197 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1198 | ac_prev=prefix ;; |
---|
1199 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1200 | prefix=$ac_optarg ;; |
---|
1201 | |
---|
1202 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1203 | | --program-pre | --program-pr | --program-p) |
---|
1204 | ac_prev=program_prefix ;; |
---|
1205 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1206 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1207 | program_prefix=$ac_optarg ;; |
---|
1208 | |
---|
1209 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1210 | | --program-suf | --program-su | --program-s) |
---|
1211 | ac_prev=program_suffix ;; |
---|
1212 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1213 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1214 | program_suffix=$ac_optarg ;; |
---|
1215 | |
---|
1216 | -program-transform-name | --program-transform-name \ |
---|
1217 | | --program-transform-nam | --program-transform-na \ |
---|
1218 | | --program-transform-n | --program-transform- \ |
---|
1219 | | --program-transform | --program-transfor \ |
---|
1220 | | --program-transfo | --program-transf \ |
---|
1221 | | --program-trans | --program-tran \ |
---|
1222 | | --progr-tra | --program-tr | --program-t) |
---|
1223 | ac_prev=program_transform_name ;; |
---|
1224 | -program-transform-name=* | --program-transform-name=* \ |
---|
1225 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1226 | | --program-transform-n=* | --program-transform-=* \ |
---|
1227 | | --program-transform=* | --program-transfor=* \ |
---|
1228 | | --program-transfo=* | --program-transf=* \ |
---|
1229 | | --program-trans=* | --program-tran=* \ |
---|
1230 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1231 | program_transform_name=$ac_optarg ;; |
---|
1232 | |
---|
1233 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1234 | ac_prev=pdfdir ;; |
---|
1235 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1236 | pdfdir=$ac_optarg ;; |
---|
1237 | |
---|
1238 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1239 | ac_prev=psdir ;; |
---|
1240 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1241 | psdir=$ac_optarg ;; |
---|
1242 | |
---|
1243 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1244 | | -silent | --silent | --silen | --sile | --sil) |
---|
1245 | silent=yes ;; |
---|
1246 | |
---|
1247 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1248 | ac_prev=sbindir ;; |
---|
1249 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1250 | | --sbi=* | --sb=*) |
---|
1251 | sbindir=$ac_optarg ;; |
---|
1252 | |
---|
1253 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1254 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1255 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1256 | | --sha | --sh) |
---|
1257 | ac_prev=sharedstatedir ;; |
---|
1258 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1259 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1260 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1261 | | --sha=* | --sh=*) |
---|
1262 | sharedstatedir=$ac_optarg ;; |
---|
1263 | |
---|
1264 | -site | --site | --sit) |
---|
1265 | ac_prev=site ;; |
---|
1266 | -site=* | --site=* | --sit=*) |
---|
1267 | site=$ac_optarg ;; |
---|
1268 | |
---|
1269 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1270 | ac_prev=srcdir ;; |
---|
1271 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1272 | srcdir=$ac_optarg ;; |
---|
1273 | |
---|
1274 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1275 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1276 | ac_prev=sysconfdir ;; |
---|
1277 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1278 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1279 | sysconfdir=$ac_optarg ;; |
---|
1280 | |
---|
1281 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1282 | ac_prev=target_alias ;; |
---|
1283 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1284 | target_alias=$ac_optarg ;; |
---|
1285 | |
---|
1286 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1287 | verbose=yes ;; |
---|
1288 | |
---|
1289 | -version | --version | --versio | --versi | --vers | -V) |
---|
1290 | ac_init_version=: ;; |
---|
1291 | |
---|
1292 | -with-* | --with-*) |
---|
1293 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1294 | # Reject names that are not valid shell variable names. |
---|
1295 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1296 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
1297 | { (exit 1); exit 1; }; } |
---|
1298 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
1299 | eval with_$ac_package=\$ac_optarg ;; |
---|
1300 | |
---|
1301 | -without-* | --without-*) |
---|
1302 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1303 | # Reject names that are not valid shell variable names. |
---|
1304 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1305 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
1306 | { (exit 1); exit 1; }; } |
---|
1307 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
1308 | eval with_$ac_package=no ;; |
---|
1309 | |
---|
1310 | --x) |
---|
1311 | # Obsolete; use --with-x. |
---|
1312 | with_x=yes ;; |
---|
1313 | |
---|
1314 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1315 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1316 | ac_prev=x_includes ;; |
---|
1317 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1318 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1319 | x_includes=$ac_optarg ;; |
---|
1320 | |
---|
1321 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1322 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1323 | ac_prev=x_libraries ;; |
---|
1324 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1325 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1326 | x_libraries=$ac_optarg ;; |
---|
1327 | |
---|
1328 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
1329 | Try \`$0 --help' for more information." >&2 |
---|
1330 | { (exit 1); exit 1; }; } |
---|
1331 | ;; |
---|
1332 | |
---|
1333 | *=*) |
---|
1334 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1335 | # Reject names that are not valid shell variable names. |
---|
1336 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
1337 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
1338 | { (exit 1); exit 1; }; } |
---|
1339 | eval $ac_envvar=\$ac_optarg |
---|
1340 | export $ac_envvar ;; |
---|
1341 | |
---|
1342 | *) |
---|
1343 | # FIXME: should be removed in autoconf 3.0. |
---|
1344 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1345 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1346 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1347 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
1348 | ;; |
---|
1349 | |
---|
1350 | esac |
---|
1351 | done |
---|
1352 | |
---|
1353 | if test -n "$ac_prev"; then |
---|
1354 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1355 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
1356 | { (exit 1); exit 1; }; } |
---|
1357 | fi |
---|
1358 | |
---|
1359 | # Be sure to have absolute directory names. |
---|
1360 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1361 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1362 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1363 | libdir localedir mandir |
---|
1364 | do |
---|
1365 | eval ac_val=\$$ac_var |
---|
1366 | case $ac_val in |
---|
1367 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1368 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1369 | esac |
---|
1370 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
1371 | { (exit 1); exit 1; }; } |
---|
1372 | done |
---|
1373 | |
---|
1374 | # There might be people who depend on the old broken behavior: `$host' |
---|
1375 | # used to hold the argument of --host etc. |
---|
1376 | # FIXME: To remove some day. |
---|
1377 | build=$build_alias |
---|
1378 | host=$host_alias |
---|
1379 | target=$target_alias |
---|
1380 | |
---|
1381 | # FIXME: To remove some day. |
---|
1382 | if test "x$host_alias" != x; then |
---|
1383 | if test "x$build_alias" = x; then |
---|
1384 | cross_compiling=maybe |
---|
1385 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
1386 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
1387 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1388 | cross_compiling=yes |
---|
1389 | fi |
---|
1390 | fi |
---|
1391 | |
---|
1392 | ac_tool_prefix= |
---|
1393 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1394 | |
---|
1395 | test "$silent" = yes && exec 6>/dev/null |
---|
1396 | |
---|
1397 | |
---|
1398 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1399 | ac_ls_di=`ls -di .` && |
---|
1400 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1401 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
---|
1402 | { (exit 1); exit 1; }; } |
---|
1403 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1404 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
---|
1405 | { (exit 1); exit 1; }; } |
---|
1406 | |
---|
1407 | |
---|
1408 | # Find the source files, if location was not specified. |
---|
1409 | if test -z "$srcdir"; then |
---|
1410 | ac_srcdir_defaulted=yes |
---|
1411 | # Try the directory containing this script, then the parent directory. |
---|
1412 | ac_confdir=`$as_dirname -- "$0" || |
---|
1413 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1414 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
1415 | X"$0" : 'X\(//\)$' \| \ |
---|
1416 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
1417 | echo X"$0" | |
---|
1418 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1419 | s//\1/ |
---|
1420 | q |
---|
1421 | } |
---|
1422 | /^X\(\/\/\)[^/].*/{ |
---|
1423 | s//\1/ |
---|
1424 | q |
---|
1425 | } |
---|
1426 | /^X\(\/\/\)$/{ |
---|
1427 | s//\1/ |
---|
1428 | q |
---|
1429 | } |
---|
1430 | /^X\(\/\).*/{ |
---|
1431 | s//\1/ |
---|
1432 | q |
---|
1433 | } |
---|
1434 | s/.*/./; q'` |
---|
1435 | srcdir=$ac_confdir |
---|
1436 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1437 | srcdir=.. |
---|
1438 | fi |
---|
1439 | else |
---|
1440 | ac_srcdir_defaulted=no |
---|
1441 | fi |
---|
1442 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1443 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1444 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
1445 | { (exit 1); exit 1; }; } |
---|
1446 | fi |
---|
1447 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1448 | ac_abs_confdir=`( |
---|
1449 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
---|
1450 | { (exit 1); exit 1; }; } |
---|
1451 | pwd)` |
---|
1452 | # When building in place, set srcdir=. |
---|
1453 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1454 | srcdir=. |
---|
1455 | fi |
---|
1456 | # Remove unnecessary trailing slashes from srcdir. |
---|
1457 | # Double slashes in file names in object file debugging info |
---|
1458 | # mess up M-x gdb in Emacs. |
---|
1459 | case $srcdir in |
---|
1460 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1461 | esac |
---|
1462 | for ac_var in $ac_precious_vars; do |
---|
1463 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1464 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1465 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1466 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1467 | done |
---|
1468 | |
---|
1469 | # |
---|
1470 | # Report the --help message. |
---|
1471 | # |
---|
1472 | if test "$ac_init_help" = "long"; then |
---|
1473 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1474 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1475 | cat <<_ACEOF |
---|
1476 | \`configure' configures OGRE 1.4.5 to adapt to many kinds of systems. |
---|
1477 | |
---|
1478 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1479 | |
---|
1480 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1481 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1482 | |
---|
1483 | Defaults for the options are specified in brackets. |
---|
1484 | |
---|
1485 | Configuration: |
---|
1486 | -h, --help display this help and exit |
---|
1487 | --help=short display options specific to this package |
---|
1488 | --help=recursive display the short help of all the included packages |
---|
1489 | -V, --version display version information and exit |
---|
1490 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1491 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1492 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1493 | -n, --no-create do not create output files |
---|
1494 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1495 | |
---|
1496 | Installation directories: |
---|
1497 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1498 | [$ac_default_prefix] |
---|
1499 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1500 | [PREFIX] |
---|
1501 | |
---|
1502 | By default, \`make install' will install all the files in |
---|
1503 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1504 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1505 | for instance \`--prefix=\$HOME'. |
---|
1506 | |
---|
1507 | For better control, use the options below. |
---|
1508 | |
---|
1509 | Fine tuning of the installation directories: |
---|
1510 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1511 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1512 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1513 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1514 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1515 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1516 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1517 | --includedir=DIR C header files [PREFIX/include] |
---|
1518 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1519 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1520 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1521 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1522 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1523 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1524 | --docdir=DIR documentation root [DATAROOTDIR/doc/ogre] |
---|
1525 | --htmldir=DIR html documentation [DOCDIR] |
---|
1526 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1527 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1528 | --psdir=DIR ps documentation [DOCDIR] |
---|
1529 | _ACEOF |
---|
1530 | |
---|
1531 | cat <<\_ACEOF |
---|
1532 | |
---|
1533 | Program names: |
---|
1534 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1535 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1536 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1537 | |
---|
1538 | X features: |
---|
1539 | --x-includes=DIR X include files are in DIR |
---|
1540 | --x-libraries=DIR X library files are in DIR |
---|
1541 | |
---|
1542 | System types: |
---|
1543 | --build=BUILD configure for building on BUILD [guessed] |
---|
1544 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1545 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
1546 | _ACEOF |
---|
1547 | fi |
---|
1548 | |
---|
1549 | if test -n "$ac_init_help"; then |
---|
1550 | case $ac_init_help in |
---|
1551 | short | recursive ) echo "Configuration of OGRE 1.4.5:";; |
---|
1552 | esac |
---|
1553 | cat <<\_ACEOF |
---|
1554 | |
---|
1555 | Optional Features: |
---|
1556 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1557 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1558 | --disable-dependency-tracking speeds up one-time build |
---|
1559 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1560 | --enable-static[=PKGS] build static libraries [default=no] |
---|
1561 | --enable-shared[=PKGS] build shared libraries [default=yes] |
---|
1562 | --enable-fast-install[=PKGS] |
---|
1563 | optimize for fast installation [default=yes] |
---|
1564 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1565 | --disable-freetypetest Do not try to compile and run |
---|
1566 | a test FreeType program |
---|
1567 | --enable-double Build OGRE in double floating point precision mode. |
---|
1568 | This is not recommended for normal use as it is |
---|
1569 | slower. |
---|
1570 | --enable-threading Indicate general support for multithreading. This |
---|
1571 | will enable threading support in certain parts of |
---|
1572 | the engine, mainly resource loading and SharedPtr |
---|
1573 | handling. WARNING: highly experimental, use with |
---|
1574 | caution. |
---|
1575 | --disable-freeimage Don't use FreeImage for image loading. This is not |
---|
1576 | recommended unless you provide your own image |
---|
1577 | loading codecs. |
---|
1578 | --disable-devil Don't use DevIL for image loading. This is not |
---|
1579 | recommended unless you provide your own image |
---|
1580 | loading codecs. |
---|
1581 | --disable-cg Do not build the Cg plugin (recommended you do so!) |
---|
1582 | --enable-openexr Build the OpenEXR plugin |
---|
1583 | --enable-direct3d Build the DirectX 9 Render System |
---|
1584 | --disable-ogre-demos Do not build Ogre demos (CEGUI Renderer - if |
---|
1585 | enabled/disabled, is not affected by this |
---|
1586 | |
---|
1587 | Optional Packages: |
---|
1588 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1589 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1590 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1591 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1592 | both] |
---|
1593 | --with-tags[=TAGS] include additional configurations [automatic] |
---|
1594 | --with-stlport=PATH the path to STLPort. |
---|
1595 | --with-ft-prefix=PREFIX |
---|
1596 | Prefix where FreeType is installed (optional) |
---|
1597 | --with-ft-exec-prefix=PREFIX |
---|
1598 | Exec prefix where FreeType is installed (optional) |
---|
1599 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) |
---|
1600 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) |
---|
1601 | --with-platform=PLATFORM |
---|
1602 | the platform to build, currently GLX or Win32 |
---|
1603 | --with-x use the X Window System |
---|
1604 | --with-gl-support=PLATFORM |
---|
1605 | The GLsupport to build (GLX or Win32). Defaults to |
---|
1606 | the platform. Only set this if you know what you are |
---|
1607 | doing. Use --with-platform otherwise. |
---|
1608 | --with-gui=type Select the GUI type to use for dialogs (win32, gtk, |
---|
1609 | Xt) (default: auto) |
---|
1610 | |
---|
1611 | Some influential environment variables: |
---|
1612 | CC C compiler command |
---|
1613 | CFLAGS C compiler flags |
---|
1614 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1615 | nonstandard directory <lib dir> |
---|
1616 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1617 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
---|
1618 | you have headers in a nonstandard directory <include dir> |
---|
1619 | CXX C++ compiler command |
---|
1620 | CXXFLAGS C++ compiler flags |
---|
1621 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
---|
1622 | the first program found out of: `bison -y', `byacc', `yacc'. |
---|
1623 | YFLAGS The list of arguments that will be passed by default to $YACC. |
---|
1624 | This script will default YFLAGS to the empty string to avoid a |
---|
1625 | default value of `-d' given by some make applications. |
---|
1626 | CPP C preprocessor |
---|
1627 | CXXCPP C++ preprocessor |
---|
1628 | F77 Fortran 77 compiler command |
---|
1629 | FFLAGS Fortran 77 compiler flags |
---|
1630 | PKG_CONFIG path to pkg-config utility |
---|
1631 | ZZIPLIB_CFLAGS |
---|
1632 | C compiler flags for ZZIPLIB, overriding pkg-config |
---|
1633 | ZZIPLIB_LIBS |
---|
1634 | linker flags for ZZIPLIB, overriding pkg-config |
---|
1635 | XMKMF Path to xmkmf, Makefile generator for X Window System |
---|
1636 | GTK_CFLAGS C compiler flags for GTK, overriding pkg-config |
---|
1637 | GTK_LIBS linker flags for GTK, overriding pkg-config |
---|
1638 | OPENEXR_CFLAGS |
---|
1639 | C compiler flags for OPENEXR, overriding pkg-config |
---|
1640 | OPENEXR_LIBS |
---|
1641 | linker flags for OPENEXR, overriding pkg-config |
---|
1642 | OIS_CFLAGS C compiler flags for OIS, overriding pkg-config |
---|
1643 | OIS_LIBS linker flags for OIS, overriding pkg-config |
---|
1644 | CEGUI_CFLAGS |
---|
1645 | C compiler flags for CEGUI, overriding pkg-config |
---|
1646 | CEGUI_LIBS linker flags for CEGUI, overriding pkg-config |
---|
1647 | |
---|
1648 | Use these variables to override the choices made by `configure' or to help |
---|
1649 | it to find libraries and programs with nonstandard names/locations. |
---|
1650 | |
---|
1651 | _ACEOF |
---|
1652 | ac_status=$? |
---|
1653 | fi |
---|
1654 | |
---|
1655 | if test "$ac_init_help" = "recursive"; then |
---|
1656 | # If there are subdirs, report their specific --help. |
---|
1657 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1658 | test -d "$ac_dir" || continue |
---|
1659 | ac_builddir=. |
---|
1660 | |
---|
1661 | case "$ac_dir" in |
---|
1662 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1663 | *) |
---|
1664 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1665 | # A ".." for each directory in $ac_dir_suffix. |
---|
1666 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
1667 | case $ac_top_builddir_sub in |
---|
1668 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1669 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1670 | esac ;; |
---|
1671 | esac |
---|
1672 | ac_abs_top_builddir=$ac_pwd |
---|
1673 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1674 | # for backward compatibility: |
---|
1675 | ac_top_builddir=$ac_top_build_prefix |
---|
1676 | |
---|
1677 | case $srcdir in |
---|
1678 | .) # We are building in place. |
---|
1679 | ac_srcdir=. |
---|
1680 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1681 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1682 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1683 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1684 | ac_top_srcdir=$srcdir |
---|
1685 | ac_abs_top_srcdir=$srcdir ;; |
---|
1686 | *) # Relative name. |
---|
1687 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1688 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1689 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1690 | esac |
---|
1691 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1692 | |
---|
1693 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1694 | # Check for guested configure. |
---|
1695 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1696 | echo && |
---|
1697 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1698 | elif test -f "$ac_srcdir/configure"; then |
---|
1699 | echo && |
---|
1700 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1701 | else |
---|
1702 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1703 | fi || ac_status=$? |
---|
1704 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1705 | done |
---|
1706 | fi |
---|
1707 | |
---|
1708 | test -n "$ac_init_help" && exit $ac_status |
---|
1709 | if $ac_init_version; then |
---|
1710 | cat <<\_ACEOF |
---|
1711 | OGRE configure 1.4.5 |
---|
1712 | generated by GNU Autoconf 2.61 |
---|
1713 | |
---|
1714 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
1715 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
1716 | This configure script is free software; the Free Software Foundation |
---|
1717 | gives unlimited permission to copy, distribute and modify it. |
---|
1718 | _ACEOF |
---|
1719 | exit |
---|
1720 | fi |
---|
1721 | cat >config.log <<_ACEOF |
---|
1722 | This file contains any messages produced by compilers while |
---|
1723 | running configure, to aid debugging if configure makes a mistake. |
---|
1724 | |
---|
1725 | It was created by OGRE $as_me 1.4.5, which was |
---|
1726 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
1727 | |
---|
1728 | $ $0 $@ |
---|
1729 | |
---|
1730 | _ACEOF |
---|
1731 | exec 5>>config.log |
---|
1732 | { |
---|
1733 | cat <<_ASUNAME |
---|
1734 | ## --------- ## |
---|
1735 | ## Platform. ## |
---|
1736 | ## --------- ## |
---|
1737 | |
---|
1738 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1739 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1740 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1741 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1742 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1743 | |
---|
1744 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1745 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1746 | |
---|
1747 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1748 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1749 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1750 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1751 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1752 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1753 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1754 | |
---|
1755 | _ASUNAME |
---|
1756 | |
---|
1757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1758 | for as_dir in $PATH |
---|
1759 | do |
---|
1760 | IFS=$as_save_IFS |
---|
1761 | test -z "$as_dir" && as_dir=. |
---|
1762 | echo "PATH: $as_dir" |
---|
1763 | done |
---|
1764 | IFS=$as_save_IFS |
---|
1765 | |
---|
1766 | } >&5 |
---|
1767 | |
---|
1768 | cat >&5 <<_ACEOF |
---|
1769 | |
---|
1770 | |
---|
1771 | ## ----------- ## |
---|
1772 | ## Core tests. ## |
---|
1773 | ## ----------- ## |
---|
1774 | |
---|
1775 | _ACEOF |
---|
1776 | |
---|
1777 | |
---|
1778 | # Keep a trace of the command line. |
---|
1779 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1780 | # Strip out --silent because we don't want to record it for future runs. |
---|
1781 | # Also quote any args containing shell meta-characters. |
---|
1782 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1783 | ac_configure_args= |
---|
1784 | ac_configure_args0= |
---|
1785 | ac_configure_args1= |
---|
1786 | ac_must_keep_next=false |
---|
1787 | for ac_pass in 1 2 |
---|
1788 | do |
---|
1789 | for ac_arg |
---|
1790 | do |
---|
1791 | case $ac_arg in |
---|
1792 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1793 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1794 | | -silent | --silent | --silen | --sile | --sil) |
---|
1795 | continue ;; |
---|
1796 | *\'*) |
---|
1797 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1798 | esac |
---|
1799 | case $ac_pass in |
---|
1800 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1801 | 2) |
---|
1802 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1803 | if test $ac_must_keep_next = true; then |
---|
1804 | ac_must_keep_next=false # Got value, back to normal. |
---|
1805 | else |
---|
1806 | case $ac_arg in |
---|
1807 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1808 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1809 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1810 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1811 | case "$ac_configure_args0 " in |
---|
1812 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1813 | esac |
---|
1814 | ;; |
---|
1815 | -* ) ac_must_keep_next=true ;; |
---|
1816 | esac |
---|
1817 | fi |
---|
1818 | ac_configure_args="$ac_configure_args '$ac_arg'" |
---|
1819 | ;; |
---|
1820 | esac |
---|
1821 | done |
---|
1822 | done |
---|
1823 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1824 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1825 | |
---|
1826 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1827 | # config.log. We remove comments because anyway the quotes in there |
---|
1828 | # would cause problems or look ugly. |
---|
1829 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1830 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1831 | trap 'exit_status=$? |
---|
1832 | # Save into config.log some information that might help in debugging. |
---|
1833 | { |
---|
1834 | echo |
---|
1835 | |
---|
1836 | cat <<\_ASBOX |
---|
1837 | ## ---------------- ## |
---|
1838 | ## Cache variables. ## |
---|
1839 | ## ---------------- ## |
---|
1840 | _ASBOX |
---|
1841 | echo |
---|
1842 | # The following way of writing the cache mishandles newlines in values, |
---|
1843 | ( |
---|
1844 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1845 | eval ac_val=\$$ac_var |
---|
1846 | case $ac_val in #( |
---|
1847 | *${as_nl}*) |
---|
1848 | case $ac_var in #( |
---|
1849 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
1850 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
1851 | esac |
---|
1852 | case $ac_var in #( |
---|
1853 | _ | IFS | as_nl) ;; #( |
---|
1854 | *) $as_unset $ac_var ;; |
---|
1855 | esac ;; |
---|
1856 | esac |
---|
1857 | done |
---|
1858 | (set) 2>&1 | |
---|
1859 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1860 | *${as_nl}ac_space=\ *) |
---|
1861 | sed -n \ |
---|
1862 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1863 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1864 | ;; #( |
---|
1865 | *) |
---|
1866 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1867 | ;; |
---|
1868 | esac | |
---|
1869 | sort |
---|
1870 | ) |
---|
1871 | echo |
---|
1872 | |
---|
1873 | cat <<\_ASBOX |
---|
1874 | ## ----------------- ## |
---|
1875 | ## Output variables. ## |
---|
1876 | ## ----------------- ## |
---|
1877 | _ASBOX |
---|
1878 | echo |
---|
1879 | for ac_var in $ac_subst_vars |
---|
1880 | do |
---|
1881 | eval ac_val=\$$ac_var |
---|
1882 | case $ac_val in |
---|
1883 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1884 | esac |
---|
1885 | echo "$ac_var='\''$ac_val'\''" |
---|
1886 | done | sort |
---|
1887 | echo |
---|
1888 | |
---|
1889 | if test -n "$ac_subst_files"; then |
---|
1890 | cat <<\_ASBOX |
---|
1891 | ## ------------------- ## |
---|
1892 | ## File substitutions. ## |
---|
1893 | ## ------------------- ## |
---|
1894 | _ASBOX |
---|
1895 | echo |
---|
1896 | for ac_var in $ac_subst_files |
---|
1897 | do |
---|
1898 | eval ac_val=\$$ac_var |
---|
1899 | case $ac_val in |
---|
1900 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1901 | esac |
---|
1902 | echo "$ac_var='\''$ac_val'\''" |
---|
1903 | done | sort |
---|
1904 | echo |
---|
1905 | fi |
---|
1906 | |
---|
1907 | if test -s confdefs.h; then |
---|
1908 | cat <<\_ASBOX |
---|
1909 | ## ----------- ## |
---|
1910 | ## confdefs.h. ## |
---|
1911 | ## ----------- ## |
---|
1912 | _ASBOX |
---|
1913 | echo |
---|
1914 | cat confdefs.h |
---|
1915 | echo |
---|
1916 | fi |
---|
1917 | test "$ac_signal" != 0 && |
---|
1918 | echo "$as_me: caught signal $ac_signal" |
---|
1919 | echo "$as_me: exit $exit_status" |
---|
1920 | } >&5 |
---|
1921 | rm -f core *.core core.conftest.* && |
---|
1922 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
1923 | exit $exit_status |
---|
1924 | ' 0 |
---|
1925 | for ac_signal in 1 2 13 15; do |
---|
1926 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1927 | done |
---|
1928 | ac_signal=0 |
---|
1929 | |
---|
1930 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1931 | rm -f -r conftest* confdefs.h |
---|
1932 | |
---|
1933 | # Predefined preprocessor variables. |
---|
1934 | |
---|
1935 | cat >>confdefs.h <<_ACEOF |
---|
1936 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1937 | _ACEOF |
---|
1938 | |
---|
1939 | |
---|
1940 | cat >>confdefs.h <<_ACEOF |
---|
1941 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1942 | _ACEOF |
---|
1943 | |
---|
1944 | |
---|
1945 | cat >>confdefs.h <<_ACEOF |
---|
1946 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1947 | _ACEOF |
---|
1948 | |
---|
1949 | |
---|
1950 | cat >>confdefs.h <<_ACEOF |
---|
1951 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1952 | _ACEOF |
---|
1953 | |
---|
1954 | |
---|
1955 | cat >>confdefs.h <<_ACEOF |
---|
1956 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1957 | _ACEOF |
---|
1958 | |
---|
1959 | |
---|
1960 | # Let the site file select an alternate cache file if it wants to. |
---|
1961 | # Prefer explicitly selected file to automatically selected ones. |
---|
1962 | if test -n "$CONFIG_SITE"; then |
---|
1963 | set x "$CONFIG_SITE" |
---|
1964 | elif test "x$prefix" != xNONE; then |
---|
1965 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
---|
1966 | else |
---|
1967 | set x "$ac_default_prefix/share/config.site" \ |
---|
1968 | "$ac_default_prefix/etc/config.site" |
---|
1969 | fi |
---|
1970 | shift |
---|
1971 | for ac_site_file |
---|
1972 | do |
---|
1973 | if test -r "$ac_site_file"; then |
---|
1974 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1975 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1976 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1977 | . "$ac_site_file" |
---|
1978 | fi |
---|
1979 | done |
---|
1980 | |
---|
1981 | if test -r "$cache_file"; then |
---|
1982 | # Some versions of bash will fail to source /dev/null (special |
---|
1983 | # files actually), so we avoid doing that. |
---|
1984 | if test -f "$cache_file"; then |
---|
1985 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1986 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1987 | case $cache_file in |
---|
1988 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
1989 | *) . "./$cache_file";; |
---|
1990 | esac |
---|
1991 | fi |
---|
1992 | else |
---|
1993 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1994 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1995 | >$cache_file |
---|
1996 | fi |
---|
1997 | |
---|
1998 | # Check that the precious variables saved in the cache have kept the same |
---|
1999 | # value. |
---|
2000 | ac_cache_corrupted=false |
---|
2001 | for ac_var in $ac_precious_vars; do |
---|
2002 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2003 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2004 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2005 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2006 | case $ac_old_set,$ac_new_set in |
---|
2007 | set,) |
---|
2008 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2009 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2010 | ac_cache_corrupted=: ;; |
---|
2011 | ,set) |
---|
2012 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2013 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2014 | ac_cache_corrupted=: ;; |
---|
2015 | ,);; |
---|
2016 | *) |
---|
2017 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2018 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2019 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2020 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
2021 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
2022 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
2023 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
2024 | ac_cache_corrupted=: |
---|
2025 | fi;; |
---|
2026 | esac |
---|
2027 | # Pass precious variables to config.status. |
---|
2028 | if test "$ac_new_set" = set; then |
---|
2029 | case $ac_new_val in |
---|
2030 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2031 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2032 | esac |
---|
2033 | case " $ac_configure_args " in |
---|
2034 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2035 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
2036 | esac |
---|
2037 | fi |
---|
2038 | done |
---|
2039 | if $ac_cache_corrupted; then |
---|
2040 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
2041 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2042 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
2043 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
2044 | { (exit 1); exit 1; }; } |
---|
2045 | fi |
---|
2046 | |
---|
2047 | |
---|
2048 | |
---|
2049 | |
---|
2050 | |
---|
2051 | |
---|
2052 | |
---|
2053 | |
---|
2054 | |
---|
2055 | |
---|
2056 | |
---|
2057 | |
---|
2058 | |
---|
2059 | |
---|
2060 | |
---|
2061 | |
---|
2062 | |
---|
2063 | |
---|
2064 | |
---|
2065 | |
---|
2066 | |
---|
2067 | |
---|
2068 | |
---|
2069 | |
---|
2070 | |
---|
2071 | ac_ext=c |
---|
2072 | ac_cpp='$CPP $CPPFLAGS' |
---|
2073 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2074 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2075 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2076 | |
---|
2077 | |
---|
2078 | |
---|
2079 | ac_aux_dir= |
---|
2080 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
---|
2081 | if test -f "$ac_dir/install-sh"; then |
---|
2082 | ac_aux_dir=$ac_dir |
---|
2083 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2084 | break |
---|
2085 | elif test -f "$ac_dir/install.sh"; then |
---|
2086 | ac_aux_dir=$ac_dir |
---|
2087 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2088 | break |
---|
2089 | elif test -f "$ac_dir/shtool"; then |
---|
2090 | ac_aux_dir=$ac_dir |
---|
2091 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2092 | break |
---|
2093 | fi |
---|
2094 | done |
---|
2095 | if test -z "$ac_aux_dir"; then |
---|
2096 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
---|
2097 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
---|
2098 | { (exit 1); exit 1; }; } |
---|
2099 | fi |
---|
2100 | |
---|
2101 | # These three variables are undocumented and unsupported, |
---|
2102 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2103 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2104 | # whose full name contains unusual characters. |
---|
2105 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2106 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2107 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2108 | |
---|
2109 | |
---|
2110 | # Make sure we can run config.sub. |
---|
2111 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
2112 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
---|
2113 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
---|
2114 | { (exit 1); exit 1; }; } |
---|
2115 | |
---|
2116 | { echo "$as_me:$LINENO: checking build system type" >&5 |
---|
2117 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
---|
2118 | if test "${ac_cv_build+set}" = set; then |
---|
2119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2120 | else |
---|
2121 | ac_build_alias=$build_alias |
---|
2122 | test "x$ac_build_alias" = x && |
---|
2123 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
2124 | test "x$ac_build_alias" = x && |
---|
2125 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
2126 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
2127 | { (exit 1); exit 1; }; } |
---|
2128 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
2129 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
---|
2130 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
---|
2131 | { (exit 1); exit 1; }; } |
---|
2132 | |
---|
2133 | fi |
---|
2134 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
2135 | echo "${ECHO_T}$ac_cv_build" >&6; } |
---|
2136 | case $ac_cv_build in |
---|
2137 | *-*-*) ;; |
---|
2138 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
---|
2139 | echo "$as_me: error: invalid value of canonical build" >&2;} |
---|
2140 | { (exit 1); exit 1; }; };; |
---|
2141 | esac |
---|
2142 | build=$ac_cv_build |
---|
2143 | ac_save_IFS=$IFS; IFS='-' |
---|
2144 | set x $ac_cv_build |
---|
2145 | shift |
---|
2146 | build_cpu=$1 |
---|
2147 | build_vendor=$2 |
---|
2148 | shift; shift |
---|
2149 | # Remember, the first character of IFS is used to create $*, |
---|
2150 | # except with old shells: |
---|
2151 | build_os=$* |
---|
2152 | IFS=$ac_save_IFS |
---|
2153 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
2154 | |
---|
2155 | |
---|
2156 | { echo "$as_me:$LINENO: checking host system type" >&5 |
---|
2157 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
---|
2158 | if test "${ac_cv_host+set}" = set; then |
---|
2159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2160 | else |
---|
2161 | if test "x$host_alias" = x; then |
---|
2162 | ac_cv_host=$ac_cv_build |
---|
2163 | else |
---|
2164 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
2165 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
---|
2166 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
---|
2167 | { (exit 1); exit 1; }; } |
---|
2168 | fi |
---|
2169 | |
---|
2170 | fi |
---|
2171 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
2172 | echo "${ECHO_T}$ac_cv_host" >&6; } |
---|
2173 | case $ac_cv_host in |
---|
2174 | *-*-*) ;; |
---|
2175 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
---|
2176 | echo "$as_me: error: invalid value of canonical host" >&2;} |
---|
2177 | { (exit 1); exit 1; }; };; |
---|
2178 | esac |
---|
2179 | host=$ac_cv_host |
---|
2180 | ac_save_IFS=$IFS; IFS='-' |
---|
2181 | set x $ac_cv_host |
---|
2182 | shift |
---|
2183 | host_cpu=$1 |
---|
2184 | host_vendor=$2 |
---|
2185 | shift; shift |
---|
2186 | # Remember, the first character of IFS is used to create $*, |
---|
2187 | # except with old shells: |
---|
2188 | host_os=$* |
---|
2189 | IFS=$ac_save_IFS |
---|
2190 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
2191 | |
---|
2192 | |
---|
2193 | { echo "$as_me:$LINENO: checking target system type" >&5 |
---|
2194 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
---|
2195 | if test "${ac_cv_target+set}" = set; then |
---|
2196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2197 | else |
---|
2198 | if test "x$target_alias" = x; then |
---|
2199 | ac_cv_target=$ac_cv_host |
---|
2200 | else |
---|
2201 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
---|
2202 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
---|
2203 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
---|
2204 | { (exit 1); exit 1; }; } |
---|
2205 | fi |
---|
2206 | |
---|
2207 | fi |
---|
2208 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
2209 | echo "${ECHO_T}$ac_cv_target" >&6; } |
---|
2210 | case $ac_cv_target in |
---|
2211 | *-*-*) ;; |
---|
2212 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
---|
2213 | echo "$as_me: error: invalid value of canonical target" >&2;} |
---|
2214 | { (exit 1); exit 1; }; };; |
---|
2215 | esac |
---|
2216 | target=$ac_cv_target |
---|
2217 | ac_save_IFS=$IFS; IFS='-' |
---|
2218 | set x $ac_cv_target |
---|
2219 | shift |
---|
2220 | target_cpu=$1 |
---|
2221 | target_vendor=$2 |
---|
2222 | shift; shift |
---|
2223 | # Remember, the first character of IFS is used to create $*, |
---|
2224 | # except with old shells: |
---|
2225 | target_os=$* |
---|
2226 | IFS=$ac_save_IFS |
---|
2227 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
---|
2228 | |
---|
2229 | |
---|
2230 | # The aliases save the names the user supplied, while $host etc. |
---|
2231 | # will get canonicalized. |
---|
2232 | test -n "$target_alias" && |
---|
2233 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
2234 | NONENONEs,x,x, && |
---|
2235 | program_prefix=${target_alias}- |
---|
2236 | |
---|
2237 | # New syntax; PACKAGE gets defined as 'OGRE' not 'ogre' |
---|
2238 | #AM_INIT_AUTOMAKE([OGRE], 1.4.5) |
---|
2239 | am__api_version='1.10' |
---|
2240 | |
---|
2241 | # Find a good install program. We prefer a C program (faster), |
---|
2242 | # so one script is as good as another. But avoid the broken or |
---|
2243 | # incompatible versions: |
---|
2244 | # SysV /etc/install, /usr/sbin/install |
---|
2245 | # SunOS /usr/etc/install |
---|
2246 | # IRIX /sbin/install |
---|
2247 | # AIX /bin/install |
---|
2248 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2249 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2250 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2251 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2252 | # OS/2's system install, which has a completely different semantic |
---|
2253 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2254 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
2255 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
---|
2256 | if test -z "$INSTALL"; then |
---|
2257 | if test "${ac_cv_path_install+set}" = set; then |
---|
2258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2259 | else |
---|
2260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2261 | for as_dir in $PATH |
---|
2262 | do |
---|
2263 | IFS=$as_save_IFS |
---|
2264 | test -z "$as_dir" && as_dir=. |
---|
2265 | # Account for people who put trailing slashes in PATH elements. |
---|
2266 | case $as_dir/ in |
---|
2267 | ./ | .// | /cC/* | \ |
---|
2268 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2269 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
2270 | /usr/ucb/* ) ;; |
---|
2271 | *) |
---|
2272 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2273 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2274 | # by default. |
---|
2275 | for ac_prog in ginstall scoinst install; do |
---|
2276 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2277 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2278 | if test $ac_prog = install && |
---|
2279 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2280 | # AIX install. It has an incompatible calling convention. |
---|
2281 | : |
---|
2282 | elif test $ac_prog = install && |
---|
2283 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2284 | # program-specific install script used by HP pwplus--don't use. |
---|
2285 | : |
---|
2286 | else |
---|
2287 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2288 | break 3 |
---|
2289 | fi |
---|
2290 | fi |
---|
2291 | done |
---|
2292 | done |
---|
2293 | ;; |
---|
2294 | esac |
---|
2295 | done |
---|
2296 | IFS=$as_save_IFS |
---|
2297 | |
---|
2298 | |
---|
2299 | fi |
---|
2300 | if test "${ac_cv_path_install+set}" = set; then |
---|
2301 | INSTALL=$ac_cv_path_install |
---|
2302 | else |
---|
2303 | # As a last resort, use the slow shell script. Don't cache a |
---|
2304 | # value for INSTALL within a source directory, because that will |
---|
2305 | # break other packages using the cache if that directory is |
---|
2306 | # removed, or if the value is a relative name. |
---|
2307 | INSTALL=$ac_install_sh |
---|
2308 | fi |
---|
2309 | fi |
---|
2310 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
2311 | echo "${ECHO_T}$INSTALL" >&6; } |
---|
2312 | |
---|
2313 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2314 | # It thinks the first close brace ends the variable substitution. |
---|
2315 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2316 | |
---|
2317 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2318 | |
---|
2319 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2320 | |
---|
2321 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
2322 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
---|
2323 | # Just in case |
---|
2324 | sleep 1 |
---|
2325 | echo timestamp > conftest.file |
---|
2326 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
2327 | # arguments. Must try -L first in case configure is actually a |
---|
2328 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2329 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2330 | # directory). |
---|
2331 | if ( |
---|
2332 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
2333 | if test "$*" = "X"; then |
---|
2334 | # -L didn't work. |
---|
2335 | set X `ls -t $srcdir/configure conftest.file` |
---|
2336 | fi |
---|
2337 | rm -f conftest.file |
---|
2338 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2339 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2340 | |
---|
2341 | # If neither matched, then we have a broken ls. This can happen |
---|
2342 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2343 | # broken ls alias from the environment. This has actually |
---|
2344 | # happened. Such a system could not be considered "sane". |
---|
2345 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
2346 | alias in your environment" >&5 |
---|
2347 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
2348 | alias in your environment" >&2;} |
---|
2349 | { (exit 1); exit 1; }; } |
---|
2350 | fi |
---|
2351 | |
---|
2352 | test "$2" = conftest.file |
---|
2353 | ) |
---|
2354 | then |
---|
2355 | # Ok. |
---|
2356 | : |
---|
2357 | else |
---|
2358 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
2359 | Check your system clock" >&5 |
---|
2360 | echo "$as_me: error: newly created file is older than distributed files! |
---|
2361 | Check your system clock" >&2;} |
---|
2362 | { (exit 1); exit 1; }; } |
---|
2363 | fi |
---|
2364 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
2365 | echo "${ECHO_T}yes" >&6; } |
---|
2366 | test "$program_prefix" != NONE && |
---|
2367 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2368 | # Use a double $ so make ignores it. |
---|
2369 | test "$program_suffix" != NONE && |
---|
2370 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2371 | # Double any \ or $. echo might interpret backslashes. |
---|
2372 | # By default was `s,x,x', remove it if useless. |
---|
2373 | cat <<\_ACEOF >conftest.sed |
---|
2374 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
2375 | _ACEOF |
---|
2376 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
2377 | rm -f conftest.sed |
---|
2378 | |
---|
2379 | # expand $ac_aux_dir to an absolute path |
---|
2380 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
2381 | |
---|
2382 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
2383 | # Use eval to expand $SHELL |
---|
2384 | if eval "$MISSING --run true"; then |
---|
2385 | am_missing_run="$MISSING --run " |
---|
2386 | else |
---|
2387 | am_missing_run= |
---|
2388 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
2389 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
2390 | fi |
---|
2391 | |
---|
2392 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
---|
2393 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
---|
2394 | if test -z "$MKDIR_P"; then |
---|
2395 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2397 | else |
---|
2398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2399 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2400 | do |
---|
2401 | IFS=$as_save_IFS |
---|
2402 | test -z "$as_dir" && as_dir=. |
---|
2403 | for ac_prog in mkdir gmkdir; do |
---|
2404 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2405 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
---|
2406 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2407 | 'mkdir (GNU coreutils) '* | \ |
---|
2408 | 'mkdir (coreutils) '* | \ |
---|
2409 | 'mkdir (fileutils) '4.1*) |
---|
2410 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2411 | break 3;; |
---|
2412 | esac |
---|
2413 | done |
---|
2414 | done |
---|
2415 | done |
---|
2416 | IFS=$as_save_IFS |
---|
2417 | |
---|
2418 | fi |
---|
2419 | |
---|
2420 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2421 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2422 | else |
---|
2423 | # As a last resort, use the slow shell script. Don't cache a |
---|
2424 | # value for MKDIR_P within a source directory, because that will |
---|
2425 | # break other packages using the cache if that directory is |
---|
2426 | # removed, or if the value is a relative name. |
---|
2427 | test -d ./--version && rmdir ./--version |
---|
2428 | MKDIR_P="$ac_install_sh -d" |
---|
2429 | fi |
---|
2430 | fi |
---|
2431 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
---|
2432 | echo "${ECHO_T}$MKDIR_P" >&6; } |
---|
2433 | |
---|
2434 | mkdir_p="$MKDIR_P" |
---|
2435 | case $mkdir_p in |
---|
2436 | [\\/$]* | ?:[\\/]*) ;; |
---|
2437 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
---|
2438 | esac |
---|
2439 | |
---|
2440 | for ac_prog in gawk mawk nawk awk |
---|
2441 | do |
---|
2442 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2443 | set dummy $ac_prog; ac_word=$2 |
---|
2444 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2446 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
2447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2448 | else |
---|
2449 | if test -n "$AWK"; then |
---|
2450 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2451 | else |
---|
2452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2453 | for as_dir in $PATH |
---|
2454 | do |
---|
2455 | IFS=$as_save_IFS |
---|
2456 | test -z "$as_dir" && as_dir=. |
---|
2457 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2459 | ac_cv_prog_AWK="$ac_prog" |
---|
2460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2461 | break 2 |
---|
2462 | fi |
---|
2463 | done |
---|
2464 | done |
---|
2465 | IFS=$as_save_IFS |
---|
2466 | |
---|
2467 | fi |
---|
2468 | fi |
---|
2469 | AWK=$ac_cv_prog_AWK |
---|
2470 | if test -n "$AWK"; then |
---|
2471 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
2472 | echo "${ECHO_T}$AWK" >&6; } |
---|
2473 | else |
---|
2474 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2475 | echo "${ECHO_T}no" >&6; } |
---|
2476 | fi |
---|
2477 | |
---|
2478 | |
---|
2479 | test -n "$AWK" && break |
---|
2480 | done |
---|
2481 | |
---|
2482 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2483 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
---|
2484 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2485 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
2486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2487 | else |
---|
2488 | cat >conftest.make <<\_ACEOF |
---|
2489 | SHELL = /bin/sh |
---|
2490 | all: |
---|
2491 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2492 | _ACEOF |
---|
2493 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
2494 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2495 | *@@@%%%=?*=@@@%%%*) |
---|
2496 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2497 | *) |
---|
2498 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2499 | esac |
---|
2500 | rm -f conftest.make |
---|
2501 | fi |
---|
2502 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2503 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
2504 | echo "${ECHO_T}yes" >&6; } |
---|
2505 | SET_MAKE= |
---|
2506 | else |
---|
2507 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2508 | echo "${ECHO_T}no" >&6; } |
---|
2509 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2510 | fi |
---|
2511 | |
---|
2512 | rm -rf .tst 2>/dev/null |
---|
2513 | mkdir .tst 2>/dev/null |
---|
2514 | if test -d .tst; then |
---|
2515 | am__leading_dot=. |
---|
2516 | else |
---|
2517 | am__leading_dot=_ |
---|
2518 | fi |
---|
2519 | rmdir .tst 2>/dev/null |
---|
2520 | |
---|
2521 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
2522 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
2523 | # is not polluted with repeated "-I." |
---|
2524 | am__isrc=' -I$(srcdir)' |
---|
2525 | # test to see if srcdir already configured |
---|
2526 | if test -f $srcdir/config.status; then |
---|
2527 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
2528 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
2529 | { (exit 1); exit 1; }; } |
---|
2530 | fi |
---|
2531 | fi |
---|
2532 | |
---|
2533 | # test whether we have cygpath |
---|
2534 | if test -z "$CYGPATH_W"; then |
---|
2535 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2536 | CYGPATH_W='cygpath -w' |
---|
2537 | else |
---|
2538 | CYGPATH_W=echo |
---|
2539 | fi |
---|
2540 | fi |
---|
2541 | |
---|
2542 | |
---|
2543 | # Define the identity of the package. |
---|
2544 | PACKAGE=OGRE |
---|
2545 | VERSION=1.4.5 |
---|
2546 | |
---|
2547 | |
---|
2548 | cat >>confdefs.h <<_ACEOF |
---|
2549 | #define PACKAGE "$PACKAGE" |
---|
2550 | _ACEOF |
---|
2551 | |
---|
2552 | |
---|
2553 | cat >>confdefs.h <<_ACEOF |
---|
2554 | #define VERSION "$VERSION" |
---|
2555 | _ACEOF |
---|
2556 | |
---|
2557 | # Some tools Automake needs. |
---|
2558 | |
---|
2559 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2560 | |
---|
2561 | |
---|
2562 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2563 | |
---|
2564 | |
---|
2565 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
2566 | |
---|
2567 | |
---|
2568 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
2569 | |
---|
2570 | |
---|
2571 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
2572 | |
---|
2573 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
---|
2574 | |
---|
2575 | # Installed binaries are usually stripped using `strip' when the user |
---|
2576 | # run `make install-strip'. However `strip' might not be the right |
---|
2577 | # tool to use in cross-compilation environments, therefore Automake |
---|
2578 | # will honor the `STRIP' environment variable to overrule this program. |
---|
2579 | if test "$cross_compiling" != no; then |
---|
2580 | if test -n "$ac_tool_prefix"; then |
---|
2581 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2582 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2583 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2585 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
2586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2587 | else |
---|
2588 | if test -n "$STRIP"; then |
---|
2589 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2590 | else |
---|
2591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2592 | for as_dir in $PATH |
---|
2593 | do |
---|
2594 | IFS=$as_save_IFS |
---|
2595 | test -z "$as_dir" && as_dir=. |
---|
2596 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2598 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2600 | break 2 |
---|
2601 | fi |
---|
2602 | done |
---|
2603 | done |
---|
2604 | IFS=$as_save_IFS |
---|
2605 | |
---|
2606 | fi |
---|
2607 | fi |
---|
2608 | STRIP=$ac_cv_prog_STRIP |
---|
2609 | if test -n "$STRIP"; then |
---|
2610 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
2611 | echo "${ECHO_T}$STRIP" >&6; } |
---|
2612 | else |
---|
2613 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2614 | echo "${ECHO_T}no" >&6; } |
---|
2615 | fi |
---|
2616 | |
---|
2617 | |
---|
2618 | fi |
---|
2619 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2620 | ac_ct_STRIP=$STRIP |
---|
2621 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2622 | set dummy strip; ac_word=$2 |
---|
2623 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2625 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
2626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2627 | else |
---|
2628 | if test -n "$ac_ct_STRIP"; then |
---|
2629 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2630 | else |
---|
2631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2632 | for as_dir in $PATH |
---|
2633 | do |
---|
2634 | IFS=$as_save_IFS |
---|
2635 | test -z "$as_dir" && as_dir=. |
---|
2636 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2638 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2640 | break 2 |
---|
2641 | fi |
---|
2642 | done |
---|
2643 | done |
---|
2644 | IFS=$as_save_IFS |
---|
2645 | |
---|
2646 | fi |
---|
2647 | fi |
---|
2648 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2649 | if test -n "$ac_ct_STRIP"; then |
---|
2650 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
2651 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
---|
2652 | else |
---|
2653 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2654 | echo "${ECHO_T}no" >&6; } |
---|
2655 | fi |
---|
2656 | |
---|
2657 | if test "x$ac_ct_STRIP" = x; then |
---|
2658 | STRIP=":" |
---|
2659 | else |
---|
2660 | case $cross_compiling:$ac_tool_warned in |
---|
2661 | yes:) |
---|
2662 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2663 | whose name does not start with the host triplet. If you think this |
---|
2664 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
2665 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2666 | whose name does not start with the host triplet. If you think this |
---|
2667 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
2668 | ac_tool_warned=yes ;; |
---|
2669 | esac |
---|
2670 | STRIP=$ac_ct_STRIP |
---|
2671 | fi |
---|
2672 | else |
---|
2673 | STRIP="$ac_cv_prog_STRIP" |
---|
2674 | fi |
---|
2675 | |
---|
2676 | fi |
---|
2677 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
2678 | |
---|
2679 | # We need awk for the "check" target. The system "awk" is bad on |
---|
2680 | # some platforms. |
---|
2681 | # Always define AMTAR for backward compatibility. |
---|
2682 | |
---|
2683 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
2684 | |
---|
2685 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
2686 | |
---|
2687 | |
---|
2688 | |
---|
2689 | |
---|
2690 | |
---|
2691 | ac_config_headers="$ac_config_headers OgreMain/include/config.h" |
---|
2692 | |
---|
2693 | |
---|
2694 | ac_ext=c |
---|
2695 | ac_cpp='$CPP $CPPFLAGS' |
---|
2696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2699 | if test -n "$ac_tool_prefix"; then |
---|
2700 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2701 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2702 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2704 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2706 | else |
---|
2707 | if test -n "$CC"; then |
---|
2708 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2709 | else |
---|
2710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2711 | for as_dir in $PATH |
---|
2712 | do |
---|
2713 | IFS=$as_save_IFS |
---|
2714 | test -z "$as_dir" && as_dir=. |
---|
2715 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2717 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2719 | break 2 |
---|
2720 | fi |
---|
2721 | done |
---|
2722 | done |
---|
2723 | IFS=$as_save_IFS |
---|
2724 | |
---|
2725 | fi |
---|
2726 | fi |
---|
2727 | CC=$ac_cv_prog_CC |
---|
2728 | if test -n "$CC"; then |
---|
2729 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2730 | echo "${ECHO_T}$CC" >&6; } |
---|
2731 | else |
---|
2732 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2733 | echo "${ECHO_T}no" >&6; } |
---|
2734 | fi |
---|
2735 | |
---|
2736 | |
---|
2737 | fi |
---|
2738 | if test -z "$ac_cv_prog_CC"; then |
---|
2739 | ac_ct_CC=$CC |
---|
2740 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2741 | set dummy gcc; ac_word=$2 |
---|
2742 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2744 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2746 | else |
---|
2747 | if test -n "$ac_ct_CC"; then |
---|
2748 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2749 | else |
---|
2750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2751 | for as_dir in $PATH |
---|
2752 | do |
---|
2753 | IFS=$as_save_IFS |
---|
2754 | test -z "$as_dir" && as_dir=. |
---|
2755 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2757 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2759 | break 2 |
---|
2760 | fi |
---|
2761 | done |
---|
2762 | done |
---|
2763 | IFS=$as_save_IFS |
---|
2764 | |
---|
2765 | fi |
---|
2766 | fi |
---|
2767 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2768 | if test -n "$ac_ct_CC"; then |
---|
2769 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2770 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
2771 | else |
---|
2772 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2773 | echo "${ECHO_T}no" >&6; } |
---|
2774 | fi |
---|
2775 | |
---|
2776 | if test "x$ac_ct_CC" = x; then |
---|
2777 | CC="" |
---|
2778 | else |
---|
2779 | case $cross_compiling:$ac_tool_warned in |
---|
2780 | yes:) |
---|
2781 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2782 | whose name does not start with the host triplet. If you think this |
---|
2783 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
2784 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2785 | whose name does not start with the host triplet. If you think this |
---|
2786 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
2787 | ac_tool_warned=yes ;; |
---|
2788 | esac |
---|
2789 | CC=$ac_ct_CC |
---|
2790 | fi |
---|
2791 | else |
---|
2792 | CC="$ac_cv_prog_CC" |
---|
2793 | fi |
---|
2794 | |
---|
2795 | if test -z "$CC"; then |
---|
2796 | if test -n "$ac_tool_prefix"; then |
---|
2797 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2798 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2799 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2801 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2803 | else |
---|
2804 | if test -n "$CC"; then |
---|
2805 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2806 | else |
---|
2807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2808 | for as_dir in $PATH |
---|
2809 | do |
---|
2810 | IFS=$as_save_IFS |
---|
2811 | test -z "$as_dir" && as_dir=. |
---|
2812 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2814 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2816 | break 2 |
---|
2817 | fi |
---|
2818 | done |
---|
2819 | done |
---|
2820 | IFS=$as_save_IFS |
---|
2821 | |
---|
2822 | fi |
---|
2823 | fi |
---|
2824 | CC=$ac_cv_prog_CC |
---|
2825 | if test -n "$CC"; then |
---|
2826 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2827 | echo "${ECHO_T}$CC" >&6; } |
---|
2828 | else |
---|
2829 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2830 | echo "${ECHO_T}no" >&6; } |
---|
2831 | fi |
---|
2832 | |
---|
2833 | |
---|
2834 | fi |
---|
2835 | fi |
---|
2836 | if test -z "$CC"; then |
---|
2837 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2838 | set dummy cc; ac_word=$2 |
---|
2839 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2841 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2843 | else |
---|
2844 | if test -n "$CC"; then |
---|
2845 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2846 | else |
---|
2847 | ac_prog_rejected=no |
---|
2848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2849 | for as_dir in $PATH |
---|
2850 | do |
---|
2851 | IFS=$as_save_IFS |
---|
2852 | test -z "$as_dir" && as_dir=. |
---|
2853 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2855 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2856 | ac_prog_rejected=yes |
---|
2857 | continue |
---|
2858 | fi |
---|
2859 | ac_cv_prog_CC="cc" |
---|
2860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2861 | break 2 |
---|
2862 | fi |
---|
2863 | done |
---|
2864 | done |
---|
2865 | IFS=$as_save_IFS |
---|
2866 | |
---|
2867 | if test $ac_prog_rejected = yes; then |
---|
2868 | # We found a bogon in the path, so make sure we never use it. |
---|
2869 | set dummy $ac_cv_prog_CC |
---|
2870 | shift |
---|
2871 | if test $# != 0; then |
---|
2872 | # We chose a different compiler from the bogus one. |
---|
2873 | # However, it has the same basename, so the bogon will be chosen |
---|
2874 | # first if we set CC to just the basename; use the full file name. |
---|
2875 | shift |
---|
2876 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2877 | fi |
---|
2878 | fi |
---|
2879 | fi |
---|
2880 | fi |
---|
2881 | CC=$ac_cv_prog_CC |
---|
2882 | if test -n "$CC"; then |
---|
2883 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2884 | echo "${ECHO_T}$CC" >&6; } |
---|
2885 | else |
---|
2886 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2887 | echo "${ECHO_T}no" >&6; } |
---|
2888 | fi |
---|
2889 | |
---|
2890 | |
---|
2891 | fi |
---|
2892 | if test -z "$CC"; then |
---|
2893 | if test -n "$ac_tool_prefix"; then |
---|
2894 | for ac_prog in cl.exe |
---|
2895 | do |
---|
2896 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2897 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2898 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2900 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2902 | else |
---|
2903 | if test -n "$CC"; then |
---|
2904 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2905 | else |
---|
2906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2907 | for as_dir in $PATH |
---|
2908 | do |
---|
2909 | IFS=$as_save_IFS |
---|
2910 | test -z "$as_dir" && as_dir=. |
---|
2911 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2913 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2915 | break 2 |
---|
2916 | fi |
---|
2917 | done |
---|
2918 | done |
---|
2919 | IFS=$as_save_IFS |
---|
2920 | |
---|
2921 | fi |
---|
2922 | fi |
---|
2923 | CC=$ac_cv_prog_CC |
---|
2924 | if test -n "$CC"; then |
---|
2925 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2926 | echo "${ECHO_T}$CC" >&6; } |
---|
2927 | else |
---|
2928 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2929 | echo "${ECHO_T}no" >&6; } |
---|
2930 | fi |
---|
2931 | |
---|
2932 | |
---|
2933 | test -n "$CC" && break |
---|
2934 | done |
---|
2935 | fi |
---|
2936 | if test -z "$CC"; then |
---|
2937 | ac_ct_CC=$CC |
---|
2938 | for ac_prog in cl.exe |
---|
2939 | do |
---|
2940 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2941 | set dummy $ac_prog; ac_word=$2 |
---|
2942 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2944 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2946 | else |
---|
2947 | if test -n "$ac_ct_CC"; then |
---|
2948 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2949 | else |
---|
2950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2951 | for as_dir in $PATH |
---|
2952 | do |
---|
2953 | IFS=$as_save_IFS |
---|
2954 | test -z "$as_dir" && as_dir=. |
---|
2955 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2956 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2957 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2959 | break 2 |
---|
2960 | fi |
---|
2961 | done |
---|
2962 | done |
---|
2963 | IFS=$as_save_IFS |
---|
2964 | |
---|
2965 | fi |
---|
2966 | fi |
---|
2967 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2968 | if test -n "$ac_ct_CC"; then |
---|
2969 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2970 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
2971 | else |
---|
2972 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2973 | echo "${ECHO_T}no" >&6; } |
---|
2974 | fi |
---|
2975 | |
---|
2976 | |
---|
2977 | test -n "$ac_ct_CC" && break |
---|
2978 | done |
---|
2979 | |
---|
2980 | if test "x$ac_ct_CC" = x; then |
---|
2981 | CC="" |
---|
2982 | else |
---|
2983 | case $cross_compiling:$ac_tool_warned in |
---|
2984 | yes:) |
---|
2985 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2986 | whose name does not start with the host triplet. If you think this |
---|
2987 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
2988 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2989 | whose name does not start with the host triplet. If you think this |
---|
2990 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
2991 | ac_tool_warned=yes ;; |
---|
2992 | esac |
---|
2993 | CC=$ac_ct_CC |
---|
2994 | fi |
---|
2995 | fi |
---|
2996 | |
---|
2997 | fi |
---|
2998 | |
---|
2999 | |
---|
3000 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
3001 | See \`config.log' for more details." >&5 |
---|
3002 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
3003 | See \`config.log' for more details." >&2;} |
---|
3004 | { (exit 1); exit 1; }; } |
---|
3005 | |
---|
3006 | # Provide some information about the compiler. |
---|
3007 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
---|
3008 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3009 | { (ac_try="$ac_compiler --version >&5" |
---|
3010 | case "(($ac_try" in |
---|
3011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3012 | *) ac_try_echo=$ac_try;; |
---|
3013 | esac |
---|
3014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3015 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
3016 | ac_status=$? |
---|
3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3018 | (exit $ac_status); } |
---|
3019 | { (ac_try="$ac_compiler -v >&5" |
---|
3020 | case "(($ac_try" in |
---|
3021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3022 | *) ac_try_echo=$ac_try;; |
---|
3023 | esac |
---|
3024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3025 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
3026 | ac_status=$? |
---|
3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3028 | (exit $ac_status); } |
---|
3029 | { (ac_try="$ac_compiler -V >&5" |
---|
3030 | case "(($ac_try" in |
---|
3031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3032 | *) ac_try_echo=$ac_try;; |
---|
3033 | esac |
---|
3034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3035 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
3036 | ac_status=$? |
---|
3037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3038 | (exit $ac_status); } |
---|
3039 | |
---|
3040 | cat >conftest.$ac_ext <<_ACEOF |
---|
3041 | /* confdefs.h. */ |
---|
3042 | _ACEOF |
---|
3043 | cat confdefs.h >>conftest.$ac_ext |
---|
3044 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3045 | /* end confdefs.h. */ |
---|
3046 | |
---|
3047 | int |
---|
3048 | main () |
---|
3049 | { |
---|
3050 | |
---|
3051 | ; |
---|
3052 | return 0; |
---|
3053 | } |
---|
3054 | _ACEOF |
---|
3055 | ac_clean_files_save=$ac_clean_files |
---|
3056 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
3057 | # Try to create an executable without -o first, disregard a.out. |
---|
3058 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3059 | # of exeext. |
---|
3060 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
3061 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
---|
3062 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3063 | # |
---|
3064 | # List of possible output files, starting from the most likely. |
---|
3065 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
---|
3066 | # only as a last resort. b.out is created by i960 compilers. |
---|
3067 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
---|
3068 | # |
---|
3069 | # The IRIX 6 linker writes into existing files which may not be |
---|
3070 | # executable, retaining their permissions. Remove them first so a |
---|
3071 | # subsequent execution test works. |
---|
3072 | ac_rmfiles= |
---|
3073 | for ac_file in $ac_files |
---|
3074 | do |
---|
3075 | case $ac_file in |
---|
3076 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
3077 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3078 | esac |
---|
3079 | done |
---|
3080 | rm -f $ac_rmfiles |
---|
3081 | |
---|
3082 | if { (ac_try="$ac_link_default" |
---|
3083 | case "(($ac_try" in |
---|
3084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3085 | *) ac_try_echo=$ac_try;; |
---|
3086 | esac |
---|
3087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3088 | (eval "$ac_link_default") 2>&5 |
---|
3089 | ac_status=$? |
---|
3090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3091 | (exit $ac_status); }; then |
---|
3092 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3093 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3094 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3095 | # so that the user can short-circuit this test for compilers unknown to |
---|
3096 | # Autoconf. |
---|
3097 | for ac_file in $ac_files '' |
---|
3098 | do |
---|
3099 | test -f "$ac_file" || continue |
---|
3100 | case $ac_file in |
---|
3101 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
---|
3102 | ;; |
---|
3103 | [ab].out ) |
---|
3104 | # We found the default executable, but exeext='' is most |
---|
3105 | # certainly right. |
---|
3106 | break;; |
---|
3107 | *.* ) |
---|
3108 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3109 | then :; else |
---|
3110 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3111 | fi |
---|
3112 | # We set ac_cv_exeext here because the later test for it is not |
---|
3113 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3114 | # argument, so we may need to know it at that point already. |
---|
3115 | # Even if this section looks crufty: it has the advantage of |
---|
3116 | # actually working. |
---|
3117 | break;; |
---|
3118 | * ) |
---|
3119 | break;; |
---|
3120 | esac |
---|
3121 | done |
---|
3122 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3123 | |
---|
3124 | else |
---|
3125 | ac_file='' |
---|
3126 | fi |
---|
3127 | |
---|
3128 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
3129 | echo "${ECHO_T}$ac_file" >&6; } |
---|
3130 | if test -z "$ac_file"; then |
---|
3131 | echo "$as_me: failed program was:" >&5 |
---|
3132 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3133 | |
---|
3134 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
3135 | See \`config.log' for more details." >&5 |
---|
3136 | echo "$as_me: error: C compiler cannot create executables |
---|
3137 | See \`config.log' for more details." >&2;} |
---|
3138 | { (exit 77); exit 77; }; } |
---|
3139 | fi |
---|
3140 | |
---|
3141 | ac_exeext=$ac_cv_exeext |
---|
3142 | |
---|
3143 | # Check that the compiler produces executables we can run. If not, either |
---|
3144 | # the compiler is broken, or we cross compile. |
---|
3145 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
3146 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
---|
3147 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
3148 | # If not cross compiling, check that we can run a simple program. |
---|
3149 | if test "$cross_compiling" != yes; then |
---|
3150 | if { ac_try='./$ac_file' |
---|
3151 | { (case "(($ac_try" in |
---|
3152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3153 | *) ac_try_echo=$ac_try;; |
---|
3154 | esac |
---|
3155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3156 | (eval "$ac_try") 2>&5 |
---|
3157 | ac_status=$? |
---|
3158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3159 | (exit $ac_status); }; }; then |
---|
3160 | cross_compiling=no |
---|
3161 | else |
---|
3162 | if test "$cross_compiling" = maybe; then |
---|
3163 | cross_compiling=yes |
---|
3164 | else |
---|
3165 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
3166 | If you meant to cross compile, use \`--host'. |
---|
3167 | See \`config.log' for more details." >&5 |
---|
3168 | echo "$as_me: error: cannot run C compiled programs. |
---|
3169 | If you meant to cross compile, use \`--host'. |
---|
3170 | See \`config.log' for more details." >&2;} |
---|
3171 | { (exit 1); exit 1; }; } |
---|
3172 | fi |
---|
3173 | fi |
---|
3174 | fi |
---|
3175 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
3176 | echo "${ECHO_T}yes" >&6; } |
---|
3177 | |
---|
3178 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
3179 | ac_clean_files=$ac_clean_files_save |
---|
3180 | # Check that the compiler produces executables we can run. If not, either |
---|
3181 | # the compiler is broken, or we cross compile. |
---|
3182 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
3183 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
---|
3184 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
3185 | echo "${ECHO_T}$cross_compiling" >&6; } |
---|
3186 | |
---|
3187 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
3188 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
---|
3189 | if { (ac_try="$ac_link" |
---|
3190 | case "(($ac_try" in |
---|
3191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3192 | *) ac_try_echo=$ac_try;; |
---|
3193 | esac |
---|
3194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3195 | (eval "$ac_link") 2>&5 |
---|
3196 | ac_status=$? |
---|
3197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3198 | (exit $ac_status); }; then |
---|
3199 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3200 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3201 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3202 | # `rm'. |
---|
3203 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3204 | test -f "$ac_file" || continue |
---|
3205 | case $ac_file in |
---|
3206 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
3207 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3208 | break;; |
---|
3209 | * ) break;; |
---|
3210 | esac |
---|
3211 | done |
---|
3212 | else |
---|
3213 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
3214 | See \`config.log' for more details." >&5 |
---|
3215 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
3216 | See \`config.log' for more details." >&2;} |
---|
3217 | { (exit 1); exit 1; }; } |
---|
3218 | fi |
---|
3219 | |
---|
3220 | rm -f conftest$ac_cv_exeext |
---|
3221 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
3222 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
---|
3223 | |
---|
3224 | rm -f conftest.$ac_ext |
---|
3225 | EXEEXT=$ac_cv_exeext |
---|
3226 | ac_exeext=$EXEEXT |
---|
3227 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
3228 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
---|
3229 | if test "${ac_cv_objext+set}" = set; then |
---|
3230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3231 | else |
---|
3232 | cat >conftest.$ac_ext <<_ACEOF |
---|
3233 | /* confdefs.h. */ |
---|
3234 | _ACEOF |
---|
3235 | cat confdefs.h >>conftest.$ac_ext |
---|
3236 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3237 | /* end confdefs.h. */ |
---|
3238 | |
---|
3239 | int |
---|
3240 | main () |
---|
3241 | { |
---|
3242 | |
---|
3243 | ; |
---|
3244 | return 0; |
---|
3245 | } |
---|
3246 | _ACEOF |
---|
3247 | rm -f conftest.o conftest.obj |
---|
3248 | if { (ac_try="$ac_compile" |
---|
3249 | case "(($ac_try" in |
---|
3250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3251 | *) ac_try_echo=$ac_try;; |
---|
3252 | esac |
---|
3253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3254 | (eval "$ac_compile") 2>&5 |
---|
3255 | ac_status=$? |
---|
3256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3257 | (exit $ac_status); }; then |
---|
3258 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3259 | test -f "$ac_file" || continue; |
---|
3260 | case $ac_file in |
---|
3261 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
---|
3262 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3263 | break;; |
---|
3264 | esac |
---|
3265 | done |
---|
3266 | else |
---|
3267 | echo "$as_me: failed program was:" >&5 |
---|
3268 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3269 | |
---|
3270 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
3271 | See \`config.log' for more details." >&5 |
---|
3272 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
3273 | See \`config.log' for more details." >&2;} |
---|
3274 | { (exit 1); exit 1; }; } |
---|
3275 | fi |
---|
3276 | |
---|
3277 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3278 | fi |
---|
3279 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
3280 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
---|
3281 | OBJEXT=$ac_cv_objext |
---|
3282 | ac_objext=$OBJEXT |
---|
3283 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
3284 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
---|
3285 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
3286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3287 | else |
---|
3288 | cat >conftest.$ac_ext <<_ACEOF |
---|
3289 | /* confdefs.h. */ |
---|
3290 | _ACEOF |
---|
3291 | cat confdefs.h >>conftest.$ac_ext |
---|
3292 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3293 | /* end confdefs.h. */ |
---|
3294 | |
---|
3295 | int |
---|
3296 | main () |
---|
3297 | { |
---|
3298 | #ifndef __GNUC__ |
---|
3299 | choke me |
---|
3300 | #endif |
---|
3301 | |
---|
3302 | ; |
---|
3303 | return 0; |
---|
3304 | } |
---|
3305 | _ACEOF |
---|
3306 | rm -f conftest.$ac_objext |
---|
3307 | if { (ac_try="$ac_compile" |
---|
3308 | case "(($ac_try" in |
---|
3309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3310 | *) ac_try_echo=$ac_try;; |
---|
3311 | esac |
---|
3312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3313 | (eval "$ac_compile") 2>conftest.er1 |
---|
3314 | ac_status=$? |
---|
3315 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3316 | rm -f conftest.er1 |
---|
3317 | cat conftest.err >&5 |
---|
3318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3319 | (exit $ac_status); } && { |
---|
3320 | test -z "$ac_c_werror_flag" || |
---|
3321 | test ! -s conftest.err |
---|
3322 | } && test -s conftest.$ac_objext; then |
---|
3323 | ac_compiler_gnu=yes |
---|
3324 | else |
---|
3325 | echo "$as_me: failed program was:" >&5 |
---|
3326 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3327 | |
---|
3328 | ac_compiler_gnu=no |
---|
3329 | fi |
---|
3330 | |
---|
3331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3332 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3333 | |
---|
3334 | fi |
---|
3335 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3336 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
---|
3337 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
3338 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3339 | ac_save_CFLAGS=$CFLAGS |
---|
3340 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
3341 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
---|
3342 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
3343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3344 | else |
---|
3345 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3346 | ac_c_werror_flag=yes |
---|
3347 | ac_cv_prog_cc_g=no |
---|
3348 | CFLAGS="-g" |
---|
3349 | cat >conftest.$ac_ext <<_ACEOF |
---|
3350 | /* confdefs.h. */ |
---|
3351 | _ACEOF |
---|
3352 | cat confdefs.h >>conftest.$ac_ext |
---|
3353 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3354 | /* end confdefs.h. */ |
---|
3355 | |
---|
3356 | int |
---|
3357 | main () |
---|
3358 | { |
---|
3359 | |
---|
3360 | ; |
---|
3361 | return 0; |
---|
3362 | } |
---|
3363 | _ACEOF |
---|
3364 | rm -f conftest.$ac_objext |
---|
3365 | if { (ac_try="$ac_compile" |
---|
3366 | case "(($ac_try" in |
---|
3367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3368 | *) ac_try_echo=$ac_try;; |
---|
3369 | esac |
---|
3370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3371 | (eval "$ac_compile") 2>conftest.er1 |
---|
3372 | ac_status=$? |
---|
3373 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3374 | rm -f conftest.er1 |
---|
3375 | cat conftest.err >&5 |
---|
3376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3377 | (exit $ac_status); } && { |
---|
3378 | test -z "$ac_c_werror_flag" || |
---|
3379 | test ! -s conftest.err |
---|
3380 | } && test -s conftest.$ac_objext; then |
---|
3381 | ac_cv_prog_cc_g=yes |
---|
3382 | else |
---|
3383 | echo "$as_me: failed program was:" >&5 |
---|
3384 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3385 | |
---|
3386 | CFLAGS="" |
---|
3387 | cat >conftest.$ac_ext <<_ACEOF |
---|
3388 | /* confdefs.h. */ |
---|
3389 | _ACEOF |
---|
3390 | cat confdefs.h >>conftest.$ac_ext |
---|
3391 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3392 | /* end confdefs.h. */ |
---|
3393 | |
---|
3394 | int |
---|
3395 | main () |
---|
3396 | { |
---|
3397 | |
---|
3398 | ; |
---|
3399 | return 0; |
---|
3400 | } |
---|
3401 | _ACEOF |
---|
3402 | rm -f conftest.$ac_objext |
---|
3403 | if { (ac_try="$ac_compile" |
---|
3404 | case "(($ac_try" in |
---|
3405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3406 | *) ac_try_echo=$ac_try;; |
---|
3407 | esac |
---|
3408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3409 | (eval "$ac_compile") 2>conftest.er1 |
---|
3410 | ac_status=$? |
---|
3411 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3412 | rm -f conftest.er1 |
---|
3413 | cat conftest.err >&5 |
---|
3414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3415 | (exit $ac_status); } && { |
---|
3416 | test -z "$ac_c_werror_flag" || |
---|
3417 | test ! -s conftest.err |
---|
3418 | } && test -s conftest.$ac_objext; then |
---|
3419 | : |
---|
3420 | else |
---|
3421 | echo "$as_me: failed program was:" >&5 |
---|
3422 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3423 | |
---|
3424 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3425 | CFLAGS="-g" |
---|
3426 | cat >conftest.$ac_ext <<_ACEOF |
---|
3427 | /* confdefs.h. */ |
---|
3428 | _ACEOF |
---|
3429 | cat confdefs.h >>conftest.$ac_ext |
---|
3430 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3431 | /* end confdefs.h. */ |
---|
3432 | |
---|
3433 | int |
---|
3434 | main () |
---|
3435 | { |
---|
3436 | |
---|
3437 | ; |
---|
3438 | return 0; |
---|
3439 | } |
---|
3440 | _ACEOF |
---|
3441 | rm -f conftest.$ac_objext |
---|
3442 | if { (ac_try="$ac_compile" |
---|
3443 | case "(($ac_try" in |
---|
3444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3445 | *) ac_try_echo=$ac_try;; |
---|
3446 | esac |
---|
3447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3448 | (eval "$ac_compile") 2>conftest.er1 |
---|
3449 | ac_status=$? |
---|
3450 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3451 | rm -f conftest.er1 |
---|
3452 | cat conftest.err >&5 |
---|
3453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3454 | (exit $ac_status); } && { |
---|
3455 | test -z "$ac_c_werror_flag" || |
---|
3456 | test ! -s conftest.err |
---|
3457 | } && test -s conftest.$ac_objext; then |
---|
3458 | ac_cv_prog_cc_g=yes |
---|
3459 | else |
---|
3460 | echo "$as_me: failed program was:" >&5 |
---|
3461 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3462 | |
---|
3463 | |
---|
3464 | fi |
---|
3465 | |
---|
3466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3467 | fi |
---|
3468 | |
---|
3469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3470 | fi |
---|
3471 | |
---|
3472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3473 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3474 | fi |
---|
3475 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3476 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
---|
3477 | if test "$ac_test_CFLAGS" = set; then |
---|
3478 | CFLAGS=$ac_save_CFLAGS |
---|
3479 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3480 | if test "$GCC" = yes; then |
---|
3481 | CFLAGS="-g -O2" |
---|
3482 | else |
---|
3483 | CFLAGS="-g" |
---|
3484 | fi |
---|
3485 | else |
---|
3486 | if test "$GCC" = yes; then |
---|
3487 | CFLAGS="-O2" |
---|
3488 | else |
---|
3489 | CFLAGS= |
---|
3490 | fi |
---|
3491 | fi |
---|
3492 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
---|
3493 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
---|
3494 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
---|
3495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3496 | else |
---|
3497 | ac_cv_prog_cc_c89=no |
---|
3498 | ac_save_CC=$CC |
---|
3499 | cat >conftest.$ac_ext <<_ACEOF |
---|
3500 | /* confdefs.h. */ |
---|
3501 | _ACEOF |
---|
3502 | cat confdefs.h >>conftest.$ac_ext |
---|
3503 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3504 | /* end confdefs.h. */ |
---|
3505 | #include <stdarg.h> |
---|
3506 | #include <stdio.h> |
---|
3507 | #include <sys/types.h> |
---|
3508 | #include <sys/stat.h> |
---|
3509 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3510 | struct buf { int x; }; |
---|
3511 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3512 | static char *e (p, i) |
---|
3513 | char **p; |
---|
3514 | int i; |
---|
3515 | { |
---|
3516 | return p[i]; |
---|
3517 | } |
---|
3518 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3519 | { |
---|
3520 | char *s; |
---|
3521 | va_list v; |
---|
3522 | va_start (v,p); |
---|
3523 | s = g (p, va_arg (v,int)); |
---|
3524 | va_end (v); |
---|
3525 | return s; |
---|
3526 | } |
---|
3527 | |
---|
3528 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3529 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3530 | These don't provoke an error unfortunately, instead are silently treated |
---|
3531 | as 'x'. The following induces an error, until -std is added to get |
---|
3532 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3533 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3534 | that's true only with -std. */ |
---|
3535 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3536 | |
---|
3537 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3538 | inside strings and character constants. */ |
---|
3539 | #define FOO(x) 'x' |
---|
3540 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3541 | |
---|
3542 | int test (int i, double x); |
---|
3543 | struct s1 {int (*f) (int a);}; |
---|
3544 | struct s2 {int (*f) (double a);}; |
---|
3545 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3546 | int argc; |
---|
3547 | char **argv; |
---|
3548 | int |
---|
3549 | main () |
---|
3550 | { |
---|
3551 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3552 | ; |
---|
3553 | return 0; |
---|
3554 | } |
---|
3555 | _ACEOF |
---|
3556 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3557 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3558 | do |
---|
3559 | CC="$ac_save_CC $ac_arg" |
---|
3560 | rm -f conftest.$ac_objext |
---|
3561 | if { (ac_try="$ac_compile" |
---|
3562 | case "(($ac_try" in |
---|
3563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3564 | *) ac_try_echo=$ac_try;; |
---|
3565 | esac |
---|
3566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3567 | (eval "$ac_compile") 2>conftest.er1 |
---|
3568 | ac_status=$? |
---|
3569 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3570 | rm -f conftest.er1 |
---|
3571 | cat conftest.err >&5 |
---|
3572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3573 | (exit $ac_status); } && { |
---|
3574 | test -z "$ac_c_werror_flag" || |
---|
3575 | test ! -s conftest.err |
---|
3576 | } && test -s conftest.$ac_objext; then |
---|
3577 | ac_cv_prog_cc_c89=$ac_arg |
---|
3578 | else |
---|
3579 | echo "$as_me: failed program was:" >&5 |
---|
3580 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3581 | |
---|
3582 | |
---|
3583 | fi |
---|
3584 | |
---|
3585 | rm -f core conftest.err conftest.$ac_objext |
---|
3586 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3587 | done |
---|
3588 | rm -f conftest.$ac_ext |
---|
3589 | CC=$ac_save_CC |
---|
3590 | |
---|
3591 | fi |
---|
3592 | # AC_CACHE_VAL |
---|
3593 | case "x$ac_cv_prog_cc_c89" in |
---|
3594 | x) |
---|
3595 | { echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3596 | echo "${ECHO_T}none needed" >&6; } ;; |
---|
3597 | xno) |
---|
3598 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
---|
3599 | echo "${ECHO_T}unsupported" >&6; } ;; |
---|
3600 | *) |
---|
3601 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3602 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
---|
3603 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3604 | esac |
---|
3605 | |
---|
3606 | |
---|
3607 | ac_ext=c |
---|
3608 | ac_cpp='$CPP $CPPFLAGS' |
---|
3609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3612 | DEPDIR="${am__leading_dot}deps" |
---|
3613 | |
---|
3614 | ac_config_commands="$ac_config_commands depfiles" |
---|
3615 | |
---|
3616 | |
---|
3617 | am_make=${MAKE-make} |
---|
3618 | cat > confinc << 'END' |
---|
3619 | am__doit: |
---|
3620 | @echo done |
---|
3621 | .PHONY: am__doit |
---|
3622 | END |
---|
3623 | # If we don't find an include directive, just comment out the code. |
---|
3624 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
3625 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
---|
3626 | am__include="#" |
---|
3627 | am__quote= |
---|
3628 | _am_result=none |
---|
3629 | # First try GNU make style include. |
---|
3630 | echo "include confinc" > confmf |
---|
3631 | # We grep out `Entering directory' and `Leaving directory' |
---|
3632 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
3633 | # In particular we don't look at `^make:' because GNU make might |
---|
3634 | # be invoked under some other name (usually "gmake"), in which |
---|
3635 | # case it prints its new name instead of `make'. |
---|
3636 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
3637 | am__include=include |
---|
3638 | am__quote= |
---|
3639 | _am_result=GNU |
---|
3640 | fi |
---|
3641 | # Now try BSD make style include. |
---|
3642 | if test "$am__include" = "#"; then |
---|
3643 | echo '.include "confinc"' > confmf |
---|
3644 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
3645 | am__include=.include |
---|
3646 | am__quote="\"" |
---|
3647 | _am_result=BSD |
---|
3648 | fi |
---|
3649 | fi |
---|
3650 | |
---|
3651 | |
---|
3652 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
3653 | echo "${ECHO_T}$_am_result" >&6; } |
---|
3654 | rm -f confinc confmf |
---|
3655 | |
---|
3656 | # Check whether --enable-dependency-tracking was given. |
---|
3657 | if test "${enable_dependency_tracking+set}" = set; then |
---|
3658 | enableval=$enable_dependency_tracking; |
---|
3659 | fi |
---|
3660 | |
---|
3661 | if test "x$enable_dependency_tracking" != xno; then |
---|
3662 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3663 | AMDEPBACKSLASH='\' |
---|
3664 | fi |
---|
3665 | if test "x$enable_dependency_tracking" != xno; then |
---|
3666 | AMDEP_TRUE= |
---|
3667 | AMDEP_FALSE='#' |
---|
3668 | else |
---|
3669 | AMDEP_TRUE='#' |
---|
3670 | AMDEP_FALSE= |
---|
3671 | fi |
---|
3672 | |
---|
3673 | |
---|
3674 | |
---|
3675 | depcc="$CC" am_compiler_list= |
---|
3676 | |
---|
3677 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3678 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
---|
3679 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3681 | else |
---|
3682 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3683 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3684 | # making bogus files that we don't know about and never remove. For |
---|
3685 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3686 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3687 | # in D'. |
---|
3688 | mkdir conftest.dir |
---|
3689 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3690 | # using a relative directory. |
---|
3691 | cp "$am_depcomp" conftest.dir |
---|
3692 | cd conftest.dir |
---|
3693 | # We will build objects and dependencies in a subdirectory because |
---|
3694 | # it helps to detect inapplicable dependency modes. For instance |
---|
3695 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3696 | # side effect of compilation, but ICC will put the dependencies in |
---|
3697 | # the current directory while Tru64 will put them in the object |
---|
3698 | # directory. |
---|
3699 | mkdir sub |
---|
3700 | |
---|
3701 | am_cv_CC_dependencies_compiler_type=none |
---|
3702 | if test "$am_compiler_list" = ""; then |
---|
3703 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3704 | fi |
---|
3705 | for depmode in $am_compiler_list; do |
---|
3706 | # Setup a source with many dependencies, because some compilers |
---|
3707 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3708 | # we should not choose a depcomp mode which is confused by this. |
---|
3709 | # |
---|
3710 | # We need to recreate these files for each test, as the compiler may |
---|
3711 | # overwrite some of them when testing with obscure command lines. |
---|
3712 | # This happens at least with the AIX C compiler. |
---|
3713 | : > sub/conftest.c |
---|
3714 | for i in 1 2 3 4 5 6; do |
---|
3715 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3716 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3717 | # Solaris 8's {/usr,}/bin/sh. |
---|
3718 | touch sub/conftst$i.h |
---|
3719 | done |
---|
3720 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3721 | |
---|
3722 | case $depmode in |
---|
3723 | nosideeffect) |
---|
3724 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3725 | # only be used when explicitly requested |
---|
3726 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3727 | continue |
---|
3728 | else |
---|
3729 | break |
---|
3730 | fi |
---|
3731 | ;; |
---|
3732 | none) break ;; |
---|
3733 | esac |
---|
3734 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3735 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3736 | # handle `-M -o', and we need to detect this. |
---|
3737 | if depmode=$depmode \ |
---|
3738 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3739 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3740 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3741 | >/dev/null 2>conftest.err && |
---|
3742 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3743 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3744 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3745 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3746 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3747 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3748 | # that says an option was ignored or not supported. |
---|
3749 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3750 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3751 | # The diagnosis changed in icc 8.0: |
---|
3752 | # icc: Command line remark: option '-MP' not supported |
---|
3753 | if (grep 'ignoring option' conftest.err || |
---|
3754 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3755 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3756 | break |
---|
3757 | fi |
---|
3758 | fi |
---|
3759 | done |
---|
3760 | |
---|
3761 | cd .. |
---|
3762 | rm -rf conftest.dir |
---|
3763 | else |
---|
3764 | am_cv_CC_dependencies_compiler_type=none |
---|
3765 | fi |
---|
3766 | |
---|
3767 | fi |
---|
3768 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3769 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
3770 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3771 | |
---|
3772 | if |
---|
3773 | test "x$enable_dependency_tracking" != xno \ |
---|
3774 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3775 | am__fastdepCC_TRUE= |
---|
3776 | am__fastdepCC_FALSE='#' |
---|
3777 | else |
---|
3778 | am__fastdepCC_TRUE='#' |
---|
3779 | am__fastdepCC_FALSE= |
---|
3780 | fi |
---|
3781 | |
---|
3782 | |
---|
3783 | ac_ext=cpp |
---|
3784 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3785 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3786 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3787 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3788 | if test -z "$CXX"; then |
---|
3789 | if test -n "$CCC"; then |
---|
3790 | CXX=$CCC |
---|
3791 | else |
---|
3792 | if test -n "$ac_tool_prefix"; then |
---|
3793 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3794 | do |
---|
3795 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3796 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3797 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3799 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
3800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3801 | else |
---|
3802 | if test -n "$CXX"; then |
---|
3803 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3804 | else |
---|
3805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3806 | for as_dir in $PATH |
---|
3807 | do |
---|
3808 | IFS=$as_save_IFS |
---|
3809 | test -z "$as_dir" && as_dir=. |
---|
3810 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3812 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3814 | break 2 |
---|
3815 | fi |
---|
3816 | done |
---|
3817 | done |
---|
3818 | IFS=$as_save_IFS |
---|
3819 | |
---|
3820 | fi |
---|
3821 | fi |
---|
3822 | CXX=$ac_cv_prog_CXX |
---|
3823 | if test -n "$CXX"; then |
---|
3824 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
3825 | echo "${ECHO_T}$CXX" >&6; } |
---|
3826 | else |
---|
3827 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3828 | echo "${ECHO_T}no" >&6; } |
---|
3829 | fi |
---|
3830 | |
---|
3831 | |
---|
3832 | test -n "$CXX" && break |
---|
3833 | done |
---|
3834 | fi |
---|
3835 | if test -z "$CXX"; then |
---|
3836 | ac_ct_CXX=$CXX |
---|
3837 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3838 | do |
---|
3839 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3840 | set dummy $ac_prog; ac_word=$2 |
---|
3841 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3843 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
3844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3845 | else |
---|
3846 | if test -n "$ac_ct_CXX"; then |
---|
3847 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3848 | else |
---|
3849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3850 | for as_dir in $PATH |
---|
3851 | do |
---|
3852 | IFS=$as_save_IFS |
---|
3853 | test -z "$as_dir" && as_dir=. |
---|
3854 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3855 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3856 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3858 | break 2 |
---|
3859 | fi |
---|
3860 | done |
---|
3861 | done |
---|
3862 | IFS=$as_save_IFS |
---|
3863 | |
---|
3864 | fi |
---|
3865 | fi |
---|
3866 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3867 | if test -n "$ac_ct_CXX"; then |
---|
3868 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
3869 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
---|
3870 | else |
---|
3871 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3872 | echo "${ECHO_T}no" >&6; } |
---|
3873 | fi |
---|
3874 | |
---|
3875 | |
---|
3876 | test -n "$ac_ct_CXX" && break |
---|
3877 | done |
---|
3878 | |
---|
3879 | if test "x$ac_ct_CXX" = x; then |
---|
3880 | CXX="g++" |
---|
3881 | else |
---|
3882 | case $cross_compiling:$ac_tool_warned in |
---|
3883 | yes:) |
---|
3884 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3885 | whose name does not start with the host triplet. If you think this |
---|
3886 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
3887 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3888 | whose name does not start with the host triplet. If you think this |
---|
3889 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
3890 | ac_tool_warned=yes ;; |
---|
3891 | esac |
---|
3892 | CXX=$ac_ct_CXX |
---|
3893 | fi |
---|
3894 | fi |
---|
3895 | |
---|
3896 | fi |
---|
3897 | fi |
---|
3898 | # Provide some information about the compiler. |
---|
3899 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
---|
3900 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3901 | { (ac_try="$ac_compiler --version >&5" |
---|
3902 | case "(($ac_try" in |
---|
3903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3904 | *) ac_try_echo=$ac_try;; |
---|
3905 | esac |
---|
3906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3907 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
3908 | ac_status=$? |
---|
3909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3910 | (exit $ac_status); } |
---|
3911 | { (ac_try="$ac_compiler -v >&5" |
---|
3912 | case "(($ac_try" in |
---|
3913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3914 | *) ac_try_echo=$ac_try;; |
---|
3915 | esac |
---|
3916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3917 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
3918 | ac_status=$? |
---|
3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3920 | (exit $ac_status); } |
---|
3921 | { (ac_try="$ac_compiler -V >&5" |
---|
3922 | case "(($ac_try" in |
---|
3923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3924 | *) ac_try_echo=$ac_try;; |
---|
3925 | esac |
---|
3926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3927 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
3928 | ac_status=$? |
---|
3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3930 | (exit $ac_status); } |
---|
3931 | |
---|
3932 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
3933 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
---|
3934 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
3935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3936 | else |
---|
3937 | cat >conftest.$ac_ext <<_ACEOF |
---|
3938 | /* confdefs.h. */ |
---|
3939 | _ACEOF |
---|
3940 | cat confdefs.h >>conftest.$ac_ext |
---|
3941 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3942 | /* end confdefs.h. */ |
---|
3943 | |
---|
3944 | int |
---|
3945 | main () |
---|
3946 | { |
---|
3947 | #ifndef __GNUC__ |
---|
3948 | choke me |
---|
3949 | #endif |
---|
3950 | |
---|
3951 | ; |
---|
3952 | return 0; |
---|
3953 | } |
---|
3954 | _ACEOF |
---|
3955 | rm -f conftest.$ac_objext |
---|
3956 | if { (ac_try="$ac_compile" |
---|
3957 | case "(($ac_try" in |
---|
3958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3959 | *) ac_try_echo=$ac_try;; |
---|
3960 | esac |
---|
3961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3962 | (eval "$ac_compile") 2>conftest.er1 |
---|
3963 | ac_status=$? |
---|
3964 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3965 | rm -f conftest.er1 |
---|
3966 | cat conftest.err >&5 |
---|
3967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3968 | (exit $ac_status); } && { |
---|
3969 | test -z "$ac_cxx_werror_flag" || |
---|
3970 | test ! -s conftest.err |
---|
3971 | } && test -s conftest.$ac_objext; then |
---|
3972 | ac_compiler_gnu=yes |
---|
3973 | else |
---|
3974 | echo "$as_me: failed program was:" >&5 |
---|
3975 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3976 | |
---|
3977 | ac_compiler_gnu=no |
---|
3978 | fi |
---|
3979 | |
---|
3980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3981 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3982 | |
---|
3983 | fi |
---|
3984 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3985 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3986 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
3987 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3988 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3989 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
3990 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
---|
3991 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
3992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3993 | else |
---|
3994 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3995 | ac_cxx_werror_flag=yes |
---|
3996 | ac_cv_prog_cxx_g=no |
---|
3997 | CXXFLAGS="-g" |
---|
3998 | cat >conftest.$ac_ext <<_ACEOF |
---|
3999 | /* confdefs.h. */ |
---|
4000 | _ACEOF |
---|
4001 | cat confdefs.h >>conftest.$ac_ext |
---|
4002 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4003 | /* end confdefs.h. */ |
---|
4004 | |
---|
4005 | int |
---|
4006 | main () |
---|
4007 | { |
---|
4008 | |
---|
4009 | ; |
---|
4010 | return 0; |
---|
4011 | } |
---|
4012 | _ACEOF |
---|
4013 | rm -f conftest.$ac_objext |
---|
4014 | if { (ac_try="$ac_compile" |
---|
4015 | case "(($ac_try" in |
---|
4016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4017 | *) ac_try_echo=$ac_try;; |
---|
4018 | esac |
---|
4019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4020 | (eval "$ac_compile") 2>conftest.er1 |
---|
4021 | ac_status=$? |
---|
4022 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4023 | rm -f conftest.er1 |
---|
4024 | cat conftest.err >&5 |
---|
4025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4026 | (exit $ac_status); } && { |
---|
4027 | test -z "$ac_cxx_werror_flag" || |
---|
4028 | test ! -s conftest.err |
---|
4029 | } && test -s conftest.$ac_objext; then |
---|
4030 | ac_cv_prog_cxx_g=yes |
---|
4031 | else |
---|
4032 | echo "$as_me: failed program was:" >&5 |
---|
4033 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4034 | |
---|
4035 | CXXFLAGS="" |
---|
4036 | cat >conftest.$ac_ext <<_ACEOF |
---|
4037 | /* confdefs.h. */ |
---|
4038 | _ACEOF |
---|
4039 | cat confdefs.h >>conftest.$ac_ext |
---|
4040 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4041 | /* end confdefs.h. */ |
---|
4042 | |
---|
4043 | int |
---|
4044 | main () |
---|
4045 | { |
---|
4046 | |
---|
4047 | ; |
---|
4048 | return 0; |
---|
4049 | } |
---|
4050 | _ACEOF |
---|
4051 | rm -f conftest.$ac_objext |
---|
4052 | if { (ac_try="$ac_compile" |
---|
4053 | case "(($ac_try" in |
---|
4054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4055 | *) ac_try_echo=$ac_try;; |
---|
4056 | esac |
---|
4057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4058 | (eval "$ac_compile") 2>conftest.er1 |
---|
4059 | ac_status=$? |
---|
4060 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4061 | rm -f conftest.er1 |
---|
4062 | cat conftest.err >&5 |
---|
4063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4064 | (exit $ac_status); } && { |
---|
4065 | test -z "$ac_cxx_werror_flag" || |
---|
4066 | test ! -s conftest.err |
---|
4067 | } && test -s conftest.$ac_objext; then |
---|
4068 | : |
---|
4069 | else |
---|
4070 | echo "$as_me: failed program was:" >&5 |
---|
4071 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4072 | |
---|
4073 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
4074 | CXXFLAGS="-g" |
---|
4075 | cat >conftest.$ac_ext <<_ACEOF |
---|
4076 | /* confdefs.h. */ |
---|
4077 | _ACEOF |
---|
4078 | cat confdefs.h >>conftest.$ac_ext |
---|
4079 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4080 | /* end confdefs.h. */ |
---|
4081 | |
---|
4082 | int |
---|
4083 | main () |
---|
4084 | { |
---|
4085 | |
---|
4086 | ; |
---|
4087 | return 0; |
---|
4088 | } |
---|
4089 | _ACEOF |
---|
4090 | rm -f conftest.$ac_objext |
---|
4091 | if { (ac_try="$ac_compile" |
---|
4092 | case "(($ac_try" in |
---|
4093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4094 | *) ac_try_echo=$ac_try;; |
---|
4095 | esac |
---|
4096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4097 | (eval "$ac_compile") 2>conftest.er1 |
---|
4098 | ac_status=$? |
---|
4099 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4100 | rm -f conftest.er1 |
---|
4101 | cat conftest.err >&5 |
---|
4102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4103 | (exit $ac_status); } && { |
---|
4104 | test -z "$ac_cxx_werror_flag" || |
---|
4105 | test ! -s conftest.err |
---|
4106 | } && test -s conftest.$ac_objext; then |
---|
4107 | ac_cv_prog_cxx_g=yes |
---|
4108 | else |
---|
4109 | echo "$as_me: failed program was:" >&5 |
---|
4110 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4111 | |
---|
4112 | |
---|
4113 | fi |
---|
4114 | |
---|
4115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4116 | fi |
---|
4117 | |
---|
4118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4119 | fi |
---|
4120 | |
---|
4121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4122 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
4123 | fi |
---|
4124 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
4125 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
---|
4126 | if test "$ac_test_CXXFLAGS" = set; then |
---|
4127 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
4128 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
4129 | if test "$GXX" = yes; then |
---|
4130 | CXXFLAGS="-g -O2" |
---|
4131 | else |
---|
4132 | CXXFLAGS="-g" |
---|
4133 | fi |
---|
4134 | else |
---|
4135 | if test "$GXX" = yes; then |
---|
4136 | CXXFLAGS="-O2" |
---|
4137 | else |
---|
4138 | CXXFLAGS= |
---|
4139 | fi |
---|
4140 | fi |
---|
4141 | ac_ext=c |
---|
4142 | ac_cpp='$CPP $CPPFLAGS' |
---|
4143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4146 | |
---|
4147 | depcc="$CXX" am_compiler_list= |
---|
4148 | |
---|
4149 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
4150 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
---|
4151 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
4152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4153 | else |
---|
4154 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4155 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4156 | # making bogus files that we don't know about and never remove. For |
---|
4157 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4158 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4159 | # in D'. |
---|
4160 | mkdir conftest.dir |
---|
4161 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4162 | # using a relative directory. |
---|
4163 | cp "$am_depcomp" conftest.dir |
---|
4164 | cd conftest.dir |
---|
4165 | # We will build objects and dependencies in a subdirectory because |
---|
4166 | # it helps to detect inapplicable dependency modes. For instance |
---|
4167 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4168 | # side effect of compilation, but ICC will put the dependencies in |
---|
4169 | # the current directory while Tru64 will put them in the object |
---|
4170 | # directory. |
---|
4171 | mkdir sub |
---|
4172 | |
---|
4173 | am_cv_CXX_dependencies_compiler_type=none |
---|
4174 | if test "$am_compiler_list" = ""; then |
---|
4175 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4176 | fi |
---|
4177 | for depmode in $am_compiler_list; do |
---|
4178 | # Setup a source with many dependencies, because some compilers |
---|
4179 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4180 | # we should not choose a depcomp mode which is confused by this. |
---|
4181 | # |
---|
4182 | # We need to recreate these files for each test, as the compiler may |
---|
4183 | # overwrite some of them when testing with obscure command lines. |
---|
4184 | # This happens at least with the AIX C compiler. |
---|
4185 | : > sub/conftest.c |
---|
4186 | for i in 1 2 3 4 5 6; do |
---|
4187 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4188 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4189 | # Solaris 8's {/usr,}/bin/sh. |
---|
4190 | touch sub/conftst$i.h |
---|
4191 | done |
---|
4192 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4193 | |
---|
4194 | case $depmode in |
---|
4195 | nosideeffect) |
---|
4196 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4197 | # only be used when explicitly requested |
---|
4198 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4199 | continue |
---|
4200 | else |
---|
4201 | break |
---|
4202 | fi |
---|
4203 | ;; |
---|
4204 | none) break ;; |
---|
4205 | esac |
---|
4206 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4207 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4208 | # handle `-M -o', and we need to detect this. |
---|
4209 | if depmode=$depmode \ |
---|
4210 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
4211 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4212 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
4213 | >/dev/null 2>conftest.err && |
---|
4214 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4215 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4216 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
4217 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4218 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4219 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4220 | # that says an option was ignored or not supported. |
---|
4221 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4222 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4223 | # The diagnosis changed in icc 8.0: |
---|
4224 | # icc: Command line remark: option '-MP' not supported |
---|
4225 | if (grep 'ignoring option' conftest.err || |
---|
4226 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4227 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
4228 | break |
---|
4229 | fi |
---|
4230 | fi |
---|
4231 | done |
---|
4232 | |
---|
4233 | cd .. |
---|
4234 | rm -rf conftest.dir |
---|
4235 | else |
---|
4236 | am_cv_CXX_dependencies_compiler_type=none |
---|
4237 | fi |
---|
4238 | |
---|
4239 | fi |
---|
4240 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
4241 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
4242 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
4243 | |
---|
4244 | if |
---|
4245 | test "x$enable_dependency_tracking" != xno \ |
---|
4246 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
4247 | am__fastdepCXX_TRUE= |
---|
4248 | am__fastdepCXX_FALSE='#' |
---|
4249 | else |
---|
4250 | am__fastdepCXX_TRUE='#' |
---|
4251 | am__fastdepCXX_FALSE= |
---|
4252 | fi |
---|
4253 | |
---|
4254 | |
---|
4255 | if test "x$CC" != xcc; then |
---|
4256 | { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
---|
4257 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } |
---|
4258 | else |
---|
4259 | { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
---|
4260 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } |
---|
4261 | fi |
---|
4262 | set dummy $CC; ac_cc=`echo $2 | |
---|
4263 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
4264 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4266 | else |
---|
4267 | cat >conftest.$ac_ext <<_ACEOF |
---|
4268 | /* confdefs.h. */ |
---|
4269 | _ACEOF |
---|
4270 | cat confdefs.h >>conftest.$ac_ext |
---|
4271 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4272 | /* end confdefs.h. */ |
---|
4273 | |
---|
4274 | int |
---|
4275 | main () |
---|
4276 | { |
---|
4277 | |
---|
4278 | ; |
---|
4279 | return 0; |
---|
4280 | } |
---|
4281 | _ACEOF |
---|
4282 | # Make sure it works both with $CC and with simple cc. |
---|
4283 | # We do the test twice because some compilers refuse to overwrite an |
---|
4284 | # existing .o file with -o, though they will create one. |
---|
4285 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4286 | rm -f conftest2.* |
---|
4287 | if { (case "(($ac_try" in |
---|
4288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4289 | *) ac_try_echo=$ac_try;; |
---|
4290 | esac |
---|
4291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4292 | (eval "$ac_try") 2>&5 |
---|
4293 | ac_status=$? |
---|
4294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4295 | (exit $ac_status); } && |
---|
4296 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
---|
4297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4298 | *) ac_try_echo=$ac_try;; |
---|
4299 | esac |
---|
4300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4301 | (eval "$ac_try") 2>&5 |
---|
4302 | ac_status=$? |
---|
4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4304 | (exit $ac_status); }; |
---|
4305 | then |
---|
4306 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
---|
4307 | if test "x$CC" != xcc; then |
---|
4308 | # Test first that cc exists at all. |
---|
4309 | if { ac_try='cc -c conftest.$ac_ext >&5' |
---|
4310 | { (case "(($ac_try" in |
---|
4311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4312 | *) ac_try_echo=$ac_try;; |
---|
4313 | esac |
---|
4314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4315 | (eval "$ac_try") 2>&5 |
---|
4316 | ac_status=$? |
---|
4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4318 | (exit $ac_status); }; }; then |
---|
4319 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4320 | rm -f conftest2.* |
---|
4321 | if { (case "(($ac_try" in |
---|
4322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4323 | *) ac_try_echo=$ac_try;; |
---|
4324 | esac |
---|
4325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4326 | (eval "$ac_try") 2>&5 |
---|
4327 | ac_status=$? |
---|
4328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4329 | (exit $ac_status); } && |
---|
4330 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
---|
4331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4332 | *) ac_try_echo=$ac_try;; |
---|
4333 | esac |
---|
4334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4335 | (eval "$ac_try") 2>&5 |
---|
4336 | ac_status=$? |
---|
4337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4338 | (exit $ac_status); }; |
---|
4339 | then |
---|
4340 | # cc works too. |
---|
4341 | : |
---|
4342 | else |
---|
4343 | # cc exists but doesn't like -o. |
---|
4344 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
4345 | fi |
---|
4346 | fi |
---|
4347 | fi |
---|
4348 | else |
---|
4349 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
4350 | fi |
---|
4351 | rm -f core conftest* |
---|
4352 | |
---|
4353 | fi |
---|
4354 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
---|
4355 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
4356 | echo "${ECHO_T}yes" >&6; } |
---|
4357 | else |
---|
4358 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4359 | echo "${ECHO_T}no" >&6; } |
---|
4360 | |
---|
4361 | cat >>confdefs.h <<\_ACEOF |
---|
4362 | #define NO_MINUS_C_MINUS_O 1 |
---|
4363 | _ACEOF |
---|
4364 | |
---|
4365 | fi |
---|
4366 | |
---|
4367 | # FIXME: we rely on the cache variable name because |
---|
4368 | # there is no other way. |
---|
4369 | set dummy $CC |
---|
4370 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
4371 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then |
---|
4372 | # Losing compiler, so override with the script. |
---|
4373 | # FIXME: It is wrong to rewrite CC. |
---|
4374 | # But if we don't then we get into trouble of one sort or another. |
---|
4375 | # A longer-term fix would be to have automake use am__CC in this case, |
---|
4376 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
---|
4377 | CC="$am_aux_dir/compile $CC" |
---|
4378 | fi |
---|
4379 | |
---|
4380 | |
---|
4381 | # Find a good install program. We prefer a C program (faster), |
---|
4382 | # so one script is as good as another. But avoid the broken or |
---|
4383 | # incompatible versions: |
---|
4384 | # SysV /etc/install, /usr/sbin/install |
---|
4385 | # SunOS /usr/etc/install |
---|
4386 | # IRIX /sbin/install |
---|
4387 | # AIX /bin/install |
---|
4388 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
4389 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
4390 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
4391 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
4392 | # OS/2's system install, which has a completely different semantic |
---|
4393 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
4394 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
4395 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
---|
4396 | if test -z "$INSTALL"; then |
---|
4397 | if test "${ac_cv_path_install+set}" = set; then |
---|
4398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4399 | else |
---|
4400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4401 | for as_dir in $PATH |
---|
4402 | do |
---|
4403 | IFS=$as_save_IFS |
---|
4404 | test -z "$as_dir" && as_dir=. |
---|
4405 | # Account for people who put trailing slashes in PATH elements. |
---|
4406 | case $as_dir/ in |
---|
4407 | ./ | .// | /cC/* | \ |
---|
4408 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
4409 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
4410 | /usr/ucb/* ) ;; |
---|
4411 | *) |
---|
4412 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
4413 | # Don't use installbsd from OSF since it installs stuff as root |
---|
4414 | # by default. |
---|
4415 | for ac_prog in ginstall scoinst install; do |
---|
4416 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4417 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
4418 | if test $ac_prog = install && |
---|
4419 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
4420 | # AIX install. It has an incompatible calling convention. |
---|
4421 | : |
---|
4422 | elif test $ac_prog = install && |
---|
4423 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
4424 | # program-specific install script used by HP pwplus--don't use. |
---|
4425 | : |
---|
4426 | else |
---|
4427 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
4428 | break 3 |
---|
4429 | fi |
---|
4430 | fi |
---|
4431 | done |
---|
4432 | done |
---|
4433 | ;; |
---|
4434 | esac |
---|
4435 | done |
---|
4436 | IFS=$as_save_IFS |
---|
4437 | |
---|
4438 | |
---|
4439 | fi |
---|
4440 | if test "${ac_cv_path_install+set}" = set; then |
---|
4441 | INSTALL=$ac_cv_path_install |
---|
4442 | else |
---|
4443 | # As a last resort, use the slow shell script. Don't cache a |
---|
4444 | # value for INSTALL within a source directory, because that will |
---|
4445 | # break other packages using the cache if that directory is |
---|
4446 | # removed, or if the value is a relative name. |
---|
4447 | INSTALL=$ac_install_sh |
---|
4448 | fi |
---|
4449 | fi |
---|
4450 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
4451 | echo "${ECHO_T}$INSTALL" >&6; } |
---|
4452 | |
---|
4453 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
4454 | # It thinks the first close brace ends the variable substitution. |
---|
4455 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
4456 | |
---|
4457 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
4458 | |
---|
4459 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
4460 | |
---|
4461 | for ac_prog in 'bison -y' byacc |
---|
4462 | do |
---|
4463 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4464 | set dummy $ac_prog; ac_word=$2 |
---|
4465 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
4467 | if test "${ac_cv_prog_YACC+set}" = set; then |
---|
4468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4469 | else |
---|
4470 | if test -n "$YACC"; then |
---|
4471 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
4472 | else |
---|
4473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4474 | for as_dir in $PATH |
---|
4475 | do |
---|
4476 | IFS=$as_save_IFS |
---|
4477 | test -z "$as_dir" && as_dir=. |
---|
4478 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4480 | ac_cv_prog_YACC="$ac_prog" |
---|
4481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4482 | break 2 |
---|
4483 | fi |
---|
4484 | done |
---|
4485 | done |
---|
4486 | IFS=$as_save_IFS |
---|
4487 | |
---|
4488 | fi |
---|
4489 | fi |
---|
4490 | YACC=$ac_cv_prog_YACC |
---|
4491 | if test -n "$YACC"; then |
---|
4492 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
---|
4493 | echo "${ECHO_T}$YACC" >&6; } |
---|
4494 | else |
---|
4495 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4496 | echo "${ECHO_T}no" >&6; } |
---|
4497 | fi |
---|
4498 | |
---|
4499 | |
---|
4500 | test -n "$YACC" && break |
---|
4501 | done |
---|
4502 | test -n "$YACC" || YACC="yacc" |
---|
4503 | |
---|
4504 | |
---|
4505 | for ac_prog in flex lex |
---|
4506 | do |
---|
4507 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4508 | set dummy $ac_prog; ac_word=$2 |
---|
4509 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
4511 | if test "${ac_cv_prog_LEX+set}" = set; then |
---|
4512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4513 | else |
---|
4514 | if test -n "$LEX"; then |
---|
4515 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
4516 | else |
---|
4517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4518 | for as_dir in $PATH |
---|
4519 | do |
---|
4520 | IFS=$as_save_IFS |
---|
4521 | test -z "$as_dir" && as_dir=. |
---|
4522 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4524 | ac_cv_prog_LEX="$ac_prog" |
---|
4525 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4526 | break 2 |
---|
4527 | fi |
---|
4528 | done |
---|
4529 | done |
---|
4530 | IFS=$as_save_IFS |
---|
4531 | |
---|
4532 | fi |
---|
4533 | fi |
---|
4534 | LEX=$ac_cv_prog_LEX |
---|
4535 | if test -n "$LEX"; then |
---|
4536 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
---|
4537 | echo "${ECHO_T}$LEX" >&6; } |
---|
4538 | else |
---|
4539 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4540 | echo "${ECHO_T}no" >&6; } |
---|
4541 | fi |
---|
4542 | |
---|
4543 | |
---|
4544 | test -n "$LEX" && break |
---|
4545 | done |
---|
4546 | test -n "$LEX" || LEX=":" |
---|
4547 | |
---|
4548 | if test "x$LEX" != "x:"; then |
---|
4549 | cat >conftest.l <<_ACEOF |
---|
4550 | %% |
---|
4551 | a { ECHO; } |
---|
4552 | b { REJECT; } |
---|
4553 | c { yymore (); } |
---|
4554 | d { yyless (1); } |
---|
4555 | e { yyless (input () != 0); } |
---|
4556 | f { unput (yytext[0]); } |
---|
4557 | . { BEGIN INITIAL; } |
---|
4558 | %% |
---|
4559 | #ifdef YYTEXT_POINTER |
---|
4560 | extern char *yytext; |
---|
4561 | #endif |
---|
4562 | int |
---|
4563 | main (void) |
---|
4564 | { |
---|
4565 | return ! yylex () + ! yywrap (); |
---|
4566 | } |
---|
4567 | _ACEOF |
---|
4568 | { (ac_try="$LEX conftest.l" |
---|
4569 | case "(($ac_try" in |
---|
4570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4571 | *) ac_try_echo=$ac_try;; |
---|
4572 | esac |
---|
4573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4574 | (eval "$LEX conftest.l") 2>&5 |
---|
4575 | ac_status=$? |
---|
4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4577 | (exit $ac_status); } |
---|
4578 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
---|
4579 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
---|
4580 | if test "${ac_cv_prog_lex_root+set}" = set; then |
---|
4581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4582 | else |
---|
4583 | |
---|
4584 | if test -f lex.yy.c; then |
---|
4585 | ac_cv_prog_lex_root=lex.yy |
---|
4586 | elif test -f lexyy.c; then |
---|
4587 | ac_cv_prog_lex_root=lexyy |
---|
4588 | else |
---|
4589 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
---|
4590 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
---|
4591 | { (exit 1); exit 1; }; } |
---|
4592 | fi |
---|
4593 | fi |
---|
4594 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
---|
4595 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
---|
4596 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
4597 | |
---|
4598 | if test -z "${LEXLIB+set}"; then |
---|
4599 | { echo "$as_me:$LINENO: checking lex library" >&5 |
---|
4600 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; } |
---|
4601 | if test "${ac_cv_lib_lex+set}" = set; then |
---|
4602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4603 | else |
---|
4604 | |
---|
4605 | ac_save_LIBS=$LIBS |
---|
4606 | ac_cv_lib_lex='none needed' |
---|
4607 | for ac_lib in '' -lfl -ll; do |
---|
4608 | LIBS="$ac_lib $ac_save_LIBS" |
---|
4609 | cat >conftest.$ac_ext <<_ACEOF |
---|
4610 | `cat $LEX_OUTPUT_ROOT.c` |
---|
4611 | _ACEOF |
---|
4612 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4613 | if { (ac_try="$ac_link" |
---|
4614 | case "(($ac_try" in |
---|
4615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4616 | *) ac_try_echo=$ac_try;; |
---|
4617 | esac |
---|
4618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4619 | (eval "$ac_link") 2>conftest.er1 |
---|
4620 | ac_status=$? |
---|
4621 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4622 | rm -f conftest.er1 |
---|
4623 | cat conftest.err >&5 |
---|
4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4625 | (exit $ac_status); } && { |
---|
4626 | test -z "$ac_c_werror_flag" || |
---|
4627 | test ! -s conftest.err |
---|
4628 | } && test -s conftest$ac_exeext && |
---|
4629 | $as_test_x conftest$ac_exeext; then |
---|
4630 | ac_cv_lib_lex=$ac_lib |
---|
4631 | else |
---|
4632 | echo "$as_me: failed program was:" >&5 |
---|
4633 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4634 | |
---|
4635 | |
---|
4636 | fi |
---|
4637 | |
---|
4638 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
4639 | conftest$ac_exeext conftest.$ac_ext |
---|
4640 | test "$ac_cv_lib_lex" != 'none needed' && break |
---|
4641 | done |
---|
4642 | LIBS=$ac_save_LIBS |
---|
4643 | |
---|
4644 | fi |
---|
4645 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
---|
4646 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; } |
---|
4647 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
---|
4648 | fi |
---|
4649 | |
---|
4650 | |
---|
4651 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
---|
4652 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
---|
4653 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
---|
4654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4655 | else |
---|
4656 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
4657 | # default is implementation-dependent. Figure out which it is, since |
---|
4658 | # not all implementations provide the %pointer and %array declarations. |
---|
4659 | ac_cv_prog_lex_yytext_pointer=no |
---|
4660 | ac_save_LIBS=$LIBS |
---|
4661 | LIBS="$LEXLIB $ac_save_LIBS" |
---|
4662 | cat >conftest.$ac_ext <<_ACEOF |
---|
4663 | #define YYTEXT_POINTER 1 |
---|
4664 | `cat $LEX_OUTPUT_ROOT.c` |
---|
4665 | _ACEOF |
---|
4666 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4667 | if { (ac_try="$ac_link" |
---|
4668 | case "(($ac_try" in |
---|
4669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4670 | *) ac_try_echo=$ac_try;; |
---|
4671 | esac |
---|
4672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4673 | (eval "$ac_link") 2>conftest.er1 |
---|
4674 | ac_status=$? |
---|
4675 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4676 | rm -f conftest.er1 |
---|
4677 | cat conftest.err >&5 |
---|
4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4679 | (exit $ac_status); } && { |
---|
4680 | test -z "$ac_c_werror_flag" || |
---|
4681 | test ! -s conftest.err |
---|
4682 | } && test -s conftest$ac_exeext && |
---|
4683 | $as_test_x conftest$ac_exeext; then |
---|
4684 | ac_cv_prog_lex_yytext_pointer=yes |
---|
4685 | else |
---|
4686 | echo "$as_me: failed program was:" >&5 |
---|
4687 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4688 | |
---|
4689 | |
---|
4690 | fi |
---|
4691 | |
---|
4692 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
4693 | conftest$ac_exeext conftest.$ac_ext |
---|
4694 | LIBS=$ac_save_LIBS |
---|
4695 | |
---|
4696 | fi |
---|
4697 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
4698 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
---|
4699 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
4700 | |
---|
4701 | cat >>confdefs.h <<\_ACEOF |
---|
4702 | #define YYTEXT_POINTER 1 |
---|
4703 | _ACEOF |
---|
4704 | |
---|
4705 | fi |
---|
4706 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
---|
4707 | |
---|
4708 | fi |
---|
4709 | if test "$LEX" = :; then |
---|
4710 | LEX=${am_missing_run}flex |
---|
4711 | fi |
---|
4712 | |
---|
4713 | case $host in |
---|
4714 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) |
---|
4715 | SHARED_FLAGS="-shared -no-undefined -Xlinker --export-all-symbols" |
---|
4716 | |
---|
4717 | PLUGIN_FLAGS="-shared -no-undefined -avoid-version" |
---|
4718 | |
---|
4719 | GL_LIBS="-lopengl32 -lglu32" |
---|
4720 | |
---|
4721 | if test -n "$ac_tool_prefix"; then |
---|
4722 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
---|
4723 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
---|
4724 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
4726 | if test "${ac_cv_prog_RC+set}" = set; then |
---|
4727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4728 | else |
---|
4729 | if test -n "$RC"; then |
---|
4730 | ac_cv_prog_RC="$RC" # Let the user override the test. |
---|
4731 | else |
---|
4732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4733 | for as_dir in $PATH |
---|
4734 | do |
---|
4735 | IFS=$as_save_IFS |
---|
4736 | test -z "$as_dir" && as_dir=. |
---|
4737 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4739 | ac_cv_prog_RC="${ac_tool_prefix}windres" |
---|
4740 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4741 | break 2 |
---|
4742 | fi |
---|
4743 | done |
---|
4744 | done |
---|
4745 | IFS=$as_save_IFS |
---|
4746 | |
---|
4747 | fi |
---|
4748 | fi |
---|
4749 | RC=$ac_cv_prog_RC |
---|
4750 | if test -n "$RC"; then |
---|
4751 | { echo "$as_me:$LINENO: result: $RC" >&5 |
---|
4752 | echo "${ECHO_T}$RC" >&6; } |
---|
4753 | else |
---|
4754 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4755 | echo "${ECHO_T}no" >&6; } |
---|
4756 | fi |
---|
4757 | |
---|
4758 | |
---|
4759 | fi |
---|
4760 | if test -z "$ac_cv_prog_RC"; then |
---|
4761 | ac_ct_RC=$RC |
---|
4762 | # Extract the first word of "windres", so it can be a program name with args. |
---|
4763 | set dummy windres; ac_word=$2 |
---|
4764 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
4766 | if test "${ac_cv_prog_ac_ct_RC+set}" = set; then |
---|
4767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4768 | else |
---|
4769 | if test -n "$ac_ct_RC"; then |
---|
4770 | ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. |
---|
4771 | else |
---|
4772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4773 | for as_dir in $PATH |
---|
4774 | do |
---|
4775 | IFS=$as_save_IFS |
---|
4776 | test -z "$as_dir" && as_dir=. |
---|
4777 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4779 | ac_cv_prog_ac_ct_RC="windres" |
---|
4780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4781 | break 2 |
---|
4782 | fi |
---|
4783 | done |
---|
4784 | done |
---|
4785 | IFS=$as_save_IFS |
---|
4786 | |
---|
4787 | fi |
---|
4788 | fi |
---|
4789 | ac_ct_RC=$ac_cv_prog_ac_ct_RC |
---|
4790 | if test -n "$ac_ct_RC"; then |
---|
4791 | { echo "$as_me:$LINENO: result: $ac_ct_RC" >&5 |
---|
4792 | echo "${ECHO_T}$ac_ct_RC" >&6; } |
---|
4793 | else |
---|
4794 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4795 | echo "${ECHO_T}no" >&6; } |
---|
4796 | fi |
---|
4797 | |
---|
4798 | if test "x$ac_ct_RC" = x; then |
---|
4799 | RC="" |
---|
4800 | else |
---|
4801 | case $cross_compiling:$ac_tool_warned in |
---|
4802 | yes:) |
---|
4803 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
4804 | whose name does not start with the host triplet. If you think this |
---|
4805 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
4806 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
4807 | whose name does not start with the host triplet. If you think this |
---|
4808 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
4809 | ac_tool_warned=yes ;; |
---|
4810 | esac |
---|
4811 | RC=$ac_ct_RC |
---|
4812 | fi |
---|
4813 | else |
---|
4814 | RC="$ac_cv_prog_RC" |
---|
4815 | fi |
---|
4816 | |
---|
4817 | nt=true |
---|
4818 | ;; |
---|
4819 | *-*-darwin*) |
---|
4820 | SHARED_FLAGS="-shared" |
---|
4821 | |
---|
4822 | PLUGIN_FLAGS="-shared -avoid-version" |
---|
4823 | |
---|
4824 | GL_LIBS="-lGL -lGLU" |
---|
4825 | |
---|
4826 | osx=true |
---|
4827 | ;; |
---|
4828 | *) SHARED_FLAGS="-shared" |
---|
4829 | |
---|
4830 | PLUGIN_FLAGS="-shared -avoid-version" |
---|
4831 | |
---|
4832 | GL_LIBS="-lGL -lGLU" |
---|
4833 | |
---|
4834 | linux=true |
---|
4835 | ;; |
---|
4836 | esac |
---|
4837 | if test x$nt = xtrue; then |
---|
4838 | OGRE_NT_TRUE= |
---|
4839 | OGRE_NT_FALSE='#' |
---|
4840 | else |
---|
4841 | OGRE_NT_TRUE='#' |
---|
4842 | OGRE_NT_FALSE= |
---|
4843 | fi |
---|
4844 | |
---|
4845 | if test x$linux = xtrue; then |
---|
4846 | OGRE_LINUX_TRUE= |
---|
4847 | OGRE_LINUX_FALSE='#' |
---|
4848 | else |
---|
4849 | OGRE_LINUX_TRUE='#' |
---|
4850 | OGRE_LINUX_FALSE= |
---|
4851 | fi |
---|
4852 | |
---|
4853 | if test x$osx = xtrue ; then |
---|
4854 | OGRE_OSX_TRUE= |
---|
4855 | OGRE_OSX_FALSE='#' |
---|
4856 | else |
---|
4857 | OGRE_OSX_TRUE='#' |
---|
4858 | OGRE_OSX_FALSE= |
---|
4859 | fi |
---|
4860 | |
---|
4861 | |
---|
4862 | |
---|
4863 | # Check whether --enable-static was given. |
---|
4864 | if test "${enable_static+set}" = set; then |
---|
4865 | enableval=$enable_static; p=${PACKAGE-default} |
---|
4866 | case $enableval in |
---|
4867 | yes) enable_static=yes ;; |
---|
4868 | no) enable_static=no ;; |
---|
4869 | *) |
---|
4870 | enable_static=no |
---|
4871 | # Look at the argument we got. We use all the common list separators. |
---|
4872 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4873 | for pkg in $enableval; do |
---|
4874 | IFS="$lt_save_ifs" |
---|
4875 | if test "X$pkg" = "X$p"; then |
---|
4876 | enable_static=yes |
---|
4877 | fi |
---|
4878 | done |
---|
4879 | IFS="$lt_save_ifs" |
---|
4880 | ;; |
---|
4881 | esac |
---|
4882 | else |
---|
4883 | enable_static=no |
---|
4884 | fi |
---|
4885 | |
---|
4886 | |
---|
4887 | |
---|
4888 | # Check whether --enable-shared was given. |
---|
4889 | if test "${enable_shared+set}" = set; then |
---|
4890 | enableval=$enable_shared; p=${PACKAGE-default} |
---|
4891 | case $enableval in |
---|
4892 | yes) enable_shared=yes ;; |
---|
4893 | no) enable_shared=no ;; |
---|
4894 | *) |
---|
4895 | enable_shared=no |
---|
4896 | # Look at the argument we got. We use all the common list separators. |
---|
4897 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4898 | for pkg in $enableval; do |
---|
4899 | IFS="$lt_save_ifs" |
---|
4900 | if test "X$pkg" = "X$p"; then |
---|
4901 | enable_shared=yes |
---|
4902 | fi |
---|
4903 | done |
---|
4904 | IFS="$lt_save_ifs" |
---|
4905 | ;; |
---|
4906 | esac |
---|
4907 | else |
---|
4908 | enable_shared=yes |
---|
4909 | fi |
---|
4910 | |
---|
4911 | |
---|
4912 | # Check whether --enable-fast-install was given. |
---|
4913 | if test "${enable_fast_install+set}" = set; then |
---|
4914 | enableval=$enable_fast_install; p=${PACKAGE-default} |
---|
4915 | case $enableval in |
---|
4916 | yes) enable_fast_install=yes ;; |
---|
4917 | no) enable_fast_install=no ;; |
---|
4918 | *) |
---|
4919 | enable_fast_install=no |
---|
4920 | # Look at the argument we got. We use all the common list separators. |
---|
4921 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4922 | for pkg in $enableval; do |
---|
4923 | IFS="$lt_save_ifs" |
---|
4924 | if test "X$pkg" = "X$p"; then |
---|
4925 | enable_fast_install=yes |
---|
4926 | fi |
---|
4927 | done |
---|
4928 | IFS="$lt_save_ifs" |
---|
4929 | ;; |
---|
4930 | esac |
---|
4931 | else |
---|
4932 | enable_fast_install=yes |
---|
4933 | fi |
---|
4934 | |
---|
4935 | |
---|
4936 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
4937 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
---|
4938 | if test "${lt_cv_path_SED+set}" = set; then |
---|
4939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4940 | else |
---|
4941 | # Loop through the user's path and test for sed and gsed. |
---|
4942 | # Then use that list of sed's as ones to test for truncation. |
---|
4943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4944 | for as_dir in $PATH |
---|
4945 | do |
---|
4946 | IFS=$as_save_IFS |
---|
4947 | test -z "$as_dir" && as_dir=. |
---|
4948 | for lt_ac_prog in sed gsed; do |
---|
4949 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4950 | if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then |
---|
4951 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
4952 | fi |
---|
4953 | done |
---|
4954 | done |
---|
4955 | done |
---|
4956 | IFS=$as_save_IFS |
---|
4957 | lt_ac_max=0 |
---|
4958 | lt_ac_count=0 |
---|
4959 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
4960 | # along with /bin/sed that truncates output. |
---|
4961 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
4962 | test ! -f $lt_ac_sed && continue |
---|
4963 | cat /dev/null > conftest.in |
---|
4964 | lt_ac_count=0 |
---|
4965 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
4966 | # Check for GNU sed and select it if it is found. |
---|
4967 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
4968 | lt_cv_path_SED=$lt_ac_sed |
---|
4969 | break |
---|
4970 | fi |
---|
4971 | while true; do |
---|
4972 | cat conftest.in conftest.in >conftest.tmp |
---|
4973 | mv conftest.tmp conftest.in |
---|
4974 | cp conftest.in conftest.nl |
---|
4975 | echo >>conftest.nl |
---|
4976 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
4977 | cmp -s conftest.out conftest.nl || break |
---|
4978 | # 10000 chars as input seems more than enough |
---|
4979 | test $lt_ac_count -gt 10 && break |
---|
4980 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
4981 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
4982 | lt_ac_max=$lt_ac_count |
---|
4983 | lt_cv_path_SED=$lt_ac_sed |
---|
4984 | fi |
---|
4985 | done |
---|
4986 | done |
---|
4987 | |
---|
4988 | fi |
---|
4989 | |
---|
4990 | SED=$lt_cv_path_SED |
---|
4991 | |
---|
4992 | { echo "$as_me:$LINENO: result: $SED" >&5 |
---|
4993 | echo "${ECHO_T}$SED" >&6; } |
---|
4994 | |
---|
4995 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
---|
4996 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
---|
4997 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
4998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4999 | else |
---|
5000 | # Extract the first word of "grep ggrep" to use in msg output |
---|
5001 | if test -z "$GREP"; then |
---|
5002 | set dummy grep ggrep; ac_prog_name=$2 |
---|
5003 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
5004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5005 | else |
---|
5006 | ac_path_GREP_found=false |
---|
5007 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5009 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5010 | do |
---|
5011 | IFS=$as_save_IFS |
---|
5012 | test -z "$as_dir" && as_dir=. |
---|
5013 | for ac_prog in grep ggrep; do |
---|
5014 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5015 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5016 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
5017 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
5018 | # Check for GNU $ac_path_GREP |
---|
5019 | case `"$ac_path_GREP" --version 2>&1` in |
---|
5020 | *GNU*) |
---|
5021 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
5022 | *) |
---|
5023 | ac_count=0 |
---|
5024 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
5025 | while : |
---|
5026 | do |
---|
5027 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5028 | mv "conftest.tmp" "conftest.in" |
---|
5029 | cp "conftest.in" "conftest.nl" |
---|
5030 | echo 'GREP' >> "conftest.nl" |
---|
5031 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5032 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5033 | ac_count=`expr $ac_count + 1` |
---|
5034 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
5035 | # Best one so far, save it but keep looking for a better one |
---|
5036 | ac_cv_path_GREP="$ac_path_GREP" |
---|
5037 | ac_path_GREP_max=$ac_count |
---|
5038 | fi |
---|
5039 | # 10*(2^10) chars as input seems more than enough |
---|
5040 | test $ac_count -gt 10 && break |
---|
5041 | done |
---|
5042 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5043 | esac |
---|
5044 | |
---|
5045 | |
---|
5046 | $ac_path_GREP_found && break 3 |
---|
5047 | done |
---|
5048 | done |
---|
5049 | |
---|
5050 | done |
---|
5051 | IFS=$as_save_IFS |
---|
5052 | |
---|
5053 | |
---|
5054 | fi |
---|
5055 | |
---|
5056 | GREP="$ac_cv_path_GREP" |
---|
5057 | if test -z "$GREP"; then |
---|
5058 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
5059 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
5060 | { (exit 1); exit 1; }; } |
---|
5061 | fi |
---|
5062 | |
---|
5063 | else |
---|
5064 | ac_cv_path_GREP=$GREP |
---|
5065 | fi |
---|
5066 | |
---|
5067 | |
---|
5068 | fi |
---|
5069 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
---|
5070 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
---|
5071 | GREP="$ac_cv_path_GREP" |
---|
5072 | |
---|
5073 | |
---|
5074 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
5075 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
---|
5076 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
5077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5078 | else |
---|
5079 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
5080 | then ac_cv_path_EGREP="$GREP -E" |
---|
5081 | else |
---|
5082 | # Extract the first word of "egrep" to use in msg output |
---|
5083 | if test -z "$EGREP"; then |
---|
5084 | set dummy egrep; ac_prog_name=$2 |
---|
5085 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
5086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5087 | else |
---|
5088 | ac_path_EGREP_found=false |
---|
5089 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5091 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5092 | do |
---|
5093 | IFS=$as_save_IFS |
---|
5094 | test -z "$as_dir" && as_dir=. |
---|
5095 | for ac_prog in egrep; do |
---|
5096 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5097 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5098 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
5099 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
5100 | # Check for GNU $ac_path_EGREP |
---|
5101 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
5102 | *GNU*) |
---|
5103 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
5104 | *) |
---|
5105 | ac_count=0 |
---|
5106 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
5107 | while : |
---|
5108 | do |
---|
5109 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5110 | mv "conftest.tmp" "conftest.in" |
---|
5111 | cp "conftest.in" "conftest.nl" |
---|
5112 | echo 'EGREP' >> "conftest.nl" |
---|
5113 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5114 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5115 | ac_count=`expr $ac_count + 1` |
---|
5116 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
5117 | # Best one so far, save it but keep looking for a better one |
---|
5118 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
5119 | ac_path_EGREP_max=$ac_count |
---|
5120 | fi |
---|
5121 | # 10*(2^10) chars as input seems more than enough |
---|
5122 | test $ac_count -gt 10 && break |
---|
5123 | done |
---|
5124 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5125 | esac |
---|
5126 | |
---|
5127 | |
---|
5128 | $ac_path_EGREP_found && break 3 |
---|
5129 | done |
---|
5130 | done |
---|
5131 | |
---|
5132 | done |
---|
5133 | IFS=$as_save_IFS |
---|
5134 | |
---|
5135 | |
---|
5136 | fi |
---|
5137 | |
---|
5138 | EGREP="$ac_cv_path_EGREP" |
---|
5139 | if test -z "$EGREP"; then |
---|
5140 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
5141 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
5142 | { (exit 1); exit 1; }; } |
---|
5143 | fi |
---|
5144 | |
---|
5145 | else |
---|
5146 | ac_cv_path_EGREP=$EGREP |
---|
5147 | fi |
---|
5148 | |
---|
5149 | |
---|
5150 | fi |
---|
5151 | fi |
---|
5152 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
---|
5153 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
---|
5154 | EGREP="$ac_cv_path_EGREP" |
---|
5155 | |
---|
5156 | |
---|
5157 | |
---|
5158 | # Check whether --with-gnu-ld was given. |
---|
5159 | if test "${with_gnu_ld+set}" = set; then |
---|
5160 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
---|
5161 | else |
---|
5162 | with_gnu_ld=no |
---|
5163 | fi |
---|
5164 | |
---|
5165 | ac_prog=ld |
---|
5166 | if test "$GCC" = yes; then |
---|
5167 | # Check if gcc -print-prog-name=ld gives a path. |
---|
5168 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
5169 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
---|
5170 | case $host in |
---|
5171 | *-*-mingw*) |
---|
5172 | # gcc leaves a trailing carriage return which upsets mingw |
---|
5173 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
5174 | *) |
---|
5175 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
5176 | esac |
---|
5177 | case $ac_prog in |
---|
5178 | # Accept absolute paths. |
---|
5179 | [\\/]* | ?:[\\/]*) |
---|
5180 | re_direlt='/[^/][^/]*/\.\./' |
---|
5181 | # Canonicalize the pathname of ld |
---|
5182 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
5183 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
5184 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
5185 | done |
---|
5186 | test -z "$LD" && LD="$ac_prog" |
---|
5187 | ;; |
---|
5188 | "") |
---|
5189 | # If it fails, then pretend we aren't using GCC. |
---|
5190 | ac_prog=ld |
---|
5191 | ;; |
---|
5192 | *) |
---|
5193 | # If it is relative, then search for the first ld in PATH. |
---|
5194 | with_gnu_ld=unknown |
---|
5195 | ;; |
---|
5196 | esac |
---|
5197 | elif test "$with_gnu_ld" = yes; then |
---|
5198 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
5199 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
---|
5200 | else |
---|
5201 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
5202 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
---|
5203 | fi |
---|
5204 | if test "${lt_cv_path_LD+set}" = set; then |
---|
5205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5206 | else |
---|
5207 | if test -z "$LD"; then |
---|
5208 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5209 | for ac_dir in $PATH; do |
---|
5210 | IFS="$lt_save_ifs" |
---|
5211 | test -z "$ac_dir" && ac_dir=. |
---|
5212 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
5213 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
5214 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
5215 | # but apparently some variants of GNU ld only accept -v. |
---|
5216 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
5217 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
5218 | *GNU* | *'with BFD'*) |
---|
5219 | test "$with_gnu_ld" != no && break |
---|
5220 | ;; |
---|
5221 | *) |
---|
5222 | test "$with_gnu_ld" != yes && break |
---|
5223 | ;; |
---|
5224 | esac |
---|
5225 | fi |
---|
5226 | done |
---|
5227 | IFS="$lt_save_ifs" |
---|
5228 | else |
---|
5229 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
5230 | fi |
---|
5231 | fi |
---|
5232 | |
---|
5233 | LD="$lt_cv_path_LD" |
---|
5234 | if test -n "$LD"; then |
---|
5235 | { echo "$as_me:$LINENO: result: $LD" >&5 |
---|
5236 | echo "${ECHO_T}$LD" >&6; } |
---|
5237 | else |
---|
5238 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
5239 | echo "${ECHO_T}no" >&6; } |
---|
5240 | fi |
---|
5241 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
5242 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
5243 | { (exit 1); exit 1; }; } |
---|
5244 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
5245 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
---|
5246 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5248 | else |
---|
5249 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
5250 | case `$LD -v 2>&1 </dev/null` in |
---|
5251 | *GNU* | *'with BFD'*) |
---|
5252 | lt_cv_prog_gnu_ld=yes |
---|
5253 | ;; |
---|
5254 | *) |
---|
5255 | lt_cv_prog_gnu_ld=no |
---|
5256 | ;; |
---|
5257 | esac |
---|
5258 | fi |
---|
5259 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
5260 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
---|
5261 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
5262 | |
---|
5263 | |
---|
5264 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
5265 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
---|
5266 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
5267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5268 | else |
---|
5269 | lt_cv_ld_reload_flag='-r' |
---|
5270 | fi |
---|
5271 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
5272 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
---|
5273 | reload_flag=$lt_cv_ld_reload_flag |
---|
5274 | case $reload_flag in |
---|
5275 | "" | " "*) ;; |
---|
5276 | *) reload_flag=" $reload_flag" ;; |
---|
5277 | esac |
---|
5278 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5279 | case $host_os in |
---|
5280 | darwin*) |
---|
5281 | if test "$GCC" = yes; then |
---|
5282 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
5283 | else |
---|
5284 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5285 | fi |
---|
5286 | ;; |
---|
5287 | esac |
---|
5288 | |
---|
5289 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
5290 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
---|
5291 | if test "${lt_cv_path_NM+set}" = set; then |
---|
5292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5293 | else |
---|
5294 | if test -n "$NM"; then |
---|
5295 | # Let the user override the test. |
---|
5296 | lt_cv_path_NM="$NM" |
---|
5297 | else |
---|
5298 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
5299 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
5300 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
5301 | fi |
---|
5302 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
5303 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5304 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
5305 | IFS="$lt_save_ifs" |
---|
5306 | test -z "$ac_dir" && ac_dir=. |
---|
5307 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
5308 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
5309 | # Check to see if the nm accepts a BSD-compat flag. |
---|
5310 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
5311 | # nm: unknown option "B" ignored |
---|
5312 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
5313 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
5314 | */dev/null* | *'Invalid file or object type'*) |
---|
5315 | lt_cv_path_NM="$tmp_nm -B" |
---|
5316 | break |
---|
5317 | ;; |
---|
5318 | *) |
---|
5319 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
5320 | */dev/null*) |
---|
5321 | lt_cv_path_NM="$tmp_nm -p" |
---|
5322 | break |
---|
5323 | ;; |
---|
5324 | *) |
---|
5325 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
5326 | continue # so that we can try to find one that supports BSD flags |
---|
5327 | ;; |
---|
5328 | esac |
---|
5329 | ;; |
---|
5330 | esac |
---|
5331 | fi |
---|
5332 | done |
---|
5333 | IFS="$lt_save_ifs" |
---|
5334 | done |
---|
5335 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
5336 | fi |
---|
5337 | fi |
---|
5338 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
5339 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
---|
5340 | NM="$lt_cv_path_NM" |
---|
5341 | |
---|
5342 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
5343 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
---|
5344 | LN_S=$as_ln_s |
---|
5345 | if test "$LN_S" = "ln -s"; then |
---|
5346 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
5347 | echo "${ECHO_T}yes" >&6; } |
---|
5348 | else |
---|
5349 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
5350 | echo "${ECHO_T}no, using $LN_S" >&6; } |
---|
5351 | fi |
---|
5352 | |
---|
5353 | { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
---|
5354 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } |
---|
5355 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
5356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5357 | else |
---|
5358 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
5359 | lt_cv_file_magic_test_file= |
---|
5360 | lt_cv_deplibs_check_method='unknown' |
---|
5361 | # Need to set the preceding variable on all platforms that support |
---|
5362 | # interlibrary dependencies. |
---|
5363 | # 'none' -- dependencies not supported. |
---|
5364 | # `unknown' -- same as none, but documents that we really don't know. |
---|
5365 | # 'pass_all' -- all dependencies passed with no checks. |
---|
5366 | # 'test_compile' -- check by making test program. |
---|
5367 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
5368 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
5369 | # If you have `file' or equivalent on your system and you're not sure |
---|
5370 | # whether `pass_all' will *always* work, you probably want this one. |
---|
5371 | |
---|
5372 | case $host_os in |
---|
5373 | aix4* | aix5*) |
---|
5374 | lt_cv_deplibs_check_method=pass_all |
---|
5375 | ;; |
---|
5376 | |
---|
5377 | beos*) |
---|
5378 | lt_cv_deplibs_check_method=pass_all |
---|
5379 | ;; |
---|
5380 | |
---|
5381 | bsdi[45]*) |
---|
5382 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
5383 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
5384 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
5385 | ;; |
---|
5386 | |
---|
5387 | cygwin*) |
---|
5388 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
5389 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
5390 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
5391 | ;; |
---|
5392 | |
---|
5393 | mingw* | pw32*) |
---|
5394 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
5395 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
---|
5396 | # unless we find 'file', for example because we are cross-compiling. |
---|
5397 | if ( file / ) >/dev/null 2>&1; then |
---|
5398 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
5399 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
5400 | else |
---|
5401 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
5402 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
5403 | fi |
---|
5404 | ;; |
---|
5405 | |
---|
5406 | darwin* | rhapsody*) |
---|
5407 | lt_cv_deplibs_check_method=pass_all |
---|
5408 | ;; |
---|
5409 | |
---|
5410 | freebsd* | dragonfly*) |
---|
5411 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
5412 | case $host_cpu in |
---|
5413 | i*86 ) |
---|
5414 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
5415 | # Let's accept both of them until this is cleared up. |
---|
5416 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
5417 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5418 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
5419 | ;; |
---|
5420 | esac |
---|
5421 | else |
---|
5422 | lt_cv_deplibs_check_method=pass_all |
---|
5423 | fi |
---|
5424 | ;; |
---|
5425 | |
---|
5426 | gnu*) |
---|
5427 | lt_cv_deplibs_check_method=pass_all |
---|
5428 | ;; |
---|
5429 | |
---|
5430 | hpux10.20* | hpux11*) |
---|
5431 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5432 | case $host_cpu in |
---|
5433 | ia64*) |
---|
5434 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
5435 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
5436 | ;; |
---|
5437 | hppa*64*) |
---|
5438 | 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]' |
---|
5439 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
5440 | ;; |
---|
5441 | *) |
---|
5442 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
5443 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
5444 | ;; |
---|
5445 | esac |
---|
5446 | ;; |
---|
5447 | |
---|
5448 | interix[3-9]*) |
---|
5449 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
5450 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
5451 | ;; |
---|
5452 | |
---|
5453 | irix5* | irix6* | nonstopux*) |
---|
5454 | case $LD in |
---|
5455 | *-32|*"-32 ") libmagic=32-bit;; |
---|
5456 | *-n32|*"-n32 ") libmagic=N32;; |
---|
5457 | *-64|*"-64 ") libmagic=64-bit;; |
---|
5458 | *) libmagic=never-match;; |
---|
5459 | esac |
---|
5460 | lt_cv_deplibs_check_method=pass_all |
---|
5461 | ;; |
---|
5462 | |
---|
5463 | # This must be Linux ELF. |
---|
5464 | linux* | k*bsd*-gnu) |
---|
5465 | lt_cv_deplibs_check_method=pass_all |
---|
5466 | ;; |
---|
5467 | |
---|
5468 | netbsd*) |
---|
5469 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
5470 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
5471 | else |
---|
5472 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
5473 | fi |
---|
5474 | ;; |
---|
5475 | |
---|
5476 | newos6*) |
---|
5477 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
5478 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5479 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
5480 | ;; |
---|
5481 | |
---|
5482 | nto-qnx*) |
---|
5483 | lt_cv_deplibs_check_method=unknown |
---|
5484 | ;; |
---|
5485 | |
---|
5486 | openbsd*) |
---|
5487 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
5488 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
5489 | else |
---|
5490 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
5491 | fi |
---|
5492 | ;; |
---|
5493 | |
---|
5494 | osf3* | osf4* | osf5*) |
---|
5495 | lt_cv_deplibs_check_method=pass_all |
---|
5496 | ;; |
---|
5497 | |
---|
5498 | rdos*) |
---|
5499 | lt_cv_deplibs_check_method=pass_all |
---|
5500 | ;; |
---|
5501 | |
---|
5502 | solaris*) |
---|
5503 | lt_cv_deplibs_check_method=pass_all |
---|
5504 | ;; |
---|
5505 | |
---|
5506 | sysv4 | sysv4.3*) |
---|
5507 | case $host_vendor in |
---|
5508 | motorola) |
---|
5509 | 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]' |
---|
5510 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
5511 | ;; |
---|
5512 | ncr) |
---|
5513 | lt_cv_deplibs_check_method=pass_all |
---|
5514 | ;; |
---|
5515 | sequent) |
---|
5516 | lt_cv_file_magic_cmd='/bin/file' |
---|
5517 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
5518 | ;; |
---|
5519 | sni) |
---|
5520 | lt_cv_file_magic_cmd='/bin/file' |
---|
5521 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
5522 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
5523 | ;; |
---|
5524 | siemens) |
---|
5525 | lt_cv_deplibs_check_method=pass_all |
---|
5526 | ;; |
---|
5527 | pc) |
---|
5528 | lt_cv_deplibs_check_method=pass_all |
---|
5529 | ;; |
---|
5530 | esac |
---|
5531 | ;; |
---|
5532 | |
---|
5533 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
5534 | lt_cv_deplibs_check_method=pass_all |
---|
5535 | ;; |
---|
5536 | esac |
---|
5537 | |
---|
5538 | fi |
---|
5539 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
5540 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
---|
5541 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
5542 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
5543 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
5544 | |
---|
5545 | |
---|
5546 | |
---|
5547 | |
---|
5548 | # If no C compiler was specified, use CC. |
---|
5549 | LTCC=${LTCC-"$CC"} |
---|
5550 | |
---|
5551 | # If no C compiler flags were specified, use CFLAGS. |
---|
5552 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
5553 | |
---|
5554 | # Allow CC to be a program name with arguments. |
---|
5555 | compiler=$CC |
---|
5556 | |
---|
5557 | # Check whether --enable-libtool-lock was given. |
---|
5558 | if test "${enable_libtool_lock+set}" = set; then |
---|
5559 | enableval=$enable_libtool_lock; |
---|
5560 | fi |
---|
5561 | |
---|
5562 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
5563 | |
---|
5564 | # Some flags need to be propagated to the compiler or linker for good |
---|
5565 | # libtool support. |
---|
5566 | case $host in |
---|
5567 | ia64-*-hpux*) |
---|
5568 | # Find out which ABI we are using. |
---|
5569 | echo 'int i;' > conftest.$ac_ext |
---|
5570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5571 | (eval $ac_compile) 2>&5 |
---|
5572 | ac_status=$? |
---|
5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5574 | (exit $ac_status); }; then |
---|
5575 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5576 | *ELF-32*) |
---|
5577 | HPUX_IA64_MODE="32" |
---|
5578 | ;; |
---|
5579 | *ELF-64*) |
---|
5580 | HPUX_IA64_MODE="64" |
---|
5581 | ;; |
---|
5582 | esac |
---|
5583 | fi |
---|
5584 | rm -rf conftest* |
---|
5585 | ;; |
---|
5586 | *-*-irix6*) |
---|
5587 | # Find out which ABI we are using. |
---|
5588 | echo '#line 5588 "configure"' > conftest.$ac_ext |
---|
5589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5590 | (eval $ac_compile) 2>&5 |
---|
5591 | ac_status=$? |
---|
5592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5593 | (exit $ac_status); }; then |
---|
5594 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
5595 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5596 | *32-bit*) |
---|
5597 | LD="${LD-ld} -melf32bsmip" |
---|
5598 | ;; |
---|
5599 | *N32*) |
---|
5600 | LD="${LD-ld} -melf32bmipn32" |
---|
5601 | ;; |
---|
5602 | *64-bit*) |
---|
5603 | LD="${LD-ld} -melf64bmip" |
---|
5604 | ;; |
---|
5605 | esac |
---|
5606 | else |
---|
5607 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5608 | *32-bit*) |
---|
5609 | LD="${LD-ld} -32" |
---|
5610 | ;; |
---|
5611 | *N32*) |
---|
5612 | LD="${LD-ld} -n32" |
---|
5613 | ;; |
---|
5614 | *64-bit*) |
---|
5615 | LD="${LD-ld} -64" |
---|
5616 | ;; |
---|
5617 | esac |
---|
5618 | fi |
---|
5619 | fi |
---|
5620 | rm -rf conftest* |
---|
5621 | ;; |
---|
5622 | |
---|
5623 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
---|
5624 | s390*-*linux*|sparc*-*linux*) |
---|
5625 | # Find out which ABI we are using. |
---|
5626 | echo 'int i;' > conftest.$ac_ext |
---|
5627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5628 | (eval $ac_compile) 2>&5 |
---|
5629 | ac_status=$? |
---|
5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5631 | (exit $ac_status); }; then |
---|
5632 | case `/usr/bin/file conftest.o` in |
---|
5633 | *32-bit*) |
---|
5634 | case $host in |
---|
5635 | x86_64-*kfreebsd*-gnu) |
---|
5636 | LD="${LD-ld} -m elf_i386_fbsd" |
---|
5637 | ;; |
---|
5638 | x86_64-*linux*) |
---|
5639 | LD="${LD-ld} -m elf_i386" |
---|
5640 | ;; |
---|
5641 | ppc64-*linux*|powerpc64-*linux*) |
---|
5642 | LD="${LD-ld} -m elf32ppclinux" |
---|
5643 | ;; |
---|
5644 | s390x-*linux*) |
---|
5645 | LD="${LD-ld} -m elf_s390" |
---|
5646 | ;; |
---|
5647 | sparc64-*linux*) |
---|
5648 | LD="${LD-ld} -m elf32_sparc" |
---|
5649 | ;; |
---|
5650 | esac |
---|
5651 | ;; |
---|
5652 | *64-bit*) |
---|
5653 | case $host in |
---|
5654 | x86_64-*kfreebsd*-gnu) |
---|
5655 | LD="${LD-ld} -m elf_x86_64_fbsd" |
---|
5656 | ;; |
---|
5657 | x86_64-*linux*) |
---|
5658 | LD="${LD-ld} -m elf_x86_64" |
---|
5659 | ;; |
---|
5660 | ppc*-*linux*|powerpc*-*linux*) |
---|
5661 | LD="${LD-ld} -m elf64ppc" |
---|
5662 | ;; |
---|
5663 | s390*-*linux*) |
---|
5664 | LD="${LD-ld} -m elf64_s390" |
---|
5665 | ;; |
---|
5666 | sparc*-*linux*) |
---|
5667 | LD="${LD-ld} -m elf64_sparc" |
---|
5668 | ;; |
---|
5669 | esac |
---|
5670 | ;; |
---|
5671 | esac |
---|
5672 | fi |
---|
5673 | rm -rf conftest* |
---|
5674 | ;; |
---|
5675 | |
---|
5676 | *-*-sco3.2v5*) |
---|
5677 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
5678 | SAVE_CFLAGS="$CFLAGS" |
---|
5679 | CFLAGS="$CFLAGS -belf" |
---|
5680 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
5681 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
---|
5682 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
5683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5684 | else |
---|
5685 | ac_ext=c |
---|
5686 | ac_cpp='$CPP $CPPFLAGS' |
---|
5687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5690 | |
---|
5691 | cat >conftest.$ac_ext <<_ACEOF |
---|
5692 | /* confdefs.h. */ |
---|
5693 | _ACEOF |
---|
5694 | cat confdefs.h >>conftest.$ac_ext |
---|
5695 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5696 | /* end confdefs.h. */ |
---|
5697 | |
---|
5698 | int |
---|
5699 | main () |
---|
5700 | { |
---|
5701 | |
---|
5702 | ; |
---|
5703 | return 0; |
---|
5704 | } |
---|
5705 | _ACEOF |
---|
5706 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5707 | if { (ac_try="$ac_link" |
---|
5708 | case "(($ac_try" in |
---|
5709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5710 | *) ac_try_echo=$ac_try;; |
---|
5711 | esac |
---|
5712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5713 | (eval "$ac_link") 2>conftest.er1 |
---|
5714 | ac_status=$? |
---|
5715 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5716 | rm -f conftest.er1 |
---|
5717 | cat conftest.err >&5 |
---|
5718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5719 | (exit $ac_status); } && { |
---|
5720 | test -z "$ac_c_werror_flag" || |
---|
5721 | test ! -s conftest.err |
---|
5722 | } && test -s conftest$ac_exeext && |
---|
5723 | $as_test_x conftest$ac_exeext; then |
---|
5724 | lt_cv_cc_needs_belf=yes |
---|
5725 | else |
---|
5726 | echo "$as_me: failed program was:" >&5 |
---|
5727 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5728 | |
---|
5729 | lt_cv_cc_needs_belf=no |
---|
5730 | fi |
---|
5731 | |
---|
5732 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5733 | conftest$ac_exeext conftest.$ac_ext |
---|
5734 | ac_ext=c |
---|
5735 | ac_cpp='$CPP $CPPFLAGS' |
---|
5736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5739 | |
---|
5740 | fi |
---|
5741 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
5742 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
---|
5743 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
5744 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
5745 | CFLAGS="$SAVE_CFLAGS" |
---|
5746 | fi |
---|
5747 | ;; |
---|
5748 | sparc*-*solaris*) |
---|
5749 | # Find out which ABI we are using. |
---|
5750 | echo 'int i;' > conftest.$ac_ext |
---|
5751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5752 | (eval $ac_compile) 2>&5 |
---|
5753 | ac_status=$? |
---|
5754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5755 | (exit $ac_status); }; then |
---|
5756 | case `/usr/bin/file conftest.o` in |
---|
5757 | *64-bit*) |
---|
5758 | case $lt_cv_prog_gnu_ld in |
---|
5759 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
---|
5760 | *) LD="${LD-ld} -64" ;; |
---|
5761 | esac |
---|
5762 | ;; |
---|
5763 | esac |
---|
5764 | fi |
---|
5765 | rm -rf conftest* |
---|
5766 | ;; |
---|
5767 | |
---|
5768 | |
---|
5769 | esac |
---|
5770 | |
---|
5771 | need_locks="$enable_libtool_lock" |
---|
5772 | |
---|
5773 | |
---|
5774 | ac_ext=c |
---|
5775 | ac_cpp='$CPP $CPPFLAGS' |
---|
5776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5779 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
5780 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
---|
5781 | # On Suns, sometimes $CPP names a directory. |
---|
5782 | if test -n "$CPP" && test -d "$CPP"; then |
---|
5783 | CPP= |
---|
5784 | fi |
---|
5785 | if test -z "$CPP"; then |
---|
5786 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
5787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5788 | else |
---|
5789 | # Double quotes because CPP needs to be expanded |
---|
5790 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
5791 | do |
---|
5792 | ac_preproc_ok=false |
---|
5793 | for ac_c_preproc_warn_flag in '' yes |
---|
5794 | do |
---|
5795 | # Use a header file that comes with gcc, so configuring glibc |
---|
5796 | # with a fresh cross-compiler works. |
---|
5797 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5798 | # <limits.h> exists even on freestanding compilers. |
---|
5799 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5800 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5801 | cat >conftest.$ac_ext <<_ACEOF |
---|
5802 | /* confdefs.h. */ |
---|
5803 | _ACEOF |
---|
5804 | cat confdefs.h >>conftest.$ac_ext |
---|
5805 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5806 | /* end confdefs.h. */ |
---|
5807 | #ifdef __STDC__ |
---|
5808 | # include <limits.h> |
---|
5809 | #else |
---|
5810 | # include <assert.h> |
---|
5811 | #endif |
---|
5812 | Syntax error |
---|
5813 | _ACEOF |
---|
5814 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5815 | case "(($ac_try" in |
---|
5816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5817 | *) ac_try_echo=$ac_try;; |
---|
5818 | esac |
---|
5819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5820 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5821 | ac_status=$? |
---|
5822 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5823 | rm -f conftest.er1 |
---|
5824 | cat conftest.err >&5 |
---|
5825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5826 | (exit $ac_status); } >/dev/null && { |
---|
5827 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5828 | test ! -s conftest.err |
---|
5829 | }; then |
---|
5830 | : |
---|
5831 | else |
---|
5832 | echo "$as_me: failed program was:" >&5 |
---|
5833 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5834 | |
---|
5835 | # Broken: fails on valid input. |
---|
5836 | continue |
---|
5837 | fi |
---|
5838 | |
---|
5839 | rm -f conftest.err conftest.$ac_ext |
---|
5840 | |
---|
5841 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5842 | # can be detected and how. |
---|
5843 | cat >conftest.$ac_ext <<_ACEOF |
---|
5844 | /* confdefs.h. */ |
---|
5845 | _ACEOF |
---|
5846 | cat confdefs.h >>conftest.$ac_ext |
---|
5847 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5848 | /* end confdefs.h. */ |
---|
5849 | #include <ac_nonexistent.h> |
---|
5850 | _ACEOF |
---|
5851 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5852 | case "(($ac_try" in |
---|
5853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5854 | *) ac_try_echo=$ac_try;; |
---|
5855 | esac |
---|
5856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5857 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5858 | ac_status=$? |
---|
5859 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5860 | rm -f conftest.er1 |
---|
5861 | cat conftest.err >&5 |
---|
5862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5863 | (exit $ac_status); } >/dev/null && { |
---|
5864 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5865 | test ! -s conftest.err |
---|
5866 | }; then |
---|
5867 | # Broken: success on invalid input. |
---|
5868 | continue |
---|
5869 | else |
---|
5870 | echo "$as_me: failed program was:" >&5 |
---|
5871 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5872 | |
---|
5873 | # Passes both tests. |
---|
5874 | ac_preproc_ok=: |
---|
5875 | break |
---|
5876 | fi |
---|
5877 | |
---|
5878 | rm -f conftest.err conftest.$ac_ext |
---|
5879 | |
---|
5880 | done |
---|
5881 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5882 | rm -f conftest.err conftest.$ac_ext |
---|
5883 | if $ac_preproc_ok; then |
---|
5884 | break |
---|
5885 | fi |
---|
5886 | |
---|
5887 | done |
---|
5888 | ac_cv_prog_CPP=$CPP |
---|
5889 | |
---|
5890 | fi |
---|
5891 | CPP=$ac_cv_prog_CPP |
---|
5892 | else |
---|
5893 | ac_cv_prog_CPP=$CPP |
---|
5894 | fi |
---|
5895 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
5896 | echo "${ECHO_T}$CPP" >&6; } |
---|
5897 | ac_preproc_ok=false |
---|
5898 | for ac_c_preproc_warn_flag in '' yes |
---|
5899 | do |
---|
5900 | # Use a header file that comes with gcc, so configuring glibc |
---|
5901 | # with a fresh cross-compiler works. |
---|
5902 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5903 | # <limits.h> exists even on freestanding compilers. |
---|
5904 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5905 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5906 | cat >conftest.$ac_ext <<_ACEOF |
---|
5907 | /* confdefs.h. */ |
---|
5908 | _ACEOF |
---|
5909 | cat confdefs.h >>conftest.$ac_ext |
---|
5910 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5911 | /* end confdefs.h. */ |
---|
5912 | #ifdef __STDC__ |
---|
5913 | # include <limits.h> |
---|
5914 | #else |
---|
5915 | # include <assert.h> |
---|
5916 | #endif |
---|
5917 | Syntax error |
---|
5918 | _ACEOF |
---|
5919 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5920 | case "(($ac_try" in |
---|
5921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5922 | *) ac_try_echo=$ac_try;; |
---|
5923 | esac |
---|
5924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5925 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5926 | ac_status=$? |
---|
5927 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5928 | rm -f conftest.er1 |
---|
5929 | cat conftest.err >&5 |
---|
5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5931 | (exit $ac_status); } >/dev/null && { |
---|
5932 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5933 | test ! -s conftest.err |
---|
5934 | }; then |
---|
5935 | : |
---|
5936 | else |
---|
5937 | echo "$as_me: failed program was:" >&5 |
---|
5938 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5939 | |
---|
5940 | # Broken: fails on valid input. |
---|
5941 | continue |
---|
5942 | fi |
---|
5943 | |
---|
5944 | rm -f conftest.err conftest.$ac_ext |
---|
5945 | |
---|
5946 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5947 | # can be detected and how. |
---|
5948 | cat >conftest.$ac_ext <<_ACEOF |
---|
5949 | /* confdefs.h. */ |
---|
5950 | _ACEOF |
---|
5951 | cat confdefs.h >>conftest.$ac_ext |
---|
5952 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5953 | /* end confdefs.h. */ |
---|
5954 | #include <ac_nonexistent.h> |
---|
5955 | _ACEOF |
---|
5956 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5957 | case "(($ac_try" in |
---|
5958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5959 | *) ac_try_echo=$ac_try;; |
---|
5960 | esac |
---|
5961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5962 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5963 | ac_status=$? |
---|
5964 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5965 | rm -f conftest.er1 |
---|
5966 | cat conftest.err >&5 |
---|
5967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5968 | (exit $ac_status); } >/dev/null && { |
---|
5969 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5970 | test ! -s conftest.err |
---|
5971 | }; then |
---|
5972 | # Broken: success on invalid input. |
---|
5973 | continue |
---|
5974 | else |
---|
5975 | echo "$as_me: failed program was:" >&5 |
---|
5976 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5977 | |
---|
5978 | # Passes both tests. |
---|
5979 | ac_preproc_ok=: |
---|
5980 | break |
---|
5981 | fi |
---|
5982 | |
---|
5983 | rm -f conftest.err conftest.$ac_ext |
---|
5984 | |
---|
5985 | done |
---|
5986 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5987 | rm -f conftest.err conftest.$ac_ext |
---|
5988 | if $ac_preproc_ok; then |
---|
5989 | : |
---|
5990 | else |
---|
5991 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
5992 | See \`config.log' for more details." >&5 |
---|
5993 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
5994 | See \`config.log' for more details." >&2;} |
---|
5995 | { (exit 1); exit 1; }; } |
---|
5996 | fi |
---|
5997 | |
---|
5998 | ac_ext=c |
---|
5999 | ac_cpp='$CPP $CPPFLAGS' |
---|
6000 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6001 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6002 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6003 | |
---|
6004 | |
---|
6005 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
6006 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
---|
6007 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
6008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6009 | else |
---|
6010 | cat >conftest.$ac_ext <<_ACEOF |
---|
6011 | /* confdefs.h. */ |
---|
6012 | _ACEOF |
---|
6013 | cat confdefs.h >>conftest.$ac_ext |
---|
6014 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6015 | /* end confdefs.h. */ |
---|
6016 | #include <stdlib.h> |
---|
6017 | #include <stdarg.h> |
---|
6018 | #include <string.h> |
---|
6019 | #include <float.h> |
---|
6020 | |
---|
6021 | int |
---|
6022 | main () |
---|
6023 | { |
---|
6024 | |
---|
6025 | ; |
---|
6026 | return 0; |
---|
6027 | } |
---|
6028 | _ACEOF |
---|
6029 | rm -f conftest.$ac_objext |
---|
6030 | if { (ac_try="$ac_compile" |
---|
6031 | case "(($ac_try" in |
---|
6032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6033 | *) ac_try_echo=$ac_try;; |
---|
6034 | esac |
---|
6035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6036 | (eval "$ac_compile") 2>conftest.er1 |
---|
6037 | ac_status=$? |
---|
6038 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6039 | rm -f conftest.er1 |
---|
6040 | cat conftest.err >&5 |
---|
6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6042 | (exit $ac_status); } && { |
---|
6043 | test -z "$ac_c_werror_flag" || |
---|
6044 | test ! -s conftest.err |
---|
6045 | } && test -s conftest.$ac_objext; then |
---|
6046 | ac_cv_header_stdc=yes |
---|
6047 | else |
---|
6048 | echo "$as_me: failed program was:" >&5 |
---|
6049 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6050 | |
---|
6051 | ac_cv_header_stdc=no |
---|
6052 | fi |
---|
6053 | |
---|
6054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6055 | |
---|
6056 | if test $ac_cv_header_stdc = yes; then |
---|
6057 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
6058 | cat >conftest.$ac_ext <<_ACEOF |
---|
6059 | /* confdefs.h. */ |
---|
6060 | _ACEOF |
---|
6061 | cat confdefs.h >>conftest.$ac_ext |
---|
6062 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6063 | /* end confdefs.h. */ |
---|
6064 | #include <string.h> |
---|
6065 | |
---|
6066 | _ACEOF |
---|
6067 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6068 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
6069 | : |
---|
6070 | else |
---|
6071 | ac_cv_header_stdc=no |
---|
6072 | fi |
---|
6073 | rm -f conftest* |
---|
6074 | |
---|
6075 | fi |
---|
6076 | |
---|
6077 | if test $ac_cv_header_stdc = yes; then |
---|
6078 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
6079 | cat >conftest.$ac_ext <<_ACEOF |
---|
6080 | /* confdefs.h. */ |
---|
6081 | _ACEOF |
---|
6082 | cat confdefs.h >>conftest.$ac_ext |
---|
6083 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6084 | /* end confdefs.h. */ |
---|
6085 | #include <stdlib.h> |
---|
6086 | |
---|
6087 | _ACEOF |
---|
6088 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6089 | $EGREP "free" >/dev/null 2>&1; then |
---|
6090 | : |
---|
6091 | else |
---|
6092 | ac_cv_header_stdc=no |
---|
6093 | fi |
---|
6094 | rm -f conftest* |
---|
6095 | |
---|
6096 | fi |
---|
6097 | |
---|
6098 | if test $ac_cv_header_stdc = yes; then |
---|
6099 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
6100 | if test "$cross_compiling" = yes; then |
---|
6101 | : |
---|
6102 | else |
---|
6103 | cat >conftest.$ac_ext <<_ACEOF |
---|
6104 | /* confdefs.h. */ |
---|
6105 | _ACEOF |
---|
6106 | cat confdefs.h >>conftest.$ac_ext |
---|
6107 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6108 | /* end confdefs.h. */ |
---|
6109 | #include <ctype.h> |
---|
6110 | #include <stdlib.h> |
---|
6111 | #if ((' ' & 0x0FF) == 0x020) |
---|
6112 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
6113 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
6114 | #else |
---|
6115 | # define ISLOWER(c) \ |
---|
6116 | (('a' <= (c) && (c) <= 'i') \ |
---|
6117 | || ('j' <= (c) && (c) <= 'r') \ |
---|
6118 | || ('s' <= (c) && (c) <= 'z')) |
---|
6119 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
6120 | #endif |
---|
6121 | |
---|
6122 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
6123 | int |
---|
6124 | main () |
---|
6125 | { |
---|
6126 | int i; |
---|
6127 | for (i = 0; i < 256; i++) |
---|
6128 | if (XOR (islower (i), ISLOWER (i)) |
---|
6129 | || toupper (i) != TOUPPER (i)) |
---|
6130 | return 2; |
---|
6131 | return 0; |
---|
6132 | } |
---|
6133 | _ACEOF |
---|
6134 | rm -f conftest$ac_exeext |
---|
6135 | if { (ac_try="$ac_link" |
---|
6136 | case "(($ac_try" in |
---|
6137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6138 | *) ac_try_echo=$ac_try;; |
---|
6139 | esac |
---|
6140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6141 | (eval "$ac_link") 2>&5 |
---|
6142 | ac_status=$? |
---|
6143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6144 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6145 | { (case "(($ac_try" in |
---|
6146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6147 | *) ac_try_echo=$ac_try;; |
---|
6148 | esac |
---|
6149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6150 | (eval "$ac_try") 2>&5 |
---|
6151 | ac_status=$? |
---|
6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6153 | (exit $ac_status); }; }; then |
---|
6154 | : |
---|
6155 | else |
---|
6156 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6157 | echo "$as_me: failed program was:" >&5 |
---|
6158 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6159 | |
---|
6160 | ( exit $ac_status ) |
---|
6161 | ac_cv_header_stdc=no |
---|
6162 | fi |
---|
6163 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6164 | fi |
---|
6165 | |
---|
6166 | |
---|
6167 | fi |
---|
6168 | fi |
---|
6169 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
6170 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
---|
6171 | if test $ac_cv_header_stdc = yes; then |
---|
6172 | |
---|
6173 | cat >>confdefs.h <<\_ACEOF |
---|
6174 | #define STDC_HEADERS 1 |
---|
6175 | _ACEOF |
---|
6176 | |
---|
6177 | fi |
---|
6178 | |
---|
6179 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
6180 | |
---|
6181 | |
---|
6182 | |
---|
6183 | |
---|
6184 | |
---|
6185 | |
---|
6186 | |
---|
6187 | |
---|
6188 | |
---|
6189 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
6190 | inttypes.h stdint.h unistd.h |
---|
6191 | do |
---|
6192 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6193 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
6195 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6197 | else |
---|
6198 | cat >conftest.$ac_ext <<_ACEOF |
---|
6199 | /* confdefs.h. */ |
---|
6200 | _ACEOF |
---|
6201 | cat confdefs.h >>conftest.$ac_ext |
---|
6202 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6203 | /* end confdefs.h. */ |
---|
6204 | $ac_includes_default |
---|
6205 | |
---|
6206 | #include <$ac_header> |
---|
6207 | _ACEOF |
---|
6208 | rm -f conftest.$ac_objext |
---|
6209 | if { (ac_try="$ac_compile" |
---|
6210 | case "(($ac_try" in |
---|
6211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6212 | *) ac_try_echo=$ac_try;; |
---|
6213 | esac |
---|
6214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6215 | (eval "$ac_compile") 2>conftest.er1 |
---|
6216 | ac_status=$? |
---|
6217 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6218 | rm -f conftest.er1 |
---|
6219 | cat conftest.err >&5 |
---|
6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6221 | (exit $ac_status); } && { |
---|
6222 | test -z "$ac_c_werror_flag" || |
---|
6223 | test ! -s conftest.err |
---|
6224 | } && test -s conftest.$ac_objext; then |
---|
6225 | eval "$as_ac_Header=yes" |
---|
6226 | else |
---|
6227 | echo "$as_me: failed program was:" >&5 |
---|
6228 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6229 | |
---|
6230 | eval "$as_ac_Header=no" |
---|
6231 | fi |
---|
6232 | |
---|
6233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6234 | fi |
---|
6235 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
6236 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
6237 | echo "${ECHO_T}$ac_res" >&6; } |
---|
6238 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6239 | cat >>confdefs.h <<_ACEOF |
---|
6240 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6241 | _ACEOF |
---|
6242 | |
---|
6243 | fi |
---|
6244 | |
---|
6245 | done |
---|
6246 | |
---|
6247 | |
---|
6248 | |
---|
6249 | for ac_header in dlfcn.h |
---|
6250 | do |
---|
6251 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6252 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6253 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6254 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
6255 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6257 | fi |
---|
6258 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
6259 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
6260 | echo "${ECHO_T}$ac_res" >&6; } |
---|
6261 | else |
---|
6262 | # Is the header compilable? |
---|
6263 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6264 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
6265 | cat >conftest.$ac_ext <<_ACEOF |
---|
6266 | /* confdefs.h. */ |
---|
6267 | _ACEOF |
---|
6268 | cat confdefs.h >>conftest.$ac_ext |
---|
6269 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6270 | /* end confdefs.h. */ |
---|
6271 | $ac_includes_default |
---|
6272 | #include <$ac_header> |
---|
6273 | _ACEOF |
---|
6274 | rm -f conftest.$ac_objext |
---|
6275 | if { (ac_try="$ac_compile" |
---|
6276 | case "(($ac_try" in |
---|
6277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6278 | *) ac_try_echo=$ac_try;; |
---|
6279 | esac |
---|
6280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6281 | (eval "$ac_compile") 2>conftest.er1 |
---|
6282 | ac_status=$? |
---|
6283 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6284 | rm -f conftest.er1 |
---|
6285 | cat conftest.err >&5 |
---|
6286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6287 | (exit $ac_status); } && { |
---|
6288 | test -z "$ac_c_werror_flag" || |
---|
6289 | test ! -s conftest.err |
---|
6290 | } && test -s conftest.$ac_objext; then |
---|
6291 | ac_header_compiler=yes |
---|
6292 | else |
---|
6293 | echo "$as_me: failed program was:" >&5 |
---|
6294 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6295 | |
---|
6296 | ac_header_compiler=no |
---|
6297 | fi |
---|
6298 | |
---|
6299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6300 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6301 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
6302 | |
---|
6303 | # Is the header present? |
---|
6304 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6305 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
6306 | cat >conftest.$ac_ext <<_ACEOF |
---|
6307 | /* confdefs.h. */ |
---|
6308 | _ACEOF |
---|
6309 | cat confdefs.h >>conftest.$ac_ext |
---|
6310 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6311 | /* end confdefs.h. */ |
---|
6312 | #include <$ac_header> |
---|
6313 | _ACEOF |
---|
6314 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
6315 | case "(($ac_try" in |
---|
6316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6317 | *) ac_try_echo=$ac_try;; |
---|
6318 | esac |
---|
6319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6320 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
6321 | ac_status=$? |
---|
6322 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6323 | rm -f conftest.er1 |
---|
6324 | cat conftest.err >&5 |
---|
6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6326 | (exit $ac_status); } >/dev/null && { |
---|
6327 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
6328 | test ! -s conftest.err |
---|
6329 | }; then |
---|
6330 | ac_header_preproc=yes |
---|
6331 | else |
---|
6332 | echo "$as_me: failed program was:" >&5 |
---|
6333 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6334 | |
---|
6335 | ac_header_preproc=no |
---|
6336 | fi |
---|
6337 | |
---|
6338 | rm -f conftest.err conftest.$ac_ext |
---|
6339 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6340 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
6341 | |
---|
6342 | # So? What about this header? |
---|
6343 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6344 | yes:no: ) |
---|
6345 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6346 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6347 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6348 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6349 | ac_header_preproc=yes |
---|
6350 | ;; |
---|
6351 | no:yes:* ) |
---|
6352 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6353 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6354 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6355 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6356 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6357 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6358 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6359 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6360 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6361 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6362 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6363 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6364 | |
---|
6365 | ;; |
---|
6366 | esac |
---|
6367 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
6369 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6371 | else |
---|
6372 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6373 | fi |
---|
6374 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
6375 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
6376 | echo "${ECHO_T}$ac_res" >&6; } |
---|
6377 | |
---|
6378 | fi |
---|
6379 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6380 | cat >>confdefs.h <<_ACEOF |
---|
6381 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6382 | _ACEOF |
---|
6383 | |
---|
6384 | fi |
---|
6385 | |
---|
6386 | done |
---|
6387 | |
---|
6388 | |
---|
6389 | |
---|
6390 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
6391 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
6392 | (test "X$CXX" != "Xg++"))) ; then |
---|
6393 | ac_ext=cpp |
---|
6394 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6395 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6396 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6397 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6398 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
6399 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
---|
6400 | if test -z "$CXXCPP"; then |
---|
6401 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
6402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6403 | else |
---|
6404 | # Double quotes because CXXCPP needs to be expanded |
---|
6405 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
6406 | do |
---|
6407 | ac_preproc_ok=false |
---|
6408 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6409 | do |
---|
6410 | # Use a header file that comes with gcc, so configuring glibc |
---|
6411 | # with a fresh cross-compiler works. |
---|
6412 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6413 | # <limits.h> exists even on freestanding compilers. |
---|
6414 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6415 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6416 | cat >conftest.$ac_ext <<_ACEOF |
---|
6417 | /* confdefs.h. */ |
---|
6418 | _ACEOF |
---|
6419 | cat confdefs.h >>conftest.$ac_ext |
---|
6420 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6421 | /* end confdefs.h. */ |
---|
6422 | #ifdef __STDC__ |
---|
6423 | # include <limits.h> |
---|
6424 | #else |
---|
6425 | # include <assert.h> |
---|
6426 | #endif |
---|
6427 | Syntax error |
---|
6428 | _ACEOF |
---|
6429 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
6430 | case "(($ac_try" in |
---|
6431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6432 | *) ac_try_echo=$ac_try;; |
---|
6433 | esac |
---|
6434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6435 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
6436 | ac_status=$? |
---|
6437 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6438 | rm -f conftest.er1 |
---|
6439 | cat conftest.err >&5 |
---|
6440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6441 | (exit $ac_status); } >/dev/null && { |
---|
6442 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
6443 | test ! -s conftest.err |
---|
6444 | }; then |
---|
6445 | : |
---|
6446 | else |
---|
6447 | echo "$as_me: failed program was:" >&5 |
---|
6448 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6449 | |
---|
6450 | # Broken: fails on valid input. |
---|
6451 | continue |
---|
6452 | fi |
---|
6453 | |
---|
6454 | rm -f conftest.err conftest.$ac_ext |
---|
6455 | |
---|
6456 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
6457 | # can be detected and how. |
---|
6458 | cat >conftest.$ac_ext <<_ACEOF |
---|
6459 | /* confdefs.h. */ |
---|
6460 | _ACEOF |
---|
6461 | cat confdefs.h >>conftest.$ac_ext |
---|
6462 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6463 | /* end confdefs.h. */ |
---|
6464 | #include <ac_nonexistent.h> |
---|
6465 | _ACEOF |
---|
6466 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
6467 | case "(($ac_try" in |
---|
6468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6469 | *) ac_try_echo=$ac_try;; |
---|
6470 | esac |
---|
6471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6472 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
6473 | ac_status=$? |
---|
6474 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6475 | rm -f conftest.er1 |
---|
6476 | cat conftest.err >&5 |
---|
6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6478 | (exit $ac_status); } >/dev/null && { |
---|
6479 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
6480 | test ! -s conftest.err |
---|
6481 | }; then |
---|
6482 | # Broken: success on invalid input. |
---|
6483 | continue |
---|
6484 | else |
---|
6485 | echo "$as_me: failed program was:" >&5 |
---|
6486 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6487 | |
---|
6488 | # Passes both tests. |
---|
6489 | ac_preproc_ok=: |
---|
6490 | break |
---|
6491 | fi |
---|
6492 | |
---|
6493 | rm -f conftest.err conftest.$ac_ext |
---|
6494 | |
---|
6495 | done |
---|
6496 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6497 | rm -f conftest.err conftest.$ac_ext |
---|
6498 | if $ac_preproc_ok; then |
---|
6499 | break |
---|
6500 | fi |
---|
6501 | |
---|
6502 | done |
---|
6503 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6504 | |
---|
6505 | fi |
---|
6506 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
6507 | else |
---|
6508 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6509 | fi |
---|
6510 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
6511 | echo "${ECHO_T}$CXXCPP" >&6; } |
---|
6512 | ac_preproc_ok=false |
---|
6513 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6514 | do |
---|
6515 | # Use a header file that comes with gcc, so configuring glibc |
---|
6516 | # with a fresh cross-compiler works. |
---|
6517 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6518 | # <limits.h> exists even on freestanding compilers. |
---|
6519 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6520 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6521 | cat >conftest.$ac_ext <<_ACEOF |
---|
6522 | /* confdefs.h. */ |
---|
6523 | _ACEOF |
---|
6524 | cat confdefs.h >>conftest.$ac_ext |
---|
6525 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6526 | /* end confdefs.h. */ |
---|
6527 | #ifdef __STDC__ |
---|
6528 | # include <limits.h> |
---|
6529 | #else |
---|
6530 | # include <assert.h> |
---|
6531 | #endif |
---|
6532 | Syntax error |
---|
6533 | _ACEOF |
---|
6534 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
6535 | case "(($ac_try" in |
---|
6536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6537 | *) ac_try_echo=$ac_try;; |
---|
6538 | esac |
---|
6539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6540 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
6541 | ac_status=$? |
---|
6542 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6543 | rm -f conftest.er1 |
---|
6544 | cat conftest.err >&5 |
---|
6545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6546 | (exit $ac_status); } >/dev/null && { |
---|
6547 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
6548 | test ! -s conftest.err |
---|
6549 | }; then |
---|
6550 | : |
---|
6551 | else |
---|
6552 | echo "$as_me: failed program was:" >&5 |
---|
6553 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6554 | |
---|
6555 | # Broken: fails on valid input. |
---|
6556 | continue |
---|
6557 | fi |
---|
6558 | |
---|
6559 | rm -f conftest.err conftest.$ac_ext |
---|
6560 | |
---|
6561 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
6562 | # can be detected and how. |
---|
6563 | cat >conftest.$ac_ext <<_ACEOF |
---|
6564 | /* confdefs.h. */ |
---|
6565 | _ACEOF |
---|
6566 | cat confdefs.h >>conftest.$ac_ext |
---|
6567 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6568 | /* end confdefs.h. */ |
---|
6569 | #include <ac_nonexistent.h> |
---|
6570 | _ACEOF |
---|
6571 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
6572 | case "(($ac_try" in |
---|
6573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6574 | *) ac_try_echo=$ac_try;; |
---|
6575 | esac |
---|
6576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6577 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
6578 | ac_status=$? |
---|
6579 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6580 | rm -f conftest.er1 |
---|
6581 | cat conftest.err >&5 |
---|
6582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6583 | (exit $ac_status); } >/dev/null && { |
---|
6584 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
6585 | test ! -s conftest.err |
---|
6586 | }; then |
---|
6587 | # Broken: success on invalid input. |
---|
6588 | continue |
---|
6589 | else |
---|
6590 | echo "$as_me: failed program was:" >&5 |
---|
6591 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6592 | |
---|
6593 | # Passes both tests. |
---|
6594 | ac_preproc_ok=: |
---|
6595 | break |
---|
6596 | fi |
---|
6597 | |
---|
6598 | rm -f conftest.err conftest.$ac_ext |
---|
6599 | |
---|
6600 | done |
---|
6601 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6602 | rm -f conftest.err conftest.$ac_ext |
---|
6603 | if $ac_preproc_ok; then |
---|
6604 | : |
---|
6605 | else |
---|
6606 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6607 | See \`config.log' for more details." >&5 |
---|
6608 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6609 | See \`config.log' for more details." >&2;} |
---|
6610 | { (exit 1); exit 1; }; } |
---|
6611 | fi |
---|
6612 | |
---|
6613 | ac_ext=cpp |
---|
6614 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6615 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6616 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6617 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6618 | |
---|
6619 | fi |
---|
6620 | |
---|
6621 | |
---|
6622 | ac_ext=f |
---|
6623 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6624 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6625 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6626 | if test -n "$ac_tool_prefix"; then |
---|
6627 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
---|
6628 | do |
---|
6629 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
6630 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
6631 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
6633 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
6634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6635 | else |
---|
6636 | if test -n "$F77"; then |
---|
6637 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
6638 | else |
---|
6639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6640 | for as_dir in $PATH |
---|
6641 | do |
---|
6642 | IFS=$as_save_IFS |
---|
6643 | test -z "$as_dir" && as_dir=. |
---|
6644 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6646 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
6647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6648 | break 2 |
---|
6649 | fi |
---|
6650 | done |
---|
6651 | done |
---|
6652 | IFS=$as_save_IFS |
---|
6653 | |
---|
6654 | fi |
---|
6655 | fi |
---|
6656 | F77=$ac_cv_prog_F77 |
---|
6657 | if test -n "$F77"; then |
---|
6658 | { echo "$as_me:$LINENO: result: $F77" >&5 |
---|
6659 | echo "${ECHO_T}$F77" >&6; } |
---|
6660 | else |
---|
6661 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
6662 | echo "${ECHO_T}no" >&6; } |
---|
6663 | fi |
---|
6664 | |
---|
6665 | |
---|
6666 | test -n "$F77" && break |
---|
6667 | done |
---|
6668 | fi |
---|
6669 | if test -z "$F77"; then |
---|
6670 | ac_ct_F77=$F77 |
---|
6671 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
---|
6672 | do |
---|
6673 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6674 | set dummy $ac_prog; ac_word=$2 |
---|
6675 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
6677 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
6678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6679 | else |
---|
6680 | if test -n "$ac_ct_F77"; then |
---|
6681 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
6682 | else |
---|
6683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6684 | for as_dir in $PATH |
---|
6685 | do |
---|
6686 | IFS=$as_save_IFS |
---|
6687 | test -z "$as_dir" && as_dir=. |
---|
6688 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6690 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
6691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6692 | break 2 |
---|
6693 | fi |
---|
6694 | done |
---|
6695 | done |
---|
6696 | IFS=$as_save_IFS |
---|
6697 | |
---|
6698 | fi |
---|
6699 | fi |
---|
6700 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
6701 | if test -n "$ac_ct_F77"; then |
---|
6702 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
6703 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
---|
6704 | else |
---|
6705 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
6706 | echo "${ECHO_T}no" >&6; } |
---|
6707 | fi |
---|
6708 | |
---|
6709 | |
---|
6710 | test -n "$ac_ct_F77" && break |
---|
6711 | done |
---|
6712 | |
---|
6713 | if test "x$ac_ct_F77" = x; then |
---|
6714 | F77="" |
---|
6715 | else |
---|
6716 | case $cross_compiling:$ac_tool_warned in |
---|
6717 | yes:) |
---|
6718 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
6719 | whose name does not start with the host triplet. If you think this |
---|
6720 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
6721 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
6722 | whose name does not start with the host triplet. If you think this |
---|
6723 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
6724 | ac_tool_warned=yes ;; |
---|
6725 | esac |
---|
6726 | F77=$ac_ct_F77 |
---|
6727 | fi |
---|
6728 | fi |
---|
6729 | |
---|
6730 | |
---|
6731 | # Provide some information about the compiler. |
---|
6732 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
---|
6733 | ac_compiler=`set X $ac_compile; echo $2` |
---|
6734 | { (ac_try="$ac_compiler --version >&5" |
---|
6735 | case "(($ac_try" in |
---|
6736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6737 | *) ac_try_echo=$ac_try;; |
---|
6738 | esac |
---|
6739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6740 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
6741 | ac_status=$? |
---|
6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6743 | (exit $ac_status); } |
---|
6744 | { (ac_try="$ac_compiler -v >&5" |
---|
6745 | case "(($ac_try" in |
---|
6746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6747 | *) ac_try_echo=$ac_try;; |
---|
6748 | esac |
---|
6749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6750 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
6751 | ac_status=$? |
---|
6752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6753 | (exit $ac_status); } |
---|
6754 | { (ac_try="$ac_compiler -V >&5" |
---|
6755 | case "(($ac_try" in |
---|
6756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6757 | *) ac_try_echo=$ac_try;; |
---|
6758 | esac |
---|
6759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6760 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
6761 | ac_status=$? |
---|
6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6763 | (exit $ac_status); } |
---|
6764 | rm -f a.out |
---|
6765 | |
---|
6766 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
6767 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
6768 | ac_save_ext=$ac_ext |
---|
6769 | ac_ext=F |
---|
6770 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
6771 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
---|
6772 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
6773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6774 | else |
---|
6775 | cat >conftest.$ac_ext <<_ACEOF |
---|
6776 | program main |
---|
6777 | #ifndef __GNUC__ |
---|
6778 | choke me |
---|
6779 | #endif |
---|
6780 | |
---|
6781 | end |
---|
6782 | _ACEOF |
---|
6783 | rm -f conftest.$ac_objext |
---|
6784 | if { (ac_try="$ac_compile" |
---|
6785 | case "(($ac_try" in |
---|
6786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6787 | *) ac_try_echo=$ac_try;; |
---|
6788 | esac |
---|
6789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6790 | (eval "$ac_compile") 2>conftest.er1 |
---|
6791 | ac_status=$? |
---|
6792 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6793 | rm -f conftest.er1 |
---|
6794 | cat conftest.err >&5 |
---|
6795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6796 | (exit $ac_status); } && { |
---|
6797 | test -z "$ac_f77_werror_flag" || |
---|
6798 | test ! -s conftest.err |
---|
6799 | } && test -s conftest.$ac_objext; then |
---|
6800 | ac_compiler_gnu=yes |
---|
6801 | else |
---|
6802 | echo "$as_me: failed program was:" >&5 |
---|
6803 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6804 | |
---|
6805 | ac_compiler_gnu=no |
---|
6806 | fi |
---|
6807 | |
---|
6808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6809 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
6810 | |
---|
6811 | fi |
---|
6812 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
6813 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
---|
6814 | ac_ext=$ac_save_ext |
---|
6815 | ac_test_FFLAGS=${FFLAGS+set} |
---|
6816 | ac_save_FFLAGS=$FFLAGS |
---|
6817 | FFLAGS= |
---|
6818 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
6819 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
---|
6820 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
6821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6822 | else |
---|
6823 | FFLAGS=-g |
---|
6824 | cat >conftest.$ac_ext <<_ACEOF |
---|
6825 | program main |
---|
6826 | |
---|
6827 | end |
---|
6828 | _ACEOF |
---|
6829 | rm -f conftest.$ac_objext |
---|
6830 | if { (ac_try="$ac_compile" |
---|
6831 | case "(($ac_try" in |
---|
6832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6833 | *) ac_try_echo=$ac_try;; |
---|
6834 | esac |
---|
6835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6836 | (eval "$ac_compile") 2>conftest.er1 |
---|
6837 | ac_status=$? |
---|
6838 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6839 | rm -f conftest.er1 |
---|
6840 | cat conftest.err >&5 |
---|
6841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6842 | (exit $ac_status); } && { |
---|
6843 | test -z "$ac_f77_werror_flag" || |
---|
6844 | test ! -s conftest.err |
---|
6845 | } && test -s conftest.$ac_objext; then |
---|
6846 | ac_cv_prog_f77_g=yes |
---|
6847 | else |
---|
6848 | echo "$as_me: failed program was:" >&5 |
---|
6849 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6850 | |
---|
6851 | ac_cv_prog_f77_g=no |
---|
6852 | fi |
---|
6853 | |
---|
6854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6855 | |
---|
6856 | fi |
---|
6857 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
6858 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
---|
6859 | if test "$ac_test_FFLAGS" = set; then |
---|
6860 | FFLAGS=$ac_save_FFLAGS |
---|
6861 | elif test $ac_cv_prog_f77_g = yes; then |
---|
6862 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
6863 | FFLAGS="-g -O2" |
---|
6864 | else |
---|
6865 | FFLAGS="-g" |
---|
6866 | fi |
---|
6867 | else |
---|
6868 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
6869 | FFLAGS="-O2" |
---|
6870 | else |
---|
6871 | FFLAGS= |
---|
6872 | fi |
---|
6873 | fi |
---|
6874 | |
---|
6875 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
6876 | ac_ext=c |
---|
6877 | ac_cpp='$CPP $CPPFLAGS' |
---|
6878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6881 | |
---|
6882 | |
---|
6883 | |
---|
6884 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
6885 | |
---|
6886 | # find the maximum length of command line arguments |
---|
6887 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
---|
6888 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
---|
6889 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
---|
6890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6891 | else |
---|
6892 | i=0 |
---|
6893 | teststring="ABCD" |
---|
6894 | |
---|
6895 | case $build_os in |
---|
6896 | msdosdjgpp*) |
---|
6897 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
6898 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
6899 | # during glob expansion). Even if it were fixed, the result of this |
---|
6900 | # check would be larger than it should be. |
---|
6901 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
6902 | ;; |
---|
6903 | |
---|
6904 | gnu*) |
---|
6905 | # Under GNU Hurd, this test is not required because there is |
---|
6906 | # no limit to the length of command line arguments. |
---|
6907 | # Libtool will interpret -1 as no limit whatsoever |
---|
6908 | lt_cv_sys_max_cmd_len=-1; |
---|
6909 | ;; |
---|
6910 | |
---|
6911 | cygwin* | mingw*) |
---|
6912 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
6913 | # about 5 minutes as the teststring grows exponentially. |
---|
6914 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
6915 | # you end up with a "frozen" computer, even though with patience |
---|
6916 | # the test eventually succeeds (with a max line length of 256k). |
---|
6917 | # Instead, let's just punt: use the minimum linelength reported by |
---|
6918 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
6919 | lt_cv_sys_max_cmd_len=8192; |
---|
6920 | ;; |
---|
6921 | |
---|
6922 | amigaos*) |
---|
6923 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
6924 | # So we just punt and use a minimum line length of 8192. |
---|
6925 | lt_cv_sys_max_cmd_len=8192; |
---|
6926 | ;; |
---|
6927 | |
---|
6928 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
6929 | # This has been around since 386BSD, at least. Likely further. |
---|
6930 | if test -x /sbin/sysctl; then |
---|
6931 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
6932 | elif test -x /usr/sbin/sysctl; then |
---|
6933 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
6934 | else |
---|
6935 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
6936 | fi |
---|
6937 | # And add a safety zone |
---|
6938 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
6939 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
6940 | ;; |
---|
6941 | |
---|
6942 | interix*) |
---|
6943 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
6944 | lt_cv_sys_max_cmd_len=196608 |
---|
6945 | ;; |
---|
6946 | |
---|
6947 | osf*) |
---|
6948 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
6949 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
6950 | # nice to cause kernel panics so lets avoid the loop below. |
---|
6951 | # First set a reasonable default. |
---|
6952 | lt_cv_sys_max_cmd_len=16384 |
---|
6953 | # |
---|
6954 | if test -x /sbin/sysconfig; then |
---|
6955 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
6956 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
6957 | esac |
---|
6958 | fi |
---|
6959 | ;; |
---|
6960 | sco3.2v5*) |
---|
6961 | lt_cv_sys_max_cmd_len=102400 |
---|
6962 | ;; |
---|
6963 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
6964 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
6965 | if test -n "$kargmax"; then |
---|
6966 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
6967 | else |
---|
6968 | lt_cv_sys_max_cmd_len=32768 |
---|
6969 | fi |
---|
6970 | ;; |
---|
6971 | *) |
---|
6972 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
---|
6973 | if test -n "$lt_cv_sys_max_cmd_len"; then |
---|
6974 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
6975 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
6976 | else |
---|
6977 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
6978 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
6979 | = "XX$teststring") >/dev/null 2>&1 && |
---|
6980 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
6981 | lt_cv_sys_max_cmd_len=$new_result && |
---|
6982 | test $i != 17 # 1/2 MB should be enough |
---|
6983 | do |
---|
6984 | i=`expr $i + 1` |
---|
6985 | teststring=$teststring$teststring |
---|
6986 | done |
---|
6987 | teststring= |
---|
6988 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
6989 | # amounts of additional arguments before passing them to the linker. |
---|
6990 | # It appears as though 1/2 is a usable value. |
---|
6991 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
6992 | fi |
---|
6993 | ;; |
---|
6994 | esac |
---|
6995 | |
---|
6996 | fi |
---|
6997 | |
---|
6998 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
6999 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
7000 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
---|
7001 | else |
---|
7002 | { echo "$as_me:$LINENO: result: none" >&5 |
---|
7003 | echo "${ECHO_T}none" >&6; } |
---|
7004 | fi |
---|
7005 | |
---|
7006 | |
---|
7007 | |
---|
7008 | |
---|
7009 | |
---|
7010 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
7011 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
---|
7012 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
---|
7013 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
7014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7015 | else |
---|
7016 | |
---|
7017 | # These are sane defaults that work on at least a few old systems. |
---|
7018 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
7019 | |
---|
7020 | # Character class describing NM global symbol codes. |
---|
7021 | symcode='[BCDEGRST]' |
---|
7022 | |
---|
7023 | # Regexp to match symbols that can be accessed directly from C. |
---|
7024 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
7025 | |
---|
7026 | # Transform an extracted symbol line into a proper C declaration |
---|
7027 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
7028 | |
---|
7029 | # Transform an extracted symbol line into symbol name and symbol address |
---|
7030 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
---|
7031 | |
---|
7032 | # Define system-specific variables. |
---|
7033 | case $host_os in |
---|
7034 | aix*) |
---|
7035 | symcode='[BCDT]' |
---|
7036 | ;; |
---|
7037 | cygwin* | mingw* | pw32*) |
---|
7038 | symcode='[ABCDGISTW]' |
---|
7039 | ;; |
---|
7040 | hpux*) # Its linker distinguishes data from code symbols |
---|
7041 | if test "$host_cpu" = ia64; then |
---|
7042 | symcode='[ABCDEGRST]' |
---|
7043 | fi |
---|
7044 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7045 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
---|
7046 | ;; |
---|
7047 | linux* | k*bsd*-gnu) |
---|
7048 | if test "$host_cpu" = ia64; then |
---|
7049 | symcode='[ABCDGIRSTW]' |
---|
7050 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
7051 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
---|
7052 | fi |
---|
7053 | ;; |
---|
7054 | irix* | nonstopux*) |
---|
7055 | symcode='[BCDEGRST]' |
---|
7056 | ;; |
---|
7057 | osf*) |
---|
7058 | symcode='[BCDEGQRST]' |
---|
7059 | ;; |
---|
7060 | solaris*) |
---|
7061 | symcode='[BDRT]' |
---|
7062 | ;; |
---|
7063 | sco3.2v5*) |
---|
7064 | symcode='[DT]' |
---|
7065 | ;; |
---|
7066 | sysv4.2uw2*) |
---|
7067 | symcode='[DT]' |
---|
7068 | ;; |
---|
7069 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
7070 | symcode='[ABDT]' |
---|
7071 | ;; |
---|
7072 | sysv4) |
---|
7073 | symcode='[DFNSTU]' |
---|
7074 | ;; |
---|
7075 | esac |
---|
7076 | |
---|
7077 | # Handle CRLF in mingw tool chain |
---|
7078 | opt_cr= |
---|
7079 | case $build_os in |
---|
7080 | mingw*) |
---|
7081 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
7082 | ;; |
---|
7083 | esac |
---|
7084 | |
---|
7085 | # If we're using GNU nm, then use its standard symbol codes. |
---|
7086 | case `$NM -V 2>&1` in |
---|
7087 | *GNU* | *'with BFD'*) |
---|
7088 | symcode='[ABCDGIRSTW]' ;; |
---|
7089 | esac |
---|
7090 | |
---|
7091 | # Try without a prefix undercore, then with it. |
---|
7092 | for ac_symprfx in "" "_"; do |
---|
7093 | |
---|
7094 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
7095 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
7096 | |
---|
7097 | # Write the raw and C identifiers. |
---|
7098 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
7099 | |
---|
7100 | # Check to see that the pipe works correctly. |
---|
7101 | pipe_works=no |
---|
7102 | |
---|
7103 | rm -f conftest* |
---|
7104 | cat > conftest.$ac_ext <<EOF |
---|
7105 | #ifdef __cplusplus |
---|
7106 | extern "C" { |
---|
7107 | #endif |
---|
7108 | char nm_test_var; |
---|
7109 | void nm_test_func(){} |
---|
7110 | #ifdef __cplusplus |
---|
7111 | } |
---|
7112 | #endif |
---|
7113 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
7114 | EOF |
---|
7115 | |
---|
7116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7117 | (eval $ac_compile) 2>&5 |
---|
7118 | ac_status=$? |
---|
7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7120 | (exit $ac_status); }; then |
---|
7121 | # Now try to grab the symbols. |
---|
7122 | nlist=conftest.nm |
---|
7123 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
7124 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
7125 | ac_status=$? |
---|
7126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7127 | (exit $ac_status); } && test -s "$nlist"; then |
---|
7128 | # Try sorting and uniquifying the output. |
---|
7129 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
7130 | mv -f "$nlist"T "$nlist" |
---|
7131 | else |
---|
7132 | rm -f "$nlist"T |
---|
7133 | fi |
---|
7134 | |
---|
7135 | # Make sure that we snagged all the symbols we need. |
---|
7136 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
7137 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
7138 | cat <<EOF > conftest.$ac_ext |
---|
7139 | #ifdef __cplusplus |
---|
7140 | extern "C" { |
---|
7141 | #endif |
---|
7142 | |
---|
7143 | EOF |
---|
7144 | # Now generate the symbol file. |
---|
7145 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
7146 | |
---|
7147 | cat <<EOF >> conftest.$ac_ext |
---|
7148 | #if defined (__STDC__) && __STDC__ |
---|
7149 | # define lt_ptr_t void * |
---|
7150 | #else |
---|
7151 | # define lt_ptr_t char * |
---|
7152 | # define const |
---|
7153 | #endif |
---|
7154 | |
---|
7155 | /* The mapping between symbol names and symbols. */ |
---|
7156 | const struct { |
---|
7157 | const char *name; |
---|
7158 | lt_ptr_t address; |
---|
7159 | } |
---|
7160 | lt_preloaded_symbols[] = |
---|
7161 | { |
---|
7162 | EOF |
---|
7163 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
7164 | cat <<\EOF >> conftest.$ac_ext |
---|
7165 | {0, (lt_ptr_t) 0} |
---|
7166 | }; |
---|
7167 | |
---|
7168 | #ifdef __cplusplus |
---|
7169 | } |
---|
7170 | #endif |
---|
7171 | EOF |
---|
7172 | # Now try linking the two files. |
---|
7173 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
7174 | lt_save_LIBS="$LIBS" |
---|
7175 | lt_save_CFLAGS="$CFLAGS" |
---|
7176 | LIBS="conftstm.$ac_objext" |
---|
7177 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
7178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7179 | (eval $ac_link) 2>&5 |
---|
7180 | ac_status=$? |
---|
7181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7182 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
---|
7183 | pipe_works=yes |
---|
7184 | fi |
---|
7185 | LIBS="$lt_save_LIBS" |
---|
7186 | CFLAGS="$lt_save_CFLAGS" |
---|
7187 | else |
---|
7188 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
7189 | fi |
---|
7190 | else |
---|
7191 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
7192 | fi |
---|
7193 | else |
---|
7194 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
7195 | fi |
---|
7196 | else |
---|
7197 | echo "$progname: failed program was:" >&5 |
---|
7198 | cat conftest.$ac_ext >&5 |
---|
7199 | fi |
---|
7200 | rm -f conftest* conftst* |
---|
7201 | |
---|
7202 | # Do not use the global_symbol_pipe unless it works. |
---|
7203 | if test "$pipe_works" = yes; then |
---|
7204 | break |
---|
7205 | else |
---|
7206 | lt_cv_sys_global_symbol_pipe= |
---|
7207 | fi |
---|
7208 | done |
---|
7209 | |
---|
7210 | fi |
---|
7211 | |
---|
7212 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
7213 | lt_cv_sys_global_symbol_to_cdecl= |
---|
7214 | fi |
---|
7215 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
7216 | { echo "$as_me:$LINENO: result: failed" >&5 |
---|
7217 | echo "${ECHO_T}failed" >&6; } |
---|
7218 | else |
---|
7219 | { echo "$as_me:$LINENO: result: ok" >&5 |
---|
7220 | echo "${ECHO_T}ok" >&6; } |
---|
7221 | fi |
---|
7222 | |
---|
7223 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
---|
7224 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
---|
7225 | if test "${lt_cv_objdir+set}" = set; then |
---|
7226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7227 | else |
---|
7228 | rm -f .libs 2>/dev/null |
---|
7229 | mkdir .libs 2>/dev/null |
---|
7230 | if test -d .libs; then |
---|
7231 | lt_cv_objdir=.libs |
---|
7232 | else |
---|
7233 | # MS-DOS does not allow filenames that begin with a dot. |
---|
7234 | lt_cv_objdir=_libs |
---|
7235 | fi |
---|
7236 | rmdir .libs 2>/dev/null |
---|
7237 | fi |
---|
7238 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
---|
7239 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
---|
7240 | objdir=$lt_cv_objdir |
---|
7241 | |
---|
7242 | |
---|
7243 | |
---|
7244 | |
---|
7245 | |
---|
7246 | case $host_os in |
---|
7247 | aix3*) |
---|
7248 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
7249 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
7250 | # vanish in a puff of smoke. |
---|
7251 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
7252 | COLLECT_NAMES= |
---|
7253 | export COLLECT_NAMES |
---|
7254 | fi |
---|
7255 | ;; |
---|
7256 | esac |
---|
7257 | |
---|
7258 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
7259 | # metacharacters that are still active within double-quoted strings. |
---|
7260 | Xsed='sed -e 1s/^X//' |
---|
7261 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
7262 | |
---|
7263 | # Same as above, but do not quote variable references. |
---|
7264 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
7265 | |
---|
7266 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
7267 | # double_quote_subst'ed string. |
---|
7268 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
7269 | |
---|
7270 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
7271 | no_glob_subst='s/\*/\\\*/g' |
---|
7272 | |
---|
7273 | # Constants: |
---|
7274 | rm="rm -f" |
---|
7275 | |
---|
7276 | # Global variables: |
---|
7277 | default_ofile=libtool |
---|
7278 | can_build_shared=yes |
---|
7279 | |
---|
7280 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
7281 | # which needs '.lib'). |
---|
7282 | libext=a |
---|
7283 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
7284 | ofile="$default_ofile" |
---|
7285 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
7286 | |
---|
7287 | if test -n "$ac_tool_prefix"; then |
---|
7288 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
---|
7289 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
---|
7290 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7292 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
7293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7294 | else |
---|
7295 | if test -n "$AR"; then |
---|
7296 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
7297 | else |
---|
7298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7299 | for as_dir in $PATH |
---|
7300 | do |
---|
7301 | IFS=$as_save_IFS |
---|
7302 | test -z "$as_dir" && as_dir=. |
---|
7303 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7304 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7305 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
---|
7306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7307 | break 2 |
---|
7308 | fi |
---|
7309 | done |
---|
7310 | done |
---|
7311 | IFS=$as_save_IFS |
---|
7312 | |
---|
7313 | fi |
---|
7314 | fi |
---|
7315 | AR=$ac_cv_prog_AR |
---|
7316 | if test -n "$AR"; then |
---|
7317 | { echo "$as_me:$LINENO: result: $AR" >&5 |
---|
7318 | echo "${ECHO_T}$AR" >&6; } |
---|
7319 | else |
---|
7320 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7321 | echo "${ECHO_T}no" >&6; } |
---|
7322 | fi |
---|
7323 | |
---|
7324 | |
---|
7325 | fi |
---|
7326 | if test -z "$ac_cv_prog_AR"; then |
---|
7327 | ac_ct_AR=$AR |
---|
7328 | # Extract the first word of "ar", so it can be a program name with args. |
---|
7329 | set dummy ar; ac_word=$2 |
---|
7330 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7331 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7332 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
7333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7334 | else |
---|
7335 | if test -n "$ac_ct_AR"; then |
---|
7336 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
7337 | else |
---|
7338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7339 | for as_dir in $PATH |
---|
7340 | do |
---|
7341 | IFS=$as_save_IFS |
---|
7342 | test -z "$as_dir" && as_dir=. |
---|
7343 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7344 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7345 | ac_cv_prog_ac_ct_AR="ar" |
---|
7346 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7347 | break 2 |
---|
7348 | fi |
---|
7349 | done |
---|
7350 | done |
---|
7351 | IFS=$as_save_IFS |
---|
7352 | |
---|
7353 | fi |
---|
7354 | fi |
---|
7355 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
7356 | if test -n "$ac_ct_AR"; then |
---|
7357 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
7358 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
---|
7359 | else |
---|
7360 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7361 | echo "${ECHO_T}no" >&6; } |
---|
7362 | fi |
---|
7363 | |
---|
7364 | if test "x$ac_ct_AR" = x; then |
---|
7365 | AR="false" |
---|
7366 | else |
---|
7367 | case $cross_compiling:$ac_tool_warned in |
---|
7368 | yes:) |
---|
7369 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7370 | whose name does not start with the host triplet. If you think this |
---|
7371 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
7372 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7373 | whose name does not start with the host triplet. If you think this |
---|
7374 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
7375 | ac_tool_warned=yes ;; |
---|
7376 | esac |
---|
7377 | AR=$ac_ct_AR |
---|
7378 | fi |
---|
7379 | else |
---|
7380 | AR="$ac_cv_prog_AR" |
---|
7381 | fi |
---|
7382 | |
---|
7383 | if test -n "$ac_tool_prefix"; then |
---|
7384 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
7385 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
7386 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7388 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
7389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7390 | else |
---|
7391 | if test -n "$RANLIB"; then |
---|
7392 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
7393 | else |
---|
7394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7395 | for as_dir in $PATH |
---|
7396 | do |
---|
7397 | IFS=$as_save_IFS |
---|
7398 | test -z "$as_dir" && as_dir=. |
---|
7399 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7401 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
7402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7403 | break 2 |
---|
7404 | fi |
---|
7405 | done |
---|
7406 | done |
---|
7407 | IFS=$as_save_IFS |
---|
7408 | |
---|
7409 | fi |
---|
7410 | fi |
---|
7411 | RANLIB=$ac_cv_prog_RANLIB |
---|
7412 | if test -n "$RANLIB"; then |
---|
7413 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
7414 | echo "${ECHO_T}$RANLIB" >&6; } |
---|
7415 | else |
---|
7416 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7417 | echo "${ECHO_T}no" >&6; } |
---|
7418 | fi |
---|
7419 | |
---|
7420 | |
---|
7421 | fi |
---|
7422 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
7423 | ac_ct_RANLIB=$RANLIB |
---|
7424 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
7425 | set dummy ranlib; ac_word=$2 |
---|
7426 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7428 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
7429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7430 | else |
---|
7431 | if test -n "$ac_ct_RANLIB"; then |
---|
7432 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
7433 | else |
---|
7434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7435 | for as_dir in $PATH |
---|
7436 | do |
---|
7437 | IFS=$as_save_IFS |
---|
7438 | test -z "$as_dir" && as_dir=. |
---|
7439 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7441 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
7442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7443 | break 2 |
---|
7444 | fi |
---|
7445 | done |
---|
7446 | done |
---|
7447 | IFS=$as_save_IFS |
---|
7448 | |
---|
7449 | fi |
---|
7450 | fi |
---|
7451 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
7452 | if test -n "$ac_ct_RANLIB"; then |
---|
7453 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
7454 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
---|
7455 | else |
---|
7456 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7457 | echo "${ECHO_T}no" >&6; } |
---|
7458 | fi |
---|
7459 | |
---|
7460 | if test "x$ac_ct_RANLIB" = x; then |
---|
7461 | RANLIB=":" |
---|
7462 | else |
---|
7463 | case $cross_compiling:$ac_tool_warned in |
---|
7464 | yes:) |
---|
7465 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7466 | whose name does not start with the host triplet. If you think this |
---|
7467 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
7468 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7469 | whose name does not start with the host triplet. If you think this |
---|
7470 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
7471 | ac_tool_warned=yes ;; |
---|
7472 | esac |
---|
7473 | RANLIB=$ac_ct_RANLIB |
---|
7474 | fi |
---|
7475 | else |
---|
7476 | RANLIB="$ac_cv_prog_RANLIB" |
---|
7477 | fi |
---|
7478 | |
---|
7479 | if test -n "$ac_tool_prefix"; then |
---|
7480 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
7481 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
7482 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7484 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
7485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7486 | else |
---|
7487 | if test -n "$STRIP"; then |
---|
7488 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
7489 | else |
---|
7490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7491 | for as_dir in $PATH |
---|
7492 | do |
---|
7493 | IFS=$as_save_IFS |
---|
7494 | test -z "$as_dir" && as_dir=. |
---|
7495 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7496 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7497 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
7498 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7499 | break 2 |
---|
7500 | fi |
---|
7501 | done |
---|
7502 | done |
---|
7503 | IFS=$as_save_IFS |
---|
7504 | |
---|
7505 | fi |
---|
7506 | fi |
---|
7507 | STRIP=$ac_cv_prog_STRIP |
---|
7508 | if test -n "$STRIP"; then |
---|
7509 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
7510 | echo "${ECHO_T}$STRIP" >&6; } |
---|
7511 | else |
---|
7512 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7513 | echo "${ECHO_T}no" >&6; } |
---|
7514 | fi |
---|
7515 | |
---|
7516 | |
---|
7517 | fi |
---|
7518 | if test -z "$ac_cv_prog_STRIP"; then |
---|
7519 | ac_ct_STRIP=$STRIP |
---|
7520 | # Extract the first word of "strip", so it can be a program name with args. |
---|
7521 | set dummy strip; ac_word=$2 |
---|
7522 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7524 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
7525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7526 | else |
---|
7527 | if test -n "$ac_ct_STRIP"; then |
---|
7528 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
7529 | else |
---|
7530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7531 | for as_dir in $PATH |
---|
7532 | do |
---|
7533 | IFS=$as_save_IFS |
---|
7534 | test -z "$as_dir" && as_dir=. |
---|
7535 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7537 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
7538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7539 | break 2 |
---|
7540 | fi |
---|
7541 | done |
---|
7542 | done |
---|
7543 | IFS=$as_save_IFS |
---|
7544 | |
---|
7545 | fi |
---|
7546 | fi |
---|
7547 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
7548 | if test -n "$ac_ct_STRIP"; then |
---|
7549 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
7550 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
---|
7551 | else |
---|
7552 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7553 | echo "${ECHO_T}no" >&6; } |
---|
7554 | fi |
---|
7555 | |
---|
7556 | if test "x$ac_ct_STRIP" = x; then |
---|
7557 | STRIP=":" |
---|
7558 | else |
---|
7559 | case $cross_compiling:$ac_tool_warned in |
---|
7560 | yes:) |
---|
7561 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7562 | whose name does not start with the host triplet. If you think this |
---|
7563 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
7564 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7565 | whose name does not start with the host triplet. If you think this |
---|
7566 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
7567 | ac_tool_warned=yes ;; |
---|
7568 | esac |
---|
7569 | STRIP=$ac_ct_STRIP |
---|
7570 | fi |
---|
7571 | else |
---|
7572 | STRIP="$ac_cv_prog_STRIP" |
---|
7573 | fi |
---|
7574 | |
---|
7575 | |
---|
7576 | old_CC="$CC" |
---|
7577 | old_CFLAGS="$CFLAGS" |
---|
7578 | |
---|
7579 | # Set sane defaults for various variables |
---|
7580 | test -z "$AR" && AR=ar |
---|
7581 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
7582 | test -z "$AS" && AS=as |
---|
7583 | test -z "$CC" && CC=cc |
---|
7584 | test -z "$LTCC" && LTCC=$CC |
---|
7585 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
7586 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
7587 | test -z "$LD" && LD=ld |
---|
7588 | test -z "$LN_S" && LN_S="ln -s" |
---|
7589 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
7590 | test -z "$NM" && NM=nm |
---|
7591 | test -z "$SED" && SED=sed |
---|
7592 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
7593 | test -z "$RANLIB" && RANLIB=: |
---|
7594 | test -z "$STRIP" && STRIP=: |
---|
7595 | test -z "$ac_objext" && ac_objext=o |
---|
7596 | |
---|
7597 | # Determine commands to create old-style static archives. |
---|
7598 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
---|
7599 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
7600 | old_postuninstall_cmds= |
---|
7601 | |
---|
7602 | if test -n "$RANLIB"; then |
---|
7603 | case $host_os in |
---|
7604 | openbsd*) |
---|
7605 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
---|
7606 | ;; |
---|
7607 | *) |
---|
7608 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
---|
7609 | ;; |
---|
7610 | esac |
---|
7611 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
7612 | fi |
---|
7613 | |
---|
7614 | for cc_temp in $compiler""; do |
---|
7615 | case $cc_temp in |
---|
7616 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
7617 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
7618 | \-*) ;; |
---|
7619 | *) break;; |
---|
7620 | esac |
---|
7621 | done |
---|
7622 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
7623 | |
---|
7624 | |
---|
7625 | # Only perform the check for file, if the check method requires it |
---|
7626 | case $deplibs_check_method in |
---|
7627 | file_magic*) |
---|
7628 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
7629 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
---|
7630 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
---|
7631 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7633 | else |
---|
7634 | case $MAGIC_CMD in |
---|
7635 | [\\/*] | ?:[\\/]*) |
---|
7636 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7637 | ;; |
---|
7638 | *) |
---|
7639 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7640 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7641 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7642 | for ac_dir in $ac_dummy; do |
---|
7643 | IFS="$lt_save_ifs" |
---|
7644 | test -z "$ac_dir" && ac_dir=. |
---|
7645 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
7646 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
7647 | if test -n "$file_magic_test_file"; then |
---|
7648 | case $deplibs_check_method in |
---|
7649 | "file_magic "*) |
---|
7650 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7651 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7652 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7653 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7654 | : |
---|
7655 | else |
---|
7656 | cat <<EOF 1>&2 |
---|
7657 | |
---|
7658 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7659 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7660 | *** The result is that libtool may fail to recognize shared libraries |
---|
7661 | *** as such. This will affect the creation of libtool libraries that |
---|
7662 | *** depend on shared libraries, but programs linked with such libtool |
---|
7663 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7664 | *** may want to report the problem to your system manager and/or to |
---|
7665 | *** bug-libtool@gnu.org |
---|
7666 | |
---|
7667 | EOF |
---|
7668 | fi ;; |
---|
7669 | esac |
---|
7670 | fi |
---|
7671 | break |
---|
7672 | fi |
---|
7673 | done |
---|
7674 | IFS="$lt_save_ifs" |
---|
7675 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7676 | ;; |
---|
7677 | esac |
---|
7678 | fi |
---|
7679 | |
---|
7680 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7681 | if test -n "$MAGIC_CMD"; then |
---|
7682 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7683 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
---|
7684 | else |
---|
7685 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7686 | echo "${ECHO_T}no" >&6; } |
---|
7687 | fi |
---|
7688 | |
---|
7689 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
7690 | if test -n "$ac_tool_prefix"; then |
---|
7691 | { echo "$as_me:$LINENO: checking for file" >&5 |
---|
7692 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
---|
7693 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7695 | else |
---|
7696 | case $MAGIC_CMD in |
---|
7697 | [\\/*] | ?:[\\/]*) |
---|
7698 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7699 | ;; |
---|
7700 | *) |
---|
7701 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7702 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7703 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7704 | for ac_dir in $ac_dummy; do |
---|
7705 | IFS="$lt_save_ifs" |
---|
7706 | test -z "$ac_dir" && ac_dir=. |
---|
7707 | if test -f $ac_dir/file; then |
---|
7708 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
7709 | if test -n "$file_magic_test_file"; then |
---|
7710 | case $deplibs_check_method in |
---|
7711 | "file_magic "*) |
---|
7712 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7713 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7714 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7715 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7716 | : |
---|
7717 | else |
---|
7718 | cat <<EOF 1>&2 |
---|
7719 | |
---|
7720 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7721 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7722 | *** The result is that libtool may fail to recognize shared libraries |
---|
7723 | *** as such. This will affect the creation of libtool libraries that |
---|
7724 | *** depend on shared libraries, but programs linked with such libtool |
---|
7725 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7726 | *** may want to report the problem to your system manager and/or to |
---|
7727 | *** bug-libtool@gnu.org |
---|
7728 | |
---|
7729 | EOF |
---|
7730 | fi ;; |
---|
7731 | esac |
---|
7732 | fi |
---|
7733 | break |
---|
7734 | fi |
---|
7735 | done |
---|
7736 | IFS="$lt_save_ifs" |
---|
7737 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7738 | ;; |
---|
7739 | esac |
---|
7740 | fi |
---|
7741 | |
---|
7742 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7743 | if test -n "$MAGIC_CMD"; then |
---|
7744 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7745 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
---|
7746 | else |
---|
7747 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7748 | echo "${ECHO_T}no" >&6; } |
---|
7749 | fi |
---|
7750 | |
---|
7751 | else |
---|
7752 | MAGIC_CMD=: |
---|
7753 | fi |
---|
7754 | fi |
---|
7755 | |
---|
7756 | fi |
---|
7757 | ;; |
---|
7758 | esac |
---|
7759 | |
---|
7760 | enable_dlopen=no |
---|
7761 | enable_win32_dll=no |
---|
7762 | |
---|
7763 | # Check whether --enable-libtool-lock was given. |
---|
7764 | if test "${enable_libtool_lock+set}" = set; then |
---|
7765 | enableval=$enable_libtool_lock; |
---|
7766 | fi |
---|
7767 | |
---|
7768 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
7769 | |
---|
7770 | |
---|
7771 | # Check whether --with-pic was given. |
---|
7772 | if test "${with_pic+set}" = set; then |
---|
7773 | withval=$with_pic; pic_mode="$withval" |
---|
7774 | else |
---|
7775 | pic_mode=default |
---|
7776 | fi |
---|
7777 | |
---|
7778 | test -z "$pic_mode" && pic_mode=default |
---|
7779 | |
---|
7780 | # Use C for the default configuration in the libtool script |
---|
7781 | tagname= |
---|
7782 | lt_save_CC="$CC" |
---|
7783 | ac_ext=c |
---|
7784 | ac_cpp='$CPP $CPPFLAGS' |
---|
7785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7788 | |
---|
7789 | |
---|
7790 | # Source file extension for C test sources. |
---|
7791 | ac_ext=c |
---|
7792 | |
---|
7793 | # Object file extension for compiled C test sources. |
---|
7794 | objext=o |
---|
7795 | objext=$objext |
---|
7796 | |
---|
7797 | # Code to be used in simple compile tests |
---|
7798 | lt_simple_compile_test_code="int some_variable = 0;" |
---|
7799 | |
---|
7800 | # Code to be used in simple link tests |
---|
7801 | lt_simple_link_test_code='int main(){return(0);}' |
---|
7802 | |
---|
7803 | |
---|
7804 | # If no C compiler was specified, use CC. |
---|
7805 | LTCC=${LTCC-"$CC"} |
---|
7806 | |
---|
7807 | # If no C compiler flags were specified, use CFLAGS. |
---|
7808 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
7809 | |
---|
7810 | # Allow CC to be a program name with arguments. |
---|
7811 | compiler=$CC |
---|
7812 | |
---|
7813 | |
---|
7814 | # save warnings/boilerplate of simple test code |
---|
7815 | ac_outfile=conftest.$ac_objext |
---|
7816 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
7817 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7818 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
7819 | $rm conftest* |
---|
7820 | |
---|
7821 | ac_outfile=conftest.$ac_objext |
---|
7822 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
7823 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7824 | _lt_linker_boilerplate=`cat conftest.err` |
---|
7825 | $rm conftest* |
---|
7826 | |
---|
7827 | |
---|
7828 | |
---|
7829 | lt_prog_compiler_no_builtin_flag= |
---|
7830 | |
---|
7831 | if test "$GCC" = yes; then |
---|
7832 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
7833 | |
---|
7834 | |
---|
7835 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
7836 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
---|
7837 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
7838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7839 | else |
---|
7840 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
7841 | ac_outfile=conftest.$ac_objext |
---|
7842 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7843 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
7844 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7845 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7846 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7847 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7848 | # The option is referenced via a variable to avoid confusing sed. |
---|
7849 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7850 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
7851 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7852 | -e 's:$: $lt_compiler_flag:'` |
---|
7853 | (eval echo "\"\$as_me:7853: $lt_compile\"" >&5) |
---|
7854 | (eval "$lt_compile" 2>conftest.err) |
---|
7855 | ac_status=$? |
---|
7856 | cat conftest.err >&5 |
---|
7857 | echo "$as_me:7857: \$? = $ac_status" >&5 |
---|
7858 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
7859 | # The compiler can only warn and ignore the option if not recognized |
---|
7860 | # So say no if there are warnings other than the usual output. |
---|
7861 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
7862 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
7863 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
7864 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
7865 | fi |
---|
7866 | fi |
---|
7867 | $rm conftest* |
---|
7868 | |
---|
7869 | fi |
---|
7870 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
7871 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
---|
7872 | |
---|
7873 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
7874 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
7875 | else |
---|
7876 | : |
---|
7877 | fi |
---|
7878 | |
---|
7879 | fi |
---|
7880 | |
---|
7881 | lt_prog_compiler_wl= |
---|
7882 | lt_prog_compiler_pic= |
---|
7883 | lt_prog_compiler_static= |
---|
7884 | |
---|
7885 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
7886 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
---|
7887 | |
---|
7888 | if test "$GCC" = yes; then |
---|
7889 | lt_prog_compiler_wl='-Wl,' |
---|
7890 | lt_prog_compiler_static='-static' |
---|
7891 | |
---|
7892 | case $host_os in |
---|
7893 | aix*) |
---|
7894 | # All AIX code is PIC. |
---|
7895 | if test "$host_cpu" = ia64; then |
---|
7896 | # AIX 5 now supports IA64 processor |
---|
7897 | lt_prog_compiler_static='-Bstatic' |
---|
7898 | fi |
---|
7899 | ;; |
---|
7900 | |
---|
7901 | amigaos*) |
---|
7902 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
7903 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
7904 | # like `-m68040'. |
---|
7905 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
7906 | ;; |
---|
7907 | |
---|
7908 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
7909 | # PIC is the default for these OSes. |
---|
7910 | ;; |
---|
7911 | |
---|
7912 | mingw* | cygwin* | pw32* | os2*) |
---|
7913 | # This hack is so that the source file can tell whether it is being |
---|
7914 | # built for inclusion in a dll (and should export symbols for example). |
---|
7915 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
---|
7916 | # (--disable-auto-import) libraries |
---|
7917 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7918 | ;; |
---|
7919 | |
---|
7920 | darwin* | rhapsody*) |
---|
7921 | # PIC is the default on this platform |
---|
7922 | # Common symbols not allowed in MH_DYLIB files |
---|
7923 | lt_prog_compiler_pic='-fno-common' |
---|
7924 | ;; |
---|
7925 | |
---|
7926 | interix[3-9]*) |
---|
7927 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
7928 | # Instead, we relocate shared libraries at runtime. |
---|
7929 | ;; |
---|
7930 | |
---|
7931 | msdosdjgpp*) |
---|
7932 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
7933 | # on systems that don't support them. |
---|
7934 | lt_prog_compiler_can_build_shared=no |
---|
7935 | enable_shared=no |
---|
7936 | ;; |
---|
7937 | |
---|
7938 | sysv4*MP*) |
---|
7939 | if test -d /usr/nec; then |
---|
7940 | lt_prog_compiler_pic=-Kconform_pic |
---|
7941 | fi |
---|
7942 | ;; |
---|
7943 | |
---|
7944 | hpux*) |
---|
7945 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7946 | # not for PA HP-UX. |
---|
7947 | case $host_cpu in |
---|
7948 | hppa*64*|ia64*) |
---|
7949 | # +Z the default |
---|
7950 | ;; |
---|
7951 | *) |
---|
7952 | lt_prog_compiler_pic='-fPIC' |
---|
7953 | ;; |
---|
7954 | esac |
---|
7955 | ;; |
---|
7956 | |
---|
7957 | *) |
---|
7958 | lt_prog_compiler_pic='-fPIC' |
---|
7959 | ;; |
---|
7960 | esac |
---|
7961 | else |
---|
7962 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
7963 | case $host_os in |
---|
7964 | aix*) |
---|
7965 | lt_prog_compiler_wl='-Wl,' |
---|
7966 | if test "$host_cpu" = ia64; then |
---|
7967 | # AIX 5 now supports IA64 processor |
---|
7968 | lt_prog_compiler_static='-Bstatic' |
---|
7969 | else |
---|
7970 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
7971 | fi |
---|
7972 | ;; |
---|
7973 | darwin*) |
---|
7974 | # PIC is the default on this platform |
---|
7975 | # Common symbols not allowed in MH_DYLIB files |
---|
7976 | case $cc_basename in |
---|
7977 | xlc*) |
---|
7978 | lt_prog_compiler_pic='-qnocommon' |
---|
7979 | lt_prog_compiler_wl='-Wl,' |
---|
7980 | ;; |
---|
7981 | esac |
---|
7982 | ;; |
---|
7983 | |
---|
7984 | mingw* | cygwin* | pw32* | os2*) |
---|
7985 | # This hack is so that the source file can tell whether it is being |
---|
7986 | # built for inclusion in a dll (and should export symbols for example). |
---|
7987 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7988 | ;; |
---|
7989 | |
---|
7990 | hpux9* | hpux10* | hpux11*) |
---|
7991 | lt_prog_compiler_wl='-Wl,' |
---|
7992 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7993 | # not for PA HP-UX. |
---|
7994 | case $host_cpu in |
---|
7995 | hppa*64*|ia64*) |
---|
7996 | # +Z the default |
---|
7997 | ;; |
---|
7998 | *) |
---|
7999 | lt_prog_compiler_pic='+Z' |
---|
8000 | ;; |
---|
8001 | esac |
---|
8002 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
8003 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
8004 | ;; |
---|
8005 | |
---|
8006 | irix5* | irix6* | nonstopux*) |
---|
8007 | lt_prog_compiler_wl='-Wl,' |
---|
8008 | # PIC (with -KPIC) is the default. |
---|
8009 | lt_prog_compiler_static='-non_shared' |
---|
8010 | ;; |
---|
8011 | |
---|
8012 | newsos6) |
---|
8013 | lt_prog_compiler_pic='-KPIC' |
---|
8014 | lt_prog_compiler_static='-Bstatic' |
---|
8015 | ;; |
---|
8016 | |
---|
8017 | linux* | k*bsd*-gnu) |
---|
8018 | case $cc_basename in |
---|
8019 | icc* | ecc*) |
---|
8020 | lt_prog_compiler_wl='-Wl,' |
---|
8021 | lt_prog_compiler_pic='-KPIC' |
---|
8022 | lt_prog_compiler_static='-static' |
---|
8023 | ;; |
---|
8024 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
8025 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
8026 | # which looks to be a dead project) |
---|
8027 | lt_prog_compiler_wl='-Wl,' |
---|
8028 | lt_prog_compiler_pic='-fpic' |
---|
8029 | lt_prog_compiler_static='-Bstatic' |
---|
8030 | ;; |
---|
8031 | ccc*) |
---|
8032 | lt_prog_compiler_wl='-Wl,' |
---|
8033 | # All Alpha code is PIC. |
---|
8034 | lt_prog_compiler_static='-non_shared' |
---|
8035 | ;; |
---|
8036 | *) |
---|
8037 | case `$CC -V 2>&1 | sed 5q` in |
---|
8038 | *Sun\ C*) |
---|
8039 | # Sun C 5.9 |
---|
8040 | lt_prog_compiler_pic='-KPIC' |
---|
8041 | lt_prog_compiler_static='-Bstatic' |
---|
8042 | lt_prog_compiler_wl='-Wl,' |
---|
8043 | ;; |
---|
8044 | *Sun\ F*) |
---|
8045 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
---|
8046 | lt_prog_compiler_pic='-KPIC' |
---|
8047 | lt_prog_compiler_static='-Bstatic' |
---|
8048 | lt_prog_compiler_wl='' |
---|
8049 | ;; |
---|
8050 | esac |
---|
8051 | ;; |
---|
8052 | esac |
---|
8053 | ;; |
---|
8054 | |
---|
8055 | osf3* | osf4* | osf5*) |
---|
8056 | lt_prog_compiler_wl='-Wl,' |
---|
8057 | # All OSF/1 code is PIC. |
---|
8058 | lt_prog_compiler_static='-non_shared' |
---|
8059 | ;; |
---|
8060 | |
---|
8061 | rdos*) |
---|
8062 | lt_prog_compiler_static='-non_shared' |
---|
8063 | ;; |
---|
8064 | |
---|
8065 | solaris*) |
---|
8066 | lt_prog_compiler_pic='-KPIC' |
---|
8067 | lt_prog_compiler_static='-Bstatic' |
---|
8068 | case $cc_basename in |
---|
8069 | f77* | f90* | f95*) |
---|
8070 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
8071 | *) |
---|
8072 | lt_prog_compiler_wl='-Wl,';; |
---|
8073 | esac |
---|
8074 | ;; |
---|
8075 | |
---|
8076 | sunos4*) |
---|
8077 | lt_prog_compiler_wl='-Qoption ld ' |
---|
8078 | lt_prog_compiler_pic='-PIC' |
---|
8079 | lt_prog_compiler_static='-Bstatic' |
---|
8080 | ;; |
---|
8081 | |
---|
8082 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
8083 | lt_prog_compiler_wl='-Wl,' |
---|
8084 | lt_prog_compiler_pic='-KPIC' |
---|
8085 | lt_prog_compiler_static='-Bstatic' |
---|
8086 | ;; |
---|
8087 | |
---|
8088 | sysv4*MP*) |
---|
8089 | if test -d /usr/nec ;then |
---|
8090 | lt_prog_compiler_pic='-Kconform_pic' |
---|
8091 | lt_prog_compiler_static='-Bstatic' |
---|
8092 | fi |
---|
8093 | ;; |
---|
8094 | |
---|
8095 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
8096 | lt_prog_compiler_wl='-Wl,' |
---|
8097 | lt_prog_compiler_pic='-KPIC' |
---|
8098 | lt_prog_compiler_static='-Bstatic' |
---|
8099 | ;; |
---|
8100 | |
---|
8101 | unicos*) |
---|
8102 | lt_prog_compiler_wl='-Wl,' |
---|
8103 | lt_prog_compiler_can_build_shared=no |
---|
8104 | ;; |
---|
8105 | |
---|
8106 | uts4*) |
---|
8107 | lt_prog_compiler_pic='-pic' |
---|
8108 | lt_prog_compiler_static='-Bstatic' |
---|
8109 | ;; |
---|
8110 | |
---|
8111 | *) |
---|
8112 | lt_prog_compiler_can_build_shared=no |
---|
8113 | ;; |
---|
8114 | esac |
---|
8115 | fi |
---|
8116 | |
---|
8117 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
8118 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
---|
8119 | |
---|
8120 | # |
---|
8121 | # Check to make sure the PIC flag actually works. |
---|
8122 | # |
---|
8123 | if test -n "$lt_prog_compiler_pic"; then |
---|
8124 | |
---|
8125 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
8126 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
---|
8127 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
8128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8129 | else |
---|
8130 | lt_prog_compiler_pic_works=no |
---|
8131 | ac_outfile=conftest.$ac_objext |
---|
8132 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8133 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
8134 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8135 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8136 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8137 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8138 | # The option is referenced via a variable to avoid confusing sed. |
---|
8139 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8140 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8141 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8142 | -e 's:$: $lt_compiler_flag:'` |
---|
8143 | (eval echo "\"\$as_me:8143: $lt_compile\"" >&5) |
---|
8144 | (eval "$lt_compile" 2>conftest.err) |
---|
8145 | ac_status=$? |
---|
8146 | cat conftest.err >&5 |
---|
8147 | echo "$as_me:8147: \$? = $ac_status" >&5 |
---|
8148 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
8149 | # The compiler can only warn and ignore the option if not recognized |
---|
8150 | # So say no if there are warnings other than the usual output. |
---|
8151 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
8152 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8153 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
8154 | lt_prog_compiler_pic_works=yes |
---|
8155 | fi |
---|
8156 | fi |
---|
8157 | $rm conftest* |
---|
8158 | |
---|
8159 | fi |
---|
8160 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
8161 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
---|
8162 | |
---|
8163 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
8164 | case $lt_prog_compiler_pic in |
---|
8165 | "" | " "*) ;; |
---|
8166 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
8167 | esac |
---|
8168 | else |
---|
8169 | lt_prog_compiler_pic= |
---|
8170 | lt_prog_compiler_can_build_shared=no |
---|
8171 | fi |
---|
8172 | |
---|
8173 | fi |
---|
8174 | case $host_os in |
---|
8175 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
8176 | *djgpp*) |
---|
8177 | lt_prog_compiler_pic= |
---|
8178 | ;; |
---|
8179 | *) |
---|
8180 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
8181 | ;; |
---|
8182 | esac |
---|
8183 | |
---|
8184 | # |
---|
8185 | # Check to make sure the static flag actually works. |
---|
8186 | # |
---|
8187 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
8188 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
8189 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
---|
8190 | if test "${lt_prog_compiler_static_works+set}" = set; then |
---|
8191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8192 | else |
---|
8193 | lt_prog_compiler_static_works=no |
---|
8194 | save_LDFLAGS="$LDFLAGS" |
---|
8195 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
8196 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
8197 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
8198 | # The linker can only warn and ignore the option if not recognized |
---|
8199 | # So say no if there are warnings |
---|
8200 | if test -s conftest.err; then |
---|
8201 | # Append any errors to the config.log. |
---|
8202 | cat conftest.err 1>&5 |
---|
8203 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
8204 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8205 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
8206 | lt_prog_compiler_static_works=yes |
---|
8207 | fi |
---|
8208 | else |
---|
8209 | lt_prog_compiler_static_works=yes |
---|
8210 | fi |
---|
8211 | fi |
---|
8212 | $rm conftest* |
---|
8213 | LDFLAGS="$save_LDFLAGS" |
---|
8214 | |
---|
8215 | fi |
---|
8216 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
---|
8217 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
---|
8218 | |
---|
8219 | if test x"$lt_prog_compiler_static_works" = xyes; then |
---|
8220 | : |
---|
8221 | else |
---|
8222 | lt_prog_compiler_static= |
---|
8223 | fi |
---|
8224 | |
---|
8225 | |
---|
8226 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
8227 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
---|
8228 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
8229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8230 | else |
---|
8231 | lt_cv_prog_compiler_c_o=no |
---|
8232 | $rm -r conftest 2>/dev/null |
---|
8233 | mkdir conftest |
---|
8234 | cd conftest |
---|
8235 | mkdir out |
---|
8236 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8237 | |
---|
8238 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
8239 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8240 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8241 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8242 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8243 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8244 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8245 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8246 | -e 's:$: $lt_compiler_flag:'` |
---|
8247 | (eval echo "\"\$as_me:8247: $lt_compile\"" >&5) |
---|
8248 | (eval "$lt_compile" 2>out/conftest.err) |
---|
8249 | ac_status=$? |
---|
8250 | cat out/conftest.err >&5 |
---|
8251 | echo "$as_me:8251: \$? = $ac_status" >&5 |
---|
8252 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
8253 | then |
---|
8254 | # The compiler can only warn and ignore the option if not recognized |
---|
8255 | # So say no if there are warnings |
---|
8256 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
8257 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
8258 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
8259 | lt_cv_prog_compiler_c_o=yes |
---|
8260 | fi |
---|
8261 | fi |
---|
8262 | chmod u+w . 2>&5 |
---|
8263 | $rm conftest* |
---|
8264 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
8265 | # template instantiation |
---|
8266 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
8267 | $rm out/* && rmdir out |
---|
8268 | cd .. |
---|
8269 | rmdir conftest |
---|
8270 | $rm conftest* |
---|
8271 | |
---|
8272 | fi |
---|
8273 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
8274 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
---|
8275 | |
---|
8276 | |
---|
8277 | hard_links="nottested" |
---|
8278 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
8279 | # do not overwrite the value of need_locks provided by the user |
---|
8280 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
8281 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
---|
8282 | hard_links=yes |
---|
8283 | $rm conftest* |
---|
8284 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8285 | touch conftest.a |
---|
8286 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
8287 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8288 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
8289 | echo "${ECHO_T}$hard_links" >&6; } |
---|
8290 | if test "$hard_links" = no; then |
---|
8291 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
8292 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
8293 | need_locks=warn |
---|
8294 | fi |
---|
8295 | else |
---|
8296 | need_locks=no |
---|
8297 | fi |
---|
8298 | |
---|
8299 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
8300 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
8301 | |
---|
8302 | runpath_var= |
---|
8303 | allow_undefined_flag= |
---|
8304 | enable_shared_with_static_runtimes=no |
---|
8305 | archive_cmds= |
---|
8306 | archive_expsym_cmds= |
---|
8307 | old_archive_From_new_cmds= |
---|
8308 | old_archive_from_expsyms_cmds= |
---|
8309 | export_dynamic_flag_spec= |
---|
8310 | whole_archive_flag_spec= |
---|
8311 | thread_safe_flag_spec= |
---|
8312 | hardcode_libdir_flag_spec= |
---|
8313 | hardcode_libdir_flag_spec_ld= |
---|
8314 | hardcode_libdir_separator= |
---|
8315 | hardcode_direct=no |
---|
8316 | hardcode_minus_L=no |
---|
8317 | hardcode_shlibpath_var=unsupported |
---|
8318 | link_all_deplibs=unknown |
---|
8319 | hardcode_automatic=no |
---|
8320 | module_cmds= |
---|
8321 | module_expsym_cmds= |
---|
8322 | always_export_symbols=no |
---|
8323 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8324 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
8325 | # included in the symbol list |
---|
8326 | include_expsyms= |
---|
8327 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
8328 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
8329 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
8330 | # as well as any symbol that contains `d'. |
---|
8331 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
8332 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
8333 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
8334 | # the symbol is explicitly referenced. Since portable code cannot |
---|
8335 | # rely on this symbol name, it's probably fine to never include it in |
---|
8336 | # preloaded symbol tables. |
---|
8337 | extract_expsyms_cmds= |
---|
8338 | # Just being paranoid about ensuring that cc_basename is set. |
---|
8339 | for cc_temp in $compiler""; do |
---|
8340 | case $cc_temp in |
---|
8341 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
8342 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
8343 | \-*) ;; |
---|
8344 | *) break;; |
---|
8345 | esac |
---|
8346 | done |
---|
8347 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
8348 | |
---|
8349 | case $host_os in |
---|
8350 | cygwin* | mingw* | pw32*) |
---|
8351 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
8352 | # When not using gcc, we currently assume that we are using |
---|
8353 | # Microsoft Visual C++. |
---|
8354 | if test "$GCC" != yes; then |
---|
8355 | with_gnu_ld=no |
---|
8356 | fi |
---|
8357 | ;; |
---|
8358 | interix*) |
---|
8359 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
8360 | with_gnu_ld=yes |
---|
8361 | ;; |
---|
8362 | openbsd*) |
---|
8363 | with_gnu_ld=no |
---|
8364 | ;; |
---|
8365 | esac |
---|
8366 | |
---|
8367 | ld_shlibs=yes |
---|
8368 | if test "$with_gnu_ld" = yes; then |
---|
8369 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
8370 | wlarc='${wl}' |
---|
8371 | |
---|
8372 | # Set some defaults for GNU ld with shared library support. These |
---|
8373 | # are reset later if shared libraries are not supported. Putting them |
---|
8374 | # here allows them to be overridden if necessary. |
---|
8375 | runpath_var=LD_RUN_PATH |
---|
8376 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
8377 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
8378 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
8379 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
8380 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
8381 | else |
---|
8382 | whole_archive_flag_spec= |
---|
8383 | fi |
---|
8384 | supports_anon_versioning=no |
---|
8385 | case `$LD -v 2>/dev/null` in |
---|
8386 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
8387 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
8388 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
8389 | *\ 2.11.*) ;; # other 2.11 versions |
---|
8390 | *) supports_anon_versioning=yes ;; |
---|
8391 | esac |
---|
8392 | |
---|
8393 | # See if GNU ld supports shared libraries. |
---|
8394 | case $host_os in |
---|
8395 | aix3* | aix4* | aix5*) |
---|
8396 | # On AIX/PPC, the GNU linker is very broken |
---|
8397 | if test "$host_cpu" != ia64; then |
---|
8398 | ld_shlibs=no |
---|
8399 | cat <<EOF 1>&2 |
---|
8400 | |
---|
8401 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
8402 | *** to be unable to reliably create shared libraries on AIX. |
---|
8403 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
8404 | *** really care for shared libraries, you may want to modify your PATH |
---|
8405 | *** so that a non-GNU linker is found, and then restart. |
---|
8406 | |
---|
8407 | EOF |
---|
8408 | fi |
---|
8409 | ;; |
---|
8410 | |
---|
8411 | amigaos*) |
---|
8412 | 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)' |
---|
8413 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8414 | hardcode_minus_L=yes |
---|
8415 | |
---|
8416 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
8417 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
8418 | # to version 4, is to share data among multiple programs linked |
---|
8419 | # with the same dynamic library. Since this doesn't match the |
---|
8420 | # behavior of shared libraries on other platforms, we can't use |
---|
8421 | # them. |
---|
8422 | ld_shlibs=no |
---|
8423 | ;; |
---|
8424 | |
---|
8425 | beos*) |
---|
8426 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8427 | allow_undefined_flag=unsupported |
---|
8428 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
8429 | # support --undefined. This deserves some investigation. FIXME |
---|
8430 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8431 | else |
---|
8432 | ld_shlibs=no |
---|
8433 | fi |
---|
8434 | ;; |
---|
8435 | |
---|
8436 | cygwin* | mingw* | pw32*) |
---|
8437 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
8438 | # as there is no search path for DLLs. |
---|
8439 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8440 | allow_undefined_flag=unsupported |
---|
8441 | always_export_symbols=no |
---|
8442 | enable_shared_with_static_runtimes=yes |
---|
8443 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
---|
8444 | |
---|
8445 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
8446 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8447 | # If the export-symbols file already is a .def file (1st line |
---|
8448 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
8449 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
8450 | cp $export_symbols $output_objdir/$soname.def; |
---|
8451 | else |
---|
8452 | echo EXPORTS > $output_objdir/$soname.def; |
---|
8453 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
8454 | fi~ |
---|
8455 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8456 | else |
---|
8457 | ld_shlibs=no |
---|
8458 | fi |
---|
8459 | ;; |
---|
8460 | |
---|
8461 | interix[3-9]*) |
---|
8462 | hardcode_direct=no |
---|
8463 | hardcode_shlibpath_var=no |
---|
8464 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8465 | export_dynamic_flag_spec='${wl}-E' |
---|
8466 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
8467 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
8468 | # default) and relocated if they conflict, which is a slow very memory |
---|
8469 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
8470 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
8471 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
8472 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
8473 | 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' |
---|
8474 | ;; |
---|
8475 | |
---|
8476 | gnu* | linux* | k*bsd*-gnu) |
---|
8477 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8478 | tmp_addflag= |
---|
8479 | case $cc_basename,$host_cpu in |
---|
8480 | pgcc*) # Portland Group C compiler |
---|
8481 | 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' |
---|
8482 | tmp_addflag=' $pic_flag' |
---|
8483 | ;; |
---|
8484 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
8485 | 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' |
---|
8486 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
8487 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
8488 | tmp_addflag=' -i_dynamic' ;; |
---|
8489 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
8490 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
8491 | ifc* | ifort*) # Intel Fortran compiler |
---|
8492 | tmp_addflag=' -nofor_main' ;; |
---|
8493 | esac |
---|
8494 | case `$CC -V 2>&1 | sed 5q` in |
---|
8495 | *Sun\ C*) # Sun C 5.9 |
---|
8496 | 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' |
---|
8497 | tmp_sharedflag='-G' ;; |
---|
8498 | *Sun\ F*) # Sun Fortran 8.3 |
---|
8499 | tmp_sharedflag='-G' ;; |
---|
8500 | *) |
---|
8501 | tmp_sharedflag='-shared' ;; |
---|
8502 | esac |
---|
8503 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8504 | |
---|
8505 | if test $supports_anon_versioning = yes; then |
---|
8506 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
8507 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
8508 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
8509 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
8510 | fi |
---|
8511 | else |
---|
8512 | ld_shlibs=no |
---|
8513 | fi |
---|
8514 | ;; |
---|
8515 | |
---|
8516 | netbsd*) |
---|
8517 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8518 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
8519 | wlarc= |
---|
8520 | else |
---|
8521 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8522 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8523 | fi |
---|
8524 | ;; |
---|
8525 | |
---|
8526 | solaris*) |
---|
8527 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
8528 | ld_shlibs=no |
---|
8529 | cat <<EOF 1>&2 |
---|
8530 | |
---|
8531 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
8532 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
8533 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8534 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
8535 | *** your PATH or compiler configuration so that the native linker is |
---|
8536 | *** used, and then restart. |
---|
8537 | |
---|
8538 | EOF |
---|
8539 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8540 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8541 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8542 | else |
---|
8543 | ld_shlibs=no |
---|
8544 | fi |
---|
8545 | ;; |
---|
8546 | |
---|
8547 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
8548 | case `$LD -v 2>&1` in |
---|
8549 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
8550 | ld_shlibs=no |
---|
8551 | cat <<_LT_EOF 1>&2 |
---|
8552 | |
---|
8553 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
8554 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
8555 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8556 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
8557 | *** your PATH or compiler configuration so that the native linker is |
---|
8558 | *** used, and then restart. |
---|
8559 | |
---|
8560 | _LT_EOF |
---|
8561 | ;; |
---|
8562 | *) |
---|
8563 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8564 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
---|
8565 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
---|
8566 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
---|
8567 | else |
---|
8568 | ld_shlibs=no |
---|
8569 | fi |
---|
8570 | ;; |
---|
8571 | esac |
---|
8572 | ;; |
---|
8573 | |
---|
8574 | sunos4*) |
---|
8575 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8576 | wlarc= |
---|
8577 | hardcode_direct=yes |
---|
8578 | hardcode_shlibpath_var=no |
---|
8579 | ;; |
---|
8580 | |
---|
8581 | *) |
---|
8582 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8583 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8584 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8585 | else |
---|
8586 | ld_shlibs=no |
---|
8587 | fi |
---|
8588 | ;; |
---|
8589 | esac |
---|
8590 | |
---|
8591 | if test "$ld_shlibs" = no; then |
---|
8592 | runpath_var= |
---|
8593 | hardcode_libdir_flag_spec= |
---|
8594 | export_dynamic_flag_spec= |
---|
8595 | whole_archive_flag_spec= |
---|
8596 | fi |
---|
8597 | else |
---|
8598 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
8599 | case $host_os in |
---|
8600 | aix3*) |
---|
8601 | allow_undefined_flag=unsupported |
---|
8602 | always_export_symbols=yes |
---|
8603 | 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' |
---|
8604 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
8605 | # are no directories specified by -L. |
---|
8606 | hardcode_minus_L=yes |
---|
8607 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
8608 | # Neither direct hardcoding nor static linking is supported with a |
---|
8609 | # broken collect2. |
---|
8610 | hardcode_direct=unsupported |
---|
8611 | fi |
---|
8612 | ;; |
---|
8613 | |
---|
8614 | aix4* | aix5*) |
---|
8615 | if test "$host_cpu" = ia64; then |
---|
8616 | # On IA64, the linker does run time linking by default, so we don't |
---|
8617 | # have to do anything special. |
---|
8618 | aix_use_runtimelinking=no |
---|
8619 | exp_sym_flag='-Bexport' |
---|
8620 | no_entry_flag="" |
---|
8621 | else |
---|
8622 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
8623 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
8624 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
8625 | 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' |
---|
8626 | else |
---|
8627 | 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' |
---|
8628 | fi |
---|
8629 | aix_use_runtimelinking=no |
---|
8630 | |
---|
8631 | # Test if we are trying to use run time linking or normal |
---|
8632 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
8633 | # need to do runtime linking. |
---|
8634 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
8635 | for ld_flag in $LDFLAGS; do |
---|
8636 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
8637 | aix_use_runtimelinking=yes |
---|
8638 | break |
---|
8639 | fi |
---|
8640 | done |
---|
8641 | ;; |
---|
8642 | esac |
---|
8643 | |
---|
8644 | exp_sym_flag='-bexport' |
---|
8645 | no_entry_flag='-bnoentry' |
---|
8646 | fi |
---|
8647 | |
---|
8648 | # When large executables or shared objects are built, AIX ld can |
---|
8649 | # have problems creating the table of contents. If linking a library |
---|
8650 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
8651 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
8652 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
8653 | |
---|
8654 | archive_cmds='' |
---|
8655 | hardcode_direct=yes |
---|
8656 | hardcode_libdir_separator=':' |
---|
8657 | link_all_deplibs=yes |
---|
8658 | |
---|
8659 | if test "$GCC" = yes; then |
---|
8660 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
8661 | # We only want to do this on AIX 4.2 and lower, the check |
---|
8662 | # below for broken collect2 doesn't work under 4.3+ |
---|
8663 | collect2name=`${CC} -print-prog-name=collect2` |
---|
8664 | if test -f "$collect2name" && \ |
---|
8665 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
8666 | then |
---|
8667 | # We have reworked collect2 |
---|
8668 | : |
---|
8669 | else |
---|
8670 | # We have old collect2 |
---|
8671 | hardcode_direct=unsupported |
---|
8672 | # It fails to find uninstalled libraries when the uninstalled |
---|
8673 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
8674 | # to unsupported forces relinking |
---|
8675 | hardcode_minus_L=yes |
---|
8676 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8677 | hardcode_libdir_separator= |
---|
8678 | fi |
---|
8679 | ;; |
---|
8680 | esac |
---|
8681 | shared_flag='-shared' |
---|
8682 | if test "$aix_use_runtimelinking" = yes; then |
---|
8683 | shared_flag="$shared_flag "'${wl}-G' |
---|
8684 | fi |
---|
8685 | else |
---|
8686 | # not using gcc |
---|
8687 | if test "$host_cpu" = ia64; then |
---|
8688 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
8689 | # chokes on -Wl,-G. The following line is correct: |
---|
8690 | shared_flag='-G' |
---|
8691 | else |
---|
8692 | if test "$aix_use_runtimelinking" = yes; then |
---|
8693 | shared_flag='${wl}-G' |
---|
8694 | else |
---|
8695 | shared_flag='${wl}-bM:SRE' |
---|
8696 | fi |
---|
8697 | fi |
---|
8698 | fi |
---|
8699 | |
---|
8700 | # It seems that -bexpall does not export symbols beginning with |
---|
8701 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
8702 | always_export_symbols=yes |
---|
8703 | if test "$aix_use_runtimelinking" = yes; then |
---|
8704 | # Warning - without using the other runtime loading flags (-brtl), |
---|
8705 | # -berok will link without error, but may produce a broken library. |
---|
8706 | allow_undefined_flag='-berok' |
---|
8707 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8708 | cat >conftest.$ac_ext <<_ACEOF |
---|
8709 | /* confdefs.h. */ |
---|
8710 | _ACEOF |
---|
8711 | cat confdefs.h >>conftest.$ac_ext |
---|
8712 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8713 | /* end confdefs.h. */ |
---|
8714 | |
---|
8715 | int |
---|
8716 | main () |
---|
8717 | { |
---|
8718 | |
---|
8719 | ; |
---|
8720 | return 0; |
---|
8721 | } |
---|
8722 | _ACEOF |
---|
8723 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8724 | if { (ac_try="$ac_link" |
---|
8725 | case "(($ac_try" in |
---|
8726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8727 | *) ac_try_echo=$ac_try;; |
---|
8728 | esac |
---|
8729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8730 | (eval "$ac_link") 2>conftest.er1 |
---|
8731 | ac_status=$? |
---|
8732 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8733 | rm -f conftest.er1 |
---|
8734 | cat conftest.err >&5 |
---|
8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8736 | (exit $ac_status); } && { |
---|
8737 | test -z "$ac_c_werror_flag" || |
---|
8738 | test ! -s conftest.err |
---|
8739 | } && test -s conftest$ac_exeext && |
---|
8740 | $as_test_x conftest$ac_exeext; then |
---|
8741 | |
---|
8742 | lt_aix_libpath_sed=' |
---|
8743 | /Import File Strings/,/^$/ { |
---|
8744 | /^0/ { |
---|
8745 | s/^0 *\(.*\)$/\1/ |
---|
8746 | p |
---|
8747 | } |
---|
8748 | }' |
---|
8749 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
8750 | # Check for a 64-bit object if we didn't find anything. |
---|
8751 | if test -z "$aix_libpath"; then |
---|
8752 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
8753 | fi |
---|
8754 | else |
---|
8755 | echo "$as_me: failed program was:" >&5 |
---|
8756 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8757 | |
---|
8758 | |
---|
8759 | fi |
---|
8760 | |
---|
8761 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
8762 | conftest$ac_exeext conftest.$ac_ext |
---|
8763 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8764 | |
---|
8765 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8766 | 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
8767 | else |
---|
8768 | if test "$host_cpu" = ia64; then |
---|
8769 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
8770 | allow_undefined_flag="-z nodefs" |
---|
8771 | 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" |
---|
8772 | else |
---|
8773 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8774 | cat >conftest.$ac_ext <<_ACEOF |
---|
8775 | /* confdefs.h. */ |
---|
8776 | _ACEOF |
---|
8777 | cat confdefs.h >>conftest.$ac_ext |
---|
8778 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8779 | /* end confdefs.h. */ |
---|
8780 | |
---|
8781 | int |
---|
8782 | main () |
---|
8783 | { |
---|
8784 | |
---|
8785 | ; |
---|
8786 | return 0; |
---|
8787 | } |
---|
8788 | _ACEOF |
---|
8789 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8790 | if { (ac_try="$ac_link" |
---|
8791 | case "(($ac_try" in |
---|
8792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8793 | *) ac_try_echo=$ac_try;; |
---|
8794 | esac |
---|
8795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8796 | (eval "$ac_link") 2>conftest.er1 |
---|
8797 | ac_status=$? |
---|
8798 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8799 | rm -f conftest.er1 |
---|
8800 | cat conftest.err >&5 |
---|
8801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8802 | (exit $ac_status); } && { |
---|
8803 | test -z "$ac_c_werror_flag" || |
---|
8804 | test ! -s conftest.err |
---|
8805 | } && test -s conftest$ac_exeext && |
---|
8806 | $as_test_x conftest$ac_exeext; then |
---|
8807 | |
---|
8808 | lt_aix_libpath_sed=' |
---|
8809 | /Import File Strings/,/^$/ { |
---|
8810 | /^0/ { |
---|
8811 | s/^0 *\(.*\)$/\1/ |
---|
8812 | p |
---|
8813 | } |
---|
8814 | }' |
---|
8815 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
8816 | # Check for a 64-bit object if we didn't find anything. |
---|
8817 | if test -z "$aix_libpath"; then |
---|
8818 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
8819 | fi |
---|
8820 | else |
---|
8821 | echo "$as_me: failed program was:" >&5 |
---|
8822 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8823 | |
---|
8824 | |
---|
8825 | fi |
---|
8826 | |
---|
8827 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
8828 | conftest$ac_exeext conftest.$ac_ext |
---|
8829 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8830 | |
---|
8831 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8832 | # Warning - without using the other run time loading flags, |
---|
8833 | # -berok will link without error, but may produce a broken library. |
---|
8834 | no_undefined_flag=' ${wl}-bernotok' |
---|
8835 | allow_undefined_flag=' ${wl}-berok' |
---|
8836 | # Exported symbols can be pulled into shared objects from archives |
---|
8837 | whole_archive_flag_spec='$convenience' |
---|
8838 | archive_cmds_need_lc=yes |
---|
8839 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
8840 | 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' |
---|
8841 | fi |
---|
8842 | fi |
---|
8843 | ;; |
---|
8844 | |
---|
8845 | amigaos*) |
---|
8846 | 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)' |
---|
8847 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8848 | hardcode_minus_L=yes |
---|
8849 | # see comment about different semantics on the GNU ld section |
---|
8850 | ld_shlibs=no |
---|
8851 | ;; |
---|
8852 | |
---|
8853 | bsdi[45]*) |
---|
8854 | export_dynamic_flag_spec=-rdynamic |
---|
8855 | ;; |
---|
8856 | |
---|
8857 | cygwin* | mingw* | pw32*) |
---|
8858 | # When not using gcc, we currently assume that we are using |
---|
8859 | # Microsoft Visual C++. |
---|
8860 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
8861 | # no search path for DLLs. |
---|
8862 | hardcode_libdir_flag_spec=' ' |
---|
8863 | allow_undefined_flag=unsupported |
---|
8864 | # Tell ltmain to make .lib files, not .a files. |
---|
8865 | libext=lib |
---|
8866 | # Tell ltmain to make .dll files, not .so files. |
---|
8867 | shrext_cmds=".dll" |
---|
8868 | # FIXME: Setting linknames here is a bad hack. |
---|
8869 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
8870 | # The linker will automatically build a .lib file if we build a DLL. |
---|
8871 | old_archive_From_new_cmds='true' |
---|
8872 | # FIXME: Should let the user specify the lib program. |
---|
8873 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
---|
8874 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
8875 | enable_shared_with_static_runtimes=yes |
---|
8876 | ;; |
---|
8877 | |
---|
8878 | darwin* | rhapsody*) |
---|
8879 | case $host_os in |
---|
8880 | rhapsody* | darwin1.[012]) |
---|
8881 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
---|
8882 | ;; |
---|
8883 | *) # Darwin 1.3 on |
---|
8884 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
8885 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8886 | else |
---|
8887 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
8888 | 10.[012]) |
---|
8889 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8890 | ;; |
---|
8891 | 10.*) |
---|
8892 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
---|
8893 | ;; |
---|
8894 | esac |
---|
8895 | fi |
---|
8896 | ;; |
---|
8897 | esac |
---|
8898 | archive_cmds_need_lc=no |
---|
8899 | hardcode_direct=no |
---|
8900 | hardcode_automatic=yes |
---|
8901 | hardcode_shlibpath_var=unsupported |
---|
8902 | whole_archive_flag_spec='' |
---|
8903 | link_all_deplibs=yes |
---|
8904 | if test "$GCC" = yes ; then |
---|
8905 | output_verbose_link_cmd='echo' |
---|
8906 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
8907 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8908 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8909 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8910 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8911 | else |
---|
8912 | case $cc_basename in |
---|
8913 | xlc*) |
---|
8914 | output_verbose_link_cmd='echo' |
---|
8915 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
---|
8916 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8917 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8918 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8919 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8920 | ;; |
---|
8921 | *) |
---|
8922 | ld_shlibs=no |
---|
8923 | ;; |
---|
8924 | esac |
---|
8925 | fi |
---|
8926 | ;; |
---|
8927 | |
---|
8928 | dgux*) |
---|
8929 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8930 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8931 | hardcode_shlibpath_var=no |
---|
8932 | ;; |
---|
8933 | |
---|
8934 | freebsd1*) |
---|
8935 | ld_shlibs=no |
---|
8936 | ;; |
---|
8937 | |
---|
8938 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
8939 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
8940 | # does not break anything, and helps significantly (at the cost of a little |
---|
8941 | # extra space). |
---|
8942 | freebsd2.2*) |
---|
8943 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
8944 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8945 | hardcode_direct=yes |
---|
8946 | hardcode_shlibpath_var=no |
---|
8947 | ;; |
---|
8948 | |
---|
8949 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
8950 | freebsd2*) |
---|
8951 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8952 | hardcode_direct=yes |
---|
8953 | hardcode_minus_L=yes |
---|
8954 | hardcode_shlibpath_var=no |
---|
8955 | ;; |
---|
8956 | |
---|
8957 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
8958 | freebsd* | dragonfly*) |
---|
8959 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
8960 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8961 | hardcode_direct=yes |
---|
8962 | hardcode_shlibpath_var=no |
---|
8963 | ;; |
---|
8964 | |
---|
8965 | hpux9*) |
---|
8966 | if test "$GCC" = yes; then |
---|
8967 | 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' |
---|
8968 | else |
---|
8969 | 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' |
---|
8970 | fi |
---|
8971 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8972 | hardcode_libdir_separator=: |
---|
8973 | hardcode_direct=yes |
---|
8974 | |
---|
8975 | # hardcode_minus_L: Not really in the search PATH, |
---|
8976 | # but as the default location of the library. |
---|
8977 | hardcode_minus_L=yes |
---|
8978 | export_dynamic_flag_spec='${wl}-E' |
---|
8979 | ;; |
---|
8980 | |
---|
8981 | hpux10*) |
---|
8982 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
8983 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8984 | else |
---|
8985 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
8986 | fi |
---|
8987 | if test "$with_gnu_ld" = no; then |
---|
8988 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8989 | hardcode_libdir_separator=: |
---|
8990 | |
---|
8991 | hardcode_direct=yes |
---|
8992 | export_dynamic_flag_spec='${wl}-E' |
---|
8993 | |
---|
8994 | # hardcode_minus_L: Not really in the search PATH, |
---|
8995 | # but as the default location of the library. |
---|
8996 | hardcode_minus_L=yes |
---|
8997 | fi |
---|
8998 | ;; |
---|
8999 | |
---|
9000 | hpux11*) |
---|
9001 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
9002 | case $host_cpu in |
---|
9003 | hppa*64*) |
---|
9004 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9005 | ;; |
---|
9006 | ia64*) |
---|
9007 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
9008 | ;; |
---|
9009 | *) |
---|
9010 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
9011 | ;; |
---|
9012 | esac |
---|
9013 | else |
---|
9014 | case $host_cpu in |
---|
9015 | hppa*64*) |
---|
9016 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9017 | ;; |
---|
9018 | ia64*) |
---|
9019 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
9020 | ;; |
---|
9021 | *) |
---|
9022 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
9023 | ;; |
---|
9024 | esac |
---|
9025 | fi |
---|
9026 | if test "$with_gnu_ld" = no; then |
---|
9027 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
9028 | hardcode_libdir_separator=: |
---|
9029 | |
---|
9030 | case $host_cpu in |
---|
9031 | hppa*64*|ia64*) |
---|
9032 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
9033 | hardcode_direct=no |
---|
9034 | hardcode_shlibpath_var=no |
---|
9035 | ;; |
---|
9036 | *) |
---|
9037 | hardcode_direct=yes |
---|
9038 | export_dynamic_flag_spec='${wl}-E' |
---|
9039 | |
---|
9040 | # hardcode_minus_L: Not really in the search PATH, |
---|
9041 | # but as the default location of the library. |
---|
9042 | hardcode_minus_L=yes |
---|
9043 | ;; |
---|
9044 | esac |
---|
9045 | fi |
---|
9046 | ;; |
---|
9047 | |
---|
9048 | irix5* | irix6* | nonstopux*) |
---|
9049 | if test "$GCC" = yes; then |
---|
9050 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
9051 | else |
---|
9052 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
9053 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
9054 | fi |
---|
9055 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9056 | hardcode_libdir_separator=: |
---|
9057 | link_all_deplibs=yes |
---|
9058 | ;; |
---|
9059 | |
---|
9060 | netbsd*) |
---|
9061 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9062 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
9063 | else |
---|
9064 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
9065 | fi |
---|
9066 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9067 | hardcode_direct=yes |
---|
9068 | hardcode_shlibpath_var=no |
---|
9069 | ;; |
---|
9070 | |
---|
9071 | newsos6) |
---|
9072 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9073 | hardcode_direct=yes |
---|
9074 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9075 | hardcode_libdir_separator=: |
---|
9076 | hardcode_shlibpath_var=no |
---|
9077 | ;; |
---|
9078 | |
---|
9079 | openbsd*) |
---|
9080 | if test -f /usr/libexec/ld.so; then |
---|
9081 | hardcode_direct=yes |
---|
9082 | hardcode_shlibpath_var=no |
---|
9083 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9084 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9085 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
9086 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9087 | export_dynamic_flag_spec='${wl}-E' |
---|
9088 | else |
---|
9089 | case $host_os in |
---|
9090 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
9091 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9092 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9093 | ;; |
---|
9094 | *) |
---|
9095 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9096 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9097 | ;; |
---|
9098 | esac |
---|
9099 | fi |
---|
9100 | else |
---|
9101 | ld_shlibs=no |
---|
9102 | fi |
---|
9103 | ;; |
---|
9104 | |
---|
9105 | os2*) |
---|
9106 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9107 | hardcode_minus_L=yes |
---|
9108 | allow_undefined_flag=unsupported |
---|
9109 | 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' |
---|
9110 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
9111 | ;; |
---|
9112 | |
---|
9113 | osf3*) |
---|
9114 | if test "$GCC" = yes; then |
---|
9115 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9116 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
9117 | else |
---|
9118 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9119 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
9120 | fi |
---|
9121 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9122 | hardcode_libdir_separator=: |
---|
9123 | ;; |
---|
9124 | |
---|
9125 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
9126 | if test "$GCC" = yes; then |
---|
9127 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9128 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
9129 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9130 | else |
---|
9131 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9132 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
9133 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
9134 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
---|
9135 | |
---|
9136 | # Both c and cxx compiler support -rpath directly |
---|
9137 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
9138 | fi |
---|
9139 | hardcode_libdir_separator=: |
---|
9140 | ;; |
---|
9141 | |
---|
9142 | solaris*) |
---|
9143 | no_undefined_flag=' -z text' |
---|
9144 | if test "$GCC" = yes; then |
---|
9145 | wlarc='${wl}' |
---|
9146 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9147 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
9148 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
9149 | else |
---|
9150 | wlarc='' |
---|
9151 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9152 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
9153 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
9154 | fi |
---|
9155 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9156 | hardcode_shlibpath_var=no |
---|
9157 | case $host_os in |
---|
9158 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
9159 | *) |
---|
9160 | # The compiler driver will combine and reorder linker options, |
---|
9161 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
---|
9162 | # but is careful enough not to reorder. |
---|
9163 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
9164 | if test "$GCC" = yes; then |
---|
9165 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
---|
9166 | else |
---|
9167 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
---|
9168 | fi |
---|
9169 | ;; |
---|
9170 | esac |
---|
9171 | link_all_deplibs=yes |
---|
9172 | ;; |
---|
9173 | |
---|
9174 | sunos4*) |
---|
9175 | if test "x$host_vendor" = xsequent; then |
---|
9176 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
9177 | # files that make .init and .fini sections work. |
---|
9178 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9179 | else |
---|
9180 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
9181 | fi |
---|
9182 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9183 | hardcode_direct=yes |
---|
9184 | hardcode_minus_L=yes |
---|
9185 | hardcode_shlibpath_var=no |
---|
9186 | ;; |
---|
9187 | |
---|
9188 | sysv4) |
---|
9189 | case $host_vendor in |
---|
9190 | sni) |
---|
9191 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9192 | hardcode_direct=yes # is this really true??? |
---|
9193 | ;; |
---|
9194 | siemens) |
---|
9195 | ## LD is ld it makes a PLAMLIB |
---|
9196 | ## CC just makes a GrossModule. |
---|
9197 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
9198 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
9199 | hardcode_direct=no |
---|
9200 | ;; |
---|
9201 | motorola) |
---|
9202 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9203 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
9204 | ;; |
---|
9205 | esac |
---|
9206 | runpath_var='LD_RUN_PATH' |
---|
9207 | hardcode_shlibpath_var=no |
---|
9208 | ;; |
---|
9209 | |
---|
9210 | sysv4.3*) |
---|
9211 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9212 | hardcode_shlibpath_var=no |
---|
9213 | export_dynamic_flag_spec='-Bexport' |
---|
9214 | ;; |
---|
9215 | |
---|
9216 | sysv4*MP*) |
---|
9217 | if test -d /usr/nec; then |
---|
9218 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9219 | hardcode_shlibpath_var=no |
---|
9220 | runpath_var=LD_RUN_PATH |
---|
9221 | hardcode_runpath_var=yes |
---|
9222 | ld_shlibs=yes |
---|
9223 | fi |
---|
9224 | ;; |
---|
9225 | |
---|
9226 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
---|
9227 | no_undefined_flag='${wl}-z,text' |
---|
9228 | archive_cmds_need_lc=no |
---|
9229 | hardcode_shlibpath_var=no |
---|
9230 | runpath_var='LD_RUN_PATH' |
---|
9231 | |
---|
9232 | if test "$GCC" = yes; then |
---|
9233 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9234 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9235 | else |
---|
9236 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9237 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9238 | fi |
---|
9239 | ;; |
---|
9240 | |
---|
9241 | sysv5* | sco3.2v5* | sco5v6*) |
---|
9242 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
9243 | # link with -lc, and that would cause any symbols used from libc to |
---|
9244 | # always be unresolved, which means just about no library would |
---|
9245 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
9246 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
9247 | # as -z defs. |
---|
9248 | no_undefined_flag='${wl}-z,text' |
---|
9249 | allow_undefined_flag='${wl}-z,nodefs' |
---|
9250 | archive_cmds_need_lc=no |
---|
9251 | hardcode_shlibpath_var=no |
---|
9252 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
9253 | hardcode_libdir_separator=':' |
---|
9254 | link_all_deplibs=yes |
---|
9255 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
9256 | runpath_var='LD_RUN_PATH' |
---|
9257 | |
---|
9258 | if test "$GCC" = yes; then |
---|
9259 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9260 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9261 | else |
---|
9262 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9263 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9264 | fi |
---|
9265 | ;; |
---|
9266 | |
---|
9267 | uts4*) |
---|
9268 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9269 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9270 | hardcode_shlibpath_var=no |
---|
9271 | ;; |
---|
9272 | |
---|
9273 | *) |
---|
9274 | ld_shlibs=no |
---|
9275 | ;; |
---|
9276 | esac |
---|
9277 | fi |
---|
9278 | |
---|
9279 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
9280 | echo "${ECHO_T}$ld_shlibs" >&6; } |
---|
9281 | test "$ld_shlibs" = no && can_build_shared=no |
---|
9282 | |
---|
9283 | # |
---|
9284 | # Do we need to explicitly link libc? |
---|
9285 | # |
---|
9286 | case "x$archive_cmds_need_lc" in |
---|
9287 | x|xyes) |
---|
9288 | # Assume -lc should be added |
---|
9289 | archive_cmds_need_lc=yes |
---|
9290 | |
---|
9291 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
9292 | case $archive_cmds in |
---|
9293 | *'~'*) |
---|
9294 | # FIXME: we may have to deal with multi-command sequences. |
---|
9295 | ;; |
---|
9296 | '$CC '*) |
---|
9297 | # Test whether the compiler implicitly links with -lc since on some |
---|
9298 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
9299 | # to ld, don't add -lc before -lgcc. |
---|
9300 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
9301 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
---|
9302 | $rm conftest* |
---|
9303 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9304 | |
---|
9305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9306 | (eval $ac_compile) 2>&5 |
---|
9307 | ac_status=$? |
---|
9308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9309 | (exit $ac_status); } 2>conftest.err; then |
---|
9310 | soname=conftest |
---|
9311 | lib=conftest |
---|
9312 | libobjs=conftest.$ac_objext |
---|
9313 | deplibs= |
---|
9314 | wl=$lt_prog_compiler_wl |
---|
9315 | pic_flag=$lt_prog_compiler_pic |
---|
9316 | compiler_flags=-v |
---|
9317 | linker_flags=-v |
---|
9318 | verstring= |
---|
9319 | output_objdir=. |
---|
9320 | libname=conftest |
---|
9321 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
9322 | allow_undefined_flag= |
---|
9323 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
9324 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
9325 | ac_status=$? |
---|
9326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9327 | (exit $ac_status); } |
---|
9328 | then |
---|
9329 | archive_cmds_need_lc=no |
---|
9330 | else |
---|
9331 | archive_cmds_need_lc=yes |
---|
9332 | fi |
---|
9333 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
9334 | else |
---|
9335 | cat conftest.err 1>&5 |
---|
9336 | fi |
---|
9337 | $rm conftest* |
---|
9338 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
9339 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
---|
9340 | ;; |
---|
9341 | esac |
---|
9342 | fi |
---|
9343 | ;; |
---|
9344 | esac |
---|
9345 | |
---|
9346 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
9347 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
---|
9348 | library_names_spec= |
---|
9349 | libname_spec='lib$name' |
---|
9350 | soname_spec= |
---|
9351 | shrext_cmds=".so" |
---|
9352 | postinstall_cmds= |
---|
9353 | postuninstall_cmds= |
---|
9354 | finish_cmds= |
---|
9355 | finish_eval= |
---|
9356 | shlibpath_var= |
---|
9357 | shlibpath_overrides_runpath=unknown |
---|
9358 | version_type=none |
---|
9359 | dynamic_linker="$host_os ld.so" |
---|
9360 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
9361 | |
---|
9362 | if test "$GCC" = yes; then |
---|
9363 | case $host_os in |
---|
9364 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
---|
9365 | *) lt_awk_arg="/^libraries:/" ;; |
---|
9366 | esac |
---|
9367 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9368 | if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
---|
9369 | # if the path contains ";" then we assume it to be the separator |
---|
9370 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
9371 | # assumed that no part of a normal pathname contains ";" but that should |
---|
9372 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
9373 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9374 | else |
---|
9375 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9376 | fi |
---|
9377 | # Ok, now we have the path, separated by spaces, we can step through it |
---|
9378 | # and add multilib dir if necessary. |
---|
9379 | lt_tmp_lt_search_path_spec= |
---|
9380 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
---|
9381 | for lt_sys_path in $lt_search_path_spec; do |
---|
9382 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
---|
9383 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
---|
9384 | else |
---|
9385 | test -d "$lt_sys_path" && \ |
---|
9386 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
---|
9387 | fi |
---|
9388 | done |
---|
9389 | lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
---|
9390 | BEGIN {RS=" "; FS="/|\n";} { |
---|
9391 | lt_foo=""; |
---|
9392 | lt_count=0; |
---|
9393 | for (lt_i = NF; lt_i > 0; lt_i--) { |
---|
9394 | if ($lt_i != "" && $lt_i != ".") { |
---|
9395 | if ($lt_i == "..") { |
---|
9396 | lt_count++; |
---|
9397 | } else { |
---|
9398 | if (lt_count == 0) { |
---|
9399 | lt_foo="/" $lt_i lt_foo; |
---|
9400 | } else { |
---|
9401 | lt_count--; |
---|
9402 | } |
---|
9403 | } |
---|
9404 | } |
---|
9405 | } |
---|
9406 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
---|
9407 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
---|
9408 | }'` |
---|
9409 | sys_lib_search_path_spec=`echo $lt_search_path_spec` |
---|
9410 | else |
---|
9411 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
9412 | fi |
---|
9413 | need_lib_prefix=unknown |
---|
9414 | hardcode_into_libs=no |
---|
9415 | |
---|
9416 | # when you set need_version to no, make sure it does not cause -set_version |
---|
9417 | # flags to be left without arguments |
---|
9418 | need_version=unknown |
---|
9419 | |
---|
9420 | case $host_os in |
---|
9421 | aix3*) |
---|
9422 | version_type=linux |
---|
9423 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
9424 | shlibpath_var=LIBPATH |
---|
9425 | |
---|
9426 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
9427 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9428 | ;; |
---|
9429 | |
---|
9430 | aix4* | aix5*) |
---|
9431 | version_type=linux |
---|
9432 | need_lib_prefix=no |
---|
9433 | need_version=no |
---|
9434 | hardcode_into_libs=yes |
---|
9435 | if test "$host_cpu" = ia64; then |
---|
9436 | # AIX 5 supports IA64 |
---|
9437 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
9438 | shlibpath_var=LD_LIBRARY_PATH |
---|
9439 | else |
---|
9440 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
9441 | # for dependence libraries. The import file would start with |
---|
9442 | # the line `#! .'. This would cause the generated library to |
---|
9443 | # depend on `.', always an invalid library. This was fixed in |
---|
9444 | # development snapshots of GCC prior to 3.0. |
---|
9445 | case $host_os in |
---|
9446 | aix4 | aix4.[01] | aix4.[01].*) |
---|
9447 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
9448 | echo ' yes ' |
---|
9449 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
9450 | : |
---|
9451 | else |
---|
9452 | can_build_shared=no |
---|
9453 | fi |
---|
9454 | ;; |
---|
9455 | esac |
---|
9456 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
9457 | # soname into executable. Probably we can add versioning support to |
---|
9458 | # collect2, so additional links can be useful in future. |
---|
9459 | if test "$aix_use_runtimelinking" = yes; then |
---|
9460 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
9461 | # instead of lib<name>.a to let people know that these are not |
---|
9462 | # typical AIX shared libraries. |
---|
9463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9464 | else |
---|
9465 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
9466 | # and later when we are not doing run time linking. |
---|
9467 | library_names_spec='${libname}${release}.a $libname.a' |
---|
9468 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9469 | fi |
---|
9470 | shlibpath_var=LIBPATH |
---|
9471 | fi |
---|
9472 | ;; |
---|
9473 | |
---|
9474 | amigaos*) |
---|
9475 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
9476 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
9477 | 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' |
---|
9478 | ;; |
---|
9479 | |
---|
9480 | beos*) |
---|
9481 | library_names_spec='${libname}${shared_ext}' |
---|
9482 | dynamic_linker="$host_os ld.so" |
---|
9483 | shlibpath_var=LIBRARY_PATH |
---|
9484 | ;; |
---|
9485 | |
---|
9486 | bsdi[45]*) |
---|
9487 | version_type=linux |
---|
9488 | need_version=no |
---|
9489 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9490 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9491 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
9492 | shlibpath_var=LD_LIBRARY_PATH |
---|
9493 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
9494 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
9495 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
9496 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
9497 | # libtool to hard-code these into programs |
---|
9498 | ;; |
---|
9499 | |
---|
9500 | cygwin* | mingw* | pw32*) |
---|
9501 | version_type=windows |
---|
9502 | shrext_cmds=".dll" |
---|
9503 | need_version=no |
---|
9504 | need_lib_prefix=no |
---|
9505 | |
---|
9506 | case $GCC,$host_os in |
---|
9507 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
9508 | library_names_spec='$libname.dll.a' |
---|
9509 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
9510 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
9511 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
9512 | dldir=$destdir/`dirname \$dlpath`~ |
---|
9513 | test -d \$dldir || mkdir -p \$dldir~ |
---|
9514 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
9515 | chmod a+x \$dldir/$dlname' |
---|
9516 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
9517 | dlpath=$dir/\$dldll~ |
---|
9518 | $rm \$dlpath' |
---|
9519 | shlibpath_overrides_runpath=yes |
---|
9520 | |
---|
9521 | case $host_os in |
---|
9522 | cygwin*) |
---|
9523 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
9524 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9525 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
9526 | ;; |
---|
9527 | mingw*) |
---|
9528 | # MinGW DLLs use traditional 'lib' prefix |
---|
9529 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9530 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9531 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
9532 | # It is most probably a Windows format PATH printed by |
---|
9533 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
9534 | # path with ; separators, and with drive letters. We can handle the |
---|
9535 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
9536 | # especially as we might pass files found there to a mingw objdump, |
---|
9537 | # which wouldn't understand a cygwinified path. Ahh. |
---|
9538 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9539 | else |
---|
9540 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9541 | fi |
---|
9542 | ;; |
---|
9543 | pw32*) |
---|
9544 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
9545 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9546 | ;; |
---|
9547 | esac |
---|
9548 | ;; |
---|
9549 | |
---|
9550 | *) |
---|
9551 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
9552 | ;; |
---|
9553 | esac |
---|
9554 | dynamic_linker='Win32 ld.exe' |
---|
9555 | # FIXME: first we should search . and the directory the executable is in |
---|
9556 | shlibpath_var=PATH |
---|
9557 | ;; |
---|
9558 | |
---|
9559 | darwin* | rhapsody*) |
---|
9560 | dynamic_linker="$host_os dyld" |
---|
9561 | version_type=darwin |
---|
9562 | need_lib_prefix=no |
---|
9563 | need_version=no |
---|
9564 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
9565 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
9566 | shlibpath_overrides_runpath=yes |
---|
9567 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
9568 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
9569 | |
---|
9570 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
---|
9571 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
9572 | ;; |
---|
9573 | |
---|
9574 | dgux*) |
---|
9575 | version_type=linux |
---|
9576 | need_lib_prefix=no |
---|
9577 | need_version=no |
---|
9578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
9579 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9580 | shlibpath_var=LD_LIBRARY_PATH |
---|
9581 | ;; |
---|
9582 | |
---|
9583 | freebsd1*) |
---|
9584 | dynamic_linker=no |
---|
9585 | ;; |
---|
9586 | |
---|
9587 | freebsd* | dragonfly*) |
---|
9588 | # DragonFly does not have aout. When/if they implement a new |
---|
9589 | # versioning mechanism, adjust this. |
---|
9590 | if test -x /usr/bin/objformat; then |
---|
9591 | objformat=`/usr/bin/objformat` |
---|
9592 | else |
---|
9593 | case $host_os in |
---|
9594 | freebsd[123]*) objformat=aout ;; |
---|
9595 | *) objformat=elf ;; |
---|
9596 | esac |
---|
9597 | fi |
---|
9598 | version_type=freebsd-$objformat |
---|
9599 | case $version_type in |
---|
9600 | freebsd-elf*) |
---|
9601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9602 | need_version=no |
---|
9603 | need_lib_prefix=no |
---|
9604 | ;; |
---|
9605 | freebsd-*) |
---|
9606 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
9607 | need_version=yes |
---|
9608 | ;; |
---|
9609 | esac |
---|
9610 | shlibpath_var=LD_LIBRARY_PATH |
---|
9611 | case $host_os in |
---|
9612 | freebsd2*) |
---|
9613 | shlibpath_overrides_runpath=yes |
---|
9614 | ;; |
---|
9615 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
9616 | shlibpath_overrides_runpath=yes |
---|
9617 | hardcode_into_libs=yes |
---|
9618 | ;; |
---|
9619 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
9620 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
9621 | shlibpath_overrides_runpath=no |
---|
9622 | hardcode_into_libs=yes |
---|
9623 | ;; |
---|
9624 | *) # from 4.6 on, and DragonFly |
---|
9625 | shlibpath_overrides_runpath=yes |
---|
9626 | hardcode_into_libs=yes |
---|
9627 | ;; |
---|
9628 | esac |
---|
9629 | ;; |
---|
9630 | |
---|
9631 | gnu*) |
---|
9632 | version_type=linux |
---|
9633 | need_lib_prefix=no |
---|
9634 | need_version=no |
---|
9635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
9636 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9637 | shlibpath_var=LD_LIBRARY_PATH |
---|
9638 | hardcode_into_libs=yes |
---|
9639 | ;; |
---|
9640 | |
---|
9641 | hpux9* | hpux10* | hpux11*) |
---|
9642 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
9643 | # link against other versions. |
---|
9644 | version_type=sunos |
---|
9645 | need_lib_prefix=no |
---|
9646 | need_version=no |
---|
9647 | case $host_cpu in |
---|
9648 | ia64*) |
---|
9649 | shrext_cmds='.so' |
---|
9650 | hardcode_into_libs=yes |
---|
9651 | dynamic_linker="$host_os dld.so" |
---|
9652 | shlibpath_var=LD_LIBRARY_PATH |
---|
9653 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9655 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9656 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
9657 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
9658 | else |
---|
9659 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
9660 | fi |
---|
9661 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9662 | ;; |
---|
9663 | hppa*64*) |
---|
9664 | shrext_cmds='.sl' |
---|
9665 | hardcode_into_libs=yes |
---|
9666 | dynamic_linker="$host_os dld.sl" |
---|
9667 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
9668 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9669 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9670 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9671 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
9672 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9673 | ;; |
---|
9674 | *) |
---|
9675 | shrext_cmds='.sl' |
---|
9676 | dynamic_linker="$host_os dld.sl" |
---|
9677 | shlibpath_var=SHLIB_PATH |
---|
9678 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
9679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9680 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9681 | ;; |
---|
9682 | esac |
---|
9683 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
9684 | postinstall_cmds='chmod 555 $lib' |
---|
9685 | ;; |
---|
9686 | |
---|
9687 | interix[3-9]*) |
---|
9688 | version_type=linux |
---|
9689 | need_lib_prefix=no |
---|
9690 | need_version=no |
---|
9691 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9692 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9693 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
9694 | shlibpath_var=LD_LIBRARY_PATH |
---|
9695 | shlibpath_overrides_runpath=no |
---|
9696 | hardcode_into_libs=yes |
---|
9697 | ;; |
---|
9698 | |
---|
9699 | irix5* | irix6* | nonstopux*) |
---|
9700 | case $host_os in |
---|
9701 | nonstopux*) version_type=nonstopux ;; |
---|
9702 | *) |
---|
9703 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
9704 | version_type=linux |
---|
9705 | else |
---|
9706 | version_type=irix |
---|
9707 | fi ;; |
---|
9708 | esac |
---|
9709 | need_lib_prefix=no |
---|
9710 | need_version=no |
---|
9711 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9713 | case $host_os in |
---|
9714 | irix5* | nonstopux*) |
---|
9715 | libsuff= shlibsuff= |
---|
9716 | ;; |
---|
9717 | *) |
---|
9718 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
9719 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
9720 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
9721 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
9722 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
9723 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
9724 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
9725 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
9726 | esac |
---|
9727 | ;; |
---|
9728 | esac |
---|
9729 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
9730 | shlibpath_overrides_runpath=no |
---|
9731 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
9732 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
9733 | hardcode_into_libs=yes |
---|
9734 | ;; |
---|
9735 | |
---|
9736 | # No shared lib support for Linux oldld, aout, or coff. |
---|
9737 | linux*oldld* | linux*aout* | linux*coff*) |
---|
9738 | dynamic_linker=no |
---|
9739 | ;; |
---|
9740 | |
---|
9741 | # This must be Linux ELF. |
---|
9742 | linux* | k*bsd*-gnu) |
---|
9743 | version_type=linux |
---|
9744 | need_lib_prefix=no |
---|
9745 | need_version=no |
---|
9746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9747 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9748 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
9749 | shlibpath_var=LD_LIBRARY_PATH |
---|
9750 | shlibpath_overrides_runpath=no |
---|
9751 | # This implies no fast_install, which is unacceptable. |
---|
9752 | # Some rework will be needed to allow for fast_install |
---|
9753 | # before this can be enabled. |
---|
9754 | hardcode_into_libs=yes |
---|
9755 | |
---|
9756 | # Append ld.so.conf contents to the search path |
---|
9757 | if test -f /etc/ld.so.conf; then |
---|
9758 | 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' ' '` |
---|
9759 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
9760 | fi |
---|
9761 | |
---|
9762 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
9763 | # powerpc, because MkLinux only supported shared libraries with the |
---|
9764 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
9765 | # most powerpc-linux boxes support dynamic linking these days and |
---|
9766 | # people can always --disable-shared, the test was removed, and we |
---|
9767 | # assume the GNU/Linux dynamic linker is in use. |
---|
9768 | dynamic_linker='GNU/Linux ld.so' |
---|
9769 | ;; |
---|
9770 | |
---|
9771 | netbsd*) |
---|
9772 | version_type=sunos |
---|
9773 | need_lib_prefix=no |
---|
9774 | need_version=no |
---|
9775 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9776 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9777 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9778 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
9779 | else |
---|
9780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9781 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9782 | dynamic_linker='NetBSD ld.elf_so' |
---|
9783 | fi |
---|
9784 | shlibpath_var=LD_LIBRARY_PATH |
---|
9785 | shlibpath_overrides_runpath=yes |
---|
9786 | hardcode_into_libs=yes |
---|
9787 | ;; |
---|
9788 | |
---|
9789 | newsos6) |
---|
9790 | version_type=linux |
---|
9791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9792 | shlibpath_var=LD_LIBRARY_PATH |
---|
9793 | shlibpath_overrides_runpath=yes |
---|
9794 | ;; |
---|
9795 | |
---|
9796 | nto-qnx*) |
---|
9797 | version_type=linux |
---|
9798 | need_lib_prefix=no |
---|
9799 | need_version=no |
---|
9800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9801 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9802 | shlibpath_var=LD_LIBRARY_PATH |
---|
9803 | shlibpath_overrides_runpath=yes |
---|
9804 | ;; |
---|
9805 | |
---|
9806 | openbsd*) |
---|
9807 | version_type=sunos |
---|
9808 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
9809 | need_lib_prefix=no |
---|
9810 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
9811 | case $host_os in |
---|
9812 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
9813 | *) need_version=no ;; |
---|
9814 | esac |
---|
9815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9816 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9817 | shlibpath_var=LD_LIBRARY_PATH |
---|
9818 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9819 | case $host_os in |
---|
9820 | openbsd2.[89] | openbsd2.[89].*) |
---|
9821 | shlibpath_overrides_runpath=no |
---|
9822 | ;; |
---|
9823 | *) |
---|
9824 | shlibpath_overrides_runpath=yes |
---|
9825 | ;; |
---|
9826 | esac |
---|
9827 | else |
---|
9828 | shlibpath_overrides_runpath=yes |
---|
9829 | fi |
---|
9830 | ;; |
---|
9831 | |
---|
9832 | os2*) |
---|
9833 | libname_spec='$name' |
---|
9834 | shrext_cmds=".dll" |
---|
9835 | need_lib_prefix=no |
---|
9836 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
9837 | dynamic_linker='OS/2 ld.exe' |
---|
9838 | shlibpath_var=LIBPATH |
---|
9839 | ;; |
---|
9840 | |
---|
9841 | osf3* | osf4* | osf5*) |
---|
9842 | version_type=osf |
---|
9843 | need_lib_prefix=no |
---|
9844 | need_version=no |
---|
9845 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9847 | shlibpath_var=LD_LIBRARY_PATH |
---|
9848 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
9849 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
9850 | ;; |
---|
9851 | |
---|
9852 | rdos*) |
---|
9853 | dynamic_linker=no |
---|
9854 | ;; |
---|
9855 | |
---|
9856 | solaris*) |
---|
9857 | version_type=linux |
---|
9858 | need_lib_prefix=no |
---|
9859 | need_version=no |
---|
9860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9861 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9862 | shlibpath_var=LD_LIBRARY_PATH |
---|
9863 | shlibpath_overrides_runpath=yes |
---|
9864 | hardcode_into_libs=yes |
---|
9865 | # ldd complains unless libraries are executable |
---|
9866 | postinstall_cmds='chmod +x $lib' |
---|
9867 | ;; |
---|
9868 | |
---|
9869 | sunos4*) |
---|
9870 | version_type=sunos |
---|
9871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9872 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
9873 | shlibpath_var=LD_LIBRARY_PATH |
---|
9874 | shlibpath_overrides_runpath=yes |
---|
9875 | if test "$with_gnu_ld" = yes; then |
---|
9876 | need_lib_prefix=no |
---|
9877 | fi |
---|
9878 | need_version=yes |
---|
9879 | ;; |
---|
9880 | |
---|
9881 | sysv4 | sysv4.3*) |
---|
9882 | version_type=linux |
---|
9883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9884 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9885 | shlibpath_var=LD_LIBRARY_PATH |
---|
9886 | case $host_vendor in |
---|
9887 | sni) |
---|
9888 | shlibpath_overrides_runpath=no |
---|
9889 | need_lib_prefix=no |
---|
9890 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
9891 | runpath_var=LD_RUN_PATH |
---|
9892 | ;; |
---|
9893 | siemens) |
---|
9894 | need_lib_prefix=no |
---|
9895 | ;; |
---|
9896 | motorola) |
---|
9897 | need_lib_prefix=no |
---|
9898 | need_version=no |
---|
9899 | shlibpath_overrides_runpath=no |
---|
9900 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
9901 | ;; |
---|
9902 | esac |
---|
9903 | ;; |
---|
9904 | |
---|
9905 | sysv4*MP*) |
---|
9906 | if test -d /usr/nec ;then |
---|
9907 | version_type=linux |
---|
9908 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
9909 | soname_spec='$libname${shared_ext}.$major' |
---|
9910 | shlibpath_var=LD_LIBRARY_PATH |
---|
9911 | fi |
---|
9912 | ;; |
---|
9913 | |
---|
9914 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
9915 | version_type=freebsd-elf |
---|
9916 | need_lib_prefix=no |
---|
9917 | need_version=no |
---|
9918 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9919 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9920 | shlibpath_var=LD_LIBRARY_PATH |
---|
9921 | hardcode_into_libs=yes |
---|
9922 | if test "$with_gnu_ld" = yes; then |
---|
9923 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
9924 | shlibpath_overrides_runpath=no |
---|
9925 | else |
---|
9926 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
9927 | shlibpath_overrides_runpath=yes |
---|
9928 | case $host_os in |
---|
9929 | sco3.2v5*) |
---|
9930 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
9931 | ;; |
---|
9932 | esac |
---|
9933 | fi |
---|
9934 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
9935 | ;; |
---|
9936 | |
---|
9937 | uts4*) |
---|
9938 | version_type=linux |
---|
9939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9940 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9941 | shlibpath_var=LD_LIBRARY_PATH |
---|
9942 | ;; |
---|
9943 | |
---|
9944 | *) |
---|
9945 | dynamic_linker=no |
---|
9946 | ;; |
---|
9947 | esac |
---|
9948 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
9949 | echo "${ECHO_T}$dynamic_linker" >&6; } |
---|
9950 | test "$dynamic_linker" = no && can_build_shared=no |
---|
9951 | |
---|
9952 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
9953 | if test "$GCC" = yes; then |
---|
9954 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
9955 | fi |
---|
9956 | |
---|
9957 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
9958 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
---|
9959 | hardcode_action= |
---|
9960 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
9961 | test -n "$runpath_var" || \ |
---|
9962 | test "X$hardcode_automatic" = "Xyes" ; then |
---|
9963 | |
---|
9964 | # We can hardcode non-existant directories. |
---|
9965 | if test "$hardcode_direct" != no && |
---|
9966 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
9967 | # have to relink, otherwise we might link with an installed library |
---|
9968 | # when we should be linking with a yet-to-be-installed one |
---|
9969 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
9970 | test "$hardcode_minus_L" != no; then |
---|
9971 | # Linking always hardcodes the temporary library directory. |
---|
9972 | hardcode_action=relink |
---|
9973 | else |
---|
9974 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
9975 | hardcode_action=immediate |
---|
9976 | fi |
---|
9977 | else |
---|
9978 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
9979 | # directories. |
---|
9980 | hardcode_action=unsupported |
---|
9981 | fi |
---|
9982 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
---|
9983 | echo "${ECHO_T}$hardcode_action" >&6; } |
---|
9984 | |
---|
9985 | if test "$hardcode_action" = relink; then |
---|
9986 | # Fast installation is not supported |
---|
9987 | enable_fast_install=no |
---|
9988 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
9989 | test "$enable_shared" = no; then |
---|
9990 | # Fast installation is not necessary |
---|
9991 | enable_fast_install=needless |
---|
9992 | fi |
---|
9993 | |
---|
9994 | striplib= |
---|
9995 | old_striplib= |
---|
9996 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
9997 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
---|
9998 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
9999 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
10000 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
10001 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
10002 | echo "${ECHO_T}yes" >&6; } |
---|
10003 | else |
---|
10004 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
10005 | case $host_os in |
---|
10006 | darwin*) |
---|
10007 | if test -n "$STRIP" ; then |
---|
10008 | striplib="$STRIP -x" |
---|
10009 | old_striplib="$STRIP -S" |
---|
10010 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
10011 | echo "${ECHO_T}yes" >&6; } |
---|
10012 | else |
---|
10013 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
10014 | echo "${ECHO_T}no" >&6; } |
---|
10015 | fi |
---|
10016 | ;; |
---|
10017 | *) |
---|
10018 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
10019 | echo "${ECHO_T}no" >&6; } |
---|
10020 | ;; |
---|
10021 | esac |
---|
10022 | fi |
---|
10023 | |
---|
10024 | if test "x$enable_dlopen" != xyes; then |
---|
10025 | enable_dlopen=unknown |
---|
10026 | enable_dlopen_self=unknown |
---|
10027 | enable_dlopen_self_static=unknown |
---|
10028 | else |
---|
10029 | lt_cv_dlopen=no |
---|
10030 | lt_cv_dlopen_libs= |
---|
10031 | |
---|
10032 | case $host_os in |
---|
10033 | beos*) |
---|
10034 | lt_cv_dlopen="load_add_on" |
---|
10035 | lt_cv_dlopen_libs= |
---|
10036 | lt_cv_dlopen_self=yes |
---|
10037 | ;; |
---|
10038 | |
---|
10039 | mingw* | pw32*) |
---|
10040 | lt_cv_dlopen="LoadLibrary" |
---|
10041 | lt_cv_dlopen_libs= |
---|
10042 | ;; |
---|
10043 | |
---|
10044 | cygwin*) |
---|
10045 | lt_cv_dlopen="dlopen" |
---|
10046 | lt_cv_dlopen_libs= |
---|
10047 | ;; |
---|
10048 | |
---|
10049 | darwin*) |
---|
10050 | # if libdl is installed we need to link against it |
---|
10051 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
10052 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
10053 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
10054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10055 | else |
---|
10056 | ac_check_lib_save_LIBS=$LIBS |
---|
10057 | LIBS="-ldl $LIBS" |
---|
10058 | cat >conftest.$ac_ext <<_ACEOF |
---|
10059 | /* confdefs.h. */ |
---|
10060 | _ACEOF |
---|
10061 | cat confdefs.h >>conftest.$ac_ext |
---|
10062 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10063 | /* end confdefs.h. */ |
---|
10064 | |
---|
10065 | /* Override any GCC internal prototype to avoid an error. |
---|
10066 | Use char because int might match the return type of a GCC |
---|
10067 | builtin and then its argument prototype would still apply. */ |
---|
10068 | #ifdef __cplusplus |
---|
10069 | extern "C" |
---|
10070 | #endif |
---|
10071 | char dlopen (); |
---|
10072 | int |
---|
10073 | main () |
---|
10074 | { |
---|
10075 | return dlopen (); |
---|
10076 | ; |
---|
10077 | return 0; |
---|
10078 | } |
---|
10079 | _ACEOF |
---|
10080 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10081 | if { (ac_try="$ac_link" |
---|
10082 | case "(($ac_try" in |
---|
10083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10084 | *) ac_try_echo=$ac_try;; |
---|
10085 | esac |
---|
10086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10087 | (eval "$ac_link") 2>conftest.er1 |
---|
10088 | ac_status=$? |
---|
10089 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10090 | rm -f conftest.er1 |
---|
10091 | cat conftest.err >&5 |
---|
10092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10093 | (exit $ac_status); } && { |
---|
10094 | test -z "$ac_c_werror_flag" || |
---|
10095 | test ! -s conftest.err |
---|
10096 | } && test -s conftest$ac_exeext && |
---|
10097 | $as_test_x conftest$ac_exeext; then |
---|
10098 | ac_cv_lib_dl_dlopen=yes |
---|
10099 | else |
---|
10100 | echo "$as_me: failed program was:" >&5 |
---|
10101 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10102 | |
---|
10103 | ac_cv_lib_dl_dlopen=no |
---|
10104 | fi |
---|
10105 | |
---|
10106 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10107 | conftest$ac_exeext conftest.$ac_ext |
---|
10108 | LIBS=$ac_check_lib_save_LIBS |
---|
10109 | fi |
---|
10110 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10111 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
10112 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
10113 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10114 | else |
---|
10115 | |
---|
10116 | lt_cv_dlopen="dyld" |
---|
10117 | lt_cv_dlopen_libs= |
---|
10118 | lt_cv_dlopen_self=yes |
---|
10119 | |
---|
10120 | fi |
---|
10121 | |
---|
10122 | ;; |
---|
10123 | |
---|
10124 | *) |
---|
10125 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
10126 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
---|
10127 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
10128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10129 | else |
---|
10130 | cat >conftest.$ac_ext <<_ACEOF |
---|
10131 | /* confdefs.h. */ |
---|
10132 | _ACEOF |
---|
10133 | cat confdefs.h >>conftest.$ac_ext |
---|
10134 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10135 | /* end confdefs.h. */ |
---|
10136 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
10137 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10138 | #define shl_load innocuous_shl_load |
---|
10139 | |
---|
10140 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10141 | which can conflict with char shl_load (); below. |
---|
10142 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10143 | <limits.h> exists even on freestanding compilers. */ |
---|
10144 | |
---|
10145 | #ifdef __STDC__ |
---|
10146 | # include <limits.h> |
---|
10147 | #else |
---|
10148 | # include <assert.h> |
---|
10149 | #endif |
---|
10150 | |
---|
10151 | #undef shl_load |
---|
10152 | |
---|
10153 | /* Override any GCC internal prototype to avoid an error. |
---|
10154 | Use char because int might match the return type of a GCC |
---|
10155 | builtin and then its argument prototype would still apply. */ |
---|
10156 | #ifdef __cplusplus |
---|
10157 | extern "C" |
---|
10158 | #endif |
---|
10159 | char shl_load (); |
---|
10160 | /* The GNU C library defines this for functions which it implements |
---|
10161 | to always fail with ENOSYS. Some functions are actually named |
---|
10162 | something starting with __ and the normal name is an alias. */ |
---|
10163 | #if defined __stub_shl_load || defined __stub___shl_load |
---|
10164 | choke me |
---|
10165 | #endif |
---|
10166 | |
---|
10167 | int |
---|
10168 | main () |
---|
10169 | { |
---|
10170 | return shl_load (); |
---|
10171 | ; |
---|
10172 | return 0; |
---|
10173 | } |
---|
10174 | _ACEOF |
---|
10175 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10176 | if { (ac_try="$ac_link" |
---|
10177 | case "(($ac_try" in |
---|
10178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10179 | *) ac_try_echo=$ac_try;; |
---|
10180 | esac |
---|
10181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10182 | (eval "$ac_link") 2>conftest.er1 |
---|
10183 | ac_status=$? |
---|
10184 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10185 | rm -f conftest.er1 |
---|
10186 | cat conftest.err >&5 |
---|
10187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10188 | (exit $ac_status); } && { |
---|
10189 | test -z "$ac_c_werror_flag" || |
---|
10190 | test ! -s conftest.err |
---|
10191 | } && test -s conftest$ac_exeext && |
---|
10192 | $as_test_x conftest$ac_exeext; then |
---|
10193 | ac_cv_func_shl_load=yes |
---|
10194 | else |
---|
10195 | echo "$as_me: failed program was:" >&5 |
---|
10196 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10197 | |
---|
10198 | ac_cv_func_shl_load=no |
---|
10199 | fi |
---|
10200 | |
---|
10201 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10202 | conftest$ac_exeext conftest.$ac_ext |
---|
10203 | fi |
---|
10204 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
10205 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
---|
10206 | if test $ac_cv_func_shl_load = yes; then |
---|
10207 | lt_cv_dlopen="shl_load" |
---|
10208 | else |
---|
10209 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
10210 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
---|
10211 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
10212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10213 | else |
---|
10214 | ac_check_lib_save_LIBS=$LIBS |
---|
10215 | LIBS="-ldld $LIBS" |
---|
10216 | cat >conftest.$ac_ext <<_ACEOF |
---|
10217 | /* confdefs.h. */ |
---|
10218 | _ACEOF |
---|
10219 | cat confdefs.h >>conftest.$ac_ext |
---|
10220 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10221 | /* end confdefs.h. */ |
---|
10222 | |
---|
10223 | /* Override any GCC internal prototype to avoid an error. |
---|
10224 | Use char because int might match the return type of a GCC |
---|
10225 | builtin and then its argument prototype would still apply. */ |
---|
10226 | #ifdef __cplusplus |
---|
10227 | extern "C" |
---|
10228 | #endif |
---|
10229 | char shl_load (); |
---|
10230 | int |
---|
10231 | main () |
---|
10232 | { |
---|
10233 | return shl_load (); |
---|
10234 | ; |
---|
10235 | return 0; |
---|
10236 | } |
---|
10237 | _ACEOF |
---|
10238 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10239 | if { (ac_try="$ac_link" |
---|
10240 | case "(($ac_try" in |
---|
10241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10242 | *) ac_try_echo=$ac_try;; |
---|
10243 | esac |
---|
10244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10245 | (eval "$ac_link") 2>conftest.er1 |
---|
10246 | ac_status=$? |
---|
10247 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10248 | rm -f conftest.er1 |
---|
10249 | cat conftest.err >&5 |
---|
10250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10251 | (exit $ac_status); } && { |
---|
10252 | test -z "$ac_c_werror_flag" || |
---|
10253 | test ! -s conftest.err |
---|
10254 | } && test -s conftest$ac_exeext && |
---|
10255 | $as_test_x conftest$ac_exeext; then |
---|
10256 | ac_cv_lib_dld_shl_load=yes |
---|
10257 | else |
---|
10258 | echo "$as_me: failed program was:" >&5 |
---|
10259 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10260 | |
---|
10261 | ac_cv_lib_dld_shl_load=no |
---|
10262 | fi |
---|
10263 | |
---|
10264 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10265 | conftest$ac_exeext conftest.$ac_ext |
---|
10266 | LIBS=$ac_check_lib_save_LIBS |
---|
10267 | fi |
---|
10268 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
10269 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
---|
10270 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
10271 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
10272 | else |
---|
10273 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
10274 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
---|
10275 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
10276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10277 | else |
---|
10278 | cat >conftest.$ac_ext <<_ACEOF |
---|
10279 | /* confdefs.h. */ |
---|
10280 | _ACEOF |
---|
10281 | cat confdefs.h >>conftest.$ac_ext |
---|
10282 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10283 | /* end confdefs.h. */ |
---|
10284 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
10285 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10286 | #define dlopen innocuous_dlopen |
---|
10287 | |
---|
10288 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10289 | which can conflict with char dlopen (); below. |
---|
10290 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10291 | <limits.h> exists even on freestanding compilers. */ |
---|
10292 | |
---|
10293 | #ifdef __STDC__ |
---|
10294 | # include <limits.h> |
---|
10295 | #else |
---|
10296 | # include <assert.h> |
---|
10297 | #endif |
---|
10298 | |
---|
10299 | #undef dlopen |
---|
10300 | |
---|
10301 | /* Override any GCC internal prototype to avoid an error. |
---|
10302 | Use char because int might match the return type of a GCC |
---|
10303 | builtin and then its argument prototype would still apply. */ |
---|
10304 | #ifdef __cplusplus |
---|
10305 | extern "C" |
---|
10306 | #endif |
---|
10307 | char dlopen (); |
---|
10308 | /* The GNU C library defines this for functions which it implements |
---|
10309 | to always fail with ENOSYS. Some functions are actually named |
---|
10310 | something starting with __ and the normal name is an alias. */ |
---|
10311 | #if defined __stub_dlopen || defined __stub___dlopen |
---|
10312 | choke me |
---|
10313 | #endif |
---|
10314 | |
---|
10315 | int |
---|
10316 | main () |
---|
10317 | { |
---|
10318 | return dlopen (); |
---|
10319 | ; |
---|
10320 | return 0; |
---|
10321 | } |
---|
10322 | _ACEOF |
---|
10323 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10324 | if { (ac_try="$ac_link" |
---|
10325 | case "(($ac_try" in |
---|
10326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10327 | *) ac_try_echo=$ac_try;; |
---|
10328 | esac |
---|
10329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10330 | (eval "$ac_link") 2>conftest.er1 |
---|
10331 | ac_status=$? |
---|
10332 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10333 | rm -f conftest.er1 |
---|
10334 | cat conftest.err >&5 |
---|
10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10336 | (exit $ac_status); } && { |
---|
10337 | test -z "$ac_c_werror_flag" || |
---|
10338 | test ! -s conftest.err |
---|
10339 | } && test -s conftest$ac_exeext && |
---|
10340 | $as_test_x conftest$ac_exeext; then |
---|
10341 | ac_cv_func_dlopen=yes |
---|
10342 | else |
---|
10343 | echo "$as_me: failed program was:" >&5 |
---|
10344 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10345 | |
---|
10346 | ac_cv_func_dlopen=no |
---|
10347 | fi |
---|
10348 | |
---|
10349 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10350 | conftest$ac_exeext conftest.$ac_ext |
---|
10351 | fi |
---|
10352 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
10353 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
---|
10354 | if test $ac_cv_func_dlopen = yes; then |
---|
10355 | lt_cv_dlopen="dlopen" |
---|
10356 | else |
---|
10357 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
10358 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
10359 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
10360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10361 | else |
---|
10362 | ac_check_lib_save_LIBS=$LIBS |
---|
10363 | LIBS="-ldl $LIBS" |
---|
10364 | cat >conftest.$ac_ext <<_ACEOF |
---|
10365 | /* confdefs.h. */ |
---|
10366 | _ACEOF |
---|
10367 | cat confdefs.h >>conftest.$ac_ext |
---|
10368 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10369 | /* end confdefs.h. */ |
---|
10370 | |
---|
10371 | /* Override any GCC internal prototype to avoid an error. |
---|
10372 | Use char because int might match the return type of a GCC |
---|
10373 | builtin and then its argument prototype would still apply. */ |
---|
10374 | #ifdef __cplusplus |
---|
10375 | extern "C" |
---|
10376 | #endif |
---|
10377 | char dlopen (); |
---|
10378 | int |
---|
10379 | main () |
---|
10380 | { |
---|
10381 | return dlopen (); |
---|
10382 | ; |
---|
10383 | return 0; |
---|
10384 | } |
---|
10385 | _ACEOF |
---|
10386 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10387 | if { (ac_try="$ac_link" |
---|
10388 | case "(($ac_try" in |
---|
10389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10390 | *) ac_try_echo=$ac_try;; |
---|
10391 | esac |
---|
10392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10393 | (eval "$ac_link") 2>conftest.er1 |
---|
10394 | ac_status=$? |
---|
10395 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10396 | rm -f conftest.er1 |
---|
10397 | cat conftest.err >&5 |
---|
10398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10399 | (exit $ac_status); } && { |
---|
10400 | test -z "$ac_c_werror_flag" || |
---|
10401 | test ! -s conftest.err |
---|
10402 | } && test -s conftest$ac_exeext && |
---|
10403 | $as_test_x conftest$ac_exeext; then |
---|
10404 | ac_cv_lib_dl_dlopen=yes |
---|
10405 | else |
---|
10406 | echo "$as_me: failed program was:" >&5 |
---|
10407 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10408 | |
---|
10409 | ac_cv_lib_dl_dlopen=no |
---|
10410 | fi |
---|
10411 | |
---|
10412 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10413 | conftest$ac_exeext conftest.$ac_ext |
---|
10414 | LIBS=$ac_check_lib_save_LIBS |
---|
10415 | fi |
---|
10416 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10417 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
10418 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
10419 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10420 | else |
---|
10421 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
10422 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
---|
10423 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
10424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10425 | else |
---|
10426 | ac_check_lib_save_LIBS=$LIBS |
---|
10427 | LIBS="-lsvld $LIBS" |
---|
10428 | cat >conftest.$ac_ext <<_ACEOF |
---|
10429 | /* confdefs.h. */ |
---|
10430 | _ACEOF |
---|
10431 | cat confdefs.h >>conftest.$ac_ext |
---|
10432 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10433 | /* end confdefs.h. */ |
---|
10434 | |
---|
10435 | /* Override any GCC internal prototype to avoid an error. |
---|
10436 | Use char because int might match the return type of a GCC |
---|
10437 | builtin and then its argument prototype would still apply. */ |
---|
10438 | #ifdef __cplusplus |
---|
10439 | extern "C" |
---|
10440 | #endif |
---|
10441 | char dlopen (); |
---|
10442 | int |
---|
10443 | main () |
---|
10444 | { |
---|
10445 | return dlopen (); |
---|
10446 | ; |
---|
10447 | return 0; |
---|
10448 | } |
---|
10449 | _ACEOF |
---|
10450 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10451 | if { (ac_try="$ac_link" |
---|
10452 | case "(($ac_try" in |
---|
10453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10454 | *) ac_try_echo=$ac_try;; |
---|
10455 | esac |
---|
10456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10457 | (eval "$ac_link") 2>conftest.er1 |
---|
10458 | ac_status=$? |
---|
10459 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10460 | rm -f conftest.er1 |
---|
10461 | cat conftest.err >&5 |
---|
10462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10463 | (exit $ac_status); } && { |
---|
10464 | test -z "$ac_c_werror_flag" || |
---|
10465 | test ! -s conftest.err |
---|
10466 | } && test -s conftest$ac_exeext && |
---|
10467 | $as_test_x conftest$ac_exeext; then |
---|
10468 | ac_cv_lib_svld_dlopen=yes |
---|
10469 | else |
---|
10470 | echo "$as_me: failed program was:" >&5 |
---|
10471 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10472 | |
---|
10473 | ac_cv_lib_svld_dlopen=no |
---|
10474 | fi |
---|
10475 | |
---|
10476 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10477 | conftest$ac_exeext conftest.$ac_ext |
---|
10478 | LIBS=$ac_check_lib_save_LIBS |
---|
10479 | fi |
---|
10480 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
10481 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
---|
10482 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
10483 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
10484 | else |
---|
10485 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
10486 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
---|
10487 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
10488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10489 | else |
---|
10490 | ac_check_lib_save_LIBS=$LIBS |
---|
10491 | LIBS="-ldld $LIBS" |
---|
10492 | cat >conftest.$ac_ext <<_ACEOF |
---|
10493 | /* confdefs.h. */ |
---|
10494 | _ACEOF |
---|
10495 | cat confdefs.h >>conftest.$ac_ext |
---|
10496 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10497 | /* end confdefs.h. */ |
---|
10498 | |
---|
10499 | /* Override any GCC internal prototype to avoid an error. |
---|
10500 | Use char because int might match the return type of a GCC |
---|
10501 | builtin and then its argument prototype would still apply. */ |
---|
10502 | #ifdef __cplusplus |
---|
10503 | extern "C" |
---|
10504 | #endif |
---|
10505 | char dld_link (); |
---|
10506 | int |
---|
10507 | main () |
---|
10508 | { |
---|
10509 | return dld_link (); |
---|
10510 | ; |
---|
10511 | return 0; |
---|
10512 | } |
---|
10513 | _ACEOF |
---|
10514 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10515 | if { (ac_try="$ac_link" |
---|
10516 | case "(($ac_try" in |
---|
10517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10518 | *) ac_try_echo=$ac_try;; |
---|
10519 | esac |
---|
10520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10521 | (eval "$ac_link") 2>conftest.er1 |
---|
10522 | ac_status=$? |
---|
10523 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10524 | rm -f conftest.er1 |
---|
10525 | cat conftest.err >&5 |
---|
10526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10527 | (exit $ac_status); } && { |
---|
10528 | test -z "$ac_c_werror_flag" || |
---|
10529 | test ! -s conftest.err |
---|
10530 | } && test -s conftest$ac_exeext && |
---|
10531 | $as_test_x conftest$ac_exeext; then |
---|
10532 | ac_cv_lib_dld_dld_link=yes |
---|
10533 | else |
---|
10534 | echo "$as_me: failed program was:" >&5 |
---|
10535 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10536 | |
---|
10537 | ac_cv_lib_dld_dld_link=no |
---|
10538 | fi |
---|
10539 | |
---|
10540 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10541 | conftest$ac_exeext conftest.$ac_ext |
---|
10542 | LIBS=$ac_check_lib_save_LIBS |
---|
10543 | fi |
---|
10544 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
10545 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
---|
10546 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
10547 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
10548 | fi |
---|
10549 | |
---|
10550 | |
---|
10551 | fi |
---|
10552 | |
---|
10553 | |
---|
10554 | fi |
---|
10555 | |
---|
10556 | |
---|
10557 | fi |
---|
10558 | |
---|
10559 | |
---|
10560 | fi |
---|
10561 | |
---|
10562 | |
---|
10563 | fi |
---|
10564 | |
---|
10565 | ;; |
---|
10566 | esac |
---|
10567 | |
---|
10568 | if test "x$lt_cv_dlopen" != xno; then |
---|
10569 | enable_dlopen=yes |
---|
10570 | else |
---|
10571 | enable_dlopen=no |
---|
10572 | fi |
---|
10573 | |
---|
10574 | case $lt_cv_dlopen in |
---|
10575 | dlopen) |
---|
10576 | save_CPPFLAGS="$CPPFLAGS" |
---|
10577 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
10578 | |
---|
10579 | save_LDFLAGS="$LDFLAGS" |
---|
10580 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
10581 | |
---|
10582 | save_LIBS="$LIBS" |
---|
10583 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
10584 | |
---|
10585 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
10586 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
---|
10587 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
10588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10589 | else |
---|
10590 | if test "$cross_compiling" = yes; then : |
---|
10591 | lt_cv_dlopen_self=cross |
---|
10592 | else |
---|
10593 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10594 | lt_status=$lt_dlunknown |
---|
10595 | cat > conftest.$ac_ext <<EOF |
---|
10596 | #line 10596 "configure" |
---|
10597 | #include "confdefs.h" |
---|
10598 | |
---|
10599 | #if HAVE_DLFCN_H |
---|
10600 | #include <dlfcn.h> |
---|
10601 | #endif |
---|
10602 | |
---|
10603 | #include <stdio.h> |
---|
10604 | |
---|
10605 | #ifdef RTLD_GLOBAL |
---|
10606 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10607 | #else |
---|
10608 | # ifdef DL_GLOBAL |
---|
10609 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10610 | # else |
---|
10611 | # define LT_DLGLOBAL 0 |
---|
10612 | # endif |
---|
10613 | #endif |
---|
10614 | |
---|
10615 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10616 | find out it does not work in some platform. */ |
---|
10617 | #ifndef LT_DLLAZY_OR_NOW |
---|
10618 | # ifdef RTLD_LAZY |
---|
10619 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10620 | # else |
---|
10621 | # ifdef DL_LAZY |
---|
10622 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10623 | # else |
---|
10624 | # ifdef RTLD_NOW |
---|
10625 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10626 | # else |
---|
10627 | # ifdef DL_NOW |
---|
10628 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10629 | # else |
---|
10630 | # define LT_DLLAZY_OR_NOW 0 |
---|
10631 | # endif |
---|
10632 | # endif |
---|
10633 | # endif |
---|
10634 | # endif |
---|
10635 | #endif |
---|
10636 | |
---|
10637 | #ifdef __cplusplus |
---|
10638 | extern "C" void exit (int); |
---|
10639 | #endif |
---|
10640 | |
---|
10641 | void fnord() { int i=42;} |
---|
10642 | int main () |
---|
10643 | { |
---|
10644 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10645 | int status = $lt_dlunknown; |
---|
10646 | |
---|
10647 | if (self) |
---|
10648 | { |
---|
10649 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10650 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10651 | /* dlclose (self); */ |
---|
10652 | } |
---|
10653 | else |
---|
10654 | puts (dlerror ()); |
---|
10655 | |
---|
10656 | exit (status); |
---|
10657 | } |
---|
10658 | EOF |
---|
10659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10660 | (eval $ac_link) 2>&5 |
---|
10661 | ac_status=$? |
---|
10662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10663 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10664 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10665 | lt_status=$? |
---|
10666 | case x$lt_status in |
---|
10667 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
10668 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
10669 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
---|
10670 | esac |
---|
10671 | else : |
---|
10672 | # compilation failed |
---|
10673 | lt_cv_dlopen_self=no |
---|
10674 | fi |
---|
10675 | fi |
---|
10676 | rm -fr conftest* |
---|
10677 | |
---|
10678 | |
---|
10679 | fi |
---|
10680 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
10681 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
---|
10682 | |
---|
10683 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
10684 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
---|
10685 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
10686 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
---|
10687 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
10688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10689 | else |
---|
10690 | if test "$cross_compiling" = yes; then : |
---|
10691 | lt_cv_dlopen_self_static=cross |
---|
10692 | else |
---|
10693 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10694 | lt_status=$lt_dlunknown |
---|
10695 | cat > conftest.$ac_ext <<EOF |
---|
10696 | #line 10696 "configure" |
---|
10697 | #include "confdefs.h" |
---|
10698 | |
---|
10699 | #if HAVE_DLFCN_H |
---|
10700 | #include <dlfcn.h> |
---|
10701 | #endif |
---|
10702 | |
---|
10703 | #include <stdio.h> |
---|
10704 | |
---|
10705 | #ifdef RTLD_GLOBAL |
---|
10706 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10707 | #else |
---|
10708 | # ifdef DL_GLOBAL |
---|
10709 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10710 | # else |
---|
10711 | # define LT_DLGLOBAL 0 |
---|
10712 | # endif |
---|
10713 | #endif |
---|
10714 | |
---|
10715 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10716 | find out it does not work in some platform. */ |
---|
10717 | #ifndef LT_DLLAZY_OR_NOW |
---|
10718 | # ifdef RTLD_LAZY |
---|
10719 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10720 | # else |
---|
10721 | # ifdef DL_LAZY |
---|
10722 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10723 | # else |
---|
10724 | # ifdef RTLD_NOW |
---|
10725 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10726 | # else |
---|
10727 | # ifdef DL_NOW |
---|
10728 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10729 | # else |
---|
10730 | # define LT_DLLAZY_OR_NOW 0 |
---|
10731 | # endif |
---|
10732 | # endif |
---|
10733 | # endif |
---|
10734 | # endif |
---|
10735 | #endif |
---|
10736 | |
---|
10737 | #ifdef __cplusplus |
---|
10738 | extern "C" void exit (int); |
---|
10739 | #endif |
---|
10740 | |
---|
10741 | void fnord() { int i=42;} |
---|
10742 | int main () |
---|
10743 | { |
---|
10744 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10745 | int status = $lt_dlunknown; |
---|
10746 | |
---|
10747 | if (self) |
---|
10748 | { |
---|
10749 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10750 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10751 | /* dlclose (self); */ |
---|
10752 | } |
---|
10753 | else |
---|
10754 | puts (dlerror ()); |
---|
10755 | |
---|
10756 | exit (status); |
---|
10757 | } |
---|
10758 | EOF |
---|
10759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10760 | (eval $ac_link) 2>&5 |
---|
10761 | ac_status=$? |
---|
10762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10763 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10764 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10765 | lt_status=$? |
---|
10766 | case x$lt_status in |
---|
10767 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10768 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10769 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
10770 | esac |
---|
10771 | else : |
---|
10772 | # compilation failed |
---|
10773 | lt_cv_dlopen_self_static=no |
---|
10774 | fi |
---|
10775 | fi |
---|
10776 | rm -fr conftest* |
---|
10777 | |
---|
10778 | |
---|
10779 | fi |
---|
10780 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
10781 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
---|
10782 | fi |
---|
10783 | |
---|
10784 | CPPFLAGS="$save_CPPFLAGS" |
---|
10785 | LDFLAGS="$save_LDFLAGS" |
---|
10786 | LIBS="$save_LIBS" |
---|
10787 | ;; |
---|
10788 | esac |
---|
10789 | |
---|
10790 | case $lt_cv_dlopen_self in |
---|
10791 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
10792 | *) enable_dlopen_self=unknown ;; |
---|
10793 | esac |
---|
10794 | |
---|
10795 | case $lt_cv_dlopen_self_static in |
---|
10796 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
10797 | *) enable_dlopen_self_static=unknown ;; |
---|
10798 | esac |
---|
10799 | fi |
---|
10800 | |
---|
10801 | |
---|
10802 | # Report which library types will actually be built |
---|
10803 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
10804 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
---|
10805 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
10806 | echo "${ECHO_T}$can_build_shared" >&6; } |
---|
10807 | |
---|
10808 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
10809 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
---|
10810 | test "$can_build_shared" = "no" && enable_shared=no |
---|
10811 | |
---|
10812 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
10813 | # are all built from PIC. |
---|
10814 | case $host_os in |
---|
10815 | aix3*) |
---|
10816 | test "$enable_shared" = yes && enable_static=no |
---|
10817 | if test -n "$RANLIB"; then |
---|
10818 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
10819 | postinstall_cmds='$RANLIB $lib' |
---|
10820 | fi |
---|
10821 | ;; |
---|
10822 | |
---|
10823 | aix4* | aix5*) |
---|
10824 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
10825 | test "$enable_shared" = yes && enable_static=no |
---|
10826 | fi |
---|
10827 | ;; |
---|
10828 | esac |
---|
10829 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
10830 | echo "${ECHO_T}$enable_shared" >&6; } |
---|
10831 | |
---|
10832 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
10833 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
---|
10834 | # Make sure either enable_shared or enable_static is yes. |
---|
10835 | test "$enable_shared" = yes || enable_static=yes |
---|
10836 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
10837 | echo "${ECHO_T}$enable_static" >&6; } |
---|
10838 | |
---|
10839 | # The else clause should only fire when bootstrapping the |
---|
10840 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
10841 | # with your package, and you will get complaints that there are |
---|
10842 | # no rules to generate ltmain.sh. |
---|
10843 | if test -f "$ltmain"; then |
---|
10844 | # See if we are running on zsh, and set the options which allow our commands through |
---|
10845 | # without removal of \ escapes. |
---|
10846 | if test -n "${ZSH_VERSION+set}" ; then |
---|
10847 | setopt NO_GLOB_SUBST |
---|
10848 | fi |
---|
10849 | # Now quote all the things that may contain metacharacters while being |
---|
10850 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
10851 | # variables and quote the copies for generation of the libtool script. |
---|
10852 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
---|
10853 | SED SHELL STRIP \ |
---|
10854 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
10855 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
10856 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
10857 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
10858 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
10859 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
10860 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
10861 | compiler \ |
---|
10862 | CC \ |
---|
10863 | LD \ |
---|
10864 | lt_prog_compiler_wl \ |
---|
10865 | lt_prog_compiler_pic \ |
---|
10866 | lt_prog_compiler_static \ |
---|
10867 | lt_prog_compiler_no_builtin_flag \ |
---|
10868 | export_dynamic_flag_spec \ |
---|
10869 | thread_safe_flag_spec \ |
---|
10870 | whole_archive_flag_spec \ |
---|
10871 | enable_shared_with_static_runtimes \ |
---|
10872 | old_archive_cmds \ |
---|
10873 | old_archive_from_new_cmds \ |
---|
10874 | predep_objects \ |
---|
10875 | postdep_objects \ |
---|
10876 | predeps \ |
---|
10877 | postdeps \ |
---|
10878 | compiler_lib_search_path \ |
---|
10879 | archive_cmds \ |
---|
10880 | archive_expsym_cmds \ |
---|
10881 | postinstall_cmds \ |
---|
10882 | postuninstall_cmds \ |
---|
10883 | old_archive_from_expsyms_cmds \ |
---|
10884 | allow_undefined_flag \ |
---|
10885 | no_undefined_flag \ |
---|
10886 | export_symbols_cmds \ |
---|
10887 | hardcode_libdir_flag_spec \ |
---|
10888 | hardcode_libdir_flag_spec_ld \ |
---|
10889 | hardcode_libdir_separator \ |
---|
10890 | hardcode_automatic \ |
---|
10891 | module_cmds \ |
---|
10892 | module_expsym_cmds \ |
---|
10893 | lt_cv_prog_compiler_c_o \ |
---|
10894 | fix_srcfile_path \ |
---|
10895 | exclude_expsyms \ |
---|
10896 | include_expsyms; do |
---|
10897 | |
---|
10898 | case $var in |
---|
10899 | old_archive_cmds | \ |
---|
10900 | old_archive_from_new_cmds | \ |
---|
10901 | archive_cmds | \ |
---|
10902 | archive_expsym_cmds | \ |
---|
10903 | module_cmds | \ |
---|
10904 | module_expsym_cmds | \ |
---|
10905 | old_archive_from_expsyms_cmds | \ |
---|
10906 | export_symbols_cmds | \ |
---|
10907 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
10908 | postinstall_cmds | postuninstall_cmds | \ |
---|
10909 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
10910 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
10911 | # Double-quote double-evaled strings. |
---|
10912 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
10913 | ;; |
---|
10914 | *) |
---|
10915 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
10916 | ;; |
---|
10917 | esac |
---|
10918 | done |
---|
10919 | |
---|
10920 | case $lt_echo in |
---|
10921 | *'\$0 --fallback-echo"') |
---|
10922 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
10923 | ;; |
---|
10924 | esac |
---|
10925 | |
---|
10926 | cfgfile="${ofile}T" |
---|
10927 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
---|
10928 | $rm -f "$cfgfile" |
---|
10929 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
---|
10930 | echo "$as_me: creating $ofile" >&6;} |
---|
10931 | |
---|
10932 | cat <<__EOF__ >> "$cfgfile" |
---|
10933 | #! $SHELL |
---|
10934 | |
---|
10935 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
---|
10936 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
---|
10937 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
---|
10938 | # |
---|
10939 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
---|
10940 | # Free Software Foundation, Inc. |
---|
10941 | # |
---|
10942 | # This file is part of GNU Libtool: |
---|
10943 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
---|
10944 | # |
---|
10945 | # This program is free software; you can redistribute it and/or modify |
---|
10946 | # it under the terms of the GNU General Public License as published by |
---|
10947 | # the Free Software Foundation; either version 2 of the License, or |
---|
10948 | # (at your option) any later version. |
---|
10949 | # |
---|
10950 | # This program is distributed in the hope that it will be useful, but |
---|
10951 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10952 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
10953 | # General Public License for more details. |
---|
10954 | # |
---|
10955 | # You should have received a copy of the GNU General Public License |
---|
10956 | # along with this program; if not, write to the Free Software |
---|
10957 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
10958 | # |
---|
10959 | # As a special exception to the GNU General Public License, if you |
---|
10960 | # distribute this file as part of a program that contains a |
---|
10961 | # configuration script generated by Autoconf, you may include it under |
---|
10962 | # the same distribution terms that you use for the rest of that program. |
---|
10963 | |
---|
10964 | # A sed program that does not truncate output. |
---|
10965 | SED=$lt_SED |
---|
10966 | |
---|
10967 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
---|
10968 | Xsed="$SED -e 1s/^X//" |
---|
10969 | |
---|
10970 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
10971 | # if CDPATH is set. |
---|
10972 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
10973 | |
---|
10974 | # The names of the tagged configurations supported by this script. |
---|
10975 | available_tags= |
---|
10976 | |
---|
10977 | # ### BEGIN LIBTOOL CONFIG |
---|
10978 | |
---|
10979 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
10980 | |
---|
10981 | # Shell to use when invoking shell scripts. |
---|
10982 | SHELL=$lt_SHELL |
---|
10983 | |
---|
10984 | # Whether or not to build shared libraries. |
---|
10985 | build_libtool_libs=$enable_shared |
---|
10986 | |
---|
10987 | # Whether or not to build static libraries. |
---|
10988 | build_old_libs=$enable_static |
---|
10989 | |
---|
10990 | # Whether or not to add -lc for building shared libraries. |
---|
10991 | build_libtool_need_lc=$archive_cmds_need_lc |
---|
10992 | |
---|
10993 | # Whether or not to disallow shared libs when runtime libs are static |
---|
10994 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
---|
10995 | |
---|
10996 | # Whether or not to optimize for fast installation. |
---|
10997 | fast_install=$enable_fast_install |
---|
10998 | |
---|
10999 | # The host system. |
---|
11000 | host_alias=$host_alias |
---|
11001 | host=$host |
---|
11002 | host_os=$host_os |
---|
11003 | |
---|
11004 | # The build system. |
---|
11005 | build_alias=$build_alias |
---|
11006 | build=$build |
---|
11007 | build_os=$build_os |
---|
11008 | |
---|
11009 | # An echo program that does not interpret backslashes. |
---|
11010 | echo=$lt_echo |
---|
11011 | |
---|
11012 | # The archiver. |
---|
11013 | AR=$lt_AR |
---|
11014 | AR_FLAGS=$lt_AR_FLAGS |
---|
11015 | |
---|
11016 | # A C compiler. |
---|
11017 | LTCC=$lt_LTCC |
---|
11018 | |
---|
11019 | # LTCC compiler flags. |
---|
11020 | LTCFLAGS=$lt_LTCFLAGS |
---|
11021 | |
---|
11022 | # A language-specific compiler. |
---|
11023 | CC=$lt_compiler |
---|
11024 | |
---|
11025 | # Is the compiler the GNU C compiler? |
---|
11026 | with_gcc=$GCC |
---|
11027 | |
---|
11028 | # An ERE matcher. |
---|
11029 | EGREP=$lt_EGREP |
---|
11030 | |
---|
11031 | # The linker used to build libraries. |
---|
11032 | LD=$lt_LD |
---|
11033 | |
---|
11034 | # Whether we need hard or soft links. |
---|
11035 | LN_S=$lt_LN_S |
---|
11036 | |
---|
11037 | # A BSD-compatible nm program. |
---|
11038 | NM=$lt_NM |
---|
11039 | |
---|
11040 | # A symbol stripping program |
---|
11041 | STRIP=$lt_STRIP |
---|
11042 | |
---|
11043 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
11044 | MAGIC_CMD=$MAGIC_CMD |
---|
11045 | |
---|
11046 | # Used on cygwin: DLL creation program. |
---|
11047 | DLLTOOL="$DLLTOOL" |
---|
11048 | |
---|
11049 | # Used on cygwin: object dumper. |
---|
11050 | OBJDUMP="$OBJDUMP" |
---|
11051 | |
---|
11052 | # Used on cygwin: assembler. |
---|
11053 | AS="$AS" |
---|
11054 | |
---|
11055 | # The name of the directory that contains temporary libtool files. |
---|
11056 | objdir=$objdir |
---|
11057 | |
---|
11058 | # How to create reloadable object files. |
---|
11059 | reload_flag=$lt_reload_flag |
---|
11060 | reload_cmds=$lt_reload_cmds |
---|
11061 | |
---|
11062 | # How to pass a linker flag through the compiler. |
---|
11063 | wl=$lt_lt_prog_compiler_wl |
---|
11064 | |
---|
11065 | # Object file suffix (normally "o"). |
---|
11066 | objext="$ac_objext" |
---|
11067 | |
---|
11068 | # Old archive suffix (normally "a"). |
---|
11069 | libext="$libext" |
---|
11070 | |
---|
11071 | # Shared library suffix (normally ".so"). |
---|
11072 | shrext_cmds='$shrext_cmds' |
---|
11073 | |
---|
11074 | # Executable file suffix (normally ""). |
---|
11075 | exeext="$exeext" |
---|
11076 | |
---|
11077 | # Additional compiler flags for building library objects. |
---|
11078 | pic_flag=$lt_lt_prog_compiler_pic |
---|
11079 | pic_mode=$pic_mode |
---|
11080 | |
---|
11081 | # What is the maximum length of a command? |
---|
11082 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
11083 | |
---|
11084 | # Does compiler simultaneously support -c and -o options? |
---|
11085 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
---|
11086 | |
---|
11087 | # Must we lock files when doing compilation? |
---|
11088 | need_locks=$lt_need_locks |
---|
11089 | |
---|
11090 | # Do we need the lib prefix for modules? |
---|
11091 | need_lib_prefix=$need_lib_prefix |
---|
11092 | |
---|
11093 | # Do we need a version for libraries? |
---|
11094 | need_version=$need_version |
---|
11095 | |
---|
11096 | # Whether dlopen is supported. |
---|
11097 | dlopen_support=$enable_dlopen |
---|
11098 | |
---|
11099 | # Whether dlopen of programs is supported. |
---|
11100 | dlopen_self=$enable_dlopen_self |
---|
11101 | |
---|
11102 | # Whether dlopen of statically linked programs is supported. |
---|
11103 | dlopen_self_static=$enable_dlopen_self_static |
---|
11104 | |
---|
11105 | # Compiler flag to prevent dynamic linking. |
---|
11106 | link_static_flag=$lt_lt_prog_compiler_static |
---|
11107 | |
---|
11108 | # Compiler flag to turn off builtin functions. |
---|
11109 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
---|
11110 | |
---|
11111 | # Compiler flag to allow reflexive dlopens. |
---|
11112 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
---|
11113 | |
---|
11114 | # Compiler flag to generate shared objects directly from archives. |
---|
11115 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
---|
11116 | |
---|
11117 | # Compiler flag to generate thread-safe objects. |
---|
11118 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
---|
11119 | |
---|
11120 | # Library versioning type. |
---|
11121 | version_type=$version_type |
---|
11122 | |
---|
11123 | # Format of library name prefix. |
---|
11124 | libname_spec=$lt_libname_spec |
---|
11125 | |
---|
11126 | # List of archive names. First name is the real one, the rest are links. |
---|
11127 | # The last name is the one that the linker finds with -lNAME. |
---|
11128 | library_names_spec=$lt_library_names_spec |
---|
11129 | |
---|
11130 | # The coded name of the library, if different from the real name. |
---|
11131 | soname_spec=$lt_soname_spec |
---|
11132 | |
---|
11133 | # Commands used to build and install an old-style archive. |
---|
11134 | RANLIB=$lt_RANLIB |
---|
11135 | old_archive_cmds=$lt_old_archive_cmds |
---|
11136 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
11137 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
11138 | |
---|
11139 | # Create an old-style archive from a shared archive. |
---|
11140 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
---|
11141 | |
---|
11142 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
11143 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
---|
11144 | |
---|
11145 | # Commands used to build and install a shared archive. |
---|
11146 | archive_cmds=$lt_archive_cmds |
---|
11147 | archive_expsym_cmds=$lt_archive_expsym_cmds |
---|
11148 | postinstall_cmds=$lt_postinstall_cmds |
---|
11149 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
11150 | |
---|
11151 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
11152 | module_cmds=$lt_module_cmds |
---|
11153 | module_expsym_cmds=$lt_module_expsym_cmds |
---|
11154 | |
---|
11155 | # Commands to strip libraries. |
---|
11156 | old_striplib=$lt_old_striplib |
---|
11157 | striplib=$lt_striplib |
---|
11158 | |
---|
11159 | # Dependencies to place before the objects being linked to create a |
---|
11160 | # shared library. |
---|
11161 | predep_objects=$lt_predep_objects |
---|
11162 | |
---|
11163 | # Dependencies to place after the objects being linked to create a |
---|
11164 | # shared library. |
---|
11165 | postdep_objects=$lt_postdep_objects |
---|
11166 | |
---|
11167 | # Dependencies to place before the objects being linked to create a |
---|
11168 | # shared library. |
---|
11169 | predeps=$lt_predeps |
---|
11170 | |
---|
11171 | # Dependencies to place after the objects being linked to create a |
---|
11172 | # shared library. |
---|
11173 | postdeps=$lt_postdeps |
---|
11174 | |
---|
11175 | # The library search path used internally by the compiler when linking |
---|
11176 | # a shared library. |
---|
11177 | compiler_lib_search_path=$lt_compiler_lib_search_path |
---|
11178 | |
---|
11179 | # Method to check whether dependent libraries are shared objects. |
---|
11180 | deplibs_check_method=$lt_deplibs_check_method |
---|
11181 | |
---|
11182 | # Command to use when deplibs_check_method == file_magic. |
---|
11183 | file_magic_cmd=$lt_file_magic_cmd |
---|
11184 | |
---|
11185 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
11186 | allow_undefined_flag=$lt_allow_undefined_flag |
---|
11187 | |
---|
11188 | # Flag that forces no undefined symbols. |
---|
11189 | no_undefined_flag=$lt_no_undefined_flag |
---|
11190 | |
---|
11191 | # Commands used to finish a libtool library installation in a directory. |
---|
11192 | finish_cmds=$lt_finish_cmds |
---|
11193 | |
---|
11194 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
11195 | finish_eval=$lt_finish_eval |
---|
11196 | |
---|
11197 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
11198 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
11199 | |
---|
11200 | # Transform the output of nm in a proper C declaration |
---|
11201 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
11202 | |
---|
11203 | # Transform the output of nm in a C name address pair |
---|
11204 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
11205 | |
---|
11206 | # This is the shared library runtime path variable. |
---|
11207 | runpath_var=$runpath_var |
---|
11208 | |
---|
11209 | # This is the shared library path variable. |
---|
11210 | shlibpath_var=$shlibpath_var |
---|
11211 | |
---|
11212 | # Is shlibpath searched before the hard-coded library search path? |
---|
11213 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
11214 | |
---|
11215 | # How to hardcode a shared library path into an executable. |
---|
11216 | hardcode_action=$hardcode_action |
---|
11217 | |
---|
11218 | # Whether we should hardcode library paths into libraries. |
---|
11219 | hardcode_into_libs=$hardcode_into_libs |
---|
11220 | |
---|
11221 | # Flag to hardcode \$libdir into a binary during linking. |
---|
11222 | # This must work even if \$libdir does not exist. |
---|
11223 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
---|
11224 | |
---|
11225 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
11226 | # a binary during linking. This must work even if \$libdir does |
---|
11227 | # not exist. |
---|
11228 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
---|
11229 | |
---|
11230 | # Whether we need a single -rpath flag with a separated argument. |
---|
11231 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
---|
11232 | |
---|
11233 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
11234 | # resulting binary. |
---|
11235 | hardcode_direct=$hardcode_direct |
---|
11236 | |
---|
11237 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
11238 | # resulting binary. |
---|
11239 | hardcode_minus_L=$hardcode_minus_L |
---|
11240 | |
---|
11241 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
11242 | # the resulting binary. |
---|
11243 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
---|
11244 | |
---|
11245 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
11246 | # and all subsequent libraries and executables linked against it. |
---|
11247 | hardcode_automatic=$hardcode_automatic |
---|
11248 | |
---|
11249 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
11250 | # restored at relink time. |
---|
11251 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
11252 | |
---|
11253 | # Whether libtool must link a program against all its dependency libraries. |
---|
11254 | link_all_deplibs=$link_all_deplibs |
---|
11255 | |
---|
11256 | # Compile-time system search path for libraries |
---|
11257 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
11258 | |
---|
11259 | # Run-time system search path for libraries |
---|
11260 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
11261 | |
---|
11262 | # Fix the shell variable \$srcfile for the compiler. |
---|
11263 | fix_srcfile_path=$lt_fix_srcfile_path |
---|
11264 | |
---|
11265 | # Set to yes if exported symbols are required. |
---|
11266 | always_export_symbols=$always_export_symbols |
---|
11267 | |
---|
11268 | # The commands to list exported symbols. |
---|
11269 | export_symbols_cmds=$lt_export_symbols_cmds |
---|
11270 | |
---|
11271 | # The commands to extract the exported symbol list from a shared archive. |
---|
11272 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
11273 | |
---|
11274 | # Symbols that should not be listed in the preloaded symbols. |
---|
11275 | exclude_expsyms=$lt_exclude_expsyms |
---|
11276 | |
---|
11277 | # Symbols that must always be exported. |
---|
11278 | include_expsyms=$lt_include_expsyms |
---|
11279 | |
---|
11280 | # ### END LIBTOOL CONFIG |
---|
11281 | |
---|
11282 | __EOF__ |
---|
11283 | |
---|
11284 | |
---|
11285 | case $host_os in |
---|
11286 | aix3*) |
---|
11287 | cat <<\EOF >> "$cfgfile" |
---|
11288 | |
---|
11289 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
11290 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
11291 | # vanish in a puff of smoke. |
---|
11292 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
11293 | COLLECT_NAMES= |
---|
11294 | export COLLECT_NAMES |
---|
11295 | fi |
---|
11296 | EOF |
---|
11297 | ;; |
---|
11298 | esac |
---|
11299 | |
---|
11300 | # We use sed instead of cat because bash on DJGPP gets confused if |
---|
11301 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
---|
11302 | # text mode, it properly converts lines to CR/LF. This bash problem |
---|
11303 | # is reportedly fixed, but why not run on old versions too? |
---|
11304 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
---|
11305 | |
---|
11306 | mv -f "$cfgfile" "$ofile" || \ |
---|
11307 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
---|
11308 | chmod +x "$ofile" |
---|
11309 | |
---|
11310 | else |
---|
11311 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
11312 | # `config.status --recheck' to rerun these tests and create the |
---|
11313 | # libtool script then. |
---|
11314 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
11315 | if test -f "$ltmain_in"; then |
---|
11316 | test -f Makefile && make "$ltmain" |
---|
11317 | fi |
---|
11318 | fi |
---|
11319 | |
---|
11320 | |
---|
11321 | ac_ext=c |
---|
11322 | ac_cpp='$CPP $CPPFLAGS' |
---|
11323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
11324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
11325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
11326 | |
---|
11327 | CC="$lt_save_CC" |
---|
11328 | |
---|
11329 | |
---|
11330 | # Check whether --with-tags was given. |
---|
11331 | if test "${with_tags+set}" = set; then |
---|
11332 | withval=$with_tags; tagnames="$withval" |
---|
11333 | fi |
---|
11334 | |
---|
11335 | |
---|
11336 | if test -f "$ltmain" && test -n "$tagnames"; then |
---|
11337 | if test ! -f "${ofile}"; then |
---|
11338 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
---|
11339 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
---|
11340 | fi |
---|
11341 | |
---|
11342 | if test -z "$LTCC"; then |
---|
11343 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
---|
11344 | if test -z "$LTCC"; then |
---|
11345 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
---|
11346 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
---|
11347 | else |
---|
11348 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
---|
11349 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
---|
11350 | fi |
---|
11351 | fi |
---|
11352 | if test -z "$LTCFLAGS"; then |
---|
11353 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
---|
11354 | fi |
---|
11355 | |
---|
11356 | # Extract list of available tagged configurations in $ofile. |
---|
11357 | # Note that this assumes the entire list is on one line. |
---|
11358 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
---|
11359 | |
---|
11360 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
11361 | for tagname in $tagnames; do |
---|
11362 | IFS="$lt_save_ifs" |
---|
11363 | # Check whether tagname contains only valid characters |
---|
11364 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
---|
11365 | "") ;; |
---|
11366 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
---|
11367 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
---|
11368 | { (exit 1); exit 1; }; } |
---|
11369 | ;; |
---|
11370 | esac |
---|
11371 | |
---|
11372 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
---|
11373 | then |
---|
11374 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
---|
11375 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
---|
11376 | { (exit 1); exit 1; }; } |
---|
11377 | fi |
---|
11378 | |
---|
11379 | # Update the list of available tags. |
---|
11380 | if test -n "$tagname"; then |
---|
11381 | echo appending configuration tag \"$tagname\" to $ofile |
---|
11382 | |
---|
11383 | case $tagname in |
---|
11384 | CXX) |
---|
11385 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
11386 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
11387 | (test "X$CXX" != "Xg++"))) ; then |
---|
11388 | ac_ext=cpp |
---|
11389 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
11390 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
11391 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
11392 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
11393 | |
---|
11394 | |
---|
11395 | |
---|
11396 | |
---|
11397 | archive_cmds_need_lc_CXX=no |
---|
11398 | allow_undefined_flag_CXX= |
---|
11399 | always_export_symbols_CXX=no |
---|
11400 | archive_expsym_cmds_CXX= |
---|
11401 | export_dynamic_flag_spec_CXX= |
---|
11402 | hardcode_direct_CXX=no |
---|
11403 | hardcode_libdir_flag_spec_CXX= |
---|
11404 | hardcode_libdir_flag_spec_ld_CXX= |
---|
11405 | hardcode_libdir_separator_CXX= |
---|
11406 | hardcode_minus_L_CXX=no |
---|
11407 | hardcode_shlibpath_var_CXX=unsupported |
---|
11408 | hardcode_automatic_CXX=no |
---|
11409 | module_cmds_CXX= |
---|
11410 | module_expsym_cmds_CXX= |
---|
11411 | link_all_deplibs_CXX=unknown |
---|
11412 | old_archive_cmds_CXX=$old_archive_cmds |
---|
11413 | no_undefined_flag_CXX= |
---|
11414 | whole_archive_flag_spec_CXX= |
---|
11415 | enable_shared_with_static_runtimes_CXX=no |
---|
11416 | |
---|
11417 | # Dependencies to place before and after the object being linked: |
---|
11418 | predep_objects_CXX= |
---|
11419 | postdep_objects_CXX= |
---|
11420 | predeps_CXX= |
---|
11421 | postdeps_CXX= |
---|
11422 | compiler_lib_search_path_CXX= |
---|
11423 | |
---|
11424 | # Source file extension for C++ test sources. |
---|
11425 | ac_ext=cpp |
---|
11426 | |
---|
11427 | # Object file extension for compiled C++ test sources. |
---|
11428 | objext=o |
---|
11429 | objext_CXX=$objext |
---|
11430 | |
---|
11431 | # Code to be used in simple compile tests |
---|
11432 | lt_simple_compile_test_code="int some_variable = 0;" |
---|
11433 | |
---|
11434 | # Code to be used in simple link tests |
---|
11435 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
---|
11436 | |
---|
11437 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
11438 | |
---|
11439 | # If no C compiler was specified, use CC. |
---|
11440 | LTCC=${LTCC-"$CC"} |
---|
11441 | |
---|
11442 | # If no C compiler flags were specified, use CFLAGS. |
---|
11443 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
11444 | |
---|
11445 | # Allow CC to be a program name with arguments. |
---|
11446 | compiler=$CC |
---|
11447 | |
---|
11448 | |
---|
11449 | # save warnings/boilerplate of simple test code |
---|
11450 | ac_outfile=conftest.$ac_objext |
---|
11451 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
11452 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
11453 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
11454 | $rm conftest* |
---|
11455 | |
---|
11456 | ac_outfile=conftest.$ac_objext |
---|
11457 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
11458 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
11459 | _lt_linker_boilerplate=`cat conftest.err` |
---|
11460 | $rm conftest* |
---|
11461 | |
---|
11462 | |
---|
11463 | # Allow CC to be a program name with arguments. |
---|
11464 | lt_save_CC=$CC |
---|
11465 | lt_save_LD=$LD |
---|
11466 | lt_save_GCC=$GCC |
---|
11467 | GCC=$GXX |
---|
11468 | lt_save_with_gnu_ld=$with_gnu_ld |
---|
11469 | lt_save_path_LD=$lt_cv_path_LD |
---|
11470 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
---|
11471 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
---|
11472 | else |
---|
11473 | $as_unset lt_cv_prog_gnu_ld |
---|
11474 | fi |
---|
11475 | if test -n "${lt_cv_path_LDCXX+set}"; then |
---|
11476 | lt_cv_path_LD=$lt_cv_path_LDCXX |
---|
11477 | else |
---|
11478 | $as_unset lt_cv_path_LD |
---|
11479 | fi |
---|
11480 | test -z "${LDCXX+set}" || LD=$LDCXX |
---|
11481 | CC=${CXX-"c++"} |
---|
11482 | compiler=$CC |
---|
11483 | compiler_CXX=$CC |
---|
11484 | for cc_temp in $compiler""; do |
---|
11485 | case $cc_temp in |
---|
11486 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
11487 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
11488 | \-*) ;; |
---|
11489 | *) break;; |
---|
11490 | esac |
---|
11491 | done |
---|
11492 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
11493 | |
---|
11494 | |
---|
11495 | # We don't want -fno-exception wen compiling C++ code, so set the |
---|
11496 | # no_builtin_flag separately |
---|
11497 | if test "$GXX" = yes; then |
---|
11498 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
---|
11499 | else |
---|
11500 | lt_prog_compiler_no_builtin_flag_CXX= |
---|
11501 | fi |
---|
11502 | |
---|
11503 | if test "$GXX" = yes; then |
---|
11504 | # Set up default GNU C++ configuration |
---|
11505 | |
---|
11506 | |
---|
11507 | # Check whether --with-gnu-ld was given. |
---|
11508 | if test "${with_gnu_ld+set}" = set; then |
---|
11509 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
---|
11510 | else |
---|
11511 | with_gnu_ld=no |
---|
11512 | fi |
---|
11513 | |
---|
11514 | ac_prog=ld |
---|
11515 | if test "$GCC" = yes; then |
---|
11516 | # Check if gcc -print-prog-name=ld gives a path. |
---|
11517 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
11518 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
---|
11519 | case $host in |
---|
11520 | *-*-mingw*) |
---|
11521 | # gcc leaves a trailing carriage return which upsets mingw |
---|
11522 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
11523 | *) |
---|
11524 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
11525 | esac |
---|
11526 | case $ac_prog in |
---|
11527 | # Accept absolute paths. |
---|
11528 | [\\/]* | ?:[\\/]*) |
---|
11529 | re_direlt='/[^/][^/]*/\.\./' |
---|
11530 | # Canonicalize the pathname of ld |
---|
11531 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
11532 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
11533 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
11534 | done |
---|
11535 | test -z "$LD" && LD="$ac_prog" |
---|
11536 | ;; |
---|
11537 | "") |
---|
11538 | # If it fails, then pretend we aren't using GCC. |
---|
11539 | ac_prog=ld |
---|
11540 | ;; |
---|
11541 | *) |
---|
11542 | # If it is relative, then search for the first ld in PATH. |
---|
11543 | with_gnu_ld=unknown |
---|
11544 | ;; |
---|
11545 | esac |
---|
11546 | elif test "$with_gnu_ld" = yes; then |
---|
11547 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
11548 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
---|
11549 | else |
---|
11550 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
11551 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
---|
11552 | fi |
---|
11553 | if test "${lt_cv_path_LD+set}" = set; then |
---|
11554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11555 | else |
---|
11556 | if test -z "$LD"; then |
---|
11557 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
11558 | for ac_dir in $PATH; do |
---|
11559 | IFS="$lt_save_ifs" |
---|
11560 | test -z "$ac_dir" && ac_dir=. |
---|
11561 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
11562 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
11563 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
11564 | # but apparently some variants of GNU ld only accept -v. |
---|
11565 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
11566 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
11567 | *GNU* | *'with BFD'*) |
---|
11568 | test "$with_gnu_ld" != no && break |
---|
11569 | ;; |
---|
11570 | *) |
---|
11571 | test "$with_gnu_ld" != yes && break |
---|
11572 | ;; |
---|
11573 | esac |
---|
11574 | fi |
---|
11575 | done |
---|
11576 | IFS="$lt_save_ifs" |
---|
11577 | else |
---|
11578 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
11579 | fi |
---|
11580 | fi |
---|
11581 | |
---|
11582 | LD="$lt_cv_path_LD" |
---|
11583 | if test -n "$LD"; then |
---|
11584 | { echo "$as_me:$LINENO: result: $LD" >&5 |
---|
11585 | echo "${ECHO_T}$LD" >&6; } |
---|
11586 | else |
---|
11587 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
11588 | echo "${ECHO_T}no" >&6; } |
---|
11589 | fi |
---|
11590 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
11591 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
11592 | { (exit 1); exit 1; }; } |
---|
11593 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
11594 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
---|
11595 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
11596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11597 | else |
---|
11598 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
11599 | case `$LD -v 2>&1 </dev/null` in |
---|
11600 | *GNU* | *'with BFD'*) |
---|
11601 | lt_cv_prog_gnu_ld=yes |
---|
11602 | ;; |
---|
11603 | *) |
---|
11604 | lt_cv_prog_gnu_ld=no |
---|
11605 | ;; |
---|
11606 | esac |
---|
11607 | fi |
---|
11608 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
11609 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
---|
11610 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
11611 | |
---|
11612 | |
---|
11613 | |
---|
11614 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
---|
11615 | # archiving commands below assume that GNU ld is being used. |
---|
11616 | if test "$with_gnu_ld" = yes; then |
---|
11617 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
11618 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
11619 | |
---|
11620 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
11621 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
11622 | |
---|
11623 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
11624 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
---|
11625 | # investigate it a little bit more. (MM) |
---|
11626 | wlarc='${wl}' |
---|
11627 | |
---|
11628 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
11629 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
---|
11630 | grep 'no-whole-archive' > /dev/null; then |
---|
11631 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
11632 | else |
---|
11633 | whole_archive_flag_spec_CXX= |
---|
11634 | fi |
---|
11635 | else |
---|
11636 | with_gnu_ld=no |
---|
11637 | wlarc= |
---|
11638 | |
---|
11639 | # A generic and very simple default shared library creation |
---|
11640 | # command for GNU C++ for the case where it uses the native |
---|
11641 | # linker, instead of GNU ld. If possible, this setting should |
---|
11642 | # overridden to take advantage of the native linker features on |
---|
11643 | # the platform it is being used on. |
---|
11644 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
11645 | fi |
---|
11646 | |
---|
11647 | # Commands to make compiler produce verbose output that lists |
---|
11648 | # what "hidden" libraries, object files and flags are used when |
---|
11649 | # linking a shared library. |
---|
11650 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
11651 | |
---|
11652 | else |
---|
11653 | GXX=no |
---|
11654 | with_gnu_ld=no |
---|
11655 | wlarc= |
---|
11656 | fi |
---|
11657 | |
---|
11658 | # PORTME: fill in a description of your system's C++ link characteristics |
---|
11659 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
11660 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
11661 | ld_shlibs_CXX=yes |
---|
11662 | case $host_os in |
---|
11663 | aix3*) |
---|
11664 | # FIXME: insert proper C++ library support |
---|
11665 | ld_shlibs_CXX=no |
---|
11666 | ;; |
---|
11667 | aix4* | aix5*) |
---|
11668 | if test "$host_cpu" = ia64; then |
---|
11669 | # On IA64, the linker does run time linking by default, so we don't |
---|
11670 | # have to do anything special. |
---|
11671 | aix_use_runtimelinking=no |
---|
11672 | exp_sym_flag='-Bexport' |
---|
11673 | no_entry_flag="" |
---|
11674 | else |
---|
11675 | aix_use_runtimelinking=no |
---|
11676 | |
---|
11677 | # Test if we are trying to use run time linking or normal |
---|
11678 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
11679 | # need to do runtime linking. |
---|
11680 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
11681 | for ld_flag in $LDFLAGS; do |
---|
11682 | case $ld_flag in |
---|
11683 | *-brtl*) |
---|
11684 | aix_use_runtimelinking=yes |
---|
11685 | break |
---|
11686 | ;; |
---|
11687 | esac |
---|
11688 | done |
---|
11689 | ;; |
---|
11690 | esac |
---|
11691 | |
---|
11692 | exp_sym_flag='-bexport' |
---|
11693 | no_entry_flag='-bnoentry' |
---|
11694 | fi |
---|
11695 | |
---|
11696 | # When large executables or shared objects are built, AIX ld can |
---|
11697 | # have problems creating the table of contents. If linking a library |
---|
11698 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
11699 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
11700 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
11701 | |
---|
11702 | archive_cmds_CXX='' |
---|
11703 | hardcode_direct_CXX=yes |
---|
11704 | hardcode_libdir_separator_CXX=':' |
---|
11705 | link_all_deplibs_CXX=yes |
---|
11706 | |
---|
11707 | if test "$GXX" = yes; then |
---|
11708 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
11709 | # We only want to do this on AIX 4.2 and lower, the check |
---|
11710 | # below for broken collect2 doesn't work under 4.3+ |
---|
11711 | collect2name=`${CC} -print-prog-name=collect2` |
---|
11712 | if test -f "$collect2name" && \ |
---|
11713 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
11714 | then |
---|
11715 | # We have reworked collect2 |
---|
11716 | : |
---|
11717 | else |
---|
11718 | # We have old collect2 |
---|
11719 | hardcode_direct_CXX=unsupported |
---|
11720 | # It fails to find uninstalled libraries when the uninstalled |
---|
11721 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
11722 | # to unsupported forces relinking |
---|
11723 | hardcode_minus_L_CXX=yes |
---|
11724 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
11725 | hardcode_libdir_separator_CXX= |
---|
11726 | fi |
---|
11727 | ;; |
---|
11728 | esac |
---|
11729 | shared_flag='-shared' |
---|
11730 | if test "$aix_use_runtimelinking" = yes; then |
---|
11731 | shared_flag="$shared_flag "'${wl}-G' |
---|
11732 | fi |
---|
11733 | else |
---|
11734 | # not using gcc |
---|
11735 | if test "$host_cpu" = ia64; then |
---|
11736 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
11737 | # chokes on -Wl,-G. The following line is correct: |
---|
11738 | shared_flag='-G' |
---|
11739 | else |
---|
11740 | if test "$aix_use_runtimelinking" = yes; then |
---|
11741 | shared_flag='${wl}-G' |
---|
11742 | else |
---|
11743 | shared_flag='${wl}-bM:SRE' |
---|
11744 | fi |
---|
11745 | fi |
---|
11746 | fi |
---|
11747 | |
---|
11748 | # It seems that -bexpall does not export symbols beginning with |
---|
11749 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
11750 | always_export_symbols_CXX=yes |
---|
11751 | if test "$aix_use_runtimelinking" = yes; then |
---|
11752 | # Warning - without using the other runtime loading flags (-brtl), |
---|
11753 | # -berok will link without error, but may produce a broken library. |
---|
11754 | allow_undefined_flag_CXX='-berok' |
---|
11755 | # Determine the default libpath from the value encoded in an empty executable. |
---|
11756 | cat >conftest.$ac_ext <<_ACEOF |
---|
11757 | /* confdefs.h. */ |
---|
11758 | _ACEOF |
---|
11759 | cat confdefs.h >>conftest.$ac_ext |
---|
11760 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11761 | /* end confdefs.h. */ |
---|
11762 | |
---|
11763 | int |
---|
11764 | main () |
---|
11765 | { |
---|
11766 | |
---|
11767 | ; |
---|
11768 | return 0; |
---|
11769 | } |
---|
11770 | _ACEOF |
---|
11771 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
11772 | if { (ac_try="$ac_link" |
---|
11773 | case "(($ac_try" in |
---|
11774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11775 | *) ac_try_echo=$ac_try;; |
---|
11776 | esac |
---|
11777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11778 | (eval "$ac_link") 2>conftest.er1 |
---|
11779 | ac_status=$? |
---|
11780 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11781 | rm -f conftest.er1 |
---|
11782 | cat conftest.err >&5 |
---|
11783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11784 | (exit $ac_status); } && { |
---|
11785 | test -z "$ac_cxx_werror_flag" || |
---|
11786 | test ! -s conftest.err |
---|
11787 | } && test -s conftest$ac_exeext && |
---|
11788 | $as_test_x conftest$ac_exeext; then |
---|
11789 | |
---|
11790 | lt_aix_libpath_sed=' |
---|
11791 | /Import File Strings/,/^$/ { |
---|
11792 | /^0/ { |
---|
11793 | s/^0 *\(.*\)$/\1/ |
---|
11794 | p |
---|
11795 | } |
---|
11796 | }' |
---|
11797 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
11798 | # Check for a 64-bit object if we didn't find anything. |
---|
11799 | if test -z "$aix_libpath"; then |
---|
11800 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
11801 | fi |
---|
11802 | else |
---|
11803 | echo "$as_me: failed program was:" >&5 |
---|
11804 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11805 | |
---|
11806 | |
---|
11807 | fi |
---|
11808 | |
---|
11809 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
11810 | conftest$ac_exeext conftest.$ac_ext |
---|
11811 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
11812 | |
---|
11813 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
11814 | |
---|
11815 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
11816 | else |
---|
11817 | if test "$host_cpu" = ia64; then |
---|
11818 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
---|
11819 | allow_undefined_flag_CXX="-z nodefs" |
---|
11820 | archive_expsym_cmds_CXX="\$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" |
---|
11821 | else |
---|
11822 | # Determine the default libpath from the value encoded in an empty executable. |
---|
11823 | cat >conftest.$ac_ext <<_ACEOF |
---|
11824 | /* confdefs.h. */ |
---|
11825 | _ACEOF |
---|
11826 | cat confdefs.h >>conftest.$ac_ext |
---|
11827 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11828 | /* end confdefs.h. */ |
---|
11829 | |
---|
11830 | int |
---|
11831 | main () |
---|
11832 | { |
---|
11833 | |
---|
11834 | ; |
---|
11835 | return 0; |
---|
11836 | } |
---|
11837 | _ACEOF |
---|
11838 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
11839 | if { (ac_try="$ac_link" |
---|
11840 | case "(($ac_try" in |
---|
11841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11842 | *) ac_try_echo=$ac_try;; |
---|
11843 | esac |
---|
11844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11845 | (eval "$ac_link") 2>conftest.er1 |
---|
11846 | ac_status=$? |
---|
11847 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11848 | rm -f conftest.er1 |
---|
11849 | cat conftest.err >&5 |
---|
11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11851 | (exit $ac_status); } && { |
---|
11852 | test -z "$ac_cxx_werror_flag" || |
---|
11853 | test ! -s conftest.err |
---|
11854 | } && test -s conftest$ac_exeext && |
---|
11855 | $as_test_x conftest$ac_exeext; then |
---|
11856 | |
---|
11857 | lt_aix_libpath_sed=' |
---|
11858 | /Import File Strings/,/^$/ { |
---|
11859 | /^0/ { |
---|
11860 | s/^0 *\(.*\)$/\1/ |
---|
11861 | p |
---|
11862 | } |
---|
11863 | }' |
---|
11864 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
11865 | # Check for a 64-bit object if we didn't find anything. |
---|
11866 | if test -z "$aix_libpath"; then |
---|
11867 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
11868 | fi |
---|
11869 | else |
---|
11870 | echo "$as_me: failed program was:" >&5 |
---|
11871 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11872 | |
---|
11873 | |
---|
11874 | fi |
---|
11875 | |
---|
11876 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
11877 | conftest$ac_exeext conftest.$ac_ext |
---|
11878 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
11879 | |
---|
11880 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
11881 | # Warning - without using the other run time loading flags, |
---|
11882 | # -berok will link without error, but may produce a broken library. |
---|
11883 | no_undefined_flag_CXX=' ${wl}-bernotok' |
---|
11884 | allow_undefined_flag_CXX=' ${wl}-berok' |
---|
11885 | # Exported symbols can be pulled into shared objects from archives |
---|
11886 | whole_archive_flag_spec_CXX='$convenience' |
---|
11887 | archive_cmds_need_lc_CXX=yes |
---|
11888 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
11889 | archive_expsym_cmds_CXX="\$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' |
---|
11890 | fi |
---|
11891 | fi |
---|
11892 | ;; |
---|
11893 | |
---|
11894 | beos*) |
---|
11895 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
11896 | allow_undefined_flag_CXX=unsupported |
---|
11897 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
11898 | # support --undefined. This deserves some investigation. FIXME |
---|
11899 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
11900 | else |
---|
11901 | ld_shlibs_CXX=no |
---|
11902 | fi |
---|
11903 | ;; |
---|
11904 | |
---|
11905 | chorus*) |
---|
11906 | case $cc_basename in |
---|
11907 | *) |
---|
11908 | # FIXME: insert proper C++ library support |
---|
11909 | ld_shlibs_CXX=no |
---|
11910 | ;; |
---|
11911 | esac |
---|
11912 | ;; |
---|
11913 | |
---|
11914 | cygwin* | mingw* | pw32*) |
---|
11915 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
---|
11916 | # as there is no search path for DLLs. |
---|
11917 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
11918 | allow_undefined_flag_CXX=unsupported |
---|
11919 | always_export_symbols_CXX=no |
---|
11920 | enable_shared_with_static_runtimes_CXX=yes |
---|
11921 | |
---|
11922 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
11923 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
11924 | # If the export-symbols file already is a .def file (1st line |
---|
11925 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
11926 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
11927 | cp $export_symbols $output_objdir/$soname.def; |
---|
11928 | else |
---|
11929 | echo EXPORTS > $output_objdir/$soname.def; |
---|
11930 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
11931 | fi~ |
---|
11932 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
11933 | else |
---|
11934 | ld_shlibs_CXX=no |
---|
11935 | fi |
---|
11936 | ;; |
---|
11937 | darwin* | rhapsody*) |
---|
11938 | case $host_os in |
---|
11939 | rhapsody* | darwin1.[012]) |
---|
11940 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
---|
11941 | ;; |
---|
11942 | *) # Darwin 1.3 on |
---|
11943 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
11944 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
11945 | else |
---|
11946 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
11947 | 10.[012]) |
---|
11948 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
11949 | ;; |
---|
11950 | 10.*) |
---|
11951 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
---|
11952 | ;; |
---|
11953 | esac |
---|
11954 | fi |
---|
11955 | ;; |
---|
11956 | esac |
---|
11957 | archive_cmds_need_lc_CXX=no |
---|
11958 | hardcode_direct_CXX=no |
---|
11959 | hardcode_automatic_CXX=yes |
---|
11960 | hardcode_shlibpath_var_CXX=unsupported |
---|
11961 | whole_archive_flag_spec_CXX='' |
---|
11962 | link_all_deplibs_CXX=yes |
---|
11963 | |
---|
11964 | if test "$GXX" = yes ; then |
---|
11965 | lt_int_apple_cc_single_mod=no |
---|
11966 | output_verbose_link_cmd='echo' |
---|
11967 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
---|
11968 | lt_int_apple_cc_single_mod=yes |
---|
11969 | fi |
---|
11970 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
11971 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
11972 | else |
---|
11973 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
11974 | fi |
---|
11975 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
11976 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
11977 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
11978 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
11979 | else |
---|
11980 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
11981 | fi |
---|
11982 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
11983 | else |
---|
11984 | case $cc_basename in |
---|
11985 | xlc*) |
---|
11986 | output_verbose_link_cmd='echo' |
---|
11987 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
---|
11988 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
11989 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
11990 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
11991 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
11992 | ;; |
---|
11993 | *) |
---|
11994 | ld_shlibs_CXX=no |
---|
11995 | ;; |
---|
11996 | esac |
---|
11997 | fi |
---|
11998 | ;; |
---|
11999 | |
---|
12000 | dgux*) |
---|
12001 | case $cc_basename in |
---|
12002 | ec++*) |
---|
12003 | # FIXME: insert proper C++ library support |
---|
12004 | ld_shlibs_CXX=no |
---|
12005 | ;; |
---|
12006 | ghcx*) |
---|
12007 | # Green Hills C++ Compiler |
---|
12008 | # FIXME: insert proper C++ library support |
---|
12009 | ld_shlibs_CXX=no |
---|
12010 | ;; |
---|
12011 | *) |
---|
12012 | # FIXME: insert proper C++ library support |
---|
12013 | ld_shlibs_CXX=no |
---|
12014 | ;; |
---|
12015 | esac |
---|
12016 | ;; |
---|
12017 | freebsd[12]*) |
---|
12018 | # C++ shared libraries reported to be fairly broken before switch to ELF |
---|
12019 | ld_shlibs_CXX=no |
---|
12020 | ;; |
---|
12021 | freebsd-elf*) |
---|
12022 | archive_cmds_need_lc_CXX=no |
---|
12023 | ;; |
---|
12024 | freebsd* | dragonfly*) |
---|
12025 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
---|
12026 | # conventions |
---|
12027 | ld_shlibs_CXX=yes |
---|
12028 | ;; |
---|
12029 | gnu*) |
---|
12030 | ;; |
---|
12031 | hpux9*) |
---|
12032 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
12033 | hardcode_libdir_separator_CXX=: |
---|
12034 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
12035 | hardcode_direct_CXX=yes |
---|
12036 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
12037 | # but as the default |
---|
12038 | # location of the library. |
---|
12039 | |
---|
12040 | case $cc_basename in |
---|
12041 | CC*) |
---|
12042 | # FIXME: insert proper C++ library support |
---|
12043 | ld_shlibs_CXX=no |
---|
12044 | ;; |
---|
12045 | aCC*) |
---|
12046 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
---|
12047 | # Commands to make compiler produce verbose output that lists |
---|
12048 | # what "hidden" libraries, object files and flags are used when |
---|
12049 | # linking a shared library. |
---|
12050 | # |
---|
12051 | # There doesn't appear to be a way to prevent this compiler from |
---|
12052 | # explicitly linking system object files so we need to strip them |
---|
12053 | # from the output so that they don't get included in the library |
---|
12054 | # dependencies. |
---|
12055 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
12056 | ;; |
---|
12057 | *) |
---|
12058 | if test "$GXX" = yes; then |
---|
12059 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
---|
12060 | else |
---|
12061 | # FIXME: insert proper C++ library support |
---|
12062 | ld_shlibs_CXX=no |
---|
12063 | fi |
---|
12064 | ;; |
---|
12065 | esac |
---|
12066 | ;; |
---|
12067 | hpux10*|hpux11*) |
---|
12068 | if test $with_gnu_ld = no; then |
---|
12069 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
12070 | hardcode_libdir_separator_CXX=: |
---|
12071 | |
---|
12072 | case $host_cpu in |
---|
12073 | hppa*64*|ia64*) ;; |
---|
12074 | *) |
---|
12075 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
12076 | ;; |
---|
12077 | esac |
---|
12078 | fi |
---|
12079 | case $host_cpu in |
---|
12080 | hppa*64*|ia64*) |
---|
12081 | hardcode_direct_CXX=no |
---|
12082 | hardcode_shlibpath_var_CXX=no |
---|
12083 | ;; |
---|
12084 | *) |
---|
12085 | hardcode_direct_CXX=yes |
---|
12086 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
12087 | # but as the default |
---|
12088 | # location of the library. |
---|
12089 | ;; |
---|
12090 | esac |
---|
12091 | |
---|
12092 | case $cc_basename in |
---|
12093 | CC*) |
---|
12094 | # FIXME: insert proper C++ library support |
---|
12095 | ld_shlibs_CXX=no |
---|
12096 | ;; |
---|
12097 | aCC*) |
---|
12098 | case $host_cpu in |
---|
12099 | hppa*64*) |
---|
12100 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
12101 | ;; |
---|
12102 | ia64*) |
---|
12103 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
12104 | ;; |
---|
12105 | *) |
---|
12106 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
12107 | ;; |
---|
12108 | esac |
---|
12109 | # Commands to make compiler produce verbose output that lists |
---|
12110 | # what "hidden" libraries, object files and flags are used when |
---|
12111 | # linking a shared library. |
---|
12112 | # |
---|
12113 | # There doesn't appear to be a way to prevent this compiler from |
---|
12114 | # explicitly linking system object files so we need to strip them |
---|
12115 | # from the output so that they don't get included in the library |
---|
12116 | # dependencies. |
---|
12117 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
12118 | ;; |
---|
12119 | *) |
---|
12120 | if test "$GXX" = yes; then |
---|
12121 | if test $with_gnu_ld = no; then |
---|
12122 | case $host_cpu in |
---|
12123 | hppa*64*) |
---|
12124 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
12125 | ;; |
---|
12126 | ia64*) |
---|
12127 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
12128 | ;; |
---|
12129 | *) |
---|
12130 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
12131 | ;; |
---|
12132 | esac |
---|
12133 | fi |
---|
12134 | else |
---|
12135 | # FIXME: insert proper C++ library support |
---|
12136 | ld_shlibs_CXX=no |
---|
12137 | fi |
---|
12138 | ;; |
---|
12139 | esac |
---|
12140 | ;; |
---|
12141 | interix[3-9]*) |
---|
12142 | hardcode_direct_CXX=no |
---|
12143 | hardcode_shlibpath_var_CXX=no |
---|
12144 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
12145 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
12146 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
12147 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
12148 | # default) and relocated if they conflict, which is a slow very memory |
---|
12149 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
12150 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
12151 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
12152 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
12153 | archive_expsym_cmds_CXX='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' |
---|
12154 | ;; |
---|
12155 | irix5* | irix6*) |
---|
12156 | case $cc_basename in |
---|
12157 | CC*) |
---|
12158 | # SGI C++ |
---|
12159 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
12160 | |
---|
12161 | # Archives containing C++ object files must be created using |
---|
12162 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
---|
12163 | # necessary to make sure instantiated templates are included |
---|
12164 | # in the archive. |
---|
12165 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
---|
12166 | ;; |
---|
12167 | *) |
---|
12168 | if test "$GXX" = yes; then |
---|
12169 | if test "$with_gnu_ld" = no; then |
---|
12170 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
12171 | else |
---|
12172 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
---|
12173 | fi |
---|
12174 | fi |
---|
12175 | link_all_deplibs_CXX=yes |
---|
12176 | ;; |
---|
12177 | esac |
---|
12178 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
12179 | hardcode_libdir_separator_CXX=: |
---|
12180 | ;; |
---|
12181 | linux* | k*bsd*-gnu) |
---|
12182 | case $cc_basename in |
---|
12183 | KCC*) |
---|
12184 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
12185 | |
---|
12186 | # KCC will only create a shared library if the output file |
---|
12187 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
12188 | # to its proper name (with version) after linking. |
---|
12189 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
---|
12190 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
---|
12191 | # Commands to make compiler produce verbose output that lists |
---|
12192 | # what "hidden" libraries, object files and flags are used when |
---|
12193 | # linking a shared library. |
---|
12194 | # |
---|
12195 | # There doesn't appear to be a way to prevent this compiler from |
---|
12196 | # explicitly linking system object files so we need to strip them |
---|
12197 | # from the output so that they don't get included in the library |
---|
12198 | # dependencies. |
---|
12199 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
12200 | |
---|
12201 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
---|
12202 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
12203 | |
---|
12204 | # Archives containing C++ object files must be created using |
---|
12205 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
12206 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
12207 | ;; |
---|
12208 | icpc*) |
---|
12209 | # Intel C++ |
---|
12210 | with_gnu_ld=yes |
---|
12211 | # version 8.0 and above of icpc choke on multiply defined symbols |
---|
12212 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
---|
12213 | # earlier do not add the objects themselves. |
---|
12214 | case `$CC -V 2>&1` in |
---|
12215 | *"Version 7."*) |
---|
12216 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
12217 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
12218 | ;; |
---|
12219 | *) # Version 8.0 or newer |
---|
12220 | tmp_idyn= |
---|
12221 | case $host_cpu in |
---|
12222 | ia64*) tmp_idyn=' -i_dynamic';; |
---|
12223 | esac |
---|
12224 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
12225 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
12226 | ;; |
---|
12227 | esac |
---|
12228 | archive_cmds_need_lc_CXX=no |
---|
12229 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
12230 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
12231 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
---|
12232 | ;; |
---|
12233 | pgCC*) |
---|
12234 | # Portland Group C++ compiler |
---|
12235 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
---|
12236 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
---|
12237 | |
---|
12238 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
12239 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
12240 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
12241 | ;; |
---|
12242 | cxx*) |
---|
12243 | # Compaq C++ |
---|
12244 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
12245 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
---|
12246 | |
---|
12247 | runpath_var=LD_RUN_PATH |
---|
12248 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
12249 | hardcode_libdir_separator_CXX=: |
---|
12250 | |
---|
12251 | # Commands to make compiler produce verbose output that lists |
---|
12252 | # what "hidden" libraries, object files and flags are used when |
---|
12253 | # linking a shared library. |
---|
12254 | # |
---|
12255 | # There doesn't appear to be a way to prevent this compiler from |
---|
12256 | # explicitly linking system object files so we need to strip them |
---|
12257 | # from the output so that they don't get included in the library |
---|
12258 | # dependencies. |
---|
12259 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
12260 | ;; |
---|
12261 | *) |
---|
12262 | case `$CC -V 2>&1 | sed 5q` in |
---|
12263 | *Sun\ C*) |
---|
12264 | # Sun C++ 5.9 |
---|
12265 | no_undefined_flag_CXX=' -zdefs' |
---|
12266 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
12267 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
---|
12268 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
12269 | whole_archive_flag_spec_CXX='${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' |
---|
12270 | |
---|
12271 | # Not sure whether something based on |
---|
12272 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
---|
12273 | # would be better. |
---|
12274 | output_verbose_link_cmd='echo' |
---|
12275 | |
---|
12276 | # Archives containing C++ object files must be created using |
---|
12277 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
---|
12278 | # necessary to make sure instantiated templates are included |
---|
12279 | # in the archive. |
---|
12280 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
---|
12281 | ;; |
---|
12282 | esac |
---|
12283 | ;; |
---|
12284 | esac |
---|
12285 | ;; |
---|
12286 | lynxos*) |
---|
12287 | # FIXME: insert proper C++ library support |
---|
12288 | ld_shlibs_CXX=no |
---|
12289 | ;; |
---|
12290 | m88k*) |
---|
12291 | # FIXME: insert proper C++ library support |
---|
12292 | ld_shlibs_CXX=no |
---|
12293 | ;; |
---|
12294 | mvs*) |
---|
12295 | case $cc_basename in |
---|
12296 | cxx*) |
---|
12297 | # FIXME: insert proper C++ library support |
---|
12298 | ld_shlibs_CXX=no |
---|
12299 | ;; |
---|
12300 | *) |
---|
12301 | # FIXME: insert proper C++ library support |
---|
12302 | ld_shlibs_CXX=no |
---|
12303 | ;; |
---|
12304 | esac |
---|
12305 | ;; |
---|
12306 | netbsd*) |
---|
12307 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
12308 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
---|
12309 | wlarc= |
---|
12310 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
12311 | hardcode_direct_CXX=yes |
---|
12312 | hardcode_shlibpath_var_CXX=no |
---|
12313 | fi |
---|
12314 | # Workaround some broken pre-1.5 toolchains |
---|
12315 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
---|
12316 | ;; |
---|
12317 | openbsd2*) |
---|
12318 | # C++ shared libraries are fairly broken |
---|
12319 | ld_shlibs_CXX=no |
---|
12320 | ;; |
---|
12321 | openbsd*) |
---|
12322 | if test -f /usr/libexec/ld.so; then |
---|
12323 | hardcode_direct_CXX=yes |
---|
12324 | hardcode_shlibpath_var_CXX=no |
---|
12325 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
12326 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
12327 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
12328 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
---|
12329 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
12330 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
12331 | fi |
---|
12332 | output_verbose_link_cmd='echo' |
---|
12333 | else |
---|
12334 | ld_shlibs_CXX=no |
---|
12335 | fi |
---|
12336 | ;; |
---|
12337 | osf3*) |
---|
12338 | case $cc_basename in |
---|
12339 | KCC*) |
---|
12340 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
12341 | |
---|
12342 | # KCC will only create a shared library if the output file |
---|
12343 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
12344 | # to its proper name (with version) after linking. |
---|
12345 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
---|
12346 | |
---|
12347 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
12348 | hardcode_libdir_separator_CXX=: |
---|
12349 | |
---|
12350 | # Archives containing C++ object files must be created using |
---|
12351 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
12352 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
12353 | |
---|
12354 | ;; |
---|
12355 | RCC*) |
---|
12356 | # Rational C++ 2.4.1 |
---|
12357 | # FIXME: insert proper C++ library support |
---|
12358 | ld_shlibs_CXX=no |
---|
12359 | ;; |
---|
12360 | cxx*) |
---|
12361 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
12362 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
12363 | |
---|
12364 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
12365 | hardcode_libdir_separator_CXX=: |
---|
12366 | |
---|
12367 | # Commands to make compiler produce verbose output that lists |
---|
12368 | # what "hidden" libraries, object files and flags are used when |
---|
12369 | # linking a shared library. |
---|
12370 | # |
---|
12371 | # There doesn't appear to be a way to prevent this compiler from |
---|
12372 | # explicitly linking system object files so we need to strip them |
---|
12373 | # from the output so that they don't get included in the library |
---|
12374 | # dependencies. |
---|
12375 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
12376 | ;; |
---|
12377 | *) |
---|
12378 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
12379 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
12380 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
12381 | |
---|
12382 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
12383 | hardcode_libdir_separator_CXX=: |
---|
12384 | |
---|
12385 | # Commands to make compiler produce verbose output that lists |
---|
12386 | # what "hidden" libraries, object files and flags are used when |
---|
12387 | # linking a shared library. |
---|
12388 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
12389 | |
---|
12390 | else |
---|
12391 | # FIXME: insert proper C++ library support |
---|
12392 | ld_shlibs_CXX=no |
---|
12393 | fi |
---|
12394 | ;; |
---|
12395 | esac |
---|
12396 | ;; |
---|
12397 | osf4* | osf5*) |
---|
12398 | case $cc_basename in |
---|
12399 | KCC*) |
---|
12400 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
12401 | |
---|
12402 | # KCC will only create a shared library if the output file |
---|
12403 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
12404 | # to its proper name (with version) after linking. |
---|
12405 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
---|
12406 | |
---|
12407 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
12408 | hardcode_libdir_separator_CXX=: |
---|
12409 | |
---|
12410 | # Archives containing C++ object files must be created using |
---|
12411 | # the KAI C++ compiler. |
---|
12412 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
---|
12413 | ;; |
---|
12414 | RCC*) |
---|
12415 | # Rational C++ 2.4.1 |
---|
12416 | # FIXME: insert proper C++ library support |
---|
12417 | ld_shlibs_CXX=no |
---|
12418 | ;; |
---|
12419 | cxx*) |
---|
12420 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
---|
12421 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
12422 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
---|
12423 | echo "-hidden">> $lib.exp~ |
---|
12424 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
---|
12425 | $rm $lib.exp' |
---|
12426 | |
---|
12427 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
12428 | hardcode_libdir_separator_CXX=: |
---|
12429 | |
---|
12430 | # Commands to make compiler produce verbose output that lists |
---|
12431 | # what "hidden" libraries, object files and flags are used when |
---|
12432 | # linking a shared library. |
---|
12433 | # |
---|
12434 | # There doesn't appear to be a way to prevent this compiler from |
---|
12435 | # explicitly linking system object files so we need to strip them |
---|
12436 | # from the output so that they don't get included in the library |
---|
12437 | # dependencies. |
---|
12438 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
12439 | ;; |
---|
12440 | *) |
---|
12441 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
12442 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
12443 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
12444 | |
---|
12445 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
12446 | hardcode_libdir_separator_CXX=: |
---|
12447 | |
---|
12448 | # Commands to make compiler produce verbose output that lists |
---|
12449 | # what "hidden" libraries, object files and flags are used when |
---|
12450 | # linking a shared library. |
---|
12451 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
12452 | |
---|
12453 | else |
---|
12454 | # FIXME: insert proper C++ library support |
---|
12455 | ld_shlibs_CXX=no |
---|
12456 | fi |
---|
12457 | ;; |
---|
12458 | esac |
---|
12459 | ;; |
---|
12460 | psos*) |
---|
12461 | # FIXME: insert proper C++ library support |
---|
12462 | ld_shlibs_CXX=no |
---|
12463 | ;; |
---|
12464 | sunos4*) |
---|
12465 | case $cc_basename in |
---|
12466 | CC*) |
---|
12467 | # Sun C++ 4.x |
---|
12468 | # FIXME: insert proper C++ library support |
---|
12469 | ld_shlibs_CXX=no |
---|
12470 | ;; |
---|
12471 | lcc*) |
---|
12472 | # Lucid |
---|
12473 | # FIXME: insert proper C++ library support |
---|
12474 | ld_shlibs_CXX=no |
---|
12475 | ;; |
---|
12476 | *) |
---|
12477 | # FIXME: insert proper C++ library support |
---|
12478 | ld_shlibs_CXX=no |
---|
12479 | ;; |
---|
12480 | esac |
---|
12481 | ;; |
---|
12482 | solaris*) |
---|
12483 | case $cc_basename in |
---|
12484 | CC*) |
---|
12485 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
12486 | archive_cmds_need_lc_CXX=yes |
---|
12487 | no_undefined_flag_CXX=' -zdefs' |
---|
12488 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
12489 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
12490 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
12491 | |
---|
12492 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
12493 | hardcode_shlibpath_var_CXX=no |
---|
12494 | case $host_os in |
---|
12495 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
12496 | *) |
---|
12497 | # The compiler driver will combine and reorder linker options, |
---|
12498 | # but understands `-z linker_flag'. |
---|
12499 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
12500 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
---|
12501 | ;; |
---|
12502 | esac |
---|
12503 | link_all_deplibs_CXX=yes |
---|
12504 | |
---|
12505 | output_verbose_link_cmd='echo' |
---|
12506 | |
---|
12507 | # Archives containing C++ object files must be created using |
---|
12508 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
---|
12509 | # necessary to make sure instantiated templates are included |
---|
12510 | # in the archive. |
---|
12511 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
---|
12512 | ;; |
---|
12513 | gcx*) |
---|
12514 | # Green Hills C++ Compiler |
---|
12515 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
12516 | |
---|
12517 | # The C++ compiler must be used to create the archive. |
---|
12518 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
---|
12519 | ;; |
---|
12520 | *) |
---|
12521 | # GNU C++ compiler with Solaris linker |
---|
12522 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
12523 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
---|
12524 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
---|
12525 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
12526 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
12527 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
12528 | |
---|
12529 | # Commands to make compiler produce verbose output that lists |
---|
12530 | # what "hidden" libraries, object files and flags are used when |
---|
12531 | # linking a shared library. |
---|
12532 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
12533 | else |
---|
12534 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
---|
12535 | # platform. |
---|
12536 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
12537 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
12538 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
12539 | |
---|
12540 | # Commands to make compiler produce verbose output that lists |
---|
12541 | # what "hidden" libraries, object files and flags are used when |
---|
12542 | # linking a shared library. |
---|
12543 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
12544 | fi |
---|
12545 | |
---|
12546 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
---|
12547 | case $host_os in |
---|
12548 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
12549 | *) |
---|
12550 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
---|
12551 | ;; |
---|
12552 | esac |
---|
12553 | fi |
---|
12554 | ;; |
---|
12555 | esac |
---|
12556 | ;; |
---|
12557 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
---|
12558 | no_undefined_flag_CXX='${wl}-z,text' |
---|
12559 | archive_cmds_need_lc_CXX=no |
---|
12560 | hardcode_shlibpath_var_CXX=no |
---|
12561 | runpath_var='LD_RUN_PATH' |
---|
12562 | |
---|
12563 | case $cc_basename in |
---|
12564 | CC*) |
---|
12565 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
12566 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
12567 | ;; |
---|
12568 | *) |
---|
12569 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
12570 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
12571 | ;; |
---|
12572 | esac |
---|
12573 | ;; |
---|
12574 | sysv5* | sco3.2v5* | sco5v6*) |
---|
12575 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
12576 | # link with -lc, and that would cause any symbols used from libc to |
---|
12577 | # always be unresolved, which means just about no library would |
---|
12578 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
12579 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
12580 | # as -z defs. |
---|
12581 | # For security reasons, it is highly recommended that you always |
---|
12582 | # use absolute paths for naming shared libraries, and exclude the |
---|
12583 | # DT_RUNPATH tag from executables and libraries. But doing so |
---|
12584 | # requires that you compile everything twice, which is a pain. |
---|
12585 | # So that behaviour is only enabled if SCOABSPATH is set to a |
---|
12586 | # non-empty value in the environment. Most likely only useful for |
---|
12587 | # creating official distributions of packages. |
---|
12588 | # This is a hack until libtool officially supports absolute path |
---|
12589 | # names for shared libraries. |
---|
12590 | no_undefined_flag_CXX='${wl}-z,text' |
---|
12591 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
---|
12592 | archive_cmds_need_lc_CXX=no |
---|
12593 | hardcode_shlibpath_var_CXX=no |
---|
12594 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
12595 | hardcode_libdir_separator_CXX=':' |
---|
12596 | link_all_deplibs_CXX=yes |
---|
12597 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
---|
12598 | runpath_var='LD_RUN_PATH' |
---|
12599 | |
---|
12600 | case $cc_basename in |
---|
12601 | CC*) |
---|
12602 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
12603 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
12604 | ;; |
---|
12605 | *) |
---|
12606 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
12607 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
12608 | ;; |
---|
12609 | esac |
---|
12610 | ;; |
---|
12611 | tandem*) |
---|
12612 | case $cc_basename in |
---|
12613 | NCC*) |
---|
12614 | # NonStop-UX NCC 3.20 |
---|
12615 | # FIXME: insert proper C++ library support |
---|
12616 | ld_shlibs_CXX=no |
---|
12617 | ;; |
---|
12618 | *) |
---|
12619 | # FIXME: insert proper C++ library support |
---|
12620 | ld_shlibs_CXX=no |
---|
12621 | ;; |
---|
12622 | esac |
---|
12623 | ;; |
---|
12624 | vxworks*) |
---|
12625 | # FIXME: insert proper C++ library support |
---|
12626 | ld_shlibs_CXX=no |
---|
12627 | ;; |
---|
12628 | *) |
---|
12629 | # FIXME: insert proper C++ library support |
---|
12630 | ld_shlibs_CXX=no |
---|
12631 | ;; |
---|
12632 | esac |
---|
12633 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
12634 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
---|
12635 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
12636 | |
---|
12637 | GCC_CXX="$GXX" |
---|
12638 | LD_CXX="$LD" |
---|
12639 | |
---|
12640 | |
---|
12641 | cat > conftest.$ac_ext <<EOF |
---|
12642 | class Foo |
---|
12643 | { |
---|
12644 | public: |
---|
12645 | Foo (void) { a = 0; } |
---|
12646 | private: |
---|
12647 | int a; |
---|
12648 | }; |
---|
12649 | EOF |
---|
12650 | |
---|
12651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
12652 | (eval $ac_compile) 2>&5 |
---|
12653 | ac_status=$? |
---|
12654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12655 | (exit $ac_status); }; then |
---|
12656 | # Parse the compiler output and extract the necessary |
---|
12657 | # objects, libraries and library flags. |
---|
12658 | |
---|
12659 | # Sentinel used to keep track of whether or not we are before |
---|
12660 | # the conftest object file. |
---|
12661 | pre_test_object_deps_done=no |
---|
12662 | |
---|
12663 | # The `*' in the case matches for architectures that use `case' in |
---|
12664 | # $output_verbose_cmd can trigger glob expansion during the loop |
---|
12665 | # eval without this substitution. |
---|
12666 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
---|
12667 | |
---|
12668 | for p in `eval $output_verbose_link_cmd`; do |
---|
12669 | case $p in |
---|
12670 | |
---|
12671 | -L* | -R* | -l*) |
---|
12672 | # Some compilers place space between "-{L,R}" and the path. |
---|
12673 | # Remove the space. |
---|
12674 | if test $p = "-L" \ |
---|
12675 | || test $p = "-R"; then |
---|
12676 | prev=$p |
---|
12677 | continue |
---|
12678 | else |
---|
12679 | prev= |
---|
12680 | fi |
---|
12681 | |
---|
12682 | if test "$pre_test_object_deps_done" = no; then |
---|
12683 | case $p in |
---|
12684 | -L* | -R*) |
---|
12685 | # Internal compiler library paths should come after those |
---|
12686 | # provided the user. The postdeps already come after the |
---|
12687 | # user supplied libs so there is no need to process them. |
---|
12688 | if test -z "$compiler_lib_search_path_CXX"; then |
---|
12689 | compiler_lib_search_path_CXX="${prev}${p}" |
---|
12690 | else |
---|
12691 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
---|
12692 | fi |
---|
12693 | ;; |
---|
12694 | # The "-l" case would never come before the object being |
---|
12695 | # linked, so don't bother handling this case. |
---|
12696 | esac |
---|
12697 | else |
---|
12698 | if test -z "$postdeps_CXX"; then |
---|
12699 | postdeps_CXX="${prev}${p}" |
---|
12700 | else |
---|
12701 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
---|
12702 | fi |
---|
12703 | fi |
---|
12704 | ;; |
---|
12705 | |
---|
12706 | *.$objext) |
---|
12707 | # This assumes that the test object file only shows up |
---|
12708 | # once in the compiler output. |
---|
12709 | if test "$p" = "conftest.$objext"; then |
---|
12710 | pre_test_object_deps_done=yes |
---|
12711 | continue |
---|
12712 | fi |
---|
12713 | |
---|
12714 | if test "$pre_test_object_deps_done" = no; then |
---|
12715 | if test -z "$predep_objects_CXX"; then |
---|
12716 | predep_objects_CXX="$p" |
---|
12717 | else |
---|
12718 | predep_objects_CXX="$predep_objects_CXX $p" |
---|
12719 | fi |
---|
12720 | else |
---|
12721 | if test -z "$postdep_objects_CXX"; then |
---|
12722 | postdep_objects_CXX="$p" |
---|
12723 | else |
---|
12724 | postdep_objects_CXX="$postdep_objects_CXX $p" |
---|
12725 | fi |
---|
12726 | fi |
---|
12727 | ;; |
---|
12728 | |
---|
12729 | *) ;; # Ignore the rest. |
---|
12730 | |
---|
12731 | esac |
---|
12732 | done |
---|
12733 | |
---|
12734 | # Clean up. |
---|
12735 | rm -f a.out a.exe |
---|
12736 | else |
---|
12737 | echo "libtool.m4: error: problem compiling CXX test program" |
---|
12738 | fi |
---|
12739 | |
---|
12740 | $rm -f confest.$objext |
---|
12741 | |
---|
12742 | # PORTME: override above test on systems where it is broken |
---|
12743 | case $host_os in |
---|
12744 | interix[3-9]*) |
---|
12745 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
---|
12746 | # hack all around it, let's just trust "g++" to DTRT. |
---|
12747 | predep_objects_CXX= |
---|
12748 | postdep_objects_CXX= |
---|
12749 | postdeps_CXX= |
---|
12750 | ;; |
---|
12751 | |
---|
12752 | linux*) |
---|
12753 | case `$CC -V 2>&1 | sed 5q` in |
---|
12754 | *Sun\ C*) |
---|
12755 | # Sun C++ 5.9 |
---|
12756 | # |
---|
12757 | # The more standards-conforming stlport4 library is |
---|
12758 | # incompatible with the Cstd library. Avoid specifying |
---|
12759 | # it if it's in CXXFLAGS. Ignore libCrun as |
---|
12760 | # -library=stlport4 depends on it. |
---|
12761 | case " $CXX $CXXFLAGS " in |
---|
12762 | *" -library=stlport4 "*) |
---|
12763 | solaris_use_stlport4=yes |
---|
12764 | ;; |
---|
12765 | esac |
---|
12766 | if test "$solaris_use_stlport4" != yes; then |
---|
12767 | postdeps_CXX='-library=Cstd -library=Crun' |
---|
12768 | fi |
---|
12769 | ;; |
---|
12770 | esac |
---|
12771 | ;; |
---|
12772 | |
---|
12773 | solaris*) |
---|
12774 | case $cc_basename in |
---|
12775 | CC*) |
---|
12776 | # The more standards-conforming stlport4 library is |
---|
12777 | # incompatible with the Cstd library. Avoid specifying |
---|
12778 | # it if it's in CXXFLAGS. Ignore libCrun as |
---|
12779 | # -library=stlport4 depends on it. |
---|
12780 | case " $CXX $CXXFLAGS " in |
---|
12781 | *" -library=stlport4 "*) |
---|
12782 | solaris_use_stlport4=yes |
---|
12783 | ;; |
---|
12784 | esac |
---|
12785 | |
---|
12786 | # Adding this requires a known-good setup of shared libraries for |
---|
12787 | # Sun compiler versions before 5.6, else PIC objects from an old |
---|
12788 | # archive will be linked into the output, leading to subtle bugs. |
---|
12789 | if test "$solaris_use_stlport4" != yes; then |
---|
12790 | postdeps_CXX='-library=Cstd -library=Crun' |
---|
12791 | fi |
---|
12792 | ;; |
---|
12793 | esac |
---|
12794 | ;; |
---|
12795 | esac |
---|
12796 | |
---|
12797 | |
---|
12798 | case " $postdeps_CXX " in |
---|
12799 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
---|
12800 | esac |
---|
12801 | |
---|
12802 | lt_prog_compiler_wl_CXX= |
---|
12803 | lt_prog_compiler_pic_CXX= |
---|
12804 | lt_prog_compiler_static_CXX= |
---|
12805 | |
---|
12806 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
12807 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
---|
12808 | |
---|
12809 | # C++ specific cases for pic, static, wl, etc. |
---|
12810 | if test "$GXX" = yes; then |
---|
12811 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12812 | lt_prog_compiler_static_CXX='-static' |
---|
12813 | |
---|
12814 | case $host_os in |
---|
12815 | aix*) |
---|
12816 | # All AIX code is PIC. |
---|
12817 | if test "$host_cpu" = ia64; then |
---|
12818 | # AIX 5 now supports IA64 processor |
---|
12819 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
12820 | fi |
---|
12821 | ;; |
---|
12822 | amigaos*) |
---|
12823 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
12824 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
12825 | # like `-m68040'. |
---|
12826 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
---|
12827 | ;; |
---|
12828 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
12829 | # PIC is the default for these OSes. |
---|
12830 | ;; |
---|
12831 | mingw* | cygwin* | os2* | pw32*) |
---|
12832 | # This hack is so that the source file can tell whether it is being |
---|
12833 | # built for inclusion in a dll (and should export symbols for example). |
---|
12834 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
---|
12835 | # (--disable-auto-import) libraries |
---|
12836 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
---|
12837 | ;; |
---|
12838 | darwin* | rhapsody*) |
---|
12839 | # PIC is the default on this platform |
---|
12840 | # Common symbols not allowed in MH_DYLIB files |
---|
12841 | lt_prog_compiler_pic_CXX='-fno-common' |
---|
12842 | ;; |
---|
12843 | *djgpp*) |
---|
12844 | # DJGPP does not support shared libraries at all |
---|
12845 | lt_prog_compiler_pic_CXX= |
---|
12846 | ;; |
---|
12847 | interix[3-9]*) |
---|
12848 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
12849 | # Instead, we relocate shared libraries at runtime. |
---|
12850 | ;; |
---|
12851 | sysv4*MP*) |
---|
12852 | if test -d /usr/nec; then |
---|
12853 | lt_prog_compiler_pic_CXX=-Kconform_pic |
---|
12854 | fi |
---|
12855 | ;; |
---|
12856 | hpux*) |
---|
12857 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
12858 | # not for PA HP-UX. |
---|
12859 | case $host_cpu in |
---|
12860 | hppa*64*|ia64*) |
---|
12861 | ;; |
---|
12862 | *) |
---|
12863 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
12864 | ;; |
---|
12865 | esac |
---|
12866 | ;; |
---|
12867 | *) |
---|
12868 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
12869 | ;; |
---|
12870 | esac |
---|
12871 | else |
---|
12872 | case $host_os in |
---|
12873 | aix4* | aix5*) |
---|
12874 | # All AIX code is PIC. |
---|
12875 | if test "$host_cpu" = ia64; then |
---|
12876 | # AIX 5 now supports IA64 processor |
---|
12877 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
12878 | else |
---|
12879 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
---|
12880 | fi |
---|
12881 | ;; |
---|
12882 | chorus*) |
---|
12883 | case $cc_basename in |
---|
12884 | cxch68*) |
---|
12885 | # Green Hills C++ Compiler |
---|
12886 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
---|
12887 | ;; |
---|
12888 | esac |
---|
12889 | ;; |
---|
12890 | darwin*) |
---|
12891 | # PIC is the default on this platform |
---|
12892 | # Common symbols not allowed in MH_DYLIB files |
---|
12893 | case $cc_basename in |
---|
12894 | xlc*) |
---|
12895 | lt_prog_compiler_pic_CXX='-qnocommon' |
---|
12896 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12897 | ;; |
---|
12898 | esac |
---|
12899 | ;; |
---|
12900 | dgux*) |
---|
12901 | case $cc_basename in |
---|
12902 | ec++*) |
---|
12903 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
12904 | ;; |
---|
12905 | ghcx*) |
---|
12906 | # Green Hills C++ Compiler |
---|
12907 | lt_prog_compiler_pic_CXX='-pic' |
---|
12908 | ;; |
---|
12909 | *) |
---|
12910 | ;; |
---|
12911 | esac |
---|
12912 | ;; |
---|
12913 | freebsd* | dragonfly*) |
---|
12914 | # FreeBSD uses GNU C++ |
---|
12915 | ;; |
---|
12916 | hpux9* | hpux10* | hpux11*) |
---|
12917 | case $cc_basename in |
---|
12918 | CC*) |
---|
12919 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12920 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
---|
12921 | if test "$host_cpu" != ia64; then |
---|
12922 | lt_prog_compiler_pic_CXX='+Z' |
---|
12923 | fi |
---|
12924 | ;; |
---|
12925 | aCC*) |
---|
12926 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12927 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
---|
12928 | case $host_cpu in |
---|
12929 | hppa*64*|ia64*) |
---|
12930 | # +Z the default |
---|
12931 | ;; |
---|
12932 | *) |
---|
12933 | lt_prog_compiler_pic_CXX='+Z' |
---|
12934 | ;; |
---|
12935 | esac |
---|
12936 | ;; |
---|
12937 | *) |
---|
12938 | ;; |
---|
12939 | esac |
---|
12940 | ;; |
---|
12941 | interix*) |
---|
12942 | # This is c89, which is MS Visual C++ (no shared libs) |
---|
12943 | # Anyone wants to do a port? |
---|
12944 | ;; |
---|
12945 | irix5* | irix6* | nonstopux*) |
---|
12946 | case $cc_basename in |
---|
12947 | CC*) |
---|
12948 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12949 | lt_prog_compiler_static_CXX='-non_shared' |
---|
12950 | # CC pic flag -KPIC is the default. |
---|
12951 | ;; |
---|
12952 | *) |
---|
12953 | ;; |
---|
12954 | esac |
---|
12955 | ;; |
---|
12956 | linux* | k*bsd*-gnu) |
---|
12957 | case $cc_basename in |
---|
12958 | KCC*) |
---|
12959 | # KAI C++ Compiler |
---|
12960 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
12961 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
12962 | ;; |
---|
12963 | icpc* | ecpc*) |
---|
12964 | # Intel C++ |
---|
12965 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12966 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
12967 | lt_prog_compiler_static_CXX='-static' |
---|
12968 | ;; |
---|
12969 | pgCC*) |
---|
12970 | # Portland Group C++ compiler. |
---|
12971 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12972 | lt_prog_compiler_pic_CXX='-fpic' |
---|
12973 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
12974 | ;; |
---|
12975 | cxx*) |
---|
12976 | # Compaq C++ |
---|
12977 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
12978 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
12979 | lt_prog_compiler_pic_CXX= |
---|
12980 | lt_prog_compiler_static_CXX='-non_shared' |
---|
12981 | ;; |
---|
12982 | *) |
---|
12983 | case `$CC -V 2>&1 | sed 5q` in |
---|
12984 | *Sun\ C*) |
---|
12985 | # Sun C++ 5.9 |
---|
12986 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
12987 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
12988 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
---|
12989 | ;; |
---|
12990 | esac |
---|
12991 | ;; |
---|
12992 | esac |
---|
12993 | ;; |
---|
12994 | lynxos*) |
---|
12995 | ;; |
---|
12996 | m88k*) |
---|
12997 | ;; |
---|
12998 | mvs*) |
---|
12999 | case $cc_basename in |
---|
13000 | cxx*) |
---|
13001 | lt_prog_compiler_pic_CXX='-W c,exportall' |
---|
13002 | ;; |
---|
13003 | *) |
---|
13004 | ;; |
---|
13005 | esac |
---|
13006 | ;; |
---|
13007 | netbsd*) |
---|
13008 | ;; |
---|
13009 | osf3* | osf4* | osf5*) |
---|
13010 | case $cc_basename in |
---|
13011 | KCC*) |
---|
13012 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
13013 | ;; |
---|
13014 | RCC*) |
---|
13015 | # Rational C++ 2.4.1 |
---|
13016 | lt_prog_compiler_pic_CXX='-pic' |
---|
13017 | ;; |
---|
13018 | cxx*) |
---|
13019 | # Digital/Compaq C++ |
---|
13020 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
13021 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
13022 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
13023 | lt_prog_compiler_pic_CXX= |
---|
13024 | lt_prog_compiler_static_CXX='-non_shared' |
---|
13025 | ;; |
---|
13026 | *) |
---|
13027 | ;; |
---|
13028 | esac |
---|
13029 | ;; |
---|
13030 | psos*) |
---|
13031 | ;; |
---|
13032 | solaris*) |
---|
13033 | case $cc_basename in |
---|
13034 | CC*) |
---|
13035 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
13036 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
13037 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
13038 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
---|
13039 | ;; |
---|
13040 | gcx*) |
---|
13041 | # Green Hills C++ Compiler |
---|
13042 | lt_prog_compiler_pic_CXX='-PIC' |
---|
13043 | ;; |
---|
13044 | *) |
---|
13045 | ;; |
---|
13046 | esac |
---|
13047 | ;; |
---|
13048 | sunos4*) |
---|
13049 | case $cc_basename in |
---|
13050 | CC*) |
---|
13051 | # Sun C++ 4.x |
---|
13052 | lt_prog_compiler_pic_CXX='-pic' |
---|
13053 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
13054 | ;; |
---|
13055 | lcc*) |
---|
13056 | # Lucid |
---|
13057 | lt_prog_compiler_pic_CXX='-pic' |
---|
13058 | ;; |
---|
13059 | *) |
---|
13060 | ;; |
---|
13061 | esac |
---|
13062 | ;; |
---|
13063 | tandem*) |
---|
13064 | case $cc_basename in |
---|
13065 | NCC*) |
---|
13066 | # NonStop-UX NCC 3.20 |
---|
13067 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
13068 | ;; |
---|
13069 | *) |
---|
13070 | ;; |
---|
13071 | esac |
---|
13072 | ;; |
---|
13073 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
13074 | case $cc_basename in |
---|
13075 | CC*) |
---|
13076 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
13077 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
13078 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
13079 | ;; |
---|
13080 | esac |
---|
13081 | ;; |
---|
13082 | vxworks*) |
---|
13083 | ;; |
---|
13084 | *) |
---|
13085 | lt_prog_compiler_can_build_shared_CXX=no |
---|
13086 | ;; |
---|
13087 | esac |
---|
13088 | fi |
---|
13089 | |
---|
13090 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
---|
13091 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
---|
13092 | |
---|
13093 | # |
---|
13094 | # Check to make sure the PIC flag actually works. |
---|
13095 | # |
---|
13096 | if test -n "$lt_prog_compiler_pic_CXX"; then |
---|
13097 | |
---|
13098 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
---|
13099 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
---|
13100 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
---|
13101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13102 | else |
---|
13103 | lt_prog_compiler_pic_works_CXX=no |
---|
13104 | ac_outfile=conftest.$ac_objext |
---|
13105 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
13106 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
---|
13107 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
13108 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
13109 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
13110 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
13111 | # The option is referenced via a variable to avoid confusing sed. |
---|
13112 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
13113 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
13114 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
13115 | -e 's:$: $lt_compiler_flag:'` |
---|
13116 | (eval echo "\"\$as_me:13116: $lt_compile\"" >&5) |
---|
13117 | (eval "$lt_compile" 2>conftest.err) |
---|
13118 | ac_status=$? |
---|
13119 | cat conftest.err >&5 |
---|
13120 | echo "$as_me:13120: \$? = $ac_status" >&5 |
---|
13121 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
13122 | # The compiler can only warn and ignore the option if not recognized |
---|
13123 | # So say no if there are warnings other than the usual output. |
---|
13124 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
13125 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
13126 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
13127 | lt_prog_compiler_pic_works_CXX=yes |
---|
13128 | fi |
---|
13129 | fi |
---|
13130 | $rm conftest* |
---|
13131 | |
---|
13132 | fi |
---|
13133 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
---|
13134 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
---|
13135 | |
---|
13136 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
---|
13137 | case $lt_prog_compiler_pic_CXX in |
---|
13138 | "" | " "*) ;; |
---|
13139 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
---|
13140 | esac |
---|
13141 | else |
---|
13142 | lt_prog_compiler_pic_CXX= |
---|
13143 | lt_prog_compiler_can_build_shared_CXX=no |
---|
13144 | fi |
---|
13145 | |
---|
13146 | fi |
---|
13147 | case $host_os in |
---|
13148 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
13149 | *djgpp*) |
---|
13150 | lt_prog_compiler_pic_CXX= |
---|
13151 | ;; |
---|
13152 | *) |
---|
13153 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
---|
13154 | ;; |
---|
13155 | esac |
---|
13156 | |
---|
13157 | # |
---|
13158 | # Check to make sure the static flag actually works. |
---|
13159 | # |
---|
13160 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
---|
13161 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
13162 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
---|
13163 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
---|
13164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13165 | else |
---|
13166 | lt_prog_compiler_static_works_CXX=no |
---|
13167 | save_LDFLAGS="$LDFLAGS" |
---|
13168 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
13169 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
13170 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
13171 | # The linker can only warn and ignore the option if not recognized |
---|
13172 | # So say no if there are warnings |
---|
13173 | if test -s conftest.err; then |
---|
13174 | # Append any errors to the config.log. |
---|
13175 | cat conftest.err 1>&5 |
---|
13176 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
13177 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
13178 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
13179 | lt_prog_compiler_static_works_CXX=yes |
---|
13180 | fi |
---|
13181 | else |
---|
13182 | lt_prog_compiler_static_works_CXX=yes |
---|
13183 | fi |
---|
13184 | fi |
---|
13185 | $rm conftest* |
---|
13186 | LDFLAGS="$save_LDFLAGS" |
---|
13187 | |
---|
13188 | fi |
---|
13189 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
---|
13190 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
---|
13191 | |
---|
13192 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
---|
13193 | : |
---|
13194 | else |
---|
13195 | lt_prog_compiler_static_CXX= |
---|
13196 | fi |
---|
13197 | |
---|
13198 | |
---|
13199 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
13200 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
---|
13201 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
---|
13202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13203 | else |
---|
13204 | lt_cv_prog_compiler_c_o_CXX=no |
---|
13205 | $rm -r conftest 2>/dev/null |
---|
13206 | mkdir conftest |
---|
13207 | cd conftest |
---|
13208 | mkdir out |
---|
13209 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
13210 | |
---|
13211 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
13212 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
13213 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
13214 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
13215 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
13216 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
13217 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
13218 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
13219 | -e 's:$: $lt_compiler_flag:'` |
---|
13220 | (eval echo "\"\$as_me:13220: $lt_compile\"" >&5) |
---|
13221 | (eval "$lt_compile" 2>out/conftest.err) |
---|
13222 | ac_status=$? |
---|
13223 | cat out/conftest.err >&5 |
---|
13224 | echo "$as_me:13224: \$? = $ac_status" >&5 |
---|
13225 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
13226 | then |
---|
13227 | # The compiler can only warn and ignore the option if not recognized |
---|
13228 | # So say no if there are warnings |
---|
13229 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
13230 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
13231 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
13232 | lt_cv_prog_compiler_c_o_CXX=yes |
---|
13233 | fi |
---|
13234 | fi |
---|
13235 | chmod u+w . 2>&5 |
---|
13236 | $rm conftest* |
---|
13237 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
13238 | # template instantiation |
---|
13239 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
13240 | $rm out/* && rmdir out |
---|
13241 | cd .. |
---|
13242 | rmdir conftest |
---|
13243 | $rm conftest* |
---|
13244 | |
---|
13245 | fi |
---|
13246 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
---|
13247 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
---|
13248 | |
---|
13249 | |
---|
13250 | hard_links="nottested" |
---|
13251 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
---|
13252 | # do not overwrite the value of need_locks provided by the user |
---|
13253 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
13254 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
---|
13255 | hard_links=yes |
---|
13256 | $rm conftest* |
---|
13257 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
13258 | touch conftest.a |
---|
13259 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
13260 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
13261 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
13262 | echo "${ECHO_T}$hard_links" >&6; } |
---|
13263 | if test "$hard_links" = no; then |
---|
13264 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
13265 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
13266 | need_locks=warn |
---|
13267 | fi |
---|
13268 | else |
---|
13269 | need_locks=no |
---|
13270 | fi |
---|
13271 | |
---|
13272 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
13273 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
13274 | |
---|
13275 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
13276 | case $host_os in |
---|
13277 | aix4* | aix5*) |
---|
13278 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
13279 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
13280 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
13281 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
13282 | else |
---|
13283 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
13284 | fi |
---|
13285 | ;; |
---|
13286 | pw32*) |
---|
13287 | export_symbols_cmds_CXX="$ltdll_cmds" |
---|
13288 | ;; |
---|
13289 | cygwin* | mingw*) |
---|
13290 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
---|
13291 | ;; |
---|
13292 | *) |
---|
13293 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
13294 | ;; |
---|
13295 | esac |
---|
13296 | |
---|
13297 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
13298 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
---|
13299 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
13300 | |
---|
13301 | # |
---|
13302 | # Do we need to explicitly link libc? |
---|
13303 | # |
---|
13304 | case "x$archive_cmds_need_lc_CXX" in |
---|
13305 | x|xyes) |
---|
13306 | # Assume -lc should be added |
---|
13307 | archive_cmds_need_lc_CXX=yes |
---|
13308 | |
---|
13309 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
13310 | case $archive_cmds_CXX in |
---|
13311 | *'~'*) |
---|
13312 | # FIXME: we may have to deal with multi-command sequences. |
---|
13313 | ;; |
---|
13314 | '$CC '*) |
---|
13315 | # Test whether the compiler implicitly links with -lc since on some |
---|
13316 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
13317 | # to ld, don't add -lc before -lgcc. |
---|
13318 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
13319 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
---|
13320 | $rm conftest* |
---|
13321 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
13322 | |
---|
13323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
13324 | (eval $ac_compile) 2>&5 |
---|
13325 | ac_status=$? |
---|
13326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13327 | (exit $ac_status); } 2>conftest.err; then |
---|
13328 | soname=conftest |
---|
13329 | lib=conftest |
---|
13330 | libobjs=conftest.$ac_objext |
---|
13331 | deplibs= |
---|
13332 | wl=$lt_prog_compiler_wl_CXX |
---|
13333 | pic_flag=$lt_prog_compiler_pic_CXX |
---|
13334 | compiler_flags=-v |
---|
13335 | linker_flags=-v |
---|
13336 | verstring= |
---|
13337 | output_objdir=. |
---|
13338 | libname=conftest |
---|
13339 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
---|
13340 | allow_undefined_flag_CXX= |
---|
13341 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
13342 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
13343 | ac_status=$? |
---|
13344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13345 | (exit $ac_status); } |
---|
13346 | then |
---|
13347 | archive_cmds_need_lc_CXX=no |
---|
13348 | else |
---|
13349 | archive_cmds_need_lc_CXX=yes |
---|
13350 | fi |
---|
13351 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
---|
13352 | else |
---|
13353 | cat conftest.err 1>&5 |
---|
13354 | fi |
---|
13355 | $rm conftest* |
---|
13356 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
---|
13357 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
---|
13358 | ;; |
---|
13359 | esac |
---|
13360 | fi |
---|
13361 | ;; |
---|
13362 | esac |
---|
13363 | |
---|
13364 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
13365 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
---|
13366 | library_names_spec= |
---|
13367 | libname_spec='lib$name' |
---|
13368 | soname_spec= |
---|
13369 | shrext_cmds=".so" |
---|
13370 | postinstall_cmds= |
---|
13371 | postuninstall_cmds= |
---|
13372 | finish_cmds= |
---|
13373 | finish_eval= |
---|
13374 | shlibpath_var= |
---|
13375 | shlibpath_overrides_runpath=unknown |
---|
13376 | version_type=none |
---|
13377 | dynamic_linker="$host_os ld.so" |
---|
13378 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
13379 | |
---|
13380 | need_lib_prefix=unknown |
---|
13381 | hardcode_into_libs=no |
---|
13382 | |
---|
13383 | # when you set need_version to no, make sure it does not cause -set_version |
---|
13384 | # flags to be left without arguments |
---|
13385 | need_version=unknown |
---|
13386 | |
---|
13387 | case $host_os in |
---|
13388 | aix3*) |
---|
13389 | version_type=linux |
---|
13390 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
13391 | shlibpath_var=LIBPATH |
---|
13392 | |
---|
13393 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
13394 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13395 | ;; |
---|
13396 | |
---|
13397 | aix4* | aix5*) |
---|
13398 | version_type=linux |
---|
13399 | need_lib_prefix=no |
---|
13400 | need_version=no |
---|
13401 | hardcode_into_libs=yes |
---|
13402 | if test "$host_cpu" = ia64; then |
---|
13403 | # AIX 5 supports IA64 |
---|
13404 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
13405 | shlibpath_var=LD_LIBRARY_PATH |
---|
13406 | else |
---|
13407 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
13408 | # for dependence libraries. The import file would start with |
---|
13409 | # the line `#! .'. This would cause the generated library to |
---|
13410 | # depend on `.', always an invalid library. This was fixed in |
---|
13411 | # development snapshots of GCC prior to 3.0. |
---|
13412 | case $host_os in |
---|
13413 | aix4 | aix4.[01] | aix4.[01].*) |
---|
13414 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
13415 | echo ' yes ' |
---|
13416 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
13417 | : |
---|
13418 | else |
---|
13419 | can_build_shared=no |
---|
13420 | fi |
---|
13421 | ;; |
---|
13422 | esac |
---|
13423 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
13424 | # soname into executable. Probably we can add versioning support to |
---|
13425 | # collect2, so additional links can be useful in future. |
---|
13426 | if test "$aix_use_runtimelinking" = yes; then |
---|
13427 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
13428 | # instead of lib<name>.a to let people know that these are not |
---|
13429 | # typical AIX shared libraries. |
---|
13430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13431 | else |
---|
13432 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
13433 | # and later when we are not doing run time linking. |
---|
13434 | library_names_spec='${libname}${release}.a $libname.a' |
---|
13435 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13436 | fi |
---|
13437 | shlibpath_var=LIBPATH |
---|
13438 | fi |
---|
13439 | ;; |
---|
13440 | |
---|
13441 | amigaos*) |
---|
13442 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
13443 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
13444 | 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' |
---|
13445 | ;; |
---|
13446 | |
---|
13447 | beos*) |
---|
13448 | library_names_spec='${libname}${shared_ext}' |
---|
13449 | dynamic_linker="$host_os ld.so" |
---|
13450 | shlibpath_var=LIBRARY_PATH |
---|
13451 | ;; |
---|
13452 | |
---|
13453 | bsdi[45]*) |
---|
13454 | version_type=linux |
---|
13455 | need_version=no |
---|
13456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13457 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13458 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
13459 | shlibpath_var=LD_LIBRARY_PATH |
---|
13460 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
13461 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
13462 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
13463 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
13464 | # libtool to hard-code these into programs |
---|
13465 | ;; |
---|
13466 | |
---|
13467 | cygwin* | mingw* | pw32*) |
---|
13468 | version_type=windows |
---|
13469 | shrext_cmds=".dll" |
---|
13470 | need_version=no |
---|
13471 | need_lib_prefix=no |
---|
13472 | |
---|
13473 | case $GCC,$host_os in |
---|
13474 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
13475 | library_names_spec='$libname.dll.a' |
---|
13476 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
13477 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
13478 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
13479 | dldir=$destdir/`dirname \$dlpath`~ |
---|
13480 | test -d \$dldir || mkdir -p \$dldir~ |
---|
13481 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
13482 | chmod a+x \$dldir/$dlname' |
---|
13483 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
13484 | dlpath=$dir/\$dldll~ |
---|
13485 | $rm \$dlpath' |
---|
13486 | shlibpath_overrides_runpath=yes |
---|
13487 | |
---|
13488 | case $host_os in |
---|
13489 | cygwin*) |
---|
13490 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
13491 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
13492 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
13493 | ;; |
---|
13494 | mingw*) |
---|
13495 | # MinGW DLLs use traditional 'lib' prefix |
---|
13496 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
13497 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
13498 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
13499 | # It is most probably a Windows format PATH printed by |
---|
13500 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
13501 | # path with ; separators, and with drive letters. We can handle the |
---|
13502 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
13503 | # especially as we might pass files found there to a mingw objdump, |
---|
13504 | # which wouldn't understand a cygwinified path. Ahh. |
---|
13505 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
13506 | else |
---|
13507 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
13508 | fi |
---|
13509 | ;; |
---|
13510 | pw32*) |
---|
13511 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
13512 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
13513 | ;; |
---|
13514 | esac |
---|
13515 | ;; |
---|
13516 | |
---|
13517 | *) |
---|
13518 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
13519 | ;; |
---|
13520 | esac |
---|
13521 | dynamic_linker='Win32 ld.exe' |
---|
13522 | # FIXME: first we should search . and the directory the executable is in |
---|
13523 | shlibpath_var=PATH |
---|
13524 | ;; |
---|
13525 | |
---|
13526 | darwin* | rhapsody*) |
---|
13527 | dynamic_linker="$host_os dyld" |
---|
13528 | version_type=darwin |
---|
13529 | need_lib_prefix=no |
---|
13530 | need_version=no |
---|
13531 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
13532 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
13533 | shlibpath_overrides_runpath=yes |
---|
13534 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
13535 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
13536 | |
---|
13537 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
13538 | ;; |
---|
13539 | |
---|
13540 | dgux*) |
---|
13541 | version_type=linux |
---|
13542 | need_lib_prefix=no |
---|
13543 | need_version=no |
---|
13544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
13545 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13546 | shlibpath_var=LD_LIBRARY_PATH |
---|
13547 | ;; |
---|
13548 | |
---|
13549 | freebsd1*) |
---|
13550 | dynamic_linker=no |
---|
13551 | ;; |
---|
13552 | |
---|
13553 | freebsd* | dragonfly*) |
---|
13554 | # DragonFly does not have aout. When/if they implement a new |
---|
13555 | # versioning mechanism, adjust this. |
---|
13556 | if test -x /usr/bin/objformat; then |
---|
13557 | objformat=`/usr/bin/objformat` |
---|
13558 | else |
---|
13559 | case $host_os in |
---|
13560 | freebsd[123]*) objformat=aout ;; |
---|
13561 | *) objformat=elf ;; |
---|
13562 | esac |
---|
13563 | fi |
---|
13564 | version_type=freebsd-$objformat |
---|
13565 | case $version_type in |
---|
13566 | freebsd-elf*) |
---|
13567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
13568 | need_version=no |
---|
13569 | need_lib_prefix=no |
---|
13570 | ;; |
---|
13571 | freebsd-*) |
---|
13572 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
13573 | need_version=yes |
---|
13574 | ;; |
---|
13575 | esac |
---|
13576 | shlibpath_var=LD_LIBRARY_PATH |
---|
13577 | case $host_os in |
---|
13578 | freebsd2*) |
---|
13579 | shlibpath_overrides_runpath=yes |
---|
13580 | ;; |
---|
13581 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
13582 | shlibpath_overrides_runpath=yes |
---|
13583 | hardcode_into_libs=yes |
---|
13584 | ;; |
---|
13585 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
13586 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
13587 | shlibpath_overrides_runpath=no |
---|
13588 | hardcode_into_libs=yes |
---|
13589 | ;; |
---|
13590 | *) # from 4.6 on, and DragonFly |
---|
13591 | shlibpath_overrides_runpath=yes |
---|
13592 | hardcode_into_libs=yes |
---|
13593 | ;; |
---|
13594 | esac |
---|
13595 | ;; |
---|
13596 | |
---|
13597 | gnu*) |
---|
13598 | version_type=linux |
---|
13599 | need_lib_prefix=no |
---|
13600 | need_version=no |
---|
13601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
13602 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13603 | shlibpath_var=LD_LIBRARY_PATH |
---|
13604 | hardcode_into_libs=yes |
---|
13605 | ;; |
---|
13606 | |
---|
13607 | hpux9* | hpux10* | hpux11*) |
---|
13608 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
13609 | # link against other versions. |
---|
13610 | version_type=sunos |
---|
13611 | need_lib_prefix=no |
---|
13612 | need_version=no |
---|
13613 | case $host_cpu in |
---|
13614 | ia64*) |
---|
13615 | shrext_cmds='.so' |
---|
13616 | hardcode_into_libs=yes |
---|
13617 | dynamic_linker="$host_os dld.so" |
---|
13618 | shlibpath_var=LD_LIBRARY_PATH |
---|
13619 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
13620 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13621 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13622 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
13623 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
13624 | else |
---|
13625 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
13626 | fi |
---|
13627 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
13628 | ;; |
---|
13629 | hppa*64*) |
---|
13630 | shrext_cmds='.sl' |
---|
13631 | hardcode_into_libs=yes |
---|
13632 | dynamic_linker="$host_os dld.sl" |
---|
13633 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
13634 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
13635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13636 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13637 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
13638 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
13639 | ;; |
---|
13640 | *) |
---|
13641 | shrext_cmds='.sl' |
---|
13642 | dynamic_linker="$host_os dld.sl" |
---|
13643 | shlibpath_var=SHLIB_PATH |
---|
13644 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
13645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13646 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13647 | ;; |
---|
13648 | esac |
---|
13649 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
13650 | postinstall_cmds='chmod 555 $lib' |
---|
13651 | ;; |
---|
13652 | |
---|
13653 | interix[3-9]*) |
---|
13654 | version_type=linux |
---|
13655 | need_lib_prefix=no |
---|
13656 | need_version=no |
---|
13657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
13658 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13659 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
13660 | shlibpath_var=LD_LIBRARY_PATH |
---|
13661 | shlibpath_overrides_runpath=no |
---|
13662 | hardcode_into_libs=yes |
---|
13663 | ;; |
---|
13664 | |
---|
13665 | irix5* | irix6* | nonstopux*) |
---|
13666 | case $host_os in |
---|
13667 | nonstopux*) version_type=nonstopux ;; |
---|
13668 | *) |
---|
13669 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
13670 | version_type=linux |
---|
13671 | else |
---|
13672 | version_type=irix |
---|
13673 | fi ;; |
---|
13674 | esac |
---|
13675 | need_lib_prefix=no |
---|
13676 | need_version=no |
---|
13677 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
13679 | case $host_os in |
---|
13680 | irix5* | nonstopux*) |
---|
13681 | libsuff= shlibsuff= |
---|
13682 | ;; |
---|
13683 | *) |
---|
13684 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
13685 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
13686 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
13687 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
13688 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
13689 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
13690 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
13691 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
13692 | esac |
---|
13693 | ;; |
---|
13694 | esac |
---|
13695 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
13696 | shlibpath_overrides_runpath=no |
---|
13697 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
13698 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
13699 | hardcode_into_libs=yes |
---|
13700 | ;; |
---|
13701 | |
---|
13702 | # No shared lib support for Linux oldld, aout, or coff. |
---|
13703 | linux*oldld* | linux*aout* | linux*coff*) |
---|
13704 | dynamic_linker=no |
---|
13705 | ;; |
---|
13706 | |
---|
13707 | # This must be Linux ELF. |
---|
13708 | linux* | k*bsd*-gnu) |
---|
13709 | version_type=linux |
---|
13710 | need_lib_prefix=no |
---|
13711 | need_version=no |
---|
13712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13713 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13714 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
13715 | shlibpath_var=LD_LIBRARY_PATH |
---|
13716 | shlibpath_overrides_runpath=no |
---|
13717 | # This implies no fast_install, which is unacceptable. |
---|
13718 | # Some rework will be needed to allow for fast_install |
---|
13719 | # before this can be enabled. |
---|
13720 | hardcode_into_libs=yes |
---|
13721 | |
---|
13722 | # Append ld.so.conf contents to the search path |
---|
13723 | if test -f /etc/ld.so.conf; then |
---|
13724 | 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' ' '` |
---|
13725 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
13726 | fi |
---|
13727 | |
---|
13728 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
13729 | # powerpc, because MkLinux only supported shared libraries with the |
---|
13730 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
13731 | # most powerpc-linux boxes support dynamic linking these days and |
---|
13732 | # people can always --disable-shared, the test was removed, and we |
---|
13733 | # assume the GNU/Linux dynamic linker is in use. |
---|
13734 | dynamic_linker='GNU/Linux ld.so' |
---|
13735 | ;; |
---|
13736 | |
---|
13737 | netbsd*) |
---|
13738 | version_type=sunos |
---|
13739 | need_lib_prefix=no |
---|
13740 | need_version=no |
---|
13741 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
13742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
13743 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
13744 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
13745 | else |
---|
13746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
13747 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13748 | dynamic_linker='NetBSD ld.elf_so' |
---|
13749 | fi |
---|
13750 | shlibpath_var=LD_LIBRARY_PATH |
---|
13751 | shlibpath_overrides_runpath=yes |
---|
13752 | hardcode_into_libs=yes |
---|
13753 | ;; |
---|
13754 | |
---|
13755 | newsos6) |
---|
13756 | version_type=linux |
---|
13757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13758 | shlibpath_var=LD_LIBRARY_PATH |
---|
13759 | shlibpath_overrides_runpath=yes |
---|
13760 | ;; |
---|
13761 | |
---|
13762 | nto-qnx*) |
---|
13763 | version_type=linux |
---|
13764 | need_lib_prefix=no |
---|
13765 | need_version=no |
---|
13766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13767 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13768 | shlibpath_var=LD_LIBRARY_PATH |
---|
13769 | shlibpath_overrides_runpath=yes |
---|
13770 | ;; |
---|
13771 | |
---|
13772 | openbsd*) |
---|
13773 | version_type=sunos |
---|
13774 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
13775 | need_lib_prefix=no |
---|
13776 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
13777 | case $host_os in |
---|
13778 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
13779 | *) need_version=no ;; |
---|
13780 | esac |
---|
13781 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
13782 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
13783 | shlibpath_var=LD_LIBRARY_PATH |
---|
13784 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
13785 | case $host_os in |
---|
13786 | openbsd2.[89] | openbsd2.[89].*) |
---|
13787 | shlibpath_overrides_runpath=no |
---|
13788 | ;; |
---|
13789 | *) |
---|
13790 | shlibpath_overrides_runpath=yes |
---|
13791 | ;; |
---|
13792 | esac |
---|
13793 | else |
---|
13794 | shlibpath_overrides_runpath=yes |
---|
13795 | fi |
---|
13796 | ;; |
---|
13797 | |
---|
13798 | os2*) |
---|
13799 | libname_spec='$name' |
---|
13800 | shrext_cmds=".dll" |
---|
13801 | need_lib_prefix=no |
---|
13802 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
13803 | dynamic_linker='OS/2 ld.exe' |
---|
13804 | shlibpath_var=LIBPATH |
---|
13805 | ;; |
---|
13806 | |
---|
13807 | osf3* | osf4* | osf5*) |
---|
13808 | version_type=osf |
---|
13809 | need_lib_prefix=no |
---|
13810 | need_version=no |
---|
13811 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13813 | shlibpath_var=LD_LIBRARY_PATH |
---|
13814 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
13815 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
13816 | ;; |
---|
13817 | |
---|
13818 | rdos*) |
---|
13819 | dynamic_linker=no |
---|
13820 | ;; |
---|
13821 | |
---|
13822 | solaris*) |
---|
13823 | version_type=linux |
---|
13824 | need_lib_prefix=no |
---|
13825 | need_version=no |
---|
13826 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13827 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13828 | shlibpath_var=LD_LIBRARY_PATH |
---|
13829 | shlibpath_overrides_runpath=yes |
---|
13830 | hardcode_into_libs=yes |
---|
13831 | # ldd complains unless libraries are executable |
---|
13832 | postinstall_cmds='chmod +x $lib' |
---|
13833 | ;; |
---|
13834 | |
---|
13835 | sunos4*) |
---|
13836 | version_type=sunos |
---|
13837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
13838 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
13839 | shlibpath_var=LD_LIBRARY_PATH |
---|
13840 | shlibpath_overrides_runpath=yes |
---|
13841 | if test "$with_gnu_ld" = yes; then |
---|
13842 | need_lib_prefix=no |
---|
13843 | fi |
---|
13844 | need_version=yes |
---|
13845 | ;; |
---|
13846 | |
---|
13847 | sysv4 | sysv4.3*) |
---|
13848 | version_type=linux |
---|
13849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13850 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13851 | shlibpath_var=LD_LIBRARY_PATH |
---|
13852 | case $host_vendor in |
---|
13853 | sni) |
---|
13854 | shlibpath_overrides_runpath=no |
---|
13855 | need_lib_prefix=no |
---|
13856 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
13857 | runpath_var=LD_RUN_PATH |
---|
13858 | ;; |
---|
13859 | siemens) |
---|
13860 | need_lib_prefix=no |
---|
13861 | ;; |
---|
13862 | motorola) |
---|
13863 | need_lib_prefix=no |
---|
13864 | need_version=no |
---|
13865 | shlibpath_overrides_runpath=no |
---|
13866 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
13867 | ;; |
---|
13868 | esac |
---|
13869 | ;; |
---|
13870 | |
---|
13871 | sysv4*MP*) |
---|
13872 | if test -d /usr/nec ;then |
---|
13873 | version_type=linux |
---|
13874 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
13875 | soname_spec='$libname${shared_ext}.$major' |
---|
13876 | shlibpath_var=LD_LIBRARY_PATH |
---|
13877 | fi |
---|
13878 | ;; |
---|
13879 | |
---|
13880 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
13881 | version_type=freebsd-elf |
---|
13882 | need_lib_prefix=no |
---|
13883 | need_version=no |
---|
13884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
13885 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13886 | shlibpath_var=LD_LIBRARY_PATH |
---|
13887 | hardcode_into_libs=yes |
---|
13888 | if test "$with_gnu_ld" = yes; then |
---|
13889 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
13890 | shlibpath_overrides_runpath=no |
---|
13891 | else |
---|
13892 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
13893 | shlibpath_overrides_runpath=yes |
---|
13894 | case $host_os in |
---|
13895 | sco3.2v5*) |
---|
13896 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
13897 | ;; |
---|
13898 | esac |
---|
13899 | fi |
---|
13900 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
13901 | ;; |
---|
13902 | |
---|
13903 | uts4*) |
---|
13904 | version_type=linux |
---|
13905 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13906 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13907 | shlibpath_var=LD_LIBRARY_PATH |
---|
13908 | ;; |
---|
13909 | |
---|
13910 | *) |
---|
13911 | dynamic_linker=no |
---|
13912 | ;; |
---|
13913 | esac |
---|
13914 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
13915 | echo "${ECHO_T}$dynamic_linker" >&6; } |
---|
13916 | test "$dynamic_linker" = no && can_build_shared=no |
---|
13917 | |
---|
13918 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
13919 | if test "$GCC" = yes; then |
---|
13920 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
13921 | fi |
---|
13922 | |
---|
13923 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
13924 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
---|
13925 | hardcode_action_CXX= |
---|
13926 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
---|
13927 | test -n "$runpath_var_CXX" || \ |
---|
13928 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
---|
13929 | |
---|
13930 | # We can hardcode non-existant directories. |
---|
13931 | if test "$hardcode_direct_CXX" != no && |
---|
13932 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
13933 | # have to relink, otherwise we might link with an installed library |
---|
13934 | # when we should be linking with a yet-to-be-installed one |
---|
13935 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
---|
13936 | test "$hardcode_minus_L_CXX" != no; then |
---|
13937 | # Linking always hardcodes the temporary library directory. |
---|
13938 | hardcode_action_CXX=relink |
---|
13939 | else |
---|
13940 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
13941 | hardcode_action_CXX=immediate |
---|
13942 | fi |
---|
13943 | else |
---|
13944 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
13945 | # directories. |
---|
13946 | hardcode_action_CXX=unsupported |
---|
13947 | fi |
---|
13948 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
---|
13949 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
---|
13950 | |
---|
13951 | if test "$hardcode_action_CXX" = relink; then |
---|
13952 | # Fast installation is not supported |
---|
13953 | enable_fast_install=no |
---|
13954 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
13955 | test "$enable_shared" = no; then |
---|
13956 | # Fast installation is not necessary |
---|
13957 | enable_fast_install=needless |
---|
13958 | fi |
---|
13959 | |
---|
13960 | |
---|
13961 | # The else clause should only fire when bootstrapping the |
---|
13962 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
13963 | # with your package, and you will get complaints that there are |
---|
13964 | # no rules to generate ltmain.sh. |
---|
13965 | if test -f "$ltmain"; then |
---|
13966 | # See if we are running on zsh, and set the options which allow our commands through |
---|
13967 | # without removal of \ escapes. |
---|
13968 | if test -n "${ZSH_VERSION+set}" ; then |
---|
13969 | setopt NO_GLOB_SUBST |
---|
13970 | fi |
---|
13971 | # Now quote all the things that may contain metacharacters while being |
---|
13972 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
13973 | # variables and quote the copies for generation of the libtool script. |
---|
13974 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
---|
13975 | SED SHELL STRIP \ |
---|
13976 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
13977 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
13978 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
13979 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
13980 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
13981 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
13982 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
13983 | compiler_CXX \ |
---|
13984 | CC_CXX \ |
---|
13985 | LD_CXX \ |
---|
13986 | lt_prog_compiler_wl_CXX \ |
---|
13987 | lt_prog_compiler_pic_CXX \ |
---|
13988 | lt_prog_compiler_static_CXX \ |
---|
13989 | lt_prog_compiler_no_builtin_flag_CXX \ |
---|
13990 | export_dynamic_flag_spec_CXX \ |
---|
13991 | thread_safe_flag_spec_CXX \ |
---|
13992 | whole_archive_flag_spec_CXX \ |
---|
13993 | enable_shared_with_static_runtimes_CXX \ |
---|
13994 | old_archive_cmds_CXX \ |
---|
13995 | old_archive_from_new_cmds_CXX \ |
---|
13996 | predep_objects_CXX \ |
---|
13997 | postdep_objects_CXX \ |
---|
13998 | predeps_CXX \ |
---|
13999 | postdeps_CXX \ |
---|
14000 | compiler_lib_search_path_CXX \ |
---|
14001 | archive_cmds_CXX \ |
---|
14002 | archive_expsym_cmds_CXX \ |
---|
14003 | postinstall_cmds_CXX \ |
---|
14004 | postuninstall_cmds_CXX \ |
---|
14005 | old_archive_from_expsyms_cmds_CXX \ |
---|
14006 | allow_undefined_flag_CXX \ |
---|
14007 | no_undefined_flag_CXX \ |
---|
14008 | export_symbols_cmds_CXX \ |
---|
14009 | hardcode_libdir_flag_spec_CXX \ |
---|
14010 | hardcode_libdir_flag_spec_ld_CXX \ |
---|
14011 | hardcode_libdir_separator_CXX \ |
---|
14012 | hardcode_automatic_CXX \ |
---|
14013 | module_cmds_CXX \ |
---|
14014 | module_expsym_cmds_CXX \ |
---|
14015 | lt_cv_prog_compiler_c_o_CXX \ |
---|
14016 | fix_srcfile_path_CXX \ |
---|
14017 | exclude_expsyms_CXX \ |
---|
14018 | include_expsyms_CXX; do |
---|
14019 | |
---|
14020 | case $var in |
---|
14021 | old_archive_cmds_CXX | \ |
---|
14022 | old_archive_from_new_cmds_CXX | \ |
---|
14023 | archive_cmds_CXX | \ |
---|
14024 | archive_expsym_cmds_CXX | \ |
---|
14025 | module_cmds_CXX | \ |
---|
14026 | module_expsym_cmds_CXX | \ |
---|
14027 | old_archive_from_expsyms_cmds_CXX | \ |
---|
14028 | export_symbols_cmds_CXX | \ |
---|
14029 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
14030 | postinstall_cmds | postuninstall_cmds | \ |
---|
14031 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
14032 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
14033 | # Double-quote double-evaled strings. |
---|
14034 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
14035 | ;; |
---|
14036 | *) |
---|
14037 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
14038 | ;; |
---|
14039 | esac |
---|
14040 | done |
---|
14041 | |
---|
14042 | case $lt_echo in |
---|
14043 | *'\$0 --fallback-echo"') |
---|
14044 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
14045 | ;; |
---|
14046 | esac |
---|
14047 | |
---|
14048 | cfgfile="$ofile" |
---|
14049 | |
---|
14050 | cat <<__EOF__ >> "$cfgfile" |
---|
14051 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
14052 | |
---|
14053 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
14054 | |
---|
14055 | # Shell to use when invoking shell scripts. |
---|
14056 | SHELL=$lt_SHELL |
---|
14057 | |
---|
14058 | # Whether or not to build shared libraries. |
---|
14059 | build_libtool_libs=$enable_shared |
---|
14060 | |
---|
14061 | # Whether or not to build static libraries. |
---|
14062 | build_old_libs=$enable_static |
---|
14063 | |
---|
14064 | # Whether or not to add -lc for building shared libraries. |
---|
14065 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
---|
14066 | |
---|
14067 | # Whether or not to disallow shared libs when runtime libs are static |
---|
14068 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
---|
14069 | |
---|
14070 | # Whether or not to optimize for fast installation. |
---|
14071 | fast_install=$enable_fast_install |
---|
14072 | |
---|
14073 | # The host system. |
---|
14074 | host_alias=$host_alias |
---|
14075 | host=$host |
---|
14076 | host_os=$host_os |
---|
14077 | |
---|
14078 | # The build system. |
---|
14079 | build_alias=$build_alias |
---|
14080 | build=$build |
---|
14081 | build_os=$build_os |
---|
14082 | |
---|
14083 | # An echo program that does not interpret backslashes. |
---|
14084 | echo=$lt_echo |
---|
14085 | |
---|
14086 | # The archiver. |
---|
14087 | AR=$lt_AR |
---|
14088 | AR_FLAGS=$lt_AR_FLAGS |
---|
14089 | |
---|
14090 | # A C compiler. |
---|
14091 | LTCC=$lt_LTCC |
---|
14092 | |
---|
14093 | # LTCC compiler flags. |
---|
14094 | LTCFLAGS=$lt_LTCFLAGS |
---|
14095 | |
---|
14096 | # A language-specific compiler. |
---|
14097 | CC=$lt_compiler_CXX |
---|
14098 | |
---|
14099 | # Is the compiler the GNU C compiler? |
---|
14100 | with_gcc=$GCC_CXX |
---|
14101 | |
---|
14102 | # An ERE matcher. |
---|
14103 | EGREP=$lt_EGREP |
---|
14104 | |
---|
14105 | # The linker used to build libraries. |
---|
14106 | LD=$lt_LD_CXX |
---|
14107 | |
---|
14108 | # Whether we need hard or soft links. |
---|
14109 | LN_S=$lt_LN_S |
---|
14110 | |
---|
14111 | # A BSD-compatible nm program. |
---|
14112 | NM=$lt_NM |
---|
14113 | |
---|
14114 | # A symbol stripping program |
---|
14115 | STRIP=$lt_STRIP |
---|
14116 | |
---|
14117 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
14118 | MAGIC_CMD=$MAGIC_CMD |
---|
14119 | |
---|
14120 | # Used on cygwin: DLL creation program. |
---|
14121 | DLLTOOL="$DLLTOOL" |
---|
14122 | |
---|
14123 | # Used on cygwin: object dumper. |
---|
14124 | OBJDUMP="$OBJDUMP" |
---|
14125 | |
---|
14126 | # Used on cygwin: assembler. |
---|
14127 | AS="$AS" |
---|
14128 | |
---|
14129 | # The name of the directory that contains temporary libtool files. |
---|
14130 | objdir=$objdir |
---|
14131 | |
---|
14132 | # How to create reloadable object files. |
---|
14133 | reload_flag=$lt_reload_flag |
---|
14134 | reload_cmds=$lt_reload_cmds |
---|
14135 | |
---|
14136 | # How to pass a linker flag through the compiler. |
---|
14137 | wl=$lt_lt_prog_compiler_wl_CXX |
---|
14138 | |
---|
14139 | # Object file suffix (normally "o"). |
---|
14140 | objext="$ac_objext" |
---|
14141 | |
---|
14142 | # Old archive suffix (normally "a"). |
---|
14143 | libext="$libext" |
---|
14144 | |
---|
14145 | # Shared library suffix (normally ".so"). |
---|
14146 | shrext_cmds='$shrext_cmds' |
---|
14147 | |
---|
14148 | # Executable file suffix (normally ""). |
---|
14149 | exeext="$exeext" |
---|
14150 | |
---|
14151 | # Additional compiler flags for building library objects. |
---|
14152 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
---|
14153 | pic_mode=$pic_mode |
---|
14154 | |
---|
14155 | # What is the maximum length of a command? |
---|
14156 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
14157 | |
---|
14158 | # Does compiler simultaneously support -c and -o options? |
---|
14159 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
---|
14160 | |
---|
14161 | # Must we lock files when doing compilation? |
---|
14162 | need_locks=$lt_need_locks |
---|
14163 | |
---|
14164 | # Do we need the lib prefix for modules? |
---|
14165 | need_lib_prefix=$need_lib_prefix |
---|
14166 | |
---|
14167 | # Do we need a version for libraries? |
---|
14168 | need_version=$need_version |
---|
14169 | |
---|
14170 | # Whether dlopen is supported. |
---|
14171 | dlopen_support=$enable_dlopen |
---|
14172 | |
---|
14173 | # Whether dlopen of programs is supported. |
---|
14174 | dlopen_self=$enable_dlopen_self |
---|
14175 | |
---|
14176 | # Whether dlopen of statically linked programs is supported. |
---|
14177 | dlopen_self_static=$enable_dlopen_self_static |
---|
14178 | |
---|
14179 | # Compiler flag to prevent dynamic linking. |
---|
14180 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
---|
14181 | |
---|
14182 | # Compiler flag to turn off builtin functions. |
---|
14183 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
---|
14184 | |
---|
14185 | # Compiler flag to allow reflexive dlopens. |
---|
14186 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
---|
14187 | |
---|
14188 | # Compiler flag to generate shared objects directly from archives. |
---|
14189 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
---|
14190 | |
---|
14191 | # Compiler flag to generate thread-safe objects. |
---|
14192 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
---|
14193 | |
---|
14194 | # Library versioning type. |
---|
14195 | version_type=$version_type |
---|
14196 | |
---|
14197 | # Format of library name prefix. |
---|
14198 | libname_spec=$lt_libname_spec |
---|
14199 | |
---|
14200 | # List of archive names. First name is the real one, the rest are links. |
---|
14201 | # The last name is the one that the linker finds with -lNAME. |
---|
14202 | library_names_spec=$lt_library_names_spec |
---|
14203 | |
---|
14204 | # The coded name of the library, if different from the real name. |
---|
14205 | soname_spec=$lt_soname_spec |
---|
14206 | |
---|
14207 | # Commands used to build and install an old-style archive. |
---|
14208 | RANLIB=$lt_RANLIB |
---|
14209 | old_archive_cmds=$lt_old_archive_cmds_CXX |
---|
14210 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
14211 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
14212 | |
---|
14213 | # Create an old-style archive from a shared archive. |
---|
14214 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
---|
14215 | |
---|
14216 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
14217 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
---|
14218 | |
---|
14219 | # Commands used to build and install a shared archive. |
---|
14220 | archive_cmds=$lt_archive_cmds_CXX |
---|
14221 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
---|
14222 | postinstall_cmds=$lt_postinstall_cmds |
---|
14223 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
14224 | |
---|
14225 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
14226 | module_cmds=$lt_module_cmds_CXX |
---|
14227 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
---|
14228 | |
---|
14229 | # Commands to strip libraries. |
---|
14230 | old_striplib=$lt_old_striplib |
---|
14231 | striplib=$lt_striplib |
---|
14232 | |
---|
14233 | # Dependencies to place before the objects being linked to create a |
---|
14234 | # shared library. |
---|
14235 | predep_objects=$lt_predep_objects_CXX |
---|
14236 | |
---|
14237 | # Dependencies to place after the objects being linked to create a |
---|
14238 | # shared library. |
---|
14239 | postdep_objects=$lt_postdep_objects_CXX |
---|
14240 | |
---|
14241 | # Dependencies to place before the objects being linked to create a |
---|
14242 | # shared library. |
---|
14243 | predeps=$lt_predeps_CXX |
---|
14244 | |
---|
14245 | # Dependencies to place after the objects being linked to create a |
---|
14246 | # shared library. |
---|
14247 | postdeps=$lt_postdeps_CXX |
---|
14248 | |
---|
14249 | # The library search path used internally by the compiler when linking |
---|
14250 | # a shared library. |
---|
14251 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
---|
14252 | |
---|
14253 | # Method to check whether dependent libraries are shared objects. |
---|
14254 | deplibs_check_method=$lt_deplibs_check_method |
---|
14255 | |
---|
14256 | # Command to use when deplibs_check_method == file_magic. |
---|
14257 | file_magic_cmd=$lt_file_magic_cmd |
---|
14258 | |
---|
14259 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
14260 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
---|
14261 | |
---|
14262 | # Flag that forces no undefined symbols. |
---|
14263 | no_undefined_flag=$lt_no_undefined_flag_CXX |
---|
14264 | |
---|
14265 | # Commands used to finish a libtool library installation in a directory. |
---|
14266 | finish_cmds=$lt_finish_cmds |
---|
14267 | |
---|
14268 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
14269 | finish_eval=$lt_finish_eval |
---|
14270 | |
---|
14271 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
14272 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
14273 | |
---|
14274 | # Transform the output of nm in a proper C declaration |
---|
14275 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
14276 | |
---|
14277 | # Transform the output of nm in a C name address pair |
---|
14278 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
14279 | |
---|
14280 | # This is the shared library runtime path variable. |
---|
14281 | runpath_var=$runpath_var |
---|
14282 | |
---|
14283 | # This is the shared library path variable. |
---|
14284 | shlibpath_var=$shlibpath_var |
---|
14285 | |
---|
14286 | # Is shlibpath searched before the hard-coded library search path? |
---|
14287 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
14288 | |
---|
14289 | # How to hardcode a shared library path into an executable. |
---|
14290 | hardcode_action=$hardcode_action_CXX |
---|
14291 | |
---|
14292 | # Whether we should hardcode library paths into libraries. |
---|
14293 | hardcode_into_libs=$hardcode_into_libs |
---|
14294 | |
---|
14295 | # Flag to hardcode \$libdir into a binary during linking. |
---|
14296 | # This must work even if \$libdir does not exist. |
---|
14297 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
---|
14298 | |
---|
14299 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
14300 | # a binary during linking. This must work even if \$libdir does |
---|
14301 | # not exist. |
---|
14302 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
---|
14303 | |
---|
14304 | # Whether we need a single -rpath flag with a separated argument. |
---|
14305 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
---|
14306 | |
---|
14307 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
14308 | # resulting binary. |
---|
14309 | hardcode_direct=$hardcode_direct_CXX |
---|
14310 | |
---|
14311 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
14312 | # resulting binary. |
---|
14313 | hardcode_minus_L=$hardcode_minus_L_CXX |
---|
14314 | |
---|
14315 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
14316 | # the resulting binary. |
---|
14317 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
---|
14318 | |
---|
14319 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
14320 | # and all subsequent libraries and executables linked against it. |
---|
14321 | hardcode_automatic=$hardcode_automatic_CXX |
---|
14322 | |
---|
14323 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
14324 | # restored at relink time. |
---|
14325 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
14326 | |
---|
14327 | # Whether libtool must link a program against all its dependency libraries. |
---|
14328 | link_all_deplibs=$link_all_deplibs_CXX |
---|
14329 | |
---|
14330 | # Compile-time system search path for libraries |
---|
14331 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
14332 | |
---|
14333 | # Run-time system search path for libraries |
---|
14334 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
14335 | |
---|
14336 | # Fix the shell variable \$srcfile for the compiler. |
---|
14337 | fix_srcfile_path=$lt_fix_srcfile_path |
---|
14338 | |
---|
14339 | # Set to yes if exported symbols are required. |
---|
14340 | always_export_symbols=$always_export_symbols_CXX |
---|
14341 | |
---|
14342 | # The commands to list exported symbols. |
---|
14343 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
---|
14344 | |
---|
14345 | # The commands to extract the exported symbol list from a shared archive. |
---|
14346 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
14347 | |
---|
14348 | # Symbols that should not be listed in the preloaded symbols. |
---|
14349 | exclude_expsyms=$lt_exclude_expsyms_CXX |
---|
14350 | |
---|
14351 | # Symbols that must always be exported. |
---|
14352 | include_expsyms=$lt_include_expsyms_CXX |
---|
14353 | |
---|
14354 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
14355 | |
---|
14356 | __EOF__ |
---|
14357 | |
---|
14358 | |
---|
14359 | else |
---|
14360 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
14361 | # `config.status --recheck' to rerun these tests and create the |
---|
14362 | # libtool script then. |
---|
14363 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
14364 | if test -f "$ltmain_in"; then |
---|
14365 | test -f Makefile && make "$ltmain" |
---|
14366 | fi |
---|
14367 | fi |
---|
14368 | |
---|
14369 | |
---|
14370 | ac_ext=c |
---|
14371 | ac_cpp='$CPP $CPPFLAGS' |
---|
14372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
14373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
14374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
14375 | |
---|
14376 | CC=$lt_save_CC |
---|
14377 | LDCXX=$LD |
---|
14378 | LD=$lt_save_LD |
---|
14379 | GCC=$lt_save_GCC |
---|
14380 | with_gnu_ldcxx=$with_gnu_ld |
---|
14381 | with_gnu_ld=$lt_save_with_gnu_ld |
---|
14382 | lt_cv_path_LDCXX=$lt_cv_path_LD |
---|
14383 | lt_cv_path_LD=$lt_save_path_LD |
---|
14384 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
---|
14385 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
---|
14386 | |
---|
14387 | else |
---|
14388 | tagname="" |
---|
14389 | fi |
---|
14390 | ;; |
---|
14391 | |
---|
14392 | F77) |
---|
14393 | if test -n "$F77" && test "X$F77" != "Xno"; then |
---|
14394 | |
---|
14395 | ac_ext=f |
---|
14396 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
14397 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
14398 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
14399 | |
---|
14400 | |
---|
14401 | archive_cmds_need_lc_F77=no |
---|
14402 | allow_undefined_flag_F77= |
---|
14403 | always_export_symbols_F77=no |
---|
14404 | archive_expsym_cmds_F77= |
---|
14405 | export_dynamic_flag_spec_F77= |
---|
14406 | hardcode_direct_F77=no |
---|
14407 | hardcode_libdir_flag_spec_F77= |
---|
14408 | hardcode_libdir_flag_spec_ld_F77= |
---|
14409 | hardcode_libdir_separator_F77= |
---|
14410 | hardcode_minus_L_F77=no |
---|
14411 | hardcode_automatic_F77=no |
---|
14412 | module_cmds_F77= |
---|
14413 | module_expsym_cmds_F77= |
---|
14414 | link_all_deplibs_F77=unknown |
---|
14415 | old_archive_cmds_F77=$old_archive_cmds |
---|
14416 | no_undefined_flag_F77= |
---|
14417 | whole_archive_flag_spec_F77= |
---|
14418 | enable_shared_with_static_runtimes_F77=no |
---|
14419 | |
---|
14420 | # Source file extension for f77 test sources. |
---|
14421 | ac_ext=f |
---|
14422 | |
---|
14423 | # Object file extension for compiled f77 test sources. |
---|
14424 | objext=o |
---|
14425 | objext_F77=$objext |
---|
14426 | |
---|
14427 | # Code to be used in simple compile tests |
---|
14428 | lt_simple_compile_test_code="\ |
---|
14429 | subroutine t |
---|
14430 | return |
---|
14431 | end |
---|
14432 | " |
---|
14433 | |
---|
14434 | # Code to be used in simple link tests |
---|
14435 | lt_simple_link_test_code="\ |
---|
14436 | program t |
---|
14437 | end |
---|
14438 | " |
---|
14439 | |
---|
14440 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
14441 | |
---|
14442 | # If no C compiler was specified, use CC. |
---|
14443 | LTCC=${LTCC-"$CC"} |
---|
14444 | |
---|
14445 | # If no C compiler flags were specified, use CFLAGS. |
---|
14446 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
14447 | |
---|
14448 | # Allow CC to be a program name with arguments. |
---|
14449 | compiler=$CC |
---|
14450 | |
---|
14451 | |
---|
14452 | # save warnings/boilerplate of simple test code |
---|
14453 | ac_outfile=conftest.$ac_objext |
---|
14454 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
14455 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
14456 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
14457 | $rm conftest* |
---|
14458 | |
---|
14459 | ac_outfile=conftest.$ac_objext |
---|
14460 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
14461 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
14462 | _lt_linker_boilerplate=`cat conftest.err` |
---|
14463 | $rm conftest* |
---|
14464 | |
---|
14465 | |
---|
14466 | # Allow CC to be a program name with arguments. |
---|
14467 | lt_save_CC="$CC" |
---|
14468 | CC=${F77-"f77"} |
---|
14469 | compiler=$CC |
---|
14470 | compiler_F77=$CC |
---|
14471 | for cc_temp in $compiler""; do |
---|
14472 | case $cc_temp in |
---|
14473 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
14474 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
14475 | \-*) ;; |
---|
14476 | *) break;; |
---|
14477 | esac |
---|
14478 | done |
---|
14479 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
14480 | |
---|
14481 | |
---|
14482 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
14483 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
---|
14484 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
14485 | echo "${ECHO_T}$can_build_shared" >&6; } |
---|
14486 | |
---|
14487 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
14488 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
---|
14489 | test "$can_build_shared" = "no" && enable_shared=no |
---|
14490 | |
---|
14491 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
14492 | # are all built from PIC. |
---|
14493 | case $host_os in |
---|
14494 | aix3*) |
---|
14495 | test "$enable_shared" = yes && enable_static=no |
---|
14496 | if test -n "$RANLIB"; then |
---|
14497 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
14498 | postinstall_cmds='$RANLIB $lib' |
---|
14499 | fi |
---|
14500 | ;; |
---|
14501 | aix4* | aix5*) |
---|
14502 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
14503 | test "$enable_shared" = yes && enable_static=no |
---|
14504 | fi |
---|
14505 | ;; |
---|
14506 | esac |
---|
14507 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
14508 | echo "${ECHO_T}$enable_shared" >&6; } |
---|
14509 | |
---|
14510 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
14511 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
---|
14512 | # Make sure either enable_shared or enable_static is yes. |
---|
14513 | test "$enable_shared" = yes || enable_static=yes |
---|
14514 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
14515 | echo "${ECHO_T}$enable_static" >&6; } |
---|
14516 | |
---|
14517 | GCC_F77="$G77" |
---|
14518 | LD_F77="$LD" |
---|
14519 | |
---|
14520 | lt_prog_compiler_wl_F77= |
---|
14521 | lt_prog_compiler_pic_F77= |
---|
14522 | lt_prog_compiler_static_F77= |
---|
14523 | |
---|
14524 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
14525 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
---|
14526 | |
---|
14527 | if test "$GCC" = yes; then |
---|
14528 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14529 | lt_prog_compiler_static_F77='-static' |
---|
14530 | |
---|
14531 | case $host_os in |
---|
14532 | aix*) |
---|
14533 | # All AIX code is PIC. |
---|
14534 | if test "$host_cpu" = ia64; then |
---|
14535 | # AIX 5 now supports IA64 processor |
---|
14536 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14537 | fi |
---|
14538 | ;; |
---|
14539 | |
---|
14540 | amigaos*) |
---|
14541 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
14542 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
14543 | # like `-m68040'. |
---|
14544 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
---|
14545 | ;; |
---|
14546 | |
---|
14547 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
14548 | # PIC is the default for these OSes. |
---|
14549 | ;; |
---|
14550 | |
---|
14551 | mingw* | cygwin* | pw32* | os2*) |
---|
14552 | # This hack is so that the source file can tell whether it is being |
---|
14553 | # built for inclusion in a dll (and should export symbols for example). |
---|
14554 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
---|
14555 | # (--disable-auto-import) libraries |
---|
14556 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
---|
14557 | ;; |
---|
14558 | |
---|
14559 | darwin* | rhapsody*) |
---|
14560 | # PIC is the default on this platform |
---|
14561 | # Common symbols not allowed in MH_DYLIB files |
---|
14562 | lt_prog_compiler_pic_F77='-fno-common' |
---|
14563 | ;; |
---|
14564 | |
---|
14565 | interix[3-9]*) |
---|
14566 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
14567 | # Instead, we relocate shared libraries at runtime. |
---|
14568 | ;; |
---|
14569 | |
---|
14570 | msdosdjgpp*) |
---|
14571 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
14572 | # on systems that don't support them. |
---|
14573 | lt_prog_compiler_can_build_shared_F77=no |
---|
14574 | enable_shared=no |
---|
14575 | ;; |
---|
14576 | |
---|
14577 | sysv4*MP*) |
---|
14578 | if test -d /usr/nec; then |
---|
14579 | lt_prog_compiler_pic_F77=-Kconform_pic |
---|
14580 | fi |
---|
14581 | ;; |
---|
14582 | |
---|
14583 | hpux*) |
---|
14584 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
14585 | # not for PA HP-UX. |
---|
14586 | case $host_cpu in |
---|
14587 | hppa*64*|ia64*) |
---|
14588 | # +Z the default |
---|
14589 | ;; |
---|
14590 | *) |
---|
14591 | lt_prog_compiler_pic_F77='-fPIC' |
---|
14592 | ;; |
---|
14593 | esac |
---|
14594 | ;; |
---|
14595 | |
---|
14596 | *) |
---|
14597 | lt_prog_compiler_pic_F77='-fPIC' |
---|
14598 | ;; |
---|
14599 | esac |
---|
14600 | else |
---|
14601 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
14602 | case $host_os in |
---|
14603 | aix*) |
---|
14604 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14605 | if test "$host_cpu" = ia64; then |
---|
14606 | # AIX 5 now supports IA64 processor |
---|
14607 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14608 | else |
---|
14609 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
---|
14610 | fi |
---|
14611 | ;; |
---|
14612 | darwin*) |
---|
14613 | # PIC is the default on this platform |
---|
14614 | # Common symbols not allowed in MH_DYLIB files |
---|
14615 | case $cc_basename in |
---|
14616 | xlc*) |
---|
14617 | lt_prog_compiler_pic_F77='-qnocommon' |
---|
14618 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14619 | ;; |
---|
14620 | esac |
---|
14621 | ;; |
---|
14622 | |
---|
14623 | mingw* | cygwin* | pw32* | os2*) |
---|
14624 | # This hack is so that the source file can tell whether it is being |
---|
14625 | # built for inclusion in a dll (and should export symbols for example). |
---|
14626 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
---|
14627 | ;; |
---|
14628 | |
---|
14629 | hpux9* | hpux10* | hpux11*) |
---|
14630 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14631 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
14632 | # not for PA HP-UX. |
---|
14633 | case $host_cpu in |
---|
14634 | hppa*64*|ia64*) |
---|
14635 | # +Z the default |
---|
14636 | ;; |
---|
14637 | *) |
---|
14638 | lt_prog_compiler_pic_F77='+Z' |
---|
14639 | ;; |
---|
14640 | esac |
---|
14641 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
14642 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
---|
14643 | ;; |
---|
14644 | |
---|
14645 | irix5* | irix6* | nonstopux*) |
---|
14646 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14647 | # PIC (with -KPIC) is the default. |
---|
14648 | lt_prog_compiler_static_F77='-non_shared' |
---|
14649 | ;; |
---|
14650 | |
---|
14651 | newsos6) |
---|
14652 | lt_prog_compiler_pic_F77='-KPIC' |
---|
14653 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14654 | ;; |
---|
14655 | |
---|
14656 | linux* | k*bsd*-gnu) |
---|
14657 | case $cc_basename in |
---|
14658 | icc* | ecc*) |
---|
14659 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14660 | lt_prog_compiler_pic_F77='-KPIC' |
---|
14661 | lt_prog_compiler_static_F77='-static' |
---|
14662 | ;; |
---|
14663 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
14664 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
14665 | # which looks to be a dead project) |
---|
14666 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14667 | lt_prog_compiler_pic_F77='-fpic' |
---|
14668 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14669 | ;; |
---|
14670 | ccc*) |
---|
14671 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14672 | # All Alpha code is PIC. |
---|
14673 | lt_prog_compiler_static_F77='-non_shared' |
---|
14674 | ;; |
---|
14675 | *) |
---|
14676 | case `$CC -V 2>&1 | sed 5q` in |
---|
14677 | *Sun\ C*) |
---|
14678 | # Sun C 5.9 |
---|
14679 | lt_prog_compiler_pic_F77='-KPIC' |
---|
14680 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14681 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14682 | ;; |
---|
14683 | *Sun\ F*) |
---|
14684 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
---|
14685 | lt_prog_compiler_pic_F77='-KPIC' |
---|
14686 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14687 | lt_prog_compiler_wl_F77='' |
---|
14688 | ;; |
---|
14689 | esac |
---|
14690 | ;; |
---|
14691 | esac |
---|
14692 | ;; |
---|
14693 | |
---|
14694 | osf3* | osf4* | osf5*) |
---|
14695 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14696 | # All OSF/1 code is PIC. |
---|
14697 | lt_prog_compiler_static_F77='-non_shared' |
---|
14698 | ;; |
---|
14699 | |
---|
14700 | rdos*) |
---|
14701 | lt_prog_compiler_static_F77='-non_shared' |
---|
14702 | ;; |
---|
14703 | |
---|
14704 | solaris*) |
---|
14705 | lt_prog_compiler_pic_F77='-KPIC' |
---|
14706 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14707 | case $cc_basename in |
---|
14708 | f77* | f90* | f95*) |
---|
14709 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
---|
14710 | *) |
---|
14711 | lt_prog_compiler_wl_F77='-Wl,';; |
---|
14712 | esac |
---|
14713 | ;; |
---|
14714 | |
---|
14715 | sunos4*) |
---|
14716 | lt_prog_compiler_wl_F77='-Qoption ld ' |
---|
14717 | lt_prog_compiler_pic_F77='-PIC' |
---|
14718 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14719 | ;; |
---|
14720 | |
---|
14721 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
14722 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14723 | lt_prog_compiler_pic_F77='-KPIC' |
---|
14724 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14725 | ;; |
---|
14726 | |
---|
14727 | sysv4*MP*) |
---|
14728 | if test -d /usr/nec ;then |
---|
14729 | lt_prog_compiler_pic_F77='-Kconform_pic' |
---|
14730 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14731 | fi |
---|
14732 | ;; |
---|
14733 | |
---|
14734 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
14735 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14736 | lt_prog_compiler_pic_F77='-KPIC' |
---|
14737 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14738 | ;; |
---|
14739 | |
---|
14740 | unicos*) |
---|
14741 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14742 | lt_prog_compiler_can_build_shared_F77=no |
---|
14743 | ;; |
---|
14744 | |
---|
14745 | uts4*) |
---|
14746 | lt_prog_compiler_pic_F77='-pic' |
---|
14747 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14748 | ;; |
---|
14749 | |
---|
14750 | *) |
---|
14751 | lt_prog_compiler_can_build_shared_F77=no |
---|
14752 | ;; |
---|
14753 | esac |
---|
14754 | fi |
---|
14755 | |
---|
14756 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
---|
14757 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
---|
14758 | |
---|
14759 | # |
---|
14760 | # Check to make sure the PIC flag actually works. |
---|
14761 | # |
---|
14762 | if test -n "$lt_prog_compiler_pic_F77"; then |
---|
14763 | |
---|
14764 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
---|
14765 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
---|
14766 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
---|
14767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
14768 | else |
---|
14769 | lt_prog_compiler_pic_works_F77=no |
---|
14770 | ac_outfile=conftest.$ac_objext |
---|
14771 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
14772 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
---|
14773 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
14774 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
14775 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
14776 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
14777 | # The option is referenced via a variable to avoid confusing sed. |
---|
14778 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
14779 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
14780 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
14781 | -e 's:$: $lt_compiler_flag:'` |
---|
14782 | (eval echo "\"\$as_me:14782: $lt_compile\"" >&5) |
---|
14783 | (eval "$lt_compile" 2>conftest.err) |
---|
14784 | ac_status=$? |
---|
14785 | cat conftest.err >&5 |
---|
14786 | echo "$as_me:14786: \$? = $ac_status" >&5 |
---|
14787 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
14788 | # The compiler can only warn and ignore the option if not recognized |
---|
14789 | # So say no if there are warnings other than the usual output. |
---|
14790 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
14791 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
14792 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
14793 | lt_prog_compiler_pic_works_F77=yes |
---|
14794 | fi |
---|
14795 | fi |
---|
14796 | $rm conftest* |
---|
14797 | |
---|
14798 | fi |
---|
14799 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
---|
14800 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
---|
14801 | |
---|
14802 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
---|
14803 | case $lt_prog_compiler_pic_F77 in |
---|
14804 | "" | " "*) ;; |
---|
14805 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
---|
14806 | esac |
---|
14807 | else |
---|
14808 | lt_prog_compiler_pic_F77= |
---|
14809 | lt_prog_compiler_can_build_shared_F77=no |
---|
14810 | fi |
---|
14811 | |
---|
14812 | fi |
---|
14813 | case $host_os in |
---|
14814 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
14815 | *djgpp*) |
---|
14816 | lt_prog_compiler_pic_F77= |
---|
14817 | ;; |
---|
14818 | *) |
---|
14819 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
---|
14820 | ;; |
---|
14821 | esac |
---|
14822 | |
---|
14823 | # |
---|
14824 | # Check to make sure the static flag actually works. |
---|
14825 | # |
---|
14826 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
---|
14827 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
14828 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
---|
14829 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
---|
14830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
14831 | else |
---|
14832 | lt_prog_compiler_static_works_F77=no |
---|
14833 | save_LDFLAGS="$LDFLAGS" |
---|
14834 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
14835 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
14836 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
14837 | # The linker can only warn and ignore the option if not recognized |
---|
14838 | # So say no if there are warnings |
---|
14839 | if test -s conftest.err; then |
---|
14840 | # Append any errors to the config.log. |
---|
14841 | cat conftest.err 1>&5 |
---|
14842 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
14843 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
14844 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
14845 | lt_prog_compiler_static_works_F77=yes |
---|
14846 | fi |
---|
14847 | else |
---|
14848 | lt_prog_compiler_static_works_F77=yes |
---|
14849 | fi |
---|
14850 | fi |
---|
14851 | $rm conftest* |
---|
14852 | LDFLAGS="$save_LDFLAGS" |
---|
14853 | |
---|
14854 | fi |
---|
14855 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
---|
14856 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
---|
14857 | |
---|
14858 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
---|
14859 | : |
---|
14860 | else |
---|
14861 | lt_prog_compiler_static_F77= |
---|
14862 | fi |
---|
14863 | |
---|
14864 | |
---|
14865 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
14866 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
---|
14867 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
---|
14868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
14869 | else |
---|
14870 | lt_cv_prog_compiler_c_o_F77=no |
---|
14871 | $rm -r conftest 2>/dev/null |
---|
14872 | mkdir conftest |
---|
14873 | cd conftest |
---|
14874 | mkdir out |
---|
14875 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
14876 | |
---|
14877 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
14878 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
14879 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
14880 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
14881 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
14882 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
14883 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
14884 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
14885 | -e 's:$: $lt_compiler_flag:'` |
---|
14886 | (eval echo "\"\$as_me:14886: $lt_compile\"" >&5) |
---|
14887 | (eval "$lt_compile" 2>out/conftest.err) |
---|
14888 | ac_status=$? |
---|
14889 | cat out/conftest.err >&5 |
---|
14890 | echo "$as_me:14890: \$? = $ac_status" >&5 |
---|
14891 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
14892 | then |
---|
14893 | # The compiler can only warn and ignore the option if not recognized |
---|
14894 | # So say no if there are warnings |
---|
14895 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
14896 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
14897 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
14898 | lt_cv_prog_compiler_c_o_F77=yes |
---|
14899 | fi |
---|
14900 | fi |
---|
14901 | chmod u+w . 2>&5 |
---|
14902 | $rm conftest* |
---|
14903 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
14904 | # template instantiation |
---|
14905 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
14906 | $rm out/* && rmdir out |
---|
14907 | cd .. |
---|
14908 | rmdir conftest |
---|
14909 | $rm conftest* |
---|
14910 | |
---|
14911 | fi |
---|
14912 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
---|
14913 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
---|
14914 | |
---|
14915 | |
---|
14916 | hard_links="nottested" |
---|
14917 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
---|
14918 | # do not overwrite the value of need_locks provided by the user |
---|
14919 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
14920 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
---|
14921 | hard_links=yes |
---|
14922 | $rm conftest* |
---|
14923 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
14924 | touch conftest.a |
---|
14925 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
14926 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
14927 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
14928 | echo "${ECHO_T}$hard_links" >&6; } |
---|
14929 | if test "$hard_links" = no; then |
---|
14930 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
14931 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
14932 | need_locks=warn |
---|
14933 | fi |
---|
14934 | else |
---|
14935 | need_locks=no |
---|
14936 | fi |
---|
14937 | |
---|
14938 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
14939 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
14940 | |
---|
14941 | runpath_var= |
---|
14942 | allow_undefined_flag_F77= |
---|
14943 | enable_shared_with_static_runtimes_F77=no |
---|
14944 | archive_cmds_F77= |
---|
14945 | archive_expsym_cmds_F77= |
---|
14946 | old_archive_From_new_cmds_F77= |
---|
14947 | old_archive_from_expsyms_cmds_F77= |
---|
14948 | export_dynamic_flag_spec_F77= |
---|
14949 | whole_archive_flag_spec_F77= |
---|
14950 | thread_safe_flag_spec_F77= |
---|
14951 | hardcode_libdir_flag_spec_F77= |
---|
14952 | hardcode_libdir_flag_spec_ld_F77= |
---|
14953 | hardcode_libdir_separator_F77= |
---|
14954 | hardcode_direct_F77=no |
---|
14955 | hardcode_minus_L_F77=no |
---|
14956 | hardcode_shlibpath_var_F77=unsupported |
---|
14957 | link_all_deplibs_F77=unknown |
---|
14958 | hardcode_automatic_F77=no |
---|
14959 | module_cmds_F77= |
---|
14960 | module_expsym_cmds_F77= |
---|
14961 | always_export_symbols_F77=no |
---|
14962 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
14963 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
14964 | # included in the symbol list |
---|
14965 | include_expsyms_F77= |
---|
14966 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
14967 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
14968 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
14969 | # as well as any symbol that contains `d'. |
---|
14970 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
---|
14971 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
14972 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
14973 | # the symbol is explicitly referenced. Since portable code cannot |
---|
14974 | # rely on this symbol name, it's probably fine to never include it in |
---|
14975 | # preloaded symbol tables. |
---|
14976 | extract_expsyms_cmds= |
---|
14977 | # Just being paranoid about ensuring that cc_basename is set. |
---|
14978 | for cc_temp in $compiler""; do |
---|
14979 | case $cc_temp in |
---|
14980 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
14981 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
14982 | \-*) ;; |
---|
14983 | *) break;; |
---|
14984 | esac |
---|
14985 | done |
---|
14986 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
14987 | |
---|
14988 | case $host_os in |
---|
14989 | cygwin* | mingw* | pw32*) |
---|
14990 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
14991 | # When not using gcc, we currently assume that we are using |
---|
14992 | # Microsoft Visual C++. |
---|
14993 | if test "$GCC" != yes; then |
---|
14994 | with_gnu_ld=no |
---|
14995 | fi |
---|
14996 | ;; |
---|
14997 | interix*) |
---|
14998 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
14999 | with_gnu_ld=yes |
---|
15000 | ;; |
---|
15001 | openbsd*) |
---|
15002 | with_gnu_ld=no |
---|
15003 | ;; |
---|
15004 | esac |
---|
15005 | |
---|
15006 | ld_shlibs_F77=yes |
---|
15007 | if test "$with_gnu_ld" = yes; then |
---|
15008 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
15009 | wlarc='${wl}' |
---|
15010 | |
---|
15011 | # Set some defaults for GNU ld with shared library support. These |
---|
15012 | # are reset later if shared libraries are not supported. Putting them |
---|
15013 | # here allows them to be overridden if necessary. |
---|
15014 | runpath_var=LD_RUN_PATH |
---|
15015 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
---|
15016 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
---|
15017 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
15018 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
15019 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
15020 | else |
---|
15021 | whole_archive_flag_spec_F77= |
---|
15022 | fi |
---|
15023 | supports_anon_versioning=no |
---|
15024 | case `$LD -v 2>/dev/null` in |
---|
15025 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
15026 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
15027 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
15028 | *\ 2.11.*) ;; # other 2.11 versions |
---|
15029 | *) supports_anon_versioning=yes ;; |
---|
15030 | esac |
---|
15031 | |
---|
15032 | # See if GNU ld supports shared libraries. |
---|
15033 | case $host_os in |
---|
15034 | aix3* | aix4* | aix5*) |
---|
15035 | # On AIX/PPC, the GNU linker is very broken |
---|
15036 | if test "$host_cpu" != ia64; then |
---|
15037 | ld_shlibs_F77=no |
---|
15038 | cat <<EOF 1>&2 |
---|
15039 | |
---|
15040 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
15041 | *** to be unable to reliably create shared libraries on AIX. |
---|
15042 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
15043 | *** really care for shared libraries, you may want to modify your PATH |
---|
15044 | *** so that a non-GNU linker is found, and then restart. |
---|
15045 | |
---|
15046 | EOF |
---|
15047 | fi |
---|
15048 | ;; |
---|
15049 | |
---|
15050 | amigaos*) |
---|
15051 | archive_cmds_F77='$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)' |
---|
15052 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15053 | hardcode_minus_L_F77=yes |
---|
15054 | |
---|
15055 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
15056 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
15057 | # to version 4, is to share data among multiple programs linked |
---|
15058 | # with the same dynamic library. Since this doesn't match the |
---|
15059 | # behavior of shared libraries on other platforms, we can't use |
---|
15060 | # them. |
---|
15061 | ld_shlibs_F77=no |
---|
15062 | ;; |
---|
15063 | |
---|
15064 | beos*) |
---|
15065 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
15066 | allow_undefined_flag_F77=unsupported |
---|
15067 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
15068 | # support --undefined. This deserves some investigation. FIXME |
---|
15069 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
15070 | else |
---|
15071 | ld_shlibs_F77=no |
---|
15072 | fi |
---|
15073 | ;; |
---|
15074 | |
---|
15075 | cygwin* | mingw* | pw32*) |
---|
15076 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
---|
15077 | # as there is no search path for DLLs. |
---|
15078 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15079 | allow_undefined_flag_F77=unsupported |
---|
15080 | always_export_symbols_F77=no |
---|
15081 | enable_shared_with_static_runtimes_F77=yes |
---|
15082 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
---|
15083 | |
---|
15084 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
15085 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
15086 | # If the export-symbols file already is a .def file (1st line |
---|
15087 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
15088 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
15089 | cp $export_symbols $output_objdir/$soname.def; |
---|
15090 | else |
---|
15091 | echo EXPORTS > $output_objdir/$soname.def; |
---|
15092 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
15093 | fi~ |
---|
15094 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
15095 | else |
---|
15096 | ld_shlibs_F77=no |
---|
15097 | fi |
---|
15098 | ;; |
---|
15099 | |
---|
15100 | interix[3-9]*) |
---|
15101 | hardcode_direct_F77=no |
---|
15102 | hardcode_shlibpath_var_F77=no |
---|
15103 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
---|
15104 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
15105 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
15106 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
15107 | # default) and relocated if they conflict, which is a slow very memory |
---|
15108 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
15109 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
15110 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
15111 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
15112 | archive_expsym_cmds_F77='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' |
---|
15113 | ;; |
---|
15114 | |
---|
15115 | gnu* | linux* | k*bsd*-gnu) |
---|
15116 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
15117 | tmp_addflag= |
---|
15118 | case $cc_basename,$host_cpu in |
---|
15119 | pgcc*) # Portland Group C compiler |
---|
15120 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
15121 | tmp_addflag=' $pic_flag' |
---|
15122 | ;; |
---|
15123 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
15124 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
15125 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
15126 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
15127 | tmp_addflag=' -i_dynamic' ;; |
---|
15128 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
15129 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
15130 | ifc* | ifort*) # Intel Fortran compiler |
---|
15131 | tmp_addflag=' -nofor_main' ;; |
---|
15132 | esac |
---|
15133 | case `$CC -V 2>&1 | sed 5q` in |
---|
15134 | *Sun\ C*) # Sun C 5.9 |
---|
15135 | whole_archive_flag_spec_F77='${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' |
---|
15136 | tmp_sharedflag='-G' ;; |
---|
15137 | *Sun\ F*) # Sun Fortran 8.3 |
---|
15138 | tmp_sharedflag='-G' ;; |
---|
15139 | *) |
---|
15140 | tmp_sharedflag='-shared' ;; |
---|
15141 | esac |
---|
15142 | archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
15143 | |
---|
15144 | if test $supports_anon_versioning = yes; then |
---|
15145 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
15146 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
15147 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
15148 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
15149 | fi |
---|
15150 | else |
---|
15151 | ld_shlibs_F77=no |
---|
15152 | fi |
---|
15153 | ;; |
---|
15154 | |
---|
15155 | netbsd*) |
---|
15156 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
15157 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
15158 | wlarc= |
---|
15159 | else |
---|
15160 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
15161 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
15162 | fi |
---|
15163 | ;; |
---|
15164 | |
---|
15165 | solaris*) |
---|
15166 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
15167 | ld_shlibs_F77=no |
---|
15168 | cat <<EOF 1>&2 |
---|
15169 | |
---|
15170 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
15171 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
15172 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
15173 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
15174 | *** your PATH or compiler configuration so that the native linker is |
---|
15175 | *** used, and then restart. |
---|
15176 | |
---|
15177 | EOF |
---|
15178 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
15179 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
15180 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
15181 | else |
---|
15182 | ld_shlibs_F77=no |
---|
15183 | fi |
---|
15184 | ;; |
---|
15185 | |
---|
15186 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
15187 | case `$LD -v 2>&1` in |
---|
15188 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
15189 | ld_shlibs_F77=no |
---|
15190 | cat <<_LT_EOF 1>&2 |
---|
15191 | |
---|
15192 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
15193 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
15194 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
15195 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
15196 | *** your PATH or compiler configuration so that the native linker is |
---|
15197 | *** used, and then restart. |
---|
15198 | |
---|
15199 | _LT_EOF |
---|
15200 | ;; |
---|
15201 | *) |
---|
15202 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
15203 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
---|
15204 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
---|
15205 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
---|
15206 | else |
---|
15207 | ld_shlibs_F77=no |
---|
15208 | fi |
---|
15209 | ;; |
---|
15210 | esac |
---|
15211 | ;; |
---|
15212 | |
---|
15213 | sunos4*) |
---|
15214 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
15215 | wlarc= |
---|
15216 | hardcode_direct_F77=yes |
---|
15217 | hardcode_shlibpath_var_F77=no |
---|
15218 | ;; |
---|
15219 | |
---|
15220 | *) |
---|
15221 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
15222 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
15223 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
15224 | else |
---|
15225 | ld_shlibs_F77=no |
---|
15226 | fi |
---|
15227 | ;; |
---|
15228 | esac |
---|
15229 | |
---|
15230 | if test "$ld_shlibs_F77" = no; then |
---|
15231 | runpath_var= |
---|
15232 | hardcode_libdir_flag_spec_F77= |
---|
15233 | export_dynamic_flag_spec_F77= |
---|
15234 | whole_archive_flag_spec_F77= |
---|
15235 | fi |
---|
15236 | else |
---|
15237 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
15238 | case $host_os in |
---|
15239 | aix3*) |
---|
15240 | allow_undefined_flag_F77=unsupported |
---|
15241 | always_export_symbols_F77=yes |
---|
15242 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
---|
15243 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
15244 | # are no directories specified by -L. |
---|
15245 | hardcode_minus_L_F77=yes |
---|
15246 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
15247 | # Neither direct hardcoding nor static linking is supported with a |
---|
15248 | # broken collect2. |
---|
15249 | hardcode_direct_F77=unsupported |
---|
15250 | fi |
---|
15251 | ;; |
---|
15252 | |
---|
15253 | aix4* | aix5*) |
---|
15254 | if test "$host_cpu" = ia64; then |
---|
15255 | # On IA64, the linker does run time linking by default, so we don't |
---|
15256 | # have to do anything special. |
---|
15257 | aix_use_runtimelinking=no |
---|
15258 | exp_sym_flag='-Bexport' |
---|
15259 | no_entry_flag="" |
---|
15260 | else |
---|
15261 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
15262 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
15263 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
15264 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
15265 | else |
---|
15266 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
15267 | fi |
---|
15268 | aix_use_runtimelinking=no |
---|
15269 | |
---|
15270 | # Test if we are trying to use run time linking or normal |
---|
15271 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
15272 | # need to do runtime linking. |
---|
15273 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
15274 | for ld_flag in $LDFLAGS; do |
---|
15275 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
15276 | aix_use_runtimelinking=yes |
---|
15277 | break |
---|
15278 | fi |
---|
15279 | done |
---|
15280 | ;; |
---|
15281 | esac |
---|
15282 | |
---|
15283 | exp_sym_flag='-bexport' |
---|
15284 | no_entry_flag='-bnoentry' |
---|
15285 | fi |
---|
15286 | |
---|
15287 | # When large executables or shared objects are built, AIX ld can |
---|
15288 | # have problems creating the table of contents. If linking a library |
---|
15289 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
15290 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
15291 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
15292 | |
---|
15293 | archive_cmds_F77='' |
---|
15294 | hardcode_direct_F77=yes |
---|
15295 | hardcode_libdir_separator_F77=':' |
---|
15296 | link_all_deplibs_F77=yes |
---|
15297 | |
---|
15298 | if test "$GCC" = yes; then |
---|
15299 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
15300 | # We only want to do this on AIX 4.2 and lower, the check |
---|
15301 | # below for broken collect2 doesn't work under 4.3+ |
---|
15302 | collect2name=`${CC} -print-prog-name=collect2` |
---|
15303 | if test -f "$collect2name" && \ |
---|
15304 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
15305 | then |
---|
15306 | # We have reworked collect2 |
---|
15307 | : |
---|
15308 | else |
---|
15309 | # We have old collect2 |
---|
15310 | hardcode_direct_F77=unsupported |
---|
15311 | # It fails to find uninstalled libraries when the uninstalled |
---|
15312 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
15313 | # to unsupported forces relinking |
---|
15314 | hardcode_minus_L_F77=yes |
---|
15315 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15316 | hardcode_libdir_separator_F77= |
---|
15317 | fi |
---|
15318 | ;; |
---|
15319 | esac |
---|
15320 | shared_flag='-shared' |
---|
15321 | if test "$aix_use_runtimelinking" = yes; then |
---|
15322 | shared_flag="$shared_flag "'${wl}-G' |
---|
15323 | fi |
---|
15324 | else |
---|
15325 | # not using gcc |
---|
15326 | if test "$host_cpu" = ia64; then |
---|
15327 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
15328 | # chokes on -Wl,-G. The following line is correct: |
---|
15329 | shared_flag='-G' |
---|
15330 | else |
---|
15331 | if test "$aix_use_runtimelinking" = yes; then |
---|
15332 | shared_flag='${wl}-G' |
---|
15333 | else |
---|
15334 | shared_flag='${wl}-bM:SRE' |
---|
15335 | fi |
---|
15336 | fi |
---|
15337 | fi |
---|
15338 | |
---|
15339 | # It seems that -bexpall does not export symbols beginning with |
---|
15340 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
15341 | always_export_symbols_F77=yes |
---|
15342 | if test "$aix_use_runtimelinking" = yes; then |
---|
15343 | # Warning - without using the other runtime loading flags (-brtl), |
---|
15344 | # -berok will link without error, but may produce a broken library. |
---|
15345 | allow_undefined_flag_F77='-berok' |
---|
15346 | # Determine the default libpath from the value encoded in an empty executable. |
---|
15347 | cat >conftest.$ac_ext <<_ACEOF |
---|
15348 | program main |
---|
15349 | |
---|
15350 | end |
---|
15351 | _ACEOF |
---|
15352 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
15353 | if { (ac_try="$ac_link" |
---|
15354 | case "(($ac_try" in |
---|
15355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
15356 | *) ac_try_echo=$ac_try;; |
---|
15357 | esac |
---|
15358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
15359 | (eval "$ac_link") 2>conftest.er1 |
---|
15360 | ac_status=$? |
---|
15361 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
15362 | rm -f conftest.er1 |
---|
15363 | cat conftest.err >&5 |
---|
15364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
15365 | (exit $ac_status); } && { |
---|
15366 | test -z "$ac_f77_werror_flag" || |
---|
15367 | test ! -s conftest.err |
---|
15368 | } && test -s conftest$ac_exeext && |
---|
15369 | $as_test_x conftest$ac_exeext; then |
---|
15370 | |
---|
15371 | lt_aix_libpath_sed=' |
---|
15372 | /Import File Strings/,/^$/ { |
---|
15373 | /^0/ { |
---|
15374 | s/^0 *\(.*\)$/\1/ |
---|
15375 | p |
---|
15376 | } |
---|
15377 | }' |
---|
15378 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
15379 | # Check for a 64-bit object if we didn't find anything. |
---|
15380 | if test -z "$aix_libpath"; then |
---|
15381 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
15382 | fi |
---|
15383 | else |
---|
15384 | echo "$as_me: failed program was:" >&5 |
---|
15385 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
15386 | |
---|
15387 | |
---|
15388 | fi |
---|
15389 | |
---|
15390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
15391 | conftest$ac_exeext conftest.$ac_ext |
---|
15392 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
15393 | |
---|
15394 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
15395 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
15396 | else |
---|
15397 | if test "$host_cpu" = ia64; then |
---|
15398 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
---|
15399 | allow_undefined_flag_F77="-z nodefs" |
---|
15400 | archive_expsym_cmds_F77="\$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" |
---|
15401 | else |
---|
15402 | # Determine the default libpath from the value encoded in an empty executable. |
---|
15403 | cat >conftest.$ac_ext <<_ACEOF |
---|
15404 | program main |
---|
15405 | |
---|
15406 | end |
---|
15407 | _ACEOF |
---|
15408 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
15409 | if { (ac_try="$ac_link" |
---|
15410 | case "(($ac_try" in |
---|
15411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
15412 | *) ac_try_echo=$ac_try;; |
---|
15413 | esac |
---|
15414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
15415 | (eval "$ac_link") 2>conftest.er1 |
---|
15416 | ac_status=$? |
---|
15417 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
15418 | rm -f conftest.er1 |
---|
15419 | cat conftest.err >&5 |
---|
15420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
15421 | (exit $ac_status); } && { |
---|
15422 | test -z "$ac_f77_werror_flag" || |
---|
15423 | test ! -s conftest.err |
---|
15424 | } && test -s conftest$ac_exeext && |
---|
15425 | $as_test_x conftest$ac_exeext; then |
---|
15426 | |
---|
15427 | lt_aix_libpath_sed=' |
---|
15428 | /Import File Strings/,/^$/ { |
---|
15429 | /^0/ { |
---|
15430 | s/^0 *\(.*\)$/\1/ |
---|
15431 | p |
---|
15432 | } |
---|
15433 | }' |
---|
15434 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
15435 | # Check for a 64-bit object if we didn't find anything. |
---|
15436 | if test -z "$aix_libpath"; then |
---|
15437 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
15438 | fi |
---|
15439 | else |
---|
15440 | echo "$as_me: failed program was:" >&5 |
---|
15441 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
15442 | |
---|
15443 | |
---|
15444 | fi |
---|
15445 | |
---|
15446 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
15447 | conftest$ac_exeext conftest.$ac_ext |
---|
15448 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
15449 | |
---|
15450 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
15451 | # Warning - without using the other run time loading flags, |
---|
15452 | # -berok will link without error, but may produce a broken library. |
---|
15453 | no_undefined_flag_F77=' ${wl}-bernotok' |
---|
15454 | allow_undefined_flag_F77=' ${wl}-berok' |
---|
15455 | # Exported symbols can be pulled into shared objects from archives |
---|
15456 | whole_archive_flag_spec_F77='$convenience' |
---|
15457 | archive_cmds_need_lc_F77=yes |
---|
15458 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
15459 | archive_expsym_cmds_F77="\$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' |
---|
15460 | fi |
---|
15461 | fi |
---|
15462 | ;; |
---|
15463 | |
---|
15464 | amigaos*) |
---|
15465 | archive_cmds_F77='$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)' |
---|
15466 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15467 | hardcode_minus_L_F77=yes |
---|
15468 | # see comment about different semantics on the GNU ld section |
---|
15469 | ld_shlibs_F77=no |
---|
15470 | ;; |
---|
15471 | |
---|
15472 | bsdi[45]*) |
---|
15473 | export_dynamic_flag_spec_F77=-rdynamic |
---|
15474 | ;; |
---|
15475 | |
---|
15476 | cygwin* | mingw* | pw32*) |
---|
15477 | # When not using gcc, we currently assume that we are using |
---|
15478 | # Microsoft Visual C++. |
---|
15479 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
15480 | # no search path for DLLs. |
---|
15481 | hardcode_libdir_flag_spec_F77=' ' |
---|
15482 | allow_undefined_flag_F77=unsupported |
---|
15483 | # Tell ltmain to make .lib files, not .a files. |
---|
15484 | libext=lib |
---|
15485 | # Tell ltmain to make .dll files, not .so files. |
---|
15486 | shrext_cmds=".dll" |
---|
15487 | # FIXME: Setting linknames here is a bad hack. |
---|
15488 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
15489 | # The linker will automatically build a .lib file if we build a DLL. |
---|
15490 | old_archive_From_new_cmds_F77='true' |
---|
15491 | # FIXME: Should let the user specify the lib program. |
---|
15492 | old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' |
---|
15493 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
---|
15494 | enable_shared_with_static_runtimes_F77=yes |
---|
15495 | ;; |
---|
15496 | |
---|
15497 | darwin* | rhapsody*) |
---|
15498 | case $host_os in |
---|
15499 | rhapsody* | darwin1.[012]) |
---|
15500 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
---|
15501 | ;; |
---|
15502 | *) # Darwin 1.3 on |
---|
15503 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
15504 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
15505 | else |
---|
15506 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
15507 | 10.[012]) |
---|
15508 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
15509 | ;; |
---|
15510 | 10.*) |
---|
15511 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
---|
15512 | ;; |
---|
15513 | esac |
---|
15514 | fi |
---|
15515 | ;; |
---|
15516 | esac |
---|
15517 | archive_cmds_need_lc_F77=no |
---|
15518 | hardcode_direct_F77=no |
---|
15519 | hardcode_automatic_F77=yes |
---|
15520 | hardcode_shlibpath_var_F77=unsupported |
---|
15521 | whole_archive_flag_spec_F77='' |
---|
15522 | link_all_deplibs_F77=yes |
---|
15523 | if test "$GCC" = yes ; then |
---|
15524 | output_verbose_link_cmd='echo' |
---|
15525 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
15526 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
15527 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
15528 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
15529 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
15530 | else |
---|
15531 | case $cc_basename in |
---|
15532 | xlc*) |
---|
15533 | output_verbose_link_cmd='echo' |
---|
15534 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
---|
15535 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
15536 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
15537 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
15538 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
15539 | ;; |
---|
15540 | *) |
---|
15541 | ld_shlibs_F77=no |
---|
15542 | ;; |
---|
15543 | esac |
---|
15544 | fi |
---|
15545 | ;; |
---|
15546 | |
---|
15547 | dgux*) |
---|
15548 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15549 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15550 | hardcode_shlibpath_var_F77=no |
---|
15551 | ;; |
---|
15552 | |
---|
15553 | freebsd1*) |
---|
15554 | ld_shlibs_F77=no |
---|
15555 | ;; |
---|
15556 | |
---|
15557 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
15558 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
15559 | # does not break anything, and helps significantly (at the cost of a little |
---|
15560 | # extra space). |
---|
15561 | freebsd2.2*) |
---|
15562 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
15563 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
15564 | hardcode_direct_F77=yes |
---|
15565 | hardcode_shlibpath_var_F77=no |
---|
15566 | ;; |
---|
15567 | |
---|
15568 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
15569 | freebsd2*) |
---|
15570 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
15571 | hardcode_direct_F77=yes |
---|
15572 | hardcode_minus_L_F77=yes |
---|
15573 | hardcode_shlibpath_var_F77=no |
---|
15574 | ;; |
---|
15575 | |
---|
15576 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
15577 | freebsd* | dragonfly*) |
---|
15578 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
15579 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
15580 | hardcode_direct_F77=yes |
---|
15581 | hardcode_shlibpath_var_F77=no |
---|
15582 | ;; |
---|
15583 | |
---|
15584 | hpux9*) |
---|
15585 | if test "$GCC" = yes; then |
---|
15586 | archive_cmds_F77='$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' |
---|
15587 | else |
---|
15588 | archive_cmds_F77='$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' |
---|
15589 | fi |
---|
15590 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
15591 | hardcode_libdir_separator_F77=: |
---|
15592 | hardcode_direct_F77=yes |
---|
15593 | |
---|
15594 | # hardcode_minus_L: Not really in the search PATH, |
---|
15595 | # but as the default location of the library. |
---|
15596 | hardcode_minus_L_F77=yes |
---|
15597 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
15598 | ;; |
---|
15599 | |
---|
15600 | hpux10*) |
---|
15601 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
15602 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
15603 | else |
---|
15604 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
15605 | fi |
---|
15606 | if test "$with_gnu_ld" = no; then |
---|
15607 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
15608 | hardcode_libdir_separator_F77=: |
---|
15609 | |
---|
15610 | hardcode_direct_F77=yes |
---|
15611 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
15612 | |
---|
15613 | # hardcode_minus_L: Not really in the search PATH, |
---|
15614 | # but as the default location of the library. |
---|
15615 | hardcode_minus_L_F77=yes |
---|
15616 | fi |
---|
15617 | ;; |
---|
15618 | |
---|
15619 | hpux11*) |
---|
15620 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
15621 | case $host_cpu in |
---|
15622 | hppa*64*) |
---|
15623 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15624 | ;; |
---|
15625 | ia64*) |
---|
15626 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
15627 | ;; |
---|
15628 | *) |
---|
15629 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
15630 | ;; |
---|
15631 | esac |
---|
15632 | else |
---|
15633 | case $host_cpu in |
---|
15634 | hppa*64*) |
---|
15635 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15636 | ;; |
---|
15637 | ia64*) |
---|
15638 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
15639 | ;; |
---|
15640 | *) |
---|
15641 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
15642 | ;; |
---|
15643 | esac |
---|
15644 | fi |
---|
15645 | if test "$with_gnu_ld" = no; then |
---|
15646 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
15647 | hardcode_libdir_separator_F77=: |
---|
15648 | |
---|
15649 | case $host_cpu in |
---|
15650 | hppa*64*|ia64*) |
---|
15651 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
---|
15652 | hardcode_direct_F77=no |
---|
15653 | hardcode_shlibpath_var_F77=no |
---|
15654 | ;; |
---|
15655 | *) |
---|
15656 | hardcode_direct_F77=yes |
---|
15657 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
15658 | |
---|
15659 | # hardcode_minus_L: Not really in the search PATH, |
---|
15660 | # but as the default location of the library. |
---|
15661 | hardcode_minus_L_F77=yes |
---|
15662 | ;; |
---|
15663 | esac |
---|
15664 | fi |
---|
15665 | ;; |
---|
15666 | |
---|
15667 | irix5* | irix6* | nonstopux*) |
---|
15668 | if test "$GCC" = yes; then |
---|
15669 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
15670 | else |
---|
15671 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
15672 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
---|
15673 | fi |
---|
15674 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
15675 | hardcode_libdir_separator_F77=: |
---|
15676 | link_all_deplibs_F77=yes |
---|
15677 | ;; |
---|
15678 | |
---|
15679 | netbsd*) |
---|
15680 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
15681 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
15682 | else |
---|
15683 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
15684 | fi |
---|
15685 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
15686 | hardcode_direct_F77=yes |
---|
15687 | hardcode_shlibpath_var_F77=no |
---|
15688 | ;; |
---|
15689 | |
---|
15690 | newsos6) |
---|
15691 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15692 | hardcode_direct_F77=yes |
---|
15693 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
15694 | hardcode_libdir_separator_F77=: |
---|
15695 | hardcode_shlibpath_var_F77=no |
---|
15696 | ;; |
---|
15697 | |
---|
15698 | openbsd*) |
---|
15699 | if test -f /usr/libexec/ld.so; then |
---|
15700 | hardcode_direct_F77=yes |
---|
15701 | hardcode_shlibpath_var_F77=no |
---|
15702 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
15703 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
15704 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
15705 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
---|
15706 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
15707 | else |
---|
15708 | case $host_os in |
---|
15709 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
15710 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
15711 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
15712 | ;; |
---|
15713 | *) |
---|
15714 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
15715 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
---|
15716 | ;; |
---|
15717 | esac |
---|
15718 | fi |
---|
15719 | else |
---|
15720 | ld_shlibs_F77=no |
---|
15721 | fi |
---|
15722 | ;; |
---|
15723 | |
---|
15724 | os2*) |
---|
15725 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15726 | hardcode_minus_L_F77=yes |
---|
15727 | allow_undefined_flag_F77=unsupported |
---|
15728 | archive_cmds_F77='$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' |
---|
15729 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
15730 | ;; |
---|
15731 | |
---|
15732 | osf3*) |
---|
15733 | if test "$GCC" = yes; then |
---|
15734 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
---|
15735 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
15736 | else |
---|
15737 | allow_undefined_flag_F77=' -expect_unresolved \*' |
---|
15738 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
15739 | fi |
---|
15740 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
15741 | hardcode_libdir_separator_F77=: |
---|
15742 | ;; |
---|
15743 | |
---|
15744 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
15745 | if test "$GCC" = yes; then |
---|
15746 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
---|
15747 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
15748 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
15749 | else |
---|
15750 | allow_undefined_flag_F77=' -expect_unresolved \*' |
---|
15751 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
15752 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
15753 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
---|
15754 | |
---|
15755 | # Both c and cxx compiler support -rpath directly |
---|
15756 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
---|
15757 | fi |
---|
15758 | hardcode_libdir_separator_F77=: |
---|
15759 | ;; |
---|
15760 | |
---|
15761 | solaris*) |
---|
15762 | no_undefined_flag_F77=' -z text' |
---|
15763 | if test "$GCC" = yes; then |
---|
15764 | wlarc='${wl}' |
---|
15765 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15766 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
15767 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
15768 | else |
---|
15769 | wlarc='' |
---|
15770 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15771 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
15772 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
15773 | fi |
---|
15774 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
15775 | hardcode_shlibpath_var_F77=no |
---|
15776 | case $host_os in |
---|
15777 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
15778 | *) |
---|
15779 | # The compiler driver will combine and reorder linker options, |
---|
15780 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
---|
15781 | # but is careful enough not to reorder. |
---|
15782 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
15783 | if test "$GCC" = yes; then |
---|
15784 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
---|
15785 | else |
---|
15786 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' |
---|
15787 | fi |
---|
15788 | ;; |
---|
15789 | esac |
---|
15790 | link_all_deplibs_F77=yes |
---|
15791 | ;; |
---|
15792 | |
---|
15793 | sunos4*) |
---|
15794 | if test "x$host_vendor" = xsequent; then |
---|
15795 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
15796 | # files that make .init and .fini sections work. |
---|
15797 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15798 | else |
---|
15799 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
15800 | fi |
---|
15801 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15802 | hardcode_direct_F77=yes |
---|
15803 | hardcode_minus_L_F77=yes |
---|
15804 | hardcode_shlibpath_var_F77=no |
---|
15805 | ;; |
---|
15806 | |
---|
15807 | sysv4) |
---|
15808 | case $host_vendor in |
---|
15809 | sni) |
---|
15810 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15811 | hardcode_direct_F77=yes # is this really true??? |
---|
15812 | ;; |
---|
15813 | siemens) |
---|
15814 | ## LD is ld it makes a PLAMLIB |
---|
15815 | ## CC just makes a GrossModule. |
---|
15816 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
15817 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
---|
15818 | hardcode_direct_F77=no |
---|
15819 | ;; |
---|
15820 | motorola) |
---|
15821 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15822 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
---|
15823 | ;; |
---|
15824 | esac |
---|
15825 | runpath_var='LD_RUN_PATH' |
---|
15826 | hardcode_shlibpath_var_F77=no |
---|
15827 | ;; |
---|
15828 | |
---|
15829 | sysv4.3*) |
---|
15830 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15831 | hardcode_shlibpath_var_F77=no |
---|
15832 | export_dynamic_flag_spec_F77='-Bexport' |
---|
15833 | ;; |
---|
15834 | |
---|
15835 | sysv4*MP*) |
---|
15836 | if test -d /usr/nec; then |
---|
15837 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15838 | hardcode_shlibpath_var_F77=no |
---|
15839 | runpath_var=LD_RUN_PATH |
---|
15840 | hardcode_runpath_var=yes |
---|
15841 | ld_shlibs_F77=yes |
---|
15842 | fi |
---|
15843 | ;; |
---|
15844 | |
---|
15845 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
---|
15846 | no_undefined_flag_F77='${wl}-z,text' |
---|
15847 | archive_cmds_need_lc_F77=no |
---|
15848 | hardcode_shlibpath_var_F77=no |
---|
15849 | runpath_var='LD_RUN_PATH' |
---|
15850 | |
---|
15851 | if test "$GCC" = yes; then |
---|
15852 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15853 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15854 | else |
---|
15855 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15856 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15857 | fi |
---|
15858 | ;; |
---|
15859 | |
---|
15860 | sysv5* | sco3.2v5* | sco5v6*) |
---|
15861 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
15862 | # link with -lc, and that would cause any symbols used from libc to |
---|
15863 | # always be unresolved, which means just about no library would |
---|
15864 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
15865 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
15866 | # as -z defs. |
---|
15867 | no_undefined_flag_F77='${wl}-z,text' |
---|
15868 | allow_undefined_flag_F77='${wl}-z,nodefs' |
---|
15869 | archive_cmds_need_lc_F77=no |
---|
15870 | hardcode_shlibpath_var_F77=no |
---|
15871 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
15872 | hardcode_libdir_separator_F77=':' |
---|
15873 | link_all_deplibs_F77=yes |
---|
15874 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
---|
15875 | runpath_var='LD_RUN_PATH' |
---|
15876 | |
---|
15877 | if test "$GCC" = yes; then |
---|
15878 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15879 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15880 | else |
---|
15881 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15882 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15883 | fi |
---|
15884 | ;; |
---|
15885 | |
---|
15886 | uts4*) |
---|
15887 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15888 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15889 | hardcode_shlibpath_var_F77=no |
---|
15890 | ;; |
---|
15891 | |
---|
15892 | *) |
---|
15893 | ld_shlibs_F77=no |
---|
15894 | ;; |
---|
15895 | esac |
---|
15896 | fi |
---|
15897 | |
---|
15898 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
---|
15899 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
---|
15900 | test "$ld_shlibs_F77" = no && can_build_shared=no |
---|
15901 | |
---|
15902 | # |
---|
15903 | # Do we need to explicitly link libc? |
---|
15904 | # |
---|
15905 | case "x$archive_cmds_need_lc_F77" in |
---|
15906 | x|xyes) |
---|
15907 | # Assume -lc should be added |
---|
15908 | archive_cmds_need_lc_F77=yes |
---|
15909 | |
---|
15910 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
15911 | case $archive_cmds_F77 in |
---|
15912 | *'~'*) |
---|
15913 | # FIXME: we may have to deal with multi-command sequences. |
---|
15914 | ;; |
---|
15915 | '$CC '*) |
---|
15916 | # Test whether the compiler implicitly links with -lc since on some |
---|
15917 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
15918 | # to ld, don't add -lc before -lgcc. |
---|
15919 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
15920 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
---|
15921 | $rm conftest* |
---|
15922 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
15923 | |
---|
15924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
15925 | (eval $ac_compile) 2>&5 |
---|
15926 | ac_status=$? |
---|
15927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
15928 | (exit $ac_status); } 2>conftest.err; then |
---|
15929 | soname=conftest |
---|
15930 | lib=conftest |
---|
15931 | libobjs=conftest.$ac_objext |
---|
15932 | deplibs= |
---|
15933 | wl=$lt_prog_compiler_wl_F77 |
---|
15934 | pic_flag=$lt_prog_compiler_pic_F77 |
---|
15935 | compiler_flags=-v |
---|
15936 | linker_flags=-v |
---|
15937 | verstring= |
---|
15938 | output_objdir=. |
---|
15939 | libname=conftest |
---|
15940 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
---|
15941 | allow_undefined_flag_F77= |
---|
15942 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
15943 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
15944 | ac_status=$? |
---|
15945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
15946 | (exit $ac_status); } |
---|
15947 | then |
---|
15948 | archive_cmds_need_lc_F77=no |
---|
15949 | else |
---|
15950 | archive_cmds_need_lc_F77=yes |
---|
15951 | fi |
---|
15952 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
---|
15953 | else |
---|
15954 | cat conftest.err 1>&5 |
---|
15955 | fi |
---|
15956 | $rm conftest* |
---|
15957 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
---|
15958 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
---|
15959 | ;; |
---|
15960 | esac |
---|
15961 | fi |
---|
15962 | ;; |
---|
15963 | esac |
---|
15964 | |
---|
15965 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
15966 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
---|
15967 | library_names_spec= |
---|
15968 | libname_spec='lib$name' |
---|
15969 | soname_spec= |
---|
15970 | shrext_cmds=".so" |
---|
15971 | postinstall_cmds= |
---|
15972 | postuninstall_cmds= |
---|
15973 | finish_cmds= |
---|
15974 | finish_eval= |
---|
15975 | shlibpath_var= |
---|
15976 | shlibpath_overrides_runpath=unknown |
---|
15977 | version_type=none |
---|
15978 | dynamic_linker="$host_os ld.so" |
---|
15979 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
15980 | |
---|
15981 | need_lib_prefix=unknown |
---|
15982 | hardcode_into_libs=no |
---|
15983 | |
---|
15984 | # when you set need_version to no, make sure it does not cause -set_version |
---|
15985 | # flags to be left without arguments |
---|
15986 | need_version=unknown |
---|
15987 | |
---|
15988 | case $host_os in |
---|
15989 | aix3*) |
---|
15990 | version_type=linux |
---|
15991 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
15992 | shlibpath_var=LIBPATH |
---|
15993 | |
---|
15994 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
15995 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
15996 | ;; |
---|
15997 | |
---|
15998 | aix4* | aix5*) |
---|
15999 | version_type=linux |
---|
16000 | need_lib_prefix=no |
---|
16001 | need_version=no |
---|
16002 | hardcode_into_libs=yes |
---|
16003 | if test "$host_cpu" = ia64; then |
---|
16004 | # AIX 5 supports IA64 |
---|
16005 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
16006 | shlibpath_var=LD_LIBRARY_PATH |
---|
16007 | else |
---|
16008 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
16009 | # for dependence libraries. The import file would start with |
---|
16010 | # the line `#! .'. This would cause the generated library to |
---|
16011 | # depend on `.', always an invalid library. This was fixed in |
---|
16012 | # development snapshots of GCC prior to 3.0. |
---|
16013 | case $host_os in |
---|
16014 | aix4 | aix4.[01] | aix4.[01].*) |
---|
16015 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
16016 | echo ' yes ' |
---|
16017 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
16018 | : |
---|
16019 | else |
---|
16020 | can_build_shared=no |
---|
16021 | fi |
---|
16022 | ;; |
---|
16023 | esac |
---|
16024 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
16025 | # soname into executable. Probably we can add versioning support to |
---|
16026 | # collect2, so additional links can be useful in future. |
---|
16027 | if test "$aix_use_runtimelinking" = yes; then |
---|
16028 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
16029 | # instead of lib<name>.a to let people know that these are not |
---|
16030 | # typical AIX shared libraries. |
---|
16031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16032 | else |
---|
16033 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
16034 | # and later when we are not doing run time linking. |
---|
16035 | library_names_spec='${libname}${release}.a $libname.a' |
---|
16036 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16037 | fi |
---|
16038 | shlibpath_var=LIBPATH |
---|
16039 | fi |
---|
16040 | ;; |
---|
16041 | |
---|
16042 | amigaos*) |
---|
16043 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
16044 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
16045 | 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' |
---|
16046 | ;; |
---|
16047 | |
---|
16048 | beos*) |
---|
16049 | library_names_spec='${libname}${shared_ext}' |
---|
16050 | dynamic_linker="$host_os ld.so" |
---|
16051 | shlibpath_var=LIBRARY_PATH |
---|
16052 | ;; |
---|
16053 | |
---|
16054 | bsdi[45]*) |
---|
16055 | version_type=linux |
---|
16056 | need_version=no |
---|
16057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16058 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16059 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
16060 | shlibpath_var=LD_LIBRARY_PATH |
---|
16061 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
16062 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
16063 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
16064 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
16065 | # libtool to hard-code these into programs |
---|
16066 | ;; |
---|
16067 | |
---|
16068 | cygwin* | mingw* | pw32*) |
---|
16069 | version_type=windows |
---|
16070 | shrext_cmds=".dll" |
---|
16071 | need_version=no |
---|
16072 | need_lib_prefix=no |
---|
16073 | |
---|
16074 | case $GCC,$host_os in |
---|
16075 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
16076 | library_names_spec='$libname.dll.a' |
---|
16077 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
16078 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
16079 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
16080 | dldir=$destdir/`dirname \$dlpath`~ |
---|
16081 | test -d \$dldir || mkdir -p \$dldir~ |
---|
16082 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
16083 | chmod a+x \$dldir/$dlname' |
---|
16084 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
16085 | dlpath=$dir/\$dldll~ |
---|
16086 | $rm \$dlpath' |
---|
16087 | shlibpath_overrides_runpath=yes |
---|
16088 | |
---|
16089 | case $host_os in |
---|
16090 | cygwin*) |
---|
16091 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
16092 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
16093 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
16094 | ;; |
---|
16095 | mingw*) |
---|
16096 | # MinGW DLLs use traditional 'lib' prefix |
---|
16097 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
16098 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
16099 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
16100 | # It is most probably a Windows format PATH printed by |
---|
16101 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
16102 | # path with ; separators, and with drive letters. We can handle the |
---|
16103 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
16104 | # especially as we might pass files found there to a mingw objdump, |
---|
16105 | # which wouldn't understand a cygwinified path. Ahh. |
---|
16106 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
16107 | else |
---|
16108 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
16109 | fi |
---|
16110 | ;; |
---|
16111 | pw32*) |
---|
16112 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
16113 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
16114 | ;; |
---|
16115 | esac |
---|
16116 | ;; |
---|
16117 | |
---|
16118 | *) |
---|
16119 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
16120 | ;; |
---|
16121 | esac |
---|
16122 | dynamic_linker='Win32 ld.exe' |
---|
16123 | # FIXME: first we should search . and the directory the executable is in |
---|
16124 | shlibpath_var=PATH |
---|
16125 | ;; |
---|
16126 | |
---|
16127 | darwin* | rhapsody*) |
---|
16128 | dynamic_linker="$host_os dyld" |
---|
16129 | version_type=darwin |
---|
16130 | need_lib_prefix=no |
---|
16131 | need_version=no |
---|
16132 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
16133 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
16134 | shlibpath_overrides_runpath=yes |
---|
16135 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
16136 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
16137 | |
---|
16138 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
16139 | ;; |
---|
16140 | |
---|
16141 | dgux*) |
---|
16142 | version_type=linux |
---|
16143 | need_lib_prefix=no |
---|
16144 | need_version=no |
---|
16145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
16146 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16147 | shlibpath_var=LD_LIBRARY_PATH |
---|
16148 | ;; |
---|
16149 | |
---|
16150 | freebsd1*) |
---|
16151 | dynamic_linker=no |
---|
16152 | ;; |
---|
16153 | |
---|
16154 | freebsd* | dragonfly*) |
---|
16155 | # DragonFly does not have aout. When/if they implement a new |
---|
16156 | # versioning mechanism, adjust this. |
---|
16157 | if test -x /usr/bin/objformat; then |
---|
16158 | objformat=`/usr/bin/objformat` |
---|
16159 | else |
---|
16160 | case $host_os in |
---|
16161 | freebsd[123]*) objformat=aout ;; |
---|
16162 | *) objformat=elf ;; |
---|
16163 | esac |
---|
16164 | fi |
---|
16165 | version_type=freebsd-$objformat |
---|
16166 | case $version_type in |
---|
16167 | freebsd-elf*) |
---|
16168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
16169 | need_version=no |
---|
16170 | need_lib_prefix=no |
---|
16171 | ;; |
---|
16172 | freebsd-*) |
---|
16173 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
16174 | need_version=yes |
---|
16175 | ;; |
---|
16176 | esac |
---|
16177 | shlibpath_var=LD_LIBRARY_PATH |
---|
16178 | case $host_os in |
---|
16179 | freebsd2*) |
---|
16180 | shlibpath_overrides_runpath=yes |
---|
16181 | ;; |
---|
16182 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
16183 | shlibpath_overrides_runpath=yes |
---|
16184 | hardcode_into_libs=yes |
---|
16185 | ;; |
---|
16186 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
16187 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
16188 | shlibpath_overrides_runpath=no |
---|
16189 | hardcode_into_libs=yes |
---|
16190 | ;; |
---|
16191 | *) # from 4.6 on, and DragonFly |
---|
16192 | shlibpath_overrides_runpath=yes |
---|
16193 | hardcode_into_libs=yes |
---|
16194 | ;; |
---|
16195 | esac |
---|
16196 | ;; |
---|
16197 | |
---|
16198 | gnu*) |
---|
16199 | version_type=linux |
---|
16200 | need_lib_prefix=no |
---|
16201 | need_version=no |
---|
16202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
16203 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16204 | shlibpath_var=LD_LIBRARY_PATH |
---|
16205 | hardcode_into_libs=yes |
---|
16206 | ;; |
---|
16207 | |
---|
16208 | hpux9* | hpux10* | hpux11*) |
---|
16209 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
16210 | # link against other versions. |
---|
16211 | version_type=sunos |
---|
16212 | need_lib_prefix=no |
---|
16213 | need_version=no |
---|
16214 | case $host_cpu in |
---|
16215 | ia64*) |
---|
16216 | shrext_cmds='.so' |
---|
16217 | hardcode_into_libs=yes |
---|
16218 | dynamic_linker="$host_os dld.so" |
---|
16219 | shlibpath_var=LD_LIBRARY_PATH |
---|
16220 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
16221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16222 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16223 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
16224 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
16225 | else |
---|
16226 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
16227 | fi |
---|
16228 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
16229 | ;; |
---|
16230 | hppa*64*) |
---|
16231 | shrext_cmds='.sl' |
---|
16232 | hardcode_into_libs=yes |
---|
16233 | dynamic_linker="$host_os dld.sl" |
---|
16234 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
16235 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
16236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16237 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16238 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
16239 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
16240 | ;; |
---|
16241 | *) |
---|
16242 | shrext_cmds='.sl' |
---|
16243 | dynamic_linker="$host_os dld.sl" |
---|
16244 | shlibpath_var=SHLIB_PATH |
---|
16245 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
16246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16247 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16248 | ;; |
---|
16249 | esac |
---|
16250 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
16251 | postinstall_cmds='chmod 555 $lib' |
---|
16252 | ;; |
---|
16253 | |
---|
16254 | interix[3-9]*) |
---|
16255 | version_type=linux |
---|
16256 | need_lib_prefix=no |
---|
16257 | need_version=no |
---|
16258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
16259 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16260 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
16261 | shlibpath_var=LD_LIBRARY_PATH |
---|
16262 | shlibpath_overrides_runpath=no |
---|
16263 | hardcode_into_libs=yes |
---|
16264 | ;; |
---|
16265 | |
---|
16266 | irix5* | irix6* | nonstopux*) |
---|
16267 | case $host_os in |
---|
16268 | nonstopux*) version_type=nonstopux ;; |
---|
16269 | *) |
---|
16270 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
16271 | version_type=linux |
---|
16272 | else |
---|
16273 | version_type=irix |
---|
16274 | fi ;; |
---|
16275 | esac |
---|
16276 | need_lib_prefix=no |
---|
16277 | need_version=no |
---|
16278 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
16280 | case $host_os in |
---|
16281 | irix5* | nonstopux*) |
---|
16282 | libsuff= shlibsuff= |
---|
16283 | ;; |
---|
16284 | *) |
---|
16285 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
16286 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
16287 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
16288 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
16289 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
16290 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
16291 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
16292 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
16293 | esac |
---|
16294 | ;; |
---|
16295 | esac |
---|
16296 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
16297 | shlibpath_overrides_runpath=no |
---|
16298 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
16299 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
16300 | hardcode_into_libs=yes |
---|
16301 | ;; |
---|
16302 | |
---|
16303 | # No shared lib support for Linux oldld, aout, or coff. |
---|
16304 | linux*oldld* | linux*aout* | linux*coff*) |
---|
16305 | dynamic_linker=no |
---|
16306 | ;; |
---|
16307 | |
---|
16308 | # This must be Linux ELF. |
---|
16309 | linux* | k*bsd*-gnu) |
---|
16310 | version_type=linux |
---|
16311 | need_lib_prefix=no |
---|
16312 | need_version=no |
---|
16313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16314 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16315 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
16316 | shlibpath_var=LD_LIBRARY_PATH |
---|
16317 | shlibpath_overrides_runpath=no |
---|
16318 | # This implies no fast_install, which is unacceptable. |
---|
16319 | # Some rework will be needed to allow for fast_install |
---|
16320 | # before this can be enabled. |
---|
16321 | hardcode_into_libs=yes |
---|
16322 | |
---|
16323 | # Append ld.so.conf contents to the search path |
---|
16324 | if test -f /etc/ld.so.conf; then |
---|
16325 | 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' ' '` |
---|
16326 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
16327 | fi |
---|
16328 | |
---|
16329 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
16330 | # powerpc, because MkLinux only supported shared libraries with the |
---|
16331 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
16332 | # most powerpc-linux boxes support dynamic linking these days and |
---|
16333 | # people can always --disable-shared, the test was removed, and we |
---|
16334 | # assume the GNU/Linux dynamic linker is in use. |
---|
16335 | dynamic_linker='GNU/Linux ld.so' |
---|
16336 | ;; |
---|
16337 | |
---|
16338 | netbsd*) |
---|
16339 | version_type=sunos |
---|
16340 | need_lib_prefix=no |
---|
16341 | need_version=no |
---|
16342 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
16343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
16344 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
16345 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
16346 | else |
---|
16347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
16348 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16349 | dynamic_linker='NetBSD ld.elf_so' |
---|
16350 | fi |
---|
16351 | shlibpath_var=LD_LIBRARY_PATH |
---|
16352 | shlibpath_overrides_runpath=yes |
---|
16353 | hardcode_into_libs=yes |
---|
16354 | ;; |
---|
16355 | |
---|
16356 | newsos6) |
---|
16357 | version_type=linux |
---|
16358 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16359 | shlibpath_var=LD_LIBRARY_PATH |
---|
16360 | shlibpath_overrides_runpath=yes |
---|
16361 | ;; |
---|
16362 | |
---|
16363 | nto-qnx*) |
---|
16364 | version_type=linux |
---|
16365 | need_lib_prefix=no |
---|
16366 | need_version=no |
---|
16367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16368 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16369 | shlibpath_var=LD_LIBRARY_PATH |
---|
16370 | shlibpath_overrides_runpath=yes |
---|
16371 | ;; |
---|
16372 | |
---|
16373 | openbsd*) |
---|
16374 | version_type=sunos |
---|
16375 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
16376 | need_lib_prefix=no |
---|
16377 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
16378 | case $host_os in |
---|
16379 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
16380 | *) need_version=no ;; |
---|
16381 | esac |
---|
16382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
16383 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
16384 | shlibpath_var=LD_LIBRARY_PATH |
---|
16385 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
16386 | case $host_os in |
---|
16387 | openbsd2.[89] | openbsd2.[89].*) |
---|
16388 | shlibpath_overrides_runpath=no |
---|
16389 | ;; |
---|
16390 | *) |
---|
16391 | shlibpath_overrides_runpath=yes |
---|
16392 | ;; |
---|
16393 | esac |
---|
16394 | else |
---|
16395 | shlibpath_overrides_runpath=yes |
---|
16396 | fi |
---|
16397 | ;; |
---|
16398 | |
---|
16399 | os2*) |
---|
16400 | libname_spec='$name' |
---|
16401 | shrext_cmds=".dll" |
---|
16402 | need_lib_prefix=no |
---|
16403 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
16404 | dynamic_linker='OS/2 ld.exe' |
---|
16405 | shlibpath_var=LIBPATH |
---|
16406 | ;; |
---|
16407 | |
---|
16408 | osf3* | osf4* | osf5*) |
---|
16409 | version_type=osf |
---|
16410 | need_lib_prefix=no |
---|
16411 | need_version=no |
---|
16412 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16414 | shlibpath_var=LD_LIBRARY_PATH |
---|
16415 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
16416 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
16417 | ;; |
---|
16418 | |
---|
16419 | rdos*) |
---|
16420 | dynamic_linker=no |
---|
16421 | ;; |
---|
16422 | |
---|
16423 | solaris*) |
---|
16424 | version_type=linux |
---|
16425 | need_lib_prefix=no |
---|
16426 | need_version=no |
---|
16427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16428 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16429 | shlibpath_var=LD_LIBRARY_PATH |
---|
16430 | shlibpath_overrides_runpath=yes |
---|
16431 | hardcode_into_libs=yes |
---|
16432 | # ldd complains unless libraries are executable |
---|
16433 | postinstall_cmds='chmod +x $lib' |
---|
16434 | ;; |
---|
16435 | |
---|
16436 | sunos4*) |
---|
16437 | version_type=sunos |
---|
16438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
16439 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
16440 | shlibpath_var=LD_LIBRARY_PATH |
---|
16441 | shlibpath_overrides_runpath=yes |
---|
16442 | if test "$with_gnu_ld" = yes; then |
---|
16443 | need_lib_prefix=no |
---|
16444 | fi |
---|
16445 | need_version=yes |
---|
16446 | ;; |
---|
16447 | |
---|
16448 | sysv4 | sysv4.3*) |
---|
16449 | version_type=linux |
---|
16450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16451 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16452 | shlibpath_var=LD_LIBRARY_PATH |
---|
16453 | case $host_vendor in |
---|
16454 | sni) |
---|
16455 | shlibpath_overrides_runpath=no |
---|
16456 | need_lib_prefix=no |
---|
16457 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
16458 | runpath_var=LD_RUN_PATH |
---|
16459 | ;; |
---|
16460 | siemens) |
---|
16461 | need_lib_prefix=no |
---|
16462 | ;; |
---|
16463 | motorola) |
---|
16464 | need_lib_prefix=no |
---|
16465 | need_version=no |
---|
16466 | shlibpath_overrides_runpath=no |
---|
16467 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
16468 | ;; |
---|
16469 | esac |
---|
16470 | ;; |
---|
16471 | |
---|
16472 | sysv4*MP*) |
---|
16473 | if test -d /usr/nec ;then |
---|
16474 | version_type=linux |
---|
16475 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
16476 | soname_spec='$libname${shared_ext}.$major' |
---|
16477 | shlibpath_var=LD_LIBRARY_PATH |
---|
16478 | fi |
---|
16479 | ;; |
---|
16480 | |
---|
16481 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
16482 | version_type=freebsd-elf |
---|
16483 | need_lib_prefix=no |
---|
16484 | need_version=no |
---|
16485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
16486 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16487 | shlibpath_var=LD_LIBRARY_PATH |
---|
16488 | hardcode_into_libs=yes |
---|
16489 | if test "$with_gnu_ld" = yes; then |
---|
16490 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
16491 | shlibpath_overrides_runpath=no |
---|
16492 | else |
---|
16493 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
16494 | shlibpath_overrides_runpath=yes |
---|
16495 | case $host_os in |
---|
16496 | sco3.2v5*) |
---|
16497 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
16498 | ;; |
---|
16499 | esac |
---|
16500 | fi |
---|
16501 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
16502 | ;; |
---|
16503 | |
---|
16504 | uts4*) |
---|
16505 | version_type=linux |
---|
16506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16507 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16508 | shlibpath_var=LD_LIBRARY_PATH |
---|
16509 | ;; |
---|
16510 | |
---|
16511 | *) |
---|
16512 | dynamic_linker=no |
---|
16513 | ;; |
---|
16514 | esac |
---|
16515 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
16516 | echo "${ECHO_T}$dynamic_linker" >&6; } |
---|
16517 | test "$dynamic_linker" = no && can_build_shared=no |
---|
16518 | |
---|
16519 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
16520 | if test "$GCC" = yes; then |
---|
16521 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
16522 | fi |
---|
16523 | |
---|
16524 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
16525 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
---|
16526 | hardcode_action_F77= |
---|
16527 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
---|
16528 | test -n "$runpath_var_F77" || \ |
---|
16529 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
---|
16530 | |
---|
16531 | # We can hardcode non-existant directories. |
---|
16532 | if test "$hardcode_direct_F77" != no && |
---|
16533 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
16534 | # have to relink, otherwise we might link with an installed library |
---|
16535 | # when we should be linking with a yet-to-be-installed one |
---|
16536 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
---|
16537 | test "$hardcode_minus_L_F77" != no; then |
---|
16538 | # Linking always hardcodes the temporary library directory. |
---|
16539 | hardcode_action_F77=relink |
---|
16540 | else |
---|
16541 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
16542 | hardcode_action_F77=immediate |
---|
16543 | fi |
---|
16544 | else |
---|
16545 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
16546 | # directories. |
---|
16547 | hardcode_action_F77=unsupported |
---|
16548 | fi |
---|
16549 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
---|
16550 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
---|
16551 | |
---|
16552 | if test "$hardcode_action_F77" = relink; then |
---|
16553 | # Fast installation is not supported |
---|
16554 | enable_fast_install=no |
---|
16555 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
16556 | test "$enable_shared" = no; then |
---|
16557 | # Fast installation is not necessary |
---|
16558 | enable_fast_install=needless |
---|
16559 | fi |
---|
16560 | |
---|
16561 | |
---|
16562 | # The else clause should only fire when bootstrapping the |
---|
16563 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
16564 | # with your package, and you will get complaints that there are |
---|
16565 | # no rules to generate ltmain.sh. |
---|
16566 | if test -f "$ltmain"; then |
---|
16567 | # See if we are running on zsh, and set the options which allow our commands through |
---|
16568 | # without removal of \ escapes. |
---|
16569 | if test -n "${ZSH_VERSION+set}" ; then |
---|
16570 | setopt NO_GLOB_SUBST |
---|
16571 | fi |
---|
16572 | # Now quote all the things that may contain metacharacters while being |
---|
16573 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
16574 | # variables and quote the copies for generation of the libtool script. |
---|
16575 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
---|
16576 | SED SHELL STRIP \ |
---|
16577 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
16578 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
16579 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
16580 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
16581 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
16582 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
16583 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
16584 | compiler_F77 \ |
---|
16585 | CC_F77 \ |
---|
16586 | LD_F77 \ |
---|
16587 | lt_prog_compiler_wl_F77 \ |
---|
16588 | lt_prog_compiler_pic_F77 \ |
---|
16589 | lt_prog_compiler_static_F77 \ |
---|
16590 | lt_prog_compiler_no_builtin_flag_F77 \ |
---|
16591 | export_dynamic_flag_spec_F77 \ |
---|
16592 | thread_safe_flag_spec_F77 \ |
---|
16593 | whole_archive_flag_spec_F77 \ |
---|
16594 | enable_shared_with_static_runtimes_F77 \ |
---|
16595 | old_archive_cmds_F77 \ |
---|
16596 | old_archive_from_new_cmds_F77 \ |
---|
16597 | predep_objects_F77 \ |
---|
16598 | postdep_objects_F77 \ |
---|
16599 | predeps_F77 \ |
---|
16600 | postdeps_F77 \ |
---|
16601 | compiler_lib_search_path_F77 \ |
---|
16602 | archive_cmds_F77 \ |
---|
16603 | archive_expsym_cmds_F77 \ |
---|
16604 | postinstall_cmds_F77 \ |
---|
16605 | postuninstall_cmds_F77 \ |
---|
16606 | old_archive_from_expsyms_cmds_F77 \ |
---|
16607 | allow_undefined_flag_F77 \ |
---|
16608 | no_undefined_flag_F77 \ |
---|
16609 | export_symbols_cmds_F77 \ |
---|
16610 | hardcode_libdir_flag_spec_F77 \ |
---|
16611 | hardcode_libdir_flag_spec_ld_F77 \ |
---|
16612 | hardcode_libdir_separator_F77 \ |
---|
16613 | hardcode_automatic_F77 \ |
---|
16614 | module_cmds_F77 \ |
---|
16615 | module_expsym_cmds_F77 \ |
---|
16616 | lt_cv_prog_compiler_c_o_F77 \ |
---|
16617 | fix_srcfile_path_F77 \ |
---|
16618 | exclude_expsyms_F77 \ |
---|
16619 | include_expsyms_F77; do |
---|
16620 | |
---|
16621 | case $var in |
---|
16622 | old_archive_cmds_F77 | \ |
---|
16623 | old_archive_from_new_cmds_F77 | \ |
---|
16624 | archive_cmds_F77 | \ |
---|
16625 | archive_expsym_cmds_F77 | \ |
---|
16626 | module_cmds_F77 | \ |
---|
16627 | module_expsym_cmds_F77 | \ |
---|
16628 | old_archive_from_expsyms_cmds_F77 | \ |
---|
16629 | export_symbols_cmds_F77 | \ |
---|
16630 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
16631 | postinstall_cmds | postuninstall_cmds | \ |
---|
16632 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
16633 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
16634 | # Double-quote double-evaled strings. |
---|
16635 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
16636 | ;; |
---|
16637 | *) |
---|
16638 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
16639 | ;; |
---|
16640 | esac |
---|
16641 | done |
---|
16642 | |
---|
16643 | case $lt_echo in |
---|
16644 | *'\$0 --fallback-echo"') |
---|
16645 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
16646 | ;; |
---|
16647 | esac |
---|
16648 | |
---|
16649 | cfgfile="$ofile" |
---|
16650 | |
---|
16651 | cat <<__EOF__ >> "$cfgfile" |
---|
16652 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
16653 | |
---|
16654 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
16655 | |
---|
16656 | # Shell to use when invoking shell scripts. |
---|
16657 | SHELL=$lt_SHELL |
---|
16658 | |
---|
16659 | # Whether or not to build shared libraries. |
---|
16660 | build_libtool_libs=$enable_shared |
---|
16661 | |
---|
16662 | # Whether or not to build static libraries. |
---|
16663 | build_old_libs=$enable_static |
---|
16664 | |
---|
16665 | # Whether or not to add -lc for building shared libraries. |
---|
16666 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
---|
16667 | |
---|
16668 | # Whether or not to disallow shared libs when runtime libs are static |
---|
16669 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
---|
16670 | |
---|
16671 | # Whether or not to optimize for fast installation. |
---|
16672 | fast_install=$enable_fast_install |
---|
16673 | |
---|
16674 | # The host system. |
---|
16675 | host_alias=$host_alias |
---|
16676 | host=$host |
---|
16677 | host_os=$host_os |
---|
16678 | |
---|
16679 | # The build system. |
---|
16680 | build_alias=$build_alias |
---|
16681 | build=$build |
---|
16682 | build_os=$build_os |
---|
16683 | |
---|
16684 | # An echo program that does not interpret backslashes. |
---|
16685 | echo=$lt_echo |
---|
16686 | |
---|
16687 | # The archiver. |
---|
16688 | AR=$lt_AR |
---|
16689 | AR_FLAGS=$lt_AR_FLAGS |
---|
16690 | |
---|
16691 | # A C compiler. |
---|
16692 | LTCC=$lt_LTCC |
---|
16693 | |
---|
16694 | # LTCC compiler flags. |
---|
16695 | LTCFLAGS=$lt_LTCFLAGS |
---|
16696 | |
---|
16697 | # A language-specific compiler. |
---|
16698 | CC=$lt_compiler_F77 |
---|
16699 | |
---|
16700 | # Is the compiler the GNU C compiler? |
---|
16701 | with_gcc=$GCC_F77 |
---|
16702 | |
---|
16703 | # An ERE matcher. |
---|
16704 | EGREP=$lt_EGREP |
---|
16705 | |
---|
16706 | # The linker used to build libraries. |
---|
16707 | LD=$lt_LD_F77 |
---|
16708 | |
---|
16709 | # Whether we need hard or soft links. |
---|
16710 | LN_S=$lt_LN_S |
---|
16711 | |
---|
16712 | # A BSD-compatible nm program. |
---|
16713 | NM=$lt_NM |
---|
16714 | |
---|
16715 | # A symbol stripping program |
---|
16716 | STRIP=$lt_STRIP |
---|
16717 | |
---|
16718 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
16719 | MAGIC_CMD=$MAGIC_CMD |
---|
16720 | |
---|
16721 | # Used on cygwin: DLL creation program. |
---|
16722 | DLLTOOL="$DLLTOOL" |
---|
16723 | |
---|
16724 | # Used on cygwin: object dumper. |
---|
16725 | OBJDUMP="$OBJDUMP" |
---|
16726 | |
---|
16727 | # Used on cygwin: assembler. |
---|
16728 | AS="$AS" |
---|
16729 | |
---|
16730 | # The name of the directory that contains temporary libtool files. |
---|
16731 | objdir=$objdir |
---|
16732 | |
---|
16733 | # How to create reloadable object files. |
---|
16734 | reload_flag=$lt_reload_flag |
---|
16735 | reload_cmds=$lt_reload_cmds |
---|
16736 | |
---|
16737 | # How to pass a linker flag through the compiler. |
---|
16738 | wl=$lt_lt_prog_compiler_wl_F77 |
---|
16739 | |
---|
16740 | # Object file suffix (normally "o"). |
---|
16741 | objext="$ac_objext" |
---|
16742 | |
---|
16743 | # Old archive suffix (normally "a"). |
---|
16744 | libext="$libext" |
---|
16745 | |
---|
16746 | # Shared library suffix (normally ".so"). |
---|
16747 | shrext_cmds='$shrext_cmds' |
---|
16748 | |
---|
16749 | # Executable file suffix (normally ""). |
---|
16750 | exeext="$exeext" |
---|
16751 | |
---|
16752 | # Additional compiler flags for building library objects. |
---|
16753 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
---|
16754 | pic_mode=$pic_mode |
---|
16755 | |
---|
16756 | # What is the maximum length of a command? |
---|
16757 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
16758 | |
---|
16759 | # Does compiler simultaneously support -c and -o options? |
---|
16760 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
---|
16761 | |
---|
16762 | # Must we lock files when doing compilation? |
---|
16763 | need_locks=$lt_need_locks |
---|
16764 | |
---|
16765 | # Do we need the lib prefix for modules? |
---|
16766 | need_lib_prefix=$need_lib_prefix |
---|
16767 | |
---|
16768 | # Do we need a version for libraries? |
---|
16769 | need_version=$need_version |
---|
16770 | |
---|
16771 | # Whether dlopen is supported. |
---|
16772 | dlopen_support=$enable_dlopen |
---|
16773 | |
---|
16774 | # Whether dlopen of programs is supported. |
---|
16775 | dlopen_self=$enable_dlopen_self |
---|
16776 | |
---|
16777 | # Whether dlopen of statically linked programs is supported. |
---|
16778 | dlopen_self_static=$enable_dlopen_self_static |
---|
16779 | |
---|
16780 | # Compiler flag to prevent dynamic linking. |
---|
16781 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
---|
16782 | |
---|
16783 | # Compiler flag to turn off builtin functions. |
---|
16784 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
---|
16785 | |
---|
16786 | # Compiler flag to allow reflexive dlopens. |
---|
16787 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
---|
16788 | |
---|
16789 | # Compiler flag to generate shared objects directly from archives. |
---|
16790 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
---|
16791 | |
---|
16792 | # Compiler flag to generate thread-safe objects. |
---|
16793 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
---|
16794 | |
---|
16795 | # Library versioning type. |
---|
16796 | version_type=$version_type |
---|
16797 | |
---|
16798 | # Format of library name prefix. |
---|
16799 | libname_spec=$lt_libname_spec |
---|
16800 | |
---|
16801 | # List of archive names. First name is the real one, the rest are links. |
---|
16802 | # The last name is the one that the linker finds with -lNAME. |
---|
16803 | library_names_spec=$lt_library_names_spec |
---|
16804 | |
---|
16805 | # The coded name of the library, if different from the real name. |
---|
16806 | soname_spec=$lt_soname_spec |
---|
16807 | |
---|
16808 | # Commands used to build and install an old-style archive. |
---|
16809 | RANLIB=$lt_RANLIB |
---|
16810 | old_archive_cmds=$lt_old_archive_cmds_F77 |
---|
16811 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
16812 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
16813 | |
---|
16814 | # Create an old-style archive from a shared archive. |
---|
16815 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
---|
16816 | |
---|
16817 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
16818 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
---|
16819 | |
---|
16820 | # Commands used to build and install a shared archive. |
---|
16821 | archive_cmds=$lt_archive_cmds_F77 |
---|
16822 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
---|
16823 | postinstall_cmds=$lt_postinstall_cmds |
---|
16824 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
16825 | |
---|
16826 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
16827 | module_cmds=$lt_module_cmds_F77 |
---|
16828 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
---|
16829 | |
---|
16830 | # Commands to strip libraries. |
---|
16831 | old_striplib=$lt_old_striplib |
---|
16832 | striplib=$lt_striplib |
---|
16833 | |
---|
16834 | # Dependencies to place before the objects being linked to create a |
---|
16835 | # shared library. |
---|
16836 | predep_objects=$lt_predep_objects_F77 |
---|
16837 | |
---|
16838 | # Dependencies to place after the objects being linked to create a |
---|
16839 | # shared library. |
---|
16840 | postdep_objects=$lt_postdep_objects_F77 |
---|
16841 | |
---|
16842 | # Dependencies to place before the objects being linked to create a |
---|
16843 | # shared library. |
---|
16844 | predeps=$lt_predeps_F77 |
---|
16845 | |
---|
16846 | # Dependencies to place after the objects being linked to create a |
---|
16847 | # shared library. |
---|
16848 | postdeps=$lt_postdeps_F77 |
---|
16849 | |
---|
16850 | # The library search path used internally by the compiler when linking |
---|
16851 | # a shared library. |
---|
16852 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
---|
16853 | |
---|
16854 | # Method to check whether dependent libraries are shared objects. |
---|
16855 | deplibs_check_method=$lt_deplibs_check_method |
---|
16856 | |
---|
16857 | # Command to use when deplibs_check_method == file_magic. |
---|
16858 | file_magic_cmd=$lt_file_magic_cmd |
---|
16859 | |
---|
16860 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
16861 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
---|
16862 | |
---|
16863 | # Flag that forces no undefined symbols. |
---|
16864 | no_undefined_flag=$lt_no_undefined_flag_F77 |
---|
16865 | |
---|
16866 | # Commands used to finish a libtool library installation in a directory. |
---|
16867 | finish_cmds=$lt_finish_cmds |
---|
16868 | |
---|
16869 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
16870 | finish_eval=$lt_finish_eval |
---|
16871 | |
---|
16872 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
16873 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
16874 | |
---|
16875 | # Transform the output of nm in a proper C declaration |
---|
16876 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
16877 | |
---|
16878 | # Transform the output of nm in a C name address pair |
---|
16879 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
16880 | |
---|
16881 | # This is the shared library runtime path variable. |
---|
16882 | runpath_var=$runpath_var |
---|
16883 | |
---|
16884 | # This is the shared library path variable. |
---|
16885 | shlibpath_var=$shlibpath_var |
---|
16886 | |
---|
16887 | # Is shlibpath searched before the hard-coded library search path? |
---|
16888 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
16889 | |
---|
16890 | # How to hardcode a shared library path into an executable. |
---|
16891 | hardcode_action=$hardcode_action_F77 |
---|
16892 | |
---|
16893 | # Whether we should hardcode library paths into libraries. |
---|
16894 | hardcode_into_libs=$hardcode_into_libs |
---|
16895 | |
---|
16896 | # Flag to hardcode \$libdir into a binary during linking. |
---|
16897 | # This must work even if \$libdir does not exist. |
---|
16898 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
---|
16899 | |
---|
16900 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
16901 | # a binary during linking. This must work even if \$libdir does |
---|
16902 | # not exist. |
---|
16903 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
---|
16904 | |
---|
16905 | # Whether we need a single -rpath flag with a separated argument. |
---|
16906 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
---|
16907 | |
---|
16908 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
16909 | # resulting binary. |
---|
16910 | hardcode_direct=$hardcode_direct_F77 |
---|
16911 | |
---|
16912 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
16913 | # resulting binary. |
---|
16914 | hardcode_minus_L=$hardcode_minus_L_F77 |
---|
16915 | |
---|
16916 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
16917 | # the resulting binary. |
---|
16918 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
---|
16919 | |
---|
16920 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
16921 | # and all subsequent libraries and executables linked against it. |
---|
16922 | hardcode_automatic=$hardcode_automatic_F77 |
---|
16923 | |
---|
16924 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
16925 | # restored at relink time. |
---|
16926 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
16927 | |
---|
16928 | # Whether libtool must link a program against all its dependency libraries. |
---|
16929 | link_all_deplibs=$link_all_deplibs_F77 |
---|
16930 | |
---|
16931 | # Compile-time system search path for libraries |
---|
16932 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
16933 | |
---|
16934 | # Run-time system search path for libraries |
---|
16935 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
16936 | |
---|
16937 | # Fix the shell variable \$srcfile for the compiler. |
---|
16938 | fix_srcfile_path=$lt_fix_srcfile_path |
---|
16939 | |
---|
16940 | # Set to yes if exported symbols are required. |
---|
16941 | always_export_symbols=$always_export_symbols_F77 |
---|
16942 | |
---|
16943 | # The commands to list exported symbols. |
---|
16944 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
---|
16945 | |
---|
16946 | # The commands to extract the exported symbol list from a shared archive. |
---|
16947 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
16948 | |
---|
16949 | # Symbols that should not be listed in the preloaded symbols. |
---|
16950 | exclude_expsyms=$lt_exclude_expsyms_F77 |
---|
16951 | |
---|
16952 | # Symbols that must always be exported. |
---|
16953 | include_expsyms=$lt_include_expsyms_F77 |
---|
16954 | |
---|
16955 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
16956 | |
---|
16957 | __EOF__ |
---|
16958 | |
---|
16959 | |
---|
16960 | else |
---|
16961 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
16962 | # `config.status --recheck' to rerun these tests and create the |
---|
16963 | # libtool script then. |
---|
16964 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
16965 | if test -f "$ltmain_in"; then |
---|
16966 | test -f Makefile && make "$ltmain" |
---|
16967 | fi |
---|
16968 | fi |
---|
16969 | |
---|
16970 | |
---|
16971 | ac_ext=c |
---|
16972 | ac_cpp='$CPP $CPPFLAGS' |
---|
16973 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
16974 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
16975 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
16976 | |
---|
16977 | CC="$lt_save_CC" |
---|
16978 | |
---|
16979 | else |
---|
16980 | tagname="" |
---|
16981 | fi |
---|
16982 | ;; |
---|
16983 | |
---|
16984 | GCJ) |
---|
16985 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
---|
16986 | |
---|
16987 | |
---|
16988 | # Source file extension for Java test sources. |
---|
16989 | ac_ext=java |
---|
16990 | |
---|
16991 | # Object file extension for compiled Java test sources. |
---|
16992 | objext=o |
---|
16993 | objext_GCJ=$objext |
---|
16994 | |
---|
16995 | # Code to be used in simple compile tests |
---|
16996 | lt_simple_compile_test_code="class foo {}" |
---|
16997 | |
---|
16998 | # Code to be used in simple link tests |
---|
16999 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' |
---|
17000 | |
---|
17001 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
17002 | |
---|
17003 | # If no C compiler was specified, use CC. |
---|
17004 | LTCC=${LTCC-"$CC"} |
---|
17005 | |
---|
17006 | # If no C compiler flags were specified, use CFLAGS. |
---|
17007 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
17008 | |
---|
17009 | # Allow CC to be a program name with arguments. |
---|
17010 | compiler=$CC |
---|
17011 | |
---|
17012 | |
---|
17013 | # save warnings/boilerplate of simple test code |
---|
17014 | ac_outfile=conftest.$ac_objext |
---|
17015 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
17016 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
17017 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
17018 | $rm conftest* |
---|
17019 | |
---|
17020 | ac_outfile=conftest.$ac_objext |
---|
17021 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
17022 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
17023 | _lt_linker_boilerplate=`cat conftest.err` |
---|
17024 | $rm conftest* |
---|
17025 | |
---|
17026 | |
---|
17027 | # Allow CC to be a program name with arguments. |
---|
17028 | lt_save_CC="$CC" |
---|
17029 | CC=${GCJ-"gcj"} |
---|
17030 | compiler=$CC |
---|
17031 | compiler_GCJ=$CC |
---|
17032 | for cc_temp in $compiler""; do |
---|
17033 | case $cc_temp in |
---|
17034 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
17035 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
17036 | \-*) ;; |
---|
17037 | *) break;; |
---|
17038 | esac |
---|
17039 | done |
---|
17040 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
17041 | |
---|
17042 | |
---|
17043 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
---|
17044 | archive_cmds_need_lc_GCJ=no |
---|
17045 | |
---|
17046 | old_archive_cmds_GCJ=$old_archive_cmds |
---|
17047 | |
---|
17048 | |
---|
17049 | lt_prog_compiler_no_builtin_flag_GCJ= |
---|
17050 | |
---|
17051 | if test "$GCC" = yes; then |
---|
17052 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
---|
17053 | |
---|
17054 | |
---|
17055 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
17056 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
---|
17057 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
17058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17059 | else |
---|
17060 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
17061 | ac_outfile=conftest.$ac_objext |
---|
17062 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
17063 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
17064 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
17065 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
17066 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
17067 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
17068 | # The option is referenced via a variable to avoid confusing sed. |
---|
17069 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
17070 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
17071 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
17072 | -e 's:$: $lt_compiler_flag:'` |
---|
17073 | (eval echo "\"\$as_me:17073: $lt_compile\"" >&5) |
---|
17074 | (eval "$lt_compile" 2>conftest.err) |
---|
17075 | ac_status=$? |
---|
17076 | cat conftest.err >&5 |
---|
17077 | echo "$as_me:17077: \$? = $ac_status" >&5 |
---|
17078 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
17079 | # The compiler can only warn and ignore the option if not recognized |
---|
17080 | # So say no if there are warnings other than the usual output. |
---|
17081 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
17082 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
17083 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
17084 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
17085 | fi |
---|
17086 | fi |
---|
17087 | $rm conftest* |
---|
17088 | |
---|
17089 | fi |
---|
17090 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
17091 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
---|
17092 | |
---|
17093 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
17094 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
---|
17095 | else |
---|
17096 | : |
---|
17097 | fi |
---|
17098 | |
---|
17099 | fi |
---|
17100 | |
---|
17101 | lt_prog_compiler_wl_GCJ= |
---|
17102 | lt_prog_compiler_pic_GCJ= |
---|
17103 | lt_prog_compiler_static_GCJ= |
---|
17104 | |
---|
17105 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
17106 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
---|
17107 | |
---|
17108 | if test "$GCC" = yes; then |
---|
17109 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17110 | lt_prog_compiler_static_GCJ='-static' |
---|
17111 | |
---|
17112 | case $host_os in |
---|
17113 | aix*) |
---|
17114 | # All AIX code is PIC. |
---|
17115 | if test "$host_cpu" = ia64; then |
---|
17116 | # AIX 5 now supports IA64 processor |
---|
17117 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17118 | fi |
---|
17119 | ;; |
---|
17120 | |
---|
17121 | amigaos*) |
---|
17122 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
17123 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
17124 | # like `-m68040'. |
---|
17125 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
---|
17126 | ;; |
---|
17127 | |
---|
17128 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
17129 | # PIC is the default for these OSes. |
---|
17130 | ;; |
---|
17131 | |
---|
17132 | mingw* | cygwin* | pw32* | os2*) |
---|
17133 | # This hack is so that the source file can tell whether it is being |
---|
17134 | # built for inclusion in a dll (and should export symbols for example). |
---|
17135 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
---|
17136 | # (--disable-auto-import) libraries |
---|
17137 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
---|
17138 | ;; |
---|
17139 | |
---|
17140 | darwin* | rhapsody*) |
---|
17141 | # PIC is the default on this platform |
---|
17142 | # Common symbols not allowed in MH_DYLIB files |
---|
17143 | lt_prog_compiler_pic_GCJ='-fno-common' |
---|
17144 | ;; |
---|
17145 | |
---|
17146 | interix[3-9]*) |
---|
17147 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
17148 | # Instead, we relocate shared libraries at runtime. |
---|
17149 | ;; |
---|
17150 | |
---|
17151 | msdosdjgpp*) |
---|
17152 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
17153 | # on systems that don't support them. |
---|
17154 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
17155 | enable_shared=no |
---|
17156 | ;; |
---|
17157 | |
---|
17158 | sysv4*MP*) |
---|
17159 | if test -d /usr/nec; then |
---|
17160 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
---|
17161 | fi |
---|
17162 | ;; |
---|
17163 | |
---|
17164 | hpux*) |
---|
17165 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
17166 | # not for PA HP-UX. |
---|
17167 | case $host_cpu in |
---|
17168 | hppa*64*|ia64*) |
---|
17169 | # +Z the default |
---|
17170 | ;; |
---|
17171 | *) |
---|
17172 | lt_prog_compiler_pic_GCJ='-fPIC' |
---|
17173 | ;; |
---|
17174 | esac |
---|
17175 | ;; |
---|
17176 | |
---|
17177 | *) |
---|
17178 | lt_prog_compiler_pic_GCJ='-fPIC' |
---|
17179 | ;; |
---|
17180 | esac |
---|
17181 | else |
---|
17182 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
17183 | case $host_os in |
---|
17184 | aix*) |
---|
17185 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17186 | if test "$host_cpu" = ia64; then |
---|
17187 | # AIX 5 now supports IA64 processor |
---|
17188 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17189 | else |
---|
17190 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
---|
17191 | fi |
---|
17192 | ;; |
---|
17193 | darwin*) |
---|
17194 | # PIC is the default on this platform |
---|
17195 | # Common symbols not allowed in MH_DYLIB files |
---|
17196 | case $cc_basename in |
---|
17197 | xlc*) |
---|
17198 | lt_prog_compiler_pic_GCJ='-qnocommon' |
---|
17199 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17200 | ;; |
---|
17201 | esac |
---|
17202 | ;; |
---|
17203 | |
---|
17204 | mingw* | cygwin* | pw32* | os2*) |
---|
17205 | # This hack is so that the source file can tell whether it is being |
---|
17206 | # built for inclusion in a dll (and should export symbols for example). |
---|
17207 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
---|
17208 | ;; |
---|
17209 | |
---|
17210 | hpux9* | hpux10* | hpux11*) |
---|
17211 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17212 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
17213 | # not for PA HP-UX. |
---|
17214 | case $host_cpu in |
---|
17215 | hppa*64*|ia64*) |
---|
17216 | # +Z the default |
---|
17217 | ;; |
---|
17218 | *) |
---|
17219 | lt_prog_compiler_pic_GCJ='+Z' |
---|
17220 | ;; |
---|
17221 | esac |
---|
17222 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
17223 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
---|
17224 | ;; |
---|
17225 | |
---|
17226 | irix5* | irix6* | nonstopux*) |
---|
17227 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17228 | # PIC (with -KPIC) is the default. |
---|
17229 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
17230 | ;; |
---|
17231 | |
---|
17232 | newsos6) |
---|
17233 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
17234 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17235 | ;; |
---|
17236 | |
---|
17237 | linux* | k*bsd*-gnu) |
---|
17238 | case $cc_basename in |
---|
17239 | icc* | ecc*) |
---|
17240 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17241 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
17242 | lt_prog_compiler_static_GCJ='-static' |
---|
17243 | ;; |
---|
17244 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
17245 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
17246 | # which looks to be a dead project) |
---|
17247 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17248 | lt_prog_compiler_pic_GCJ='-fpic' |
---|
17249 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17250 | ;; |
---|
17251 | ccc*) |
---|
17252 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17253 | # All Alpha code is PIC. |
---|
17254 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
17255 | ;; |
---|
17256 | *) |
---|
17257 | case `$CC -V 2>&1 | sed 5q` in |
---|
17258 | *Sun\ C*) |
---|
17259 | # Sun C 5.9 |
---|
17260 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
17261 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17262 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17263 | ;; |
---|
17264 | *Sun\ F*) |
---|
17265 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
---|
17266 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
17267 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17268 | lt_prog_compiler_wl_GCJ='' |
---|
17269 | ;; |
---|
17270 | esac |
---|
17271 | ;; |
---|
17272 | esac |
---|
17273 | ;; |
---|
17274 | |
---|
17275 | osf3* | osf4* | osf5*) |
---|
17276 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17277 | # All OSF/1 code is PIC. |
---|
17278 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
17279 | ;; |
---|
17280 | |
---|
17281 | rdos*) |
---|
17282 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
17283 | ;; |
---|
17284 | |
---|
17285 | solaris*) |
---|
17286 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
17287 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17288 | case $cc_basename in |
---|
17289 | f77* | f90* | f95*) |
---|
17290 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
---|
17291 | *) |
---|
17292 | lt_prog_compiler_wl_GCJ='-Wl,';; |
---|
17293 | esac |
---|
17294 | ;; |
---|
17295 | |
---|
17296 | sunos4*) |
---|
17297 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
---|
17298 | lt_prog_compiler_pic_GCJ='-PIC' |
---|
17299 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17300 | ;; |
---|
17301 | |
---|
17302 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
17303 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17304 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
17305 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17306 | ;; |
---|
17307 | |
---|
17308 | sysv4*MP*) |
---|
17309 | if test -d /usr/nec ;then |
---|
17310 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
---|
17311 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17312 | fi |
---|
17313 | ;; |
---|
17314 | |
---|
17315 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
17316 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17317 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
17318 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17319 | ;; |
---|
17320 | |
---|
17321 | unicos*) |
---|
17322 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17323 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
17324 | ;; |
---|
17325 | |
---|
17326 | uts4*) |
---|
17327 | lt_prog_compiler_pic_GCJ='-pic' |
---|
17328 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17329 | ;; |
---|
17330 | |
---|
17331 | *) |
---|
17332 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
17333 | ;; |
---|
17334 | esac |
---|
17335 | fi |
---|
17336 | |
---|
17337 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
---|
17338 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
---|
17339 | |
---|
17340 | # |
---|
17341 | # Check to make sure the PIC flag actually works. |
---|
17342 | # |
---|
17343 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
---|
17344 | |
---|
17345 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
---|
17346 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
---|
17347 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
---|
17348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17349 | else |
---|
17350 | lt_prog_compiler_pic_works_GCJ=no |
---|
17351 | ac_outfile=conftest.$ac_objext |
---|
17352 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
17353 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
---|
17354 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
17355 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
17356 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
17357 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
17358 | # The option is referenced via a variable to avoid confusing sed. |
---|
17359 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
17360 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
17361 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
17362 | -e 's:$: $lt_compiler_flag:'` |
---|
17363 | (eval echo "\"\$as_me:17363: $lt_compile\"" >&5) |
---|
17364 | (eval "$lt_compile" 2>conftest.err) |
---|
17365 | ac_status=$? |
---|
17366 | cat conftest.err >&5 |
---|
17367 | echo "$as_me:17367: \$? = $ac_status" >&5 |
---|
17368 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
17369 | # The compiler can only warn and ignore the option if not recognized |
---|
17370 | # So say no if there are warnings other than the usual output. |
---|
17371 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
17372 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
17373 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
17374 | lt_prog_compiler_pic_works_GCJ=yes |
---|
17375 | fi |
---|
17376 | fi |
---|
17377 | $rm conftest* |
---|
17378 | |
---|
17379 | fi |
---|
17380 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
---|
17381 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
---|
17382 | |
---|
17383 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
---|
17384 | case $lt_prog_compiler_pic_GCJ in |
---|
17385 | "" | " "*) ;; |
---|
17386 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
---|
17387 | esac |
---|
17388 | else |
---|
17389 | lt_prog_compiler_pic_GCJ= |
---|
17390 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
17391 | fi |
---|
17392 | |
---|
17393 | fi |
---|
17394 | case $host_os in |
---|
17395 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
17396 | *djgpp*) |
---|
17397 | lt_prog_compiler_pic_GCJ= |
---|
17398 | ;; |
---|
17399 | *) |
---|
17400 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
---|
17401 | ;; |
---|
17402 | esac |
---|
17403 | |
---|
17404 | # |
---|
17405 | # Check to make sure the static flag actually works. |
---|
17406 | # |
---|
17407 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
---|
17408 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
17409 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
---|
17410 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
---|
17411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17412 | else |
---|
17413 | lt_prog_compiler_static_works_GCJ=no |
---|
17414 | save_LDFLAGS="$LDFLAGS" |
---|
17415 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
17416 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
17417 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
17418 | # The linker can only warn and ignore the option if not recognized |
---|
17419 | # So say no if there are warnings |
---|
17420 | if test -s conftest.err; then |
---|
17421 | # Append any errors to the config.log. |
---|
17422 | cat conftest.err 1>&5 |
---|
17423 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
17424 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
17425 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
17426 | lt_prog_compiler_static_works_GCJ=yes |
---|
17427 | fi |
---|
17428 | else |
---|
17429 | lt_prog_compiler_static_works_GCJ=yes |
---|
17430 | fi |
---|
17431 | fi |
---|
17432 | $rm conftest* |
---|
17433 | LDFLAGS="$save_LDFLAGS" |
---|
17434 | |
---|
17435 | fi |
---|
17436 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
---|
17437 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
---|
17438 | |
---|
17439 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
---|
17440 | : |
---|
17441 | else |
---|
17442 | lt_prog_compiler_static_GCJ= |
---|
17443 | fi |
---|
17444 | |
---|
17445 | |
---|
17446 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
17447 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
---|
17448 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
---|
17449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17450 | else |
---|
17451 | lt_cv_prog_compiler_c_o_GCJ=no |
---|
17452 | $rm -r conftest 2>/dev/null |
---|
17453 | mkdir conftest |
---|
17454 | cd conftest |
---|
17455 | mkdir out |
---|
17456 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
17457 | |
---|
17458 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
17459 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
17460 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
17461 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
17462 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
17463 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
17464 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
17465 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
17466 | -e 's:$: $lt_compiler_flag:'` |
---|
17467 | (eval echo "\"\$as_me:17467: $lt_compile\"" >&5) |
---|
17468 | (eval "$lt_compile" 2>out/conftest.err) |
---|
17469 | ac_status=$? |
---|
17470 | cat out/conftest.err >&5 |
---|
17471 | echo "$as_me:17471: \$? = $ac_status" >&5 |
---|
17472 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
17473 | then |
---|
17474 | # The compiler can only warn and ignore the option if not recognized |
---|
17475 | # So say no if there are warnings |
---|
17476 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
17477 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
17478 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
17479 | lt_cv_prog_compiler_c_o_GCJ=yes |
---|
17480 | fi |
---|
17481 | fi |
---|
17482 | chmod u+w . 2>&5 |
---|
17483 | $rm conftest* |
---|
17484 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
17485 | # template instantiation |
---|
17486 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
17487 | $rm out/* && rmdir out |
---|
17488 | cd .. |
---|
17489 | rmdir conftest |
---|
17490 | $rm conftest* |
---|
17491 | |
---|
17492 | fi |
---|
17493 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
---|
17494 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
---|
17495 | |
---|
17496 | |
---|
17497 | hard_links="nottested" |
---|
17498 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
---|
17499 | # do not overwrite the value of need_locks provided by the user |
---|
17500 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
17501 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
---|
17502 | hard_links=yes |
---|
17503 | $rm conftest* |
---|
17504 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
17505 | touch conftest.a |
---|
17506 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
17507 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
17508 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
17509 | echo "${ECHO_T}$hard_links" >&6; } |
---|
17510 | if test "$hard_links" = no; then |
---|
17511 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
17512 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
17513 | need_locks=warn |
---|
17514 | fi |
---|
17515 | else |
---|
17516 | need_locks=no |
---|
17517 | fi |
---|
17518 | |
---|
17519 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
17520 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
17521 | |
---|
17522 | runpath_var= |
---|
17523 | allow_undefined_flag_GCJ= |
---|
17524 | enable_shared_with_static_runtimes_GCJ=no |
---|
17525 | archive_cmds_GCJ= |
---|
17526 | archive_expsym_cmds_GCJ= |
---|
17527 | old_archive_From_new_cmds_GCJ= |
---|
17528 | old_archive_from_expsyms_cmds_GCJ= |
---|
17529 | export_dynamic_flag_spec_GCJ= |
---|
17530 | whole_archive_flag_spec_GCJ= |
---|
17531 | thread_safe_flag_spec_GCJ= |
---|
17532 | hardcode_libdir_flag_spec_GCJ= |
---|
17533 | hardcode_libdir_flag_spec_ld_GCJ= |
---|
17534 | hardcode_libdir_separator_GCJ= |
---|
17535 | hardcode_direct_GCJ=no |
---|
17536 | hardcode_minus_L_GCJ=no |
---|
17537 | hardcode_shlibpath_var_GCJ=unsupported |
---|
17538 | link_all_deplibs_GCJ=unknown |
---|
17539 | hardcode_automatic_GCJ=no |
---|
17540 | module_cmds_GCJ= |
---|
17541 | module_expsym_cmds_GCJ= |
---|
17542 | always_export_symbols_GCJ=no |
---|
17543 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
17544 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
17545 | # included in the symbol list |
---|
17546 | include_expsyms_GCJ= |
---|
17547 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
17548 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
17549 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
17550 | # as well as any symbol that contains `d'. |
---|
17551 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
---|
17552 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
17553 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
17554 | # the symbol is explicitly referenced. Since portable code cannot |
---|
17555 | # rely on this symbol name, it's probably fine to never include it in |
---|
17556 | # preloaded symbol tables. |
---|
17557 | extract_expsyms_cmds= |
---|
17558 | # Just being paranoid about ensuring that cc_basename is set. |
---|
17559 | for cc_temp in $compiler""; do |
---|
17560 | case $cc_temp in |
---|
17561 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
17562 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
17563 | \-*) ;; |
---|
17564 | *) break;; |
---|
17565 | esac |
---|
17566 | done |
---|
17567 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
17568 | |
---|
17569 | case $host_os in |
---|
17570 | cygwin* | mingw* | pw32*) |
---|
17571 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
17572 | # When not using gcc, we currently assume that we are using |
---|
17573 | # Microsoft Visual C++. |
---|
17574 | if test "$GCC" != yes; then |
---|
17575 | with_gnu_ld=no |
---|
17576 | fi |
---|
17577 | ;; |
---|
17578 | interix*) |
---|
17579 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
17580 | with_gnu_ld=yes |
---|
17581 | ;; |
---|
17582 | openbsd*) |
---|
17583 | with_gnu_ld=no |
---|
17584 | ;; |
---|
17585 | esac |
---|
17586 | |
---|
17587 | ld_shlibs_GCJ=yes |
---|
17588 | if test "$with_gnu_ld" = yes; then |
---|
17589 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
17590 | wlarc='${wl}' |
---|
17591 | |
---|
17592 | # Set some defaults for GNU ld with shared library support. These |
---|
17593 | # are reset later if shared libraries are not supported. Putting them |
---|
17594 | # here allows them to be overridden if necessary. |
---|
17595 | runpath_var=LD_RUN_PATH |
---|
17596 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
---|
17597 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
---|
17598 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
17599 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
17600 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
17601 | else |
---|
17602 | whole_archive_flag_spec_GCJ= |
---|
17603 | fi |
---|
17604 | supports_anon_versioning=no |
---|
17605 | case `$LD -v 2>/dev/null` in |
---|
17606 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
17607 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
17608 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
17609 | *\ 2.11.*) ;; # other 2.11 versions |
---|
17610 | *) supports_anon_versioning=yes ;; |
---|
17611 | esac |
---|
17612 | |
---|
17613 | # See if GNU ld supports shared libraries. |
---|
17614 | case $host_os in |
---|
17615 | aix3* | aix4* | aix5*) |
---|
17616 | # On AIX/PPC, the GNU linker is very broken |
---|
17617 | if test "$host_cpu" != ia64; then |
---|
17618 | ld_shlibs_GCJ=no |
---|
17619 | cat <<EOF 1>&2 |
---|
17620 | |
---|
17621 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
17622 | *** to be unable to reliably create shared libraries on AIX. |
---|
17623 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
17624 | *** really care for shared libraries, you may want to modify your PATH |
---|
17625 | *** so that a non-GNU linker is found, and then restart. |
---|
17626 | |
---|
17627 | EOF |
---|
17628 | fi |
---|
17629 | ;; |
---|
17630 | |
---|
17631 | amigaos*) |
---|
17632 | archive_cmds_GCJ='$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)' |
---|
17633 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17634 | hardcode_minus_L_GCJ=yes |
---|
17635 | |
---|
17636 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
17637 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
17638 | # to version 4, is to share data among multiple programs linked |
---|
17639 | # with the same dynamic library. Since this doesn't match the |
---|
17640 | # behavior of shared libraries on other platforms, we can't use |
---|
17641 | # them. |
---|
17642 | ld_shlibs_GCJ=no |
---|
17643 | ;; |
---|
17644 | |
---|
17645 | beos*) |
---|
17646 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
17647 | allow_undefined_flag_GCJ=unsupported |
---|
17648 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
17649 | # support --undefined. This deserves some investigation. FIXME |
---|
17650 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
17651 | else |
---|
17652 | ld_shlibs_GCJ=no |
---|
17653 | fi |
---|
17654 | ;; |
---|
17655 | |
---|
17656 | cygwin* | mingw* | pw32*) |
---|
17657 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
---|
17658 | # as there is no search path for DLLs. |
---|
17659 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17660 | allow_undefined_flag_GCJ=unsupported |
---|
17661 | always_export_symbols_GCJ=no |
---|
17662 | enable_shared_with_static_runtimes_GCJ=yes |
---|
17663 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
---|
17664 | |
---|
17665 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
17666 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
17667 | # If the export-symbols file already is a .def file (1st line |
---|
17668 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
17669 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
17670 | cp $export_symbols $output_objdir/$soname.def; |
---|
17671 | else |
---|
17672 | echo EXPORTS > $output_objdir/$soname.def; |
---|
17673 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
17674 | fi~ |
---|
17675 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
17676 | else |
---|
17677 | ld_shlibs_GCJ=no |
---|
17678 | fi |
---|
17679 | ;; |
---|
17680 | |
---|
17681 | interix[3-9]*) |
---|
17682 | hardcode_direct_GCJ=no |
---|
17683 | hardcode_shlibpath_var_GCJ=no |
---|
17684 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
---|
17685 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
17686 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
17687 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
17688 | # default) and relocated if they conflict, which is a slow very memory |
---|
17689 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
17690 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
17691 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
17692 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
17693 | archive_expsym_cmds_GCJ='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' |
---|
17694 | ;; |
---|
17695 | |
---|
17696 | gnu* | linux* | k*bsd*-gnu) |
---|
17697 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
17698 | tmp_addflag= |
---|
17699 | case $cc_basename,$host_cpu in |
---|
17700 | pgcc*) # Portland Group C compiler |
---|
17701 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
17702 | tmp_addflag=' $pic_flag' |
---|
17703 | ;; |
---|
17704 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
17705 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
17706 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
17707 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
17708 | tmp_addflag=' -i_dynamic' ;; |
---|
17709 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
17710 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
17711 | ifc* | ifort*) # Intel Fortran compiler |
---|
17712 | tmp_addflag=' -nofor_main' ;; |
---|
17713 | esac |
---|
17714 | case `$CC -V 2>&1 | sed 5q` in |
---|
17715 | *Sun\ C*) # Sun C 5.9 |
---|
17716 | whole_archive_flag_spec_GCJ='${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' |
---|
17717 | tmp_sharedflag='-G' ;; |
---|
17718 | *Sun\ F*) # Sun Fortran 8.3 |
---|
17719 | tmp_sharedflag='-G' ;; |
---|
17720 | *) |
---|
17721 | tmp_sharedflag='-shared' ;; |
---|
17722 | esac |
---|
17723 | archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
17724 | |
---|
17725 | if test $supports_anon_versioning = yes; then |
---|
17726 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
17727 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
17728 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
17729 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
17730 | fi |
---|
17731 | else |
---|
17732 | ld_shlibs_GCJ=no |
---|
17733 | fi |
---|
17734 | ;; |
---|
17735 | |
---|
17736 | netbsd*) |
---|
17737 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
17738 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
17739 | wlarc= |
---|
17740 | else |
---|
17741 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
17742 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
17743 | fi |
---|
17744 | ;; |
---|
17745 | |
---|
17746 | solaris*) |
---|
17747 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
17748 | ld_shlibs_GCJ=no |
---|
17749 | cat <<EOF 1>&2 |
---|
17750 | |
---|
17751 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
17752 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
17753 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
17754 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
17755 | *** your PATH or compiler configuration so that the native linker is |
---|
17756 | *** used, and then restart. |
---|
17757 | |
---|
17758 | EOF |
---|
17759 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
17760 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
17761 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
17762 | else |
---|
17763 | ld_shlibs_GCJ=no |
---|
17764 | fi |
---|
17765 | ;; |
---|
17766 | |
---|
17767 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
17768 | case `$LD -v 2>&1` in |
---|
17769 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
17770 | ld_shlibs_GCJ=no |
---|
17771 | cat <<_LT_EOF 1>&2 |
---|
17772 | |
---|
17773 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
17774 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
17775 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
17776 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
17777 | *** your PATH or compiler configuration so that the native linker is |
---|
17778 | *** used, and then restart. |
---|
17779 | |
---|
17780 | _LT_EOF |
---|
17781 | ;; |
---|
17782 | *) |
---|
17783 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
17784 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
---|
17785 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
---|
17786 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
---|
17787 | else |
---|
17788 | ld_shlibs_GCJ=no |
---|
17789 | fi |
---|
17790 | ;; |
---|
17791 | esac |
---|
17792 | ;; |
---|
17793 | |
---|
17794 | sunos4*) |
---|
17795 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
17796 | wlarc= |
---|
17797 | hardcode_direct_GCJ=yes |
---|
17798 | hardcode_shlibpath_var_GCJ=no |
---|
17799 | ;; |
---|
17800 | |
---|
17801 | *) |
---|
17802 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
17803 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
17804 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
17805 | else |
---|
17806 | ld_shlibs_GCJ=no |
---|
17807 | fi |
---|
17808 | ;; |
---|
17809 | esac |
---|
17810 | |
---|
17811 | if test "$ld_shlibs_GCJ" = no; then |
---|
17812 | runpath_var= |
---|
17813 | hardcode_libdir_flag_spec_GCJ= |
---|
17814 | export_dynamic_flag_spec_GCJ= |
---|
17815 | whole_archive_flag_spec_GCJ= |
---|
17816 | fi |
---|
17817 | else |
---|
17818 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
17819 | case $host_os in |
---|
17820 | aix3*) |
---|
17821 | allow_undefined_flag_GCJ=unsupported |
---|
17822 | always_export_symbols_GCJ=yes |
---|
17823 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
---|
17824 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
17825 | # are no directories specified by -L. |
---|
17826 | hardcode_minus_L_GCJ=yes |
---|
17827 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
17828 | # Neither direct hardcoding nor static linking is supported with a |
---|
17829 | # broken collect2. |
---|
17830 | hardcode_direct_GCJ=unsupported |
---|
17831 | fi |
---|
17832 | ;; |
---|
17833 | |
---|
17834 | aix4* | aix5*) |
---|
17835 | if test "$host_cpu" = ia64; then |
---|
17836 | # On IA64, the linker does run time linking by default, so we don't |
---|
17837 | # have to do anything special. |
---|
17838 | aix_use_runtimelinking=no |
---|
17839 | exp_sym_flag='-Bexport' |
---|
17840 | no_entry_flag="" |
---|
17841 | else |
---|
17842 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
17843 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
17844 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
17845 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
17846 | else |
---|
17847 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
17848 | fi |
---|
17849 | aix_use_runtimelinking=no |
---|
17850 | |
---|
17851 | # Test if we are trying to use run time linking or normal |
---|
17852 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
17853 | # need to do runtime linking. |
---|
17854 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
17855 | for ld_flag in $LDFLAGS; do |
---|
17856 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
17857 | aix_use_runtimelinking=yes |
---|
17858 | break |
---|
17859 | fi |
---|
17860 | done |
---|
17861 | ;; |
---|
17862 | esac |
---|
17863 | |
---|
17864 | exp_sym_flag='-bexport' |
---|
17865 | no_entry_flag='-bnoentry' |
---|
17866 | fi |
---|
17867 | |
---|
17868 | # When large executables or shared objects are built, AIX ld can |
---|
17869 | # have problems creating the table of contents. If linking a library |
---|
17870 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
17871 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
17872 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
17873 | |
---|
17874 | archive_cmds_GCJ='' |
---|
17875 | hardcode_direct_GCJ=yes |
---|
17876 | hardcode_libdir_separator_GCJ=':' |
---|
17877 | link_all_deplibs_GCJ=yes |
---|
17878 | |
---|
17879 | if test "$GCC" = yes; then |
---|
17880 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
17881 | # We only want to do this on AIX 4.2 and lower, the check |
---|
17882 | # below for broken collect2 doesn't work under 4.3+ |
---|
17883 | collect2name=`${CC} -print-prog-name=collect2` |
---|
17884 | if test -f "$collect2name" && \ |
---|
17885 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
17886 | then |
---|
17887 | # We have reworked collect2 |
---|
17888 | : |
---|
17889 | else |
---|
17890 | # We have old collect2 |
---|
17891 | hardcode_direct_GCJ=unsupported |
---|
17892 | # It fails to find uninstalled libraries when the uninstalled |
---|
17893 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
17894 | # to unsupported forces relinking |
---|
17895 | hardcode_minus_L_GCJ=yes |
---|
17896 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17897 | hardcode_libdir_separator_GCJ= |
---|
17898 | fi |
---|
17899 | ;; |
---|
17900 | esac |
---|
17901 | shared_flag='-shared' |
---|
17902 | if test "$aix_use_runtimelinking" = yes; then |
---|
17903 | shared_flag="$shared_flag "'${wl}-G' |
---|
17904 | fi |
---|
17905 | else |
---|
17906 | # not using gcc |
---|
17907 | if test "$host_cpu" = ia64; then |
---|
17908 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
17909 | # chokes on -Wl,-G. The following line is correct: |
---|
17910 | shared_flag='-G' |
---|
17911 | else |
---|
17912 | if test "$aix_use_runtimelinking" = yes; then |
---|
17913 | shared_flag='${wl}-G' |
---|
17914 | else |
---|
17915 | shared_flag='${wl}-bM:SRE' |
---|
17916 | fi |
---|
17917 | fi |
---|
17918 | fi |
---|
17919 | |
---|
17920 | # It seems that -bexpall does not export symbols beginning with |
---|
17921 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
17922 | always_export_symbols_GCJ=yes |
---|
17923 | if test "$aix_use_runtimelinking" = yes; then |
---|
17924 | # Warning - without using the other runtime loading flags (-brtl), |
---|
17925 | # -berok will link without error, but may produce a broken library. |
---|
17926 | allow_undefined_flag_GCJ='-berok' |
---|
17927 | # Determine the default libpath from the value encoded in an empty executable. |
---|
17928 | cat >conftest.$ac_ext <<_ACEOF |
---|
17929 | /* confdefs.h. */ |
---|
17930 | _ACEOF |
---|
17931 | cat confdefs.h >>conftest.$ac_ext |
---|
17932 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17933 | /* end confdefs.h. */ |
---|
17934 | |
---|
17935 | int |
---|
17936 | main () |
---|
17937 | { |
---|
17938 | |
---|
17939 | ; |
---|
17940 | return 0; |
---|
17941 | } |
---|
17942 | _ACEOF |
---|
17943 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
17944 | if { (ac_try="$ac_link" |
---|
17945 | case "(($ac_try" in |
---|
17946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
17947 | *) ac_try_echo=$ac_try;; |
---|
17948 | esac |
---|
17949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
17950 | (eval "$ac_link") 2>conftest.er1 |
---|
17951 | ac_status=$? |
---|
17952 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
17953 | rm -f conftest.er1 |
---|
17954 | cat conftest.err >&5 |
---|
17955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
17956 | (exit $ac_status); } && { |
---|
17957 | test -z "$ac_c_werror_flag" || |
---|
17958 | test ! -s conftest.err |
---|
17959 | } && test -s conftest$ac_exeext && |
---|
17960 | $as_test_x conftest$ac_exeext; then |
---|
17961 | |
---|
17962 | lt_aix_libpath_sed=' |
---|
17963 | /Import File Strings/,/^$/ { |
---|
17964 | /^0/ { |
---|
17965 | s/^0 *\(.*\)$/\1/ |
---|
17966 | p |
---|
17967 | } |
---|
17968 | }' |
---|
17969 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
17970 | # Check for a 64-bit object if we didn't find anything. |
---|
17971 | if test -z "$aix_libpath"; then |
---|
17972 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
17973 | fi |
---|
17974 | else |
---|
17975 | echo "$as_me: failed program was:" >&5 |
---|
17976 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
17977 | |
---|
17978 | |
---|
17979 | fi |
---|
17980 | |
---|
17981 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
17982 | conftest$ac_exeext conftest.$ac_ext |
---|
17983 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
17984 | |
---|
17985 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
17986 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
17987 | else |
---|
17988 | if test "$host_cpu" = ia64; then |
---|
17989 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
---|
17990 | allow_undefined_flag_GCJ="-z nodefs" |
---|
17991 | archive_expsym_cmds_GCJ="\$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" |
---|
17992 | else |
---|
17993 | # Determine the default libpath from the value encoded in an empty executable. |
---|
17994 | cat >conftest.$ac_ext <<_ACEOF |
---|
17995 | /* confdefs.h. */ |
---|
17996 | _ACEOF |
---|
17997 | cat confdefs.h >>conftest.$ac_ext |
---|
17998 | cat >>conftest.$ac_ext <<_ACEOF |
---|
17999 | /* end confdefs.h. */ |
---|
18000 | |
---|
18001 | int |
---|
18002 | main () |
---|
18003 | { |
---|
18004 | |
---|
18005 | ; |
---|
18006 | return 0; |
---|
18007 | } |
---|
18008 | _ACEOF |
---|
18009 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
18010 | if { (ac_try="$ac_link" |
---|
18011 | case "(($ac_try" in |
---|
18012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
18013 | *) ac_try_echo=$ac_try;; |
---|
18014 | esac |
---|
18015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
18016 | (eval "$ac_link") 2>conftest.er1 |
---|
18017 | ac_status=$? |
---|
18018 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
18019 | rm -f conftest.er1 |
---|
18020 | cat conftest.err >&5 |
---|
18021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18022 | (exit $ac_status); } && { |
---|
18023 | test -z "$ac_c_werror_flag" || |
---|
18024 | test ! -s conftest.err |
---|
18025 | } && test -s conftest$ac_exeext && |
---|
18026 | $as_test_x conftest$ac_exeext; then |
---|
18027 | |
---|
18028 | lt_aix_libpath_sed=' |
---|
18029 | /Import File Strings/,/^$/ { |
---|
18030 | /^0/ { |
---|
18031 | s/^0 *\(.*\)$/\1/ |
---|
18032 | p |
---|
18033 | } |
---|
18034 | }' |
---|
18035 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
18036 | # Check for a 64-bit object if we didn't find anything. |
---|
18037 | if test -z "$aix_libpath"; then |
---|
18038 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
18039 | fi |
---|
18040 | else |
---|
18041 | echo "$as_me: failed program was:" >&5 |
---|
18042 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18043 | |
---|
18044 | |
---|
18045 | fi |
---|
18046 | |
---|
18047 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
18048 | conftest$ac_exeext conftest.$ac_ext |
---|
18049 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
18050 | |
---|
18051 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
18052 | # Warning - without using the other run time loading flags, |
---|
18053 | # -berok will link without error, but may produce a broken library. |
---|
18054 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
---|
18055 | allow_undefined_flag_GCJ=' ${wl}-berok' |
---|
18056 | # Exported symbols can be pulled into shared objects from archives |
---|
18057 | whole_archive_flag_spec_GCJ='$convenience' |
---|
18058 | archive_cmds_need_lc_GCJ=yes |
---|
18059 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
18060 | archive_expsym_cmds_GCJ="\$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' |
---|
18061 | fi |
---|
18062 | fi |
---|
18063 | ;; |
---|
18064 | |
---|
18065 | amigaos*) |
---|
18066 | archive_cmds_GCJ='$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)' |
---|
18067 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
18068 | hardcode_minus_L_GCJ=yes |
---|
18069 | # see comment about different semantics on the GNU ld section |
---|
18070 | ld_shlibs_GCJ=no |
---|
18071 | ;; |
---|
18072 | |
---|
18073 | bsdi[45]*) |
---|
18074 | export_dynamic_flag_spec_GCJ=-rdynamic |
---|
18075 | ;; |
---|
18076 | |
---|
18077 | cygwin* | mingw* | pw32*) |
---|
18078 | # When not using gcc, we currently assume that we are using |
---|
18079 | # Microsoft Visual C++. |
---|
18080 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
18081 | # no search path for DLLs. |
---|
18082 | hardcode_libdir_flag_spec_GCJ=' ' |
---|
18083 | allow_undefined_flag_GCJ=unsupported |
---|
18084 | # Tell ltmain to make .lib files, not .a files. |
---|
18085 | libext=lib |
---|
18086 | # Tell ltmain to make .dll files, not .so files. |
---|
18087 | shrext_cmds=".dll" |
---|
18088 | # FIXME: Setting linknames here is a bad hack. |
---|
18089 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
18090 | # The linker will automatically build a .lib file if we build a DLL. |
---|
18091 | old_archive_From_new_cmds_GCJ='true' |
---|
18092 | # FIXME: Should let the user specify the lib program. |
---|
18093 | old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' |
---|
18094 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
---|
18095 | enable_shared_with_static_runtimes_GCJ=yes |
---|
18096 | ;; |
---|
18097 | |
---|
18098 | darwin* | rhapsody*) |
---|
18099 | case $host_os in |
---|
18100 | rhapsody* | darwin1.[012]) |
---|
18101 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
---|
18102 | ;; |
---|
18103 | *) # Darwin 1.3 on |
---|
18104 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
18105 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
18106 | else |
---|
18107 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
18108 | 10.[012]) |
---|
18109 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
18110 | ;; |
---|
18111 | 10.*) |
---|
18112 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
---|
18113 | ;; |
---|
18114 | esac |
---|
18115 | fi |
---|
18116 | ;; |
---|
18117 | esac |
---|
18118 | archive_cmds_need_lc_GCJ=no |
---|
18119 | hardcode_direct_GCJ=no |
---|
18120 | hardcode_automatic_GCJ=yes |
---|
18121 | hardcode_shlibpath_var_GCJ=unsupported |
---|
18122 | whole_archive_flag_spec_GCJ='' |
---|
18123 | link_all_deplibs_GCJ=yes |
---|
18124 | if test "$GCC" = yes ; then |
---|
18125 | output_verbose_link_cmd='echo' |
---|
18126 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
18127 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
18128 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
18129 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
18130 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
18131 | else |
---|
18132 | case $cc_basename in |
---|
18133 | xlc*) |
---|
18134 | output_verbose_link_cmd='echo' |
---|
18135 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
---|
18136 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
18137 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
18138 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
18139 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
18140 | ;; |
---|
18141 | *) |
---|
18142 | ld_shlibs_GCJ=no |
---|
18143 | ;; |
---|
18144 | esac |
---|
18145 | fi |
---|
18146 | ;; |
---|
18147 | |
---|
18148 | dgux*) |
---|
18149 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18150 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
18151 | hardcode_shlibpath_var_GCJ=no |
---|
18152 | ;; |
---|
18153 | |
---|
18154 | freebsd1*) |
---|
18155 | ld_shlibs_GCJ=no |
---|
18156 | ;; |
---|
18157 | |
---|
18158 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
18159 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
18160 | # does not break anything, and helps significantly (at the cost of a little |
---|
18161 | # extra space). |
---|
18162 | freebsd2.2*) |
---|
18163 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
18164 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
18165 | hardcode_direct_GCJ=yes |
---|
18166 | hardcode_shlibpath_var_GCJ=no |
---|
18167 | ;; |
---|
18168 | |
---|
18169 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
18170 | freebsd2*) |
---|
18171 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
18172 | hardcode_direct_GCJ=yes |
---|
18173 | hardcode_minus_L_GCJ=yes |
---|
18174 | hardcode_shlibpath_var_GCJ=no |
---|
18175 | ;; |
---|
18176 | |
---|
18177 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
18178 | freebsd* | dragonfly*) |
---|
18179 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
18180 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
18181 | hardcode_direct_GCJ=yes |
---|
18182 | hardcode_shlibpath_var_GCJ=no |
---|
18183 | ;; |
---|
18184 | |
---|
18185 | hpux9*) |
---|
18186 | if test "$GCC" = yes; then |
---|
18187 | archive_cmds_GCJ='$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' |
---|
18188 | else |
---|
18189 | archive_cmds_GCJ='$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' |
---|
18190 | fi |
---|
18191 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
18192 | hardcode_libdir_separator_GCJ=: |
---|
18193 | hardcode_direct_GCJ=yes |
---|
18194 | |
---|
18195 | # hardcode_minus_L: Not really in the search PATH, |
---|
18196 | # but as the default location of the library. |
---|
18197 | hardcode_minus_L_GCJ=yes |
---|
18198 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
18199 | ;; |
---|
18200 | |
---|
18201 | hpux10*) |
---|
18202 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
18203 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
18204 | else |
---|
18205 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
18206 | fi |
---|
18207 | if test "$with_gnu_ld" = no; then |
---|
18208 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
18209 | hardcode_libdir_separator_GCJ=: |
---|
18210 | |
---|
18211 | hardcode_direct_GCJ=yes |
---|
18212 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
18213 | |
---|
18214 | # hardcode_minus_L: Not really in the search PATH, |
---|
18215 | # but as the default location of the library. |
---|
18216 | hardcode_minus_L_GCJ=yes |
---|
18217 | fi |
---|
18218 | ;; |
---|
18219 | |
---|
18220 | hpux11*) |
---|
18221 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
18222 | case $host_cpu in |
---|
18223 | hppa*64*) |
---|
18224 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18225 | ;; |
---|
18226 | ia64*) |
---|
18227 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
18228 | ;; |
---|
18229 | *) |
---|
18230 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
18231 | ;; |
---|
18232 | esac |
---|
18233 | else |
---|
18234 | case $host_cpu in |
---|
18235 | hppa*64*) |
---|
18236 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18237 | ;; |
---|
18238 | ia64*) |
---|
18239 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
18240 | ;; |
---|
18241 | *) |
---|
18242 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
18243 | ;; |
---|
18244 | esac |
---|
18245 | fi |
---|
18246 | if test "$with_gnu_ld" = no; then |
---|
18247 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
18248 | hardcode_libdir_separator_GCJ=: |
---|
18249 | |
---|
18250 | case $host_cpu in |
---|
18251 | hppa*64*|ia64*) |
---|
18252 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
---|
18253 | hardcode_direct_GCJ=no |
---|
18254 | hardcode_shlibpath_var_GCJ=no |
---|
18255 | ;; |
---|
18256 | *) |
---|
18257 | hardcode_direct_GCJ=yes |
---|
18258 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
18259 | |
---|
18260 | # hardcode_minus_L: Not really in the search PATH, |
---|
18261 | # but as the default location of the library. |
---|
18262 | hardcode_minus_L_GCJ=yes |
---|
18263 | ;; |
---|
18264 | esac |
---|
18265 | fi |
---|
18266 | ;; |
---|
18267 | |
---|
18268 | irix5* | irix6* | nonstopux*) |
---|
18269 | if test "$GCC" = yes; then |
---|
18270 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
18271 | else |
---|
18272 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
18273 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
---|
18274 | fi |
---|
18275 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
18276 | hardcode_libdir_separator_GCJ=: |
---|
18277 | link_all_deplibs_GCJ=yes |
---|
18278 | ;; |
---|
18279 | |
---|
18280 | netbsd*) |
---|
18281 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
18282 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
18283 | else |
---|
18284 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
18285 | fi |
---|
18286 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
18287 | hardcode_direct_GCJ=yes |
---|
18288 | hardcode_shlibpath_var_GCJ=no |
---|
18289 | ;; |
---|
18290 | |
---|
18291 | newsos6) |
---|
18292 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18293 | hardcode_direct_GCJ=yes |
---|
18294 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
18295 | hardcode_libdir_separator_GCJ=: |
---|
18296 | hardcode_shlibpath_var_GCJ=no |
---|
18297 | ;; |
---|
18298 | |
---|
18299 | openbsd*) |
---|
18300 | if test -f /usr/libexec/ld.so; then |
---|
18301 | hardcode_direct_GCJ=yes |
---|
18302 | hardcode_shlibpath_var_GCJ=no |
---|
18303 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
18304 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
18305 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
18306 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
---|
18307 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
18308 | else |
---|
18309 | case $host_os in |
---|
18310 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
18311 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
18312 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
18313 | ;; |
---|
18314 | *) |
---|
18315 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
18316 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
---|
18317 | ;; |
---|
18318 | esac |
---|
18319 | fi |
---|
18320 | else |
---|
18321 | ld_shlibs_GCJ=no |
---|
18322 | fi |
---|
18323 | ;; |
---|
18324 | |
---|
18325 | os2*) |
---|
18326 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
18327 | hardcode_minus_L_GCJ=yes |
---|
18328 | allow_undefined_flag_GCJ=unsupported |
---|
18329 | archive_cmds_GCJ='$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' |
---|
18330 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
18331 | ;; |
---|
18332 | |
---|
18333 | osf3*) |
---|
18334 | if test "$GCC" = yes; then |
---|
18335 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
---|
18336 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
18337 | else |
---|
18338 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
---|
18339 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
18340 | fi |
---|
18341 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
18342 | hardcode_libdir_separator_GCJ=: |
---|
18343 | ;; |
---|
18344 | |
---|
18345 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
18346 | if test "$GCC" = yes; then |
---|
18347 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
---|
18348 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
18349 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
18350 | else |
---|
18351 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
---|
18352 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
18353 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
18354 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
---|
18355 | |
---|
18356 | # Both c and cxx compiler support -rpath directly |
---|
18357 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
---|
18358 | fi |
---|
18359 | hardcode_libdir_separator_GCJ=: |
---|
18360 | ;; |
---|
18361 | |
---|
18362 | solaris*) |
---|
18363 | no_undefined_flag_GCJ=' -z text' |
---|
18364 | if test "$GCC" = yes; then |
---|
18365 | wlarc='${wl}' |
---|
18366 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18367 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
18368 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
18369 | else |
---|
18370 | wlarc='' |
---|
18371 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18372 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
18373 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
18374 | fi |
---|
18375 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
18376 | hardcode_shlibpath_var_GCJ=no |
---|
18377 | case $host_os in |
---|
18378 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
18379 | *) |
---|
18380 | # The compiler driver will combine and reorder linker options, |
---|
18381 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
---|
18382 | # but is careful enough not to reorder. |
---|
18383 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
18384 | if test "$GCC" = yes; then |
---|
18385 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
---|
18386 | else |
---|
18387 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' |
---|
18388 | fi |
---|
18389 | ;; |
---|
18390 | esac |
---|
18391 | link_all_deplibs_GCJ=yes |
---|
18392 | ;; |
---|
18393 | |
---|
18394 | sunos4*) |
---|
18395 | if test "x$host_vendor" = xsequent; then |
---|
18396 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
18397 | # files that make .init and .fini sections work. |
---|
18398 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18399 | else |
---|
18400 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
18401 | fi |
---|
18402 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
18403 | hardcode_direct_GCJ=yes |
---|
18404 | hardcode_minus_L_GCJ=yes |
---|
18405 | hardcode_shlibpath_var_GCJ=no |
---|
18406 | ;; |
---|
18407 | |
---|
18408 | sysv4) |
---|
18409 | case $host_vendor in |
---|
18410 | sni) |
---|
18411 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18412 | hardcode_direct_GCJ=yes # is this really true??? |
---|
18413 | ;; |
---|
18414 | siemens) |
---|
18415 | ## LD is ld it makes a PLAMLIB |
---|
18416 | ## CC just makes a GrossModule. |
---|
18417 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
18418 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
---|
18419 | hardcode_direct_GCJ=no |
---|
18420 | ;; |
---|
18421 | motorola) |
---|
18422 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18423 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
---|
18424 | ;; |
---|
18425 | esac |
---|
18426 | runpath_var='LD_RUN_PATH' |
---|
18427 | hardcode_shlibpath_var_GCJ=no |
---|
18428 | ;; |
---|
18429 | |
---|
18430 | sysv4.3*) |
---|
18431 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18432 | hardcode_shlibpath_var_GCJ=no |
---|
18433 | export_dynamic_flag_spec_GCJ='-Bexport' |
---|
18434 | ;; |
---|
18435 | |
---|
18436 | sysv4*MP*) |
---|
18437 | if test -d /usr/nec; then |
---|
18438 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18439 | hardcode_shlibpath_var_GCJ=no |
---|
18440 | runpath_var=LD_RUN_PATH |
---|
18441 | hardcode_runpath_var=yes |
---|
18442 | ld_shlibs_GCJ=yes |
---|
18443 | fi |
---|
18444 | ;; |
---|
18445 | |
---|
18446 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
---|
18447 | no_undefined_flag_GCJ='${wl}-z,text' |
---|
18448 | archive_cmds_need_lc_GCJ=no |
---|
18449 | hardcode_shlibpath_var_GCJ=no |
---|
18450 | runpath_var='LD_RUN_PATH' |
---|
18451 | |
---|
18452 | if test "$GCC" = yes; then |
---|
18453 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18454 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18455 | else |
---|
18456 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18457 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18458 | fi |
---|
18459 | ;; |
---|
18460 | |
---|
18461 | sysv5* | sco3.2v5* | sco5v6*) |
---|
18462 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
18463 | # link with -lc, and that would cause any symbols used from libc to |
---|
18464 | # always be unresolved, which means just about no library would |
---|
18465 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
18466 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
18467 | # as -z defs. |
---|
18468 | no_undefined_flag_GCJ='${wl}-z,text' |
---|
18469 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
---|
18470 | archive_cmds_need_lc_GCJ=no |
---|
18471 | hardcode_shlibpath_var_GCJ=no |
---|
18472 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
18473 | hardcode_libdir_separator_GCJ=':' |
---|
18474 | link_all_deplibs_GCJ=yes |
---|
18475 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
---|
18476 | runpath_var='LD_RUN_PATH' |
---|
18477 | |
---|
18478 | if test "$GCC" = yes; then |
---|
18479 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18480 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18481 | else |
---|
18482 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18483 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18484 | fi |
---|
18485 | ;; |
---|
18486 | |
---|
18487 | uts4*) |
---|
18488 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18489 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
18490 | hardcode_shlibpath_var_GCJ=no |
---|
18491 | ;; |
---|
18492 | |
---|
18493 | *) |
---|
18494 | ld_shlibs_GCJ=no |
---|
18495 | ;; |
---|
18496 | esac |
---|
18497 | fi |
---|
18498 | |
---|
18499 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
---|
18500 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
---|
18501 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
---|
18502 | |
---|
18503 | # |
---|
18504 | # Do we need to explicitly link libc? |
---|
18505 | # |
---|
18506 | case "x$archive_cmds_need_lc_GCJ" in |
---|
18507 | x|xyes) |
---|
18508 | # Assume -lc should be added |
---|
18509 | archive_cmds_need_lc_GCJ=yes |
---|
18510 | |
---|
18511 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
18512 | case $archive_cmds_GCJ in |
---|
18513 | *'~'*) |
---|
18514 | # FIXME: we may have to deal with multi-command sequences. |
---|
18515 | ;; |
---|
18516 | '$CC '*) |
---|
18517 | # Test whether the compiler implicitly links with -lc since on some |
---|
18518 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
18519 | # to ld, don't add -lc before -lgcc. |
---|
18520 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
18521 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
---|
18522 | $rm conftest* |
---|
18523 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
18524 | |
---|
18525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
18526 | (eval $ac_compile) 2>&5 |
---|
18527 | ac_status=$? |
---|
18528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18529 | (exit $ac_status); } 2>conftest.err; then |
---|
18530 | soname=conftest |
---|
18531 | lib=conftest |
---|
18532 | libobjs=conftest.$ac_objext |
---|
18533 | deplibs= |
---|
18534 | wl=$lt_prog_compiler_wl_GCJ |
---|
18535 | pic_flag=$lt_prog_compiler_pic_GCJ |
---|
18536 | compiler_flags=-v |
---|
18537 | linker_flags=-v |
---|
18538 | verstring= |
---|
18539 | output_objdir=. |
---|
18540 | libname=conftest |
---|
18541 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
---|
18542 | allow_undefined_flag_GCJ= |
---|
18543 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
18544 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
18545 | ac_status=$? |
---|
18546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18547 | (exit $ac_status); } |
---|
18548 | then |
---|
18549 | archive_cmds_need_lc_GCJ=no |
---|
18550 | else |
---|
18551 | archive_cmds_need_lc_GCJ=yes |
---|
18552 | fi |
---|
18553 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
---|
18554 | else |
---|
18555 | cat conftest.err 1>&5 |
---|
18556 | fi |
---|
18557 | $rm conftest* |
---|
18558 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
---|
18559 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
---|
18560 | ;; |
---|
18561 | esac |
---|
18562 | fi |
---|
18563 | ;; |
---|
18564 | esac |
---|
18565 | |
---|
18566 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
18567 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
---|
18568 | library_names_spec= |
---|
18569 | libname_spec='lib$name' |
---|
18570 | soname_spec= |
---|
18571 | shrext_cmds=".so" |
---|
18572 | postinstall_cmds= |
---|
18573 | postuninstall_cmds= |
---|
18574 | finish_cmds= |
---|
18575 | finish_eval= |
---|
18576 | shlibpath_var= |
---|
18577 | shlibpath_overrides_runpath=unknown |
---|
18578 | version_type=none |
---|
18579 | dynamic_linker="$host_os ld.so" |
---|
18580 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
18581 | |
---|
18582 | need_lib_prefix=unknown |
---|
18583 | hardcode_into_libs=no |
---|
18584 | |
---|
18585 | # when you set need_version to no, make sure it does not cause -set_version |
---|
18586 | # flags to be left without arguments |
---|
18587 | need_version=unknown |
---|
18588 | |
---|
18589 | case $host_os in |
---|
18590 | aix3*) |
---|
18591 | version_type=linux |
---|
18592 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
18593 | shlibpath_var=LIBPATH |
---|
18594 | |
---|
18595 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
18596 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18597 | ;; |
---|
18598 | |
---|
18599 | aix4* | aix5*) |
---|
18600 | version_type=linux |
---|
18601 | need_lib_prefix=no |
---|
18602 | need_version=no |
---|
18603 | hardcode_into_libs=yes |
---|
18604 | if test "$host_cpu" = ia64; then |
---|
18605 | # AIX 5 supports IA64 |
---|
18606 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
18607 | shlibpath_var=LD_LIBRARY_PATH |
---|
18608 | else |
---|
18609 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
18610 | # for dependence libraries. The import file would start with |
---|
18611 | # the line `#! .'. This would cause the generated library to |
---|
18612 | # depend on `.', always an invalid library. This was fixed in |
---|
18613 | # development snapshots of GCC prior to 3.0. |
---|
18614 | case $host_os in |
---|
18615 | aix4 | aix4.[01] | aix4.[01].*) |
---|
18616 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
18617 | echo ' yes ' |
---|
18618 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
18619 | : |
---|
18620 | else |
---|
18621 | can_build_shared=no |
---|
18622 | fi |
---|
18623 | ;; |
---|
18624 | esac |
---|
18625 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
18626 | # soname into executable. Probably we can add versioning support to |
---|
18627 | # collect2, so additional links can be useful in future. |
---|
18628 | if test "$aix_use_runtimelinking" = yes; then |
---|
18629 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
18630 | # instead of lib<name>.a to let people know that these are not |
---|
18631 | # typical AIX shared libraries. |
---|
18632 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18633 | else |
---|
18634 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
18635 | # and later when we are not doing run time linking. |
---|
18636 | library_names_spec='${libname}${release}.a $libname.a' |
---|
18637 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18638 | fi |
---|
18639 | shlibpath_var=LIBPATH |
---|
18640 | fi |
---|
18641 | ;; |
---|
18642 | |
---|
18643 | amigaos*) |
---|
18644 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
18645 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
18646 | 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' |
---|
18647 | ;; |
---|
18648 | |
---|
18649 | beos*) |
---|
18650 | library_names_spec='${libname}${shared_ext}' |
---|
18651 | dynamic_linker="$host_os ld.so" |
---|
18652 | shlibpath_var=LIBRARY_PATH |
---|
18653 | ;; |
---|
18654 | |
---|
18655 | bsdi[45]*) |
---|
18656 | version_type=linux |
---|
18657 | need_version=no |
---|
18658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18659 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18660 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
18661 | shlibpath_var=LD_LIBRARY_PATH |
---|
18662 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
18663 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
18664 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
18665 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
18666 | # libtool to hard-code these into programs |
---|
18667 | ;; |
---|
18668 | |
---|
18669 | cygwin* | mingw* | pw32*) |
---|
18670 | version_type=windows |
---|
18671 | shrext_cmds=".dll" |
---|
18672 | need_version=no |
---|
18673 | need_lib_prefix=no |
---|
18674 | |
---|
18675 | case $GCC,$host_os in |
---|
18676 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
18677 | library_names_spec='$libname.dll.a' |
---|
18678 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
18679 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
18680 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
18681 | dldir=$destdir/`dirname \$dlpath`~ |
---|
18682 | test -d \$dldir || mkdir -p \$dldir~ |
---|
18683 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
18684 | chmod a+x \$dldir/$dlname' |
---|
18685 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
18686 | dlpath=$dir/\$dldll~ |
---|
18687 | $rm \$dlpath' |
---|
18688 | shlibpath_overrides_runpath=yes |
---|
18689 | |
---|
18690 | case $host_os in |
---|
18691 | cygwin*) |
---|
18692 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
18693 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
18694 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
18695 | ;; |
---|
18696 | mingw*) |
---|
18697 | # MinGW DLLs use traditional 'lib' prefix |
---|
18698 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
18699 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
18700 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
18701 | # It is most probably a Windows format PATH printed by |
---|
18702 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
18703 | # path with ; separators, and with drive letters. We can handle the |
---|
18704 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
18705 | # especially as we might pass files found there to a mingw objdump, |
---|
18706 | # which wouldn't understand a cygwinified path. Ahh. |
---|
18707 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
18708 | else |
---|
18709 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
18710 | fi |
---|
18711 | ;; |
---|
18712 | pw32*) |
---|
18713 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
18714 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
18715 | ;; |
---|
18716 | esac |
---|
18717 | ;; |
---|
18718 | |
---|
18719 | *) |
---|
18720 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
18721 | ;; |
---|
18722 | esac |
---|
18723 | dynamic_linker='Win32 ld.exe' |
---|
18724 | # FIXME: first we should search . and the directory the executable is in |
---|
18725 | shlibpath_var=PATH |
---|
18726 | ;; |
---|
18727 | |
---|
18728 | darwin* | rhapsody*) |
---|
18729 | dynamic_linker="$host_os dyld" |
---|
18730 | version_type=darwin |
---|
18731 | need_lib_prefix=no |
---|
18732 | need_version=no |
---|
18733 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
18734 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
18735 | shlibpath_overrides_runpath=yes |
---|
18736 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
18737 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
18738 | |
---|
18739 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
18740 | ;; |
---|
18741 | |
---|
18742 | dgux*) |
---|
18743 | version_type=linux |
---|
18744 | need_lib_prefix=no |
---|
18745 | need_version=no |
---|
18746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
18747 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18748 | shlibpath_var=LD_LIBRARY_PATH |
---|
18749 | ;; |
---|
18750 | |
---|
18751 | freebsd1*) |
---|
18752 | dynamic_linker=no |
---|
18753 | ;; |
---|
18754 | |
---|
18755 | freebsd* | dragonfly*) |
---|
18756 | # DragonFly does not have aout. When/if they implement a new |
---|
18757 | # versioning mechanism, adjust this. |
---|
18758 | if test -x /usr/bin/objformat; then |
---|
18759 | objformat=`/usr/bin/objformat` |
---|
18760 | else |
---|
18761 | case $host_os in |
---|
18762 | freebsd[123]*) objformat=aout ;; |
---|
18763 | *) objformat=elf ;; |
---|
18764 | esac |
---|
18765 | fi |
---|
18766 | version_type=freebsd-$objformat |
---|
18767 | case $version_type in |
---|
18768 | freebsd-elf*) |
---|
18769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
18770 | need_version=no |
---|
18771 | need_lib_prefix=no |
---|
18772 | ;; |
---|
18773 | freebsd-*) |
---|
18774 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
18775 | need_version=yes |
---|
18776 | ;; |
---|
18777 | esac |
---|
18778 | shlibpath_var=LD_LIBRARY_PATH |
---|
18779 | case $host_os in |
---|
18780 | freebsd2*) |
---|
18781 | shlibpath_overrides_runpath=yes |
---|
18782 | ;; |
---|
18783 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
18784 | shlibpath_overrides_runpath=yes |
---|
18785 | hardcode_into_libs=yes |
---|
18786 | ;; |
---|
18787 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
18788 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
18789 | shlibpath_overrides_runpath=no |
---|
18790 | hardcode_into_libs=yes |
---|
18791 | ;; |
---|
18792 | *) # from 4.6 on, and DragonFly |
---|
18793 | shlibpath_overrides_runpath=yes |
---|
18794 | hardcode_into_libs=yes |
---|
18795 | ;; |
---|
18796 | esac |
---|
18797 | ;; |
---|
18798 | |
---|
18799 | gnu*) |
---|
18800 | version_type=linux |
---|
18801 | need_lib_prefix=no |
---|
18802 | need_version=no |
---|
18803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
18804 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18805 | shlibpath_var=LD_LIBRARY_PATH |
---|
18806 | hardcode_into_libs=yes |
---|
18807 | ;; |
---|
18808 | |
---|
18809 | hpux9* | hpux10* | hpux11*) |
---|
18810 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
18811 | # link against other versions. |
---|
18812 | version_type=sunos |
---|
18813 | need_lib_prefix=no |
---|
18814 | need_version=no |
---|
18815 | case $host_cpu in |
---|
18816 | ia64*) |
---|
18817 | shrext_cmds='.so' |
---|
18818 | hardcode_into_libs=yes |
---|
18819 | dynamic_linker="$host_os dld.so" |
---|
18820 | shlibpath_var=LD_LIBRARY_PATH |
---|
18821 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
18822 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18823 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18824 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
18825 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
18826 | else |
---|
18827 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
18828 | fi |
---|
18829 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
18830 | ;; |
---|
18831 | hppa*64*) |
---|
18832 | shrext_cmds='.sl' |
---|
18833 | hardcode_into_libs=yes |
---|
18834 | dynamic_linker="$host_os dld.sl" |
---|
18835 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
18836 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
18837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18838 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18839 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
18840 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
18841 | ;; |
---|
18842 | *) |
---|
18843 | shrext_cmds='.sl' |
---|
18844 | dynamic_linker="$host_os dld.sl" |
---|
18845 | shlibpath_var=SHLIB_PATH |
---|
18846 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
18847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18848 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18849 | ;; |
---|
18850 | esac |
---|
18851 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
18852 | postinstall_cmds='chmod 555 $lib' |
---|
18853 | ;; |
---|
18854 | |
---|
18855 | interix[3-9]*) |
---|
18856 | version_type=linux |
---|
18857 | need_lib_prefix=no |
---|
18858 | need_version=no |
---|
18859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
18860 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18861 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
18862 | shlibpath_var=LD_LIBRARY_PATH |
---|
18863 | shlibpath_overrides_runpath=no |
---|
18864 | hardcode_into_libs=yes |
---|
18865 | ;; |
---|
18866 | |
---|
18867 | irix5* | irix6* | nonstopux*) |
---|
18868 | case $host_os in |
---|
18869 | nonstopux*) version_type=nonstopux ;; |
---|
18870 | *) |
---|
18871 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
18872 | version_type=linux |
---|
18873 | else |
---|
18874 | version_type=irix |
---|
18875 | fi ;; |
---|
18876 | esac |
---|
18877 | need_lib_prefix=no |
---|
18878 | need_version=no |
---|
18879 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
18881 | case $host_os in |
---|
18882 | irix5* | nonstopux*) |
---|
18883 | libsuff= shlibsuff= |
---|
18884 | ;; |
---|
18885 | *) |
---|
18886 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
18887 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
18888 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
18889 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
18890 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
18891 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
18892 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
18893 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
18894 | esac |
---|
18895 | ;; |
---|
18896 | esac |
---|
18897 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
18898 | shlibpath_overrides_runpath=no |
---|
18899 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
18900 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
18901 | hardcode_into_libs=yes |
---|
18902 | ;; |
---|
18903 | |
---|
18904 | # No shared lib support for Linux oldld, aout, or coff. |
---|
18905 | linux*oldld* | linux*aout* | linux*coff*) |
---|
18906 | dynamic_linker=no |
---|
18907 | ;; |
---|
18908 | |
---|
18909 | # This must be Linux ELF. |
---|
18910 | linux* | k*bsd*-gnu) |
---|
18911 | version_type=linux |
---|
18912 | need_lib_prefix=no |
---|
18913 | need_version=no |
---|
18914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18915 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18916 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
18917 | shlibpath_var=LD_LIBRARY_PATH |
---|
18918 | shlibpath_overrides_runpath=no |
---|
18919 | # This implies no fast_install, which is unacceptable. |
---|
18920 | # Some rework will be needed to allow for fast_install |
---|
18921 | # before this can be enabled. |
---|
18922 | hardcode_into_libs=yes |
---|
18923 | |
---|
18924 | # Append ld.so.conf contents to the search path |
---|
18925 | if test -f /etc/ld.so.conf; then |
---|
18926 | 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' ' '` |
---|
18927 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
18928 | fi |
---|
18929 | |
---|
18930 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
18931 | # powerpc, because MkLinux only supported shared libraries with the |
---|
18932 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
18933 | # most powerpc-linux boxes support dynamic linking these days and |
---|
18934 | # people can always --disable-shared, the test was removed, and we |
---|
18935 | # assume the GNU/Linux dynamic linker is in use. |
---|
18936 | dynamic_linker='GNU/Linux ld.so' |
---|
18937 | ;; |
---|
18938 | |
---|
18939 | netbsd*) |
---|
18940 | version_type=sunos |
---|
18941 | need_lib_prefix=no |
---|
18942 | need_version=no |
---|
18943 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
18944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
18945 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
18946 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
18947 | else |
---|
18948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
18949 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18950 | dynamic_linker='NetBSD ld.elf_so' |
---|
18951 | fi |
---|
18952 | shlibpath_var=LD_LIBRARY_PATH |
---|
18953 | shlibpath_overrides_runpath=yes |
---|
18954 | hardcode_into_libs=yes |
---|
18955 | ;; |
---|
18956 | |
---|
18957 | newsos6) |
---|
18958 | version_type=linux |
---|
18959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18960 | shlibpath_var=LD_LIBRARY_PATH |
---|
18961 | shlibpath_overrides_runpath=yes |
---|
18962 | ;; |
---|
18963 | |
---|
18964 | nto-qnx*) |
---|
18965 | version_type=linux |
---|
18966 | need_lib_prefix=no |
---|
18967 | need_version=no |
---|
18968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18969 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18970 | shlibpath_var=LD_LIBRARY_PATH |
---|
18971 | shlibpath_overrides_runpath=yes |
---|
18972 | ;; |
---|
18973 | |
---|
18974 | openbsd*) |
---|
18975 | version_type=sunos |
---|
18976 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
18977 | need_lib_prefix=no |
---|
18978 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
18979 | case $host_os in |
---|
18980 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
18981 | *) need_version=no ;; |
---|
18982 | esac |
---|
18983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
18984 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
18985 | shlibpath_var=LD_LIBRARY_PATH |
---|
18986 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
18987 | case $host_os in |
---|
18988 | openbsd2.[89] | openbsd2.[89].*) |
---|
18989 | shlibpath_overrides_runpath=no |
---|
18990 | ;; |
---|
18991 | *) |
---|
18992 | shlibpath_overrides_runpath=yes |
---|
18993 | ;; |
---|
18994 | esac |
---|
18995 | else |
---|
18996 | shlibpath_overrides_runpath=yes |
---|
18997 | fi |
---|
18998 | ;; |
---|
18999 | |
---|
19000 | os2*) |
---|
19001 | libname_spec='$name' |
---|
19002 | shrext_cmds=".dll" |
---|
19003 | need_lib_prefix=no |
---|
19004 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
19005 | dynamic_linker='OS/2 ld.exe' |
---|
19006 | shlibpath_var=LIBPATH |
---|
19007 | ;; |
---|
19008 | |
---|
19009 | osf3* | osf4* | osf5*) |
---|
19010 | version_type=osf |
---|
19011 | need_lib_prefix=no |
---|
19012 | need_version=no |
---|
19013 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
19015 | shlibpath_var=LD_LIBRARY_PATH |
---|
19016 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
19017 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
19018 | ;; |
---|
19019 | |
---|
19020 | rdos*) |
---|
19021 | dynamic_linker=no |
---|
19022 | ;; |
---|
19023 | |
---|
19024 | solaris*) |
---|
19025 | version_type=linux |
---|
19026 | need_lib_prefix=no |
---|
19027 | need_version=no |
---|
19028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
19029 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19030 | shlibpath_var=LD_LIBRARY_PATH |
---|
19031 | shlibpath_overrides_runpath=yes |
---|
19032 | hardcode_into_libs=yes |
---|
19033 | # ldd complains unless libraries are executable |
---|
19034 | postinstall_cmds='chmod +x $lib' |
---|
19035 | ;; |
---|
19036 | |
---|
19037 | sunos4*) |
---|
19038 | version_type=sunos |
---|
19039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
19040 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
19041 | shlibpath_var=LD_LIBRARY_PATH |
---|
19042 | shlibpath_overrides_runpath=yes |
---|
19043 | if test "$with_gnu_ld" = yes; then |
---|
19044 | need_lib_prefix=no |
---|
19045 | fi |
---|
19046 | need_version=yes |
---|
19047 | ;; |
---|
19048 | |
---|
19049 | sysv4 | sysv4.3*) |
---|
19050 | version_type=linux |
---|
19051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
19052 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19053 | shlibpath_var=LD_LIBRARY_PATH |
---|
19054 | case $host_vendor in |
---|
19055 | sni) |
---|
19056 | shlibpath_overrides_runpath=no |
---|
19057 | need_lib_prefix=no |
---|
19058 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
19059 | runpath_var=LD_RUN_PATH |
---|
19060 | ;; |
---|
19061 | siemens) |
---|
19062 | need_lib_prefix=no |
---|
19063 | ;; |
---|
19064 | motorola) |
---|
19065 | need_lib_prefix=no |
---|
19066 | need_version=no |
---|
19067 | shlibpath_overrides_runpath=no |
---|
19068 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
19069 | ;; |
---|
19070 | esac |
---|
19071 | ;; |
---|
19072 | |
---|
19073 | sysv4*MP*) |
---|
19074 | if test -d /usr/nec ;then |
---|
19075 | version_type=linux |
---|
19076 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
19077 | soname_spec='$libname${shared_ext}.$major' |
---|
19078 | shlibpath_var=LD_LIBRARY_PATH |
---|
19079 | fi |
---|
19080 | ;; |
---|
19081 | |
---|
19082 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
19083 | version_type=freebsd-elf |
---|
19084 | need_lib_prefix=no |
---|
19085 | need_version=no |
---|
19086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
19087 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19088 | shlibpath_var=LD_LIBRARY_PATH |
---|
19089 | hardcode_into_libs=yes |
---|
19090 | if test "$with_gnu_ld" = yes; then |
---|
19091 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
19092 | shlibpath_overrides_runpath=no |
---|
19093 | else |
---|
19094 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
19095 | shlibpath_overrides_runpath=yes |
---|
19096 | case $host_os in |
---|
19097 | sco3.2v5*) |
---|
19098 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
19099 | ;; |
---|
19100 | esac |
---|
19101 | fi |
---|
19102 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
19103 | ;; |
---|
19104 | |
---|
19105 | uts4*) |
---|
19106 | version_type=linux |
---|
19107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
19108 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19109 | shlibpath_var=LD_LIBRARY_PATH |
---|
19110 | ;; |
---|
19111 | |
---|
19112 | *) |
---|
19113 | dynamic_linker=no |
---|
19114 | ;; |
---|
19115 | esac |
---|
19116 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
19117 | echo "${ECHO_T}$dynamic_linker" >&6; } |
---|
19118 | test "$dynamic_linker" = no && can_build_shared=no |
---|
19119 | |
---|
19120 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
19121 | if test "$GCC" = yes; then |
---|
19122 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
19123 | fi |
---|
19124 | |
---|
19125 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
19126 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
---|
19127 | hardcode_action_GCJ= |
---|
19128 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
---|
19129 | test -n "$runpath_var_GCJ" || \ |
---|
19130 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
---|
19131 | |
---|
19132 | # We can hardcode non-existant directories. |
---|
19133 | if test "$hardcode_direct_GCJ" != no && |
---|
19134 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
19135 | # have to relink, otherwise we might link with an installed library |
---|
19136 | # when we should be linking with a yet-to-be-installed one |
---|
19137 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
---|
19138 | test "$hardcode_minus_L_GCJ" != no; then |
---|
19139 | # Linking always hardcodes the temporary library directory. |
---|
19140 | hardcode_action_GCJ=relink |
---|
19141 | else |
---|
19142 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
19143 | hardcode_action_GCJ=immediate |
---|
19144 | fi |
---|
19145 | else |
---|
19146 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
19147 | # directories. |
---|
19148 | hardcode_action_GCJ=unsupported |
---|
19149 | fi |
---|
19150 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
---|
19151 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
---|
19152 | |
---|
19153 | if test "$hardcode_action_GCJ" = relink; then |
---|
19154 | # Fast installation is not supported |
---|
19155 | enable_fast_install=no |
---|
19156 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
19157 | test "$enable_shared" = no; then |
---|
19158 | # Fast installation is not necessary |
---|
19159 | enable_fast_install=needless |
---|
19160 | fi |
---|
19161 | |
---|
19162 | |
---|
19163 | # The else clause should only fire when bootstrapping the |
---|
19164 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
19165 | # with your package, and you will get complaints that there are |
---|
19166 | # no rules to generate ltmain.sh. |
---|
19167 | if test -f "$ltmain"; then |
---|
19168 | # See if we are running on zsh, and set the options which allow our commands through |
---|
19169 | # without removal of \ escapes. |
---|
19170 | if test -n "${ZSH_VERSION+set}" ; then |
---|
19171 | setopt NO_GLOB_SUBST |
---|
19172 | fi |
---|
19173 | # Now quote all the things that may contain metacharacters while being |
---|
19174 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
19175 | # variables and quote the copies for generation of the libtool script. |
---|
19176 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
---|
19177 | SED SHELL STRIP \ |
---|
19178 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
19179 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
19180 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
19181 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
19182 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
19183 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
19184 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
19185 | compiler_GCJ \ |
---|
19186 | CC_GCJ \ |
---|
19187 | LD_GCJ \ |
---|
19188 | lt_prog_compiler_wl_GCJ \ |
---|
19189 | lt_prog_compiler_pic_GCJ \ |
---|
19190 | lt_prog_compiler_static_GCJ \ |
---|
19191 | lt_prog_compiler_no_builtin_flag_GCJ \ |
---|
19192 | export_dynamic_flag_spec_GCJ \ |
---|
19193 | thread_safe_flag_spec_GCJ \ |
---|
19194 | whole_archive_flag_spec_GCJ \ |
---|
19195 | enable_shared_with_static_runtimes_GCJ \ |
---|
19196 | old_archive_cmds_GCJ \ |
---|
19197 | old_archive_from_new_cmds_GCJ \ |
---|
19198 | predep_objects_GCJ \ |
---|
19199 | postdep_objects_GCJ \ |
---|
19200 | predeps_GCJ \ |
---|
19201 | postdeps_GCJ \ |
---|
19202 | compiler_lib_search_path_GCJ \ |
---|
19203 | archive_cmds_GCJ \ |
---|
19204 | archive_expsym_cmds_GCJ \ |
---|
19205 | postinstall_cmds_GCJ \ |
---|
19206 | postuninstall_cmds_GCJ \ |
---|
19207 | old_archive_from_expsyms_cmds_GCJ \ |
---|
19208 | allow_undefined_flag_GCJ \ |
---|
19209 | no_undefined_flag_GCJ \ |
---|
19210 | export_symbols_cmds_GCJ \ |
---|
19211 | hardcode_libdir_flag_spec_GCJ \ |
---|
19212 | hardcode_libdir_flag_spec_ld_GCJ \ |
---|
19213 | hardcode_libdir_separator_GCJ \ |
---|
19214 | hardcode_automatic_GCJ \ |
---|
19215 | module_cmds_GCJ \ |
---|
19216 | module_expsym_cmds_GCJ \ |
---|
19217 | lt_cv_prog_compiler_c_o_GCJ \ |
---|
19218 | fix_srcfile_path_GCJ \ |
---|
19219 | exclude_expsyms_GCJ \ |
---|
19220 | include_expsyms_GCJ; do |
---|
19221 | |
---|
19222 | case $var in |
---|
19223 | old_archive_cmds_GCJ | \ |
---|
19224 | old_archive_from_new_cmds_GCJ | \ |
---|
19225 | archive_cmds_GCJ | \ |
---|
19226 | archive_expsym_cmds_GCJ | \ |
---|
19227 | module_cmds_GCJ | \ |
---|
19228 | module_expsym_cmds_GCJ | \ |
---|
19229 | old_archive_from_expsyms_cmds_GCJ | \ |
---|
19230 | export_symbols_cmds_GCJ | \ |
---|
19231 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
19232 | postinstall_cmds | postuninstall_cmds | \ |
---|
19233 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
19234 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
19235 | # Double-quote double-evaled strings. |
---|
19236 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
19237 | ;; |
---|
19238 | *) |
---|
19239 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
19240 | ;; |
---|
19241 | esac |
---|
19242 | done |
---|
19243 | |
---|
19244 | case $lt_echo in |
---|
19245 | *'\$0 --fallback-echo"') |
---|
19246 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
19247 | ;; |
---|
19248 | esac |
---|
19249 | |
---|
19250 | cfgfile="$ofile" |
---|
19251 | |
---|
19252 | cat <<__EOF__ >> "$cfgfile" |
---|
19253 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
19254 | |
---|
19255 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
19256 | |
---|
19257 | # Shell to use when invoking shell scripts. |
---|
19258 | SHELL=$lt_SHELL |
---|
19259 | |
---|
19260 | # Whether or not to build shared libraries. |
---|
19261 | build_libtool_libs=$enable_shared |
---|
19262 | |
---|
19263 | # Whether or not to build static libraries. |
---|
19264 | build_old_libs=$enable_static |
---|
19265 | |
---|
19266 | # Whether or not to add -lc for building shared libraries. |
---|
19267 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
---|
19268 | |
---|
19269 | # Whether or not to disallow shared libs when runtime libs are static |
---|
19270 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
---|
19271 | |
---|
19272 | # Whether or not to optimize for fast installation. |
---|
19273 | fast_install=$enable_fast_install |
---|
19274 | |
---|
19275 | # The host system. |
---|
19276 | host_alias=$host_alias |
---|
19277 | host=$host |
---|
19278 | host_os=$host_os |
---|
19279 | |
---|
19280 | # The build system. |
---|
19281 | build_alias=$build_alias |
---|
19282 | build=$build |
---|
19283 | build_os=$build_os |
---|
19284 | |
---|
19285 | # An echo program that does not interpret backslashes. |
---|
19286 | echo=$lt_echo |
---|
19287 | |
---|
19288 | # The archiver. |
---|
19289 | AR=$lt_AR |
---|
19290 | AR_FLAGS=$lt_AR_FLAGS |
---|
19291 | |
---|
19292 | # A C compiler. |
---|
19293 | LTCC=$lt_LTCC |
---|
19294 | |
---|
19295 | # LTCC compiler flags. |
---|
19296 | LTCFLAGS=$lt_LTCFLAGS |
---|
19297 | |
---|
19298 | # A language-specific compiler. |
---|
19299 | CC=$lt_compiler_GCJ |
---|
19300 | |
---|
19301 | # Is the compiler the GNU C compiler? |
---|
19302 | with_gcc=$GCC_GCJ |
---|
19303 | |
---|
19304 | # An ERE matcher. |
---|
19305 | EGREP=$lt_EGREP |
---|
19306 | |
---|
19307 | # The linker used to build libraries. |
---|
19308 | LD=$lt_LD_GCJ |
---|
19309 | |
---|
19310 | # Whether we need hard or soft links. |
---|
19311 | LN_S=$lt_LN_S |
---|
19312 | |
---|
19313 | # A BSD-compatible nm program. |
---|
19314 | NM=$lt_NM |
---|
19315 | |
---|
19316 | # A symbol stripping program |
---|
19317 | STRIP=$lt_STRIP |
---|
19318 | |
---|
19319 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
19320 | MAGIC_CMD=$MAGIC_CMD |
---|
19321 | |
---|
19322 | # Used on cygwin: DLL creation program. |
---|
19323 | DLLTOOL="$DLLTOOL" |
---|
19324 | |
---|
19325 | # Used on cygwin: object dumper. |
---|
19326 | OBJDUMP="$OBJDUMP" |
---|
19327 | |
---|
19328 | # Used on cygwin: assembler. |
---|
19329 | AS="$AS" |
---|
19330 | |
---|
19331 | # The name of the directory that contains temporary libtool files. |
---|
19332 | objdir=$objdir |
---|
19333 | |
---|
19334 | # How to create reloadable object files. |
---|
19335 | reload_flag=$lt_reload_flag |
---|
19336 | reload_cmds=$lt_reload_cmds |
---|
19337 | |
---|
19338 | # How to pass a linker flag through the compiler. |
---|
19339 | wl=$lt_lt_prog_compiler_wl_GCJ |
---|
19340 | |
---|
19341 | # Object file suffix (normally "o"). |
---|
19342 | objext="$ac_objext" |
---|
19343 | |
---|
19344 | # Old archive suffix (normally "a"). |
---|
19345 | libext="$libext" |
---|
19346 | |
---|
19347 | # Shared library suffix (normally ".so"). |
---|
19348 | shrext_cmds='$shrext_cmds' |
---|
19349 | |
---|
19350 | # Executable file suffix (normally ""). |
---|
19351 | exeext="$exeext" |
---|
19352 | |
---|
19353 | # Additional compiler flags for building library objects. |
---|
19354 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
---|
19355 | pic_mode=$pic_mode |
---|
19356 | |
---|
19357 | # What is the maximum length of a command? |
---|
19358 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
19359 | |
---|
19360 | # Does compiler simultaneously support -c and -o options? |
---|
19361 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
---|
19362 | |
---|
19363 | # Must we lock files when doing compilation? |
---|
19364 | need_locks=$lt_need_locks |
---|
19365 | |
---|
19366 | # Do we need the lib prefix for modules? |
---|
19367 | need_lib_prefix=$need_lib_prefix |
---|
19368 | |
---|
19369 | # Do we need a version for libraries? |
---|
19370 | need_version=$need_version |
---|
19371 | |
---|
19372 | # Whether dlopen is supported. |
---|
19373 | dlopen_support=$enable_dlopen |
---|
19374 | |
---|
19375 | # Whether dlopen of programs is supported. |
---|
19376 | dlopen_self=$enable_dlopen_self |
---|
19377 | |
---|
19378 | # Whether dlopen of statically linked programs is supported. |
---|
19379 | dlopen_self_static=$enable_dlopen_self_static |
---|
19380 | |
---|
19381 | # Compiler flag to prevent dynamic linking. |
---|
19382 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
---|
19383 | |
---|
19384 | # Compiler flag to turn off builtin functions. |
---|
19385 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
---|
19386 | |
---|
19387 | # Compiler flag to allow reflexive dlopens. |
---|
19388 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
---|
19389 | |
---|
19390 | # Compiler flag to generate shared objects directly from archives. |
---|
19391 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
---|
19392 | |
---|
19393 | # Compiler flag to generate thread-safe objects. |
---|
19394 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
---|
19395 | |
---|
19396 | # Library versioning type. |
---|
19397 | version_type=$version_type |
---|
19398 | |
---|
19399 | # Format of library name prefix. |
---|
19400 | libname_spec=$lt_libname_spec |
---|
19401 | |
---|
19402 | # List of archive names. First name is the real one, the rest are links. |
---|
19403 | # The last name is the one that the linker finds with -lNAME. |
---|
19404 | library_names_spec=$lt_library_names_spec |
---|
19405 | |
---|
19406 | # The coded name of the library, if different from the real name. |
---|
19407 | soname_spec=$lt_soname_spec |
---|
19408 | |
---|
19409 | # Commands used to build and install an old-style archive. |
---|
19410 | RANLIB=$lt_RANLIB |
---|
19411 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
---|
19412 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
19413 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
19414 | |
---|
19415 | # Create an old-style archive from a shared archive. |
---|
19416 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
---|
19417 | |
---|
19418 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
19419 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
---|
19420 | |
---|
19421 | # Commands used to build and install a shared archive. |
---|
19422 | archive_cmds=$lt_archive_cmds_GCJ |
---|
19423 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
---|
19424 | postinstall_cmds=$lt_postinstall_cmds |
---|
19425 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
19426 | |
---|
19427 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
19428 | module_cmds=$lt_module_cmds_GCJ |
---|
19429 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
---|
19430 | |
---|
19431 | # Commands to strip libraries. |
---|
19432 | old_striplib=$lt_old_striplib |
---|
19433 | striplib=$lt_striplib |
---|
19434 | |
---|
19435 | # Dependencies to place before the objects being linked to create a |
---|
19436 | # shared library. |
---|
19437 | predep_objects=$lt_predep_objects_GCJ |
---|
19438 | |
---|
19439 | # Dependencies to place after the objects being linked to create a |
---|
19440 | # shared library. |
---|
19441 | postdep_objects=$lt_postdep_objects_GCJ |
---|
19442 | |
---|
19443 | # Dependencies to place before the objects being linked to create a |
---|
19444 | # shared library. |
---|
19445 | predeps=$lt_predeps_GCJ |
---|
19446 | |
---|
19447 | # Dependencies to place after the objects being linked to create a |
---|
19448 | # shared library. |
---|
19449 | postdeps=$lt_postdeps_GCJ |
---|
19450 | |
---|
19451 | # The library search path used internally by the compiler when linking |
---|
19452 | # a shared library. |
---|
19453 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
---|
19454 | |
---|
19455 | # Method to check whether dependent libraries are shared objects. |
---|
19456 | deplibs_check_method=$lt_deplibs_check_method |
---|
19457 | |
---|
19458 | # Command to use when deplibs_check_method == file_magic. |
---|
19459 | file_magic_cmd=$lt_file_magic_cmd |
---|
19460 | |
---|
19461 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
19462 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
---|
19463 | |
---|
19464 | # Flag that forces no undefined symbols. |
---|
19465 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
---|
19466 | |
---|
19467 | # Commands used to finish a libtool library installation in a directory. |
---|
19468 | finish_cmds=$lt_finish_cmds |
---|
19469 | |
---|
19470 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
19471 | finish_eval=$lt_finish_eval |
---|
19472 | |
---|
19473 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
19474 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
19475 | |
---|
19476 | # Transform the output of nm in a proper C declaration |
---|
19477 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
19478 | |
---|
19479 | # Transform the output of nm in a C name address pair |
---|
19480 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
19481 | |
---|
19482 | # This is the shared library runtime path variable. |
---|
19483 | runpath_var=$runpath_var |
---|
19484 | |
---|
19485 | # This is the shared library path variable. |
---|
19486 | shlibpath_var=$shlibpath_var |
---|
19487 | |
---|
19488 | # Is shlibpath searched before the hard-coded library search path? |
---|
19489 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
19490 | |
---|
19491 | # How to hardcode a shared library path into an executable. |
---|
19492 | hardcode_action=$hardcode_action_GCJ |
---|
19493 | |
---|
19494 | # Whether we should hardcode library paths into libraries. |
---|
19495 | hardcode_into_libs=$hardcode_into_libs |
---|
19496 | |
---|
19497 | # Flag to hardcode \$libdir into a binary during linking. |
---|
19498 | # This must work even if \$libdir does not exist. |
---|
19499 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
---|
19500 | |
---|
19501 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
19502 | # a binary during linking. This must work even if \$libdir does |
---|
19503 | # not exist. |
---|
19504 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
---|
19505 | |
---|
19506 | # Whether we need a single -rpath flag with a separated argument. |
---|
19507 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
---|
19508 | |
---|
19509 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
19510 | # resulting binary. |
---|
19511 | hardcode_direct=$hardcode_direct_GCJ |
---|
19512 | |
---|
19513 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
19514 | # resulting binary. |
---|
19515 | hardcode_minus_L=$hardcode_minus_L_GCJ |
---|
19516 | |
---|
19517 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
19518 | # the resulting binary. |
---|
19519 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
---|
19520 | |
---|
19521 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
19522 | # and all subsequent libraries and executables linked against it. |
---|
19523 | hardcode_automatic=$hardcode_automatic_GCJ |
---|
19524 | |
---|
19525 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
19526 | # restored at relink time. |
---|
19527 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
19528 | |
---|
19529 | # Whether libtool must link a program against all its dependency libraries. |
---|
19530 | link_all_deplibs=$link_all_deplibs_GCJ |
---|
19531 | |
---|
19532 | # Compile-time system search path for libraries |
---|
19533 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
19534 | |
---|
19535 | # Run-time system search path for libraries |
---|
19536 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
19537 | |
---|
19538 | # Fix the shell variable \$srcfile for the compiler. |
---|
19539 | fix_srcfile_path=$lt_fix_srcfile_path |
---|
19540 | |
---|
19541 | # Set to yes if exported symbols are required. |
---|
19542 | always_export_symbols=$always_export_symbols_GCJ |
---|
19543 | |
---|
19544 | # The commands to list exported symbols. |
---|
19545 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
---|
19546 | |
---|
19547 | # The commands to extract the exported symbol list from a shared archive. |
---|
19548 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
19549 | |
---|
19550 | # Symbols that should not be listed in the preloaded symbols. |
---|
19551 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
---|
19552 | |
---|
19553 | # Symbols that must always be exported. |
---|
19554 | include_expsyms=$lt_include_expsyms_GCJ |
---|
19555 | |
---|
19556 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
19557 | |
---|
19558 | __EOF__ |
---|
19559 | |
---|
19560 | |
---|
19561 | else |
---|
19562 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
19563 | # `config.status --recheck' to rerun these tests and create the |
---|
19564 | # libtool script then. |
---|
19565 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
19566 | if test -f "$ltmain_in"; then |
---|
19567 | test -f Makefile && make "$ltmain" |
---|
19568 | fi |
---|
19569 | fi |
---|
19570 | |
---|
19571 | |
---|
19572 | ac_ext=c |
---|
19573 | ac_cpp='$CPP $CPPFLAGS' |
---|
19574 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
19575 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
19576 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
19577 | |
---|
19578 | CC="$lt_save_CC" |
---|
19579 | |
---|
19580 | else |
---|
19581 | tagname="" |
---|
19582 | fi |
---|
19583 | ;; |
---|
19584 | |
---|
19585 | RC) |
---|
19586 | |
---|
19587 | |
---|
19588 | # Source file extension for RC test sources. |
---|
19589 | ac_ext=rc |
---|
19590 | |
---|
19591 | # Object file extension for compiled RC test sources. |
---|
19592 | objext=o |
---|
19593 | objext_RC=$objext |
---|
19594 | |
---|
19595 | # Code to be used in simple compile tests |
---|
19596 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
---|
19597 | |
---|
19598 | # Code to be used in simple link tests |
---|
19599 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
---|
19600 | |
---|
19601 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
19602 | |
---|
19603 | # If no C compiler was specified, use CC. |
---|
19604 | LTCC=${LTCC-"$CC"} |
---|
19605 | |
---|
19606 | # If no C compiler flags were specified, use CFLAGS. |
---|
19607 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
19608 | |
---|
19609 | # Allow CC to be a program name with arguments. |
---|
19610 | compiler=$CC |
---|
19611 | |
---|
19612 | |
---|
19613 | # save warnings/boilerplate of simple test code |
---|
19614 | ac_outfile=conftest.$ac_objext |
---|
19615 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
19616 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
19617 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
19618 | $rm conftest* |
---|
19619 | |
---|
19620 | ac_outfile=conftest.$ac_objext |
---|
19621 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
19622 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
19623 | _lt_linker_boilerplate=`cat conftest.err` |
---|
19624 | $rm conftest* |
---|
19625 | |
---|
19626 | |
---|
19627 | # Allow CC to be a program name with arguments. |
---|
19628 | lt_save_CC="$CC" |
---|
19629 | CC=${RC-"windres"} |
---|
19630 | compiler=$CC |
---|
19631 | compiler_RC=$CC |
---|
19632 | for cc_temp in $compiler""; do |
---|
19633 | case $cc_temp in |
---|
19634 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
19635 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
19636 | \-*) ;; |
---|
19637 | *) break;; |
---|
19638 | esac |
---|
19639 | done |
---|
19640 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
19641 | |
---|
19642 | lt_cv_prog_compiler_c_o_RC=yes |
---|
19643 | |
---|
19644 | # The else clause should only fire when bootstrapping the |
---|
19645 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
19646 | # with your package, and you will get complaints that there are |
---|
19647 | # no rules to generate ltmain.sh. |
---|
19648 | if test -f "$ltmain"; then |
---|
19649 | # See if we are running on zsh, and set the options which allow our commands through |
---|
19650 | # without removal of \ escapes. |
---|
19651 | if test -n "${ZSH_VERSION+set}" ; then |
---|
19652 | setopt NO_GLOB_SUBST |
---|
19653 | fi |
---|
19654 | # Now quote all the things that may contain metacharacters while being |
---|
19655 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
19656 | # variables and quote the copies for generation of the libtool script. |
---|
19657 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
---|
19658 | SED SHELL STRIP \ |
---|
19659 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
19660 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
19661 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
19662 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
19663 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
19664 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
19665 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
19666 | compiler_RC \ |
---|
19667 | CC_RC \ |
---|
19668 | LD_RC \ |
---|
19669 | lt_prog_compiler_wl_RC \ |
---|
19670 | lt_prog_compiler_pic_RC \ |
---|
19671 | lt_prog_compiler_static_RC \ |
---|
19672 | lt_prog_compiler_no_builtin_flag_RC \ |
---|
19673 | export_dynamic_flag_spec_RC \ |
---|
19674 | thread_safe_flag_spec_RC \ |
---|
19675 | whole_archive_flag_spec_RC \ |
---|
19676 | enable_shared_with_static_runtimes_RC \ |
---|
19677 | old_archive_cmds_RC \ |
---|
19678 | old_archive_from_new_cmds_RC \ |
---|
19679 | predep_objects_RC \ |
---|
19680 | postdep_objects_RC \ |
---|
19681 | predeps_RC \ |
---|
19682 | postdeps_RC \ |
---|
19683 | compiler_lib_search_path_RC \ |
---|
19684 | archive_cmds_RC \ |
---|
19685 | archive_expsym_cmds_RC \ |
---|
19686 | postinstall_cmds_RC \ |
---|
19687 | postuninstall_cmds_RC \ |
---|
19688 | old_archive_from_expsyms_cmds_RC \ |
---|
19689 | allow_undefined_flag_RC \ |
---|
19690 | no_undefined_flag_RC \ |
---|
19691 | export_symbols_cmds_RC \ |
---|
19692 | hardcode_libdir_flag_spec_RC \ |
---|
19693 | hardcode_libdir_flag_spec_ld_RC \ |
---|
19694 | hardcode_libdir_separator_RC \ |
---|
19695 | hardcode_automatic_RC \ |
---|
19696 | module_cmds_RC \ |
---|
19697 | module_expsym_cmds_RC \ |
---|
19698 | lt_cv_prog_compiler_c_o_RC \ |
---|
19699 | fix_srcfile_path_RC \ |
---|
19700 | exclude_expsyms_RC \ |
---|
19701 | include_expsyms_RC; do |
---|
19702 | |
---|
19703 | case $var in |
---|
19704 | old_archive_cmds_RC | \ |
---|
19705 | old_archive_from_new_cmds_RC | \ |
---|
19706 | archive_cmds_RC | \ |
---|
19707 | archive_expsym_cmds_RC | \ |
---|
19708 | module_cmds_RC | \ |
---|
19709 | module_expsym_cmds_RC | \ |
---|
19710 | old_archive_from_expsyms_cmds_RC | \ |
---|
19711 | export_symbols_cmds_RC | \ |
---|
19712 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
19713 | postinstall_cmds | postuninstall_cmds | \ |
---|
19714 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
19715 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
19716 | # Double-quote double-evaled strings. |
---|
19717 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
19718 | ;; |
---|
19719 | *) |
---|
19720 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
19721 | ;; |
---|
19722 | esac |
---|
19723 | done |
---|
19724 | |
---|
19725 | case $lt_echo in |
---|
19726 | *'\$0 --fallback-echo"') |
---|
19727 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
19728 | ;; |
---|
19729 | esac |
---|
19730 | |
---|
19731 | cfgfile="$ofile" |
---|
19732 | |
---|
19733 | cat <<__EOF__ >> "$cfgfile" |
---|
19734 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
19735 | |
---|
19736 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
19737 | |
---|
19738 | # Shell to use when invoking shell scripts. |
---|
19739 | SHELL=$lt_SHELL |
---|
19740 | |
---|
19741 | # Whether or not to build shared libraries. |
---|
19742 | build_libtool_libs=$enable_shared |
---|
19743 | |
---|
19744 | # Whether or not to build static libraries. |
---|
19745 | build_old_libs=$enable_static |
---|
19746 | |
---|
19747 | # Whether or not to add -lc for building shared libraries. |
---|
19748 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
---|
19749 | |
---|
19750 | # Whether or not to disallow shared libs when runtime libs are static |
---|
19751 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
---|
19752 | |
---|
19753 | # Whether or not to optimize for fast installation. |
---|
19754 | fast_install=$enable_fast_install |
---|
19755 | |
---|
19756 | # The host system. |
---|
19757 | host_alias=$host_alias |
---|
19758 | host=$host |
---|
19759 | host_os=$host_os |
---|
19760 | |
---|
19761 | # The build system. |
---|
19762 | build_alias=$build_alias |
---|
19763 | build=$build |
---|
19764 | build_os=$build_os |
---|
19765 | |
---|
19766 | # An echo program that does not interpret backslashes. |
---|
19767 | echo=$lt_echo |
---|
19768 | |
---|
19769 | # The archiver. |
---|
19770 | AR=$lt_AR |
---|
19771 | AR_FLAGS=$lt_AR_FLAGS |
---|
19772 | |
---|
19773 | # A C compiler. |
---|
19774 | LTCC=$lt_LTCC |
---|
19775 | |
---|
19776 | # LTCC compiler flags. |
---|
19777 | LTCFLAGS=$lt_LTCFLAGS |
---|
19778 | |
---|
19779 | # A language-specific compiler. |
---|
19780 | CC=$lt_compiler_RC |
---|
19781 | |
---|
19782 | # Is the compiler the GNU C compiler? |
---|
19783 | with_gcc=$GCC_RC |
---|
19784 | |
---|
19785 | # An ERE matcher. |
---|
19786 | EGREP=$lt_EGREP |
---|
19787 | |
---|
19788 | # The linker used to build libraries. |
---|
19789 | LD=$lt_LD_RC |
---|
19790 | |
---|
19791 | # Whether we need hard or soft links. |
---|
19792 | LN_S=$lt_LN_S |
---|
19793 | |
---|
19794 | # A BSD-compatible nm program. |
---|
19795 | NM=$lt_NM |
---|
19796 | |
---|
19797 | # A symbol stripping program |
---|
19798 | STRIP=$lt_STRIP |
---|
19799 | |
---|
19800 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
19801 | MAGIC_CMD=$MAGIC_CMD |
---|
19802 | |
---|
19803 | # Used on cygwin: DLL creation program. |
---|
19804 | DLLTOOL="$DLLTOOL" |
---|
19805 | |
---|
19806 | # Used on cygwin: object dumper. |
---|
19807 | OBJDUMP="$OBJDUMP" |
---|
19808 | |
---|
19809 | # Used on cygwin: assembler. |
---|
19810 | AS="$AS" |
---|
19811 | |
---|
19812 | # The name of the directory that contains temporary libtool files. |
---|
19813 | objdir=$objdir |
---|
19814 | |
---|
19815 | # How to create reloadable object files. |
---|
19816 | reload_flag=$lt_reload_flag |
---|
19817 | reload_cmds=$lt_reload_cmds |
---|
19818 | |
---|
19819 | # How to pass a linker flag through the compiler. |
---|
19820 | wl=$lt_lt_prog_compiler_wl_RC |
---|
19821 | |
---|
19822 | # Object file suffix (normally "o"). |
---|
19823 | objext="$ac_objext" |
---|
19824 | |
---|
19825 | # Old archive suffix (normally "a"). |
---|
19826 | libext="$libext" |
---|
19827 | |
---|
19828 | # Shared library suffix (normally ".so"). |
---|
19829 | shrext_cmds='$shrext_cmds' |
---|
19830 | |
---|
19831 | # Executable file suffix (normally ""). |
---|
19832 | exeext="$exeext" |
---|
19833 | |
---|
19834 | # Additional compiler flags for building library objects. |
---|
19835 | pic_flag=$lt_lt_prog_compiler_pic_RC |
---|
19836 | pic_mode=$pic_mode |
---|
19837 | |
---|
19838 | # What is the maximum length of a command? |
---|
19839 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
19840 | |
---|
19841 | # Does compiler simultaneously support -c and -o options? |
---|
19842 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
---|
19843 | |
---|
19844 | # Must we lock files when doing compilation? |
---|
19845 | need_locks=$lt_need_locks |
---|
19846 | |
---|
19847 | # Do we need the lib prefix for modules? |
---|
19848 | need_lib_prefix=$need_lib_prefix |
---|
19849 | |
---|
19850 | # Do we need a version for libraries? |
---|
19851 | need_version=$need_version |
---|
19852 | |
---|
19853 | # Whether dlopen is supported. |
---|
19854 | dlopen_support=$enable_dlopen |
---|
19855 | |
---|
19856 | # Whether dlopen of programs is supported. |
---|
19857 | dlopen_self=$enable_dlopen_self |
---|
19858 | |
---|
19859 | # Whether dlopen of statically linked programs is supported. |
---|
19860 | dlopen_self_static=$enable_dlopen_self_static |
---|
19861 | |
---|
19862 | # Compiler flag to prevent dynamic linking. |
---|
19863 | link_static_flag=$lt_lt_prog_compiler_static_RC |
---|
19864 | |
---|
19865 | # Compiler flag to turn off builtin functions. |
---|
19866 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
---|
19867 | |
---|
19868 | # Compiler flag to allow reflexive dlopens. |
---|
19869 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
---|
19870 | |
---|
19871 | # Compiler flag to generate shared objects directly from archives. |
---|
19872 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
---|
19873 | |
---|
19874 | # Compiler flag to generate thread-safe objects. |
---|
19875 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
---|
19876 | |
---|
19877 | # Library versioning type. |
---|
19878 | version_type=$version_type |
---|
19879 | |
---|
19880 | # Format of library name prefix. |
---|
19881 | libname_spec=$lt_libname_spec |
---|
19882 | |
---|
19883 | # List of archive names. First name is the real one, the rest are links. |
---|
19884 | # The last name is the one that the linker finds with -lNAME. |
---|
19885 | library_names_spec=$lt_library_names_spec |
---|
19886 | |
---|
19887 | # The coded name of the library, if different from the real name. |
---|
19888 | soname_spec=$lt_soname_spec |
---|
19889 | |
---|
19890 | # Commands used to build and install an old-style archive. |
---|
19891 | RANLIB=$lt_RANLIB |
---|
19892 | old_archive_cmds=$lt_old_archive_cmds_RC |
---|
19893 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
19894 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
19895 | |
---|
19896 | # Create an old-style archive from a shared archive. |
---|
19897 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
---|
19898 | |
---|
19899 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
19900 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
---|
19901 | |
---|
19902 | # Commands used to build and install a shared archive. |
---|
19903 | archive_cmds=$lt_archive_cmds_RC |
---|
19904 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
---|
19905 | postinstall_cmds=$lt_postinstall_cmds |
---|
19906 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
19907 | |
---|
19908 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
19909 | module_cmds=$lt_module_cmds_RC |
---|
19910 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
---|
19911 | |
---|
19912 | # Commands to strip libraries. |
---|
19913 | old_striplib=$lt_old_striplib |
---|
19914 | striplib=$lt_striplib |
---|
19915 | |
---|
19916 | # Dependencies to place before the objects being linked to create a |
---|
19917 | # shared library. |
---|
19918 | predep_objects=$lt_predep_objects_RC |
---|
19919 | |
---|
19920 | # Dependencies to place after the objects being linked to create a |
---|
19921 | # shared library. |
---|
19922 | postdep_objects=$lt_postdep_objects_RC |
---|
19923 | |
---|
19924 | # Dependencies to place before the objects being linked to create a |
---|
19925 | # shared library. |
---|
19926 | predeps=$lt_predeps_RC |
---|
19927 | |
---|
19928 | # Dependencies to place after the objects being linked to create a |
---|
19929 | # shared library. |
---|
19930 | postdeps=$lt_postdeps_RC |
---|
19931 | |
---|
19932 | # The library search path used internally by the compiler when linking |
---|
19933 | # a shared library. |
---|
19934 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
---|
19935 | |
---|
19936 | # Method to check whether dependent libraries are shared objects. |
---|
19937 | deplibs_check_method=$lt_deplibs_check_method |
---|
19938 | |
---|
19939 | # Command to use when deplibs_check_method == file_magic. |
---|
19940 | file_magic_cmd=$lt_file_magic_cmd |
---|
19941 | |
---|
19942 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
19943 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
---|
19944 | |
---|
19945 | # Flag that forces no undefined symbols. |
---|
19946 | no_undefined_flag=$lt_no_undefined_flag_RC |
---|
19947 | |
---|
19948 | # Commands used to finish a libtool library installation in a directory. |
---|
19949 | finish_cmds=$lt_finish_cmds |
---|
19950 | |
---|
19951 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
19952 | finish_eval=$lt_finish_eval |
---|
19953 | |
---|
19954 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
19955 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
19956 | |
---|
19957 | # Transform the output of nm in a proper C declaration |
---|
19958 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
19959 | |
---|
19960 | # Transform the output of nm in a C name address pair |
---|
19961 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
19962 | |
---|
19963 | # This is the shared library runtime path variable. |
---|
19964 | runpath_var=$runpath_var |
---|
19965 | |
---|
19966 | # This is the shared library path variable. |
---|
19967 | shlibpath_var=$shlibpath_var |
---|
19968 | |
---|
19969 | # Is shlibpath searched before the hard-coded library search path? |
---|
19970 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
19971 | |
---|
19972 | # How to hardcode a shared library path into an executable. |
---|
19973 | hardcode_action=$hardcode_action_RC |
---|
19974 | |
---|
19975 | # Whether we should hardcode library paths into libraries. |
---|
19976 | hardcode_into_libs=$hardcode_into_libs |
---|
19977 | |
---|
19978 | # Flag to hardcode \$libdir into a binary during linking. |
---|
19979 | # This must work even if \$libdir does not exist. |
---|
19980 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
---|
19981 | |
---|
19982 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
19983 | # a binary during linking. This must work even if \$libdir does |
---|
19984 | # not exist. |
---|
19985 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
---|
19986 | |
---|
19987 | # Whether we need a single -rpath flag with a separated argument. |
---|
19988 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
---|
19989 | |
---|
19990 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
19991 | # resulting binary. |
---|
19992 | hardcode_direct=$hardcode_direct_RC |
---|
19993 | |
---|
19994 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
19995 | # resulting binary. |
---|
19996 | hardcode_minus_L=$hardcode_minus_L_RC |
---|
19997 | |
---|
19998 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
19999 | # the resulting binary. |
---|
20000 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
---|
20001 | |
---|
20002 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
20003 | # and all subsequent libraries and executables linked against it. |
---|
20004 | hardcode_automatic=$hardcode_automatic_RC |
---|
20005 | |
---|
20006 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
20007 | # restored at relink time. |
---|
20008 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
20009 | |
---|
20010 | # Whether libtool must link a program against all its dependency libraries. |
---|
20011 | link_all_deplibs=$link_all_deplibs_RC |
---|
20012 | |
---|
20013 | # Compile-time system search path for libraries |
---|
20014 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
20015 | |
---|
20016 | # Run-time system search path for libraries |
---|
20017 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
20018 | |
---|
20019 | # Fix the shell variable \$srcfile for the compiler. |
---|
20020 | fix_srcfile_path=$lt_fix_srcfile_path |
---|
20021 | |
---|
20022 | # Set to yes if exported symbols are required. |
---|
20023 | always_export_symbols=$always_export_symbols_RC |
---|
20024 | |
---|
20025 | # The commands to list exported symbols. |
---|
20026 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
---|
20027 | |
---|
20028 | # The commands to extract the exported symbol list from a shared archive. |
---|
20029 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
20030 | |
---|
20031 | # Symbols that should not be listed in the preloaded symbols. |
---|
20032 | exclude_expsyms=$lt_exclude_expsyms_RC |
---|
20033 | |
---|
20034 | # Symbols that must always be exported. |
---|
20035 | include_expsyms=$lt_include_expsyms_RC |
---|
20036 | |
---|
20037 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
20038 | |
---|
20039 | __EOF__ |
---|
20040 | |
---|
20041 | |
---|
20042 | else |
---|
20043 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
20044 | # `config.status --recheck' to rerun these tests and create the |
---|
20045 | # libtool script then. |
---|
20046 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
20047 | if test -f "$ltmain_in"; then |
---|
20048 | test -f Makefile && make "$ltmain" |
---|
20049 | fi |
---|
20050 | fi |
---|
20051 | |
---|
20052 | |
---|
20053 | ac_ext=c |
---|
20054 | ac_cpp='$CPP $CPPFLAGS' |
---|
20055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
20056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
20057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
20058 | |
---|
20059 | CC="$lt_save_CC" |
---|
20060 | |
---|
20061 | ;; |
---|
20062 | |
---|
20063 | *) |
---|
20064 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
---|
20065 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
---|
20066 | { (exit 1); exit 1; }; } |
---|
20067 | ;; |
---|
20068 | esac |
---|
20069 | |
---|
20070 | # Append the new tag name to the list of available tags. |
---|
20071 | if test -n "$tagname" ; then |
---|
20072 | available_tags="$available_tags $tagname" |
---|
20073 | fi |
---|
20074 | fi |
---|
20075 | done |
---|
20076 | IFS="$lt_save_ifs" |
---|
20077 | |
---|
20078 | # Now substitute the updated list of available tags. |
---|
20079 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
---|
20080 | mv "${ofile}T" "$ofile" |
---|
20081 | chmod +x "$ofile" |
---|
20082 | else |
---|
20083 | rm -f "${ofile}T" |
---|
20084 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
---|
20085 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
---|
20086 | { (exit 1); exit 1; }; } |
---|
20087 | fi |
---|
20088 | fi |
---|
20089 | |
---|
20090 | |
---|
20091 | |
---|
20092 | # This can be used to rebuild libtool when needed |
---|
20093 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
---|
20094 | |
---|
20095 | # Always use our own libtool. |
---|
20096 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
20097 | |
---|
20098 | # Prevent multiple expansion |
---|
20099 | |
---|
20100 | |
---|
20101 | |
---|
20102 | |
---|
20103 | |
---|
20104 | |
---|
20105 | |
---|
20106 | |
---|
20107 | |
---|
20108 | |
---|
20109 | |
---|
20110 | |
---|
20111 | |
---|
20112 | |
---|
20113 | |
---|
20114 | |
---|
20115 | |
---|
20116 | |
---|
20117 | |
---|
20118 | |
---|
20119 | ac_ext=cpp |
---|
20120 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
20121 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
20122 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
20123 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
20124 | |
---|
20125 | |
---|
20126 | |
---|
20127 | |
---|
20128 | archive_cmds_need_lc_CXX=no |
---|
20129 | allow_undefined_flag_CXX= |
---|
20130 | always_export_symbols_CXX=no |
---|
20131 | archive_expsym_cmds_CXX= |
---|
20132 | export_dynamic_flag_spec_CXX= |
---|
20133 | hardcode_direct_CXX=no |
---|
20134 | hardcode_libdir_flag_spec_CXX= |
---|
20135 | hardcode_libdir_flag_spec_ld_CXX= |
---|
20136 | hardcode_libdir_separator_CXX= |
---|
20137 | hardcode_minus_L_CXX=no |
---|
20138 | hardcode_shlibpath_var_CXX=unsupported |
---|
20139 | hardcode_automatic_CXX=no |
---|
20140 | module_cmds_CXX= |
---|
20141 | module_expsym_cmds_CXX= |
---|
20142 | link_all_deplibs_CXX=unknown |
---|
20143 | old_archive_cmds_CXX=$old_archive_cmds |
---|
20144 | no_undefined_flag_CXX= |
---|
20145 | whole_archive_flag_spec_CXX= |
---|
20146 | enable_shared_with_static_runtimes_CXX=no |
---|
20147 | |
---|
20148 | # Dependencies to place before and after the object being linked: |
---|
20149 | predep_objects_CXX= |
---|
20150 | postdep_objects_CXX= |
---|
20151 | predeps_CXX= |
---|
20152 | postdeps_CXX= |
---|
20153 | compiler_lib_search_path_CXX= |
---|
20154 | |
---|
20155 | # Source file extension for C++ test sources. |
---|
20156 | ac_ext=cpp |
---|
20157 | |
---|
20158 | # Object file extension for compiled C++ test sources. |
---|
20159 | objext=o |
---|
20160 | objext_CXX=$objext |
---|
20161 | |
---|
20162 | # Code to be used in simple compile tests |
---|
20163 | lt_simple_compile_test_code="int some_variable = 0;" |
---|
20164 | |
---|
20165 | # Code to be used in simple link tests |
---|
20166 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
---|
20167 | |
---|
20168 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
20169 | |
---|
20170 | # If no C compiler was specified, use CC. |
---|
20171 | LTCC=${LTCC-"$CC"} |
---|
20172 | |
---|
20173 | # If no C compiler flags were specified, use CFLAGS. |
---|
20174 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
20175 | |
---|
20176 | # Allow CC to be a program name with arguments. |
---|
20177 | compiler=$CC |
---|
20178 | |
---|
20179 | |
---|
20180 | # save warnings/boilerplate of simple test code |
---|
20181 | ac_outfile=conftest.$ac_objext |
---|
20182 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
20183 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
20184 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
20185 | $rm conftest* |
---|
20186 | |
---|
20187 | ac_outfile=conftest.$ac_objext |
---|
20188 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
20189 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
20190 | _lt_linker_boilerplate=`cat conftest.err` |
---|
20191 | $rm conftest* |
---|
20192 | |
---|
20193 | |
---|
20194 | # Allow CC to be a program name with arguments. |
---|
20195 | lt_save_CC=$CC |
---|
20196 | lt_save_LD=$LD |
---|
20197 | lt_save_GCC=$GCC |
---|
20198 | GCC=$GXX |
---|
20199 | lt_save_with_gnu_ld=$with_gnu_ld |
---|
20200 | lt_save_path_LD=$lt_cv_path_LD |
---|
20201 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
---|
20202 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
---|
20203 | else |
---|
20204 | $as_unset lt_cv_prog_gnu_ld |
---|
20205 | fi |
---|
20206 | if test -n "${lt_cv_path_LDCXX+set}"; then |
---|
20207 | lt_cv_path_LD=$lt_cv_path_LDCXX |
---|
20208 | else |
---|
20209 | $as_unset lt_cv_path_LD |
---|
20210 | fi |
---|
20211 | test -z "${LDCXX+set}" || LD=$LDCXX |
---|
20212 | CC=${CXX-"c++"} |
---|
20213 | compiler=$CC |
---|
20214 | compiler_CXX=$CC |
---|
20215 | for cc_temp in $compiler""; do |
---|
20216 | case $cc_temp in |
---|
20217 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
20218 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
20219 | \-*) ;; |
---|
20220 | *) break;; |
---|
20221 | esac |
---|
20222 | done |
---|
20223 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
20224 | |
---|
20225 | |
---|
20226 | # We don't want -fno-exception wen compiling C++ code, so set the |
---|
20227 | # no_builtin_flag separately |
---|
20228 | if test "$GXX" = yes; then |
---|
20229 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
---|
20230 | else |
---|
20231 | lt_prog_compiler_no_builtin_flag_CXX= |
---|
20232 | fi |
---|
20233 | |
---|
20234 | if test "$GXX" = yes; then |
---|
20235 | # Set up default GNU C++ configuration |
---|
20236 | |
---|
20237 | |
---|
20238 | # Check whether --with-gnu-ld was given. |
---|
20239 | if test "${with_gnu_ld+set}" = set; then |
---|
20240 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
---|
20241 | else |
---|
20242 | with_gnu_ld=no |
---|
20243 | fi |
---|
20244 | |
---|
20245 | ac_prog=ld |
---|
20246 | if test "$GCC" = yes; then |
---|
20247 | # Check if gcc -print-prog-name=ld gives a path. |
---|
20248 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
20249 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
---|
20250 | case $host in |
---|
20251 | *-*-mingw*) |
---|
20252 | # gcc leaves a trailing carriage return which upsets mingw |
---|
20253 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
20254 | *) |
---|
20255 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
20256 | esac |
---|
20257 | case $ac_prog in |
---|
20258 | # Accept absolute paths. |
---|
20259 | [\\/]* | ?:[\\/]*) |
---|
20260 | re_direlt='/[^/][^/]*/\.\./' |
---|
20261 | # Canonicalize the pathname of ld |
---|
20262 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
20263 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
20264 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
20265 | done |
---|
20266 | test -z "$LD" && LD="$ac_prog" |
---|
20267 | ;; |
---|
20268 | "") |
---|
20269 | # If it fails, then pretend we aren't using GCC. |
---|
20270 | ac_prog=ld |
---|
20271 | ;; |
---|
20272 | *) |
---|
20273 | # If it is relative, then search for the first ld in PATH. |
---|
20274 | with_gnu_ld=unknown |
---|
20275 | ;; |
---|
20276 | esac |
---|
20277 | elif test "$with_gnu_ld" = yes; then |
---|
20278 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
20279 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
---|
20280 | else |
---|
20281 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
20282 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
---|
20283 | fi |
---|
20284 | if test "${lt_cv_path_LD+set}" = set; then |
---|
20285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20286 | else |
---|
20287 | if test -z "$LD"; then |
---|
20288 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
20289 | for ac_dir in $PATH; do |
---|
20290 | IFS="$lt_save_ifs" |
---|
20291 | test -z "$ac_dir" && ac_dir=. |
---|
20292 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
20293 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
20294 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
20295 | # but apparently some variants of GNU ld only accept -v. |
---|
20296 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
20297 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
20298 | *GNU* | *'with BFD'*) |
---|
20299 | test "$with_gnu_ld" != no && break |
---|
20300 | ;; |
---|
20301 | *) |
---|
20302 | test "$with_gnu_ld" != yes && break |
---|
20303 | ;; |
---|
20304 | esac |
---|
20305 | fi |
---|
20306 | done |
---|
20307 | IFS="$lt_save_ifs" |
---|
20308 | else |
---|
20309 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
20310 | fi |
---|
20311 | fi |
---|
20312 | |
---|
20313 | LD="$lt_cv_path_LD" |
---|
20314 | if test -n "$LD"; then |
---|
20315 | { echo "$as_me:$LINENO: result: $LD" >&5 |
---|
20316 | echo "${ECHO_T}$LD" >&6; } |
---|
20317 | else |
---|
20318 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
20319 | echo "${ECHO_T}no" >&6; } |
---|
20320 | fi |
---|
20321 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
20322 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
20323 | { (exit 1); exit 1; }; } |
---|
20324 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
20325 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
---|
20326 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
20327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
20328 | else |
---|
20329 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
20330 | case `$LD -v 2>&1 </dev/null` in |
---|
20331 | *GNU* | *'with BFD'*) |
---|
20332 | lt_cv_prog_gnu_ld=yes |
---|
20333 | ;; |
---|
20334 | *) |
---|
20335 | lt_cv_prog_gnu_ld=no |
---|
20336 | ;; |
---|
20337 | esac |
---|
20338 | fi |
---|
20339 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
20340 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
---|
20341 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
20342 | |
---|
20343 | |
---|
20344 | |
---|
20345 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
---|
20346 | # archiving commands below assume that GNU ld is being used. |
---|
20347 | if test "$with_gnu_ld" = yes; then |
---|
20348 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
20349 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
20350 | |
---|
20351 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
20352 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
20353 | |
---|
20354 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
20355 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
---|
20356 | # investigate it a little bit more. (MM) |
---|
20357 | wlarc='${wl}' |
---|
20358 | |
---|
20359 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
20360 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
---|
20361 | grep 'no-whole-archive' > /dev/null; then |
---|
20362 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
20363 | else |
---|
20364 | whole_archive_flag_spec_CXX= |
---|
20365 | fi |
---|
20366 | else |
---|
20367 | with_gnu_ld=no |
---|
20368 | wlarc= |
---|
20369 | |
---|
20370 | # A generic and very simple default shared library creation |
---|
20371 | # command for GNU C++ for the case where it uses the native |
---|
20372 | # linker, instead of GNU ld. If possible, this setting should |
---|
20373 | # overridden to take advantage of the native linker features on |
---|
20374 | # the platform it is being used on. |
---|
20375 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
20376 | fi |
---|
20377 | |
---|
20378 | # Commands to make compiler produce verbose output that lists |
---|
20379 | # what "hidden" libraries, object files and flags are used when |
---|
20380 | # linking a shared library. |
---|
20381 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
20382 | |
---|
20383 | else |
---|
20384 | GXX=no |
---|
20385 | with_gnu_ld=no |
---|
20386 | wlarc= |
---|
20387 | fi |
---|
20388 | |
---|
20389 | # PORTME: fill in a description of your system's C++ link characteristics |
---|
20390 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
20391 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
20392 | ld_shlibs_CXX=yes |
---|
20393 | case $host_os in |
---|
20394 | aix3*) |
---|
20395 | # FIXME: insert proper C++ library support |
---|
20396 | ld_shlibs_CXX=no |
---|
20397 | ;; |
---|
20398 | aix4* | aix5*) |
---|
20399 | if test "$host_cpu" = ia64; then |
---|
20400 | # On IA64, the linker does run time linking by default, so we don't |
---|
20401 | # have to do anything special. |
---|
20402 | aix_use_runtimelinking=no |
---|
20403 | exp_sym_flag='-Bexport' |
---|
20404 | no_entry_flag="" |
---|
20405 | else |
---|
20406 | aix_use_runtimelinking=no |
---|
20407 | |
---|
20408 | # Test if we are trying to use run time linking or normal |
---|
20409 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
20410 | # need to do runtime linking. |
---|
20411 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
20412 | for ld_flag in $LDFLAGS; do |
---|
20413 | case $ld_flag in |
---|
20414 | *-brtl*) |
---|
20415 | aix_use_runtimelinking=yes |
---|
20416 | break |
---|
20417 | ;; |
---|
20418 | esac |
---|
20419 | done |
---|
20420 | ;; |
---|
20421 | esac |
---|
20422 | |
---|
20423 | exp_sym_flag='-bexport' |
---|
20424 | no_entry_flag='-bnoentry' |
---|
20425 | fi |
---|
20426 | |
---|
20427 | # When large executables or shared objects are built, AIX ld can |
---|
20428 | # have problems creating the table of contents. If linking a library |
---|
20429 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
20430 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
20431 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
20432 | |
---|
20433 | archive_cmds_CXX='' |
---|
20434 | hardcode_direct_CXX=yes |
---|
20435 | hardcode_libdir_separator_CXX=':' |
---|
20436 | link_all_deplibs_CXX=yes |
---|
20437 | |
---|
20438 | if test "$GXX" = yes; then |
---|
20439 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
20440 | # We only want to do this on AIX 4.2 and lower, the check |
---|
20441 | # below for broken collect2 doesn't work under 4.3+ |
---|
20442 | collect2name=`${CC} -print-prog-name=collect2` |
---|
20443 | if test -f "$collect2name" && \ |
---|
20444 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
20445 | then |
---|
20446 | # We have reworked collect2 |
---|
20447 | : |
---|
20448 | else |
---|
20449 | # We have old collect2 |
---|
20450 | hardcode_direct_CXX=unsupported |
---|
20451 | # It fails to find uninstalled libraries when the uninstalled |
---|
20452 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
20453 | # to unsupported forces relinking |
---|
20454 | hardcode_minus_L_CXX=yes |
---|
20455 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
20456 | hardcode_libdir_separator_CXX= |
---|
20457 | fi |
---|
20458 | ;; |
---|
20459 | esac |
---|
20460 | shared_flag='-shared' |
---|
20461 | if test "$aix_use_runtimelinking" = yes; then |
---|
20462 | shared_flag="$shared_flag "'${wl}-G' |
---|
20463 | fi |
---|
20464 | else |
---|
20465 | # not using gcc |
---|
20466 | if test "$host_cpu" = ia64; then |
---|
20467 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
20468 | # chokes on -Wl,-G. The following line is correct: |
---|
20469 | shared_flag='-G' |
---|
20470 | else |
---|
20471 | if test "$aix_use_runtimelinking" = yes; then |
---|
20472 | shared_flag='${wl}-G' |
---|
20473 | else |
---|
20474 | shared_flag='${wl}-bM:SRE' |
---|
20475 | fi |
---|
20476 | fi |
---|
20477 | fi |
---|
20478 | |
---|
20479 | # It seems that -bexpall does not export symbols beginning with |
---|
20480 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
20481 | always_export_symbols_CXX=yes |
---|
20482 | if test "$aix_use_runtimelinking" = yes; then |
---|
20483 | # Warning - without using the other runtime loading flags (-brtl), |
---|
20484 | # -berok will link without error, but may produce a broken library. |
---|
20485 | allow_undefined_flag_CXX='-berok' |
---|
20486 | # Determine the default libpath from the value encoded in an empty executable. |
---|
20487 | cat >conftest.$ac_ext <<_ACEOF |
---|
20488 | /* confdefs.h. */ |
---|
20489 | _ACEOF |
---|
20490 | cat confdefs.h >>conftest.$ac_ext |
---|
20491 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20492 | /* end confdefs.h. */ |
---|
20493 | |
---|
20494 | int |
---|
20495 | main () |
---|
20496 | { |
---|
20497 | |
---|
20498 | ; |
---|
20499 | return 0; |
---|
20500 | } |
---|
20501 | _ACEOF |
---|
20502 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20503 | if { (ac_try="$ac_link" |
---|
20504 | case "(($ac_try" in |
---|
20505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
20506 | *) ac_try_echo=$ac_try;; |
---|
20507 | esac |
---|
20508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
20509 | (eval "$ac_link") 2>conftest.er1 |
---|
20510 | ac_status=$? |
---|
20511 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20512 | rm -f conftest.er1 |
---|
20513 | cat conftest.err >&5 |
---|
20514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20515 | (exit $ac_status); } && { |
---|
20516 | test -z "$ac_cxx_werror_flag" || |
---|
20517 | test ! -s conftest.err |
---|
20518 | } && test -s conftest$ac_exeext && |
---|
20519 | $as_test_x conftest$ac_exeext; then |
---|
20520 | |
---|
20521 | lt_aix_libpath_sed=' |
---|
20522 | /Import File Strings/,/^$/ { |
---|
20523 | /^0/ { |
---|
20524 | s/^0 *\(.*\)$/\1/ |
---|
20525 | p |
---|
20526 | } |
---|
20527 | }' |
---|
20528 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
20529 | # Check for a 64-bit object if we didn't find anything. |
---|
20530 | if test -z "$aix_libpath"; then |
---|
20531 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
20532 | fi |
---|
20533 | else |
---|
20534 | echo "$as_me: failed program was:" >&5 |
---|
20535 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20536 | |
---|
20537 | |
---|
20538 | fi |
---|
20539 | |
---|
20540 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
20541 | conftest$ac_exeext conftest.$ac_ext |
---|
20542 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
20543 | |
---|
20544 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
20545 | |
---|
20546 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
20547 | else |
---|
20548 | if test "$host_cpu" = ia64; then |
---|
20549 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
---|
20550 | allow_undefined_flag_CXX="-z nodefs" |
---|
20551 | archive_expsym_cmds_CXX="\$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" |
---|
20552 | else |
---|
20553 | # Determine the default libpath from the value encoded in an empty executable. |
---|
20554 | cat >conftest.$ac_ext <<_ACEOF |
---|
20555 | /* confdefs.h. */ |
---|
20556 | _ACEOF |
---|
20557 | cat confdefs.h >>conftest.$ac_ext |
---|
20558 | cat >>conftest.$ac_ext <<_ACEOF |
---|
20559 | /* end confdefs.h. */ |
---|
20560 | |
---|
20561 | int |
---|
20562 | main () |
---|
20563 | { |
---|
20564 | |
---|
20565 | ; |
---|
20566 | return 0; |
---|
20567 | } |
---|
20568 | _ACEOF |
---|
20569 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
20570 | if { (ac_try="$ac_link" |
---|
20571 | case "(($ac_try" in |
---|
20572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
20573 | *) ac_try_echo=$ac_try;; |
---|
20574 | esac |
---|
20575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
20576 | (eval "$ac_link") 2>conftest.er1 |
---|
20577 | ac_status=$? |
---|
20578 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
20579 | rm -f conftest.er1 |
---|
20580 | cat conftest.err >&5 |
---|
20581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
20582 | (exit $ac_status); } && { |
---|
20583 | test -z "$ac_cxx_werror_flag" || |
---|
20584 | test ! -s conftest.err |
---|
20585 | } && test -s conftest$ac_exeext && |
---|
20586 | $as_test_x conftest$ac_exeext; then |
---|
20587 | |
---|
20588 | lt_aix_libpath_sed=' |
---|
20589 | /Import File Strings/,/^$/ { |
---|
20590 | /^0/ { |
---|
20591 | s/^0 *\(.*\)$/\1/ |
---|
20592 | p |
---|
20593 | } |
---|
20594 | }' |
---|
20595 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
20596 | # Check for a 64-bit object if we didn't find anything. |
---|
20597 | if test -z "$aix_libpath"; then |
---|
20598 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
20599 | fi |
---|
20600 | else |
---|
20601 | echo "$as_me: failed program was:" >&5 |
---|
20602 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
20603 | |
---|
20604 | |
---|
20605 | fi |
---|
20606 | |
---|
20607 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
20608 | conftest$ac_exeext conftest.$ac_ext |
---|
20609 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
20610 | |
---|
20611 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
20612 | # Warning - without using the other run time loading flags, |
---|
20613 | # -berok will link without error, but may produce a broken library. |
---|
20614 | no_undefined_flag_CXX=' ${wl}-bernotok' |
---|
20615 | allow_undefined_flag_CXX=' ${wl}-berok' |
---|
20616 | # Exported symbols can be pulled into shared objects from archives |
---|
20617 | whole_archive_flag_spec_CXX='$convenience' |
---|
20618 | archive_cmds_need_lc_CXX=yes |
---|
20619 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
20620 | archive_expsym_cmds_CXX="\$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' |
---|
20621 | fi |
---|
20622 | fi |
---|
20623 | ;; |
---|
20624 | |
---|
20625 | beos*) |
---|
20626 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
20627 | allow_undefined_flag_CXX=unsupported |
---|
20628 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
20629 | # support --undefined. This deserves some investigation. FIXME |
---|
20630 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
20631 | else |
---|
20632 | ld_shlibs_CXX=no |
---|
20633 | fi |
---|
20634 | ;; |
---|
20635 | |
---|
20636 | chorus*) |
---|
20637 | case $cc_basename in |
---|
20638 | *) |
---|
20639 | # FIXME: insert proper C++ library support |
---|
20640 | ld_shlibs_CXX=no |
---|
20641 | ;; |
---|
20642 | esac |
---|
20643 | ;; |
---|
20644 | |
---|
20645 | cygwin* | mingw* | pw32*) |
---|
20646 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
---|
20647 | # as there is no search path for DLLs. |
---|
20648 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
20649 | allow_undefined_flag_CXX=unsupported |
---|
20650 | always_export_symbols_CXX=no |
---|
20651 | enable_shared_with_static_runtimes_CXX=yes |
---|
20652 | |
---|
20653 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
20654 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
20655 | # If the export-symbols file already is a .def file (1st line |
---|
20656 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
20657 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
20658 | cp $export_symbols $output_objdir/$soname.def; |
---|
20659 | else |
---|
20660 | echo EXPORTS > $output_objdir/$soname.def; |
---|
20661 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
20662 | fi~ |
---|
20663 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
20664 | else |
---|
20665 | ld_shlibs_CXX=no |
---|
20666 | fi |
---|
20667 | ;; |
---|
20668 | darwin* | rhapsody*) |
---|
20669 | case $host_os in |
---|
20670 | rhapsody* | darwin1.[012]) |
---|
20671 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
---|
20672 | ;; |
---|
20673 | *) # Darwin 1.3 on |
---|
20674 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
20675 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
20676 | else |
---|
20677 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
20678 | 10.[012]) |
---|
20679 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
20680 | ;; |
---|
20681 | 10.*) |
---|
20682 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
---|
20683 | ;; |
---|
20684 | esac |
---|
20685 | fi |
---|
20686 | ;; |
---|
20687 | esac |
---|
20688 | archive_cmds_need_lc_CXX=no |
---|
20689 | hardcode_direct_CXX=no |
---|
20690 | hardcode_automatic_CXX=yes |
---|
20691 | hardcode_shlibpath_var_CXX=unsupported |
---|
20692 | whole_archive_flag_spec_CXX='' |
---|
20693 | link_all_deplibs_CXX=yes |
---|
20694 | |
---|
20695 | if test "$GXX" = yes ; then |
---|
20696 | lt_int_apple_cc_single_mod=no |
---|
20697 | output_verbose_link_cmd='echo' |
---|
20698 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
---|
20699 | lt_int_apple_cc_single_mod=yes |
---|
20700 | fi |
---|
20701 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
20702 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
20703 | else |
---|
20704 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
20705 | fi |
---|
20706 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
20707 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
20708 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
20709 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
20710 | else |
---|
20711 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
20712 | fi |
---|
20713 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
20714 | else |
---|
20715 | case $cc_basename in |
---|
20716 | xlc*) |
---|
20717 | output_verbose_link_cmd='echo' |
---|
20718 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
---|
20719 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
20720 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
20721 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
20722 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
20723 | ;; |
---|
20724 | *) |
---|
20725 | ld_shlibs_CXX=no |
---|
20726 | ;; |
---|
20727 | esac |
---|
20728 | fi |
---|
20729 | ;; |
---|
20730 | |
---|
20731 | dgux*) |
---|
20732 | case $cc_basename in |
---|
20733 | ec++*) |
---|
20734 | # FIXME: insert proper C++ library support |
---|
20735 | ld_shlibs_CXX=no |
---|
20736 | ;; |
---|
20737 | ghcx*) |
---|
20738 | # Green Hills C++ Compiler |
---|
20739 | # FIXME: insert proper C++ library support |
---|
20740 | ld_shlibs_CXX=no |
---|
20741 | ;; |
---|
20742 | *) |
---|
20743 | # FIXME: insert proper C++ library support |
---|
20744 | ld_shlibs_CXX=no |
---|
20745 | ;; |
---|
20746 | esac |
---|
20747 | ;; |
---|
20748 | freebsd[12]*) |
---|
20749 | # C++ shared libraries reported to be fairly broken before switch to ELF |
---|
20750 | ld_shlibs_CXX=no |
---|
20751 | ;; |
---|
20752 | freebsd-elf*) |
---|
20753 | archive_cmds_need_lc_CXX=no |
---|
20754 | ;; |
---|
20755 | freebsd* | dragonfly*) |
---|
20756 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
---|
20757 | # conventions |
---|
20758 | ld_shlibs_CXX=yes |
---|
20759 | ;; |
---|
20760 | gnu*) |
---|
20761 | ;; |
---|
20762 | hpux9*) |
---|
20763 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
20764 | hardcode_libdir_separator_CXX=: |
---|
20765 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
20766 | hardcode_direct_CXX=yes |
---|
20767 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
20768 | # but as the default |
---|
20769 | # location of the library. |
---|
20770 | |
---|
20771 | case $cc_basename in |
---|
20772 | CC*) |
---|
20773 | # FIXME: insert proper C++ library support |
---|
20774 | ld_shlibs_CXX=no |
---|
20775 | ;; |
---|
20776 | aCC*) |
---|
20777 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
---|
20778 | # Commands to make compiler produce verbose output that lists |
---|
20779 | # what "hidden" libraries, object files and flags are used when |
---|
20780 | # linking a shared library. |
---|
20781 | # |
---|
20782 | # There doesn't appear to be a way to prevent this compiler from |
---|
20783 | # explicitly linking system object files so we need to strip them |
---|
20784 | # from the output so that they don't get included in the library |
---|
20785 | # dependencies. |
---|
20786 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
20787 | ;; |
---|
20788 | *) |
---|
20789 | if test "$GXX" = yes; then |
---|
20790 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
---|
20791 | else |
---|
20792 | # FIXME: insert proper C++ library support |
---|
20793 | ld_shlibs_CXX=no |
---|
20794 | fi |
---|
20795 | ;; |
---|
20796 | esac |
---|
20797 | ;; |
---|
20798 | hpux10*|hpux11*) |
---|
20799 | if test $with_gnu_ld = no; then |
---|
20800 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
20801 | hardcode_libdir_separator_CXX=: |
---|
20802 | |
---|
20803 | case $host_cpu in |
---|
20804 | hppa*64*|ia64*) ;; |
---|
20805 | *) |
---|
20806 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
20807 | ;; |
---|
20808 | esac |
---|
20809 | fi |
---|
20810 | case $host_cpu in |
---|
20811 | hppa*64*|ia64*) |
---|
20812 | hardcode_direct_CXX=no |
---|
20813 | hardcode_shlibpath_var_CXX=no |
---|
20814 | ;; |
---|
20815 | *) |
---|
20816 | hardcode_direct_CXX=yes |
---|
20817 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
20818 | # but as the default |
---|
20819 | # location of the library. |
---|
20820 | ;; |
---|
20821 | esac |
---|
20822 | |
---|
20823 | case $cc_basename in |
---|
20824 | CC*) |
---|
20825 | # FIXME: insert proper C++ library support |
---|
20826 | ld_shlibs_CXX=no |
---|
20827 | ;; |
---|
20828 | aCC*) |
---|
20829 | case $host_cpu in |
---|
20830 | hppa*64*) |
---|
20831 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
20832 | ;; |
---|
20833 | ia64*) |
---|
20834 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
20835 | ;; |
---|
20836 | *) |
---|
20837 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
20838 | ;; |
---|
20839 | esac |
---|
20840 | # Commands to make compiler produce verbose output that lists |
---|
20841 | # what "hidden" libraries, object files and flags are used when |
---|
20842 | # linking a shared library. |
---|
20843 | # |
---|
20844 | # There doesn't appear to be a way to prevent this compiler from |
---|
20845 | # explicitly linking system object files so we need to strip them |
---|
20846 | # from the output so that they don't get included in the library |
---|
20847 | # dependencies. |
---|
20848 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
20849 | ;; |
---|
20850 | *) |
---|
20851 | if test "$GXX" = yes; then |
---|
20852 | if test $with_gnu_ld = no; then |
---|
20853 | case $host_cpu in |
---|
20854 | hppa*64*) |
---|
20855 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
20856 | ;; |
---|
20857 | ia64*) |
---|
20858 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
20859 | ;; |
---|
20860 | *) |
---|
20861 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
20862 | ;; |
---|
20863 | esac |
---|
20864 | fi |
---|
20865 | else |
---|
20866 | # FIXME: insert proper C++ library support |
---|
20867 | ld_shlibs_CXX=no |
---|
20868 | fi |
---|
20869 | ;; |
---|
20870 | esac |
---|
20871 | ;; |
---|
20872 | interix[3-9]*) |
---|
20873 | hardcode_direct_CXX=no |
---|
20874 | hardcode_shlibpath_var_CXX=no |
---|
20875 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
20876 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
20877 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
20878 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
20879 | # default) and relocated if they conflict, which is a slow very memory |
---|
20880 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
20881 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
20882 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
20883 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
20884 | archive_expsym_cmds_CXX='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' |
---|
20885 | ;; |
---|
20886 | irix5* | irix6*) |
---|
20887 | case $cc_basename in |
---|
20888 | CC*) |
---|
20889 | # SGI C++ |
---|
20890 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
20891 | |
---|
20892 | # Archives containing C++ object files must be created using |
---|
20893 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
---|
20894 | # necessary to make sure instantiated templates are included |
---|
20895 | # in the archive. |
---|
20896 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
---|
20897 | ;; |
---|
20898 | *) |
---|
20899 | if test "$GXX" = yes; then |
---|
20900 | if test "$with_gnu_ld" = no; then |
---|
20901 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
20902 | else |
---|
20903 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
---|
20904 | fi |
---|
20905 | fi |
---|
20906 | link_all_deplibs_CXX=yes |
---|
20907 | ;; |
---|
20908 | esac |
---|
20909 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
20910 | hardcode_libdir_separator_CXX=: |
---|
20911 | ;; |
---|
20912 | linux* | k*bsd*-gnu) |
---|
20913 | case $cc_basename in |
---|
20914 | KCC*) |
---|
20915 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
20916 | |
---|
20917 | # KCC will only create a shared library if the output file |
---|
20918 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
20919 | # to its proper name (with version) after linking. |
---|
20920 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
---|
20921 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
---|
20922 | # Commands to make compiler produce verbose output that lists |
---|
20923 | # what "hidden" libraries, object files and flags are used when |
---|
20924 | # linking a shared library. |
---|
20925 | # |
---|
20926 | # There doesn't appear to be a way to prevent this compiler from |
---|
20927 | # explicitly linking system object files so we need to strip them |
---|
20928 | # from the output so that they don't get included in the library |
---|
20929 | # dependencies. |
---|
20930 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
20931 | |
---|
20932 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
---|
20933 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
20934 | |
---|
20935 | # Archives containing C++ object files must be created using |
---|
20936 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
20937 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
20938 | ;; |
---|
20939 | icpc*) |
---|
20940 | # Intel C++ |
---|
20941 | with_gnu_ld=yes |
---|
20942 | # version 8.0 and above of icpc choke on multiply defined symbols |
---|
20943 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
---|
20944 | # earlier do not add the objects themselves. |
---|
20945 | case `$CC -V 2>&1` in |
---|
20946 | *"Version 7."*) |
---|
20947 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
20948 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
20949 | ;; |
---|
20950 | *) # Version 8.0 or newer |
---|
20951 | tmp_idyn= |
---|
20952 | case $host_cpu in |
---|
20953 | ia64*) tmp_idyn=' -i_dynamic';; |
---|
20954 | esac |
---|
20955 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
20956 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
20957 | ;; |
---|
20958 | esac |
---|
20959 | archive_cmds_need_lc_CXX=no |
---|
20960 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
20961 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
20962 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
---|
20963 | ;; |
---|
20964 | pgCC*) |
---|
20965 | # Portland Group C++ compiler |
---|
20966 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
---|
20967 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
---|
20968 | |
---|
20969 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
20970 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
20971 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
20972 | ;; |
---|
20973 | cxx*) |
---|
20974 | # Compaq C++ |
---|
20975 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
20976 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
---|
20977 | |
---|
20978 | runpath_var=LD_RUN_PATH |
---|
20979 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
20980 | hardcode_libdir_separator_CXX=: |
---|
20981 | |
---|
20982 | # Commands to make compiler produce verbose output that lists |
---|
20983 | # what "hidden" libraries, object files and flags are used when |
---|
20984 | # linking a shared library. |
---|
20985 | # |
---|
20986 | # There doesn't appear to be a way to prevent this compiler from |
---|
20987 | # explicitly linking system object files so we need to strip them |
---|
20988 | # from the output so that they don't get included in the library |
---|
20989 | # dependencies. |
---|
20990 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
20991 | ;; |
---|
20992 | *) |
---|
20993 | case `$CC -V 2>&1 | sed 5q` in |
---|
20994 | *Sun\ C*) |
---|
20995 | # Sun C++ 5.9 |
---|
20996 | no_undefined_flag_CXX=' -zdefs' |
---|
20997 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
20998 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
---|
20999 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
21000 | whole_archive_flag_spec_CXX='${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' |
---|
21001 | |
---|
21002 | # Not sure whether something based on |
---|
21003 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
---|
21004 | # would be better. |
---|
21005 | output_verbose_link_cmd='echo' |
---|
21006 | |
---|
21007 | # Archives containing C++ object files must be created using |
---|
21008 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
---|
21009 | # necessary to make sure instantiated templates are included |
---|
21010 | # in the archive. |
---|
21011 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
---|
21012 | ;; |
---|
21013 | esac |
---|
21014 | ;; |
---|
21015 | esac |
---|
21016 | ;; |
---|
21017 | lynxos*) |
---|
21018 | # FIXME: insert proper C++ library support |
---|
21019 | ld_shlibs_CXX=no |
---|
21020 | ;; |
---|
21021 | m88k*) |
---|
21022 | # FIXME: insert proper C++ library support |
---|
21023 | ld_shlibs_CXX=no |
---|
21024 | ;; |
---|
21025 | mvs*) |
---|
21026 | case $cc_basename in |
---|
21027 | cxx*) |
---|
21028 | # FIXME: insert proper C++ library support |
---|
21029 | ld_shlibs_CXX=no |
---|
21030 | ;; |
---|
21031 | *) |
---|
21032 | # FIXME: insert proper C++ library support |
---|
21033 | ld_shlibs_CXX=no |
---|
21034 | ;; |
---|
21035 | esac |
---|
21036 | ;; |
---|
21037 | netbsd*) |
---|
21038 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
21039 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
---|
21040 | wlarc= |
---|
21041 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
21042 | hardcode_direct_CXX=yes |
---|
21043 | hardcode_shlibpath_var_CXX=no |
---|
21044 | fi |
---|
21045 | # Workaround some broken pre-1.5 toolchains |
---|
21046 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
---|
21047 | ;; |
---|
21048 | openbsd2*) |
---|
21049 | # C++ shared libraries are fairly broken |
---|
21050 | ld_shlibs_CXX=no |
---|
21051 | ;; |
---|
21052 | openbsd*) |
---|
21053 | if test -f /usr/libexec/ld.so; then |
---|
21054 | hardcode_direct_CXX=yes |
---|
21055 | hardcode_shlibpath_var_CXX=no |
---|
21056 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
21057 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
21058 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
21059 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
---|
21060 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
21061 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
21062 | fi |
---|
21063 | output_verbose_link_cmd='echo' |
---|
21064 | else |
---|
21065 | ld_shlibs_CXX=no |
---|
21066 | fi |
---|
21067 | ;; |
---|
21068 | osf3*) |
---|
21069 | case $cc_basename in |
---|
21070 | KCC*) |
---|
21071 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
21072 | |
---|
21073 | # KCC will only create a shared library if the output file |
---|
21074 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
21075 | # to its proper name (with version) after linking. |
---|
21076 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
---|
21077 | |
---|
21078 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
21079 | hardcode_libdir_separator_CXX=: |
---|
21080 | |
---|
21081 | # Archives containing C++ object files must be created using |
---|
21082 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
21083 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
21084 | |
---|
21085 | ;; |
---|
21086 | RCC*) |
---|
21087 | # Rational C++ 2.4.1 |
---|
21088 | # FIXME: insert proper C++ library support |
---|
21089 | ld_shlibs_CXX=no |
---|
21090 | ;; |
---|
21091 | cxx*) |
---|
21092 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
21093 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
21094 | |
---|
21095 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
21096 | hardcode_libdir_separator_CXX=: |
---|
21097 | |
---|
21098 | # Commands to make compiler produce verbose output that lists |
---|
21099 | # what "hidden" libraries, object files and flags are used when |
---|
21100 | # linking a shared library. |
---|
21101 | # |
---|
21102 | # There doesn't appear to be a way to prevent this compiler from |
---|
21103 | # explicitly linking system object files so we need to strip them |
---|
21104 | # from the output so that they don't get included in the library |
---|
21105 | # dependencies. |
---|
21106 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
21107 | ;; |
---|
21108 | *) |
---|
21109 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
21110 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
21111 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
21112 | |
---|
21113 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
21114 | hardcode_libdir_separator_CXX=: |
---|
21115 | |
---|
21116 | # Commands to make compiler produce verbose output that lists |
---|
21117 | # what "hidden" libraries, object files and flags are used when |
---|
21118 | # linking a shared library. |
---|
21119 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
21120 | |
---|
21121 | else |
---|
21122 | # FIXME: insert proper C++ library support |
---|
21123 | ld_shlibs_CXX=no |
---|
21124 | fi |
---|
21125 | ;; |
---|
21126 | esac |
---|
21127 | ;; |
---|
21128 | osf4* | osf5*) |
---|
21129 | case $cc_basename in |
---|
21130 | KCC*) |
---|
21131 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
21132 | |
---|
21133 | # KCC will only create a shared library if the output file |
---|
21134 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
21135 | # to its proper name (with version) after linking. |
---|
21136 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
---|
21137 | |
---|
21138 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
21139 | hardcode_libdir_separator_CXX=: |
---|
21140 | |
---|
21141 | # Archives containing C++ object files must be created using |
---|
21142 | # the KAI C++ compiler. |
---|
21143 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
---|
21144 | ;; |
---|
21145 | RCC*) |
---|
21146 | # Rational C++ 2.4.1 |
---|
21147 | # FIXME: insert proper C++ library support |
---|
21148 | ld_shlibs_CXX=no |
---|
21149 | ;; |
---|
21150 | cxx*) |
---|
21151 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
---|
21152 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
21153 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
---|
21154 | echo "-hidden">> $lib.exp~ |
---|
21155 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
---|
21156 | $rm $lib.exp' |
---|
21157 | |
---|
21158 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
21159 | hardcode_libdir_separator_CXX=: |
---|
21160 | |
---|
21161 | # Commands to make compiler produce verbose output that lists |
---|
21162 | # what "hidden" libraries, object files and flags are used when |
---|
21163 | # linking a shared library. |
---|
21164 | # |
---|
21165 | # There doesn't appear to be a way to prevent this compiler from |
---|
21166 | # explicitly linking system object files so we need to strip them |
---|
21167 | # from the output so that they don't get included in the library |
---|
21168 | # dependencies. |
---|
21169 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
---|
21170 | ;; |
---|
21171 | *) |
---|
21172 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
21173 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
21174 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
21175 | |
---|
21176 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
21177 | hardcode_libdir_separator_CXX=: |
---|
21178 | |
---|
21179 | # Commands to make compiler produce verbose output that lists |
---|
21180 | # what "hidden" libraries, object files and flags are used when |
---|
21181 | # linking a shared library. |
---|
21182 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
21183 | |
---|
21184 | else |
---|
21185 | # FIXME: insert proper C++ library support |
---|
21186 | ld_shlibs_CXX=no |
---|
21187 | fi |
---|
21188 | ;; |
---|
21189 | esac |
---|
21190 | ;; |
---|
21191 | psos*) |
---|
21192 | # FIXME: insert proper C++ library support |
---|
21193 | ld_shlibs_CXX=no |
---|
21194 | ;; |
---|
21195 | sunos4*) |
---|
21196 | case $cc_basename in |
---|
21197 | CC*) |
---|
21198 | # Sun C++ 4.x |
---|
21199 | # FIXME: insert proper C++ library support |
---|
21200 | ld_shlibs_CXX=no |
---|
21201 | ;; |
---|
21202 | lcc*) |
---|
21203 | # Lucid |
---|
21204 | # FIXME: insert proper C++ library support |
---|
21205 | ld_shlibs_CXX=no |
---|
21206 | ;; |
---|
21207 | *) |
---|
21208 | # FIXME: insert proper C++ library support |
---|
21209 | ld_shlibs_CXX=no |
---|
21210 | ;; |
---|
21211 | esac |
---|
21212 | ;; |
---|
21213 | solaris*) |
---|
21214 | case $cc_basename in |
---|
21215 | CC*) |
---|
21216 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
21217 | archive_cmds_need_lc_CXX=yes |
---|
21218 | no_undefined_flag_CXX=' -zdefs' |
---|
21219 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
21220 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
21221 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
21222 | |
---|
21223 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
21224 | hardcode_shlibpath_var_CXX=no |
---|
21225 | case $host_os in |
---|
21226 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
21227 | *) |
---|
21228 | # The compiler driver will combine and reorder linker options, |
---|
21229 | # but understands `-z linker_flag'. |
---|
21230 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
21231 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
---|
21232 | ;; |
---|
21233 | esac |
---|
21234 | link_all_deplibs_CXX=yes |
---|
21235 | |
---|
21236 | output_verbose_link_cmd='echo' |
---|
21237 | |
---|
21238 | # Archives containing C++ object files must be created using |
---|
21239 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
---|
21240 | # necessary to make sure instantiated templates are included |
---|
21241 | # in the archive. |
---|
21242 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
---|
21243 | ;; |
---|
21244 | gcx*) |
---|
21245 | # Green Hills C++ Compiler |
---|
21246 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
21247 | |
---|
21248 | # The C++ compiler must be used to create the archive. |
---|
21249 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
---|
21250 | ;; |
---|
21251 | *) |
---|
21252 | # GNU C++ compiler with Solaris linker |
---|
21253 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
21254 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
---|
21255 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
---|
21256 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
21257 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
21258 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
21259 | |
---|
21260 | # Commands to make compiler produce verbose output that lists |
---|
21261 | # what "hidden" libraries, object files and flags are used when |
---|
21262 | # linking a shared library. |
---|
21263 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
21264 | else |
---|
21265 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
---|
21266 | # platform. |
---|
21267 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
21268 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
21269 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
21270 | |
---|
21271 | # Commands to make compiler produce verbose output that lists |
---|
21272 | # what "hidden" libraries, object files and flags are used when |
---|
21273 | # linking a shared library. |
---|
21274 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
21275 | fi |
---|
21276 | |
---|
21277 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
---|
21278 | case $host_os in |
---|
21279 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
21280 | *) |
---|
21281 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
---|
21282 | ;; |
---|
21283 | esac |
---|
21284 | fi |
---|
21285 | ;; |
---|
21286 | esac |
---|
21287 | ;; |
---|
21288 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
---|
21289 | no_undefined_flag_CXX='${wl}-z,text' |
---|
21290 | archive_cmds_need_lc_CXX=no |
---|
21291 | hardcode_shlibpath_var_CXX=no |
---|
21292 | runpath_var='LD_RUN_PATH' |
---|
21293 | |
---|
21294 | case $cc_basename in |
---|
21295 | CC*) |
---|
21296 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
21297 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
21298 | ;; |
---|
21299 | *) |
---|
21300 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
21301 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
21302 | ;; |
---|
21303 | esac |
---|
21304 | ;; |
---|
21305 | sysv5* | sco3.2v5* | sco5v6*) |
---|
21306 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
21307 | # link with -lc, and that would cause any symbols used from libc to |
---|
21308 | # always be unresolved, which means just about no library would |
---|
21309 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
21310 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
21311 | # as -z defs. |
---|
21312 | # For security reasons, it is highly recommended that you always |
---|
21313 | # use absolute paths for naming shared libraries, and exclude the |
---|
21314 | # DT_RUNPATH tag from executables and libraries. But doing so |
---|
21315 | # requires that you compile everything twice, which is a pain. |
---|
21316 | # So that behaviour is only enabled if SCOABSPATH is set to a |
---|
21317 | # non-empty value in the environment. Most likely only useful for |
---|
21318 | # creating official distributions of packages. |
---|
21319 | # This is a hack until libtool officially supports absolute path |
---|
21320 | # names for shared libraries. |
---|
21321 | no_undefined_flag_CXX='${wl}-z,text' |
---|
21322 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
---|
21323 | archive_cmds_need_lc_CXX=no |
---|
21324 | hardcode_shlibpath_var_CXX=no |
---|
21325 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
---|
21326 | hardcode_libdir_separator_CXX=':' |
---|
21327 | link_all_deplibs_CXX=yes |
---|
21328 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
---|
21329 | runpath_var='LD_RUN_PATH' |
---|
21330 | |
---|
21331 | case $cc_basename in |
---|
21332 | CC*) |
---|
21333 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
21334 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
21335 | ;; |
---|
21336 | *) |
---|
21337 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
21338 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
21339 | ;; |
---|
21340 | esac |
---|
21341 | ;; |
---|
21342 | tandem*) |
---|
21343 | case $cc_basename in |
---|
21344 | NCC*) |
---|
21345 | # NonStop-UX NCC 3.20 |
---|
21346 | # FIXME: insert proper C++ library support |
---|
21347 | ld_shlibs_CXX=no |
---|
21348 | ;; |
---|
21349 | *) |
---|
21350 | # FIXME: insert proper C++ library support |
---|
21351 | ld_shlibs_CXX=no |
---|
21352 | ;; |
---|
21353 | esac |
---|
21354 | ;; |
---|
21355 | vxworks*) |
---|
21356 | # FIXME: insert proper C++ library support |
---|
21357 | ld_shlibs_CXX=no |
---|
21358 | ;; |
---|
21359 | *) |
---|
21360 | # FIXME: insert proper C++ library support |
---|
21361 | ld_shlibs_CXX=no |
---|
21362 | ;; |
---|
21363 | esac |
---|
21364 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
21365 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
---|
21366 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
21367 | |
---|
21368 | GCC_CXX="$GXX" |
---|
21369 | LD_CXX="$LD" |
---|
21370 | |
---|
21371 | |
---|
21372 | cat > conftest.$ac_ext <<EOF |
---|
21373 | class Foo |
---|
21374 | { |
---|
21375 | public: |
---|
21376 | Foo (void) { a = 0; } |
---|
21377 | private: |
---|
21378 | int a; |
---|
21379 | }; |
---|
21380 | EOF |
---|
21381 | |
---|
21382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
21383 | (eval $ac_compile) 2>&5 |
---|
21384 | ac_status=$? |
---|
21385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
21386 | (exit $ac_status); }; then |
---|
21387 | # Parse the compiler output and extract the necessary |
---|
21388 | # objects, libraries and library flags. |
---|
21389 | |
---|
21390 | # Sentinel used to keep track of whether or not we are before |
---|
21391 | # the conftest object file. |
---|
21392 | pre_test_object_deps_done=no |
---|
21393 | |
---|
21394 | # The `*' in the case matches for architectures that use `case' in |
---|
21395 | # $output_verbose_cmd can trigger glob expansion during the loop |
---|
21396 | # eval without this substitution. |
---|
21397 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
---|
21398 | |
---|
21399 | for p in `eval $output_verbose_link_cmd`; do |
---|
21400 | case $p in |
---|
21401 | |
---|
21402 | -L* | -R* | -l*) |
---|
21403 | # Some compilers place space between "-{L,R}" and the path. |
---|
21404 | # Remove the space. |
---|
21405 | if test $p = "-L" \ |
---|
21406 | || test $p = "-R"; then |
---|
21407 | prev=$p |
---|
21408 | continue |
---|
21409 | else |
---|
21410 | prev= |
---|
21411 | fi |
---|
21412 | |
---|
21413 | if test "$pre_test_object_deps_done" = no; then |
---|
21414 | case $p in |
---|
21415 | -L* | -R*) |
---|
21416 | # Internal compiler library paths should come after those |
---|
21417 | # provided the user. The postdeps already come after the |
---|
21418 | # user supplied libs so there is no need to process them. |
---|
21419 | if test -z "$compiler_lib_search_path_CXX"; then |
---|
21420 | compiler_lib_search_path_CXX="${prev}${p}" |
---|
21421 | else |
---|
21422 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
---|
21423 | fi |
---|
21424 | ;; |
---|
21425 | # The "-l" case would never come before the object being |
---|
21426 | # linked, so don't bother handling this case. |
---|
21427 | esac |
---|
21428 | else |
---|
21429 | if test -z "$postdeps_CXX"; then |
---|
21430 | postdeps_CXX="${prev}${p}" |
---|
21431 | else |
---|
21432 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
---|
21433 | fi |
---|
21434 | fi |
---|
21435 | ;; |
---|
21436 | |
---|
21437 | *.$objext) |
---|
21438 | # This assumes that the test object file only shows up |
---|
21439 | # once in the compiler output. |
---|
21440 | if test "$p" = "conftest.$objext"; then |
---|
21441 | pre_test_object_deps_done=yes |
---|
21442 | continue |
---|
21443 | fi |
---|
21444 | |
---|
21445 | if test "$pre_test_object_deps_done" = no; then |
---|
21446 | if test -z "$predep_objects_CXX"; then |
---|
21447 | predep_objects_CXX="$p" |
---|
21448 | else |
---|
21449 | predep_objects_CXX="$predep_objects_CXX $p" |
---|
21450 | fi |
---|
21451 | else |
---|
21452 | if test -z "$postdep_objects_CXX"; then |
---|
21453 | postdep_objects_CXX="$p" |
---|
21454 | else |
---|
21455 | postdep_objects_CXX="$postdep_objects_CXX $p" |
---|
21456 | fi |
---|
21457 | fi |
---|
21458 | ;; |
---|
21459 | |
---|
21460 | *) ;; # Ignore the rest. |
---|
21461 | |
---|
21462 | esac |
---|
21463 | done |
---|
21464 | |
---|
21465 | # Clean up. |
---|
21466 | rm -f a.out a.exe |
---|
21467 | else |
---|
21468 | echo "libtool.m4: error: problem compiling CXX test program" |
---|
21469 | fi |
---|
21470 | |
---|
21471 | $rm -f confest.$objext |
---|
21472 | |
---|
21473 | # PORTME: override above test on systems where it is broken |
---|
21474 | case $host_os in |
---|
21475 | interix[3-9]*) |
---|
21476 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
---|
21477 | # hack all around it, let's just trust "g++" to DTRT. |
---|
21478 | predep_objects_CXX= |
---|
21479 | postdep_objects_CXX= |
---|
21480 | postdeps_CXX= |
---|
21481 | ;; |
---|
21482 | |
---|
21483 | linux*) |
---|
21484 | case `$CC -V 2>&1 | sed 5q` in |
---|
21485 | *Sun\ C*) |
---|
21486 | # Sun C++ 5.9 |
---|
21487 | # |
---|
21488 | # The more standards-conforming stlport4 library is |
---|
21489 | # incompatible with the Cstd library. Avoid specifying |
---|
21490 | # it if it's in CXXFLAGS. Ignore libCrun as |
---|
21491 | # -library=stlport4 depends on it. |
---|
21492 | case " $CXX $CXXFLAGS " in |
---|
21493 | *" -library=stlport4 "*) |
---|
21494 | solaris_use_stlport4=yes |
---|
21495 | ;; |
---|
21496 | esac |
---|
21497 | if test "$solaris_use_stlport4" != yes; then |
---|
21498 | postdeps_CXX='-library=Cstd -library=Crun' |
---|
21499 | fi |
---|
21500 | ;; |
---|
21501 | esac |
---|
21502 | ;; |
---|
21503 | |
---|
21504 | solaris*) |
---|
21505 | case $cc_basename in |
---|
21506 | CC*) |
---|
21507 | # The more standards-conforming stlport4 library is |
---|
21508 | # incompatible with the Cstd library. Avoid specifying |
---|
21509 | # it if it's in CXXFLAGS. Ignore libCrun as |
---|
21510 | # -library=stlport4 depends on it. |
---|
21511 | case " $CXX $CXXFLAGS " in |
---|
21512 | *" -library=stlport4 "*) |
---|
21513 | solaris_use_stlport4=yes |
---|
21514 | ;; |
---|
21515 | esac |
---|
21516 | |
---|
21517 | # Adding this requires a known-good setup of shared libraries for |
---|
21518 | # Sun compiler versions before 5.6, else PIC objects from an old |
---|
21519 | # archive will be linked into the output, leading to subtle bugs. |
---|
21520 | if test "$solaris_use_stlport4" != yes; then |
---|
21521 | postdeps_CXX='-library=Cstd -library=Crun' |
---|
21522 | fi |
---|
21523 | ;; |
---|
21524 | esac |
---|
21525 | ;; |
---|
21526 | esac |
---|
21527 | |
---|
21528 | |
---|
21529 | case " $postdeps_CXX " in |
---|
21530 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
---|
21531 | esac |
---|
21532 | |
---|
21533 | lt_prog_compiler_wl_CXX= |
---|
21534 | lt_prog_compiler_pic_CXX= |
---|
21535 | lt_prog_compiler_static_CXX= |
---|
21536 | |
---|
21537 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
21538 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
---|
21539 | |
---|
21540 | # C++ specific cases for pic, static, wl, etc. |
---|
21541 | if test "$GXX" = yes; then |
---|
21542 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
21543 | lt_prog_compiler_static_CXX='-static' |
---|
21544 | |
---|
21545 | case $host_os in |
---|
21546 | aix*) |
---|
21547 | # All AIX code is PIC. |
---|
21548 | if test "$host_cpu" = ia64; then |
---|
21549 | # AIX 5 now supports IA64 processor |
---|
21550 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
21551 | fi |
---|
21552 | ;; |
---|
21553 | amigaos*) |
---|
21554 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
21555 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
21556 | # like `-m68040'. |
---|
21557 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
---|
21558 | ;; |
---|
21559 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
21560 | # PIC is the default for these OSes. |
---|
21561 | ;; |
---|
21562 | mingw* | cygwin* | os2* | pw32*) |
---|
21563 | # This hack is so that the source file can tell whether it is being |
---|
21564 | # built for inclusion in a dll (and should export symbols for example). |
---|
21565 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
---|
21566 | # (--disable-auto-import) libraries |
---|
21567 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
---|
21568 | ;; |
---|
21569 | darwin* | rhapsody*) |
---|
21570 | # PIC is the default on this platform |
---|
21571 | # Common symbols not allowed in MH_DYLIB files |
---|
21572 | lt_prog_compiler_pic_CXX='-fno-common' |
---|
21573 | ;; |
---|
21574 | *djgpp*) |
---|
21575 | # DJGPP does not support shared libraries at all |
---|
21576 | lt_prog_compiler_pic_CXX= |
---|
21577 | ;; |
---|
21578 | interix[3-9]*) |
---|
21579 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
21580 | # Instead, we relocate shared libraries at runtime. |
---|
21581 | ;; |
---|
21582 | sysv4*MP*) |
---|
21583 | if test -d /usr/nec; then |
---|
21584 | lt_prog_compiler_pic_CXX=-Kconform_pic |
---|
21585 | fi |
---|
21586 | ;; |
---|
21587 | hpux*) |
---|
21588 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
21589 | # not for PA HP-UX. |
---|
21590 | case $host_cpu in |
---|
21591 | hppa*64*|ia64*) |
---|
21592 | ;; |
---|
21593 | *) |
---|
21594 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
21595 | ;; |
---|
21596 | esac |
---|
21597 | ;; |
---|
21598 | *) |
---|
21599 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
21600 | ;; |
---|
21601 | esac |
---|
21602 | else |
---|
21603 | case $host_os in |
---|
21604 | aix4* | aix5*) |
---|
21605 | # All AIX code is PIC. |
---|
21606 | if test "$host_cpu" = ia64; then |
---|
21607 | # AIX 5 now supports IA64 processor |
---|
21608 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
21609 | else |
---|
21610 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
---|
21611 | fi |
---|
21612 | ;; |
---|
21613 | chorus*) |
---|
21614 | case $cc_basename in |
---|
21615 | cxch68*) |
---|
21616 | # Green Hills C++ Compiler |
---|
21617 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
---|
21618 | ;; |
---|
21619 | esac |
---|
21620 | ;; |
---|
21621 | darwin*) |
---|
21622 | # PIC is the default on this platform |
---|
21623 | # Common symbols not allowed in MH_DYLIB files |
---|
21624 | case $cc_basename in |
---|
21625 | xlc*) |
---|
21626 | lt_prog_compiler_pic_CXX='-qnocommon' |
---|
21627 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
21628 | ;; |
---|
21629 | esac |
---|
21630 | ;; |
---|
21631 | dgux*) |
---|
21632 | case $cc_basename in |
---|
21633 | ec++*) |
---|
21634 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
21635 | ;; |
---|
21636 | ghcx*) |
---|
21637 | # Green Hills C++ Compiler |
---|
21638 | lt_prog_compiler_pic_CXX='-pic' |
---|
21639 | ;; |
---|
21640 | *) |
---|
21641 | ;; |
---|
21642 | esac |
---|
21643 | ;; |
---|
21644 | freebsd* | dragonfly*) |
---|
21645 | # FreeBSD uses GNU C++ |
---|
21646 | ;; |
---|
21647 | hpux9* | hpux10* | hpux11*) |
---|
21648 | case $cc_basename in |
---|
21649 | CC*) |
---|
21650 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
21651 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
---|
21652 | if test "$host_cpu" != ia64; then |
---|
21653 | lt_prog_compiler_pic_CXX='+Z' |
---|
21654 | fi |
---|
21655 | ;; |
---|
21656 | aCC*) |
---|
21657 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
21658 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
---|
21659 | case $host_cpu in |
---|
21660 | hppa*64*|ia64*) |
---|
21661 | # +Z the default |
---|
21662 | ;; |
---|
21663 | *) |
---|
21664 | lt_prog_compiler_pic_CXX='+Z' |
---|
21665 | ;; |
---|
21666 | esac |
---|
21667 | ;; |
---|
21668 | *) |
---|
21669 | ;; |
---|
21670 | esac |
---|
21671 | ;; |
---|
21672 | interix*) |
---|
21673 | # This is c89, which is MS Visual C++ (no shared libs) |
---|
21674 | # Anyone wants to do a port? |
---|
21675 | ;; |
---|
21676 | irix5* | irix6* | nonstopux*) |
---|
21677 | case $cc_basename in |
---|
21678 | CC*) |
---|
21679 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
21680 | lt_prog_compiler_static_CXX='-non_shared' |
---|
21681 | # CC pic flag -KPIC is the default. |
---|
21682 | ;; |
---|
21683 | *) |
---|
21684 | ;; |
---|
21685 | esac |
---|
21686 | ;; |
---|
21687 | linux* | k*bsd*-gnu) |
---|
21688 | case $cc_basename in |
---|
21689 | KCC*) |
---|
21690 | # KAI C++ Compiler |
---|
21691 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
21692 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
21693 | ;; |
---|
21694 | icpc* | ecpc*) |
---|
21695 | # Intel C++ |
---|
21696 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
21697 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
21698 | lt_prog_compiler_static_CXX='-static' |
---|
21699 | ;; |
---|
21700 | pgCC*) |
---|
21701 | # Portland Group C++ compiler. |
---|
21702 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
21703 | lt_prog_compiler_pic_CXX='-fpic' |
---|
21704 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
21705 | ;; |
---|
21706 | cxx*) |
---|
21707 | # Compaq C++ |
---|
21708 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
21709 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
21710 | lt_prog_compiler_pic_CXX= |
---|
21711 | lt_prog_compiler_static_CXX='-non_shared' |
---|
21712 | ;; |
---|
21713 | *) |
---|
21714 | case `$CC -V 2>&1 | sed 5q` in |
---|
21715 | *Sun\ C*) |
---|
21716 | # Sun C++ 5.9 |
---|
21717 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
21718 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
21719 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
---|
21720 | ;; |
---|
21721 | esac |
---|
21722 | ;; |
---|
21723 | esac |
---|
21724 | ;; |
---|
21725 | lynxos*) |
---|
21726 | ;; |
---|
21727 | m88k*) |
---|
21728 | ;; |
---|
21729 | mvs*) |
---|
21730 | case $cc_basename in |
---|
21731 | cxx*) |
---|
21732 | lt_prog_compiler_pic_CXX='-W c,exportall' |
---|
21733 | ;; |
---|
21734 | *) |
---|
21735 | ;; |
---|
21736 | esac |
---|
21737 | ;; |
---|
21738 | netbsd*) |
---|
21739 | ;; |
---|
21740 | osf3* | osf4* | osf5*) |
---|
21741 | case $cc_basename in |
---|
21742 | KCC*) |
---|
21743 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
21744 | ;; |
---|
21745 | RCC*) |
---|
21746 | # Rational C++ 2.4.1 |
---|
21747 | lt_prog_compiler_pic_CXX='-pic' |
---|
21748 | ;; |
---|
21749 | cxx*) |
---|
21750 | # Digital/Compaq C++ |
---|
21751 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
21752 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
21753 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
21754 | lt_prog_compiler_pic_CXX= |
---|
21755 | lt_prog_compiler_static_CXX='-non_shared' |
---|
21756 | ;; |
---|
21757 | *) |
---|
21758 | ;; |
---|
21759 | esac |
---|
21760 | ;; |
---|
21761 | psos*) |
---|
21762 | ;; |
---|
21763 | solaris*) |
---|
21764 | case $cc_basename in |
---|
21765 | CC*) |
---|
21766 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
21767 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
21768 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
21769 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
---|
21770 | ;; |
---|
21771 | gcx*) |
---|
21772 | # Green Hills C++ Compiler |
---|
21773 | lt_prog_compiler_pic_CXX='-PIC' |
---|
21774 | ;; |
---|
21775 | *) |
---|
21776 | ;; |
---|
21777 | esac |
---|
21778 | ;; |
---|
21779 | sunos4*) |
---|
21780 | case $cc_basename in |
---|
21781 | CC*) |
---|
21782 | # Sun C++ 4.x |
---|
21783 | lt_prog_compiler_pic_CXX='-pic' |
---|
21784 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
21785 | ;; |
---|
21786 | lcc*) |
---|
21787 | # Lucid |
---|
21788 | lt_prog_compiler_pic_CXX='-pic' |
---|
21789 | ;; |
---|
21790 | *) |
---|
21791 | ;; |
---|
21792 | esac |
---|
21793 | ;; |
---|
21794 | tandem*) |
---|
21795 | case $cc_basename in |
---|
21796 | NCC*) |
---|
21797 | # NonStop-UX NCC 3.20 |
---|
21798 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
21799 | ;; |
---|
21800 | *) |
---|
21801 | ;; |
---|
21802 | esac |
---|
21803 | ;; |
---|
21804 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
21805 | case $cc_basename in |
---|
21806 | CC*) |
---|
21807 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
21808 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
21809 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
21810 | ;; |
---|
21811 | esac |
---|
21812 | ;; |
---|
21813 | vxworks*) |
---|
21814 | ;; |
---|
21815 | *) |
---|
21816 | lt_prog_compiler_can_build_shared_CXX=no |
---|
21817 | ;; |
---|
21818 | esac |
---|
21819 | fi |
---|
21820 | |
---|
21821 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
---|
21822 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
---|
21823 | |
---|
21824 | # |
---|
21825 | # Check to make sure the PIC flag actually works. |
---|
21826 | # |
---|
21827 | if test -n "$lt_prog_compiler_pic_CXX"; then |
---|
21828 | |
---|
21829 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
---|
21830 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
---|
21831 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
---|
21832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
21833 | else |
---|
21834 | lt_prog_compiler_pic_works_CXX=no |
---|
21835 | ac_outfile=conftest.$ac_objext |
---|
21836 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
21837 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
---|
21838 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
21839 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
21840 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
21841 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
21842 | # The option is referenced via a variable to avoid confusing sed. |
---|
21843 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
21844 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
21845 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
21846 | -e 's:$: $lt_compiler_flag:'` |
---|
21847 | (eval echo "\"\$as_me:21847: $lt_compile\"" >&5) |
---|
21848 | (eval "$lt_compile" 2>conftest.err) |
---|
21849 | ac_status=$? |
---|
21850 | cat conftest.err >&5 |
---|
21851 | echo "$as_me:21851: \$? = $ac_status" >&5 |
---|
21852 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
21853 | # The compiler can only warn and ignore the option if not recognized |
---|
21854 | # So say no if there are warnings other than the usual output. |
---|
21855 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
21856 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
21857 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
21858 | lt_prog_compiler_pic_works_CXX=yes |
---|
21859 | fi |
---|
21860 | fi |
---|
21861 | $rm conftest* |
---|
21862 | |
---|
21863 | fi |
---|
21864 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
---|
21865 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
---|
21866 | |
---|
21867 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
---|
21868 | case $lt_prog_compiler_pic_CXX in |
---|
21869 | "" | " "*) ;; |
---|
21870 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
---|
21871 | esac |
---|
21872 | else |
---|
21873 | lt_prog_compiler_pic_CXX= |
---|
21874 | lt_prog_compiler_can_build_shared_CXX=no |
---|
21875 | fi |
---|
21876 | |
---|
21877 | fi |
---|
21878 | case $host_os in |
---|
21879 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
21880 | *djgpp*) |
---|
21881 | lt_prog_compiler_pic_CXX= |
---|
21882 | ;; |
---|
21883 | *) |
---|
21884 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
---|
21885 | ;; |
---|
21886 | esac |
---|
21887 | |
---|
21888 | # |
---|
21889 | # Check to make sure the static flag actually works. |
---|
21890 | # |
---|
21891 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
---|
21892 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
21893 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
---|
21894 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
---|
21895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
21896 | else |
---|
21897 | lt_prog_compiler_static_works_CXX=no |
---|
21898 | save_LDFLAGS="$LDFLAGS" |
---|
21899 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
21900 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
21901 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
21902 | # The linker can only warn and ignore the option if not recognized |
---|
21903 | # So say no if there are warnings |
---|
21904 | if test -s conftest.err; then |
---|
21905 | # Append any errors to the config.log. |
---|
21906 | cat conftest.err 1>&5 |
---|
21907 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
---|
21908 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
21909 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
21910 | lt_prog_compiler_static_works_CXX=yes |
---|
21911 | fi |
---|
21912 | else |
---|
21913 | lt_prog_compiler_static_works_CXX=yes |
---|
21914 | fi |
---|
21915 | fi |
---|
21916 | $rm conftest* |
---|
21917 | LDFLAGS="$save_LDFLAGS" |
---|
21918 | |
---|
21919 | fi |
---|
21920 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
---|
21921 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
---|
21922 | |
---|
21923 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
---|
21924 | : |
---|
21925 | else |
---|
21926 | lt_prog_compiler_static_CXX= |
---|
21927 | fi |
---|
21928 | |
---|
21929 | |
---|
21930 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
21931 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
---|
21932 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
---|
21933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
21934 | else |
---|
21935 | lt_cv_prog_compiler_c_o_CXX=no |
---|
21936 | $rm -r conftest 2>/dev/null |
---|
21937 | mkdir conftest |
---|
21938 | cd conftest |
---|
21939 | mkdir out |
---|
21940 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
21941 | |
---|
21942 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
21943 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
21944 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
21945 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
21946 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
21947 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
21948 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
21949 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
21950 | -e 's:$: $lt_compiler_flag:'` |
---|
21951 | (eval echo "\"\$as_me:21951: $lt_compile\"" >&5) |
---|
21952 | (eval "$lt_compile" 2>out/conftest.err) |
---|
21953 | ac_status=$? |
---|
21954 | cat out/conftest.err >&5 |
---|
21955 | echo "$as_me:21955: \$? = $ac_status" >&5 |
---|
21956 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
21957 | then |
---|
21958 | # The compiler can only warn and ignore the option if not recognized |
---|
21959 | # So say no if there are warnings |
---|
21960 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
---|
21961 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
21962 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
21963 | lt_cv_prog_compiler_c_o_CXX=yes |
---|
21964 | fi |
---|
21965 | fi |
---|
21966 | chmod u+w . 2>&5 |
---|
21967 | $rm conftest* |
---|
21968 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
21969 | # template instantiation |
---|
21970 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
21971 | $rm out/* && rmdir out |
---|
21972 | cd .. |
---|
21973 | rmdir conftest |
---|
21974 | $rm conftest* |
---|
21975 | |
---|
21976 | fi |
---|
21977 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
---|
21978 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
---|
21979 | |
---|
21980 | |
---|
21981 | hard_links="nottested" |
---|
21982 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
---|
21983 | # do not overwrite the value of need_locks provided by the user |
---|
21984 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
21985 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
---|
21986 | hard_links=yes |
---|
21987 | $rm conftest* |
---|
21988 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
21989 | touch conftest.a |
---|
21990 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
21991 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
21992 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
21993 | echo "${ECHO_T}$hard_links" >&6; } |
---|
21994 | if test "$hard_links" = no; then |
---|
21995 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
21996 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
21997 | need_locks=warn |
---|
21998 | fi |
---|
21999 | else |
---|
22000 | need_locks=no |
---|
22001 | fi |
---|
22002 | |
---|
22003 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
22004 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
22005 | |
---|
22006 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
22007 | case $host_os in |
---|
22008 | aix4* | aix5*) |
---|
22009 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
22010 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
22011 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
22012 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
22013 | else |
---|
22014 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
---|
22015 | fi |
---|
22016 | ;; |
---|
22017 | pw32*) |
---|
22018 | export_symbols_cmds_CXX="$ltdll_cmds" |
---|
22019 | ;; |
---|
22020 | cygwin* | mingw*) |
---|
22021 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
---|
22022 | ;; |
---|
22023 | *) |
---|
22024 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
22025 | ;; |
---|
22026 | esac |
---|
22027 | |
---|
22028 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
22029 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
---|
22030 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
22031 | |
---|
22032 | # |
---|
22033 | # Do we need to explicitly link libc? |
---|
22034 | # |
---|
22035 | case "x$archive_cmds_need_lc_CXX" in |
---|
22036 | x|xyes) |
---|
22037 | # Assume -lc should be added |
---|
22038 | archive_cmds_need_lc_CXX=yes |
---|
22039 | |
---|
22040 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
22041 | case $archive_cmds_CXX in |
---|
22042 | *'~'*) |
---|
22043 | # FIXME: we may have to deal with multi-command sequences. |
---|
22044 | ;; |
---|
22045 | '$CC '*) |
---|
22046 | # Test whether the compiler implicitly links with -lc since on some |
---|
22047 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
22048 | # to ld, don't add -lc before -lgcc. |
---|
22049 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
22050 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
---|
22051 | $rm conftest* |
---|
22052 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
22053 | |
---|
22054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
22055 | (eval $ac_compile) 2>&5 |
---|
22056 | ac_status=$? |
---|
22057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
22058 | (exit $ac_status); } 2>conftest.err; then |
---|
22059 | soname=conftest |
---|
22060 | lib=conftest |
---|
22061 | libobjs=conftest.$ac_objext |
---|
22062 | deplibs= |
---|
22063 | wl=$lt_prog_compiler_wl_CXX |
---|
22064 | pic_flag=$lt_prog_compiler_pic_CXX |
---|
22065 | compiler_flags=-v |
---|
22066 | linker_flags=-v |
---|
22067 | verstring= |
---|
22068 | output_objdir=. |
---|
22069 | libname=conftest |
---|
22070 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
---|
22071 | allow_undefined_flag_CXX= |
---|
22072 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
22073 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
22074 | ac_status=$? |
---|
22075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
22076 | (exit $ac_status); } |
---|
22077 | then |
---|
22078 | archive_cmds_need_lc_CXX=no |
---|
22079 | else |
---|
22080 | archive_cmds_need_lc_CXX=yes |
---|
22081 | fi |
---|
22082 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
---|
22083 | else |
---|
22084 | cat conftest.err 1>&5 |
---|
22085 | fi |
---|
22086 | $rm conftest* |
---|
22087 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
---|
22088 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
---|
22089 | ;; |
---|
22090 | esac |
---|
22091 | fi |
---|
22092 | ;; |
---|
22093 | esac |
---|
22094 | |
---|
22095 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
22096 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
---|
22097 | library_names_spec= |
---|
22098 | libname_spec='lib$name' |
---|
22099 | soname_spec= |
---|
22100 | shrext_cmds=".so" |
---|
22101 | postinstall_cmds= |
---|
22102 | postuninstall_cmds= |
---|
22103 | finish_cmds= |
---|
22104 | finish_eval= |
---|
22105 | shlibpath_var= |
---|
22106 | shlibpath_overrides_runpath=unknown |
---|
22107 | version_type=none |
---|
22108 | dynamic_linker="$host_os ld.so" |
---|
22109 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
22110 | |
---|
22111 | need_lib_prefix=unknown |
---|
22112 | hardcode_into_libs=no |
---|
22113 | |
---|
22114 | # when you set need_version to no, make sure it does not cause -set_version |
---|
22115 | # flags to be left without arguments |
---|
22116 | need_version=unknown |
---|
22117 | |
---|
22118 | case $host_os in |
---|
22119 | aix3*) |
---|
22120 | version_type=linux |
---|
22121 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
22122 | shlibpath_var=LIBPATH |
---|
22123 | |
---|
22124 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
22125 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22126 | ;; |
---|
22127 | |
---|
22128 | aix4* | aix5*) |
---|
22129 | version_type=linux |
---|
22130 | need_lib_prefix=no |
---|
22131 | need_version=no |
---|
22132 | hardcode_into_libs=yes |
---|
22133 | if test "$host_cpu" = ia64; then |
---|
22134 | # AIX 5 supports IA64 |
---|
22135 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
22136 | shlibpath_var=LD_LIBRARY_PATH |
---|
22137 | else |
---|
22138 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
22139 | # for dependence libraries. The import file would start with |
---|
22140 | # the line `#! .'. This would cause the generated library to |
---|
22141 | # depend on `.', always an invalid library. This was fixed in |
---|
22142 | # development snapshots of GCC prior to 3.0. |
---|
22143 | case $host_os in |
---|
22144 | aix4 | aix4.[01] | aix4.[01].*) |
---|
22145 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
22146 | echo ' yes ' |
---|
22147 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
22148 | : |
---|
22149 | else |
---|
22150 | can_build_shared=no |
---|
22151 | fi |
---|
22152 | ;; |
---|
22153 | esac |
---|
22154 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
22155 | # soname into executable. Probably we can add versioning support to |
---|
22156 | # collect2, so additional links can be useful in future. |
---|
22157 | if test "$aix_use_runtimelinking" = yes; then |
---|
22158 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
22159 | # instead of lib<name>.a to let people know that these are not |
---|
22160 | # typical AIX shared libraries. |
---|
22161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22162 | else |
---|
22163 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
22164 | # and later when we are not doing run time linking. |
---|
22165 | library_names_spec='${libname}${release}.a $libname.a' |
---|
22166 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22167 | fi |
---|
22168 | shlibpath_var=LIBPATH |
---|
22169 | fi |
---|
22170 | ;; |
---|
22171 | |
---|
22172 | amigaos*) |
---|
22173 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
22174 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
22175 | 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' |
---|
22176 | ;; |
---|
22177 | |
---|
22178 | beos*) |
---|
22179 | library_names_spec='${libname}${shared_ext}' |
---|
22180 | dynamic_linker="$host_os ld.so" |
---|
22181 | shlibpath_var=LIBRARY_PATH |
---|
22182 | ;; |
---|
22183 | |
---|
22184 | bsdi[45]*) |
---|
22185 | version_type=linux |
---|
22186 | need_version=no |
---|
22187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22188 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22189 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
22190 | shlibpath_var=LD_LIBRARY_PATH |
---|
22191 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
22192 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
22193 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
22194 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
22195 | # libtool to hard-code these into programs |
---|
22196 | ;; |
---|
22197 | |
---|
22198 | cygwin* | mingw* | pw32*) |
---|
22199 | version_type=windows |
---|
22200 | shrext_cmds=".dll" |
---|
22201 | need_version=no |
---|
22202 | need_lib_prefix=no |
---|
22203 | |
---|
22204 | case $GCC,$host_os in |
---|
22205 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
22206 | library_names_spec='$libname.dll.a' |
---|
22207 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
22208 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
22209 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
22210 | dldir=$destdir/`dirname \$dlpath`~ |
---|
22211 | test -d \$dldir || mkdir -p \$dldir~ |
---|
22212 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
22213 | chmod a+x \$dldir/$dlname' |
---|
22214 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
22215 | dlpath=$dir/\$dldll~ |
---|
22216 | $rm \$dlpath' |
---|
22217 | shlibpath_overrides_runpath=yes |
---|
22218 | |
---|
22219 | case $host_os in |
---|
22220 | cygwin*) |
---|
22221 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
22222 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
22223 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
22224 | ;; |
---|
22225 | mingw*) |
---|
22226 | # MinGW DLLs use traditional 'lib' prefix |
---|
22227 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
22228 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
22229 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
22230 | # It is most probably a Windows format PATH printed by |
---|
22231 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
22232 | # path with ; separators, and with drive letters. We can handle the |
---|
22233 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
22234 | # especially as we might pass files found there to a mingw objdump, |
---|
22235 | # which wouldn't understand a cygwinified path. Ahh. |
---|
22236 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
22237 | else |
---|
22238 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
22239 | fi |
---|
22240 | ;; |
---|
22241 | pw32*) |
---|
22242 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
22243 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
22244 | ;; |
---|
22245 | esac |
---|
22246 | ;; |
---|
22247 | |
---|
22248 | *) |
---|
22249 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
22250 | ;; |
---|
22251 | esac |
---|
22252 | dynamic_linker='Win32 ld.exe' |
---|
22253 | # FIXME: first we should search . and the directory the executable is in |
---|
22254 | shlibpath_var=PATH |
---|
22255 | ;; |
---|
22256 | |
---|
22257 | darwin* | rhapsody*) |
---|
22258 | dynamic_linker="$host_os dyld" |
---|
22259 | version_type=darwin |
---|
22260 | need_lib_prefix=no |
---|
22261 | need_version=no |
---|
22262 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
22263 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
22264 | shlibpath_overrides_runpath=yes |
---|
22265 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
22266 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
22267 | |
---|
22268 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
22269 | ;; |
---|
22270 | |
---|
22271 | dgux*) |
---|
22272 | version_type=linux |
---|
22273 | need_lib_prefix=no |
---|
22274 | need_version=no |
---|
22275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
22276 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22277 | shlibpath_var=LD_LIBRARY_PATH |
---|
22278 | ;; |
---|
22279 | |
---|
22280 | freebsd1*) |
---|
22281 | dynamic_linker=no |
---|
22282 | ;; |
---|
22283 | |
---|
22284 | freebsd* | dragonfly*) |
---|
22285 | # DragonFly does not have aout. When/if they implement a new |
---|
22286 | # versioning mechanism, adjust this. |
---|
22287 | if test -x /usr/bin/objformat; then |
---|
22288 | objformat=`/usr/bin/objformat` |
---|
22289 | else |
---|
22290 | case $host_os in |
---|
22291 | freebsd[123]*) objformat=aout ;; |
---|
22292 | *) objformat=elf ;; |
---|
22293 | esac |
---|
22294 | fi |
---|
22295 | version_type=freebsd-$objformat |
---|
22296 | case $version_type in |
---|
22297 | freebsd-elf*) |
---|
22298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
22299 | need_version=no |
---|
22300 | need_lib_prefix=no |
---|
22301 | ;; |
---|
22302 | freebsd-*) |
---|
22303 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
22304 | need_version=yes |
---|
22305 | ;; |
---|
22306 | esac |
---|
22307 | shlibpath_var=LD_LIBRARY_PATH |
---|
22308 | case $host_os in |
---|
22309 | freebsd2*) |
---|
22310 | shlibpath_overrides_runpath=yes |
---|
22311 | ;; |
---|
22312 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
22313 | shlibpath_overrides_runpath=yes |
---|
22314 | hardcode_into_libs=yes |
---|
22315 | ;; |
---|
22316 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
22317 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
22318 | shlibpath_overrides_runpath=no |
---|
22319 | hardcode_into_libs=yes |
---|
22320 | ;; |
---|
22321 | *) # from 4.6 on, and DragonFly |
---|
22322 | shlibpath_overrides_runpath=yes |
---|
22323 | hardcode_into_libs=yes |
---|
22324 | ;; |
---|
22325 | esac |
---|
22326 | ;; |
---|
22327 | |
---|
22328 | gnu*) |
---|
22329 | version_type=linux |
---|
22330 | need_lib_prefix=no |
---|
22331 | need_version=no |
---|
22332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
22333 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22334 | shlibpath_var=LD_LIBRARY_PATH |
---|
22335 | hardcode_into_libs=yes |
---|
22336 | ;; |
---|
22337 | |
---|
22338 | hpux9* | hpux10* | hpux11*) |
---|
22339 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
22340 | # link against other versions. |
---|
22341 | version_type=sunos |
---|
22342 | need_lib_prefix=no |
---|
22343 | need_version=no |
---|
22344 | case $host_cpu in |
---|
22345 | ia64*) |
---|
22346 | shrext_cmds='.so' |
---|
22347 | hardcode_into_libs=yes |
---|
22348 | dynamic_linker="$host_os dld.so" |
---|
22349 | shlibpath_var=LD_LIBRARY_PATH |
---|
22350 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
22351 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22352 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22353 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
22354 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
22355 | else |
---|
22356 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
22357 | fi |
---|
22358 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
22359 | ;; |
---|
22360 | hppa*64*) |
---|
22361 | shrext_cmds='.sl' |
---|
22362 | hardcode_into_libs=yes |
---|
22363 | dynamic_linker="$host_os dld.sl" |
---|
22364 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
22365 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
22366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22367 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22368 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
22369 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
22370 | ;; |
---|
22371 | *) |
---|
22372 | shrext_cmds='.sl' |
---|
22373 | dynamic_linker="$host_os dld.sl" |
---|
22374 | shlibpath_var=SHLIB_PATH |
---|
22375 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
22376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22377 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22378 | ;; |
---|
22379 | esac |
---|
22380 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
22381 | postinstall_cmds='chmod 555 $lib' |
---|
22382 | ;; |
---|
22383 | |
---|
22384 | interix[3-9]*) |
---|
22385 | version_type=linux |
---|
22386 | need_lib_prefix=no |
---|
22387 | need_version=no |
---|
22388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
22389 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22390 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
22391 | shlibpath_var=LD_LIBRARY_PATH |
---|
22392 | shlibpath_overrides_runpath=no |
---|
22393 | hardcode_into_libs=yes |
---|
22394 | ;; |
---|
22395 | |
---|
22396 | irix5* | irix6* | nonstopux*) |
---|
22397 | case $host_os in |
---|
22398 | nonstopux*) version_type=nonstopux ;; |
---|
22399 | *) |
---|
22400 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
22401 | version_type=linux |
---|
22402 | else |
---|
22403 | version_type=irix |
---|
22404 | fi ;; |
---|
22405 | esac |
---|
22406 | need_lib_prefix=no |
---|
22407 | need_version=no |
---|
22408 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22409 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
22410 | case $host_os in |
---|
22411 | irix5* | nonstopux*) |
---|
22412 | libsuff= shlibsuff= |
---|
22413 | ;; |
---|
22414 | *) |
---|
22415 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
22416 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
22417 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
22418 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
22419 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
22420 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
22421 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
22422 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
22423 | esac |
---|
22424 | ;; |
---|
22425 | esac |
---|
22426 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
22427 | shlibpath_overrides_runpath=no |
---|
22428 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
22429 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
22430 | hardcode_into_libs=yes |
---|
22431 | ;; |
---|
22432 | |
---|
22433 | # No shared lib support for Linux oldld, aout, or coff. |
---|
22434 | linux*oldld* | linux*aout* | linux*coff*) |
---|
22435 | dynamic_linker=no |
---|
22436 | ;; |
---|
22437 | |
---|
22438 | # This must be Linux ELF. |
---|
22439 | linux* | k*bsd*-gnu) |
---|
22440 | version_type=linux |
---|
22441 | need_lib_prefix=no |
---|
22442 | need_version=no |
---|
22443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22444 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22445 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
22446 | shlibpath_var=LD_LIBRARY_PATH |
---|
22447 | shlibpath_overrides_runpath=no |
---|
22448 | # This implies no fast_install, which is unacceptable. |
---|
22449 | # Some rework will be needed to allow for fast_install |
---|
22450 | # before this can be enabled. |
---|
22451 | hardcode_into_libs=yes |
---|
22452 | |
---|
22453 | # Append ld.so.conf contents to the search path |
---|
22454 | if test -f /etc/ld.so.conf; then |
---|
22455 | 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' ' '` |
---|
22456 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
22457 | fi |
---|
22458 | |
---|
22459 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
22460 | # powerpc, because MkLinux only supported shared libraries with the |
---|
22461 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
22462 | # most powerpc-linux boxes support dynamic linking these days and |
---|
22463 | # people can always --disable-shared, the test was removed, and we |
---|
22464 | # assume the GNU/Linux dynamic linker is in use. |
---|
22465 | dynamic_linker='GNU/Linux ld.so' |
---|
22466 | ;; |
---|
22467 | |
---|
22468 | netbsd*) |
---|
22469 | version_type=sunos |
---|
22470 | need_lib_prefix=no |
---|
22471 | need_version=no |
---|
22472 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
22473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
22474 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
22475 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
22476 | else |
---|
22477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
22478 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22479 | dynamic_linker='NetBSD ld.elf_so' |
---|
22480 | fi |
---|
22481 | shlibpath_var=LD_LIBRARY_PATH |
---|
22482 | shlibpath_overrides_runpath=yes |
---|
22483 | hardcode_into_libs=yes |
---|
22484 | ;; |
---|
22485 | |
---|
22486 | newsos6) |
---|
22487 | version_type=linux |
---|
22488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22489 | shlibpath_var=LD_LIBRARY_PATH |
---|
22490 | shlibpath_overrides_runpath=yes |
---|
22491 | ;; |
---|
22492 | |
---|
22493 | nto-qnx*) |
---|
22494 | version_type=linux |
---|
22495 | need_lib_prefix=no |
---|
22496 | need_version=no |
---|
22497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22498 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22499 | shlibpath_var=LD_LIBRARY_PATH |
---|
22500 | shlibpath_overrides_runpath=yes |
---|
22501 | ;; |
---|
22502 | |
---|
22503 | openbsd*) |
---|
22504 | version_type=sunos |
---|
22505 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
22506 | need_lib_prefix=no |
---|
22507 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
22508 | case $host_os in |
---|
22509 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
22510 | *) need_version=no ;; |
---|
22511 | esac |
---|
22512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
22513 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
22514 | shlibpath_var=LD_LIBRARY_PATH |
---|
22515 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
22516 | case $host_os in |
---|
22517 | openbsd2.[89] | openbsd2.[89].*) |
---|
22518 | shlibpath_overrides_runpath=no |
---|
22519 | ;; |
---|
22520 | *) |
---|
22521 | shlibpath_overrides_runpath=yes |
---|
22522 | ;; |
---|
22523 | esac |
---|
22524 | else |
---|
22525 | shlibpath_overrides_runpath=yes |
---|
22526 | fi |
---|
22527 | ;; |
---|
22528 | |
---|
22529 | os2*) |
---|
22530 | libname_spec='$name' |
---|
22531 | shrext_cmds=".dll" |
---|
22532 | need_lib_prefix=no |
---|
22533 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
22534 | dynamic_linker='OS/2 ld.exe' |
---|
22535 | shlibpath_var=LIBPATH |
---|
22536 | ;; |
---|
22537 | |
---|
22538 | osf3* | osf4* | osf5*) |
---|
22539 | version_type=osf |
---|
22540 | need_lib_prefix=no |
---|
22541 | need_version=no |
---|
22542 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22544 | shlibpath_var=LD_LIBRARY_PATH |
---|
22545 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
22546 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
22547 | ;; |
---|
22548 | |
---|
22549 | rdos*) |
---|
22550 | dynamic_linker=no |
---|
22551 | ;; |
---|
22552 | |
---|
22553 | solaris*) |
---|
22554 | version_type=linux |
---|
22555 | need_lib_prefix=no |
---|
22556 | need_version=no |
---|
22557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22558 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22559 | shlibpath_var=LD_LIBRARY_PATH |
---|
22560 | shlibpath_overrides_runpath=yes |
---|
22561 | hardcode_into_libs=yes |
---|
22562 | # ldd complains unless libraries are executable |
---|
22563 | postinstall_cmds='chmod +x $lib' |
---|
22564 | ;; |
---|
22565 | |
---|
22566 | sunos4*) |
---|
22567 | version_type=sunos |
---|
22568 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
22569 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
22570 | shlibpath_var=LD_LIBRARY_PATH |
---|
22571 | shlibpath_overrides_runpath=yes |
---|
22572 | if test "$with_gnu_ld" = yes; then |
---|
22573 | need_lib_prefix=no |
---|
22574 | fi |
---|
22575 | need_version=yes |
---|
22576 | ;; |
---|
22577 | |
---|
22578 | sysv4 | sysv4.3*) |
---|
22579 | version_type=linux |
---|
22580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22581 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22582 | shlibpath_var=LD_LIBRARY_PATH |
---|
22583 | case $host_vendor in |
---|
22584 | sni) |
---|
22585 | shlibpath_overrides_runpath=no |
---|
22586 | need_lib_prefix=no |
---|
22587 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
22588 | runpath_var=LD_RUN_PATH |
---|
22589 | ;; |
---|
22590 | siemens) |
---|
22591 | need_lib_prefix=no |
---|
22592 | ;; |
---|
22593 | motorola) |
---|
22594 | need_lib_prefix=no |
---|
22595 | need_version=no |
---|
22596 | shlibpath_overrides_runpath=no |
---|
22597 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
22598 | ;; |
---|
22599 | esac |
---|
22600 | ;; |
---|
22601 | |
---|
22602 | sysv4*MP*) |
---|
22603 | if test -d /usr/nec ;then |
---|
22604 | version_type=linux |
---|
22605 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
22606 | soname_spec='$libname${shared_ext}.$major' |
---|
22607 | shlibpath_var=LD_LIBRARY_PATH |
---|
22608 | fi |
---|
22609 | ;; |
---|
22610 | |
---|
22611 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
22612 | version_type=freebsd-elf |
---|
22613 | need_lib_prefix=no |
---|
22614 | need_version=no |
---|
22615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
22616 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22617 | shlibpath_var=LD_LIBRARY_PATH |
---|
22618 | hardcode_into_libs=yes |
---|
22619 | if test "$with_gnu_ld" = yes; then |
---|
22620 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
22621 | shlibpath_overrides_runpath=no |
---|
22622 | else |
---|
22623 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
22624 | shlibpath_overrides_runpath=yes |
---|
22625 | case $host_os in |
---|
22626 | sco3.2v5*) |
---|
22627 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
22628 | ;; |
---|
22629 | esac |
---|
22630 | fi |
---|
22631 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
22632 | ;; |
---|
22633 | |
---|
22634 | uts4*) |
---|
22635 | version_type=linux |
---|
22636 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22637 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22638 | shlibpath_var=LD_LIBRARY_PATH |
---|
22639 | ;; |
---|
22640 | |
---|
22641 | *) |
---|
22642 | dynamic_linker=no |
---|
22643 | ;; |
---|
22644 | esac |
---|
22645 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
22646 | echo "${ECHO_T}$dynamic_linker" >&6; } |
---|
22647 | test "$dynamic_linker" = no && can_build_shared=no |
---|
22648 | |
---|
22649 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
22650 | if test "$GCC" = yes; then |
---|
22651 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
22652 | fi |
---|
22653 | |
---|
22654 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
22655 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
---|
22656 | hardcode_action_CXX= |
---|
22657 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
---|
22658 | test -n "$runpath_var_CXX" || \ |
---|
22659 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
---|
22660 | |
---|
22661 | # We can hardcode non-existant directories. |
---|
22662 | if test "$hardcode_direct_CXX" != no && |
---|
22663 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
22664 | # have to relink, otherwise we might link with an installed library |
---|
22665 | # when we should be linking with a yet-to-be-installed one |
---|
22666 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
---|
22667 | test "$hardcode_minus_L_CXX" != no; then |
---|
22668 | # Linking always hardcodes the temporary library directory. |
---|
22669 | hardcode_action_CXX=relink |
---|
22670 | else |
---|
22671 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
22672 | hardcode_action_CXX=immediate |
---|
22673 | fi |
---|
22674 | else |
---|
22675 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
22676 | # directories. |
---|
22677 | hardcode_action_CXX=unsupported |
---|
22678 | fi |
---|
22679 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
---|
22680 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
---|
22681 | |
---|
22682 | if test "$hardcode_action_CXX" = relink; then |
---|
22683 | # Fast installation is not supported |
---|
22684 | enable_fast_install=no |
---|
22685 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
22686 | test "$enable_shared" = no; then |
---|
22687 | # Fast installation is not necessary |
---|
22688 | enable_fast_install=needless |
---|
22689 | fi |
---|
22690 | |
---|
22691 | |
---|
22692 | # The else clause should only fire when bootstrapping the |
---|
22693 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
22694 | # with your package, and you will get complaints that there are |
---|
22695 | # no rules to generate ltmain.sh. |
---|
22696 | if test -f "$ltmain"; then |
---|
22697 | # See if we are running on zsh, and set the options which allow our commands through |
---|
22698 | # without removal of \ escapes. |
---|
22699 | if test -n "${ZSH_VERSION+set}" ; then |
---|
22700 | setopt NO_GLOB_SUBST |
---|
22701 | fi |
---|
22702 | # Now quote all the things that may contain metacharacters while being |
---|
22703 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
22704 | # variables and quote the copies for generation of the libtool script. |
---|
22705 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
---|
22706 | SED SHELL STRIP \ |
---|
22707 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
22708 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
22709 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
22710 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
22711 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
22712 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
22713 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
22714 | compiler_CXX \ |
---|
22715 | CC_CXX \ |
---|
22716 | LD_CXX \ |
---|
22717 | lt_prog_compiler_wl_CXX \ |
---|
22718 | lt_prog_compiler_pic_CXX \ |
---|
22719 | lt_prog_compiler_static_CXX \ |
---|
22720 | lt_prog_compiler_no_builtin_flag_CXX \ |
---|
22721 | export_dynamic_flag_spec_CXX \ |
---|
22722 | thread_safe_flag_spec_CXX \ |
---|
22723 | whole_archive_flag_spec_CXX \ |
---|
22724 | enable_shared_with_static_runtimes_CXX \ |
---|
22725 | old_archive_cmds_CXX \ |
---|
22726 | old_archive_from_new_cmds_CXX \ |
---|
22727 | predep_objects_CXX \ |
---|
22728 | postdep_objects_CXX \ |
---|
22729 | predeps_CXX \ |
---|
22730 | postdeps_CXX \ |
---|
22731 | compiler_lib_search_path_CXX \ |
---|
22732 | archive_cmds_CXX \ |
---|
22733 | archive_expsym_cmds_CXX \ |
---|
22734 | postinstall_cmds_CXX \ |
---|
22735 | postuninstall_cmds_CXX \ |
---|
22736 | old_archive_from_expsyms_cmds_CXX \ |
---|
22737 | allow_undefined_flag_CXX \ |
---|
22738 | no_undefined_flag_CXX \ |
---|
22739 | export_symbols_cmds_CXX \ |
---|
22740 | hardcode_libdir_flag_spec_CXX \ |
---|
22741 | hardcode_libdir_flag_spec_ld_CXX \ |
---|
22742 | hardcode_libdir_separator_CXX \ |
---|
22743 | hardcode_automatic_CXX \ |
---|
22744 | module_cmds_CXX \ |
---|
22745 | module_expsym_cmds_CXX \ |
---|
22746 | lt_cv_prog_compiler_c_o_CXX \ |
---|
22747 | fix_srcfile_path_CXX \ |
---|
22748 | exclude_expsyms_CXX \ |
---|
22749 | include_expsyms_CXX; do |
---|
22750 | |
---|
22751 | case $var in |
---|
22752 | old_archive_cmds_CXX | \ |
---|
22753 | old_archive_from_new_cmds_CXX | \ |
---|
22754 | archive_cmds_CXX | \ |
---|
22755 | archive_expsym_cmds_CXX | \ |
---|
22756 | module_cmds_CXX | \ |
---|
22757 | module_expsym_cmds_CXX | \ |
---|
22758 | old_archive_from_expsyms_cmds_CXX | \ |
---|
22759 | export_symbols_cmds_CXX | \ |
---|
22760 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
22761 | postinstall_cmds | postuninstall_cmds | \ |
---|
22762 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
22763 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
22764 | # Double-quote double-evaled strings. |
---|
22765 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
22766 | ;; |
---|
22767 | *) |
---|
22768 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
22769 | ;; |
---|
22770 | esac |
---|
22771 | done |
---|
22772 | |
---|
22773 | case $lt_echo in |
---|
22774 | *'\$0 --fallback-echo"') |
---|
22775 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
22776 | ;; |
---|
22777 | esac |
---|
22778 | |
---|
22779 | cfgfile="$ofile" |
---|
22780 | |
---|
22781 | cat <<__EOF__ >> "$cfgfile" |
---|
22782 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
22783 | |
---|
22784 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
22785 | |
---|
22786 | # Shell to use when invoking shell scripts. |
---|
22787 | SHELL=$lt_SHELL |
---|
22788 | |
---|
22789 | # Whether or not to build shared libraries. |
---|
22790 | build_libtool_libs=$enable_shared |
---|
22791 | |
---|
22792 | # Whether or not to build static libraries. |
---|
22793 | build_old_libs=$enable_static |
---|
22794 | |
---|
22795 | # Whether or not to add -lc for building shared libraries. |
---|
22796 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
---|
22797 | |
---|
22798 | # Whether or not to disallow shared libs when runtime libs are static |
---|
22799 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
---|
22800 | |
---|
22801 | # Whether or not to optimize for fast installation. |
---|
22802 | fast_install=$enable_fast_install |
---|
22803 | |
---|
22804 | # The host system. |
---|
22805 | host_alias=$host_alias |
---|
22806 | host=$host |
---|
22807 | host_os=$host_os |
---|
22808 | |
---|
22809 | # The build system. |
---|
22810 | build_alias=$build_alias |
---|
22811 | build=$build |
---|
22812 | build_os=$build_os |
---|
22813 | |
---|
22814 | # An echo program that does not interpret backslashes. |
---|
22815 | echo=$lt_echo |
---|
22816 | |
---|
22817 | # The archiver. |
---|
22818 | AR=$lt_AR |
---|
22819 | AR_FLAGS=$lt_AR_FLAGS |
---|
22820 | |
---|
22821 | # A C compiler. |
---|
22822 | LTCC=$lt_LTCC |
---|
22823 | |
---|
22824 | # LTCC compiler flags. |
---|
22825 | LTCFLAGS=$lt_LTCFLAGS |
---|
22826 | |
---|
22827 | # A language-specific compiler. |
---|
22828 | CC=$lt_compiler_CXX |
---|
22829 | |
---|
22830 | # Is the compiler the GNU C compiler? |
---|
22831 | with_gcc=$GCC_CXX |
---|
22832 | |
---|
22833 | # An ERE matcher. |
---|
22834 | EGREP=$lt_EGREP |
---|
22835 | |
---|
22836 | # The linker used to build libraries. |
---|
22837 | LD=$lt_LD_CXX |
---|
22838 | |
---|
22839 | # Whether we need hard or soft links. |
---|
22840 | LN_S=$lt_LN_S |
---|
22841 | |
---|
22842 | # A BSD-compatible nm program. |
---|
22843 | NM=$lt_NM |
---|
22844 | |
---|
22845 | # A symbol stripping program |
---|
22846 | STRIP=$lt_STRIP |
---|
22847 | |
---|
22848 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
22849 | MAGIC_CMD=$MAGIC_CMD |
---|
22850 | |
---|
22851 | # Used on cygwin: DLL creation program. |
---|
22852 | DLLTOOL="$DLLTOOL" |
---|
22853 | |
---|
22854 | # Used on cygwin: object dumper. |
---|
22855 | OBJDUMP="$OBJDUMP" |
---|
22856 | |
---|
22857 | # Used on cygwin: assembler. |
---|
22858 | AS="$AS" |
---|
22859 | |
---|
22860 | # The name of the directory that contains temporary libtool files. |
---|
22861 | objdir=$objdir |
---|
22862 | |
---|
22863 | # How to create reloadable object files. |
---|
22864 | reload_flag=$lt_reload_flag |
---|
22865 | reload_cmds=$lt_reload_cmds |
---|
22866 | |
---|
22867 | # How to pass a linker flag through the compiler. |
---|
22868 | wl=$lt_lt_prog_compiler_wl_CXX |
---|
22869 | |
---|
22870 | # Object file suffix (normally "o"). |
---|
22871 | objext="$ac_objext" |
---|
22872 | |
---|
22873 | # Old archive suffix (normally "a"). |
---|
22874 | libext="$libext" |
---|
22875 | |
---|
22876 | # Shared library suffix (normally ".so"). |
---|
22877 | shrext_cmds='$shrext_cmds' |
---|
22878 | |
---|
22879 | # Executable file suffix (normally ""). |
---|
22880 | exeext="$exeext" |
---|
22881 | |
---|
22882 | # Additional compiler flags for building library objects. |
---|
22883 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
---|
22884 | pic_mode=$pic_mode |
---|
22885 | |
---|
22886 | # What is the maximum length of a command? |
---|
22887 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
22888 | |
---|
22889 | # Does compiler simultaneously support -c and -o options? |
---|
22890 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
---|
22891 | |
---|
22892 | # Must we lock files when doing compilation? |
---|
22893 | need_locks=$lt_need_locks |
---|
22894 | |
---|
22895 | # Do we need the lib prefix for modules? |
---|
22896 | need_lib_prefix=$need_lib_prefix |
---|
22897 | |
---|
22898 | # Do we need a version for libraries? |
---|
22899 | need_version=$need_version |
---|
22900 | |
---|
22901 | # Whether dlopen is supported. |
---|
22902 | dlopen_support=$enable_dlopen |
---|
22903 | |
---|
22904 | # Whether dlopen of programs is supported. |
---|
22905 | dlopen_self=$enable_dlopen_self |
---|
22906 | |
---|
22907 | # Whether dlopen of statically linked programs is supported. |
---|
22908 | dlopen_self_static=$enable_dlopen_self_static |
---|
22909 | |
---|
22910 | # Compiler flag to prevent dynamic linking. |
---|
22911 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
---|
22912 | |
---|
22913 | # Compiler flag to turn off builtin functions. |
---|
22914 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
---|
22915 | |
---|
22916 | # Compiler flag to allow reflexive dlopens. |
---|
22917 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
---|
22918 | |
---|
22919 | # Compiler flag to generate shared objects directly from archives. |
---|
22920 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
---|
22921 | |
---|
22922 | # Compiler flag to generate thread-safe objects. |
---|
22923 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
---|
22924 | |
---|
22925 | # Library versioning type. |
---|
22926 | version_type=$version_type |
---|
22927 | |
---|
22928 | # Format of library name prefix. |
---|
22929 | libname_spec=$lt_libname_spec |
---|
22930 | |
---|
22931 | # List of archive names. First name is the real one, the rest are links. |
---|
22932 | # The last name is the one that the linker finds with -lNAME. |
---|
22933 | library_names_spec=$lt_library_names_spec |
---|
22934 | |
---|
22935 | # The coded name of the library, if different from the real name. |
---|
22936 | soname_spec=$lt_soname_spec |
---|
22937 | |
---|
22938 | # Commands used to build and install an old-style archive. |
---|
22939 | RANLIB=$lt_RANLIB |
---|
22940 | old_archive_cmds=$lt_old_archive_cmds_CXX |
---|
22941 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
22942 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
22943 | |
---|
22944 | # Create an old-style archive from a shared archive. |
---|
22945 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
---|
22946 | |
---|
22947 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
22948 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
---|
22949 | |
---|
22950 | # Commands used to build and install a shared archive. |
---|
22951 | archive_cmds=$lt_archive_cmds_CXX |
---|
22952 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
---|
22953 | postinstall_cmds=$lt_postinstall_cmds |
---|
22954 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
22955 | |
---|
22956 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
22957 | module_cmds=$lt_module_cmds_CXX |
---|
22958 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
---|
22959 | |
---|
22960 | # Commands to strip libraries. |
---|
22961 | old_striplib=$lt_old_striplib |
---|
22962 | striplib=$lt_striplib |
---|
22963 | |
---|
22964 | # Dependencies to place before the objects being linked to create a |
---|
22965 | # shared library. |
---|
22966 | predep_objects=$lt_predep_objects_CXX |
---|
22967 | |
---|
22968 | # Dependencies to place after the objects being linked to create a |
---|
22969 | # shared library. |
---|
22970 | postdep_objects=$lt_postdep_objects_CXX |
---|
22971 | |
---|
22972 | # Dependencies to place before the objects being linked to create a |
---|
22973 | # shared library. |
---|
22974 | predeps=$lt_predeps_CXX |
---|
22975 | |
---|
22976 | # Dependencies to place after the objects being linked to create a |
---|
22977 | # shared library. |
---|
22978 | postdeps=$lt_postdeps_CXX |
---|
22979 | |
---|
22980 | # The library search path used internally by the compiler when linking |
---|
22981 | # a shared library. |
---|
22982 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
---|
22983 | |
---|
22984 | # Method to check whether dependent libraries are shared objects. |
---|
22985 | deplibs_check_method=$lt_deplibs_check_method |
---|
22986 | |
---|
22987 | # Command to use when deplibs_check_method == file_magic. |
---|
22988 | file_magic_cmd=$lt_file_magic_cmd |
---|
22989 | |
---|
22990 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
22991 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
---|
22992 | |
---|
22993 | # Flag that forces no undefined symbols. |
---|
22994 | no_undefined_flag=$lt_no_undefined_flag_CXX |
---|
22995 | |
---|
22996 | # Commands used to finish a libtool library installation in a directory. |
---|
22997 | finish_cmds=$lt_finish_cmds |
---|
22998 | |
---|
22999 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
23000 | finish_eval=$lt_finish_eval |
---|
23001 | |
---|
23002 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
23003 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
23004 | |
---|
23005 | # Transform the output of nm in a proper C declaration |
---|
23006 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
23007 | |
---|
23008 | # Transform the output of nm in a C name address pair |
---|
23009 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
23010 | |
---|
23011 | # This is the shared library runtime path variable. |
---|
23012 | runpath_var=$runpath_var |
---|
23013 | |
---|
23014 | # This is the shared library path variable. |
---|
23015 | shlibpath_var=$shlibpath_var |
---|
23016 | |
---|
23017 | # Is shlibpath searched before the hard-coded library search path? |
---|
23018 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
23019 | |
---|
23020 | # How to hardcode a shared library path into an executable. |
---|
23021 | hardcode_action=$hardcode_action_CXX |
---|
23022 | |
---|
23023 | # Whether we should hardcode library paths into libraries. |
---|
23024 | hardcode_into_libs=$hardcode_into_libs |
---|
23025 | |
---|
23026 | # Flag to hardcode \$libdir into a binary during linking. |
---|
23027 | # This must work even if \$libdir does not exist. |
---|
23028 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
---|
23029 | |
---|
23030 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
23031 | # a binary during linking. This must work even if \$libdir does |
---|
23032 | # not exist. |
---|
23033 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
---|
23034 | |
---|
23035 | # Whether we need a single -rpath flag with a separated argument. |
---|
23036 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
---|
23037 | |
---|
23038 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
23039 | # resulting binary. |
---|
23040 | hardcode_direct=$hardcode_direct_CXX |
---|
23041 | |
---|
23042 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
23043 | # resulting binary. |
---|
23044 | hardcode_minus_L=$hardcode_minus_L_CXX |
---|
23045 | |
---|
23046 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
23047 | # the resulting binary. |
---|
23048 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
---|
23049 | |
---|
23050 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
23051 | # and all subsequent libraries and executables linked against it. |
---|
23052 | hardcode_automatic=$hardcode_automatic_CXX |
---|
23053 | |
---|
23054 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
23055 | # restored at relink time. |
---|
23056 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
23057 | |
---|
23058 | # Whether libtool must link a program against all its dependency libraries. |
---|
23059 | link_all_deplibs=$link_all_deplibs_CXX |
---|
23060 | |
---|
23061 | # Compile-time system search path for libraries |
---|
23062 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
23063 | |
---|
23064 | # Run-time system search path for libraries |
---|
23065 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
23066 | |
---|
23067 | # Fix the shell variable \$srcfile for the compiler. |
---|
23068 | fix_srcfile_path=$lt_fix_srcfile_path |
---|
23069 | |
---|
23070 | # Set to yes if exported symbols are required. |
---|
23071 | always_export_symbols=$always_export_symbols_CXX |
---|
23072 | |
---|
23073 | # The commands to list exported symbols. |
---|
23074 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
---|
23075 | |
---|
23076 | # The commands to extract the exported symbol list from a shared archive. |
---|
23077 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
23078 | |
---|
23079 | # Symbols that should not be listed in the preloaded symbols. |
---|
23080 | exclude_expsyms=$lt_exclude_expsyms_CXX |
---|
23081 | |
---|
23082 | # Symbols that must always be exported. |
---|
23083 | include_expsyms=$lt_include_expsyms_CXX |
---|
23084 | |
---|
23085 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
23086 | |
---|
23087 | __EOF__ |
---|
23088 | |
---|
23089 | |
---|
23090 | else |
---|
23091 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
23092 | # `config.status --recheck' to rerun these tests and create the |
---|
23093 | # libtool script then. |
---|
23094 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
23095 | if test -f "$ltmain_in"; then |
---|
23096 | test -f Makefile && make "$ltmain" |
---|
23097 | fi |
---|
23098 | fi |
---|
23099 | |
---|
23100 | |
---|
23101 | ac_ext=c |
---|
23102 | ac_cpp='$CPP $CPPFLAGS' |
---|
23103 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
23104 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
23105 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
23106 | |
---|
23107 | CC=$lt_save_CC |
---|
23108 | LDCXX=$LD |
---|
23109 | LD=$lt_save_LD |
---|
23110 | GCC=$lt_save_GCC |
---|
23111 | with_gnu_ldcxx=$with_gnu_ld |
---|
23112 | with_gnu_ld=$lt_save_with_gnu_ld |
---|
23113 | lt_cv_path_LDCXX=$lt_cv_path_LD |
---|
23114 | lt_cv_path_LD=$lt_save_path_LD |
---|
23115 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
---|
23116 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
---|
23117 | |
---|
23118 | |
---|
23119 | # OGRE_CFLAGS contains the compiler flags crucial for stand-alone client |
---|
23120 | # programs. They are exported via pkg-config, but not used while building |
---|
23121 | # Ogre itself; instead, they are defined in config.h. |
---|
23122 | |
---|
23123 | |
---|
23124 | # Check if compiler supports symbol visibility |
---|
23125 | # There are quirks for x86_64 and debug builds with gcc < 4.2 |
---|
23126 | ac_ext=cpp |
---|
23127 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
23128 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
23129 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
23130 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
23131 | |
---|
23132 | |
---|
23133 | { echo "$as_me:$LINENO: checking if $CXX supports -fvisibility" >&5 |
---|
23134 | echo $ECHO_N "checking if $CXX supports -fvisibility... $ECHO_C" >&6; } |
---|
23135 | if test "${ogre_prog_compiler_supports_visibility+set}" = set; then |
---|
23136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23137 | else |
---|
23138 | ogre_prog_compiler_supports_visibility=no |
---|
23139 | ac_outfile=conftest.$ac_objext |
---|
23140 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
23141 | lt_compiler_flag="-fvisibility=hidden -fvisibility-inlines-hidden" |
---|
23142 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
23143 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
23144 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
23145 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
23146 | # The option is referenced via a variable to avoid confusing sed. |
---|
23147 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
23148 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
23149 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
23150 | -e 's:$: $lt_compiler_flag:'` |
---|
23151 | (eval echo "\"\$as_me:23151: $lt_compile\"" >&5) |
---|
23152 | (eval "$lt_compile" 2>conftest.err) |
---|
23153 | ac_status=$? |
---|
23154 | cat conftest.err >&5 |
---|
23155 | echo "$as_me:23155: \$? = $ac_status" >&5 |
---|
23156 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
23157 | # The compiler can only warn and ignore the option if not recognized |
---|
23158 | # So say no if there are warnings other than the usual output. |
---|
23159 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
---|
23160 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
23161 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
23162 | ogre_prog_compiler_supports_visibility=yes |
---|
23163 | fi |
---|
23164 | fi |
---|
23165 | $rm conftest* |
---|
23166 | |
---|
23167 | fi |
---|
23168 | { echo "$as_me:$LINENO: result: $ogre_prog_compiler_supports_visibility" >&5 |
---|
23169 | echo "${ECHO_T}$ogre_prog_compiler_supports_visibility" >&6; } |
---|
23170 | |
---|
23171 | if test x"$ogre_prog_compiler_supports_visibility" = xyes; then |
---|
23172 | CFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden -DOGRE_GCC_VISIBILITY"; |
---|
23173 | case $target_cpu in |
---|
23174 | x86_64* ) |
---|
23175 | if ! echo "$CFLAGS $CXXFLAGS" | grep -q "\-O"; then |
---|
23176 | echo "***********************************************************************" |
---|
23177 | echo "WARNING: It looks like you're doing a debug build for an x86_64 target." |
---|
23178 | echo "The -fvisibility-inlines-hidden flag is known to give problems in such" |
---|
23179 | echo "situations with libstdc++ < 4.2. Disabling the compiler flag." |
---|
23180 | echo "***********************************************************************" |
---|
23181 | CFLAGS_VISIBILITY="-fvisibility=hidden -DOGRE_GCC_VISIBILITY" |
---|
23182 | fi |
---|
23183 | ;; |
---|
23184 | esac |
---|
23185 | case $CXX in |
---|
23186 | icpc ) |
---|
23187 | echo "***********************************************************************" |
---|
23188 | echo "WARNING: The intel compiler currently has bugs in its -fvisibility" |
---|
23189 | echo "implementation. Disabling the compiler flag." |
---|
23190 | echo "***********************************************************************" |
---|
23191 | CFLAGS_VISIBILITY="" |
---|
23192 | ;; |
---|
23193 | esac |
---|
23194 | |
---|
23195 | else |
---|
23196 | : |
---|
23197 | fi |
---|
23198 | |
---|
23199 | |
---|
23200 | ac_ext=c |
---|
23201 | ac_cpp='$CPP $CPPFLAGS' |
---|
23202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
23203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
23204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
23205 | |
---|
23206 | |
---|
23207 | |
---|
23208 | # Check whether --with-stlport was given. |
---|
23209 | if test "${with_stlport+set}" = set; then |
---|
23210 | withval=$with_stlport; ac_cv_use_stlport=$withval |
---|
23211 | else |
---|
23212 | ac_cv_use_stlport=no |
---|
23213 | fi |
---|
23214 | |
---|
23215 | { echo "$as_me:$LINENO: checking whether to use STLPort" >&5 |
---|
23216 | echo $ECHO_N "checking whether to use STLPort... $ECHO_C" >&6; } |
---|
23217 | if test "${ac_cv_use_stlport+set}" = set; then |
---|
23218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23219 | else |
---|
23220 | ac_cv_use_stlport=no |
---|
23221 | fi |
---|
23222 | { echo "$as_me:$LINENO: result: $ac_cv_use_stlport" >&5 |
---|
23223 | echo "${ECHO_T}$ac_cv_use_stlport" >&6; } |
---|
23224 | if test x$ac_cv_use_stlport != xno; then |
---|
23225 | STLPORT_CFLAGS="-I$ac_cv_use_stlport/stlport" |
---|
23226 | STLPORT_LIBS="-L$ac_cv_use_stlport/lib -lstlport" |
---|
23227 | fi |
---|
23228 | |
---|
23229 | |
---|
23230 | |
---|
23231 | |
---|
23232 | # Check whether --with-ft-prefix was given. |
---|
23233 | if test "${with_ft_prefix+set}" = set; then |
---|
23234 | withval=$with_ft_prefix; ft_config_prefix="$withval" |
---|
23235 | else |
---|
23236 | ft_config_prefix="" |
---|
23237 | fi |
---|
23238 | |
---|
23239 | |
---|
23240 | # Check whether --with-ft-exec-prefix was given. |
---|
23241 | if test "${with_ft_exec_prefix+set}" = set; then |
---|
23242 | withval=$with_ft_exec_prefix; ft_config_exec_prefix="$withval" |
---|
23243 | else |
---|
23244 | ft_config_exec_prefix="" |
---|
23245 | fi |
---|
23246 | |
---|
23247 | # Check whether --enable-freetypetest was given. |
---|
23248 | if test "${enable_freetypetest+set}" = set; then |
---|
23249 | enableval=$enable_freetypetest; |
---|
23250 | else |
---|
23251 | enable_fttest=yes |
---|
23252 | fi |
---|
23253 | |
---|
23254 | |
---|
23255 | if test x$ft_config_exec_prefix != x ; then |
---|
23256 | ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix" |
---|
23257 | if test x${FT2_CONFIG+set} != xset ; then |
---|
23258 | FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config |
---|
23259 | fi |
---|
23260 | fi |
---|
23261 | if test x$ft_config_prefix != x ; then |
---|
23262 | ft_config_args="$ft_config_args --prefix=$ft_config_prefix" |
---|
23263 | if test x${FT2_CONFIG+set} != xset ; then |
---|
23264 | FT2_CONFIG=$ft_config_prefix/bin/freetype-config |
---|
23265 | fi |
---|
23266 | fi |
---|
23267 | # Extract the first word of "freetype-config", so it can be a program name with args. |
---|
23268 | set dummy freetype-config; ac_word=$2 |
---|
23269 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
23270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
23271 | if test "${ac_cv_path_FT2_CONFIG+set}" = set; then |
---|
23272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23273 | else |
---|
23274 | case $FT2_CONFIG in |
---|
23275 | [\\/]* | ?:[\\/]*) |
---|
23276 | ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path. |
---|
23277 | ;; |
---|
23278 | *) |
---|
23279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
23280 | for as_dir in $PATH |
---|
23281 | do |
---|
23282 | IFS=$as_save_IFS |
---|
23283 | test -z "$as_dir" && as_dir=. |
---|
23284 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
23285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
23286 | ac_cv_path_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
23287 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
23288 | break 2 |
---|
23289 | fi |
---|
23290 | done |
---|
23291 | done |
---|
23292 | IFS=$as_save_IFS |
---|
23293 | |
---|
23294 | test -z "$ac_cv_path_FT2_CONFIG" && ac_cv_path_FT2_CONFIG="no" |
---|
23295 | ;; |
---|
23296 | esac |
---|
23297 | fi |
---|
23298 | FT2_CONFIG=$ac_cv_path_FT2_CONFIG |
---|
23299 | if test -n "$FT2_CONFIG"; then |
---|
23300 | { echo "$as_me:$LINENO: result: $FT2_CONFIG" >&5 |
---|
23301 | echo "${ECHO_T}$FT2_CONFIG" >&6; } |
---|
23302 | else |
---|
23303 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
23304 | echo "${ECHO_T}no" >&6; } |
---|
23305 | fi |
---|
23306 | |
---|
23307 | |
---|
23308 | |
---|
23309 | min_ft_version=9.0.0 |
---|
23310 | { echo "$as_me:$LINENO: checking for FreeType - version >= $min_ft_version" >&5 |
---|
23311 | echo $ECHO_N "checking for FreeType - version >= $min_ft_version... $ECHO_C" >&6; } |
---|
23312 | no_ft="" |
---|
23313 | if test "$FT2_CONFIG" = "no" ; then |
---|
23314 | no_ft=yes |
---|
23315 | else |
---|
23316 | FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags` |
---|
23317 | FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs` |
---|
23318 | ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \ |
---|
23319 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
23320 | ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \ |
---|
23321 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
23322 | ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \ |
---|
23323 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
23324 | ft_min_major_version=`echo $min_ft_version | \ |
---|
23325 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
23326 | ft_min_minor_version=`echo $min_ft_version | \ |
---|
23327 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
23328 | ft_min_micro_version=`echo $min_ft_version | \ |
---|
23329 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
23330 | if test x$enable_fttest = xyes ; then |
---|
23331 | ft_config_is_lt="" |
---|
23332 | if test $ft_config_major_version -lt $ft_min_major_version ; then |
---|
23333 | ft_config_is_lt=yes |
---|
23334 | else |
---|
23335 | if test $ft_config_major_version -eq $ft_min_major_version ; then |
---|
23336 | if test $ft_config_minor_version -lt $ft_min_minor_version ; then |
---|
23337 | ft_config_is_lt=yes |
---|
23338 | else |
---|
23339 | if test $ft_config_minor_version -eq $ft_min_minor_version ; then |
---|
23340 | if test $ft_config_micro_version -lt $ft_min_micro_version ; then |
---|
23341 | ft_config_is_lt=yes |
---|
23342 | fi |
---|
23343 | fi |
---|
23344 | fi |
---|
23345 | fi |
---|
23346 | fi |
---|
23347 | if test x$ft_config_is_lt = xyes ; then |
---|
23348 | no_ft=yes |
---|
23349 | else |
---|
23350 | ac_save_CFLAGS="$CFLAGS" |
---|
23351 | ac_save_LIBS="$LIBS" |
---|
23352 | CFLAGS="$CFLAGS $FT2_CFLAGS" |
---|
23353 | LIBS="$FT2_LIBS $LIBS" |
---|
23354 | if test "$cross_compiling" = yes; then |
---|
23355 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
23356 | else |
---|
23357 | cat >conftest.$ac_ext <<_ACEOF |
---|
23358 | /* confdefs.h. */ |
---|
23359 | _ACEOF |
---|
23360 | cat confdefs.h >>conftest.$ac_ext |
---|
23361 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23362 | /* end confdefs.h. */ |
---|
23363 | |
---|
23364 | #include <ft2build.h> |
---|
23365 | #include FT_FREETYPE_H |
---|
23366 | #include <stdio.h> |
---|
23367 | #include <stdlib.h> |
---|
23368 | |
---|
23369 | int |
---|
23370 | main() |
---|
23371 | { |
---|
23372 | FT_Library library; |
---|
23373 | FT_Error error; |
---|
23374 | |
---|
23375 | error = FT_Init_FreeType(&library); |
---|
23376 | |
---|
23377 | if (error) |
---|
23378 | return 1; |
---|
23379 | else |
---|
23380 | { |
---|
23381 | FT_Done_FreeType(library); |
---|
23382 | return 0; |
---|
23383 | } |
---|
23384 | } |
---|
23385 | |
---|
23386 | _ACEOF |
---|
23387 | rm -f conftest$ac_exeext |
---|
23388 | if { (ac_try="$ac_link" |
---|
23389 | case "(($ac_try" in |
---|
23390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23391 | *) ac_try_echo=$ac_try;; |
---|
23392 | esac |
---|
23393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23394 | (eval "$ac_link") 2>&5 |
---|
23395 | ac_status=$? |
---|
23396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23397 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
23398 | { (case "(($ac_try" in |
---|
23399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23400 | *) ac_try_echo=$ac_try;; |
---|
23401 | esac |
---|
23402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23403 | (eval "$ac_try") 2>&5 |
---|
23404 | ac_status=$? |
---|
23405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23406 | (exit $ac_status); }; }; then |
---|
23407 | : |
---|
23408 | else |
---|
23409 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
23410 | echo "$as_me: failed program was:" >&5 |
---|
23411 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23412 | |
---|
23413 | ( exit $ac_status ) |
---|
23414 | no_ft=yes |
---|
23415 | fi |
---|
23416 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
23417 | fi |
---|
23418 | |
---|
23419 | |
---|
23420 | CFLAGS="$ac_save_CFLAGS" |
---|
23421 | LIBS="$ac_save_LIBS" |
---|
23422 | fi # test $ft_config_version -lt $ft_min_version |
---|
23423 | fi # test x$enable_fttest = xyes |
---|
23424 | fi # test "$FT2_CONFIG" = "no" |
---|
23425 | if test x$no_ft = x ; then |
---|
23426 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
23427 | echo "${ECHO_T}yes" >&6; } |
---|
23428 | : |
---|
23429 | else |
---|
23430 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
23431 | echo "${ECHO_T}no" >&6; } |
---|
23432 | if test "$FT2_CONFIG" = "no" ; then |
---|
23433 | echo "*** The freetype-config script installed by FreeType 2 could not be found." |
---|
23434 | echo "*** If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in" |
---|
23435 | echo "*** your path, or set the FT2_CONFIG environment variable to the" |
---|
23436 | echo "*** full path to freetype-config." |
---|
23437 | else |
---|
23438 | if test x$ft_config_is_lt = xyes ; then |
---|
23439 | echo "*** Your installed version of the FreeType 2 library is too old." |
---|
23440 | echo "*** If you have different versions of FreeType 2, make sure that" |
---|
23441 | echo "*** correct values for --with-ft-prefix or --with-ft-exec-prefix" |
---|
23442 | echo "*** are used, or set the FT2_CONFIG environment variable to the" |
---|
23443 | echo "*** full path to freetype-config." |
---|
23444 | else |
---|
23445 | echo "*** The FreeType test program failed to run. If your system uses" |
---|
23446 | echo "*** shared libraries and they are installed outside the normal" |
---|
23447 | echo "*** system library path, make sure the variable LD_LIBRARY_PATH" |
---|
23448 | echo "*** (or whatever is appropiate for your system) is correctly set." |
---|
23449 | fi |
---|
23450 | fi |
---|
23451 | FT2_CFLAGS="" |
---|
23452 | FT2_LIBS="" |
---|
23453 | : |
---|
23454 | fi |
---|
23455 | |
---|
23456 | |
---|
23457 | |
---|
23458 | |
---|
23459 | |
---|
23460 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
23461 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
23462 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
23463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23464 | else |
---|
23465 | ac_check_lib_save_LIBS=$LIBS |
---|
23466 | LIBS="-ldl $LIBS" |
---|
23467 | cat >conftest.$ac_ext <<_ACEOF |
---|
23468 | /* confdefs.h. */ |
---|
23469 | _ACEOF |
---|
23470 | cat confdefs.h >>conftest.$ac_ext |
---|
23471 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23472 | /* end confdefs.h. */ |
---|
23473 | |
---|
23474 | /* Override any GCC internal prototype to avoid an error. |
---|
23475 | Use char because int might match the return type of a GCC |
---|
23476 | builtin and then its argument prototype would still apply. */ |
---|
23477 | #ifdef __cplusplus |
---|
23478 | extern "C" |
---|
23479 | #endif |
---|
23480 | char dlopen (); |
---|
23481 | int |
---|
23482 | main () |
---|
23483 | { |
---|
23484 | return dlopen (); |
---|
23485 | ; |
---|
23486 | return 0; |
---|
23487 | } |
---|
23488 | _ACEOF |
---|
23489 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23490 | if { (ac_try="$ac_link" |
---|
23491 | case "(($ac_try" in |
---|
23492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23493 | *) ac_try_echo=$ac_try;; |
---|
23494 | esac |
---|
23495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23496 | (eval "$ac_link") 2>conftest.er1 |
---|
23497 | ac_status=$? |
---|
23498 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23499 | rm -f conftest.er1 |
---|
23500 | cat conftest.err >&5 |
---|
23501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23502 | (exit $ac_status); } && { |
---|
23503 | test -z "$ac_c_werror_flag" || |
---|
23504 | test ! -s conftest.err |
---|
23505 | } && test -s conftest$ac_exeext && |
---|
23506 | $as_test_x conftest$ac_exeext; then |
---|
23507 | ac_cv_lib_dl_dlopen=yes |
---|
23508 | else |
---|
23509 | echo "$as_me: failed program was:" >&5 |
---|
23510 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23511 | |
---|
23512 | ac_cv_lib_dl_dlopen=no |
---|
23513 | fi |
---|
23514 | |
---|
23515 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23516 | conftest$ac_exeext conftest.$ac_ext |
---|
23517 | LIBS=$ac_check_lib_save_LIBS |
---|
23518 | fi |
---|
23519 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
23520 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
23521 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
23522 | cat >>confdefs.h <<_ACEOF |
---|
23523 | #define HAVE_LIBDL 1 |
---|
23524 | _ACEOF |
---|
23525 | |
---|
23526 | LIBS="-ldl $LIBS" |
---|
23527 | |
---|
23528 | fi |
---|
23529 | |
---|
23530 | |
---|
23531 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
---|
23532 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } |
---|
23533 | if test "${ac_cv_lib_m_pow+set}" = set; then |
---|
23534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23535 | else |
---|
23536 | ac_check_lib_save_LIBS=$LIBS |
---|
23537 | LIBS="-lm $LIBS" |
---|
23538 | cat >conftest.$ac_ext <<_ACEOF |
---|
23539 | /* confdefs.h. */ |
---|
23540 | _ACEOF |
---|
23541 | cat confdefs.h >>conftest.$ac_ext |
---|
23542 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23543 | /* end confdefs.h. */ |
---|
23544 | |
---|
23545 | /* Override any GCC internal prototype to avoid an error. |
---|
23546 | Use char because int might match the return type of a GCC |
---|
23547 | builtin and then its argument prototype would still apply. */ |
---|
23548 | #ifdef __cplusplus |
---|
23549 | extern "C" |
---|
23550 | #endif |
---|
23551 | char pow (); |
---|
23552 | int |
---|
23553 | main () |
---|
23554 | { |
---|
23555 | return pow (); |
---|
23556 | ; |
---|
23557 | return 0; |
---|
23558 | } |
---|
23559 | _ACEOF |
---|
23560 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23561 | if { (ac_try="$ac_link" |
---|
23562 | case "(($ac_try" in |
---|
23563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23564 | *) ac_try_echo=$ac_try;; |
---|
23565 | esac |
---|
23566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23567 | (eval "$ac_link") 2>conftest.er1 |
---|
23568 | ac_status=$? |
---|
23569 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23570 | rm -f conftest.er1 |
---|
23571 | cat conftest.err >&5 |
---|
23572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23573 | (exit $ac_status); } && { |
---|
23574 | test -z "$ac_c_werror_flag" || |
---|
23575 | test ! -s conftest.err |
---|
23576 | } && test -s conftest$ac_exeext && |
---|
23577 | $as_test_x conftest$ac_exeext; then |
---|
23578 | ac_cv_lib_m_pow=yes |
---|
23579 | else |
---|
23580 | echo "$as_me: failed program was:" >&5 |
---|
23581 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23582 | |
---|
23583 | ac_cv_lib_m_pow=no |
---|
23584 | fi |
---|
23585 | |
---|
23586 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23587 | conftest$ac_exeext conftest.$ac_ext |
---|
23588 | LIBS=$ac_check_lib_save_LIBS |
---|
23589 | fi |
---|
23590 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
---|
23591 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } |
---|
23592 | if test $ac_cv_lib_m_pow = yes; then |
---|
23593 | cat >>confdefs.h <<_ACEOF |
---|
23594 | #define HAVE_LIBM 1 |
---|
23595 | _ACEOF |
---|
23596 | |
---|
23597 | LIBS="-lm $LIBS" |
---|
23598 | |
---|
23599 | fi |
---|
23600 | |
---|
23601 | |
---|
23602 | { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 |
---|
23603 | echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; } |
---|
23604 | if test "${ac_cv_lib_z_gzopen+set}" = set; then |
---|
23605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23606 | else |
---|
23607 | ac_check_lib_save_LIBS=$LIBS |
---|
23608 | LIBS="-lz $LIBS" |
---|
23609 | cat >conftest.$ac_ext <<_ACEOF |
---|
23610 | /* confdefs.h. */ |
---|
23611 | _ACEOF |
---|
23612 | cat confdefs.h >>conftest.$ac_ext |
---|
23613 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23614 | /* end confdefs.h. */ |
---|
23615 | |
---|
23616 | /* Override any GCC internal prototype to avoid an error. |
---|
23617 | Use char because int might match the return type of a GCC |
---|
23618 | builtin and then its argument prototype would still apply. */ |
---|
23619 | #ifdef __cplusplus |
---|
23620 | extern "C" |
---|
23621 | #endif |
---|
23622 | char gzopen (); |
---|
23623 | int |
---|
23624 | main () |
---|
23625 | { |
---|
23626 | return gzopen (); |
---|
23627 | ; |
---|
23628 | return 0; |
---|
23629 | } |
---|
23630 | _ACEOF |
---|
23631 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23632 | if { (ac_try="$ac_link" |
---|
23633 | case "(($ac_try" in |
---|
23634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23635 | *) ac_try_echo=$ac_try;; |
---|
23636 | esac |
---|
23637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23638 | (eval "$ac_link") 2>conftest.er1 |
---|
23639 | ac_status=$? |
---|
23640 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23641 | rm -f conftest.er1 |
---|
23642 | cat conftest.err >&5 |
---|
23643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23644 | (exit $ac_status); } && { |
---|
23645 | test -z "$ac_c_werror_flag" || |
---|
23646 | test ! -s conftest.err |
---|
23647 | } && test -s conftest$ac_exeext && |
---|
23648 | $as_test_x conftest$ac_exeext; then |
---|
23649 | ac_cv_lib_z_gzopen=yes |
---|
23650 | else |
---|
23651 | echo "$as_me: failed program was:" >&5 |
---|
23652 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23653 | |
---|
23654 | ac_cv_lib_z_gzopen=no |
---|
23655 | fi |
---|
23656 | |
---|
23657 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23658 | conftest$ac_exeext conftest.$ac_ext |
---|
23659 | LIBS=$ac_check_lib_save_LIBS |
---|
23660 | fi |
---|
23661 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 |
---|
23662 | echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; } |
---|
23663 | if test $ac_cv_lib_z_gzopen = yes; then |
---|
23664 | cat >>confdefs.h <<_ACEOF |
---|
23665 | #define HAVE_LIBZ 1 |
---|
23666 | _ACEOF |
---|
23667 | |
---|
23668 | LIBS="-lz $LIBS" |
---|
23669 | |
---|
23670 | fi |
---|
23671 | |
---|
23672 | |
---|
23673 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
---|
23674 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
---|
23675 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
---|
23676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23677 | else |
---|
23678 | ac_check_lib_save_LIBS=$LIBS |
---|
23679 | LIBS="-lpthread $LIBS" |
---|
23680 | cat >conftest.$ac_ext <<_ACEOF |
---|
23681 | /* confdefs.h. */ |
---|
23682 | _ACEOF |
---|
23683 | cat confdefs.h >>conftest.$ac_ext |
---|
23684 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23685 | /* end confdefs.h. */ |
---|
23686 | |
---|
23687 | /* Override any GCC internal prototype to avoid an error. |
---|
23688 | Use char because int might match the return type of a GCC |
---|
23689 | builtin and then its argument prototype would still apply. */ |
---|
23690 | #ifdef __cplusplus |
---|
23691 | extern "C" |
---|
23692 | #endif |
---|
23693 | char pthread_create (); |
---|
23694 | int |
---|
23695 | main () |
---|
23696 | { |
---|
23697 | return pthread_create (); |
---|
23698 | ; |
---|
23699 | return 0; |
---|
23700 | } |
---|
23701 | _ACEOF |
---|
23702 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23703 | if { (ac_try="$ac_link" |
---|
23704 | case "(($ac_try" in |
---|
23705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23706 | *) ac_try_echo=$ac_try;; |
---|
23707 | esac |
---|
23708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23709 | (eval "$ac_link") 2>conftest.er1 |
---|
23710 | ac_status=$? |
---|
23711 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23712 | rm -f conftest.er1 |
---|
23713 | cat conftest.err >&5 |
---|
23714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23715 | (exit $ac_status); } && { |
---|
23716 | test -z "$ac_c_werror_flag" || |
---|
23717 | test ! -s conftest.err |
---|
23718 | } && test -s conftest$ac_exeext && |
---|
23719 | $as_test_x conftest$ac_exeext; then |
---|
23720 | ac_cv_lib_pthread_pthread_create=yes |
---|
23721 | else |
---|
23722 | echo "$as_me: failed program was:" >&5 |
---|
23723 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23724 | |
---|
23725 | ac_cv_lib_pthread_pthread_create=no |
---|
23726 | fi |
---|
23727 | |
---|
23728 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23729 | conftest$ac_exeext conftest.$ac_ext |
---|
23730 | LIBS=$ac_check_lib_save_LIBS |
---|
23731 | fi |
---|
23732 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
---|
23733 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
---|
23734 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
---|
23735 | cat >>confdefs.h <<_ACEOF |
---|
23736 | #define HAVE_LIBPTHREAD 1 |
---|
23737 | _ACEOF |
---|
23738 | |
---|
23739 | LIBS="-lpthread $LIBS" |
---|
23740 | |
---|
23741 | fi |
---|
23742 | |
---|
23743 | { echo "$as_me:$LINENO: checking for snprintf" >&5 |
---|
23744 | echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; } |
---|
23745 | if test "${ac_cv_func_snprintf+set}" = set; then |
---|
23746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23747 | else |
---|
23748 | cat >conftest.$ac_ext <<_ACEOF |
---|
23749 | /* confdefs.h. */ |
---|
23750 | _ACEOF |
---|
23751 | cat confdefs.h >>conftest.$ac_ext |
---|
23752 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23753 | /* end confdefs.h. */ |
---|
23754 | /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf. |
---|
23755 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
23756 | #define snprintf innocuous_snprintf |
---|
23757 | |
---|
23758 | /* System header to define __stub macros and hopefully few prototypes, |
---|
23759 | which can conflict with char snprintf (); below. |
---|
23760 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
23761 | <limits.h> exists even on freestanding compilers. */ |
---|
23762 | |
---|
23763 | #ifdef __STDC__ |
---|
23764 | # include <limits.h> |
---|
23765 | #else |
---|
23766 | # include <assert.h> |
---|
23767 | #endif |
---|
23768 | |
---|
23769 | #undef snprintf |
---|
23770 | |
---|
23771 | /* Override any GCC internal prototype to avoid an error. |
---|
23772 | Use char because int might match the return type of a GCC |
---|
23773 | builtin and then its argument prototype would still apply. */ |
---|
23774 | #ifdef __cplusplus |
---|
23775 | extern "C" |
---|
23776 | #endif |
---|
23777 | char snprintf (); |
---|
23778 | /* The GNU C library defines this for functions which it implements |
---|
23779 | to always fail with ENOSYS. Some functions are actually named |
---|
23780 | something starting with __ and the normal name is an alias. */ |
---|
23781 | #if defined __stub_snprintf || defined __stub___snprintf |
---|
23782 | choke me |
---|
23783 | #endif |
---|
23784 | |
---|
23785 | int |
---|
23786 | main () |
---|
23787 | { |
---|
23788 | return snprintf (); |
---|
23789 | ; |
---|
23790 | return 0; |
---|
23791 | } |
---|
23792 | _ACEOF |
---|
23793 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23794 | if { (ac_try="$ac_link" |
---|
23795 | case "(($ac_try" in |
---|
23796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23797 | *) ac_try_echo=$ac_try;; |
---|
23798 | esac |
---|
23799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23800 | (eval "$ac_link") 2>conftest.er1 |
---|
23801 | ac_status=$? |
---|
23802 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23803 | rm -f conftest.er1 |
---|
23804 | cat conftest.err >&5 |
---|
23805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23806 | (exit $ac_status); } && { |
---|
23807 | test -z "$ac_c_werror_flag" || |
---|
23808 | test ! -s conftest.err |
---|
23809 | } && test -s conftest$ac_exeext && |
---|
23810 | $as_test_x conftest$ac_exeext; then |
---|
23811 | ac_cv_func_snprintf=yes |
---|
23812 | else |
---|
23813 | echo "$as_me: failed program was:" >&5 |
---|
23814 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23815 | |
---|
23816 | ac_cv_func_snprintf=no |
---|
23817 | fi |
---|
23818 | |
---|
23819 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23820 | conftest$ac_exeext conftest.$ac_ext |
---|
23821 | fi |
---|
23822 | { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5 |
---|
23823 | echo "${ECHO_T}$ac_cv_func_snprintf" >&6; } |
---|
23824 | if test $ac_cv_func_snprintf = yes; then |
---|
23825 | |
---|
23826 | cat >>confdefs.h <<\_ACEOF |
---|
23827 | #define HAVE_SNPRINTF |
---|
23828 | _ACEOF |
---|
23829 | |
---|
23830 | fi |
---|
23831 | |
---|
23832 | { echo "$as_me:$LINENO: checking for vsnprintf" >&5 |
---|
23833 | echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; } |
---|
23834 | if test "${ac_cv_func_vsnprintf+set}" = set; then |
---|
23835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23836 | else |
---|
23837 | cat >conftest.$ac_ext <<_ACEOF |
---|
23838 | /* confdefs.h. */ |
---|
23839 | _ACEOF |
---|
23840 | cat confdefs.h >>conftest.$ac_ext |
---|
23841 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23842 | /* end confdefs.h. */ |
---|
23843 | /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf. |
---|
23844 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
23845 | #define vsnprintf innocuous_vsnprintf |
---|
23846 | |
---|
23847 | /* System header to define __stub macros and hopefully few prototypes, |
---|
23848 | which can conflict with char vsnprintf (); below. |
---|
23849 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
23850 | <limits.h> exists even on freestanding compilers. */ |
---|
23851 | |
---|
23852 | #ifdef __STDC__ |
---|
23853 | # include <limits.h> |
---|
23854 | #else |
---|
23855 | # include <assert.h> |
---|
23856 | #endif |
---|
23857 | |
---|
23858 | #undef vsnprintf |
---|
23859 | |
---|
23860 | /* Override any GCC internal prototype to avoid an error. |
---|
23861 | Use char because int might match the return type of a GCC |
---|
23862 | builtin and then its argument prototype would still apply. */ |
---|
23863 | #ifdef __cplusplus |
---|
23864 | extern "C" |
---|
23865 | #endif |
---|
23866 | char vsnprintf (); |
---|
23867 | /* The GNU C library defines this for functions which it implements |
---|
23868 | to always fail with ENOSYS. Some functions are actually named |
---|
23869 | something starting with __ and the normal name is an alias. */ |
---|
23870 | #if defined __stub_vsnprintf || defined __stub___vsnprintf |
---|
23871 | choke me |
---|
23872 | #endif |
---|
23873 | |
---|
23874 | int |
---|
23875 | main () |
---|
23876 | { |
---|
23877 | return vsnprintf (); |
---|
23878 | ; |
---|
23879 | return 0; |
---|
23880 | } |
---|
23881 | _ACEOF |
---|
23882 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23883 | if { (ac_try="$ac_link" |
---|
23884 | case "(($ac_try" in |
---|
23885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23886 | *) ac_try_echo=$ac_try;; |
---|
23887 | esac |
---|
23888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23889 | (eval "$ac_link") 2>conftest.er1 |
---|
23890 | ac_status=$? |
---|
23891 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23892 | rm -f conftest.er1 |
---|
23893 | cat conftest.err >&5 |
---|
23894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23895 | (exit $ac_status); } && { |
---|
23896 | test -z "$ac_c_werror_flag" || |
---|
23897 | test ! -s conftest.err |
---|
23898 | } && test -s conftest$ac_exeext && |
---|
23899 | $as_test_x conftest$ac_exeext; then |
---|
23900 | ac_cv_func_vsnprintf=yes |
---|
23901 | else |
---|
23902 | echo "$as_me: failed program was:" >&5 |
---|
23903 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23904 | |
---|
23905 | ac_cv_func_vsnprintf=no |
---|
23906 | fi |
---|
23907 | |
---|
23908 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23909 | conftest$ac_exeext conftest.$ac_ext |
---|
23910 | fi |
---|
23911 | { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 |
---|
23912 | echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; } |
---|
23913 | if test $ac_cv_func_vsnprintf = yes; then |
---|
23914 | |
---|
23915 | cat >>confdefs.h <<\_ACEOF |
---|
23916 | #define HAVE_VSNPRINTF |
---|
23917 | _ACEOF |
---|
23918 | |
---|
23919 | fi |
---|
23920 | |
---|
23921 | |
---|
23922 | |
---|
23923 | |
---|
23924 | |
---|
23925 | |
---|
23926 | # Check whether --with-cppunit-prefix was given. |
---|
23927 | if test "${with_cppunit_prefix+set}" = set; then |
---|
23928 | withval=$with_cppunit_prefix; cppunit_config_prefix="$withval" |
---|
23929 | else |
---|
23930 | cppunit_config_prefix="" |
---|
23931 | fi |
---|
23932 | |
---|
23933 | |
---|
23934 | # Check whether --with-cppunit-exec-prefix was given. |
---|
23935 | if test "${with_cppunit_exec_prefix+set}" = set; then |
---|
23936 | withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval" |
---|
23937 | else |
---|
23938 | cppunit_config_exec_prefix="" |
---|
23939 | fi |
---|
23940 | |
---|
23941 | |
---|
23942 | if test x$cppunit_config_exec_prefix != x ; then |
---|
23943 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" |
---|
23944 | if test x${CPPUNIT_CONFIG+set} != xset ; then |
---|
23945 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config |
---|
23946 | fi |
---|
23947 | fi |
---|
23948 | if test x$cppunit_config_prefix != x ; then |
---|
23949 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" |
---|
23950 | if test x${CPPUNIT_CONFIG+set} != xset ; then |
---|
23951 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config |
---|
23952 | fi |
---|
23953 | fi |
---|
23954 | |
---|
23955 | # Extract the first word of "cppunit-config", so it can be a program name with args. |
---|
23956 | set dummy cppunit-config; ac_word=$2 |
---|
23957 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
23958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
23959 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then |
---|
23960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23961 | else |
---|
23962 | case $CPPUNIT_CONFIG in |
---|
23963 | [\\/]* | ?:[\\/]*) |
---|
23964 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. |
---|
23965 | ;; |
---|
23966 | *) |
---|
23967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
23968 | for as_dir in $PATH |
---|
23969 | do |
---|
23970 | IFS=$as_save_IFS |
---|
23971 | test -z "$as_dir" && as_dir=. |
---|
23972 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
23973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
23974 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
23975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
23976 | break 2 |
---|
23977 | fi |
---|
23978 | done |
---|
23979 | done |
---|
23980 | IFS=$as_save_IFS |
---|
23981 | |
---|
23982 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" |
---|
23983 | ;; |
---|
23984 | esac |
---|
23985 | fi |
---|
23986 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG |
---|
23987 | if test -n "$CPPUNIT_CONFIG"; then |
---|
23988 | { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 |
---|
23989 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; } |
---|
23990 | else |
---|
23991 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
23992 | echo "${ECHO_T}no" >&6; } |
---|
23993 | fi |
---|
23994 | |
---|
23995 | |
---|
23996 | cppunit_version_min=1.10.0 |
---|
23997 | |
---|
23998 | { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 |
---|
23999 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; } |
---|
24000 | no_cppunit="" |
---|
24001 | if test "$CPPUNIT_CONFIG" = "no" ; then |
---|
24002 | no_cppunit=yes |
---|
24003 | else |
---|
24004 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` |
---|
24005 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` |
---|
24006 | cppunit_version=`$CPPUNIT_CONFIG --version` |
---|
24007 | |
---|
24008 | cppunit_major_version=`echo $cppunit_version | \ |
---|
24009 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
24010 | cppunit_minor_version=`echo $cppunit_version | \ |
---|
24011 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
24012 | cppunit_micro_version=`echo $cppunit_version | \ |
---|
24013 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
24014 | |
---|
24015 | cppunit_major_min=`echo $cppunit_version_min | \ |
---|
24016 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
24017 | cppunit_minor_min=`echo $cppunit_version_min | \ |
---|
24018 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
24019 | cppunit_micro_min=`echo $cppunit_version_min | \ |
---|
24020 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
24021 | |
---|
24022 | cppunit_version_proper=`expr \ |
---|
24023 | $cppunit_major_version \> $cppunit_major_min \| \ |
---|
24024 | $cppunit_major_version \= $cppunit_major_min \& \ |
---|
24025 | $cppunit_minor_version \> $cppunit_minor_min \| \ |
---|
24026 | $cppunit_major_version \= $cppunit_major_min \& \ |
---|
24027 | $cppunit_minor_version \= $cppunit_minor_min \& \ |
---|
24028 | $cppunit_micro_version \>= $cppunit_micro_min ` |
---|
24029 | |
---|
24030 | if test "$cppunit_version_proper" = "1" ; then |
---|
24031 | { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 |
---|
24032 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; } |
---|
24033 | else |
---|
24034 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
24035 | echo "${ECHO_T}no" >&6; } |
---|
24036 | no_cppunit=yes |
---|
24037 | fi |
---|
24038 | fi |
---|
24039 | |
---|
24040 | if test "x$no_cppunit" = x ; then |
---|
24041 | build_unit_tests=true |
---|
24042 | else |
---|
24043 | CPPUNIT_CFLAGS="" |
---|
24044 | CPPUNIT_LIBS="" |
---|
24045 | : |
---|
24046 | fi |
---|
24047 | |
---|
24048 | |
---|
24049 | |
---|
24050 | |
---|
24051 | if test x$build_unit_tests = xtrue; then |
---|
24052 | BUILD_UNIT_TESTS_TRUE= |
---|
24053 | BUILD_UNIT_TESTS_FALSE='#' |
---|
24054 | else |
---|
24055 | BUILD_UNIT_TESTS_TRUE='#' |
---|
24056 | BUILD_UNIT_TESTS_FALSE= |
---|
24057 | fi |
---|
24058 | |
---|
24059 | |
---|
24060 | |
---|
24061 | |
---|
24062 | |
---|
24063 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
---|
24064 | if test -n "$ac_tool_prefix"; then |
---|
24065 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
---|
24066 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
---|
24067 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
24068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
24069 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
24070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24071 | else |
---|
24072 | case $PKG_CONFIG in |
---|
24073 | [\\/]* | ?:[\\/]*) |
---|
24074 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
24075 | ;; |
---|
24076 | *) |
---|
24077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
24078 | for as_dir in $PATH |
---|
24079 | do |
---|
24080 | IFS=$as_save_IFS |
---|
24081 | test -z "$as_dir" && as_dir=. |
---|
24082 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
24083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
24084 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
24085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
24086 | break 2 |
---|
24087 | fi |
---|
24088 | done |
---|
24089 | done |
---|
24090 | IFS=$as_save_IFS |
---|
24091 | |
---|
24092 | ;; |
---|
24093 | esac |
---|
24094 | fi |
---|
24095 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
24096 | if test -n "$PKG_CONFIG"; then |
---|
24097 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
24098 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
---|
24099 | else |
---|
24100 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
24101 | echo "${ECHO_T}no" >&6; } |
---|
24102 | fi |
---|
24103 | |
---|
24104 | |
---|
24105 | fi |
---|
24106 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
---|
24107 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
---|
24108 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
24109 | set dummy pkg-config; ac_word=$2 |
---|
24110 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
24111 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
24112 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
---|
24113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24114 | else |
---|
24115 | case $ac_pt_PKG_CONFIG in |
---|
24116 | [\\/]* | ?:[\\/]*) |
---|
24117 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
---|
24118 | ;; |
---|
24119 | *) |
---|
24120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
24121 | for as_dir in $PATH |
---|
24122 | do |
---|
24123 | IFS=$as_save_IFS |
---|
24124 | test -z "$as_dir" && as_dir=. |
---|
24125 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
24126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
24127 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
24128 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
24129 | break 2 |
---|
24130 | fi |
---|
24131 | done |
---|
24132 | done |
---|
24133 | IFS=$as_save_IFS |
---|
24134 | |
---|
24135 | ;; |
---|
24136 | esac |
---|
24137 | fi |
---|
24138 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
---|
24139 | if test -n "$ac_pt_PKG_CONFIG"; then |
---|
24140 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
---|
24141 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
---|
24142 | else |
---|
24143 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
24144 | echo "${ECHO_T}no" >&6; } |
---|
24145 | fi |
---|
24146 | |
---|
24147 | if test "x$ac_pt_PKG_CONFIG" = x; then |
---|
24148 | PKG_CONFIG="" |
---|
24149 | else |
---|
24150 | case $cross_compiling:$ac_tool_warned in |
---|
24151 | yes:) |
---|
24152 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
24153 | whose name does not start with the host triplet. If you think this |
---|
24154 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
24155 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
24156 | whose name does not start with the host triplet. If you think this |
---|
24157 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
24158 | ac_tool_warned=yes ;; |
---|
24159 | esac |
---|
24160 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
---|
24161 | fi |
---|
24162 | else |
---|
24163 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
---|
24164 | fi |
---|
24165 | |
---|
24166 | fi |
---|
24167 | if test -n "$PKG_CONFIG"; then |
---|
24168 | _pkg_min_version=0.9.0 |
---|
24169 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
---|
24170 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
---|
24171 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
---|
24172 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
24173 | echo "${ECHO_T}yes" >&6; } |
---|
24174 | else |
---|
24175 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
24176 | echo "${ECHO_T}no" >&6; } |
---|
24177 | PKG_CONFIG="" |
---|
24178 | fi |
---|
24179 | |
---|
24180 | fi |
---|
24181 | |
---|
24182 | pkg_failed=no |
---|
24183 | { echo "$as_me:$LINENO: checking for ZZIPLIB" >&5 |
---|
24184 | echo $ECHO_N "checking for ZZIPLIB... $ECHO_C" >&6; } |
---|
24185 | |
---|
24186 | if test -n "$PKG_CONFIG"; then |
---|
24187 | if test -n "$ZZIPLIB_CFLAGS"; then |
---|
24188 | pkg_cv_ZZIPLIB_CFLAGS="$ZZIPLIB_CFLAGS" |
---|
24189 | else |
---|
24190 | if test -n "$PKG_CONFIG" && \ |
---|
24191 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"zziplib\"") >&5 |
---|
24192 | ($PKG_CONFIG --exists --print-errors "zziplib") 2>&5 |
---|
24193 | ac_status=$? |
---|
24194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24195 | (exit $ac_status); }; then |
---|
24196 | pkg_cv_ZZIPLIB_CFLAGS=`$PKG_CONFIG --cflags "zziplib" 2>/dev/null` |
---|
24197 | else |
---|
24198 | pkg_failed=yes |
---|
24199 | fi |
---|
24200 | fi |
---|
24201 | else |
---|
24202 | pkg_failed=untried |
---|
24203 | fi |
---|
24204 | if test -n "$PKG_CONFIG"; then |
---|
24205 | if test -n "$ZZIPLIB_LIBS"; then |
---|
24206 | pkg_cv_ZZIPLIB_LIBS="$ZZIPLIB_LIBS" |
---|
24207 | else |
---|
24208 | if test -n "$PKG_CONFIG" && \ |
---|
24209 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"zziplib\"") >&5 |
---|
24210 | ($PKG_CONFIG --exists --print-errors "zziplib") 2>&5 |
---|
24211 | ac_status=$? |
---|
24212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24213 | (exit $ac_status); }; then |
---|
24214 | pkg_cv_ZZIPLIB_LIBS=`$PKG_CONFIG --libs "zziplib" 2>/dev/null` |
---|
24215 | else |
---|
24216 | pkg_failed=yes |
---|
24217 | fi |
---|
24218 | fi |
---|
24219 | else |
---|
24220 | pkg_failed=untried |
---|
24221 | fi |
---|
24222 | |
---|
24223 | |
---|
24224 | |
---|
24225 | if test $pkg_failed = yes; then |
---|
24226 | |
---|
24227 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
24228 | _pkg_short_errors_supported=yes |
---|
24229 | else |
---|
24230 | _pkg_short_errors_supported=no |
---|
24231 | fi |
---|
24232 | if test $_pkg_short_errors_supported = yes; then |
---|
24233 | ZZIPLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "zziplib"` |
---|
24234 | else |
---|
24235 | ZZIPLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "zziplib"` |
---|
24236 | fi |
---|
24237 | # Put the nasty error message in config.log where it belongs |
---|
24238 | echo "$ZZIPLIB_PKG_ERRORS" >&5 |
---|
24239 | |
---|
24240 | { { echo "$as_me:$LINENO: error: Package requirements (zziplib) were not met: |
---|
24241 | |
---|
24242 | $ZZIPLIB_PKG_ERRORS |
---|
24243 | |
---|
24244 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
---|
24245 | installed software in a non-standard prefix. |
---|
24246 | |
---|
24247 | Alternatively, you may set the environment variables ZZIPLIB_CFLAGS |
---|
24248 | and ZZIPLIB_LIBS to avoid the need to call pkg-config. |
---|
24249 | See the pkg-config man page for more details. |
---|
24250 | " >&5 |
---|
24251 | echo "$as_me: error: Package requirements (zziplib) were not met: |
---|
24252 | |
---|
24253 | $ZZIPLIB_PKG_ERRORS |
---|
24254 | |
---|
24255 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
---|
24256 | installed software in a non-standard prefix. |
---|
24257 | |
---|
24258 | Alternatively, you may set the environment variables ZZIPLIB_CFLAGS |
---|
24259 | and ZZIPLIB_LIBS to avoid the need to call pkg-config. |
---|
24260 | See the pkg-config man page for more details. |
---|
24261 | " >&2;} |
---|
24262 | { (exit 1); exit 1; }; } |
---|
24263 | elif test $pkg_failed = untried; then |
---|
24264 | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
---|
24265 | is in your PATH or set the PKG_CONFIG environment variable to the full |
---|
24266 | path to pkg-config. |
---|
24267 | |
---|
24268 | Alternatively, you may set the environment variables ZZIPLIB_CFLAGS |
---|
24269 | and ZZIPLIB_LIBS to avoid the need to call pkg-config. |
---|
24270 | See the pkg-config man page for more details. |
---|
24271 | |
---|
24272 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
---|
24273 | See \`config.log' for more details." >&5 |
---|
24274 | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
---|
24275 | is in your PATH or set the PKG_CONFIG environment variable to the full |
---|
24276 | path to pkg-config. |
---|
24277 | |
---|
24278 | Alternatively, you may set the environment variables ZZIPLIB_CFLAGS |
---|
24279 | and ZZIPLIB_LIBS to avoid the need to call pkg-config. |
---|
24280 | See the pkg-config man page for more details. |
---|
24281 | |
---|
24282 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
---|
24283 | See \`config.log' for more details." >&2;} |
---|
24284 | { (exit 1); exit 1; }; } |
---|
24285 | else |
---|
24286 | ZZIPLIB_CFLAGS=$pkg_cv_ZZIPLIB_CFLAGS |
---|
24287 | ZZIPLIB_LIBS=$pkg_cv_ZZIPLIB_LIBS |
---|
24288 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
24289 | echo "${ECHO_T}yes" >&6; } |
---|
24290 | : |
---|
24291 | fi |
---|
24292 | |
---|
24293 | |
---|
24294 | |
---|
24295 | OGRE_PLATFORM=GLX |
---|
24296 | |
---|
24297 | # Check whether --with-platform was given. |
---|
24298 | if test "${with_platform+set}" = set; then |
---|
24299 | withval=$with_platform; OGRE_PLATFORM=$withval |
---|
24300 | else |
---|
24301 | OGRE_PLATFORM=GLX |
---|
24302 | fi |
---|
24303 | |
---|
24304 | |
---|
24305 | PLATFORM_CFLAGS="" |
---|
24306 | PLATFORM_LIBS="" |
---|
24307 | |
---|
24308 | case $OGRE_PLATFORM in |
---|
24309 | GLX) |
---|
24310 | |
---|
24311 | for ac_header in X11/Intrinsic.h |
---|
24312 | do |
---|
24313 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
24314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
24315 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
24316 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
24317 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
24318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24319 | fi |
---|
24320 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
24321 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
24322 | echo "${ECHO_T}$ac_res" >&6; } |
---|
24323 | else |
---|
24324 | # Is the header compilable? |
---|
24325 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
24326 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
24327 | cat >conftest.$ac_ext <<_ACEOF |
---|
24328 | /* confdefs.h. */ |
---|
24329 | _ACEOF |
---|
24330 | cat confdefs.h >>conftest.$ac_ext |
---|
24331 | cat >>conftest.$ac_ext <<_ACEOF |
---|
24332 | /* end confdefs.h. */ |
---|
24333 | $ac_includes_default |
---|
24334 | #include <$ac_header> |
---|
24335 | _ACEOF |
---|
24336 | rm -f conftest.$ac_objext |
---|
24337 | if { (ac_try="$ac_compile" |
---|
24338 | case "(($ac_try" in |
---|
24339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
24340 | *) ac_try_echo=$ac_try;; |
---|
24341 | esac |
---|
24342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
24343 | (eval "$ac_compile") 2>conftest.er1 |
---|
24344 | ac_status=$? |
---|
24345 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
24346 | rm -f conftest.er1 |
---|
24347 | cat conftest.err >&5 |
---|
24348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24349 | (exit $ac_status); } && { |
---|
24350 | test -z "$ac_c_werror_flag" || |
---|
24351 | test ! -s conftest.err |
---|
24352 | } && test -s conftest.$ac_objext; then |
---|
24353 | ac_header_compiler=yes |
---|
24354 | else |
---|
24355 | echo "$as_me: failed program was:" >&5 |
---|
24356 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
24357 | |
---|
24358 | ac_header_compiler=no |
---|
24359 | fi |
---|
24360 | |
---|
24361 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
24362 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
24363 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
24364 | |
---|
24365 | # Is the header present? |
---|
24366 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
24367 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
24368 | cat >conftest.$ac_ext <<_ACEOF |
---|
24369 | /* confdefs.h. */ |
---|
24370 | _ACEOF |
---|
24371 | cat confdefs.h >>conftest.$ac_ext |
---|
24372 | cat >>conftest.$ac_ext <<_ACEOF |
---|
24373 | /* end confdefs.h. */ |
---|
24374 | #include <$ac_header> |
---|
24375 | _ACEOF |
---|
24376 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
24377 | case "(($ac_try" in |
---|
24378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
24379 | *) ac_try_echo=$ac_try;; |
---|
24380 | esac |
---|
24381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
24382 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
24383 | ac_status=$? |
---|
24384 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
24385 | rm -f conftest.er1 |
---|
24386 | cat conftest.err >&5 |
---|
24387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24388 | (exit $ac_status); } >/dev/null && { |
---|
24389 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
24390 | test ! -s conftest.err |
---|
24391 | }; then |
---|
24392 | ac_header_preproc=yes |
---|
24393 | else |
---|
24394 | echo "$as_me: failed program was:" >&5 |
---|
24395 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
24396 | |
---|
24397 | ac_header_preproc=no |
---|
24398 | fi |
---|
24399 | |
---|
24400 | rm -f conftest.err conftest.$ac_ext |
---|
24401 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
24402 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
24403 | |
---|
24404 | # So? What about this header? |
---|
24405 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
24406 | yes:no: ) |
---|
24407 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
24408 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
24409 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
24410 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
24411 | ac_header_preproc=yes |
---|
24412 | ;; |
---|
24413 | no:yes:* ) |
---|
24414 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
24415 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
24416 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
24417 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
24418 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
24419 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
24420 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
24421 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
24422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
24423 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
24424 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
24425 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
24426 | |
---|
24427 | ;; |
---|
24428 | esac |
---|
24429 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
24430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
24431 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
24432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24433 | else |
---|
24434 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
24435 | fi |
---|
24436 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
24437 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
24438 | echo "${ECHO_T}$ac_res" >&6; } |
---|
24439 | |
---|
24440 | fi |
---|
24441 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
24442 | cat >>confdefs.h <<_ACEOF |
---|
24443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
24444 | _ACEOF |
---|
24445 | |
---|
24446 | else |
---|
24447 | { { echo "$as_me:$LINENO: error: \"libxt headers not found\"" >&5 |
---|
24448 | echo "$as_me: error: \"libxt headers not found\"" >&2;} |
---|
24449 | { (exit 1); exit 1; }; } |
---|
24450 | fi |
---|
24451 | |
---|
24452 | done |
---|
24453 | |
---|
24454 | |
---|
24455 | for ac_header in X11/Xaw/Command.h |
---|
24456 | do |
---|
24457 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
24458 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
24459 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
24460 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
24461 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
24462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24463 | fi |
---|
24464 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
24465 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
24466 | echo "${ECHO_T}$ac_res" >&6; } |
---|
24467 | else |
---|
24468 | # Is the header compilable? |
---|
24469 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
24470 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
24471 | cat >conftest.$ac_ext <<_ACEOF |
---|
24472 | /* confdefs.h. */ |
---|
24473 | _ACEOF |
---|
24474 | cat confdefs.h >>conftest.$ac_ext |
---|
24475 | cat >>conftest.$ac_ext <<_ACEOF |
---|
24476 | /* end confdefs.h. */ |
---|
24477 | $ac_includes_default |
---|
24478 | #include <$ac_header> |
---|
24479 | _ACEOF |
---|
24480 | rm -f conftest.$ac_objext |
---|
24481 | if { (ac_try="$ac_compile" |
---|
24482 | case "(($ac_try" in |
---|
24483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
24484 | *) ac_try_echo=$ac_try;; |
---|
24485 | esac |
---|
24486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
24487 | (eval "$ac_compile") 2>conftest.er1 |
---|
24488 | ac_status=$? |
---|
24489 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
24490 | rm -f conftest.er1 |
---|
24491 | cat conftest.err >&5 |
---|
24492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24493 | (exit $ac_status); } && { |
---|
24494 | test -z "$ac_c_werror_flag" || |
---|
24495 | test ! -s conftest.err |
---|
24496 | } && test -s conftest.$ac_objext; then |
---|
24497 | ac_header_compiler=yes |
---|
24498 | else |
---|
24499 | echo "$as_me: failed program was:" >&5 |
---|
24500 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
24501 | |
---|
24502 | ac_header_compiler=no |
---|
24503 | fi |
---|
24504 | |
---|
24505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
24506 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
24507 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
24508 | |
---|
24509 | # Is the header present? |
---|
24510 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
24511 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
24512 | cat >conftest.$ac_ext <<_ACEOF |
---|
24513 | /* confdefs.h. */ |
---|
24514 | _ACEOF |
---|
24515 | cat confdefs.h >>conftest.$ac_ext |
---|
24516 | cat >>conftest.$ac_ext <<_ACEOF |
---|
24517 | /* end confdefs.h. */ |
---|
24518 | #include <$ac_header> |
---|
24519 | _ACEOF |
---|
24520 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
24521 | case "(($ac_try" in |
---|
24522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
24523 | *) ac_try_echo=$ac_try;; |
---|
24524 | esac |
---|
24525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
24526 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
24527 | ac_status=$? |
---|
24528 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
24529 | rm -f conftest.er1 |
---|
24530 | cat conftest.err >&5 |
---|
24531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24532 | (exit $ac_status); } >/dev/null && { |
---|
24533 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
24534 | test ! -s conftest.err |
---|
24535 | }; then |
---|
24536 | ac_header_preproc=yes |
---|
24537 | else |
---|
24538 | echo "$as_me: failed program was:" >&5 |
---|
24539 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
24540 | |
---|
24541 | ac_header_preproc=no |
---|
24542 | fi |
---|
24543 | |
---|
24544 | rm -f conftest.err conftest.$ac_ext |
---|
24545 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
24546 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
24547 | |
---|
24548 | # So? What about this header? |
---|
24549 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
24550 | yes:no: ) |
---|
24551 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
24552 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
24553 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
24554 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
24555 | ac_header_preproc=yes |
---|
24556 | ;; |
---|
24557 | no:yes:* ) |
---|
24558 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
24559 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
24560 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
24561 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
24562 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
24563 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
24564 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
24565 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
24566 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
24567 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
24568 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
24569 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
24570 | |
---|
24571 | ;; |
---|
24572 | esac |
---|
24573 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
24574 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
24575 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
24576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24577 | else |
---|
24578 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
24579 | fi |
---|
24580 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
24581 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
24582 | echo "${ECHO_T}$ac_res" >&6; } |
---|
24583 | |
---|
24584 | fi |
---|
24585 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
24586 | cat >>confdefs.h <<_ACEOF |
---|
24587 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
24588 | _ACEOF |
---|
24589 | |
---|
24590 | else |
---|
24591 | { { echo "$as_me:$LINENO: error: \"libxaw headers not found\"" >&5 |
---|
24592 | echo "$as_me: error: \"libxaw headers not found\"" >&2;} |
---|
24593 | { (exit 1); exit 1; }; } |
---|
24594 | fi |
---|
24595 | |
---|
24596 | done |
---|
24597 | |
---|
24598 | |
---|
24599 | for ac_header in X11/extensions/xf86vmode.h |
---|
24600 | do |
---|
24601 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
24602 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
24603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
24604 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
24605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24606 | else |
---|
24607 | cat >conftest.$ac_ext <<_ACEOF |
---|
24608 | /* confdefs.h. */ |
---|
24609 | _ACEOF |
---|
24610 | cat confdefs.h >>conftest.$ac_ext |
---|
24611 | cat >>conftest.$ac_ext <<_ACEOF |
---|
24612 | /* end confdefs.h. */ |
---|
24613 | #include <X11/Xlib.h> |
---|
24614 | |
---|
24615 | #include <$ac_header> |
---|
24616 | _ACEOF |
---|
24617 | rm -f conftest.$ac_objext |
---|
24618 | if { (ac_try="$ac_compile" |
---|
24619 | case "(($ac_try" in |
---|
24620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
24621 | *) ac_try_echo=$ac_try;; |
---|
24622 | esac |
---|
24623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
24624 | (eval "$ac_compile") 2>conftest.er1 |
---|
24625 | ac_status=$? |
---|
24626 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
24627 | rm -f conftest.er1 |
---|
24628 | cat conftest.err >&5 |
---|
24629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24630 | (exit $ac_status); } && { |
---|
24631 | test -z "$ac_c_werror_flag" || |
---|
24632 | test ! -s conftest.err |
---|
24633 | } && test -s conftest.$ac_objext; then |
---|
24634 | eval "$as_ac_Header=yes" |
---|
24635 | else |
---|
24636 | echo "$as_me: failed program was:" >&5 |
---|
24637 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
24638 | |
---|
24639 | eval "$as_ac_Header=no" |
---|
24640 | fi |
---|
24641 | |
---|
24642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
24643 | fi |
---|
24644 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
24645 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
24646 | echo "${ECHO_T}$ac_res" >&6; } |
---|
24647 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
24648 | cat >>confdefs.h <<_ACEOF |
---|
24649 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
24650 | _ACEOF |
---|
24651 | |
---|
24652 | else |
---|
24653 | { { echo "$as_me:$LINENO: error: \"libxf86vm headers not found\"" >&5 |
---|
24654 | echo "$as_me: error: \"libxf86vm headers not found\"" >&2;} |
---|
24655 | { (exit 1); exit 1; }; } |
---|
24656 | fi |
---|
24657 | |
---|
24658 | done |
---|
24659 | |
---|
24660 | |
---|
24661 | for ac_header in X11/extensions/Xrandr.h |
---|
24662 | do |
---|
24663 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
24664 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
24665 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
24666 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
24667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24668 | else |
---|
24669 | cat >conftest.$ac_ext <<_ACEOF |
---|
24670 | /* confdefs.h. */ |
---|
24671 | _ACEOF |
---|
24672 | cat confdefs.h >>conftest.$ac_ext |
---|
24673 | cat >>conftest.$ac_ext <<_ACEOF |
---|
24674 | /* end confdefs.h. */ |
---|
24675 | #include <X11/Xlib.h> |
---|
24676 | |
---|
24677 | #include <$ac_header> |
---|
24678 | _ACEOF |
---|
24679 | rm -f conftest.$ac_objext |
---|
24680 | if { (ac_try="$ac_compile" |
---|
24681 | case "(($ac_try" in |
---|
24682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
24683 | *) ac_try_echo=$ac_try;; |
---|
24684 | esac |
---|
24685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
24686 | (eval "$ac_compile") 2>conftest.er1 |
---|
24687 | ac_status=$? |
---|
24688 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
24689 | rm -f conftest.er1 |
---|
24690 | cat conftest.err >&5 |
---|
24691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24692 | (exit $ac_status); } && { |
---|
24693 | test -z "$ac_c_werror_flag" || |
---|
24694 | test ! -s conftest.err |
---|
24695 | } && test -s conftest.$ac_objext; then |
---|
24696 | eval "$as_ac_Header=yes" |
---|
24697 | else |
---|
24698 | echo "$as_me: failed program was:" >&5 |
---|
24699 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
24700 | |
---|
24701 | eval "$as_ac_Header=no" |
---|
24702 | fi |
---|
24703 | |
---|
24704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
24705 | fi |
---|
24706 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
24707 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
24708 | echo "${ECHO_T}$ac_res" >&6; } |
---|
24709 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
24710 | cat >>confdefs.h <<_ACEOF |
---|
24711 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
24712 | _ACEOF |
---|
24713 | |
---|
24714 | else |
---|
24715 | { { echo "$as_me:$LINENO: error: \"libxrandr headers not found\"" >&5 |
---|
24716 | echo "$as_me: error: \"libxrandr headers not found\"" >&2;} |
---|
24717 | { (exit 1); exit 1; }; } |
---|
24718 | fi |
---|
24719 | |
---|
24720 | done |
---|
24721 | |
---|
24722 | { echo "$as_me:$LINENO: checking for X" >&5 |
---|
24723 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
---|
24724 | |
---|
24725 | |
---|
24726 | # Check whether --with-x was given. |
---|
24727 | if test "${with_x+set}" = set; then |
---|
24728 | withval=$with_x; |
---|
24729 | fi |
---|
24730 | |
---|
24731 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
24732 | if test "x$with_x" = xno; then |
---|
24733 | # The user explicitly disabled X. |
---|
24734 | have_x=disabled |
---|
24735 | else |
---|
24736 | case $x_includes,$x_libraries in #( |
---|
24737 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
---|
24738 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
---|
24739 | { (exit 1); exit 1; }; };; #( |
---|
24740 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
---|
24741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24742 | else |
---|
24743 | # One or both of the vars are not set, and there is no cached value. |
---|
24744 | ac_x_includes=no ac_x_libraries=no |
---|
24745 | rm -f -r conftest.dir |
---|
24746 | if mkdir conftest.dir; then |
---|
24747 | cd conftest.dir |
---|
24748 | cat >Imakefile <<'_ACEOF' |
---|
24749 | incroot: |
---|
24750 | @echo incroot='${INCROOT}' |
---|
24751 | usrlibdir: |
---|
24752 | @echo usrlibdir='${USRLIBDIR}' |
---|
24753 | libdir: |
---|
24754 | @echo libdir='${LIBDIR}' |
---|
24755 | _ACEOF |
---|
24756 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
24757 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
24758 | for ac_var in incroot usrlibdir libdir; do |
---|
24759 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
24760 | done |
---|
24761 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
24762 | for ac_extension in a so sl; do |
---|
24763 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
24764 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
24765 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
24766 | fi |
---|
24767 | done |
---|
24768 | # Screen out bogus values from the imake configuration. They are |
---|
24769 | # bogus both because they are the default anyway, and because |
---|
24770 | # using them would break gcc on systems where it needs fixed includes. |
---|
24771 | case $ac_im_incroot in |
---|
24772 | /usr/include) ac_x_includes= ;; |
---|
24773 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
24774 | esac |
---|
24775 | case $ac_im_usrlibdir in |
---|
24776 | /usr/lib | /lib) ;; |
---|
24777 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
24778 | esac |
---|
24779 | fi |
---|
24780 | cd .. |
---|
24781 | rm -f -r conftest.dir |
---|
24782 | fi |
---|
24783 | |
---|
24784 | # Standard set of common directories for X headers. |
---|
24785 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
24786 | ac_x_header_dirs=' |
---|
24787 | /usr/X11/include |
---|
24788 | /usr/X11R6/include |
---|
24789 | /usr/X11R5/include |
---|
24790 | /usr/X11R4/include |
---|
24791 | |
---|
24792 | /usr/include/X11 |
---|
24793 | /usr/include/X11R6 |
---|
24794 | /usr/include/X11R5 |
---|
24795 | /usr/include/X11R4 |
---|
24796 | |
---|
24797 | /usr/local/X11/include |
---|
24798 | /usr/local/X11R6/include |
---|
24799 | /usr/local/X11R5/include |
---|
24800 | /usr/local/X11R4/include |
---|
24801 | |
---|
24802 | /usr/local/include/X11 |
---|
24803 | /usr/local/include/X11R6 |
---|
24804 | /usr/local/include/X11R5 |
---|
24805 | /usr/local/include/X11R4 |
---|
24806 | |
---|
24807 | /usr/X386/include |
---|
24808 | /usr/x386/include |
---|
24809 | /usr/XFree86/include/X11 |
---|
24810 | |
---|
24811 | /usr/include |
---|
24812 | /usr/local/include |
---|
24813 | /usr/unsupported/include |
---|
24814 | /usr/athena/include |
---|
24815 | /usr/local/x11r5/include |
---|
24816 | /usr/lpp/Xamples/include |
---|
24817 | |
---|
24818 | /usr/openwin/include |
---|
24819 | /usr/openwin/share/include' |
---|
24820 | |
---|
24821 | if test "$ac_x_includes" = no; then |
---|
24822 | # Guess where to find include files, by looking for Xlib.h. |
---|
24823 | # First, try using that file with no special directory specified. |
---|
24824 | cat >conftest.$ac_ext <<_ACEOF |
---|
24825 | /* confdefs.h. */ |
---|
24826 | _ACEOF |
---|
24827 | cat confdefs.h >>conftest.$ac_ext |
---|
24828 | cat >>conftest.$ac_ext <<_ACEOF |
---|
24829 | /* end confdefs.h. */ |
---|
24830 | #include <X11/Xlib.h> |
---|
24831 | _ACEOF |
---|
24832 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
24833 | case "(($ac_try" in |
---|
24834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
24835 | *) ac_try_echo=$ac_try;; |
---|
24836 | esac |
---|
24837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
24838 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
24839 | ac_status=$? |
---|
24840 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
24841 | rm -f conftest.er1 |
---|
24842 | cat conftest.err >&5 |
---|
24843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24844 | (exit $ac_status); } >/dev/null && { |
---|
24845 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
24846 | test ! -s conftest.err |
---|
24847 | }; then |
---|
24848 | # We can compile using X headers with no special include directory. |
---|
24849 | ac_x_includes= |
---|
24850 | else |
---|
24851 | echo "$as_me: failed program was:" >&5 |
---|
24852 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
24853 | |
---|
24854 | for ac_dir in $ac_x_header_dirs; do |
---|
24855 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
24856 | ac_x_includes=$ac_dir |
---|
24857 | break |
---|
24858 | fi |
---|
24859 | done |
---|
24860 | fi |
---|
24861 | |
---|
24862 | rm -f conftest.err conftest.$ac_ext |
---|
24863 | fi # $ac_x_includes = no |
---|
24864 | |
---|
24865 | if test "$ac_x_libraries" = no; then |
---|
24866 | # Check for the libraries. |
---|
24867 | # See if we find them without any special options. |
---|
24868 | # Don't add to $LIBS permanently. |
---|
24869 | ac_save_LIBS=$LIBS |
---|
24870 | LIBS="-lX11 $LIBS" |
---|
24871 | cat >conftest.$ac_ext <<_ACEOF |
---|
24872 | /* confdefs.h. */ |
---|
24873 | _ACEOF |
---|
24874 | cat confdefs.h >>conftest.$ac_ext |
---|
24875 | cat >>conftest.$ac_ext <<_ACEOF |
---|
24876 | /* end confdefs.h. */ |
---|
24877 | #include <X11/Xlib.h> |
---|
24878 | int |
---|
24879 | main () |
---|
24880 | { |
---|
24881 | XrmInitialize () |
---|
24882 | ; |
---|
24883 | return 0; |
---|
24884 | } |
---|
24885 | _ACEOF |
---|
24886 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
24887 | if { (ac_try="$ac_link" |
---|
24888 | case "(($ac_try" in |
---|
24889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
24890 | *) ac_try_echo=$ac_try;; |
---|
24891 | esac |
---|
24892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
24893 | (eval "$ac_link") 2>conftest.er1 |
---|
24894 | ac_status=$? |
---|
24895 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
24896 | rm -f conftest.er1 |
---|
24897 | cat conftest.err >&5 |
---|
24898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24899 | (exit $ac_status); } && { |
---|
24900 | test -z "$ac_c_werror_flag" || |
---|
24901 | test ! -s conftest.err |
---|
24902 | } && test -s conftest$ac_exeext && |
---|
24903 | $as_test_x conftest$ac_exeext; then |
---|
24904 | LIBS=$ac_save_LIBS |
---|
24905 | # We can link X programs with no special library path. |
---|
24906 | ac_x_libraries= |
---|
24907 | else |
---|
24908 | echo "$as_me: failed program was:" >&5 |
---|
24909 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
24910 | |
---|
24911 | LIBS=$ac_save_LIBS |
---|
24912 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
24913 | do |
---|
24914 | # Don't even attempt the hair of trying to link an X program! |
---|
24915 | for ac_extension in a so sl; do |
---|
24916 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
24917 | ac_x_libraries=$ac_dir |
---|
24918 | break 2 |
---|
24919 | fi |
---|
24920 | done |
---|
24921 | done |
---|
24922 | fi |
---|
24923 | |
---|
24924 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
24925 | conftest$ac_exeext conftest.$ac_ext |
---|
24926 | fi # $ac_x_libraries = no |
---|
24927 | |
---|
24928 | case $ac_x_includes,$ac_x_libraries in #( |
---|
24929 | no,* | *,no | *\'*) |
---|
24930 | # Didn't find X, or a directory has "'" in its name. |
---|
24931 | ac_cv_have_x="have_x=no";; #( |
---|
24932 | *) |
---|
24933 | # Record where we found X for the cache. |
---|
24934 | ac_cv_have_x="have_x=yes\ |
---|
24935 | ac_x_includes='$ac_x_includes'\ |
---|
24936 | ac_x_libraries='$ac_x_libraries'" |
---|
24937 | esac |
---|
24938 | fi |
---|
24939 | ;; #( |
---|
24940 | *) have_x=yes;; |
---|
24941 | esac |
---|
24942 | eval "$ac_cv_have_x" |
---|
24943 | fi # $with_x != no |
---|
24944 | |
---|
24945 | if test "$have_x" != yes; then |
---|
24946 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
---|
24947 | echo "${ECHO_T}$have_x" >&6; } |
---|
24948 | no_x=yes |
---|
24949 | else |
---|
24950 | # If each of the values was on the command line, it overrides each guess. |
---|
24951 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
24952 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
24953 | # Update the cache value to reflect the command line values. |
---|
24954 | ac_cv_have_x="have_x=yes\ |
---|
24955 | ac_x_includes='$x_includes'\ |
---|
24956 | ac_x_libraries='$x_libraries'" |
---|
24957 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
24958 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
---|
24959 | fi |
---|
24960 | |
---|
24961 | if test x"$x_includes" != x; then |
---|
24962 | if test x"$x_includes" != xNONE; then |
---|
24963 | PLATFORM_CFLAGS="-I$x_includes" |
---|
24964 | fi |
---|
24965 | fi |
---|
24966 | if test x"$x_libraries" != x; then |
---|
24967 | if test x"$x_libraries" != xNONE; then |
---|
24968 | PLATFORM_LIBS="-L$x_libraries -lX11 -lXaw" |
---|
24969 | fi |
---|
24970 | else |
---|
24971 | PLATFORM_LIBS="-lX11 -lXaw" |
---|
24972 | fi |
---|
24973 | ;; |
---|
24974 | Win32) |
---|
24975 | PLATFORM_CFLAGS="" |
---|
24976 | PLATFORM_LIBS="-lgdi32 -lwinmm -ldinput8 -ldxguid" |
---|
24977 | ;; |
---|
24978 | esac |
---|
24979 | |
---|
24980 | |
---|
24981 | |
---|
24982 | |
---|
24983 | |
---|
24984 | OGRE_GLSUPPORT=none |
---|
24985 | |
---|
24986 | # Check whether --with-gl-support was given. |
---|
24987 | if test "${with_gl_support+set}" = set; then |
---|
24988 | withval=$with_gl_support; OGRE_GLSUPPORT=$withval |
---|
24989 | else |
---|
24990 | OGRE_GLSUPPORT=none |
---|
24991 | fi |
---|
24992 | |
---|
24993 | |
---|
24994 | if test "$OGRE_GLSUPPORT" = "none" ; then |
---|
24995 | OGRE_GLSUPPORT="$OGRE_PLATFORM" |
---|
24996 | { echo "$as_me:$LINENO: setting gl-support to platform: $OGRE_GLSUPPORT" >&5 |
---|
24997 | echo "$as_me: setting gl-support to platform: $OGRE_GLSUPPORT" >&6;} |
---|
24998 | fi |
---|
24999 | if test "$OGRE_GLSUPPORT" = "Win32" ; then |
---|
25000 | # Uppercase/lowercase |
---|
25001 | OGRE_GLSUPPORT=win32 |
---|
25002 | fi |
---|
25003 | |
---|
25004 | GLSUPPORT_CFLAGS="" |
---|
25005 | GLSUPPORT_LIBS="" |
---|
25006 | |
---|
25007 | case $OGRE_GLSUPPORT in |
---|
25008 | GLX) |
---|
25009 | { echo "$as_me:$LINENO: checking for X" >&5 |
---|
25010 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
---|
25011 | |
---|
25012 | |
---|
25013 | # Check whether --with-x was given. |
---|
25014 | if test "${with_x+set}" = set; then |
---|
25015 | withval=$with_x; |
---|
25016 | fi |
---|
25017 | |
---|
25018 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
25019 | if test "x$with_x" = xno; then |
---|
25020 | # The user explicitly disabled X. |
---|
25021 | have_x=disabled |
---|
25022 | else |
---|
25023 | case $x_includes,$x_libraries in #( |
---|
25024 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
---|
25025 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
---|
25026 | { (exit 1); exit 1; }; };; #( |
---|
25027 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
---|
25028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25029 | else |
---|
25030 | # One or both of the vars are not set, and there is no cached value. |
---|
25031 | ac_x_includes=no ac_x_libraries=no |
---|
25032 | rm -f -r conftest.dir |
---|
25033 | if mkdir conftest.dir; then |
---|
25034 | cd conftest.dir |
---|
25035 | cat >Imakefile <<'_ACEOF' |
---|
25036 | incroot: |
---|
25037 | @echo incroot='${INCROOT}' |
---|
25038 | usrlibdir: |
---|
25039 | @echo usrlibdir='${USRLIBDIR}' |
---|
25040 | libdir: |
---|
25041 | @echo libdir='${LIBDIR}' |
---|
25042 | _ACEOF |
---|
25043 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
25044 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
25045 | for ac_var in incroot usrlibdir libdir; do |
---|
25046 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
25047 | done |
---|
25048 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
25049 | for ac_extension in a so sl; do |
---|
25050 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
25051 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
25052 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
25053 | fi |
---|
25054 | done |
---|
25055 | # Screen out bogus values from the imake configuration. They are |
---|
25056 | # bogus both because they are the default anyway, and because |
---|
25057 | # using them would break gcc on systems where it needs fixed includes. |
---|
25058 | case $ac_im_incroot in |
---|
25059 | /usr/include) ac_x_includes= ;; |
---|
25060 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
25061 | esac |
---|
25062 | case $ac_im_usrlibdir in |
---|
25063 | /usr/lib | /lib) ;; |
---|
25064 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
25065 | esac |
---|
25066 | fi |
---|
25067 | cd .. |
---|
25068 | rm -f -r conftest.dir |
---|
25069 | fi |
---|
25070 | |
---|
25071 | # Standard set of common directories for X headers. |
---|
25072 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
25073 | ac_x_header_dirs=' |
---|
25074 | /usr/X11/include |
---|
25075 | /usr/X11R6/include |
---|
25076 | /usr/X11R5/include |
---|
25077 | /usr/X11R4/include |
---|
25078 | |
---|
25079 | /usr/include/X11 |
---|
25080 | /usr/include/X11R6 |
---|
25081 | /usr/include/X11R5 |
---|
25082 | /usr/include/X11R4 |
---|
25083 | |
---|
25084 | /usr/local/X11/include |
---|
25085 | /usr/local/X11R6/include |
---|
25086 | /usr/local/X11R5/include |
---|
25087 | /usr/local/X11R4/include |
---|
25088 | |
---|
25089 | /usr/local/include/X11 |
---|
25090 | /usr/local/include/X11R6 |
---|
25091 | /usr/local/include/X11R5 |
---|
25092 | /usr/local/include/X11R4 |
---|
25093 | |
---|
25094 | /usr/X386/include |
---|
25095 | /usr/x386/include |
---|
25096 | /usr/XFree86/include/X11 |
---|
25097 | |
---|
25098 | /usr/include |
---|
25099 | /usr/local/include |
---|
25100 | /usr/unsupported/include |
---|
25101 | /usr/athena/include |
---|
25102 | /usr/local/x11r5/include |
---|
25103 | /usr/lpp/Xamples/include |
---|
25104 | |
---|
25105 | /usr/openwin/include |
---|
25106 | /usr/openwin/share/include' |
---|
25107 | |
---|
25108 | if test "$ac_x_includes" = no; then |
---|
25109 | # Guess where to find include files, by looking for Xlib.h. |
---|
25110 | # First, try using that file with no special directory specified. |
---|
25111 | cat >conftest.$ac_ext <<_ACEOF |
---|
25112 | /* confdefs.h. */ |
---|
25113 | _ACEOF |
---|
25114 | cat confdefs.h >>conftest.$ac_ext |
---|
25115 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25116 | /* end confdefs.h. */ |
---|
25117 | #include <X11/Xlib.h> |
---|
25118 | _ACEOF |
---|
25119 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
25120 | case "(($ac_try" in |
---|
25121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25122 | *) ac_try_echo=$ac_try;; |
---|
25123 | esac |
---|
25124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25125 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
25126 | ac_status=$? |
---|
25127 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25128 | rm -f conftest.er1 |
---|
25129 | cat conftest.err >&5 |
---|
25130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25131 | (exit $ac_status); } >/dev/null && { |
---|
25132 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
25133 | test ! -s conftest.err |
---|
25134 | }; then |
---|
25135 | # We can compile using X headers with no special include directory. |
---|
25136 | ac_x_includes= |
---|
25137 | else |
---|
25138 | echo "$as_me: failed program was:" >&5 |
---|
25139 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25140 | |
---|
25141 | for ac_dir in $ac_x_header_dirs; do |
---|
25142 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
25143 | ac_x_includes=$ac_dir |
---|
25144 | break |
---|
25145 | fi |
---|
25146 | done |
---|
25147 | fi |
---|
25148 | |
---|
25149 | rm -f conftest.err conftest.$ac_ext |
---|
25150 | fi # $ac_x_includes = no |
---|
25151 | |
---|
25152 | if test "$ac_x_libraries" = no; then |
---|
25153 | # Check for the libraries. |
---|
25154 | # See if we find them without any special options. |
---|
25155 | # Don't add to $LIBS permanently. |
---|
25156 | ac_save_LIBS=$LIBS |
---|
25157 | LIBS="-lX11 $LIBS" |
---|
25158 | cat >conftest.$ac_ext <<_ACEOF |
---|
25159 | /* confdefs.h. */ |
---|
25160 | _ACEOF |
---|
25161 | cat confdefs.h >>conftest.$ac_ext |
---|
25162 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25163 | /* end confdefs.h. */ |
---|
25164 | #include <X11/Xlib.h> |
---|
25165 | int |
---|
25166 | main () |
---|
25167 | { |
---|
25168 | XrmInitialize () |
---|
25169 | ; |
---|
25170 | return 0; |
---|
25171 | } |
---|
25172 | _ACEOF |
---|
25173 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25174 | if { (ac_try="$ac_link" |
---|
25175 | case "(($ac_try" in |
---|
25176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25177 | *) ac_try_echo=$ac_try;; |
---|
25178 | esac |
---|
25179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25180 | (eval "$ac_link") 2>conftest.er1 |
---|
25181 | ac_status=$? |
---|
25182 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25183 | rm -f conftest.er1 |
---|
25184 | cat conftest.err >&5 |
---|
25185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25186 | (exit $ac_status); } && { |
---|
25187 | test -z "$ac_c_werror_flag" || |
---|
25188 | test ! -s conftest.err |
---|
25189 | } && test -s conftest$ac_exeext && |
---|
25190 | $as_test_x conftest$ac_exeext; then |
---|
25191 | LIBS=$ac_save_LIBS |
---|
25192 | # We can link X programs with no special library path. |
---|
25193 | ac_x_libraries= |
---|
25194 | else |
---|
25195 | echo "$as_me: failed program was:" >&5 |
---|
25196 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25197 | |
---|
25198 | LIBS=$ac_save_LIBS |
---|
25199 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
25200 | do |
---|
25201 | # Don't even attempt the hair of trying to link an X program! |
---|
25202 | for ac_extension in a so sl; do |
---|
25203 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
25204 | ac_x_libraries=$ac_dir |
---|
25205 | break 2 |
---|
25206 | fi |
---|
25207 | done |
---|
25208 | done |
---|
25209 | fi |
---|
25210 | |
---|
25211 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25212 | conftest$ac_exeext conftest.$ac_ext |
---|
25213 | fi # $ac_x_libraries = no |
---|
25214 | |
---|
25215 | case $ac_x_includes,$ac_x_libraries in #( |
---|
25216 | no,* | *,no | *\'*) |
---|
25217 | # Didn't find X, or a directory has "'" in its name. |
---|
25218 | ac_cv_have_x="have_x=no";; #( |
---|
25219 | *) |
---|
25220 | # Record where we found X for the cache. |
---|
25221 | ac_cv_have_x="have_x=yes\ |
---|
25222 | ac_x_includes='$ac_x_includes'\ |
---|
25223 | ac_x_libraries='$ac_x_libraries'" |
---|
25224 | esac |
---|
25225 | fi |
---|
25226 | ;; #( |
---|
25227 | *) have_x=yes;; |
---|
25228 | esac |
---|
25229 | eval "$ac_cv_have_x" |
---|
25230 | fi # $with_x != no |
---|
25231 | |
---|
25232 | if test "$have_x" != yes; then |
---|
25233 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
---|
25234 | echo "${ECHO_T}$have_x" >&6; } |
---|
25235 | no_x=yes |
---|
25236 | else |
---|
25237 | # If each of the values was on the command line, it overrides each guess. |
---|
25238 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
25239 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
25240 | # Update the cache value to reflect the command line values. |
---|
25241 | ac_cv_have_x="have_x=yes\ |
---|
25242 | ac_x_includes='$x_includes'\ |
---|
25243 | ac_x_libraries='$x_libraries'" |
---|
25244 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
25245 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
---|
25246 | fi |
---|
25247 | |
---|
25248 | if test x"$x_includes" != x; then |
---|
25249 | if test x"$x_includes" != xNONE; then |
---|
25250 | GLSUPPORT_CFLAGS="-I$x_includes" |
---|
25251 | fi |
---|
25252 | fi |
---|
25253 | if test x"$x_libraries" != x; then |
---|
25254 | if test x"$x_libraries" != xNONE; then |
---|
25255 | GLSUPPORT_LIBS="-L$x_libraries -lX11 -lXext -lGL -lXrandr -lXxf86vm" |
---|
25256 | fi |
---|
25257 | else |
---|
25258 | GLSUPPORT_LIBS="-lX11 -lXext -lGL -lXrandr -lXxf86vm" |
---|
25259 | fi |
---|
25260 | ;; |
---|
25261 | win32) |
---|
25262 | GLSUPPORT_CFLAGS="" |
---|
25263 | GLSUPPORT_LIBS="-lgdi32 -lwinmm" |
---|
25264 | ;; |
---|
25265 | esac |
---|
25266 | |
---|
25267 | |
---|
25268 | |
---|
25269 | |
---|
25270 | ac_config_files="$ac_config_files RenderSystems/GL/src/GLX/Makefile RenderSystems/GL/src/win32/Makefile" |
---|
25271 | |
---|
25272 | |
---|
25273 | |
---|
25274 | |
---|
25275 | |
---|
25276 | # Check whether --with-gui was given. |
---|
25277 | if test "${with_gui+set}" = set; then |
---|
25278 | withval=$with_gui; with_gui=${withval} |
---|
25279 | else |
---|
25280 | with_gui=auto |
---|
25281 | fi |
---|
25282 | |
---|
25283 | |
---|
25284 | #remove any old files |
---|
25285 | rm -f OgreMain/src/OgreConfigDialog.lo OgreMain/src/OgreErrorDialog.lo |
---|
25286 | |
---|
25287 | # Prefer win32, then gtk, then Xt |
---|
25288 | if test "x$with_gui" == "xauto" && test "x$OGRE_PLATFORM" == "xWIN32"; then |
---|
25289 | with_gui=win32 |
---|
25290 | fi |
---|
25291 | |
---|
25292 | if test "x$with_gui" == "xauto" || test "x$with_gui" == "xgtk"; then |
---|
25293 | |
---|
25294 | pkg_failed=no |
---|
25295 | { echo "$as_me:$LINENO: checking for GTK" >&5 |
---|
25296 | echo $ECHO_N "checking for GTK... $ECHO_C" >&6; } |
---|
25297 | |
---|
25298 | if test -n "$PKG_CONFIG"; then |
---|
25299 | if test -n "$GTK_CFLAGS"; then |
---|
25300 | pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" |
---|
25301 | else |
---|
25302 | if test -n "$PKG_CONFIG" && \ |
---|
25303 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\"") >&5 |
---|
25304 | ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5 |
---|
25305 | ac_status=$? |
---|
25306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25307 | (exit $ac_status); }; then |
---|
25308 | pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0" 2>/dev/null` |
---|
25309 | else |
---|
25310 | pkg_failed=yes |
---|
25311 | fi |
---|
25312 | fi |
---|
25313 | else |
---|
25314 | pkg_failed=untried |
---|
25315 | fi |
---|
25316 | if test -n "$PKG_CONFIG"; then |
---|
25317 | if test -n "$GTK_LIBS"; then |
---|
25318 | pkg_cv_GTK_LIBS="$GTK_LIBS" |
---|
25319 | else |
---|
25320 | if test -n "$PKG_CONFIG" && \ |
---|
25321 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\"") >&5 |
---|
25322 | ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5 |
---|
25323 | ac_status=$? |
---|
25324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25325 | (exit $ac_status); }; then |
---|
25326 | pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0" 2>/dev/null` |
---|
25327 | else |
---|
25328 | pkg_failed=yes |
---|
25329 | fi |
---|
25330 | fi |
---|
25331 | else |
---|
25332 | pkg_failed=untried |
---|
25333 | fi |
---|
25334 | |
---|
25335 | |
---|
25336 | |
---|
25337 | if test $pkg_failed = yes; then |
---|
25338 | |
---|
25339 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
25340 | _pkg_short_errors_supported=yes |
---|
25341 | else |
---|
25342 | _pkg_short_errors_supported=no |
---|
25343 | fi |
---|
25344 | if test $_pkg_short_errors_supported = yes; then |
---|
25345 | GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"` |
---|
25346 | else |
---|
25347 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"` |
---|
25348 | fi |
---|
25349 | # Put the nasty error message in config.log where it belongs |
---|
25350 | echo "$GTK_PKG_ERRORS" >&5 |
---|
25351 | |
---|
25352 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
25353 | echo "${ECHO_T}no" >&6; } |
---|
25354 | |
---|
25355 | if test "x$with_gui" == "xgtk"; then |
---|
25356 | { { echo "$as_me:$LINENO: error: You chose gtk for the GUI but gtk is not available." >&5 |
---|
25357 | echo "$as_me: error: You chose gtk for the GUI but gtk is not available." >&2;} |
---|
25358 | { (exit 1); exit 1; }; } |
---|
25359 | fi |
---|
25360 | |
---|
25361 | elif test $pkg_failed = untried; then |
---|
25362 | |
---|
25363 | if test "x$with_gui" == "xgtk"; then |
---|
25364 | { { echo "$as_me:$LINENO: error: You chose gtk for the GUI but gtk is not available." >&5 |
---|
25365 | echo "$as_me: error: You chose gtk for the GUI but gtk is not available." >&2;} |
---|
25366 | { (exit 1); exit 1; }; } |
---|
25367 | fi |
---|
25368 | |
---|
25369 | else |
---|
25370 | GTK_CFLAGS=$pkg_cv_GTK_CFLAGS |
---|
25371 | GTK_LIBS=$pkg_cv_GTK_LIBS |
---|
25372 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
25373 | echo "${ECHO_T}yes" >&6; } |
---|
25374 | with_gui=gtk |
---|
25375 | fi |
---|
25376 | fi |
---|
25377 | |
---|
25378 | if test "x$with_gui" == "xauto"; then |
---|
25379 | with_gui=Xt |
---|
25380 | fi |
---|
25381 | |
---|
25382 | if test "x$with_gui" == "xwin32"; then |
---|
25383 | OGRE_GUI=WIN32 |
---|
25384 | elif test "x$with_gui" == "xgtk"; then |
---|
25385 | OGRE_GUI=gtk |
---|
25386 | elif test "x$with_gui" == "xXt"; then |
---|
25387 | OGRE_GUI=GLX |
---|
25388 | PLATFORM_LIBS="$PLATFORM_LIBS -lXt -lSM -lICE" |
---|
25389 | else |
---|
25390 | { { echo "$as_me:$LINENO: error: The GUI dialogs for $with_gui are not available." >&5 |
---|
25391 | echo "$as_me: error: The GUI dialogs for $with_gui are not available." >&2;} |
---|
25392 | { (exit 1); exit 1; }; } |
---|
25393 | fi |
---|
25394 | |
---|
25395 | # Add the OGRE_GUI_xxx flag to compiler command line |
---|
25396 | PLATFORM_CFLAGS="$PLATFORM_CFLAGS -DOGRE_GUI_$OGRE_GUI" |
---|
25397 | # And export it to client applications as well |
---|
25398 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_GUI_$OGRE_GUI" |
---|
25399 | |
---|
25400 | |
---|
25401 | |
---|
25402 | |
---|
25403 | |
---|
25404 | |
---|
25405 | # Check whether --enable-double was given. |
---|
25406 | if test "${enable_double+set}" = set; then |
---|
25407 | enableval=$enable_double; build_double=$enableval |
---|
25408 | else |
---|
25409 | build_double=no |
---|
25410 | fi |
---|
25411 | |
---|
25412 | { echo "$as_me:$LINENO: checking whether to use double floating point precision" >&5 |
---|
25413 | echo $ECHO_N "checking whether to use double floating point precision... $ECHO_C" >&6; } |
---|
25414 | case $build_double in |
---|
25415 | yes) |
---|
25416 | |
---|
25417 | cat >>confdefs.h <<\_ACEOF |
---|
25418 | #define OGRE_DOUBLE_PRECISION 1 |
---|
25419 | _ACEOF |
---|
25420 | |
---|
25421 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_DOUBLE_PRECISION" |
---|
25422 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
25423 | echo "${ECHO_T}yes" >&6; } |
---|
25424 | ;; |
---|
25425 | *) |
---|
25426 | |
---|
25427 | cat >>confdefs.h <<\_ACEOF |
---|
25428 | #define OGRE_DOUBLE_PRECISION 0 |
---|
25429 | _ACEOF |
---|
25430 | |
---|
25431 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
25432 | echo "${ECHO_T}no" >&6; } |
---|
25433 | ;; |
---|
25434 | esac |
---|
25435 | |
---|
25436 | |
---|
25437 | # Check whether --enable-threading was given. |
---|
25438 | if test "${enable_threading+set}" = set; then |
---|
25439 | enableval=$enable_threading; build_threads=$enableval |
---|
25440 | else |
---|
25441 | build_threads=no |
---|
25442 | fi |
---|
25443 | |
---|
25444 | case $build_threads in |
---|
25445 | yes) |
---|
25446 | |
---|
25447 | cat >>confdefs.h <<\_ACEOF |
---|
25448 | #define OGRE_THREAD_SUPPORT 1 |
---|
25449 | _ACEOF |
---|
25450 | |
---|
25451 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_THREAD_SUPPORT" |
---|
25452 | # Check for the C++ Boost library |
---|
25453 | { echo "$as_me:$LINENO: checking for main in -lboost_thread" >&5 |
---|
25454 | echo $ECHO_N "checking for main in -lboost_thread... $ECHO_C" >&6; } |
---|
25455 | if test "${ac_cv_lib_boost_thread_main+set}" = set; then |
---|
25456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25457 | else |
---|
25458 | ac_check_lib_save_LIBS=$LIBS |
---|
25459 | LIBS="-lboost_thread $LIBS" |
---|
25460 | cat >conftest.$ac_ext <<_ACEOF |
---|
25461 | /* confdefs.h. */ |
---|
25462 | _ACEOF |
---|
25463 | cat confdefs.h >>conftest.$ac_ext |
---|
25464 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25465 | /* end confdefs.h. */ |
---|
25466 | |
---|
25467 | |
---|
25468 | int |
---|
25469 | main () |
---|
25470 | { |
---|
25471 | return main (); |
---|
25472 | ; |
---|
25473 | return 0; |
---|
25474 | } |
---|
25475 | _ACEOF |
---|
25476 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25477 | if { (ac_try="$ac_link" |
---|
25478 | case "(($ac_try" in |
---|
25479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25480 | *) ac_try_echo=$ac_try;; |
---|
25481 | esac |
---|
25482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25483 | (eval "$ac_link") 2>conftest.er1 |
---|
25484 | ac_status=$? |
---|
25485 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25486 | rm -f conftest.er1 |
---|
25487 | cat conftest.err >&5 |
---|
25488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25489 | (exit $ac_status); } && { |
---|
25490 | test -z "$ac_c_werror_flag" || |
---|
25491 | test ! -s conftest.err |
---|
25492 | } && test -s conftest$ac_exeext && |
---|
25493 | $as_test_x conftest$ac_exeext; then |
---|
25494 | ac_cv_lib_boost_thread_main=yes |
---|
25495 | else |
---|
25496 | echo "$as_me: failed program was:" >&5 |
---|
25497 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25498 | |
---|
25499 | ac_cv_lib_boost_thread_main=no |
---|
25500 | fi |
---|
25501 | |
---|
25502 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25503 | conftest$ac_exeext conftest.$ac_ext |
---|
25504 | LIBS=$ac_check_lib_save_LIBS |
---|
25505 | fi |
---|
25506 | { echo "$as_me:$LINENO: result: $ac_cv_lib_boost_thread_main" >&5 |
---|
25507 | echo "${ECHO_T}$ac_cv_lib_boost_thread_main" >&6; } |
---|
25508 | if test $ac_cv_lib_boost_thread_main = yes; then |
---|
25509 | OGRE_THREAD_LIBS="-lboost_thread" |
---|
25510 | else |
---|
25511 | |
---|
25512 | { echo "$as_me:$LINENO: checking for main in -lboost_thread-mt" >&5 |
---|
25513 | echo $ECHO_N "checking for main in -lboost_thread-mt... $ECHO_C" >&6; } |
---|
25514 | if test "${ac_cv_lib_boost_thread_mt_main+set}" = set; then |
---|
25515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25516 | else |
---|
25517 | ac_check_lib_save_LIBS=$LIBS |
---|
25518 | LIBS="-lboost_thread-mt $LIBS" |
---|
25519 | cat >conftest.$ac_ext <<_ACEOF |
---|
25520 | /* confdefs.h. */ |
---|
25521 | _ACEOF |
---|
25522 | cat confdefs.h >>conftest.$ac_ext |
---|
25523 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25524 | /* end confdefs.h. */ |
---|
25525 | |
---|
25526 | |
---|
25527 | int |
---|
25528 | main () |
---|
25529 | { |
---|
25530 | return main (); |
---|
25531 | ; |
---|
25532 | return 0; |
---|
25533 | } |
---|
25534 | _ACEOF |
---|
25535 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25536 | if { (ac_try="$ac_link" |
---|
25537 | case "(($ac_try" in |
---|
25538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25539 | *) ac_try_echo=$ac_try;; |
---|
25540 | esac |
---|
25541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25542 | (eval "$ac_link") 2>conftest.er1 |
---|
25543 | ac_status=$? |
---|
25544 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25545 | rm -f conftest.er1 |
---|
25546 | cat conftest.err >&5 |
---|
25547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25548 | (exit $ac_status); } && { |
---|
25549 | test -z "$ac_c_werror_flag" || |
---|
25550 | test ! -s conftest.err |
---|
25551 | } && test -s conftest$ac_exeext && |
---|
25552 | $as_test_x conftest$ac_exeext; then |
---|
25553 | ac_cv_lib_boost_thread_mt_main=yes |
---|
25554 | else |
---|
25555 | echo "$as_me: failed program was:" >&5 |
---|
25556 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25557 | |
---|
25558 | ac_cv_lib_boost_thread_mt_main=no |
---|
25559 | fi |
---|
25560 | |
---|
25561 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25562 | conftest$ac_exeext conftest.$ac_ext |
---|
25563 | LIBS=$ac_check_lib_save_LIBS |
---|
25564 | fi |
---|
25565 | { echo "$as_me:$LINENO: result: $ac_cv_lib_boost_thread_mt_main" >&5 |
---|
25566 | echo "${ECHO_T}$ac_cv_lib_boost_thread_mt_main" >&6; } |
---|
25567 | if test $ac_cv_lib_boost_thread_mt_main = yes; then |
---|
25568 | OGRE_THREAD_LIBS="-lboost_thread-mt" |
---|
25569 | else |
---|
25570 | |
---|
25571 | { { echo "$as_me:$LINENO: error: You need the C++ boost libraries." >&5 |
---|
25572 | echo "$as_me: error: You need the C++ boost libraries." >&2;} |
---|
25573 | { (exit 1); exit 1; }; } |
---|
25574 | fi |
---|
25575 | |
---|
25576 | fi |
---|
25577 | |
---|
25578 | ;; |
---|
25579 | *) |
---|
25580 | |
---|
25581 | cat >>confdefs.h <<\_ACEOF |
---|
25582 | #define OGRE_THREAD_SUPPORT 0 |
---|
25583 | _ACEOF |
---|
25584 | |
---|
25585 | OGRE_THREAD_LIBS="" |
---|
25586 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
25587 | echo "${ECHO_T}no" >&6; } |
---|
25588 | ;; |
---|
25589 | esac |
---|
25590 | |
---|
25591 | |
---|
25592 | # Check whether --enable-freeimage was given. |
---|
25593 | if test "${enable_freeimage+set}" = set; then |
---|
25594 | enableval=$enable_freeimage; build_freeimage=$enableval |
---|
25595 | else |
---|
25596 | build_freeimage=yes |
---|
25597 | fi |
---|
25598 | |
---|
25599 | |
---|
25600 | |
---|
25601 | if test x$build_freeimage = xyes; then |
---|
25602 | USE_FREEIMAGE_TRUE= |
---|
25603 | USE_FREEIMAGE_FALSE='#' |
---|
25604 | else |
---|
25605 | USE_FREEIMAGE_TRUE='#' |
---|
25606 | USE_FREEIMAGE_FALSE= |
---|
25607 | fi |
---|
25608 | |
---|
25609 | |
---|
25610 | if test "x$build_freeimage" = "xyes" ; then |
---|
25611 | |
---|
25612 | { echo "$as_me:$LINENO: checking for FreeImage_Load in -lfreeimage" >&5 |
---|
25613 | echo $ECHO_N "checking for FreeImage_Load in -lfreeimage... $ECHO_C" >&6; } |
---|
25614 | if test "${ac_cv_lib_freeimage_FreeImage_Load+set}" = set; then |
---|
25615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25616 | else |
---|
25617 | ac_check_lib_save_LIBS=$LIBS |
---|
25618 | LIBS="-lfreeimage -lstdc++ $LIBS" |
---|
25619 | cat >conftest.$ac_ext <<_ACEOF |
---|
25620 | /* confdefs.h. */ |
---|
25621 | _ACEOF |
---|
25622 | cat confdefs.h >>conftest.$ac_ext |
---|
25623 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25624 | /* end confdefs.h. */ |
---|
25625 | |
---|
25626 | /* Override any GCC internal prototype to avoid an error. |
---|
25627 | Use char because int might match the return type of a GCC |
---|
25628 | builtin and then its argument prototype would still apply. */ |
---|
25629 | #ifdef __cplusplus |
---|
25630 | extern "C" |
---|
25631 | #endif |
---|
25632 | char FreeImage_Load (); |
---|
25633 | int |
---|
25634 | main () |
---|
25635 | { |
---|
25636 | return FreeImage_Load (); |
---|
25637 | ; |
---|
25638 | return 0; |
---|
25639 | } |
---|
25640 | _ACEOF |
---|
25641 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25642 | if { (ac_try="$ac_link" |
---|
25643 | case "(($ac_try" in |
---|
25644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25645 | *) ac_try_echo=$ac_try;; |
---|
25646 | esac |
---|
25647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25648 | (eval "$ac_link") 2>conftest.er1 |
---|
25649 | ac_status=$? |
---|
25650 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25651 | rm -f conftest.er1 |
---|
25652 | cat conftest.err >&5 |
---|
25653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25654 | (exit $ac_status); } && { |
---|
25655 | test -z "$ac_c_werror_flag" || |
---|
25656 | test ! -s conftest.err |
---|
25657 | } && test -s conftest$ac_exeext && |
---|
25658 | $as_test_x conftest$ac_exeext; then |
---|
25659 | ac_cv_lib_freeimage_FreeImage_Load=yes |
---|
25660 | else |
---|
25661 | echo "$as_me: failed program was:" >&5 |
---|
25662 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25663 | |
---|
25664 | ac_cv_lib_freeimage_FreeImage_Load=no |
---|
25665 | fi |
---|
25666 | |
---|
25667 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25668 | conftest$ac_exeext conftest.$ac_ext |
---|
25669 | LIBS=$ac_check_lib_save_LIBS |
---|
25670 | fi |
---|
25671 | { echo "$as_me:$LINENO: result: $ac_cv_lib_freeimage_FreeImage_Load" >&5 |
---|
25672 | echo "${ECHO_T}$ac_cv_lib_freeimage_FreeImage_Load" >&6; } |
---|
25673 | if test $ac_cv_lib_freeimage_FreeImage_Load = yes; then |
---|
25674 | cat >>confdefs.h <<_ACEOF |
---|
25675 | #define HAVE_LIBFREEIMAGE 1 |
---|
25676 | _ACEOF |
---|
25677 | |
---|
25678 | LIBS="-lfreeimage $LIBS" |
---|
25679 | |
---|
25680 | else |
---|
25681 | { { echo "$as_me:$LINENO: error: |
---|
25682 | **************************************************************** |
---|
25683 | * You do not have FreeImage installed. This is required. * |
---|
25684 | * You may find it at http://freeimage.sourceforge.net/. * |
---|
25685 | * Note: You can also provide --disable-freeimage to the build * |
---|
25686 | * process to build without it. This is an advanced option * |
---|
25687 | * useful only if you provide your own image loading codecs. * |
---|
25688 | ****************************************************************" >&5 |
---|
25689 | echo "$as_me: error: |
---|
25690 | **************************************************************** |
---|
25691 | * You do not have FreeImage installed. This is required. * |
---|
25692 | * You may find it at http://freeimage.sourceforge.net/. * |
---|
25693 | * Note: You can also provide --disable-freeimage to the build * |
---|
25694 | * process to build without it. This is an advanced option * |
---|
25695 | * useful only if you provide your own image loading codecs. * |
---|
25696 | ****************************************************************" >&2;} |
---|
25697 | { (exit 1); exit 1; }; } |
---|
25698 | fi |
---|
25699 | |
---|
25700 | |
---|
25701 | cat >>confdefs.h <<\_ACEOF |
---|
25702 | #define OGRE_NO_FREEIMAGE 0 |
---|
25703 | _ACEOF |
---|
25704 | |
---|
25705 | else |
---|
25706 | |
---|
25707 | cat >>confdefs.h <<\_ACEOF |
---|
25708 | #define OGRE_NO_FREEIMAGE 1 |
---|
25709 | _ACEOF |
---|
25710 | |
---|
25711 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_NO_FREEIMAGE" |
---|
25712 | fi |
---|
25713 | |
---|
25714 | |
---|
25715 | |
---|
25716 | # Check whether --enable-devil was given. |
---|
25717 | if test "${enable_devil+set}" = set; then |
---|
25718 | enableval=$enable_devil; build_il=$enableval |
---|
25719 | else |
---|
25720 | build_il=yes |
---|
25721 | fi |
---|
25722 | |
---|
25723 | |
---|
25724 | if test x$build_il = xyes && test x$build_freeimage = xno; then |
---|
25725 | USE_DEVIL_TRUE= |
---|
25726 | USE_DEVIL_FALSE='#' |
---|
25727 | else |
---|
25728 | USE_DEVIL_TRUE='#' |
---|
25729 | USE_DEVIL_FALSE= |
---|
25730 | fi |
---|
25731 | |
---|
25732 | |
---|
25733 | if test "x$build_freeimage" = "xyes"; then |
---|
25734 | { echo "$as_me:$LINENO: Freeimage is being built, disabling check for DevIL." >&5 |
---|
25735 | echo "$as_me: Freeimage is being built, disabling check for DevIL." >&6;} |
---|
25736 | build_il=no |
---|
25737 | |
---|
25738 | cat >>confdefs.h <<\_ACEOF |
---|
25739 | #define OGRE_NO_DEVIL 1 |
---|
25740 | _ACEOF |
---|
25741 | |
---|
25742 | else |
---|
25743 | if test "x$build_il" = "xyes"; then |
---|
25744 | |
---|
25745 | { echo "$as_me:$LINENO: checking for ilInit in -lIL" >&5 |
---|
25746 | echo $ECHO_N "checking for ilInit in -lIL... $ECHO_C" >&6; } |
---|
25747 | if test "${ac_cv_lib_IL_ilInit+set}" = set; then |
---|
25748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25749 | else |
---|
25750 | ac_check_lib_save_LIBS=$LIBS |
---|
25751 | LIBS="-lIL $LIBS" |
---|
25752 | cat >conftest.$ac_ext <<_ACEOF |
---|
25753 | /* confdefs.h. */ |
---|
25754 | _ACEOF |
---|
25755 | cat confdefs.h >>conftest.$ac_ext |
---|
25756 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25757 | /* end confdefs.h. */ |
---|
25758 | |
---|
25759 | /* Override any GCC internal prototype to avoid an error. |
---|
25760 | Use char because int might match the return type of a GCC |
---|
25761 | builtin and then its argument prototype would still apply. */ |
---|
25762 | #ifdef __cplusplus |
---|
25763 | extern "C" |
---|
25764 | #endif |
---|
25765 | char ilInit (); |
---|
25766 | int |
---|
25767 | main () |
---|
25768 | { |
---|
25769 | return ilInit (); |
---|
25770 | ; |
---|
25771 | return 0; |
---|
25772 | } |
---|
25773 | _ACEOF |
---|
25774 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25775 | if { (ac_try="$ac_link" |
---|
25776 | case "(($ac_try" in |
---|
25777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25778 | *) ac_try_echo=$ac_try;; |
---|
25779 | esac |
---|
25780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25781 | (eval "$ac_link") 2>conftest.er1 |
---|
25782 | ac_status=$? |
---|
25783 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25784 | rm -f conftest.er1 |
---|
25785 | cat conftest.err >&5 |
---|
25786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25787 | (exit $ac_status); } && { |
---|
25788 | test -z "$ac_c_werror_flag" || |
---|
25789 | test ! -s conftest.err |
---|
25790 | } && test -s conftest$ac_exeext && |
---|
25791 | $as_test_x conftest$ac_exeext; then |
---|
25792 | ac_cv_lib_IL_ilInit=yes |
---|
25793 | else |
---|
25794 | echo "$as_me: failed program was:" >&5 |
---|
25795 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25796 | |
---|
25797 | ac_cv_lib_IL_ilInit=no |
---|
25798 | fi |
---|
25799 | |
---|
25800 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25801 | conftest$ac_exeext conftest.$ac_ext |
---|
25802 | LIBS=$ac_check_lib_save_LIBS |
---|
25803 | fi |
---|
25804 | { echo "$as_me:$LINENO: result: $ac_cv_lib_IL_ilInit" >&5 |
---|
25805 | echo "${ECHO_T}$ac_cv_lib_IL_ilInit" >&6; } |
---|
25806 | if test $ac_cv_lib_IL_ilInit = yes; then |
---|
25807 | cat >>confdefs.h <<_ACEOF |
---|
25808 | #define HAVE_LIBIL 1 |
---|
25809 | _ACEOF |
---|
25810 | |
---|
25811 | LIBS="-lIL $LIBS" |
---|
25812 | |
---|
25813 | else |
---|
25814 | { { echo "$as_me:$LINENO: error: |
---|
25815 | **************************************************************** |
---|
25816 | * You do not have DevIL installed. This is required to build. * |
---|
25817 | * You may find it at http://openil.sourceforge.net/. * |
---|
25818 | * Note: You can also provide --disable-devil to the build * |
---|
25819 | * process to build without DevIL. This is an advanced option * |
---|
25820 | * useful only if you provide your own image loading codecs. * |
---|
25821 | ****************************************************************" >&5 |
---|
25822 | echo "$as_me: error: |
---|
25823 | **************************************************************** |
---|
25824 | * You do not have DevIL installed. This is required to build. * |
---|
25825 | * You may find it at http://openil.sourceforge.net/. * |
---|
25826 | * Note: You can also provide --disable-devil to the build * |
---|
25827 | * process to build without DevIL. This is an advanced option * |
---|
25828 | * useful only if you provide your own image loading codecs. * |
---|
25829 | ****************************************************************" >&2;} |
---|
25830 | { (exit 1); exit 1; }; } |
---|
25831 | fi |
---|
25832 | |
---|
25833 | |
---|
25834 | { echo "$as_me:$LINENO: checking for iluFlipImage in -lILU" >&5 |
---|
25835 | echo $ECHO_N "checking for iluFlipImage in -lILU... $ECHO_C" >&6; } |
---|
25836 | if test "${ac_cv_lib_ILU_iluFlipImage+set}" = set; then |
---|
25837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25838 | else |
---|
25839 | ac_check_lib_save_LIBS=$LIBS |
---|
25840 | LIBS="-lILU $LIBS" |
---|
25841 | cat >conftest.$ac_ext <<_ACEOF |
---|
25842 | /* confdefs.h. */ |
---|
25843 | _ACEOF |
---|
25844 | cat confdefs.h >>conftest.$ac_ext |
---|
25845 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25846 | /* end confdefs.h. */ |
---|
25847 | |
---|
25848 | /* Override any GCC internal prototype to avoid an error. |
---|
25849 | Use char because int might match the return type of a GCC |
---|
25850 | builtin and then its argument prototype would still apply. */ |
---|
25851 | #ifdef __cplusplus |
---|
25852 | extern "C" |
---|
25853 | #endif |
---|
25854 | char iluFlipImage (); |
---|
25855 | int |
---|
25856 | main () |
---|
25857 | { |
---|
25858 | return iluFlipImage (); |
---|
25859 | ; |
---|
25860 | return 0; |
---|
25861 | } |
---|
25862 | _ACEOF |
---|
25863 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25864 | if { (ac_try="$ac_link" |
---|
25865 | case "(($ac_try" in |
---|
25866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25867 | *) ac_try_echo=$ac_try;; |
---|
25868 | esac |
---|
25869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25870 | (eval "$ac_link") 2>conftest.er1 |
---|
25871 | ac_status=$? |
---|
25872 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25873 | rm -f conftest.er1 |
---|
25874 | cat conftest.err >&5 |
---|
25875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25876 | (exit $ac_status); } && { |
---|
25877 | test -z "$ac_c_werror_flag" || |
---|
25878 | test ! -s conftest.err |
---|
25879 | } && test -s conftest$ac_exeext && |
---|
25880 | $as_test_x conftest$ac_exeext; then |
---|
25881 | ac_cv_lib_ILU_iluFlipImage=yes |
---|
25882 | else |
---|
25883 | echo "$as_me: failed program was:" >&5 |
---|
25884 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25885 | |
---|
25886 | ac_cv_lib_ILU_iluFlipImage=no |
---|
25887 | fi |
---|
25888 | |
---|
25889 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25890 | conftest$ac_exeext conftest.$ac_ext |
---|
25891 | LIBS=$ac_check_lib_save_LIBS |
---|
25892 | fi |
---|
25893 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ILU_iluFlipImage" >&5 |
---|
25894 | echo "${ECHO_T}$ac_cv_lib_ILU_iluFlipImage" >&6; } |
---|
25895 | if test $ac_cv_lib_ILU_iluFlipImage = yes; then |
---|
25896 | cat >>confdefs.h <<_ACEOF |
---|
25897 | #define HAVE_LIBILU 1 |
---|
25898 | _ACEOF |
---|
25899 | |
---|
25900 | LIBS="-lILU $LIBS" |
---|
25901 | |
---|
25902 | fi |
---|
25903 | |
---|
25904 | |
---|
25905 | cat >>confdefs.h <<\_ACEOF |
---|
25906 | #define OGRE_NO_DEVIL 0 |
---|
25907 | _ACEOF |
---|
25908 | |
---|
25909 | else |
---|
25910 | |
---|
25911 | cat >>confdefs.h <<\_ACEOF |
---|
25912 | #define OGRE_NO_DEVIL 1 |
---|
25913 | _ACEOF |
---|
25914 | |
---|
25915 | fi |
---|
25916 | fi |
---|
25917 | |
---|
25918 | |
---|
25919 | # Check whether --enable-cg was given. |
---|
25920 | if test "${enable_cg+set}" = set; then |
---|
25921 | enableval=$enable_cg; build_cg=$enableval |
---|
25922 | else |
---|
25923 | build_cg=yes |
---|
25924 | fi |
---|
25925 | |
---|
25926 | |
---|
25927 | if test "x$build_cg" = "xyes" ; then |
---|
25928 | |
---|
25929 | { echo "$as_me:$LINENO: checking for cgCreateProgram in -lCg" >&5 |
---|
25930 | echo $ECHO_N "checking for cgCreateProgram in -lCg... $ECHO_C" >&6; } |
---|
25931 | if test "${ac_cv_lib_Cg_cgCreateProgram+set}" = set; then |
---|
25932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25933 | else |
---|
25934 | ac_check_lib_save_LIBS=$LIBS |
---|
25935 | LIBS="-lCg $LIBS" |
---|
25936 | cat >conftest.$ac_ext <<_ACEOF |
---|
25937 | /* confdefs.h. */ |
---|
25938 | _ACEOF |
---|
25939 | cat confdefs.h >>conftest.$ac_ext |
---|
25940 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25941 | /* end confdefs.h. */ |
---|
25942 | |
---|
25943 | /* Override any GCC internal prototype to avoid an error. |
---|
25944 | Use char because int might match the return type of a GCC |
---|
25945 | builtin and then its argument prototype would still apply. */ |
---|
25946 | #ifdef __cplusplus |
---|
25947 | extern "C" |
---|
25948 | #endif |
---|
25949 | char cgCreateProgram (); |
---|
25950 | int |
---|
25951 | main () |
---|
25952 | { |
---|
25953 | return cgCreateProgram (); |
---|
25954 | ; |
---|
25955 | return 0; |
---|
25956 | } |
---|
25957 | _ACEOF |
---|
25958 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25959 | if { (ac_try="$ac_link" |
---|
25960 | case "(($ac_try" in |
---|
25961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25962 | *) ac_try_echo=$ac_try;; |
---|
25963 | esac |
---|
25964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25965 | (eval "$ac_link") 2>conftest.er1 |
---|
25966 | ac_status=$? |
---|
25967 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25968 | rm -f conftest.er1 |
---|
25969 | cat conftest.err >&5 |
---|
25970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25971 | (exit $ac_status); } && { |
---|
25972 | test -z "$ac_c_werror_flag" || |
---|
25973 | test ! -s conftest.err |
---|
25974 | } && test -s conftest$ac_exeext && |
---|
25975 | $as_test_x conftest$ac_exeext; then |
---|
25976 | ac_cv_lib_Cg_cgCreateProgram=yes |
---|
25977 | else |
---|
25978 | echo "$as_me: failed program was:" >&5 |
---|
25979 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25980 | |
---|
25981 | ac_cv_lib_Cg_cgCreateProgram=no |
---|
25982 | fi |
---|
25983 | |
---|
25984 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25985 | conftest$ac_exeext conftest.$ac_ext |
---|
25986 | LIBS=$ac_check_lib_save_LIBS |
---|
25987 | fi |
---|
25988 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Cg_cgCreateProgram" >&5 |
---|
25989 | echo "${ECHO_T}$ac_cv_lib_Cg_cgCreateProgram" >&6; } |
---|
25990 | if test $ac_cv_lib_Cg_cgCreateProgram = yes; then |
---|
25991 | cat >>confdefs.h <<_ACEOF |
---|
25992 | #define HAVE_LIBCG 1 |
---|
25993 | _ACEOF |
---|
25994 | |
---|
25995 | LIBS="-lCg $LIBS" |
---|
25996 | |
---|
25997 | else |
---|
25998 | { { echo "$as_me:$LINENO: error: |
---|
25999 | **************************************************************** |
---|
26000 | * You do not have the nVidia Cg libraries installed. * |
---|
26001 | * Go to http://developer.nvidia.com/object/cg_toolkit.html * |
---|
26002 | * (Click on Cg_Linux.tar.gz). * |
---|
26003 | * You can disable the building of Cg support by providing * |
---|
26004 | * --disable-cg to this configure script but this is highly * |
---|
26005 | * discouraged as this breaks many of the examples. * |
---|
26006 | ****************************************************************" >&5 |
---|
26007 | echo "$as_me: error: |
---|
26008 | **************************************************************** |
---|
26009 | * You do not have the nVidia Cg libraries installed. * |
---|
26010 | * Go to http://developer.nvidia.com/object/cg_toolkit.html * |
---|
26011 | * (Click on Cg_Linux.tar.gz). * |
---|
26012 | * You can disable the building of Cg support by providing * |
---|
26013 | * --disable-cg to this configure script but this is highly * |
---|
26014 | * discouraged as this breaks many of the examples. * |
---|
26015 | ****************************************************************" >&2;} |
---|
26016 | { (exit 1); exit 1; }; } |
---|
26017 | |
---|
26018 | fi |
---|
26019 | |
---|
26020 | fi |
---|
26021 | |
---|
26022 | if test x$build_cg = xyes; then |
---|
26023 | BUILD_CGPLUGIN_TRUE= |
---|
26024 | BUILD_CGPLUGIN_FALSE='#' |
---|
26025 | else |
---|
26026 | BUILD_CGPLUGIN_TRUE='#' |
---|
26027 | BUILD_CGPLUGIN_FALSE= |
---|
26028 | fi |
---|
26029 | |
---|
26030 | |
---|
26031 | |
---|
26032 | # Check whether --enable-openexr was given. |
---|
26033 | if test "${enable_openexr+set}" = set; then |
---|
26034 | enableval=$enable_openexr; build_exr=$enableval |
---|
26035 | else |
---|
26036 | build_exr=no |
---|
26037 | fi |
---|
26038 | |
---|
26039 | |
---|
26040 | if test "x$build_exr" = "xyes" ; then |
---|
26041 | |
---|
26042 | pkg_failed=no |
---|
26043 | { echo "$as_me:$LINENO: checking for OPENEXR" >&5 |
---|
26044 | echo $ECHO_N "checking for OPENEXR... $ECHO_C" >&6; } |
---|
26045 | |
---|
26046 | if test -n "$PKG_CONFIG"; then |
---|
26047 | if test -n "$OPENEXR_CFLAGS"; then |
---|
26048 | pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" |
---|
26049 | else |
---|
26050 | if test -n "$PKG_CONFIG" && \ |
---|
26051 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR\"") >&5 |
---|
26052 | ($PKG_CONFIG --exists --print-errors "OpenEXR") 2>&5 |
---|
26053 | ac_status=$? |
---|
26054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26055 | (exit $ac_status); }; then |
---|
26056 | pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR" 2>/dev/null` |
---|
26057 | else |
---|
26058 | pkg_failed=yes |
---|
26059 | fi |
---|
26060 | fi |
---|
26061 | else |
---|
26062 | pkg_failed=untried |
---|
26063 | fi |
---|
26064 | if test -n "$PKG_CONFIG"; then |
---|
26065 | if test -n "$OPENEXR_LIBS"; then |
---|
26066 | pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" |
---|
26067 | else |
---|
26068 | if test -n "$PKG_CONFIG" && \ |
---|
26069 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR\"") >&5 |
---|
26070 | ($PKG_CONFIG --exists --print-errors "OpenEXR") 2>&5 |
---|
26071 | ac_status=$? |
---|
26072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26073 | (exit $ac_status); }; then |
---|
26074 | pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR" 2>/dev/null` |
---|
26075 | else |
---|
26076 | pkg_failed=yes |
---|
26077 | fi |
---|
26078 | fi |
---|
26079 | else |
---|
26080 | pkg_failed=untried |
---|
26081 | fi |
---|
26082 | |
---|
26083 | |
---|
26084 | |
---|
26085 | if test $pkg_failed = yes; then |
---|
26086 | |
---|
26087 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
26088 | _pkg_short_errors_supported=yes |
---|
26089 | else |
---|
26090 | _pkg_short_errors_supported=no |
---|
26091 | fi |
---|
26092 | if test $_pkg_short_errors_supported = yes; then |
---|
26093 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "OpenEXR"` |
---|
26094 | else |
---|
26095 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "OpenEXR"` |
---|
26096 | fi |
---|
26097 | # Put the nasty error message in config.log where it belongs |
---|
26098 | echo "$OPENEXR_PKG_ERRORS" >&5 |
---|
26099 | |
---|
26100 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
26101 | echo "${ECHO_T}no" >&6; } |
---|
26102 | build_exr=no |
---|
26103 | elif test $pkg_failed = untried; then |
---|
26104 | build_exr=no |
---|
26105 | else |
---|
26106 | OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS |
---|
26107 | OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS |
---|
26108 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
26109 | echo "${ECHO_T}yes" >&6; } |
---|
26110 | build_exr=yes |
---|
26111 | fi |
---|
26112 | |
---|
26113 | if test "x$build_exr" = "xyes" ; then |
---|
26114 | ac_config_files="$ac_config_files PlugIns/EXRCodec/Makefile PlugIns/EXRCodec/src/Makefile PlugIns/EXRCodec/include/Makefile" |
---|
26115 | |
---|
26116 | |
---|
26117 | |
---|
26118 | |
---|
26119 | fi |
---|
26120 | |
---|
26121 | fi |
---|
26122 | |
---|
26123 | if test x$build_exr = xyes; then |
---|
26124 | BUILD_EXRPLUGIN_TRUE= |
---|
26125 | BUILD_EXRPLUGIN_FALSE='#' |
---|
26126 | else |
---|
26127 | BUILD_EXRPLUGIN_TRUE='#' |
---|
26128 | BUILD_EXRPLUGIN_FALSE= |
---|
26129 | fi |
---|
26130 | |
---|
26131 | |
---|
26132 | |
---|
26133 | # Check whether --enable-direct3d was given. |
---|
26134 | if test "${enable_direct3d+set}" = set; then |
---|
26135 | enableval=$enable_direct3d; build_dx9=$enableval |
---|
26136 | else |
---|
26137 | build_dx9=no |
---|
26138 | fi |
---|
26139 | |
---|
26140 | |
---|
26141 | if test x$build_dx9 = xyes; then |
---|
26142 | BUILD_DX9RENDERSYSTEM_TRUE= |
---|
26143 | BUILD_DX9RENDERSYSTEM_FALSE='#' |
---|
26144 | else |
---|
26145 | BUILD_DX9RENDERSYSTEM_TRUE='#' |
---|
26146 | BUILD_DX9RENDERSYSTEM_FALSE= |
---|
26147 | fi |
---|
26148 | |
---|
26149 | |
---|
26150 | |
---|
26151 | |
---|
26152 | { echo "$as_me:$LINENO: checking whether to use SSE" >&5 |
---|
26153 | echo $ECHO_N "checking whether to use SSE... $ECHO_C" >&6; } |
---|
26154 | case $target_cpu in |
---|
26155 | i386 | i486 | i586 | i686 | x86_64 | amd64) |
---|
26156 | build_sse=yes |
---|
26157 | ;; |
---|
26158 | *) |
---|
26159 | build_sse=no |
---|
26160 | ;; |
---|
26161 | esac |
---|
26162 | { echo "$as_me:$LINENO: result: $build_sse" >&5 |
---|
26163 | echo "${ECHO_T}$build_sse" >&6; } |
---|
26164 | if test x$build_sse = xyes; then |
---|
26165 | OGRE_BUILD_SSE_TRUE= |
---|
26166 | OGRE_BUILD_SSE_FALSE='#' |
---|
26167 | else |
---|
26168 | OGRE_BUILD_SSE_TRUE='#' |
---|
26169 | OGRE_BUILD_SSE_FALSE= |
---|
26170 | fi |
---|
26171 | |
---|
26172 | |
---|
26173 | |
---|
26174 | if test "x$OGRE_PLATFORM" = "x$OGRE_GUI"; then |
---|
26175 | SAME_PLATFORM_AND_GUI_TRUE= |
---|
26176 | SAME_PLATFORM_AND_GUI_FALSE='#' |
---|
26177 | else |
---|
26178 | SAME_PLATFORM_AND_GUI_TRUE='#' |
---|
26179 | SAME_PLATFORM_AND_GUI_FALSE= |
---|
26180 | fi |
---|
26181 | |
---|
26182 | |
---|
26183 | |
---|
26184 | |
---|
26185 | # Check whether --enable-ogre_demos was given. |
---|
26186 | if test "${enable_ogre_demos+set}" = set; then |
---|
26187 | enableval=$enable_ogre_demos; build_ogre_demos=$enableval |
---|
26188 | else |
---|
26189 | build_ogre_demos=yes |
---|
26190 | fi |
---|
26191 | |
---|
26192 | |
---|
26193 | if test "x$build_ogre_demos" = "xyes" ; then |
---|
26194 | |
---|
26195 | pkg_failed=no |
---|
26196 | { echo "$as_me:$LINENO: checking for OIS" >&5 |
---|
26197 | echo $ECHO_N "checking for OIS... $ECHO_C" >&6; } |
---|
26198 | |
---|
26199 | if test -n "$PKG_CONFIG"; then |
---|
26200 | if test -n "$OIS_CFLAGS"; then |
---|
26201 | pkg_cv_OIS_CFLAGS="$OIS_CFLAGS" |
---|
26202 | else |
---|
26203 | if test -n "$PKG_CONFIG" && \ |
---|
26204 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OIS >= 1.0.0\"") >&5 |
---|
26205 | ($PKG_CONFIG --exists --print-errors "OIS >= 1.0.0") 2>&5 |
---|
26206 | ac_status=$? |
---|
26207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26208 | (exit $ac_status); }; then |
---|
26209 | pkg_cv_OIS_CFLAGS=`$PKG_CONFIG --cflags "OIS >= 1.0.0" 2>/dev/null` |
---|
26210 | else |
---|
26211 | pkg_failed=yes |
---|
26212 | fi |
---|
26213 | fi |
---|
26214 | else |
---|
26215 | pkg_failed=untried |
---|
26216 | fi |
---|
26217 | if test -n "$PKG_CONFIG"; then |
---|
26218 | if test -n "$OIS_LIBS"; then |
---|
26219 | pkg_cv_OIS_LIBS="$OIS_LIBS" |
---|
26220 | else |
---|
26221 | if test -n "$PKG_CONFIG" && \ |
---|
26222 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OIS >= 1.0.0\"") >&5 |
---|
26223 | ($PKG_CONFIG --exists --print-errors "OIS >= 1.0.0") 2>&5 |
---|
26224 | ac_status=$? |
---|
26225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26226 | (exit $ac_status); }; then |
---|
26227 | pkg_cv_OIS_LIBS=`$PKG_CONFIG --libs "OIS >= 1.0.0" 2>/dev/null` |
---|
26228 | else |
---|
26229 | pkg_failed=yes |
---|
26230 | fi |
---|
26231 | fi |
---|
26232 | else |
---|
26233 | pkg_failed=untried |
---|
26234 | fi |
---|
26235 | |
---|
26236 | |
---|
26237 | |
---|
26238 | if test $pkg_failed = yes; then |
---|
26239 | |
---|
26240 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
26241 | _pkg_short_errors_supported=yes |
---|
26242 | else |
---|
26243 | _pkg_short_errors_supported=no |
---|
26244 | fi |
---|
26245 | if test $_pkg_short_errors_supported = yes; then |
---|
26246 | OIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "OIS >= 1.0.0"` |
---|
26247 | else |
---|
26248 | OIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "OIS >= 1.0.0"` |
---|
26249 | fi |
---|
26250 | # Put the nasty error message in config.log where it belongs |
---|
26251 | echo "$OIS_PKG_ERRORS" >&5 |
---|
26252 | |
---|
26253 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
26254 | echo "${ECHO_T}no" >&6; } |
---|
26255 | ois_found=no |
---|
26256 | elif test $pkg_failed = untried; then |
---|
26257 | ois_found=no |
---|
26258 | else |
---|
26259 | OIS_CFLAGS=$pkg_cv_OIS_CFLAGS |
---|
26260 | OIS_LIBS=$pkg_cv_OIS_LIBS |
---|
26261 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
26262 | echo "${ECHO_T}yes" >&6; } |
---|
26263 | ois_found=yes |
---|
26264 | fi |
---|
26265 | |
---|
26266 | |
---|
26267 | |
---|
26268 | if test "x$ois_found" = "xyes" ; then |
---|
26269 | { echo "$as_me:$LINENO: *** Ogre Demos will be built ***" >&5 |
---|
26270 | echo "$as_me: *** Ogre Demos will be built ***" >&6;} |
---|
26271 | else |
---|
26272 | build_ogre_demos=no |
---|
26273 | { echo "$as_me:$LINENO: |
---|
26274 | **************************************************************** |
---|
26275 | * You do not have OIS installed. This is required to build * |
---|
26276 | * Ogre demos. You may find it at: * |
---|
26277 | * http://www.sourceforge.net/projects/wgois. * |
---|
26278 | * If you do not want to build the demos, you can safely ignore * |
---|
26279 | * this. * |
---|
26280 | ****************************************************************" >&5 |
---|
26281 | echo "$as_me: |
---|
26282 | **************************************************************** |
---|
26283 | * You do not have OIS installed. This is required to build * |
---|
26284 | * Ogre demos. You may find it at: * |
---|
26285 | * http://www.sourceforge.net/projects/wgois. * |
---|
26286 | * If you do not want to build the demos, you can safely ignore * |
---|
26287 | * this. * |
---|
26288 | ****************************************************************" >&6;} |
---|
26289 | fi |
---|
26290 | else |
---|
26291 | build_ogre_demos=no |
---|
26292 | { echo "$as_me:$LINENO: *** Building of Ogre demos disabled ***" >&5 |
---|
26293 | echo "$as_me: *** Building of Ogre demos disabled ***" >&6;} |
---|
26294 | fi |
---|
26295 | |
---|
26296 | if test x$build_ogre_demos = xyes; then |
---|
26297 | OGRE_BUILDING_DEMOS_TRUE= |
---|
26298 | OGRE_BUILDING_DEMOS_FALSE='#' |
---|
26299 | else |
---|
26300 | OGRE_BUILDING_DEMOS_TRUE='#' |
---|
26301 | OGRE_BUILDING_DEMOS_FALSE= |
---|
26302 | fi |
---|
26303 | |
---|
26304 | |
---|
26305 | |
---|
26306 | if test "$cross_compiling" = yes; then |
---|
26307 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
---|
26308 | See \`config.log' for more details." >&5 |
---|
26309 | echo "$as_me: error: cannot run test program while cross compiling |
---|
26310 | See \`config.log' for more details." >&2;} |
---|
26311 | { (exit 1); exit 1; }; } |
---|
26312 | else |
---|
26313 | cat >conftest.$ac_ext <<_ACEOF |
---|
26314 | /* confdefs.h. */ |
---|
26315 | _ACEOF |
---|
26316 | cat confdefs.h >>conftest.$ac_ext |
---|
26317 | cat >>conftest.$ac_ext <<_ACEOF |
---|
26318 | /* end confdefs.h. */ |
---|
26319 | |
---|
26320 | int main() |
---|
26321 | { |
---|
26322 | short s = 1; |
---|
26323 | short* ptr = &s; |
---|
26324 | unsigned char c = *((char*)ptr); |
---|
26325 | return c; |
---|
26326 | } |
---|
26327 | |
---|
26328 | |
---|
26329 | _ACEOF |
---|
26330 | rm -f conftest$ac_exeext |
---|
26331 | if { (ac_try="$ac_link" |
---|
26332 | case "(($ac_try" in |
---|
26333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
26334 | *) ac_try_echo=$ac_try;; |
---|
26335 | esac |
---|
26336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
26337 | (eval "$ac_link") 2>&5 |
---|
26338 | ac_status=$? |
---|
26339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26340 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
26341 | { (case "(($ac_try" in |
---|
26342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
26343 | *) ac_try_echo=$ac_try;; |
---|
26344 | esac |
---|
26345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
26346 | (eval "$ac_try") 2>&5 |
---|
26347 | ac_status=$? |
---|
26348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26349 | (exit $ac_status); }; }; then |
---|
26350 | |
---|
26351 | cat >>confdefs.h <<\_ACEOF |
---|
26352 | #define OGRE_CONFIG_BIG_ENDIAN |
---|
26353 | _ACEOF |
---|
26354 | |
---|
26355 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_CONFIG_BIG_ENDIAN" |
---|
26356 | |
---|
26357 | else |
---|
26358 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
26359 | echo "$as_me: failed program was:" >&5 |
---|
26360 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
26361 | |
---|
26362 | ( exit $ac_status ) |
---|
26363 | |
---|
26364 | cat >>confdefs.h <<\_ACEOF |
---|
26365 | #define OGRE_CONFIG_LITTLE_ENDIAN |
---|
26366 | _ACEOF |
---|
26367 | |
---|
26368 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_CONFIG_LITTLE_ENDIAN" |
---|
26369 | fi |
---|
26370 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
26371 | fi |
---|
26372 | |
---|
26373 | |
---|
26374 | |
---|
26375 | |
---|
26376 | |
---|
26377 | { echo "$as_me:$LINENO: checking whether -fPIC is needed" >&5 |
---|
26378 | echo $ECHO_N "checking whether -fPIC is needed... $ECHO_C" >&6; } |
---|
26379 | case $host in |
---|
26380 | x86_64-*) |
---|
26381 | CXXFLAGS="$CXXFLAGS -fPIC" |
---|
26382 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
26383 | echo "${ECHO_T}yes" >&6; } |
---|
26384 | ;; |
---|
26385 | *) |
---|
26386 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
26387 | echo "${ECHO_T}no" >&6; } |
---|
26388 | ;; |
---|
26389 | esac |
---|
26390 | |
---|
26391 | |
---|
26392 | |
---|
26393 | |
---|
26394 | pkg_failed=no |
---|
26395 | { echo "$as_me:$LINENO: checking for CEGUI" >&5 |
---|
26396 | echo $ECHO_N "checking for CEGUI... $ECHO_C" >&6; } |
---|
26397 | |
---|
26398 | if test -n "$PKG_CONFIG"; then |
---|
26399 | if test -n "$CEGUI_CFLAGS"; then |
---|
26400 | pkg_cv_CEGUI_CFLAGS="$CEGUI_CFLAGS" |
---|
26401 | else |
---|
26402 | if test -n "$PKG_CONFIG" && \ |
---|
26403 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.5.0\"") >&5 |
---|
26404 | ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.5.0") 2>&5 |
---|
26405 | ac_status=$? |
---|
26406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26407 | (exit $ac_status); }; then |
---|
26408 | pkg_cv_CEGUI_CFLAGS=`$PKG_CONFIG --cflags "CEGUI >= 0.5.0" 2>/dev/null` |
---|
26409 | else |
---|
26410 | pkg_failed=yes |
---|
26411 | fi |
---|
26412 | fi |
---|
26413 | else |
---|
26414 | pkg_failed=untried |
---|
26415 | fi |
---|
26416 | if test -n "$PKG_CONFIG"; then |
---|
26417 | if test -n "$CEGUI_LIBS"; then |
---|
26418 | pkg_cv_CEGUI_LIBS="$CEGUI_LIBS" |
---|
26419 | else |
---|
26420 | if test -n "$PKG_CONFIG" && \ |
---|
26421 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.5.0\"") >&5 |
---|
26422 | ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.5.0") 2>&5 |
---|
26423 | ac_status=$? |
---|
26424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26425 | (exit $ac_status); }; then |
---|
26426 | pkg_cv_CEGUI_LIBS=`$PKG_CONFIG --libs "CEGUI >= 0.5.0" 2>/dev/null` |
---|
26427 | else |
---|
26428 | pkg_failed=yes |
---|
26429 | fi |
---|
26430 | fi |
---|
26431 | else |
---|
26432 | pkg_failed=untried |
---|
26433 | fi |
---|
26434 | |
---|
26435 | |
---|
26436 | |
---|
26437 | if test $pkg_failed = yes; then |
---|
26438 | |
---|
26439 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
26440 | _pkg_short_errors_supported=yes |
---|
26441 | else |
---|
26442 | _pkg_short_errors_supported=no |
---|
26443 | fi |
---|
26444 | if test $_pkg_short_errors_supported = yes; then |
---|
26445 | CEGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "CEGUI >= 0.5.0"` |
---|
26446 | else |
---|
26447 | CEGUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "CEGUI >= 0.5.0"` |
---|
26448 | fi |
---|
26449 | # Put the nasty error message in config.log where it belongs |
---|
26450 | echo "$CEGUI_PKG_ERRORS" >&5 |
---|
26451 | |
---|
26452 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
26453 | echo "${ECHO_T}no" >&6; } |
---|
26454 | build_cegui_sample=false |
---|
26455 | elif test $pkg_failed = untried; then |
---|
26456 | build_cegui_sample=false |
---|
26457 | else |
---|
26458 | CEGUI_CFLAGS=$pkg_cv_CEGUI_CFLAGS |
---|
26459 | CEGUI_LIBS=$pkg_cv_CEGUI_LIBS |
---|
26460 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
26461 | echo "${ECHO_T}yes" >&6; } |
---|
26462 | build_cegui_sample=true |
---|
26463 | fi |
---|
26464 | if test x$build_cegui_sample = xtrue; then |
---|
26465 | ac_config_files="$ac_config_files Samples/Common/CEGUIRenderer/Makefile Samples/Common/CEGUIRenderer/CEGUI-OGRE.pc Samples/Common/CEGUIRenderer/src/Makefile Samples/Common/CEGUIRenderer/include/Makefile Samples/Gui/Makefile Samples/Gui/src/Makefile" |
---|
26466 | |
---|
26467 | |
---|
26468 | |
---|
26469 | { echo "$as_me:$LINENO: result: CEGUI available, Gui and FacialAnimation samples will be built" >&5 |
---|
26470 | echo "${ECHO_T}CEGUI available, Gui and FacialAnimation samples will be built" >&6; } |
---|
26471 | else |
---|
26472 | { echo "$as_me:$LINENO: result: CEGUI not available, Gui and FacialAnimation samples will not be built" >&5 |
---|
26473 | echo "${ECHO_T}CEGUI not available, Gui and FacialAnimation samples will not be built" >&6; } |
---|
26474 | fi |
---|
26475 | if test x$build_cegui_sample = xtrue; then |
---|
26476 | HAVE_CEGUI_TRUE= |
---|
26477 | HAVE_CEGUI_FALSE='#' |
---|
26478 | else |
---|
26479 | HAVE_CEGUI_TRUE='#' |
---|
26480 | HAVE_CEGUI_FALSE= |
---|
26481 | fi |
---|
26482 | |
---|
26483 | |
---|
26484 | |
---|
26485 | CFLAGS="$CFLAGS" |
---|
26486 | CXXFLAGS="$CXXFLAGS" |
---|
26487 | LIBS="$LIBS" |
---|
26488 | |
---|
26489 | ogreexecdir='${abs_top_builddir}/Samples/Common/bin' |
---|
26490 | |
---|
26491 | |
---|
26492 | |
---|
26493 | ac_config_files="$ac_config_files Makefile OgreMain/Makefile OgreMain/src/Makefile OgreMain/include/Makefile OgreMain/include/GLX/Makefile OgreMain/include/gtk/Makefile PlugIns/Makefile PlugIns/BSPSceneManager/Makefile PlugIns/BSPSceneManager/src/Makefile PlugIns/BSPSceneManager/include/Makefile PlugIns/CgProgramManager/Makefile PlugIns/CgProgramManager/src/Makefile PlugIns/CgProgramManager/include/Makefile PlugIns/OctreeSceneManager/Makefile PlugIns/OctreeSceneManager/src/Makefile PlugIns/OctreeSceneManager/include/Makefile PlugIns/ParticleFX/Makefile PlugIns/ParticleFX/src/Makefile PlugIns/ParticleFX/include/Makefile RenderSystems/Makefile RenderSystems/GL/Makefile RenderSystems/GL/src/Makefile RenderSystems/GL/include/Makefile RenderSystems/GL/src/atifs/Makefile RenderSystems/GL/src/atifs/include/Makefile RenderSystems/GL/src/atifs/src/Makefile RenderSystems/GL/src/GLSL/Makefile RenderSystems/GL/src/GLSL/include/Makefile RenderSystems/GL/src/GLSL/src/Makefile RenderSystems/GL/src/nvparse/Makefile RenderSystems/Direct3D9/Makefile RenderSystems/Direct3D9/src/Makefile RenderSystems/Direct3D9/include/Makefile Samples/Makefile Samples/Common/Makefile Samples/Common/include/Makefile Samples/Common/bin/Makefile Samples/BezierPatch/Makefile Samples/BezierPatch/src/Makefile Samples/BezierPatch/include/Makefile Samples/CameraTrack/Makefile Samples/CameraTrack/src/Makefile Samples/CelShading/Makefile Samples/CelShading/src/Makefile Samples/Compositor/Makefile Samples/Compositor/src/Makefile Samples/Compositor/include/Makefile Samples/CubeMapping/Makefile Samples/CubeMapping/src/Makefile Samples/CubeMapping/include/Makefile Samples/DeferredShading/Makefile Samples/DeferredShading/src/Makefile Samples/DeferredShading/include/Makefile Samples/Dot3Bump/Makefile Samples/Dot3Bump/src/Makefile Samples/EnvMapping/Makefile Samples/EnvMapping/src/Makefile Samples/EnvMapping/include/Makefile Samples/FacialAnimation/Makefile Samples/FacialAnimation/src/Makefile Samples/Fresnel/Makefile Samples/Fresnel/src/Makefile Samples/Grass/Makefile Samples/Grass/src/Makefile Samples/Transpacency/Makefile Samples/Transpacency/src/Makefile Samples/Transpacency/include/Makefile Samples/Lighting/Makefile Samples/Lighting/src/Makefile Samples/Lighting/include/Makefile Samples/OceanDemo/Makefile Samples/OceanDemo/src/Makefile Samples/OceanDemo/include/Makefile Samples/ParticleFX/Makefile Samples/ParticleFX/src/Makefile Samples/ParticleFX/include/Makefile Samples/RenderToTexture/Makefile Samples/RenderToTexture/src/Makefile Samples/TextureFX/Makefile Samples/TextureFX/src/Makefile Samples/TextureFX/include/Makefile Samples/Shadows/Makefile Samples/Shadows/src/Makefile Samples/SkyBox/Makefile Samples/SkyBox/src/Makefile Samples/SkyBox/include/Makefile Samples/SkyDome/Makefile Samples/SkyDome/src/Makefile Samples/SkyDome/include/Makefile Samples/SkyPlane/Makefile Samples/SkyPlane/src/Makefile Samples/SkyPlane/include/Makefile Samples/Smoke/Makefile Samples/Smoke/src/Makefile Samples/Smoke/include/Makefile Samples/BSP/Makefile Samples/BSP/src/Makefile Samples/SkeletalAnimation/Makefile Samples/SkeletalAnimation/src/Makefile Samples/SkeletalAnimation/include/Makefile Samples/Terrain/Makefile Samples/Terrain/src/Makefile Samples/Terrain/include/Makefile Samples/Water/Makefile Samples/Water/src/Makefile Samples/Water/include/Makefile Samples/DynTex/Makefile Samples/DynTex/src/Makefile Samples/DynTex/include/Makefile Samples/VolumeTex/Makefile Samples/VolumeTex/src/Makefile Samples/VolumeTex/include/Makefile Samples/Instancing/Makefile Samples/Instancing/src/Makefile Samples/Instancing/include/Makefile Tests/Makefile Tests/src/Makefile Tools/Makefile Tools/MaterialUpgrader/Makefile Tools/MaterialUpgrader/src/Makefile Tools/MaterialUpgrader/include/Makefile Tools/MeshUpgrader/Makefile Tools/MeshUpgrader/src/Makefile Tools/XMLConverter/Makefile Tools/XMLConverter/src/Makefile Tools/XMLConverter/include/Makefile Tools/LightwaveConverter/Makefile Tools/LightwaveConverter/src/Makefile Tools/LightwaveConverter/include/Makefile OGRE.pc" |
---|
26494 | |
---|
26495 | |
---|
26496 | cat >confcache <<\_ACEOF |
---|
26497 | # This file is a shell script that caches the results of configure |
---|
26498 | # tests run on this system so they can be shared between configure |
---|
26499 | # scripts and configure runs, see configure's option --config-cache. |
---|
26500 | # It is not useful on other systems. If it contains results you don't |
---|
26501 | # want to keep, you may remove or edit it. |
---|
26502 | # |
---|
26503 | # config.status only pays attention to the cache file if you give it |
---|
26504 | # the --recheck option to rerun configure. |
---|
26505 | # |
---|
26506 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
26507 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
26508 | # following values. |
---|
26509 | |
---|
26510 | _ACEOF |
---|
26511 | |
---|
26512 | # The following way of writing the cache mishandles newlines in values, |
---|
26513 | # but we know of no workaround that is simple, portable, and efficient. |
---|
26514 | # So, we kill variables containing newlines. |
---|
26515 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
26516 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
26517 | ( |
---|
26518 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
26519 | eval ac_val=\$$ac_var |
---|
26520 | case $ac_val in #( |
---|
26521 | *${as_nl}*) |
---|
26522 | case $ac_var in #( |
---|
26523 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
26524 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
26525 | esac |
---|
26526 | case $ac_var in #( |
---|
26527 | _ | IFS | as_nl) ;; #( |
---|
26528 | *) $as_unset $ac_var ;; |
---|
26529 | esac ;; |
---|
26530 | esac |
---|
26531 | done |
---|
26532 | |
---|
26533 | (set) 2>&1 | |
---|
26534 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
26535 | *${as_nl}ac_space=\ *) |
---|
26536 | # `set' does not quote correctly, so add quotes (double-quote |
---|
26537 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
26538 | sed -n \ |
---|
26539 | "s/'/'\\\\''/g; |
---|
26540 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
26541 | ;; #( |
---|
26542 | *) |
---|
26543 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
26544 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
26545 | ;; |
---|
26546 | esac | |
---|
26547 | sort |
---|
26548 | ) | |
---|
26549 | sed ' |
---|
26550 | /^ac_cv_env_/b end |
---|
26551 | t clear |
---|
26552 | :clear |
---|
26553 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
26554 | t end |
---|
26555 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
26556 | :end' >>confcache |
---|
26557 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
26558 | if test -w "$cache_file"; then |
---|
26559 | test "x$cache_file" != "x/dev/null" && |
---|
26560 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
---|
26561 | echo "$as_me: updating cache $cache_file" >&6;} |
---|
26562 | cat confcache >$cache_file |
---|
26563 | else |
---|
26564 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
---|
26565 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
26566 | fi |
---|
26567 | fi |
---|
26568 | rm -f confcache |
---|
26569 | |
---|
26570 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
26571 | # Let make expand exec_prefix. |
---|
26572 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
26573 | |
---|
26574 | DEFS=-DHAVE_CONFIG_H |
---|
26575 | |
---|
26576 | ac_libobjs= |
---|
26577 | ac_ltlibobjs= |
---|
26578 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
26579 | # 1. Remove the extension, and $U if already installed. |
---|
26580 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
26581 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
---|
26582 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
26583 | # will be set to the directory where LIBOBJS objects are built. |
---|
26584 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
26585 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
26586 | done |
---|
26587 | LIBOBJS=$ac_libobjs |
---|
26588 | |
---|
26589 | LTLIBOBJS=$ac_ltlibobjs |
---|
26590 | |
---|
26591 | |
---|
26592 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
26593 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
26594 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26595 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
26596 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26597 | { (exit 1); exit 1; }; } |
---|
26598 | fi |
---|
26599 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
26600 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
26601 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26602 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
26603 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26604 | { (exit 1); exit 1; }; } |
---|
26605 | fi |
---|
26606 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
26607 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
26608 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26609 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
26610 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26611 | { (exit 1); exit 1; }; } |
---|
26612 | fi |
---|
26613 | if test -z "${OGRE_NT_TRUE}" && test -z "${OGRE_NT_FALSE}"; then |
---|
26614 | { { echo "$as_me:$LINENO: error: conditional \"OGRE_NT\" was never defined. |
---|
26615 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26616 | echo "$as_me: error: conditional \"OGRE_NT\" was never defined. |
---|
26617 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26618 | { (exit 1); exit 1; }; } |
---|
26619 | fi |
---|
26620 | if test -z "${OGRE_LINUX_TRUE}" && test -z "${OGRE_LINUX_FALSE}"; then |
---|
26621 | { { echo "$as_me:$LINENO: error: conditional \"OGRE_LINUX\" was never defined. |
---|
26622 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26623 | echo "$as_me: error: conditional \"OGRE_LINUX\" was never defined. |
---|
26624 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26625 | { (exit 1); exit 1; }; } |
---|
26626 | fi |
---|
26627 | if test -z "${OGRE_OSX_TRUE}" && test -z "${OGRE_OSX_FALSE}"; then |
---|
26628 | { { echo "$as_me:$LINENO: error: conditional \"OGRE_OSX\" was never defined. |
---|
26629 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26630 | echo "$as_me: error: conditional \"OGRE_OSX\" was never defined. |
---|
26631 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26632 | { (exit 1); exit 1; }; } |
---|
26633 | fi |
---|
26634 | if test -z "${BUILD_UNIT_TESTS_TRUE}" && test -z "${BUILD_UNIT_TESTS_FALSE}"; then |
---|
26635 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_UNIT_TESTS\" was never defined. |
---|
26636 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26637 | echo "$as_me: error: conditional \"BUILD_UNIT_TESTS\" was never defined. |
---|
26638 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26639 | { (exit 1); exit 1; }; } |
---|
26640 | fi |
---|
26641 | if test -z "${USE_FREEIMAGE_TRUE}" && test -z "${USE_FREEIMAGE_FALSE}"; then |
---|
26642 | { { echo "$as_me:$LINENO: error: conditional \"USE_FREEIMAGE\" was never defined. |
---|
26643 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26644 | echo "$as_me: error: conditional \"USE_FREEIMAGE\" was never defined. |
---|
26645 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26646 | { (exit 1); exit 1; }; } |
---|
26647 | fi |
---|
26648 | if test -z "${USE_DEVIL_TRUE}" && test -z "${USE_DEVIL_FALSE}"; then |
---|
26649 | { { echo "$as_me:$LINENO: error: conditional \"USE_DEVIL\" was never defined. |
---|
26650 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26651 | echo "$as_me: error: conditional \"USE_DEVIL\" was never defined. |
---|
26652 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26653 | { (exit 1); exit 1; }; } |
---|
26654 | fi |
---|
26655 | if test -z "${BUILD_CGPLUGIN_TRUE}" && test -z "${BUILD_CGPLUGIN_FALSE}"; then |
---|
26656 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_CGPLUGIN\" was never defined. |
---|
26657 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26658 | echo "$as_me: error: conditional \"BUILD_CGPLUGIN\" was never defined. |
---|
26659 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26660 | { (exit 1); exit 1; }; } |
---|
26661 | fi |
---|
26662 | if test -z "${BUILD_EXRPLUGIN_TRUE}" && test -z "${BUILD_EXRPLUGIN_FALSE}"; then |
---|
26663 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXRPLUGIN\" was never defined. |
---|
26664 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26665 | echo "$as_me: error: conditional \"BUILD_EXRPLUGIN\" was never defined. |
---|
26666 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26667 | { (exit 1); exit 1; }; } |
---|
26668 | fi |
---|
26669 | if test -z "${BUILD_DX9RENDERSYSTEM_TRUE}" && test -z "${BUILD_DX9RENDERSYSTEM_FALSE}"; then |
---|
26670 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_DX9RENDERSYSTEM\" was never defined. |
---|
26671 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26672 | echo "$as_me: error: conditional \"BUILD_DX9RENDERSYSTEM\" was never defined. |
---|
26673 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26674 | { (exit 1); exit 1; }; } |
---|
26675 | fi |
---|
26676 | if test -z "${OGRE_BUILD_SSE_TRUE}" && test -z "${OGRE_BUILD_SSE_FALSE}"; then |
---|
26677 | { { echo "$as_me:$LINENO: error: conditional \"OGRE_BUILD_SSE\" was never defined. |
---|
26678 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26679 | echo "$as_me: error: conditional \"OGRE_BUILD_SSE\" was never defined. |
---|
26680 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26681 | { (exit 1); exit 1; }; } |
---|
26682 | fi |
---|
26683 | if test -z "${SAME_PLATFORM_AND_GUI_TRUE}" && test -z "${SAME_PLATFORM_AND_GUI_FALSE}"; then |
---|
26684 | { { echo "$as_me:$LINENO: error: conditional \"SAME_PLATFORM_AND_GUI\" was never defined. |
---|
26685 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26686 | echo "$as_me: error: conditional \"SAME_PLATFORM_AND_GUI\" was never defined. |
---|
26687 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26688 | { (exit 1); exit 1; }; } |
---|
26689 | fi |
---|
26690 | if test -z "${OGRE_BUILDING_DEMOS_TRUE}" && test -z "${OGRE_BUILDING_DEMOS_FALSE}"; then |
---|
26691 | { { echo "$as_me:$LINENO: error: conditional \"OGRE_BUILDING_DEMOS\" was never defined. |
---|
26692 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26693 | echo "$as_me: error: conditional \"OGRE_BUILDING_DEMOS\" was never defined. |
---|
26694 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26695 | { (exit 1); exit 1; }; } |
---|
26696 | fi |
---|
26697 | if test -z "${HAVE_CEGUI_TRUE}" && test -z "${HAVE_CEGUI_FALSE}"; then |
---|
26698 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CEGUI\" was never defined. |
---|
26699 | Usually this means the macro was only invoked conditionally." >&5 |
---|
26700 | echo "$as_me: error: conditional \"HAVE_CEGUI\" was never defined. |
---|
26701 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
26702 | { (exit 1); exit 1; }; } |
---|
26703 | fi |
---|
26704 | |
---|
26705 | : ${CONFIG_STATUS=./config.status} |
---|
26706 | ac_clean_files_save=$ac_clean_files |
---|
26707 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
26708 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
26709 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
26710 | cat >$CONFIG_STATUS <<_ACEOF |
---|
26711 | #! $SHELL |
---|
26712 | # Generated by $as_me. |
---|
26713 | # Run this file to recreate the current configuration. |
---|
26714 | # Compiler output produced by configure, useful for debugging |
---|
26715 | # configure, is in config.log if it exists. |
---|
26716 | |
---|
26717 | debug=false |
---|
26718 | ac_cs_recheck=false |
---|
26719 | ac_cs_silent=false |
---|
26720 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
26721 | _ACEOF |
---|
26722 | |
---|
26723 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
26724 | ## --------------------- ## |
---|
26725 | ## M4sh Initialization. ## |
---|
26726 | ## --------------------- ## |
---|
26727 | |
---|
26728 | # Be more Bourne compatible |
---|
26729 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
26730 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
26731 | emulate sh |
---|
26732 | NULLCMD=: |
---|
26733 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
26734 | # is contrary to our usage. Disable this feature. |
---|
26735 | alias -g '${1+"$@"}'='"$@"' |
---|
26736 | setopt NO_GLOB_SUBST |
---|
26737 | else |
---|
26738 | case `(set -o) 2>/dev/null` in |
---|
26739 | *posix*) set -o posix ;; |
---|
26740 | esac |
---|
26741 | |
---|
26742 | fi |
---|
26743 | |
---|
26744 | |
---|
26745 | |
---|
26746 | |
---|
26747 | # PATH needs CR |
---|
26748 | # Avoid depending upon Character Ranges. |
---|
26749 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
26750 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
26751 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
26752 | as_cr_digits='0123456789' |
---|
26753 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
26754 | |
---|
26755 | # The user is always right. |
---|
26756 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
26757 | echo "#! /bin/sh" >conf$$.sh |
---|
26758 | echo "exit 0" >>conf$$.sh |
---|
26759 | chmod +x conf$$.sh |
---|
26760 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
26761 | PATH_SEPARATOR=';' |
---|
26762 | else |
---|
26763 | PATH_SEPARATOR=: |
---|
26764 | fi |
---|
26765 | rm -f conf$$.sh |
---|
26766 | fi |
---|
26767 | |
---|
26768 | # Support unset when possible. |
---|
26769 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
26770 | as_unset=unset |
---|
26771 | else |
---|
26772 | as_unset=false |
---|
26773 | fi |
---|
26774 | |
---|
26775 | |
---|
26776 | # IFS |
---|
26777 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
26778 | # there to prevent editors from complaining about space-tab. |
---|
26779 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
26780 | # splitting by setting IFS to empty value.) |
---|
26781 | as_nl=' |
---|
26782 | ' |
---|
26783 | IFS=" "" $as_nl" |
---|
26784 | |
---|
26785 | # Find who we are. Look in the path if we contain no directory separator. |
---|
26786 | case $0 in |
---|
26787 | *[\\/]* ) as_myself=$0 ;; |
---|
26788 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
26789 | for as_dir in $PATH |
---|
26790 | do |
---|
26791 | IFS=$as_save_IFS |
---|
26792 | test -z "$as_dir" && as_dir=. |
---|
26793 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
26794 | done |
---|
26795 | IFS=$as_save_IFS |
---|
26796 | |
---|
26797 | ;; |
---|
26798 | esac |
---|
26799 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
26800 | # in which case we are not to be found in the path. |
---|
26801 | if test "x$as_myself" = x; then |
---|
26802 | as_myself=$0 |
---|
26803 | fi |
---|
26804 | if test ! -f "$as_myself"; then |
---|
26805 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
26806 | { (exit 1); exit 1; } |
---|
26807 | fi |
---|
26808 | |
---|
26809 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
26810 | for as_var in ENV MAIL MAILPATH |
---|
26811 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
26812 | done |
---|
26813 | PS1='$ ' |
---|
26814 | PS2='> ' |
---|
26815 | PS4='+ ' |
---|
26816 | |
---|
26817 | # NLS nuisances. |
---|
26818 | for as_var in \ |
---|
26819 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
26820 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
26821 | LC_TELEPHONE LC_TIME |
---|
26822 | do |
---|
26823 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
26824 | eval $as_var=C; export $as_var |
---|
26825 | else |
---|
26826 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
26827 | fi |
---|
26828 | done |
---|
26829 | |
---|
26830 | # Required to use basename. |
---|
26831 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
26832 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
26833 | as_expr=expr |
---|
26834 | else |
---|
26835 | as_expr=false |
---|
26836 | fi |
---|
26837 | |
---|
26838 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
26839 | as_basename=basename |
---|
26840 | else |
---|
26841 | as_basename=false |
---|
26842 | fi |
---|
26843 | |
---|
26844 | |
---|
26845 | # Name of the executable. |
---|
26846 | as_me=`$as_basename -- "$0" || |
---|
26847 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
26848 | X"$0" : 'X\(//\)$' \| \ |
---|
26849 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
26850 | echo X/"$0" | |
---|
26851 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
26852 | s//\1/ |
---|
26853 | q |
---|
26854 | } |
---|
26855 | /^X\/\(\/\/\)$/{ |
---|
26856 | s//\1/ |
---|
26857 | q |
---|
26858 | } |
---|
26859 | /^X\/\(\/\).*/{ |
---|
26860 | s//\1/ |
---|
26861 | q |
---|
26862 | } |
---|
26863 | s/.*/./; q'` |
---|
26864 | |
---|
26865 | # CDPATH. |
---|
26866 | $as_unset CDPATH |
---|
26867 | |
---|
26868 | |
---|
26869 | |
---|
26870 | as_lineno_1=$LINENO |
---|
26871 | as_lineno_2=$LINENO |
---|
26872 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
26873 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
26874 | |
---|
26875 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
26876 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
26877 | # line-number line after each line using $LINENO; the second 'sed' |
---|
26878 | # does the real work. The second script uses 'N' to pair each |
---|
26879 | # line-number line with the line containing $LINENO, and appends |
---|
26880 | # trailing '-' during substitution so that $LINENO is not a special |
---|
26881 | # case at line end. |
---|
26882 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
26883 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
26884 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
26885 | sed -n ' |
---|
26886 | p |
---|
26887 | /[$]LINENO/= |
---|
26888 | ' <$as_myself | |
---|
26889 | sed ' |
---|
26890 | s/[$]LINENO.*/&-/ |
---|
26891 | t lineno |
---|
26892 | b |
---|
26893 | :lineno |
---|
26894 | N |
---|
26895 | :loop |
---|
26896 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
26897 | t loop |
---|
26898 | s/-\n.*// |
---|
26899 | ' >$as_me.lineno && |
---|
26900 | chmod +x "$as_me.lineno" || |
---|
26901 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
26902 | { (exit 1); exit 1; }; } |
---|
26903 | |
---|
26904 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
26905 | # (the dirname of $[0] is not the place where we might find the |
---|
26906 | # original and so on. Autoconf is especially sensitive to this). |
---|
26907 | . "./$as_me.lineno" |
---|
26908 | # Exit status is that of the last command. |
---|
26909 | exit |
---|
26910 | } |
---|
26911 | |
---|
26912 | |
---|
26913 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
26914 | as_dirname=dirname |
---|
26915 | else |
---|
26916 | as_dirname=false |
---|
26917 | fi |
---|
26918 | |
---|
26919 | ECHO_C= ECHO_N= ECHO_T= |
---|
26920 | case `echo -n x` in |
---|
26921 | -n*) |
---|
26922 | case `echo 'x\c'` in |
---|
26923 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
26924 | *) ECHO_C='\c';; |
---|
26925 | esac;; |
---|
26926 | *) |
---|
26927 | ECHO_N='-n';; |
---|
26928 | esac |
---|
26929 | |
---|
26930 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
26931 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
26932 | as_expr=expr |
---|
26933 | else |
---|
26934 | as_expr=false |
---|
26935 | fi |
---|
26936 | |
---|
26937 | rm -f conf$$ conf$$.exe conf$$.file |
---|
26938 | if test -d conf$$.dir; then |
---|
26939 | rm -f conf$$.dir/conf$$.file |
---|
26940 | else |
---|
26941 | rm -f conf$$.dir |
---|
26942 | mkdir conf$$.dir |
---|
26943 | fi |
---|
26944 | echo >conf$$.file |
---|
26945 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
26946 | as_ln_s='ln -s' |
---|
26947 | # ... but there are two gotchas: |
---|
26948 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
26949 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
26950 | # In both cases, we have to default to `cp -p'. |
---|
26951 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
26952 | as_ln_s='cp -p' |
---|
26953 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
26954 | as_ln_s=ln |
---|
26955 | else |
---|
26956 | as_ln_s='cp -p' |
---|
26957 | fi |
---|
26958 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
26959 | rmdir conf$$.dir 2>/dev/null |
---|
26960 | |
---|
26961 | if mkdir -p . 2>/dev/null; then |
---|
26962 | as_mkdir_p=: |
---|
26963 | else |
---|
26964 | test -d ./-p && rmdir ./-p |
---|
26965 | as_mkdir_p=false |
---|
26966 | fi |
---|
26967 | |
---|
26968 | if test -x / >/dev/null 2>&1; then |
---|
26969 | as_test_x='test -x' |
---|
26970 | else |
---|
26971 | if ls -dL / >/dev/null 2>&1; then |
---|
26972 | as_ls_L_option=L |
---|
26973 | else |
---|
26974 | as_ls_L_option= |
---|
26975 | fi |
---|
26976 | as_test_x=' |
---|
26977 | eval sh -c '\'' |
---|
26978 | if test -d "$1"; then |
---|
26979 | test -d "$1/."; |
---|
26980 | else |
---|
26981 | case $1 in |
---|
26982 | -*)set "./$1";; |
---|
26983 | esac; |
---|
26984 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
26985 | ???[sx]*):;;*)false;;esac;fi |
---|
26986 | '\'' sh |
---|
26987 | ' |
---|
26988 | fi |
---|
26989 | as_executable_p=$as_test_x |
---|
26990 | |
---|
26991 | # Sed expression to map a string onto a valid CPP name. |
---|
26992 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
26993 | |
---|
26994 | # Sed expression to map a string onto a valid variable name. |
---|
26995 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
26996 | |
---|
26997 | |
---|
26998 | exec 6>&1 |
---|
26999 | |
---|
27000 | # Save the log message, to keep $[0] and so on meaningful, and to |
---|
27001 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
27002 | # values after options handling. |
---|
27003 | ac_log=" |
---|
27004 | This file was extended by OGRE $as_me 1.4.5, which was |
---|
27005 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
27006 | |
---|
27007 | CONFIG_FILES = $CONFIG_FILES |
---|
27008 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
27009 | CONFIG_LINKS = $CONFIG_LINKS |
---|
27010 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
27011 | $ $0 $@ |
---|
27012 | |
---|
27013 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
27014 | " |
---|
27015 | |
---|
27016 | _ACEOF |
---|
27017 | |
---|
27018 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
27019 | # Files that config.status was made for. |
---|
27020 | config_files="$ac_config_files" |
---|
27021 | config_headers="$ac_config_headers" |
---|
27022 | config_commands="$ac_config_commands" |
---|
27023 | |
---|
27024 | _ACEOF |
---|
27025 | |
---|
27026 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
27027 | ac_cs_usage="\ |
---|
27028 | \`$as_me' instantiates files from templates according to the |
---|
27029 | current configuration. |
---|
27030 | |
---|
27031 | Usage: $0 [OPTIONS] [FILE]... |
---|
27032 | |
---|
27033 | -h, --help print this help, then exit |
---|
27034 | -V, --version print version number and configuration settings, then exit |
---|
27035 | -q, --quiet do not print progress messages |
---|
27036 | -d, --debug don't remove temporary files |
---|
27037 | --recheck update $as_me by reconfiguring in the same conditions |
---|
27038 | --file=FILE[:TEMPLATE] |
---|
27039 | instantiate the configuration file FILE |
---|
27040 | --header=FILE[:TEMPLATE] |
---|
27041 | instantiate the configuration header FILE |
---|
27042 | |
---|
27043 | Configuration files: |
---|
27044 | $config_files |
---|
27045 | |
---|
27046 | Configuration headers: |
---|
27047 | $config_headers |
---|
27048 | |
---|
27049 | Configuration commands: |
---|
27050 | $config_commands |
---|
27051 | |
---|
27052 | Report bugs to <bug-autoconf@gnu.org>." |
---|
27053 | |
---|
27054 | _ACEOF |
---|
27055 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
27056 | ac_cs_version="\\ |
---|
27057 | OGRE config.status 1.4.5 |
---|
27058 | configured by $0, generated by GNU Autoconf 2.61, |
---|
27059 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
---|
27060 | |
---|
27061 | Copyright (C) 2006 Free Software Foundation, Inc. |
---|
27062 | This config.status script is free software; the Free Software Foundation |
---|
27063 | gives unlimited permission to copy, distribute and modify it." |
---|
27064 | |
---|
27065 | ac_pwd='$ac_pwd' |
---|
27066 | srcdir='$srcdir' |
---|
27067 | INSTALL='$INSTALL' |
---|
27068 | MKDIR_P='$MKDIR_P' |
---|
27069 | _ACEOF |
---|
27070 | |
---|
27071 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
27072 | # If no file are specified by the user, then we need to provide default |
---|
27073 | # value. By we need to know if files were specified by the user. |
---|
27074 | ac_need_defaults=: |
---|
27075 | while test $# != 0 |
---|
27076 | do |
---|
27077 | case $1 in |
---|
27078 | --*=*) |
---|
27079 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
27080 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
27081 | ac_shift=: |
---|
27082 | ;; |
---|
27083 | *) |
---|
27084 | ac_option=$1 |
---|
27085 | ac_optarg=$2 |
---|
27086 | ac_shift=shift |
---|
27087 | ;; |
---|
27088 | esac |
---|
27089 | |
---|
27090 | case $ac_option in |
---|
27091 | # Handling of the options. |
---|
27092 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
27093 | ac_cs_recheck=: ;; |
---|
27094 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
27095 | echo "$ac_cs_version"; exit ;; |
---|
27096 | --debug | --debu | --deb | --de | --d | -d ) |
---|
27097 | debug=: ;; |
---|
27098 | --file | --fil | --fi | --f ) |
---|
27099 | $ac_shift |
---|
27100 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
27101 | ac_need_defaults=false;; |
---|
27102 | --header | --heade | --head | --hea ) |
---|
27103 | $ac_shift |
---|
27104 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
27105 | ac_need_defaults=false;; |
---|
27106 | --he | --h) |
---|
27107 | # Conflict between --help and --header |
---|
27108 | { echo "$as_me: error: ambiguous option: $1 |
---|
27109 | Try \`$0 --help' for more information." >&2 |
---|
27110 | { (exit 1); exit 1; }; };; |
---|
27111 | --help | --hel | -h ) |
---|
27112 | echo "$ac_cs_usage"; exit ;; |
---|
27113 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
27114 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
27115 | ac_cs_silent=: ;; |
---|
27116 | |
---|
27117 | # This is an error. |
---|
27118 | -*) { echo "$as_me: error: unrecognized option: $1 |
---|
27119 | Try \`$0 --help' for more information." >&2 |
---|
27120 | { (exit 1); exit 1; }; } ;; |
---|
27121 | |
---|
27122 | *) ac_config_targets="$ac_config_targets $1" |
---|
27123 | ac_need_defaults=false ;; |
---|
27124 | |
---|
27125 | esac |
---|
27126 | shift |
---|
27127 | done |
---|
27128 | |
---|
27129 | ac_configure_extra_args= |
---|
27130 | |
---|
27131 | if $ac_cs_silent; then |
---|
27132 | exec 6>/dev/null |
---|
27133 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
27134 | fi |
---|
27135 | |
---|
27136 | _ACEOF |
---|
27137 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
27138 | if \$ac_cs_recheck; then |
---|
27139 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
27140 | CONFIG_SHELL=$SHELL |
---|
27141 | export CONFIG_SHELL |
---|
27142 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
27143 | fi |
---|
27144 | |
---|
27145 | _ACEOF |
---|
27146 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
27147 | exec 5>>config.log |
---|
27148 | { |
---|
27149 | echo |
---|
27150 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
27151 | ## Running $as_me. ## |
---|
27152 | _ASBOX |
---|
27153 | echo "$ac_log" |
---|
27154 | } >&5 |
---|
27155 | |
---|
27156 | _ACEOF |
---|
27157 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
27158 | # |
---|
27159 | # INIT-COMMANDS |
---|
27160 | # |
---|
27161 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
27162 | |
---|
27163 | _ACEOF |
---|
27164 | |
---|
27165 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
27166 | |
---|
27167 | # Handling of arguments. |
---|
27168 | for ac_config_target in $ac_config_targets |
---|
27169 | do |
---|
27170 | case $ac_config_target in |
---|
27171 | "OgreMain/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS OgreMain/include/config.h" ;; |
---|
27172 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
27173 | "RenderSystems/GL/src/GLX/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/GLX/Makefile" ;; |
---|
27174 | "RenderSystems/GL/src/win32/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/win32/Makefile" ;; |
---|
27175 | "PlugIns/EXRCodec/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/EXRCodec/Makefile" ;; |
---|
27176 | "PlugIns/EXRCodec/src/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/EXRCodec/src/Makefile" ;; |
---|
27177 | "PlugIns/EXRCodec/include/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/EXRCodec/include/Makefile" ;; |
---|
27178 | "Samples/Common/CEGUIRenderer/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/CEGUIRenderer/Makefile" ;; |
---|
27179 | "Samples/Common/CEGUIRenderer/CEGUI-OGRE.pc") CONFIG_FILES="$CONFIG_FILES Samples/Common/CEGUIRenderer/CEGUI-OGRE.pc" ;; |
---|
27180 | "Samples/Common/CEGUIRenderer/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/CEGUIRenderer/src/Makefile" ;; |
---|
27181 | "Samples/Common/CEGUIRenderer/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/CEGUIRenderer/include/Makefile" ;; |
---|
27182 | "Samples/Gui/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Gui/Makefile" ;; |
---|
27183 | "Samples/Gui/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Gui/src/Makefile" ;; |
---|
27184 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
27185 | "OgreMain/Makefile") CONFIG_FILES="$CONFIG_FILES OgreMain/Makefile" ;; |
---|
27186 | "OgreMain/src/Makefile") CONFIG_FILES="$CONFIG_FILES OgreMain/src/Makefile" ;; |
---|
27187 | "OgreMain/include/Makefile") CONFIG_FILES="$CONFIG_FILES OgreMain/include/Makefile" ;; |
---|
27188 | "OgreMain/include/GLX/Makefile") CONFIG_FILES="$CONFIG_FILES OgreMain/include/GLX/Makefile" ;; |
---|
27189 | "OgreMain/include/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES OgreMain/include/gtk/Makefile" ;; |
---|
27190 | "PlugIns/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/Makefile" ;; |
---|
27191 | "PlugIns/BSPSceneManager/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/BSPSceneManager/Makefile" ;; |
---|
27192 | "PlugIns/BSPSceneManager/src/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/BSPSceneManager/src/Makefile" ;; |
---|
27193 | "PlugIns/BSPSceneManager/include/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/BSPSceneManager/include/Makefile" ;; |
---|
27194 | "PlugIns/CgProgramManager/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/CgProgramManager/Makefile" ;; |
---|
27195 | "PlugIns/CgProgramManager/src/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/CgProgramManager/src/Makefile" ;; |
---|
27196 | "PlugIns/CgProgramManager/include/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/CgProgramManager/include/Makefile" ;; |
---|
27197 | "PlugIns/OctreeSceneManager/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/OctreeSceneManager/Makefile" ;; |
---|
27198 | "PlugIns/OctreeSceneManager/src/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/OctreeSceneManager/src/Makefile" ;; |
---|
27199 | "PlugIns/OctreeSceneManager/include/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/OctreeSceneManager/include/Makefile" ;; |
---|
27200 | "PlugIns/ParticleFX/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/ParticleFX/Makefile" ;; |
---|
27201 | "PlugIns/ParticleFX/src/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/ParticleFX/src/Makefile" ;; |
---|
27202 | "PlugIns/ParticleFX/include/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/ParticleFX/include/Makefile" ;; |
---|
27203 | "RenderSystems/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/Makefile" ;; |
---|
27204 | "RenderSystems/GL/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/Makefile" ;; |
---|
27205 | "RenderSystems/GL/src/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/Makefile" ;; |
---|
27206 | "RenderSystems/GL/include/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/include/Makefile" ;; |
---|
27207 | "RenderSystems/GL/src/atifs/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/atifs/Makefile" ;; |
---|
27208 | "RenderSystems/GL/src/atifs/include/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/atifs/include/Makefile" ;; |
---|
27209 | "RenderSystems/GL/src/atifs/src/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/atifs/src/Makefile" ;; |
---|
27210 | "RenderSystems/GL/src/GLSL/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/GLSL/Makefile" ;; |
---|
27211 | "RenderSystems/GL/src/GLSL/include/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/GLSL/include/Makefile" ;; |
---|
27212 | "RenderSystems/GL/src/GLSL/src/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/GLSL/src/Makefile" ;; |
---|
27213 | "RenderSystems/GL/src/nvparse/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/nvparse/Makefile" ;; |
---|
27214 | "RenderSystems/Direct3D9/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/Direct3D9/Makefile" ;; |
---|
27215 | "RenderSystems/Direct3D9/src/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/Direct3D9/src/Makefile" ;; |
---|
27216 | "RenderSystems/Direct3D9/include/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/Direct3D9/include/Makefile" ;; |
---|
27217 | "Samples/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Makefile" ;; |
---|
27218 | "Samples/Common/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/Makefile" ;; |
---|
27219 | "Samples/Common/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/include/Makefile" ;; |
---|
27220 | "Samples/Common/bin/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/bin/Makefile" ;; |
---|
27221 | "Samples/BezierPatch/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/BezierPatch/Makefile" ;; |
---|
27222 | "Samples/BezierPatch/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/BezierPatch/src/Makefile" ;; |
---|
27223 | "Samples/BezierPatch/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/BezierPatch/include/Makefile" ;; |
---|
27224 | "Samples/CameraTrack/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CameraTrack/Makefile" ;; |
---|
27225 | "Samples/CameraTrack/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CameraTrack/src/Makefile" ;; |
---|
27226 | "Samples/CelShading/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CelShading/Makefile" ;; |
---|
27227 | "Samples/CelShading/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CelShading/src/Makefile" ;; |
---|
27228 | "Samples/Compositor/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Compositor/Makefile" ;; |
---|
27229 | "Samples/Compositor/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Compositor/src/Makefile" ;; |
---|
27230 | "Samples/Compositor/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Compositor/include/Makefile" ;; |
---|
27231 | "Samples/CubeMapping/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CubeMapping/Makefile" ;; |
---|
27232 | "Samples/CubeMapping/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CubeMapping/src/Makefile" ;; |
---|
27233 | "Samples/CubeMapping/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CubeMapping/include/Makefile" ;; |
---|
27234 | "Samples/DeferredShading/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DeferredShading/Makefile" ;; |
---|
27235 | "Samples/DeferredShading/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DeferredShading/src/Makefile" ;; |
---|
27236 | "Samples/DeferredShading/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DeferredShading/include/Makefile" ;; |
---|
27237 | "Samples/Dot3Bump/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Dot3Bump/Makefile" ;; |
---|
27238 | "Samples/Dot3Bump/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Dot3Bump/src/Makefile" ;; |
---|
27239 | "Samples/EnvMapping/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/EnvMapping/Makefile" ;; |
---|
27240 | "Samples/EnvMapping/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/EnvMapping/src/Makefile" ;; |
---|
27241 | "Samples/EnvMapping/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/EnvMapping/include/Makefile" ;; |
---|
27242 | "Samples/FacialAnimation/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/FacialAnimation/Makefile" ;; |
---|
27243 | "Samples/FacialAnimation/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/FacialAnimation/src/Makefile" ;; |
---|
27244 | "Samples/Fresnel/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Fresnel/Makefile" ;; |
---|
27245 | "Samples/Fresnel/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Fresnel/src/Makefile" ;; |
---|
27246 | "Samples/Grass/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Grass/Makefile" ;; |
---|
27247 | "Samples/Grass/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Grass/src/Makefile" ;; |
---|
27248 | "Samples/Transpacency/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Transpacency/Makefile" ;; |
---|
27249 | "Samples/Transpacency/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Transpacency/src/Makefile" ;; |
---|
27250 | "Samples/Transpacency/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Transpacency/include/Makefile" ;; |
---|
27251 | "Samples/Lighting/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Lighting/Makefile" ;; |
---|
27252 | "Samples/Lighting/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Lighting/src/Makefile" ;; |
---|
27253 | "Samples/Lighting/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Lighting/include/Makefile" ;; |
---|
27254 | "Samples/OceanDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/OceanDemo/Makefile" ;; |
---|
27255 | "Samples/OceanDemo/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/OceanDemo/src/Makefile" ;; |
---|
27256 | "Samples/OceanDemo/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/OceanDemo/include/Makefile" ;; |
---|
27257 | "Samples/ParticleFX/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/ParticleFX/Makefile" ;; |
---|
27258 | "Samples/ParticleFX/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/ParticleFX/src/Makefile" ;; |
---|
27259 | "Samples/ParticleFX/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/ParticleFX/include/Makefile" ;; |
---|
27260 | "Samples/RenderToTexture/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/RenderToTexture/Makefile" ;; |
---|
27261 | "Samples/RenderToTexture/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/RenderToTexture/src/Makefile" ;; |
---|
27262 | "Samples/TextureFX/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/TextureFX/Makefile" ;; |
---|
27263 | "Samples/TextureFX/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/TextureFX/src/Makefile" ;; |
---|
27264 | "Samples/TextureFX/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/TextureFX/include/Makefile" ;; |
---|
27265 | "Samples/Shadows/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Shadows/Makefile" ;; |
---|
27266 | "Samples/Shadows/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Shadows/src/Makefile" ;; |
---|
27267 | "Samples/SkyBox/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyBox/Makefile" ;; |
---|
27268 | "Samples/SkyBox/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyBox/src/Makefile" ;; |
---|
27269 | "Samples/SkyBox/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyBox/include/Makefile" ;; |
---|
27270 | "Samples/SkyDome/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyDome/Makefile" ;; |
---|
27271 | "Samples/SkyDome/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyDome/src/Makefile" ;; |
---|
27272 | "Samples/SkyDome/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyDome/include/Makefile" ;; |
---|
27273 | "Samples/SkyPlane/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyPlane/Makefile" ;; |
---|
27274 | "Samples/SkyPlane/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyPlane/src/Makefile" ;; |
---|
27275 | "Samples/SkyPlane/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyPlane/include/Makefile" ;; |
---|
27276 | "Samples/Smoke/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Smoke/Makefile" ;; |
---|
27277 | "Samples/Smoke/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Smoke/src/Makefile" ;; |
---|
27278 | "Samples/Smoke/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Smoke/include/Makefile" ;; |
---|
27279 | "Samples/BSP/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/BSP/Makefile" ;; |
---|
27280 | "Samples/BSP/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/BSP/src/Makefile" ;; |
---|
27281 | "Samples/SkeletalAnimation/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkeletalAnimation/Makefile" ;; |
---|
27282 | "Samples/SkeletalAnimation/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkeletalAnimation/src/Makefile" ;; |
---|
27283 | "Samples/SkeletalAnimation/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkeletalAnimation/include/Makefile" ;; |
---|
27284 | "Samples/Terrain/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Terrain/Makefile" ;; |
---|
27285 | "Samples/Terrain/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Terrain/src/Makefile" ;; |
---|
27286 | "Samples/Terrain/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Terrain/include/Makefile" ;; |
---|
27287 | "Samples/Water/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Water/Makefile" ;; |
---|
27288 | "Samples/Water/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Water/src/Makefile" ;; |
---|
27289 | "Samples/Water/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Water/include/Makefile" ;; |
---|
27290 | "Samples/DynTex/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DynTex/Makefile" ;; |
---|
27291 | "Samples/DynTex/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DynTex/src/Makefile" ;; |
---|
27292 | "Samples/DynTex/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DynTex/include/Makefile" ;; |
---|
27293 | "Samples/VolumeTex/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/VolumeTex/Makefile" ;; |
---|
27294 | "Samples/VolumeTex/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/VolumeTex/src/Makefile" ;; |
---|
27295 | "Samples/VolumeTex/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/VolumeTex/include/Makefile" ;; |
---|
27296 | "Samples/Instancing/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Instancing/Makefile" ;; |
---|
27297 | "Samples/Instancing/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Instancing/src/Makefile" ;; |
---|
27298 | "Samples/Instancing/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Instancing/include/Makefile" ;; |
---|
27299 | "Tests/Makefile") CONFIG_FILES="$CONFIG_FILES Tests/Makefile" ;; |
---|
27300 | "Tests/src/Makefile") CONFIG_FILES="$CONFIG_FILES Tests/src/Makefile" ;; |
---|
27301 | "Tools/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/Makefile" ;; |
---|
27302 | "Tools/MaterialUpgrader/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/MaterialUpgrader/Makefile" ;; |
---|
27303 | "Tools/MaterialUpgrader/src/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/MaterialUpgrader/src/Makefile" ;; |
---|
27304 | "Tools/MaterialUpgrader/include/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/MaterialUpgrader/include/Makefile" ;; |
---|
27305 | "Tools/MeshUpgrader/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/MeshUpgrader/Makefile" ;; |
---|
27306 | "Tools/MeshUpgrader/src/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/MeshUpgrader/src/Makefile" ;; |
---|
27307 | "Tools/XMLConverter/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/XMLConverter/Makefile" ;; |
---|
27308 | "Tools/XMLConverter/src/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/XMLConverter/src/Makefile" ;; |
---|
27309 | "Tools/XMLConverter/include/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/XMLConverter/include/Makefile" ;; |
---|
27310 | "Tools/LightwaveConverter/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/LightwaveConverter/Makefile" ;; |
---|
27311 | "Tools/LightwaveConverter/src/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/LightwaveConverter/src/Makefile" ;; |
---|
27312 | "Tools/LightwaveConverter/include/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/LightwaveConverter/include/Makefile" ;; |
---|
27313 | "OGRE.pc") CONFIG_FILES="$CONFIG_FILES OGRE.pc" ;; |
---|
27314 | |
---|
27315 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
27316 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
27317 | { (exit 1); exit 1; }; };; |
---|
27318 | esac |
---|
27319 | done |
---|
27320 | |
---|
27321 | |
---|
27322 | # If the user did not use the arguments to specify the items to instantiate, |
---|
27323 | # then the envvar interface is used. Set only those that are not. |
---|
27324 | # We use the long form for the default assignment because of an extremely |
---|
27325 | # bizarre bug on SunOS 4.1.3. |
---|
27326 | if $ac_need_defaults; then |
---|
27327 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
27328 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
27329 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
27330 | fi |
---|
27331 | |
---|
27332 | # Have a temporary directory for convenience. Make it in the build tree |
---|
27333 | # simply because there is no reason against having it here, and in addition, |
---|
27334 | # creating and moving files from /tmp can sometimes cause problems. |
---|
27335 | # Hook for its removal unless debugging. |
---|
27336 | # Note that there is a small window in which the directory will not be cleaned: |
---|
27337 | # after its creation but before its name has been assigned to `$tmp'. |
---|
27338 | $debug || |
---|
27339 | { |
---|
27340 | tmp= |
---|
27341 | trap 'exit_status=$? |
---|
27342 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
27343 | ' 0 |
---|
27344 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
27345 | } |
---|
27346 | # Create a (secure) tmp directory for tmp files. |
---|
27347 | |
---|
27348 | { |
---|
27349 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
27350 | test -n "$tmp" && test -d "$tmp" |
---|
27351 | } || |
---|
27352 | { |
---|
27353 | tmp=./conf$$-$RANDOM |
---|
27354 | (umask 077 && mkdir "$tmp") |
---|
27355 | } || |
---|
27356 | { |
---|
27357 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
27358 | { (exit 1); exit 1; } |
---|
27359 | } |
---|
27360 | |
---|
27361 | # |
---|
27362 | # Set up the sed scripts for CONFIG_FILES section. |
---|
27363 | # |
---|
27364 | |
---|
27365 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
27366 | # This happens for instance when ./config.status config.h |
---|
27367 | if test -n "$CONFIG_FILES"; then |
---|
27368 | |
---|
27369 | _ACEOF |
---|
27370 | |
---|
27371 | |
---|
27372 | |
---|
27373 | ac_delim='%!_!# ' |
---|
27374 | for ac_last_try in false false false false false :; do |
---|
27375 | cat >conf$$subs.sed <<_ACEOF |
---|
27376 | SHELL!$SHELL$ac_delim |
---|
27377 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
---|
27378 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
---|
27379 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
---|
27380 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
---|
27381 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
---|
27382 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
---|
27383 | exec_prefix!$exec_prefix$ac_delim |
---|
27384 | prefix!$prefix$ac_delim |
---|
27385 | program_transform_name!$program_transform_name$ac_delim |
---|
27386 | bindir!$bindir$ac_delim |
---|
27387 | sbindir!$sbindir$ac_delim |
---|
27388 | libexecdir!$libexecdir$ac_delim |
---|
27389 | datarootdir!$datarootdir$ac_delim |
---|
27390 | datadir!$datadir$ac_delim |
---|
27391 | sysconfdir!$sysconfdir$ac_delim |
---|
27392 | sharedstatedir!$sharedstatedir$ac_delim |
---|
27393 | localstatedir!$localstatedir$ac_delim |
---|
27394 | includedir!$includedir$ac_delim |
---|
27395 | oldincludedir!$oldincludedir$ac_delim |
---|
27396 | docdir!$docdir$ac_delim |
---|
27397 | infodir!$infodir$ac_delim |
---|
27398 | htmldir!$htmldir$ac_delim |
---|
27399 | dvidir!$dvidir$ac_delim |
---|
27400 | pdfdir!$pdfdir$ac_delim |
---|
27401 | psdir!$psdir$ac_delim |
---|
27402 | libdir!$libdir$ac_delim |
---|
27403 | localedir!$localedir$ac_delim |
---|
27404 | mandir!$mandir$ac_delim |
---|
27405 | DEFS!$DEFS$ac_delim |
---|
27406 | ECHO_C!$ECHO_C$ac_delim |
---|
27407 | ECHO_N!$ECHO_N$ac_delim |
---|
27408 | ECHO_T!$ECHO_T$ac_delim |
---|
27409 | LIBS!$LIBS$ac_delim |
---|
27410 | build_alias!$build_alias$ac_delim |
---|
27411 | host_alias!$host_alias$ac_delim |
---|
27412 | target_alias!$target_alias$ac_delim |
---|
27413 | build!$build$ac_delim |
---|
27414 | build_cpu!$build_cpu$ac_delim |
---|
27415 | build_vendor!$build_vendor$ac_delim |
---|
27416 | build_os!$build_os$ac_delim |
---|
27417 | host!$host$ac_delim |
---|
27418 | host_cpu!$host_cpu$ac_delim |
---|
27419 | host_vendor!$host_vendor$ac_delim |
---|
27420 | host_os!$host_os$ac_delim |
---|
27421 | target!$target$ac_delim |
---|
27422 | target_cpu!$target_cpu$ac_delim |
---|
27423 | target_vendor!$target_vendor$ac_delim |
---|
27424 | target_os!$target_os$ac_delim |
---|
27425 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
---|
27426 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
---|
27427 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
---|
27428 | am__isrc!$am__isrc$ac_delim |
---|
27429 | CYGPATH_W!$CYGPATH_W$ac_delim |
---|
27430 | PACKAGE!$PACKAGE$ac_delim |
---|
27431 | VERSION!$VERSION$ac_delim |
---|
27432 | ACLOCAL!$ACLOCAL$ac_delim |
---|
27433 | AUTOCONF!$AUTOCONF$ac_delim |
---|
27434 | AUTOMAKE!$AUTOMAKE$ac_delim |
---|
27435 | AUTOHEADER!$AUTOHEADER$ac_delim |
---|
27436 | MAKEINFO!$MAKEINFO$ac_delim |
---|
27437 | install_sh!$install_sh$ac_delim |
---|
27438 | STRIP!$STRIP$ac_delim |
---|
27439 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
---|
27440 | mkdir_p!$mkdir_p$ac_delim |
---|
27441 | AWK!$AWK$ac_delim |
---|
27442 | SET_MAKE!$SET_MAKE$ac_delim |
---|
27443 | am__leading_dot!$am__leading_dot$ac_delim |
---|
27444 | AMTAR!$AMTAR$ac_delim |
---|
27445 | am__tar!$am__tar$ac_delim |
---|
27446 | am__untar!$am__untar$ac_delim |
---|
27447 | CC!$CC$ac_delim |
---|
27448 | CFLAGS!$CFLAGS$ac_delim |
---|
27449 | LDFLAGS!$LDFLAGS$ac_delim |
---|
27450 | CPPFLAGS!$CPPFLAGS$ac_delim |
---|
27451 | ac_ct_CC!$ac_ct_CC$ac_delim |
---|
27452 | EXEEXT!$EXEEXT$ac_delim |
---|
27453 | OBJEXT!$OBJEXT$ac_delim |
---|
27454 | DEPDIR!$DEPDIR$ac_delim |
---|
27455 | am__include!$am__include$ac_delim |
---|
27456 | am__quote!$am__quote$ac_delim |
---|
27457 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
---|
27458 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
---|
27459 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
---|
27460 | CCDEPMODE!$CCDEPMODE$ac_delim |
---|
27461 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
---|
27462 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
---|
27463 | CXX!$CXX$ac_delim |
---|
27464 | CXXFLAGS!$CXXFLAGS$ac_delim |
---|
27465 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
---|
27466 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
---|
27467 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
---|
27468 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
---|
27469 | YACC!$YACC$ac_delim |
---|
27470 | YFLAGS!$YFLAGS$ac_delim |
---|
27471 | LEX!$LEX$ac_delim |
---|
27472 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
---|
27473 | _ACEOF |
---|
27474 | |
---|
27475 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
---|
27476 | break |
---|
27477 | elif $ac_last_try; then |
---|
27478 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
27479 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
27480 | { (exit 1); exit 1; }; } |
---|
27481 | else |
---|
27482 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
27483 | fi |
---|
27484 | done |
---|
27485 | |
---|
27486 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
---|
27487 | if test -n "$ac_eof"; then |
---|
27488 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
---|
27489 | ac_eof=`expr $ac_eof + 1` |
---|
27490 | fi |
---|
27491 | |
---|
27492 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
27493 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
---|
27494 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
27495 | _ACEOF |
---|
27496 | sed ' |
---|
27497 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
---|
27498 | s/^/s,@/; s/!/@,|#_!!_#|/ |
---|
27499 | :n |
---|
27500 | t n |
---|
27501 | s/'"$ac_delim"'$/,g/; t |
---|
27502 | s/$/\\/; p |
---|
27503 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
---|
27504 | ' >>$CONFIG_STATUS <conf$$subs.sed |
---|
27505 | rm -f conf$$subs.sed |
---|
27506 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
27507 | CEOF$ac_eof |
---|
27508 | _ACEOF |
---|
27509 | |
---|
27510 | |
---|
27511 | ac_delim='%!_!# ' |
---|
27512 | for ac_last_try in false false false false false :; do |
---|
27513 | cat >conf$$subs.sed <<_ACEOF |
---|
27514 | LEXLIB!$LEXLIB$ac_delim |
---|
27515 | SHARED_FLAGS!$SHARED_FLAGS$ac_delim |
---|
27516 | PLUGIN_FLAGS!$PLUGIN_FLAGS$ac_delim |
---|
27517 | GL_LIBS!$GL_LIBS$ac_delim |
---|
27518 | RC!$RC$ac_delim |
---|
27519 | OGRE_NT_TRUE!$OGRE_NT_TRUE$ac_delim |
---|
27520 | OGRE_NT_FALSE!$OGRE_NT_FALSE$ac_delim |
---|
27521 | OGRE_LINUX_TRUE!$OGRE_LINUX_TRUE$ac_delim |
---|
27522 | OGRE_LINUX_FALSE!$OGRE_LINUX_FALSE$ac_delim |
---|
27523 | OGRE_OSX_TRUE!$OGRE_OSX_TRUE$ac_delim |
---|
27524 | OGRE_OSX_FALSE!$OGRE_OSX_FALSE$ac_delim |
---|
27525 | SED!$SED$ac_delim |
---|
27526 | GREP!$GREP$ac_delim |
---|
27527 | EGREP!$EGREP$ac_delim |
---|
27528 | LN_S!$LN_S$ac_delim |
---|
27529 | ECHO!$ECHO$ac_delim |
---|
27530 | AR!$AR$ac_delim |
---|
27531 | RANLIB!$RANLIB$ac_delim |
---|
27532 | CPP!$CPP$ac_delim |
---|
27533 | CXXCPP!$CXXCPP$ac_delim |
---|
27534 | F77!$F77$ac_delim |
---|
27535 | FFLAGS!$FFLAGS$ac_delim |
---|
27536 | ac_ct_F77!$ac_ct_F77$ac_delim |
---|
27537 | LIBTOOL!$LIBTOOL$ac_delim |
---|
27538 | OGRE_CFLAGS!$OGRE_CFLAGS$ac_delim |
---|
27539 | CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim |
---|
27540 | STLPORT_CFLAGS!$STLPORT_CFLAGS$ac_delim |
---|
27541 | STLPORT_LIBS!$STLPORT_LIBS$ac_delim |
---|
27542 | FT2_CONFIG!$FT2_CONFIG$ac_delim |
---|
27543 | FT2_CFLAGS!$FT2_CFLAGS$ac_delim |
---|
27544 | FT2_LIBS!$FT2_LIBS$ac_delim |
---|
27545 | CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim |
---|
27546 | CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim |
---|
27547 | CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim |
---|
27548 | BUILD_UNIT_TESTS_TRUE!$BUILD_UNIT_TESTS_TRUE$ac_delim |
---|
27549 | BUILD_UNIT_TESTS_FALSE!$BUILD_UNIT_TESTS_FALSE$ac_delim |
---|
27550 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
---|
27551 | ZZIPLIB_CFLAGS!$ZZIPLIB_CFLAGS$ac_delim |
---|
27552 | ZZIPLIB_LIBS!$ZZIPLIB_LIBS$ac_delim |
---|
27553 | XMKMF!$XMKMF$ac_delim |
---|
27554 | PLATFORM_CFLAGS!$PLATFORM_CFLAGS$ac_delim |
---|
27555 | PLATFORM_LIBS!$PLATFORM_LIBS$ac_delim |
---|
27556 | OGRE_PLATFORM!$OGRE_PLATFORM$ac_delim |
---|
27557 | GLSUPPORT_CFLAGS!$GLSUPPORT_CFLAGS$ac_delim |
---|
27558 | GLSUPPORT_LIBS!$GLSUPPORT_LIBS$ac_delim |
---|
27559 | OGRE_GLSUPPORT!$OGRE_GLSUPPORT$ac_delim |
---|
27560 | GTK_CFLAGS!$GTK_CFLAGS$ac_delim |
---|
27561 | GTK_LIBS!$GTK_LIBS$ac_delim |
---|
27562 | OGRE_GUI!$OGRE_GUI$ac_delim |
---|
27563 | OGRE_THREAD_LIBS!$OGRE_THREAD_LIBS$ac_delim |
---|
27564 | USE_FREEIMAGE_TRUE!$USE_FREEIMAGE_TRUE$ac_delim |
---|
27565 | USE_FREEIMAGE_FALSE!$USE_FREEIMAGE_FALSE$ac_delim |
---|
27566 | USE_DEVIL_TRUE!$USE_DEVIL_TRUE$ac_delim |
---|
27567 | USE_DEVIL_FALSE!$USE_DEVIL_FALSE$ac_delim |
---|
27568 | BUILD_CGPLUGIN_TRUE!$BUILD_CGPLUGIN_TRUE$ac_delim |
---|
27569 | BUILD_CGPLUGIN_FALSE!$BUILD_CGPLUGIN_FALSE$ac_delim |
---|
27570 | OPENEXR_CFLAGS!$OPENEXR_CFLAGS$ac_delim |
---|
27571 | OPENEXR_LIBS!$OPENEXR_LIBS$ac_delim |
---|
27572 | BUILD_EXRPLUGIN_TRUE!$BUILD_EXRPLUGIN_TRUE$ac_delim |
---|
27573 | BUILD_EXRPLUGIN_FALSE!$BUILD_EXRPLUGIN_FALSE$ac_delim |
---|
27574 | BUILD_DX9RENDERSYSTEM_TRUE!$BUILD_DX9RENDERSYSTEM_TRUE$ac_delim |
---|
27575 | BUILD_DX9RENDERSYSTEM_FALSE!$BUILD_DX9RENDERSYSTEM_FALSE$ac_delim |
---|
27576 | OGRE_BUILD_SSE_TRUE!$OGRE_BUILD_SSE_TRUE$ac_delim |
---|
27577 | OGRE_BUILD_SSE_FALSE!$OGRE_BUILD_SSE_FALSE$ac_delim |
---|
27578 | SAME_PLATFORM_AND_GUI_TRUE!$SAME_PLATFORM_AND_GUI_TRUE$ac_delim |
---|
27579 | SAME_PLATFORM_AND_GUI_FALSE!$SAME_PLATFORM_AND_GUI_FALSE$ac_delim |
---|
27580 | OIS_CFLAGS!$OIS_CFLAGS$ac_delim |
---|
27581 | OIS_LIBS!$OIS_LIBS$ac_delim |
---|
27582 | OGRE_BUILDING_DEMOS_TRUE!$OGRE_BUILDING_DEMOS_TRUE$ac_delim |
---|
27583 | OGRE_BUILDING_DEMOS_FALSE!$OGRE_BUILDING_DEMOS_FALSE$ac_delim |
---|
27584 | CEGUI_CFLAGS!$CEGUI_CFLAGS$ac_delim |
---|
27585 | CEGUI_LIBS!$CEGUI_LIBS$ac_delim |
---|
27586 | HAVE_CEGUI_TRUE!$HAVE_CEGUI_TRUE$ac_delim |
---|
27587 | HAVE_CEGUI_FALSE!$HAVE_CEGUI_FALSE$ac_delim |
---|
27588 | abs_top_builddir!$abs_top_builddir$ac_delim |
---|
27589 | ogreexecdir!$ogreexecdir$ac_delim |
---|
27590 | LIBOBJS!$LIBOBJS$ac_delim |
---|
27591 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
---|
27592 | _ACEOF |
---|
27593 | |
---|
27594 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then |
---|
27595 | break |
---|
27596 | elif $ac_last_try; then |
---|
27597 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
27598 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
27599 | { (exit 1); exit 1; }; } |
---|
27600 | else |
---|
27601 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
27602 | fi |
---|
27603 | done |
---|
27604 | |
---|
27605 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
---|
27606 | if test -n "$ac_eof"; then |
---|
27607 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
---|
27608 | ac_eof=`expr $ac_eof + 1` |
---|
27609 | fi |
---|
27610 | |
---|
27611 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
27612 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
---|
27613 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
---|
27614 | _ACEOF |
---|
27615 | sed ' |
---|
27616 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
---|
27617 | s/^/s,@/; s/!/@,|#_!!_#|/ |
---|
27618 | :n |
---|
27619 | t n |
---|
27620 | s/'"$ac_delim"'$/,g/; t |
---|
27621 | s/$/\\/; p |
---|
27622 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
---|
27623 | ' >>$CONFIG_STATUS <conf$$subs.sed |
---|
27624 | rm -f conf$$subs.sed |
---|
27625 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
27626 | :end |
---|
27627 | s/|#_!!_#|//g |
---|
27628 | CEOF$ac_eof |
---|
27629 | _ACEOF |
---|
27630 | |
---|
27631 | |
---|
27632 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
27633 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
27634 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
27635 | # (actually we leave an empty line to preserve line numbers). |
---|
27636 | if test "x$srcdir" = x.; then |
---|
27637 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
27638 | s/:*\$(srcdir):*/:/ |
---|
27639 | s/:*\${srcdir}:*/:/ |
---|
27640 | s/:*@srcdir@:*/:/ |
---|
27641 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
27642 | s/:*$// |
---|
27643 | s/^[^=]*=[ ]*$// |
---|
27644 | }' |
---|
27645 | fi |
---|
27646 | |
---|
27647 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
27648 | fi # test -n "$CONFIG_FILES" |
---|
27649 | |
---|
27650 | |
---|
27651 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
---|
27652 | do |
---|
27653 | case $ac_tag in |
---|
27654 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
27655 | esac |
---|
27656 | case $ac_mode$ac_tag in |
---|
27657 | :[FHL]*:*);; |
---|
27658 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
---|
27659 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
---|
27660 | { (exit 1); exit 1; }; };; |
---|
27661 | :[FH]-) ac_tag=-:-;; |
---|
27662 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
27663 | esac |
---|
27664 | ac_save_IFS=$IFS |
---|
27665 | IFS=: |
---|
27666 | set x $ac_tag |
---|
27667 | IFS=$ac_save_IFS |
---|
27668 | shift |
---|
27669 | ac_file=$1 |
---|
27670 | shift |
---|
27671 | |
---|
27672 | case $ac_mode in |
---|
27673 | :L) ac_source=$1;; |
---|
27674 | :[FH]) |
---|
27675 | ac_file_inputs= |
---|
27676 | for ac_f |
---|
27677 | do |
---|
27678 | case $ac_f in |
---|
27679 | -) ac_f="$tmp/stdin";; |
---|
27680 | *) # Look for the file first in the build tree, then in the source tree |
---|
27681 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
27682 | # because $ac_f cannot contain `:'. |
---|
27683 | test -f "$ac_f" || |
---|
27684 | case $ac_f in |
---|
27685 | [\\/$]*) false;; |
---|
27686 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
27687 | esac || |
---|
27688 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
---|
27689 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
---|
27690 | { (exit 1); exit 1; }; };; |
---|
27691 | esac |
---|
27692 | ac_file_inputs="$ac_file_inputs $ac_f" |
---|
27693 | done |
---|
27694 | |
---|
27695 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
27696 | # use $as_me), people would be surprised to read: |
---|
27697 | # /* config.h. Generated by config.status. */ |
---|
27698 | configure_input="Generated from "`IFS=: |
---|
27699 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
---|
27700 | if test x"$ac_file" != x-; then |
---|
27701 | configure_input="$ac_file. $configure_input" |
---|
27702 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
27703 | echo "$as_me: creating $ac_file" >&6;} |
---|
27704 | fi |
---|
27705 | |
---|
27706 | case $ac_tag in |
---|
27707 | *:-:* | *:-) cat >"$tmp/stdin";; |
---|
27708 | esac |
---|
27709 | ;; |
---|
27710 | esac |
---|
27711 | |
---|
27712 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
27713 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
27714 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
27715 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
27716 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
27717 | echo X"$ac_file" | |
---|
27718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
27719 | s//\1/ |
---|
27720 | q |
---|
27721 | } |
---|
27722 | /^X\(\/\/\)[^/].*/{ |
---|
27723 | s//\1/ |
---|
27724 | q |
---|
27725 | } |
---|
27726 | /^X\(\/\/\)$/{ |
---|
27727 | s//\1/ |
---|
27728 | q |
---|
27729 | } |
---|
27730 | /^X\(\/\).*/{ |
---|
27731 | s//\1/ |
---|
27732 | q |
---|
27733 | } |
---|
27734 | s/.*/./; q'` |
---|
27735 | { as_dir="$ac_dir" |
---|
27736 | case $as_dir in #( |
---|
27737 | -*) as_dir=./$as_dir;; |
---|
27738 | esac |
---|
27739 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
27740 | as_dirs= |
---|
27741 | while :; do |
---|
27742 | case $as_dir in #( |
---|
27743 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
---|
27744 | *) as_qdir=$as_dir;; |
---|
27745 | esac |
---|
27746 | as_dirs="'$as_qdir' $as_dirs" |
---|
27747 | as_dir=`$as_dirname -- "$as_dir" || |
---|
27748 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
27749 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
27750 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
27751 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
27752 | echo X"$as_dir" | |
---|
27753 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
27754 | s//\1/ |
---|
27755 | q |
---|
27756 | } |
---|
27757 | /^X\(\/\/\)[^/].*/{ |
---|
27758 | s//\1/ |
---|
27759 | q |
---|
27760 | } |
---|
27761 | /^X\(\/\/\)$/{ |
---|
27762 | s//\1/ |
---|
27763 | q |
---|
27764 | } |
---|
27765 | /^X\(\/\).*/{ |
---|
27766 | s//\1/ |
---|
27767 | q |
---|
27768 | } |
---|
27769 | s/.*/./; q'` |
---|
27770 | test -d "$as_dir" && break |
---|
27771 | done |
---|
27772 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
27773 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
27774 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
27775 | { (exit 1); exit 1; }; }; } |
---|
27776 | ac_builddir=. |
---|
27777 | |
---|
27778 | case "$ac_dir" in |
---|
27779 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
27780 | *) |
---|
27781 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
27782 | # A ".." for each directory in $ac_dir_suffix. |
---|
27783 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
27784 | case $ac_top_builddir_sub in |
---|
27785 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
27786 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
27787 | esac ;; |
---|
27788 | esac |
---|
27789 | ac_abs_top_builddir=$ac_pwd |
---|
27790 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
27791 | # for backward compatibility: |
---|
27792 | ac_top_builddir=$ac_top_build_prefix |
---|
27793 | |
---|
27794 | case $srcdir in |
---|
27795 | .) # We are building in place. |
---|
27796 | ac_srcdir=. |
---|
27797 | ac_top_srcdir=$ac_top_builddir_sub |
---|
27798 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
27799 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
27800 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
27801 | ac_top_srcdir=$srcdir |
---|
27802 | ac_abs_top_srcdir=$srcdir ;; |
---|
27803 | *) # Relative name. |
---|
27804 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
27805 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
27806 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
27807 | esac |
---|
27808 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
27809 | |
---|
27810 | |
---|
27811 | case $ac_mode in |
---|
27812 | :F) |
---|
27813 | # |
---|
27814 | # CONFIG_FILE |
---|
27815 | # |
---|
27816 | |
---|
27817 | case $INSTALL in |
---|
27818 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
27819 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
27820 | esac |
---|
27821 | ac_MKDIR_P=$MKDIR_P |
---|
27822 | case $MKDIR_P in |
---|
27823 | [\\/$]* | ?:[\\/]* ) ;; |
---|
27824 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
27825 | esac |
---|
27826 | _ACEOF |
---|
27827 | |
---|
27828 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
27829 | # If the template does not know about datarootdir, expand it. |
---|
27830 | # FIXME: This hack should be removed a few years after 2.60. |
---|
27831 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
27832 | |
---|
27833 | case `sed -n '/datarootdir/ { |
---|
27834 | p |
---|
27835 | q |
---|
27836 | } |
---|
27837 | /@datadir@/p |
---|
27838 | /@docdir@/p |
---|
27839 | /@infodir@/p |
---|
27840 | /@localedir@/p |
---|
27841 | /@mandir@/p |
---|
27842 | ' $ac_file_inputs` in |
---|
27843 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
27844 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
27845 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
27846 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
27847 | _ACEOF |
---|
27848 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
27849 | ac_datarootdir_hack=' |
---|
27850 | s&@datadir@&$datadir&g |
---|
27851 | s&@docdir@&$docdir&g |
---|
27852 | s&@infodir@&$infodir&g |
---|
27853 | s&@localedir@&$localedir&g |
---|
27854 | s&@mandir@&$mandir&g |
---|
27855 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
27856 | esac |
---|
27857 | _ACEOF |
---|
27858 | |
---|
27859 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
27860 | # Shell code in configure.ac might set extrasub. |
---|
27861 | # FIXME: do we really want to maintain this feature? |
---|
27862 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
27863 | sed "$ac_vpsub |
---|
27864 | $extrasub |
---|
27865 | _ACEOF |
---|
27866 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
27867 | :t |
---|
27868 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
27869 | s&@configure_input@&$configure_input&;t t |
---|
27870 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
27871 | s&@srcdir@&$ac_srcdir&;t t |
---|
27872 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
27873 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
27874 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
27875 | s&@builddir@&$ac_builddir&;t t |
---|
27876 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
27877 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
27878 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
27879 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
27880 | $ac_datarootdir_hack |
---|
27881 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
---|
27882 | |
---|
27883 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
27884 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
27885 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
27886 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
27887 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
27888 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
27889 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
27890 | |
---|
27891 | rm -f "$tmp/stdin" |
---|
27892 | case $ac_file in |
---|
27893 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
---|
27894 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
---|
27895 | esac |
---|
27896 | ;; |
---|
27897 | :H) |
---|
27898 | # |
---|
27899 | # CONFIG_HEADER |
---|
27900 | # |
---|
27901 | _ACEOF |
---|
27902 | |
---|
27903 | # Transform confdefs.h into a sed script `conftest.defines', that |
---|
27904 | # substitutes the proper values into config.h.in to produce config.h. |
---|
27905 | rm -f conftest.defines conftest.tail |
---|
27906 | # First, append a space to every undef/define line, to ease matching. |
---|
27907 | echo 's/$/ /' >conftest.defines |
---|
27908 | # Then, protect against being on the right side of a sed subst, or in |
---|
27909 | # an unquoted here document, in config.status. If some macros were |
---|
27910 | # called several times there might be several #defines for the same |
---|
27911 | # symbol, which is useless. But do not sort them, since the last |
---|
27912 | # AC_DEFINE must be honored. |
---|
27913 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
27914 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
---|
27915 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
---|
27916 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
---|
27917 | # just an empty string. |
---|
27918 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
---|
27919 | ac_dB='\\)[ (].*,\\1define\\2' |
---|
27920 | ac_dC=' ' |
---|
27921 | ac_dD=' ,' |
---|
27922 | |
---|
27923 | uniq confdefs.h | |
---|
27924 | sed -n ' |
---|
27925 | t rset |
---|
27926 | :rset |
---|
27927 | s/^[ ]*#[ ]*define[ ][ ]*// |
---|
27928 | t ok |
---|
27929 | d |
---|
27930 | :ok |
---|
27931 | s/[\\&,]/\\&/g |
---|
27932 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
---|
27933 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
---|
27934 | ' >>conftest.defines |
---|
27935 | |
---|
27936 | # Remove the space that was appended to ease matching. |
---|
27937 | # Then replace #undef with comments. This is necessary, for |
---|
27938 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
27939 | # on some systems where configure will not decide to define it. |
---|
27940 | # (The regexp can be short, since the line contains either #define or #undef.) |
---|
27941 | echo 's/ $// |
---|
27942 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
---|
27943 | |
---|
27944 | # Break up conftest.defines: |
---|
27945 | ac_max_sed_lines=50 |
---|
27946 | |
---|
27947 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
---|
27948 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
---|
27949 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
---|
27950 | # et cetera. |
---|
27951 | ac_in='$ac_file_inputs' |
---|
27952 | ac_out='"$tmp/out1"' |
---|
27953 | ac_nxt='"$tmp/out2"' |
---|
27954 | |
---|
27955 | while : |
---|
27956 | do |
---|
27957 | # Write a here document: |
---|
27958 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
27959 | # First, check the format of the line: |
---|
27960 | cat >"\$tmp/defines.sed" <<\\CEOF |
---|
27961 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
---|
27962 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
---|
27963 | b |
---|
27964 | :def |
---|
27965 | _ACEOF |
---|
27966 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
---|
27967 | echo 'CEOF |
---|
27968 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
---|
27969 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
---|
27970 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
---|
27971 | grep . conftest.tail >/dev/null || break |
---|
27972 | rm -f conftest.defines |
---|
27973 | mv conftest.tail conftest.defines |
---|
27974 | done |
---|
27975 | rm -f conftest.defines conftest.tail |
---|
27976 | |
---|
27977 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
---|
27978 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
27979 | if test x"$ac_file" != x-; then |
---|
27980 | echo "/* $configure_input */" >"$tmp/config.h" |
---|
27981 | cat "$ac_result" >>"$tmp/config.h" |
---|
27982 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
---|
27983 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
27984 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
27985 | else |
---|
27986 | rm -f $ac_file |
---|
27987 | mv "$tmp/config.h" $ac_file |
---|
27988 | fi |
---|
27989 | else |
---|
27990 | echo "/* $configure_input */" |
---|
27991 | cat "$ac_result" |
---|
27992 | fi |
---|
27993 | rm -f "$tmp/out12" |
---|
27994 | # Compute $ac_file's index in $config_headers. |
---|
27995 | _am_stamp_count=1 |
---|
27996 | for _am_header in $config_headers :; do |
---|
27997 | case $_am_header in |
---|
27998 | $ac_file | $ac_file:* ) |
---|
27999 | break ;; |
---|
28000 | * ) |
---|
28001 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
28002 | esac |
---|
28003 | done |
---|
28004 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
---|
28005 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
28006 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
28007 | X$ac_file : 'X\(//\)$' \| \ |
---|
28008 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
---|
28009 | echo X$ac_file | |
---|
28010 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
28011 | s//\1/ |
---|
28012 | q |
---|
28013 | } |
---|
28014 | /^X\(\/\/\)[^/].*/{ |
---|
28015 | s//\1/ |
---|
28016 | q |
---|
28017 | } |
---|
28018 | /^X\(\/\/\)$/{ |
---|
28019 | s//\1/ |
---|
28020 | q |
---|
28021 | } |
---|
28022 | /^X\(\/\).*/{ |
---|
28023 | s//\1/ |
---|
28024 | q |
---|
28025 | } |
---|
28026 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
28027 | ;; |
---|
28028 | |
---|
28029 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
---|
28030 | echo "$as_me: executing $ac_file commands" >&6;} |
---|
28031 | ;; |
---|
28032 | esac |
---|
28033 | |
---|
28034 | |
---|
28035 | case $ac_file$ac_mode in |
---|
28036 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
28037 | # Strip MF so we end up with the name of the file. |
---|
28038 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
28039 | # Check whether this is an Automake generated Makefile or not. |
---|
28040 | # We used to match only the files named `Makefile.in', but |
---|
28041 | # some people rename them; so instead we look at the file content. |
---|
28042 | # Grep'ing the first line is not enough: some people post-process |
---|
28043 | # each Makefile.in and add a new line on top of each file to say so. |
---|
28044 | # Grep'ing the whole file is not good either: AIX grep has a line |
---|
28045 | # limit of 2048, but all sed's we know have understand at least 4000. |
---|
28046 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then |
---|
28047 | dirpart=`$as_dirname -- "$mf" || |
---|
28048 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
28049 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
28050 | X"$mf" : 'X\(//\)$' \| \ |
---|
28051 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
28052 | echo X"$mf" | |
---|
28053 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
28054 | s//\1/ |
---|
28055 | q |
---|
28056 | } |
---|
28057 | /^X\(\/\/\)[^/].*/{ |
---|
28058 | s//\1/ |
---|
28059 | q |
---|
28060 | } |
---|
28061 | /^X\(\/\/\)$/{ |
---|
28062 | s//\1/ |
---|
28063 | q |
---|
28064 | } |
---|
28065 | /^X\(\/\).*/{ |
---|
28066 | s//\1/ |
---|
28067 | q |
---|
28068 | } |
---|
28069 | s/.*/./; q'` |
---|
28070 | else |
---|
28071 | continue |
---|
28072 | fi |
---|
28073 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
28074 | # from the Makefile without running `make'. |
---|
28075 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
28076 | test -z "$DEPDIR" && continue |
---|
28077 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
28078 | test -z "am__include" && continue |
---|
28079 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
28080 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
28081 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
28082 | # Find all dependency output files, they are included files with |
---|
28083 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
28084 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
28085 | # expansion. |
---|
28086 | for file in `sed -n " |
---|
28087 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
28088 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
28089 | # Make sure the directory exists. |
---|
28090 | test -f "$dirpart/$file" && continue |
---|
28091 | fdir=`$as_dirname -- "$file" || |
---|
28092 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
28093 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
28094 | X"$file" : 'X\(//\)$' \| \ |
---|
28095 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
28096 | echo X"$file" | |
---|
28097 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
28098 | s//\1/ |
---|
28099 | q |
---|
28100 | } |
---|
28101 | /^X\(\/\/\)[^/].*/{ |
---|
28102 | s//\1/ |
---|
28103 | q |
---|
28104 | } |
---|
28105 | /^X\(\/\/\)$/{ |
---|
28106 | s//\1/ |
---|
28107 | q |
---|
28108 | } |
---|
28109 | /^X\(\/\).*/{ |
---|
28110 | s//\1/ |
---|
28111 | q |
---|
28112 | } |
---|
28113 | s/.*/./; q'` |
---|
28114 | { as_dir=$dirpart/$fdir |
---|
28115 | case $as_dir in #( |
---|
28116 | -*) as_dir=./$as_dir;; |
---|
28117 | esac |
---|
28118 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
28119 | as_dirs= |
---|
28120 | while :; do |
---|
28121 | case $as_dir in #( |
---|
28122 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
---|
28123 | *) as_qdir=$as_dir;; |
---|
28124 | esac |
---|
28125 | as_dirs="'$as_qdir' $as_dirs" |
---|
28126 | as_dir=`$as_dirname -- "$as_dir" || |
---|
28127 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
28128 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
28129 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
28130 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
28131 | echo X"$as_dir" | |
---|
28132 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
28133 | s//\1/ |
---|
28134 | q |
---|
28135 | } |
---|
28136 | /^X\(\/\/\)[^/].*/{ |
---|
28137 | s//\1/ |
---|
28138 | q |
---|
28139 | } |
---|
28140 | /^X\(\/\/\)$/{ |
---|
28141 | s//\1/ |
---|
28142 | q |
---|
28143 | } |
---|
28144 | /^X\(\/\).*/{ |
---|
28145 | s//\1/ |
---|
28146 | q |
---|
28147 | } |
---|
28148 | s/.*/./; q'` |
---|
28149 | test -d "$as_dir" && break |
---|
28150 | done |
---|
28151 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
28152 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
28153 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
28154 | { (exit 1); exit 1; }; }; } |
---|
28155 | # echo "creating $dirpart/$file" |
---|
28156 | echo '# dummy' > "$dirpart/$file" |
---|
28157 | done |
---|
28158 | done |
---|
28159 | ;; |
---|
28160 | |
---|
28161 | esac |
---|
28162 | done # for ac_tag |
---|
28163 | |
---|
28164 | |
---|
28165 | { (exit 0); exit 0; } |
---|
28166 | _ACEOF |
---|
28167 | chmod +x $CONFIG_STATUS |
---|
28168 | ac_clean_files=$ac_clean_files_save |
---|
28169 | |
---|
28170 | |
---|
28171 | # configure is writing to config.log, and then calls config.status. |
---|
28172 | # config.status does its own redirection, appending to config.log. |
---|
28173 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
28174 | # by configure, so config.status won't be able to write to it; its |
---|
28175 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
28176 | # effectively closing config.log, so it can be properly (re)opened and |
---|
28177 | # appended to by config.status. When coming back to configure, we |
---|
28178 | # need to make the FD available again. |
---|
28179 | if test "$no_create" != yes; then |
---|
28180 | ac_cs_success=: |
---|
28181 | ac_config_status_args= |
---|
28182 | test "$silent" = yes && |
---|
28183 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
28184 | exec 5>/dev/null |
---|
28185 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
28186 | exec 5>>config.log |
---|
28187 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
28188 | # would make configure fail if this is the last instruction. |
---|
28189 | $ac_cs_success || { (exit 1); exit 1; } |
---|
28190 | fi |
---|
28191 | |
---|
28192 | |
---|
28193 | |
---|
28194 | ft_detected=yes |
---|
28195 | test "x$no_ft" == "xyes" && ft_detected=no |
---|
28196 | |
---|
28197 | echo "--------=== Configuration summary ===--------" |
---|
28198 | echo " Target platform : $OGRE_PLATFORM" |
---|
28199 | echo " OpenGL Ogre support : $OGRE_GLSUPPORT" |
---|
28200 | echo " GUI library to use : $with_gui" |
---|
28201 | echo " Use double precision arithmetic : $build_double" |
---|
28202 | echo " Support for threading : $build_threads" |
---|
28203 | echo " Use STLport : $ac_cv_use_stlport" |
---|
28204 | echo " Use FreeType : $ft_detected" |
---|
28205 | echo " Use FreeImage : $build_freeimage" |
---|
28206 | echo " Use DevIL : $build_il" |
---|
28207 | echo " Build OGRE demos : $build_ogre_demos" |
---|
28208 | test "x$build_ogre_demos" == "xyes" && \ |
---|
28209 | echo " Build CEGUI demos : $build_cegui_sample" |
---|
28210 | echo " Build the OpenEXR plugin : $build_exr" |
---|
28211 | echo " Build the Cg plugin : $build_cg" |
---|
28212 | echo " Build the DirectX 9 plugin : $build_dx9" |
---|
28213 | echo "--------===============================--------" |
---|