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 | CYGPATH_W |
---|
822 | PACKAGE |
---|
823 | VERSION |
---|
824 | ACLOCAL |
---|
825 | AUTOCONF |
---|
826 | AUTOMAKE |
---|
827 | AUTOHEADER |
---|
828 | MAKEINFO |
---|
829 | install_sh |
---|
830 | STRIP |
---|
831 | INSTALL_STRIP_PROGRAM |
---|
832 | mkdir_p |
---|
833 | AWK |
---|
834 | SET_MAKE |
---|
835 | am__leading_dot |
---|
836 | AMTAR |
---|
837 | am__tar |
---|
838 | am__untar |
---|
839 | CC |
---|
840 | CFLAGS |
---|
841 | LDFLAGS |
---|
842 | CPPFLAGS |
---|
843 | ac_ct_CC |
---|
844 | EXEEXT |
---|
845 | OBJEXT |
---|
846 | DEPDIR |
---|
847 | am__include |
---|
848 | am__quote |
---|
849 | AMDEP_TRUE |
---|
850 | AMDEP_FALSE |
---|
851 | AMDEPBACKSLASH |
---|
852 | CCDEPMODE |
---|
853 | am__fastdepCC_TRUE |
---|
854 | am__fastdepCC_FALSE |
---|
855 | CXX |
---|
856 | CXXFLAGS |
---|
857 | ac_ct_CXX |
---|
858 | CXXDEPMODE |
---|
859 | am__fastdepCXX_TRUE |
---|
860 | am__fastdepCXX_FALSE |
---|
861 | YACC |
---|
862 | YFLAGS |
---|
863 | LEX |
---|
864 | LEX_OUTPUT_ROOT |
---|
865 | LEXLIB |
---|
866 | SHARED_FLAGS |
---|
867 | PLUGIN_FLAGS |
---|
868 | GL_LIBS |
---|
869 | RC |
---|
870 | OGRE_NT_TRUE |
---|
871 | OGRE_NT_FALSE |
---|
872 | OGRE_LINUX_TRUE |
---|
873 | OGRE_LINUX_FALSE |
---|
874 | OGRE_OSX_TRUE |
---|
875 | OGRE_OSX_FALSE |
---|
876 | GREP |
---|
877 | EGREP |
---|
878 | LN_S |
---|
879 | ECHO |
---|
880 | AR |
---|
881 | RANLIB |
---|
882 | CPP |
---|
883 | CXXCPP |
---|
884 | F77 |
---|
885 | FFLAGS |
---|
886 | ac_ct_F77 |
---|
887 | LIBTOOL |
---|
888 | OGRE_CFLAGS |
---|
889 | CFLAGS_VISIBILITY |
---|
890 | STLPORT_CFLAGS |
---|
891 | STLPORT_LIBS |
---|
892 | FT2_CONFIG |
---|
893 | FT2_CFLAGS |
---|
894 | FT2_LIBS |
---|
895 | CPPUNIT_CONFIG |
---|
896 | CPPUNIT_CFLAGS |
---|
897 | CPPUNIT_LIBS |
---|
898 | BUILD_UNIT_TESTS_TRUE |
---|
899 | BUILD_UNIT_TESTS_FALSE |
---|
900 | PKG_CONFIG |
---|
901 | ZZIPLIB_CFLAGS |
---|
902 | ZZIPLIB_LIBS |
---|
903 | XMKMF |
---|
904 | PLATFORM_CFLAGS |
---|
905 | PLATFORM_LIBS |
---|
906 | OGRE_PLATFORM |
---|
907 | GLSUPPORT_CFLAGS |
---|
908 | GLSUPPORT_LIBS |
---|
909 | OGRE_GLSUPPORT |
---|
910 | GTK_CFLAGS |
---|
911 | GTK_LIBS |
---|
912 | OGRE_GUI |
---|
913 | OGRE_THREAD_LIBS |
---|
914 | USE_FREEIMAGE_TRUE |
---|
915 | USE_FREEIMAGE_FALSE |
---|
916 | USE_DEVIL_TRUE |
---|
917 | USE_DEVIL_FALSE |
---|
918 | BUILD_CGPLUGIN_TRUE |
---|
919 | BUILD_CGPLUGIN_FALSE |
---|
920 | OPENEXR_CFLAGS |
---|
921 | OPENEXR_LIBS |
---|
922 | BUILD_EXRPLUGIN_TRUE |
---|
923 | BUILD_EXRPLUGIN_FALSE |
---|
924 | BUILD_DX9RENDERSYSTEM_TRUE |
---|
925 | BUILD_DX9RENDERSYSTEM_FALSE |
---|
926 | OGRE_BUILD_SSE_TRUE |
---|
927 | OGRE_BUILD_SSE_FALSE |
---|
928 | SAME_PLATFORM_AND_GUI_TRUE |
---|
929 | SAME_PLATFORM_AND_GUI_FALSE |
---|
930 | OIS_CFLAGS |
---|
931 | OIS_LIBS |
---|
932 | OGRE_BUILDING_DEMOS_TRUE |
---|
933 | OGRE_BUILDING_DEMOS_FALSE |
---|
934 | CEGUI_CFLAGS |
---|
935 | CEGUI_LIBS |
---|
936 | HAVE_CEGUI_TRUE |
---|
937 | HAVE_CEGUI_FALSE |
---|
938 | abs_top_builddir |
---|
939 | ogreexecdir |
---|
940 | LIBOBJS |
---|
941 | LTLIBOBJS' |
---|
942 | ac_subst_files='' |
---|
943 | ac_precious_vars='build_alias |
---|
944 | host_alias |
---|
945 | target_alias |
---|
946 | CC |
---|
947 | CFLAGS |
---|
948 | LDFLAGS |
---|
949 | LIBS |
---|
950 | CPPFLAGS |
---|
951 | CXX |
---|
952 | CXXFLAGS |
---|
953 | CCC |
---|
954 | YACC |
---|
955 | YFLAGS |
---|
956 | CPP |
---|
957 | CXXCPP |
---|
958 | F77 |
---|
959 | FFLAGS |
---|
960 | PKG_CONFIG |
---|
961 | ZZIPLIB_CFLAGS |
---|
962 | ZZIPLIB_LIBS |
---|
963 | XMKMF |
---|
964 | GTK_CFLAGS |
---|
965 | GTK_LIBS |
---|
966 | OPENEXR_CFLAGS |
---|
967 | OPENEXR_LIBS |
---|
968 | OIS_CFLAGS |
---|
969 | OIS_LIBS |
---|
970 | CEGUI_CFLAGS |
---|
971 | CEGUI_LIBS' |
---|
972 | |
---|
973 | |
---|
974 | # Initialize some variables set by options. |
---|
975 | ac_init_help= |
---|
976 | ac_init_version=false |
---|
977 | # The variables have the same names as the options, with |
---|
978 | # dashes changed to underlines. |
---|
979 | cache_file=/dev/null |
---|
980 | exec_prefix=NONE |
---|
981 | no_create= |
---|
982 | no_recursion= |
---|
983 | prefix=NONE |
---|
984 | program_prefix=NONE |
---|
985 | program_suffix=NONE |
---|
986 | program_transform_name=s,x,x, |
---|
987 | silent= |
---|
988 | site= |
---|
989 | srcdir= |
---|
990 | verbose= |
---|
991 | x_includes=NONE |
---|
992 | x_libraries=NONE |
---|
993 | |
---|
994 | # Installation directory options. |
---|
995 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
996 | # and all the variables that are supposed to be based on exec_prefix |
---|
997 | # by default will actually change. |
---|
998 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
999 | # (The list follows the same order as the GNU Coding Standards.) |
---|
1000 | bindir='${exec_prefix}/bin' |
---|
1001 | sbindir='${exec_prefix}/sbin' |
---|
1002 | libexecdir='${exec_prefix}/libexec' |
---|
1003 | datarootdir='${prefix}/share' |
---|
1004 | datadir='${datarootdir}' |
---|
1005 | sysconfdir='${prefix}/etc' |
---|
1006 | sharedstatedir='${prefix}/com' |
---|
1007 | localstatedir='${prefix}/var' |
---|
1008 | includedir='${prefix}/include' |
---|
1009 | oldincludedir='/usr/include' |
---|
1010 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
1011 | infodir='${datarootdir}/info' |
---|
1012 | htmldir='${docdir}' |
---|
1013 | dvidir='${docdir}' |
---|
1014 | pdfdir='${docdir}' |
---|
1015 | psdir='${docdir}' |
---|
1016 | libdir='${exec_prefix}/lib' |
---|
1017 | localedir='${datarootdir}/locale' |
---|
1018 | mandir='${datarootdir}/man' |
---|
1019 | |
---|
1020 | ac_prev= |
---|
1021 | ac_dashdash= |
---|
1022 | for ac_option |
---|
1023 | do |
---|
1024 | # If the previous option needs an argument, assign it. |
---|
1025 | if test -n "$ac_prev"; then |
---|
1026 | eval $ac_prev=\$ac_option |
---|
1027 | ac_prev= |
---|
1028 | continue |
---|
1029 | fi |
---|
1030 | |
---|
1031 | case $ac_option in |
---|
1032 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
1033 | *) ac_optarg=yes ;; |
---|
1034 | esac |
---|
1035 | |
---|
1036 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
1037 | |
---|
1038 | case $ac_dashdash$ac_option in |
---|
1039 | --) |
---|
1040 | ac_dashdash=yes ;; |
---|
1041 | |
---|
1042 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
1043 | ac_prev=bindir ;; |
---|
1044 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
1045 | bindir=$ac_optarg ;; |
---|
1046 | |
---|
1047 | -build | --build | --buil | --bui | --bu) |
---|
1048 | ac_prev=build_alias ;; |
---|
1049 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
1050 | build_alias=$ac_optarg ;; |
---|
1051 | |
---|
1052 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
1053 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
1054 | ac_prev=cache_file ;; |
---|
1055 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
1056 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
1057 | cache_file=$ac_optarg ;; |
---|
1058 | |
---|
1059 | --config-cache | -C) |
---|
1060 | cache_file=config.cache ;; |
---|
1061 | |
---|
1062 | -datadir | --datadir | --datadi | --datad) |
---|
1063 | ac_prev=datadir ;; |
---|
1064 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
1065 | datadir=$ac_optarg ;; |
---|
1066 | |
---|
1067 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
1068 | | --dataroo | --dataro | --datar) |
---|
1069 | ac_prev=datarootdir ;; |
---|
1070 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
1071 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
1072 | datarootdir=$ac_optarg ;; |
---|
1073 | |
---|
1074 | -disable-* | --disable-*) |
---|
1075 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
1076 | # Reject names that are not valid shell variable names. |
---|
1077 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1078 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
1079 | { (exit 1); exit 1; }; } |
---|
1080 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
1081 | eval enable_$ac_feature=no ;; |
---|
1082 | |
---|
1083 | -docdir | --docdir | --docdi | --doc | --do) |
---|
1084 | ac_prev=docdir ;; |
---|
1085 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
1086 | docdir=$ac_optarg ;; |
---|
1087 | |
---|
1088 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
1089 | ac_prev=dvidir ;; |
---|
1090 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
1091 | dvidir=$ac_optarg ;; |
---|
1092 | |
---|
1093 | -enable-* | --enable-*) |
---|
1094 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
1095 | # Reject names that are not valid shell variable names. |
---|
1096 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1097 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
1098 | { (exit 1); exit 1; }; } |
---|
1099 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
1100 | eval enable_$ac_feature=\$ac_optarg ;; |
---|
1101 | |
---|
1102 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
1103 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
1104 | | --exec | --exe | --ex) |
---|
1105 | ac_prev=exec_prefix ;; |
---|
1106 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
1107 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
1108 | | --exec=* | --exe=* | --ex=*) |
---|
1109 | exec_prefix=$ac_optarg ;; |
---|
1110 | |
---|
1111 | -gas | --gas | --ga | --g) |
---|
1112 | # Obsolete; use --with-gas. |
---|
1113 | with_gas=yes ;; |
---|
1114 | |
---|
1115 | -help | --help | --hel | --he | -h) |
---|
1116 | ac_init_help=long ;; |
---|
1117 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
1118 | ac_init_help=recursive ;; |
---|
1119 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
1120 | ac_init_help=short ;; |
---|
1121 | |
---|
1122 | -host | --host | --hos | --ho) |
---|
1123 | ac_prev=host_alias ;; |
---|
1124 | -host=* | --host=* | --hos=* | --ho=*) |
---|
1125 | host_alias=$ac_optarg ;; |
---|
1126 | |
---|
1127 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
1128 | ac_prev=htmldir ;; |
---|
1129 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
1130 | | --ht=*) |
---|
1131 | htmldir=$ac_optarg ;; |
---|
1132 | |
---|
1133 | -includedir | --includedir | --includedi | --included | --include \ |
---|
1134 | | --includ | --inclu | --incl | --inc) |
---|
1135 | ac_prev=includedir ;; |
---|
1136 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
1137 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
1138 | includedir=$ac_optarg ;; |
---|
1139 | |
---|
1140 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
1141 | ac_prev=infodir ;; |
---|
1142 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
1143 | infodir=$ac_optarg ;; |
---|
1144 | |
---|
1145 | -libdir | --libdir | --libdi | --libd) |
---|
1146 | ac_prev=libdir ;; |
---|
1147 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
1148 | libdir=$ac_optarg ;; |
---|
1149 | |
---|
1150 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
1151 | | --libexe | --libex | --libe) |
---|
1152 | ac_prev=libexecdir ;; |
---|
1153 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
1154 | | --libexe=* | --libex=* | --libe=*) |
---|
1155 | libexecdir=$ac_optarg ;; |
---|
1156 | |
---|
1157 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
1158 | ac_prev=localedir ;; |
---|
1159 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
1160 | localedir=$ac_optarg ;; |
---|
1161 | |
---|
1162 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
1163 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
1164 | ac_prev=localstatedir ;; |
---|
1165 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
1166 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
1167 | localstatedir=$ac_optarg ;; |
---|
1168 | |
---|
1169 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
1170 | ac_prev=mandir ;; |
---|
1171 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
1172 | mandir=$ac_optarg ;; |
---|
1173 | |
---|
1174 | -nfp | --nfp | --nf) |
---|
1175 | # Obsolete; use --without-fp. |
---|
1176 | with_fp=no ;; |
---|
1177 | |
---|
1178 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
1179 | | --no-cr | --no-c | -n) |
---|
1180 | no_create=yes ;; |
---|
1181 | |
---|
1182 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
1183 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
1184 | no_recursion=yes ;; |
---|
1185 | |
---|
1186 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
1187 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
1188 | | --oldin | --oldi | --old | --ol | --o) |
---|
1189 | ac_prev=oldincludedir ;; |
---|
1190 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1191 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1192 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1193 | oldincludedir=$ac_optarg ;; |
---|
1194 | |
---|
1195 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1196 | ac_prev=prefix ;; |
---|
1197 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1198 | prefix=$ac_optarg ;; |
---|
1199 | |
---|
1200 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1201 | | --program-pre | --program-pr | --program-p) |
---|
1202 | ac_prev=program_prefix ;; |
---|
1203 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1204 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1205 | program_prefix=$ac_optarg ;; |
---|
1206 | |
---|
1207 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1208 | | --program-suf | --program-su | --program-s) |
---|
1209 | ac_prev=program_suffix ;; |
---|
1210 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1211 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1212 | program_suffix=$ac_optarg ;; |
---|
1213 | |
---|
1214 | -program-transform-name | --program-transform-name \ |
---|
1215 | | --program-transform-nam | --program-transform-na \ |
---|
1216 | | --program-transform-n | --program-transform- \ |
---|
1217 | | --program-transform | --program-transfor \ |
---|
1218 | | --program-transfo | --program-transf \ |
---|
1219 | | --program-trans | --program-tran \ |
---|
1220 | | --progr-tra | --program-tr | --program-t) |
---|
1221 | ac_prev=program_transform_name ;; |
---|
1222 | -program-transform-name=* | --program-transform-name=* \ |
---|
1223 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1224 | | --program-transform-n=* | --program-transform-=* \ |
---|
1225 | | --program-transform=* | --program-transfor=* \ |
---|
1226 | | --program-transfo=* | --program-transf=* \ |
---|
1227 | | --program-trans=* | --program-tran=* \ |
---|
1228 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1229 | program_transform_name=$ac_optarg ;; |
---|
1230 | |
---|
1231 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1232 | ac_prev=pdfdir ;; |
---|
1233 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1234 | pdfdir=$ac_optarg ;; |
---|
1235 | |
---|
1236 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1237 | ac_prev=psdir ;; |
---|
1238 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1239 | psdir=$ac_optarg ;; |
---|
1240 | |
---|
1241 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1242 | | -silent | --silent | --silen | --sile | --sil) |
---|
1243 | silent=yes ;; |
---|
1244 | |
---|
1245 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1246 | ac_prev=sbindir ;; |
---|
1247 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1248 | | --sbi=* | --sb=*) |
---|
1249 | sbindir=$ac_optarg ;; |
---|
1250 | |
---|
1251 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1252 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1253 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1254 | | --sha | --sh) |
---|
1255 | ac_prev=sharedstatedir ;; |
---|
1256 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1257 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1258 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1259 | | --sha=* | --sh=*) |
---|
1260 | sharedstatedir=$ac_optarg ;; |
---|
1261 | |
---|
1262 | -site | --site | --sit) |
---|
1263 | ac_prev=site ;; |
---|
1264 | -site=* | --site=* | --sit=*) |
---|
1265 | site=$ac_optarg ;; |
---|
1266 | |
---|
1267 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1268 | ac_prev=srcdir ;; |
---|
1269 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1270 | srcdir=$ac_optarg ;; |
---|
1271 | |
---|
1272 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1273 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1274 | ac_prev=sysconfdir ;; |
---|
1275 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1276 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1277 | sysconfdir=$ac_optarg ;; |
---|
1278 | |
---|
1279 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1280 | ac_prev=target_alias ;; |
---|
1281 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1282 | target_alias=$ac_optarg ;; |
---|
1283 | |
---|
1284 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1285 | verbose=yes ;; |
---|
1286 | |
---|
1287 | -version | --version | --versio | --versi | --vers | -V) |
---|
1288 | ac_init_version=: ;; |
---|
1289 | |
---|
1290 | -with-* | --with-*) |
---|
1291 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1292 | # Reject names that are not valid shell variable names. |
---|
1293 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1294 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
1295 | { (exit 1); exit 1; }; } |
---|
1296 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
1297 | eval with_$ac_package=\$ac_optarg ;; |
---|
1298 | |
---|
1299 | -without-* | --without-*) |
---|
1300 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1301 | # Reject names that are not valid shell variable names. |
---|
1302 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1303 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
1304 | { (exit 1); exit 1; }; } |
---|
1305 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
1306 | eval with_$ac_package=no ;; |
---|
1307 | |
---|
1308 | --x) |
---|
1309 | # Obsolete; use --with-x. |
---|
1310 | with_x=yes ;; |
---|
1311 | |
---|
1312 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1313 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1314 | ac_prev=x_includes ;; |
---|
1315 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1316 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1317 | x_includes=$ac_optarg ;; |
---|
1318 | |
---|
1319 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1320 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1321 | ac_prev=x_libraries ;; |
---|
1322 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1323 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1324 | x_libraries=$ac_optarg ;; |
---|
1325 | |
---|
1326 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
1327 | Try \`$0 --help' for more information." >&2 |
---|
1328 | { (exit 1); exit 1; }; } |
---|
1329 | ;; |
---|
1330 | |
---|
1331 | *=*) |
---|
1332 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1333 | # Reject names that are not valid shell variable names. |
---|
1334 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
1335 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
1336 | { (exit 1); exit 1; }; } |
---|
1337 | eval $ac_envvar=\$ac_optarg |
---|
1338 | export $ac_envvar ;; |
---|
1339 | |
---|
1340 | *) |
---|
1341 | # FIXME: should be removed in autoconf 3.0. |
---|
1342 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1343 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1344 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1345 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
1346 | ;; |
---|
1347 | |
---|
1348 | esac |
---|
1349 | done |
---|
1350 | |
---|
1351 | if test -n "$ac_prev"; then |
---|
1352 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1353 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
1354 | { (exit 1); exit 1; }; } |
---|
1355 | fi |
---|
1356 | |
---|
1357 | # Be sure to have absolute directory names. |
---|
1358 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1359 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1360 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1361 | libdir localedir mandir |
---|
1362 | do |
---|
1363 | eval ac_val=\$$ac_var |
---|
1364 | case $ac_val in |
---|
1365 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1366 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1367 | esac |
---|
1368 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
1369 | { (exit 1); exit 1; }; } |
---|
1370 | done |
---|
1371 | |
---|
1372 | # There might be people who depend on the old broken behavior: `$host' |
---|
1373 | # used to hold the argument of --host etc. |
---|
1374 | # FIXME: To remove some day. |
---|
1375 | build=$build_alias |
---|
1376 | host=$host_alias |
---|
1377 | target=$target_alias |
---|
1378 | |
---|
1379 | # FIXME: To remove some day. |
---|
1380 | if test "x$host_alias" != x; then |
---|
1381 | if test "x$build_alias" = x; then |
---|
1382 | cross_compiling=maybe |
---|
1383 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
1384 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
1385 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1386 | cross_compiling=yes |
---|
1387 | fi |
---|
1388 | fi |
---|
1389 | |
---|
1390 | ac_tool_prefix= |
---|
1391 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1392 | |
---|
1393 | test "$silent" = yes && exec 6>/dev/null |
---|
1394 | |
---|
1395 | |
---|
1396 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1397 | ac_ls_di=`ls -di .` && |
---|
1398 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1399 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
---|
1400 | { (exit 1); exit 1; }; } |
---|
1401 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1402 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
---|
1403 | { (exit 1); exit 1; }; } |
---|
1404 | |
---|
1405 | |
---|
1406 | # Find the source files, if location was not specified. |
---|
1407 | if test -z "$srcdir"; then |
---|
1408 | ac_srcdir_defaulted=yes |
---|
1409 | # Try the directory containing this script, then the parent directory. |
---|
1410 | ac_confdir=`$as_dirname -- "$0" || |
---|
1411 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1412 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
1413 | X"$0" : 'X\(//\)$' \| \ |
---|
1414 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
1415 | echo X"$0" | |
---|
1416 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1417 | s//\1/ |
---|
1418 | q |
---|
1419 | } |
---|
1420 | /^X\(\/\/\)[^/].*/{ |
---|
1421 | s//\1/ |
---|
1422 | q |
---|
1423 | } |
---|
1424 | /^X\(\/\/\)$/{ |
---|
1425 | s//\1/ |
---|
1426 | q |
---|
1427 | } |
---|
1428 | /^X\(\/\).*/{ |
---|
1429 | s//\1/ |
---|
1430 | q |
---|
1431 | } |
---|
1432 | s/.*/./; q'` |
---|
1433 | srcdir=$ac_confdir |
---|
1434 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1435 | srcdir=.. |
---|
1436 | fi |
---|
1437 | else |
---|
1438 | ac_srcdir_defaulted=no |
---|
1439 | fi |
---|
1440 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1441 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1442 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
1443 | { (exit 1); exit 1; }; } |
---|
1444 | fi |
---|
1445 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1446 | ac_abs_confdir=`( |
---|
1447 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
---|
1448 | { (exit 1); exit 1; }; } |
---|
1449 | pwd)` |
---|
1450 | # When building in place, set srcdir=. |
---|
1451 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1452 | srcdir=. |
---|
1453 | fi |
---|
1454 | # Remove unnecessary trailing slashes from srcdir. |
---|
1455 | # Double slashes in file names in object file debugging info |
---|
1456 | # mess up M-x gdb in Emacs. |
---|
1457 | case $srcdir in |
---|
1458 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1459 | esac |
---|
1460 | for ac_var in $ac_precious_vars; do |
---|
1461 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1462 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1463 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1464 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1465 | done |
---|
1466 | |
---|
1467 | # |
---|
1468 | # Report the --help message. |
---|
1469 | # |
---|
1470 | if test "$ac_init_help" = "long"; then |
---|
1471 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1472 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1473 | cat <<_ACEOF |
---|
1474 | \`configure' configures OGRE 1.4.5 to adapt to many kinds of systems. |
---|
1475 | |
---|
1476 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1477 | |
---|
1478 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1479 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1480 | |
---|
1481 | Defaults for the options are specified in brackets. |
---|
1482 | |
---|
1483 | Configuration: |
---|
1484 | -h, --help display this help and exit |
---|
1485 | --help=short display options specific to this package |
---|
1486 | --help=recursive display the short help of all the included packages |
---|
1487 | -V, --version display version information and exit |
---|
1488 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1489 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1490 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1491 | -n, --no-create do not create output files |
---|
1492 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1493 | |
---|
1494 | Installation directories: |
---|
1495 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1496 | [$ac_default_prefix] |
---|
1497 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1498 | [PREFIX] |
---|
1499 | |
---|
1500 | By default, \`make install' will install all the files in |
---|
1501 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1502 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1503 | for instance \`--prefix=\$HOME'. |
---|
1504 | |
---|
1505 | For better control, use the options below. |
---|
1506 | |
---|
1507 | Fine tuning of the installation directories: |
---|
1508 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1509 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1510 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1511 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1512 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1513 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1514 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1515 | --includedir=DIR C header files [PREFIX/include] |
---|
1516 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1517 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1518 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1519 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1520 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1521 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1522 | --docdir=DIR documentation root [DATAROOTDIR/doc/ogre] |
---|
1523 | --htmldir=DIR html documentation [DOCDIR] |
---|
1524 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1525 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1526 | --psdir=DIR ps documentation [DOCDIR] |
---|
1527 | _ACEOF |
---|
1528 | |
---|
1529 | cat <<\_ACEOF |
---|
1530 | |
---|
1531 | Program names: |
---|
1532 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1533 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1534 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1535 | |
---|
1536 | X features: |
---|
1537 | --x-includes=DIR X include files are in DIR |
---|
1538 | --x-libraries=DIR X library files are in DIR |
---|
1539 | |
---|
1540 | System types: |
---|
1541 | --build=BUILD configure for building on BUILD [guessed] |
---|
1542 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1543 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
1544 | _ACEOF |
---|
1545 | fi |
---|
1546 | |
---|
1547 | if test -n "$ac_init_help"; then |
---|
1548 | case $ac_init_help in |
---|
1549 | short | recursive ) echo "Configuration of OGRE 1.4.5:";; |
---|
1550 | esac |
---|
1551 | cat <<\_ACEOF |
---|
1552 | |
---|
1553 | Optional Features: |
---|
1554 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1555 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1556 | --disable-dependency-tracking speeds up one-time build |
---|
1557 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1558 | --enable-static[=PKGS] build static libraries [default=no] |
---|
1559 | --enable-shared[=PKGS] build shared libraries [default=yes] |
---|
1560 | --enable-fast-install[=PKGS] |
---|
1561 | optimize for fast installation [default=yes] |
---|
1562 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1563 | --disable-freetypetest Do not try to compile and run |
---|
1564 | a test FreeType program |
---|
1565 | --enable-double Build OGRE in double floating point precision mode. |
---|
1566 | This is not recommended for normal use as it is |
---|
1567 | slower. |
---|
1568 | --enable-threading Indicate general support for multithreading. This |
---|
1569 | will enable threading support in certain parts of |
---|
1570 | the engine, mainly resource loading and SharedPtr |
---|
1571 | handling. WARNING: highly experimental, use with |
---|
1572 | caution. |
---|
1573 | --disable-freeimage Don't use FreeImage for image loading. This is not |
---|
1574 | recommended unless you provide your own image |
---|
1575 | loading codecs. |
---|
1576 | --disable-devil Don't use DevIL for image loading. This is not |
---|
1577 | recommended unless you provide your own image |
---|
1578 | loading codecs. |
---|
1579 | --disable-cg Do not build the Cg plugin (recommended you do so!) |
---|
1580 | --enable-openexr Build the OpenEXR plugin |
---|
1581 | --enable-direct3d Build the DirectX 9 Render System |
---|
1582 | --disable-ogre-demos Do not build Ogre demos (CEGUI Renderer - if |
---|
1583 | enabled/disabled, is not affected by this |
---|
1584 | |
---|
1585 | Optional Packages: |
---|
1586 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1587 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1588 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1589 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1590 | both] |
---|
1591 | --with-tags[=TAGS] include additional configurations [automatic] |
---|
1592 | --with-stlport=PATH the path to STLPort. |
---|
1593 | --with-ft-prefix=PREFIX |
---|
1594 | Prefix where FreeType is installed (optional) |
---|
1595 | --with-ft-exec-prefix=PREFIX |
---|
1596 | Exec prefix where FreeType is installed (optional) |
---|
1597 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) |
---|
1598 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) |
---|
1599 | --with-platform=PLATFORM |
---|
1600 | the platform to build, currently GLX or Win32 |
---|
1601 | --with-x use the X Window System |
---|
1602 | --with-gl-support=PLATFORM |
---|
1603 | The GLsupport to build (GLX or Win32). Defaults to |
---|
1604 | the platform. Only set this if you know what you are |
---|
1605 | doing. Use --with-platform otherwise. |
---|
1606 | --with-gui=type Select the GUI type to use for dialogs (win32, gtk, |
---|
1607 | Xt) (default: auto) |
---|
1608 | |
---|
1609 | Some influential environment variables: |
---|
1610 | CC C compiler command |
---|
1611 | CFLAGS C compiler flags |
---|
1612 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1613 | nonstandard directory <lib dir> |
---|
1614 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1615 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
---|
1616 | you have headers in a nonstandard directory <include dir> |
---|
1617 | CXX C++ compiler command |
---|
1618 | CXXFLAGS C++ compiler flags |
---|
1619 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
---|
1620 | the first program found out of: `bison -y', `byacc', `yacc'. |
---|
1621 | YFLAGS The list of arguments that will be passed by default to $YACC. |
---|
1622 | This script will default YFLAGS to the empty string to avoid a |
---|
1623 | default value of `-d' given by some make applications. |
---|
1624 | CPP C preprocessor |
---|
1625 | CXXCPP C++ preprocessor |
---|
1626 | F77 Fortran 77 compiler command |
---|
1627 | FFLAGS Fortran 77 compiler flags |
---|
1628 | PKG_CONFIG path to pkg-config utility |
---|
1629 | ZZIPLIB_CFLAGS |
---|
1630 | C compiler flags for ZZIPLIB, overriding pkg-config |
---|
1631 | ZZIPLIB_LIBS |
---|
1632 | linker flags for ZZIPLIB, overriding pkg-config |
---|
1633 | XMKMF Path to xmkmf, Makefile generator for X Window System |
---|
1634 | GTK_CFLAGS C compiler flags for GTK, overriding pkg-config |
---|
1635 | GTK_LIBS linker flags for GTK, overriding pkg-config |
---|
1636 | OPENEXR_CFLAGS |
---|
1637 | C compiler flags for OPENEXR, overriding pkg-config |
---|
1638 | OPENEXR_LIBS |
---|
1639 | linker flags for OPENEXR, overriding pkg-config |
---|
1640 | OIS_CFLAGS C compiler flags for OIS, overriding pkg-config |
---|
1641 | OIS_LIBS linker flags for OIS, overriding pkg-config |
---|
1642 | CEGUI_CFLAGS |
---|
1643 | C compiler flags for CEGUI, overriding pkg-config |
---|
1644 | CEGUI_LIBS linker flags for CEGUI, overriding pkg-config |
---|
1645 | |
---|
1646 | Use these variables to override the choices made by `configure' or to help |
---|
1647 | it to find libraries and programs with nonstandard names/locations. |
---|
1648 | |
---|
1649 | _ACEOF |
---|
1650 | ac_status=$? |
---|
1651 | fi |
---|
1652 | |
---|
1653 | if test "$ac_init_help" = "recursive"; then |
---|
1654 | # If there are subdirs, report their specific --help. |
---|
1655 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1656 | test -d "$ac_dir" || continue |
---|
1657 | ac_builddir=. |
---|
1658 | |
---|
1659 | case "$ac_dir" in |
---|
1660 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1661 | *) |
---|
1662 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1663 | # A ".." for each directory in $ac_dir_suffix. |
---|
1664 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
1665 | case $ac_top_builddir_sub in |
---|
1666 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1667 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1668 | esac ;; |
---|
1669 | esac |
---|
1670 | ac_abs_top_builddir=$ac_pwd |
---|
1671 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1672 | # for backward compatibility: |
---|
1673 | ac_top_builddir=$ac_top_build_prefix |
---|
1674 | |
---|
1675 | case $srcdir in |
---|
1676 | .) # We are building in place. |
---|
1677 | ac_srcdir=. |
---|
1678 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1679 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1680 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1681 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1682 | ac_top_srcdir=$srcdir |
---|
1683 | ac_abs_top_srcdir=$srcdir ;; |
---|
1684 | *) # Relative name. |
---|
1685 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1686 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1687 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1688 | esac |
---|
1689 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1690 | |
---|
1691 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1692 | # Check for guested configure. |
---|
1693 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1694 | echo && |
---|
1695 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1696 | elif test -f "$ac_srcdir/configure"; then |
---|
1697 | echo && |
---|
1698 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1699 | else |
---|
1700 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1701 | fi || ac_status=$? |
---|
1702 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1703 | done |
---|
1704 | fi |
---|
1705 | |
---|
1706 | test -n "$ac_init_help" && exit $ac_status |
---|
1707 | if $ac_init_version; then |
---|
1708 | cat <<\_ACEOF |
---|
1709 | OGRE configure 1.4.5 |
---|
1710 | generated by GNU Autoconf 2.61 |
---|
1711 | |
---|
1712 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
1713 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
1714 | This configure script is free software; the Free Software Foundation |
---|
1715 | gives unlimited permission to copy, distribute and modify it. |
---|
1716 | _ACEOF |
---|
1717 | exit |
---|
1718 | fi |
---|
1719 | cat >config.log <<_ACEOF |
---|
1720 | This file contains any messages produced by compilers while |
---|
1721 | running configure, to aid debugging if configure makes a mistake. |
---|
1722 | |
---|
1723 | It was created by OGRE $as_me 1.4.5, which was |
---|
1724 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
1725 | |
---|
1726 | $ $0 $@ |
---|
1727 | |
---|
1728 | _ACEOF |
---|
1729 | exec 5>>config.log |
---|
1730 | { |
---|
1731 | cat <<_ASUNAME |
---|
1732 | ## --------- ## |
---|
1733 | ## Platform. ## |
---|
1734 | ## --------- ## |
---|
1735 | |
---|
1736 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1737 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1738 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1739 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1740 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1741 | |
---|
1742 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1743 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1744 | |
---|
1745 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1746 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1747 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1748 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1749 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1750 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1751 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1752 | |
---|
1753 | _ASUNAME |
---|
1754 | |
---|
1755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1756 | for as_dir in $PATH |
---|
1757 | do |
---|
1758 | IFS=$as_save_IFS |
---|
1759 | test -z "$as_dir" && as_dir=. |
---|
1760 | echo "PATH: $as_dir" |
---|
1761 | done |
---|
1762 | IFS=$as_save_IFS |
---|
1763 | |
---|
1764 | } >&5 |
---|
1765 | |
---|
1766 | cat >&5 <<_ACEOF |
---|
1767 | |
---|
1768 | |
---|
1769 | ## ----------- ## |
---|
1770 | ## Core tests. ## |
---|
1771 | ## ----------- ## |
---|
1772 | |
---|
1773 | _ACEOF |
---|
1774 | |
---|
1775 | |
---|
1776 | # Keep a trace of the command line. |
---|
1777 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1778 | # Strip out --silent because we don't want to record it for future runs. |
---|
1779 | # Also quote any args containing shell meta-characters. |
---|
1780 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1781 | ac_configure_args= |
---|
1782 | ac_configure_args0= |
---|
1783 | ac_configure_args1= |
---|
1784 | ac_must_keep_next=false |
---|
1785 | for ac_pass in 1 2 |
---|
1786 | do |
---|
1787 | for ac_arg |
---|
1788 | do |
---|
1789 | case $ac_arg in |
---|
1790 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1791 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1792 | | -silent | --silent | --silen | --sile | --sil) |
---|
1793 | continue ;; |
---|
1794 | *\'*) |
---|
1795 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1796 | esac |
---|
1797 | case $ac_pass in |
---|
1798 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1799 | 2) |
---|
1800 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1801 | if test $ac_must_keep_next = true; then |
---|
1802 | ac_must_keep_next=false # Got value, back to normal. |
---|
1803 | else |
---|
1804 | case $ac_arg in |
---|
1805 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1806 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1807 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1808 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1809 | case "$ac_configure_args0 " in |
---|
1810 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1811 | esac |
---|
1812 | ;; |
---|
1813 | -* ) ac_must_keep_next=true ;; |
---|
1814 | esac |
---|
1815 | fi |
---|
1816 | ac_configure_args="$ac_configure_args '$ac_arg'" |
---|
1817 | ;; |
---|
1818 | esac |
---|
1819 | done |
---|
1820 | done |
---|
1821 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1822 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1823 | |
---|
1824 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1825 | # config.log. We remove comments because anyway the quotes in there |
---|
1826 | # would cause problems or look ugly. |
---|
1827 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1828 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1829 | trap 'exit_status=$? |
---|
1830 | # Save into config.log some information that might help in debugging. |
---|
1831 | { |
---|
1832 | echo |
---|
1833 | |
---|
1834 | cat <<\_ASBOX |
---|
1835 | ## ---------------- ## |
---|
1836 | ## Cache variables. ## |
---|
1837 | ## ---------------- ## |
---|
1838 | _ASBOX |
---|
1839 | echo |
---|
1840 | # The following way of writing the cache mishandles newlines in values, |
---|
1841 | ( |
---|
1842 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1843 | eval ac_val=\$$ac_var |
---|
1844 | case $ac_val in #( |
---|
1845 | *${as_nl}*) |
---|
1846 | case $ac_var in #( |
---|
1847 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
1848 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
1849 | esac |
---|
1850 | case $ac_var in #( |
---|
1851 | _ | IFS | as_nl) ;; #( |
---|
1852 | *) $as_unset $ac_var ;; |
---|
1853 | esac ;; |
---|
1854 | esac |
---|
1855 | done |
---|
1856 | (set) 2>&1 | |
---|
1857 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1858 | *${as_nl}ac_space=\ *) |
---|
1859 | sed -n \ |
---|
1860 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1861 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1862 | ;; #( |
---|
1863 | *) |
---|
1864 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1865 | ;; |
---|
1866 | esac | |
---|
1867 | sort |
---|
1868 | ) |
---|
1869 | echo |
---|
1870 | |
---|
1871 | cat <<\_ASBOX |
---|
1872 | ## ----------------- ## |
---|
1873 | ## Output variables. ## |
---|
1874 | ## ----------------- ## |
---|
1875 | _ASBOX |
---|
1876 | echo |
---|
1877 | for ac_var in $ac_subst_vars |
---|
1878 | do |
---|
1879 | eval ac_val=\$$ac_var |
---|
1880 | case $ac_val in |
---|
1881 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1882 | esac |
---|
1883 | echo "$ac_var='\''$ac_val'\''" |
---|
1884 | done | sort |
---|
1885 | echo |
---|
1886 | |
---|
1887 | if test -n "$ac_subst_files"; then |
---|
1888 | cat <<\_ASBOX |
---|
1889 | ## ------------------- ## |
---|
1890 | ## File substitutions. ## |
---|
1891 | ## ------------------- ## |
---|
1892 | _ASBOX |
---|
1893 | echo |
---|
1894 | for ac_var in $ac_subst_files |
---|
1895 | do |
---|
1896 | eval ac_val=\$$ac_var |
---|
1897 | case $ac_val in |
---|
1898 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1899 | esac |
---|
1900 | echo "$ac_var='\''$ac_val'\''" |
---|
1901 | done | sort |
---|
1902 | echo |
---|
1903 | fi |
---|
1904 | |
---|
1905 | if test -s confdefs.h; then |
---|
1906 | cat <<\_ASBOX |
---|
1907 | ## ----------- ## |
---|
1908 | ## confdefs.h. ## |
---|
1909 | ## ----------- ## |
---|
1910 | _ASBOX |
---|
1911 | echo |
---|
1912 | cat confdefs.h |
---|
1913 | echo |
---|
1914 | fi |
---|
1915 | test "$ac_signal" != 0 && |
---|
1916 | echo "$as_me: caught signal $ac_signal" |
---|
1917 | echo "$as_me: exit $exit_status" |
---|
1918 | } >&5 |
---|
1919 | rm -f core *.core core.conftest.* && |
---|
1920 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
1921 | exit $exit_status |
---|
1922 | ' 0 |
---|
1923 | for ac_signal in 1 2 13 15; do |
---|
1924 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1925 | done |
---|
1926 | ac_signal=0 |
---|
1927 | |
---|
1928 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1929 | rm -f -r conftest* confdefs.h |
---|
1930 | |
---|
1931 | # Predefined preprocessor variables. |
---|
1932 | |
---|
1933 | cat >>confdefs.h <<_ACEOF |
---|
1934 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1935 | _ACEOF |
---|
1936 | |
---|
1937 | |
---|
1938 | cat >>confdefs.h <<_ACEOF |
---|
1939 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1940 | _ACEOF |
---|
1941 | |
---|
1942 | |
---|
1943 | cat >>confdefs.h <<_ACEOF |
---|
1944 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1945 | _ACEOF |
---|
1946 | |
---|
1947 | |
---|
1948 | cat >>confdefs.h <<_ACEOF |
---|
1949 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1950 | _ACEOF |
---|
1951 | |
---|
1952 | |
---|
1953 | cat >>confdefs.h <<_ACEOF |
---|
1954 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1955 | _ACEOF |
---|
1956 | |
---|
1957 | |
---|
1958 | # Let the site file select an alternate cache file if it wants to. |
---|
1959 | # Prefer explicitly selected file to automatically selected ones. |
---|
1960 | if test -n "$CONFIG_SITE"; then |
---|
1961 | set x "$CONFIG_SITE" |
---|
1962 | elif test "x$prefix" != xNONE; then |
---|
1963 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
---|
1964 | else |
---|
1965 | set x "$ac_default_prefix/share/config.site" \ |
---|
1966 | "$ac_default_prefix/etc/config.site" |
---|
1967 | fi |
---|
1968 | shift |
---|
1969 | for ac_site_file |
---|
1970 | do |
---|
1971 | if test -r "$ac_site_file"; then |
---|
1972 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1973 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1974 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1975 | . "$ac_site_file" |
---|
1976 | fi |
---|
1977 | done |
---|
1978 | |
---|
1979 | if test -r "$cache_file"; then |
---|
1980 | # Some versions of bash will fail to source /dev/null (special |
---|
1981 | # files actually), so we avoid doing that. |
---|
1982 | if test -f "$cache_file"; then |
---|
1983 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1984 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1985 | case $cache_file in |
---|
1986 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
1987 | *) . "./$cache_file";; |
---|
1988 | esac |
---|
1989 | fi |
---|
1990 | else |
---|
1991 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1992 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1993 | >$cache_file |
---|
1994 | fi |
---|
1995 | |
---|
1996 | # Check that the precious variables saved in the cache have kept the same |
---|
1997 | # value. |
---|
1998 | ac_cache_corrupted=false |
---|
1999 | for ac_var in $ac_precious_vars; do |
---|
2000 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2001 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2002 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2003 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2004 | case $ac_old_set,$ac_new_set in |
---|
2005 | set,) |
---|
2006 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2007 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2008 | ac_cache_corrupted=: ;; |
---|
2009 | ,set) |
---|
2010 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2011 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2012 | ac_cache_corrupted=: ;; |
---|
2013 | ,);; |
---|
2014 | *) |
---|
2015 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2016 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2017 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2018 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
2019 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
2020 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
2021 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
2022 | ac_cache_corrupted=: |
---|
2023 | fi;; |
---|
2024 | esac |
---|
2025 | # Pass precious variables to config.status. |
---|
2026 | if test "$ac_new_set" = set; then |
---|
2027 | case $ac_new_val in |
---|
2028 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2029 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2030 | esac |
---|
2031 | case " $ac_configure_args " in |
---|
2032 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2033 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
2034 | esac |
---|
2035 | fi |
---|
2036 | done |
---|
2037 | if $ac_cache_corrupted; then |
---|
2038 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
2039 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2040 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
2041 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
2042 | { (exit 1); exit 1; }; } |
---|
2043 | fi |
---|
2044 | |
---|
2045 | |
---|
2046 | |
---|
2047 | |
---|
2048 | |
---|
2049 | |
---|
2050 | |
---|
2051 | |
---|
2052 | |
---|
2053 | |
---|
2054 | |
---|
2055 | |
---|
2056 | |
---|
2057 | |
---|
2058 | |
---|
2059 | |
---|
2060 | |
---|
2061 | |
---|
2062 | |
---|
2063 | |
---|
2064 | |
---|
2065 | |
---|
2066 | |
---|
2067 | |
---|
2068 | |
---|
2069 | ac_ext=c |
---|
2070 | ac_cpp='$CPP $CPPFLAGS' |
---|
2071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2074 | |
---|
2075 | |
---|
2076 | |
---|
2077 | ac_aux_dir= |
---|
2078 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
---|
2079 | if test -f "$ac_dir/install-sh"; then |
---|
2080 | ac_aux_dir=$ac_dir |
---|
2081 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2082 | break |
---|
2083 | elif test -f "$ac_dir/install.sh"; then |
---|
2084 | ac_aux_dir=$ac_dir |
---|
2085 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2086 | break |
---|
2087 | elif test -f "$ac_dir/shtool"; then |
---|
2088 | ac_aux_dir=$ac_dir |
---|
2089 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2090 | break |
---|
2091 | fi |
---|
2092 | done |
---|
2093 | if test -z "$ac_aux_dir"; then |
---|
2094 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
---|
2095 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
---|
2096 | { (exit 1); exit 1; }; } |
---|
2097 | fi |
---|
2098 | |
---|
2099 | # These three variables are undocumented and unsupported, |
---|
2100 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2101 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2102 | # whose full name contains unusual characters. |
---|
2103 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2104 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2105 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2106 | |
---|
2107 | |
---|
2108 | # Make sure we can run config.sub. |
---|
2109 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
2110 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
---|
2111 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
---|
2112 | { (exit 1); exit 1; }; } |
---|
2113 | |
---|
2114 | { echo "$as_me:$LINENO: checking build system type" >&5 |
---|
2115 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
---|
2116 | if test "${ac_cv_build+set}" = set; then |
---|
2117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2118 | else |
---|
2119 | ac_build_alias=$build_alias |
---|
2120 | test "x$ac_build_alias" = x && |
---|
2121 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
2122 | test "x$ac_build_alias" = x && |
---|
2123 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
2124 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
2125 | { (exit 1); exit 1; }; } |
---|
2126 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
2127 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
---|
2128 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
---|
2129 | { (exit 1); exit 1; }; } |
---|
2130 | |
---|
2131 | fi |
---|
2132 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
2133 | echo "${ECHO_T}$ac_cv_build" >&6; } |
---|
2134 | case $ac_cv_build in |
---|
2135 | *-*-*) ;; |
---|
2136 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
---|
2137 | echo "$as_me: error: invalid value of canonical build" >&2;} |
---|
2138 | { (exit 1); exit 1; }; };; |
---|
2139 | esac |
---|
2140 | build=$ac_cv_build |
---|
2141 | ac_save_IFS=$IFS; IFS='-' |
---|
2142 | set x $ac_cv_build |
---|
2143 | shift |
---|
2144 | build_cpu=$1 |
---|
2145 | build_vendor=$2 |
---|
2146 | shift; shift |
---|
2147 | # Remember, the first character of IFS is used to create $*, |
---|
2148 | # except with old shells: |
---|
2149 | build_os=$* |
---|
2150 | IFS=$ac_save_IFS |
---|
2151 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
2152 | |
---|
2153 | |
---|
2154 | { echo "$as_me:$LINENO: checking host system type" >&5 |
---|
2155 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
---|
2156 | if test "${ac_cv_host+set}" = set; then |
---|
2157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2158 | else |
---|
2159 | if test "x$host_alias" = x; then |
---|
2160 | ac_cv_host=$ac_cv_build |
---|
2161 | else |
---|
2162 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
2163 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
---|
2164 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
---|
2165 | { (exit 1); exit 1; }; } |
---|
2166 | fi |
---|
2167 | |
---|
2168 | fi |
---|
2169 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
2170 | echo "${ECHO_T}$ac_cv_host" >&6; } |
---|
2171 | case $ac_cv_host in |
---|
2172 | *-*-*) ;; |
---|
2173 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
---|
2174 | echo "$as_me: error: invalid value of canonical host" >&2;} |
---|
2175 | { (exit 1); exit 1; }; };; |
---|
2176 | esac |
---|
2177 | host=$ac_cv_host |
---|
2178 | ac_save_IFS=$IFS; IFS='-' |
---|
2179 | set x $ac_cv_host |
---|
2180 | shift |
---|
2181 | host_cpu=$1 |
---|
2182 | host_vendor=$2 |
---|
2183 | shift; shift |
---|
2184 | # Remember, the first character of IFS is used to create $*, |
---|
2185 | # except with old shells: |
---|
2186 | host_os=$* |
---|
2187 | IFS=$ac_save_IFS |
---|
2188 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
2189 | |
---|
2190 | |
---|
2191 | { echo "$as_me:$LINENO: checking target system type" >&5 |
---|
2192 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
---|
2193 | if test "${ac_cv_target+set}" = set; then |
---|
2194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2195 | else |
---|
2196 | if test "x$target_alias" = x; then |
---|
2197 | ac_cv_target=$ac_cv_host |
---|
2198 | else |
---|
2199 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
---|
2200 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
---|
2201 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
---|
2202 | { (exit 1); exit 1; }; } |
---|
2203 | fi |
---|
2204 | |
---|
2205 | fi |
---|
2206 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
2207 | echo "${ECHO_T}$ac_cv_target" >&6; } |
---|
2208 | case $ac_cv_target in |
---|
2209 | *-*-*) ;; |
---|
2210 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
---|
2211 | echo "$as_me: error: invalid value of canonical target" >&2;} |
---|
2212 | { (exit 1); exit 1; }; };; |
---|
2213 | esac |
---|
2214 | target=$ac_cv_target |
---|
2215 | ac_save_IFS=$IFS; IFS='-' |
---|
2216 | set x $ac_cv_target |
---|
2217 | shift |
---|
2218 | target_cpu=$1 |
---|
2219 | target_vendor=$2 |
---|
2220 | shift; shift |
---|
2221 | # Remember, the first character of IFS is used to create $*, |
---|
2222 | # except with old shells: |
---|
2223 | target_os=$* |
---|
2224 | IFS=$ac_save_IFS |
---|
2225 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
---|
2226 | |
---|
2227 | |
---|
2228 | # The aliases save the names the user supplied, while $host etc. |
---|
2229 | # will get canonicalized. |
---|
2230 | test -n "$target_alias" && |
---|
2231 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
2232 | NONENONEs,x,x, && |
---|
2233 | program_prefix=${target_alias}- |
---|
2234 | |
---|
2235 | # New syntax; PACKAGE gets defined as 'OGRE' not 'ogre' |
---|
2236 | #AM_INIT_AUTOMAKE([OGRE], 1.4.5) |
---|
2237 | am__api_version="1.9" |
---|
2238 | # Find a good install program. We prefer a C program (faster), |
---|
2239 | # so one script is as good as another. But avoid the broken or |
---|
2240 | # incompatible versions: |
---|
2241 | # SysV /etc/install, /usr/sbin/install |
---|
2242 | # SunOS /usr/etc/install |
---|
2243 | # IRIX /sbin/install |
---|
2244 | # AIX /bin/install |
---|
2245 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2246 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2247 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2248 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2249 | # OS/2's system install, which has a completely different semantic |
---|
2250 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2251 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
2252 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
---|
2253 | if test -z "$INSTALL"; then |
---|
2254 | if test "${ac_cv_path_install+set}" = set; then |
---|
2255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2256 | else |
---|
2257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2258 | for as_dir in $PATH |
---|
2259 | do |
---|
2260 | IFS=$as_save_IFS |
---|
2261 | test -z "$as_dir" && as_dir=. |
---|
2262 | # Account for people who put trailing slashes in PATH elements. |
---|
2263 | case $as_dir/ in |
---|
2264 | ./ | .// | /cC/* | \ |
---|
2265 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2266 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
2267 | /usr/ucb/* ) ;; |
---|
2268 | *) |
---|
2269 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2270 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2271 | # by default. |
---|
2272 | for ac_prog in ginstall scoinst install; do |
---|
2273 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2274 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2275 | if test $ac_prog = install && |
---|
2276 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2277 | # AIX install. It has an incompatible calling convention. |
---|
2278 | : |
---|
2279 | elif test $ac_prog = install && |
---|
2280 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2281 | # program-specific install script used by HP pwplus--don't use. |
---|
2282 | : |
---|
2283 | else |
---|
2284 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2285 | break 3 |
---|
2286 | fi |
---|
2287 | fi |
---|
2288 | done |
---|
2289 | done |
---|
2290 | ;; |
---|
2291 | esac |
---|
2292 | done |
---|
2293 | IFS=$as_save_IFS |
---|
2294 | |
---|
2295 | |
---|
2296 | fi |
---|
2297 | if test "${ac_cv_path_install+set}" = set; then |
---|
2298 | INSTALL=$ac_cv_path_install |
---|
2299 | else |
---|
2300 | # As a last resort, use the slow shell script. Don't cache a |
---|
2301 | # value for INSTALL within a source directory, because that will |
---|
2302 | # break other packages using the cache if that directory is |
---|
2303 | # removed, or if the value is a relative name. |
---|
2304 | INSTALL=$ac_install_sh |
---|
2305 | fi |
---|
2306 | fi |
---|
2307 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
2308 | echo "${ECHO_T}$INSTALL" >&6; } |
---|
2309 | |
---|
2310 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2311 | # It thinks the first close brace ends the variable substitution. |
---|
2312 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2313 | |
---|
2314 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2315 | |
---|
2316 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2317 | |
---|
2318 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
2319 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
---|
2320 | # Just in case |
---|
2321 | sleep 1 |
---|
2322 | echo timestamp > conftest.file |
---|
2323 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
2324 | # arguments. Must try -L first in case configure is actually a |
---|
2325 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2326 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2327 | # directory). |
---|
2328 | if ( |
---|
2329 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
2330 | if test "$*" = "X"; then |
---|
2331 | # -L didn't work. |
---|
2332 | set X `ls -t $srcdir/configure conftest.file` |
---|
2333 | fi |
---|
2334 | rm -f conftest.file |
---|
2335 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2336 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2337 | |
---|
2338 | # If neither matched, then we have a broken ls. This can happen |
---|
2339 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2340 | # broken ls alias from the environment. This has actually |
---|
2341 | # happened. Such a system could not be considered "sane". |
---|
2342 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
2343 | alias in your environment" >&5 |
---|
2344 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
2345 | alias in your environment" >&2;} |
---|
2346 | { (exit 1); exit 1; }; } |
---|
2347 | fi |
---|
2348 | |
---|
2349 | test "$2" = conftest.file |
---|
2350 | ) |
---|
2351 | then |
---|
2352 | # Ok. |
---|
2353 | : |
---|
2354 | else |
---|
2355 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
2356 | Check your system clock" >&5 |
---|
2357 | echo "$as_me: error: newly created file is older than distributed files! |
---|
2358 | Check your system clock" >&2;} |
---|
2359 | { (exit 1); exit 1; }; } |
---|
2360 | fi |
---|
2361 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
2362 | echo "${ECHO_T}yes" >&6; } |
---|
2363 | test "$program_prefix" != NONE && |
---|
2364 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2365 | # Use a double $ so make ignores it. |
---|
2366 | test "$program_suffix" != NONE && |
---|
2367 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2368 | # Double any \ or $. echo might interpret backslashes. |
---|
2369 | # By default was `s,x,x', remove it if useless. |
---|
2370 | cat <<\_ACEOF >conftest.sed |
---|
2371 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
2372 | _ACEOF |
---|
2373 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
2374 | rm -f conftest.sed |
---|
2375 | |
---|
2376 | # expand $ac_aux_dir to an absolute path |
---|
2377 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
2378 | |
---|
2379 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
2380 | # Use eval to expand $SHELL |
---|
2381 | if eval "$MISSING --run true"; then |
---|
2382 | am_missing_run="$MISSING --run " |
---|
2383 | else |
---|
2384 | am_missing_run= |
---|
2385 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
2386 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
2387 | fi |
---|
2388 | |
---|
2389 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
2390 | # We used to keeping the `.' as first argument, in order to |
---|
2391 | # allow $(mkdir_p) to be used without argument. As in |
---|
2392 | # $(mkdir_p) $(somedir) |
---|
2393 | # where $(somedir) is conditionally defined. However this is wrong |
---|
2394 | # for two reasons: |
---|
2395 | # 1. if the package is installed by a user who cannot write `.' |
---|
2396 | # make install will fail, |
---|
2397 | # 2. the above comment should most certainly read |
---|
2398 | # $(mkdir_p) $(DESTDIR)$(somedir) |
---|
2399 | # so it does not work when $(somedir) is undefined and |
---|
2400 | # $(DESTDIR) is not. |
---|
2401 | # To support the latter case, we have to write |
---|
2402 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
---|
2403 | # so the `.' trick is pointless. |
---|
2404 | mkdir_p='mkdir -p --' |
---|
2405 | else |
---|
2406 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
2407 | # recognize any option. It will interpret all options as |
---|
2408 | # directories to create, and then abort because `.' already |
---|
2409 | # exists. |
---|
2410 | for d in ./-p ./--version; |
---|
2411 | do |
---|
2412 | test -d $d && rmdir $d |
---|
2413 | done |
---|
2414 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
2415 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
2416 | mkdir_p='$(mkinstalldirs)' |
---|
2417 | else |
---|
2418 | mkdir_p='$(install_sh) -d' |
---|
2419 | fi |
---|
2420 | fi |
---|
2421 | |
---|
2422 | for ac_prog in gawk mawk nawk awk |
---|
2423 | do |
---|
2424 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2425 | set dummy $ac_prog; ac_word=$2 |
---|
2426 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2428 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
2429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2430 | else |
---|
2431 | if test -n "$AWK"; then |
---|
2432 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2433 | else |
---|
2434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2435 | for as_dir in $PATH |
---|
2436 | do |
---|
2437 | IFS=$as_save_IFS |
---|
2438 | test -z "$as_dir" && as_dir=. |
---|
2439 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2441 | ac_cv_prog_AWK="$ac_prog" |
---|
2442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2443 | break 2 |
---|
2444 | fi |
---|
2445 | done |
---|
2446 | done |
---|
2447 | IFS=$as_save_IFS |
---|
2448 | |
---|
2449 | fi |
---|
2450 | fi |
---|
2451 | AWK=$ac_cv_prog_AWK |
---|
2452 | if test -n "$AWK"; then |
---|
2453 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
2454 | echo "${ECHO_T}$AWK" >&6; } |
---|
2455 | else |
---|
2456 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2457 | echo "${ECHO_T}no" >&6; } |
---|
2458 | fi |
---|
2459 | |
---|
2460 | |
---|
2461 | test -n "$AWK" && break |
---|
2462 | done |
---|
2463 | |
---|
2464 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2465 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
---|
2466 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2467 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
2468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2469 | else |
---|
2470 | cat >conftest.make <<\_ACEOF |
---|
2471 | SHELL = /bin/sh |
---|
2472 | all: |
---|
2473 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2474 | _ACEOF |
---|
2475 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
2476 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2477 | *@@@%%%=?*=@@@%%%*) |
---|
2478 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2479 | *) |
---|
2480 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2481 | esac |
---|
2482 | rm -f conftest.make |
---|
2483 | fi |
---|
2484 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2485 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
2486 | echo "${ECHO_T}yes" >&6; } |
---|
2487 | SET_MAKE= |
---|
2488 | else |
---|
2489 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2490 | echo "${ECHO_T}no" >&6; } |
---|
2491 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2492 | fi |
---|
2493 | |
---|
2494 | rm -rf .tst 2>/dev/null |
---|
2495 | mkdir .tst 2>/dev/null |
---|
2496 | if test -d .tst; then |
---|
2497 | am__leading_dot=. |
---|
2498 | else |
---|
2499 | am__leading_dot=_ |
---|
2500 | fi |
---|
2501 | rmdir .tst 2>/dev/null |
---|
2502 | |
---|
2503 | # test to see if srcdir already configured |
---|
2504 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
2505 | test -f $srcdir/config.status; then |
---|
2506 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
2507 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
2508 | { (exit 1); exit 1; }; } |
---|
2509 | fi |
---|
2510 | |
---|
2511 | # test whether we have cygpath |
---|
2512 | if test -z "$CYGPATH_W"; then |
---|
2513 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2514 | CYGPATH_W='cygpath -w' |
---|
2515 | else |
---|
2516 | CYGPATH_W=echo |
---|
2517 | fi |
---|
2518 | fi |
---|
2519 | |
---|
2520 | |
---|
2521 | # Define the identity of the package. |
---|
2522 | PACKAGE=OGRE |
---|
2523 | VERSION=1.4.5 |
---|
2524 | |
---|
2525 | |
---|
2526 | cat >>confdefs.h <<_ACEOF |
---|
2527 | #define PACKAGE "$PACKAGE" |
---|
2528 | _ACEOF |
---|
2529 | |
---|
2530 | |
---|
2531 | cat >>confdefs.h <<_ACEOF |
---|
2532 | #define VERSION "$VERSION" |
---|
2533 | _ACEOF |
---|
2534 | |
---|
2535 | # Some tools Automake needs. |
---|
2536 | |
---|
2537 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2538 | |
---|
2539 | |
---|
2540 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2541 | |
---|
2542 | |
---|
2543 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
2544 | |
---|
2545 | |
---|
2546 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
2547 | |
---|
2548 | |
---|
2549 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
2550 | |
---|
2551 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
2552 | |
---|
2553 | # Installed binaries are usually stripped using `strip' when the user |
---|
2554 | # run `make install-strip'. However `strip' might not be the right |
---|
2555 | # tool to use in cross-compilation environments, therefore Automake |
---|
2556 | # will honor the `STRIP' environment variable to overrule this program. |
---|
2557 | if test "$cross_compiling" != no; then |
---|
2558 | if test -n "$ac_tool_prefix"; then |
---|
2559 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2560 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2561 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2563 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
2564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2565 | else |
---|
2566 | if test -n "$STRIP"; then |
---|
2567 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2568 | else |
---|
2569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2570 | for as_dir in $PATH |
---|
2571 | do |
---|
2572 | IFS=$as_save_IFS |
---|
2573 | test -z "$as_dir" && as_dir=. |
---|
2574 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2576 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2578 | break 2 |
---|
2579 | fi |
---|
2580 | done |
---|
2581 | done |
---|
2582 | IFS=$as_save_IFS |
---|
2583 | |
---|
2584 | fi |
---|
2585 | fi |
---|
2586 | STRIP=$ac_cv_prog_STRIP |
---|
2587 | if test -n "$STRIP"; then |
---|
2588 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
2589 | echo "${ECHO_T}$STRIP" >&6; } |
---|
2590 | else |
---|
2591 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2592 | echo "${ECHO_T}no" >&6; } |
---|
2593 | fi |
---|
2594 | |
---|
2595 | |
---|
2596 | fi |
---|
2597 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2598 | ac_ct_STRIP=$STRIP |
---|
2599 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2600 | set dummy strip; ac_word=$2 |
---|
2601 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2603 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
2604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2605 | else |
---|
2606 | if test -n "$ac_ct_STRIP"; then |
---|
2607 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2608 | else |
---|
2609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2610 | for as_dir in $PATH |
---|
2611 | do |
---|
2612 | IFS=$as_save_IFS |
---|
2613 | test -z "$as_dir" && as_dir=. |
---|
2614 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2616 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2618 | break 2 |
---|
2619 | fi |
---|
2620 | done |
---|
2621 | done |
---|
2622 | IFS=$as_save_IFS |
---|
2623 | |
---|
2624 | fi |
---|
2625 | fi |
---|
2626 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2627 | if test -n "$ac_ct_STRIP"; then |
---|
2628 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
2629 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
---|
2630 | else |
---|
2631 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2632 | echo "${ECHO_T}no" >&6; } |
---|
2633 | fi |
---|
2634 | |
---|
2635 | if test "x$ac_ct_STRIP" = x; then |
---|
2636 | STRIP=":" |
---|
2637 | else |
---|
2638 | case $cross_compiling:$ac_tool_warned in |
---|
2639 | yes:) |
---|
2640 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2641 | whose name does not start with the host triplet. If you think this |
---|
2642 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
2643 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2644 | whose name does not start with the host triplet. If you think this |
---|
2645 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
2646 | ac_tool_warned=yes ;; |
---|
2647 | esac |
---|
2648 | STRIP=$ac_ct_STRIP |
---|
2649 | fi |
---|
2650 | else |
---|
2651 | STRIP="$ac_cv_prog_STRIP" |
---|
2652 | fi |
---|
2653 | |
---|
2654 | fi |
---|
2655 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
2656 | |
---|
2657 | # We need awk for the "check" target. The system "awk" is bad on |
---|
2658 | # some platforms. |
---|
2659 | # Always define AMTAR for backward compatibility. |
---|
2660 | |
---|
2661 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
2662 | |
---|
2663 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
2664 | |
---|
2665 | |
---|
2666 | |
---|
2667 | |
---|
2668 | |
---|
2669 | ac_config_headers="$ac_config_headers OgreMain/include/config.h" |
---|
2670 | |
---|
2671 | |
---|
2672 | ac_ext=c |
---|
2673 | ac_cpp='$CPP $CPPFLAGS' |
---|
2674 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2675 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2677 | if test -n "$ac_tool_prefix"; then |
---|
2678 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2679 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2680 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2682 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2684 | else |
---|
2685 | if test -n "$CC"; then |
---|
2686 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2687 | else |
---|
2688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2689 | for as_dir in $PATH |
---|
2690 | do |
---|
2691 | IFS=$as_save_IFS |
---|
2692 | test -z "$as_dir" && as_dir=. |
---|
2693 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2694 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2695 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2697 | break 2 |
---|
2698 | fi |
---|
2699 | done |
---|
2700 | done |
---|
2701 | IFS=$as_save_IFS |
---|
2702 | |
---|
2703 | fi |
---|
2704 | fi |
---|
2705 | CC=$ac_cv_prog_CC |
---|
2706 | if test -n "$CC"; then |
---|
2707 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2708 | echo "${ECHO_T}$CC" >&6; } |
---|
2709 | else |
---|
2710 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2711 | echo "${ECHO_T}no" >&6; } |
---|
2712 | fi |
---|
2713 | |
---|
2714 | |
---|
2715 | fi |
---|
2716 | if test -z "$ac_cv_prog_CC"; then |
---|
2717 | ac_ct_CC=$CC |
---|
2718 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2719 | set dummy gcc; ac_word=$2 |
---|
2720 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2721 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2722 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2724 | else |
---|
2725 | if test -n "$ac_ct_CC"; then |
---|
2726 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2727 | else |
---|
2728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2729 | for as_dir in $PATH |
---|
2730 | do |
---|
2731 | IFS=$as_save_IFS |
---|
2732 | test -z "$as_dir" && as_dir=. |
---|
2733 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2735 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2736 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2737 | break 2 |
---|
2738 | fi |
---|
2739 | done |
---|
2740 | done |
---|
2741 | IFS=$as_save_IFS |
---|
2742 | |
---|
2743 | fi |
---|
2744 | fi |
---|
2745 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2746 | if test -n "$ac_ct_CC"; then |
---|
2747 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2748 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
2749 | else |
---|
2750 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2751 | echo "${ECHO_T}no" >&6; } |
---|
2752 | fi |
---|
2753 | |
---|
2754 | if test "x$ac_ct_CC" = x; then |
---|
2755 | CC="" |
---|
2756 | else |
---|
2757 | case $cross_compiling:$ac_tool_warned in |
---|
2758 | yes:) |
---|
2759 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2760 | whose name does not start with the host triplet. If you think this |
---|
2761 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
2762 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2763 | whose name does not start with the host triplet. If you think this |
---|
2764 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
2765 | ac_tool_warned=yes ;; |
---|
2766 | esac |
---|
2767 | CC=$ac_ct_CC |
---|
2768 | fi |
---|
2769 | else |
---|
2770 | CC="$ac_cv_prog_CC" |
---|
2771 | fi |
---|
2772 | |
---|
2773 | if test -z "$CC"; then |
---|
2774 | if test -n "$ac_tool_prefix"; then |
---|
2775 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2776 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2777 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2779 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2781 | else |
---|
2782 | if test -n "$CC"; then |
---|
2783 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2784 | else |
---|
2785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2786 | for as_dir in $PATH |
---|
2787 | do |
---|
2788 | IFS=$as_save_IFS |
---|
2789 | test -z "$as_dir" && as_dir=. |
---|
2790 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2792 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2794 | break 2 |
---|
2795 | fi |
---|
2796 | done |
---|
2797 | done |
---|
2798 | IFS=$as_save_IFS |
---|
2799 | |
---|
2800 | fi |
---|
2801 | fi |
---|
2802 | CC=$ac_cv_prog_CC |
---|
2803 | if test -n "$CC"; then |
---|
2804 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2805 | echo "${ECHO_T}$CC" >&6; } |
---|
2806 | else |
---|
2807 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2808 | echo "${ECHO_T}no" >&6; } |
---|
2809 | fi |
---|
2810 | |
---|
2811 | |
---|
2812 | fi |
---|
2813 | fi |
---|
2814 | if test -z "$CC"; then |
---|
2815 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2816 | set dummy cc; ac_word=$2 |
---|
2817 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2819 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2821 | else |
---|
2822 | if test -n "$CC"; then |
---|
2823 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2824 | else |
---|
2825 | ac_prog_rejected=no |
---|
2826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2827 | for as_dir in $PATH |
---|
2828 | do |
---|
2829 | IFS=$as_save_IFS |
---|
2830 | test -z "$as_dir" && as_dir=. |
---|
2831 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2833 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2834 | ac_prog_rejected=yes |
---|
2835 | continue |
---|
2836 | fi |
---|
2837 | ac_cv_prog_CC="cc" |
---|
2838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2839 | break 2 |
---|
2840 | fi |
---|
2841 | done |
---|
2842 | done |
---|
2843 | IFS=$as_save_IFS |
---|
2844 | |
---|
2845 | if test $ac_prog_rejected = yes; then |
---|
2846 | # We found a bogon in the path, so make sure we never use it. |
---|
2847 | set dummy $ac_cv_prog_CC |
---|
2848 | shift |
---|
2849 | if test $# != 0; then |
---|
2850 | # We chose a different compiler from the bogus one. |
---|
2851 | # However, it has the same basename, so the bogon will be chosen |
---|
2852 | # first if we set CC to just the basename; use the full file name. |
---|
2853 | shift |
---|
2854 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2855 | fi |
---|
2856 | fi |
---|
2857 | fi |
---|
2858 | fi |
---|
2859 | CC=$ac_cv_prog_CC |
---|
2860 | if test -n "$CC"; then |
---|
2861 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2862 | echo "${ECHO_T}$CC" >&6; } |
---|
2863 | else |
---|
2864 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2865 | echo "${ECHO_T}no" >&6; } |
---|
2866 | fi |
---|
2867 | |
---|
2868 | |
---|
2869 | fi |
---|
2870 | if test -z "$CC"; then |
---|
2871 | if test -n "$ac_tool_prefix"; then |
---|
2872 | for ac_prog in cl.exe |
---|
2873 | do |
---|
2874 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2875 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2876 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2878 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2880 | else |
---|
2881 | if test -n "$CC"; then |
---|
2882 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2883 | else |
---|
2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2885 | for as_dir in $PATH |
---|
2886 | do |
---|
2887 | IFS=$as_save_IFS |
---|
2888 | test -z "$as_dir" && as_dir=. |
---|
2889 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2891 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2893 | break 2 |
---|
2894 | fi |
---|
2895 | done |
---|
2896 | done |
---|
2897 | IFS=$as_save_IFS |
---|
2898 | |
---|
2899 | fi |
---|
2900 | fi |
---|
2901 | CC=$ac_cv_prog_CC |
---|
2902 | if test -n "$CC"; then |
---|
2903 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2904 | echo "${ECHO_T}$CC" >&6; } |
---|
2905 | else |
---|
2906 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2907 | echo "${ECHO_T}no" >&6; } |
---|
2908 | fi |
---|
2909 | |
---|
2910 | |
---|
2911 | test -n "$CC" && break |
---|
2912 | done |
---|
2913 | fi |
---|
2914 | if test -z "$CC"; then |
---|
2915 | ac_ct_CC=$CC |
---|
2916 | for ac_prog in cl.exe |
---|
2917 | do |
---|
2918 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2919 | set dummy $ac_prog; ac_word=$2 |
---|
2920 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2922 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2924 | else |
---|
2925 | if test -n "$ac_ct_CC"; then |
---|
2926 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2927 | else |
---|
2928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2929 | for as_dir in $PATH |
---|
2930 | do |
---|
2931 | IFS=$as_save_IFS |
---|
2932 | test -z "$as_dir" && as_dir=. |
---|
2933 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2935 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2937 | break 2 |
---|
2938 | fi |
---|
2939 | done |
---|
2940 | done |
---|
2941 | IFS=$as_save_IFS |
---|
2942 | |
---|
2943 | fi |
---|
2944 | fi |
---|
2945 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2946 | if test -n "$ac_ct_CC"; then |
---|
2947 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2948 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
2949 | else |
---|
2950 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2951 | echo "${ECHO_T}no" >&6; } |
---|
2952 | fi |
---|
2953 | |
---|
2954 | |
---|
2955 | test -n "$ac_ct_CC" && break |
---|
2956 | done |
---|
2957 | |
---|
2958 | if test "x$ac_ct_CC" = x; then |
---|
2959 | CC="" |
---|
2960 | else |
---|
2961 | case $cross_compiling:$ac_tool_warned in |
---|
2962 | yes:) |
---|
2963 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2964 | whose name does not start with the host triplet. If you think this |
---|
2965 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
2966 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2967 | whose name does not start with the host triplet. If you think this |
---|
2968 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
2969 | ac_tool_warned=yes ;; |
---|
2970 | esac |
---|
2971 | CC=$ac_ct_CC |
---|
2972 | fi |
---|
2973 | fi |
---|
2974 | |
---|
2975 | fi |
---|
2976 | |
---|
2977 | |
---|
2978 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2979 | See \`config.log' for more details." >&5 |
---|
2980 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2981 | See \`config.log' for more details." >&2;} |
---|
2982 | { (exit 1); exit 1; }; } |
---|
2983 | |
---|
2984 | # Provide some information about the compiler. |
---|
2985 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
---|
2986 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2987 | { (ac_try="$ac_compiler --version >&5" |
---|
2988 | case "(($ac_try" in |
---|
2989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2990 | *) ac_try_echo=$ac_try;; |
---|
2991 | esac |
---|
2992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2993 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
2994 | ac_status=$? |
---|
2995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2996 | (exit $ac_status); } |
---|
2997 | { (ac_try="$ac_compiler -v >&5" |
---|
2998 | case "(($ac_try" in |
---|
2999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3000 | *) ac_try_echo=$ac_try;; |
---|
3001 | esac |
---|
3002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3003 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
3004 | ac_status=$? |
---|
3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3006 | (exit $ac_status); } |
---|
3007 | { (ac_try="$ac_compiler -V >&5" |
---|
3008 | case "(($ac_try" in |
---|
3009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3010 | *) ac_try_echo=$ac_try;; |
---|
3011 | esac |
---|
3012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3013 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
3014 | ac_status=$? |
---|
3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3016 | (exit $ac_status); } |
---|
3017 | |
---|
3018 | cat >conftest.$ac_ext <<_ACEOF |
---|
3019 | /* confdefs.h. */ |
---|
3020 | _ACEOF |
---|
3021 | cat confdefs.h >>conftest.$ac_ext |
---|
3022 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3023 | /* end confdefs.h. */ |
---|
3024 | |
---|
3025 | int |
---|
3026 | main () |
---|
3027 | { |
---|
3028 | |
---|
3029 | ; |
---|
3030 | return 0; |
---|
3031 | } |
---|
3032 | _ACEOF |
---|
3033 | ac_clean_files_save=$ac_clean_files |
---|
3034 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
3035 | # Try to create an executable without -o first, disregard a.out. |
---|
3036 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3037 | # of exeext. |
---|
3038 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
3039 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
---|
3040 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3041 | # |
---|
3042 | # List of possible output files, starting from the most likely. |
---|
3043 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
---|
3044 | # only as a last resort. b.out is created by i960 compilers. |
---|
3045 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
---|
3046 | # |
---|
3047 | # The IRIX 6 linker writes into existing files which may not be |
---|
3048 | # executable, retaining their permissions. Remove them first so a |
---|
3049 | # subsequent execution test works. |
---|
3050 | ac_rmfiles= |
---|
3051 | for ac_file in $ac_files |
---|
3052 | do |
---|
3053 | case $ac_file in |
---|
3054 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
3055 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3056 | esac |
---|
3057 | done |
---|
3058 | rm -f $ac_rmfiles |
---|
3059 | |
---|
3060 | if { (ac_try="$ac_link_default" |
---|
3061 | case "(($ac_try" in |
---|
3062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3063 | *) ac_try_echo=$ac_try;; |
---|
3064 | esac |
---|
3065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3066 | (eval "$ac_link_default") 2>&5 |
---|
3067 | ac_status=$? |
---|
3068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3069 | (exit $ac_status); }; then |
---|
3070 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3071 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3072 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3073 | # so that the user can short-circuit this test for compilers unknown to |
---|
3074 | # Autoconf. |
---|
3075 | for ac_file in $ac_files '' |
---|
3076 | do |
---|
3077 | test -f "$ac_file" || continue |
---|
3078 | case $ac_file in |
---|
3079 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
---|
3080 | ;; |
---|
3081 | [ab].out ) |
---|
3082 | # We found the default executable, but exeext='' is most |
---|
3083 | # certainly right. |
---|
3084 | break;; |
---|
3085 | *.* ) |
---|
3086 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3087 | then :; else |
---|
3088 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3089 | fi |
---|
3090 | # We set ac_cv_exeext here because the later test for it is not |
---|
3091 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3092 | # argument, so we may need to know it at that point already. |
---|
3093 | # Even if this section looks crufty: it has the advantage of |
---|
3094 | # actually working. |
---|
3095 | break;; |
---|
3096 | * ) |
---|
3097 | break;; |
---|
3098 | esac |
---|
3099 | done |
---|
3100 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3101 | |
---|
3102 | else |
---|
3103 | ac_file='' |
---|
3104 | fi |
---|
3105 | |
---|
3106 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
3107 | echo "${ECHO_T}$ac_file" >&6; } |
---|
3108 | if test -z "$ac_file"; then |
---|
3109 | echo "$as_me: failed program was:" >&5 |
---|
3110 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3111 | |
---|
3112 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
3113 | See \`config.log' for more details." >&5 |
---|
3114 | echo "$as_me: error: C compiler cannot create executables |
---|
3115 | See \`config.log' for more details." >&2;} |
---|
3116 | { (exit 77); exit 77; }; } |
---|
3117 | fi |
---|
3118 | |
---|
3119 | ac_exeext=$ac_cv_exeext |
---|
3120 | |
---|
3121 | # Check that the compiler produces executables we can run. If not, either |
---|
3122 | # the compiler is broken, or we cross compile. |
---|
3123 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
3124 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
---|
3125 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
3126 | # If not cross compiling, check that we can run a simple program. |
---|
3127 | if test "$cross_compiling" != yes; then |
---|
3128 | if { ac_try='./$ac_file' |
---|
3129 | { (case "(($ac_try" in |
---|
3130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3131 | *) ac_try_echo=$ac_try;; |
---|
3132 | esac |
---|
3133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3134 | (eval "$ac_try") 2>&5 |
---|
3135 | ac_status=$? |
---|
3136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3137 | (exit $ac_status); }; }; then |
---|
3138 | cross_compiling=no |
---|
3139 | else |
---|
3140 | if test "$cross_compiling" = maybe; then |
---|
3141 | cross_compiling=yes |
---|
3142 | else |
---|
3143 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
3144 | If you meant to cross compile, use \`--host'. |
---|
3145 | See \`config.log' for more details." >&5 |
---|
3146 | echo "$as_me: error: cannot run C compiled programs. |
---|
3147 | If you meant to cross compile, use \`--host'. |
---|
3148 | See \`config.log' for more details." >&2;} |
---|
3149 | { (exit 1); exit 1; }; } |
---|
3150 | fi |
---|
3151 | fi |
---|
3152 | fi |
---|
3153 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
3154 | echo "${ECHO_T}yes" >&6; } |
---|
3155 | |
---|
3156 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
3157 | ac_clean_files=$ac_clean_files_save |
---|
3158 | # Check that the compiler produces executables we can run. If not, either |
---|
3159 | # the compiler is broken, or we cross compile. |
---|
3160 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
3161 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
---|
3162 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
3163 | echo "${ECHO_T}$cross_compiling" >&6; } |
---|
3164 | |
---|
3165 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
3166 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
---|
3167 | if { (ac_try="$ac_link" |
---|
3168 | case "(($ac_try" in |
---|
3169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3170 | *) ac_try_echo=$ac_try;; |
---|
3171 | esac |
---|
3172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3173 | (eval "$ac_link") 2>&5 |
---|
3174 | ac_status=$? |
---|
3175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3176 | (exit $ac_status); }; then |
---|
3177 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3178 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3179 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3180 | # `rm'. |
---|
3181 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3182 | test -f "$ac_file" || continue |
---|
3183 | case $ac_file in |
---|
3184 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
3185 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3186 | break;; |
---|
3187 | * ) break;; |
---|
3188 | esac |
---|
3189 | done |
---|
3190 | else |
---|
3191 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
3192 | See \`config.log' for more details." >&5 |
---|
3193 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
3194 | See \`config.log' for more details." >&2;} |
---|
3195 | { (exit 1); exit 1; }; } |
---|
3196 | fi |
---|
3197 | |
---|
3198 | rm -f conftest$ac_cv_exeext |
---|
3199 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
3200 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
---|
3201 | |
---|
3202 | rm -f conftest.$ac_ext |
---|
3203 | EXEEXT=$ac_cv_exeext |
---|
3204 | ac_exeext=$EXEEXT |
---|
3205 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
3206 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
---|
3207 | if test "${ac_cv_objext+set}" = set; then |
---|
3208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3209 | else |
---|
3210 | cat >conftest.$ac_ext <<_ACEOF |
---|
3211 | /* confdefs.h. */ |
---|
3212 | _ACEOF |
---|
3213 | cat confdefs.h >>conftest.$ac_ext |
---|
3214 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3215 | /* end confdefs.h. */ |
---|
3216 | |
---|
3217 | int |
---|
3218 | main () |
---|
3219 | { |
---|
3220 | |
---|
3221 | ; |
---|
3222 | return 0; |
---|
3223 | } |
---|
3224 | _ACEOF |
---|
3225 | rm -f conftest.o conftest.obj |
---|
3226 | if { (ac_try="$ac_compile" |
---|
3227 | case "(($ac_try" in |
---|
3228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3229 | *) ac_try_echo=$ac_try;; |
---|
3230 | esac |
---|
3231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3232 | (eval "$ac_compile") 2>&5 |
---|
3233 | ac_status=$? |
---|
3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3235 | (exit $ac_status); }; then |
---|
3236 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3237 | test -f "$ac_file" || continue; |
---|
3238 | case $ac_file in |
---|
3239 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
---|
3240 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3241 | break;; |
---|
3242 | esac |
---|
3243 | done |
---|
3244 | else |
---|
3245 | echo "$as_me: failed program was:" >&5 |
---|
3246 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3247 | |
---|
3248 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
3249 | See \`config.log' for more details." >&5 |
---|
3250 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
3251 | See \`config.log' for more details." >&2;} |
---|
3252 | { (exit 1); exit 1; }; } |
---|
3253 | fi |
---|
3254 | |
---|
3255 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3256 | fi |
---|
3257 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
3258 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
---|
3259 | OBJEXT=$ac_cv_objext |
---|
3260 | ac_objext=$OBJEXT |
---|
3261 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
3262 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
---|
3263 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
3264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3265 | else |
---|
3266 | cat >conftest.$ac_ext <<_ACEOF |
---|
3267 | /* confdefs.h. */ |
---|
3268 | _ACEOF |
---|
3269 | cat confdefs.h >>conftest.$ac_ext |
---|
3270 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3271 | /* end confdefs.h. */ |
---|
3272 | |
---|
3273 | int |
---|
3274 | main () |
---|
3275 | { |
---|
3276 | #ifndef __GNUC__ |
---|
3277 | choke me |
---|
3278 | #endif |
---|
3279 | |
---|
3280 | ; |
---|
3281 | return 0; |
---|
3282 | } |
---|
3283 | _ACEOF |
---|
3284 | rm -f conftest.$ac_objext |
---|
3285 | if { (ac_try="$ac_compile" |
---|
3286 | case "(($ac_try" in |
---|
3287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3288 | *) ac_try_echo=$ac_try;; |
---|
3289 | esac |
---|
3290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3291 | (eval "$ac_compile") 2>conftest.er1 |
---|
3292 | ac_status=$? |
---|
3293 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3294 | rm -f conftest.er1 |
---|
3295 | cat conftest.err >&5 |
---|
3296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3297 | (exit $ac_status); } && { |
---|
3298 | test -z "$ac_c_werror_flag" || |
---|
3299 | test ! -s conftest.err |
---|
3300 | } && test -s conftest.$ac_objext; then |
---|
3301 | ac_compiler_gnu=yes |
---|
3302 | else |
---|
3303 | echo "$as_me: failed program was:" >&5 |
---|
3304 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3305 | |
---|
3306 | ac_compiler_gnu=no |
---|
3307 | fi |
---|
3308 | |
---|
3309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3310 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3311 | |
---|
3312 | fi |
---|
3313 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3314 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
---|
3315 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
3316 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3317 | ac_save_CFLAGS=$CFLAGS |
---|
3318 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
3319 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
---|
3320 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
3321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3322 | else |
---|
3323 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3324 | ac_c_werror_flag=yes |
---|
3325 | ac_cv_prog_cc_g=no |
---|
3326 | CFLAGS="-g" |
---|
3327 | cat >conftest.$ac_ext <<_ACEOF |
---|
3328 | /* confdefs.h. */ |
---|
3329 | _ACEOF |
---|
3330 | cat confdefs.h >>conftest.$ac_ext |
---|
3331 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3332 | /* end confdefs.h. */ |
---|
3333 | |
---|
3334 | int |
---|
3335 | main () |
---|
3336 | { |
---|
3337 | |
---|
3338 | ; |
---|
3339 | return 0; |
---|
3340 | } |
---|
3341 | _ACEOF |
---|
3342 | rm -f conftest.$ac_objext |
---|
3343 | if { (ac_try="$ac_compile" |
---|
3344 | case "(($ac_try" in |
---|
3345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3346 | *) ac_try_echo=$ac_try;; |
---|
3347 | esac |
---|
3348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3349 | (eval "$ac_compile") 2>conftest.er1 |
---|
3350 | ac_status=$? |
---|
3351 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3352 | rm -f conftest.er1 |
---|
3353 | cat conftest.err >&5 |
---|
3354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3355 | (exit $ac_status); } && { |
---|
3356 | test -z "$ac_c_werror_flag" || |
---|
3357 | test ! -s conftest.err |
---|
3358 | } && test -s conftest.$ac_objext; then |
---|
3359 | ac_cv_prog_cc_g=yes |
---|
3360 | else |
---|
3361 | echo "$as_me: failed program was:" >&5 |
---|
3362 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3363 | |
---|
3364 | CFLAGS="" |
---|
3365 | cat >conftest.$ac_ext <<_ACEOF |
---|
3366 | /* confdefs.h. */ |
---|
3367 | _ACEOF |
---|
3368 | cat confdefs.h >>conftest.$ac_ext |
---|
3369 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3370 | /* end confdefs.h. */ |
---|
3371 | |
---|
3372 | int |
---|
3373 | main () |
---|
3374 | { |
---|
3375 | |
---|
3376 | ; |
---|
3377 | return 0; |
---|
3378 | } |
---|
3379 | _ACEOF |
---|
3380 | rm -f conftest.$ac_objext |
---|
3381 | if { (ac_try="$ac_compile" |
---|
3382 | case "(($ac_try" in |
---|
3383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3384 | *) ac_try_echo=$ac_try;; |
---|
3385 | esac |
---|
3386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3387 | (eval "$ac_compile") 2>conftest.er1 |
---|
3388 | ac_status=$? |
---|
3389 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3390 | rm -f conftest.er1 |
---|
3391 | cat conftest.err >&5 |
---|
3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3393 | (exit $ac_status); } && { |
---|
3394 | test -z "$ac_c_werror_flag" || |
---|
3395 | test ! -s conftest.err |
---|
3396 | } && test -s conftest.$ac_objext; then |
---|
3397 | : |
---|
3398 | else |
---|
3399 | echo "$as_me: failed program was:" >&5 |
---|
3400 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3401 | |
---|
3402 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3403 | CFLAGS="-g" |
---|
3404 | cat >conftest.$ac_ext <<_ACEOF |
---|
3405 | /* confdefs.h. */ |
---|
3406 | _ACEOF |
---|
3407 | cat confdefs.h >>conftest.$ac_ext |
---|
3408 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3409 | /* end confdefs.h. */ |
---|
3410 | |
---|
3411 | int |
---|
3412 | main () |
---|
3413 | { |
---|
3414 | |
---|
3415 | ; |
---|
3416 | return 0; |
---|
3417 | } |
---|
3418 | _ACEOF |
---|
3419 | rm -f conftest.$ac_objext |
---|
3420 | if { (ac_try="$ac_compile" |
---|
3421 | case "(($ac_try" in |
---|
3422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3423 | *) ac_try_echo=$ac_try;; |
---|
3424 | esac |
---|
3425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3426 | (eval "$ac_compile") 2>conftest.er1 |
---|
3427 | ac_status=$? |
---|
3428 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3429 | rm -f conftest.er1 |
---|
3430 | cat conftest.err >&5 |
---|
3431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3432 | (exit $ac_status); } && { |
---|
3433 | test -z "$ac_c_werror_flag" || |
---|
3434 | test ! -s conftest.err |
---|
3435 | } && test -s conftest.$ac_objext; then |
---|
3436 | ac_cv_prog_cc_g=yes |
---|
3437 | else |
---|
3438 | echo "$as_me: failed program was:" >&5 |
---|
3439 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3440 | |
---|
3441 | |
---|
3442 | fi |
---|
3443 | |
---|
3444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3445 | fi |
---|
3446 | |
---|
3447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3448 | fi |
---|
3449 | |
---|
3450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3451 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3452 | fi |
---|
3453 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3454 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
---|
3455 | if test "$ac_test_CFLAGS" = set; then |
---|
3456 | CFLAGS=$ac_save_CFLAGS |
---|
3457 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3458 | if test "$GCC" = yes; then |
---|
3459 | CFLAGS="-g -O2" |
---|
3460 | else |
---|
3461 | CFLAGS="-g" |
---|
3462 | fi |
---|
3463 | else |
---|
3464 | if test "$GCC" = yes; then |
---|
3465 | CFLAGS="-O2" |
---|
3466 | else |
---|
3467 | CFLAGS= |
---|
3468 | fi |
---|
3469 | fi |
---|
3470 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
---|
3471 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
---|
3472 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
---|
3473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3474 | else |
---|
3475 | ac_cv_prog_cc_c89=no |
---|
3476 | ac_save_CC=$CC |
---|
3477 | cat >conftest.$ac_ext <<_ACEOF |
---|
3478 | /* confdefs.h. */ |
---|
3479 | _ACEOF |
---|
3480 | cat confdefs.h >>conftest.$ac_ext |
---|
3481 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3482 | /* end confdefs.h. */ |
---|
3483 | #include <stdarg.h> |
---|
3484 | #include <stdio.h> |
---|
3485 | #include <sys/types.h> |
---|
3486 | #include <sys/stat.h> |
---|
3487 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3488 | struct buf { int x; }; |
---|
3489 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3490 | static char *e (p, i) |
---|
3491 | char **p; |
---|
3492 | int i; |
---|
3493 | { |
---|
3494 | return p[i]; |
---|
3495 | } |
---|
3496 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3497 | { |
---|
3498 | char *s; |
---|
3499 | va_list v; |
---|
3500 | va_start (v,p); |
---|
3501 | s = g (p, va_arg (v,int)); |
---|
3502 | va_end (v); |
---|
3503 | return s; |
---|
3504 | } |
---|
3505 | |
---|
3506 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3507 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3508 | These don't provoke an error unfortunately, instead are silently treated |
---|
3509 | as 'x'. The following induces an error, until -std is added to get |
---|
3510 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3511 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3512 | that's true only with -std. */ |
---|
3513 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3514 | |
---|
3515 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3516 | inside strings and character constants. */ |
---|
3517 | #define FOO(x) 'x' |
---|
3518 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3519 | |
---|
3520 | int test (int i, double x); |
---|
3521 | struct s1 {int (*f) (int a);}; |
---|
3522 | struct s2 {int (*f) (double a);}; |
---|
3523 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3524 | int argc; |
---|
3525 | char **argv; |
---|
3526 | int |
---|
3527 | main () |
---|
3528 | { |
---|
3529 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3530 | ; |
---|
3531 | return 0; |
---|
3532 | } |
---|
3533 | _ACEOF |
---|
3534 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3535 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3536 | do |
---|
3537 | CC="$ac_save_CC $ac_arg" |
---|
3538 | rm -f conftest.$ac_objext |
---|
3539 | if { (ac_try="$ac_compile" |
---|
3540 | case "(($ac_try" in |
---|
3541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3542 | *) ac_try_echo=$ac_try;; |
---|
3543 | esac |
---|
3544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3545 | (eval "$ac_compile") 2>conftest.er1 |
---|
3546 | ac_status=$? |
---|
3547 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3548 | rm -f conftest.er1 |
---|
3549 | cat conftest.err >&5 |
---|
3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3551 | (exit $ac_status); } && { |
---|
3552 | test -z "$ac_c_werror_flag" || |
---|
3553 | test ! -s conftest.err |
---|
3554 | } && test -s conftest.$ac_objext; then |
---|
3555 | ac_cv_prog_cc_c89=$ac_arg |
---|
3556 | else |
---|
3557 | echo "$as_me: failed program was:" >&5 |
---|
3558 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3559 | |
---|
3560 | |
---|
3561 | fi |
---|
3562 | |
---|
3563 | rm -f core conftest.err conftest.$ac_objext |
---|
3564 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3565 | done |
---|
3566 | rm -f conftest.$ac_ext |
---|
3567 | CC=$ac_save_CC |
---|
3568 | |
---|
3569 | fi |
---|
3570 | # AC_CACHE_VAL |
---|
3571 | case "x$ac_cv_prog_cc_c89" in |
---|
3572 | x) |
---|
3573 | { echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3574 | echo "${ECHO_T}none needed" >&6; } ;; |
---|
3575 | xno) |
---|
3576 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
---|
3577 | echo "${ECHO_T}unsupported" >&6; } ;; |
---|
3578 | *) |
---|
3579 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3580 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
---|
3581 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3582 | esac |
---|
3583 | |
---|
3584 | |
---|
3585 | ac_ext=c |
---|
3586 | ac_cpp='$CPP $CPPFLAGS' |
---|
3587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3590 | DEPDIR="${am__leading_dot}deps" |
---|
3591 | |
---|
3592 | ac_config_commands="$ac_config_commands depfiles" |
---|
3593 | |
---|
3594 | |
---|
3595 | am_make=${MAKE-make} |
---|
3596 | cat > confinc << 'END' |
---|
3597 | am__doit: |
---|
3598 | @echo done |
---|
3599 | .PHONY: am__doit |
---|
3600 | END |
---|
3601 | # If we don't find an include directive, just comment out the code. |
---|
3602 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
3603 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
---|
3604 | am__include="#" |
---|
3605 | am__quote= |
---|
3606 | _am_result=none |
---|
3607 | # First try GNU make style include. |
---|
3608 | echo "include confinc" > confmf |
---|
3609 | # We grep out `Entering directory' and `Leaving directory' |
---|
3610 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
3611 | # In particular we don't look at `^make:' because GNU make might |
---|
3612 | # be invoked under some other name (usually "gmake"), in which |
---|
3613 | # case it prints its new name instead of `make'. |
---|
3614 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
3615 | am__include=include |
---|
3616 | am__quote= |
---|
3617 | _am_result=GNU |
---|
3618 | fi |
---|
3619 | # Now try BSD make style include. |
---|
3620 | if test "$am__include" = "#"; then |
---|
3621 | echo '.include "confinc"' > confmf |
---|
3622 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
3623 | am__include=.include |
---|
3624 | am__quote="\"" |
---|
3625 | _am_result=BSD |
---|
3626 | fi |
---|
3627 | fi |
---|
3628 | |
---|
3629 | |
---|
3630 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
3631 | echo "${ECHO_T}$_am_result" >&6; } |
---|
3632 | rm -f confinc confmf |
---|
3633 | |
---|
3634 | # Check whether --enable-dependency-tracking was given. |
---|
3635 | if test "${enable_dependency_tracking+set}" = set; then |
---|
3636 | enableval=$enable_dependency_tracking; |
---|
3637 | fi |
---|
3638 | |
---|
3639 | if test "x$enable_dependency_tracking" != xno; then |
---|
3640 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3641 | AMDEPBACKSLASH='\' |
---|
3642 | fi |
---|
3643 | |
---|
3644 | |
---|
3645 | if test "x$enable_dependency_tracking" != xno; then |
---|
3646 | AMDEP_TRUE= |
---|
3647 | AMDEP_FALSE='#' |
---|
3648 | else |
---|
3649 | AMDEP_TRUE='#' |
---|
3650 | AMDEP_FALSE= |
---|
3651 | fi |
---|
3652 | |
---|
3653 | |
---|
3654 | |
---|
3655 | |
---|
3656 | depcc="$CC" am_compiler_list= |
---|
3657 | |
---|
3658 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3659 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
---|
3660 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3662 | else |
---|
3663 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3664 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3665 | # making bogus files that we don't know about and never remove. For |
---|
3666 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3667 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3668 | # in D'. |
---|
3669 | mkdir conftest.dir |
---|
3670 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3671 | # using a relative directory. |
---|
3672 | cp "$am_depcomp" conftest.dir |
---|
3673 | cd conftest.dir |
---|
3674 | # We will build objects and dependencies in a subdirectory because |
---|
3675 | # it helps to detect inapplicable dependency modes. For instance |
---|
3676 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3677 | # side effect of compilation, but ICC will put the dependencies in |
---|
3678 | # the current directory while Tru64 will put them in the object |
---|
3679 | # directory. |
---|
3680 | mkdir sub |
---|
3681 | |
---|
3682 | am_cv_CC_dependencies_compiler_type=none |
---|
3683 | if test "$am_compiler_list" = ""; then |
---|
3684 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3685 | fi |
---|
3686 | for depmode in $am_compiler_list; do |
---|
3687 | # Setup a source with many dependencies, because some compilers |
---|
3688 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3689 | # we should not choose a depcomp mode which is confused by this. |
---|
3690 | # |
---|
3691 | # We need to recreate these files for each test, as the compiler may |
---|
3692 | # overwrite some of them when testing with obscure command lines. |
---|
3693 | # This happens at least with the AIX C compiler. |
---|
3694 | : > sub/conftest.c |
---|
3695 | for i in 1 2 3 4 5 6; do |
---|
3696 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3697 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3698 | # Solaris 8's {/usr,}/bin/sh. |
---|
3699 | touch sub/conftst$i.h |
---|
3700 | done |
---|
3701 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3702 | |
---|
3703 | case $depmode in |
---|
3704 | nosideeffect) |
---|
3705 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3706 | # only be used when explicitly requested |
---|
3707 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3708 | continue |
---|
3709 | else |
---|
3710 | break |
---|
3711 | fi |
---|
3712 | ;; |
---|
3713 | none) break ;; |
---|
3714 | esac |
---|
3715 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3716 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3717 | # handle `-M -o', and we need to detect this. |
---|
3718 | if depmode=$depmode \ |
---|
3719 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3720 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3721 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3722 | >/dev/null 2>conftest.err && |
---|
3723 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3724 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3725 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3726 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3727 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3728 | # that says an option was ignored or not supported. |
---|
3729 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3730 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3731 | # The diagnosis changed in icc 8.0: |
---|
3732 | # icc: Command line remark: option '-MP' not supported |
---|
3733 | if (grep 'ignoring option' conftest.err || |
---|
3734 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3735 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3736 | break |
---|
3737 | fi |
---|
3738 | fi |
---|
3739 | done |
---|
3740 | |
---|
3741 | cd .. |
---|
3742 | rm -rf conftest.dir |
---|
3743 | else |
---|
3744 | am_cv_CC_dependencies_compiler_type=none |
---|
3745 | fi |
---|
3746 | |
---|
3747 | fi |
---|
3748 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3749 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
3750 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3751 | |
---|
3752 | |
---|
3753 | |
---|
3754 | if |
---|
3755 | test "x$enable_dependency_tracking" != xno \ |
---|
3756 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3757 | am__fastdepCC_TRUE= |
---|
3758 | am__fastdepCC_FALSE='#' |
---|
3759 | else |
---|
3760 | am__fastdepCC_TRUE='#' |
---|
3761 | am__fastdepCC_FALSE= |
---|
3762 | fi |
---|
3763 | |
---|
3764 | |
---|
3765 | ac_ext=cpp |
---|
3766 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
3767 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3768 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3769 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
3770 | if test -z "$CXX"; then |
---|
3771 | if test -n "$CCC"; then |
---|
3772 | CXX=$CCC |
---|
3773 | else |
---|
3774 | if test -n "$ac_tool_prefix"; then |
---|
3775 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3776 | do |
---|
3777 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3778 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3779 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3781 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
3782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3783 | else |
---|
3784 | if test -n "$CXX"; then |
---|
3785 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
3786 | else |
---|
3787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3788 | for as_dir in $PATH |
---|
3789 | do |
---|
3790 | IFS=$as_save_IFS |
---|
3791 | test -z "$as_dir" && as_dir=. |
---|
3792 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3794 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
3795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3796 | break 2 |
---|
3797 | fi |
---|
3798 | done |
---|
3799 | done |
---|
3800 | IFS=$as_save_IFS |
---|
3801 | |
---|
3802 | fi |
---|
3803 | fi |
---|
3804 | CXX=$ac_cv_prog_CXX |
---|
3805 | if test -n "$CXX"; then |
---|
3806 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
3807 | echo "${ECHO_T}$CXX" >&6; } |
---|
3808 | else |
---|
3809 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3810 | echo "${ECHO_T}no" >&6; } |
---|
3811 | fi |
---|
3812 | |
---|
3813 | |
---|
3814 | test -n "$CXX" && break |
---|
3815 | done |
---|
3816 | fi |
---|
3817 | if test -z "$CXX"; then |
---|
3818 | ac_ct_CXX=$CXX |
---|
3819 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3820 | do |
---|
3821 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3822 | set dummy $ac_prog; ac_word=$2 |
---|
3823 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3825 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
3826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3827 | else |
---|
3828 | if test -n "$ac_ct_CXX"; then |
---|
3829 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3830 | else |
---|
3831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3832 | for as_dir in $PATH |
---|
3833 | do |
---|
3834 | IFS=$as_save_IFS |
---|
3835 | test -z "$as_dir" && as_dir=. |
---|
3836 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3838 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3840 | break 2 |
---|
3841 | fi |
---|
3842 | done |
---|
3843 | done |
---|
3844 | IFS=$as_save_IFS |
---|
3845 | |
---|
3846 | fi |
---|
3847 | fi |
---|
3848 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3849 | if test -n "$ac_ct_CXX"; then |
---|
3850 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
3851 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
---|
3852 | else |
---|
3853 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3854 | echo "${ECHO_T}no" >&6; } |
---|
3855 | fi |
---|
3856 | |
---|
3857 | |
---|
3858 | test -n "$ac_ct_CXX" && break |
---|
3859 | done |
---|
3860 | |
---|
3861 | if test "x$ac_ct_CXX" = x; then |
---|
3862 | CXX="g++" |
---|
3863 | else |
---|
3864 | case $cross_compiling:$ac_tool_warned in |
---|
3865 | yes:) |
---|
3866 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3867 | whose name does not start with the host triplet. If you think this |
---|
3868 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
3869 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3870 | whose name does not start with the host triplet. If you think this |
---|
3871 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
3872 | ac_tool_warned=yes ;; |
---|
3873 | esac |
---|
3874 | CXX=$ac_ct_CXX |
---|
3875 | fi |
---|
3876 | fi |
---|
3877 | |
---|
3878 | fi |
---|
3879 | fi |
---|
3880 | # Provide some information about the compiler. |
---|
3881 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
---|
3882 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3883 | { (ac_try="$ac_compiler --version >&5" |
---|
3884 | case "(($ac_try" in |
---|
3885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3886 | *) ac_try_echo=$ac_try;; |
---|
3887 | esac |
---|
3888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3889 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
3890 | ac_status=$? |
---|
3891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3892 | (exit $ac_status); } |
---|
3893 | { (ac_try="$ac_compiler -v >&5" |
---|
3894 | case "(($ac_try" in |
---|
3895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3896 | *) ac_try_echo=$ac_try;; |
---|
3897 | esac |
---|
3898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3899 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
3900 | ac_status=$? |
---|
3901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3902 | (exit $ac_status); } |
---|
3903 | { (ac_try="$ac_compiler -V >&5" |
---|
3904 | case "(($ac_try" in |
---|
3905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3906 | *) ac_try_echo=$ac_try;; |
---|
3907 | esac |
---|
3908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3909 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
3910 | ac_status=$? |
---|
3911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3912 | (exit $ac_status); } |
---|
3913 | |
---|
3914 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
3915 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
---|
3916 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
3917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3918 | else |
---|
3919 | cat >conftest.$ac_ext <<_ACEOF |
---|
3920 | /* confdefs.h. */ |
---|
3921 | _ACEOF |
---|
3922 | cat confdefs.h >>conftest.$ac_ext |
---|
3923 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3924 | /* end confdefs.h. */ |
---|
3925 | |
---|
3926 | int |
---|
3927 | main () |
---|
3928 | { |
---|
3929 | #ifndef __GNUC__ |
---|
3930 | choke me |
---|
3931 | #endif |
---|
3932 | |
---|
3933 | ; |
---|
3934 | return 0; |
---|
3935 | } |
---|
3936 | _ACEOF |
---|
3937 | rm -f conftest.$ac_objext |
---|
3938 | if { (ac_try="$ac_compile" |
---|
3939 | case "(($ac_try" in |
---|
3940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3941 | *) ac_try_echo=$ac_try;; |
---|
3942 | esac |
---|
3943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3944 | (eval "$ac_compile") 2>conftest.er1 |
---|
3945 | ac_status=$? |
---|
3946 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3947 | rm -f conftest.er1 |
---|
3948 | cat conftest.err >&5 |
---|
3949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3950 | (exit $ac_status); } && { |
---|
3951 | test -z "$ac_cxx_werror_flag" || |
---|
3952 | test ! -s conftest.err |
---|
3953 | } && test -s conftest.$ac_objext; then |
---|
3954 | ac_compiler_gnu=yes |
---|
3955 | else |
---|
3956 | echo "$as_me: failed program was:" >&5 |
---|
3957 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3958 | |
---|
3959 | ac_compiler_gnu=no |
---|
3960 | fi |
---|
3961 | |
---|
3962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3963 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3964 | |
---|
3965 | fi |
---|
3966 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3967 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3968 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
3969 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3970 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3971 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
3972 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
---|
3973 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
3974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3975 | else |
---|
3976 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3977 | ac_cxx_werror_flag=yes |
---|
3978 | ac_cv_prog_cxx_g=no |
---|
3979 | CXXFLAGS="-g" |
---|
3980 | cat >conftest.$ac_ext <<_ACEOF |
---|
3981 | /* confdefs.h. */ |
---|
3982 | _ACEOF |
---|
3983 | cat confdefs.h >>conftest.$ac_ext |
---|
3984 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3985 | /* end confdefs.h. */ |
---|
3986 | |
---|
3987 | int |
---|
3988 | main () |
---|
3989 | { |
---|
3990 | |
---|
3991 | ; |
---|
3992 | return 0; |
---|
3993 | } |
---|
3994 | _ACEOF |
---|
3995 | rm -f conftest.$ac_objext |
---|
3996 | if { (ac_try="$ac_compile" |
---|
3997 | case "(($ac_try" in |
---|
3998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3999 | *) ac_try_echo=$ac_try;; |
---|
4000 | esac |
---|
4001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4002 | (eval "$ac_compile") 2>conftest.er1 |
---|
4003 | ac_status=$? |
---|
4004 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4005 | rm -f conftest.er1 |
---|
4006 | cat conftest.err >&5 |
---|
4007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4008 | (exit $ac_status); } && { |
---|
4009 | test -z "$ac_cxx_werror_flag" || |
---|
4010 | test ! -s conftest.err |
---|
4011 | } && test -s conftest.$ac_objext; then |
---|
4012 | ac_cv_prog_cxx_g=yes |
---|
4013 | else |
---|
4014 | echo "$as_me: failed program was:" >&5 |
---|
4015 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4016 | |
---|
4017 | CXXFLAGS="" |
---|
4018 | cat >conftest.$ac_ext <<_ACEOF |
---|
4019 | /* confdefs.h. */ |
---|
4020 | _ACEOF |
---|
4021 | cat confdefs.h >>conftest.$ac_ext |
---|
4022 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4023 | /* end confdefs.h. */ |
---|
4024 | |
---|
4025 | int |
---|
4026 | main () |
---|
4027 | { |
---|
4028 | |
---|
4029 | ; |
---|
4030 | return 0; |
---|
4031 | } |
---|
4032 | _ACEOF |
---|
4033 | rm -f conftest.$ac_objext |
---|
4034 | if { (ac_try="$ac_compile" |
---|
4035 | case "(($ac_try" in |
---|
4036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4037 | *) ac_try_echo=$ac_try;; |
---|
4038 | esac |
---|
4039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4040 | (eval "$ac_compile") 2>conftest.er1 |
---|
4041 | ac_status=$? |
---|
4042 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4043 | rm -f conftest.er1 |
---|
4044 | cat conftest.err >&5 |
---|
4045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4046 | (exit $ac_status); } && { |
---|
4047 | test -z "$ac_cxx_werror_flag" || |
---|
4048 | test ! -s conftest.err |
---|
4049 | } && test -s conftest.$ac_objext; then |
---|
4050 | : |
---|
4051 | else |
---|
4052 | echo "$as_me: failed program was:" >&5 |
---|
4053 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4054 | |
---|
4055 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
4056 | CXXFLAGS="-g" |
---|
4057 | cat >conftest.$ac_ext <<_ACEOF |
---|
4058 | /* confdefs.h. */ |
---|
4059 | _ACEOF |
---|
4060 | cat confdefs.h >>conftest.$ac_ext |
---|
4061 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4062 | /* end confdefs.h. */ |
---|
4063 | |
---|
4064 | int |
---|
4065 | main () |
---|
4066 | { |
---|
4067 | |
---|
4068 | ; |
---|
4069 | return 0; |
---|
4070 | } |
---|
4071 | _ACEOF |
---|
4072 | rm -f conftest.$ac_objext |
---|
4073 | if { (ac_try="$ac_compile" |
---|
4074 | case "(($ac_try" in |
---|
4075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4076 | *) ac_try_echo=$ac_try;; |
---|
4077 | esac |
---|
4078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4079 | (eval "$ac_compile") 2>conftest.er1 |
---|
4080 | ac_status=$? |
---|
4081 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4082 | rm -f conftest.er1 |
---|
4083 | cat conftest.err >&5 |
---|
4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4085 | (exit $ac_status); } && { |
---|
4086 | test -z "$ac_cxx_werror_flag" || |
---|
4087 | test ! -s conftest.err |
---|
4088 | } && test -s conftest.$ac_objext; then |
---|
4089 | ac_cv_prog_cxx_g=yes |
---|
4090 | else |
---|
4091 | echo "$as_me: failed program was:" >&5 |
---|
4092 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4093 | |
---|
4094 | |
---|
4095 | fi |
---|
4096 | |
---|
4097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4098 | fi |
---|
4099 | |
---|
4100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4101 | fi |
---|
4102 | |
---|
4103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4104 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
4105 | fi |
---|
4106 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
4107 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
---|
4108 | if test "$ac_test_CXXFLAGS" = set; then |
---|
4109 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
4110 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
4111 | if test "$GXX" = yes; then |
---|
4112 | CXXFLAGS="-g -O2" |
---|
4113 | else |
---|
4114 | CXXFLAGS="-g" |
---|
4115 | fi |
---|
4116 | else |
---|
4117 | if test "$GXX" = yes; then |
---|
4118 | CXXFLAGS="-O2" |
---|
4119 | else |
---|
4120 | CXXFLAGS= |
---|
4121 | fi |
---|
4122 | fi |
---|
4123 | ac_ext=c |
---|
4124 | ac_cpp='$CPP $CPPFLAGS' |
---|
4125 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4126 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4127 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4128 | |
---|
4129 | depcc="$CXX" am_compiler_list= |
---|
4130 | |
---|
4131 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
4132 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
---|
4133 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4135 | else |
---|
4136 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
4137 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
4138 | # making bogus files that we don't know about and never remove. For |
---|
4139 | # instance it was reported that on HP-UX the gcc test will end up |
---|
4140 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
4141 | # in D'. |
---|
4142 | mkdir conftest.dir |
---|
4143 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
4144 | # using a relative directory. |
---|
4145 | cp "$am_depcomp" conftest.dir |
---|
4146 | cd conftest.dir |
---|
4147 | # We will build objects and dependencies in a subdirectory because |
---|
4148 | # it helps to detect inapplicable dependency modes. For instance |
---|
4149 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
4150 | # side effect of compilation, but ICC will put the dependencies in |
---|
4151 | # the current directory while Tru64 will put them in the object |
---|
4152 | # directory. |
---|
4153 | mkdir sub |
---|
4154 | |
---|
4155 | am_cv_CXX_dependencies_compiler_type=none |
---|
4156 | if test "$am_compiler_list" = ""; then |
---|
4157 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
4158 | fi |
---|
4159 | for depmode in $am_compiler_list; do |
---|
4160 | # Setup a source with many dependencies, because some compilers |
---|
4161 | # like to wrap large dependency lists on column 80 (with \), and |
---|
4162 | # we should not choose a depcomp mode which is confused by this. |
---|
4163 | # |
---|
4164 | # We need to recreate these files for each test, as the compiler may |
---|
4165 | # overwrite some of them when testing with obscure command lines. |
---|
4166 | # This happens at least with the AIX C compiler. |
---|
4167 | : > sub/conftest.c |
---|
4168 | for i in 1 2 3 4 5 6; do |
---|
4169 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
4170 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
4171 | # Solaris 8's {/usr,}/bin/sh. |
---|
4172 | touch sub/conftst$i.h |
---|
4173 | done |
---|
4174 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
4175 | |
---|
4176 | case $depmode in |
---|
4177 | nosideeffect) |
---|
4178 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
4179 | # only be used when explicitly requested |
---|
4180 | if test "x$enable_dependency_tracking" = xyes; then |
---|
4181 | continue |
---|
4182 | else |
---|
4183 | break |
---|
4184 | fi |
---|
4185 | ;; |
---|
4186 | none) break ;; |
---|
4187 | esac |
---|
4188 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
4189 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
4190 | # handle `-M -o', and we need to detect this. |
---|
4191 | if depmode=$depmode \ |
---|
4192 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
4193 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
4194 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
4195 | >/dev/null 2>conftest.err && |
---|
4196 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
4197 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
4198 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
4199 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
4200 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
4201 | # that says an option was ignored or not supported. |
---|
4202 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
4203 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
4204 | # The diagnosis changed in icc 8.0: |
---|
4205 | # icc: Command line remark: option '-MP' not supported |
---|
4206 | if (grep 'ignoring option' conftest.err || |
---|
4207 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
4208 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
4209 | break |
---|
4210 | fi |
---|
4211 | fi |
---|
4212 | done |
---|
4213 | |
---|
4214 | cd .. |
---|
4215 | rm -rf conftest.dir |
---|
4216 | else |
---|
4217 | am_cv_CXX_dependencies_compiler_type=none |
---|
4218 | fi |
---|
4219 | |
---|
4220 | fi |
---|
4221 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
4222 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
---|
4223 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
4224 | |
---|
4225 | |
---|
4226 | |
---|
4227 | if |
---|
4228 | test "x$enable_dependency_tracking" != xno \ |
---|
4229 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
4230 | am__fastdepCXX_TRUE= |
---|
4231 | am__fastdepCXX_FALSE='#' |
---|
4232 | else |
---|
4233 | am__fastdepCXX_TRUE='#' |
---|
4234 | am__fastdepCXX_FALSE= |
---|
4235 | fi |
---|
4236 | |
---|
4237 | |
---|
4238 | if test "x$CC" != xcc; then |
---|
4239 | { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
---|
4240 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } |
---|
4241 | else |
---|
4242 | { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
---|
4243 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } |
---|
4244 | fi |
---|
4245 | set dummy $CC; ac_cc=`echo $2 | |
---|
4246 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
4247 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4249 | else |
---|
4250 | cat >conftest.$ac_ext <<_ACEOF |
---|
4251 | /* confdefs.h. */ |
---|
4252 | _ACEOF |
---|
4253 | cat confdefs.h >>conftest.$ac_ext |
---|
4254 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4255 | /* end confdefs.h. */ |
---|
4256 | |
---|
4257 | int |
---|
4258 | main () |
---|
4259 | { |
---|
4260 | |
---|
4261 | ; |
---|
4262 | return 0; |
---|
4263 | } |
---|
4264 | _ACEOF |
---|
4265 | # Make sure it works both with $CC and with simple cc. |
---|
4266 | # We do the test twice because some compilers refuse to overwrite an |
---|
4267 | # existing .o file with -o, though they will create one. |
---|
4268 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4269 | rm -f conftest2.* |
---|
4270 | if { (case "(($ac_try" in |
---|
4271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4272 | *) ac_try_echo=$ac_try;; |
---|
4273 | esac |
---|
4274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4275 | (eval "$ac_try") 2>&5 |
---|
4276 | ac_status=$? |
---|
4277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4278 | (exit $ac_status); } && |
---|
4279 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
---|
4280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4281 | *) ac_try_echo=$ac_try;; |
---|
4282 | esac |
---|
4283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4284 | (eval "$ac_try") 2>&5 |
---|
4285 | ac_status=$? |
---|
4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4287 | (exit $ac_status); }; |
---|
4288 | then |
---|
4289 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
---|
4290 | if test "x$CC" != xcc; then |
---|
4291 | # Test first that cc exists at all. |
---|
4292 | if { ac_try='cc -c conftest.$ac_ext >&5' |
---|
4293 | { (case "(($ac_try" in |
---|
4294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4295 | *) ac_try_echo=$ac_try;; |
---|
4296 | esac |
---|
4297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4298 | (eval "$ac_try") 2>&5 |
---|
4299 | ac_status=$? |
---|
4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4301 | (exit $ac_status); }; }; then |
---|
4302 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
---|
4303 | rm -f conftest2.* |
---|
4304 | if { (case "(($ac_try" in |
---|
4305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4306 | *) ac_try_echo=$ac_try;; |
---|
4307 | esac |
---|
4308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4309 | (eval "$ac_try") 2>&5 |
---|
4310 | ac_status=$? |
---|
4311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4312 | (exit $ac_status); } && |
---|
4313 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
---|
4314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4315 | *) ac_try_echo=$ac_try;; |
---|
4316 | esac |
---|
4317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4318 | (eval "$ac_try") 2>&5 |
---|
4319 | ac_status=$? |
---|
4320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4321 | (exit $ac_status); }; |
---|
4322 | then |
---|
4323 | # cc works too. |
---|
4324 | : |
---|
4325 | else |
---|
4326 | # cc exists but doesn't like -o. |
---|
4327 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
4328 | fi |
---|
4329 | fi |
---|
4330 | fi |
---|
4331 | else |
---|
4332 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
---|
4333 | fi |
---|
4334 | rm -f core conftest* |
---|
4335 | |
---|
4336 | fi |
---|
4337 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
---|
4338 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
4339 | echo "${ECHO_T}yes" >&6; } |
---|
4340 | else |
---|
4341 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4342 | echo "${ECHO_T}no" >&6; } |
---|
4343 | |
---|
4344 | cat >>confdefs.h <<\_ACEOF |
---|
4345 | #define NO_MINUS_C_MINUS_O 1 |
---|
4346 | _ACEOF |
---|
4347 | |
---|
4348 | fi |
---|
4349 | |
---|
4350 | # FIXME: we rely on the cache variable name because |
---|
4351 | # there is no other way. |
---|
4352 | set dummy $CC |
---|
4353 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
---|
4354 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then |
---|
4355 | # Losing compiler, so override with the script. |
---|
4356 | # FIXME: It is wrong to rewrite CC. |
---|
4357 | # But if we don't then we get into trouble of one sort or another. |
---|
4358 | # A longer-term fix would be to have automake use am__CC in this case, |
---|
4359 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
---|
4360 | CC="$am_aux_dir/compile $CC" |
---|
4361 | fi |
---|
4362 | |
---|
4363 | # Find a good install program. We prefer a C program (faster), |
---|
4364 | # so one script is as good as another. But avoid the broken or |
---|
4365 | # incompatible versions: |
---|
4366 | # SysV /etc/install, /usr/sbin/install |
---|
4367 | # SunOS /usr/etc/install |
---|
4368 | # IRIX /sbin/install |
---|
4369 | # AIX /bin/install |
---|
4370 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
4371 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
4372 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
4373 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
4374 | # OS/2's system install, which has a completely different semantic |
---|
4375 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
4376 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
4377 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
---|
4378 | if test -z "$INSTALL"; then |
---|
4379 | if test "${ac_cv_path_install+set}" = set; then |
---|
4380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4381 | else |
---|
4382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4383 | for as_dir in $PATH |
---|
4384 | do |
---|
4385 | IFS=$as_save_IFS |
---|
4386 | test -z "$as_dir" && as_dir=. |
---|
4387 | # Account for people who put trailing slashes in PATH elements. |
---|
4388 | case $as_dir/ in |
---|
4389 | ./ | .// | /cC/* | \ |
---|
4390 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
4391 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
4392 | /usr/ucb/* ) ;; |
---|
4393 | *) |
---|
4394 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
4395 | # Don't use installbsd from OSF since it installs stuff as root |
---|
4396 | # by default. |
---|
4397 | for ac_prog in ginstall scoinst install; do |
---|
4398 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4399 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
4400 | if test $ac_prog = install && |
---|
4401 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
4402 | # AIX install. It has an incompatible calling convention. |
---|
4403 | : |
---|
4404 | elif test $ac_prog = install && |
---|
4405 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
4406 | # program-specific install script used by HP pwplus--don't use. |
---|
4407 | : |
---|
4408 | else |
---|
4409 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
4410 | break 3 |
---|
4411 | fi |
---|
4412 | fi |
---|
4413 | done |
---|
4414 | done |
---|
4415 | ;; |
---|
4416 | esac |
---|
4417 | done |
---|
4418 | IFS=$as_save_IFS |
---|
4419 | |
---|
4420 | |
---|
4421 | fi |
---|
4422 | if test "${ac_cv_path_install+set}" = set; then |
---|
4423 | INSTALL=$ac_cv_path_install |
---|
4424 | else |
---|
4425 | # As a last resort, use the slow shell script. Don't cache a |
---|
4426 | # value for INSTALL within a source directory, because that will |
---|
4427 | # break other packages using the cache if that directory is |
---|
4428 | # removed, or if the value is a relative name. |
---|
4429 | INSTALL=$ac_install_sh |
---|
4430 | fi |
---|
4431 | fi |
---|
4432 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
4433 | echo "${ECHO_T}$INSTALL" >&6; } |
---|
4434 | |
---|
4435 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
4436 | # It thinks the first close brace ends the variable substitution. |
---|
4437 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
4438 | |
---|
4439 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
4440 | |
---|
4441 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
4442 | |
---|
4443 | for ac_prog in 'bison -y' byacc |
---|
4444 | do |
---|
4445 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4446 | set dummy $ac_prog; ac_word=$2 |
---|
4447 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
4449 | if test "${ac_cv_prog_YACC+set}" = set; then |
---|
4450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4451 | else |
---|
4452 | if test -n "$YACC"; then |
---|
4453 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
4454 | else |
---|
4455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4456 | for as_dir in $PATH |
---|
4457 | do |
---|
4458 | IFS=$as_save_IFS |
---|
4459 | test -z "$as_dir" && as_dir=. |
---|
4460 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4462 | ac_cv_prog_YACC="$ac_prog" |
---|
4463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4464 | break 2 |
---|
4465 | fi |
---|
4466 | done |
---|
4467 | done |
---|
4468 | IFS=$as_save_IFS |
---|
4469 | |
---|
4470 | fi |
---|
4471 | fi |
---|
4472 | YACC=$ac_cv_prog_YACC |
---|
4473 | if test -n "$YACC"; then |
---|
4474 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
---|
4475 | echo "${ECHO_T}$YACC" >&6; } |
---|
4476 | else |
---|
4477 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4478 | echo "${ECHO_T}no" >&6; } |
---|
4479 | fi |
---|
4480 | |
---|
4481 | |
---|
4482 | test -n "$YACC" && break |
---|
4483 | done |
---|
4484 | test -n "$YACC" || YACC="yacc" |
---|
4485 | |
---|
4486 | |
---|
4487 | for ac_prog in flex lex |
---|
4488 | do |
---|
4489 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4490 | set dummy $ac_prog; ac_word=$2 |
---|
4491 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
4493 | if test "${ac_cv_prog_LEX+set}" = set; then |
---|
4494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4495 | else |
---|
4496 | if test -n "$LEX"; then |
---|
4497 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
4498 | else |
---|
4499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4500 | for as_dir in $PATH |
---|
4501 | do |
---|
4502 | IFS=$as_save_IFS |
---|
4503 | test -z "$as_dir" && as_dir=. |
---|
4504 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4505 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4506 | ac_cv_prog_LEX="$ac_prog" |
---|
4507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4508 | break 2 |
---|
4509 | fi |
---|
4510 | done |
---|
4511 | done |
---|
4512 | IFS=$as_save_IFS |
---|
4513 | |
---|
4514 | fi |
---|
4515 | fi |
---|
4516 | LEX=$ac_cv_prog_LEX |
---|
4517 | if test -n "$LEX"; then |
---|
4518 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
---|
4519 | echo "${ECHO_T}$LEX" >&6; } |
---|
4520 | else |
---|
4521 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4522 | echo "${ECHO_T}no" >&6; } |
---|
4523 | fi |
---|
4524 | |
---|
4525 | |
---|
4526 | test -n "$LEX" && break |
---|
4527 | done |
---|
4528 | test -n "$LEX" || LEX=":" |
---|
4529 | |
---|
4530 | if test "x$LEX" != "x:"; then |
---|
4531 | cat >conftest.l <<_ACEOF |
---|
4532 | %% |
---|
4533 | a { ECHO; } |
---|
4534 | b { REJECT; } |
---|
4535 | c { yymore (); } |
---|
4536 | d { yyless (1); } |
---|
4537 | e { yyless (input () != 0); } |
---|
4538 | f { unput (yytext[0]); } |
---|
4539 | . { BEGIN INITIAL; } |
---|
4540 | %% |
---|
4541 | #ifdef YYTEXT_POINTER |
---|
4542 | extern char *yytext; |
---|
4543 | #endif |
---|
4544 | int |
---|
4545 | main (void) |
---|
4546 | { |
---|
4547 | return ! yylex () + ! yywrap (); |
---|
4548 | } |
---|
4549 | _ACEOF |
---|
4550 | { (ac_try="$LEX conftest.l" |
---|
4551 | case "(($ac_try" in |
---|
4552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4553 | *) ac_try_echo=$ac_try;; |
---|
4554 | esac |
---|
4555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4556 | (eval "$LEX conftest.l") 2>&5 |
---|
4557 | ac_status=$? |
---|
4558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4559 | (exit $ac_status); } |
---|
4560 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
---|
4561 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
---|
4562 | if test "${ac_cv_prog_lex_root+set}" = set; then |
---|
4563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4564 | else |
---|
4565 | |
---|
4566 | if test -f lex.yy.c; then |
---|
4567 | ac_cv_prog_lex_root=lex.yy |
---|
4568 | elif test -f lexyy.c; then |
---|
4569 | ac_cv_prog_lex_root=lexyy |
---|
4570 | else |
---|
4571 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
---|
4572 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
---|
4573 | { (exit 1); exit 1; }; } |
---|
4574 | fi |
---|
4575 | fi |
---|
4576 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
---|
4577 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
---|
4578 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
4579 | |
---|
4580 | if test -z "${LEXLIB+set}"; then |
---|
4581 | { echo "$as_me:$LINENO: checking lex library" >&5 |
---|
4582 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; } |
---|
4583 | if test "${ac_cv_lib_lex+set}" = set; then |
---|
4584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4585 | else |
---|
4586 | |
---|
4587 | ac_save_LIBS=$LIBS |
---|
4588 | ac_cv_lib_lex='none needed' |
---|
4589 | for ac_lib in '' -lfl -ll; do |
---|
4590 | LIBS="$ac_lib $ac_save_LIBS" |
---|
4591 | cat >conftest.$ac_ext <<_ACEOF |
---|
4592 | `cat $LEX_OUTPUT_ROOT.c` |
---|
4593 | _ACEOF |
---|
4594 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4595 | if { (ac_try="$ac_link" |
---|
4596 | case "(($ac_try" in |
---|
4597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4598 | *) ac_try_echo=$ac_try;; |
---|
4599 | esac |
---|
4600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4601 | (eval "$ac_link") 2>conftest.er1 |
---|
4602 | ac_status=$? |
---|
4603 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4604 | rm -f conftest.er1 |
---|
4605 | cat conftest.err >&5 |
---|
4606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4607 | (exit $ac_status); } && { |
---|
4608 | test -z "$ac_c_werror_flag" || |
---|
4609 | test ! -s conftest.err |
---|
4610 | } && test -s conftest$ac_exeext && |
---|
4611 | $as_test_x conftest$ac_exeext; then |
---|
4612 | ac_cv_lib_lex=$ac_lib |
---|
4613 | else |
---|
4614 | echo "$as_me: failed program was:" >&5 |
---|
4615 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4616 | |
---|
4617 | |
---|
4618 | fi |
---|
4619 | |
---|
4620 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
4621 | conftest$ac_exeext conftest.$ac_ext |
---|
4622 | test "$ac_cv_lib_lex" != 'none needed' && break |
---|
4623 | done |
---|
4624 | LIBS=$ac_save_LIBS |
---|
4625 | |
---|
4626 | fi |
---|
4627 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
---|
4628 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; } |
---|
4629 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
---|
4630 | fi |
---|
4631 | |
---|
4632 | |
---|
4633 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
---|
4634 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
---|
4635 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
---|
4636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4637 | else |
---|
4638 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
4639 | # default is implementation-dependent. Figure out which it is, since |
---|
4640 | # not all implementations provide the %pointer and %array declarations. |
---|
4641 | ac_cv_prog_lex_yytext_pointer=no |
---|
4642 | ac_save_LIBS=$LIBS |
---|
4643 | LIBS="$LEXLIB $ac_save_LIBS" |
---|
4644 | cat >conftest.$ac_ext <<_ACEOF |
---|
4645 | #define YYTEXT_POINTER 1 |
---|
4646 | `cat $LEX_OUTPUT_ROOT.c` |
---|
4647 | _ACEOF |
---|
4648 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4649 | if { (ac_try="$ac_link" |
---|
4650 | case "(($ac_try" in |
---|
4651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4652 | *) ac_try_echo=$ac_try;; |
---|
4653 | esac |
---|
4654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4655 | (eval "$ac_link") 2>conftest.er1 |
---|
4656 | ac_status=$? |
---|
4657 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4658 | rm -f conftest.er1 |
---|
4659 | cat conftest.err >&5 |
---|
4660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4661 | (exit $ac_status); } && { |
---|
4662 | test -z "$ac_c_werror_flag" || |
---|
4663 | test ! -s conftest.err |
---|
4664 | } && test -s conftest$ac_exeext && |
---|
4665 | $as_test_x conftest$ac_exeext; then |
---|
4666 | ac_cv_prog_lex_yytext_pointer=yes |
---|
4667 | else |
---|
4668 | echo "$as_me: failed program was:" >&5 |
---|
4669 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4670 | |
---|
4671 | |
---|
4672 | fi |
---|
4673 | |
---|
4674 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
4675 | conftest$ac_exeext conftest.$ac_ext |
---|
4676 | LIBS=$ac_save_LIBS |
---|
4677 | |
---|
4678 | fi |
---|
4679 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
4680 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
---|
4681 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
4682 | |
---|
4683 | cat >>confdefs.h <<\_ACEOF |
---|
4684 | #define YYTEXT_POINTER 1 |
---|
4685 | _ACEOF |
---|
4686 | |
---|
4687 | fi |
---|
4688 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
---|
4689 | |
---|
4690 | fi |
---|
4691 | if test "$LEX" = :; then |
---|
4692 | LEX=${am_missing_run}flex |
---|
4693 | fi |
---|
4694 | |
---|
4695 | case $host in |
---|
4696 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) |
---|
4697 | SHARED_FLAGS="-shared -no-undefined -Xlinker --export-all-symbols" |
---|
4698 | |
---|
4699 | PLUGIN_FLAGS="-shared -no-undefined -avoid-version" |
---|
4700 | |
---|
4701 | GL_LIBS="-lopengl32 -lglu32" |
---|
4702 | |
---|
4703 | if test -n "$ac_tool_prefix"; then |
---|
4704 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
---|
4705 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
---|
4706 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
4708 | if test "${ac_cv_prog_RC+set}" = set; then |
---|
4709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4710 | else |
---|
4711 | if test -n "$RC"; then |
---|
4712 | ac_cv_prog_RC="$RC" # Let the user override the test. |
---|
4713 | else |
---|
4714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4715 | for as_dir in $PATH |
---|
4716 | do |
---|
4717 | IFS=$as_save_IFS |
---|
4718 | test -z "$as_dir" && as_dir=. |
---|
4719 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4721 | ac_cv_prog_RC="${ac_tool_prefix}windres" |
---|
4722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4723 | break 2 |
---|
4724 | fi |
---|
4725 | done |
---|
4726 | done |
---|
4727 | IFS=$as_save_IFS |
---|
4728 | |
---|
4729 | fi |
---|
4730 | fi |
---|
4731 | RC=$ac_cv_prog_RC |
---|
4732 | if test -n "$RC"; then |
---|
4733 | { echo "$as_me:$LINENO: result: $RC" >&5 |
---|
4734 | echo "${ECHO_T}$RC" >&6; } |
---|
4735 | else |
---|
4736 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4737 | echo "${ECHO_T}no" >&6; } |
---|
4738 | fi |
---|
4739 | |
---|
4740 | |
---|
4741 | fi |
---|
4742 | if test -z "$ac_cv_prog_RC"; then |
---|
4743 | ac_ct_RC=$RC |
---|
4744 | # Extract the first word of "windres", so it can be a program name with args. |
---|
4745 | set dummy windres; ac_word=$2 |
---|
4746 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
4748 | if test "${ac_cv_prog_ac_ct_RC+set}" = set; then |
---|
4749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4750 | else |
---|
4751 | if test -n "$ac_ct_RC"; then |
---|
4752 | ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. |
---|
4753 | else |
---|
4754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4755 | for as_dir in $PATH |
---|
4756 | do |
---|
4757 | IFS=$as_save_IFS |
---|
4758 | test -z "$as_dir" && as_dir=. |
---|
4759 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4760 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4761 | ac_cv_prog_ac_ct_RC="windres" |
---|
4762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4763 | break 2 |
---|
4764 | fi |
---|
4765 | done |
---|
4766 | done |
---|
4767 | IFS=$as_save_IFS |
---|
4768 | |
---|
4769 | fi |
---|
4770 | fi |
---|
4771 | ac_ct_RC=$ac_cv_prog_ac_ct_RC |
---|
4772 | if test -n "$ac_ct_RC"; then |
---|
4773 | { echo "$as_me:$LINENO: result: $ac_ct_RC" >&5 |
---|
4774 | echo "${ECHO_T}$ac_ct_RC" >&6; } |
---|
4775 | else |
---|
4776 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4777 | echo "${ECHO_T}no" >&6; } |
---|
4778 | fi |
---|
4779 | |
---|
4780 | if test "x$ac_ct_RC" = x; then |
---|
4781 | RC="" |
---|
4782 | else |
---|
4783 | case $cross_compiling:$ac_tool_warned in |
---|
4784 | yes:) |
---|
4785 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
4786 | whose name does not start with the host triplet. If you think this |
---|
4787 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
4788 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
4789 | whose name does not start with the host triplet. If you think this |
---|
4790 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
4791 | ac_tool_warned=yes ;; |
---|
4792 | esac |
---|
4793 | RC=$ac_ct_RC |
---|
4794 | fi |
---|
4795 | else |
---|
4796 | RC="$ac_cv_prog_RC" |
---|
4797 | fi |
---|
4798 | |
---|
4799 | nt=true |
---|
4800 | ;; |
---|
4801 | *-*-darwin*) |
---|
4802 | SHARED_FLAGS="-shared" |
---|
4803 | |
---|
4804 | PLUGIN_FLAGS="-shared -avoid-version" |
---|
4805 | |
---|
4806 | GL_LIBS="-lGL -lGLU" |
---|
4807 | |
---|
4808 | osx=true |
---|
4809 | ;; |
---|
4810 | *) SHARED_FLAGS="-shared" |
---|
4811 | |
---|
4812 | PLUGIN_FLAGS="-shared -avoid-version" |
---|
4813 | |
---|
4814 | GL_LIBS="-lGL -lGLU" |
---|
4815 | |
---|
4816 | linux=true |
---|
4817 | ;; |
---|
4818 | esac |
---|
4819 | |
---|
4820 | |
---|
4821 | if test x$nt = xtrue; then |
---|
4822 | OGRE_NT_TRUE= |
---|
4823 | OGRE_NT_FALSE='#' |
---|
4824 | else |
---|
4825 | OGRE_NT_TRUE='#' |
---|
4826 | OGRE_NT_FALSE= |
---|
4827 | fi |
---|
4828 | |
---|
4829 | |
---|
4830 | |
---|
4831 | if test x$linux = xtrue; then |
---|
4832 | OGRE_LINUX_TRUE= |
---|
4833 | OGRE_LINUX_FALSE='#' |
---|
4834 | else |
---|
4835 | OGRE_LINUX_TRUE='#' |
---|
4836 | OGRE_LINUX_FALSE= |
---|
4837 | fi |
---|
4838 | |
---|
4839 | |
---|
4840 | |
---|
4841 | if test x$osx = xtrue ; then |
---|
4842 | OGRE_OSX_TRUE= |
---|
4843 | OGRE_OSX_FALSE='#' |
---|
4844 | else |
---|
4845 | OGRE_OSX_TRUE='#' |
---|
4846 | OGRE_OSX_FALSE= |
---|
4847 | fi |
---|
4848 | |
---|
4849 | |
---|
4850 | |
---|
4851 | # Check whether --enable-static was given. |
---|
4852 | if test "${enable_static+set}" = set; then |
---|
4853 | enableval=$enable_static; p=${PACKAGE-default} |
---|
4854 | case $enableval in |
---|
4855 | yes) enable_static=yes ;; |
---|
4856 | no) enable_static=no ;; |
---|
4857 | *) |
---|
4858 | enable_static=no |
---|
4859 | # Look at the argument we got. We use all the common list separators. |
---|
4860 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4861 | for pkg in $enableval; do |
---|
4862 | IFS="$lt_save_ifs" |
---|
4863 | if test "X$pkg" = "X$p"; then |
---|
4864 | enable_static=yes |
---|
4865 | fi |
---|
4866 | done |
---|
4867 | IFS="$lt_save_ifs" |
---|
4868 | ;; |
---|
4869 | esac |
---|
4870 | else |
---|
4871 | enable_static=no |
---|
4872 | fi |
---|
4873 | |
---|
4874 | |
---|
4875 | |
---|
4876 | # Check whether --enable-shared was given. |
---|
4877 | if test "${enable_shared+set}" = set; then |
---|
4878 | enableval=$enable_shared; p=${PACKAGE-default} |
---|
4879 | case $enableval in |
---|
4880 | yes) enable_shared=yes ;; |
---|
4881 | no) enable_shared=no ;; |
---|
4882 | *) |
---|
4883 | enable_shared=no |
---|
4884 | # Look at the argument we got. We use all the common list separators. |
---|
4885 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4886 | for pkg in $enableval; do |
---|
4887 | IFS="$lt_save_ifs" |
---|
4888 | if test "X$pkg" = "X$p"; then |
---|
4889 | enable_shared=yes |
---|
4890 | fi |
---|
4891 | done |
---|
4892 | IFS="$lt_save_ifs" |
---|
4893 | ;; |
---|
4894 | esac |
---|
4895 | else |
---|
4896 | enable_shared=yes |
---|
4897 | fi |
---|
4898 | |
---|
4899 | |
---|
4900 | # Check whether --enable-fast-install was given. |
---|
4901 | if test "${enable_fast_install+set}" = set; then |
---|
4902 | enableval=$enable_fast_install; p=${PACKAGE-default} |
---|
4903 | case $enableval in |
---|
4904 | yes) enable_fast_install=yes ;; |
---|
4905 | no) enable_fast_install=no ;; |
---|
4906 | *) |
---|
4907 | enable_fast_install=no |
---|
4908 | # Look at the argument we got. We use all the common list separators. |
---|
4909 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
4910 | for pkg in $enableval; do |
---|
4911 | IFS="$lt_save_ifs" |
---|
4912 | if test "X$pkg" = "X$p"; then |
---|
4913 | enable_fast_install=yes |
---|
4914 | fi |
---|
4915 | done |
---|
4916 | IFS="$lt_save_ifs" |
---|
4917 | ;; |
---|
4918 | esac |
---|
4919 | else |
---|
4920 | enable_fast_install=yes |
---|
4921 | fi |
---|
4922 | |
---|
4923 | |
---|
4924 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
---|
4925 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
---|
4926 | if test "${lt_cv_path_SED+set}" = set; then |
---|
4927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4928 | else |
---|
4929 | # Loop through the user's path and test for sed and gsed. |
---|
4930 | # Then use that list of sed's as ones to test for truncation. |
---|
4931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4932 | for as_dir in $PATH |
---|
4933 | do |
---|
4934 | IFS=$as_save_IFS |
---|
4935 | test -z "$as_dir" && as_dir=. |
---|
4936 | for lt_ac_prog in sed gsed; do |
---|
4937 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4938 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
---|
4939 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
---|
4940 | fi |
---|
4941 | done |
---|
4942 | done |
---|
4943 | done |
---|
4944 | lt_ac_max=0 |
---|
4945 | lt_ac_count=0 |
---|
4946 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
---|
4947 | # along with /bin/sed that truncates output. |
---|
4948 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
---|
4949 | test ! -f $lt_ac_sed && continue |
---|
4950 | cat /dev/null > conftest.in |
---|
4951 | lt_ac_count=0 |
---|
4952 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
---|
4953 | # Check for GNU sed and select it if it is found. |
---|
4954 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
---|
4955 | lt_cv_path_SED=$lt_ac_sed |
---|
4956 | break |
---|
4957 | fi |
---|
4958 | while true; do |
---|
4959 | cat conftest.in conftest.in >conftest.tmp |
---|
4960 | mv conftest.tmp conftest.in |
---|
4961 | cp conftest.in conftest.nl |
---|
4962 | echo >>conftest.nl |
---|
4963 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
---|
4964 | cmp -s conftest.out conftest.nl || break |
---|
4965 | # 10000 chars as input seems more than enough |
---|
4966 | test $lt_ac_count -gt 10 && break |
---|
4967 | lt_ac_count=`expr $lt_ac_count + 1` |
---|
4968 | if test $lt_ac_count -gt $lt_ac_max; then |
---|
4969 | lt_ac_max=$lt_ac_count |
---|
4970 | lt_cv_path_SED=$lt_ac_sed |
---|
4971 | fi |
---|
4972 | done |
---|
4973 | done |
---|
4974 | |
---|
4975 | fi |
---|
4976 | |
---|
4977 | SED=$lt_cv_path_SED |
---|
4978 | { echo "$as_me:$LINENO: result: $SED" >&5 |
---|
4979 | echo "${ECHO_T}$SED" >&6; } |
---|
4980 | |
---|
4981 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
---|
4982 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
---|
4983 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
4984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4985 | else |
---|
4986 | # Extract the first word of "grep ggrep" to use in msg output |
---|
4987 | if test -z "$GREP"; then |
---|
4988 | set dummy grep ggrep; ac_prog_name=$2 |
---|
4989 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
4990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4991 | else |
---|
4992 | ac_path_GREP_found=false |
---|
4993 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4995 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4996 | do |
---|
4997 | IFS=$as_save_IFS |
---|
4998 | test -z "$as_dir" && as_dir=. |
---|
4999 | for ac_prog in grep ggrep; do |
---|
5000 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5001 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5002 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
5003 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
5004 | # Check for GNU $ac_path_GREP |
---|
5005 | case `"$ac_path_GREP" --version 2>&1` in |
---|
5006 | *GNU*) |
---|
5007 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
5008 | *) |
---|
5009 | ac_count=0 |
---|
5010 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
5011 | while : |
---|
5012 | do |
---|
5013 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5014 | mv "conftest.tmp" "conftest.in" |
---|
5015 | cp "conftest.in" "conftest.nl" |
---|
5016 | echo 'GREP' >> "conftest.nl" |
---|
5017 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5018 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5019 | ac_count=`expr $ac_count + 1` |
---|
5020 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
5021 | # Best one so far, save it but keep looking for a better one |
---|
5022 | ac_cv_path_GREP="$ac_path_GREP" |
---|
5023 | ac_path_GREP_max=$ac_count |
---|
5024 | fi |
---|
5025 | # 10*(2^10) chars as input seems more than enough |
---|
5026 | test $ac_count -gt 10 && break |
---|
5027 | done |
---|
5028 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5029 | esac |
---|
5030 | |
---|
5031 | |
---|
5032 | $ac_path_GREP_found && break 3 |
---|
5033 | done |
---|
5034 | done |
---|
5035 | |
---|
5036 | done |
---|
5037 | IFS=$as_save_IFS |
---|
5038 | |
---|
5039 | |
---|
5040 | fi |
---|
5041 | |
---|
5042 | GREP="$ac_cv_path_GREP" |
---|
5043 | if test -z "$GREP"; then |
---|
5044 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
5045 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
5046 | { (exit 1); exit 1; }; } |
---|
5047 | fi |
---|
5048 | |
---|
5049 | else |
---|
5050 | ac_cv_path_GREP=$GREP |
---|
5051 | fi |
---|
5052 | |
---|
5053 | |
---|
5054 | fi |
---|
5055 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
---|
5056 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
---|
5057 | GREP="$ac_cv_path_GREP" |
---|
5058 | |
---|
5059 | |
---|
5060 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
5061 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
---|
5062 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
5063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5064 | else |
---|
5065 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
5066 | then ac_cv_path_EGREP="$GREP -E" |
---|
5067 | else |
---|
5068 | # Extract the first word of "egrep" to use in msg output |
---|
5069 | if test -z "$EGREP"; then |
---|
5070 | set dummy egrep; ac_prog_name=$2 |
---|
5071 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
5072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5073 | else |
---|
5074 | ac_path_EGREP_found=false |
---|
5075 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
5076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5077 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
5078 | do |
---|
5079 | IFS=$as_save_IFS |
---|
5080 | test -z "$as_dir" && as_dir=. |
---|
5081 | for ac_prog in egrep; do |
---|
5082 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5083 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
5084 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
5085 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
5086 | # Check for GNU $ac_path_EGREP |
---|
5087 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
5088 | *GNU*) |
---|
5089 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
5090 | *) |
---|
5091 | ac_count=0 |
---|
5092 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
5093 | while : |
---|
5094 | do |
---|
5095 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
5096 | mv "conftest.tmp" "conftest.in" |
---|
5097 | cp "conftest.in" "conftest.nl" |
---|
5098 | echo 'EGREP' >> "conftest.nl" |
---|
5099 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
5100 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
5101 | ac_count=`expr $ac_count + 1` |
---|
5102 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
5103 | # Best one so far, save it but keep looking for a better one |
---|
5104 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
5105 | ac_path_EGREP_max=$ac_count |
---|
5106 | fi |
---|
5107 | # 10*(2^10) chars as input seems more than enough |
---|
5108 | test $ac_count -gt 10 && break |
---|
5109 | done |
---|
5110 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
5111 | esac |
---|
5112 | |
---|
5113 | |
---|
5114 | $ac_path_EGREP_found && break 3 |
---|
5115 | done |
---|
5116 | done |
---|
5117 | |
---|
5118 | done |
---|
5119 | IFS=$as_save_IFS |
---|
5120 | |
---|
5121 | |
---|
5122 | fi |
---|
5123 | |
---|
5124 | EGREP="$ac_cv_path_EGREP" |
---|
5125 | if test -z "$EGREP"; then |
---|
5126 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
5127 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
5128 | { (exit 1); exit 1; }; } |
---|
5129 | fi |
---|
5130 | |
---|
5131 | else |
---|
5132 | ac_cv_path_EGREP=$EGREP |
---|
5133 | fi |
---|
5134 | |
---|
5135 | |
---|
5136 | fi |
---|
5137 | fi |
---|
5138 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
---|
5139 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
---|
5140 | EGREP="$ac_cv_path_EGREP" |
---|
5141 | |
---|
5142 | |
---|
5143 | |
---|
5144 | # Check whether --with-gnu-ld was given. |
---|
5145 | if test "${with_gnu_ld+set}" = set; then |
---|
5146 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
---|
5147 | else |
---|
5148 | with_gnu_ld=no |
---|
5149 | fi |
---|
5150 | |
---|
5151 | ac_prog=ld |
---|
5152 | if test "$GCC" = yes; then |
---|
5153 | # Check if gcc -print-prog-name=ld gives a path. |
---|
5154 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
5155 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
---|
5156 | case $host in |
---|
5157 | *-*-mingw*) |
---|
5158 | # gcc leaves a trailing carriage return which upsets mingw |
---|
5159 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
5160 | *) |
---|
5161 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
5162 | esac |
---|
5163 | case $ac_prog in |
---|
5164 | # Accept absolute paths. |
---|
5165 | [\\/]* | ?:[\\/]*) |
---|
5166 | re_direlt='/[^/][^/]*/\.\./' |
---|
5167 | # Canonicalize the pathname of ld |
---|
5168 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
5169 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
5170 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
5171 | done |
---|
5172 | test -z "$LD" && LD="$ac_prog" |
---|
5173 | ;; |
---|
5174 | "") |
---|
5175 | # If it fails, then pretend we aren't using GCC. |
---|
5176 | ac_prog=ld |
---|
5177 | ;; |
---|
5178 | *) |
---|
5179 | # If it is relative, then search for the first ld in PATH. |
---|
5180 | with_gnu_ld=unknown |
---|
5181 | ;; |
---|
5182 | esac |
---|
5183 | elif test "$with_gnu_ld" = yes; then |
---|
5184 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
5185 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
---|
5186 | else |
---|
5187 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
5188 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
---|
5189 | fi |
---|
5190 | if test "${lt_cv_path_LD+set}" = set; then |
---|
5191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5192 | else |
---|
5193 | if test -z "$LD"; then |
---|
5194 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5195 | for ac_dir in $PATH; do |
---|
5196 | IFS="$lt_save_ifs" |
---|
5197 | test -z "$ac_dir" && ac_dir=. |
---|
5198 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
5199 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
5200 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
5201 | # but apparently some variants of GNU ld only accept -v. |
---|
5202 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
5203 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
5204 | *GNU* | *'with BFD'*) |
---|
5205 | test "$with_gnu_ld" != no && break |
---|
5206 | ;; |
---|
5207 | *) |
---|
5208 | test "$with_gnu_ld" != yes && break |
---|
5209 | ;; |
---|
5210 | esac |
---|
5211 | fi |
---|
5212 | done |
---|
5213 | IFS="$lt_save_ifs" |
---|
5214 | else |
---|
5215 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
5216 | fi |
---|
5217 | fi |
---|
5218 | |
---|
5219 | LD="$lt_cv_path_LD" |
---|
5220 | if test -n "$LD"; then |
---|
5221 | { echo "$as_me:$LINENO: result: $LD" >&5 |
---|
5222 | echo "${ECHO_T}$LD" >&6; } |
---|
5223 | else |
---|
5224 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
5225 | echo "${ECHO_T}no" >&6; } |
---|
5226 | fi |
---|
5227 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
5228 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
5229 | { (exit 1); exit 1; }; } |
---|
5230 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
5231 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
---|
5232 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
5233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5234 | else |
---|
5235 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
5236 | case `$LD -v 2>&1 </dev/null` in |
---|
5237 | *GNU* | *'with BFD'*) |
---|
5238 | lt_cv_prog_gnu_ld=yes |
---|
5239 | ;; |
---|
5240 | *) |
---|
5241 | lt_cv_prog_gnu_ld=no |
---|
5242 | ;; |
---|
5243 | esac |
---|
5244 | fi |
---|
5245 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
5246 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
---|
5247 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
5248 | |
---|
5249 | |
---|
5250 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
---|
5251 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
---|
5252 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
---|
5253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5254 | else |
---|
5255 | lt_cv_ld_reload_flag='-r' |
---|
5256 | fi |
---|
5257 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
---|
5258 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
---|
5259 | reload_flag=$lt_cv_ld_reload_flag |
---|
5260 | case $reload_flag in |
---|
5261 | "" | " "*) ;; |
---|
5262 | *) reload_flag=" $reload_flag" ;; |
---|
5263 | esac |
---|
5264 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5265 | case $host_os in |
---|
5266 | darwin*) |
---|
5267 | if test "$GCC" = yes; then |
---|
5268 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
---|
5269 | else |
---|
5270 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
5271 | fi |
---|
5272 | ;; |
---|
5273 | esac |
---|
5274 | |
---|
5275 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
---|
5276 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
---|
5277 | if test "${lt_cv_path_NM+set}" = set; then |
---|
5278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5279 | else |
---|
5280 | if test -n "$NM"; then |
---|
5281 | # Let the user override the test. |
---|
5282 | lt_cv_path_NM="$NM" |
---|
5283 | else |
---|
5284 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
5285 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
---|
5286 | IFS="$lt_save_ifs" |
---|
5287 | test -z "$ac_dir" && ac_dir=. |
---|
5288 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
---|
5289 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
5290 | # Check to see if the nm accepts a BSD-compat flag. |
---|
5291 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
5292 | # nm: unknown option "B" ignored |
---|
5293 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
5294 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
5295 | */dev/null* | *'Invalid file or object type'*) |
---|
5296 | lt_cv_path_NM="$tmp_nm -B" |
---|
5297 | break |
---|
5298 | ;; |
---|
5299 | *) |
---|
5300 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
5301 | */dev/null*) |
---|
5302 | lt_cv_path_NM="$tmp_nm -p" |
---|
5303 | break |
---|
5304 | ;; |
---|
5305 | *) |
---|
5306 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
5307 | continue # so that we can try to find one that supports BSD flags |
---|
5308 | ;; |
---|
5309 | esac |
---|
5310 | esac |
---|
5311 | fi |
---|
5312 | done |
---|
5313 | IFS="$lt_save_ifs" |
---|
5314 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
---|
5315 | fi |
---|
5316 | fi |
---|
5317 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
---|
5318 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
---|
5319 | NM="$lt_cv_path_NM" |
---|
5320 | |
---|
5321 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
5322 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
---|
5323 | LN_S=$as_ln_s |
---|
5324 | if test "$LN_S" = "ln -s"; then |
---|
5325 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
5326 | echo "${ECHO_T}yes" >&6; } |
---|
5327 | else |
---|
5328 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
5329 | echo "${ECHO_T}no, using $LN_S" >&6; } |
---|
5330 | fi |
---|
5331 | |
---|
5332 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
---|
5333 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
---|
5334 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
---|
5335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5336 | else |
---|
5337 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
5338 | lt_cv_file_magic_test_file= |
---|
5339 | lt_cv_deplibs_check_method='unknown' |
---|
5340 | # Need to set the preceding variable on all platforms that support |
---|
5341 | # interlibrary dependencies. |
---|
5342 | # 'none' -- dependencies not supported. |
---|
5343 | # `unknown' -- same as none, but documents that we really don't know. |
---|
5344 | # 'pass_all' -- all dependencies passed with no checks. |
---|
5345 | # 'test_compile' -- check by making test program. |
---|
5346 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
5347 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
5348 | # If you have `file' or equivalent on your system and you're not sure |
---|
5349 | # whether `pass_all' will *always* work, you probably want this one. |
---|
5350 | |
---|
5351 | case $host_os in |
---|
5352 | aix4* | aix5*) |
---|
5353 | lt_cv_deplibs_check_method=pass_all |
---|
5354 | ;; |
---|
5355 | |
---|
5356 | beos*) |
---|
5357 | lt_cv_deplibs_check_method=pass_all |
---|
5358 | ;; |
---|
5359 | |
---|
5360 | bsdi[45]*) |
---|
5361 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
5362 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
5363 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
5364 | ;; |
---|
5365 | |
---|
5366 | cygwin*) |
---|
5367 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
5368 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
5369 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
5370 | ;; |
---|
5371 | |
---|
5372 | mingw* | pw32*) |
---|
5373 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
5374 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
---|
5375 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
---|
5376 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
5377 | ;; |
---|
5378 | |
---|
5379 | darwin* | rhapsody*) |
---|
5380 | lt_cv_deplibs_check_method=pass_all |
---|
5381 | ;; |
---|
5382 | |
---|
5383 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
5384 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
5385 | case $host_cpu in |
---|
5386 | i*86 ) |
---|
5387 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
5388 | # Let's accept both of them until this is cleared up. |
---|
5389 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
5390 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5391 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
5392 | ;; |
---|
5393 | esac |
---|
5394 | else |
---|
5395 | lt_cv_deplibs_check_method=pass_all |
---|
5396 | fi |
---|
5397 | ;; |
---|
5398 | |
---|
5399 | gnu*) |
---|
5400 | lt_cv_deplibs_check_method=pass_all |
---|
5401 | ;; |
---|
5402 | |
---|
5403 | hpux10.20* | hpux11*) |
---|
5404 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5405 | case $host_cpu in |
---|
5406 | ia64*) |
---|
5407 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
5408 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
5409 | ;; |
---|
5410 | hppa*64*) |
---|
5411 | 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]' |
---|
5412 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
5413 | ;; |
---|
5414 | *) |
---|
5415 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
---|
5416 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
5417 | ;; |
---|
5418 | esac |
---|
5419 | ;; |
---|
5420 | |
---|
5421 | irix5* | irix6* | nonstopux*) |
---|
5422 | case $LD in |
---|
5423 | *-32|*"-32 ") libmagic=32-bit;; |
---|
5424 | *-n32|*"-n32 ") libmagic=N32;; |
---|
5425 | *-64|*"-64 ") libmagic=64-bit;; |
---|
5426 | *) libmagic=never-match;; |
---|
5427 | esac |
---|
5428 | lt_cv_deplibs_check_method=pass_all |
---|
5429 | ;; |
---|
5430 | |
---|
5431 | # This must be Linux ELF. |
---|
5432 | linux*) |
---|
5433 | lt_cv_deplibs_check_method=pass_all |
---|
5434 | ;; |
---|
5435 | |
---|
5436 | netbsd*) |
---|
5437 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
---|
5438 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
5439 | else |
---|
5440 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
5441 | fi |
---|
5442 | ;; |
---|
5443 | |
---|
5444 | newos6*) |
---|
5445 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
5446 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5447 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
5448 | ;; |
---|
5449 | |
---|
5450 | nto-qnx*) |
---|
5451 | lt_cv_deplibs_check_method=unknown |
---|
5452 | ;; |
---|
5453 | |
---|
5454 | openbsd*) |
---|
5455 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
5456 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
5457 | else |
---|
5458 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
5459 | fi |
---|
5460 | ;; |
---|
5461 | |
---|
5462 | osf3* | osf4* | osf5*) |
---|
5463 | lt_cv_deplibs_check_method=pass_all |
---|
5464 | ;; |
---|
5465 | |
---|
5466 | sco3.2v5*) |
---|
5467 | lt_cv_deplibs_check_method=pass_all |
---|
5468 | ;; |
---|
5469 | |
---|
5470 | solaris*) |
---|
5471 | lt_cv_deplibs_check_method=pass_all |
---|
5472 | ;; |
---|
5473 | |
---|
5474 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
5475 | case $host_vendor in |
---|
5476 | motorola) |
---|
5477 | 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]' |
---|
5478 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
5479 | ;; |
---|
5480 | ncr) |
---|
5481 | lt_cv_deplibs_check_method=pass_all |
---|
5482 | ;; |
---|
5483 | sequent) |
---|
5484 | lt_cv_file_magic_cmd='/bin/file' |
---|
5485 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
5486 | ;; |
---|
5487 | sni) |
---|
5488 | lt_cv_file_magic_cmd='/bin/file' |
---|
5489 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
5490 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
5491 | ;; |
---|
5492 | siemens) |
---|
5493 | lt_cv_deplibs_check_method=pass_all |
---|
5494 | ;; |
---|
5495 | esac |
---|
5496 | ;; |
---|
5497 | |
---|
5498 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
---|
5499 | lt_cv_deplibs_check_method=pass_all |
---|
5500 | ;; |
---|
5501 | esac |
---|
5502 | |
---|
5503 | fi |
---|
5504 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
---|
5505 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
---|
5506 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
5507 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
5508 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
5509 | |
---|
5510 | |
---|
5511 | |
---|
5512 | |
---|
5513 | # If no C compiler was specified, use CC. |
---|
5514 | LTCC=${LTCC-"$CC"} |
---|
5515 | |
---|
5516 | # Allow CC to be a program name with arguments. |
---|
5517 | compiler=$CC |
---|
5518 | |
---|
5519 | # Check whether --enable-libtool-lock was given. |
---|
5520 | if test "${enable_libtool_lock+set}" = set; then |
---|
5521 | enableval=$enable_libtool_lock; |
---|
5522 | fi |
---|
5523 | |
---|
5524 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
5525 | |
---|
5526 | # Some flags need to be propagated to the compiler or linker for good |
---|
5527 | # libtool support. |
---|
5528 | case $host in |
---|
5529 | ia64-*-hpux*) |
---|
5530 | # Find out which ABI we are using. |
---|
5531 | echo 'int i;' > conftest.$ac_ext |
---|
5532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5533 | (eval $ac_compile) 2>&5 |
---|
5534 | ac_status=$? |
---|
5535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5536 | (exit $ac_status); }; then |
---|
5537 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5538 | *ELF-32*) |
---|
5539 | HPUX_IA64_MODE="32" |
---|
5540 | ;; |
---|
5541 | *ELF-64*) |
---|
5542 | HPUX_IA64_MODE="64" |
---|
5543 | ;; |
---|
5544 | esac |
---|
5545 | fi |
---|
5546 | rm -rf conftest* |
---|
5547 | ;; |
---|
5548 | *-*-irix6*) |
---|
5549 | # Find out which ABI we are using. |
---|
5550 | echo '#line 5550 "configure"' > conftest.$ac_ext |
---|
5551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5552 | (eval $ac_compile) 2>&5 |
---|
5553 | ac_status=$? |
---|
5554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5555 | (exit $ac_status); }; then |
---|
5556 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
5557 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5558 | *32-bit*) |
---|
5559 | LD="${LD-ld} -melf32bsmip" |
---|
5560 | ;; |
---|
5561 | *N32*) |
---|
5562 | LD="${LD-ld} -melf32bmipn32" |
---|
5563 | ;; |
---|
5564 | *64-bit*) |
---|
5565 | LD="${LD-ld} -melf64bmip" |
---|
5566 | ;; |
---|
5567 | esac |
---|
5568 | else |
---|
5569 | case `/usr/bin/file conftest.$ac_objext` in |
---|
5570 | *32-bit*) |
---|
5571 | LD="${LD-ld} -32" |
---|
5572 | ;; |
---|
5573 | *N32*) |
---|
5574 | LD="${LD-ld} -n32" |
---|
5575 | ;; |
---|
5576 | *64-bit*) |
---|
5577 | LD="${LD-ld} -64" |
---|
5578 | ;; |
---|
5579 | esac |
---|
5580 | fi |
---|
5581 | fi |
---|
5582 | rm -rf conftest* |
---|
5583 | ;; |
---|
5584 | |
---|
5585 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
---|
5586 | # Find out which ABI we are using. |
---|
5587 | echo 'int i;' > conftest.$ac_ext |
---|
5588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5589 | (eval $ac_compile) 2>&5 |
---|
5590 | ac_status=$? |
---|
5591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5592 | (exit $ac_status); }; then |
---|
5593 | case `/usr/bin/file conftest.o` in |
---|
5594 | *32-bit*) |
---|
5595 | case $host in |
---|
5596 | x86_64-*linux*) |
---|
5597 | LD="${LD-ld} -m elf_i386" |
---|
5598 | ;; |
---|
5599 | ppc64-*linux*|powerpc64-*linux*) |
---|
5600 | LD="${LD-ld} -m elf32ppclinux" |
---|
5601 | ;; |
---|
5602 | s390x-*linux*) |
---|
5603 | LD="${LD-ld} -m elf_s390" |
---|
5604 | ;; |
---|
5605 | sparc64-*linux*) |
---|
5606 | LD="${LD-ld} -m elf32_sparc" |
---|
5607 | ;; |
---|
5608 | esac |
---|
5609 | ;; |
---|
5610 | *64-bit*) |
---|
5611 | case $host in |
---|
5612 | x86_64-*linux*) |
---|
5613 | LD="${LD-ld} -m elf_x86_64" |
---|
5614 | ;; |
---|
5615 | ppc*-*linux*|powerpc*-*linux*) |
---|
5616 | LD="${LD-ld} -m elf64ppc" |
---|
5617 | ;; |
---|
5618 | s390*-*linux*) |
---|
5619 | LD="${LD-ld} -m elf64_s390" |
---|
5620 | ;; |
---|
5621 | sparc*-*linux*) |
---|
5622 | LD="${LD-ld} -m elf64_sparc" |
---|
5623 | ;; |
---|
5624 | esac |
---|
5625 | ;; |
---|
5626 | esac |
---|
5627 | fi |
---|
5628 | rm -rf conftest* |
---|
5629 | ;; |
---|
5630 | |
---|
5631 | *-*-sco3.2v5*) |
---|
5632 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
5633 | SAVE_CFLAGS="$CFLAGS" |
---|
5634 | CFLAGS="$CFLAGS -belf" |
---|
5635 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
---|
5636 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
---|
5637 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
---|
5638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5639 | else |
---|
5640 | ac_ext=c |
---|
5641 | ac_cpp='$CPP $CPPFLAGS' |
---|
5642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5645 | |
---|
5646 | cat >conftest.$ac_ext <<_ACEOF |
---|
5647 | /* confdefs.h. */ |
---|
5648 | _ACEOF |
---|
5649 | cat confdefs.h >>conftest.$ac_ext |
---|
5650 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5651 | /* end confdefs.h. */ |
---|
5652 | |
---|
5653 | int |
---|
5654 | main () |
---|
5655 | { |
---|
5656 | |
---|
5657 | ; |
---|
5658 | return 0; |
---|
5659 | } |
---|
5660 | _ACEOF |
---|
5661 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5662 | if { (ac_try="$ac_link" |
---|
5663 | case "(($ac_try" in |
---|
5664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5665 | *) ac_try_echo=$ac_try;; |
---|
5666 | esac |
---|
5667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5668 | (eval "$ac_link") 2>conftest.er1 |
---|
5669 | ac_status=$? |
---|
5670 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5671 | rm -f conftest.er1 |
---|
5672 | cat conftest.err >&5 |
---|
5673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5674 | (exit $ac_status); } && { |
---|
5675 | test -z "$ac_c_werror_flag" || |
---|
5676 | test ! -s conftest.err |
---|
5677 | } && test -s conftest$ac_exeext && |
---|
5678 | $as_test_x conftest$ac_exeext; then |
---|
5679 | lt_cv_cc_needs_belf=yes |
---|
5680 | else |
---|
5681 | echo "$as_me: failed program was:" >&5 |
---|
5682 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5683 | |
---|
5684 | lt_cv_cc_needs_belf=no |
---|
5685 | fi |
---|
5686 | |
---|
5687 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
5688 | conftest$ac_exeext conftest.$ac_ext |
---|
5689 | ac_ext=c |
---|
5690 | ac_cpp='$CPP $CPPFLAGS' |
---|
5691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5694 | |
---|
5695 | fi |
---|
5696 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
---|
5697 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
---|
5698 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
5699 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
5700 | CFLAGS="$SAVE_CFLAGS" |
---|
5701 | fi |
---|
5702 | ;; |
---|
5703 | |
---|
5704 | esac |
---|
5705 | |
---|
5706 | need_locks="$enable_libtool_lock" |
---|
5707 | |
---|
5708 | |
---|
5709 | ac_ext=c |
---|
5710 | ac_cpp='$CPP $CPPFLAGS' |
---|
5711 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5714 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
5715 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
---|
5716 | # On Suns, sometimes $CPP names a directory. |
---|
5717 | if test -n "$CPP" && test -d "$CPP"; then |
---|
5718 | CPP= |
---|
5719 | fi |
---|
5720 | if test -z "$CPP"; then |
---|
5721 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
5722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5723 | else |
---|
5724 | # Double quotes because CPP needs to be expanded |
---|
5725 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
5726 | do |
---|
5727 | ac_preproc_ok=false |
---|
5728 | for ac_c_preproc_warn_flag in '' yes |
---|
5729 | do |
---|
5730 | # Use a header file that comes with gcc, so configuring glibc |
---|
5731 | # with a fresh cross-compiler works. |
---|
5732 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5733 | # <limits.h> exists even on freestanding compilers. |
---|
5734 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5735 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5736 | cat >conftest.$ac_ext <<_ACEOF |
---|
5737 | /* confdefs.h. */ |
---|
5738 | _ACEOF |
---|
5739 | cat confdefs.h >>conftest.$ac_ext |
---|
5740 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5741 | /* end confdefs.h. */ |
---|
5742 | #ifdef __STDC__ |
---|
5743 | # include <limits.h> |
---|
5744 | #else |
---|
5745 | # include <assert.h> |
---|
5746 | #endif |
---|
5747 | Syntax error |
---|
5748 | _ACEOF |
---|
5749 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5750 | case "(($ac_try" in |
---|
5751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5752 | *) ac_try_echo=$ac_try;; |
---|
5753 | esac |
---|
5754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5755 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5756 | ac_status=$? |
---|
5757 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5758 | rm -f conftest.er1 |
---|
5759 | cat conftest.err >&5 |
---|
5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5761 | (exit $ac_status); } >/dev/null && { |
---|
5762 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5763 | test ! -s conftest.err |
---|
5764 | }; then |
---|
5765 | : |
---|
5766 | else |
---|
5767 | echo "$as_me: failed program was:" >&5 |
---|
5768 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5769 | |
---|
5770 | # Broken: fails on valid input. |
---|
5771 | continue |
---|
5772 | fi |
---|
5773 | |
---|
5774 | rm -f conftest.err conftest.$ac_ext |
---|
5775 | |
---|
5776 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5777 | # can be detected and how. |
---|
5778 | cat >conftest.$ac_ext <<_ACEOF |
---|
5779 | /* confdefs.h. */ |
---|
5780 | _ACEOF |
---|
5781 | cat confdefs.h >>conftest.$ac_ext |
---|
5782 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5783 | /* end confdefs.h. */ |
---|
5784 | #include <ac_nonexistent.h> |
---|
5785 | _ACEOF |
---|
5786 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5787 | case "(($ac_try" in |
---|
5788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5789 | *) ac_try_echo=$ac_try;; |
---|
5790 | esac |
---|
5791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5792 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5793 | ac_status=$? |
---|
5794 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5795 | rm -f conftest.er1 |
---|
5796 | cat conftest.err >&5 |
---|
5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5798 | (exit $ac_status); } >/dev/null && { |
---|
5799 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5800 | test ! -s conftest.err |
---|
5801 | }; then |
---|
5802 | # Broken: success on invalid input. |
---|
5803 | continue |
---|
5804 | else |
---|
5805 | echo "$as_me: failed program was:" >&5 |
---|
5806 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5807 | |
---|
5808 | # Passes both tests. |
---|
5809 | ac_preproc_ok=: |
---|
5810 | break |
---|
5811 | fi |
---|
5812 | |
---|
5813 | rm -f conftest.err conftest.$ac_ext |
---|
5814 | |
---|
5815 | done |
---|
5816 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5817 | rm -f conftest.err conftest.$ac_ext |
---|
5818 | if $ac_preproc_ok; then |
---|
5819 | break |
---|
5820 | fi |
---|
5821 | |
---|
5822 | done |
---|
5823 | ac_cv_prog_CPP=$CPP |
---|
5824 | |
---|
5825 | fi |
---|
5826 | CPP=$ac_cv_prog_CPP |
---|
5827 | else |
---|
5828 | ac_cv_prog_CPP=$CPP |
---|
5829 | fi |
---|
5830 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
5831 | echo "${ECHO_T}$CPP" >&6; } |
---|
5832 | ac_preproc_ok=false |
---|
5833 | for ac_c_preproc_warn_flag in '' yes |
---|
5834 | do |
---|
5835 | # Use a header file that comes with gcc, so configuring glibc |
---|
5836 | # with a fresh cross-compiler works. |
---|
5837 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5838 | # <limits.h> exists even on freestanding compilers. |
---|
5839 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
5840 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
5841 | cat >conftest.$ac_ext <<_ACEOF |
---|
5842 | /* confdefs.h. */ |
---|
5843 | _ACEOF |
---|
5844 | cat confdefs.h >>conftest.$ac_ext |
---|
5845 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5846 | /* end confdefs.h. */ |
---|
5847 | #ifdef __STDC__ |
---|
5848 | # include <limits.h> |
---|
5849 | #else |
---|
5850 | # include <assert.h> |
---|
5851 | #endif |
---|
5852 | Syntax error |
---|
5853 | _ACEOF |
---|
5854 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5855 | case "(($ac_try" in |
---|
5856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5857 | *) ac_try_echo=$ac_try;; |
---|
5858 | esac |
---|
5859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5860 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5861 | ac_status=$? |
---|
5862 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5863 | rm -f conftest.er1 |
---|
5864 | cat conftest.err >&5 |
---|
5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5866 | (exit $ac_status); } >/dev/null && { |
---|
5867 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5868 | test ! -s conftest.err |
---|
5869 | }; then |
---|
5870 | : |
---|
5871 | else |
---|
5872 | echo "$as_me: failed program was:" >&5 |
---|
5873 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5874 | |
---|
5875 | # Broken: fails on valid input. |
---|
5876 | continue |
---|
5877 | fi |
---|
5878 | |
---|
5879 | rm -f conftest.err conftest.$ac_ext |
---|
5880 | |
---|
5881 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
5882 | # can be detected and how. |
---|
5883 | cat >conftest.$ac_ext <<_ACEOF |
---|
5884 | /* confdefs.h. */ |
---|
5885 | _ACEOF |
---|
5886 | cat confdefs.h >>conftest.$ac_ext |
---|
5887 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5888 | /* end confdefs.h. */ |
---|
5889 | #include <ac_nonexistent.h> |
---|
5890 | _ACEOF |
---|
5891 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
5892 | case "(($ac_try" in |
---|
5893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5894 | *) ac_try_echo=$ac_try;; |
---|
5895 | esac |
---|
5896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5897 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
5898 | ac_status=$? |
---|
5899 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5900 | rm -f conftest.er1 |
---|
5901 | cat conftest.err >&5 |
---|
5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5903 | (exit $ac_status); } >/dev/null && { |
---|
5904 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
5905 | test ! -s conftest.err |
---|
5906 | }; then |
---|
5907 | # Broken: success on invalid input. |
---|
5908 | continue |
---|
5909 | else |
---|
5910 | echo "$as_me: failed program was:" >&5 |
---|
5911 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5912 | |
---|
5913 | # Passes both tests. |
---|
5914 | ac_preproc_ok=: |
---|
5915 | break |
---|
5916 | fi |
---|
5917 | |
---|
5918 | rm -f conftest.err conftest.$ac_ext |
---|
5919 | |
---|
5920 | done |
---|
5921 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
5922 | rm -f conftest.err conftest.$ac_ext |
---|
5923 | if $ac_preproc_ok; then |
---|
5924 | : |
---|
5925 | else |
---|
5926 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
5927 | See \`config.log' for more details." >&5 |
---|
5928 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
5929 | See \`config.log' for more details." >&2;} |
---|
5930 | { (exit 1); exit 1; }; } |
---|
5931 | fi |
---|
5932 | |
---|
5933 | ac_ext=c |
---|
5934 | ac_cpp='$CPP $CPPFLAGS' |
---|
5935 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
5936 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
5937 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
5938 | |
---|
5939 | |
---|
5940 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5941 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
---|
5942 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5944 | else |
---|
5945 | cat >conftest.$ac_ext <<_ACEOF |
---|
5946 | /* confdefs.h. */ |
---|
5947 | _ACEOF |
---|
5948 | cat confdefs.h >>conftest.$ac_ext |
---|
5949 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5950 | /* end confdefs.h. */ |
---|
5951 | #include <stdlib.h> |
---|
5952 | #include <stdarg.h> |
---|
5953 | #include <string.h> |
---|
5954 | #include <float.h> |
---|
5955 | |
---|
5956 | int |
---|
5957 | main () |
---|
5958 | { |
---|
5959 | |
---|
5960 | ; |
---|
5961 | return 0; |
---|
5962 | } |
---|
5963 | _ACEOF |
---|
5964 | rm -f conftest.$ac_objext |
---|
5965 | if { (ac_try="$ac_compile" |
---|
5966 | case "(($ac_try" in |
---|
5967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5968 | *) ac_try_echo=$ac_try;; |
---|
5969 | esac |
---|
5970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5971 | (eval "$ac_compile") 2>conftest.er1 |
---|
5972 | ac_status=$? |
---|
5973 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5974 | rm -f conftest.er1 |
---|
5975 | cat conftest.err >&5 |
---|
5976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5977 | (exit $ac_status); } && { |
---|
5978 | test -z "$ac_c_werror_flag" || |
---|
5979 | test ! -s conftest.err |
---|
5980 | } && test -s conftest.$ac_objext; then |
---|
5981 | ac_cv_header_stdc=yes |
---|
5982 | else |
---|
5983 | echo "$as_me: failed program was:" >&5 |
---|
5984 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5985 | |
---|
5986 | ac_cv_header_stdc=no |
---|
5987 | fi |
---|
5988 | |
---|
5989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5990 | |
---|
5991 | if test $ac_cv_header_stdc = yes; then |
---|
5992 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
5993 | cat >conftest.$ac_ext <<_ACEOF |
---|
5994 | /* confdefs.h. */ |
---|
5995 | _ACEOF |
---|
5996 | cat confdefs.h >>conftest.$ac_ext |
---|
5997 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5998 | /* end confdefs.h. */ |
---|
5999 | #include <string.h> |
---|
6000 | |
---|
6001 | _ACEOF |
---|
6002 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6003 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
6004 | : |
---|
6005 | else |
---|
6006 | ac_cv_header_stdc=no |
---|
6007 | fi |
---|
6008 | rm -f conftest* |
---|
6009 | |
---|
6010 | fi |
---|
6011 | |
---|
6012 | if test $ac_cv_header_stdc = yes; then |
---|
6013 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
6014 | cat >conftest.$ac_ext <<_ACEOF |
---|
6015 | /* confdefs.h. */ |
---|
6016 | _ACEOF |
---|
6017 | cat confdefs.h >>conftest.$ac_ext |
---|
6018 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6019 | /* end confdefs.h. */ |
---|
6020 | #include <stdlib.h> |
---|
6021 | |
---|
6022 | _ACEOF |
---|
6023 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6024 | $EGREP "free" >/dev/null 2>&1; then |
---|
6025 | : |
---|
6026 | else |
---|
6027 | ac_cv_header_stdc=no |
---|
6028 | fi |
---|
6029 | rm -f conftest* |
---|
6030 | |
---|
6031 | fi |
---|
6032 | |
---|
6033 | if test $ac_cv_header_stdc = yes; then |
---|
6034 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
6035 | if test "$cross_compiling" = yes; then |
---|
6036 | : |
---|
6037 | else |
---|
6038 | cat >conftest.$ac_ext <<_ACEOF |
---|
6039 | /* confdefs.h. */ |
---|
6040 | _ACEOF |
---|
6041 | cat confdefs.h >>conftest.$ac_ext |
---|
6042 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6043 | /* end confdefs.h. */ |
---|
6044 | #include <ctype.h> |
---|
6045 | #include <stdlib.h> |
---|
6046 | #if ((' ' & 0x0FF) == 0x020) |
---|
6047 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
6048 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
6049 | #else |
---|
6050 | # define ISLOWER(c) \ |
---|
6051 | (('a' <= (c) && (c) <= 'i') \ |
---|
6052 | || ('j' <= (c) && (c) <= 'r') \ |
---|
6053 | || ('s' <= (c) && (c) <= 'z')) |
---|
6054 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
6055 | #endif |
---|
6056 | |
---|
6057 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
6058 | int |
---|
6059 | main () |
---|
6060 | { |
---|
6061 | int i; |
---|
6062 | for (i = 0; i < 256; i++) |
---|
6063 | if (XOR (islower (i), ISLOWER (i)) |
---|
6064 | || toupper (i) != TOUPPER (i)) |
---|
6065 | return 2; |
---|
6066 | return 0; |
---|
6067 | } |
---|
6068 | _ACEOF |
---|
6069 | rm -f conftest$ac_exeext |
---|
6070 | if { (ac_try="$ac_link" |
---|
6071 | case "(($ac_try" in |
---|
6072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6073 | *) ac_try_echo=$ac_try;; |
---|
6074 | esac |
---|
6075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6076 | (eval "$ac_link") 2>&5 |
---|
6077 | ac_status=$? |
---|
6078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6080 | { (case "(($ac_try" in |
---|
6081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6082 | *) ac_try_echo=$ac_try;; |
---|
6083 | esac |
---|
6084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6085 | (eval "$ac_try") 2>&5 |
---|
6086 | ac_status=$? |
---|
6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6088 | (exit $ac_status); }; }; then |
---|
6089 | : |
---|
6090 | else |
---|
6091 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6092 | echo "$as_me: failed program was:" >&5 |
---|
6093 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6094 | |
---|
6095 | ( exit $ac_status ) |
---|
6096 | ac_cv_header_stdc=no |
---|
6097 | fi |
---|
6098 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6099 | fi |
---|
6100 | |
---|
6101 | |
---|
6102 | fi |
---|
6103 | fi |
---|
6104 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
6105 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
---|
6106 | if test $ac_cv_header_stdc = yes; then |
---|
6107 | |
---|
6108 | cat >>confdefs.h <<\_ACEOF |
---|
6109 | #define STDC_HEADERS 1 |
---|
6110 | _ACEOF |
---|
6111 | |
---|
6112 | fi |
---|
6113 | |
---|
6114 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
6115 | |
---|
6116 | |
---|
6117 | |
---|
6118 | |
---|
6119 | |
---|
6120 | |
---|
6121 | |
---|
6122 | |
---|
6123 | |
---|
6124 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
6125 | inttypes.h stdint.h unistd.h |
---|
6126 | do |
---|
6127 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6128 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
6130 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6132 | else |
---|
6133 | cat >conftest.$ac_ext <<_ACEOF |
---|
6134 | /* confdefs.h. */ |
---|
6135 | _ACEOF |
---|
6136 | cat confdefs.h >>conftest.$ac_ext |
---|
6137 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6138 | /* end confdefs.h. */ |
---|
6139 | $ac_includes_default |
---|
6140 | |
---|
6141 | #include <$ac_header> |
---|
6142 | _ACEOF |
---|
6143 | rm -f conftest.$ac_objext |
---|
6144 | if { (ac_try="$ac_compile" |
---|
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_compile") 2>conftest.er1 |
---|
6151 | ac_status=$? |
---|
6152 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6153 | rm -f conftest.er1 |
---|
6154 | cat conftest.err >&5 |
---|
6155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6156 | (exit $ac_status); } && { |
---|
6157 | test -z "$ac_c_werror_flag" || |
---|
6158 | test ! -s conftest.err |
---|
6159 | } && test -s conftest.$ac_objext; then |
---|
6160 | eval "$as_ac_Header=yes" |
---|
6161 | else |
---|
6162 | echo "$as_me: failed program was:" >&5 |
---|
6163 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6164 | |
---|
6165 | eval "$as_ac_Header=no" |
---|
6166 | fi |
---|
6167 | |
---|
6168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6169 | fi |
---|
6170 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
6171 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
6172 | echo "${ECHO_T}$ac_res" >&6; } |
---|
6173 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6174 | cat >>confdefs.h <<_ACEOF |
---|
6175 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6176 | _ACEOF |
---|
6177 | |
---|
6178 | fi |
---|
6179 | |
---|
6180 | done |
---|
6181 | |
---|
6182 | |
---|
6183 | |
---|
6184 | for ac_header in dlfcn.h |
---|
6185 | do |
---|
6186 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6187 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6188 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
6190 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6192 | fi |
---|
6193 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
6194 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
6195 | echo "${ECHO_T}$ac_res" >&6; } |
---|
6196 | else |
---|
6197 | # Is the header compilable? |
---|
6198 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6199 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
6200 | cat >conftest.$ac_ext <<_ACEOF |
---|
6201 | /* confdefs.h. */ |
---|
6202 | _ACEOF |
---|
6203 | cat confdefs.h >>conftest.$ac_ext |
---|
6204 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6205 | /* end confdefs.h. */ |
---|
6206 | $ac_includes_default |
---|
6207 | #include <$ac_header> |
---|
6208 | _ACEOF |
---|
6209 | rm -f conftest.$ac_objext |
---|
6210 | if { (ac_try="$ac_compile" |
---|
6211 | case "(($ac_try" in |
---|
6212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6213 | *) ac_try_echo=$ac_try;; |
---|
6214 | esac |
---|
6215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6216 | (eval "$ac_compile") 2>conftest.er1 |
---|
6217 | ac_status=$? |
---|
6218 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6219 | rm -f conftest.er1 |
---|
6220 | cat conftest.err >&5 |
---|
6221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6222 | (exit $ac_status); } && { |
---|
6223 | test -z "$ac_c_werror_flag" || |
---|
6224 | test ! -s conftest.err |
---|
6225 | } && test -s conftest.$ac_objext; then |
---|
6226 | ac_header_compiler=yes |
---|
6227 | else |
---|
6228 | echo "$as_me: failed program was:" >&5 |
---|
6229 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6230 | |
---|
6231 | ac_header_compiler=no |
---|
6232 | fi |
---|
6233 | |
---|
6234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6235 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6236 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
6237 | |
---|
6238 | # Is the header present? |
---|
6239 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6240 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
6241 | cat >conftest.$ac_ext <<_ACEOF |
---|
6242 | /* confdefs.h. */ |
---|
6243 | _ACEOF |
---|
6244 | cat confdefs.h >>conftest.$ac_ext |
---|
6245 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6246 | /* end confdefs.h. */ |
---|
6247 | #include <$ac_header> |
---|
6248 | _ACEOF |
---|
6249 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
6250 | case "(($ac_try" in |
---|
6251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6252 | *) ac_try_echo=$ac_try;; |
---|
6253 | esac |
---|
6254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6255 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
6256 | ac_status=$? |
---|
6257 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6258 | rm -f conftest.er1 |
---|
6259 | cat conftest.err >&5 |
---|
6260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6261 | (exit $ac_status); } >/dev/null && { |
---|
6262 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
6263 | test ! -s conftest.err |
---|
6264 | }; then |
---|
6265 | ac_header_preproc=yes |
---|
6266 | else |
---|
6267 | echo "$as_me: failed program was:" >&5 |
---|
6268 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6269 | |
---|
6270 | ac_header_preproc=no |
---|
6271 | fi |
---|
6272 | |
---|
6273 | rm -f conftest.err conftest.$ac_ext |
---|
6274 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6275 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
6276 | |
---|
6277 | # So? What about this header? |
---|
6278 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6279 | yes:no: ) |
---|
6280 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6281 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6282 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6283 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6284 | ac_header_preproc=yes |
---|
6285 | ;; |
---|
6286 | no:yes:* ) |
---|
6287 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6288 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6289 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6290 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6291 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6292 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6293 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6294 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6295 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6296 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6297 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6298 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6299 | |
---|
6300 | ;; |
---|
6301 | esac |
---|
6302 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
6304 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
6305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6306 | else |
---|
6307 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6308 | fi |
---|
6309 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
6310 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
6311 | echo "${ECHO_T}$ac_res" >&6; } |
---|
6312 | |
---|
6313 | fi |
---|
6314 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6315 | cat >>confdefs.h <<_ACEOF |
---|
6316 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6317 | _ACEOF |
---|
6318 | |
---|
6319 | fi |
---|
6320 | |
---|
6321 | done |
---|
6322 | |
---|
6323 | |
---|
6324 | |
---|
6325 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
6326 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
6327 | (test "X$CXX" != "Xg++"))) ; then |
---|
6328 | ac_ext=cpp |
---|
6329 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6330 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6331 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6332 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6333 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
---|
6334 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
---|
6335 | if test -z "$CXXCPP"; then |
---|
6336 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
---|
6337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6338 | else |
---|
6339 | # Double quotes because CXXCPP needs to be expanded |
---|
6340 | for CXXCPP in "$CXX -E" "/lib/cpp" |
---|
6341 | do |
---|
6342 | ac_preproc_ok=false |
---|
6343 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6344 | do |
---|
6345 | # Use a header file that comes with gcc, so configuring glibc |
---|
6346 | # with a fresh cross-compiler works. |
---|
6347 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6348 | # <limits.h> exists even on freestanding compilers. |
---|
6349 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6350 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6351 | cat >conftest.$ac_ext <<_ACEOF |
---|
6352 | /* confdefs.h. */ |
---|
6353 | _ACEOF |
---|
6354 | cat confdefs.h >>conftest.$ac_ext |
---|
6355 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6356 | /* end confdefs.h. */ |
---|
6357 | #ifdef __STDC__ |
---|
6358 | # include <limits.h> |
---|
6359 | #else |
---|
6360 | # include <assert.h> |
---|
6361 | #endif |
---|
6362 | Syntax error |
---|
6363 | _ACEOF |
---|
6364 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
6365 | case "(($ac_try" in |
---|
6366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6367 | *) ac_try_echo=$ac_try;; |
---|
6368 | esac |
---|
6369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6370 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
6371 | ac_status=$? |
---|
6372 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6373 | rm -f conftest.er1 |
---|
6374 | cat conftest.err >&5 |
---|
6375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6376 | (exit $ac_status); } >/dev/null && { |
---|
6377 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
6378 | test ! -s conftest.err |
---|
6379 | }; then |
---|
6380 | : |
---|
6381 | else |
---|
6382 | echo "$as_me: failed program was:" >&5 |
---|
6383 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6384 | |
---|
6385 | # Broken: fails on valid input. |
---|
6386 | continue |
---|
6387 | fi |
---|
6388 | |
---|
6389 | rm -f conftest.err conftest.$ac_ext |
---|
6390 | |
---|
6391 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
6392 | # can be detected and how. |
---|
6393 | cat >conftest.$ac_ext <<_ACEOF |
---|
6394 | /* confdefs.h. */ |
---|
6395 | _ACEOF |
---|
6396 | cat confdefs.h >>conftest.$ac_ext |
---|
6397 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6398 | /* end confdefs.h. */ |
---|
6399 | #include <ac_nonexistent.h> |
---|
6400 | _ACEOF |
---|
6401 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
6402 | case "(($ac_try" in |
---|
6403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6404 | *) ac_try_echo=$ac_try;; |
---|
6405 | esac |
---|
6406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6407 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
6408 | ac_status=$? |
---|
6409 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6410 | rm -f conftest.er1 |
---|
6411 | cat conftest.err >&5 |
---|
6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6413 | (exit $ac_status); } >/dev/null && { |
---|
6414 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
6415 | test ! -s conftest.err |
---|
6416 | }; then |
---|
6417 | # Broken: success on invalid input. |
---|
6418 | continue |
---|
6419 | else |
---|
6420 | echo "$as_me: failed program was:" >&5 |
---|
6421 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6422 | |
---|
6423 | # Passes both tests. |
---|
6424 | ac_preproc_ok=: |
---|
6425 | break |
---|
6426 | fi |
---|
6427 | |
---|
6428 | rm -f conftest.err conftest.$ac_ext |
---|
6429 | |
---|
6430 | done |
---|
6431 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6432 | rm -f conftest.err conftest.$ac_ext |
---|
6433 | if $ac_preproc_ok; then |
---|
6434 | break |
---|
6435 | fi |
---|
6436 | |
---|
6437 | done |
---|
6438 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6439 | |
---|
6440 | fi |
---|
6441 | CXXCPP=$ac_cv_prog_CXXCPP |
---|
6442 | else |
---|
6443 | ac_cv_prog_CXXCPP=$CXXCPP |
---|
6444 | fi |
---|
6445 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
---|
6446 | echo "${ECHO_T}$CXXCPP" >&6; } |
---|
6447 | ac_preproc_ok=false |
---|
6448 | for ac_cxx_preproc_warn_flag in '' yes |
---|
6449 | do |
---|
6450 | # Use a header file that comes with gcc, so configuring glibc |
---|
6451 | # with a fresh cross-compiler works. |
---|
6452 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6453 | # <limits.h> exists even on freestanding compilers. |
---|
6454 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
6455 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
6456 | cat >conftest.$ac_ext <<_ACEOF |
---|
6457 | /* confdefs.h. */ |
---|
6458 | _ACEOF |
---|
6459 | cat confdefs.h >>conftest.$ac_ext |
---|
6460 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6461 | /* end confdefs.h. */ |
---|
6462 | #ifdef __STDC__ |
---|
6463 | # include <limits.h> |
---|
6464 | #else |
---|
6465 | # include <assert.h> |
---|
6466 | #endif |
---|
6467 | Syntax error |
---|
6468 | _ACEOF |
---|
6469 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
6470 | case "(($ac_try" in |
---|
6471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6472 | *) ac_try_echo=$ac_try;; |
---|
6473 | esac |
---|
6474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6475 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
6476 | ac_status=$? |
---|
6477 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6478 | rm -f conftest.er1 |
---|
6479 | cat conftest.err >&5 |
---|
6480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6481 | (exit $ac_status); } >/dev/null && { |
---|
6482 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
6483 | test ! -s conftest.err |
---|
6484 | }; then |
---|
6485 | : |
---|
6486 | else |
---|
6487 | echo "$as_me: failed program was:" >&5 |
---|
6488 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6489 | |
---|
6490 | # Broken: fails on valid input. |
---|
6491 | continue |
---|
6492 | fi |
---|
6493 | |
---|
6494 | rm -f conftest.err conftest.$ac_ext |
---|
6495 | |
---|
6496 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
6497 | # can be detected and how. |
---|
6498 | cat >conftest.$ac_ext <<_ACEOF |
---|
6499 | /* confdefs.h. */ |
---|
6500 | _ACEOF |
---|
6501 | cat confdefs.h >>conftest.$ac_ext |
---|
6502 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6503 | /* end confdefs.h. */ |
---|
6504 | #include <ac_nonexistent.h> |
---|
6505 | _ACEOF |
---|
6506 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
6507 | case "(($ac_try" in |
---|
6508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6509 | *) ac_try_echo=$ac_try;; |
---|
6510 | esac |
---|
6511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6512 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
6513 | ac_status=$? |
---|
6514 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6515 | rm -f conftest.er1 |
---|
6516 | cat conftest.err >&5 |
---|
6517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6518 | (exit $ac_status); } >/dev/null && { |
---|
6519 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
---|
6520 | test ! -s conftest.err |
---|
6521 | }; then |
---|
6522 | # Broken: success on invalid input. |
---|
6523 | continue |
---|
6524 | else |
---|
6525 | echo "$as_me: failed program was:" >&5 |
---|
6526 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6527 | |
---|
6528 | # Passes both tests. |
---|
6529 | ac_preproc_ok=: |
---|
6530 | break |
---|
6531 | fi |
---|
6532 | |
---|
6533 | rm -f conftest.err conftest.$ac_ext |
---|
6534 | |
---|
6535 | done |
---|
6536 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
6537 | rm -f conftest.err conftest.$ac_ext |
---|
6538 | if $ac_preproc_ok; then |
---|
6539 | : |
---|
6540 | else |
---|
6541 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6542 | See \`config.log' for more details." >&5 |
---|
6543 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
---|
6544 | See \`config.log' for more details." >&2;} |
---|
6545 | { (exit 1); exit 1; }; } |
---|
6546 | fi |
---|
6547 | |
---|
6548 | ac_ext=cpp |
---|
6549 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
6550 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6551 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6552 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
6553 | |
---|
6554 | fi |
---|
6555 | |
---|
6556 | |
---|
6557 | ac_ext=f |
---|
6558 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
6559 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6560 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
6561 | if test -n "$ac_tool_prefix"; then |
---|
6562 | 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 |
---|
6563 | do |
---|
6564 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
6565 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
6566 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
6568 | if test "${ac_cv_prog_F77+set}" = set; then |
---|
6569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6570 | else |
---|
6571 | if test -n "$F77"; then |
---|
6572 | ac_cv_prog_F77="$F77" # Let the user override the test. |
---|
6573 | else |
---|
6574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6575 | for as_dir in $PATH |
---|
6576 | do |
---|
6577 | IFS=$as_save_IFS |
---|
6578 | test -z "$as_dir" && as_dir=. |
---|
6579 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6580 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6581 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
---|
6582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6583 | break 2 |
---|
6584 | fi |
---|
6585 | done |
---|
6586 | done |
---|
6587 | IFS=$as_save_IFS |
---|
6588 | |
---|
6589 | fi |
---|
6590 | fi |
---|
6591 | F77=$ac_cv_prog_F77 |
---|
6592 | if test -n "$F77"; then |
---|
6593 | { echo "$as_me:$LINENO: result: $F77" >&5 |
---|
6594 | echo "${ECHO_T}$F77" >&6; } |
---|
6595 | else |
---|
6596 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
6597 | echo "${ECHO_T}no" >&6; } |
---|
6598 | fi |
---|
6599 | |
---|
6600 | |
---|
6601 | test -n "$F77" && break |
---|
6602 | done |
---|
6603 | fi |
---|
6604 | if test -z "$F77"; then |
---|
6605 | ac_ct_F77=$F77 |
---|
6606 | 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 |
---|
6607 | do |
---|
6608 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
6609 | set dummy $ac_prog; ac_word=$2 |
---|
6610 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
6611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
6612 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
---|
6613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6614 | else |
---|
6615 | if test -n "$ac_ct_F77"; then |
---|
6616 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
---|
6617 | else |
---|
6618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6619 | for as_dir in $PATH |
---|
6620 | do |
---|
6621 | IFS=$as_save_IFS |
---|
6622 | test -z "$as_dir" && as_dir=. |
---|
6623 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6625 | ac_cv_prog_ac_ct_F77="$ac_prog" |
---|
6626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6627 | break 2 |
---|
6628 | fi |
---|
6629 | done |
---|
6630 | done |
---|
6631 | IFS=$as_save_IFS |
---|
6632 | |
---|
6633 | fi |
---|
6634 | fi |
---|
6635 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
---|
6636 | if test -n "$ac_ct_F77"; then |
---|
6637 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
---|
6638 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
---|
6639 | else |
---|
6640 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
6641 | echo "${ECHO_T}no" >&6; } |
---|
6642 | fi |
---|
6643 | |
---|
6644 | |
---|
6645 | test -n "$ac_ct_F77" && break |
---|
6646 | done |
---|
6647 | |
---|
6648 | if test "x$ac_ct_F77" = x; then |
---|
6649 | F77="" |
---|
6650 | else |
---|
6651 | case $cross_compiling:$ac_tool_warned in |
---|
6652 | yes:) |
---|
6653 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
6654 | whose name does not start with the host triplet. If you think this |
---|
6655 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
6656 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
6657 | whose name does not start with the host triplet. If you think this |
---|
6658 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
6659 | ac_tool_warned=yes ;; |
---|
6660 | esac |
---|
6661 | F77=$ac_ct_F77 |
---|
6662 | fi |
---|
6663 | fi |
---|
6664 | |
---|
6665 | |
---|
6666 | # Provide some information about the compiler. |
---|
6667 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
---|
6668 | ac_compiler=`set X $ac_compile; echo $2` |
---|
6669 | { (ac_try="$ac_compiler --version >&5" |
---|
6670 | case "(($ac_try" in |
---|
6671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6672 | *) ac_try_echo=$ac_try;; |
---|
6673 | esac |
---|
6674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6675 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
6676 | ac_status=$? |
---|
6677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6678 | (exit $ac_status); } |
---|
6679 | { (ac_try="$ac_compiler -v >&5" |
---|
6680 | case "(($ac_try" in |
---|
6681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6682 | *) ac_try_echo=$ac_try;; |
---|
6683 | esac |
---|
6684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6685 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
6686 | ac_status=$? |
---|
6687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6688 | (exit $ac_status); } |
---|
6689 | { (ac_try="$ac_compiler -V >&5" |
---|
6690 | case "(($ac_try" in |
---|
6691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6692 | *) ac_try_echo=$ac_try;; |
---|
6693 | esac |
---|
6694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6695 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
6696 | ac_status=$? |
---|
6697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6698 | (exit $ac_status); } |
---|
6699 | rm -f a.out |
---|
6700 | |
---|
6701 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
6702 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
6703 | ac_save_ext=$ac_ext |
---|
6704 | ac_ext=F |
---|
6705 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
---|
6706 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
---|
6707 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
---|
6708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6709 | else |
---|
6710 | cat >conftest.$ac_ext <<_ACEOF |
---|
6711 | program main |
---|
6712 | #ifndef __GNUC__ |
---|
6713 | choke me |
---|
6714 | #endif |
---|
6715 | |
---|
6716 | end |
---|
6717 | _ACEOF |
---|
6718 | rm -f conftest.$ac_objext |
---|
6719 | if { (ac_try="$ac_compile" |
---|
6720 | case "(($ac_try" in |
---|
6721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6722 | *) ac_try_echo=$ac_try;; |
---|
6723 | esac |
---|
6724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6725 | (eval "$ac_compile") 2>conftest.er1 |
---|
6726 | ac_status=$? |
---|
6727 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6728 | rm -f conftest.er1 |
---|
6729 | cat conftest.err >&5 |
---|
6730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6731 | (exit $ac_status); } && { |
---|
6732 | test -z "$ac_f77_werror_flag" || |
---|
6733 | test ! -s conftest.err |
---|
6734 | } && test -s conftest.$ac_objext; then |
---|
6735 | ac_compiler_gnu=yes |
---|
6736 | else |
---|
6737 | echo "$as_me: failed program was:" >&5 |
---|
6738 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6739 | |
---|
6740 | ac_compiler_gnu=no |
---|
6741 | fi |
---|
6742 | |
---|
6743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6744 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
---|
6745 | |
---|
6746 | fi |
---|
6747 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
---|
6748 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
---|
6749 | ac_ext=$ac_save_ext |
---|
6750 | ac_test_FFLAGS=${FFLAGS+set} |
---|
6751 | ac_save_FFLAGS=$FFLAGS |
---|
6752 | FFLAGS= |
---|
6753 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
---|
6754 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
---|
6755 | if test "${ac_cv_prog_f77_g+set}" = set; then |
---|
6756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6757 | else |
---|
6758 | FFLAGS=-g |
---|
6759 | cat >conftest.$ac_ext <<_ACEOF |
---|
6760 | program main |
---|
6761 | |
---|
6762 | end |
---|
6763 | _ACEOF |
---|
6764 | rm -f conftest.$ac_objext |
---|
6765 | if { (ac_try="$ac_compile" |
---|
6766 | case "(($ac_try" in |
---|
6767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6768 | *) ac_try_echo=$ac_try;; |
---|
6769 | esac |
---|
6770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6771 | (eval "$ac_compile") 2>conftest.er1 |
---|
6772 | ac_status=$? |
---|
6773 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6774 | rm -f conftest.er1 |
---|
6775 | cat conftest.err >&5 |
---|
6776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6777 | (exit $ac_status); } && { |
---|
6778 | test -z "$ac_f77_werror_flag" || |
---|
6779 | test ! -s conftest.err |
---|
6780 | } && test -s conftest.$ac_objext; then |
---|
6781 | ac_cv_prog_f77_g=yes |
---|
6782 | else |
---|
6783 | echo "$as_me: failed program was:" >&5 |
---|
6784 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6785 | |
---|
6786 | ac_cv_prog_f77_g=no |
---|
6787 | fi |
---|
6788 | |
---|
6789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6790 | |
---|
6791 | fi |
---|
6792 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
---|
6793 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
---|
6794 | if test "$ac_test_FFLAGS" = set; then |
---|
6795 | FFLAGS=$ac_save_FFLAGS |
---|
6796 | elif test $ac_cv_prog_f77_g = yes; then |
---|
6797 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
6798 | FFLAGS="-g -O2" |
---|
6799 | else |
---|
6800 | FFLAGS="-g" |
---|
6801 | fi |
---|
6802 | else |
---|
6803 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
---|
6804 | FFLAGS="-O2" |
---|
6805 | else |
---|
6806 | FFLAGS= |
---|
6807 | fi |
---|
6808 | fi |
---|
6809 | |
---|
6810 | G77=`test $ac_compiler_gnu = yes && echo yes` |
---|
6811 | ac_ext=c |
---|
6812 | ac_cpp='$CPP $CPPFLAGS' |
---|
6813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6816 | |
---|
6817 | |
---|
6818 | |
---|
6819 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
---|
6820 | |
---|
6821 | # find the maximum length of command line arguments |
---|
6822 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
---|
6823 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
---|
6824 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
---|
6825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6826 | else |
---|
6827 | i=0 |
---|
6828 | teststring="ABCD" |
---|
6829 | |
---|
6830 | case $build_os in |
---|
6831 | msdosdjgpp*) |
---|
6832 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
---|
6833 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
---|
6834 | # during glob expansion). Even if it were fixed, the result of this |
---|
6835 | # check would be larger than it should be. |
---|
6836 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
---|
6837 | ;; |
---|
6838 | |
---|
6839 | gnu*) |
---|
6840 | # Under GNU Hurd, this test is not required because there is |
---|
6841 | # no limit to the length of command line arguments. |
---|
6842 | # Libtool will interpret -1 as no limit whatsoever |
---|
6843 | lt_cv_sys_max_cmd_len=-1; |
---|
6844 | ;; |
---|
6845 | |
---|
6846 | cygwin* | mingw*) |
---|
6847 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
---|
6848 | # about 5 minutes as the teststring grows exponentially. |
---|
6849 | # Worse, since 9x/ME are not pre-emptively multitasking, |
---|
6850 | # you end up with a "frozen" computer, even though with patience |
---|
6851 | # the test eventually succeeds (with a max line length of 256k). |
---|
6852 | # Instead, let's just punt: use the minimum linelength reported by |
---|
6853 | # all of the supported platforms: 8192 (on NT/2K/XP). |
---|
6854 | lt_cv_sys_max_cmd_len=8192; |
---|
6855 | ;; |
---|
6856 | |
---|
6857 | amigaos*) |
---|
6858 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
6859 | # So we just punt and use a minimum line length of 8192. |
---|
6860 | lt_cv_sys_max_cmd_len=8192; |
---|
6861 | ;; |
---|
6862 | |
---|
6863 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
6864 | # This has been around since 386BSD, at least. Likely further. |
---|
6865 | if test -x /sbin/sysctl; then |
---|
6866 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
6867 | elif test -x /usr/sbin/sysctl; then |
---|
6868 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
6869 | else |
---|
6870 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
6871 | fi |
---|
6872 | # And add a safety zone |
---|
6873 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
6874 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
6875 | ;; |
---|
6876 | osf*) |
---|
6877 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
6878 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
6879 | # nice to cause kernel panics so lets avoid the loop below. |
---|
6880 | # First set a reasonable default. |
---|
6881 | lt_cv_sys_max_cmd_len=16384 |
---|
6882 | # |
---|
6883 | if test -x /sbin/sysconfig; then |
---|
6884 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
6885 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
6886 | esac |
---|
6887 | fi |
---|
6888 | ;; |
---|
6889 | *) |
---|
6890 | # If test is not a shell built-in, we'll probably end up computing a |
---|
6891 | # maximum length that is only half of the actual maximum length, but |
---|
6892 | # we can't tell. |
---|
6893 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
6894 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
---|
6895 | = "XX$teststring") >/dev/null 2>&1 && |
---|
6896 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
---|
6897 | lt_cv_sys_max_cmd_len=$new_result && |
---|
6898 | test $i != 17 # 1/2 MB should be enough |
---|
6899 | do |
---|
6900 | i=`expr $i + 1` |
---|
6901 | teststring=$teststring$teststring |
---|
6902 | done |
---|
6903 | teststring= |
---|
6904 | # Add a significant safety factor because C++ compilers can tack on massive |
---|
6905 | # amounts of additional arguments before passing them to the linker. |
---|
6906 | # It appears as though 1/2 is a usable value. |
---|
6907 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
6908 | ;; |
---|
6909 | esac |
---|
6910 | |
---|
6911 | fi |
---|
6912 | |
---|
6913 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
6914 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
6915 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
---|
6916 | else |
---|
6917 | { echo "$as_me:$LINENO: result: none" >&5 |
---|
6918 | echo "${ECHO_T}none" >&6; } |
---|
6919 | fi |
---|
6920 | |
---|
6921 | |
---|
6922 | |
---|
6923 | |
---|
6924 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
6925 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
---|
6926 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
---|
6927 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
---|
6928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6929 | else |
---|
6930 | |
---|
6931 | # These are sane defaults that work on at least a few old systems. |
---|
6932 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
6933 | |
---|
6934 | # Character class describing NM global symbol codes. |
---|
6935 | symcode='[BCDEGRST]' |
---|
6936 | |
---|
6937 | # Regexp to match symbols that can be accessed directly from C. |
---|
6938 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
6939 | |
---|
6940 | # Transform an extracted symbol line into a proper C declaration |
---|
6941 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
---|
6942 | |
---|
6943 | # Transform an extracted symbol line into symbol name and symbol address |
---|
6944 | 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'" |
---|
6945 | |
---|
6946 | # Define system-specific variables. |
---|
6947 | case $host_os in |
---|
6948 | aix*) |
---|
6949 | symcode='[BCDT]' |
---|
6950 | ;; |
---|
6951 | cygwin* | mingw* | pw32*) |
---|
6952 | symcode='[ABCDGISTW]' |
---|
6953 | ;; |
---|
6954 | hpux*) # Its linker distinguishes data from code symbols |
---|
6955 | if test "$host_cpu" = ia64; then |
---|
6956 | symcode='[ABCDEGRST]' |
---|
6957 | fi |
---|
6958 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
6959 | 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'" |
---|
6960 | ;; |
---|
6961 | linux*) |
---|
6962 | if test "$host_cpu" = ia64; then |
---|
6963 | symcode='[ABCDGIRSTW]' |
---|
6964 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
6965 | 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'" |
---|
6966 | fi |
---|
6967 | ;; |
---|
6968 | irix* | nonstopux*) |
---|
6969 | symcode='[BCDEGRST]' |
---|
6970 | ;; |
---|
6971 | osf*) |
---|
6972 | symcode='[BCDEGQRST]' |
---|
6973 | ;; |
---|
6974 | solaris* | sysv5*) |
---|
6975 | symcode='[BDRT]' |
---|
6976 | ;; |
---|
6977 | sysv4) |
---|
6978 | symcode='[DFNSTU]' |
---|
6979 | ;; |
---|
6980 | esac |
---|
6981 | |
---|
6982 | # Handle CRLF in mingw tool chain |
---|
6983 | opt_cr= |
---|
6984 | case $build_os in |
---|
6985 | mingw*) |
---|
6986 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
6987 | ;; |
---|
6988 | esac |
---|
6989 | |
---|
6990 | # If we're using GNU nm, then use its standard symbol codes. |
---|
6991 | case `$NM -V 2>&1` in |
---|
6992 | *GNU* | *'with BFD'*) |
---|
6993 | symcode='[ABCDGIRSTW]' ;; |
---|
6994 | esac |
---|
6995 | |
---|
6996 | # Try without a prefix undercore, then with it. |
---|
6997 | for ac_symprfx in "" "_"; do |
---|
6998 | |
---|
6999 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
7000 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
7001 | |
---|
7002 | # Write the raw and C identifiers. |
---|
7003 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
7004 | |
---|
7005 | # Check to see that the pipe works correctly. |
---|
7006 | pipe_works=no |
---|
7007 | |
---|
7008 | rm -f conftest* |
---|
7009 | cat > conftest.$ac_ext <<EOF |
---|
7010 | #ifdef __cplusplus |
---|
7011 | extern "C" { |
---|
7012 | #endif |
---|
7013 | char nm_test_var; |
---|
7014 | void nm_test_func(){} |
---|
7015 | #ifdef __cplusplus |
---|
7016 | } |
---|
7017 | #endif |
---|
7018 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
7019 | EOF |
---|
7020 | |
---|
7021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7022 | (eval $ac_compile) 2>&5 |
---|
7023 | ac_status=$? |
---|
7024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7025 | (exit $ac_status); }; then |
---|
7026 | # Now try to grab the symbols. |
---|
7027 | nlist=conftest.nm |
---|
7028 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
---|
7029 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
---|
7030 | ac_status=$? |
---|
7031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7032 | (exit $ac_status); } && test -s "$nlist"; then |
---|
7033 | # Try sorting and uniquifying the output. |
---|
7034 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
7035 | mv -f "$nlist"T "$nlist" |
---|
7036 | else |
---|
7037 | rm -f "$nlist"T |
---|
7038 | fi |
---|
7039 | |
---|
7040 | # Make sure that we snagged all the symbols we need. |
---|
7041 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
---|
7042 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
---|
7043 | cat <<EOF > conftest.$ac_ext |
---|
7044 | #ifdef __cplusplus |
---|
7045 | extern "C" { |
---|
7046 | #endif |
---|
7047 | |
---|
7048 | EOF |
---|
7049 | # Now generate the symbol file. |
---|
7050 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
---|
7051 | |
---|
7052 | cat <<EOF >> conftest.$ac_ext |
---|
7053 | #if defined (__STDC__) && __STDC__ |
---|
7054 | # define lt_ptr_t void * |
---|
7055 | #else |
---|
7056 | # define lt_ptr_t char * |
---|
7057 | # define const |
---|
7058 | #endif |
---|
7059 | |
---|
7060 | /* The mapping between symbol names and symbols. */ |
---|
7061 | const struct { |
---|
7062 | const char *name; |
---|
7063 | lt_ptr_t address; |
---|
7064 | } |
---|
7065 | lt_preloaded_symbols[] = |
---|
7066 | { |
---|
7067 | EOF |
---|
7068 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
---|
7069 | cat <<\EOF >> conftest.$ac_ext |
---|
7070 | {0, (lt_ptr_t) 0} |
---|
7071 | }; |
---|
7072 | |
---|
7073 | #ifdef __cplusplus |
---|
7074 | } |
---|
7075 | #endif |
---|
7076 | EOF |
---|
7077 | # Now try linking the two files. |
---|
7078 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
7079 | lt_save_LIBS="$LIBS" |
---|
7080 | lt_save_CFLAGS="$CFLAGS" |
---|
7081 | LIBS="conftstm.$ac_objext" |
---|
7082 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
7083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7084 | (eval $ac_link) 2>&5 |
---|
7085 | ac_status=$? |
---|
7086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7087 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
---|
7088 | pipe_works=yes |
---|
7089 | fi |
---|
7090 | LIBS="$lt_save_LIBS" |
---|
7091 | CFLAGS="$lt_save_CFLAGS" |
---|
7092 | else |
---|
7093 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
7094 | fi |
---|
7095 | else |
---|
7096 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
7097 | fi |
---|
7098 | else |
---|
7099 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
7100 | fi |
---|
7101 | else |
---|
7102 | echo "$progname: failed program was:" >&5 |
---|
7103 | cat conftest.$ac_ext >&5 |
---|
7104 | fi |
---|
7105 | rm -f conftest* conftst* |
---|
7106 | |
---|
7107 | # Do not use the global_symbol_pipe unless it works. |
---|
7108 | if test "$pipe_works" = yes; then |
---|
7109 | break |
---|
7110 | else |
---|
7111 | lt_cv_sys_global_symbol_pipe= |
---|
7112 | fi |
---|
7113 | done |
---|
7114 | |
---|
7115 | fi |
---|
7116 | |
---|
7117 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
7118 | lt_cv_sys_global_symbol_to_cdecl= |
---|
7119 | fi |
---|
7120 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
7121 | { echo "$as_me:$LINENO: result: failed" >&5 |
---|
7122 | echo "${ECHO_T}failed" >&6; } |
---|
7123 | else |
---|
7124 | { echo "$as_me:$LINENO: result: ok" >&5 |
---|
7125 | echo "${ECHO_T}ok" >&6; } |
---|
7126 | fi |
---|
7127 | |
---|
7128 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
---|
7129 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
---|
7130 | if test "${lt_cv_objdir+set}" = set; then |
---|
7131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7132 | else |
---|
7133 | rm -f .libs 2>/dev/null |
---|
7134 | mkdir .libs 2>/dev/null |
---|
7135 | if test -d .libs; then |
---|
7136 | lt_cv_objdir=.libs |
---|
7137 | else |
---|
7138 | # MS-DOS does not allow filenames that begin with a dot. |
---|
7139 | lt_cv_objdir=_libs |
---|
7140 | fi |
---|
7141 | rmdir .libs 2>/dev/null |
---|
7142 | fi |
---|
7143 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
---|
7144 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
---|
7145 | objdir=$lt_cv_objdir |
---|
7146 | |
---|
7147 | |
---|
7148 | |
---|
7149 | |
---|
7150 | |
---|
7151 | case $host_os in |
---|
7152 | aix3*) |
---|
7153 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
7154 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
7155 | # vanish in a puff of smoke. |
---|
7156 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
7157 | COLLECT_NAMES= |
---|
7158 | export COLLECT_NAMES |
---|
7159 | fi |
---|
7160 | ;; |
---|
7161 | esac |
---|
7162 | |
---|
7163 | # Sed substitution that helps us do robust quoting. It backslashifies |
---|
7164 | # metacharacters that are still active within double-quoted strings. |
---|
7165 | Xsed='sed -e 1s/^X//' |
---|
7166 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
---|
7167 | |
---|
7168 | # Same as above, but do not quote variable references. |
---|
7169 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
---|
7170 | |
---|
7171 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
7172 | # double_quote_subst'ed string. |
---|
7173 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
7174 | |
---|
7175 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
7176 | no_glob_subst='s/\*/\\\*/g' |
---|
7177 | |
---|
7178 | # Constants: |
---|
7179 | rm="rm -f" |
---|
7180 | |
---|
7181 | # Global variables: |
---|
7182 | default_ofile=libtool |
---|
7183 | can_build_shared=yes |
---|
7184 | |
---|
7185 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
7186 | # which needs '.lib'). |
---|
7187 | libext=a |
---|
7188 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
7189 | ofile="$default_ofile" |
---|
7190 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
7191 | |
---|
7192 | if test -n "$ac_tool_prefix"; then |
---|
7193 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
---|
7194 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
---|
7195 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7197 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
7198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7199 | else |
---|
7200 | if test -n "$AR"; then |
---|
7201 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
7202 | else |
---|
7203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7204 | for as_dir in $PATH |
---|
7205 | do |
---|
7206 | IFS=$as_save_IFS |
---|
7207 | test -z "$as_dir" && as_dir=. |
---|
7208 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7210 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
---|
7211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7212 | break 2 |
---|
7213 | fi |
---|
7214 | done |
---|
7215 | done |
---|
7216 | IFS=$as_save_IFS |
---|
7217 | |
---|
7218 | fi |
---|
7219 | fi |
---|
7220 | AR=$ac_cv_prog_AR |
---|
7221 | if test -n "$AR"; then |
---|
7222 | { echo "$as_me:$LINENO: result: $AR" >&5 |
---|
7223 | echo "${ECHO_T}$AR" >&6; } |
---|
7224 | else |
---|
7225 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7226 | echo "${ECHO_T}no" >&6; } |
---|
7227 | fi |
---|
7228 | |
---|
7229 | |
---|
7230 | fi |
---|
7231 | if test -z "$ac_cv_prog_AR"; then |
---|
7232 | ac_ct_AR=$AR |
---|
7233 | # Extract the first word of "ar", so it can be a program name with args. |
---|
7234 | set dummy ar; ac_word=$2 |
---|
7235 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7237 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
7238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7239 | else |
---|
7240 | if test -n "$ac_ct_AR"; then |
---|
7241 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
7242 | else |
---|
7243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7244 | for as_dir in $PATH |
---|
7245 | do |
---|
7246 | IFS=$as_save_IFS |
---|
7247 | test -z "$as_dir" && as_dir=. |
---|
7248 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7250 | ac_cv_prog_ac_ct_AR="ar" |
---|
7251 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7252 | break 2 |
---|
7253 | fi |
---|
7254 | done |
---|
7255 | done |
---|
7256 | IFS=$as_save_IFS |
---|
7257 | |
---|
7258 | fi |
---|
7259 | fi |
---|
7260 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
7261 | if test -n "$ac_ct_AR"; then |
---|
7262 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
7263 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
---|
7264 | else |
---|
7265 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7266 | echo "${ECHO_T}no" >&6; } |
---|
7267 | fi |
---|
7268 | |
---|
7269 | if test "x$ac_ct_AR" = x; then |
---|
7270 | AR="false" |
---|
7271 | else |
---|
7272 | case $cross_compiling:$ac_tool_warned in |
---|
7273 | yes:) |
---|
7274 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7275 | whose name does not start with the host triplet. If you think this |
---|
7276 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
7277 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7278 | whose name does not start with the host triplet. If you think this |
---|
7279 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
7280 | ac_tool_warned=yes ;; |
---|
7281 | esac |
---|
7282 | AR=$ac_ct_AR |
---|
7283 | fi |
---|
7284 | else |
---|
7285 | AR="$ac_cv_prog_AR" |
---|
7286 | fi |
---|
7287 | |
---|
7288 | if test -n "$ac_tool_prefix"; then |
---|
7289 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
7290 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
7291 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7293 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
7294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7295 | else |
---|
7296 | if test -n "$RANLIB"; then |
---|
7297 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
7298 | else |
---|
7299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7300 | for as_dir in $PATH |
---|
7301 | do |
---|
7302 | IFS=$as_save_IFS |
---|
7303 | test -z "$as_dir" && as_dir=. |
---|
7304 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7306 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
7307 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7308 | break 2 |
---|
7309 | fi |
---|
7310 | done |
---|
7311 | done |
---|
7312 | IFS=$as_save_IFS |
---|
7313 | |
---|
7314 | fi |
---|
7315 | fi |
---|
7316 | RANLIB=$ac_cv_prog_RANLIB |
---|
7317 | if test -n "$RANLIB"; then |
---|
7318 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
7319 | echo "${ECHO_T}$RANLIB" >&6; } |
---|
7320 | else |
---|
7321 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7322 | echo "${ECHO_T}no" >&6; } |
---|
7323 | fi |
---|
7324 | |
---|
7325 | |
---|
7326 | fi |
---|
7327 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
7328 | ac_ct_RANLIB=$RANLIB |
---|
7329 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
7330 | set dummy ranlib; ac_word=$2 |
---|
7331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7333 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
7334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7335 | else |
---|
7336 | if test -n "$ac_ct_RANLIB"; then |
---|
7337 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
7338 | else |
---|
7339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7340 | for as_dir in $PATH |
---|
7341 | do |
---|
7342 | IFS=$as_save_IFS |
---|
7343 | test -z "$as_dir" && as_dir=. |
---|
7344 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7346 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
7347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7348 | break 2 |
---|
7349 | fi |
---|
7350 | done |
---|
7351 | done |
---|
7352 | IFS=$as_save_IFS |
---|
7353 | |
---|
7354 | fi |
---|
7355 | fi |
---|
7356 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
7357 | if test -n "$ac_ct_RANLIB"; then |
---|
7358 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
7359 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
---|
7360 | else |
---|
7361 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7362 | echo "${ECHO_T}no" >&6; } |
---|
7363 | fi |
---|
7364 | |
---|
7365 | if test "x$ac_ct_RANLIB" = x; then |
---|
7366 | RANLIB=":" |
---|
7367 | else |
---|
7368 | case $cross_compiling:$ac_tool_warned in |
---|
7369 | yes:) |
---|
7370 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7371 | whose name does not start with the host triplet. If you think this |
---|
7372 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
7373 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7374 | whose name does not start with the host triplet. If you think this |
---|
7375 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
7376 | ac_tool_warned=yes ;; |
---|
7377 | esac |
---|
7378 | RANLIB=$ac_ct_RANLIB |
---|
7379 | fi |
---|
7380 | else |
---|
7381 | RANLIB="$ac_cv_prog_RANLIB" |
---|
7382 | fi |
---|
7383 | |
---|
7384 | if test -n "$ac_tool_prefix"; then |
---|
7385 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
7386 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
7387 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7388 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7389 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
7390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7391 | else |
---|
7392 | if test -n "$STRIP"; then |
---|
7393 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
7394 | else |
---|
7395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7396 | for as_dir in $PATH |
---|
7397 | do |
---|
7398 | IFS=$as_save_IFS |
---|
7399 | test -z "$as_dir" && as_dir=. |
---|
7400 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7402 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
7403 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7404 | break 2 |
---|
7405 | fi |
---|
7406 | done |
---|
7407 | done |
---|
7408 | IFS=$as_save_IFS |
---|
7409 | |
---|
7410 | fi |
---|
7411 | fi |
---|
7412 | STRIP=$ac_cv_prog_STRIP |
---|
7413 | if test -n "$STRIP"; then |
---|
7414 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
7415 | echo "${ECHO_T}$STRIP" >&6; } |
---|
7416 | else |
---|
7417 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7418 | echo "${ECHO_T}no" >&6; } |
---|
7419 | fi |
---|
7420 | |
---|
7421 | |
---|
7422 | fi |
---|
7423 | if test -z "$ac_cv_prog_STRIP"; then |
---|
7424 | ac_ct_STRIP=$STRIP |
---|
7425 | # Extract the first word of "strip", so it can be a program name with args. |
---|
7426 | set dummy strip; ac_word=$2 |
---|
7427 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7429 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
7430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7431 | else |
---|
7432 | if test -n "$ac_ct_STRIP"; then |
---|
7433 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
7434 | else |
---|
7435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7436 | for as_dir in $PATH |
---|
7437 | do |
---|
7438 | IFS=$as_save_IFS |
---|
7439 | test -z "$as_dir" && as_dir=. |
---|
7440 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7442 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
7443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7444 | break 2 |
---|
7445 | fi |
---|
7446 | done |
---|
7447 | done |
---|
7448 | IFS=$as_save_IFS |
---|
7449 | |
---|
7450 | fi |
---|
7451 | fi |
---|
7452 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
7453 | if test -n "$ac_ct_STRIP"; then |
---|
7454 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
7455 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
---|
7456 | else |
---|
7457 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7458 | echo "${ECHO_T}no" >&6; } |
---|
7459 | fi |
---|
7460 | |
---|
7461 | if test "x$ac_ct_STRIP" = x; then |
---|
7462 | STRIP=":" |
---|
7463 | else |
---|
7464 | case $cross_compiling:$ac_tool_warned in |
---|
7465 | yes:) |
---|
7466 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7467 | whose name does not start with the host triplet. If you think this |
---|
7468 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
7469 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
7470 | whose name does not start with the host triplet. If you think this |
---|
7471 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
7472 | ac_tool_warned=yes ;; |
---|
7473 | esac |
---|
7474 | STRIP=$ac_ct_STRIP |
---|
7475 | fi |
---|
7476 | else |
---|
7477 | STRIP="$ac_cv_prog_STRIP" |
---|
7478 | fi |
---|
7479 | |
---|
7480 | |
---|
7481 | old_CC="$CC" |
---|
7482 | old_CFLAGS="$CFLAGS" |
---|
7483 | |
---|
7484 | # Set sane defaults for various variables |
---|
7485 | test -z "$AR" && AR=ar |
---|
7486 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
---|
7487 | test -z "$AS" && AS=as |
---|
7488 | test -z "$CC" && CC=cc |
---|
7489 | test -z "$LTCC" && LTCC=$CC |
---|
7490 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
7491 | test -z "$LD" && LD=ld |
---|
7492 | test -z "$LN_S" && LN_S="ln -s" |
---|
7493 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
7494 | test -z "$NM" && NM=nm |
---|
7495 | test -z "$SED" && SED=sed |
---|
7496 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
7497 | test -z "$RANLIB" && RANLIB=: |
---|
7498 | test -z "$STRIP" && STRIP=: |
---|
7499 | test -z "$ac_objext" && ac_objext=o |
---|
7500 | |
---|
7501 | # Determine commands to create old-style static archives. |
---|
7502 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
---|
7503 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
7504 | old_postuninstall_cmds= |
---|
7505 | |
---|
7506 | if test -n "$RANLIB"; then |
---|
7507 | case $host_os in |
---|
7508 | openbsd*) |
---|
7509 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
---|
7510 | ;; |
---|
7511 | *) |
---|
7512 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
---|
7513 | ;; |
---|
7514 | esac |
---|
7515 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
7516 | fi |
---|
7517 | |
---|
7518 | for cc_temp in $compiler""; do |
---|
7519 | case $cc_temp in |
---|
7520 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
7521 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
7522 | \-*) ;; |
---|
7523 | *) break;; |
---|
7524 | esac |
---|
7525 | done |
---|
7526 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
7527 | |
---|
7528 | |
---|
7529 | # Only perform the check for file, if the check method requires it |
---|
7530 | case $deplibs_check_method in |
---|
7531 | file_magic*) |
---|
7532 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
7533 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
---|
7534 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
---|
7535 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7537 | else |
---|
7538 | case $MAGIC_CMD in |
---|
7539 | [\\/*] | ?:[\\/]*) |
---|
7540 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7541 | ;; |
---|
7542 | *) |
---|
7543 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7544 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7545 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7546 | for ac_dir in $ac_dummy; do |
---|
7547 | IFS="$lt_save_ifs" |
---|
7548 | test -z "$ac_dir" && ac_dir=. |
---|
7549 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
7550 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
7551 | if test -n "$file_magic_test_file"; then |
---|
7552 | case $deplibs_check_method in |
---|
7553 | "file_magic "*) |
---|
7554 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7555 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7556 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7557 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7558 | : |
---|
7559 | else |
---|
7560 | cat <<EOF 1>&2 |
---|
7561 | |
---|
7562 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7563 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7564 | *** The result is that libtool may fail to recognize shared libraries |
---|
7565 | *** as such. This will affect the creation of libtool libraries that |
---|
7566 | *** depend on shared libraries, but programs linked with such libtool |
---|
7567 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7568 | *** may want to report the problem to your system manager and/or to |
---|
7569 | *** bug-libtool@gnu.org |
---|
7570 | |
---|
7571 | EOF |
---|
7572 | fi ;; |
---|
7573 | esac |
---|
7574 | fi |
---|
7575 | break |
---|
7576 | fi |
---|
7577 | done |
---|
7578 | IFS="$lt_save_ifs" |
---|
7579 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7580 | ;; |
---|
7581 | esac |
---|
7582 | fi |
---|
7583 | |
---|
7584 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7585 | if test -n "$MAGIC_CMD"; then |
---|
7586 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7587 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
---|
7588 | else |
---|
7589 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7590 | echo "${ECHO_T}no" >&6; } |
---|
7591 | fi |
---|
7592 | |
---|
7593 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
7594 | if test -n "$ac_tool_prefix"; then |
---|
7595 | { echo "$as_me:$LINENO: checking for file" >&5 |
---|
7596 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
---|
7597 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
---|
7598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7599 | else |
---|
7600 | case $MAGIC_CMD in |
---|
7601 | [\\/*] | ?:[\\/]*) |
---|
7602 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7603 | ;; |
---|
7604 | *) |
---|
7605 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7606 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7607 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7608 | for ac_dir in $ac_dummy; do |
---|
7609 | IFS="$lt_save_ifs" |
---|
7610 | test -z "$ac_dir" && ac_dir=. |
---|
7611 | if test -f $ac_dir/file; then |
---|
7612 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
7613 | if test -n "$file_magic_test_file"; then |
---|
7614 | case $deplibs_check_method in |
---|
7615 | "file_magic "*) |
---|
7616 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7617 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7618 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7619 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7620 | : |
---|
7621 | else |
---|
7622 | cat <<EOF 1>&2 |
---|
7623 | |
---|
7624 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7625 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7626 | *** The result is that libtool may fail to recognize shared libraries |
---|
7627 | *** as such. This will affect the creation of libtool libraries that |
---|
7628 | *** depend on shared libraries, but programs linked with such libtool |
---|
7629 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7630 | *** may want to report the problem to your system manager and/or to |
---|
7631 | *** bug-libtool@gnu.org |
---|
7632 | |
---|
7633 | EOF |
---|
7634 | fi ;; |
---|
7635 | esac |
---|
7636 | fi |
---|
7637 | break |
---|
7638 | fi |
---|
7639 | done |
---|
7640 | IFS="$lt_save_ifs" |
---|
7641 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7642 | ;; |
---|
7643 | esac |
---|
7644 | fi |
---|
7645 | |
---|
7646 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7647 | if test -n "$MAGIC_CMD"; then |
---|
7648 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
---|
7649 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
---|
7650 | else |
---|
7651 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7652 | echo "${ECHO_T}no" >&6; } |
---|
7653 | fi |
---|
7654 | |
---|
7655 | else |
---|
7656 | MAGIC_CMD=: |
---|
7657 | fi |
---|
7658 | fi |
---|
7659 | |
---|
7660 | fi |
---|
7661 | ;; |
---|
7662 | esac |
---|
7663 | |
---|
7664 | enable_dlopen=no |
---|
7665 | enable_win32_dll=no |
---|
7666 | |
---|
7667 | # Check whether --enable-libtool-lock was given. |
---|
7668 | if test "${enable_libtool_lock+set}" = set; then |
---|
7669 | enableval=$enable_libtool_lock; |
---|
7670 | fi |
---|
7671 | |
---|
7672 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
7673 | |
---|
7674 | |
---|
7675 | # Check whether --with-pic was given. |
---|
7676 | if test "${with_pic+set}" = set; then |
---|
7677 | withval=$with_pic; pic_mode="$withval" |
---|
7678 | else |
---|
7679 | pic_mode=default |
---|
7680 | fi |
---|
7681 | |
---|
7682 | test -z "$pic_mode" && pic_mode=default |
---|
7683 | |
---|
7684 | # Use C for the default configuration in the libtool script |
---|
7685 | tagname= |
---|
7686 | lt_save_CC="$CC" |
---|
7687 | ac_ext=c |
---|
7688 | ac_cpp='$CPP $CPPFLAGS' |
---|
7689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7692 | |
---|
7693 | |
---|
7694 | # Source file extension for C test sources. |
---|
7695 | ac_ext=c |
---|
7696 | |
---|
7697 | # Object file extension for compiled C test sources. |
---|
7698 | objext=o |
---|
7699 | objext=$objext |
---|
7700 | |
---|
7701 | # Code to be used in simple compile tests |
---|
7702 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
7703 | |
---|
7704 | # Code to be used in simple link tests |
---|
7705 | lt_simple_link_test_code='int main(){return(0);}\n' |
---|
7706 | |
---|
7707 | |
---|
7708 | # If no C compiler was specified, use CC. |
---|
7709 | LTCC=${LTCC-"$CC"} |
---|
7710 | |
---|
7711 | # Allow CC to be a program name with arguments. |
---|
7712 | compiler=$CC |
---|
7713 | |
---|
7714 | |
---|
7715 | # save warnings/boilerplate of simple test code |
---|
7716 | ac_outfile=conftest.$ac_objext |
---|
7717 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
7718 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
7719 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
7720 | $rm conftest* |
---|
7721 | |
---|
7722 | ac_outfile=conftest.$ac_objext |
---|
7723 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
7724 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
7725 | _lt_linker_boilerplate=`cat conftest.err` |
---|
7726 | $rm conftest* |
---|
7727 | |
---|
7728 | |
---|
7729 | # |
---|
7730 | # Check for any special shared library compilation flags. |
---|
7731 | # |
---|
7732 | lt_prog_cc_shlib= |
---|
7733 | if test "$GCC" = no; then |
---|
7734 | case $host_os in |
---|
7735 | sco3.2v5*) |
---|
7736 | lt_prog_cc_shlib='-belf' |
---|
7737 | ;; |
---|
7738 | esac |
---|
7739 | fi |
---|
7740 | if test -n "$lt_prog_cc_shlib"; then |
---|
7741 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
---|
7742 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
---|
7743 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
---|
7744 | else |
---|
7745 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
---|
7746 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
---|
7747 | lt_cv_prog_cc_can_build_shared=no |
---|
7748 | fi |
---|
7749 | fi |
---|
7750 | |
---|
7751 | |
---|
7752 | # |
---|
7753 | # Check to make sure the static flag actually works. |
---|
7754 | # |
---|
7755 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
---|
7756 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; } |
---|
7757 | if test "${lt_prog_compiler_static_works+set}" = set; then |
---|
7758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7759 | else |
---|
7760 | lt_prog_compiler_static_works=no |
---|
7761 | save_LDFLAGS="$LDFLAGS" |
---|
7762 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
---|
7763 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
7764 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
7765 | # The linker can only warn and ignore the option if not recognized |
---|
7766 | # So say no if there are warnings |
---|
7767 | if test -s conftest.err; then |
---|
7768 | # Append any errors to the config.log. |
---|
7769 | cat conftest.err 1>&5 |
---|
7770 | $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp |
---|
7771 | $SED '/^$/d' conftest.err >conftest.er2 |
---|
7772 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
7773 | lt_prog_compiler_static_works=yes |
---|
7774 | fi |
---|
7775 | else |
---|
7776 | lt_prog_compiler_static_works=yes |
---|
7777 | fi |
---|
7778 | fi |
---|
7779 | $rm conftest* |
---|
7780 | LDFLAGS="$save_LDFLAGS" |
---|
7781 | |
---|
7782 | fi |
---|
7783 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
---|
7784 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
---|
7785 | |
---|
7786 | if test x"$lt_prog_compiler_static_works" = xyes; then |
---|
7787 | : |
---|
7788 | else |
---|
7789 | lt_prog_compiler_static= |
---|
7790 | fi |
---|
7791 | |
---|
7792 | |
---|
7793 | |
---|
7794 | |
---|
7795 | lt_prog_compiler_no_builtin_flag= |
---|
7796 | |
---|
7797 | if test "$GCC" = yes; then |
---|
7798 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
---|
7799 | |
---|
7800 | |
---|
7801 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
7802 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
---|
7803 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
7804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7805 | else |
---|
7806 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
7807 | ac_outfile=conftest.$ac_objext |
---|
7808 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7809 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
7810 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7811 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7812 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7813 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7814 | # The option is referenced via a variable to avoid confusing sed. |
---|
7815 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7816 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
7817 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7818 | -e 's:$: $lt_compiler_flag:'` |
---|
7819 | (eval echo "\"\$as_me:7819: $lt_compile\"" >&5) |
---|
7820 | (eval "$lt_compile" 2>conftest.err) |
---|
7821 | ac_status=$? |
---|
7822 | cat conftest.err >&5 |
---|
7823 | echo "$as_me:7823: \$? = $ac_status" >&5 |
---|
7824 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
7825 | # The compiler can only warn and ignore the option if not recognized |
---|
7826 | # So say no if there are warnings other than the usual output. |
---|
7827 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
---|
7828 | $SED '/^$/d' conftest.err >conftest.er2 |
---|
7829 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
---|
7830 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
7831 | fi |
---|
7832 | fi |
---|
7833 | $rm conftest* |
---|
7834 | |
---|
7835 | fi |
---|
7836 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
7837 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
---|
7838 | |
---|
7839 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
7840 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
7841 | else |
---|
7842 | : |
---|
7843 | fi |
---|
7844 | |
---|
7845 | fi |
---|
7846 | |
---|
7847 | lt_prog_compiler_wl= |
---|
7848 | lt_prog_compiler_pic= |
---|
7849 | lt_prog_compiler_static= |
---|
7850 | |
---|
7851 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
7852 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
---|
7853 | |
---|
7854 | if test "$GCC" = yes; then |
---|
7855 | lt_prog_compiler_wl='-Wl,' |
---|
7856 | lt_prog_compiler_static='-static' |
---|
7857 | |
---|
7858 | case $host_os in |
---|
7859 | aix*) |
---|
7860 | # All AIX code is PIC. |
---|
7861 | if test "$host_cpu" = ia64; then |
---|
7862 | # AIX 5 now supports IA64 processor |
---|
7863 | lt_prog_compiler_static='-Bstatic' |
---|
7864 | fi |
---|
7865 | ;; |
---|
7866 | |
---|
7867 | amigaos*) |
---|
7868 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
7869 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
7870 | # like `-m68040'. |
---|
7871 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
7872 | ;; |
---|
7873 | |
---|
7874 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
7875 | # PIC is the default for these OSes. |
---|
7876 | ;; |
---|
7877 | |
---|
7878 | mingw* | pw32* | os2*) |
---|
7879 | # This hack is so that the source file can tell whether it is being |
---|
7880 | # built for inclusion in a dll (and should export symbols for example). |
---|
7881 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7882 | ;; |
---|
7883 | |
---|
7884 | darwin* | rhapsody*) |
---|
7885 | # PIC is the default on this platform |
---|
7886 | # Common symbols not allowed in MH_DYLIB files |
---|
7887 | lt_prog_compiler_pic='-fno-common' |
---|
7888 | ;; |
---|
7889 | |
---|
7890 | msdosdjgpp*) |
---|
7891 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
7892 | # on systems that don't support them. |
---|
7893 | lt_prog_compiler_can_build_shared=no |
---|
7894 | enable_shared=no |
---|
7895 | ;; |
---|
7896 | |
---|
7897 | sysv4*MP*) |
---|
7898 | if test -d /usr/nec; then |
---|
7899 | lt_prog_compiler_pic=-Kconform_pic |
---|
7900 | fi |
---|
7901 | ;; |
---|
7902 | |
---|
7903 | hpux*) |
---|
7904 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7905 | # not for PA HP-UX. |
---|
7906 | case $host_cpu in |
---|
7907 | hppa*64*|ia64*) |
---|
7908 | # +Z the default |
---|
7909 | ;; |
---|
7910 | *) |
---|
7911 | lt_prog_compiler_pic='-fPIC' |
---|
7912 | ;; |
---|
7913 | esac |
---|
7914 | ;; |
---|
7915 | |
---|
7916 | *) |
---|
7917 | lt_prog_compiler_pic='-fPIC' |
---|
7918 | ;; |
---|
7919 | esac |
---|
7920 | else |
---|
7921 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
7922 | case $host_os in |
---|
7923 | aix*) |
---|
7924 | lt_prog_compiler_wl='-Wl,' |
---|
7925 | if test "$host_cpu" = ia64; then |
---|
7926 | # AIX 5 now supports IA64 processor |
---|
7927 | lt_prog_compiler_static='-Bstatic' |
---|
7928 | else |
---|
7929 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
7930 | fi |
---|
7931 | ;; |
---|
7932 | darwin*) |
---|
7933 | # PIC is the default on this platform |
---|
7934 | # Common symbols not allowed in MH_DYLIB files |
---|
7935 | case $cc_basename in |
---|
7936 | xlc*) |
---|
7937 | lt_prog_compiler_pic='-qnocommon' |
---|
7938 | lt_prog_compiler_wl='-Wl,' |
---|
7939 | ;; |
---|
7940 | esac |
---|
7941 | ;; |
---|
7942 | |
---|
7943 | mingw* | pw32* | os2*) |
---|
7944 | # This hack is so that the source file can tell whether it is being |
---|
7945 | # built for inclusion in a dll (and should export symbols for example). |
---|
7946 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7947 | ;; |
---|
7948 | |
---|
7949 | hpux9* | hpux10* | hpux11*) |
---|
7950 | lt_prog_compiler_wl='-Wl,' |
---|
7951 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
7952 | # not for PA HP-UX. |
---|
7953 | case $host_cpu in |
---|
7954 | hppa*64*|ia64*) |
---|
7955 | # +Z the default |
---|
7956 | ;; |
---|
7957 | *) |
---|
7958 | lt_prog_compiler_pic='+Z' |
---|
7959 | ;; |
---|
7960 | esac |
---|
7961 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
7962 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
7963 | ;; |
---|
7964 | |
---|
7965 | irix5* | irix6* | nonstopux*) |
---|
7966 | lt_prog_compiler_wl='-Wl,' |
---|
7967 | # PIC (with -KPIC) is the default. |
---|
7968 | lt_prog_compiler_static='-non_shared' |
---|
7969 | ;; |
---|
7970 | |
---|
7971 | newsos6) |
---|
7972 | lt_prog_compiler_pic='-KPIC' |
---|
7973 | lt_prog_compiler_static='-Bstatic' |
---|
7974 | ;; |
---|
7975 | |
---|
7976 | linux*) |
---|
7977 | case $cc_basename in |
---|
7978 | icc* | ecc*) |
---|
7979 | lt_prog_compiler_wl='-Wl,' |
---|
7980 | lt_prog_compiler_pic='-KPIC' |
---|
7981 | lt_prog_compiler_static='-static' |
---|
7982 | ;; |
---|
7983 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
7984 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
7985 | # which looks to be a dead project) |
---|
7986 | lt_prog_compiler_wl='-Wl,' |
---|
7987 | lt_prog_compiler_pic='-fpic' |
---|
7988 | lt_prog_compiler_static='-Bstatic' |
---|
7989 | ;; |
---|
7990 | ccc*) |
---|
7991 | lt_prog_compiler_wl='-Wl,' |
---|
7992 | # All Alpha code is PIC. |
---|
7993 | lt_prog_compiler_static='-non_shared' |
---|
7994 | ;; |
---|
7995 | esac |
---|
7996 | ;; |
---|
7997 | |
---|
7998 | osf3* | osf4* | osf5*) |
---|
7999 | lt_prog_compiler_wl='-Wl,' |
---|
8000 | # All OSF/1 code is PIC. |
---|
8001 | lt_prog_compiler_static='-non_shared' |
---|
8002 | ;; |
---|
8003 | |
---|
8004 | sco3.2v5*) |
---|
8005 | lt_prog_compiler_pic='-Kpic' |
---|
8006 | lt_prog_compiler_static='-dn' |
---|
8007 | ;; |
---|
8008 | |
---|
8009 | solaris*) |
---|
8010 | lt_prog_compiler_pic='-KPIC' |
---|
8011 | lt_prog_compiler_static='-Bstatic' |
---|
8012 | case $cc_basename in |
---|
8013 | f77* | f90* | f95*) |
---|
8014 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
8015 | *) |
---|
8016 | lt_prog_compiler_wl='-Wl,';; |
---|
8017 | esac |
---|
8018 | ;; |
---|
8019 | |
---|
8020 | sunos4*) |
---|
8021 | lt_prog_compiler_wl='-Qoption ld ' |
---|
8022 | lt_prog_compiler_pic='-PIC' |
---|
8023 | lt_prog_compiler_static='-Bstatic' |
---|
8024 | ;; |
---|
8025 | |
---|
8026 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
8027 | lt_prog_compiler_wl='-Wl,' |
---|
8028 | lt_prog_compiler_pic='-KPIC' |
---|
8029 | lt_prog_compiler_static='-Bstatic' |
---|
8030 | ;; |
---|
8031 | |
---|
8032 | sysv4*MP*) |
---|
8033 | if test -d /usr/nec ;then |
---|
8034 | lt_prog_compiler_pic='-Kconform_pic' |
---|
8035 | lt_prog_compiler_static='-Bstatic' |
---|
8036 | fi |
---|
8037 | ;; |
---|
8038 | |
---|
8039 | unicos*) |
---|
8040 | lt_prog_compiler_wl='-Wl,' |
---|
8041 | lt_prog_compiler_can_build_shared=no |
---|
8042 | ;; |
---|
8043 | |
---|
8044 | uts4*) |
---|
8045 | lt_prog_compiler_pic='-pic' |
---|
8046 | lt_prog_compiler_static='-Bstatic' |
---|
8047 | ;; |
---|
8048 | |
---|
8049 | *) |
---|
8050 | lt_prog_compiler_can_build_shared=no |
---|
8051 | ;; |
---|
8052 | esac |
---|
8053 | fi |
---|
8054 | |
---|
8055 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
---|
8056 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
---|
8057 | |
---|
8058 | # |
---|
8059 | # Check to make sure the PIC flag actually works. |
---|
8060 | # |
---|
8061 | if test -n "$lt_prog_compiler_pic"; then |
---|
8062 | |
---|
8063 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
8064 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
---|
8065 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
---|
8066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8067 | else |
---|
8068 | lt_prog_compiler_pic_works=no |
---|
8069 | ac_outfile=conftest.$ac_objext |
---|
8070 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8071 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
8072 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8073 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8074 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8075 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8076 | # The option is referenced via a variable to avoid confusing sed. |
---|
8077 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8078 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8079 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8080 | -e 's:$: $lt_compiler_flag:'` |
---|
8081 | (eval echo "\"\$as_me:8081: $lt_compile\"" >&5) |
---|
8082 | (eval "$lt_compile" 2>conftest.err) |
---|
8083 | ac_status=$? |
---|
8084 | cat conftest.err >&5 |
---|
8085 | echo "$as_me:8085: \$? = $ac_status" >&5 |
---|
8086 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
8087 | # The compiler can only warn and ignore the option if not recognized |
---|
8088 | # So say no if there are warnings other than the usual output. |
---|
8089 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
---|
8090 | $SED '/^$/d' conftest.err >conftest.er2 |
---|
8091 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
---|
8092 | lt_prog_compiler_pic_works=yes |
---|
8093 | fi |
---|
8094 | fi |
---|
8095 | $rm conftest* |
---|
8096 | |
---|
8097 | fi |
---|
8098 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
---|
8099 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
---|
8100 | |
---|
8101 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
---|
8102 | case $lt_prog_compiler_pic in |
---|
8103 | "" | " "*) ;; |
---|
8104 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
8105 | esac |
---|
8106 | else |
---|
8107 | lt_prog_compiler_pic= |
---|
8108 | lt_prog_compiler_can_build_shared=no |
---|
8109 | fi |
---|
8110 | |
---|
8111 | fi |
---|
8112 | case $host_os in |
---|
8113 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
8114 | *djgpp*) |
---|
8115 | lt_prog_compiler_pic= |
---|
8116 | ;; |
---|
8117 | *) |
---|
8118 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
8119 | ;; |
---|
8120 | esac |
---|
8121 | |
---|
8122 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
8123 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
---|
8124 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
---|
8125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8126 | else |
---|
8127 | lt_cv_prog_compiler_c_o=no |
---|
8128 | $rm -r conftest 2>/dev/null |
---|
8129 | mkdir conftest |
---|
8130 | cd conftest |
---|
8131 | mkdir out |
---|
8132 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8133 | |
---|
8134 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
8135 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8136 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8137 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8138 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
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>out/conftest.err) |
---|
8145 | ac_status=$? |
---|
8146 | cat out/conftest.err >&5 |
---|
8147 | echo "$as_me:8147: \$? = $ac_status" >&5 |
---|
8148 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
8149 | then |
---|
8150 | # The compiler can only warn and ignore the option if not recognized |
---|
8151 | # So say no if there are warnings |
---|
8152 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
---|
8153 | $SED '/^$/d' out/conftest.err >out/conftest.er2 |
---|
8154 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
8155 | lt_cv_prog_compiler_c_o=yes |
---|
8156 | fi |
---|
8157 | fi |
---|
8158 | chmod u+w . 2>&5 |
---|
8159 | $rm conftest* |
---|
8160 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
8161 | # template instantiation |
---|
8162 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
8163 | $rm out/* && rmdir out |
---|
8164 | cd .. |
---|
8165 | rmdir conftest |
---|
8166 | $rm conftest* |
---|
8167 | |
---|
8168 | fi |
---|
8169 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
8170 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
---|
8171 | |
---|
8172 | |
---|
8173 | hard_links="nottested" |
---|
8174 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
8175 | # do not overwrite the value of need_locks provided by the user |
---|
8176 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
8177 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
---|
8178 | hard_links=yes |
---|
8179 | $rm conftest* |
---|
8180 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8181 | touch conftest.a |
---|
8182 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
8183 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8184 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
8185 | echo "${ECHO_T}$hard_links" >&6; } |
---|
8186 | if test "$hard_links" = no; then |
---|
8187 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
8188 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
8189 | need_locks=warn |
---|
8190 | fi |
---|
8191 | else |
---|
8192 | need_locks=no |
---|
8193 | fi |
---|
8194 | |
---|
8195 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
8196 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
8197 | |
---|
8198 | runpath_var= |
---|
8199 | allow_undefined_flag= |
---|
8200 | enable_shared_with_static_runtimes=no |
---|
8201 | archive_cmds= |
---|
8202 | archive_expsym_cmds= |
---|
8203 | old_archive_From_new_cmds= |
---|
8204 | old_archive_from_expsyms_cmds= |
---|
8205 | export_dynamic_flag_spec= |
---|
8206 | whole_archive_flag_spec= |
---|
8207 | thread_safe_flag_spec= |
---|
8208 | hardcode_libdir_flag_spec= |
---|
8209 | hardcode_libdir_flag_spec_ld= |
---|
8210 | hardcode_libdir_separator= |
---|
8211 | hardcode_direct=no |
---|
8212 | hardcode_minus_L=no |
---|
8213 | hardcode_shlibpath_var=unsupported |
---|
8214 | link_all_deplibs=unknown |
---|
8215 | hardcode_automatic=no |
---|
8216 | module_cmds= |
---|
8217 | module_expsym_cmds= |
---|
8218 | always_export_symbols=no |
---|
8219 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8220 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
8221 | # included in the symbol list |
---|
8222 | include_expsyms= |
---|
8223 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
8224 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
8225 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
8226 | # as well as any symbol that contains `d'. |
---|
8227 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
---|
8228 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
8229 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
8230 | # the symbol is explicitly referenced. Since portable code cannot |
---|
8231 | # rely on this symbol name, it's probably fine to never include it in |
---|
8232 | # preloaded symbol tables. |
---|
8233 | extract_expsyms_cmds= |
---|
8234 | # Just being paranoid about ensuring that cc_basename is set. |
---|
8235 | for cc_temp in $compiler""; do |
---|
8236 | case $cc_temp in |
---|
8237 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
8238 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
8239 | \-*) ;; |
---|
8240 | *) break;; |
---|
8241 | esac |
---|
8242 | done |
---|
8243 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
8244 | |
---|
8245 | case $host_os in |
---|
8246 | cygwin* | mingw* | pw32*) |
---|
8247 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
8248 | # When not using gcc, we currently assume that we are using |
---|
8249 | # Microsoft Visual C++. |
---|
8250 | if test "$GCC" != yes; then |
---|
8251 | with_gnu_ld=no |
---|
8252 | fi |
---|
8253 | ;; |
---|
8254 | openbsd*) |
---|
8255 | with_gnu_ld=no |
---|
8256 | ;; |
---|
8257 | esac |
---|
8258 | |
---|
8259 | ld_shlibs=yes |
---|
8260 | if test "$with_gnu_ld" = yes; then |
---|
8261 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
8262 | wlarc='${wl}' |
---|
8263 | |
---|
8264 | # Set some defaults for GNU ld with shared library support. These |
---|
8265 | # are reset later if shared libraries are not supported. Putting them |
---|
8266 | # here allows them to be overridden if necessary. |
---|
8267 | runpath_var=LD_RUN_PATH |
---|
8268 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
---|
8269 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
8270 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
8271 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
8272 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
8273 | else |
---|
8274 | whole_archive_flag_spec= |
---|
8275 | fi |
---|
8276 | supports_anon_versioning=no |
---|
8277 | case `$LD -v 2>/dev/null` in |
---|
8278 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
8279 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
8280 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
8281 | *\ 2.11.*) ;; # other 2.11 versions |
---|
8282 | *) supports_anon_versioning=yes ;; |
---|
8283 | esac |
---|
8284 | |
---|
8285 | # See if GNU ld supports shared libraries. |
---|
8286 | case $host_os in |
---|
8287 | aix3* | aix4* | aix5*) |
---|
8288 | # On AIX/PPC, the GNU linker is very broken |
---|
8289 | if test "$host_cpu" != ia64; then |
---|
8290 | ld_shlibs=no |
---|
8291 | cat <<EOF 1>&2 |
---|
8292 | |
---|
8293 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
8294 | *** to be unable to reliably create shared libraries on AIX. |
---|
8295 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
8296 | *** really care for shared libraries, you may want to modify your PATH |
---|
8297 | *** so that a non-GNU linker is found, and then restart. |
---|
8298 | |
---|
8299 | EOF |
---|
8300 | fi |
---|
8301 | ;; |
---|
8302 | |
---|
8303 | amigaos*) |
---|
8304 | 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)' |
---|
8305 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8306 | hardcode_minus_L=yes |
---|
8307 | |
---|
8308 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
8309 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
8310 | # to version 4, is to share data among multiple programs linked |
---|
8311 | # with the same dynamic library. Since this doesn't match the |
---|
8312 | # behavior of shared libraries on other platforms, we can't use |
---|
8313 | # them. |
---|
8314 | ld_shlibs=no |
---|
8315 | ;; |
---|
8316 | |
---|
8317 | beos*) |
---|
8318 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8319 | allow_undefined_flag=unsupported |
---|
8320 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
8321 | # support --undefined. This deserves some investigation. FIXME |
---|
8322 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8323 | else |
---|
8324 | ld_shlibs=no |
---|
8325 | fi |
---|
8326 | ;; |
---|
8327 | |
---|
8328 | cygwin* | mingw* | pw32*) |
---|
8329 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
8330 | # as there is no search path for DLLs. |
---|
8331 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8332 | allow_undefined_flag=unsupported |
---|
8333 | always_export_symbols=no |
---|
8334 | enable_shared_with_static_runtimes=yes |
---|
8335 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8336 | |
---|
8337 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
8338 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
8339 | # If the export-symbols file already is a .def file (1st line |
---|
8340 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
8341 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
8342 | cp $export_symbols $output_objdir/$soname.def; |
---|
8343 | else |
---|
8344 | echo EXPORTS > $output_objdir/$soname.def; |
---|
8345 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
8346 | fi~ |
---|
8347 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
8348 | else |
---|
8349 | ld_shlibs=no |
---|
8350 | fi |
---|
8351 | ;; |
---|
8352 | |
---|
8353 | linux*) |
---|
8354 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8355 | tmp_addflag= |
---|
8356 | case $cc_basename,$host_cpu in |
---|
8357 | pgcc*) # Portland Group C compiler |
---|
8358 | 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' |
---|
8359 | tmp_addflag=' $pic_flag' |
---|
8360 | ;; |
---|
8361 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
8362 | 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' |
---|
8363 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
8364 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
8365 | tmp_addflag=' -i_dynamic' ;; |
---|
8366 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
8367 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
8368 | ifc* | ifort*) # Intel Fortran compiler |
---|
8369 | tmp_addflag=' -nofor_main' ;; |
---|
8370 | esac |
---|
8371 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8372 | |
---|
8373 | if test $supports_anon_versioning = yes; then |
---|
8374 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
8375 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
8376 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
8377 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
8378 | fi |
---|
8379 | else |
---|
8380 | ld_shlibs=no |
---|
8381 | fi |
---|
8382 | ;; |
---|
8383 | |
---|
8384 | netbsd*) |
---|
8385 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8386 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
8387 | wlarc= |
---|
8388 | else |
---|
8389 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8390 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8391 | fi |
---|
8392 | ;; |
---|
8393 | |
---|
8394 | solaris* | sysv5*) |
---|
8395 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
8396 | ld_shlibs=no |
---|
8397 | cat <<EOF 1>&2 |
---|
8398 | |
---|
8399 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
8400 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
8401 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8402 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
8403 | *** your PATH or compiler configuration so that the native linker is |
---|
8404 | *** used, and then restart. |
---|
8405 | |
---|
8406 | EOF |
---|
8407 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8408 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8409 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8410 | else |
---|
8411 | ld_shlibs=no |
---|
8412 | fi |
---|
8413 | ;; |
---|
8414 | |
---|
8415 | sunos4*) |
---|
8416 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8417 | wlarc= |
---|
8418 | hardcode_direct=yes |
---|
8419 | hardcode_shlibpath_var=no |
---|
8420 | ;; |
---|
8421 | |
---|
8422 | *) |
---|
8423 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
8424 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8425 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8426 | else |
---|
8427 | ld_shlibs=no |
---|
8428 | fi |
---|
8429 | ;; |
---|
8430 | esac |
---|
8431 | |
---|
8432 | if test "$ld_shlibs" = no; then |
---|
8433 | runpath_var= |
---|
8434 | hardcode_libdir_flag_spec= |
---|
8435 | export_dynamic_flag_spec= |
---|
8436 | whole_archive_flag_spec= |
---|
8437 | fi |
---|
8438 | else |
---|
8439 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
8440 | case $host_os in |
---|
8441 | aix3*) |
---|
8442 | allow_undefined_flag=unsupported |
---|
8443 | always_export_symbols=yes |
---|
8444 | 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' |
---|
8445 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
8446 | # are no directories specified by -L. |
---|
8447 | hardcode_minus_L=yes |
---|
8448 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
8449 | # Neither direct hardcoding nor static linking is supported with a |
---|
8450 | # broken collect2. |
---|
8451 | hardcode_direct=unsupported |
---|
8452 | fi |
---|
8453 | ;; |
---|
8454 | |
---|
8455 | aix4* | aix5*) |
---|
8456 | if test "$host_cpu" = ia64; then |
---|
8457 | # On IA64, the linker does run time linking by default, so we don't |
---|
8458 | # have to do anything special. |
---|
8459 | aix_use_runtimelinking=no |
---|
8460 | exp_sym_flag='-Bexport' |
---|
8461 | no_entry_flag="" |
---|
8462 | else |
---|
8463 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
8464 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
8465 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
8466 | 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' |
---|
8467 | else |
---|
8468 | 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' |
---|
8469 | fi |
---|
8470 | aix_use_runtimelinking=no |
---|
8471 | |
---|
8472 | # Test if we are trying to use run time linking or normal |
---|
8473 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
8474 | # need to do runtime linking. |
---|
8475 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
8476 | for ld_flag in $LDFLAGS; do |
---|
8477 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
8478 | aix_use_runtimelinking=yes |
---|
8479 | break |
---|
8480 | fi |
---|
8481 | done |
---|
8482 | esac |
---|
8483 | |
---|
8484 | exp_sym_flag='-bexport' |
---|
8485 | no_entry_flag='-bnoentry' |
---|
8486 | fi |
---|
8487 | |
---|
8488 | # When large executables or shared objects are built, AIX ld can |
---|
8489 | # have problems creating the table of contents. If linking a library |
---|
8490 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
8491 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
8492 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
8493 | |
---|
8494 | archive_cmds='' |
---|
8495 | hardcode_direct=yes |
---|
8496 | hardcode_libdir_separator=':' |
---|
8497 | link_all_deplibs=yes |
---|
8498 | |
---|
8499 | if test "$GCC" = yes; then |
---|
8500 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
8501 | # We only want to do this on AIX 4.2 and lower, the check |
---|
8502 | # below for broken collect2 doesn't work under 4.3+ |
---|
8503 | collect2name=`${CC} -print-prog-name=collect2` |
---|
8504 | if test -f "$collect2name" && \ |
---|
8505 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
8506 | then |
---|
8507 | # We have reworked collect2 |
---|
8508 | hardcode_direct=yes |
---|
8509 | else |
---|
8510 | # We have old collect2 |
---|
8511 | hardcode_direct=unsupported |
---|
8512 | # It fails to find uninstalled libraries when the uninstalled |
---|
8513 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
8514 | # to unsupported forces relinking |
---|
8515 | hardcode_minus_L=yes |
---|
8516 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8517 | hardcode_libdir_separator= |
---|
8518 | fi |
---|
8519 | esac |
---|
8520 | shared_flag='-shared' |
---|
8521 | if test "$aix_use_runtimelinking" = yes; then |
---|
8522 | shared_flag="$shared_flag "'${wl}-G' |
---|
8523 | fi |
---|
8524 | else |
---|
8525 | # not using gcc |
---|
8526 | if test "$host_cpu" = ia64; then |
---|
8527 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
8528 | # chokes on -Wl,-G. The following line is correct: |
---|
8529 | shared_flag='-G' |
---|
8530 | else |
---|
8531 | if test "$aix_use_runtimelinking" = yes; then |
---|
8532 | shared_flag='${wl}-G' |
---|
8533 | else |
---|
8534 | shared_flag='${wl}-bM:SRE' |
---|
8535 | fi |
---|
8536 | fi |
---|
8537 | fi |
---|
8538 | |
---|
8539 | # It seems that -bexpall does not export symbols beginning with |
---|
8540 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
8541 | always_export_symbols=yes |
---|
8542 | if test "$aix_use_runtimelinking" = yes; then |
---|
8543 | # Warning - without using the other runtime loading flags (-brtl), |
---|
8544 | # -berok will link without error, but may produce a broken library. |
---|
8545 | allow_undefined_flag='-berok' |
---|
8546 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8547 | cat >conftest.$ac_ext <<_ACEOF |
---|
8548 | /* confdefs.h. */ |
---|
8549 | _ACEOF |
---|
8550 | cat confdefs.h >>conftest.$ac_ext |
---|
8551 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8552 | /* end confdefs.h. */ |
---|
8553 | |
---|
8554 | int |
---|
8555 | main () |
---|
8556 | { |
---|
8557 | |
---|
8558 | ; |
---|
8559 | return 0; |
---|
8560 | } |
---|
8561 | _ACEOF |
---|
8562 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8563 | if { (ac_try="$ac_link" |
---|
8564 | case "(($ac_try" in |
---|
8565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8566 | *) ac_try_echo=$ac_try;; |
---|
8567 | esac |
---|
8568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8569 | (eval "$ac_link") 2>conftest.er1 |
---|
8570 | ac_status=$? |
---|
8571 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8572 | rm -f conftest.er1 |
---|
8573 | cat conftest.err >&5 |
---|
8574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8575 | (exit $ac_status); } && { |
---|
8576 | test -z "$ac_c_werror_flag" || |
---|
8577 | test ! -s conftest.err |
---|
8578 | } && test -s conftest$ac_exeext && |
---|
8579 | $as_test_x conftest$ac_exeext; then |
---|
8580 | |
---|
8581 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8582 | }'` |
---|
8583 | # Check for a 64-bit object if we didn't find anything. |
---|
8584 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8585 | }'`; fi |
---|
8586 | else |
---|
8587 | echo "$as_me: failed program was:" >&5 |
---|
8588 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8589 | |
---|
8590 | |
---|
8591 | fi |
---|
8592 | |
---|
8593 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
8594 | conftest$ac_exeext conftest.$ac_ext |
---|
8595 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8596 | |
---|
8597 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8598 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
8599 | else |
---|
8600 | if test "$host_cpu" = ia64; then |
---|
8601 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
8602 | allow_undefined_flag="-z nodefs" |
---|
8603 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
---|
8604 | else |
---|
8605 | # Determine the default libpath from the value encoded in an empty executable. |
---|
8606 | cat >conftest.$ac_ext <<_ACEOF |
---|
8607 | /* confdefs.h. */ |
---|
8608 | _ACEOF |
---|
8609 | cat confdefs.h >>conftest.$ac_ext |
---|
8610 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8611 | /* end confdefs.h. */ |
---|
8612 | |
---|
8613 | int |
---|
8614 | main () |
---|
8615 | { |
---|
8616 | |
---|
8617 | ; |
---|
8618 | return 0; |
---|
8619 | } |
---|
8620 | _ACEOF |
---|
8621 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8622 | if { (ac_try="$ac_link" |
---|
8623 | case "(($ac_try" in |
---|
8624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8625 | *) ac_try_echo=$ac_try;; |
---|
8626 | esac |
---|
8627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8628 | (eval "$ac_link") 2>conftest.er1 |
---|
8629 | ac_status=$? |
---|
8630 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8631 | rm -f conftest.er1 |
---|
8632 | cat conftest.err >&5 |
---|
8633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8634 | (exit $ac_status); } && { |
---|
8635 | test -z "$ac_c_werror_flag" || |
---|
8636 | test ! -s conftest.err |
---|
8637 | } && test -s conftest$ac_exeext && |
---|
8638 | $as_test_x conftest$ac_exeext; then |
---|
8639 | |
---|
8640 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8641 | }'` |
---|
8642 | # Check for a 64-bit object if we didn't find anything. |
---|
8643 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
8644 | }'`; fi |
---|
8645 | else |
---|
8646 | echo "$as_me: failed program was:" >&5 |
---|
8647 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8648 | |
---|
8649 | |
---|
8650 | fi |
---|
8651 | |
---|
8652 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
8653 | conftest$ac_exeext conftest.$ac_ext |
---|
8654 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
8655 | |
---|
8656 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8657 | # Warning - without using the other run time loading flags, |
---|
8658 | # -berok will link without error, but may produce a broken library. |
---|
8659 | no_undefined_flag=' ${wl}-bernotok' |
---|
8660 | allow_undefined_flag=' ${wl}-berok' |
---|
8661 | # -bexpall does not export symbols beginning with underscore (_) |
---|
8662 | always_export_symbols=yes |
---|
8663 | # Exported symbols can be pulled into shared objects from archives |
---|
8664 | whole_archive_flag_spec=' ' |
---|
8665 | archive_cmds_need_lc=yes |
---|
8666 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
8667 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
---|
8668 | fi |
---|
8669 | fi |
---|
8670 | ;; |
---|
8671 | |
---|
8672 | amigaos*) |
---|
8673 | 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)' |
---|
8674 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8675 | hardcode_minus_L=yes |
---|
8676 | # see comment about different semantics on the GNU ld section |
---|
8677 | ld_shlibs=no |
---|
8678 | ;; |
---|
8679 | |
---|
8680 | bsdi[45]*) |
---|
8681 | export_dynamic_flag_spec=-rdynamic |
---|
8682 | ;; |
---|
8683 | |
---|
8684 | cygwin* | mingw* | pw32*) |
---|
8685 | # When not using gcc, we currently assume that we are using |
---|
8686 | # Microsoft Visual C++. |
---|
8687 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
8688 | # no search path for DLLs. |
---|
8689 | hardcode_libdir_flag_spec=' ' |
---|
8690 | allow_undefined_flag=unsupported |
---|
8691 | # Tell ltmain to make .lib files, not .a files. |
---|
8692 | libext=lib |
---|
8693 | # Tell ltmain to make .dll files, not .so files. |
---|
8694 | shrext_cmds=".dll" |
---|
8695 | # FIXME: Setting linknames here is a bad hack. |
---|
8696 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
8697 | # The linker will automatically build a .lib file if we build a DLL. |
---|
8698 | old_archive_From_new_cmds='true' |
---|
8699 | # FIXME: Should let the user specify the lib program. |
---|
8700 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
8701 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
---|
8702 | enable_shared_with_static_runtimes=yes |
---|
8703 | ;; |
---|
8704 | |
---|
8705 | darwin* | rhapsody*) |
---|
8706 | case $host_os in |
---|
8707 | rhapsody* | darwin1.[012]) |
---|
8708 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
---|
8709 | ;; |
---|
8710 | *) # Darwin 1.3 on |
---|
8711 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
8712 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8713 | else |
---|
8714 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
8715 | 10.[012]) |
---|
8716 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
8717 | ;; |
---|
8718 | 10.*) |
---|
8719 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
---|
8720 | ;; |
---|
8721 | esac |
---|
8722 | fi |
---|
8723 | ;; |
---|
8724 | esac |
---|
8725 | archive_cmds_need_lc=no |
---|
8726 | hardcode_direct=no |
---|
8727 | hardcode_automatic=yes |
---|
8728 | hardcode_shlibpath_var=unsupported |
---|
8729 | whole_archive_flag_spec='' |
---|
8730 | link_all_deplibs=yes |
---|
8731 | if test "$GCC" = yes ; then |
---|
8732 | output_verbose_link_cmd='echo' |
---|
8733 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
8734 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8735 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8736 | 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}' |
---|
8737 | 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}' |
---|
8738 | else |
---|
8739 | case $cc_basename in |
---|
8740 | xlc*) |
---|
8741 | output_verbose_link_cmd='echo' |
---|
8742 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
8743 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
8744 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
8745 | 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
8746 | 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}' |
---|
8747 | ;; |
---|
8748 | *) |
---|
8749 | ld_shlibs=no |
---|
8750 | ;; |
---|
8751 | esac |
---|
8752 | fi |
---|
8753 | ;; |
---|
8754 | |
---|
8755 | dgux*) |
---|
8756 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8757 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8758 | hardcode_shlibpath_var=no |
---|
8759 | ;; |
---|
8760 | |
---|
8761 | freebsd1*) |
---|
8762 | ld_shlibs=no |
---|
8763 | ;; |
---|
8764 | |
---|
8765 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
8766 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
8767 | # does not break anything, and helps significantly (at the cost of a little |
---|
8768 | # extra space). |
---|
8769 | freebsd2.2*) |
---|
8770 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
8771 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8772 | hardcode_direct=yes |
---|
8773 | hardcode_shlibpath_var=no |
---|
8774 | ;; |
---|
8775 | |
---|
8776 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
8777 | freebsd2*) |
---|
8778 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8779 | hardcode_direct=yes |
---|
8780 | hardcode_minus_L=yes |
---|
8781 | hardcode_shlibpath_var=no |
---|
8782 | ;; |
---|
8783 | |
---|
8784 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
8785 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
8786 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
8787 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8788 | hardcode_direct=yes |
---|
8789 | hardcode_shlibpath_var=no |
---|
8790 | ;; |
---|
8791 | |
---|
8792 | hpux9*) |
---|
8793 | if test "$GCC" = yes; then |
---|
8794 | 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' |
---|
8795 | else |
---|
8796 | 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' |
---|
8797 | fi |
---|
8798 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8799 | hardcode_libdir_separator=: |
---|
8800 | hardcode_direct=yes |
---|
8801 | |
---|
8802 | # hardcode_minus_L: Not really in the search PATH, |
---|
8803 | # but as the default location of the library. |
---|
8804 | hardcode_minus_L=yes |
---|
8805 | export_dynamic_flag_spec='${wl}-E' |
---|
8806 | ;; |
---|
8807 | |
---|
8808 | hpux10* | hpux11*) |
---|
8809 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
8810 | case $host_cpu in |
---|
8811 | hppa*64*|ia64*) |
---|
8812 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8813 | ;; |
---|
8814 | *) |
---|
8815 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
8816 | ;; |
---|
8817 | esac |
---|
8818 | else |
---|
8819 | case $host_cpu in |
---|
8820 | hppa*64*|ia64*) |
---|
8821 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8822 | ;; |
---|
8823 | *) |
---|
8824 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
8825 | ;; |
---|
8826 | esac |
---|
8827 | fi |
---|
8828 | if test "$with_gnu_ld" = no; then |
---|
8829 | case $host_cpu in |
---|
8830 | hppa*64*) |
---|
8831 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8832 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
8833 | hardcode_libdir_separator=: |
---|
8834 | hardcode_direct=no |
---|
8835 | hardcode_shlibpath_var=no |
---|
8836 | ;; |
---|
8837 | ia64*) |
---|
8838 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8839 | hardcode_direct=no |
---|
8840 | hardcode_shlibpath_var=no |
---|
8841 | |
---|
8842 | # hardcode_minus_L: Not really in the search PATH, |
---|
8843 | # but as the default location of the library. |
---|
8844 | hardcode_minus_L=yes |
---|
8845 | ;; |
---|
8846 | *) |
---|
8847 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
8848 | hardcode_libdir_separator=: |
---|
8849 | hardcode_direct=yes |
---|
8850 | export_dynamic_flag_spec='${wl}-E' |
---|
8851 | |
---|
8852 | # hardcode_minus_L: Not really in the search PATH, |
---|
8853 | # but as the default location of the library. |
---|
8854 | hardcode_minus_L=yes |
---|
8855 | ;; |
---|
8856 | esac |
---|
8857 | fi |
---|
8858 | ;; |
---|
8859 | |
---|
8860 | irix5* | irix6* | nonstopux*) |
---|
8861 | if test "$GCC" = yes; then |
---|
8862 | 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' |
---|
8863 | else |
---|
8864 | 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' |
---|
8865 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
8866 | fi |
---|
8867 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8868 | hardcode_libdir_separator=: |
---|
8869 | link_all_deplibs=yes |
---|
8870 | ;; |
---|
8871 | |
---|
8872 | netbsd*) |
---|
8873 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
8874 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
8875 | else |
---|
8876 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
8877 | fi |
---|
8878 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8879 | hardcode_direct=yes |
---|
8880 | hardcode_shlibpath_var=no |
---|
8881 | ;; |
---|
8882 | |
---|
8883 | newsos6) |
---|
8884 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8885 | hardcode_direct=yes |
---|
8886 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8887 | hardcode_libdir_separator=: |
---|
8888 | hardcode_shlibpath_var=no |
---|
8889 | ;; |
---|
8890 | |
---|
8891 | openbsd*) |
---|
8892 | hardcode_direct=yes |
---|
8893 | hardcode_shlibpath_var=no |
---|
8894 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
8895 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
8896 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
8897 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8898 | export_dynamic_flag_spec='${wl}-E' |
---|
8899 | else |
---|
8900 | case $host_os in |
---|
8901 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
8902 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8903 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8904 | ;; |
---|
8905 | *) |
---|
8906 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
8907 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8908 | ;; |
---|
8909 | esac |
---|
8910 | fi |
---|
8911 | ;; |
---|
8912 | |
---|
8913 | os2*) |
---|
8914 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8915 | hardcode_minus_L=yes |
---|
8916 | allow_undefined_flag=unsupported |
---|
8917 | 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' |
---|
8918 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
8919 | ;; |
---|
8920 | |
---|
8921 | osf3*) |
---|
8922 | if test "$GCC" = yes; then |
---|
8923 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
8924 | 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' |
---|
8925 | else |
---|
8926 | allow_undefined_flag=' -expect_unresolved \*' |
---|
8927 | 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' |
---|
8928 | fi |
---|
8929 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8930 | hardcode_libdir_separator=: |
---|
8931 | ;; |
---|
8932 | |
---|
8933 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
8934 | if test "$GCC" = yes; then |
---|
8935 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
8936 | 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' |
---|
8937 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8938 | else |
---|
8939 | allow_undefined_flag=' -expect_unresolved \*' |
---|
8940 | 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' |
---|
8941 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
---|
8942 | $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' |
---|
8943 | |
---|
8944 | # Both c and cxx compiler support -rpath directly |
---|
8945 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
8946 | fi |
---|
8947 | hardcode_libdir_separator=: |
---|
8948 | ;; |
---|
8949 | |
---|
8950 | sco3.2v5*) |
---|
8951 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8952 | hardcode_shlibpath_var=no |
---|
8953 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
8954 | runpath_var=LD_RUN_PATH |
---|
8955 | hardcode_runpath_var=yes |
---|
8956 | ;; |
---|
8957 | |
---|
8958 | solaris*) |
---|
8959 | no_undefined_flag=' -z text' |
---|
8960 | if test "$GCC" = yes; then |
---|
8961 | wlarc='${wl}' |
---|
8962 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8963 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
8964 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
8965 | else |
---|
8966 | wlarc='' |
---|
8967 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
8968 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
8969 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
8970 | fi |
---|
8971 | hardcode_libdir_flag_spec='-R$libdir' |
---|
8972 | hardcode_shlibpath_var=no |
---|
8973 | case $host_os in |
---|
8974 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
8975 | *) |
---|
8976 | # The compiler driver will combine linker options so we |
---|
8977 | # cannot just pass the convience library names through |
---|
8978 | # without $wl, iff we do not link with $LD. |
---|
8979 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
---|
8980 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
8981 | case $wlarc in |
---|
8982 | '') |
---|
8983 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
---|
8984 | *) |
---|
8985 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
---|
8986 | esac ;; |
---|
8987 | esac |
---|
8988 | link_all_deplibs=yes |
---|
8989 | ;; |
---|
8990 | |
---|
8991 | sunos4*) |
---|
8992 | if test "x$host_vendor" = xsequent; then |
---|
8993 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
8994 | # files that make .init and .fini sections work. |
---|
8995 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
8996 | else |
---|
8997 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
8998 | fi |
---|
8999 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9000 | hardcode_direct=yes |
---|
9001 | hardcode_minus_L=yes |
---|
9002 | hardcode_shlibpath_var=no |
---|
9003 | ;; |
---|
9004 | |
---|
9005 | sysv4) |
---|
9006 | case $host_vendor in |
---|
9007 | sni) |
---|
9008 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9009 | hardcode_direct=yes # is this really true??? |
---|
9010 | ;; |
---|
9011 | siemens) |
---|
9012 | ## LD is ld it makes a PLAMLIB |
---|
9013 | ## CC just makes a GrossModule. |
---|
9014 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
9015 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
9016 | hardcode_direct=no |
---|
9017 | ;; |
---|
9018 | motorola) |
---|
9019 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9020 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
9021 | ;; |
---|
9022 | esac |
---|
9023 | runpath_var='LD_RUN_PATH' |
---|
9024 | hardcode_shlibpath_var=no |
---|
9025 | ;; |
---|
9026 | |
---|
9027 | sysv4.3*) |
---|
9028 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9029 | hardcode_shlibpath_var=no |
---|
9030 | export_dynamic_flag_spec='-Bexport' |
---|
9031 | ;; |
---|
9032 | |
---|
9033 | sysv4*MP*) |
---|
9034 | if test -d /usr/nec; then |
---|
9035 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9036 | hardcode_shlibpath_var=no |
---|
9037 | runpath_var=LD_RUN_PATH |
---|
9038 | hardcode_runpath_var=yes |
---|
9039 | ld_shlibs=yes |
---|
9040 | fi |
---|
9041 | ;; |
---|
9042 | |
---|
9043 | sysv4.2uw2*) |
---|
9044 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
9045 | hardcode_direct=yes |
---|
9046 | hardcode_minus_L=no |
---|
9047 | hardcode_shlibpath_var=no |
---|
9048 | hardcode_runpath_var=yes |
---|
9049 | runpath_var=LD_RUN_PATH |
---|
9050 | ;; |
---|
9051 | |
---|
9052 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
9053 | no_undefined_flag='${wl}-z ${wl}text' |
---|
9054 | if test "$GCC" = yes; then |
---|
9055 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9056 | else |
---|
9057 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9058 | fi |
---|
9059 | runpath_var='LD_RUN_PATH' |
---|
9060 | hardcode_shlibpath_var=no |
---|
9061 | ;; |
---|
9062 | |
---|
9063 | sysv5*) |
---|
9064 | no_undefined_flag=' -z text' |
---|
9065 | # $CC -shared without GNU ld will not create a library from C++ |
---|
9066 | # object files and a static libstdc++, better avoid it by now |
---|
9067 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9068 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
9069 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
9070 | hardcode_libdir_flag_spec= |
---|
9071 | hardcode_shlibpath_var=no |
---|
9072 | runpath_var='LD_RUN_PATH' |
---|
9073 | ;; |
---|
9074 | |
---|
9075 | uts4*) |
---|
9076 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9077 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9078 | hardcode_shlibpath_var=no |
---|
9079 | ;; |
---|
9080 | |
---|
9081 | *) |
---|
9082 | ld_shlibs=no |
---|
9083 | ;; |
---|
9084 | esac |
---|
9085 | fi |
---|
9086 | |
---|
9087 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
---|
9088 | echo "${ECHO_T}$ld_shlibs" >&6; } |
---|
9089 | test "$ld_shlibs" = no && can_build_shared=no |
---|
9090 | |
---|
9091 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
9092 | if test "$GCC" = yes; then |
---|
9093 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
9094 | fi |
---|
9095 | |
---|
9096 | # |
---|
9097 | # Do we need to explicitly link libc? |
---|
9098 | # |
---|
9099 | case "x$archive_cmds_need_lc" in |
---|
9100 | x|xyes) |
---|
9101 | # Assume -lc should be added |
---|
9102 | archive_cmds_need_lc=yes |
---|
9103 | |
---|
9104 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
9105 | case $archive_cmds in |
---|
9106 | *'~'*) |
---|
9107 | # FIXME: we may have to deal with multi-command sequences. |
---|
9108 | ;; |
---|
9109 | '$CC '*) |
---|
9110 | # Test whether the compiler implicitly links with -lc since on some |
---|
9111 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
9112 | # to ld, don't add -lc before -lgcc. |
---|
9113 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
9114 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
---|
9115 | $rm conftest* |
---|
9116 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9117 | |
---|
9118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9119 | (eval $ac_compile) 2>&5 |
---|
9120 | ac_status=$? |
---|
9121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9122 | (exit $ac_status); } 2>conftest.err; then |
---|
9123 | soname=conftest |
---|
9124 | lib=conftest |
---|
9125 | libobjs=conftest.$ac_objext |
---|
9126 | deplibs= |
---|
9127 | wl=$lt_prog_compiler_wl |
---|
9128 | compiler_flags=-v |
---|
9129 | linker_flags=-v |
---|
9130 | verstring= |
---|
9131 | output_objdir=. |
---|
9132 | libname=conftest |
---|
9133 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
9134 | allow_undefined_flag= |
---|
9135 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
9136 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
9137 | ac_status=$? |
---|
9138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9139 | (exit $ac_status); } |
---|
9140 | then |
---|
9141 | archive_cmds_need_lc=no |
---|
9142 | else |
---|
9143 | archive_cmds_need_lc=yes |
---|
9144 | fi |
---|
9145 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
9146 | else |
---|
9147 | cat conftest.err 1>&5 |
---|
9148 | fi |
---|
9149 | $rm conftest* |
---|
9150 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
---|
9151 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
---|
9152 | ;; |
---|
9153 | esac |
---|
9154 | fi |
---|
9155 | ;; |
---|
9156 | esac |
---|
9157 | |
---|
9158 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
9159 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
---|
9160 | library_names_spec= |
---|
9161 | libname_spec='lib$name' |
---|
9162 | soname_spec= |
---|
9163 | shrext_cmds=".so" |
---|
9164 | postinstall_cmds= |
---|
9165 | postuninstall_cmds= |
---|
9166 | finish_cmds= |
---|
9167 | finish_eval= |
---|
9168 | shlibpath_var= |
---|
9169 | shlibpath_overrides_runpath=unknown |
---|
9170 | version_type=none |
---|
9171 | dynamic_linker="$host_os ld.so" |
---|
9172 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
9173 | if test "$GCC" = yes; then |
---|
9174 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9175 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
9176 | # if the path contains ";" then we assume it to be the separator |
---|
9177 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
9178 | # assumed that no part of a normal pathname contains ";" but that should |
---|
9179 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
9180 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9181 | else |
---|
9182 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9183 | fi |
---|
9184 | else |
---|
9185 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
9186 | fi |
---|
9187 | need_lib_prefix=unknown |
---|
9188 | hardcode_into_libs=no |
---|
9189 | |
---|
9190 | # when you set need_version to no, make sure it does not cause -set_version |
---|
9191 | # flags to be left without arguments |
---|
9192 | need_version=unknown |
---|
9193 | |
---|
9194 | case $host_os in |
---|
9195 | aix3*) |
---|
9196 | version_type=linux |
---|
9197 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
9198 | shlibpath_var=LIBPATH |
---|
9199 | |
---|
9200 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
9201 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9202 | ;; |
---|
9203 | |
---|
9204 | aix4* | aix5*) |
---|
9205 | version_type=linux |
---|
9206 | need_lib_prefix=no |
---|
9207 | need_version=no |
---|
9208 | hardcode_into_libs=yes |
---|
9209 | if test "$host_cpu" = ia64; then |
---|
9210 | # AIX 5 supports IA64 |
---|
9211 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
9212 | shlibpath_var=LD_LIBRARY_PATH |
---|
9213 | else |
---|
9214 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
9215 | # for dependence libraries. The import file would start with |
---|
9216 | # the line `#! .'. This would cause the generated library to |
---|
9217 | # depend on `.', always an invalid library. This was fixed in |
---|
9218 | # development snapshots of GCC prior to 3.0. |
---|
9219 | case $host_os in |
---|
9220 | aix4 | aix4.[01] | aix4.[01].*) |
---|
9221 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
9222 | echo ' yes ' |
---|
9223 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
9224 | : |
---|
9225 | else |
---|
9226 | can_build_shared=no |
---|
9227 | fi |
---|
9228 | ;; |
---|
9229 | esac |
---|
9230 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
9231 | # soname into executable. Probably we can add versioning support to |
---|
9232 | # collect2, so additional links can be useful in future. |
---|
9233 | if test "$aix_use_runtimelinking" = yes; then |
---|
9234 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
9235 | # instead of lib<name>.a to let people know that these are not |
---|
9236 | # typical AIX shared libraries. |
---|
9237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9238 | else |
---|
9239 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
9240 | # and later when we are not doing run time linking. |
---|
9241 | library_names_spec='${libname}${release}.a $libname.a' |
---|
9242 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9243 | fi |
---|
9244 | shlibpath_var=LIBPATH |
---|
9245 | fi |
---|
9246 | ;; |
---|
9247 | |
---|
9248 | amigaos*) |
---|
9249 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
9250 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
9251 | 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' |
---|
9252 | ;; |
---|
9253 | |
---|
9254 | beos*) |
---|
9255 | library_names_spec='${libname}${shared_ext}' |
---|
9256 | dynamic_linker="$host_os ld.so" |
---|
9257 | shlibpath_var=LIBRARY_PATH |
---|
9258 | ;; |
---|
9259 | |
---|
9260 | bsdi[45]*) |
---|
9261 | version_type=linux |
---|
9262 | need_version=no |
---|
9263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9264 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9265 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
9266 | shlibpath_var=LD_LIBRARY_PATH |
---|
9267 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
9268 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
9269 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
9270 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
9271 | # libtool to hard-code these into programs |
---|
9272 | ;; |
---|
9273 | |
---|
9274 | cygwin* | mingw* | pw32*) |
---|
9275 | version_type=windows |
---|
9276 | shrext_cmds=".dll" |
---|
9277 | need_version=no |
---|
9278 | need_lib_prefix=no |
---|
9279 | |
---|
9280 | case $GCC,$host_os in |
---|
9281 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
9282 | library_names_spec='$libname.dll.a' |
---|
9283 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
9284 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
9285 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
9286 | dldir=$destdir/`dirname \$dlpath`~ |
---|
9287 | test -d \$dldir || mkdir -p \$dldir~ |
---|
9288 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
9289 | chmod a+x \$dldir/$dlname' |
---|
9290 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
9291 | dlpath=$dir/\$dldll~ |
---|
9292 | $rm \$dlpath' |
---|
9293 | shlibpath_overrides_runpath=yes |
---|
9294 | |
---|
9295 | case $host_os in |
---|
9296 | cygwin*) |
---|
9297 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
9298 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9299 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
9300 | ;; |
---|
9301 | mingw*) |
---|
9302 | # MinGW DLLs use traditional 'lib' prefix |
---|
9303 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9304 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
9305 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
9306 | # It is most probably a Windows format PATH printed by |
---|
9307 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
9308 | # path with ; separators, and with drive letters. We can handle the |
---|
9309 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
9310 | # especially as we might pass files found there to a mingw objdump, |
---|
9311 | # which wouldn't understand a cygwinified path. Ahh. |
---|
9312 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
9313 | else |
---|
9314 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
9315 | fi |
---|
9316 | ;; |
---|
9317 | pw32*) |
---|
9318 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
9319 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
9320 | ;; |
---|
9321 | esac |
---|
9322 | ;; |
---|
9323 | |
---|
9324 | *) |
---|
9325 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
9326 | ;; |
---|
9327 | esac |
---|
9328 | dynamic_linker='Win32 ld.exe' |
---|
9329 | # FIXME: first we should search . and the directory the executable is in |
---|
9330 | shlibpath_var=PATH |
---|
9331 | ;; |
---|
9332 | |
---|
9333 | darwin* | rhapsody*) |
---|
9334 | dynamic_linker="$host_os dyld" |
---|
9335 | version_type=darwin |
---|
9336 | need_lib_prefix=no |
---|
9337 | need_version=no |
---|
9338 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
9339 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
9340 | shlibpath_overrides_runpath=yes |
---|
9341 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
9342 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
9343 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
9344 | if test "$GCC" = yes; then |
---|
9345 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
9346 | else |
---|
9347 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
9348 | fi |
---|
9349 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
9350 | ;; |
---|
9351 | |
---|
9352 | dgux*) |
---|
9353 | version_type=linux |
---|
9354 | need_lib_prefix=no |
---|
9355 | need_version=no |
---|
9356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
9357 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9358 | shlibpath_var=LD_LIBRARY_PATH |
---|
9359 | ;; |
---|
9360 | |
---|
9361 | freebsd1*) |
---|
9362 | dynamic_linker=no |
---|
9363 | ;; |
---|
9364 | |
---|
9365 | kfreebsd*-gnu) |
---|
9366 | version_type=linux |
---|
9367 | need_lib_prefix=no |
---|
9368 | need_version=no |
---|
9369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9370 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9371 | shlibpath_var=LD_LIBRARY_PATH |
---|
9372 | shlibpath_overrides_runpath=no |
---|
9373 | hardcode_into_libs=yes |
---|
9374 | dynamic_linker='GNU ld.so' |
---|
9375 | ;; |
---|
9376 | |
---|
9377 | freebsd* | dragonfly*) |
---|
9378 | # DragonFly does not have aout. When/if they implement a new |
---|
9379 | # versioning mechanism, adjust this. |
---|
9380 | if test -x /usr/bin/objformat; then |
---|
9381 | objformat=`/usr/bin/objformat` |
---|
9382 | else |
---|
9383 | case $host_os in |
---|
9384 | freebsd[123]*) objformat=aout ;; |
---|
9385 | *) objformat=elf ;; |
---|
9386 | esac |
---|
9387 | fi |
---|
9388 | version_type=freebsd-$objformat |
---|
9389 | case $version_type in |
---|
9390 | freebsd-elf*) |
---|
9391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9392 | need_version=no |
---|
9393 | need_lib_prefix=no |
---|
9394 | ;; |
---|
9395 | freebsd-*) |
---|
9396 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
9397 | need_version=yes |
---|
9398 | ;; |
---|
9399 | esac |
---|
9400 | shlibpath_var=LD_LIBRARY_PATH |
---|
9401 | case $host_os in |
---|
9402 | freebsd2*) |
---|
9403 | shlibpath_overrides_runpath=yes |
---|
9404 | ;; |
---|
9405 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
9406 | shlibpath_overrides_runpath=yes |
---|
9407 | hardcode_into_libs=yes |
---|
9408 | ;; |
---|
9409 | *) # from 3.2 on |
---|
9410 | shlibpath_overrides_runpath=no |
---|
9411 | hardcode_into_libs=yes |
---|
9412 | ;; |
---|
9413 | esac |
---|
9414 | ;; |
---|
9415 | |
---|
9416 | gnu*) |
---|
9417 | version_type=linux |
---|
9418 | need_lib_prefix=no |
---|
9419 | need_version=no |
---|
9420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
9421 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9422 | shlibpath_var=LD_LIBRARY_PATH |
---|
9423 | hardcode_into_libs=yes |
---|
9424 | ;; |
---|
9425 | |
---|
9426 | hpux9* | hpux10* | hpux11*) |
---|
9427 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
9428 | # link against other versions. |
---|
9429 | version_type=sunos |
---|
9430 | need_lib_prefix=no |
---|
9431 | need_version=no |
---|
9432 | case $host_cpu in |
---|
9433 | ia64*) |
---|
9434 | shrext_cmds='.so' |
---|
9435 | hardcode_into_libs=yes |
---|
9436 | dynamic_linker="$host_os dld.so" |
---|
9437 | shlibpath_var=LD_LIBRARY_PATH |
---|
9438 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9440 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9441 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
9442 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
9443 | else |
---|
9444 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
9445 | fi |
---|
9446 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9447 | ;; |
---|
9448 | hppa*64*) |
---|
9449 | shrext_cmds='.sl' |
---|
9450 | hardcode_into_libs=yes |
---|
9451 | dynamic_linker="$host_os dld.sl" |
---|
9452 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
9453 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
9454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9455 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9456 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
9457 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
9458 | ;; |
---|
9459 | *) |
---|
9460 | shrext_cmds='.sl' |
---|
9461 | dynamic_linker="$host_os dld.sl" |
---|
9462 | shlibpath_var=SHLIB_PATH |
---|
9463 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
9464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9465 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9466 | ;; |
---|
9467 | esac |
---|
9468 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
9469 | postinstall_cmds='chmod 555 $lib' |
---|
9470 | ;; |
---|
9471 | |
---|
9472 | irix5* | irix6* | nonstopux*) |
---|
9473 | case $host_os in |
---|
9474 | nonstopux*) version_type=nonstopux ;; |
---|
9475 | *) |
---|
9476 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
9477 | version_type=linux |
---|
9478 | else |
---|
9479 | version_type=irix |
---|
9480 | fi ;; |
---|
9481 | esac |
---|
9482 | need_lib_prefix=no |
---|
9483 | need_version=no |
---|
9484 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
9486 | case $host_os in |
---|
9487 | irix5* | nonstopux*) |
---|
9488 | libsuff= shlibsuff= |
---|
9489 | ;; |
---|
9490 | *) |
---|
9491 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
9492 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
9493 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
9494 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
9495 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
9496 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
9497 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
9498 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
9499 | esac |
---|
9500 | ;; |
---|
9501 | esac |
---|
9502 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
9503 | shlibpath_overrides_runpath=no |
---|
9504 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
9505 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
9506 | hardcode_into_libs=yes |
---|
9507 | ;; |
---|
9508 | |
---|
9509 | # No shared lib support for Linux oldld, aout, or coff. |
---|
9510 | linux*oldld* | linux*aout* | linux*coff*) |
---|
9511 | dynamic_linker=no |
---|
9512 | ;; |
---|
9513 | |
---|
9514 | # This must be Linux ELF. |
---|
9515 | linux*) |
---|
9516 | version_type=linux |
---|
9517 | need_lib_prefix=no |
---|
9518 | need_version=no |
---|
9519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9520 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9521 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
9522 | shlibpath_var=LD_LIBRARY_PATH |
---|
9523 | shlibpath_overrides_runpath=no |
---|
9524 | # This implies no fast_install, which is unacceptable. |
---|
9525 | # Some rework will be needed to allow for fast_install |
---|
9526 | # before this can be enabled. |
---|
9527 | hardcode_into_libs=yes |
---|
9528 | |
---|
9529 | # Append ld.so.conf contents to the search path |
---|
9530 | if test -f /etc/ld.so.conf; then |
---|
9531 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
9532 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
9533 | fi |
---|
9534 | |
---|
9535 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
9536 | # powerpc, because MkLinux only supported shared libraries with the |
---|
9537 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
9538 | # most powerpc-linux boxes support dynamic linking these days and |
---|
9539 | # people can always --disable-shared, the test was removed, and we |
---|
9540 | # assume the GNU/Linux dynamic linker is in use. |
---|
9541 | dynamic_linker='GNU/Linux ld.so' |
---|
9542 | ;; |
---|
9543 | |
---|
9544 | knetbsd*-gnu) |
---|
9545 | version_type=linux |
---|
9546 | need_lib_prefix=no |
---|
9547 | need_version=no |
---|
9548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9549 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9550 | shlibpath_var=LD_LIBRARY_PATH |
---|
9551 | shlibpath_overrides_runpath=no |
---|
9552 | hardcode_into_libs=yes |
---|
9553 | dynamic_linker='GNU ld.so' |
---|
9554 | ;; |
---|
9555 | |
---|
9556 | netbsd*) |
---|
9557 | version_type=sunos |
---|
9558 | need_lib_prefix=no |
---|
9559 | need_version=no |
---|
9560 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
9561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9562 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9563 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
9564 | else |
---|
9565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
9566 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9567 | dynamic_linker='NetBSD ld.elf_so' |
---|
9568 | fi |
---|
9569 | shlibpath_var=LD_LIBRARY_PATH |
---|
9570 | shlibpath_overrides_runpath=yes |
---|
9571 | hardcode_into_libs=yes |
---|
9572 | ;; |
---|
9573 | |
---|
9574 | newsos6) |
---|
9575 | version_type=linux |
---|
9576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9577 | shlibpath_var=LD_LIBRARY_PATH |
---|
9578 | shlibpath_overrides_runpath=yes |
---|
9579 | ;; |
---|
9580 | |
---|
9581 | nto-qnx*) |
---|
9582 | version_type=linux |
---|
9583 | need_lib_prefix=no |
---|
9584 | need_version=no |
---|
9585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9586 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9587 | shlibpath_var=LD_LIBRARY_PATH |
---|
9588 | shlibpath_overrides_runpath=yes |
---|
9589 | ;; |
---|
9590 | |
---|
9591 | openbsd*) |
---|
9592 | version_type=sunos |
---|
9593 | need_lib_prefix=no |
---|
9594 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
9595 | case $host_os in |
---|
9596 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
9597 | *) need_version=no ;; |
---|
9598 | esac |
---|
9599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9600 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
9601 | shlibpath_var=LD_LIBRARY_PATH |
---|
9602 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9603 | case $host_os in |
---|
9604 | openbsd2.[89] | openbsd2.[89].*) |
---|
9605 | shlibpath_overrides_runpath=no |
---|
9606 | ;; |
---|
9607 | *) |
---|
9608 | shlibpath_overrides_runpath=yes |
---|
9609 | ;; |
---|
9610 | esac |
---|
9611 | else |
---|
9612 | shlibpath_overrides_runpath=yes |
---|
9613 | fi |
---|
9614 | ;; |
---|
9615 | |
---|
9616 | os2*) |
---|
9617 | libname_spec='$name' |
---|
9618 | shrext_cmds=".dll" |
---|
9619 | need_lib_prefix=no |
---|
9620 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
9621 | dynamic_linker='OS/2 ld.exe' |
---|
9622 | shlibpath_var=LIBPATH |
---|
9623 | ;; |
---|
9624 | |
---|
9625 | osf3* | osf4* | osf5*) |
---|
9626 | version_type=osf |
---|
9627 | need_lib_prefix=no |
---|
9628 | need_version=no |
---|
9629 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9631 | shlibpath_var=LD_LIBRARY_PATH |
---|
9632 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
9633 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
9634 | ;; |
---|
9635 | |
---|
9636 | sco3.2v5*) |
---|
9637 | version_type=osf |
---|
9638 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9640 | shlibpath_var=LD_LIBRARY_PATH |
---|
9641 | ;; |
---|
9642 | |
---|
9643 | solaris*) |
---|
9644 | version_type=linux |
---|
9645 | need_lib_prefix=no |
---|
9646 | need_version=no |
---|
9647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9648 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9649 | shlibpath_var=LD_LIBRARY_PATH |
---|
9650 | shlibpath_overrides_runpath=yes |
---|
9651 | hardcode_into_libs=yes |
---|
9652 | # ldd complains unless libraries are executable |
---|
9653 | postinstall_cmds='chmod +x $lib' |
---|
9654 | ;; |
---|
9655 | |
---|
9656 | sunos4*) |
---|
9657 | version_type=sunos |
---|
9658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
9659 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
9660 | shlibpath_var=LD_LIBRARY_PATH |
---|
9661 | shlibpath_overrides_runpath=yes |
---|
9662 | if test "$with_gnu_ld" = yes; then |
---|
9663 | need_lib_prefix=no |
---|
9664 | fi |
---|
9665 | need_version=yes |
---|
9666 | ;; |
---|
9667 | |
---|
9668 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
9669 | version_type=linux |
---|
9670 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9671 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9672 | shlibpath_var=LD_LIBRARY_PATH |
---|
9673 | case $host_vendor in |
---|
9674 | sni) |
---|
9675 | shlibpath_overrides_runpath=no |
---|
9676 | need_lib_prefix=no |
---|
9677 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
9678 | runpath_var=LD_RUN_PATH |
---|
9679 | ;; |
---|
9680 | siemens) |
---|
9681 | need_lib_prefix=no |
---|
9682 | ;; |
---|
9683 | motorola) |
---|
9684 | need_lib_prefix=no |
---|
9685 | need_version=no |
---|
9686 | shlibpath_overrides_runpath=no |
---|
9687 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
9688 | ;; |
---|
9689 | esac |
---|
9690 | ;; |
---|
9691 | |
---|
9692 | sysv4*MP*) |
---|
9693 | if test -d /usr/nec ;then |
---|
9694 | version_type=linux |
---|
9695 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
9696 | soname_spec='$libname${shared_ext}.$major' |
---|
9697 | shlibpath_var=LD_LIBRARY_PATH |
---|
9698 | fi |
---|
9699 | ;; |
---|
9700 | |
---|
9701 | uts4*) |
---|
9702 | version_type=linux |
---|
9703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9704 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9705 | shlibpath_var=LD_LIBRARY_PATH |
---|
9706 | ;; |
---|
9707 | |
---|
9708 | *) |
---|
9709 | dynamic_linker=no |
---|
9710 | ;; |
---|
9711 | esac |
---|
9712 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
9713 | echo "${ECHO_T}$dynamic_linker" >&6; } |
---|
9714 | test "$dynamic_linker" = no && can_build_shared=no |
---|
9715 | |
---|
9716 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
9717 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
---|
9718 | hardcode_action= |
---|
9719 | if test -n "$hardcode_libdir_flag_spec" || \ |
---|
9720 | test -n "$runpath_var" || \ |
---|
9721 | test "X$hardcode_automatic" = "Xyes" ; then |
---|
9722 | |
---|
9723 | # We can hardcode non-existant directories. |
---|
9724 | if test "$hardcode_direct" != no && |
---|
9725 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
9726 | # have to relink, otherwise we might link with an installed library |
---|
9727 | # when we should be linking with a yet-to-be-installed one |
---|
9728 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
9729 | test "$hardcode_minus_L" != no; then |
---|
9730 | # Linking always hardcodes the temporary library directory. |
---|
9731 | hardcode_action=relink |
---|
9732 | else |
---|
9733 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
9734 | hardcode_action=immediate |
---|
9735 | fi |
---|
9736 | else |
---|
9737 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
9738 | # directories. |
---|
9739 | hardcode_action=unsupported |
---|
9740 | fi |
---|
9741 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
---|
9742 | echo "${ECHO_T}$hardcode_action" >&6; } |
---|
9743 | |
---|
9744 | if test "$hardcode_action" = relink; then |
---|
9745 | # Fast installation is not supported |
---|
9746 | enable_fast_install=no |
---|
9747 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
9748 | test "$enable_shared" = no; then |
---|
9749 | # Fast installation is not necessary |
---|
9750 | enable_fast_install=needless |
---|
9751 | fi |
---|
9752 | |
---|
9753 | striplib= |
---|
9754 | old_striplib= |
---|
9755 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
9756 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
---|
9757 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
9758 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
9759 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
9760 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
9761 | echo "${ECHO_T}yes" >&6; } |
---|
9762 | else |
---|
9763 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
9764 | case $host_os in |
---|
9765 | darwin*) |
---|
9766 | if test -n "$STRIP" ; then |
---|
9767 | striplib="$STRIP -x" |
---|
9768 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
9769 | echo "${ECHO_T}yes" >&6; } |
---|
9770 | else |
---|
9771 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
9772 | echo "${ECHO_T}no" >&6; } |
---|
9773 | fi |
---|
9774 | ;; |
---|
9775 | *) |
---|
9776 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
9777 | echo "${ECHO_T}no" >&6; } |
---|
9778 | ;; |
---|
9779 | esac |
---|
9780 | fi |
---|
9781 | |
---|
9782 | if test "x$enable_dlopen" != xyes; then |
---|
9783 | enable_dlopen=unknown |
---|
9784 | enable_dlopen_self=unknown |
---|
9785 | enable_dlopen_self_static=unknown |
---|
9786 | else |
---|
9787 | lt_cv_dlopen=no |
---|
9788 | lt_cv_dlopen_libs= |
---|
9789 | |
---|
9790 | case $host_os in |
---|
9791 | beos*) |
---|
9792 | lt_cv_dlopen="load_add_on" |
---|
9793 | lt_cv_dlopen_libs= |
---|
9794 | lt_cv_dlopen_self=yes |
---|
9795 | ;; |
---|
9796 | |
---|
9797 | mingw* | pw32*) |
---|
9798 | lt_cv_dlopen="LoadLibrary" |
---|
9799 | lt_cv_dlopen_libs= |
---|
9800 | ;; |
---|
9801 | |
---|
9802 | cygwin*) |
---|
9803 | lt_cv_dlopen="dlopen" |
---|
9804 | lt_cv_dlopen_libs= |
---|
9805 | ;; |
---|
9806 | |
---|
9807 | darwin*) |
---|
9808 | # if libdl is installed we need to link against it |
---|
9809 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
9810 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
9811 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
9812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9813 | else |
---|
9814 | ac_check_lib_save_LIBS=$LIBS |
---|
9815 | LIBS="-ldl $LIBS" |
---|
9816 | cat >conftest.$ac_ext <<_ACEOF |
---|
9817 | /* confdefs.h. */ |
---|
9818 | _ACEOF |
---|
9819 | cat confdefs.h >>conftest.$ac_ext |
---|
9820 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9821 | /* end confdefs.h. */ |
---|
9822 | |
---|
9823 | /* Override any GCC internal prototype to avoid an error. |
---|
9824 | Use char because int might match the return type of a GCC |
---|
9825 | builtin and then its argument prototype would still apply. */ |
---|
9826 | #ifdef __cplusplus |
---|
9827 | extern "C" |
---|
9828 | #endif |
---|
9829 | char dlopen (); |
---|
9830 | int |
---|
9831 | main () |
---|
9832 | { |
---|
9833 | return dlopen (); |
---|
9834 | ; |
---|
9835 | return 0; |
---|
9836 | } |
---|
9837 | _ACEOF |
---|
9838 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9839 | if { (ac_try="$ac_link" |
---|
9840 | case "(($ac_try" in |
---|
9841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9842 | *) ac_try_echo=$ac_try;; |
---|
9843 | esac |
---|
9844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9845 | (eval "$ac_link") 2>conftest.er1 |
---|
9846 | ac_status=$? |
---|
9847 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9848 | rm -f conftest.er1 |
---|
9849 | cat conftest.err >&5 |
---|
9850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9851 | (exit $ac_status); } && { |
---|
9852 | test -z "$ac_c_werror_flag" || |
---|
9853 | test ! -s conftest.err |
---|
9854 | } && test -s conftest$ac_exeext && |
---|
9855 | $as_test_x conftest$ac_exeext; then |
---|
9856 | ac_cv_lib_dl_dlopen=yes |
---|
9857 | else |
---|
9858 | echo "$as_me: failed program was:" >&5 |
---|
9859 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9860 | |
---|
9861 | ac_cv_lib_dl_dlopen=no |
---|
9862 | fi |
---|
9863 | |
---|
9864 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
9865 | conftest$ac_exeext conftest.$ac_ext |
---|
9866 | LIBS=$ac_check_lib_save_LIBS |
---|
9867 | fi |
---|
9868 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
9869 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
9870 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
9871 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
9872 | else |
---|
9873 | |
---|
9874 | lt_cv_dlopen="dyld" |
---|
9875 | lt_cv_dlopen_libs= |
---|
9876 | lt_cv_dlopen_self=yes |
---|
9877 | |
---|
9878 | fi |
---|
9879 | |
---|
9880 | ;; |
---|
9881 | |
---|
9882 | *) |
---|
9883 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
9884 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
---|
9885 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
9886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9887 | else |
---|
9888 | cat >conftest.$ac_ext <<_ACEOF |
---|
9889 | /* confdefs.h. */ |
---|
9890 | _ACEOF |
---|
9891 | cat confdefs.h >>conftest.$ac_ext |
---|
9892 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9893 | /* end confdefs.h. */ |
---|
9894 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
9895 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
9896 | #define shl_load innocuous_shl_load |
---|
9897 | |
---|
9898 | /* System header to define __stub macros and hopefully few prototypes, |
---|
9899 | which can conflict with char shl_load (); below. |
---|
9900 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
9901 | <limits.h> exists even on freestanding compilers. */ |
---|
9902 | |
---|
9903 | #ifdef __STDC__ |
---|
9904 | # include <limits.h> |
---|
9905 | #else |
---|
9906 | # include <assert.h> |
---|
9907 | #endif |
---|
9908 | |
---|
9909 | #undef shl_load |
---|
9910 | |
---|
9911 | /* Override any GCC internal prototype to avoid an error. |
---|
9912 | Use char because int might match the return type of a GCC |
---|
9913 | builtin and then its argument prototype would still apply. */ |
---|
9914 | #ifdef __cplusplus |
---|
9915 | extern "C" |
---|
9916 | #endif |
---|
9917 | char shl_load (); |
---|
9918 | /* The GNU C library defines this for functions which it implements |
---|
9919 | to always fail with ENOSYS. Some functions are actually named |
---|
9920 | something starting with __ and the normal name is an alias. */ |
---|
9921 | #if defined __stub_shl_load || defined __stub___shl_load |
---|
9922 | choke me |
---|
9923 | #endif |
---|
9924 | |
---|
9925 | int |
---|
9926 | main () |
---|
9927 | { |
---|
9928 | return shl_load (); |
---|
9929 | ; |
---|
9930 | return 0; |
---|
9931 | } |
---|
9932 | _ACEOF |
---|
9933 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9934 | if { (ac_try="$ac_link" |
---|
9935 | case "(($ac_try" in |
---|
9936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9937 | *) ac_try_echo=$ac_try;; |
---|
9938 | esac |
---|
9939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9940 | (eval "$ac_link") 2>conftest.er1 |
---|
9941 | ac_status=$? |
---|
9942 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9943 | rm -f conftest.er1 |
---|
9944 | cat conftest.err >&5 |
---|
9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9946 | (exit $ac_status); } && { |
---|
9947 | test -z "$ac_c_werror_flag" || |
---|
9948 | test ! -s conftest.err |
---|
9949 | } && test -s conftest$ac_exeext && |
---|
9950 | $as_test_x conftest$ac_exeext; then |
---|
9951 | ac_cv_func_shl_load=yes |
---|
9952 | else |
---|
9953 | echo "$as_me: failed program was:" >&5 |
---|
9954 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9955 | |
---|
9956 | ac_cv_func_shl_load=no |
---|
9957 | fi |
---|
9958 | |
---|
9959 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
9960 | conftest$ac_exeext conftest.$ac_ext |
---|
9961 | fi |
---|
9962 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
9963 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
---|
9964 | if test $ac_cv_func_shl_load = yes; then |
---|
9965 | lt_cv_dlopen="shl_load" |
---|
9966 | else |
---|
9967 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
9968 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
---|
9969 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
9970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9971 | else |
---|
9972 | ac_check_lib_save_LIBS=$LIBS |
---|
9973 | LIBS="-ldld $LIBS" |
---|
9974 | cat >conftest.$ac_ext <<_ACEOF |
---|
9975 | /* confdefs.h. */ |
---|
9976 | _ACEOF |
---|
9977 | cat confdefs.h >>conftest.$ac_ext |
---|
9978 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9979 | /* end confdefs.h. */ |
---|
9980 | |
---|
9981 | /* Override any GCC internal prototype to avoid an error. |
---|
9982 | Use char because int might match the return type of a GCC |
---|
9983 | builtin and then its argument prototype would still apply. */ |
---|
9984 | #ifdef __cplusplus |
---|
9985 | extern "C" |
---|
9986 | #endif |
---|
9987 | char shl_load (); |
---|
9988 | int |
---|
9989 | main () |
---|
9990 | { |
---|
9991 | return shl_load (); |
---|
9992 | ; |
---|
9993 | return 0; |
---|
9994 | } |
---|
9995 | _ACEOF |
---|
9996 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9997 | if { (ac_try="$ac_link" |
---|
9998 | case "(($ac_try" in |
---|
9999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10000 | *) ac_try_echo=$ac_try;; |
---|
10001 | esac |
---|
10002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10003 | (eval "$ac_link") 2>conftest.er1 |
---|
10004 | ac_status=$? |
---|
10005 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10006 | rm -f conftest.er1 |
---|
10007 | cat conftest.err >&5 |
---|
10008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10009 | (exit $ac_status); } && { |
---|
10010 | test -z "$ac_c_werror_flag" || |
---|
10011 | test ! -s conftest.err |
---|
10012 | } && test -s conftest$ac_exeext && |
---|
10013 | $as_test_x conftest$ac_exeext; then |
---|
10014 | ac_cv_lib_dld_shl_load=yes |
---|
10015 | else |
---|
10016 | echo "$as_me: failed program was:" >&5 |
---|
10017 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10018 | |
---|
10019 | ac_cv_lib_dld_shl_load=no |
---|
10020 | fi |
---|
10021 | |
---|
10022 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10023 | conftest$ac_exeext conftest.$ac_ext |
---|
10024 | LIBS=$ac_check_lib_save_LIBS |
---|
10025 | fi |
---|
10026 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
10027 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
---|
10028 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
10029 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
10030 | else |
---|
10031 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
10032 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
---|
10033 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
10034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10035 | else |
---|
10036 | cat >conftest.$ac_ext <<_ACEOF |
---|
10037 | /* confdefs.h. */ |
---|
10038 | _ACEOF |
---|
10039 | cat confdefs.h >>conftest.$ac_ext |
---|
10040 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10041 | /* end confdefs.h. */ |
---|
10042 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
10043 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10044 | #define dlopen innocuous_dlopen |
---|
10045 | |
---|
10046 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10047 | which can conflict with char dlopen (); below. |
---|
10048 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10049 | <limits.h> exists even on freestanding compilers. */ |
---|
10050 | |
---|
10051 | #ifdef __STDC__ |
---|
10052 | # include <limits.h> |
---|
10053 | #else |
---|
10054 | # include <assert.h> |
---|
10055 | #endif |
---|
10056 | |
---|
10057 | #undef dlopen |
---|
10058 | |
---|
10059 | /* Override any GCC internal prototype to avoid an error. |
---|
10060 | Use char because int might match the return type of a GCC |
---|
10061 | builtin and then its argument prototype would still apply. */ |
---|
10062 | #ifdef __cplusplus |
---|
10063 | extern "C" |
---|
10064 | #endif |
---|
10065 | char dlopen (); |
---|
10066 | /* The GNU C library defines this for functions which it implements |
---|
10067 | to always fail with ENOSYS. Some functions are actually named |
---|
10068 | something starting with __ and the normal name is an alias. */ |
---|
10069 | #if defined __stub_dlopen || defined __stub___dlopen |
---|
10070 | choke me |
---|
10071 | #endif |
---|
10072 | |
---|
10073 | int |
---|
10074 | main () |
---|
10075 | { |
---|
10076 | return dlopen (); |
---|
10077 | ; |
---|
10078 | return 0; |
---|
10079 | } |
---|
10080 | _ACEOF |
---|
10081 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10082 | if { (ac_try="$ac_link" |
---|
10083 | case "(($ac_try" in |
---|
10084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10085 | *) ac_try_echo=$ac_try;; |
---|
10086 | esac |
---|
10087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10088 | (eval "$ac_link") 2>conftest.er1 |
---|
10089 | ac_status=$? |
---|
10090 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10091 | rm -f conftest.er1 |
---|
10092 | cat conftest.err >&5 |
---|
10093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10094 | (exit $ac_status); } && { |
---|
10095 | test -z "$ac_c_werror_flag" || |
---|
10096 | test ! -s conftest.err |
---|
10097 | } && test -s conftest$ac_exeext && |
---|
10098 | $as_test_x conftest$ac_exeext; then |
---|
10099 | ac_cv_func_dlopen=yes |
---|
10100 | else |
---|
10101 | echo "$as_me: failed program was:" >&5 |
---|
10102 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10103 | |
---|
10104 | ac_cv_func_dlopen=no |
---|
10105 | fi |
---|
10106 | |
---|
10107 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10108 | conftest$ac_exeext conftest.$ac_ext |
---|
10109 | fi |
---|
10110 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
10111 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
---|
10112 | if test $ac_cv_func_dlopen = yes; then |
---|
10113 | lt_cv_dlopen="dlopen" |
---|
10114 | else |
---|
10115 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
10116 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
10117 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
10118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10119 | else |
---|
10120 | ac_check_lib_save_LIBS=$LIBS |
---|
10121 | LIBS="-ldl $LIBS" |
---|
10122 | cat >conftest.$ac_ext <<_ACEOF |
---|
10123 | /* confdefs.h. */ |
---|
10124 | _ACEOF |
---|
10125 | cat confdefs.h >>conftest.$ac_ext |
---|
10126 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10127 | /* end confdefs.h. */ |
---|
10128 | |
---|
10129 | /* Override any GCC internal prototype to avoid an error. |
---|
10130 | Use char because int might match the return type of a GCC |
---|
10131 | builtin and then its argument prototype would still apply. */ |
---|
10132 | #ifdef __cplusplus |
---|
10133 | extern "C" |
---|
10134 | #endif |
---|
10135 | char dlopen (); |
---|
10136 | int |
---|
10137 | main () |
---|
10138 | { |
---|
10139 | return dlopen (); |
---|
10140 | ; |
---|
10141 | return 0; |
---|
10142 | } |
---|
10143 | _ACEOF |
---|
10144 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10145 | if { (ac_try="$ac_link" |
---|
10146 | case "(($ac_try" in |
---|
10147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10148 | *) ac_try_echo=$ac_try;; |
---|
10149 | esac |
---|
10150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10151 | (eval "$ac_link") 2>conftest.er1 |
---|
10152 | ac_status=$? |
---|
10153 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10154 | rm -f conftest.er1 |
---|
10155 | cat conftest.err >&5 |
---|
10156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10157 | (exit $ac_status); } && { |
---|
10158 | test -z "$ac_c_werror_flag" || |
---|
10159 | test ! -s conftest.err |
---|
10160 | } && test -s conftest$ac_exeext && |
---|
10161 | $as_test_x conftest$ac_exeext; then |
---|
10162 | ac_cv_lib_dl_dlopen=yes |
---|
10163 | else |
---|
10164 | echo "$as_me: failed program was:" >&5 |
---|
10165 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10166 | |
---|
10167 | ac_cv_lib_dl_dlopen=no |
---|
10168 | fi |
---|
10169 | |
---|
10170 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10171 | conftest$ac_exeext conftest.$ac_ext |
---|
10172 | LIBS=$ac_check_lib_save_LIBS |
---|
10173 | fi |
---|
10174 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10175 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
10176 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
10177 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10178 | else |
---|
10179 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
10180 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
---|
10181 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
10182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10183 | else |
---|
10184 | ac_check_lib_save_LIBS=$LIBS |
---|
10185 | LIBS="-lsvld $LIBS" |
---|
10186 | cat >conftest.$ac_ext <<_ACEOF |
---|
10187 | /* confdefs.h. */ |
---|
10188 | _ACEOF |
---|
10189 | cat confdefs.h >>conftest.$ac_ext |
---|
10190 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10191 | /* end confdefs.h. */ |
---|
10192 | |
---|
10193 | /* Override any GCC internal prototype to avoid an error. |
---|
10194 | Use char because int might match the return type of a GCC |
---|
10195 | builtin and then its argument prototype would still apply. */ |
---|
10196 | #ifdef __cplusplus |
---|
10197 | extern "C" |
---|
10198 | #endif |
---|
10199 | char dlopen (); |
---|
10200 | int |
---|
10201 | main () |
---|
10202 | { |
---|
10203 | return dlopen (); |
---|
10204 | ; |
---|
10205 | return 0; |
---|
10206 | } |
---|
10207 | _ACEOF |
---|
10208 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10209 | if { (ac_try="$ac_link" |
---|
10210 | case "(($ac_try" in |
---|
10211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10212 | *) ac_try_echo=$ac_try;; |
---|
10213 | esac |
---|
10214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10215 | (eval "$ac_link") 2>conftest.er1 |
---|
10216 | ac_status=$? |
---|
10217 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10218 | rm -f conftest.er1 |
---|
10219 | cat conftest.err >&5 |
---|
10220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10221 | (exit $ac_status); } && { |
---|
10222 | test -z "$ac_c_werror_flag" || |
---|
10223 | test ! -s conftest.err |
---|
10224 | } && test -s conftest$ac_exeext && |
---|
10225 | $as_test_x conftest$ac_exeext; then |
---|
10226 | ac_cv_lib_svld_dlopen=yes |
---|
10227 | else |
---|
10228 | echo "$as_me: failed program was:" >&5 |
---|
10229 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10230 | |
---|
10231 | ac_cv_lib_svld_dlopen=no |
---|
10232 | fi |
---|
10233 | |
---|
10234 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10235 | conftest$ac_exeext conftest.$ac_ext |
---|
10236 | LIBS=$ac_check_lib_save_LIBS |
---|
10237 | fi |
---|
10238 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
10239 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
---|
10240 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
10241 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
10242 | else |
---|
10243 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
10244 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
---|
10245 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
10246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10247 | else |
---|
10248 | ac_check_lib_save_LIBS=$LIBS |
---|
10249 | LIBS="-ldld $LIBS" |
---|
10250 | cat >conftest.$ac_ext <<_ACEOF |
---|
10251 | /* confdefs.h. */ |
---|
10252 | _ACEOF |
---|
10253 | cat confdefs.h >>conftest.$ac_ext |
---|
10254 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10255 | /* end confdefs.h. */ |
---|
10256 | |
---|
10257 | /* Override any GCC internal prototype to avoid an error. |
---|
10258 | Use char because int might match the return type of a GCC |
---|
10259 | builtin and then its argument prototype would still apply. */ |
---|
10260 | #ifdef __cplusplus |
---|
10261 | extern "C" |
---|
10262 | #endif |
---|
10263 | char dld_link (); |
---|
10264 | int |
---|
10265 | main () |
---|
10266 | { |
---|
10267 | return dld_link (); |
---|
10268 | ; |
---|
10269 | return 0; |
---|
10270 | } |
---|
10271 | _ACEOF |
---|
10272 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10273 | if { (ac_try="$ac_link" |
---|
10274 | case "(($ac_try" in |
---|
10275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10276 | *) ac_try_echo=$ac_try;; |
---|
10277 | esac |
---|
10278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10279 | (eval "$ac_link") 2>conftest.er1 |
---|
10280 | ac_status=$? |
---|
10281 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10282 | rm -f conftest.er1 |
---|
10283 | cat conftest.err >&5 |
---|
10284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10285 | (exit $ac_status); } && { |
---|
10286 | test -z "$ac_c_werror_flag" || |
---|
10287 | test ! -s conftest.err |
---|
10288 | } && test -s conftest$ac_exeext && |
---|
10289 | $as_test_x conftest$ac_exeext; then |
---|
10290 | ac_cv_lib_dld_dld_link=yes |
---|
10291 | else |
---|
10292 | echo "$as_me: failed program was:" >&5 |
---|
10293 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10294 | |
---|
10295 | ac_cv_lib_dld_dld_link=no |
---|
10296 | fi |
---|
10297 | |
---|
10298 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10299 | conftest$ac_exeext conftest.$ac_ext |
---|
10300 | LIBS=$ac_check_lib_save_LIBS |
---|
10301 | fi |
---|
10302 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
10303 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
---|
10304 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
10305 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
10306 | fi |
---|
10307 | |
---|
10308 | |
---|
10309 | fi |
---|
10310 | |
---|
10311 | |
---|
10312 | fi |
---|
10313 | |
---|
10314 | |
---|
10315 | fi |
---|
10316 | |
---|
10317 | |
---|
10318 | fi |
---|
10319 | |
---|
10320 | |
---|
10321 | fi |
---|
10322 | |
---|
10323 | ;; |
---|
10324 | esac |
---|
10325 | |
---|
10326 | if test "x$lt_cv_dlopen" != xno; then |
---|
10327 | enable_dlopen=yes |
---|
10328 | else |
---|
10329 | enable_dlopen=no |
---|
10330 | fi |
---|
10331 | |
---|
10332 | case $lt_cv_dlopen in |
---|
10333 | dlopen) |
---|
10334 | save_CPPFLAGS="$CPPFLAGS" |
---|
10335 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
10336 | |
---|
10337 | save_LDFLAGS="$LDFLAGS" |
---|
10338 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
10339 | |
---|
10340 | save_LIBS="$LIBS" |
---|
10341 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
10342 | |
---|
10343 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
10344 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
---|
10345 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
10346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10347 | else |
---|
10348 | if test "$cross_compiling" = yes; then : |
---|
10349 | lt_cv_dlopen_self=cross |
---|
10350 | else |
---|
10351 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10352 | lt_status=$lt_dlunknown |
---|
10353 | cat > conftest.$ac_ext <<EOF |
---|
10354 | #line 10354 "configure" |
---|
10355 | #include "confdefs.h" |
---|
10356 | |
---|
10357 | #if HAVE_DLFCN_H |
---|
10358 | #include <dlfcn.h> |
---|
10359 | #endif |
---|
10360 | |
---|
10361 | #include <stdio.h> |
---|
10362 | |
---|
10363 | #ifdef RTLD_GLOBAL |
---|
10364 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10365 | #else |
---|
10366 | # ifdef DL_GLOBAL |
---|
10367 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10368 | # else |
---|
10369 | # define LT_DLGLOBAL 0 |
---|
10370 | # endif |
---|
10371 | #endif |
---|
10372 | |
---|
10373 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10374 | find out it does not work in some platform. */ |
---|
10375 | #ifndef LT_DLLAZY_OR_NOW |
---|
10376 | # ifdef RTLD_LAZY |
---|
10377 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10378 | # else |
---|
10379 | # ifdef DL_LAZY |
---|
10380 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10381 | # else |
---|
10382 | # ifdef RTLD_NOW |
---|
10383 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10384 | # else |
---|
10385 | # ifdef DL_NOW |
---|
10386 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10387 | # else |
---|
10388 | # define LT_DLLAZY_OR_NOW 0 |
---|
10389 | # endif |
---|
10390 | # endif |
---|
10391 | # endif |
---|
10392 | # endif |
---|
10393 | #endif |
---|
10394 | |
---|
10395 | #ifdef __cplusplus |
---|
10396 | extern "C" void exit (int); |
---|
10397 | #endif |
---|
10398 | |
---|
10399 | void fnord() { int i=42;} |
---|
10400 | int main () |
---|
10401 | { |
---|
10402 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10403 | int status = $lt_dlunknown; |
---|
10404 | |
---|
10405 | if (self) |
---|
10406 | { |
---|
10407 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10408 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10409 | /* dlclose (self); */ |
---|
10410 | } |
---|
10411 | |
---|
10412 | exit (status); |
---|
10413 | } |
---|
10414 | EOF |
---|
10415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10416 | (eval $ac_link) 2>&5 |
---|
10417 | ac_status=$? |
---|
10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10419 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10420 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10421 | lt_status=$? |
---|
10422 | case x$lt_status in |
---|
10423 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
10424 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
10425 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
10426 | esac |
---|
10427 | else : |
---|
10428 | # compilation failed |
---|
10429 | lt_cv_dlopen_self=no |
---|
10430 | fi |
---|
10431 | fi |
---|
10432 | rm -fr conftest* |
---|
10433 | |
---|
10434 | |
---|
10435 | fi |
---|
10436 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
10437 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
---|
10438 | |
---|
10439 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
10440 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
10441 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
10442 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
---|
10443 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
10444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10445 | else |
---|
10446 | if test "$cross_compiling" = yes; then : |
---|
10447 | lt_cv_dlopen_self_static=cross |
---|
10448 | else |
---|
10449 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
10450 | lt_status=$lt_dlunknown |
---|
10451 | cat > conftest.$ac_ext <<EOF |
---|
10452 | #line 10452 "configure" |
---|
10453 | #include "confdefs.h" |
---|
10454 | |
---|
10455 | #if HAVE_DLFCN_H |
---|
10456 | #include <dlfcn.h> |
---|
10457 | #endif |
---|
10458 | |
---|
10459 | #include <stdio.h> |
---|
10460 | |
---|
10461 | #ifdef RTLD_GLOBAL |
---|
10462 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
10463 | #else |
---|
10464 | # ifdef DL_GLOBAL |
---|
10465 | # define LT_DLGLOBAL DL_GLOBAL |
---|
10466 | # else |
---|
10467 | # define LT_DLGLOBAL 0 |
---|
10468 | # endif |
---|
10469 | #endif |
---|
10470 | |
---|
10471 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
10472 | find out it does not work in some platform. */ |
---|
10473 | #ifndef LT_DLLAZY_OR_NOW |
---|
10474 | # ifdef RTLD_LAZY |
---|
10475 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
10476 | # else |
---|
10477 | # ifdef DL_LAZY |
---|
10478 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
10479 | # else |
---|
10480 | # ifdef RTLD_NOW |
---|
10481 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
10482 | # else |
---|
10483 | # ifdef DL_NOW |
---|
10484 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
10485 | # else |
---|
10486 | # define LT_DLLAZY_OR_NOW 0 |
---|
10487 | # endif |
---|
10488 | # endif |
---|
10489 | # endif |
---|
10490 | # endif |
---|
10491 | #endif |
---|
10492 | |
---|
10493 | #ifdef __cplusplus |
---|
10494 | extern "C" void exit (int); |
---|
10495 | #endif |
---|
10496 | |
---|
10497 | void fnord() { int i=42;} |
---|
10498 | int main () |
---|
10499 | { |
---|
10500 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
10501 | int status = $lt_dlunknown; |
---|
10502 | |
---|
10503 | if (self) |
---|
10504 | { |
---|
10505 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
10506 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
10507 | /* dlclose (self); */ |
---|
10508 | } |
---|
10509 | |
---|
10510 | exit (status); |
---|
10511 | } |
---|
10512 | EOF |
---|
10513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
10514 | (eval $ac_link) 2>&5 |
---|
10515 | ac_status=$? |
---|
10516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10517 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
10518 | (./conftest; exit; ) >&5 2>/dev/null |
---|
10519 | lt_status=$? |
---|
10520 | case x$lt_status in |
---|
10521 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10522 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
10523 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
10524 | esac |
---|
10525 | else : |
---|
10526 | # compilation failed |
---|
10527 | lt_cv_dlopen_self_static=no |
---|
10528 | fi |
---|
10529 | fi |
---|
10530 | rm -fr conftest* |
---|
10531 | |
---|
10532 | |
---|
10533 | fi |
---|
10534 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
10535 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
---|
10536 | fi |
---|
10537 | |
---|
10538 | CPPFLAGS="$save_CPPFLAGS" |
---|
10539 | LDFLAGS="$save_LDFLAGS" |
---|
10540 | LIBS="$save_LIBS" |
---|
10541 | ;; |
---|
10542 | esac |
---|
10543 | |
---|
10544 | case $lt_cv_dlopen_self in |
---|
10545 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
10546 | *) enable_dlopen_self=unknown ;; |
---|
10547 | esac |
---|
10548 | |
---|
10549 | case $lt_cv_dlopen_self_static in |
---|
10550 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
10551 | *) enable_dlopen_self_static=unknown ;; |
---|
10552 | esac |
---|
10553 | fi |
---|
10554 | |
---|
10555 | |
---|
10556 | # Report which librarie types wil actually be built |
---|
10557 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
10558 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
---|
10559 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
10560 | echo "${ECHO_T}$can_build_shared" >&6; } |
---|
10561 | |
---|
10562 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
10563 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
---|
10564 | test "$can_build_shared" = "no" && enable_shared=no |
---|
10565 | |
---|
10566 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
10567 | # are all built from PIC. |
---|
10568 | case $host_os in |
---|
10569 | aix3*) |
---|
10570 | test "$enable_shared" = yes && enable_static=no |
---|
10571 | if test -n "$RANLIB"; then |
---|
10572 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
10573 | postinstall_cmds='$RANLIB $lib' |
---|
10574 | fi |
---|
10575 | ;; |
---|
10576 | |
---|
10577 | aix4* | aix5*) |
---|
10578 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
10579 | test "$enable_shared" = yes && enable_static=no |
---|
10580 | fi |
---|
10581 | ;; |
---|
10582 | esac |
---|
10583 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
10584 | echo "${ECHO_T}$enable_shared" >&6; } |
---|
10585 | |
---|
10586 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
10587 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
---|
10588 | # Make sure either enable_shared or enable_static is yes. |
---|
10589 | test "$enable_shared" = yes || enable_static=yes |
---|
10590 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
10591 | echo "${ECHO_T}$enable_static" >&6; } |
---|
10592 | |
---|
10593 | # The else clause should only fire when bootstrapping the |
---|
10594 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
10595 | # with your package, and you will get complaints that there are |
---|
10596 | # no rules to generate ltmain.sh. |
---|
10597 | if test -f "$ltmain"; then |
---|
10598 | # See if we are running on zsh, and set the options which allow our commands through |
---|
10599 | # without removal of \ escapes. |
---|
10600 | if test -n "${ZSH_VERSION+set}" ; then |
---|
10601 | setopt NO_GLOB_SUBST |
---|
10602 | fi |
---|
10603 | # Now quote all the things that may contain metacharacters while being |
---|
10604 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
10605 | # variables and quote the copies for generation of the libtool script. |
---|
10606 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
10607 | SED SHELL STRIP \ |
---|
10608 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
10609 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
10610 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
10611 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
10612 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
10613 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
10614 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
10615 | compiler \ |
---|
10616 | CC \ |
---|
10617 | LD \ |
---|
10618 | lt_prog_compiler_wl \ |
---|
10619 | lt_prog_compiler_pic \ |
---|
10620 | lt_prog_compiler_static \ |
---|
10621 | lt_prog_compiler_no_builtin_flag \ |
---|
10622 | export_dynamic_flag_spec \ |
---|
10623 | thread_safe_flag_spec \ |
---|
10624 | whole_archive_flag_spec \ |
---|
10625 | enable_shared_with_static_runtimes \ |
---|
10626 | old_archive_cmds \ |
---|
10627 | old_archive_from_new_cmds \ |
---|
10628 | predep_objects \ |
---|
10629 | postdep_objects \ |
---|
10630 | predeps \ |
---|
10631 | postdeps \ |
---|
10632 | compiler_lib_search_path \ |
---|
10633 | archive_cmds \ |
---|
10634 | archive_expsym_cmds \ |
---|
10635 | postinstall_cmds \ |
---|
10636 | postuninstall_cmds \ |
---|
10637 | old_archive_from_expsyms_cmds \ |
---|
10638 | allow_undefined_flag \ |
---|
10639 | no_undefined_flag \ |
---|
10640 | export_symbols_cmds \ |
---|
10641 | hardcode_libdir_flag_spec \ |
---|
10642 | hardcode_libdir_flag_spec_ld \ |
---|
10643 | hardcode_libdir_separator \ |
---|
10644 | hardcode_automatic \ |
---|
10645 | module_cmds \ |
---|
10646 | module_expsym_cmds \ |
---|
10647 | lt_cv_prog_compiler_c_o \ |
---|
10648 | exclude_expsyms \ |
---|
10649 | include_expsyms; do |
---|
10650 | |
---|
10651 | case $var in |
---|
10652 | old_archive_cmds | \ |
---|
10653 | old_archive_from_new_cmds | \ |
---|
10654 | archive_cmds | \ |
---|
10655 | archive_expsym_cmds | \ |
---|
10656 | module_cmds | \ |
---|
10657 | module_expsym_cmds | \ |
---|
10658 | old_archive_from_expsyms_cmds | \ |
---|
10659 | export_symbols_cmds | \ |
---|
10660 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
10661 | postinstall_cmds | postuninstall_cmds | \ |
---|
10662 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
10663 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
10664 | # Double-quote double-evaled strings. |
---|
10665 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
10666 | ;; |
---|
10667 | *) |
---|
10668 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
10669 | ;; |
---|
10670 | esac |
---|
10671 | done |
---|
10672 | |
---|
10673 | case $lt_echo in |
---|
10674 | *'\$0 --fallback-echo"') |
---|
10675 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
10676 | ;; |
---|
10677 | esac |
---|
10678 | |
---|
10679 | cfgfile="${ofile}T" |
---|
10680 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
---|
10681 | $rm -f "$cfgfile" |
---|
10682 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
---|
10683 | echo "$as_me: creating $ofile" >&6;} |
---|
10684 | |
---|
10685 | cat <<__EOF__ >> "$cfgfile" |
---|
10686 | #! $SHELL |
---|
10687 | |
---|
10688 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
---|
10689 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
---|
10690 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
---|
10691 | # |
---|
10692 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
---|
10693 | # Free Software Foundation, Inc. |
---|
10694 | # |
---|
10695 | # This file is part of GNU Libtool: |
---|
10696 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
---|
10697 | # |
---|
10698 | # This program is free software; you can redistribute it and/or modify |
---|
10699 | # it under the terms of the GNU General Public License as published by |
---|
10700 | # the Free Software Foundation; either version 2 of the License, or |
---|
10701 | # (at your option) any later version. |
---|
10702 | # |
---|
10703 | # This program is distributed in the hope that it will be useful, but |
---|
10704 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10705 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
10706 | # General Public License for more details. |
---|
10707 | # |
---|
10708 | # You should have received a copy of the GNU General Public License |
---|
10709 | # along with this program; if not, write to the Free Software |
---|
10710 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
10711 | # |
---|
10712 | # As a special exception to the GNU General Public License, if you |
---|
10713 | # distribute this file as part of a program that contains a |
---|
10714 | # configuration script generated by Autoconf, you may include it under |
---|
10715 | # the same distribution terms that you use for the rest of that program. |
---|
10716 | |
---|
10717 | # A sed program that does not truncate output. |
---|
10718 | SED=$lt_SED |
---|
10719 | |
---|
10720 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
---|
10721 | Xsed="$SED -e 1s/^X//" |
---|
10722 | |
---|
10723 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
10724 | # if CDPATH is set. |
---|
10725 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
10726 | |
---|
10727 | # The names of the tagged configurations supported by this script. |
---|
10728 | available_tags= |
---|
10729 | |
---|
10730 | # ### BEGIN LIBTOOL CONFIG |
---|
10731 | |
---|
10732 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
10733 | |
---|
10734 | # Shell to use when invoking shell scripts. |
---|
10735 | SHELL=$lt_SHELL |
---|
10736 | |
---|
10737 | # Whether or not to build shared libraries. |
---|
10738 | build_libtool_libs=$enable_shared |
---|
10739 | |
---|
10740 | # Whether or not to build static libraries. |
---|
10741 | build_old_libs=$enable_static |
---|
10742 | |
---|
10743 | # Whether or not to add -lc for building shared libraries. |
---|
10744 | build_libtool_need_lc=$archive_cmds_need_lc |
---|
10745 | |
---|
10746 | # Whether or not to disallow shared libs when runtime libs are static |
---|
10747 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
---|
10748 | |
---|
10749 | # Whether or not to optimize for fast installation. |
---|
10750 | fast_install=$enable_fast_install |
---|
10751 | |
---|
10752 | # The host system. |
---|
10753 | host_alias=$host_alias |
---|
10754 | host=$host |
---|
10755 | host_os=$host_os |
---|
10756 | |
---|
10757 | # The build system. |
---|
10758 | build_alias=$build_alias |
---|
10759 | build=$build |
---|
10760 | build_os=$build_os |
---|
10761 | |
---|
10762 | # An echo program that does not interpret backslashes. |
---|
10763 | echo=$lt_echo |
---|
10764 | |
---|
10765 | # The archiver. |
---|
10766 | AR=$lt_AR |
---|
10767 | AR_FLAGS=$lt_AR_FLAGS |
---|
10768 | |
---|
10769 | # A C compiler. |
---|
10770 | LTCC=$lt_LTCC |
---|
10771 | |
---|
10772 | # A language-specific compiler. |
---|
10773 | CC=$lt_compiler |
---|
10774 | |
---|
10775 | # Is the compiler the GNU C compiler? |
---|
10776 | with_gcc=$GCC |
---|
10777 | |
---|
10778 | # An ERE matcher. |
---|
10779 | EGREP=$lt_EGREP |
---|
10780 | |
---|
10781 | # The linker used to build libraries. |
---|
10782 | LD=$lt_LD |
---|
10783 | |
---|
10784 | # Whether we need hard or soft links. |
---|
10785 | LN_S=$lt_LN_S |
---|
10786 | |
---|
10787 | # A BSD-compatible nm program. |
---|
10788 | NM=$lt_NM |
---|
10789 | |
---|
10790 | # A symbol stripping program |
---|
10791 | STRIP=$lt_STRIP |
---|
10792 | |
---|
10793 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
10794 | MAGIC_CMD=$MAGIC_CMD |
---|
10795 | |
---|
10796 | # Used on cygwin: DLL creation program. |
---|
10797 | DLLTOOL="$DLLTOOL" |
---|
10798 | |
---|
10799 | # Used on cygwin: object dumper. |
---|
10800 | OBJDUMP="$OBJDUMP" |
---|
10801 | |
---|
10802 | # Used on cygwin: assembler. |
---|
10803 | AS="$AS" |
---|
10804 | |
---|
10805 | # The name of the directory that contains temporary libtool files. |
---|
10806 | objdir=$objdir |
---|
10807 | |
---|
10808 | # How to create reloadable object files. |
---|
10809 | reload_flag=$lt_reload_flag |
---|
10810 | reload_cmds=$lt_reload_cmds |
---|
10811 | |
---|
10812 | # How to pass a linker flag through the compiler. |
---|
10813 | wl=$lt_lt_prog_compiler_wl |
---|
10814 | |
---|
10815 | # Object file suffix (normally "o"). |
---|
10816 | objext="$ac_objext" |
---|
10817 | |
---|
10818 | # Old archive suffix (normally "a"). |
---|
10819 | libext="$libext" |
---|
10820 | |
---|
10821 | # Shared library suffix (normally ".so"). |
---|
10822 | shrext_cmds='$shrext_cmds' |
---|
10823 | |
---|
10824 | # Executable file suffix (normally ""). |
---|
10825 | exeext="$exeext" |
---|
10826 | |
---|
10827 | # Additional compiler flags for building library objects. |
---|
10828 | pic_flag=$lt_lt_prog_compiler_pic |
---|
10829 | pic_mode=$pic_mode |
---|
10830 | |
---|
10831 | # What is the maximum length of a command? |
---|
10832 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
10833 | |
---|
10834 | # Does compiler simultaneously support -c and -o options? |
---|
10835 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
---|
10836 | |
---|
10837 | # Must we lock files when doing compilation? |
---|
10838 | need_locks=$lt_need_locks |
---|
10839 | |
---|
10840 | # Do we need the lib prefix for modules? |
---|
10841 | need_lib_prefix=$need_lib_prefix |
---|
10842 | |
---|
10843 | # Do we need a version for libraries? |
---|
10844 | need_version=$need_version |
---|
10845 | |
---|
10846 | # Whether dlopen is supported. |
---|
10847 | dlopen_support=$enable_dlopen |
---|
10848 | |
---|
10849 | # Whether dlopen of programs is supported. |
---|
10850 | dlopen_self=$enable_dlopen_self |
---|
10851 | |
---|
10852 | # Whether dlopen of statically linked programs is supported. |
---|
10853 | dlopen_self_static=$enable_dlopen_self_static |
---|
10854 | |
---|
10855 | # Compiler flag to prevent dynamic linking. |
---|
10856 | link_static_flag=$lt_lt_prog_compiler_static |
---|
10857 | |
---|
10858 | # Compiler flag to turn off builtin functions. |
---|
10859 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
---|
10860 | |
---|
10861 | # Compiler flag to allow reflexive dlopens. |
---|
10862 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
---|
10863 | |
---|
10864 | # Compiler flag to generate shared objects directly from archives. |
---|
10865 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
---|
10866 | |
---|
10867 | # Compiler flag to generate thread-safe objects. |
---|
10868 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
---|
10869 | |
---|
10870 | # Library versioning type. |
---|
10871 | version_type=$version_type |
---|
10872 | |
---|
10873 | # Format of library name prefix. |
---|
10874 | libname_spec=$lt_libname_spec |
---|
10875 | |
---|
10876 | # List of archive names. First name is the real one, the rest are links. |
---|
10877 | # The last name is the one that the linker finds with -lNAME. |
---|
10878 | library_names_spec=$lt_library_names_spec |
---|
10879 | |
---|
10880 | # The coded name of the library, if different from the real name. |
---|
10881 | soname_spec=$lt_soname_spec |
---|
10882 | |
---|
10883 | # Commands used to build and install an old-style archive. |
---|
10884 | RANLIB=$lt_RANLIB |
---|
10885 | old_archive_cmds=$lt_old_archive_cmds |
---|
10886 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
10887 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
10888 | |
---|
10889 | # Create an old-style archive from a shared archive. |
---|
10890 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
---|
10891 | |
---|
10892 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
10893 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
---|
10894 | |
---|
10895 | # Commands used to build and install a shared archive. |
---|
10896 | archive_cmds=$lt_archive_cmds |
---|
10897 | archive_expsym_cmds=$lt_archive_expsym_cmds |
---|
10898 | postinstall_cmds=$lt_postinstall_cmds |
---|
10899 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
10900 | |
---|
10901 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
10902 | module_cmds=$lt_module_cmds |
---|
10903 | module_expsym_cmds=$lt_module_expsym_cmds |
---|
10904 | |
---|
10905 | # Commands to strip libraries. |
---|
10906 | old_striplib=$lt_old_striplib |
---|
10907 | striplib=$lt_striplib |
---|
10908 | |
---|
10909 | # Dependencies to place before the objects being linked to create a |
---|
10910 | # shared library. |
---|
10911 | predep_objects=$lt_predep_objects |
---|
10912 | |
---|
10913 | # Dependencies to place after the objects being linked to create a |
---|
10914 | # shared library. |
---|
10915 | postdep_objects=$lt_postdep_objects |
---|
10916 | |
---|
10917 | # Dependencies to place before the objects being linked to create a |
---|
10918 | # shared library. |
---|
10919 | predeps=$lt_predeps |
---|
10920 | |
---|
10921 | # Dependencies to place after the objects being linked to create a |
---|
10922 | # shared library. |
---|
10923 | postdeps=$lt_postdeps |
---|
10924 | |
---|
10925 | # The library search path used internally by the compiler when linking |
---|
10926 | # a shared library. |
---|
10927 | compiler_lib_search_path=$lt_compiler_lib_search_path |
---|
10928 | |
---|
10929 | # Method to check whether dependent libraries are shared objects. |
---|
10930 | deplibs_check_method=$lt_deplibs_check_method |
---|
10931 | |
---|
10932 | # Command to use when deplibs_check_method == file_magic. |
---|
10933 | file_magic_cmd=$lt_file_magic_cmd |
---|
10934 | |
---|
10935 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
10936 | allow_undefined_flag=$lt_allow_undefined_flag |
---|
10937 | |
---|
10938 | # Flag that forces no undefined symbols. |
---|
10939 | no_undefined_flag=$lt_no_undefined_flag |
---|
10940 | |
---|
10941 | # Commands used to finish a libtool library installation in a directory. |
---|
10942 | finish_cmds=$lt_finish_cmds |
---|
10943 | |
---|
10944 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
10945 | finish_eval=$lt_finish_eval |
---|
10946 | |
---|
10947 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
10948 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
10949 | |
---|
10950 | # Transform the output of nm in a proper C declaration |
---|
10951 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
10952 | |
---|
10953 | # Transform the output of nm in a C name address pair |
---|
10954 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
10955 | |
---|
10956 | # This is the shared library runtime path variable. |
---|
10957 | runpath_var=$runpath_var |
---|
10958 | |
---|
10959 | # This is the shared library path variable. |
---|
10960 | shlibpath_var=$shlibpath_var |
---|
10961 | |
---|
10962 | # Is shlibpath searched before the hard-coded library search path? |
---|
10963 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
10964 | |
---|
10965 | # How to hardcode a shared library path into an executable. |
---|
10966 | hardcode_action=$hardcode_action |
---|
10967 | |
---|
10968 | # Whether we should hardcode library paths into libraries. |
---|
10969 | hardcode_into_libs=$hardcode_into_libs |
---|
10970 | |
---|
10971 | # Flag to hardcode \$libdir into a binary during linking. |
---|
10972 | # This must work even if \$libdir does not exist. |
---|
10973 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
---|
10974 | |
---|
10975 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
10976 | # a binary during linking. This must work even if \$libdir does |
---|
10977 | # not exist. |
---|
10978 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
---|
10979 | |
---|
10980 | # Whether we need a single -rpath flag with a separated argument. |
---|
10981 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
---|
10982 | |
---|
10983 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
10984 | # resulting binary. |
---|
10985 | hardcode_direct=$hardcode_direct |
---|
10986 | |
---|
10987 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
10988 | # resulting binary. |
---|
10989 | hardcode_minus_L=$hardcode_minus_L |
---|
10990 | |
---|
10991 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
10992 | # the resulting binary. |
---|
10993 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
---|
10994 | |
---|
10995 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
10996 | # and all subsequent libraries and executables linked against it. |
---|
10997 | hardcode_automatic=$hardcode_automatic |
---|
10998 | |
---|
10999 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
11000 | # restored at relink time. |
---|
11001 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
11002 | |
---|
11003 | # Whether libtool must link a program against all its dependency libraries. |
---|
11004 | link_all_deplibs=$link_all_deplibs |
---|
11005 | |
---|
11006 | # Compile-time system search path for libraries |
---|
11007 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
11008 | |
---|
11009 | # Run-time system search path for libraries |
---|
11010 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
11011 | |
---|
11012 | # Fix the shell variable \$srcfile for the compiler. |
---|
11013 | fix_srcfile_path="$fix_srcfile_path" |
---|
11014 | |
---|
11015 | # Set to yes if exported symbols are required. |
---|
11016 | always_export_symbols=$always_export_symbols |
---|
11017 | |
---|
11018 | # The commands to list exported symbols. |
---|
11019 | export_symbols_cmds=$lt_export_symbols_cmds |
---|
11020 | |
---|
11021 | # The commands to extract the exported symbol list from a shared archive. |
---|
11022 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
11023 | |
---|
11024 | # Symbols that should not be listed in the preloaded symbols. |
---|
11025 | exclude_expsyms=$lt_exclude_expsyms |
---|
11026 | |
---|
11027 | # Symbols that must always be exported. |
---|
11028 | include_expsyms=$lt_include_expsyms |
---|
11029 | |
---|
11030 | # ### END LIBTOOL CONFIG |
---|
11031 | |
---|
11032 | __EOF__ |
---|
11033 | |
---|
11034 | |
---|
11035 | case $host_os in |
---|
11036 | aix3*) |
---|
11037 | cat <<\EOF >> "$cfgfile" |
---|
11038 | |
---|
11039 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
11040 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
11041 | # vanish in a puff of smoke. |
---|
11042 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
11043 | COLLECT_NAMES= |
---|
11044 | export COLLECT_NAMES |
---|
11045 | fi |
---|
11046 | EOF |
---|
11047 | ;; |
---|
11048 | esac |
---|
11049 | |
---|
11050 | # We use sed instead of cat because bash on DJGPP gets confused if |
---|
11051 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
---|
11052 | # text mode, it properly converts lines to CR/LF. This bash problem |
---|
11053 | # is reportedly fixed, but why not run on old versions too? |
---|
11054 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
---|
11055 | |
---|
11056 | mv -f "$cfgfile" "$ofile" || \ |
---|
11057 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
---|
11058 | chmod +x "$ofile" |
---|
11059 | |
---|
11060 | else |
---|
11061 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
11062 | # `config.status --recheck' to rerun these tests and create the |
---|
11063 | # libtool script then. |
---|
11064 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
11065 | if test -f "$ltmain_in"; then |
---|
11066 | test -f Makefile && make "$ltmain" |
---|
11067 | fi |
---|
11068 | fi |
---|
11069 | |
---|
11070 | |
---|
11071 | ac_ext=c |
---|
11072 | ac_cpp='$CPP $CPPFLAGS' |
---|
11073 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
11074 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
11075 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
11076 | |
---|
11077 | CC="$lt_save_CC" |
---|
11078 | |
---|
11079 | |
---|
11080 | # Check whether --with-tags was given. |
---|
11081 | if test "${with_tags+set}" = set; then |
---|
11082 | withval=$with_tags; tagnames="$withval" |
---|
11083 | fi |
---|
11084 | |
---|
11085 | |
---|
11086 | if test -f "$ltmain" && test -n "$tagnames"; then |
---|
11087 | if test ! -f "${ofile}"; then |
---|
11088 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
---|
11089 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
---|
11090 | fi |
---|
11091 | |
---|
11092 | if test -z "$LTCC"; then |
---|
11093 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
---|
11094 | if test -z "$LTCC"; then |
---|
11095 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
---|
11096 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
---|
11097 | else |
---|
11098 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
---|
11099 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
---|
11100 | fi |
---|
11101 | fi |
---|
11102 | |
---|
11103 | # Extract list of available tagged configurations in $ofile. |
---|
11104 | # Note that this assumes the entire list is on one line. |
---|
11105 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
---|
11106 | |
---|
11107 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
11108 | for tagname in $tagnames; do |
---|
11109 | IFS="$lt_save_ifs" |
---|
11110 | # Check whether tagname contains only valid characters |
---|
11111 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
---|
11112 | "") ;; |
---|
11113 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
---|
11114 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
---|
11115 | { (exit 1); exit 1; }; } |
---|
11116 | ;; |
---|
11117 | esac |
---|
11118 | |
---|
11119 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
---|
11120 | then |
---|
11121 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
---|
11122 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
---|
11123 | { (exit 1); exit 1; }; } |
---|
11124 | fi |
---|
11125 | |
---|
11126 | # Update the list of available tags. |
---|
11127 | if test -n "$tagname"; then |
---|
11128 | echo appending configuration tag \"$tagname\" to $ofile |
---|
11129 | |
---|
11130 | case $tagname in |
---|
11131 | CXX) |
---|
11132 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
---|
11133 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
---|
11134 | (test "X$CXX" != "Xg++"))) ; then |
---|
11135 | ac_ext=cpp |
---|
11136 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
11137 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
11138 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
11139 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
11140 | |
---|
11141 | |
---|
11142 | |
---|
11143 | |
---|
11144 | archive_cmds_need_lc_CXX=no |
---|
11145 | allow_undefined_flag_CXX= |
---|
11146 | always_export_symbols_CXX=no |
---|
11147 | archive_expsym_cmds_CXX= |
---|
11148 | export_dynamic_flag_spec_CXX= |
---|
11149 | hardcode_direct_CXX=no |
---|
11150 | hardcode_libdir_flag_spec_CXX= |
---|
11151 | hardcode_libdir_flag_spec_ld_CXX= |
---|
11152 | hardcode_libdir_separator_CXX= |
---|
11153 | hardcode_minus_L_CXX=no |
---|
11154 | hardcode_automatic_CXX=no |
---|
11155 | module_cmds_CXX= |
---|
11156 | module_expsym_cmds_CXX= |
---|
11157 | link_all_deplibs_CXX=unknown |
---|
11158 | old_archive_cmds_CXX=$old_archive_cmds |
---|
11159 | no_undefined_flag_CXX= |
---|
11160 | whole_archive_flag_spec_CXX= |
---|
11161 | enable_shared_with_static_runtimes_CXX=no |
---|
11162 | |
---|
11163 | # Dependencies to place before and after the object being linked: |
---|
11164 | predep_objects_CXX= |
---|
11165 | postdep_objects_CXX= |
---|
11166 | predeps_CXX= |
---|
11167 | postdeps_CXX= |
---|
11168 | compiler_lib_search_path_CXX= |
---|
11169 | |
---|
11170 | # Source file extension for C++ test sources. |
---|
11171 | ac_ext=cpp |
---|
11172 | |
---|
11173 | # Object file extension for compiled C++ test sources. |
---|
11174 | objext=o |
---|
11175 | objext_CXX=$objext |
---|
11176 | |
---|
11177 | # Code to be used in simple compile tests |
---|
11178 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
11179 | |
---|
11180 | # Code to be used in simple link tests |
---|
11181 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
---|
11182 | |
---|
11183 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
11184 | |
---|
11185 | # If no C compiler was specified, use CC. |
---|
11186 | LTCC=${LTCC-"$CC"} |
---|
11187 | |
---|
11188 | # Allow CC to be a program name with arguments. |
---|
11189 | compiler=$CC |
---|
11190 | |
---|
11191 | |
---|
11192 | # save warnings/boilerplate of simple test code |
---|
11193 | ac_outfile=conftest.$ac_objext |
---|
11194 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
11195 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
11196 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
11197 | $rm conftest* |
---|
11198 | |
---|
11199 | ac_outfile=conftest.$ac_objext |
---|
11200 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
11201 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
11202 | _lt_linker_boilerplate=`cat conftest.err` |
---|
11203 | $rm conftest* |
---|
11204 | |
---|
11205 | |
---|
11206 | # Allow CC to be a program name with arguments. |
---|
11207 | lt_save_CC=$CC |
---|
11208 | lt_save_LD=$LD |
---|
11209 | lt_save_GCC=$GCC |
---|
11210 | GCC=$GXX |
---|
11211 | lt_save_with_gnu_ld=$with_gnu_ld |
---|
11212 | lt_save_path_LD=$lt_cv_path_LD |
---|
11213 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
---|
11214 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
---|
11215 | else |
---|
11216 | unset lt_cv_prog_gnu_ld |
---|
11217 | fi |
---|
11218 | if test -n "${lt_cv_path_LDCXX+set}"; then |
---|
11219 | lt_cv_path_LD=$lt_cv_path_LDCXX |
---|
11220 | else |
---|
11221 | unset lt_cv_path_LD |
---|
11222 | fi |
---|
11223 | test -z "${LDCXX+set}" || LD=$LDCXX |
---|
11224 | CC=${CXX-"c++"} |
---|
11225 | compiler=$CC |
---|
11226 | compiler_CXX=$CC |
---|
11227 | for cc_temp in $compiler""; do |
---|
11228 | case $cc_temp in |
---|
11229 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
11230 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
11231 | \-*) ;; |
---|
11232 | *) break;; |
---|
11233 | esac |
---|
11234 | done |
---|
11235 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
11236 | |
---|
11237 | |
---|
11238 | # We don't want -fno-exception wen compiling C++ code, so set the |
---|
11239 | # no_builtin_flag separately |
---|
11240 | if test "$GXX" = yes; then |
---|
11241 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
---|
11242 | else |
---|
11243 | lt_prog_compiler_no_builtin_flag_CXX= |
---|
11244 | fi |
---|
11245 | |
---|
11246 | if test "$GXX" = yes; then |
---|
11247 | # Set up default GNU C++ configuration |
---|
11248 | |
---|
11249 | |
---|
11250 | # Check whether --with-gnu-ld was given. |
---|
11251 | if test "${with_gnu_ld+set}" = set; then |
---|
11252 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
---|
11253 | else |
---|
11254 | with_gnu_ld=no |
---|
11255 | fi |
---|
11256 | |
---|
11257 | ac_prog=ld |
---|
11258 | if test "$GCC" = yes; then |
---|
11259 | # Check if gcc -print-prog-name=ld gives a path. |
---|
11260 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
11261 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
---|
11262 | case $host in |
---|
11263 | *-*-mingw*) |
---|
11264 | # gcc leaves a trailing carriage return which upsets mingw |
---|
11265 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
11266 | *) |
---|
11267 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
11268 | esac |
---|
11269 | case $ac_prog in |
---|
11270 | # Accept absolute paths. |
---|
11271 | [\\/]* | ?:[\\/]*) |
---|
11272 | re_direlt='/[^/][^/]*/\.\./' |
---|
11273 | # Canonicalize the pathname of ld |
---|
11274 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
11275 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
11276 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
11277 | done |
---|
11278 | test -z "$LD" && LD="$ac_prog" |
---|
11279 | ;; |
---|
11280 | "") |
---|
11281 | # If it fails, then pretend we aren't using GCC. |
---|
11282 | ac_prog=ld |
---|
11283 | ;; |
---|
11284 | *) |
---|
11285 | # If it is relative, then search for the first ld in PATH. |
---|
11286 | with_gnu_ld=unknown |
---|
11287 | ;; |
---|
11288 | esac |
---|
11289 | elif test "$with_gnu_ld" = yes; then |
---|
11290 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
11291 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
---|
11292 | else |
---|
11293 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
11294 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
---|
11295 | fi |
---|
11296 | if test "${lt_cv_path_LD+set}" = set; then |
---|
11297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11298 | else |
---|
11299 | if test -z "$LD"; then |
---|
11300 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
11301 | for ac_dir in $PATH; do |
---|
11302 | IFS="$lt_save_ifs" |
---|
11303 | test -z "$ac_dir" && ac_dir=. |
---|
11304 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
11305 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
11306 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
11307 | # but apparently some variants of GNU ld only accept -v. |
---|
11308 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
11309 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
11310 | *GNU* | *'with BFD'*) |
---|
11311 | test "$with_gnu_ld" != no && break |
---|
11312 | ;; |
---|
11313 | *) |
---|
11314 | test "$with_gnu_ld" != yes && break |
---|
11315 | ;; |
---|
11316 | esac |
---|
11317 | fi |
---|
11318 | done |
---|
11319 | IFS="$lt_save_ifs" |
---|
11320 | else |
---|
11321 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
11322 | fi |
---|
11323 | fi |
---|
11324 | |
---|
11325 | LD="$lt_cv_path_LD" |
---|
11326 | if test -n "$LD"; then |
---|
11327 | { echo "$as_me:$LINENO: result: $LD" >&5 |
---|
11328 | echo "${ECHO_T}$LD" >&6; } |
---|
11329 | else |
---|
11330 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
11331 | echo "${ECHO_T}no" >&6; } |
---|
11332 | fi |
---|
11333 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
11334 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
11335 | { (exit 1); exit 1; }; } |
---|
11336 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
11337 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
---|
11338 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
11339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11340 | else |
---|
11341 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
11342 | case `$LD -v 2>&1 </dev/null` in |
---|
11343 | *GNU* | *'with BFD'*) |
---|
11344 | lt_cv_prog_gnu_ld=yes |
---|
11345 | ;; |
---|
11346 | *) |
---|
11347 | lt_cv_prog_gnu_ld=no |
---|
11348 | ;; |
---|
11349 | esac |
---|
11350 | fi |
---|
11351 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
11352 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
---|
11353 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
11354 | |
---|
11355 | |
---|
11356 | |
---|
11357 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
---|
11358 | # archiving commands below assume that GNU ld is being used. |
---|
11359 | if test "$with_gnu_ld" = yes; then |
---|
11360 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
11361 | 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' |
---|
11362 | |
---|
11363 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
11364 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
11365 | |
---|
11366 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
11367 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
---|
11368 | # investigate it a little bit more. (MM) |
---|
11369 | wlarc='${wl}' |
---|
11370 | |
---|
11371 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
11372 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
---|
11373 | grep 'no-whole-archive' > /dev/null; then |
---|
11374 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
11375 | else |
---|
11376 | whole_archive_flag_spec_CXX= |
---|
11377 | fi |
---|
11378 | else |
---|
11379 | with_gnu_ld=no |
---|
11380 | wlarc= |
---|
11381 | |
---|
11382 | # A generic and very simple default shared library creation |
---|
11383 | # command for GNU C++ for the case where it uses the native |
---|
11384 | # linker, instead of GNU ld. If possible, this setting should |
---|
11385 | # overridden to take advantage of the native linker features on |
---|
11386 | # the platform it is being used on. |
---|
11387 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
11388 | fi |
---|
11389 | |
---|
11390 | # Commands to make compiler produce verbose output that lists |
---|
11391 | # what "hidden" libraries, object files and flags are used when |
---|
11392 | # linking a shared library. |
---|
11393 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
11394 | |
---|
11395 | else |
---|
11396 | GXX=no |
---|
11397 | with_gnu_ld=no |
---|
11398 | wlarc= |
---|
11399 | fi |
---|
11400 | |
---|
11401 | # PORTME: fill in a description of your system's C++ link characteristics |
---|
11402 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
11403 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
11404 | ld_shlibs_CXX=yes |
---|
11405 | case $host_os in |
---|
11406 | aix3*) |
---|
11407 | # FIXME: insert proper C++ library support |
---|
11408 | ld_shlibs_CXX=no |
---|
11409 | ;; |
---|
11410 | aix4* | aix5*) |
---|
11411 | if test "$host_cpu" = ia64; then |
---|
11412 | # On IA64, the linker does run time linking by default, so we don't |
---|
11413 | # have to do anything special. |
---|
11414 | aix_use_runtimelinking=no |
---|
11415 | exp_sym_flag='-Bexport' |
---|
11416 | no_entry_flag="" |
---|
11417 | else |
---|
11418 | aix_use_runtimelinking=no |
---|
11419 | |
---|
11420 | # Test if we are trying to use run time linking or normal |
---|
11421 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
11422 | # need to do runtime linking. |
---|
11423 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
11424 | for ld_flag in $LDFLAGS; do |
---|
11425 | case $ld_flag in |
---|
11426 | *-brtl*) |
---|
11427 | aix_use_runtimelinking=yes |
---|
11428 | break |
---|
11429 | ;; |
---|
11430 | esac |
---|
11431 | done |
---|
11432 | esac |
---|
11433 | |
---|
11434 | exp_sym_flag='-bexport' |
---|
11435 | no_entry_flag='-bnoentry' |
---|
11436 | fi |
---|
11437 | |
---|
11438 | # When large executables or shared objects are built, AIX ld can |
---|
11439 | # have problems creating the table of contents. If linking a library |
---|
11440 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
11441 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
11442 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
11443 | |
---|
11444 | archive_cmds_CXX='' |
---|
11445 | hardcode_direct_CXX=yes |
---|
11446 | hardcode_libdir_separator_CXX=':' |
---|
11447 | link_all_deplibs_CXX=yes |
---|
11448 | |
---|
11449 | if test "$GXX" = yes; then |
---|
11450 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
11451 | # We only want to do this on AIX 4.2 and lower, the check |
---|
11452 | # below for broken collect2 doesn't work under 4.3+ |
---|
11453 | collect2name=`${CC} -print-prog-name=collect2` |
---|
11454 | if test -f "$collect2name" && \ |
---|
11455 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
11456 | then |
---|
11457 | # We have reworked collect2 |
---|
11458 | hardcode_direct_CXX=yes |
---|
11459 | else |
---|
11460 | # We have old collect2 |
---|
11461 | hardcode_direct_CXX=unsupported |
---|
11462 | # It fails to find uninstalled libraries when the uninstalled |
---|
11463 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
11464 | # to unsupported forces relinking |
---|
11465 | hardcode_minus_L_CXX=yes |
---|
11466 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
11467 | hardcode_libdir_separator_CXX= |
---|
11468 | fi |
---|
11469 | esac |
---|
11470 | shared_flag='-shared' |
---|
11471 | if test "$aix_use_runtimelinking" = yes; then |
---|
11472 | shared_flag="$shared_flag "'${wl}-G' |
---|
11473 | fi |
---|
11474 | else |
---|
11475 | # not using gcc |
---|
11476 | if test "$host_cpu" = ia64; then |
---|
11477 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
11478 | # chokes on -Wl,-G. The following line is correct: |
---|
11479 | shared_flag='-G' |
---|
11480 | else |
---|
11481 | if test "$aix_use_runtimelinking" = yes; then |
---|
11482 | shared_flag='${wl}-G' |
---|
11483 | else |
---|
11484 | shared_flag='${wl}-bM:SRE' |
---|
11485 | fi |
---|
11486 | fi |
---|
11487 | fi |
---|
11488 | |
---|
11489 | # It seems that -bexpall does not export symbols beginning with |
---|
11490 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
11491 | always_export_symbols_CXX=yes |
---|
11492 | if test "$aix_use_runtimelinking" = yes; then |
---|
11493 | # Warning - without using the other runtime loading flags (-brtl), |
---|
11494 | # -berok will link without error, but may produce a broken library. |
---|
11495 | allow_undefined_flag_CXX='-berok' |
---|
11496 | # Determine the default libpath from the value encoded in an empty executable. |
---|
11497 | cat >conftest.$ac_ext <<_ACEOF |
---|
11498 | /* confdefs.h. */ |
---|
11499 | _ACEOF |
---|
11500 | cat confdefs.h >>conftest.$ac_ext |
---|
11501 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11502 | /* end confdefs.h. */ |
---|
11503 | |
---|
11504 | int |
---|
11505 | main () |
---|
11506 | { |
---|
11507 | |
---|
11508 | ; |
---|
11509 | return 0; |
---|
11510 | } |
---|
11511 | _ACEOF |
---|
11512 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
11513 | if { (ac_try="$ac_link" |
---|
11514 | case "(($ac_try" in |
---|
11515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11516 | *) ac_try_echo=$ac_try;; |
---|
11517 | esac |
---|
11518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11519 | (eval "$ac_link") 2>conftest.er1 |
---|
11520 | ac_status=$? |
---|
11521 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11522 | rm -f conftest.er1 |
---|
11523 | cat conftest.err >&5 |
---|
11524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11525 | (exit $ac_status); } && { |
---|
11526 | test -z "$ac_cxx_werror_flag" || |
---|
11527 | test ! -s conftest.err |
---|
11528 | } && test -s conftest$ac_exeext && |
---|
11529 | $as_test_x conftest$ac_exeext; then |
---|
11530 | |
---|
11531 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
11532 | }'` |
---|
11533 | # Check for a 64-bit object if we didn't find anything. |
---|
11534 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
11535 | }'`; fi |
---|
11536 | else |
---|
11537 | echo "$as_me: failed program was:" >&5 |
---|
11538 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11539 | |
---|
11540 | |
---|
11541 | fi |
---|
11542 | |
---|
11543 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
11544 | conftest$ac_exeext conftest.$ac_ext |
---|
11545 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
11546 | |
---|
11547 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
11548 | |
---|
11549 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
11550 | else |
---|
11551 | if test "$host_cpu" = ia64; then |
---|
11552 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
---|
11553 | allow_undefined_flag_CXX="-z nodefs" |
---|
11554 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
---|
11555 | else |
---|
11556 | # Determine the default libpath from the value encoded in an empty executable. |
---|
11557 | cat >conftest.$ac_ext <<_ACEOF |
---|
11558 | /* confdefs.h. */ |
---|
11559 | _ACEOF |
---|
11560 | cat confdefs.h >>conftest.$ac_ext |
---|
11561 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11562 | /* end confdefs.h. */ |
---|
11563 | |
---|
11564 | int |
---|
11565 | main () |
---|
11566 | { |
---|
11567 | |
---|
11568 | ; |
---|
11569 | return 0; |
---|
11570 | } |
---|
11571 | _ACEOF |
---|
11572 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
11573 | if { (ac_try="$ac_link" |
---|
11574 | case "(($ac_try" in |
---|
11575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11576 | *) ac_try_echo=$ac_try;; |
---|
11577 | esac |
---|
11578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11579 | (eval "$ac_link") 2>conftest.er1 |
---|
11580 | ac_status=$? |
---|
11581 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11582 | rm -f conftest.er1 |
---|
11583 | cat conftest.err >&5 |
---|
11584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11585 | (exit $ac_status); } && { |
---|
11586 | test -z "$ac_cxx_werror_flag" || |
---|
11587 | test ! -s conftest.err |
---|
11588 | } && test -s conftest$ac_exeext && |
---|
11589 | $as_test_x conftest$ac_exeext; then |
---|
11590 | |
---|
11591 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
11592 | }'` |
---|
11593 | # Check for a 64-bit object if we didn't find anything. |
---|
11594 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
11595 | }'`; fi |
---|
11596 | else |
---|
11597 | echo "$as_me: failed program was:" >&5 |
---|
11598 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11599 | |
---|
11600 | |
---|
11601 | fi |
---|
11602 | |
---|
11603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
11604 | conftest$ac_exeext conftest.$ac_ext |
---|
11605 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
11606 | |
---|
11607 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
11608 | # Warning - without using the other run time loading flags, |
---|
11609 | # -berok will link without error, but may produce a broken library. |
---|
11610 | no_undefined_flag_CXX=' ${wl}-bernotok' |
---|
11611 | allow_undefined_flag_CXX=' ${wl}-berok' |
---|
11612 | # -bexpall does not export symbols beginning with underscore (_) |
---|
11613 | always_export_symbols_CXX=yes |
---|
11614 | # Exported symbols can be pulled into shared objects from archives |
---|
11615 | whole_archive_flag_spec_CXX=' ' |
---|
11616 | archive_cmds_need_lc_CXX=yes |
---|
11617 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
11618 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
---|
11619 | fi |
---|
11620 | fi |
---|
11621 | ;; |
---|
11622 | chorus*) |
---|
11623 | case $cc_basename in |
---|
11624 | *) |
---|
11625 | # FIXME: insert proper C++ library support |
---|
11626 | ld_shlibs_CXX=no |
---|
11627 | ;; |
---|
11628 | esac |
---|
11629 | ;; |
---|
11630 | |
---|
11631 | |
---|
11632 | cygwin* | mingw* | pw32*) |
---|
11633 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
---|
11634 | # as there is no search path for DLLs. |
---|
11635 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
11636 | allow_undefined_flag_CXX=unsupported |
---|
11637 | always_export_symbols_CXX=no |
---|
11638 | enable_shared_with_static_runtimes_CXX=yes |
---|
11639 | |
---|
11640 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
11641 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
11642 | # If the export-symbols file already is a .def file (1st line |
---|
11643 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
11644 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
11645 | cp $export_symbols $output_objdir/$soname.def; |
---|
11646 | else |
---|
11647 | echo EXPORTS > $output_objdir/$soname.def; |
---|
11648 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
11649 | fi~ |
---|
11650 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
11651 | else |
---|
11652 | ld_shlibs_CXX=no |
---|
11653 | fi |
---|
11654 | ;; |
---|
11655 | darwin* | rhapsody*) |
---|
11656 | case $host_os in |
---|
11657 | rhapsody* | darwin1.[012]) |
---|
11658 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
---|
11659 | ;; |
---|
11660 | *) # Darwin 1.3 on |
---|
11661 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
11662 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
11663 | else |
---|
11664 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
11665 | 10.[012]) |
---|
11666 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
11667 | ;; |
---|
11668 | 10.*) |
---|
11669 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
---|
11670 | ;; |
---|
11671 | esac |
---|
11672 | fi |
---|
11673 | ;; |
---|
11674 | esac |
---|
11675 | archive_cmds_need_lc_CXX=no |
---|
11676 | hardcode_direct_CXX=no |
---|
11677 | hardcode_automatic_CXX=yes |
---|
11678 | hardcode_shlibpath_var_CXX=unsupported |
---|
11679 | whole_archive_flag_spec_CXX='' |
---|
11680 | link_all_deplibs_CXX=yes |
---|
11681 | |
---|
11682 | if test "$GXX" = yes ; then |
---|
11683 | lt_int_apple_cc_single_mod=no |
---|
11684 | output_verbose_link_cmd='echo' |
---|
11685 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
---|
11686 | lt_int_apple_cc_single_mod=yes |
---|
11687 | fi |
---|
11688 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
11689 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
11690 | else |
---|
11691 | 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' |
---|
11692 | fi |
---|
11693 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
11694 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
11695 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
11696 | 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}' |
---|
11697 | else |
---|
11698 | 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}' |
---|
11699 | fi |
---|
11700 | 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}' |
---|
11701 | else |
---|
11702 | case $cc_basename in |
---|
11703 | xlc*) |
---|
11704 | output_verbose_link_cmd='echo' |
---|
11705 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
11706 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
11707 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
11708 | 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
11709 | 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}' |
---|
11710 | ;; |
---|
11711 | *) |
---|
11712 | ld_shlibs_CXX=no |
---|
11713 | ;; |
---|
11714 | esac |
---|
11715 | fi |
---|
11716 | ;; |
---|
11717 | |
---|
11718 | dgux*) |
---|
11719 | case $cc_basename in |
---|
11720 | ec++*) |
---|
11721 | # FIXME: insert proper C++ library support |
---|
11722 | ld_shlibs_CXX=no |
---|
11723 | ;; |
---|
11724 | ghcx*) |
---|
11725 | # Green Hills C++ Compiler |
---|
11726 | # FIXME: insert proper C++ library support |
---|
11727 | ld_shlibs_CXX=no |
---|
11728 | ;; |
---|
11729 | *) |
---|
11730 | # FIXME: insert proper C++ library support |
---|
11731 | ld_shlibs_CXX=no |
---|
11732 | ;; |
---|
11733 | esac |
---|
11734 | ;; |
---|
11735 | freebsd[12]*) |
---|
11736 | # C++ shared libraries reported to be fairly broken before switch to ELF |
---|
11737 | ld_shlibs_CXX=no |
---|
11738 | ;; |
---|
11739 | freebsd-elf*) |
---|
11740 | archive_cmds_need_lc_CXX=no |
---|
11741 | ;; |
---|
11742 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
11743 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
---|
11744 | # conventions |
---|
11745 | ld_shlibs_CXX=yes |
---|
11746 | ;; |
---|
11747 | gnu*) |
---|
11748 | ;; |
---|
11749 | hpux9*) |
---|
11750 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
11751 | hardcode_libdir_separator_CXX=: |
---|
11752 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
11753 | hardcode_direct_CXX=yes |
---|
11754 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
11755 | # but as the default |
---|
11756 | # location of the library. |
---|
11757 | |
---|
11758 | case $cc_basename in |
---|
11759 | CC*) |
---|
11760 | # FIXME: insert proper C++ library support |
---|
11761 | ld_shlibs_CXX=no |
---|
11762 | ;; |
---|
11763 | aCC*) |
---|
11764 | 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' |
---|
11765 | # Commands to make compiler produce verbose output that lists |
---|
11766 | # what "hidden" libraries, object files and flags are used when |
---|
11767 | # linking a shared library. |
---|
11768 | # |
---|
11769 | # There doesn't appear to be a way to prevent this compiler from |
---|
11770 | # explicitly linking system object files so we need to strip them |
---|
11771 | # from the output so that they don't get included in the library |
---|
11772 | # dependencies. |
---|
11773 | 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' |
---|
11774 | ;; |
---|
11775 | *) |
---|
11776 | if test "$GXX" = yes; then |
---|
11777 | 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' |
---|
11778 | else |
---|
11779 | # FIXME: insert proper C++ library support |
---|
11780 | ld_shlibs_CXX=no |
---|
11781 | fi |
---|
11782 | ;; |
---|
11783 | esac |
---|
11784 | ;; |
---|
11785 | hpux10*|hpux11*) |
---|
11786 | if test $with_gnu_ld = no; then |
---|
11787 | case $host_cpu in |
---|
11788 | hppa*64*) |
---|
11789 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
11790 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
---|
11791 | hardcode_libdir_separator_CXX=: |
---|
11792 | ;; |
---|
11793 | ia64*) |
---|
11794 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
11795 | ;; |
---|
11796 | *) |
---|
11797 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
11798 | hardcode_libdir_separator_CXX=: |
---|
11799 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
11800 | ;; |
---|
11801 | esac |
---|
11802 | fi |
---|
11803 | case $host_cpu in |
---|
11804 | hppa*64*) |
---|
11805 | hardcode_direct_CXX=no |
---|
11806 | hardcode_shlibpath_var_CXX=no |
---|
11807 | ;; |
---|
11808 | ia64*) |
---|
11809 | hardcode_direct_CXX=no |
---|
11810 | hardcode_shlibpath_var_CXX=no |
---|
11811 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
11812 | # but as the default |
---|
11813 | # location of the library. |
---|
11814 | ;; |
---|
11815 | *) |
---|
11816 | hardcode_direct_CXX=yes |
---|
11817 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
11818 | # but as the default |
---|
11819 | # location of the library. |
---|
11820 | ;; |
---|
11821 | esac |
---|
11822 | |
---|
11823 | case $cc_basename in |
---|
11824 | CC*) |
---|
11825 | # FIXME: insert proper C++ library support |
---|
11826 | ld_shlibs_CXX=no |
---|
11827 | ;; |
---|
11828 | aCC*) |
---|
11829 | case $host_cpu in |
---|
11830 | hppa*64*|ia64*) |
---|
11831 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
11832 | ;; |
---|
11833 | *) |
---|
11834 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
11835 | ;; |
---|
11836 | esac |
---|
11837 | # Commands to make compiler produce verbose output that lists |
---|
11838 | # what "hidden" libraries, object files and flags are used when |
---|
11839 | # linking a shared library. |
---|
11840 | # |
---|
11841 | # There doesn't appear to be a way to prevent this compiler from |
---|
11842 | # explicitly linking system object files so we need to strip them |
---|
11843 | # from the output so that they don't get included in the library |
---|
11844 | # dependencies. |
---|
11845 | 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' |
---|
11846 | ;; |
---|
11847 | *) |
---|
11848 | if test "$GXX" = yes; then |
---|
11849 | if test $with_gnu_ld = no; then |
---|
11850 | case $host_cpu in |
---|
11851 | ia64*|hppa*64*) |
---|
11852 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
11853 | ;; |
---|
11854 | *) |
---|
11855 | 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' |
---|
11856 | ;; |
---|
11857 | esac |
---|
11858 | fi |
---|
11859 | else |
---|
11860 | # FIXME: insert proper C++ library support |
---|
11861 | ld_shlibs_CXX=no |
---|
11862 | fi |
---|
11863 | ;; |
---|
11864 | esac |
---|
11865 | ;; |
---|
11866 | irix5* | irix6*) |
---|
11867 | case $cc_basename in |
---|
11868 | CC*) |
---|
11869 | # SGI C++ |
---|
11870 | 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' |
---|
11871 | |
---|
11872 | # Archives containing C++ object files must be created using |
---|
11873 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
---|
11874 | # necessary to make sure instantiated templates are included |
---|
11875 | # in the archive. |
---|
11876 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
---|
11877 | ;; |
---|
11878 | *) |
---|
11879 | if test "$GXX" = yes; then |
---|
11880 | if test "$with_gnu_ld" = no; then |
---|
11881 | 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' |
---|
11882 | else |
---|
11883 | 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' |
---|
11884 | fi |
---|
11885 | fi |
---|
11886 | link_all_deplibs_CXX=yes |
---|
11887 | ;; |
---|
11888 | esac |
---|
11889 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
11890 | hardcode_libdir_separator_CXX=: |
---|
11891 | ;; |
---|
11892 | linux*) |
---|
11893 | case $cc_basename in |
---|
11894 | KCC*) |
---|
11895 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
11896 | |
---|
11897 | # KCC will only create a shared library if the output file |
---|
11898 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
11899 | # to its proper name (with version) after linking. |
---|
11900 | 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' |
---|
11901 | 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' |
---|
11902 | # Commands to make compiler produce verbose output that lists |
---|
11903 | # what "hidden" libraries, object files and flags are used when |
---|
11904 | # linking a shared library. |
---|
11905 | # |
---|
11906 | # There doesn't appear to be a way to prevent this compiler from |
---|
11907 | # explicitly linking system object files so we need to strip them |
---|
11908 | # from the output so that they don't get included in the library |
---|
11909 | # dependencies. |
---|
11910 | 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' |
---|
11911 | |
---|
11912 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
---|
11913 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
11914 | |
---|
11915 | # Archives containing C++ object files must be created using |
---|
11916 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
11917 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
11918 | ;; |
---|
11919 | icpc*) |
---|
11920 | # Intel C++ |
---|
11921 | with_gnu_ld=yes |
---|
11922 | # version 8.0 and above of icpc choke on multiply defined symbols |
---|
11923 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
---|
11924 | # earlier do not add the objects themselves. |
---|
11925 | case `$CC -V 2>&1` in |
---|
11926 | *"Version 7."*) |
---|
11927 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
11928 | 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' |
---|
11929 | ;; |
---|
11930 | *) # Version 8.0 or newer |
---|
11931 | tmp_idyn= |
---|
11932 | case $host_cpu in |
---|
11933 | ia64*) tmp_idyn=' -i_dynamic';; |
---|
11934 | esac |
---|
11935 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
11936 | 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' |
---|
11937 | ;; |
---|
11938 | esac |
---|
11939 | archive_cmds_need_lc_CXX=no |
---|
11940 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
11941 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
11942 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
---|
11943 | ;; |
---|
11944 | pgCC*) |
---|
11945 | # Portland Group C++ compiler |
---|
11946 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
---|
11947 | 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' |
---|
11948 | |
---|
11949 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
11950 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
11951 | 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' |
---|
11952 | ;; |
---|
11953 | cxx*) |
---|
11954 | # Compaq C++ |
---|
11955 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
11956 | 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' |
---|
11957 | |
---|
11958 | runpath_var=LD_RUN_PATH |
---|
11959 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
11960 | hardcode_libdir_separator_CXX=: |
---|
11961 | |
---|
11962 | # Commands to make compiler produce verbose output that lists |
---|
11963 | # what "hidden" libraries, object files and flags are used when |
---|
11964 | # linking a shared library. |
---|
11965 | # |
---|
11966 | # There doesn't appear to be a way to prevent this compiler from |
---|
11967 | # explicitly linking system object files so we need to strip them |
---|
11968 | # from the output so that they don't get included in the library |
---|
11969 | # dependencies. |
---|
11970 | 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' |
---|
11971 | ;; |
---|
11972 | esac |
---|
11973 | ;; |
---|
11974 | lynxos*) |
---|
11975 | # FIXME: insert proper C++ library support |
---|
11976 | ld_shlibs_CXX=no |
---|
11977 | ;; |
---|
11978 | m88k*) |
---|
11979 | # FIXME: insert proper C++ library support |
---|
11980 | ld_shlibs_CXX=no |
---|
11981 | ;; |
---|
11982 | mvs*) |
---|
11983 | case $cc_basename in |
---|
11984 | cxx*) |
---|
11985 | # FIXME: insert proper C++ library support |
---|
11986 | ld_shlibs_CXX=no |
---|
11987 | ;; |
---|
11988 | *) |
---|
11989 | # FIXME: insert proper C++ library support |
---|
11990 | ld_shlibs_CXX=no |
---|
11991 | ;; |
---|
11992 | esac |
---|
11993 | ;; |
---|
11994 | netbsd*) |
---|
11995 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
11996 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
---|
11997 | wlarc= |
---|
11998 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
11999 | hardcode_direct_CXX=yes |
---|
12000 | hardcode_shlibpath_var_CXX=no |
---|
12001 | fi |
---|
12002 | # Workaround some broken pre-1.5 toolchains |
---|
12003 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
---|
12004 | ;; |
---|
12005 | openbsd2*) |
---|
12006 | # C++ shared libraries are fairly broken |
---|
12007 | ld_shlibs_CXX=no |
---|
12008 | ;; |
---|
12009 | openbsd*) |
---|
12010 | hardcode_direct_CXX=yes |
---|
12011 | hardcode_shlibpath_var_CXX=no |
---|
12012 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
12013 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
12014 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
12015 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
---|
12016 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
12017 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
12018 | fi |
---|
12019 | output_verbose_link_cmd='echo' |
---|
12020 | ;; |
---|
12021 | osf3*) |
---|
12022 | case $cc_basename in |
---|
12023 | KCC*) |
---|
12024 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
12025 | |
---|
12026 | # KCC will only create a shared library if the output file |
---|
12027 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
12028 | # to its proper name (with version) after linking. |
---|
12029 | 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' |
---|
12030 | |
---|
12031 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
12032 | hardcode_libdir_separator_CXX=: |
---|
12033 | |
---|
12034 | # Archives containing C++ object files must be created using |
---|
12035 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
12036 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
12037 | |
---|
12038 | ;; |
---|
12039 | RCC*) |
---|
12040 | # Rational C++ 2.4.1 |
---|
12041 | # FIXME: insert proper C++ library support |
---|
12042 | ld_shlibs_CXX=no |
---|
12043 | ;; |
---|
12044 | cxx*) |
---|
12045 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
12046 | 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' |
---|
12047 | |
---|
12048 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
12049 | hardcode_libdir_separator_CXX=: |
---|
12050 | |
---|
12051 | # Commands to make compiler produce verbose output that lists |
---|
12052 | # what "hidden" libraries, object files and flags are used when |
---|
12053 | # linking a shared library. |
---|
12054 | # |
---|
12055 | # There doesn't appear to be a way to prevent this compiler from |
---|
12056 | # explicitly linking system object files so we need to strip them |
---|
12057 | # from the output so that they don't get included in the library |
---|
12058 | # dependencies. |
---|
12059 | 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' |
---|
12060 | ;; |
---|
12061 | *) |
---|
12062 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
12063 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
12064 | 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' |
---|
12065 | |
---|
12066 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
12067 | hardcode_libdir_separator_CXX=: |
---|
12068 | |
---|
12069 | # Commands to make compiler produce verbose output that lists |
---|
12070 | # what "hidden" libraries, object files and flags are used when |
---|
12071 | # linking a shared library. |
---|
12072 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
12073 | |
---|
12074 | else |
---|
12075 | # FIXME: insert proper C++ library support |
---|
12076 | ld_shlibs_CXX=no |
---|
12077 | fi |
---|
12078 | ;; |
---|
12079 | esac |
---|
12080 | ;; |
---|
12081 | osf4* | osf5*) |
---|
12082 | case $cc_basename in |
---|
12083 | KCC*) |
---|
12084 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
12085 | |
---|
12086 | # KCC will only create a shared library if the output file |
---|
12087 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
12088 | # to its proper name (with version) after linking. |
---|
12089 | 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' |
---|
12090 | |
---|
12091 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
12092 | hardcode_libdir_separator_CXX=: |
---|
12093 | |
---|
12094 | # Archives containing C++ object files must be created using |
---|
12095 | # the KAI C++ compiler. |
---|
12096 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
---|
12097 | ;; |
---|
12098 | RCC*) |
---|
12099 | # Rational C++ 2.4.1 |
---|
12100 | # FIXME: insert proper C++ library support |
---|
12101 | ld_shlibs_CXX=no |
---|
12102 | ;; |
---|
12103 | cxx*) |
---|
12104 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
---|
12105 | 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' |
---|
12106 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
---|
12107 | echo "-hidden">> $lib.exp~ |
---|
12108 | $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~ |
---|
12109 | $rm $lib.exp' |
---|
12110 | |
---|
12111 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
12112 | hardcode_libdir_separator_CXX=: |
---|
12113 | |
---|
12114 | # Commands to make compiler produce verbose output that lists |
---|
12115 | # what "hidden" libraries, object files and flags are used when |
---|
12116 | # linking a shared library. |
---|
12117 | # |
---|
12118 | # There doesn't appear to be a way to prevent this compiler from |
---|
12119 | # explicitly linking system object files so we need to strip them |
---|
12120 | # from the output so that they don't get included in the library |
---|
12121 | # dependencies. |
---|
12122 | 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' |
---|
12123 | ;; |
---|
12124 | *) |
---|
12125 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
12126 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
12127 | 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' |
---|
12128 | |
---|
12129 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
12130 | hardcode_libdir_separator_CXX=: |
---|
12131 | |
---|
12132 | # Commands to make compiler produce verbose output that lists |
---|
12133 | # what "hidden" libraries, object files and flags are used when |
---|
12134 | # linking a shared library. |
---|
12135 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
12136 | |
---|
12137 | else |
---|
12138 | # FIXME: insert proper C++ library support |
---|
12139 | ld_shlibs_CXX=no |
---|
12140 | fi |
---|
12141 | ;; |
---|
12142 | esac |
---|
12143 | ;; |
---|
12144 | psos*) |
---|
12145 | # FIXME: insert proper C++ library support |
---|
12146 | ld_shlibs_CXX=no |
---|
12147 | ;; |
---|
12148 | sco*) |
---|
12149 | archive_cmds_need_lc_CXX=no |
---|
12150 | case $cc_basename in |
---|
12151 | CC*) |
---|
12152 | # FIXME: insert proper C++ library support |
---|
12153 | ld_shlibs_CXX=no |
---|
12154 | ;; |
---|
12155 | *) |
---|
12156 | # FIXME: insert proper C++ library support |
---|
12157 | ld_shlibs_CXX=no |
---|
12158 | ;; |
---|
12159 | esac |
---|
12160 | ;; |
---|
12161 | sunos4*) |
---|
12162 | case $cc_basename in |
---|
12163 | CC*) |
---|
12164 | # Sun C++ 4.x |
---|
12165 | # FIXME: insert proper C++ library support |
---|
12166 | ld_shlibs_CXX=no |
---|
12167 | ;; |
---|
12168 | lcc*) |
---|
12169 | # Lucid |
---|
12170 | # FIXME: insert proper C++ library support |
---|
12171 | ld_shlibs_CXX=no |
---|
12172 | ;; |
---|
12173 | *) |
---|
12174 | # FIXME: insert proper C++ library support |
---|
12175 | ld_shlibs_CXX=no |
---|
12176 | ;; |
---|
12177 | esac |
---|
12178 | ;; |
---|
12179 | solaris*) |
---|
12180 | case $cc_basename in |
---|
12181 | CC*) |
---|
12182 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
12183 | archive_cmds_need_lc_CXX=yes |
---|
12184 | no_undefined_flag_CXX=' -zdefs' |
---|
12185 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
12186 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
12187 | $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' |
---|
12188 | |
---|
12189 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
12190 | hardcode_shlibpath_var_CXX=no |
---|
12191 | case $host_os in |
---|
12192 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
12193 | *) |
---|
12194 | # The C++ compiler is used as linker so we must use $wl |
---|
12195 | # flag to pass the commands to the underlying system |
---|
12196 | # linker. We must also pass each convience library through |
---|
12197 | # to the system linker between allextract/defaultextract. |
---|
12198 | # The C++ compiler will combine linker options so we |
---|
12199 | # cannot just pass the convience library names through |
---|
12200 | # without $wl. |
---|
12201 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
12202 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
---|
12203 | ;; |
---|
12204 | esac |
---|
12205 | link_all_deplibs_CXX=yes |
---|
12206 | |
---|
12207 | output_verbose_link_cmd='echo' |
---|
12208 | |
---|
12209 | # Archives containing C++ object files must be created using |
---|
12210 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
---|
12211 | # necessary to make sure instantiated templates are included |
---|
12212 | # in the archive. |
---|
12213 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
---|
12214 | ;; |
---|
12215 | gcx*) |
---|
12216 | # Green Hills C++ Compiler |
---|
12217 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
12218 | |
---|
12219 | # The C++ compiler must be used to create the archive. |
---|
12220 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
---|
12221 | ;; |
---|
12222 | *) |
---|
12223 | # GNU C++ compiler with Solaris linker |
---|
12224 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
12225 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
---|
12226 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
---|
12227 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
12228 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
12229 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
12230 | |
---|
12231 | # Commands to make compiler produce verbose output that lists |
---|
12232 | # what "hidden" libraries, object files and flags are used when |
---|
12233 | # linking a shared library. |
---|
12234 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
12235 | else |
---|
12236 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
---|
12237 | # platform. |
---|
12238 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
12239 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
12240 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
12241 | |
---|
12242 | # Commands to make compiler produce verbose output that lists |
---|
12243 | # what "hidden" libraries, object files and flags are used when |
---|
12244 | # linking a shared library. |
---|
12245 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
12246 | fi |
---|
12247 | |
---|
12248 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
---|
12249 | fi |
---|
12250 | ;; |
---|
12251 | esac |
---|
12252 | ;; |
---|
12253 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
12254 | archive_cmds_need_lc_CXX=no |
---|
12255 | ;; |
---|
12256 | tandem*) |
---|
12257 | case $cc_basename in |
---|
12258 | NCC*) |
---|
12259 | # NonStop-UX NCC 3.20 |
---|
12260 | # FIXME: insert proper C++ library support |
---|
12261 | ld_shlibs_CXX=no |
---|
12262 | ;; |
---|
12263 | *) |
---|
12264 | # FIXME: insert proper C++ library support |
---|
12265 | ld_shlibs_CXX=no |
---|
12266 | ;; |
---|
12267 | esac |
---|
12268 | ;; |
---|
12269 | vxworks*) |
---|
12270 | # FIXME: insert proper C++ library support |
---|
12271 | ld_shlibs_CXX=no |
---|
12272 | ;; |
---|
12273 | *) |
---|
12274 | # FIXME: insert proper C++ library support |
---|
12275 | ld_shlibs_CXX=no |
---|
12276 | ;; |
---|
12277 | esac |
---|
12278 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
12279 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
---|
12280 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
12281 | |
---|
12282 | GCC_CXX="$GXX" |
---|
12283 | LD_CXX="$LD" |
---|
12284 | |
---|
12285 | |
---|
12286 | cat > conftest.$ac_ext <<EOF |
---|
12287 | class Foo |
---|
12288 | { |
---|
12289 | public: |
---|
12290 | Foo (void) { a = 0; } |
---|
12291 | private: |
---|
12292 | int a; |
---|
12293 | }; |
---|
12294 | EOF |
---|
12295 | |
---|
12296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
12297 | (eval $ac_compile) 2>&5 |
---|
12298 | ac_status=$? |
---|
12299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12300 | (exit $ac_status); }; then |
---|
12301 | # Parse the compiler output and extract the necessary |
---|
12302 | # objects, libraries and library flags. |
---|
12303 | |
---|
12304 | # Sentinel used to keep track of whether or not we are before |
---|
12305 | # the conftest object file. |
---|
12306 | pre_test_object_deps_done=no |
---|
12307 | |
---|
12308 | # The `*' in the case matches for architectures that use `case' in |
---|
12309 | # $output_verbose_cmd can trigger glob expansion during the loop |
---|
12310 | # eval without this substitution. |
---|
12311 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
---|
12312 | |
---|
12313 | for p in `eval $output_verbose_link_cmd`; do |
---|
12314 | case $p in |
---|
12315 | |
---|
12316 | -L* | -R* | -l*) |
---|
12317 | # Some compilers place space between "-{L,R}" and the path. |
---|
12318 | # Remove the space. |
---|
12319 | if test $p = "-L" \ |
---|
12320 | || test $p = "-R"; then |
---|
12321 | prev=$p |
---|
12322 | continue |
---|
12323 | else |
---|
12324 | prev= |
---|
12325 | fi |
---|
12326 | |
---|
12327 | if test "$pre_test_object_deps_done" = no; then |
---|
12328 | case $p in |
---|
12329 | -L* | -R*) |
---|
12330 | # Internal compiler library paths should come after those |
---|
12331 | # provided the user. The postdeps already come after the |
---|
12332 | # user supplied libs so there is no need to process them. |
---|
12333 | if test -z "$compiler_lib_search_path_CXX"; then |
---|
12334 | compiler_lib_search_path_CXX="${prev}${p}" |
---|
12335 | else |
---|
12336 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
---|
12337 | fi |
---|
12338 | ;; |
---|
12339 | # The "-l" case would never come before the object being |
---|
12340 | # linked, so don't bother handling this case. |
---|
12341 | esac |
---|
12342 | else |
---|
12343 | if test -z "$postdeps_CXX"; then |
---|
12344 | postdeps_CXX="${prev}${p}" |
---|
12345 | else |
---|
12346 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
---|
12347 | fi |
---|
12348 | fi |
---|
12349 | ;; |
---|
12350 | |
---|
12351 | *.$objext) |
---|
12352 | # This assumes that the test object file only shows up |
---|
12353 | # once in the compiler output. |
---|
12354 | if test "$p" = "conftest.$objext"; then |
---|
12355 | pre_test_object_deps_done=yes |
---|
12356 | continue |
---|
12357 | fi |
---|
12358 | |
---|
12359 | if test "$pre_test_object_deps_done" = no; then |
---|
12360 | if test -z "$predep_objects_CXX"; then |
---|
12361 | predep_objects_CXX="$p" |
---|
12362 | else |
---|
12363 | predep_objects_CXX="$predep_objects_CXX $p" |
---|
12364 | fi |
---|
12365 | else |
---|
12366 | if test -z "$postdep_objects_CXX"; then |
---|
12367 | postdep_objects_CXX="$p" |
---|
12368 | else |
---|
12369 | postdep_objects_CXX="$postdep_objects_CXX $p" |
---|
12370 | fi |
---|
12371 | fi |
---|
12372 | ;; |
---|
12373 | |
---|
12374 | *) ;; # Ignore the rest. |
---|
12375 | |
---|
12376 | esac |
---|
12377 | done |
---|
12378 | |
---|
12379 | # Clean up. |
---|
12380 | rm -f a.out a.exe |
---|
12381 | else |
---|
12382 | echo "libtool.m4: error: problem compiling CXX test program" |
---|
12383 | fi |
---|
12384 | |
---|
12385 | $rm -f confest.$objext |
---|
12386 | |
---|
12387 | # PORTME: override above test on systems where it is broken |
---|
12388 | case $host_os in |
---|
12389 | solaris*) |
---|
12390 | case $cc_basename in |
---|
12391 | CC*) |
---|
12392 | # Adding this requires a known-good setup of shared libraries for |
---|
12393 | # Sun compiler versions before 5.6, else PIC objects from an old |
---|
12394 | # archive will be linked into the output, leading to subtle bugs. |
---|
12395 | postdeps_CXX='-lCstd -lCrun' |
---|
12396 | ;; |
---|
12397 | esac |
---|
12398 | esac |
---|
12399 | |
---|
12400 | |
---|
12401 | case " $postdeps_CXX " in |
---|
12402 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
---|
12403 | esac |
---|
12404 | |
---|
12405 | lt_prog_compiler_wl_CXX= |
---|
12406 | lt_prog_compiler_pic_CXX= |
---|
12407 | lt_prog_compiler_static_CXX= |
---|
12408 | |
---|
12409 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
12410 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
---|
12411 | |
---|
12412 | # C++ specific cases for pic, static, wl, etc. |
---|
12413 | if test "$GXX" = yes; then |
---|
12414 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12415 | lt_prog_compiler_static_CXX='-static' |
---|
12416 | |
---|
12417 | case $host_os in |
---|
12418 | aix*) |
---|
12419 | # All AIX code is PIC. |
---|
12420 | if test "$host_cpu" = ia64; then |
---|
12421 | # AIX 5 now supports IA64 processor |
---|
12422 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
12423 | fi |
---|
12424 | ;; |
---|
12425 | amigaos*) |
---|
12426 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
12427 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
12428 | # like `-m68040'. |
---|
12429 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
---|
12430 | ;; |
---|
12431 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
12432 | # PIC is the default for these OSes. |
---|
12433 | ;; |
---|
12434 | mingw* | os2* | pw32*) |
---|
12435 | # This hack is so that the source file can tell whether it is being |
---|
12436 | # built for inclusion in a dll (and should export symbols for example). |
---|
12437 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
---|
12438 | ;; |
---|
12439 | darwin* | rhapsody*) |
---|
12440 | # PIC is the default on this platform |
---|
12441 | # Common symbols not allowed in MH_DYLIB files |
---|
12442 | lt_prog_compiler_pic_CXX='-fno-common' |
---|
12443 | ;; |
---|
12444 | *djgpp*) |
---|
12445 | # DJGPP does not support shared libraries at all |
---|
12446 | lt_prog_compiler_pic_CXX= |
---|
12447 | ;; |
---|
12448 | sysv4*MP*) |
---|
12449 | if test -d /usr/nec; then |
---|
12450 | lt_prog_compiler_pic_CXX=-Kconform_pic |
---|
12451 | fi |
---|
12452 | ;; |
---|
12453 | hpux*) |
---|
12454 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
12455 | # not for PA HP-UX. |
---|
12456 | case $host_cpu in |
---|
12457 | hppa*64*|ia64*) |
---|
12458 | ;; |
---|
12459 | *) |
---|
12460 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
12461 | ;; |
---|
12462 | esac |
---|
12463 | ;; |
---|
12464 | *) |
---|
12465 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
12466 | ;; |
---|
12467 | esac |
---|
12468 | else |
---|
12469 | case $host_os in |
---|
12470 | aix4* | aix5*) |
---|
12471 | # All AIX code is PIC. |
---|
12472 | if test "$host_cpu" = ia64; then |
---|
12473 | # AIX 5 now supports IA64 processor |
---|
12474 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
12475 | else |
---|
12476 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
---|
12477 | fi |
---|
12478 | ;; |
---|
12479 | chorus*) |
---|
12480 | case $cc_basename in |
---|
12481 | cxch68*) |
---|
12482 | # Green Hills C++ Compiler |
---|
12483 | # _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" |
---|
12484 | ;; |
---|
12485 | esac |
---|
12486 | ;; |
---|
12487 | darwin*) |
---|
12488 | # PIC is the default on this platform |
---|
12489 | # Common symbols not allowed in MH_DYLIB files |
---|
12490 | case $cc_basename in |
---|
12491 | xlc*) |
---|
12492 | lt_prog_compiler_pic_CXX='-qnocommon' |
---|
12493 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12494 | ;; |
---|
12495 | esac |
---|
12496 | ;; |
---|
12497 | dgux*) |
---|
12498 | case $cc_basename in |
---|
12499 | ec++*) |
---|
12500 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
12501 | ;; |
---|
12502 | ghcx*) |
---|
12503 | # Green Hills C++ Compiler |
---|
12504 | lt_prog_compiler_pic_CXX='-pic' |
---|
12505 | ;; |
---|
12506 | *) |
---|
12507 | ;; |
---|
12508 | esac |
---|
12509 | ;; |
---|
12510 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
12511 | # FreeBSD uses GNU C++ |
---|
12512 | ;; |
---|
12513 | hpux9* | hpux10* | hpux11*) |
---|
12514 | case $cc_basename in |
---|
12515 | CC*) |
---|
12516 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12517 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
12518 | if test "$host_cpu" != ia64; then |
---|
12519 | lt_prog_compiler_pic_CXX='+Z' |
---|
12520 | fi |
---|
12521 | ;; |
---|
12522 | aCC*) |
---|
12523 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12524 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
12525 | case $host_cpu in |
---|
12526 | hppa*64*|ia64*) |
---|
12527 | # +Z the default |
---|
12528 | ;; |
---|
12529 | *) |
---|
12530 | lt_prog_compiler_pic_CXX='+Z' |
---|
12531 | ;; |
---|
12532 | esac |
---|
12533 | ;; |
---|
12534 | *) |
---|
12535 | ;; |
---|
12536 | esac |
---|
12537 | ;; |
---|
12538 | irix5* | irix6* | nonstopux*) |
---|
12539 | case $cc_basename in |
---|
12540 | CC*) |
---|
12541 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12542 | lt_prog_compiler_static_CXX='-non_shared' |
---|
12543 | # CC pic flag -KPIC is the default. |
---|
12544 | ;; |
---|
12545 | *) |
---|
12546 | ;; |
---|
12547 | esac |
---|
12548 | ;; |
---|
12549 | linux*) |
---|
12550 | case $cc_basename in |
---|
12551 | KCC*) |
---|
12552 | # KAI C++ Compiler |
---|
12553 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
12554 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
12555 | ;; |
---|
12556 | icpc* | ecpc*) |
---|
12557 | # Intel C++ |
---|
12558 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12559 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
12560 | lt_prog_compiler_static_CXX='-static' |
---|
12561 | ;; |
---|
12562 | pgCC*) |
---|
12563 | # Portland Group C++ compiler. |
---|
12564 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12565 | lt_prog_compiler_pic_CXX='-fpic' |
---|
12566 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
12567 | ;; |
---|
12568 | cxx*) |
---|
12569 | # Compaq C++ |
---|
12570 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
12571 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
12572 | lt_prog_compiler_pic_CXX= |
---|
12573 | lt_prog_compiler_static_CXX='-non_shared' |
---|
12574 | ;; |
---|
12575 | *) |
---|
12576 | ;; |
---|
12577 | esac |
---|
12578 | ;; |
---|
12579 | lynxos*) |
---|
12580 | ;; |
---|
12581 | m88k*) |
---|
12582 | ;; |
---|
12583 | mvs*) |
---|
12584 | case $cc_basename in |
---|
12585 | cxx*) |
---|
12586 | lt_prog_compiler_pic_CXX='-W c,exportall' |
---|
12587 | ;; |
---|
12588 | *) |
---|
12589 | ;; |
---|
12590 | esac |
---|
12591 | ;; |
---|
12592 | netbsd*) |
---|
12593 | ;; |
---|
12594 | osf3* | osf4* | osf5*) |
---|
12595 | case $cc_basename in |
---|
12596 | KCC*) |
---|
12597 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
12598 | ;; |
---|
12599 | RCC*) |
---|
12600 | # Rational C++ 2.4.1 |
---|
12601 | lt_prog_compiler_pic_CXX='-pic' |
---|
12602 | ;; |
---|
12603 | cxx*) |
---|
12604 | # Digital/Compaq C++ |
---|
12605 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
12606 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
12607 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
12608 | lt_prog_compiler_pic_CXX= |
---|
12609 | lt_prog_compiler_static_CXX='-non_shared' |
---|
12610 | ;; |
---|
12611 | *) |
---|
12612 | ;; |
---|
12613 | esac |
---|
12614 | ;; |
---|
12615 | psos*) |
---|
12616 | ;; |
---|
12617 | sco*) |
---|
12618 | case $cc_basename in |
---|
12619 | CC*) |
---|
12620 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
12621 | ;; |
---|
12622 | *) |
---|
12623 | ;; |
---|
12624 | esac |
---|
12625 | ;; |
---|
12626 | solaris*) |
---|
12627 | case $cc_basename in |
---|
12628 | CC*) |
---|
12629 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
12630 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
12631 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
12632 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
---|
12633 | ;; |
---|
12634 | gcx*) |
---|
12635 | # Green Hills C++ Compiler |
---|
12636 | lt_prog_compiler_pic_CXX='-PIC' |
---|
12637 | ;; |
---|
12638 | *) |
---|
12639 | ;; |
---|
12640 | esac |
---|
12641 | ;; |
---|
12642 | sunos4*) |
---|
12643 | case $cc_basename in |
---|
12644 | CC*) |
---|
12645 | # Sun C++ 4.x |
---|
12646 | lt_prog_compiler_pic_CXX='-pic' |
---|
12647 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
12648 | ;; |
---|
12649 | lcc*) |
---|
12650 | # Lucid |
---|
12651 | lt_prog_compiler_pic_CXX='-pic' |
---|
12652 | ;; |
---|
12653 | *) |
---|
12654 | ;; |
---|
12655 | esac |
---|
12656 | ;; |
---|
12657 | tandem*) |
---|
12658 | case $cc_basename in |
---|
12659 | NCC*) |
---|
12660 | # NonStop-UX NCC 3.20 |
---|
12661 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
12662 | ;; |
---|
12663 | *) |
---|
12664 | ;; |
---|
12665 | esac |
---|
12666 | ;; |
---|
12667 | unixware*) |
---|
12668 | ;; |
---|
12669 | vxworks*) |
---|
12670 | ;; |
---|
12671 | *) |
---|
12672 | lt_prog_compiler_can_build_shared_CXX=no |
---|
12673 | ;; |
---|
12674 | esac |
---|
12675 | fi |
---|
12676 | |
---|
12677 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
---|
12678 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
---|
12679 | |
---|
12680 | # |
---|
12681 | # Check to make sure the PIC flag actually works. |
---|
12682 | # |
---|
12683 | if test -n "$lt_prog_compiler_pic_CXX"; then |
---|
12684 | |
---|
12685 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
---|
12686 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
---|
12687 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
---|
12688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12689 | else |
---|
12690 | lt_prog_compiler_pic_works_CXX=no |
---|
12691 | ac_outfile=conftest.$ac_objext |
---|
12692 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
12693 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
---|
12694 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
12695 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
12696 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
12697 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
12698 | # The option is referenced via a variable to avoid confusing sed. |
---|
12699 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
12700 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
12701 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
12702 | -e 's:$: $lt_compiler_flag:'` |
---|
12703 | (eval echo "\"\$as_me:12703: $lt_compile\"" >&5) |
---|
12704 | (eval "$lt_compile" 2>conftest.err) |
---|
12705 | ac_status=$? |
---|
12706 | cat conftest.err >&5 |
---|
12707 | echo "$as_me:12707: \$? = $ac_status" >&5 |
---|
12708 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
12709 | # The compiler can only warn and ignore the option if not recognized |
---|
12710 | # So say no if there are warnings other than the usual output. |
---|
12711 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
---|
12712 | $SED '/^$/d' conftest.err >conftest.er2 |
---|
12713 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
---|
12714 | lt_prog_compiler_pic_works_CXX=yes |
---|
12715 | fi |
---|
12716 | fi |
---|
12717 | $rm conftest* |
---|
12718 | |
---|
12719 | fi |
---|
12720 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
---|
12721 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
---|
12722 | |
---|
12723 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
---|
12724 | case $lt_prog_compiler_pic_CXX in |
---|
12725 | "" | " "*) ;; |
---|
12726 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
---|
12727 | esac |
---|
12728 | else |
---|
12729 | lt_prog_compiler_pic_CXX= |
---|
12730 | lt_prog_compiler_can_build_shared_CXX=no |
---|
12731 | fi |
---|
12732 | |
---|
12733 | fi |
---|
12734 | case $host_os in |
---|
12735 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
12736 | *djgpp*) |
---|
12737 | lt_prog_compiler_pic_CXX= |
---|
12738 | ;; |
---|
12739 | *) |
---|
12740 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
---|
12741 | ;; |
---|
12742 | esac |
---|
12743 | |
---|
12744 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
12745 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
---|
12746 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
---|
12747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12748 | else |
---|
12749 | lt_cv_prog_compiler_c_o_CXX=no |
---|
12750 | $rm -r conftest 2>/dev/null |
---|
12751 | mkdir conftest |
---|
12752 | cd conftest |
---|
12753 | mkdir out |
---|
12754 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
12755 | |
---|
12756 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
12757 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
12758 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
12759 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
12760 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
12761 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
12762 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
12763 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
12764 | -e 's:$: $lt_compiler_flag:'` |
---|
12765 | (eval echo "\"\$as_me:12765: $lt_compile\"" >&5) |
---|
12766 | (eval "$lt_compile" 2>out/conftest.err) |
---|
12767 | ac_status=$? |
---|
12768 | cat out/conftest.err >&5 |
---|
12769 | echo "$as_me:12769: \$? = $ac_status" >&5 |
---|
12770 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
12771 | then |
---|
12772 | # The compiler can only warn and ignore the option if not recognized |
---|
12773 | # So say no if there are warnings |
---|
12774 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
---|
12775 | $SED '/^$/d' out/conftest.err >out/conftest.er2 |
---|
12776 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
12777 | lt_cv_prog_compiler_c_o_CXX=yes |
---|
12778 | fi |
---|
12779 | fi |
---|
12780 | chmod u+w . 2>&5 |
---|
12781 | $rm conftest* |
---|
12782 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
12783 | # template instantiation |
---|
12784 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
12785 | $rm out/* && rmdir out |
---|
12786 | cd .. |
---|
12787 | rmdir conftest |
---|
12788 | $rm conftest* |
---|
12789 | |
---|
12790 | fi |
---|
12791 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
---|
12792 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
---|
12793 | |
---|
12794 | |
---|
12795 | hard_links="nottested" |
---|
12796 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
---|
12797 | # do not overwrite the value of need_locks provided by the user |
---|
12798 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
12799 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
---|
12800 | hard_links=yes |
---|
12801 | $rm conftest* |
---|
12802 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
12803 | touch conftest.a |
---|
12804 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
12805 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
12806 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
12807 | echo "${ECHO_T}$hard_links" >&6; } |
---|
12808 | if test "$hard_links" = no; then |
---|
12809 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
12810 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
12811 | need_locks=warn |
---|
12812 | fi |
---|
12813 | else |
---|
12814 | need_locks=no |
---|
12815 | fi |
---|
12816 | |
---|
12817 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
12818 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
12819 | |
---|
12820 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
12821 | case $host_os in |
---|
12822 | aix4* | aix5*) |
---|
12823 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
12824 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
12825 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
12826 | 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' |
---|
12827 | else |
---|
12828 | 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' |
---|
12829 | fi |
---|
12830 | ;; |
---|
12831 | pw32*) |
---|
12832 | export_symbols_cmds_CXX="$ltdll_cmds" |
---|
12833 | ;; |
---|
12834 | cygwin* | mingw*) |
---|
12835 | 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' |
---|
12836 | ;; |
---|
12837 | *) |
---|
12838 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
12839 | ;; |
---|
12840 | esac |
---|
12841 | |
---|
12842 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
12843 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
---|
12844 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
12845 | |
---|
12846 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
12847 | if test "$GCC" = yes; then |
---|
12848 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
12849 | fi |
---|
12850 | |
---|
12851 | # |
---|
12852 | # Do we need to explicitly link libc? |
---|
12853 | # |
---|
12854 | case "x$archive_cmds_need_lc_CXX" in |
---|
12855 | x|xyes) |
---|
12856 | # Assume -lc should be added |
---|
12857 | archive_cmds_need_lc_CXX=yes |
---|
12858 | |
---|
12859 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
12860 | case $archive_cmds_CXX in |
---|
12861 | *'~'*) |
---|
12862 | # FIXME: we may have to deal with multi-command sequences. |
---|
12863 | ;; |
---|
12864 | '$CC '*) |
---|
12865 | # Test whether the compiler implicitly links with -lc since on some |
---|
12866 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
12867 | # to ld, don't add -lc before -lgcc. |
---|
12868 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
12869 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
---|
12870 | $rm conftest* |
---|
12871 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
12872 | |
---|
12873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
12874 | (eval $ac_compile) 2>&5 |
---|
12875 | ac_status=$? |
---|
12876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12877 | (exit $ac_status); } 2>conftest.err; then |
---|
12878 | soname=conftest |
---|
12879 | lib=conftest |
---|
12880 | libobjs=conftest.$ac_objext |
---|
12881 | deplibs= |
---|
12882 | wl=$lt_prog_compiler_wl_CXX |
---|
12883 | compiler_flags=-v |
---|
12884 | linker_flags=-v |
---|
12885 | verstring= |
---|
12886 | output_objdir=. |
---|
12887 | libname=conftest |
---|
12888 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
---|
12889 | allow_undefined_flag_CXX= |
---|
12890 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
12891 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
12892 | ac_status=$? |
---|
12893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12894 | (exit $ac_status); } |
---|
12895 | then |
---|
12896 | archive_cmds_need_lc_CXX=no |
---|
12897 | else |
---|
12898 | archive_cmds_need_lc_CXX=yes |
---|
12899 | fi |
---|
12900 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
---|
12901 | else |
---|
12902 | cat conftest.err 1>&5 |
---|
12903 | fi |
---|
12904 | $rm conftest* |
---|
12905 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
---|
12906 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
---|
12907 | ;; |
---|
12908 | esac |
---|
12909 | fi |
---|
12910 | ;; |
---|
12911 | esac |
---|
12912 | |
---|
12913 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
12914 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
---|
12915 | library_names_spec= |
---|
12916 | libname_spec='lib$name' |
---|
12917 | soname_spec= |
---|
12918 | shrext_cmds=".so" |
---|
12919 | postinstall_cmds= |
---|
12920 | postuninstall_cmds= |
---|
12921 | finish_cmds= |
---|
12922 | finish_eval= |
---|
12923 | shlibpath_var= |
---|
12924 | shlibpath_overrides_runpath=unknown |
---|
12925 | version_type=none |
---|
12926 | dynamic_linker="$host_os ld.so" |
---|
12927 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
12928 | if test "$GCC" = yes; then |
---|
12929 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
12930 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
12931 | # if the path contains ";" then we assume it to be the separator |
---|
12932 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
12933 | # assumed that no part of a normal pathname contains ";" but that should |
---|
12934 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
12935 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
12936 | else |
---|
12937 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
12938 | fi |
---|
12939 | else |
---|
12940 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
12941 | fi |
---|
12942 | need_lib_prefix=unknown |
---|
12943 | hardcode_into_libs=no |
---|
12944 | |
---|
12945 | # when you set need_version to no, make sure it does not cause -set_version |
---|
12946 | # flags to be left without arguments |
---|
12947 | need_version=unknown |
---|
12948 | |
---|
12949 | case $host_os in |
---|
12950 | aix3*) |
---|
12951 | version_type=linux |
---|
12952 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
12953 | shlibpath_var=LIBPATH |
---|
12954 | |
---|
12955 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
12956 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12957 | ;; |
---|
12958 | |
---|
12959 | aix4* | aix5*) |
---|
12960 | version_type=linux |
---|
12961 | need_lib_prefix=no |
---|
12962 | need_version=no |
---|
12963 | hardcode_into_libs=yes |
---|
12964 | if test "$host_cpu" = ia64; then |
---|
12965 | # AIX 5 supports IA64 |
---|
12966 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
12967 | shlibpath_var=LD_LIBRARY_PATH |
---|
12968 | else |
---|
12969 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
12970 | # for dependence libraries. The import file would start with |
---|
12971 | # the line `#! .'. This would cause the generated library to |
---|
12972 | # depend on `.', always an invalid library. This was fixed in |
---|
12973 | # development snapshots of GCC prior to 3.0. |
---|
12974 | case $host_os in |
---|
12975 | aix4 | aix4.[01] | aix4.[01].*) |
---|
12976 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
12977 | echo ' yes ' |
---|
12978 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
12979 | : |
---|
12980 | else |
---|
12981 | can_build_shared=no |
---|
12982 | fi |
---|
12983 | ;; |
---|
12984 | esac |
---|
12985 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
12986 | # soname into executable. Probably we can add versioning support to |
---|
12987 | # collect2, so additional links can be useful in future. |
---|
12988 | if test "$aix_use_runtimelinking" = yes; then |
---|
12989 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
12990 | # instead of lib<name>.a to let people know that these are not |
---|
12991 | # typical AIX shared libraries. |
---|
12992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
12993 | else |
---|
12994 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
12995 | # and later when we are not doing run time linking. |
---|
12996 | library_names_spec='${libname}${release}.a $libname.a' |
---|
12997 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
12998 | fi |
---|
12999 | shlibpath_var=LIBPATH |
---|
13000 | fi |
---|
13001 | ;; |
---|
13002 | |
---|
13003 | amigaos*) |
---|
13004 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
13005 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
13006 | 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' |
---|
13007 | ;; |
---|
13008 | |
---|
13009 | beos*) |
---|
13010 | library_names_spec='${libname}${shared_ext}' |
---|
13011 | dynamic_linker="$host_os ld.so" |
---|
13012 | shlibpath_var=LIBRARY_PATH |
---|
13013 | ;; |
---|
13014 | |
---|
13015 | bsdi[45]*) |
---|
13016 | version_type=linux |
---|
13017 | need_version=no |
---|
13018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13019 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13020 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
13021 | shlibpath_var=LD_LIBRARY_PATH |
---|
13022 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
13023 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
13024 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
13025 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
13026 | # libtool to hard-code these into programs |
---|
13027 | ;; |
---|
13028 | |
---|
13029 | cygwin* | mingw* | pw32*) |
---|
13030 | version_type=windows |
---|
13031 | shrext_cmds=".dll" |
---|
13032 | need_version=no |
---|
13033 | need_lib_prefix=no |
---|
13034 | |
---|
13035 | case $GCC,$host_os in |
---|
13036 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
13037 | library_names_spec='$libname.dll.a' |
---|
13038 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
13039 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
13040 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
13041 | dldir=$destdir/`dirname \$dlpath`~ |
---|
13042 | test -d \$dldir || mkdir -p \$dldir~ |
---|
13043 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
13044 | chmod a+x \$dldir/$dlname' |
---|
13045 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
13046 | dlpath=$dir/\$dldll~ |
---|
13047 | $rm \$dlpath' |
---|
13048 | shlibpath_overrides_runpath=yes |
---|
13049 | |
---|
13050 | case $host_os in |
---|
13051 | cygwin*) |
---|
13052 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
13053 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
13054 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
13055 | ;; |
---|
13056 | mingw*) |
---|
13057 | # MinGW DLLs use traditional 'lib' prefix |
---|
13058 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
13059 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
13060 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
13061 | # It is most probably a Windows format PATH printed by |
---|
13062 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
13063 | # path with ; separators, and with drive letters. We can handle the |
---|
13064 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
13065 | # especially as we might pass files found there to a mingw objdump, |
---|
13066 | # which wouldn't understand a cygwinified path. Ahh. |
---|
13067 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
13068 | else |
---|
13069 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
13070 | fi |
---|
13071 | ;; |
---|
13072 | pw32*) |
---|
13073 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
13074 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
13075 | ;; |
---|
13076 | esac |
---|
13077 | ;; |
---|
13078 | |
---|
13079 | *) |
---|
13080 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
13081 | ;; |
---|
13082 | esac |
---|
13083 | dynamic_linker='Win32 ld.exe' |
---|
13084 | # FIXME: first we should search . and the directory the executable is in |
---|
13085 | shlibpath_var=PATH |
---|
13086 | ;; |
---|
13087 | |
---|
13088 | darwin* | rhapsody*) |
---|
13089 | dynamic_linker="$host_os dyld" |
---|
13090 | version_type=darwin |
---|
13091 | need_lib_prefix=no |
---|
13092 | need_version=no |
---|
13093 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
13094 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
13095 | shlibpath_overrides_runpath=yes |
---|
13096 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
13097 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
13098 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
13099 | if test "$GCC" = yes; then |
---|
13100 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
13101 | else |
---|
13102 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
13103 | fi |
---|
13104 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
13105 | ;; |
---|
13106 | |
---|
13107 | dgux*) |
---|
13108 | version_type=linux |
---|
13109 | need_lib_prefix=no |
---|
13110 | need_version=no |
---|
13111 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
13112 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13113 | shlibpath_var=LD_LIBRARY_PATH |
---|
13114 | ;; |
---|
13115 | |
---|
13116 | freebsd1*) |
---|
13117 | dynamic_linker=no |
---|
13118 | ;; |
---|
13119 | |
---|
13120 | kfreebsd*-gnu) |
---|
13121 | version_type=linux |
---|
13122 | need_lib_prefix=no |
---|
13123 | need_version=no |
---|
13124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
13125 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13126 | shlibpath_var=LD_LIBRARY_PATH |
---|
13127 | shlibpath_overrides_runpath=no |
---|
13128 | hardcode_into_libs=yes |
---|
13129 | dynamic_linker='GNU ld.so' |
---|
13130 | ;; |
---|
13131 | |
---|
13132 | freebsd* | dragonfly*) |
---|
13133 | # DragonFly does not have aout. When/if they implement a new |
---|
13134 | # versioning mechanism, adjust this. |
---|
13135 | if test -x /usr/bin/objformat; then |
---|
13136 | objformat=`/usr/bin/objformat` |
---|
13137 | else |
---|
13138 | case $host_os in |
---|
13139 | freebsd[123]*) objformat=aout ;; |
---|
13140 | *) objformat=elf ;; |
---|
13141 | esac |
---|
13142 | fi |
---|
13143 | version_type=freebsd-$objformat |
---|
13144 | case $version_type in |
---|
13145 | freebsd-elf*) |
---|
13146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
13147 | need_version=no |
---|
13148 | need_lib_prefix=no |
---|
13149 | ;; |
---|
13150 | freebsd-*) |
---|
13151 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
13152 | need_version=yes |
---|
13153 | ;; |
---|
13154 | esac |
---|
13155 | shlibpath_var=LD_LIBRARY_PATH |
---|
13156 | case $host_os in |
---|
13157 | freebsd2*) |
---|
13158 | shlibpath_overrides_runpath=yes |
---|
13159 | ;; |
---|
13160 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
13161 | shlibpath_overrides_runpath=yes |
---|
13162 | hardcode_into_libs=yes |
---|
13163 | ;; |
---|
13164 | *) # from 3.2 on |
---|
13165 | shlibpath_overrides_runpath=no |
---|
13166 | hardcode_into_libs=yes |
---|
13167 | ;; |
---|
13168 | esac |
---|
13169 | ;; |
---|
13170 | |
---|
13171 | gnu*) |
---|
13172 | version_type=linux |
---|
13173 | need_lib_prefix=no |
---|
13174 | need_version=no |
---|
13175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
13176 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13177 | shlibpath_var=LD_LIBRARY_PATH |
---|
13178 | hardcode_into_libs=yes |
---|
13179 | ;; |
---|
13180 | |
---|
13181 | hpux9* | hpux10* | hpux11*) |
---|
13182 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
13183 | # link against other versions. |
---|
13184 | version_type=sunos |
---|
13185 | need_lib_prefix=no |
---|
13186 | need_version=no |
---|
13187 | case $host_cpu in |
---|
13188 | ia64*) |
---|
13189 | shrext_cmds='.so' |
---|
13190 | hardcode_into_libs=yes |
---|
13191 | dynamic_linker="$host_os dld.so" |
---|
13192 | shlibpath_var=LD_LIBRARY_PATH |
---|
13193 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
13194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13195 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13196 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
13197 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
13198 | else |
---|
13199 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
13200 | fi |
---|
13201 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
13202 | ;; |
---|
13203 | hppa*64*) |
---|
13204 | shrext_cmds='.sl' |
---|
13205 | hardcode_into_libs=yes |
---|
13206 | dynamic_linker="$host_os dld.sl" |
---|
13207 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
13208 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
13209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13210 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13211 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
13212 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
13213 | ;; |
---|
13214 | *) |
---|
13215 | shrext_cmds='.sl' |
---|
13216 | dynamic_linker="$host_os dld.sl" |
---|
13217 | shlibpath_var=SHLIB_PATH |
---|
13218 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
13219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13220 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13221 | ;; |
---|
13222 | esac |
---|
13223 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
13224 | postinstall_cmds='chmod 555 $lib' |
---|
13225 | ;; |
---|
13226 | |
---|
13227 | irix5* | irix6* | nonstopux*) |
---|
13228 | case $host_os in |
---|
13229 | nonstopux*) version_type=nonstopux ;; |
---|
13230 | *) |
---|
13231 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
13232 | version_type=linux |
---|
13233 | else |
---|
13234 | version_type=irix |
---|
13235 | fi ;; |
---|
13236 | esac |
---|
13237 | need_lib_prefix=no |
---|
13238 | need_version=no |
---|
13239 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
13241 | case $host_os in |
---|
13242 | irix5* | nonstopux*) |
---|
13243 | libsuff= shlibsuff= |
---|
13244 | ;; |
---|
13245 | *) |
---|
13246 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
13247 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
13248 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
13249 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
13250 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
13251 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
13252 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
13253 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
13254 | esac |
---|
13255 | ;; |
---|
13256 | esac |
---|
13257 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
13258 | shlibpath_overrides_runpath=no |
---|
13259 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
13260 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
13261 | hardcode_into_libs=yes |
---|
13262 | ;; |
---|
13263 | |
---|
13264 | # No shared lib support for Linux oldld, aout, or coff. |
---|
13265 | linux*oldld* | linux*aout* | linux*coff*) |
---|
13266 | dynamic_linker=no |
---|
13267 | ;; |
---|
13268 | |
---|
13269 | # This must be Linux ELF. |
---|
13270 | linux*) |
---|
13271 | version_type=linux |
---|
13272 | need_lib_prefix=no |
---|
13273 | need_version=no |
---|
13274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13275 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13276 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
13277 | shlibpath_var=LD_LIBRARY_PATH |
---|
13278 | shlibpath_overrides_runpath=no |
---|
13279 | # This implies no fast_install, which is unacceptable. |
---|
13280 | # Some rework will be needed to allow for fast_install |
---|
13281 | # before this can be enabled. |
---|
13282 | hardcode_into_libs=yes |
---|
13283 | |
---|
13284 | # Append ld.so.conf contents to the search path |
---|
13285 | if test -f /etc/ld.so.conf; then |
---|
13286 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
13287 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
13288 | fi |
---|
13289 | |
---|
13290 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
13291 | # powerpc, because MkLinux only supported shared libraries with the |
---|
13292 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
13293 | # most powerpc-linux boxes support dynamic linking these days and |
---|
13294 | # people can always --disable-shared, the test was removed, and we |
---|
13295 | # assume the GNU/Linux dynamic linker is in use. |
---|
13296 | dynamic_linker='GNU/Linux ld.so' |
---|
13297 | ;; |
---|
13298 | |
---|
13299 | knetbsd*-gnu) |
---|
13300 | version_type=linux |
---|
13301 | need_lib_prefix=no |
---|
13302 | need_version=no |
---|
13303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
13304 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13305 | shlibpath_var=LD_LIBRARY_PATH |
---|
13306 | shlibpath_overrides_runpath=no |
---|
13307 | hardcode_into_libs=yes |
---|
13308 | dynamic_linker='GNU ld.so' |
---|
13309 | ;; |
---|
13310 | |
---|
13311 | netbsd*) |
---|
13312 | version_type=sunos |
---|
13313 | need_lib_prefix=no |
---|
13314 | need_version=no |
---|
13315 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
13316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
13317 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
13318 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
13319 | else |
---|
13320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
13321 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13322 | dynamic_linker='NetBSD ld.elf_so' |
---|
13323 | fi |
---|
13324 | shlibpath_var=LD_LIBRARY_PATH |
---|
13325 | shlibpath_overrides_runpath=yes |
---|
13326 | hardcode_into_libs=yes |
---|
13327 | ;; |
---|
13328 | |
---|
13329 | newsos6) |
---|
13330 | version_type=linux |
---|
13331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13332 | shlibpath_var=LD_LIBRARY_PATH |
---|
13333 | shlibpath_overrides_runpath=yes |
---|
13334 | ;; |
---|
13335 | |
---|
13336 | nto-qnx*) |
---|
13337 | version_type=linux |
---|
13338 | need_lib_prefix=no |
---|
13339 | need_version=no |
---|
13340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13341 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13342 | shlibpath_var=LD_LIBRARY_PATH |
---|
13343 | shlibpath_overrides_runpath=yes |
---|
13344 | ;; |
---|
13345 | |
---|
13346 | openbsd*) |
---|
13347 | version_type=sunos |
---|
13348 | need_lib_prefix=no |
---|
13349 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
13350 | case $host_os in |
---|
13351 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
13352 | *) need_version=no ;; |
---|
13353 | esac |
---|
13354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
13355 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
13356 | shlibpath_var=LD_LIBRARY_PATH |
---|
13357 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
13358 | case $host_os in |
---|
13359 | openbsd2.[89] | openbsd2.[89].*) |
---|
13360 | shlibpath_overrides_runpath=no |
---|
13361 | ;; |
---|
13362 | *) |
---|
13363 | shlibpath_overrides_runpath=yes |
---|
13364 | ;; |
---|
13365 | esac |
---|
13366 | else |
---|
13367 | shlibpath_overrides_runpath=yes |
---|
13368 | fi |
---|
13369 | ;; |
---|
13370 | |
---|
13371 | os2*) |
---|
13372 | libname_spec='$name' |
---|
13373 | shrext_cmds=".dll" |
---|
13374 | need_lib_prefix=no |
---|
13375 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
13376 | dynamic_linker='OS/2 ld.exe' |
---|
13377 | shlibpath_var=LIBPATH |
---|
13378 | ;; |
---|
13379 | |
---|
13380 | osf3* | osf4* | osf5*) |
---|
13381 | version_type=osf |
---|
13382 | need_lib_prefix=no |
---|
13383 | need_version=no |
---|
13384 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13386 | shlibpath_var=LD_LIBRARY_PATH |
---|
13387 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
13388 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
13389 | ;; |
---|
13390 | |
---|
13391 | sco3.2v5*) |
---|
13392 | version_type=osf |
---|
13393 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13395 | shlibpath_var=LD_LIBRARY_PATH |
---|
13396 | ;; |
---|
13397 | |
---|
13398 | solaris*) |
---|
13399 | version_type=linux |
---|
13400 | need_lib_prefix=no |
---|
13401 | need_version=no |
---|
13402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13403 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13404 | shlibpath_var=LD_LIBRARY_PATH |
---|
13405 | shlibpath_overrides_runpath=yes |
---|
13406 | hardcode_into_libs=yes |
---|
13407 | # ldd complains unless libraries are executable |
---|
13408 | postinstall_cmds='chmod +x $lib' |
---|
13409 | ;; |
---|
13410 | |
---|
13411 | sunos4*) |
---|
13412 | version_type=sunos |
---|
13413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
13414 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
13415 | shlibpath_var=LD_LIBRARY_PATH |
---|
13416 | shlibpath_overrides_runpath=yes |
---|
13417 | if test "$with_gnu_ld" = yes; then |
---|
13418 | need_lib_prefix=no |
---|
13419 | fi |
---|
13420 | need_version=yes |
---|
13421 | ;; |
---|
13422 | |
---|
13423 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
13424 | version_type=linux |
---|
13425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13426 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13427 | shlibpath_var=LD_LIBRARY_PATH |
---|
13428 | case $host_vendor in |
---|
13429 | sni) |
---|
13430 | shlibpath_overrides_runpath=no |
---|
13431 | need_lib_prefix=no |
---|
13432 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
13433 | runpath_var=LD_RUN_PATH |
---|
13434 | ;; |
---|
13435 | siemens) |
---|
13436 | need_lib_prefix=no |
---|
13437 | ;; |
---|
13438 | motorola) |
---|
13439 | need_lib_prefix=no |
---|
13440 | need_version=no |
---|
13441 | shlibpath_overrides_runpath=no |
---|
13442 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
13443 | ;; |
---|
13444 | esac |
---|
13445 | ;; |
---|
13446 | |
---|
13447 | sysv4*MP*) |
---|
13448 | if test -d /usr/nec ;then |
---|
13449 | version_type=linux |
---|
13450 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
13451 | soname_spec='$libname${shared_ext}.$major' |
---|
13452 | shlibpath_var=LD_LIBRARY_PATH |
---|
13453 | fi |
---|
13454 | ;; |
---|
13455 | |
---|
13456 | uts4*) |
---|
13457 | version_type=linux |
---|
13458 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
13459 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
13460 | shlibpath_var=LD_LIBRARY_PATH |
---|
13461 | ;; |
---|
13462 | |
---|
13463 | *) |
---|
13464 | dynamic_linker=no |
---|
13465 | ;; |
---|
13466 | esac |
---|
13467 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
13468 | echo "${ECHO_T}$dynamic_linker" >&6; } |
---|
13469 | test "$dynamic_linker" = no && can_build_shared=no |
---|
13470 | |
---|
13471 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
13472 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
---|
13473 | hardcode_action_CXX= |
---|
13474 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
---|
13475 | test -n "$runpath_var_CXX" || \ |
---|
13476 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
---|
13477 | |
---|
13478 | # We can hardcode non-existant directories. |
---|
13479 | if test "$hardcode_direct_CXX" != no && |
---|
13480 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
13481 | # have to relink, otherwise we might link with an installed library |
---|
13482 | # when we should be linking with a yet-to-be-installed one |
---|
13483 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
---|
13484 | test "$hardcode_minus_L_CXX" != no; then |
---|
13485 | # Linking always hardcodes the temporary library directory. |
---|
13486 | hardcode_action_CXX=relink |
---|
13487 | else |
---|
13488 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
13489 | hardcode_action_CXX=immediate |
---|
13490 | fi |
---|
13491 | else |
---|
13492 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
13493 | # directories. |
---|
13494 | hardcode_action_CXX=unsupported |
---|
13495 | fi |
---|
13496 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
---|
13497 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
---|
13498 | |
---|
13499 | if test "$hardcode_action_CXX" = relink; then |
---|
13500 | # Fast installation is not supported |
---|
13501 | enable_fast_install=no |
---|
13502 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
13503 | test "$enable_shared" = no; then |
---|
13504 | # Fast installation is not necessary |
---|
13505 | enable_fast_install=needless |
---|
13506 | fi |
---|
13507 | |
---|
13508 | striplib= |
---|
13509 | old_striplib= |
---|
13510 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
13511 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
---|
13512 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
13513 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
13514 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
13515 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
13516 | echo "${ECHO_T}yes" >&6; } |
---|
13517 | else |
---|
13518 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
13519 | case $host_os in |
---|
13520 | darwin*) |
---|
13521 | if test -n "$STRIP" ; then |
---|
13522 | striplib="$STRIP -x" |
---|
13523 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
13524 | echo "${ECHO_T}yes" >&6; } |
---|
13525 | else |
---|
13526 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
13527 | echo "${ECHO_T}no" >&6; } |
---|
13528 | fi |
---|
13529 | ;; |
---|
13530 | *) |
---|
13531 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
13532 | echo "${ECHO_T}no" >&6; } |
---|
13533 | ;; |
---|
13534 | esac |
---|
13535 | fi |
---|
13536 | |
---|
13537 | if test "x$enable_dlopen" != xyes; then |
---|
13538 | enable_dlopen=unknown |
---|
13539 | enable_dlopen_self=unknown |
---|
13540 | enable_dlopen_self_static=unknown |
---|
13541 | else |
---|
13542 | lt_cv_dlopen=no |
---|
13543 | lt_cv_dlopen_libs= |
---|
13544 | |
---|
13545 | case $host_os in |
---|
13546 | beos*) |
---|
13547 | lt_cv_dlopen="load_add_on" |
---|
13548 | lt_cv_dlopen_libs= |
---|
13549 | lt_cv_dlopen_self=yes |
---|
13550 | ;; |
---|
13551 | |
---|
13552 | mingw* | pw32*) |
---|
13553 | lt_cv_dlopen="LoadLibrary" |
---|
13554 | lt_cv_dlopen_libs= |
---|
13555 | ;; |
---|
13556 | |
---|
13557 | cygwin*) |
---|
13558 | lt_cv_dlopen="dlopen" |
---|
13559 | lt_cv_dlopen_libs= |
---|
13560 | ;; |
---|
13561 | |
---|
13562 | darwin*) |
---|
13563 | # if libdl is installed we need to link against it |
---|
13564 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
13565 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
13566 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
13567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13568 | else |
---|
13569 | ac_check_lib_save_LIBS=$LIBS |
---|
13570 | LIBS="-ldl $LIBS" |
---|
13571 | cat >conftest.$ac_ext <<_ACEOF |
---|
13572 | /* confdefs.h. */ |
---|
13573 | _ACEOF |
---|
13574 | cat confdefs.h >>conftest.$ac_ext |
---|
13575 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13576 | /* end confdefs.h. */ |
---|
13577 | |
---|
13578 | /* Override any GCC internal prototype to avoid an error. |
---|
13579 | Use char because int might match the return type of a GCC |
---|
13580 | builtin and then its argument prototype would still apply. */ |
---|
13581 | #ifdef __cplusplus |
---|
13582 | extern "C" |
---|
13583 | #endif |
---|
13584 | char dlopen (); |
---|
13585 | int |
---|
13586 | main () |
---|
13587 | { |
---|
13588 | return dlopen (); |
---|
13589 | ; |
---|
13590 | return 0; |
---|
13591 | } |
---|
13592 | _ACEOF |
---|
13593 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13594 | if { (ac_try="$ac_link" |
---|
13595 | case "(($ac_try" in |
---|
13596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13597 | *) ac_try_echo=$ac_try;; |
---|
13598 | esac |
---|
13599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13600 | (eval "$ac_link") 2>conftest.er1 |
---|
13601 | ac_status=$? |
---|
13602 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13603 | rm -f conftest.er1 |
---|
13604 | cat conftest.err >&5 |
---|
13605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13606 | (exit $ac_status); } && { |
---|
13607 | test -z "$ac_cxx_werror_flag" || |
---|
13608 | test ! -s conftest.err |
---|
13609 | } && test -s conftest$ac_exeext && |
---|
13610 | $as_test_x conftest$ac_exeext; then |
---|
13611 | ac_cv_lib_dl_dlopen=yes |
---|
13612 | else |
---|
13613 | echo "$as_me: failed program was:" >&5 |
---|
13614 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13615 | |
---|
13616 | ac_cv_lib_dl_dlopen=no |
---|
13617 | fi |
---|
13618 | |
---|
13619 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
13620 | conftest$ac_exeext conftest.$ac_ext |
---|
13621 | LIBS=$ac_check_lib_save_LIBS |
---|
13622 | fi |
---|
13623 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
13624 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
13625 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
13626 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
13627 | else |
---|
13628 | |
---|
13629 | lt_cv_dlopen="dyld" |
---|
13630 | lt_cv_dlopen_libs= |
---|
13631 | lt_cv_dlopen_self=yes |
---|
13632 | |
---|
13633 | fi |
---|
13634 | |
---|
13635 | ;; |
---|
13636 | |
---|
13637 | *) |
---|
13638 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
13639 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
---|
13640 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
13641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13642 | else |
---|
13643 | cat >conftest.$ac_ext <<_ACEOF |
---|
13644 | /* confdefs.h. */ |
---|
13645 | _ACEOF |
---|
13646 | cat confdefs.h >>conftest.$ac_ext |
---|
13647 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13648 | /* end confdefs.h. */ |
---|
13649 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
13650 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
13651 | #define shl_load innocuous_shl_load |
---|
13652 | |
---|
13653 | /* System header to define __stub macros and hopefully few prototypes, |
---|
13654 | which can conflict with char shl_load (); below. |
---|
13655 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
13656 | <limits.h> exists even on freestanding compilers. */ |
---|
13657 | |
---|
13658 | #ifdef __STDC__ |
---|
13659 | # include <limits.h> |
---|
13660 | #else |
---|
13661 | # include <assert.h> |
---|
13662 | #endif |
---|
13663 | |
---|
13664 | #undef shl_load |
---|
13665 | |
---|
13666 | /* Override any GCC internal prototype to avoid an error. |
---|
13667 | Use char because int might match the return type of a GCC |
---|
13668 | builtin and then its argument prototype would still apply. */ |
---|
13669 | #ifdef __cplusplus |
---|
13670 | extern "C" |
---|
13671 | #endif |
---|
13672 | char shl_load (); |
---|
13673 | /* The GNU C library defines this for functions which it implements |
---|
13674 | to always fail with ENOSYS. Some functions are actually named |
---|
13675 | something starting with __ and the normal name is an alias. */ |
---|
13676 | #if defined __stub_shl_load || defined __stub___shl_load |
---|
13677 | choke me |
---|
13678 | #endif |
---|
13679 | |
---|
13680 | int |
---|
13681 | main () |
---|
13682 | { |
---|
13683 | return shl_load (); |
---|
13684 | ; |
---|
13685 | return 0; |
---|
13686 | } |
---|
13687 | _ACEOF |
---|
13688 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13689 | if { (ac_try="$ac_link" |
---|
13690 | case "(($ac_try" in |
---|
13691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13692 | *) ac_try_echo=$ac_try;; |
---|
13693 | esac |
---|
13694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13695 | (eval "$ac_link") 2>conftest.er1 |
---|
13696 | ac_status=$? |
---|
13697 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13698 | rm -f conftest.er1 |
---|
13699 | cat conftest.err >&5 |
---|
13700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13701 | (exit $ac_status); } && { |
---|
13702 | test -z "$ac_cxx_werror_flag" || |
---|
13703 | test ! -s conftest.err |
---|
13704 | } && test -s conftest$ac_exeext && |
---|
13705 | $as_test_x conftest$ac_exeext; then |
---|
13706 | ac_cv_func_shl_load=yes |
---|
13707 | else |
---|
13708 | echo "$as_me: failed program was:" >&5 |
---|
13709 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13710 | |
---|
13711 | ac_cv_func_shl_load=no |
---|
13712 | fi |
---|
13713 | |
---|
13714 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
13715 | conftest$ac_exeext conftest.$ac_ext |
---|
13716 | fi |
---|
13717 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
13718 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
---|
13719 | if test $ac_cv_func_shl_load = yes; then |
---|
13720 | lt_cv_dlopen="shl_load" |
---|
13721 | else |
---|
13722 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
13723 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
---|
13724 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
13725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13726 | else |
---|
13727 | ac_check_lib_save_LIBS=$LIBS |
---|
13728 | LIBS="-ldld $LIBS" |
---|
13729 | cat >conftest.$ac_ext <<_ACEOF |
---|
13730 | /* confdefs.h. */ |
---|
13731 | _ACEOF |
---|
13732 | cat confdefs.h >>conftest.$ac_ext |
---|
13733 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13734 | /* end confdefs.h. */ |
---|
13735 | |
---|
13736 | /* Override any GCC internal prototype to avoid an error. |
---|
13737 | Use char because int might match the return type of a GCC |
---|
13738 | builtin and then its argument prototype would still apply. */ |
---|
13739 | #ifdef __cplusplus |
---|
13740 | extern "C" |
---|
13741 | #endif |
---|
13742 | char shl_load (); |
---|
13743 | int |
---|
13744 | main () |
---|
13745 | { |
---|
13746 | return shl_load (); |
---|
13747 | ; |
---|
13748 | return 0; |
---|
13749 | } |
---|
13750 | _ACEOF |
---|
13751 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13752 | if { (ac_try="$ac_link" |
---|
13753 | case "(($ac_try" in |
---|
13754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13755 | *) ac_try_echo=$ac_try;; |
---|
13756 | esac |
---|
13757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13758 | (eval "$ac_link") 2>conftest.er1 |
---|
13759 | ac_status=$? |
---|
13760 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13761 | rm -f conftest.er1 |
---|
13762 | cat conftest.err >&5 |
---|
13763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13764 | (exit $ac_status); } && { |
---|
13765 | test -z "$ac_cxx_werror_flag" || |
---|
13766 | test ! -s conftest.err |
---|
13767 | } && test -s conftest$ac_exeext && |
---|
13768 | $as_test_x conftest$ac_exeext; then |
---|
13769 | ac_cv_lib_dld_shl_load=yes |
---|
13770 | else |
---|
13771 | echo "$as_me: failed program was:" >&5 |
---|
13772 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13773 | |
---|
13774 | ac_cv_lib_dld_shl_load=no |
---|
13775 | fi |
---|
13776 | |
---|
13777 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
13778 | conftest$ac_exeext conftest.$ac_ext |
---|
13779 | LIBS=$ac_check_lib_save_LIBS |
---|
13780 | fi |
---|
13781 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
13782 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
---|
13783 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
13784 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
13785 | else |
---|
13786 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
13787 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
---|
13788 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
13789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13790 | else |
---|
13791 | cat >conftest.$ac_ext <<_ACEOF |
---|
13792 | /* confdefs.h. */ |
---|
13793 | _ACEOF |
---|
13794 | cat confdefs.h >>conftest.$ac_ext |
---|
13795 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13796 | /* end confdefs.h. */ |
---|
13797 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
13798 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
13799 | #define dlopen innocuous_dlopen |
---|
13800 | |
---|
13801 | /* System header to define __stub macros and hopefully few prototypes, |
---|
13802 | which can conflict with char dlopen (); below. |
---|
13803 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
13804 | <limits.h> exists even on freestanding compilers. */ |
---|
13805 | |
---|
13806 | #ifdef __STDC__ |
---|
13807 | # include <limits.h> |
---|
13808 | #else |
---|
13809 | # include <assert.h> |
---|
13810 | #endif |
---|
13811 | |
---|
13812 | #undef dlopen |
---|
13813 | |
---|
13814 | /* Override any GCC internal prototype to avoid an error. |
---|
13815 | Use char because int might match the return type of a GCC |
---|
13816 | builtin and then its argument prototype would still apply. */ |
---|
13817 | #ifdef __cplusplus |
---|
13818 | extern "C" |
---|
13819 | #endif |
---|
13820 | char dlopen (); |
---|
13821 | /* The GNU C library defines this for functions which it implements |
---|
13822 | to always fail with ENOSYS. Some functions are actually named |
---|
13823 | something starting with __ and the normal name is an alias. */ |
---|
13824 | #if defined __stub_dlopen || defined __stub___dlopen |
---|
13825 | choke me |
---|
13826 | #endif |
---|
13827 | |
---|
13828 | int |
---|
13829 | main () |
---|
13830 | { |
---|
13831 | return dlopen (); |
---|
13832 | ; |
---|
13833 | return 0; |
---|
13834 | } |
---|
13835 | _ACEOF |
---|
13836 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13837 | if { (ac_try="$ac_link" |
---|
13838 | case "(($ac_try" in |
---|
13839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13840 | *) ac_try_echo=$ac_try;; |
---|
13841 | esac |
---|
13842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13843 | (eval "$ac_link") 2>conftest.er1 |
---|
13844 | ac_status=$? |
---|
13845 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13846 | rm -f conftest.er1 |
---|
13847 | cat conftest.err >&5 |
---|
13848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13849 | (exit $ac_status); } && { |
---|
13850 | test -z "$ac_cxx_werror_flag" || |
---|
13851 | test ! -s conftest.err |
---|
13852 | } && test -s conftest$ac_exeext && |
---|
13853 | $as_test_x conftest$ac_exeext; then |
---|
13854 | ac_cv_func_dlopen=yes |
---|
13855 | else |
---|
13856 | echo "$as_me: failed program was:" >&5 |
---|
13857 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13858 | |
---|
13859 | ac_cv_func_dlopen=no |
---|
13860 | fi |
---|
13861 | |
---|
13862 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
13863 | conftest$ac_exeext conftest.$ac_ext |
---|
13864 | fi |
---|
13865 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
13866 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
---|
13867 | if test $ac_cv_func_dlopen = yes; then |
---|
13868 | lt_cv_dlopen="dlopen" |
---|
13869 | else |
---|
13870 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
13871 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
13872 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
13873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13874 | else |
---|
13875 | ac_check_lib_save_LIBS=$LIBS |
---|
13876 | LIBS="-ldl $LIBS" |
---|
13877 | cat >conftest.$ac_ext <<_ACEOF |
---|
13878 | /* confdefs.h. */ |
---|
13879 | _ACEOF |
---|
13880 | cat confdefs.h >>conftest.$ac_ext |
---|
13881 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13882 | /* end confdefs.h. */ |
---|
13883 | |
---|
13884 | /* Override any GCC internal prototype to avoid an error. |
---|
13885 | Use char because int might match the return type of a GCC |
---|
13886 | builtin and then its argument prototype would still apply. */ |
---|
13887 | #ifdef __cplusplus |
---|
13888 | extern "C" |
---|
13889 | #endif |
---|
13890 | char dlopen (); |
---|
13891 | int |
---|
13892 | main () |
---|
13893 | { |
---|
13894 | return dlopen (); |
---|
13895 | ; |
---|
13896 | return 0; |
---|
13897 | } |
---|
13898 | _ACEOF |
---|
13899 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13900 | if { (ac_try="$ac_link" |
---|
13901 | case "(($ac_try" in |
---|
13902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13903 | *) ac_try_echo=$ac_try;; |
---|
13904 | esac |
---|
13905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13906 | (eval "$ac_link") 2>conftest.er1 |
---|
13907 | ac_status=$? |
---|
13908 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13909 | rm -f conftest.er1 |
---|
13910 | cat conftest.err >&5 |
---|
13911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13912 | (exit $ac_status); } && { |
---|
13913 | test -z "$ac_cxx_werror_flag" || |
---|
13914 | test ! -s conftest.err |
---|
13915 | } && test -s conftest$ac_exeext && |
---|
13916 | $as_test_x conftest$ac_exeext; then |
---|
13917 | ac_cv_lib_dl_dlopen=yes |
---|
13918 | else |
---|
13919 | echo "$as_me: failed program was:" >&5 |
---|
13920 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13921 | |
---|
13922 | ac_cv_lib_dl_dlopen=no |
---|
13923 | fi |
---|
13924 | |
---|
13925 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
13926 | conftest$ac_exeext conftest.$ac_ext |
---|
13927 | LIBS=$ac_check_lib_save_LIBS |
---|
13928 | fi |
---|
13929 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
13930 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
13931 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
13932 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
13933 | else |
---|
13934 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
13935 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
---|
13936 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
13937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13938 | else |
---|
13939 | ac_check_lib_save_LIBS=$LIBS |
---|
13940 | LIBS="-lsvld $LIBS" |
---|
13941 | cat >conftest.$ac_ext <<_ACEOF |
---|
13942 | /* confdefs.h. */ |
---|
13943 | _ACEOF |
---|
13944 | cat confdefs.h >>conftest.$ac_ext |
---|
13945 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13946 | /* end confdefs.h. */ |
---|
13947 | |
---|
13948 | /* Override any GCC internal prototype to avoid an error. |
---|
13949 | Use char because int might match the return type of a GCC |
---|
13950 | builtin and then its argument prototype would still apply. */ |
---|
13951 | #ifdef __cplusplus |
---|
13952 | extern "C" |
---|
13953 | #endif |
---|
13954 | char dlopen (); |
---|
13955 | int |
---|
13956 | main () |
---|
13957 | { |
---|
13958 | return dlopen (); |
---|
13959 | ; |
---|
13960 | return 0; |
---|
13961 | } |
---|
13962 | _ACEOF |
---|
13963 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13964 | if { (ac_try="$ac_link" |
---|
13965 | case "(($ac_try" in |
---|
13966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13967 | *) ac_try_echo=$ac_try;; |
---|
13968 | esac |
---|
13969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13970 | (eval "$ac_link") 2>conftest.er1 |
---|
13971 | ac_status=$? |
---|
13972 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13973 | rm -f conftest.er1 |
---|
13974 | cat conftest.err >&5 |
---|
13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13976 | (exit $ac_status); } && { |
---|
13977 | test -z "$ac_cxx_werror_flag" || |
---|
13978 | test ! -s conftest.err |
---|
13979 | } && test -s conftest$ac_exeext && |
---|
13980 | $as_test_x conftest$ac_exeext; then |
---|
13981 | ac_cv_lib_svld_dlopen=yes |
---|
13982 | else |
---|
13983 | echo "$as_me: failed program was:" >&5 |
---|
13984 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13985 | |
---|
13986 | ac_cv_lib_svld_dlopen=no |
---|
13987 | fi |
---|
13988 | |
---|
13989 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
13990 | conftest$ac_exeext conftest.$ac_ext |
---|
13991 | LIBS=$ac_check_lib_save_LIBS |
---|
13992 | fi |
---|
13993 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
13994 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
---|
13995 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
13996 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
13997 | else |
---|
13998 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
13999 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
---|
14000 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
14001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
14002 | else |
---|
14003 | ac_check_lib_save_LIBS=$LIBS |
---|
14004 | LIBS="-ldld $LIBS" |
---|
14005 | cat >conftest.$ac_ext <<_ACEOF |
---|
14006 | /* confdefs.h. */ |
---|
14007 | _ACEOF |
---|
14008 | cat confdefs.h >>conftest.$ac_ext |
---|
14009 | cat >>conftest.$ac_ext <<_ACEOF |
---|
14010 | /* end confdefs.h. */ |
---|
14011 | |
---|
14012 | /* Override any GCC internal prototype to avoid an error. |
---|
14013 | Use char because int might match the return type of a GCC |
---|
14014 | builtin and then its argument prototype would still apply. */ |
---|
14015 | #ifdef __cplusplus |
---|
14016 | extern "C" |
---|
14017 | #endif |
---|
14018 | char dld_link (); |
---|
14019 | int |
---|
14020 | main () |
---|
14021 | { |
---|
14022 | return dld_link (); |
---|
14023 | ; |
---|
14024 | return 0; |
---|
14025 | } |
---|
14026 | _ACEOF |
---|
14027 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
14028 | if { (ac_try="$ac_link" |
---|
14029 | case "(($ac_try" in |
---|
14030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
14031 | *) ac_try_echo=$ac_try;; |
---|
14032 | esac |
---|
14033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
14034 | (eval "$ac_link") 2>conftest.er1 |
---|
14035 | ac_status=$? |
---|
14036 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
14037 | rm -f conftest.er1 |
---|
14038 | cat conftest.err >&5 |
---|
14039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14040 | (exit $ac_status); } && { |
---|
14041 | test -z "$ac_cxx_werror_flag" || |
---|
14042 | test ! -s conftest.err |
---|
14043 | } && test -s conftest$ac_exeext && |
---|
14044 | $as_test_x conftest$ac_exeext; then |
---|
14045 | ac_cv_lib_dld_dld_link=yes |
---|
14046 | else |
---|
14047 | echo "$as_me: failed program was:" >&5 |
---|
14048 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
14049 | |
---|
14050 | ac_cv_lib_dld_dld_link=no |
---|
14051 | fi |
---|
14052 | |
---|
14053 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
14054 | conftest$ac_exeext conftest.$ac_ext |
---|
14055 | LIBS=$ac_check_lib_save_LIBS |
---|
14056 | fi |
---|
14057 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
14058 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
---|
14059 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
14060 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
14061 | fi |
---|
14062 | |
---|
14063 | |
---|
14064 | fi |
---|
14065 | |
---|
14066 | |
---|
14067 | fi |
---|
14068 | |
---|
14069 | |
---|
14070 | fi |
---|
14071 | |
---|
14072 | |
---|
14073 | fi |
---|
14074 | |
---|
14075 | |
---|
14076 | fi |
---|
14077 | |
---|
14078 | ;; |
---|
14079 | esac |
---|
14080 | |
---|
14081 | if test "x$lt_cv_dlopen" != xno; then |
---|
14082 | enable_dlopen=yes |
---|
14083 | else |
---|
14084 | enable_dlopen=no |
---|
14085 | fi |
---|
14086 | |
---|
14087 | case $lt_cv_dlopen in |
---|
14088 | dlopen) |
---|
14089 | save_CPPFLAGS="$CPPFLAGS" |
---|
14090 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
14091 | |
---|
14092 | save_LDFLAGS="$LDFLAGS" |
---|
14093 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
14094 | |
---|
14095 | save_LIBS="$LIBS" |
---|
14096 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
14097 | |
---|
14098 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
14099 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
---|
14100 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
14101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
14102 | else |
---|
14103 | if test "$cross_compiling" = yes; then : |
---|
14104 | lt_cv_dlopen_self=cross |
---|
14105 | else |
---|
14106 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
14107 | lt_status=$lt_dlunknown |
---|
14108 | cat > conftest.$ac_ext <<EOF |
---|
14109 | #line 14109 "configure" |
---|
14110 | #include "confdefs.h" |
---|
14111 | |
---|
14112 | #if HAVE_DLFCN_H |
---|
14113 | #include <dlfcn.h> |
---|
14114 | #endif |
---|
14115 | |
---|
14116 | #include <stdio.h> |
---|
14117 | |
---|
14118 | #ifdef RTLD_GLOBAL |
---|
14119 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
14120 | #else |
---|
14121 | # ifdef DL_GLOBAL |
---|
14122 | # define LT_DLGLOBAL DL_GLOBAL |
---|
14123 | # else |
---|
14124 | # define LT_DLGLOBAL 0 |
---|
14125 | # endif |
---|
14126 | #endif |
---|
14127 | |
---|
14128 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
14129 | find out it does not work in some platform. */ |
---|
14130 | #ifndef LT_DLLAZY_OR_NOW |
---|
14131 | # ifdef RTLD_LAZY |
---|
14132 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
14133 | # else |
---|
14134 | # ifdef DL_LAZY |
---|
14135 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
14136 | # else |
---|
14137 | # ifdef RTLD_NOW |
---|
14138 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
14139 | # else |
---|
14140 | # ifdef DL_NOW |
---|
14141 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
14142 | # else |
---|
14143 | # define LT_DLLAZY_OR_NOW 0 |
---|
14144 | # endif |
---|
14145 | # endif |
---|
14146 | # endif |
---|
14147 | # endif |
---|
14148 | #endif |
---|
14149 | |
---|
14150 | #ifdef __cplusplus |
---|
14151 | extern "C" void exit (int); |
---|
14152 | #endif |
---|
14153 | |
---|
14154 | void fnord() { int i=42;} |
---|
14155 | int main () |
---|
14156 | { |
---|
14157 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
14158 | int status = $lt_dlunknown; |
---|
14159 | |
---|
14160 | if (self) |
---|
14161 | { |
---|
14162 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
14163 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
14164 | /* dlclose (self); */ |
---|
14165 | } |
---|
14166 | |
---|
14167 | exit (status); |
---|
14168 | } |
---|
14169 | EOF |
---|
14170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
14171 | (eval $ac_link) 2>&5 |
---|
14172 | ac_status=$? |
---|
14173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14174 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
14175 | (./conftest; exit; ) >&5 2>/dev/null |
---|
14176 | lt_status=$? |
---|
14177 | case x$lt_status in |
---|
14178 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
14179 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
14180 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
14181 | esac |
---|
14182 | else : |
---|
14183 | # compilation failed |
---|
14184 | lt_cv_dlopen_self=no |
---|
14185 | fi |
---|
14186 | fi |
---|
14187 | rm -fr conftest* |
---|
14188 | |
---|
14189 | |
---|
14190 | fi |
---|
14191 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
14192 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
---|
14193 | |
---|
14194 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
14195 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
14196 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
14197 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
---|
14198 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
14199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
14200 | else |
---|
14201 | if test "$cross_compiling" = yes; then : |
---|
14202 | lt_cv_dlopen_self_static=cross |
---|
14203 | else |
---|
14204 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
14205 | lt_status=$lt_dlunknown |
---|
14206 | cat > conftest.$ac_ext <<EOF |
---|
14207 | #line 14207 "configure" |
---|
14208 | #include "confdefs.h" |
---|
14209 | |
---|
14210 | #if HAVE_DLFCN_H |
---|
14211 | #include <dlfcn.h> |
---|
14212 | #endif |
---|
14213 | |
---|
14214 | #include <stdio.h> |
---|
14215 | |
---|
14216 | #ifdef RTLD_GLOBAL |
---|
14217 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
14218 | #else |
---|
14219 | # ifdef DL_GLOBAL |
---|
14220 | # define LT_DLGLOBAL DL_GLOBAL |
---|
14221 | # else |
---|
14222 | # define LT_DLGLOBAL 0 |
---|
14223 | # endif |
---|
14224 | #endif |
---|
14225 | |
---|
14226 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
14227 | find out it does not work in some platform. */ |
---|
14228 | #ifndef LT_DLLAZY_OR_NOW |
---|
14229 | # ifdef RTLD_LAZY |
---|
14230 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
14231 | # else |
---|
14232 | # ifdef DL_LAZY |
---|
14233 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
14234 | # else |
---|
14235 | # ifdef RTLD_NOW |
---|
14236 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
14237 | # else |
---|
14238 | # ifdef DL_NOW |
---|
14239 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
14240 | # else |
---|
14241 | # define LT_DLLAZY_OR_NOW 0 |
---|
14242 | # endif |
---|
14243 | # endif |
---|
14244 | # endif |
---|
14245 | # endif |
---|
14246 | #endif |
---|
14247 | |
---|
14248 | #ifdef __cplusplus |
---|
14249 | extern "C" void exit (int); |
---|
14250 | #endif |
---|
14251 | |
---|
14252 | void fnord() { int i=42;} |
---|
14253 | int main () |
---|
14254 | { |
---|
14255 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
14256 | int status = $lt_dlunknown; |
---|
14257 | |
---|
14258 | if (self) |
---|
14259 | { |
---|
14260 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
14261 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
14262 | /* dlclose (self); */ |
---|
14263 | } |
---|
14264 | |
---|
14265 | exit (status); |
---|
14266 | } |
---|
14267 | EOF |
---|
14268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
14269 | (eval $ac_link) 2>&5 |
---|
14270 | ac_status=$? |
---|
14271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
14272 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
14273 | (./conftest; exit; ) >&5 2>/dev/null |
---|
14274 | lt_status=$? |
---|
14275 | case x$lt_status in |
---|
14276 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
14277 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
14278 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
14279 | esac |
---|
14280 | else : |
---|
14281 | # compilation failed |
---|
14282 | lt_cv_dlopen_self_static=no |
---|
14283 | fi |
---|
14284 | fi |
---|
14285 | rm -fr conftest* |
---|
14286 | |
---|
14287 | |
---|
14288 | fi |
---|
14289 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
14290 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
---|
14291 | fi |
---|
14292 | |
---|
14293 | CPPFLAGS="$save_CPPFLAGS" |
---|
14294 | LDFLAGS="$save_LDFLAGS" |
---|
14295 | LIBS="$save_LIBS" |
---|
14296 | ;; |
---|
14297 | esac |
---|
14298 | |
---|
14299 | case $lt_cv_dlopen_self in |
---|
14300 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
14301 | *) enable_dlopen_self=unknown ;; |
---|
14302 | esac |
---|
14303 | |
---|
14304 | case $lt_cv_dlopen_self_static in |
---|
14305 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
14306 | *) enable_dlopen_self_static=unknown ;; |
---|
14307 | esac |
---|
14308 | fi |
---|
14309 | |
---|
14310 | |
---|
14311 | # The else clause should only fire when bootstrapping the |
---|
14312 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
14313 | # with your package, and you will get complaints that there are |
---|
14314 | # no rules to generate ltmain.sh. |
---|
14315 | if test -f "$ltmain"; then |
---|
14316 | # See if we are running on zsh, and set the options which allow our commands through |
---|
14317 | # without removal of \ escapes. |
---|
14318 | if test -n "${ZSH_VERSION+set}" ; then |
---|
14319 | setopt NO_GLOB_SUBST |
---|
14320 | fi |
---|
14321 | # Now quote all the things that may contain metacharacters while being |
---|
14322 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
14323 | # variables and quote the copies for generation of the libtool script. |
---|
14324 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
14325 | SED SHELL STRIP \ |
---|
14326 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
14327 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
14328 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
14329 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
14330 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
14331 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
14332 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
14333 | compiler_CXX \ |
---|
14334 | CC_CXX \ |
---|
14335 | LD_CXX \ |
---|
14336 | lt_prog_compiler_wl_CXX \ |
---|
14337 | lt_prog_compiler_pic_CXX \ |
---|
14338 | lt_prog_compiler_static_CXX \ |
---|
14339 | lt_prog_compiler_no_builtin_flag_CXX \ |
---|
14340 | export_dynamic_flag_spec_CXX \ |
---|
14341 | thread_safe_flag_spec_CXX \ |
---|
14342 | whole_archive_flag_spec_CXX \ |
---|
14343 | enable_shared_with_static_runtimes_CXX \ |
---|
14344 | old_archive_cmds_CXX \ |
---|
14345 | old_archive_from_new_cmds_CXX \ |
---|
14346 | predep_objects_CXX \ |
---|
14347 | postdep_objects_CXX \ |
---|
14348 | predeps_CXX \ |
---|
14349 | postdeps_CXX \ |
---|
14350 | compiler_lib_search_path_CXX \ |
---|
14351 | archive_cmds_CXX \ |
---|
14352 | archive_expsym_cmds_CXX \ |
---|
14353 | postinstall_cmds_CXX \ |
---|
14354 | postuninstall_cmds_CXX \ |
---|
14355 | old_archive_from_expsyms_cmds_CXX \ |
---|
14356 | allow_undefined_flag_CXX \ |
---|
14357 | no_undefined_flag_CXX \ |
---|
14358 | export_symbols_cmds_CXX \ |
---|
14359 | hardcode_libdir_flag_spec_CXX \ |
---|
14360 | hardcode_libdir_flag_spec_ld_CXX \ |
---|
14361 | hardcode_libdir_separator_CXX \ |
---|
14362 | hardcode_automatic_CXX \ |
---|
14363 | module_cmds_CXX \ |
---|
14364 | module_expsym_cmds_CXX \ |
---|
14365 | lt_cv_prog_compiler_c_o_CXX \ |
---|
14366 | exclude_expsyms_CXX \ |
---|
14367 | include_expsyms_CXX; do |
---|
14368 | |
---|
14369 | case $var in |
---|
14370 | old_archive_cmds_CXX | \ |
---|
14371 | old_archive_from_new_cmds_CXX | \ |
---|
14372 | archive_cmds_CXX | \ |
---|
14373 | archive_expsym_cmds_CXX | \ |
---|
14374 | module_cmds_CXX | \ |
---|
14375 | module_expsym_cmds_CXX | \ |
---|
14376 | old_archive_from_expsyms_cmds_CXX | \ |
---|
14377 | export_symbols_cmds_CXX | \ |
---|
14378 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
14379 | postinstall_cmds | postuninstall_cmds | \ |
---|
14380 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
14381 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
14382 | # Double-quote double-evaled strings. |
---|
14383 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
14384 | ;; |
---|
14385 | *) |
---|
14386 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
14387 | ;; |
---|
14388 | esac |
---|
14389 | done |
---|
14390 | |
---|
14391 | case $lt_echo in |
---|
14392 | *'\$0 --fallback-echo"') |
---|
14393 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
14394 | ;; |
---|
14395 | esac |
---|
14396 | |
---|
14397 | cfgfile="$ofile" |
---|
14398 | |
---|
14399 | cat <<__EOF__ >> "$cfgfile" |
---|
14400 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
14401 | |
---|
14402 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
14403 | |
---|
14404 | # Shell to use when invoking shell scripts. |
---|
14405 | SHELL=$lt_SHELL |
---|
14406 | |
---|
14407 | # Whether or not to build shared libraries. |
---|
14408 | build_libtool_libs=$enable_shared |
---|
14409 | |
---|
14410 | # Whether or not to build static libraries. |
---|
14411 | build_old_libs=$enable_static |
---|
14412 | |
---|
14413 | # Whether or not to add -lc for building shared libraries. |
---|
14414 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
---|
14415 | |
---|
14416 | # Whether or not to disallow shared libs when runtime libs are static |
---|
14417 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
---|
14418 | |
---|
14419 | # Whether or not to optimize for fast installation. |
---|
14420 | fast_install=$enable_fast_install |
---|
14421 | |
---|
14422 | # The host system. |
---|
14423 | host_alias=$host_alias |
---|
14424 | host=$host |
---|
14425 | host_os=$host_os |
---|
14426 | |
---|
14427 | # The build system. |
---|
14428 | build_alias=$build_alias |
---|
14429 | build=$build |
---|
14430 | build_os=$build_os |
---|
14431 | |
---|
14432 | # An echo program that does not interpret backslashes. |
---|
14433 | echo=$lt_echo |
---|
14434 | |
---|
14435 | # The archiver. |
---|
14436 | AR=$lt_AR |
---|
14437 | AR_FLAGS=$lt_AR_FLAGS |
---|
14438 | |
---|
14439 | # A C compiler. |
---|
14440 | LTCC=$lt_LTCC |
---|
14441 | |
---|
14442 | # A language-specific compiler. |
---|
14443 | CC=$lt_compiler_CXX |
---|
14444 | |
---|
14445 | # Is the compiler the GNU C compiler? |
---|
14446 | with_gcc=$GCC_CXX |
---|
14447 | |
---|
14448 | # An ERE matcher. |
---|
14449 | EGREP=$lt_EGREP |
---|
14450 | |
---|
14451 | # The linker used to build libraries. |
---|
14452 | LD=$lt_LD_CXX |
---|
14453 | |
---|
14454 | # Whether we need hard or soft links. |
---|
14455 | LN_S=$lt_LN_S |
---|
14456 | |
---|
14457 | # A BSD-compatible nm program. |
---|
14458 | NM=$lt_NM |
---|
14459 | |
---|
14460 | # A symbol stripping program |
---|
14461 | STRIP=$lt_STRIP |
---|
14462 | |
---|
14463 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
14464 | MAGIC_CMD=$MAGIC_CMD |
---|
14465 | |
---|
14466 | # Used on cygwin: DLL creation program. |
---|
14467 | DLLTOOL="$DLLTOOL" |
---|
14468 | |
---|
14469 | # Used on cygwin: object dumper. |
---|
14470 | OBJDUMP="$OBJDUMP" |
---|
14471 | |
---|
14472 | # Used on cygwin: assembler. |
---|
14473 | AS="$AS" |
---|
14474 | |
---|
14475 | # The name of the directory that contains temporary libtool files. |
---|
14476 | objdir=$objdir |
---|
14477 | |
---|
14478 | # How to create reloadable object files. |
---|
14479 | reload_flag=$lt_reload_flag |
---|
14480 | reload_cmds=$lt_reload_cmds |
---|
14481 | |
---|
14482 | # How to pass a linker flag through the compiler. |
---|
14483 | wl=$lt_lt_prog_compiler_wl_CXX |
---|
14484 | |
---|
14485 | # Object file suffix (normally "o"). |
---|
14486 | objext="$ac_objext" |
---|
14487 | |
---|
14488 | # Old archive suffix (normally "a"). |
---|
14489 | libext="$libext" |
---|
14490 | |
---|
14491 | # Shared library suffix (normally ".so"). |
---|
14492 | shrext_cmds='$shrext_cmds' |
---|
14493 | |
---|
14494 | # Executable file suffix (normally ""). |
---|
14495 | exeext="$exeext" |
---|
14496 | |
---|
14497 | # Additional compiler flags for building library objects. |
---|
14498 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
---|
14499 | pic_mode=$pic_mode |
---|
14500 | |
---|
14501 | # What is the maximum length of a command? |
---|
14502 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
14503 | |
---|
14504 | # Does compiler simultaneously support -c and -o options? |
---|
14505 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
---|
14506 | |
---|
14507 | # Must we lock files when doing compilation? |
---|
14508 | need_locks=$lt_need_locks |
---|
14509 | |
---|
14510 | # Do we need the lib prefix for modules? |
---|
14511 | need_lib_prefix=$need_lib_prefix |
---|
14512 | |
---|
14513 | # Do we need a version for libraries? |
---|
14514 | need_version=$need_version |
---|
14515 | |
---|
14516 | # Whether dlopen is supported. |
---|
14517 | dlopen_support=$enable_dlopen |
---|
14518 | |
---|
14519 | # Whether dlopen of programs is supported. |
---|
14520 | dlopen_self=$enable_dlopen_self |
---|
14521 | |
---|
14522 | # Whether dlopen of statically linked programs is supported. |
---|
14523 | dlopen_self_static=$enable_dlopen_self_static |
---|
14524 | |
---|
14525 | # Compiler flag to prevent dynamic linking. |
---|
14526 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
---|
14527 | |
---|
14528 | # Compiler flag to turn off builtin functions. |
---|
14529 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
---|
14530 | |
---|
14531 | # Compiler flag to allow reflexive dlopens. |
---|
14532 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
---|
14533 | |
---|
14534 | # Compiler flag to generate shared objects directly from archives. |
---|
14535 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
---|
14536 | |
---|
14537 | # Compiler flag to generate thread-safe objects. |
---|
14538 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
---|
14539 | |
---|
14540 | # Library versioning type. |
---|
14541 | version_type=$version_type |
---|
14542 | |
---|
14543 | # Format of library name prefix. |
---|
14544 | libname_spec=$lt_libname_spec |
---|
14545 | |
---|
14546 | # List of archive names. First name is the real one, the rest are links. |
---|
14547 | # The last name is the one that the linker finds with -lNAME. |
---|
14548 | library_names_spec=$lt_library_names_spec |
---|
14549 | |
---|
14550 | # The coded name of the library, if different from the real name. |
---|
14551 | soname_spec=$lt_soname_spec |
---|
14552 | |
---|
14553 | # Commands used to build and install an old-style archive. |
---|
14554 | RANLIB=$lt_RANLIB |
---|
14555 | old_archive_cmds=$lt_old_archive_cmds_CXX |
---|
14556 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
14557 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
14558 | |
---|
14559 | # Create an old-style archive from a shared archive. |
---|
14560 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
---|
14561 | |
---|
14562 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
14563 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
---|
14564 | |
---|
14565 | # Commands used to build and install a shared archive. |
---|
14566 | archive_cmds=$lt_archive_cmds_CXX |
---|
14567 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
---|
14568 | postinstall_cmds=$lt_postinstall_cmds |
---|
14569 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
14570 | |
---|
14571 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
14572 | module_cmds=$lt_module_cmds_CXX |
---|
14573 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
---|
14574 | |
---|
14575 | # Commands to strip libraries. |
---|
14576 | old_striplib=$lt_old_striplib |
---|
14577 | striplib=$lt_striplib |
---|
14578 | |
---|
14579 | # Dependencies to place before the objects being linked to create a |
---|
14580 | # shared library. |
---|
14581 | predep_objects=$lt_predep_objects_CXX |
---|
14582 | |
---|
14583 | # Dependencies to place after the objects being linked to create a |
---|
14584 | # shared library. |
---|
14585 | postdep_objects=$lt_postdep_objects_CXX |
---|
14586 | |
---|
14587 | # Dependencies to place before the objects being linked to create a |
---|
14588 | # shared library. |
---|
14589 | predeps=$lt_predeps_CXX |
---|
14590 | |
---|
14591 | # Dependencies to place after the objects being linked to create a |
---|
14592 | # shared library. |
---|
14593 | postdeps=$lt_postdeps_CXX |
---|
14594 | |
---|
14595 | # The library search path used internally by the compiler when linking |
---|
14596 | # a shared library. |
---|
14597 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
---|
14598 | |
---|
14599 | # Method to check whether dependent libraries are shared objects. |
---|
14600 | deplibs_check_method=$lt_deplibs_check_method |
---|
14601 | |
---|
14602 | # Command to use when deplibs_check_method == file_magic. |
---|
14603 | file_magic_cmd=$lt_file_magic_cmd |
---|
14604 | |
---|
14605 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
14606 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
---|
14607 | |
---|
14608 | # Flag that forces no undefined symbols. |
---|
14609 | no_undefined_flag=$lt_no_undefined_flag_CXX |
---|
14610 | |
---|
14611 | # Commands used to finish a libtool library installation in a directory. |
---|
14612 | finish_cmds=$lt_finish_cmds |
---|
14613 | |
---|
14614 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
14615 | finish_eval=$lt_finish_eval |
---|
14616 | |
---|
14617 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
14618 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
14619 | |
---|
14620 | # Transform the output of nm in a proper C declaration |
---|
14621 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
14622 | |
---|
14623 | # Transform the output of nm in a C name address pair |
---|
14624 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
14625 | |
---|
14626 | # This is the shared library runtime path variable. |
---|
14627 | runpath_var=$runpath_var |
---|
14628 | |
---|
14629 | # This is the shared library path variable. |
---|
14630 | shlibpath_var=$shlibpath_var |
---|
14631 | |
---|
14632 | # Is shlibpath searched before the hard-coded library search path? |
---|
14633 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
14634 | |
---|
14635 | # How to hardcode a shared library path into an executable. |
---|
14636 | hardcode_action=$hardcode_action_CXX |
---|
14637 | |
---|
14638 | # Whether we should hardcode library paths into libraries. |
---|
14639 | hardcode_into_libs=$hardcode_into_libs |
---|
14640 | |
---|
14641 | # Flag to hardcode \$libdir into a binary during linking. |
---|
14642 | # This must work even if \$libdir does not exist. |
---|
14643 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
---|
14644 | |
---|
14645 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
14646 | # a binary during linking. This must work even if \$libdir does |
---|
14647 | # not exist. |
---|
14648 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
---|
14649 | |
---|
14650 | # Whether we need a single -rpath flag with a separated argument. |
---|
14651 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
---|
14652 | |
---|
14653 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
14654 | # resulting binary. |
---|
14655 | hardcode_direct=$hardcode_direct_CXX |
---|
14656 | |
---|
14657 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
14658 | # resulting binary. |
---|
14659 | hardcode_minus_L=$hardcode_minus_L_CXX |
---|
14660 | |
---|
14661 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
14662 | # the resulting binary. |
---|
14663 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
---|
14664 | |
---|
14665 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
14666 | # and all subsequent libraries and executables linked against it. |
---|
14667 | hardcode_automatic=$hardcode_automatic_CXX |
---|
14668 | |
---|
14669 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
14670 | # restored at relink time. |
---|
14671 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
14672 | |
---|
14673 | # Whether libtool must link a program against all its dependency libraries. |
---|
14674 | link_all_deplibs=$link_all_deplibs_CXX |
---|
14675 | |
---|
14676 | # Compile-time system search path for libraries |
---|
14677 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
14678 | |
---|
14679 | # Run-time system search path for libraries |
---|
14680 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
14681 | |
---|
14682 | # Fix the shell variable \$srcfile for the compiler. |
---|
14683 | fix_srcfile_path="$fix_srcfile_path_CXX" |
---|
14684 | |
---|
14685 | # Set to yes if exported symbols are required. |
---|
14686 | always_export_symbols=$always_export_symbols_CXX |
---|
14687 | |
---|
14688 | # The commands to list exported symbols. |
---|
14689 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
---|
14690 | |
---|
14691 | # The commands to extract the exported symbol list from a shared archive. |
---|
14692 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
14693 | |
---|
14694 | # Symbols that should not be listed in the preloaded symbols. |
---|
14695 | exclude_expsyms=$lt_exclude_expsyms_CXX |
---|
14696 | |
---|
14697 | # Symbols that must always be exported. |
---|
14698 | include_expsyms=$lt_include_expsyms_CXX |
---|
14699 | |
---|
14700 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
14701 | |
---|
14702 | __EOF__ |
---|
14703 | |
---|
14704 | |
---|
14705 | else |
---|
14706 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
14707 | # `config.status --recheck' to rerun these tests and create the |
---|
14708 | # libtool script then. |
---|
14709 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
14710 | if test -f "$ltmain_in"; then |
---|
14711 | test -f Makefile && make "$ltmain" |
---|
14712 | fi |
---|
14713 | fi |
---|
14714 | |
---|
14715 | |
---|
14716 | ac_ext=c |
---|
14717 | ac_cpp='$CPP $CPPFLAGS' |
---|
14718 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
14719 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
14720 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
14721 | |
---|
14722 | CC=$lt_save_CC |
---|
14723 | LDCXX=$LD |
---|
14724 | LD=$lt_save_LD |
---|
14725 | GCC=$lt_save_GCC |
---|
14726 | with_gnu_ldcxx=$with_gnu_ld |
---|
14727 | with_gnu_ld=$lt_save_with_gnu_ld |
---|
14728 | lt_cv_path_LDCXX=$lt_cv_path_LD |
---|
14729 | lt_cv_path_LD=$lt_save_path_LD |
---|
14730 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
---|
14731 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
---|
14732 | |
---|
14733 | else |
---|
14734 | tagname="" |
---|
14735 | fi |
---|
14736 | ;; |
---|
14737 | |
---|
14738 | F77) |
---|
14739 | if test -n "$F77" && test "X$F77" != "Xno"; then |
---|
14740 | |
---|
14741 | ac_ext=f |
---|
14742 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
---|
14743 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
14744 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
---|
14745 | |
---|
14746 | |
---|
14747 | archive_cmds_need_lc_F77=no |
---|
14748 | allow_undefined_flag_F77= |
---|
14749 | always_export_symbols_F77=no |
---|
14750 | archive_expsym_cmds_F77= |
---|
14751 | export_dynamic_flag_spec_F77= |
---|
14752 | hardcode_direct_F77=no |
---|
14753 | hardcode_libdir_flag_spec_F77= |
---|
14754 | hardcode_libdir_flag_spec_ld_F77= |
---|
14755 | hardcode_libdir_separator_F77= |
---|
14756 | hardcode_minus_L_F77=no |
---|
14757 | hardcode_automatic_F77=no |
---|
14758 | module_cmds_F77= |
---|
14759 | module_expsym_cmds_F77= |
---|
14760 | link_all_deplibs_F77=unknown |
---|
14761 | old_archive_cmds_F77=$old_archive_cmds |
---|
14762 | no_undefined_flag_F77= |
---|
14763 | whole_archive_flag_spec_F77= |
---|
14764 | enable_shared_with_static_runtimes_F77=no |
---|
14765 | |
---|
14766 | # Source file extension for f77 test sources. |
---|
14767 | ac_ext=f |
---|
14768 | |
---|
14769 | # Object file extension for compiled f77 test sources. |
---|
14770 | objext=o |
---|
14771 | objext_F77=$objext |
---|
14772 | |
---|
14773 | # Code to be used in simple compile tests |
---|
14774 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
---|
14775 | |
---|
14776 | # Code to be used in simple link tests |
---|
14777 | lt_simple_link_test_code=" program t\n end\n" |
---|
14778 | |
---|
14779 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
14780 | |
---|
14781 | # If no C compiler was specified, use CC. |
---|
14782 | LTCC=${LTCC-"$CC"} |
---|
14783 | |
---|
14784 | # Allow CC to be a program name with arguments. |
---|
14785 | compiler=$CC |
---|
14786 | |
---|
14787 | |
---|
14788 | # save warnings/boilerplate of simple test code |
---|
14789 | ac_outfile=conftest.$ac_objext |
---|
14790 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
14791 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
14792 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
14793 | $rm conftest* |
---|
14794 | |
---|
14795 | ac_outfile=conftest.$ac_objext |
---|
14796 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
14797 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
14798 | _lt_linker_boilerplate=`cat conftest.err` |
---|
14799 | $rm conftest* |
---|
14800 | |
---|
14801 | |
---|
14802 | # Allow CC to be a program name with arguments. |
---|
14803 | lt_save_CC="$CC" |
---|
14804 | CC=${F77-"f77"} |
---|
14805 | compiler=$CC |
---|
14806 | compiler_F77=$CC |
---|
14807 | for cc_temp in $compiler""; do |
---|
14808 | case $cc_temp in |
---|
14809 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
14810 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
14811 | \-*) ;; |
---|
14812 | *) break;; |
---|
14813 | esac |
---|
14814 | done |
---|
14815 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
14816 | |
---|
14817 | |
---|
14818 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
---|
14819 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
---|
14820 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
---|
14821 | echo "${ECHO_T}$can_build_shared" >&6; } |
---|
14822 | |
---|
14823 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
---|
14824 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
---|
14825 | test "$can_build_shared" = "no" && enable_shared=no |
---|
14826 | |
---|
14827 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
14828 | # are all built from PIC. |
---|
14829 | case $host_os in |
---|
14830 | aix3*) |
---|
14831 | test "$enable_shared" = yes && enable_static=no |
---|
14832 | if test -n "$RANLIB"; then |
---|
14833 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
14834 | postinstall_cmds='$RANLIB $lib' |
---|
14835 | fi |
---|
14836 | ;; |
---|
14837 | aix4* | aix5*) |
---|
14838 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
14839 | test "$enable_shared" = yes && enable_static=no |
---|
14840 | fi |
---|
14841 | ;; |
---|
14842 | esac |
---|
14843 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
---|
14844 | echo "${ECHO_T}$enable_shared" >&6; } |
---|
14845 | |
---|
14846 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
---|
14847 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
---|
14848 | # Make sure either enable_shared or enable_static is yes. |
---|
14849 | test "$enable_shared" = yes || enable_static=yes |
---|
14850 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
---|
14851 | echo "${ECHO_T}$enable_static" >&6; } |
---|
14852 | |
---|
14853 | test "$ld_shlibs_F77" = no && can_build_shared=no |
---|
14854 | |
---|
14855 | GCC_F77="$G77" |
---|
14856 | LD_F77="$LD" |
---|
14857 | |
---|
14858 | lt_prog_compiler_wl_F77= |
---|
14859 | lt_prog_compiler_pic_F77= |
---|
14860 | lt_prog_compiler_static_F77= |
---|
14861 | |
---|
14862 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
14863 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
---|
14864 | |
---|
14865 | if test "$GCC" = yes; then |
---|
14866 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14867 | lt_prog_compiler_static_F77='-static' |
---|
14868 | |
---|
14869 | case $host_os in |
---|
14870 | aix*) |
---|
14871 | # All AIX code is PIC. |
---|
14872 | if test "$host_cpu" = ia64; then |
---|
14873 | # AIX 5 now supports IA64 processor |
---|
14874 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14875 | fi |
---|
14876 | ;; |
---|
14877 | |
---|
14878 | amigaos*) |
---|
14879 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
14880 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
14881 | # like `-m68040'. |
---|
14882 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
---|
14883 | ;; |
---|
14884 | |
---|
14885 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
14886 | # PIC is the default for these OSes. |
---|
14887 | ;; |
---|
14888 | |
---|
14889 | mingw* | pw32* | os2*) |
---|
14890 | # This hack is so that the source file can tell whether it is being |
---|
14891 | # built for inclusion in a dll (and should export symbols for example). |
---|
14892 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
---|
14893 | ;; |
---|
14894 | |
---|
14895 | darwin* | rhapsody*) |
---|
14896 | # PIC is the default on this platform |
---|
14897 | # Common symbols not allowed in MH_DYLIB files |
---|
14898 | lt_prog_compiler_pic_F77='-fno-common' |
---|
14899 | ;; |
---|
14900 | |
---|
14901 | msdosdjgpp*) |
---|
14902 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
14903 | # on systems that don't support them. |
---|
14904 | lt_prog_compiler_can_build_shared_F77=no |
---|
14905 | enable_shared=no |
---|
14906 | ;; |
---|
14907 | |
---|
14908 | sysv4*MP*) |
---|
14909 | if test -d /usr/nec; then |
---|
14910 | lt_prog_compiler_pic_F77=-Kconform_pic |
---|
14911 | fi |
---|
14912 | ;; |
---|
14913 | |
---|
14914 | hpux*) |
---|
14915 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
14916 | # not for PA HP-UX. |
---|
14917 | case $host_cpu in |
---|
14918 | hppa*64*|ia64*) |
---|
14919 | # +Z the default |
---|
14920 | ;; |
---|
14921 | *) |
---|
14922 | lt_prog_compiler_pic_F77='-fPIC' |
---|
14923 | ;; |
---|
14924 | esac |
---|
14925 | ;; |
---|
14926 | |
---|
14927 | *) |
---|
14928 | lt_prog_compiler_pic_F77='-fPIC' |
---|
14929 | ;; |
---|
14930 | esac |
---|
14931 | else |
---|
14932 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
14933 | case $host_os in |
---|
14934 | aix*) |
---|
14935 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14936 | if test "$host_cpu" = ia64; then |
---|
14937 | # AIX 5 now supports IA64 processor |
---|
14938 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14939 | else |
---|
14940 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
---|
14941 | fi |
---|
14942 | ;; |
---|
14943 | darwin*) |
---|
14944 | # PIC is the default on this platform |
---|
14945 | # Common symbols not allowed in MH_DYLIB files |
---|
14946 | case $cc_basename in |
---|
14947 | xlc*) |
---|
14948 | lt_prog_compiler_pic_F77='-qnocommon' |
---|
14949 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14950 | ;; |
---|
14951 | esac |
---|
14952 | ;; |
---|
14953 | |
---|
14954 | mingw* | pw32* | os2*) |
---|
14955 | # This hack is so that the source file can tell whether it is being |
---|
14956 | # built for inclusion in a dll (and should export symbols for example). |
---|
14957 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
---|
14958 | ;; |
---|
14959 | |
---|
14960 | hpux9* | hpux10* | hpux11*) |
---|
14961 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14962 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
14963 | # not for PA HP-UX. |
---|
14964 | case $host_cpu in |
---|
14965 | hppa*64*|ia64*) |
---|
14966 | # +Z the default |
---|
14967 | ;; |
---|
14968 | *) |
---|
14969 | lt_prog_compiler_pic_F77='+Z' |
---|
14970 | ;; |
---|
14971 | esac |
---|
14972 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
14973 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
---|
14974 | ;; |
---|
14975 | |
---|
14976 | irix5* | irix6* | nonstopux*) |
---|
14977 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14978 | # PIC (with -KPIC) is the default. |
---|
14979 | lt_prog_compiler_static_F77='-non_shared' |
---|
14980 | ;; |
---|
14981 | |
---|
14982 | newsos6) |
---|
14983 | lt_prog_compiler_pic_F77='-KPIC' |
---|
14984 | lt_prog_compiler_static_F77='-Bstatic' |
---|
14985 | ;; |
---|
14986 | |
---|
14987 | linux*) |
---|
14988 | case $cc_basename in |
---|
14989 | icc* | ecc*) |
---|
14990 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14991 | lt_prog_compiler_pic_F77='-KPIC' |
---|
14992 | lt_prog_compiler_static_F77='-static' |
---|
14993 | ;; |
---|
14994 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
14995 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
14996 | # which looks to be a dead project) |
---|
14997 | lt_prog_compiler_wl_F77='-Wl,' |
---|
14998 | lt_prog_compiler_pic_F77='-fpic' |
---|
14999 | lt_prog_compiler_static_F77='-Bstatic' |
---|
15000 | ;; |
---|
15001 | ccc*) |
---|
15002 | lt_prog_compiler_wl_F77='-Wl,' |
---|
15003 | # All Alpha code is PIC. |
---|
15004 | lt_prog_compiler_static_F77='-non_shared' |
---|
15005 | ;; |
---|
15006 | esac |
---|
15007 | ;; |
---|
15008 | |
---|
15009 | osf3* | osf4* | osf5*) |
---|
15010 | lt_prog_compiler_wl_F77='-Wl,' |
---|
15011 | # All OSF/1 code is PIC. |
---|
15012 | lt_prog_compiler_static_F77='-non_shared' |
---|
15013 | ;; |
---|
15014 | |
---|
15015 | sco3.2v5*) |
---|
15016 | lt_prog_compiler_pic_F77='-Kpic' |
---|
15017 | lt_prog_compiler_static_F77='-dn' |
---|
15018 | ;; |
---|
15019 | |
---|
15020 | solaris*) |
---|
15021 | lt_prog_compiler_pic_F77='-KPIC' |
---|
15022 | lt_prog_compiler_static_F77='-Bstatic' |
---|
15023 | case $cc_basename in |
---|
15024 | f77* | f90* | f95*) |
---|
15025 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
---|
15026 | *) |
---|
15027 | lt_prog_compiler_wl_F77='-Wl,';; |
---|
15028 | esac |
---|
15029 | ;; |
---|
15030 | |
---|
15031 | sunos4*) |
---|
15032 | lt_prog_compiler_wl_F77='-Qoption ld ' |
---|
15033 | lt_prog_compiler_pic_F77='-PIC' |
---|
15034 | lt_prog_compiler_static_F77='-Bstatic' |
---|
15035 | ;; |
---|
15036 | |
---|
15037 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
15038 | lt_prog_compiler_wl_F77='-Wl,' |
---|
15039 | lt_prog_compiler_pic_F77='-KPIC' |
---|
15040 | lt_prog_compiler_static_F77='-Bstatic' |
---|
15041 | ;; |
---|
15042 | |
---|
15043 | sysv4*MP*) |
---|
15044 | if test -d /usr/nec ;then |
---|
15045 | lt_prog_compiler_pic_F77='-Kconform_pic' |
---|
15046 | lt_prog_compiler_static_F77='-Bstatic' |
---|
15047 | fi |
---|
15048 | ;; |
---|
15049 | |
---|
15050 | unicos*) |
---|
15051 | lt_prog_compiler_wl_F77='-Wl,' |
---|
15052 | lt_prog_compiler_can_build_shared_F77=no |
---|
15053 | ;; |
---|
15054 | |
---|
15055 | uts4*) |
---|
15056 | lt_prog_compiler_pic_F77='-pic' |
---|
15057 | lt_prog_compiler_static_F77='-Bstatic' |
---|
15058 | ;; |
---|
15059 | |
---|
15060 | *) |
---|
15061 | lt_prog_compiler_can_build_shared_F77=no |
---|
15062 | ;; |
---|
15063 | esac |
---|
15064 | fi |
---|
15065 | |
---|
15066 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
---|
15067 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
---|
15068 | |
---|
15069 | # |
---|
15070 | # Check to make sure the PIC flag actually works. |
---|
15071 | # |
---|
15072 | if test -n "$lt_prog_compiler_pic_F77"; then |
---|
15073 | |
---|
15074 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
---|
15075 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
---|
15076 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
---|
15077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
15078 | else |
---|
15079 | lt_prog_compiler_pic_works_F77=no |
---|
15080 | ac_outfile=conftest.$ac_objext |
---|
15081 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
15082 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
---|
15083 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
15084 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
15085 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
15086 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
15087 | # The option is referenced via a variable to avoid confusing sed. |
---|
15088 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
15089 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
15090 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
15091 | -e 's:$: $lt_compiler_flag:'` |
---|
15092 | (eval echo "\"\$as_me:15092: $lt_compile\"" >&5) |
---|
15093 | (eval "$lt_compile" 2>conftest.err) |
---|
15094 | ac_status=$? |
---|
15095 | cat conftest.err >&5 |
---|
15096 | echo "$as_me:15096: \$? = $ac_status" >&5 |
---|
15097 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
15098 | # The compiler can only warn and ignore the option if not recognized |
---|
15099 | # So say no if there are warnings other than the usual output. |
---|
15100 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
---|
15101 | $SED '/^$/d' conftest.err >conftest.er2 |
---|
15102 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
---|
15103 | lt_prog_compiler_pic_works_F77=yes |
---|
15104 | fi |
---|
15105 | fi |
---|
15106 | $rm conftest* |
---|
15107 | |
---|
15108 | fi |
---|
15109 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
---|
15110 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
---|
15111 | |
---|
15112 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
---|
15113 | case $lt_prog_compiler_pic_F77 in |
---|
15114 | "" | " "*) ;; |
---|
15115 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
---|
15116 | esac |
---|
15117 | else |
---|
15118 | lt_prog_compiler_pic_F77= |
---|
15119 | lt_prog_compiler_can_build_shared_F77=no |
---|
15120 | fi |
---|
15121 | |
---|
15122 | fi |
---|
15123 | case $host_os in |
---|
15124 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
15125 | *djgpp*) |
---|
15126 | lt_prog_compiler_pic_F77= |
---|
15127 | ;; |
---|
15128 | *) |
---|
15129 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
---|
15130 | ;; |
---|
15131 | esac |
---|
15132 | |
---|
15133 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
15134 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
---|
15135 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
---|
15136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
15137 | else |
---|
15138 | lt_cv_prog_compiler_c_o_F77=no |
---|
15139 | $rm -r conftest 2>/dev/null |
---|
15140 | mkdir conftest |
---|
15141 | cd conftest |
---|
15142 | mkdir out |
---|
15143 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
15144 | |
---|
15145 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
15146 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
15147 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
15148 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
15149 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
15150 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
15151 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
15152 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
15153 | -e 's:$: $lt_compiler_flag:'` |
---|
15154 | (eval echo "\"\$as_me:15154: $lt_compile\"" >&5) |
---|
15155 | (eval "$lt_compile" 2>out/conftest.err) |
---|
15156 | ac_status=$? |
---|
15157 | cat out/conftest.err >&5 |
---|
15158 | echo "$as_me:15158: \$? = $ac_status" >&5 |
---|
15159 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
15160 | then |
---|
15161 | # The compiler can only warn and ignore the option if not recognized |
---|
15162 | # So say no if there are warnings |
---|
15163 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
---|
15164 | $SED '/^$/d' out/conftest.err >out/conftest.er2 |
---|
15165 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
15166 | lt_cv_prog_compiler_c_o_F77=yes |
---|
15167 | fi |
---|
15168 | fi |
---|
15169 | chmod u+w . 2>&5 |
---|
15170 | $rm conftest* |
---|
15171 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
15172 | # template instantiation |
---|
15173 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
15174 | $rm out/* && rmdir out |
---|
15175 | cd .. |
---|
15176 | rmdir conftest |
---|
15177 | $rm conftest* |
---|
15178 | |
---|
15179 | fi |
---|
15180 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
---|
15181 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
---|
15182 | |
---|
15183 | |
---|
15184 | hard_links="nottested" |
---|
15185 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
---|
15186 | # do not overwrite the value of need_locks provided by the user |
---|
15187 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
15188 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
---|
15189 | hard_links=yes |
---|
15190 | $rm conftest* |
---|
15191 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
15192 | touch conftest.a |
---|
15193 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
15194 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
15195 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
15196 | echo "${ECHO_T}$hard_links" >&6; } |
---|
15197 | if test "$hard_links" = no; then |
---|
15198 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
15199 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
15200 | need_locks=warn |
---|
15201 | fi |
---|
15202 | else |
---|
15203 | need_locks=no |
---|
15204 | fi |
---|
15205 | |
---|
15206 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
15207 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
15208 | |
---|
15209 | runpath_var= |
---|
15210 | allow_undefined_flag_F77= |
---|
15211 | enable_shared_with_static_runtimes_F77=no |
---|
15212 | archive_cmds_F77= |
---|
15213 | archive_expsym_cmds_F77= |
---|
15214 | old_archive_From_new_cmds_F77= |
---|
15215 | old_archive_from_expsyms_cmds_F77= |
---|
15216 | export_dynamic_flag_spec_F77= |
---|
15217 | whole_archive_flag_spec_F77= |
---|
15218 | thread_safe_flag_spec_F77= |
---|
15219 | hardcode_libdir_flag_spec_F77= |
---|
15220 | hardcode_libdir_flag_spec_ld_F77= |
---|
15221 | hardcode_libdir_separator_F77= |
---|
15222 | hardcode_direct_F77=no |
---|
15223 | hardcode_minus_L_F77=no |
---|
15224 | hardcode_shlibpath_var_F77=unsupported |
---|
15225 | link_all_deplibs_F77=unknown |
---|
15226 | hardcode_automatic_F77=no |
---|
15227 | module_cmds_F77= |
---|
15228 | module_expsym_cmds_F77= |
---|
15229 | always_export_symbols_F77=no |
---|
15230 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
15231 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
15232 | # included in the symbol list |
---|
15233 | include_expsyms_F77= |
---|
15234 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
15235 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
15236 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
15237 | # as well as any symbol that contains `d'. |
---|
15238 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
---|
15239 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
15240 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
15241 | # the symbol is explicitly referenced. Since portable code cannot |
---|
15242 | # rely on this symbol name, it's probably fine to never include it in |
---|
15243 | # preloaded symbol tables. |
---|
15244 | extract_expsyms_cmds= |
---|
15245 | # Just being paranoid about ensuring that cc_basename is set. |
---|
15246 | for cc_temp in $compiler""; do |
---|
15247 | case $cc_temp in |
---|
15248 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
15249 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
15250 | \-*) ;; |
---|
15251 | *) break;; |
---|
15252 | esac |
---|
15253 | done |
---|
15254 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
15255 | |
---|
15256 | case $host_os in |
---|
15257 | cygwin* | mingw* | pw32*) |
---|
15258 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
15259 | # When not using gcc, we currently assume that we are using |
---|
15260 | # Microsoft Visual C++. |
---|
15261 | if test "$GCC" != yes; then |
---|
15262 | with_gnu_ld=no |
---|
15263 | fi |
---|
15264 | ;; |
---|
15265 | openbsd*) |
---|
15266 | with_gnu_ld=no |
---|
15267 | ;; |
---|
15268 | esac |
---|
15269 | |
---|
15270 | ld_shlibs_F77=yes |
---|
15271 | if test "$with_gnu_ld" = yes; then |
---|
15272 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
15273 | wlarc='${wl}' |
---|
15274 | |
---|
15275 | # Set some defaults for GNU ld with shared library support. These |
---|
15276 | # are reset later if shared libraries are not supported. Putting them |
---|
15277 | # here allows them to be overridden if necessary. |
---|
15278 | runpath_var=LD_RUN_PATH |
---|
15279 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
---|
15280 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
---|
15281 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
15282 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
15283 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
15284 | else |
---|
15285 | whole_archive_flag_spec_F77= |
---|
15286 | fi |
---|
15287 | supports_anon_versioning=no |
---|
15288 | case `$LD -v 2>/dev/null` in |
---|
15289 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
15290 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
15291 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
15292 | *\ 2.11.*) ;; # other 2.11 versions |
---|
15293 | *) supports_anon_versioning=yes ;; |
---|
15294 | esac |
---|
15295 | |
---|
15296 | # See if GNU ld supports shared libraries. |
---|
15297 | case $host_os in |
---|
15298 | aix3* | aix4* | aix5*) |
---|
15299 | # On AIX/PPC, the GNU linker is very broken |
---|
15300 | if test "$host_cpu" != ia64; then |
---|
15301 | ld_shlibs_F77=no |
---|
15302 | cat <<EOF 1>&2 |
---|
15303 | |
---|
15304 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
15305 | *** to be unable to reliably create shared libraries on AIX. |
---|
15306 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
15307 | *** really care for shared libraries, you may want to modify your PATH |
---|
15308 | *** so that a non-GNU linker is found, and then restart. |
---|
15309 | |
---|
15310 | EOF |
---|
15311 | fi |
---|
15312 | ;; |
---|
15313 | |
---|
15314 | amigaos*) |
---|
15315 | 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)' |
---|
15316 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15317 | hardcode_minus_L_F77=yes |
---|
15318 | |
---|
15319 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
15320 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
15321 | # to version 4, is to share data among multiple programs linked |
---|
15322 | # with the same dynamic library. Since this doesn't match the |
---|
15323 | # behavior of shared libraries on other platforms, we can't use |
---|
15324 | # them. |
---|
15325 | ld_shlibs_F77=no |
---|
15326 | ;; |
---|
15327 | |
---|
15328 | beos*) |
---|
15329 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
15330 | allow_undefined_flag_F77=unsupported |
---|
15331 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
15332 | # support --undefined. This deserves some investigation. FIXME |
---|
15333 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
15334 | else |
---|
15335 | ld_shlibs_F77=no |
---|
15336 | fi |
---|
15337 | ;; |
---|
15338 | |
---|
15339 | cygwin* | mingw* | pw32*) |
---|
15340 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
---|
15341 | # as there is no search path for DLLs. |
---|
15342 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15343 | allow_undefined_flag_F77=unsupported |
---|
15344 | always_export_symbols_F77=no |
---|
15345 | enable_shared_with_static_runtimes_F77=yes |
---|
15346 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
15347 | |
---|
15348 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
15349 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
15350 | # If the export-symbols file already is a .def file (1st line |
---|
15351 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
15352 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
15353 | cp $export_symbols $output_objdir/$soname.def; |
---|
15354 | else |
---|
15355 | echo EXPORTS > $output_objdir/$soname.def; |
---|
15356 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
15357 | fi~ |
---|
15358 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
15359 | else |
---|
15360 | ld_shlibs_F77=no |
---|
15361 | fi |
---|
15362 | ;; |
---|
15363 | |
---|
15364 | linux*) |
---|
15365 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
15366 | tmp_addflag= |
---|
15367 | case $cc_basename,$host_cpu in |
---|
15368 | pgcc*) # Portland Group C compiler |
---|
15369 | 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' |
---|
15370 | tmp_addflag=' $pic_flag' |
---|
15371 | ;; |
---|
15372 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
15373 | 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' |
---|
15374 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
15375 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
15376 | tmp_addflag=' -i_dynamic' ;; |
---|
15377 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
15378 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
15379 | ifc* | ifort*) # Intel Fortran compiler |
---|
15380 | tmp_addflag=' -nofor_main' ;; |
---|
15381 | esac |
---|
15382 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
15383 | |
---|
15384 | if test $supports_anon_versioning = yes; then |
---|
15385 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
15386 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
15387 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
15388 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
15389 | fi |
---|
15390 | else |
---|
15391 | ld_shlibs_F77=no |
---|
15392 | fi |
---|
15393 | ;; |
---|
15394 | |
---|
15395 | netbsd*) |
---|
15396 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
15397 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
15398 | wlarc= |
---|
15399 | else |
---|
15400 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
15401 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
15402 | fi |
---|
15403 | ;; |
---|
15404 | |
---|
15405 | solaris* | sysv5*) |
---|
15406 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
15407 | ld_shlibs_F77=no |
---|
15408 | cat <<EOF 1>&2 |
---|
15409 | |
---|
15410 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
15411 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
15412 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
15413 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
15414 | *** your PATH or compiler configuration so that the native linker is |
---|
15415 | *** used, and then restart. |
---|
15416 | |
---|
15417 | EOF |
---|
15418 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
15419 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
15420 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
15421 | else |
---|
15422 | ld_shlibs_F77=no |
---|
15423 | fi |
---|
15424 | ;; |
---|
15425 | |
---|
15426 | sunos4*) |
---|
15427 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
15428 | wlarc= |
---|
15429 | hardcode_direct_F77=yes |
---|
15430 | hardcode_shlibpath_var_F77=no |
---|
15431 | ;; |
---|
15432 | |
---|
15433 | *) |
---|
15434 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
15435 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
15436 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
15437 | else |
---|
15438 | ld_shlibs_F77=no |
---|
15439 | fi |
---|
15440 | ;; |
---|
15441 | esac |
---|
15442 | |
---|
15443 | if test "$ld_shlibs_F77" = no; then |
---|
15444 | runpath_var= |
---|
15445 | hardcode_libdir_flag_spec_F77= |
---|
15446 | export_dynamic_flag_spec_F77= |
---|
15447 | whole_archive_flag_spec_F77= |
---|
15448 | fi |
---|
15449 | else |
---|
15450 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
15451 | case $host_os in |
---|
15452 | aix3*) |
---|
15453 | allow_undefined_flag_F77=unsupported |
---|
15454 | always_export_symbols_F77=yes |
---|
15455 | 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' |
---|
15456 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
15457 | # are no directories specified by -L. |
---|
15458 | hardcode_minus_L_F77=yes |
---|
15459 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
15460 | # Neither direct hardcoding nor static linking is supported with a |
---|
15461 | # broken collect2. |
---|
15462 | hardcode_direct_F77=unsupported |
---|
15463 | fi |
---|
15464 | ;; |
---|
15465 | |
---|
15466 | aix4* | aix5*) |
---|
15467 | if test "$host_cpu" = ia64; then |
---|
15468 | # On IA64, the linker does run time linking by default, so we don't |
---|
15469 | # have to do anything special. |
---|
15470 | aix_use_runtimelinking=no |
---|
15471 | exp_sym_flag='-Bexport' |
---|
15472 | no_entry_flag="" |
---|
15473 | else |
---|
15474 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
15475 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
15476 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
15477 | 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' |
---|
15478 | else |
---|
15479 | 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' |
---|
15480 | fi |
---|
15481 | aix_use_runtimelinking=no |
---|
15482 | |
---|
15483 | # Test if we are trying to use run time linking or normal |
---|
15484 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
15485 | # need to do runtime linking. |
---|
15486 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
15487 | for ld_flag in $LDFLAGS; do |
---|
15488 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
15489 | aix_use_runtimelinking=yes |
---|
15490 | break |
---|
15491 | fi |
---|
15492 | done |
---|
15493 | esac |
---|
15494 | |
---|
15495 | exp_sym_flag='-bexport' |
---|
15496 | no_entry_flag='-bnoentry' |
---|
15497 | fi |
---|
15498 | |
---|
15499 | # When large executables or shared objects are built, AIX ld can |
---|
15500 | # have problems creating the table of contents. If linking a library |
---|
15501 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
15502 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
15503 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
15504 | |
---|
15505 | archive_cmds_F77='' |
---|
15506 | hardcode_direct_F77=yes |
---|
15507 | hardcode_libdir_separator_F77=':' |
---|
15508 | link_all_deplibs_F77=yes |
---|
15509 | |
---|
15510 | if test "$GCC" = yes; then |
---|
15511 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
15512 | # We only want to do this on AIX 4.2 and lower, the check |
---|
15513 | # below for broken collect2 doesn't work under 4.3+ |
---|
15514 | collect2name=`${CC} -print-prog-name=collect2` |
---|
15515 | if test -f "$collect2name" && \ |
---|
15516 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
15517 | then |
---|
15518 | # We have reworked collect2 |
---|
15519 | hardcode_direct_F77=yes |
---|
15520 | else |
---|
15521 | # We have old collect2 |
---|
15522 | hardcode_direct_F77=unsupported |
---|
15523 | # It fails to find uninstalled libraries when the uninstalled |
---|
15524 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
15525 | # to unsupported forces relinking |
---|
15526 | hardcode_minus_L_F77=yes |
---|
15527 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15528 | hardcode_libdir_separator_F77= |
---|
15529 | fi |
---|
15530 | esac |
---|
15531 | shared_flag='-shared' |
---|
15532 | if test "$aix_use_runtimelinking" = yes; then |
---|
15533 | shared_flag="$shared_flag "'${wl}-G' |
---|
15534 | fi |
---|
15535 | else |
---|
15536 | # not using gcc |
---|
15537 | if test "$host_cpu" = ia64; then |
---|
15538 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
15539 | # chokes on -Wl,-G. The following line is correct: |
---|
15540 | shared_flag='-G' |
---|
15541 | else |
---|
15542 | if test "$aix_use_runtimelinking" = yes; then |
---|
15543 | shared_flag='${wl}-G' |
---|
15544 | else |
---|
15545 | shared_flag='${wl}-bM:SRE' |
---|
15546 | fi |
---|
15547 | fi |
---|
15548 | fi |
---|
15549 | |
---|
15550 | # It seems that -bexpall does not export symbols beginning with |
---|
15551 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
15552 | always_export_symbols_F77=yes |
---|
15553 | if test "$aix_use_runtimelinking" = yes; then |
---|
15554 | # Warning - without using the other runtime loading flags (-brtl), |
---|
15555 | # -berok will link without error, but may produce a broken library. |
---|
15556 | allow_undefined_flag_F77='-berok' |
---|
15557 | # Determine the default libpath from the value encoded in an empty executable. |
---|
15558 | cat >conftest.$ac_ext <<_ACEOF |
---|
15559 | program main |
---|
15560 | |
---|
15561 | end |
---|
15562 | _ACEOF |
---|
15563 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
15564 | if { (ac_try="$ac_link" |
---|
15565 | case "(($ac_try" in |
---|
15566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
15567 | *) ac_try_echo=$ac_try;; |
---|
15568 | esac |
---|
15569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
15570 | (eval "$ac_link") 2>conftest.er1 |
---|
15571 | ac_status=$? |
---|
15572 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
15573 | rm -f conftest.er1 |
---|
15574 | cat conftest.err >&5 |
---|
15575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
15576 | (exit $ac_status); } && { |
---|
15577 | test -z "$ac_f77_werror_flag" || |
---|
15578 | test ! -s conftest.err |
---|
15579 | } && test -s conftest$ac_exeext && |
---|
15580 | $as_test_x conftest$ac_exeext; then |
---|
15581 | |
---|
15582 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
15583 | }'` |
---|
15584 | # Check for a 64-bit object if we didn't find anything. |
---|
15585 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
15586 | }'`; fi |
---|
15587 | else |
---|
15588 | echo "$as_me: failed program was:" >&5 |
---|
15589 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
15590 | |
---|
15591 | |
---|
15592 | fi |
---|
15593 | |
---|
15594 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
15595 | conftest$ac_exeext conftest.$ac_ext |
---|
15596 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
15597 | |
---|
15598 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
15599 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
15600 | else |
---|
15601 | if test "$host_cpu" = ia64; then |
---|
15602 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
---|
15603 | allow_undefined_flag_F77="-z nodefs" |
---|
15604 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
---|
15605 | else |
---|
15606 | # Determine the default libpath from the value encoded in an empty executable. |
---|
15607 | cat >conftest.$ac_ext <<_ACEOF |
---|
15608 | program main |
---|
15609 | |
---|
15610 | end |
---|
15611 | _ACEOF |
---|
15612 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
15613 | if { (ac_try="$ac_link" |
---|
15614 | case "(($ac_try" in |
---|
15615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
15616 | *) ac_try_echo=$ac_try;; |
---|
15617 | esac |
---|
15618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
15619 | (eval "$ac_link") 2>conftest.er1 |
---|
15620 | ac_status=$? |
---|
15621 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
15622 | rm -f conftest.er1 |
---|
15623 | cat conftest.err >&5 |
---|
15624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
15625 | (exit $ac_status); } && { |
---|
15626 | test -z "$ac_f77_werror_flag" || |
---|
15627 | test ! -s conftest.err |
---|
15628 | } && test -s conftest$ac_exeext && |
---|
15629 | $as_test_x conftest$ac_exeext; then |
---|
15630 | |
---|
15631 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
15632 | }'` |
---|
15633 | # Check for a 64-bit object if we didn't find anything. |
---|
15634 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
15635 | }'`; fi |
---|
15636 | else |
---|
15637 | echo "$as_me: failed program was:" >&5 |
---|
15638 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
15639 | |
---|
15640 | |
---|
15641 | fi |
---|
15642 | |
---|
15643 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
15644 | conftest$ac_exeext conftest.$ac_ext |
---|
15645 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
15646 | |
---|
15647 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
15648 | # Warning - without using the other run time loading flags, |
---|
15649 | # -berok will link without error, but may produce a broken library. |
---|
15650 | no_undefined_flag_F77=' ${wl}-bernotok' |
---|
15651 | allow_undefined_flag_F77=' ${wl}-berok' |
---|
15652 | # -bexpall does not export symbols beginning with underscore (_) |
---|
15653 | always_export_symbols_F77=yes |
---|
15654 | # Exported symbols can be pulled into shared objects from archives |
---|
15655 | whole_archive_flag_spec_F77=' ' |
---|
15656 | archive_cmds_need_lc_F77=yes |
---|
15657 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
15658 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
---|
15659 | fi |
---|
15660 | fi |
---|
15661 | ;; |
---|
15662 | |
---|
15663 | amigaos*) |
---|
15664 | 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)' |
---|
15665 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15666 | hardcode_minus_L_F77=yes |
---|
15667 | # see comment about different semantics on the GNU ld section |
---|
15668 | ld_shlibs_F77=no |
---|
15669 | ;; |
---|
15670 | |
---|
15671 | bsdi[45]*) |
---|
15672 | export_dynamic_flag_spec_F77=-rdynamic |
---|
15673 | ;; |
---|
15674 | |
---|
15675 | cygwin* | mingw* | pw32*) |
---|
15676 | # When not using gcc, we currently assume that we are using |
---|
15677 | # Microsoft Visual C++. |
---|
15678 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
15679 | # no search path for DLLs. |
---|
15680 | hardcode_libdir_flag_spec_F77=' ' |
---|
15681 | allow_undefined_flag_F77=unsupported |
---|
15682 | # Tell ltmain to make .lib files, not .a files. |
---|
15683 | libext=lib |
---|
15684 | # Tell ltmain to make .dll files, not .so files. |
---|
15685 | shrext_cmds=".dll" |
---|
15686 | # FIXME: Setting linknames here is a bad hack. |
---|
15687 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
15688 | # The linker will automatically build a .lib file if we build a DLL. |
---|
15689 | old_archive_From_new_cmds_F77='true' |
---|
15690 | # FIXME: Should let the user specify the lib program. |
---|
15691 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
15692 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
---|
15693 | enable_shared_with_static_runtimes_F77=yes |
---|
15694 | ;; |
---|
15695 | |
---|
15696 | darwin* | rhapsody*) |
---|
15697 | case $host_os in |
---|
15698 | rhapsody* | darwin1.[012]) |
---|
15699 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
---|
15700 | ;; |
---|
15701 | *) # Darwin 1.3 on |
---|
15702 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
15703 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
15704 | else |
---|
15705 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
15706 | 10.[012]) |
---|
15707 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
15708 | ;; |
---|
15709 | 10.*) |
---|
15710 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
---|
15711 | ;; |
---|
15712 | esac |
---|
15713 | fi |
---|
15714 | ;; |
---|
15715 | esac |
---|
15716 | archive_cmds_need_lc_F77=no |
---|
15717 | hardcode_direct_F77=no |
---|
15718 | hardcode_automatic_F77=yes |
---|
15719 | hardcode_shlibpath_var_F77=unsupported |
---|
15720 | whole_archive_flag_spec_F77='' |
---|
15721 | link_all_deplibs_F77=yes |
---|
15722 | if test "$GCC" = yes ; then |
---|
15723 | output_verbose_link_cmd='echo' |
---|
15724 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
15725 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
15726 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
15727 | 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}' |
---|
15728 | 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}' |
---|
15729 | else |
---|
15730 | case $cc_basename in |
---|
15731 | xlc*) |
---|
15732 | output_verbose_link_cmd='echo' |
---|
15733 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
15734 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
15735 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
15736 | 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
15737 | 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}' |
---|
15738 | ;; |
---|
15739 | *) |
---|
15740 | ld_shlibs_F77=no |
---|
15741 | ;; |
---|
15742 | esac |
---|
15743 | fi |
---|
15744 | ;; |
---|
15745 | |
---|
15746 | dgux*) |
---|
15747 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15748 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15749 | hardcode_shlibpath_var_F77=no |
---|
15750 | ;; |
---|
15751 | |
---|
15752 | freebsd1*) |
---|
15753 | ld_shlibs_F77=no |
---|
15754 | ;; |
---|
15755 | |
---|
15756 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
15757 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
15758 | # does not break anything, and helps significantly (at the cost of a little |
---|
15759 | # extra space). |
---|
15760 | freebsd2.2*) |
---|
15761 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
15762 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
15763 | hardcode_direct_F77=yes |
---|
15764 | hardcode_shlibpath_var_F77=no |
---|
15765 | ;; |
---|
15766 | |
---|
15767 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
15768 | freebsd2*) |
---|
15769 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
15770 | hardcode_direct_F77=yes |
---|
15771 | hardcode_minus_L_F77=yes |
---|
15772 | hardcode_shlibpath_var_F77=no |
---|
15773 | ;; |
---|
15774 | |
---|
15775 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
15776 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
15777 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
15778 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
15779 | hardcode_direct_F77=yes |
---|
15780 | hardcode_shlibpath_var_F77=no |
---|
15781 | ;; |
---|
15782 | |
---|
15783 | hpux9*) |
---|
15784 | if test "$GCC" = yes; then |
---|
15785 | 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' |
---|
15786 | else |
---|
15787 | 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' |
---|
15788 | fi |
---|
15789 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
15790 | hardcode_libdir_separator_F77=: |
---|
15791 | hardcode_direct_F77=yes |
---|
15792 | |
---|
15793 | # hardcode_minus_L: Not really in the search PATH, |
---|
15794 | # but as the default location of the library. |
---|
15795 | hardcode_minus_L_F77=yes |
---|
15796 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
15797 | ;; |
---|
15798 | |
---|
15799 | hpux10* | hpux11*) |
---|
15800 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
15801 | case $host_cpu in |
---|
15802 | hppa*64*|ia64*) |
---|
15803 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15804 | ;; |
---|
15805 | *) |
---|
15806 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
15807 | ;; |
---|
15808 | esac |
---|
15809 | else |
---|
15810 | case $host_cpu in |
---|
15811 | hppa*64*|ia64*) |
---|
15812 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15813 | ;; |
---|
15814 | *) |
---|
15815 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
15816 | ;; |
---|
15817 | esac |
---|
15818 | fi |
---|
15819 | if test "$with_gnu_ld" = no; then |
---|
15820 | case $host_cpu in |
---|
15821 | hppa*64*) |
---|
15822 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
15823 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
---|
15824 | hardcode_libdir_separator_F77=: |
---|
15825 | hardcode_direct_F77=no |
---|
15826 | hardcode_shlibpath_var_F77=no |
---|
15827 | ;; |
---|
15828 | ia64*) |
---|
15829 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15830 | hardcode_direct_F77=no |
---|
15831 | hardcode_shlibpath_var_F77=no |
---|
15832 | |
---|
15833 | # hardcode_minus_L: Not really in the search PATH, |
---|
15834 | # but as the default location of the library. |
---|
15835 | hardcode_minus_L_F77=yes |
---|
15836 | ;; |
---|
15837 | *) |
---|
15838 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
---|
15839 | hardcode_libdir_separator_F77=: |
---|
15840 | hardcode_direct_F77=yes |
---|
15841 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
15842 | |
---|
15843 | # hardcode_minus_L: Not really in the search PATH, |
---|
15844 | # but as the default location of the library. |
---|
15845 | hardcode_minus_L_F77=yes |
---|
15846 | ;; |
---|
15847 | esac |
---|
15848 | fi |
---|
15849 | ;; |
---|
15850 | |
---|
15851 | irix5* | irix6* | nonstopux*) |
---|
15852 | if test "$GCC" = yes; then |
---|
15853 | 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' |
---|
15854 | else |
---|
15855 | 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' |
---|
15856 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
---|
15857 | fi |
---|
15858 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
15859 | hardcode_libdir_separator_F77=: |
---|
15860 | link_all_deplibs_F77=yes |
---|
15861 | ;; |
---|
15862 | |
---|
15863 | netbsd*) |
---|
15864 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
15865 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
15866 | else |
---|
15867 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
15868 | fi |
---|
15869 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
15870 | hardcode_direct_F77=yes |
---|
15871 | hardcode_shlibpath_var_F77=no |
---|
15872 | ;; |
---|
15873 | |
---|
15874 | newsos6) |
---|
15875 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15876 | hardcode_direct_F77=yes |
---|
15877 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
15878 | hardcode_libdir_separator_F77=: |
---|
15879 | hardcode_shlibpath_var_F77=no |
---|
15880 | ;; |
---|
15881 | |
---|
15882 | openbsd*) |
---|
15883 | hardcode_direct_F77=yes |
---|
15884 | hardcode_shlibpath_var_F77=no |
---|
15885 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
15886 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
15887 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
15888 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
---|
15889 | export_dynamic_flag_spec_F77='${wl}-E' |
---|
15890 | else |
---|
15891 | case $host_os in |
---|
15892 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
15893 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
15894 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
15895 | ;; |
---|
15896 | *) |
---|
15897 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
15898 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
---|
15899 | ;; |
---|
15900 | esac |
---|
15901 | fi |
---|
15902 | ;; |
---|
15903 | |
---|
15904 | os2*) |
---|
15905 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15906 | hardcode_minus_L_F77=yes |
---|
15907 | allow_undefined_flag_F77=unsupported |
---|
15908 | 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' |
---|
15909 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
15910 | ;; |
---|
15911 | |
---|
15912 | osf3*) |
---|
15913 | if test "$GCC" = yes; then |
---|
15914 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
---|
15915 | 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' |
---|
15916 | else |
---|
15917 | allow_undefined_flag_F77=' -expect_unresolved \*' |
---|
15918 | 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' |
---|
15919 | fi |
---|
15920 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
15921 | hardcode_libdir_separator_F77=: |
---|
15922 | ;; |
---|
15923 | |
---|
15924 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
15925 | if test "$GCC" = yes; then |
---|
15926 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
---|
15927 | 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' |
---|
15928 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
---|
15929 | else |
---|
15930 | allow_undefined_flag_F77=' -expect_unresolved \*' |
---|
15931 | 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' |
---|
15932 | 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~ |
---|
15933 | $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' |
---|
15934 | |
---|
15935 | # Both c and cxx compiler support -rpath directly |
---|
15936 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
---|
15937 | fi |
---|
15938 | hardcode_libdir_separator_F77=: |
---|
15939 | ;; |
---|
15940 | |
---|
15941 | sco3.2v5*) |
---|
15942 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15943 | hardcode_shlibpath_var_F77=no |
---|
15944 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
---|
15945 | runpath_var=LD_RUN_PATH |
---|
15946 | hardcode_runpath_var=yes |
---|
15947 | ;; |
---|
15948 | |
---|
15949 | solaris*) |
---|
15950 | no_undefined_flag_F77=' -z text' |
---|
15951 | if test "$GCC" = yes; then |
---|
15952 | wlarc='${wl}' |
---|
15953 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15954 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
15955 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
15956 | else |
---|
15957 | wlarc='' |
---|
15958 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
15959 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
15960 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
15961 | fi |
---|
15962 | hardcode_libdir_flag_spec_F77='-R$libdir' |
---|
15963 | hardcode_shlibpath_var_F77=no |
---|
15964 | case $host_os in |
---|
15965 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
15966 | *) |
---|
15967 | # The compiler driver will combine linker options so we |
---|
15968 | # cannot just pass the convience library names through |
---|
15969 | # without $wl, iff we do not link with $LD. |
---|
15970 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
---|
15971 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
15972 | case $wlarc in |
---|
15973 | '') |
---|
15974 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
---|
15975 | *) |
---|
15976 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
---|
15977 | esac ;; |
---|
15978 | esac |
---|
15979 | link_all_deplibs_F77=yes |
---|
15980 | ;; |
---|
15981 | |
---|
15982 | sunos4*) |
---|
15983 | if test "x$host_vendor" = xsequent; then |
---|
15984 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
15985 | # files that make .init and .fini sections work. |
---|
15986 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
15987 | else |
---|
15988 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
15989 | fi |
---|
15990 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
15991 | hardcode_direct_F77=yes |
---|
15992 | hardcode_minus_L_F77=yes |
---|
15993 | hardcode_shlibpath_var_F77=no |
---|
15994 | ;; |
---|
15995 | |
---|
15996 | sysv4) |
---|
15997 | case $host_vendor in |
---|
15998 | sni) |
---|
15999 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16000 | hardcode_direct_F77=yes # is this really true??? |
---|
16001 | ;; |
---|
16002 | siemens) |
---|
16003 | ## LD is ld it makes a PLAMLIB |
---|
16004 | ## CC just makes a GrossModule. |
---|
16005 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
16006 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
---|
16007 | hardcode_direct_F77=no |
---|
16008 | ;; |
---|
16009 | motorola) |
---|
16010 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16011 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
---|
16012 | ;; |
---|
16013 | esac |
---|
16014 | runpath_var='LD_RUN_PATH' |
---|
16015 | hardcode_shlibpath_var_F77=no |
---|
16016 | ;; |
---|
16017 | |
---|
16018 | sysv4.3*) |
---|
16019 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16020 | hardcode_shlibpath_var_F77=no |
---|
16021 | export_dynamic_flag_spec_F77='-Bexport' |
---|
16022 | ;; |
---|
16023 | |
---|
16024 | sysv4*MP*) |
---|
16025 | if test -d /usr/nec; then |
---|
16026 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16027 | hardcode_shlibpath_var_F77=no |
---|
16028 | runpath_var=LD_RUN_PATH |
---|
16029 | hardcode_runpath_var=yes |
---|
16030 | ld_shlibs_F77=yes |
---|
16031 | fi |
---|
16032 | ;; |
---|
16033 | |
---|
16034 | sysv4.2uw2*) |
---|
16035 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
16036 | hardcode_direct_F77=yes |
---|
16037 | hardcode_minus_L_F77=no |
---|
16038 | hardcode_shlibpath_var_F77=no |
---|
16039 | hardcode_runpath_var=yes |
---|
16040 | runpath_var=LD_RUN_PATH |
---|
16041 | ;; |
---|
16042 | |
---|
16043 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
16044 | no_undefined_flag_F77='${wl}-z ${wl}text' |
---|
16045 | if test "$GCC" = yes; then |
---|
16046 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16047 | else |
---|
16048 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
16049 | fi |
---|
16050 | runpath_var='LD_RUN_PATH' |
---|
16051 | hardcode_shlibpath_var_F77=no |
---|
16052 | ;; |
---|
16053 | |
---|
16054 | sysv5*) |
---|
16055 | no_undefined_flag_F77=' -z text' |
---|
16056 | # $CC -shared without GNU ld will not create a library from C++ |
---|
16057 | # object files and a static libstdc++, better avoid it by now |
---|
16058 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16059 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
16060 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
16061 | hardcode_libdir_flag_spec_F77= |
---|
16062 | hardcode_shlibpath_var_F77=no |
---|
16063 | runpath_var='LD_RUN_PATH' |
---|
16064 | ;; |
---|
16065 | |
---|
16066 | uts4*) |
---|
16067 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
16068 | hardcode_libdir_flag_spec_F77='-L$libdir' |
---|
16069 | hardcode_shlibpath_var_F77=no |
---|
16070 | ;; |
---|
16071 | |
---|
16072 | *) |
---|
16073 | ld_shlibs_F77=no |
---|
16074 | ;; |
---|
16075 | esac |
---|
16076 | fi |
---|
16077 | |
---|
16078 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
---|
16079 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
---|
16080 | test "$ld_shlibs_F77" = no && can_build_shared=no |
---|
16081 | |
---|
16082 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
16083 | if test "$GCC" = yes; then |
---|
16084 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
16085 | fi |
---|
16086 | |
---|
16087 | # |
---|
16088 | # Do we need to explicitly link libc? |
---|
16089 | # |
---|
16090 | case "x$archive_cmds_need_lc_F77" in |
---|
16091 | x|xyes) |
---|
16092 | # Assume -lc should be added |
---|
16093 | archive_cmds_need_lc_F77=yes |
---|
16094 | |
---|
16095 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
16096 | case $archive_cmds_F77 in |
---|
16097 | *'~'*) |
---|
16098 | # FIXME: we may have to deal with multi-command sequences. |
---|
16099 | ;; |
---|
16100 | '$CC '*) |
---|
16101 | # Test whether the compiler implicitly links with -lc since on some |
---|
16102 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
16103 | # to ld, don't add -lc before -lgcc. |
---|
16104 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
16105 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
---|
16106 | $rm conftest* |
---|
16107 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
16108 | |
---|
16109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
16110 | (eval $ac_compile) 2>&5 |
---|
16111 | ac_status=$? |
---|
16112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16113 | (exit $ac_status); } 2>conftest.err; then |
---|
16114 | soname=conftest |
---|
16115 | lib=conftest |
---|
16116 | libobjs=conftest.$ac_objext |
---|
16117 | deplibs= |
---|
16118 | wl=$lt_prog_compiler_wl_F77 |
---|
16119 | compiler_flags=-v |
---|
16120 | linker_flags=-v |
---|
16121 | verstring= |
---|
16122 | output_objdir=. |
---|
16123 | libname=conftest |
---|
16124 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
---|
16125 | allow_undefined_flag_F77= |
---|
16126 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
16127 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
16128 | ac_status=$? |
---|
16129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
16130 | (exit $ac_status); } |
---|
16131 | then |
---|
16132 | archive_cmds_need_lc_F77=no |
---|
16133 | else |
---|
16134 | archive_cmds_need_lc_F77=yes |
---|
16135 | fi |
---|
16136 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
---|
16137 | else |
---|
16138 | cat conftest.err 1>&5 |
---|
16139 | fi |
---|
16140 | $rm conftest* |
---|
16141 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
---|
16142 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
---|
16143 | ;; |
---|
16144 | esac |
---|
16145 | fi |
---|
16146 | ;; |
---|
16147 | esac |
---|
16148 | |
---|
16149 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
16150 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
---|
16151 | library_names_spec= |
---|
16152 | libname_spec='lib$name' |
---|
16153 | soname_spec= |
---|
16154 | shrext_cmds=".so" |
---|
16155 | postinstall_cmds= |
---|
16156 | postuninstall_cmds= |
---|
16157 | finish_cmds= |
---|
16158 | finish_eval= |
---|
16159 | shlibpath_var= |
---|
16160 | shlibpath_overrides_runpath=unknown |
---|
16161 | version_type=none |
---|
16162 | dynamic_linker="$host_os ld.so" |
---|
16163 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
16164 | if test "$GCC" = yes; then |
---|
16165 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
16166 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
16167 | # if the path contains ";" then we assume it to be the separator |
---|
16168 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
16169 | # assumed that no part of a normal pathname contains ";" but that should |
---|
16170 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
16171 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
16172 | else |
---|
16173 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
16174 | fi |
---|
16175 | else |
---|
16176 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
16177 | fi |
---|
16178 | need_lib_prefix=unknown |
---|
16179 | hardcode_into_libs=no |
---|
16180 | |
---|
16181 | # when you set need_version to no, make sure it does not cause -set_version |
---|
16182 | # flags to be left without arguments |
---|
16183 | need_version=unknown |
---|
16184 | |
---|
16185 | case $host_os in |
---|
16186 | aix3*) |
---|
16187 | version_type=linux |
---|
16188 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
16189 | shlibpath_var=LIBPATH |
---|
16190 | |
---|
16191 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
16192 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16193 | ;; |
---|
16194 | |
---|
16195 | aix4* | aix5*) |
---|
16196 | version_type=linux |
---|
16197 | need_lib_prefix=no |
---|
16198 | need_version=no |
---|
16199 | hardcode_into_libs=yes |
---|
16200 | if test "$host_cpu" = ia64; then |
---|
16201 | # AIX 5 supports IA64 |
---|
16202 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
16203 | shlibpath_var=LD_LIBRARY_PATH |
---|
16204 | else |
---|
16205 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
16206 | # for dependence libraries. The import file would start with |
---|
16207 | # the line `#! .'. This would cause the generated library to |
---|
16208 | # depend on `.', always an invalid library. This was fixed in |
---|
16209 | # development snapshots of GCC prior to 3.0. |
---|
16210 | case $host_os in |
---|
16211 | aix4 | aix4.[01] | aix4.[01].*) |
---|
16212 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
16213 | echo ' yes ' |
---|
16214 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
16215 | : |
---|
16216 | else |
---|
16217 | can_build_shared=no |
---|
16218 | fi |
---|
16219 | ;; |
---|
16220 | esac |
---|
16221 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
16222 | # soname into executable. Probably we can add versioning support to |
---|
16223 | # collect2, so additional links can be useful in future. |
---|
16224 | if test "$aix_use_runtimelinking" = yes; then |
---|
16225 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
16226 | # instead of lib<name>.a to let people know that these are not |
---|
16227 | # typical AIX shared libraries. |
---|
16228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16229 | else |
---|
16230 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
16231 | # and later when we are not doing run time linking. |
---|
16232 | library_names_spec='${libname}${release}.a $libname.a' |
---|
16233 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16234 | fi |
---|
16235 | shlibpath_var=LIBPATH |
---|
16236 | fi |
---|
16237 | ;; |
---|
16238 | |
---|
16239 | amigaos*) |
---|
16240 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
16241 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
16242 | 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' |
---|
16243 | ;; |
---|
16244 | |
---|
16245 | beos*) |
---|
16246 | library_names_spec='${libname}${shared_ext}' |
---|
16247 | dynamic_linker="$host_os ld.so" |
---|
16248 | shlibpath_var=LIBRARY_PATH |
---|
16249 | ;; |
---|
16250 | |
---|
16251 | bsdi[45]*) |
---|
16252 | version_type=linux |
---|
16253 | need_version=no |
---|
16254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16255 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16256 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
16257 | shlibpath_var=LD_LIBRARY_PATH |
---|
16258 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
16259 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
16260 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
16261 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
16262 | # libtool to hard-code these into programs |
---|
16263 | ;; |
---|
16264 | |
---|
16265 | cygwin* | mingw* | pw32*) |
---|
16266 | version_type=windows |
---|
16267 | shrext_cmds=".dll" |
---|
16268 | need_version=no |
---|
16269 | need_lib_prefix=no |
---|
16270 | |
---|
16271 | case $GCC,$host_os in |
---|
16272 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
16273 | library_names_spec='$libname.dll.a' |
---|
16274 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
16275 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
16276 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
16277 | dldir=$destdir/`dirname \$dlpath`~ |
---|
16278 | test -d \$dldir || mkdir -p \$dldir~ |
---|
16279 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
16280 | chmod a+x \$dldir/$dlname' |
---|
16281 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
16282 | dlpath=$dir/\$dldll~ |
---|
16283 | $rm \$dlpath' |
---|
16284 | shlibpath_overrides_runpath=yes |
---|
16285 | |
---|
16286 | case $host_os in |
---|
16287 | cygwin*) |
---|
16288 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
16289 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
16290 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
16291 | ;; |
---|
16292 | mingw*) |
---|
16293 | # MinGW DLLs use traditional 'lib' prefix |
---|
16294 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
16295 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
16296 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
16297 | # It is most probably a Windows format PATH printed by |
---|
16298 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
16299 | # path with ; separators, and with drive letters. We can handle the |
---|
16300 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
16301 | # especially as we might pass files found there to a mingw objdump, |
---|
16302 | # which wouldn't understand a cygwinified path. Ahh. |
---|
16303 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
16304 | else |
---|
16305 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
16306 | fi |
---|
16307 | ;; |
---|
16308 | pw32*) |
---|
16309 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
16310 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
16311 | ;; |
---|
16312 | esac |
---|
16313 | ;; |
---|
16314 | |
---|
16315 | *) |
---|
16316 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
16317 | ;; |
---|
16318 | esac |
---|
16319 | dynamic_linker='Win32 ld.exe' |
---|
16320 | # FIXME: first we should search . and the directory the executable is in |
---|
16321 | shlibpath_var=PATH |
---|
16322 | ;; |
---|
16323 | |
---|
16324 | darwin* | rhapsody*) |
---|
16325 | dynamic_linker="$host_os dyld" |
---|
16326 | version_type=darwin |
---|
16327 | need_lib_prefix=no |
---|
16328 | need_version=no |
---|
16329 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
16330 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
16331 | shlibpath_overrides_runpath=yes |
---|
16332 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
16333 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
16334 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
16335 | if test "$GCC" = yes; then |
---|
16336 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
16337 | else |
---|
16338 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
16339 | fi |
---|
16340 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
16341 | ;; |
---|
16342 | |
---|
16343 | dgux*) |
---|
16344 | version_type=linux |
---|
16345 | need_lib_prefix=no |
---|
16346 | need_version=no |
---|
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 | shlibpath_var=LD_LIBRARY_PATH |
---|
16350 | ;; |
---|
16351 | |
---|
16352 | freebsd1*) |
---|
16353 | dynamic_linker=no |
---|
16354 | ;; |
---|
16355 | |
---|
16356 | kfreebsd*-gnu) |
---|
16357 | version_type=linux |
---|
16358 | need_lib_prefix=no |
---|
16359 | need_version=no |
---|
16360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
16361 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16362 | shlibpath_var=LD_LIBRARY_PATH |
---|
16363 | shlibpath_overrides_runpath=no |
---|
16364 | hardcode_into_libs=yes |
---|
16365 | dynamic_linker='GNU ld.so' |
---|
16366 | ;; |
---|
16367 | |
---|
16368 | freebsd* | dragonfly*) |
---|
16369 | # DragonFly does not have aout. When/if they implement a new |
---|
16370 | # versioning mechanism, adjust this. |
---|
16371 | if test -x /usr/bin/objformat; then |
---|
16372 | objformat=`/usr/bin/objformat` |
---|
16373 | else |
---|
16374 | case $host_os in |
---|
16375 | freebsd[123]*) objformat=aout ;; |
---|
16376 | *) objformat=elf ;; |
---|
16377 | esac |
---|
16378 | fi |
---|
16379 | version_type=freebsd-$objformat |
---|
16380 | case $version_type in |
---|
16381 | freebsd-elf*) |
---|
16382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
16383 | need_version=no |
---|
16384 | need_lib_prefix=no |
---|
16385 | ;; |
---|
16386 | freebsd-*) |
---|
16387 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
16388 | need_version=yes |
---|
16389 | ;; |
---|
16390 | esac |
---|
16391 | shlibpath_var=LD_LIBRARY_PATH |
---|
16392 | case $host_os in |
---|
16393 | freebsd2*) |
---|
16394 | shlibpath_overrides_runpath=yes |
---|
16395 | ;; |
---|
16396 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
16397 | shlibpath_overrides_runpath=yes |
---|
16398 | hardcode_into_libs=yes |
---|
16399 | ;; |
---|
16400 | *) # from 3.2 on |
---|
16401 | shlibpath_overrides_runpath=no |
---|
16402 | hardcode_into_libs=yes |
---|
16403 | ;; |
---|
16404 | esac |
---|
16405 | ;; |
---|
16406 | |
---|
16407 | gnu*) |
---|
16408 | version_type=linux |
---|
16409 | need_lib_prefix=no |
---|
16410 | need_version=no |
---|
16411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
16412 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16413 | shlibpath_var=LD_LIBRARY_PATH |
---|
16414 | hardcode_into_libs=yes |
---|
16415 | ;; |
---|
16416 | |
---|
16417 | hpux9* | hpux10* | hpux11*) |
---|
16418 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
16419 | # link against other versions. |
---|
16420 | version_type=sunos |
---|
16421 | need_lib_prefix=no |
---|
16422 | need_version=no |
---|
16423 | case $host_cpu in |
---|
16424 | ia64*) |
---|
16425 | shrext_cmds='.so' |
---|
16426 | hardcode_into_libs=yes |
---|
16427 | dynamic_linker="$host_os dld.so" |
---|
16428 | shlibpath_var=LD_LIBRARY_PATH |
---|
16429 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
16430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16431 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16432 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
16433 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
16434 | else |
---|
16435 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
16436 | fi |
---|
16437 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
16438 | ;; |
---|
16439 | hppa*64*) |
---|
16440 | shrext_cmds='.sl' |
---|
16441 | hardcode_into_libs=yes |
---|
16442 | dynamic_linker="$host_os dld.sl" |
---|
16443 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
16444 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
16445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16446 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16447 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
16448 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
16449 | ;; |
---|
16450 | *) |
---|
16451 | shrext_cmds='.sl' |
---|
16452 | dynamic_linker="$host_os dld.sl" |
---|
16453 | shlibpath_var=SHLIB_PATH |
---|
16454 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
16455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16456 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16457 | ;; |
---|
16458 | esac |
---|
16459 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
16460 | postinstall_cmds='chmod 555 $lib' |
---|
16461 | ;; |
---|
16462 | |
---|
16463 | irix5* | irix6* | nonstopux*) |
---|
16464 | case $host_os in |
---|
16465 | nonstopux*) version_type=nonstopux ;; |
---|
16466 | *) |
---|
16467 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
16468 | version_type=linux |
---|
16469 | else |
---|
16470 | version_type=irix |
---|
16471 | fi ;; |
---|
16472 | esac |
---|
16473 | need_lib_prefix=no |
---|
16474 | need_version=no |
---|
16475 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
16477 | case $host_os in |
---|
16478 | irix5* | nonstopux*) |
---|
16479 | libsuff= shlibsuff= |
---|
16480 | ;; |
---|
16481 | *) |
---|
16482 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
16483 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
16484 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
16485 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
16486 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
16487 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
16488 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
16489 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
16490 | esac |
---|
16491 | ;; |
---|
16492 | esac |
---|
16493 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
16494 | shlibpath_overrides_runpath=no |
---|
16495 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
16496 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
16497 | hardcode_into_libs=yes |
---|
16498 | ;; |
---|
16499 | |
---|
16500 | # No shared lib support for Linux oldld, aout, or coff. |
---|
16501 | linux*oldld* | linux*aout* | linux*coff*) |
---|
16502 | dynamic_linker=no |
---|
16503 | ;; |
---|
16504 | |
---|
16505 | # This must be Linux ELF. |
---|
16506 | linux*) |
---|
16507 | version_type=linux |
---|
16508 | need_lib_prefix=no |
---|
16509 | need_version=no |
---|
16510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16511 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16512 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
16513 | shlibpath_var=LD_LIBRARY_PATH |
---|
16514 | shlibpath_overrides_runpath=no |
---|
16515 | # This implies no fast_install, which is unacceptable. |
---|
16516 | # Some rework will be needed to allow for fast_install |
---|
16517 | # before this can be enabled. |
---|
16518 | hardcode_into_libs=yes |
---|
16519 | |
---|
16520 | # Append ld.so.conf contents to the search path |
---|
16521 | if test -f /etc/ld.so.conf; then |
---|
16522 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
16523 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
16524 | fi |
---|
16525 | |
---|
16526 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
16527 | # powerpc, because MkLinux only supported shared libraries with the |
---|
16528 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
16529 | # most powerpc-linux boxes support dynamic linking these days and |
---|
16530 | # people can always --disable-shared, the test was removed, and we |
---|
16531 | # assume the GNU/Linux dynamic linker is in use. |
---|
16532 | dynamic_linker='GNU/Linux ld.so' |
---|
16533 | ;; |
---|
16534 | |
---|
16535 | knetbsd*-gnu) |
---|
16536 | version_type=linux |
---|
16537 | need_lib_prefix=no |
---|
16538 | need_version=no |
---|
16539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
16540 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16541 | shlibpath_var=LD_LIBRARY_PATH |
---|
16542 | shlibpath_overrides_runpath=no |
---|
16543 | hardcode_into_libs=yes |
---|
16544 | dynamic_linker='GNU ld.so' |
---|
16545 | ;; |
---|
16546 | |
---|
16547 | netbsd*) |
---|
16548 | version_type=sunos |
---|
16549 | need_lib_prefix=no |
---|
16550 | need_version=no |
---|
16551 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
16552 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
16553 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
16554 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
16555 | else |
---|
16556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
16557 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16558 | dynamic_linker='NetBSD ld.elf_so' |
---|
16559 | fi |
---|
16560 | shlibpath_var=LD_LIBRARY_PATH |
---|
16561 | shlibpath_overrides_runpath=yes |
---|
16562 | hardcode_into_libs=yes |
---|
16563 | ;; |
---|
16564 | |
---|
16565 | newsos6) |
---|
16566 | version_type=linux |
---|
16567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16568 | shlibpath_var=LD_LIBRARY_PATH |
---|
16569 | shlibpath_overrides_runpath=yes |
---|
16570 | ;; |
---|
16571 | |
---|
16572 | nto-qnx*) |
---|
16573 | version_type=linux |
---|
16574 | need_lib_prefix=no |
---|
16575 | need_version=no |
---|
16576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16577 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16578 | shlibpath_var=LD_LIBRARY_PATH |
---|
16579 | shlibpath_overrides_runpath=yes |
---|
16580 | ;; |
---|
16581 | |
---|
16582 | openbsd*) |
---|
16583 | version_type=sunos |
---|
16584 | need_lib_prefix=no |
---|
16585 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
16586 | case $host_os in |
---|
16587 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
16588 | *) need_version=no ;; |
---|
16589 | esac |
---|
16590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
16591 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
16592 | shlibpath_var=LD_LIBRARY_PATH |
---|
16593 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
16594 | case $host_os in |
---|
16595 | openbsd2.[89] | openbsd2.[89].*) |
---|
16596 | shlibpath_overrides_runpath=no |
---|
16597 | ;; |
---|
16598 | *) |
---|
16599 | shlibpath_overrides_runpath=yes |
---|
16600 | ;; |
---|
16601 | esac |
---|
16602 | else |
---|
16603 | shlibpath_overrides_runpath=yes |
---|
16604 | fi |
---|
16605 | ;; |
---|
16606 | |
---|
16607 | os2*) |
---|
16608 | libname_spec='$name' |
---|
16609 | shrext_cmds=".dll" |
---|
16610 | need_lib_prefix=no |
---|
16611 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
16612 | dynamic_linker='OS/2 ld.exe' |
---|
16613 | shlibpath_var=LIBPATH |
---|
16614 | ;; |
---|
16615 | |
---|
16616 | osf3* | osf4* | osf5*) |
---|
16617 | version_type=osf |
---|
16618 | need_lib_prefix=no |
---|
16619 | need_version=no |
---|
16620 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16621 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16622 | shlibpath_var=LD_LIBRARY_PATH |
---|
16623 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
16624 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
16625 | ;; |
---|
16626 | |
---|
16627 | sco3.2v5*) |
---|
16628 | version_type=osf |
---|
16629 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16631 | shlibpath_var=LD_LIBRARY_PATH |
---|
16632 | ;; |
---|
16633 | |
---|
16634 | solaris*) |
---|
16635 | version_type=linux |
---|
16636 | need_lib_prefix=no |
---|
16637 | need_version=no |
---|
16638 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16639 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16640 | shlibpath_var=LD_LIBRARY_PATH |
---|
16641 | shlibpath_overrides_runpath=yes |
---|
16642 | hardcode_into_libs=yes |
---|
16643 | # ldd complains unless libraries are executable |
---|
16644 | postinstall_cmds='chmod +x $lib' |
---|
16645 | ;; |
---|
16646 | |
---|
16647 | sunos4*) |
---|
16648 | version_type=sunos |
---|
16649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
16650 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
16651 | shlibpath_var=LD_LIBRARY_PATH |
---|
16652 | shlibpath_overrides_runpath=yes |
---|
16653 | if test "$with_gnu_ld" = yes; then |
---|
16654 | need_lib_prefix=no |
---|
16655 | fi |
---|
16656 | need_version=yes |
---|
16657 | ;; |
---|
16658 | |
---|
16659 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
16660 | version_type=linux |
---|
16661 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16662 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16663 | shlibpath_var=LD_LIBRARY_PATH |
---|
16664 | case $host_vendor in |
---|
16665 | sni) |
---|
16666 | shlibpath_overrides_runpath=no |
---|
16667 | need_lib_prefix=no |
---|
16668 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
16669 | runpath_var=LD_RUN_PATH |
---|
16670 | ;; |
---|
16671 | siemens) |
---|
16672 | need_lib_prefix=no |
---|
16673 | ;; |
---|
16674 | motorola) |
---|
16675 | need_lib_prefix=no |
---|
16676 | need_version=no |
---|
16677 | shlibpath_overrides_runpath=no |
---|
16678 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
16679 | ;; |
---|
16680 | esac |
---|
16681 | ;; |
---|
16682 | |
---|
16683 | sysv4*MP*) |
---|
16684 | if test -d /usr/nec ;then |
---|
16685 | version_type=linux |
---|
16686 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
16687 | soname_spec='$libname${shared_ext}.$major' |
---|
16688 | shlibpath_var=LD_LIBRARY_PATH |
---|
16689 | fi |
---|
16690 | ;; |
---|
16691 | |
---|
16692 | uts4*) |
---|
16693 | version_type=linux |
---|
16694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
16695 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
16696 | shlibpath_var=LD_LIBRARY_PATH |
---|
16697 | ;; |
---|
16698 | |
---|
16699 | *) |
---|
16700 | dynamic_linker=no |
---|
16701 | ;; |
---|
16702 | esac |
---|
16703 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
16704 | echo "${ECHO_T}$dynamic_linker" >&6; } |
---|
16705 | test "$dynamic_linker" = no && can_build_shared=no |
---|
16706 | |
---|
16707 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
16708 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
---|
16709 | hardcode_action_F77= |
---|
16710 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
---|
16711 | test -n "$runpath_var_F77" || \ |
---|
16712 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
---|
16713 | |
---|
16714 | # We can hardcode non-existant directories. |
---|
16715 | if test "$hardcode_direct_F77" != no && |
---|
16716 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
16717 | # have to relink, otherwise we might link with an installed library |
---|
16718 | # when we should be linking with a yet-to-be-installed one |
---|
16719 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
---|
16720 | test "$hardcode_minus_L_F77" != no; then |
---|
16721 | # Linking always hardcodes the temporary library directory. |
---|
16722 | hardcode_action_F77=relink |
---|
16723 | else |
---|
16724 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
16725 | hardcode_action_F77=immediate |
---|
16726 | fi |
---|
16727 | else |
---|
16728 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
16729 | # directories. |
---|
16730 | hardcode_action_F77=unsupported |
---|
16731 | fi |
---|
16732 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
---|
16733 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
---|
16734 | |
---|
16735 | if test "$hardcode_action_F77" = relink; then |
---|
16736 | # Fast installation is not supported |
---|
16737 | enable_fast_install=no |
---|
16738 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
16739 | test "$enable_shared" = no; then |
---|
16740 | # Fast installation is not necessary |
---|
16741 | enable_fast_install=needless |
---|
16742 | fi |
---|
16743 | |
---|
16744 | striplib= |
---|
16745 | old_striplib= |
---|
16746 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
16747 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
---|
16748 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
16749 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
16750 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
16751 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
16752 | echo "${ECHO_T}yes" >&6; } |
---|
16753 | else |
---|
16754 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
16755 | case $host_os in |
---|
16756 | darwin*) |
---|
16757 | if test -n "$STRIP" ; then |
---|
16758 | striplib="$STRIP -x" |
---|
16759 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
16760 | echo "${ECHO_T}yes" >&6; } |
---|
16761 | else |
---|
16762 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
16763 | echo "${ECHO_T}no" >&6; } |
---|
16764 | fi |
---|
16765 | ;; |
---|
16766 | *) |
---|
16767 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
16768 | echo "${ECHO_T}no" >&6; } |
---|
16769 | ;; |
---|
16770 | esac |
---|
16771 | fi |
---|
16772 | |
---|
16773 | |
---|
16774 | |
---|
16775 | # The else clause should only fire when bootstrapping the |
---|
16776 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
16777 | # with your package, and you will get complaints that there are |
---|
16778 | # no rules to generate ltmain.sh. |
---|
16779 | if test -f "$ltmain"; then |
---|
16780 | # See if we are running on zsh, and set the options which allow our commands through |
---|
16781 | # without removal of \ escapes. |
---|
16782 | if test -n "${ZSH_VERSION+set}" ; then |
---|
16783 | setopt NO_GLOB_SUBST |
---|
16784 | fi |
---|
16785 | # Now quote all the things that may contain metacharacters while being |
---|
16786 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
16787 | # variables and quote the copies for generation of the libtool script. |
---|
16788 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
16789 | SED SHELL STRIP \ |
---|
16790 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
16791 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
16792 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
16793 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
16794 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
16795 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
16796 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
16797 | compiler_F77 \ |
---|
16798 | CC_F77 \ |
---|
16799 | LD_F77 \ |
---|
16800 | lt_prog_compiler_wl_F77 \ |
---|
16801 | lt_prog_compiler_pic_F77 \ |
---|
16802 | lt_prog_compiler_static_F77 \ |
---|
16803 | lt_prog_compiler_no_builtin_flag_F77 \ |
---|
16804 | export_dynamic_flag_spec_F77 \ |
---|
16805 | thread_safe_flag_spec_F77 \ |
---|
16806 | whole_archive_flag_spec_F77 \ |
---|
16807 | enable_shared_with_static_runtimes_F77 \ |
---|
16808 | old_archive_cmds_F77 \ |
---|
16809 | old_archive_from_new_cmds_F77 \ |
---|
16810 | predep_objects_F77 \ |
---|
16811 | postdep_objects_F77 \ |
---|
16812 | predeps_F77 \ |
---|
16813 | postdeps_F77 \ |
---|
16814 | compiler_lib_search_path_F77 \ |
---|
16815 | archive_cmds_F77 \ |
---|
16816 | archive_expsym_cmds_F77 \ |
---|
16817 | postinstall_cmds_F77 \ |
---|
16818 | postuninstall_cmds_F77 \ |
---|
16819 | old_archive_from_expsyms_cmds_F77 \ |
---|
16820 | allow_undefined_flag_F77 \ |
---|
16821 | no_undefined_flag_F77 \ |
---|
16822 | export_symbols_cmds_F77 \ |
---|
16823 | hardcode_libdir_flag_spec_F77 \ |
---|
16824 | hardcode_libdir_flag_spec_ld_F77 \ |
---|
16825 | hardcode_libdir_separator_F77 \ |
---|
16826 | hardcode_automatic_F77 \ |
---|
16827 | module_cmds_F77 \ |
---|
16828 | module_expsym_cmds_F77 \ |
---|
16829 | lt_cv_prog_compiler_c_o_F77 \ |
---|
16830 | exclude_expsyms_F77 \ |
---|
16831 | include_expsyms_F77; do |
---|
16832 | |
---|
16833 | case $var in |
---|
16834 | old_archive_cmds_F77 | \ |
---|
16835 | old_archive_from_new_cmds_F77 | \ |
---|
16836 | archive_cmds_F77 | \ |
---|
16837 | archive_expsym_cmds_F77 | \ |
---|
16838 | module_cmds_F77 | \ |
---|
16839 | module_expsym_cmds_F77 | \ |
---|
16840 | old_archive_from_expsyms_cmds_F77 | \ |
---|
16841 | export_symbols_cmds_F77 | \ |
---|
16842 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
16843 | postinstall_cmds | postuninstall_cmds | \ |
---|
16844 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
16845 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
16846 | # Double-quote double-evaled strings. |
---|
16847 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
16848 | ;; |
---|
16849 | *) |
---|
16850 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
16851 | ;; |
---|
16852 | esac |
---|
16853 | done |
---|
16854 | |
---|
16855 | case $lt_echo in |
---|
16856 | *'\$0 --fallback-echo"') |
---|
16857 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
16858 | ;; |
---|
16859 | esac |
---|
16860 | |
---|
16861 | cfgfile="$ofile" |
---|
16862 | |
---|
16863 | cat <<__EOF__ >> "$cfgfile" |
---|
16864 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
16865 | |
---|
16866 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
16867 | |
---|
16868 | # Shell to use when invoking shell scripts. |
---|
16869 | SHELL=$lt_SHELL |
---|
16870 | |
---|
16871 | # Whether or not to build shared libraries. |
---|
16872 | build_libtool_libs=$enable_shared |
---|
16873 | |
---|
16874 | # Whether or not to build static libraries. |
---|
16875 | build_old_libs=$enable_static |
---|
16876 | |
---|
16877 | # Whether or not to add -lc for building shared libraries. |
---|
16878 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
---|
16879 | |
---|
16880 | # Whether or not to disallow shared libs when runtime libs are static |
---|
16881 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
---|
16882 | |
---|
16883 | # Whether or not to optimize for fast installation. |
---|
16884 | fast_install=$enable_fast_install |
---|
16885 | |
---|
16886 | # The host system. |
---|
16887 | host_alias=$host_alias |
---|
16888 | host=$host |
---|
16889 | host_os=$host_os |
---|
16890 | |
---|
16891 | # The build system. |
---|
16892 | build_alias=$build_alias |
---|
16893 | build=$build |
---|
16894 | build_os=$build_os |
---|
16895 | |
---|
16896 | # An echo program that does not interpret backslashes. |
---|
16897 | echo=$lt_echo |
---|
16898 | |
---|
16899 | # The archiver. |
---|
16900 | AR=$lt_AR |
---|
16901 | AR_FLAGS=$lt_AR_FLAGS |
---|
16902 | |
---|
16903 | # A C compiler. |
---|
16904 | LTCC=$lt_LTCC |
---|
16905 | |
---|
16906 | # A language-specific compiler. |
---|
16907 | CC=$lt_compiler_F77 |
---|
16908 | |
---|
16909 | # Is the compiler the GNU C compiler? |
---|
16910 | with_gcc=$GCC_F77 |
---|
16911 | |
---|
16912 | # An ERE matcher. |
---|
16913 | EGREP=$lt_EGREP |
---|
16914 | |
---|
16915 | # The linker used to build libraries. |
---|
16916 | LD=$lt_LD_F77 |
---|
16917 | |
---|
16918 | # Whether we need hard or soft links. |
---|
16919 | LN_S=$lt_LN_S |
---|
16920 | |
---|
16921 | # A BSD-compatible nm program. |
---|
16922 | NM=$lt_NM |
---|
16923 | |
---|
16924 | # A symbol stripping program |
---|
16925 | STRIP=$lt_STRIP |
---|
16926 | |
---|
16927 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
16928 | MAGIC_CMD=$MAGIC_CMD |
---|
16929 | |
---|
16930 | # Used on cygwin: DLL creation program. |
---|
16931 | DLLTOOL="$DLLTOOL" |
---|
16932 | |
---|
16933 | # Used on cygwin: object dumper. |
---|
16934 | OBJDUMP="$OBJDUMP" |
---|
16935 | |
---|
16936 | # Used on cygwin: assembler. |
---|
16937 | AS="$AS" |
---|
16938 | |
---|
16939 | # The name of the directory that contains temporary libtool files. |
---|
16940 | objdir=$objdir |
---|
16941 | |
---|
16942 | # How to create reloadable object files. |
---|
16943 | reload_flag=$lt_reload_flag |
---|
16944 | reload_cmds=$lt_reload_cmds |
---|
16945 | |
---|
16946 | # How to pass a linker flag through the compiler. |
---|
16947 | wl=$lt_lt_prog_compiler_wl_F77 |
---|
16948 | |
---|
16949 | # Object file suffix (normally "o"). |
---|
16950 | objext="$ac_objext" |
---|
16951 | |
---|
16952 | # Old archive suffix (normally "a"). |
---|
16953 | libext="$libext" |
---|
16954 | |
---|
16955 | # Shared library suffix (normally ".so"). |
---|
16956 | shrext_cmds='$shrext_cmds' |
---|
16957 | |
---|
16958 | # Executable file suffix (normally ""). |
---|
16959 | exeext="$exeext" |
---|
16960 | |
---|
16961 | # Additional compiler flags for building library objects. |
---|
16962 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
---|
16963 | pic_mode=$pic_mode |
---|
16964 | |
---|
16965 | # What is the maximum length of a command? |
---|
16966 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
16967 | |
---|
16968 | # Does compiler simultaneously support -c and -o options? |
---|
16969 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
---|
16970 | |
---|
16971 | # Must we lock files when doing compilation? |
---|
16972 | need_locks=$lt_need_locks |
---|
16973 | |
---|
16974 | # Do we need the lib prefix for modules? |
---|
16975 | need_lib_prefix=$need_lib_prefix |
---|
16976 | |
---|
16977 | # Do we need a version for libraries? |
---|
16978 | need_version=$need_version |
---|
16979 | |
---|
16980 | # Whether dlopen is supported. |
---|
16981 | dlopen_support=$enable_dlopen |
---|
16982 | |
---|
16983 | # Whether dlopen of programs is supported. |
---|
16984 | dlopen_self=$enable_dlopen_self |
---|
16985 | |
---|
16986 | # Whether dlopen of statically linked programs is supported. |
---|
16987 | dlopen_self_static=$enable_dlopen_self_static |
---|
16988 | |
---|
16989 | # Compiler flag to prevent dynamic linking. |
---|
16990 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
---|
16991 | |
---|
16992 | # Compiler flag to turn off builtin functions. |
---|
16993 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
---|
16994 | |
---|
16995 | # Compiler flag to allow reflexive dlopens. |
---|
16996 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
---|
16997 | |
---|
16998 | # Compiler flag to generate shared objects directly from archives. |
---|
16999 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
---|
17000 | |
---|
17001 | # Compiler flag to generate thread-safe objects. |
---|
17002 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
---|
17003 | |
---|
17004 | # Library versioning type. |
---|
17005 | version_type=$version_type |
---|
17006 | |
---|
17007 | # Format of library name prefix. |
---|
17008 | libname_spec=$lt_libname_spec |
---|
17009 | |
---|
17010 | # List of archive names. First name is the real one, the rest are links. |
---|
17011 | # The last name is the one that the linker finds with -lNAME. |
---|
17012 | library_names_spec=$lt_library_names_spec |
---|
17013 | |
---|
17014 | # The coded name of the library, if different from the real name. |
---|
17015 | soname_spec=$lt_soname_spec |
---|
17016 | |
---|
17017 | # Commands used to build and install an old-style archive. |
---|
17018 | RANLIB=$lt_RANLIB |
---|
17019 | old_archive_cmds=$lt_old_archive_cmds_F77 |
---|
17020 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
17021 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
17022 | |
---|
17023 | # Create an old-style archive from a shared archive. |
---|
17024 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
---|
17025 | |
---|
17026 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
17027 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
---|
17028 | |
---|
17029 | # Commands used to build and install a shared archive. |
---|
17030 | archive_cmds=$lt_archive_cmds_F77 |
---|
17031 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
---|
17032 | postinstall_cmds=$lt_postinstall_cmds |
---|
17033 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
17034 | |
---|
17035 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
17036 | module_cmds=$lt_module_cmds_F77 |
---|
17037 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
---|
17038 | |
---|
17039 | # Commands to strip libraries. |
---|
17040 | old_striplib=$lt_old_striplib |
---|
17041 | striplib=$lt_striplib |
---|
17042 | |
---|
17043 | # Dependencies to place before the objects being linked to create a |
---|
17044 | # shared library. |
---|
17045 | predep_objects=$lt_predep_objects_F77 |
---|
17046 | |
---|
17047 | # Dependencies to place after the objects being linked to create a |
---|
17048 | # shared library. |
---|
17049 | postdep_objects=$lt_postdep_objects_F77 |
---|
17050 | |
---|
17051 | # Dependencies to place before the objects being linked to create a |
---|
17052 | # shared library. |
---|
17053 | predeps=$lt_predeps_F77 |
---|
17054 | |
---|
17055 | # Dependencies to place after the objects being linked to create a |
---|
17056 | # shared library. |
---|
17057 | postdeps=$lt_postdeps_F77 |
---|
17058 | |
---|
17059 | # The library search path used internally by the compiler when linking |
---|
17060 | # a shared library. |
---|
17061 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
---|
17062 | |
---|
17063 | # Method to check whether dependent libraries are shared objects. |
---|
17064 | deplibs_check_method=$lt_deplibs_check_method |
---|
17065 | |
---|
17066 | # Command to use when deplibs_check_method == file_magic. |
---|
17067 | file_magic_cmd=$lt_file_magic_cmd |
---|
17068 | |
---|
17069 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
17070 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
---|
17071 | |
---|
17072 | # Flag that forces no undefined symbols. |
---|
17073 | no_undefined_flag=$lt_no_undefined_flag_F77 |
---|
17074 | |
---|
17075 | # Commands used to finish a libtool library installation in a directory. |
---|
17076 | finish_cmds=$lt_finish_cmds |
---|
17077 | |
---|
17078 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
17079 | finish_eval=$lt_finish_eval |
---|
17080 | |
---|
17081 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
17082 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
17083 | |
---|
17084 | # Transform the output of nm in a proper C declaration |
---|
17085 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
17086 | |
---|
17087 | # Transform the output of nm in a C name address pair |
---|
17088 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
17089 | |
---|
17090 | # This is the shared library runtime path variable. |
---|
17091 | runpath_var=$runpath_var |
---|
17092 | |
---|
17093 | # This is the shared library path variable. |
---|
17094 | shlibpath_var=$shlibpath_var |
---|
17095 | |
---|
17096 | # Is shlibpath searched before the hard-coded library search path? |
---|
17097 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
17098 | |
---|
17099 | # How to hardcode a shared library path into an executable. |
---|
17100 | hardcode_action=$hardcode_action_F77 |
---|
17101 | |
---|
17102 | # Whether we should hardcode library paths into libraries. |
---|
17103 | hardcode_into_libs=$hardcode_into_libs |
---|
17104 | |
---|
17105 | # Flag to hardcode \$libdir into a binary during linking. |
---|
17106 | # This must work even if \$libdir does not exist. |
---|
17107 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
---|
17108 | |
---|
17109 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
17110 | # a binary during linking. This must work even if \$libdir does |
---|
17111 | # not exist. |
---|
17112 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
---|
17113 | |
---|
17114 | # Whether we need a single -rpath flag with a separated argument. |
---|
17115 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
---|
17116 | |
---|
17117 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
17118 | # resulting binary. |
---|
17119 | hardcode_direct=$hardcode_direct_F77 |
---|
17120 | |
---|
17121 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
17122 | # resulting binary. |
---|
17123 | hardcode_minus_L=$hardcode_minus_L_F77 |
---|
17124 | |
---|
17125 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
17126 | # the resulting binary. |
---|
17127 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
---|
17128 | |
---|
17129 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
17130 | # and all subsequent libraries and executables linked against it. |
---|
17131 | hardcode_automatic=$hardcode_automatic_F77 |
---|
17132 | |
---|
17133 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
17134 | # restored at relink time. |
---|
17135 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
17136 | |
---|
17137 | # Whether libtool must link a program against all its dependency libraries. |
---|
17138 | link_all_deplibs=$link_all_deplibs_F77 |
---|
17139 | |
---|
17140 | # Compile-time system search path for libraries |
---|
17141 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
17142 | |
---|
17143 | # Run-time system search path for libraries |
---|
17144 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
17145 | |
---|
17146 | # Fix the shell variable \$srcfile for the compiler. |
---|
17147 | fix_srcfile_path="$fix_srcfile_path_F77" |
---|
17148 | |
---|
17149 | # Set to yes if exported symbols are required. |
---|
17150 | always_export_symbols=$always_export_symbols_F77 |
---|
17151 | |
---|
17152 | # The commands to list exported symbols. |
---|
17153 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
---|
17154 | |
---|
17155 | # The commands to extract the exported symbol list from a shared archive. |
---|
17156 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
17157 | |
---|
17158 | # Symbols that should not be listed in the preloaded symbols. |
---|
17159 | exclude_expsyms=$lt_exclude_expsyms_F77 |
---|
17160 | |
---|
17161 | # Symbols that must always be exported. |
---|
17162 | include_expsyms=$lt_include_expsyms_F77 |
---|
17163 | |
---|
17164 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
17165 | |
---|
17166 | __EOF__ |
---|
17167 | |
---|
17168 | |
---|
17169 | else |
---|
17170 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
17171 | # `config.status --recheck' to rerun these tests and create the |
---|
17172 | # libtool script then. |
---|
17173 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
17174 | if test -f "$ltmain_in"; then |
---|
17175 | test -f Makefile && make "$ltmain" |
---|
17176 | fi |
---|
17177 | fi |
---|
17178 | |
---|
17179 | |
---|
17180 | ac_ext=c |
---|
17181 | ac_cpp='$CPP $CPPFLAGS' |
---|
17182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
17183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
17184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
17185 | |
---|
17186 | CC="$lt_save_CC" |
---|
17187 | |
---|
17188 | else |
---|
17189 | tagname="" |
---|
17190 | fi |
---|
17191 | ;; |
---|
17192 | |
---|
17193 | GCJ) |
---|
17194 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
---|
17195 | |
---|
17196 | |
---|
17197 | # Source file extension for Java test sources. |
---|
17198 | ac_ext=java |
---|
17199 | |
---|
17200 | # Object file extension for compiled Java test sources. |
---|
17201 | objext=o |
---|
17202 | objext_GCJ=$objext |
---|
17203 | |
---|
17204 | # Code to be used in simple compile tests |
---|
17205 | lt_simple_compile_test_code="class foo {}\n" |
---|
17206 | |
---|
17207 | # Code to be used in simple link tests |
---|
17208 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
---|
17209 | |
---|
17210 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
17211 | |
---|
17212 | # If no C compiler was specified, use CC. |
---|
17213 | LTCC=${LTCC-"$CC"} |
---|
17214 | |
---|
17215 | # Allow CC to be a program name with arguments. |
---|
17216 | compiler=$CC |
---|
17217 | |
---|
17218 | |
---|
17219 | # save warnings/boilerplate of simple test code |
---|
17220 | ac_outfile=conftest.$ac_objext |
---|
17221 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
17222 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
17223 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
17224 | $rm conftest* |
---|
17225 | |
---|
17226 | ac_outfile=conftest.$ac_objext |
---|
17227 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
17228 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
17229 | _lt_linker_boilerplate=`cat conftest.err` |
---|
17230 | $rm conftest* |
---|
17231 | |
---|
17232 | |
---|
17233 | # Allow CC to be a program name with arguments. |
---|
17234 | lt_save_CC="$CC" |
---|
17235 | CC=${GCJ-"gcj"} |
---|
17236 | compiler=$CC |
---|
17237 | compiler_GCJ=$CC |
---|
17238 | for cc_temp in $compiler""; do |
---|
17239 | case $cc_temp in |
---|
17240 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
17241 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
17242 | \-*) ;; |
---|
17243 | *) break;; |
---|
17244 | esac |
---|
17245 | done |
---|
17246 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
17247 | |
---|
17248 | |
---|
17249 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
---|
17250 | archive_cmds_need_lc_GCJ=no |
---|
17251 | |
---|
17252 | old_archive_cmds_GCJ=$old_archive_cmds |
---|
17253 | |
---|
17254 | |
---|
17255 | lt_prog_compiler_no_builtin_flag_GCJ= |
---|
17256 | |
---|
17257 | if test "$GCC" = yes; then |
---|
17258 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
---|
17259 | |
---|
17260 | |
---|
17261 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
17262 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
---|
17263 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
---|
17264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17265 | else |
---|
17266 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
17267 | ac_outfile=conftest.$ac_objext |
---|
17268 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
17269 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
17270 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
17271 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
17272 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
17273 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
17274 | # The option is referenced via a variable to avoid confusing sed. |
---|
17275 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
17276 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
17277 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
17278 | -e 's:$: $lt_compiler_flag:'` |
---|
17279 | (eval echo "\"\$as_me:17279: $lt_compile\"" >&5) |
---|
17280 | (eval "$lt_compile" 2>conftest.err) |
---|
17281 | ac_status=$? |
---|
17282 | cat conftest.err >&5 |
---|
17283 | echo "$as_me:17283: \$? = $ac_status" >&5 |
---|
17284 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
17285 | # The compiler can only warn and ignore the option if not recognized |
---|
17286 | # So say no if there are warnings other than the usual output. |
---|
17287 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
---|
17288 | $SED '/^$/d' conftest.err >conftest.er2 |
---|
17289 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
---|
17290 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
17291 | fi |
---|
17292 | fi |
---|
17293 | $rm conftest* |
---|
17294 | |
---|
17295 | fi |
---|
17296 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
17297 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
---|
17298 | |
---|
17299 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
17300 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
---|
17301 | else |
---|
17302 | : |
---|
17303 | fi |
---|
17304 | |
---|
17305 | fi |
---|
17306 | |
---|
17307 | lt_prog_compiler_wl_GCJ= |
---|
17308 | lt_prog_compiler_pic_GCJ= |
---|
17309 | lt_prog_compiler_static_GCJ= |
---|
17310 | |
---|
17311 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
17312 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
---|
17313 | |
---|
17314 | if test "$GCC" = yes; then |
---|
17315 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17316 | lt_prog_compiler_static_GCJ='-static' |
---|
17317 | |
---|
17318 | case $host_os in |
---|
17319 | aix*) |
---|
17320 | # All AIX code is PIC. |
---|
17321 | if test "$host_cpu" = ia64; then |
---|
17322 | # AIX 5 now supports IA64 processor |
---|
17323 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17324 | fi |
---|
17325 | ;; |
---|
17326 | |
---|
17327 | amigaos*) |
---|
17328 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
17329 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
17330 | # like `-m68040'. |
---|
17331 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
---|
17332 | ;; |
---|
17333 | |
---|
17334 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
17335 | # PIC is the default for these OSes. |
---|
17336 | ;; |
---|
17337 | |
---|
17338 | mingw* | pw32* | os2*) |
---|
17339 | # This hack is so that the source file can tell whether it is being |
---|
17340 | # built for inclusion in a dll (and should export symbols for example). |
---|
17341 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
---|
17342 | ;; |
---|
17343 | |
---|
17344 | darwin* | rhapsody*) |
---|
17345 | # PIC is the default on this platform |
---|
17346 | # Common symbols not allowed in MH_DYLIB files |
---|
17347 | lt_prog_compiler_pic_GCJ='-fno-common' |
---|
17348 | ;; |
---|
17349 | |
---|
17350 | msdosdjgpp*) |
---|
17351 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
17352 | # on systems that don't support them. |
---|
17353 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
17354 | enable_shared=no |
---|
17355 | ;; |
---|
17356 | |
---|
17357 | sysv4*MP*) |
---|
17358 | if test -d /usr/nec; then |
---|
17359 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
---|
17360 | fi |
---|
17361 | ;; |
---|
17362 | |
---|
17363 | hpux*) |
---|
17364 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
17365 | # not for PA HP-UX. |
---|
17366 | case $host_cpu in |
---|
17367 | hppa*64*|ia64*) |
---|
17368 | # +Z the default |
---|
17369 | ;; |
---|
17370 | *) |
---|
17371 | lt_prog_compiler_pic_GCJ='-fPIC' |
---|
17372 | ;; |
---|
17373 | esac |
---|
17374 | ;; |
---|
17375 | |
---|
17376 | *) |
---|
17377 | lt_prog_compiler_pic_GCJ='-fPIC' |
---|
17378 | ;; |
---|
17379 | esac |
---|
17380 | else |
---|
17381 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
17382 | case $host_os in |
---|
17383 | aix*) |
---|
17384 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17385 | if test "$host_cpu" = ia64; then |
---|
17386 | # AIX 5 now supports IA64 processor |
---|
17387 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17388 | else |
---|
17389 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
---|
17390 | fi |
---|
17391 | ;; |
---|
17392 | darwin*) |
---|
17393 | # PIC is the default on this platform |
---|
17394 | # Common symbols not allowed in MH_DYLIB files |
---|
17395 | case $cc_basename in |
---|
17396 | xlc*) |
---|
17397 | lt_prog_compiler_pic_GCJ='-qnocommon' |
---|
17398 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17399 | ;; |
---|
17400 | esac |
---|
17401 | ;; |
---|
17402 | |
---|
17403 | mingw* | pw32* | os2*) |
---|
17404 | # This hack is so that the source file can tell whether it is being |
---|
17405 | # built for inclusion in a dll (and should export symbols for example). |
---|
17406 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
---|
17407 | ;; |
---|
17408 | |
---|
17409 | hpux9* | hpux10* | hpux11*) |
---|
17410 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17411 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
17412 | # not for PA HP-UX. |
---|
17413 | case $host_cpu in |
---|
17414 | hppa*64*|ia64*) |
---|
17415 | # +Z the default |
---|
17416 | ;; |
---|
17417 | *) |
---|
17418 | lt_prog_compiler_pic_GCJ='+Z' |
---|
17419 | ;; |
---|
17420 | esac |
---|
17421 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
17422 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
---|
17423 | ;; |
---|
17424 | |
---|
17425 | irix5* | irix6* | nonstopux*) |
---|
17426 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17427 | # PIC (with -KPIC) is the default. |
---|
17428 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
17429 | ;; |
---|
17430 | |
---|
17431 | newsos6) |
---|
17432 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
17433 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17434 | ;; |
---|
17435 | |
---|
17436 | linux*) |
---|
17437 | case $cc_basename in |
---|
17438 | icc* | ecc*) |
---|
17439 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17440 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
17441 | lt_prog_compiler_static_GCJ='-static' |
---|
17442 | ;; |
---|
17443 | pgcc* | pgf77* | pgf90* | pgf95*) |
---|
17444 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
17445 | # which looks to be a dead project) |
---|
17446 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17447 | lt_prog_compiler_pic_GCJ='-fpic' |
---|
17448 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17449 | ;; |
---|
17450 | ccc*) |
---|
17451 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17452 | # All Alpha code is PIC. |
---|
17453 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
17454 | ;; |
---|
17455 | esac |
---|
17456 | ;; |
---|
17457 | |
---|
17458 | osf3* | osf4* | osf5*) |
---|
17459 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17460 | # All OSF/1 code is PIC. |
---|
17461 | lt_prog_compiler_static_GCJ='-non_shared' |
---|
17462 | ;; |
---|
17463 | |
---|
17464 | sco3.2v5*) |
---|
17465 | lt_prog_compiler_pic_GCJ='-Kpic' |
---|
17466 | lt_prog_compiler_static_GCJ='-dn' |
---|
17467 | ;; |
---|
17468 | |
---|
17469 | solaris*) |
---|
17470 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
17471 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17472 | case $cc_basename in |
---|
17473 | f77* | f90* | f95*) |
---|
17474 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
---|
17475 | *) |
---|
17476 | lt_prog_compiler_wl_GCJ='-Wl,';; |
---|
17477 | esac |
---|
17478 | ;; |
---|
17479 | |
---|
17480 | sunos4*) |
---|
17481 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
---|
17482 | lt_prog_compiler_pic_GCJ='-PIC' |
---|
17483 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17484 | ;; |
---|
17485 | |
---|
17486 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
17487 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17488 | lt_prog_compiler_pic_GCJ='-KPIC' |
---|
17489 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17490 | ;; |
---|
17491 | |
---|
17492 | sysv4*MP*) |
---|
17493 | if test -d /usr/nec ;then |
---|
17494 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
---|
17495 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17496 | fi |
---|
17497 | ;; |
---|
17498 | |
---|
17499 | unicos*) |
---|
17500 | lt_prog_compiler_wl_GCJ='-Wl,' |
---|
17501 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
17502 | ;; |
---|
17503 | |
---|
17504 | uts4*) |
---|
17505 | lt_prog_compiler_pic_GCJ='-pic' |
---|
17506 | lt_prog_compiler_static_GCJ='-Bstatic' |
---|
17507 | ;; |
---|
17508 | |
---|
17509 | *) |
---|
17510 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
17511 | ;; |
---|
17512 | esac |
---|
17513 | fi |
---|
17514 | |
---|
17515 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
---|
17516 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
---|
17517 | |
---|
17518 | # |
---|
17519 | # Check to make sure the PIC flag actually works. |
---|
17520 | # |
---|
17521 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
---|
17522 | |
---|
17523 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
---|
17524 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
---|
17525 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
---|
17526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17527 | else |
---|
17528 | lt_prog_compiler_pic_works_GCJ=no |
---|
17529 | ac_outfile=conftest.$ac_objext |
---|
17530 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
17531 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
---|
17532 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
17533 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
17534 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
17535 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
17536 | # The option is referenced via a variable to avoid confusing sed. |
---|
17537 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
17538 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
17539 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
17540 | -e 's:$: $lt_compiler_flag:'` |
---|
17541 | (eval echo "\"\$as_me:17541: $lt_compile\"" >&5) |
---|
17542 | (eval "$lt_compile" 2>conftest.err) |
---|
17543 | ac_status=$? |
---|
17544 | cat conftest.err >&5 |
---|
17545 | echo "$as_me:17545: \$? = $ac_status" >&5 |
---|
17546 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
17547 | # The compiler can only warn and ignore the option if not recognized |
---|
17548 | # So say no if there are warnings other than the usual output. |
---|
17549 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
---|
17550 | $SED '/^$/d' conftest.err >conftest.er2 |
---|
17551 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
---|
17552 | lt_prog_compiler_pic_works_GCJ=yes |
---|
17553 | fi |
---|
17554 | fi |
---|
17555 | $rm conftest* |
---|
17556 | |
---|
17557 | fi |
---|
17558 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
---|
17559 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
---|
17560 | |
---|
17561 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
---|
17562 | case $lt_prog_compiler_pic_GCJ in |
---|
17563 | "" | " "*) ;; |
---|
17564 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
---|
17565 | esac |
---|
17566 | else |
---|
17567 | lt_prog_compiler_pic_GCJ= |
---|
17568 | lt_prog_compiler_can_build_shared_GCJ=no |
---|
17569 | fi |
---|
17570 | |
---|
17571 | fi |
---|
17572 | case $host_os in |
---|
17573 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
17574 | *djgpp*) |
---|
17575 | lt_prog_compiler_pic_GCJ= |
---|
17576 | ;; |
---|
17577 | *) |
---|
17578 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
---|
17579 | ;; |
---|
17580 | esac |
---|
17581 | |
---|
17582 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
17583 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
---|
17584 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
---|
17585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
17586 | else |
---|
17587 | lt_cv_prog_compiler_c_o_GCJ=no |
---|
17588 | $rm -r conftest 2>/dev/null |
---|
17589 | mkdir conftest |
---|
17590 | cd conftest |
---|
17591 | mkdir out |
---|
17592 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
17593 | |
---|
17594 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
17595 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
17596 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
17597 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
17598 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
17599 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
17600 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
17601 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
17602 | -e 's:$: $lt_compiler_flag:'` |
---|
17603 | (eval echo "\"\$as_me:17603: $lt_compile\"" >&5) |
---|
17604 | (eval "$lt_compile" 2>out/conftest.err) |
---|
17605 | ac_status=$? |
---|
17606 | cat out/conftest.err >&5 |
---|
17607 | echo "$as_me:17607: \$? = $ac_status" >&5 |
---|
17608 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
17609 | then |
---|
17610 | # The compiler can only warn and ignore the option if not recognized |
---|
17611 | # So say no if there are warnings |
---|
17612 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
---|
17613 | $SED '/^$/d' out/conftest.err >out/conftest.er2 |
---|
17614 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
17615 | lt_cv_prog_compiler_c_o_GCJ=yes |
---|
17616 | fi |
---|
17617 | fi |
---|
17618 | chmod u+w . 2>&5 |
---|
17619 | $rm conftest* |
---|
17620 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
17621 | # template instantiation |
---|
17622 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
17623 | $rm out/* && rmdir out |
---|
17624 | cd .. |
---|
17625 | rmdir conftest |
---|
17626 | $rm conftest* |
---|
17627 | |
---|
17628 | fi |
---|
17629 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
---|
17630 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
---|
17631 | |
---|
17632 | |
---|
17633 | hard_links="nottested" |
---|
17634 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
---|
17635 | # do not overwrite the value of need_locks provided by the user |
---|
17636 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
17637 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
---|
17638 | hard_links=yes |
---|
17639 | $rm conftest* |
---|
17640 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
17641 | touch conftest.a |
---|
17642 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
17643 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
17644 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
17645 | echo "${ECHO_T}$hard_links" >&6; } |
---|
17646 | if test "$hard_links" = no; then |
---|
17647 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
17648 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
17649 | need_locks=warn |
---|
17650 | fi |
---|
17651 | else |
---|
17652 | need_locks=no |
---|
17653 | fi |
---|
17654 | |
---|
17655 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
17656 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
17657 | |
---|
17658 | runpath_var= |
---|
17659 | allow_undefined_flag_GCJ= |
---|
17660 | enable_shared_with_static_runtimes_GCJ=no |
---|
17661 | archive_cmds_GCJ= |
---|
17662 | archive_expsym_cmds_GCJ= |
---|
17663 | old_archive_From_new_cmds_GCJ= |
---|
17664 | old_archive_from_expsyms_cmds_GCJ= |
---|
17665 | export_dynamic_flag_spec_GCJ= |
---|
17666 | whole_archive_flag_spec_GCJ= |
---|
17667 | thread_safe_flag_spec_GCJ= |
---|
17668 | hardcode_libdir_flag_spec_GCJ= |
---|
17669 | hardcode_libdir_flag_spec_ld_GCJ= |
---|
17670 | hardcode_libdir_separator_GCJ= |
---|
17671 | hardcode_direct_GCJ=no |
---|
17672 | hardcode_minus_L_GCJ=no |
---|
17673 | hardcode_shlibpath_var_GCJ=unsupported |
---|
17674 | link_all_deplibs_GCJ=unknown |
---|
17675 | hardcode_automatic_GCJ=no |
---|
17676 | module_cmds_GCJ= |
---|
17677 | module_expsym_cmds_GCJ= |
---|
17678 | always_export_symbols_GCJ=no |
---|
17679 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
17680 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
17681 | # included in the symbol list |
---|
17682 | include_expsyms_GCJ= |
---|
17683 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
17684 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
17685 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
17686 | # as well as any symbol that contains `d'. |
---|
17687 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
---|
17688 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
17689 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
17690 | # the symbol is explicitly referenced. Since portable code cannot |
---|
17691 | # rely on this symbol name, it's probably fine to never include it in |
---|
17692 | # preloaded symbol tables. |
---|
17693 | extract_expsyms_cmds= |
---|
17694 | # Just being paranoid about ensuring that cc_basename is set. |
---|
17695 | for cc_temp in $compiler""; do |
---|
17696 | case $cc_temp in |
---|
17697 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
17698 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
17699 | \-*) ;; |
---|
17700 | *) break;; |
---|
17701 | esac |
---|
17702 | done |
---|
17703 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
17704 | |
---|
17705 | case $host_os in |
---|
17706 | cygwin* | mingw* | pw32*) |
---|
17707 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
17708 | # When not using gcc, we currently assume that we are using |
---|
17709 | # Microsoft Visual C++. |
---|
17710 | if test "$GCC" != yes; then |
---|
17711 | with_gnu_ld=no |
---|
17712 | fi |
---|
17713 | ;; |
---|
17714 | openbsd*) |
---|
17715 | with_gnu_ld=no |
---|
17716 | ;; |
---|
17717 | esac |
---|
17718 | |
---|
17719 | ld_shlibs_GCJ=yes |
---|
17720 | if test "$with_gnu_ld" = yes; then |
---|
17721 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
17722 | wlarc='${wl}' |
---|
17723 | |
---|
17724 | # Set some defaults for GNU ld with shared library support. These |
---|
17725 | # are reset later if shared libraries are not supported. Putting them |
---|
17726 | # here allows them to be overridden if necessary. |
---|
17727 | runpath_var=LD_RUN_PATH |
---|
17728 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
---|
17729 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
---|
17730 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
17731 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
---|
17732 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
17733 | else |
---|
17734 | whole_archive_flag_spec_GCJ= |
---|
17735 | fi |
---|
17736 | supports_anon_versioning=no |
---|
17737 | case `$LD -v 2>/dev/null` in |
---|
17738 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
17739 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
17740 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
17741 | *\ 2.11.*) ;; # other 2.11 versions |
---|
17742 | *) supports_anon_versioning=yes ;; |
---|
17743 | esac |
---|
17744 | |
---|
17745 | # See if GNU ld supports shared libraries. |
---|
17746 | case $host_os in |
---|
17747 | aix3* | aix4* | aix5*) |
---|
17748 | # On AIX/PPC, the GNU linker is very broken |
---|
17749 | if test "$host_cpu" != ia64; then |
---|
17750 | ld_shlibs_GCJ=no |
---|
17751 | cat <<EOF 1>&2 |
---|
17752 | |
---|
17753 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
---|
17754 | *** to be unable to reliably create shared libraries on AIX. |
---|
17755 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
17756 | *** really care for shared libraries, you may want to modify your PATH |
---|
17757 | *** so that a non-GNU linker is found, and then restart. |
---|
17758 | |
---|
17759 | EOF |
---|
17760 | fi |
---|
17761 | ;; |
---|
17762 | |
---|
17763 | amigaos*) |
---|
17764 | 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)' |
---|
17765 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17766 | hardcode_minus_L_GCJ=yes |
---|
17767 | |
---|
17768 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
---|
17769 | # that the semantics of dynamic libraries on AmigaOS, at least up |
---|
17770 | # to version 4, is to share data among multiple programs linked |
---|
17771 | # with the same dynamic library. Since this doesn't match the |
---|
17772 | # behavior of shared libraries on other platforms, we can't use |
---|
17773 | # them. |
---|
17774 | ld_shlibs_GCJ=no |
---|
17775 | ;; |
---|
17776 | |
---|
17777 | beos*) |
---|
17778 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
17779 | allow_undefined_flag_GCJ=unsupported |
---|
17780 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
17781 | # support --undefined. This deserves some investigation. FIXME |
---|
17782 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
17783 | else |
---|
17784 | ld_shlibs_GCJ=no |
---|
17785 | fi |
---|
17786 | ;; |
---|
17787 | |
---|
17788 | cygwin* | mingw* | pw32*) |
---|
17789 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
---|
17790 | # as there is no search path for DLLs. |
---|
17791 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17792 | allow_undefined_flag_GCJ=unsupported |
---|
17793 | always_export_symbols_GCJ=no |
---|
17794 | enable_shared_with_static_runtimes_GCJ=yes |
---|
17795 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
---|
17796 | |
---|
17797 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
17798 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
17799 | # If the export-symbols file already is a .def file (1st line |
---|
17800 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
17801 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
17802 | cp $export_symbols $output_objdir/$soname.def; |
---|
17803 | else |
---|
17804 | echo EXPORTS > $output_objdir/$soname.def; |
---|
17805 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
17806 | fi~ |
---|
17807 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
17808 | else |
---|
17809 | ld_shlibs_GCJ=no |
---|
17810 | fi |
---|
17811 | ;; |
---|
17812 | |
---|
17813 | linux*) |
---|
17814 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
17815 | tmp_addflag= |
---|
17816 | case $cc_basename,$host_cpu in |
---|
17817 | pgcc*) # Portland Group C compiler |
---|
17818 | 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' |
---|
17819 | tmp_addflag=' $pic_flag' |
---|
17820 | ;; |
---|
17821 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
---|
17822 | 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' |
---|
17823 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
17824 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
17825 | tmp_addflag=' -i_dynamic' ;; |
---|
17826 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
17827 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
17828 | ifc* | ifort*) # Intel Fortran compiler |
---|
17829 | tmp_addflag=' -nofor_main' ;; |
---|
17830 | esac |
---|
17831 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
17832 | |
---|
17833 | if test $supports_anon_versioning = yes; then |
---|
17834 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
---|
17835 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
17836 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
17837 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
17838 | fi |
---|
17839 | else |
---|
17840 | ld_shlibs_GCJ=no |
---|
17841 | fi |
---|
17842 | ;; |
---|
17843 | |
---|
17844 | netbsd*) |
---|
17845 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
17846 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
17847 | wlarc= |
---|
17848 | else |
---|
17849 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
17850 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
17851 | fi |
---|
17852 | ;; |
---|
17853 | |
---|
17854 | solaris* | sysv5*) |
---|
17855 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
---|
17856 | ld_shlibs_GCJ=no |
---|
17857 | cat <<EOF 1>&2 |
---|
17858 | |
---|
17859 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
17860 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
17861 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
17862 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
17863 | *** your PATH or compiler configuration so that the native linker is |
---|
17864 | *** used, and then restart. |
---|
17865 | |
---|
17866 | EOF |
---|
17867 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
17868 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
17869 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
17870 | else |
---|
17871 | ld_shlibs_GCJ=no |
---|
17872 | fi |
---|
17873 | ;; |
---|
17874 | |
---|
17875 | sunos4*) |
---|
17876 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
17877 | wlarc= |
---|
17878 | hardcode_direct_GCJ=yes |
---|
17879 | hardcode_shlibpath_var_GCJ=no |
---|
17880 | ;; |
---|
17881 | |
---|
17882 | *) |
---|
17883 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
---|
17884 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
17885 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
17886 | else |
---|
17887 | ld_shlibs_GCJ=no |
---|
17888 | fi |
---|
17889 | ;; |
---|
17890 | esac |
---|
17891 | |
---|
17892 | if test "$ld_shlibs_GCJ" = no; then |
---|
17893 | runpath_var= |
---|
17894 | hardcode_libdir_flag_spec_GCJ= |
---|
17895 | export_dynamic_flag_spec_GCJ= |
---|
17896 | whole_archive_flag_spec_GCJ= |
---|
17897 | fi |
---|
17898 | else |
---|
17899 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
17900 | case $host_os in |
---|
17901 | aix3*) |
---|
17902 | allow_undefined_flag_GCJ=unsupported |
---|
17903 | always_export_symbols_GCJ=yes |
---|
17904 | 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' |
---|
17905 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
17906 | # are no directories specified by -L. |
---|
17907 | hardcode_minus_L_GCJ=yes |
---|
17908 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
---|
17909 | # Neither direct hardcoding nor static linking is supported with a |
---|
17910 | # broken collect2. |
---|
17911 | hardcode_direct_GCJ=unsupported |
---|
17912 | fi |
---|
17913 | ;; |
---|
17914 | |
---|
17915 | aix4* | aix5*) |
---|
17916 | if test "$host_cpu" = ia64; then |
---|
17917 | # On IA64, the linker does run time linking by default, so we don't |
---|
17918 | # have to do anything special. |
---|
17919 | aix_use_runtimelinking=no |
---|
17920 | exp_sym_flag='-Bexport' |
---|
17921 | no_entry_flag="" |
---|
17922 | else |
---|
17923 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
17924 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
17925 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
17926 | 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' |
---|
17927 | else |
---|
17928 | 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' |
---|
17929 | fi |
---|
17930 | aix_use_runtimelinking=no |
---|
17931 | |
---|
17932 | # Test if we are trying to use run time linking or normal |
---|
17933 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
17934 | # need to do runtime linking. |
---|
17935 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
17936 | for ld_flag in $LDFLAGS; do |
---|
17937 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
17938 | aix_use_runtimelinking=yes |
---|
17939 | break |
---|
17940 | fi |
---|
17941 | done |
---|
17942 | esac |
---|
17943 | |
---|
17944 | exp_sym_flag='-bexport' |
---|
17945 | no_entry_flag='-bnoentry' |
---|
17946 | fi |
---|
17947 | |
---|
17948 | # When large executables or shared objects are built, AIX ld can |
---|
17949 | # have problems creating the table of contents. If linking a library |
---|
17950 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
17951 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
17952 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
17953 | |
---|
17954 | archive_cmds_GCJ='' |
---|
17955 | hardcode_direct_GCJ=yes |
---|
17956 | hardcode_libdir_separator_GCJ=':' |
---|
17957 | link_all_deplibs_GCJ=yes |
---|
17958 | |
---|
17959 | if test "$GCC" = yes; then |
---|
17960 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
17961 | # We only want to do this on AIX 4.2 and lower, the check |
---|
17962 | # below for broken collect2 doesn't work under 4.3+ |
---|
17963 | collect2name=`${CC} -print-prog-name=collect2` |
---|
17964 | if test -f "$collect2name" && \ |
---|
17965 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
17966 | then |
---|
17967 | # We have reworked collect2 |
---|
17968 | hardcode_direct_GCJ=yes |
---|
17969 | else |
---|
17970 | # We have old collect2 |
---|
17971 | hardcode_direct_GCJ=unsupported |
---|
17972 | # It fails to find uninstalled libraries when the uninstalled |
---|
17973 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
17974 | # to unsupported forces relinking |
---|
17975 | hardcode_minus_L_GCJ=yes |
---|
17976 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
17977 | hardcode_libdir_separator_GCJ= |
---|
17978 | fi |
---|
17979 | esac |
---|
17980 | shared_flag='-shared' |
---|
17981 | if test "$aix_use_runtimelinking" = yes; then |
---|
17982 | shared_flag="$shared_flag "'${wl}-G' |
---|
17983 | fi |
---|
17984 | else |
---|
17985 | # not using gcc |
---|
17986 | if test "$host_cpu" = ia64; then |
---|
17987 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
17988 | # chokes on -Wl,-G. The following line is correct: |
---|
17989 | shared_flag='-G' |
---|
17990 | else |
---|
17991 | if test "$aix_use_runtimelinking" = yes; then |
---|
17992 | shared_flag='${wl}-G' |
---|
17993 | else |
---|
17994 | shared_flag='${wl}-bM:SRE' |
---|
17995 | fi |
---|
17996 | fi |
---|
17997 | fi |
---|
17998 | |
---|
17999 | # It seems that -bexpall does not export symbols beginning with |
---|
18000 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
18001 | always_export_symbols_GCJ=yes |
---|
18002 | if test "$aix_use_runtimelinking" = yes; then |
---|
18003 | # Warning - without using the other runtime loading flags (-brtl), |
---|
18004 | # -berok will link without error, but may produce a broken library. |
---|
18005 | allow_undefined_flag_GCJ='-berok' |
---|
18006 | # Determine the default libpath from the value encoded in an empty executable. |
---|
18007 | cat >conftest.$ac_ext <<_ACEOF |
---|
18008 | /* confdefs.h. */ |
---|
18009 | _ACEOF |
---|
18010 | cat confdefs.h >>conftest.$ac_ext |
---|
18011 | cat >>conftest.$ac_ext <<_ACEOF |
---|
18012 | /* end confdefs.h. */ |
---|
18013 | |
---|
18014 | int |
---|
18015 | main () |
---|
18016 | { |
---|
18017 | |
---|
18018 | ; |
---|
18019 | return 0; |
---|
18020 | } |
---|
18021 | _ACEOF |
---|
18022 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
18023 | if { (ac_try="$ac_link" |
---|
18024 | case "(($ac_try" in |
---|
18025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
18026 | *) ac_try_echo=$ac_try;; |
---|
18027 | esac |
---|
18028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
18029 | (eval "$ac_link") 2>conftest.er1 |
---|
18030 | ac_status=$? |
---|
18031 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
18032 | rm -f conftest.er1 |
---|
18033 | cat conftest.err >&5 |
---|
18034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18035 | (exit $ac_status); } && { |
---|
18036 | test -z "$ac_c_werror_flag" || |
---|
18037 | test ! -s conftest.err |
---|
18038 | } && test -s conftest$ac_exeext && |
---|
18039 | $as_test_x conftest$ac_exeext; then |
---|
18040 | |
---|
18041 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
18042 | }'` |
---|
18043 | # Check for a 64-bit object if we didn't find anything. |
---|
18044 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
18045 | }'`; fi |
---|
18046 | else |
---|
18047 | echo "$as_me: failed program was:" >&5 |
---|
18048 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18049 | |
---|
18050 | |
---|
18051 | fi |
---|
18052 | |
---|
18053 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
18054 | conftest$ac_exeext conftest.$ac_ext |
---|
18055 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
18056 | |
---|
18057 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
18058 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
18059 | else |
---|
18060 | if test "$host_cpu" = ia64; then |
---|
18061 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
---|
18062 | allow_undefined_flag_GCJ="-z nodefs" |
---|
18063 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
---|
18064 | else |
---|
18065 | # Determine the default libpath from the value encoded in an empty executable. |
---|
18066 | cat >conftest.$ac_ext <<_ACEOF |
---|
18067 | /* confdefs.h. */ |
---|
18068 | _ACEOF |
---|
18069 | cat confdefs.h >>conftest.$ac_ext |
---|
18070 | cat >>conftest.$ac_ext <<_ACEOF |
---|
18071 | /* end confdefs.h. */ |
---|
18072 | |
---|
18073 | int |
---|
18074 | main () |
---|
18075 | { |
---|
18076 | |
---|
18077 | ; |
---|
18078 | return 0; |
---|
18079 | } |
---|
18080 | _ACEOF |
---|
18081 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
18082 | if { (ac_try="$ac_link" |
---|
18083 | case "(($ac_try" in |
---|
18084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
18085 | *) ac_try_echo=$ac_try;; |
---|
18086 | esac |
---|
18087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
18088 | (eval "$ac_link") 2>conftest.er1 |
---|
18089 | ac_status=$? |
---|
18090 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
18091 | rm -f conftest.er1 |
---|
18092 | cat conftest.err >&5 |
---|
18093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18094 | (exit $ac_status); } && { |
---|
18095 | test -z "$ac_c_werror_flag" || |
---|
18096 | test ! -s conftest.err |
---|
18097 | } && test -s conftest$ac_exeext && |
---|
18098 | $as_test_x conftest$ac_exeext; then |
---|
18099 | |
---|
18100 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
18101 | }'` |
---|
18102 | # Check for a 64-bit object if we didn't find anything. |
---|
18103 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
18104 | }'`; fi |
---|
18105 | else |
---|
18106 | echo "$as_me: failed program was:" >&5 |
---|
18107 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
18108 | |
---|
18109 | |
---|
18110 | fi |
---|
18111 | |
---|
18112 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
18113 | conftest$ac_exeext conftest.$ac_ext |
---|
18114 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
18115 | |
---|
18116 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
18117 | # Warning - without using the other run time loading flags, |
---|
18118 | # -berok will link without error, but may produce a broken library. |
---|
18119 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
---|
18120 | allow_undefined_flag_GCJ=' ${wl}-berok' |
---|
18121 | # -bexpall does not export symbols beginning with underscore (_) |
---|
18122 | always_export_symbols_GCJ=yes |
---|
18123 | # Exported symbols can be pulled into shared objects from archives |
---|
18124 | whole_archive_flag_spec_GCJ=' ' |
---|
18125 | archive_cmds_need_lc_GCJ=yes |
---|
18126 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
18127 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
---|
18128 | fi |
---|
18129 | fi |
---|
18130 | ;; |
---|
18131 | |
---|
18132 | amigaos*) |
---|
18133 | 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)' |
---|
18134 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
18135 | hardcode_minus_L_GCJ=yes |
---|
18136 | # see comment about different semantics on the GNU ld section |
---|
18137 | ld_shlibs_GCJ=no |
---|
18138 | ;; |
---|
18139 | |
---|
18140 | bsdi[45]*) |
---|
18141 | export_dynamic_flag_spec_GCJ=-rdynamic |
---|
18142 | ;; |
---|
18143 | |
---|
18144 | cygwin* | mingw* | pw32*) |
---|
18145 | # When not using gcc, we currently assume that we are using |
---|
18146 | # Microsoft Visual C++. |
---|
18147 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
18148 | # no search path for DLLs. |
---|
18149 | hardcode_libdir_flag_spec_GCJ=' ' |
---|
18150 | allow_undefined_flag_GCJ=unsupported |
---|
18151 | # Tell ltmain to make .lib files, not .a files. |
---|
18152 | libext=lib |
---|
18153 | # Tell ltmain to make .dll files, not .so files. |
---|
18154 | shrext_cmds=".dll" |
---|
18155 | # FIXME: Setting linknames here is a bad hack. |
---|
18156 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
18157 | # The linker will automatically build a .lib file if we build a DLL. |
---|
18158 | old_archive_From_new_cmds_GCJ='true' |
---|
18159 | # FIXME: Should let the user specify the lib program. |
---|
18160 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
---|
18161 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
---|
18162 | enable_shared_with_static_runtimes_GCJ=yes |
---|
18163 | ;; |
---|
18164 | |
---|
18165 | darwin* | rhapsody*) |
---|
18166 | case $host_os in |
---|
18167 | rhapsody* | darwin1.[012]) |
---|
18168 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
---|
18169 | ;; |
---|
18170 | *) # Darwin 1.3 on |
---|
18171 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
18172 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
18173 | else |
---|
18174 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
18175 | 10.[012]) |
---|
18176 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
18177 | ;; |
---|
18178 | 10.*) |
---|
18179 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
---|
18180 | ;; |
---|
18181 | esac |
---|
18182 | fi |
---|
18183 | ;; |
---|
18184 | esac |
---|
18185 | archive_cmds_need_lc_GCJ=no |
---|
18186 | hardcode_direct_GCJ=no |
---|
18187 | hardcode_automatic_GCJ=yes |
---|
18188 | hardcode_shlibpath_var_GCJ=unsupported |
---|
18189 | whole_archive_flag_spec_GCJ='' |
---|
18190 | link_all_deplibs_GCJ=yes |
---|
18191 | if test "$GCC" = yes ; then |
---|
18192 | output_verbose_link_cmd='echo' |
---|
18193 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
18194 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
18195 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
18196 | 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}' |
---|
18197 | 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}' |
---|
18198 | else |
---|
18199 | case $cc_basename in |
---|
18200 | xlc*) |
---|
18201 | output_verbose_link_cmd='echo' |
---|
18202 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
18203 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
18204 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
18205 | 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
18206 | 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}' |
---|
18207 | ;; |
---|
18208 | *) |
---|
18209 | ld_shlibs_GCJ=no |
---|
18210 | ;; |
---|
18211 | esac |
---|
18212 | fi |
---|
18213 | ;; |
---|
18214 | |
---|
18215 | dgux*) |
---|
18216 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18217 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
18218 | hardcode_shlibpath_var_GCJ=no |
---|
18219 | ;; |
---|
18220 | |
---|
18221 | freebsd1*) |
---|
18222 | ld_shlibs_GCJ=no |
---|
18223 | ;; |
---|
18224 | |
---|
18225 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
18226 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
18227 | # does not break anything, and helps significantly (at the cost of a little |
---|
18228 | # extra space). |
---|
18229 | freebsd2.2*) |
---|
18230 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
18231 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
18232 | hardcode_direct_GCJ=yes |
---|
18233 | hardcode_shlibpath_var_GCJ=no |
---|
18234 | ;; |
---|
18235 | |
---|
18236 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
18237 | freebsd2*) |
---|
18238 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
18239 | hardcode_direct_GCJ=yes |
---|
18240 | hardcode_minus_L_GCJ=yes |
---|
18241 | hardcode_shlibpath_var_GCJ=no |
---|
18242 | ;; |
---|
18243 | |
---|
18244 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
18245 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
18246 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
---|
18247 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
18248 | hardcode_direct_GCJ=yes |
---|
18249 | hardcode_shlibpath_var_GCJ=no |
---|
18250 | ;; |
---|
18251 | |
---|
18252 | hpux9*) |
---|
18253 | if test "$GCC" = yes; then |
---|
18254 | 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' |
---|
18255 | else |
---|
18256 | 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' |
---|
18257 | fi |
---|
18258 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
18259 | hardcode_libdir_separator_GCJ=: |
---|
18260 | hardcode_direct_GCJ=yes |
---|
18261 | |
---|
18262 | # hardcode_minus_L: Not really in the search PATH, |
---|
18263 | # but as the default location of the library. |
---|
18264 | hardcode_minus_L_GCJ=yes |
---|
18265 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
18266 | ;; |
---|
18267 | |
---|
18268 | hpux10* | hpux11*) |
---|
18269 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
---|
18270 | case $host_cpu in |
---|
18271 | hppa*64*|ia64*) |
---|
18272 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18273 | ;; |
---|
18274 | *) |
---|
18275 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
18276 | ;; |
---|
18277 | esac |
---|
18278 | else |
---|
18279 | case $host_cpu in |
---|
18280 | hppa*64*|ia64*) |
---|
18281 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18282 | ;; |
---|
18283 | *) |
---|
18284 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
18285 | ;; |
---|
18286 | esac |
---|
18287 | fi |
---|
18288 | if test "$with_gnu_ld" = no; then |
---|
18289 | case $host_cpu in |
---|
18290 | hppa*64*) |
---|
18291 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
18292 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
---|
18293 | hardcode_libdir_separator_GCJ=: |
---|
18294 | hardcode_direct_GCJ=no |
---|
18295 | hardcode_shlibpath_var_GCJ=no |
---|
18296 | ;; |
---|
18297 | ia64*) |
---|
18298 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
18299 | hardcode_direct_GCJ=no |
---|
18300 | hardcode_shlibpath_var_GCJ=no |
---|
18301 | |
---|
18302 | # hardcode_minus_L: Not really in the search PATH, |
---|
18303 | # but as the default location of the library. |
---|
18304 | hardcode_minus_L_GCJ=yes |
---|
18305 | ;; |
---|
18306 | *) |
---|
18307 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
---|
18308 | hardcode_libdir_separator_GCJ=: |
---|
18309 | hardcode_direct_GCJ=yes |
---|
18310 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
18311 | |
---|
18312 | # hardcode_minus_L: Not really in the search PATH, |
---|
18313 | # but as the default location of the library. |
---|
18314 | hardcode_minus_L_GCJ=yes |
---|
18315 | ;; |
---|
18316 | esac |
---|
18317 | fi |
---|
18318 | ;; |
---|
18319 | |
---|
18320 | irix5* | irix6* | nonstopux*) |
---|
18321 | if test "$GCC" = yes; then |
---|
18322 | 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' |
---|
18323 | else |
---|
18324 | 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' |
---|
18325 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
---|
18326 | fi |
---|
18327 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
18328 | hardcode_libdir_separator_GCJ=: |
---|
18329 | link_all_deplibs_GCJ=yes |
---|
18330 | ;; |
---|
18331 | |
---|
18332 | netbsd*) |
---|
18333 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
18334 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
18335 | else |
---|
18336 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
18337 | fi |
---|
18338 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
18339 | hardcode_direct_GCJ=yes |
---|
18340 | hardcode_shlibpath_var_GCJ=no |
---|
18341 | ;; |
---|
18342 | |
---|
18343 | newsos6) |
---|
18344 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18345 | hardcode_direct_GCJ=yes |
---|
18346 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
18347 | hardcode_libdir_separator_GCJ=: |
---|
18348 | hardcode_shlibpath_var_GCJ=no |
---|
18349 | ;; |
---|
18350 | |
---|
18351 | openbsd*) |
---|
18352 | hardcode_direct_GCJ=yes |
---|
18353 | hardcode_shlibpath_var_GCJ=no |
---|
18354 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
18355 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
18356 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
18357 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
---|
18358 | export_dynamic_flag_spec_GCJ='${wl}-E' |
---|
18359 | else |
---|
18360 | case $host_os in |
---|
18361 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
18362 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
18363 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
18364 | ;; |
---|
18365 | *) |
---|
18366 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
18367 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
---|
18368 | ;; |
---|
18369 | esac |
---|
18370 | fi |
---|
18371 | ;; |
---|
18372 | |
---|
18373 | os2*) |
---|
18374 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
18375 | hardcode_minus_L_GCJ=yes |
---|
18376 | allow_undefined_flag_GCJ=unsupported |
---|
18377 | 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' |
---|
18378 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
18379 | ;; |
---|
18380 | |
---|
18381 | osf3*) |
---|
18382 | if test "$GCC" = yes; then |
---|
18383 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
---|
18384 | 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' |
---|
18385 | else |
---|
18386 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
---|
18387 | 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' |
---|
18388 | fi |
---|
18389 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
18390 | hardcode_libdir_separator_GCJ=: |
---|
18391 | ;; |
---|
18392 | |
---|
18393 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
18394 | if test "$GCC" = yes; then |
---|
18395 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
---|
18396 | 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' |
---|
18397 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
---|
18398 | else |
---|
18399 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
---|
18400 | 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' |
---|
18401 | 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~ |
---|
18402 | $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' |
---|
18403 | |
---|
18404 | # Both c and cxx compiler support -rpath directly |
---|
18405 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
---|
18406 | fi |
---|
18407 | hardcode_libdir_separator_GCJ=: |
---|
18408 | ;; |
---|
18409 | |
---|
18410 | sco3.2v5*) |
---|
18411 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18412 | hardcode_shlibpath_var_GCJ=no |
---|
18413 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
---|
18414 | runpath_var=LD_RUN_PATH |
---|
18415 | hardcode_runpath_var=yes |
---|
18416 | ;; |
---|
18417 | |
---|
18418 | solaris*) |
---|
18419 | no_undefined_flag_GCJ=' -z text' |
---|
18420 | if test "$GCC" = yes; then |
---|
18421 | wlarc='${wl}' |
---|
18422 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18423 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
18424 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
---|
18425 | else |
---|
18426 | wlarc='' |
---|
18427 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18428 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
18429 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
18430 | fi |
---|
18431 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
---|
18432 | hardcode_shlibpath_var_GCJ=no |
---|
18433 | case $host_os in |
---|
18434 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
18435 | *) |
---|
18436 | # The compiler driver will combine linker options so we |
---|
18437 | # cannot just pass the convience library names through |
---|
18438 | # without $wl, iff we do not link with $LD. |
---|
18439 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
---|
18440 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
18441 | case $wlarc in |
---|
18442 | '') |
---|
18443 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
---|
18444 | *) |
---|
18445 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
---|
18446 | esac ;; |
---|
18447 | esac |
---|
18448 | link_all_deplibs_GCJ=yes |
---|
18449 | ;; |
---|
18450 | |
---|
18451 | sunos4*) |
---|
18452 | if test "x$host_vendor" = xsequent; then |
---|
18453 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
18454 | # files that make .init and .fini sections work. |
---|
18455 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18456 | else |
---|
18457 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
18458 | fi |
---|
18459 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
18460 | hardcode_direct_GCJ=yes |
---|
18461 | hardcode_minus_L_GCJ=yes |
---|
18462 | hardcode_shlibpath_var_GCJ=no |
---|
18463 | ;; |
---|
18464 | |
---|
18465 | sysv4) |
---|
18466 | case $host_vendor in |
---|
18467 | sni) |
---|
18468 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18469 | hardcode_direct_GCJ=yes # is this really true??? |
---|
18470 | ;; |
---|
18471 | siemens) |
---|
18472 | ## LD is ld it makes a PLAMLIB |
---|
18473 | ## CC just makes a GrossModule. |
---|
18474 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
18475 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
---|
18476 | hardcode_direct_GCJ=no |
---|
18477 | ;; |
---|
18478 | motorola) |
---|
18479 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18480 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
---|
18481 | ;; |
---|
18482 | esac |
---|
18483 | runpath_var='LD_RUN_PATH' |
---|
18484 | hardcode_shlibpath_var_GCJ=no |
---|
18485 | ;; |
---|
18486 | |
---|
18487 | sysv4.3*) |
---|
18488 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18489 | hardcode_shlibpath_var_GCJ=no |
---|
18490 | export_dynamic_flag_spec_GCJ='-Bexport' |
---|
18491 | ;; |
---|
18492 | |
---|
18493 | sysv4*MP*) |
---|
18494 | if test -d /usr/nec; then |
---|
18495 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18496 | hardcode_shlibpath_var_GCJ=no |
---|
18497 | runpath_var=LD_RUN_PATH |
---|
18498 | hardcode_runpath_var=yes |
---|
18499 | ld_shlibs_GCJ=yes |
---|
18500 | fi |
---|
18501 | ;; |
---|
18502 | |
---|
18503 | sysv4.2uw2*) |
---|
18504 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
18505 | hardcode_direct_GCJ=yes |
---|
18506 | hardcode_minus_L_GCJ=no |
---|
18507 | hardcode_shlibpath_var_GCJ=no |
---|
18508 | hardcode_runpath_var=yes |
---|
18509 | runpath_var=LD_RUN_PATH |
---|
18510 | ;; |
---|
18511 | |
---|
18512 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
18513 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
---|
18514 | if test "$GCC" = yes; then |
---|
18515 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18516 | else |
---|
18517 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
18518 | fi |
---|
18519 | runpath_var='LD_RUN_PATH' |
---|
18520 | hardcode_shlibpath_var_GCJ=no |
---|
18521 | ;; |
---|
18522 | |
---|
18523 | sysv5*) |
---|
18524 | no_undefined_flag_GCJ=' -z text' |
---|
18525 | # $CC -shared without GNU ld will not create a library from C++ |
---|
18526 | # object files and a static libstdc++, better avoid it by now |
---|
18527 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18528 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
18529 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
---|
18530 | hardcode_libdir_flag_spec_GCJ= |
---|
18531 | hardcode_shlibpath_var_GCJ=no |
---|
18532 | runpath_var='LD_RUN_PATH' |
---|
18533 | ;; |
---|
18534 | |
---|
18535 | uts4*) |
---|
18536 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
18537 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
---|
18538 | hardcode_shlibpath_var_GCJ=no |
---|
18539 | ;; |
---|
18540 | |
---|
18541 | *) |
---|
18542 | ld_shlibs_GCJ=no |
---|
18543 | ;; |
---|
18544 | esac |
---|
18545 | fi |
---|
18546 | |
---|
18547 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
---|
18548 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
---|
18549 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
---|
18550 | |
---|
18551 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
18552 | if test "$GCC" = yes; then |
---|
18553 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
18554 | fi |
---|
18555 | |
---|
18556 | # |
---|
18557 | # Do we need to explicitly link libc? |
---|
18558 | # |
---|
18559 | case "x$archive_cmds_need_lc_GCJ" in |
---|
18560 | x|xyes) |
---|
18561 | # Assume -lc should be added |
---|
18562 | archive_cmds_need_lc_GCJ=yes |
---|
18563 | |
---|
18564 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
18565 | case $archive_cmds_GCJ in |
---|
18566 | *'~'*) |
---|
18567 | # FIXME: we may have to deal with multi-command sequences. |
---|
18568 | ;; |
---|
18569 | '$CC '*) |
---|
18570 | # Test whether the compiler implicitly links with -lc since on some |
---|
18571 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
18572 | # to ld, don't add -lc before -lgcc. |
---|
18573 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
18574 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
---|
18575 | $rm conftest* |
---|
18576 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
18577 | |
---|
18578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
18579 | (eval $ac_compile) 2>&5 |
---|
18580 | ac_status=$? |
---|
18581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18582 | (exit $ac_status); } 2>conftest.err; then |
---|
18583 | soname=conftest |
---|
18584 | lib=conftest |
---|
18585 | libobjs=conftest.$ac_objext |
---|
18586 | deplibs= |
---|
18587 | wl=$lt_prog_compiler_wl_GCJ |
---|
18588 | compiler_flags=-v |
---|
18589 | linker_flags=-v |
---|
18590 | verstring= |
---|
18591 | output_objdir=. |
---|
18592 | libname=conftest |
---|
18593 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
---|
18594 | allow_undefined_flag_GCJ= |
---|
18595 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
18596 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
18597 | ac_status=$? |
---|
18598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
18599 | (exit $ac_status); } |
---|
18600 | then |
---|
18601 | archive_cmds_need_lc_GCJ=no |
---|
18602 | else |
---|
18603 | archive_cmds_need_lc_GCJ=yes |
---|
18604 | fi |
---|
18605 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
---|
18606 | else |
---|
18607 | cat conftest.err 1>&5 |
---|
18608 | fi |
---|
18609 | $rm conftest* |
---|
18610 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
---|
18611 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
---|
18612 | ;; |
---|
18613 | esac |
---|
18614 | fi |
---|
18615 | ;; |
---|
18616 | esac |
---|
18617 | |
---|
18618 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
18619 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
---|
18620 | library_names_spec= |
---|
18621 | libname_spec='lib$name' |
---|
18622 | soname_spec= |
---|
18623 | shrext_cmds=".so" |
---|
18624 | postinstall_cmds= |
---|
18625 | postuninstall_cmds= |
---|
18626 | finish_cmds= |
---|
18627 | finish_eval= |
---|
18628 | shlibpath_var= |
---|
18629 | shlibpath_overrides_runpath=unknown |
---|
18630 | version_type=none |
---|
18631 | dynamic_linker="$host_os ld.so" |
---|
18632 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
18633 | if test "$GCC" = yes; then |
---|
18634 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
18635 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
18636 | # if the path contains ";" then we assume it to be the separator |
---|
18637 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
18638 | # assumed that no part of a normal pathname contains ";" but that should |
---|
18639 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
18640 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
18641 | else |
---|
18642 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
18643 | fi |
---|
18644 | else |
---|
18645 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
18646 | fi |
---|
18647 | need_lib_prefix=unknown |
---|
18648 | hardcode_into_libs=no |
---|
18649 | |
---|
18650 | # when you set need_version to no, make sure it does not cause -set_version |
---|
18651 | # flags to be left without arguments |
---|
18652 | need_version=unknown |
---|
18653 | |
---|
18654 | case $host_os in |
---|
18655 | aix3*) |
---|
18656 | version_type=linux |
---|
18657 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
18658 | shlibpath_var=LIBPATH |
---|
18659 | |
---|
18660 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
18661 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18662 | ;; |
---|
18663 | |
---|
18664 | aix4* | aix5*) |
---|
18665 | version_type=linux |
---|
18666 | need_lib_prefix=no |
---|
18667 | need_version=no |
---|
18668 | hardcode_into_libs=yes |
---|
18669 | if test "$host_cpu" = ia64; then |
---|
18670 | # AIX 5 supports IA64 |
---|
18671 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
18672 | shlibpath_var=LD_LIBRARY_PATH |
---|
18673 | else |
---|
18674 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
18675 | # for dependence libraries. The import file would start with |
---|
18676 | # the line `#! .'. This would cause the generated library to |
---|
18677 | # depend on `.', always an invalid library. This was fixed in |
---|
18678 | # development snapshots of GCC prior to 3.0. |
---|
18679 | case $host_os in |
---|
18680 | aix4 | aix4.[01] | aix4.[01].*) |
---|
18681 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
18682 | echo ' yes ' |
---|
18683 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
18684 | : |
---|
18685 | else |
---|
18686 | can_build_shared=no |
---|
18687 | fi |
---|
18688 | ;; |
---|
18689 | esac |
---|
18690 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
18691 | # soname into executable. Probably we can add versioning support to |
---|
18692 | # collect2, so additional links can be useful in future. |
---|
18693 | if test "$aix_use_runtimelinking" = yes; then |
---|
18694 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
18695 | # instead of lib<name>.a to let people know that these are not |
---|
18696 | # typical AIX shared libraries. |
---|
18697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18698 | else |
---|
18699 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
18700 | # and later when we are not doing run time linking. |
---|
18701 | library_names_spec='${libname}${release}.a $libname.a' |
---|
18702 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18703 | fi |
---|
18704 | shlibpath_var=LIBPATH |
---|
18705 | fi |
---|
18706 | ;; |
---|
18707 | |
---|
18708 | amigaos*) |
---|
18709 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
18710 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
18711 | 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' |
---|
18712 | ;; |
---|
18713 | |
---|
18714 | beos*) |
---|
18715 | library_names_spec='${libname}${shared_ext}' |
---|
18716 | dynamic_linker="$host_os ld.so" |
---|
18717 | shlibpath_var=LIBRARY_PATH |
---|
18718 | ;; |
---|
18719 | |
---|
18720 | bsdi[45]*) |
---|
18721 | version_type=linux |
---|
18722 | need_version=no |
---|
18723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18724 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18725 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
18726 | shlibpath_var=LD_LIBRARY_PATH |
---|
18727 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
18728 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
18729 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
18730 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
18731 | # libtool to hard-code these into programs |
---|
18732 | ;; |
---|
18733 | |
---|
18734 | cygwin* | mingw* | pw32*) |
---|
18735 | version_type=windows |
---|
18736 | shrext_cmds=".dll" |
---|
18737 | need_version=no |
---|
18738 | need_lib_prefix=no |
---|
18739 | |
---|
18740 | case $GCC,$host_os in |
---|
18741 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
18742 | library_names_spec='$libname.dll.a' |
---|
18743 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
18744 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
18745 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
18746 | dldir=$destdir/`dirname \$dlpath`~ |
---|
18747 | test -d \$dldir || mkdir -p \$dldir~ |
---|
18748 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
18749 | chmod a+x \$dldir/$dlname' |
---|
18750 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
18751 | dlpath=$dir/\$dldll~ |
---|
18752 | $rm \$dlpath' |
---|
18753 | shlibpath_overrides_runpath=yes |
---|
18754 | |
---|
18755 | case $host_os in |
---|
18756 | cygwin*) |
---|
18757 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
18758 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
18759 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
18760 | ;; |
---|
18761 | mingw*) |
---|
18762 | # MinGW DLLs use traditional 'lib' prefix |
---|
18763 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
18764 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
18765 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
18766 | # It is most probably a Windows format PATH printed by |
---|
18767 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
18768 | # path with ; separators, and with drive letters. We can handle the |
---|
18769 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
18770 | # especially as we might pass files found there to a mingw objdump, |
---|
18771 | # which wouldn't understand a cygwinified path. Ahh. |
---|
18772 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
18773 | else |
---|
18774 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
18775 | fi |
---|
18776 | ;; |
---|
18777 | pw32*) |
---|
18778 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
18779 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
18780 | ;; |
---|
18781 | esac |
---|
18782 | ;; |
---|
18783 | |
---|
18784 | *) |
---|
18785 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
18786 | ;; |
---|
18787 | esac |
---|
18788 | dynamic_linker='Win32 ld.exe' |
---|
18789 | # FIXME: first we should search . and the directory the executable is in |
---|
18790 | shlibpath_var=PATH |
---|
18791 | ;; |
---|
18792 | |
---|
18793 | darwin* | rhapsody*) |
---|
18794 | dynamic_linker="$host_os dyld" |
---|
18795 | version_type=darwin |
---|
18796 | need_lib_prefix=no |
---|
18797 | need_version=no |
---|
18798 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
18799 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
18800 | shlibpath_overrides_runpath=yes |
---|
18801 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
18802 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
18803 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
18804 | if test "$GCC" = yes; then |
---|
18805 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
18806 | else |
---|
18807 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
18808 | fi |
---|
18809 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
18810 | ;; |
---|
18811 | |
---|
18812 | dgux*) |
---|
18813 | version_type=linux |
---|
18814 | need_lib_prefix=no |
---|
18815 | need_version=no |
---|
18816 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
18817 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18818 | shlibpath_var=LD_LIBRARY_PATH |
---|
18819 | ;; |
---|
18820 | |
---|
18821 | freebsd1*) |
---|
18822 | dynamic_linker=no |
---|
18823 | ;; |
---|
18824 | |
---|
18825 | kfreebsd*-gnu) |
---|
18826 | version_type=linux |
---|
18827 | need_lib_prefix=no |
---|
18828 | need_version=no |
---|
18829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
18830 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18831 | shlibpath_var=LD_LIBRARY_PATH |
---|
18832 | shlibpath_overrides_runpath=no |
---|
18833 | hardcode_into_libs=yes |
---|
18834 | dynamic_linker='GNU ld.so' |
---|
18835 | ;; |
---|
18836 | |
---|
18837 | freebsd* | dragonfly*) |
---|
18838 | # DragonFly does not have aout. When/if they implement a new |
---|
18839 | # versioning mechanism, adjust this. |
---|
18840 | if test -x /usr/bin/objformat; then |
---|
18841 | objformat=`/usr/bin/objformat` |
---|
18842 | else |
---|
18843 | case $host_os in |
---|
18844 | freebsd[123]*) objformat=aout ;; |
---|
18845 | *) objformat=elf ;; |
---|
18846 | esac |
---|
18847 | fi |
---|
18848 | version_type=freebsd-$objformat |
---|
18849 | case $version_type in |
---|
18850 | freebsd-elf*) |
---|
18851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
18852 | need_version=no |
---|
18853 | need_lib_prefix=no |
---|
18854 | ;; |
---|
18855 | freebsd-*) |
---|
18856 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
18857 | need_version=yes |
---|
18858 | ;; |
---|
18859 | esac |
---|
18860 | shlibpath_var=LD_LIBRARY_PATH |
---|
18861 | case $host_os in |
---|
18862 | freebsd2*) |
---|
18863 | shlibpath_overrides_runpath=yes |
---|
18864 | ;; |
---|
18865 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
18866 | shlibpath_overrides_runpath=yes |
---|
18867 | hardcode_into_libs=yes |
---|
18868 | ;; |
---|
18869 | *) # from 3.2 on |
---|
18870 | shlibpath_overrides_runpath=no |
---|
18871 | hardcode_into_libs=yes |
---|
18872 | ;; |
---|
18873 | esac |
---|
18874 | ;; |
---|
18875 | |
---|
18876 | gnu*) |
---|
18877 | version_type=linux |
---|
18878 | need_lib_prefix=no |
---|
18879 | need_version=no |
---|
18880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
18881 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18882 | shlibpath_var=LD_LIBRARY_PATH |
---|
18883 | hardcode_into_libs=yes |
---|
18884 | ;; |
---|
18885 | |
---|
18886 | hpux9* | hpux10* | hpux11*) |
---|
18887 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
18888 | # link against other versions. |
---|
18889 | version_type=sunos |
---|
18890 | need_lib_prefix=no |
---|
18891 | need_version=no |
---|
18892 | case $host_cpu in |
---|
18893 | ia64*) |
---|
18894 | shrext_cmds='.so' |
---|
18895 | hardcode_into_libs=yes |
---|
18896 | dynamic_linker="$host_os dld.so" |
---|
18897 | shlibpath_var=LD_LIBRARY_PATH |
---|
18898 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
18899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18900 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18901 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
18902 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
18903 | else |
---|
18904 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
18905 | fi |
---|
18906 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
18907 | ;; |
---|
18908 | hppa*64*) |
---|
18909 | shrext_cmds='.sl' |
---|
18910 | hardcode_into_libs=yes |
---|
18911 | dynamic_linker="$host_os dld.sl" |
---|
18912 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
18913 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
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 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
18917 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
18918 | ;; |
---|
18919 | *) |
---|
18920 | shrext_cmds='.sl' |
---|
18921 | dynamic_linker="$host_os dld.sl" |
---|
18922 | shlibpath_var=SHLIB_PATH |
---|
18923 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
18924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18925 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18926 | ;; |
---|
18927 | esac |
---|
18928 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
18929 | postinstall_cmds='chmod 555 $lib' |
---|
18930 | ;; |
---|
18931 | |
---|
18932 | irix5* | irix6* | nonstopux*) |
---|
18933 | case $host_os in |
---|
18934 | nonstopux*) version_type=nonstopux ;; |
---|
18935 | *) |
---|
18936 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
18937 | version_type=linux |
---|
18938 | else |
---|
18939 | version_type=irix |
---|
18940 | fi ;; |
---|
18941 | esac |
---|
18942 | need_lib_prefix=no |
---|
18943 | need_version=no |
---|
18944 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
18946 | case $host_os in |
---|
18947 | irix5* | nonstopux*) |
---|
18948 | libsuff= shlibsuff= |
---|
18949 | ;; |
---|
18950 | *) |
---|
18951 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
18952 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
18953 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
18954 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
18955 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
18956 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
18957 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
18958 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
18959 | esac |
---|
18960 | ;; |
---|
18961 | esac |
---|
18962 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
18963 | shlibpath_overrides_runpath=no |
---|
18964 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
18965 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
18966 | hardcode_into_libs=yes |
---|
18967 | ;; |
---|
18968 | |
---|
18969 | # No shared lib support for Linux oldld, aout, or coff. |
---|
18970 | linux*oldld* | linux*aout* | linux*coff*) |
---|
18971 | dynamic_linker=no |
---|
18972 | ;; |
---|
18973 | |
---|
18974 | # This must be Linux ELF. |
---|
18975 | linux*) |
---|
18976 | version_type=linux |
---|
18977 | need_lib_prefix=no |
---|
18978 | need_version=no |
---|
18979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
18980 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
18981 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
18982 | shlibpath_var=LD_LIBRARY_PATH |
---|
18983 | shlibpath_overrides_runpath=no |
---|
18984 | # This implies no fast_install, which is unacceptable. |
---|
18985 | # Some rework will be needed to allow for fast_install |
---|
18986 | # before this can be enabled. |
---|
18987 | hardcode_into_libs=yes |
---|
18988 | |
---|
18989 | # Append ld.so.conf contents to the search path |
---|
18990 | if test -f /etc/ld.so.conf; then |
---|
18991 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
18992 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
18993 | fi |
---|
18994 | |
---|
18995 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
18996 | # powerpc, because MkLinux only supported shared libraries with the |
---|
18997 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
18998 | # most powerpc-linux boxes support dynamic linking these days and |
---|
18999 | # people can always --disable-shared, the test was removed, and we |
---|
19000 | # assume the GNU/Linux dynamic linker is in use. |
---|
19001 | dynamic_linker='GNU/Linux ld.so' |
---|
19002 | ;; |
---|
19003 | |
---|
19004 | knetbsd*-gnu) |
---|
19005 | version_type=linux |
---|
19006 | need_lib_prefix=no |
---|
19007 | need_version=no |
---|
19008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
19009 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19010 | shlibpath_var=LD_LIBRARY_PATH |
---|
19011 | shlibpath_overrides_runpath=no |
---|
19012 | hardcode_into_libs=yes |
---|
19013 | dynamic_linker='GNU ld.so' |
---|
19014 | ;; |
---|
19015 | |
---|
19016 | netbsd*) |
---|
19017 | version_type=sunos |
---|
19018 | need_lib_prefix=no |
---|
19019 | need_version=no |
---|
19020 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
19021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
19022 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
19023 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
19024 | else |
---|
19025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
19026 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19027 | dynamic_linker='NetBSD ld.elf_so' |
---|
19028 | fi |
---|
19029 | shlibpath_var=LD_LIBRARY_PATH |
---|
19030 | shlibpath_overrides_runpath=yes |
---|
19031 | hardcode_into_libs=yes |
---|
19032 | ;; |
---|
19033 | |
---|
19034 | newsos6) |
---|
19035 | version_type=linux |
---|
19036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
19037 | shlibpath_var=LD_LIBRARY_PATH |
---|
19038 | shlibpath_overrides_runpath=yes |
---|
19039 | ;; |
---|
19040 | |
---|
19041 | nto-qnx*) |
---|
19042 | version_type=linux |
---|
19043 | need_lib_prefix=no |
---|
19044 | need_version=no |
---|
19045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
19046 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19047 | shlibpath_var=LD_LIBRARY_PATH |
---|
19048 | shlibpath_overrides_runpath=yes |
---|
19049 | ;; |
---|
19050 | |
---|
19051 | openbsd*) |
---|
19052 | version_type=sunos |
---|
19053 | need_lib_prefix=no |
---|
19054 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
19055 | case $host_os in |
---|
19056 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
19057 | *) need_version=no ;; |
---|
19058 | esac |
---|
19059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
19060 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
19061 | shlibpath_var=LD_LIBRARY_PATH |
---|
19062 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
19063 | case $host_os in |
---|
19064 | openbsd2.[89] | openbsd2.[89].*) |
---|
19065 | shlibpath_overrides_runpath=no |
---|
19066 | ;; |
---|
19067 | *) |
---|
19068 | shlibpath_overrides_runpath=yes |
---|
19069 | ;; |
---|
19070 | esac |
---|
19071 | else |
---|
19072 | shlibpath_overrides_runpath=yes |
---|
19073 | fi |
---|
19074 | ;; |
---|
19075 | |
---|
19076 | os2*) |
---|
19077 | libname_spec='$name' |
---|
19078 | shrext_cmds=".dll" |
---|
19079 | need_lib_prefix=no |
---|
19080 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
19081 | dynamic_linker='OS/2 ld.exe' |
---|
19082 | shlibpath_var=LIBPATH |
---|
19083 | ;; |
---|
19084 | |
---|
19085 | osf3* | osf4* | osf5*) |
---|
19086 | version_type=osf |
---|
19087 | need_lib_prefix=no |
---|
19088 | need_version=no |
---|
19089 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
19091 | shlibpath_var=LD_LIBRARY_PATH |
---|
19092 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
19093 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
19094 | ;; |
---|
19095 | |
---|
19096 | sco3.2v5*) |
---|
19097 | version_type=osf |
---|
19098 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19099 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
19100 | shlibpath_var=LD_LIBRARY_PATH |
---|
19101 | ;; |
---|
19102 | |
---|
19103 | solaris*) |
---|
19104 | version_type=linux |
---|
19105 | need_lib_prefix=no |
---|
19106 | need_version=no |
---|
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 | shlibpath_overrides_runpath=yes |
---|
19111 | hardcode_into_libs=yes |
---|
19112 | # ldd complains unless libraries are executable |
---|
19113 | postinstall_cmds='chmod +x $lib' |
---|
19114 | ;; |
---|
19115 | |
---|
19116 | sunos4*) |
---|
19117 | version_type=sunos |
---|
19118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
19119 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
19120 | shlibpath_var=LD_LIBRARY_PATH |
---|
19121 | shlibpath_overrides_runpath=yes |
---|
19122 | if test "$with_gnu_ld" = yes; then |
---|
19123 | need_lib_prefix=no |
---|
19124 | fi |
---|
19125 | need_version=yes |
---|
19126 | ;; |
---|
19127 | |
---|
19128 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
19129 | version_type=linux |
---|
19130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
19131 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19132 | shlibpath_var=LD_LIBRARY_PATH |
---|
19133 | case $host_vendor in |
---|
19134 | sni) |
---|
19135 | shlibpath_overrides_runpath=no |
---|
19136 | need_lib_prefix=no |
---|
19137 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
19138 | runpath_var=LD_RUN_PATH |
---|
19139 | ;; |
---|
19140 | siemens) |
---|
19141 | need_lib_prefix=no |
---|
19142 | ;; |
---|
19143 | motorola) |
---|
19144 | need_lib_prefix=no |
---|
19145 | need_version=no |
---|
19146 | shlibpath_overrides_runpath=no |
---|
19147 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
19148 | ;; |
---|
19149 | esac |
---|
19150 | ;; |
---|
19151 | |
---|
19152 | sysv4*MP*) |
---|
19153 | if test -d /usr/nec ;then |
---|
19154 | version_type=linux |
---|
19155 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
19156 | soname_spec='$libname${shared_ext}.$major' |
---|
19157 | shlibpath_var=LD_LIBRARY_PATH |
---|
19158 | fi |
---|
19159 | ;; |
---|
19160 | |
---|
19161 | uts4*) |
---|
19162 | version_type=linux |
---|
19163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
19164 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
19165 | shlibpath_var=LD_LIBRARY_PATH |
---|
19166 | ;; |
---|
19167 | |
---|
19168 | *) |
---|
19169 | dynamic_linker=no |
---|
19170 | ;; |
---|
19171 | esac |
---|
19172 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
19173 | echo "${ECHO_T}$dynamic_linker" >&6; } |
---|
19174 | test "$dynamic_linker" = no && can_build_shared=no |
---|
19175 | |
---|
19176 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
19177 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
---|
19178 | hardcode_action_GCJ= |
---|
19179 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
---|
19180 | test -n "$runpath_var_GCJ" || \ |
---|
19181 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
---|
19182 | |
---|
19183 | # We can hardcode non-existant directories. |
---|
19184 | if test "$hardcode_direct_GCJ" != no && |
---|
19185 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
19186 | # have to relink, otherwise we might link with an installed library |
---|
19187 | # when we should be linking with a yet-to-be-installed one |
---|
19188 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
---|
19189 | test "$hardcode_minus_L_GCJ" != no; then |
---|
19190 | # Linking always hardcodes the temporary library directory. |
---|
19191 | hardcode_action_GCJ=relink |
---|
19192 | else |
---|
19193 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
19194 | hardcode_action_GCJ=immediate |
---|
19195 | fi |
---|
19196 | else |
---|
19197 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
19198 | # directories. |
---|
19199 | hardcode_action_GCJ=unsupported |
---|
19200 | fi |
---|
19201 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
---|
19202 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
---|
19203 | |
---|
19204 | if test "$hardcode_action_GCJ" = relink; then |
---|
19205 | # Fast installation is not supported |
---|
19206 | enable_fast_install=no |
---|
19207 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
19208 | test "$enable_shared" = no; then |
---|
19209 | # Fast installation is not necessary |
---|
19210 | enable_fast_install=needless |
---|
19211 | fi |
---|
19212 | |
---|
19213 | striplib= |
---|
19214 | old_striplib= |
---|
19215 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
19216 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
---|
19217 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
19218 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
19219 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
19220 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
19221 | echo "${ECHO_T}yes" >&6; } |
---|
19222 | else |
---|
19223 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
19224 | case $host_os in |
---|
19225 | darwin*) |
---|
19226 | if test -n "$STRIP" ; then |
---|
19227 | striplib="$STRIP -x" |
---|
19228 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
19229 | echo "${ECHO_T}yes" >&6; } |
---|
19230 | else |
---|
19231 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
19232 | echo "${ECHO_T}no" >&6; } |
---|
19233 | fi |
---|
19234 | ;; |
---|
19235 | *) |
---|
19236 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
19237 | echo "${ECHO_T}no" >&6; } |
---|
19238 | ;; |
---|
19239 | esac |
---|
19240 | fi |
---|
19241 | |
---|
19242 | if test "x$enable_dlopen" != xyes; then |
---|
19243 | enable_dlopen=unknown |
---|
19244 | enable_dlopen_self=unknown |
---|
19245 | enable_dlopen_self_static=unknown |
---|
19246 | else |
---|
19247 | lt_cv_dlopen=no |
---|
19248 | lt_cv_dlopen_libs= |
---|
19249 | |
---|
19250 | case $host_os in |
---|
19251 | beos*) |
---|
19252 | lt_cv_dlopen="load_add_on" |
---|
19253 | lt_cv_dlopen_libs= |
---|
19254 | lt_cv_dlopen_self=yes |
---|
19255 | ;; |
---|
19256 | |
---|
19257 | mingw* | pw32*) |
---|
19258 | lt_cv_dlopen="LoadLibrary" |
---|
19259 | lt_cv_dlopen_libs= |
---|
19260 | ;; |
---|
19261 | |
---|
19262 | cygwin*) |
---|
19263 | lt_cv_dlopen="dlopen" |
---|
19264 | lt_cv_dlopen_libs= |
---|
19265 | ;; |
---|
19266 | |
---|
19267 | darwin*) |
---|
19268 | # if libdl is installed we need to link against it |
---|
19269 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
19270 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
19271 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
19272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19273 | else |
---|
19274 | ac_check_lib_save_LIBS=$LIBS |
---|
19275 | LIBS="-ldl $LIBS" |
---|
19276 | cat >conftest.$ac_ext <<_ACEOF |
---|
19277 | /* confdefs.h. */ |
---|
19278 | _ACEOF |
---|
19279 | cat confdefs.h >>conftest.$ac_ext |
---|
19280 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19281 | /* end confdefs.h. */ |
---|
19282 | |
---|
19283 | /* Override any GCC internal prototype to avoid an error. |
---|
19284 | Use char because int might match the return type of a GCC |
---|
19285 | builtin and then its argument prototype would still apply. */ |
---|
19286 | #ifdef __cplusplus |
---|
19287 | extern "C" |
---|
19288 | #endif |
---|
19289 | char dlopen (); |
---|
19290 | int |
---|
19291 | main () |
---|
19292 | { |
---|
19293 | return dlopen (); |
---|
19294 | ; |
---|
19295 | return 0; |
---|
19296 | } |
---|
19297 | _ACEOF |
---|
19298 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19299 | if { (ac_try="$ac_link" |
---|
19300 | case "(($ac_try" in |
---|
19301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
19302 | *) ac_try_echo=$ac_try;; |
---|
19303 | esac |
---|
19304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
19305 | (eval "$ac_link") 2>conftest.er1 |
---|
19306 | ac_status=$? |
---|
19307 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19308 | rm -f conftest.er1 |
---|
19309 | cat conftest.err >&5 |
---|
19310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19311 | (exit $ac_status); } && { |
---|
19312 | test -z "$ac_c_werror_flag" || |
---|
19313 | test ! -s conftest.err |
---|
19314 | } && test -s conftest$ac_exeext && |
---|
19315 | $as_test_x conftest$ac_exeext; then |
---|
19316 | ac_cv_lib_dl_dlopen=yes |
---|
19317 | else |
---|
19318 | echo "$as_me: failed program was:" >&5 |
---|
19319 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19320 | |
---|
19321 | ac_cv_lib_dl_dlopen=no |
---|
19322 | fi |
---|
19323 | |
---|
19324 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
19325 | conftest$ac_exeext conftest.$ac_ext |
---|
19326 | LIBS=$ac_check_lib_save_LIBS |
---|
19327 | fi |
---|
19328 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
19329 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
19330 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
19331 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
19332 | else |
---|
19333 | |
---|
19334 | lt_cv_dlopen="dyld" |
---|
19335 | lt_cv_dlopen_libs= |
---|
19336 | lt_cv_dlopen_self=yes |
---|
19337 | |
---|
19338 | fi |
---|
19339 | |
---|
19340 | ;; |
---|
19341 | |
---|
19342 | *) |
---|
19343 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
19344 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
---|
19345 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
19346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19347 | else |
---|
19348 | cat >conftest.$ac_ext <<_ACEOF |
---|
19349 | /* confdefs.h. */ |
---|
19350 | _ACEOF |
---|
19351 | cat confdefs.h >>conftest.$ac_ext |
---|
19352 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19353 | /* end confdefs.h. */ |
---|
19354 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
19355 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
19356 | #define shl_load innocuous_shl_load |
---|
19357 | |
---|
19358 | /* System header to define __stub macros and hopefully few prototypes, |
---|
19359 | which can conflict with char shl_load (); below. |
---|
19360 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
19361 | <limits.h> exists even on freestanding compilers. */ |
---|
19362 | |
---|
19363 | #ifdef __STDC__ |
---|
19364 | # include <limits.h> |
---|
19365 | #else |
---|
19366 | # include <assert.h> |
---|
19367 | #endif |
---|
19368 | |
---|
19369 | #undef shl_load |
---|
19370 | |
---|
19371 | /* Override any GCC internal prototype to avoid an error. |
---|
19372 | Use char because int might match the return type of a GCC |
---|
19373 | builtin and then its argument prototype would still apply. */ |
---|
19374 | #ifdef __cplusplus |
---|
19375 | extern "C" |
---|
19376 | #endif |
---|
19377 | char shl_load (); |
---|
19378 | /* The GNU C library defines this for functions which it implements |
---|
19379 | to always fail with ENOSYS. Some functions are actually named |
---|
19380 | something starting with __ and the normal name is an alias. */ |
---|
19381 | #if defined __stub_shl_load || defined __stub___shl_load |
---|
19382 | choke me |
---|
19383 | #endif |
---|
19384 | |
---|
19385 | int |
---|
19386 | main () |
---|
19387 | { |
---|
19388 | return shl_load (); |
---|
19389 | ; |
---|
19390 | return 0; |
---|
19391 | } |
---|
19392 | _ACEOF |
---|
19393 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19394 | if { (ac_try="$ac_link" |
---|
19395 | case "(($ac_try" in |
---|
19396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
19397 | *) ac_try_echo=$ac_try;; |
---|
19398 | esac |
---|
19399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
19400 | (eval "$ac_link") 2>conftest.er1 |
---|
19401 | ac_status=$? |
---|
19402 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19403 | rm -f conftest.er1 |
---|
19404 | cat conftest.err >&5 |
---|
19405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19406 | (exit $ac_status); } && { |
---|
19407 | test -z "$ac_c_werror_flag" || |
---|
19408 | test ! -s conftest.err |
---|
19409 | } && test -s conftest$ac_exeext && |
---|
19410 | $as_test_x conftest$ac_exeext; then |
---|
19411 | ac_cv_func_shl_load=yes |
---|
19412 | else |
---|
19413 | echo "$as_me: failed program was:" >&5 |
---|
19414 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19415 | |
---|
19416 | ac_cv_func_shl_load=no |
---|
19417 | fi |
---|
19418 | |
---|
19419 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
19420 | conftest$ac_exeext conftest.$ac_ext |
---|
19421 | fi |
---|
19422 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
19423 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
---|
19424 | if test $ac_cv_func_shl_load = yes; then |
---|
19425 | lt_cv_dlopen="shl_load" |
---|
19426 | else |
---|
19427 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
19428 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
---|
19429 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
19430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19431 | else |
---|
19432 | ac_check_lib_save_LIBS=$LIBS |
---|
19433 | LIBS="-ldld $LIBS" |
---|
19434 | cat >conftest.$ac_ext <<_ACEOF |
---|
19435 | /* confdefs.h. */ |
---|
19436 | _ACEOF |
---|
19437 | cat confdefs.h >>conftest.$ac_ext |
---|
19438 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19439 | /* end confdefs.h. */ |
---|
19440 | |
---|
19441 | /* Override any GCC internal prototype to avoid an error. |
---|
19442 | Use char because int might match the return type of a GCC |
---|
19443 | builtin and then its argument prototype would still apply. */ |
---|
19444 | #ifdef __cplusplus |
---|
19445 | extern "C" |
---|
19446 | #endif |
---|
19447 | char shl_load (); |
---|
19448 | int |
---|
19449 | main () |
---|
19450 | { |
---|
19451 | return shl_load (); |
---|
19452 | ; |
---|
19453 | return 0; |
---|
19454 | } |
---|
19455 | _ACEOF |
---|
19456 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19457 | if { (ac_try="$ac_link" |
---|
19458 | case "(($ac_try" in |
---|
19459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
19460 | *) ac_try_echo=$ac_try;; |
---|
19461 | esac |
---|
19462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
19463 | (eval "$ac_link") 2>conftest.er1 |
---|
19464 | ac_status=$? |
---|
19465 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19466 | rm -f conftest.er1 |
---|
19467 | cat conftest.err >&5 |
---|
19468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19469 | (exit $ac_status); } && { |
---|
19470 | test -z "$ac_c_werror_flag" || |
---|
19471 | test ! -s conftest.err |
---|
19472 | } && test -s conftest$ac_exeext && |
---|
19473 | $as_test_x conftest$ac_exeext; then |
---|
19474 | ac_cv_lib_dld_shl_load=yes |
---|
19475 | else |
---|
19476 | echo "$as_me: failed program was:" >&5 |
---|
19477 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19478 | |
---|
19479 | ac_cv_lib_dld_shl_load=no |
---|
19480 | fi |
---|
19481 | |
---|
19482 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
19483 | conftest$ac_exeext conftest.$ac_ext |
---|
19484 | LIBS=$ac_check_lib_save_LIBS |
---|
19485 | fi |
---|
19486 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
19487 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
---|
19488 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
19489 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
19490 | else |
---|
19491 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
19492 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
---|
19493 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
19494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19495 | else |
---|
19496 | cat >conftest.$ac_ext <<_ACEOF |
---|
19497 | /* confdefs.h. */ |
---|
19498 | _ACEOF |
---|
19499 | cat confdefs.h >>conftest.$ac_ext |
---|
19500 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19501 | /* end confdefs.h. */ |
---|
19502 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
19503 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
19504 | #define dlopen innocuous_dlopen |
---|
19505 | |
---|
19506 | /* System header to define __stub macros and hopefully few prototypes, |
---|
19507 | which can conflict with char dlopen (); below. |
---|
19508 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
19509 | <limits.h> exists even on freestanding compilers. */ |
---|
19510 | |
---|
19511 | #ifdef __STDC__ |
---|
19512 | # include <limits.h> |
---|
19513 | #else |
---|
19514 | # include <assert.h> |
---|
19515 | #endif |
---|
19516 | |
---|
19517 | #undef dlopen |
---|
19518 | |
---|
19519 | /* Override any GCC internal prototype to avoid an error. |
---|
19520 | Use char because int might match the return type of a GCC |
---|
19521 | builtin and then its argument prototype would still apply. */ |
---|
19522 | #ifdef __cplusplus |
---|
19523 | extern "C" |
---|
19524 | #endif |
---|
19525 | char dlopen (); |
---|
19526 | /* The GNU C library defines this for functions which it implements |
---|
19527 | to always fail with ENOSYS. Some functions are actually named |
---|
19528 | something starting with __ and the normal name is an alias. */ |
---|
19529 | #if defined __stub_dlopen || defined __stub___dlopen |
---|
19530 | choke me |
---|
19531 | #endif |
---|
19532 | |
---|
19533 | int |
---|
19534 | main () |
---|
19535 | { |
---|
19536 | return dlopen (); |
---|
19537 | ; |
---|
19538 | return 0; |
---|
19539 | } |
---|
19540 | _ACEOF |
---|
19541 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19542 | if { (ac_try="$ac_link" |
---|
19543 | case "(($ac_try" in |
---|
19544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
19545 | *) ac_try_echo=$ac_try;; |
---|
19546 | esac |
---|
19547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
19548 | (eval "$ac_link") 2>conftest.er1 |
---|
19549 | ac_status=$? |
---|
19550 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19551 | rm -f conftest.er1 |
---|
19552 | cat conftest.err >&5 |
---|
19553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19554 | (exit $ac_status); } && { |
---|
19555 | test -z "$ac_c_werror_flag" || |
---|
19556 | test ! -s conftest.err |
---|
19557 | } && test -s conftest$ac_exeext && |
---|
19558 | $as_test_x conftest$ac_exeext; then |
---|
19559 | ac_cv_func_dlopen=yes |
---|
19560 | else |
---|
19561 | echo "$as_me: failed program was:" >&5 |
---|
19562 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19563 | |
---|
19564 | ac_cv_func_dlopen=no |
---|
19565 | fi |
---|
19566 | |
---|
19567 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
19568 | conftest$ac_exeext conftest.$ac_ext |
---|
19569 | fi |
---|
19570 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
19571 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
---|
19572 | if test $ac_cv_func_dlopen = yes; then |
---|
19573 | lt_cv_dlopen="dlopen" |
---|
19574 | else |
---|
19575 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
19576 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
19577 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
19578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19579 | else |
---|
19580 | ac_check_lib_save_LIBS=$LIBS |
---|
19581 | LIBS="-ldl $LIBS" |
---|
19582 | cat >conftest.$ac_ext <<_ACEOF |
---|
19583 | /* confdefs.h. */ |
---|
19584 | _ACEOF |
---|
19585 | cat confdefs.h >>conftest.$ac_ext |
---|
19586 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19587 | /* end confdefs.h. */ |
---|
19588 | |
---|
19589 | /* Override any GCC internal prototype to avoid an error. |
---|
19590 | Use char because int might match the return type of a GCC |
---|
19591 | builtin and then its argument prototype would still apply. */ |
---|
19592 | #ifdef __cplusplus |
---|
19593 | extern "C" |
---|
19594 | #endif |
---|
19595 | char dlopen (); |
---|
19596 | int |
---|
19597 | main () |
---|
19598 | { |
---|
19599 | return dlopen (); |
---|
19600 | ; |
---|
19601 | return 0; |
---|
19602 | } |
---|
19603 | _ACEOF |
---|
19604 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19605 | if { (ac_try="$ac_link" |
---|
19606 | case "(($ac_try" in |
---|
19607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
19608 | *) ac_try_echo=$ac_try;; |
---|
19609 | esac |
---|
19610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
19611 | (eval "$ac_link") 2>conftest.er1 |
---|
19612 | ac_status=$? |
---|
19613 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19614 | rm -f conftest.er1 |
---|
19615 | cat conftest.err >&5 |
---|
19616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19617 | (exit $ac_status); } && { |
---|
19618 | test -z "$ac_c_werror_flag" || |
---|
19619 | test ! -s conftest.err |
---|
19620 | } && test -s conftest$ac_exeext && |
---|
19621 | $as_test_x conftest$ac_exeext; then |
---|
19622 | ac_cv_lib_dl_dlopen=yes |
---|
19623 | else |
---|
19624 | echo "$as_me: failed program was:" >&5 |
---|
19625 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19626 | |
---|
19627 | ac_cv_lib_dl_dlopen=no |
---|
19628 | fi |
---|
19629 | |
---|
19630 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
19631 | conftest$ac_exeext conftest.$ac_ext |
---|
19632 | LIBS=$ac_check_lib_save_LIBS |
---|
19633 | fi |
---|
19634 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
19635 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
19636 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
19637 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
19638 | else |
---|
19639 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
19640 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
---|
19641 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
19642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19643 | else |
---|
19644 | ac_check_lib_save_LIBS=$LIBS |
---|
19645 | LIBS="-lsvld $LIBS" |
---|
19646 | cat >conftest.$ac_ext <<_ACEOF |
---|
19647 | /* confdefs.h. */ |
---|
19648 | _ACEOF |
---|
19649 | cat confdefs.h >>conftest.$ac_ext |
---|
19650 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19651 | /* end confdefs.h. */ |
---|
19652 | |
---|
19653 | /* Override any GCC internal prototype to avoid an error. |
---|
19654 | Use char because int might match the return type of a GCC |
---|
19655 | builtin and then its argument prototype would still apply. */ |
---|
19656 | #ifdef __cplusplus |
---|
19657 | extern "C" |
---|
19658 | #endif |
---|
19659 | char dlopen (); |
---|
19660 | int |
---|
19661 | main () |
---|
19662 | { |
---|
19663 | return dlopen (); |
---|
19664 | ; |
---|
19665 | return 0; |
---|
19666 | } |
---|
19667 | _ACEOF |
---|
19668 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19669 | if { (ac_try="$ac_link" |
---|
19670 | case "(($ac_try" in |
---|
19671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
19672 | *) ac_try_echo=$ac_try;; |
---|
19673 | esac |
---|
19674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
19675 | (eval "$ac_link") 2>conftest.er1 |
---|
19676 | ac_status=$? |
---|
19677 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19678 | rm -f conftest.er1 |
---|
19679 | cat conftest.err >&5 |
---|
19680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19681 | (exit $ac_status); } && { |
---|
19682 | test -z "$ac_c_werror_flag" || |
---|
19683 | test ! -s conftest.err |
---|
19684 | } && test -s conftest$ac_exeext && |
---|
19685 | $as_test_x conftest$ac_exeext; then |
---|
19686 | ac_cv_lib_svld_dlopen=yes |
---|
19687 | else |
---|
19688 | echo "$as_me: failed program was:" >&5 |
---|
19689 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19690 | |
---|
19691 | ac_cv_lib_svld_dlopen=no |
---|
19692 | fi |
---|
19693 | |
---|
19694 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
19695 | conftest$ac_exeext conftest.$ac_ext |
---|
19696 | LIBS=$ac_check_lib_save_LIBS |
---|
19697 | fi |
---|
19698 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
19699 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
---|
19700 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
19701 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
19702 | else |
---|
19703 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
19704 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
---|
19705 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
19706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19707 | else |
---|
19708 | ac_check_lib_save_LIBS=$LIBS |
---|
19709 | LIBS="-ldld $LIBS" |
---|
19710 | cat >conftest.$ac_ext <<_ACEOF |
---|
19711 | /* confdefs.h. */ |
---|
19712 | _ACEOF |
---|
19713 | cat confdefs.h >>conftest.$ac_ext |
---|
19714 | cat >>conftest.$ac_ext <<_ACEOF |
---|
19715 | /* end confdefs.h. */ |
---|
19716 | |
---|
19717 | /* Override any GCC internal prototype to avoid an error. |
---|
19718 | Use char because int might match the return type of a GCC |
---|
19719 | builtin and then its argument prototype would still apply. */ |
---|
19720 | #ifdef __cplusplus |
---|
19721 | extern "C" |
---|
19722 | #endif |
---|
19723 | char dld_link (); |
---|
19724 | int |
---|
19725 | main () |
---|
19726 | { |
---|
19727 | return dld_link (); |
---|
19728 | ; |
---|
19729 | return 0; |
---|
19730 | } |
---|
19731 | _ACEOF |
---|
19732 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
19733 | if { (ac_try="$ac_link" |
---|
19734 | case "(($ac_try" in |
---|
19735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
19736 | *) ac_try_echo=$ac_try;; |
---|
19737 | esac |
---|
19738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
19739 | (eval "$ac_link") 2>conftest.er1 |
---|
19740 | ac_status=$? |
---|
19741 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
19742 | rm -f conftest.er1 |
---|
19743 | cat conftest.err >&5 |
---|
19744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19745 | (exit $ac_status); } && { |
---|
19746 | test -z "$ac_c_werror_flag" || |
---|
19747 | test ! -s conftest.err |
---|
19748 | } && test -s conftest$ac_exeext && |
---|
19749 | $as_test_x conftest$ac_exeext; then |
---|
19750 | ac_cv_lib_dld_dld_link=yes |
---|
19751 | else |
---|
19752 | echo "$as_me: failed program was:" >&5 |
---|
19753 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
19754 | |
---|
19755 | ac_cv_lib_dld_dld_link=no |
---|
19756 | fi |
---|
19757 | |
---|
19758 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
19759 | conftest$ac_exeext conftest.$ac_ext |
---|
19760 | LIBS=$ac_check_lib_save_LIBS |
---|
19761 | fi |
---|
19762 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
19763 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
---|
19764 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
19765 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
19766 | fi |
---|
19767 | |
---|
19768 | |
---|
19769 | fi |
---|
19770 | |
---|
19771 | |
---|
19772 | fi |
---|
19773 | |
---|
19774 | |
---|
19775 | fi |
---|
19776 | |
---|
19777 | |
---|
19778 | fi |
---|
19779 | |
---|
19780 | |
---|
19781 | fi |
---|
19782 | |
---|
19783 | ;; |
---|
19784 | esac |
---|
19785 | |
---|
19786 | if test "x$lt_cv_dlopen" != xno; then |
---|
19787 | enable_dlopen=yes |
---|
19788 | else |
---|
19789 | enable_dlopen=no |
---|
19790 | fi |
---|
19791 | |
---|
19792 | case $lt_cv_dlopen in |
---|
19793 | dlopen) |
---|
19794 | save_CPPFLAGS="$CPPFLAGS" |
---|
19795 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
19796 | |
---|
19797 | save_LDFLAGS="$LDFLAGS" |
---|
19798 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
19799 | |
---|
19800 | save_LIBS="$LIBS" |
---|
19801 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
19802 | |
---|
19803 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
19804 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
---|
19805 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
19806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19807 | else |
---|
19808 | if test "$cross_compiling" = yes; then : |
---|
19809 | lt_cv_dlopen_self=cross |
---|
19810 | else |
---|
19811 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
19812 | lt_status=$lt_dlunknown |
---|
19813 | cat > conftest.$ac_ext <<EOF |
---|
19814 | #line 19814 "configure" |
---|
19815 | #include "confdefs.h" |
---|
19816 | |
---|
19817 | #if HAVE_DLFCN_H |
---|
19818 | #include <dlfcn.h> |
---|
19819 | #endif |
---|
19820 | |
---|
19821 | #include <stdio.h> |
---|
19822 | |
---|
19823 | #ifdef RTLD_GLOBAL |
---|
19824 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
19825 | #else |
---|
19826 | # ifdef DL_GLOBAL |
---|
19827 | # define LT_DLGLOBAL DL_GLOBAL |
---|
19828 | # else |
---|
19829 | # define LT_DLGLOBAL 0 |
---|
19830 | # endif |
---|
19831 | #endif |
---|
19832 | |
---|
19833 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
19834 | find out it does not work in some platform. */ |
---|
19835 | #ifndef LT_DLLAZY_OR_NOW |
---|
19836 | # ifdef RTLD_LAZY |
---|
19837 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
19838 | # else |
---|
19839 | # ifdef DL_LAZY |
---|
19840 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
19841 | # else |
---|
19842 | # ifdef RTLD_NOW |
---|
19843 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
19844 | # else |
---|
19845 | # ifdef DL_NOW |
---|
19846 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
19847 | # else |
---|
19848 | # define LT_DLLAZY_OR_NOW 0 |
---|
19849 | # endif |
---|
19850 | # endif |
---|
19851 | # endif |
---|
19852 | # endif |
---|
19853 | #endif |
---|
19854 | |
---|
19855 | #ifdef __cplusplus |
---|
19856 | extern "C" void exit (int); |
---|
19857 | #endif |
---|
19858 | |
---|
19859 | void fnord() { int i=42;} |
---|
19860 | int main () |
---|
19861 | { |
---|
19862 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
19863 | int status = $lt_dlunknown; |
---|
19864 | |
---|
19865 | if (self) |
---|
19866 | { |
---|
19867 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
19868 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
19869 | /* dlclose (self); */ |
---|
19870 | } |
---|
19871 | |
---|
19872 | exit (status); |
---|
19873 | } |
---|
19874 | EOF |
---|
19875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19876 | (eval $ac_link) 2>&5 |
---|
19877 | ac_status=$? |
---|
19878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19879 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
19880 | (./conftest; exit; ) >&5 2>/dev/null |
---|
19881 | lt_status=$? |
---|
19882 | case x$lt_status in |
---|
19883 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
19884 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
19885 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
19886 | esac |
---|
19887 | else : |
---|
19888 | # compilation failed |
---|
19889 | lt_cv_dlopen_self=no |
---|
19890 | fi |
---|
19891 | fi |
---|
19892 | rm -fr conftest* |
---|
19893 | |
---|
19894 | |
---|
19895 | fi |
---|
19896 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
19897 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
---|
19898 | |
---|
19899 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
19900 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
19901 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
19902 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
---|
19903 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
19904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
19905 | else |
---|
19906 | if test "$cross_compiling" = yes; then : |
---|
19907 | lt_cv_dlopen_self_static=cross |
---|
19908 | else |
---|
19909 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
19910 | lt_status=$lt_dlunknown |
---|
19911 | cat > conftest.$ac_ext <<EOF |
---|
19912 | #line 19912 "configure" |
---|
19913 | #include "confdefs.h" |
---|
19914 | |
---|
19915 | #if HAVE_DLFCN_H |
---|
19916 | #include <dlfcn.h> |
---|
19917 | #endif |
---|
19918 | |
---|
19919 | #include <stdio.h> |
---|
19920 | |
---|
19921 | #ifdef RTLD_GLOBAL |
---|
19922 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
19923 | #else |
---|
19924 | # ifdef DL_GLOBAL |
---|
19925 | # define LT_DLGLOBAL DL_GLOBAL |
---|
19926 | # else |
---|
19927 | # define LT_DLGLOBAL 0 |
---|
19928 | # endif |
---|
19929 | #endif |
---|
19930 | |
---|
19931 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
19932 | find out it does not work in some platform. */ |
---|
19933 | #ifndef LT_DLLAZY_OR_NOW |
---|
19934 | # ifdef RTLD_LAZY |
---|
19935 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
19936 | # else |
---|
19937 | # ifdef DL_LAZY |
---|
19938 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
19939 | # else |
---|
19940 | # ifdef RTLD_NOW |
---|
19941 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
19942 | # else |
---|
19943 | # ifdef DL_NOW |
---|
19944 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
19945 | # else |
---|
19946 | # define LT_DLLAZY_OR_NOW 0 |
---|
19947 | # endif |
---|
19948 | # endif |
---|
19949 | # endif |
---|
19950 | # endif |
---|
19951 | #endif |
---|
19952 | |
---|
19953 | #ifdef __cplusplus |
---|
19954 | extern "C" void exit (int); |
---|
19955 | #endif |
---|
19956 | |
---|
19957 | void fnord() { int i=42;} |
---|
19958 | int main () |
---|
19959 | { |
---|
19960 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
19961 | int status = $lt_dlunknown; |
---|
19962 | |
---|
19963 | if (self) |
---|
19964 | { |
---|
19965 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
19966 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
19967 | /* dlclose (self); */ |
---|
19968 | } |
---|
19969 | |
---|
19970 | exit (status); |
---|
19971 | } |
---|
19972 | EOF |
---|
19973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
19974 | (eval $ac_link) 2>&5 |
---|
19975 | ac_status=$? |
---|
19976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
19977 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
19978 | (./conftest; exit; ) >&5 2>/dev/null |
---|
19979 | lt_status=$? |
---|
19980 | case x$lt_status in |
---|
19981 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
19982 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
19983 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
19984 | esac |
---|
19985 | else : |
---|
19986 | # compilation failed |
---|
19987 | lt_cv_dlopen_self_static=no |
---|
19988 | fi |
---|
19989 | fi |
---|
19990 | rm -fr conftest* |
---|
19991 | |
---|
19992 | |
---|
19993 | fi |
---|
19994 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
19995 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
---|
19996 | fi |
---|
19997 | |
---|
19998 | CPPFLAGS="$save_CPPFLAGS" |
---|
19999 | LDFLAGS="$save_LDFLAGS" |
---|
20000 | LIBS="$save_LIBS" |
---|
20001 | ;; |
---|
20002 | esac |
---|
20003 | |
---|
20004 | case $lt_cv_dlopen_self in |
---|
20005 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
20006 | *) enable_dlopen_self=unknown ;; |
---|
20007 | esac |
---|
20008 | |
---|
20009 | case $lt_cv_dlopen_self_static in |
---|
20010 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
20011 | *) enable_dlopen_self_static=unknown ;; |
---|
20012 | esac |
---|
20013 | fi |
---|
20014 | |
---|
20015 | |
---|
20016 | # The else clause should only fire when bootstrapping the |
---|
20017 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
20018 | # with your package, and you will get complaints that there are |
---|
20019 | # no rules to generate ltmain.sh. |
---|
20020 | if test -f "$ltmain"; then |
---|
20021 | # See if we are running on zsh, and set the options which allow our commands through |
---|
20022 | # without removal of \ escapes. |
---|
20023 | if test -n "${ZSH_VERSION+set}" ; then |
---|
20024 | setopt NO_GLOB_SUBST |
---|
20025 | fi |
---|
20026 | # Now quote all the things that may contain metacharacters while being |
---|
20027 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
20028 | # variables and quote the copies for generation of the libtool script. |
---|
20029 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
20030 | SED SHELL STRIP \ |
---|
20031 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
20032 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
20033 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
20034 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
20035 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
20036 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
20037 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
20038 | compiler_GCJ \ |
---|
20039 | CC_GCJ \ |
---|
20040 | LD_GCJ \ |
---|
20041 | lt_prog_compiler_wl_GCJ \ |
---|
20042 | lt_prog_compiler_pic_GCJ \ |
---|
20043 | lt_prog_compiler_static_GCJ \ |
---|
20044 | lt_prog_compiler_no_builtin_flag_GCJ \ |
---|
20045 | export_dynamic_flag_spec_GCJ \ |
---|
20046 | thread_safe_flag_spec_GCJ \ |
---|
20047 | whole_archive_flag_spec_GCJ \ |
---|
20048 | enable_shared_with_static_runtimes_GCJ \ |
---|
20049 | old_archive_cmds_GCJ \ |
---|
20050 | old_archive_from_new_cmds_GCJ \ |
---|
20051 | predep_objects_GCJ \ |
---|
20052 | postdep_objects_GCJ \ |
---|
20053 | predeps_GCJ \ |
---|
20054 | postdeps_GCJ \ |
---|
20055 | compiler_lib_search_path_GCJ \ |
---|
20056 | archive_cmds_GCJ \ |
---|
20057 | archive_expsym_cmds_GCJ \ |
---|
20058 | postinstall_cmds_GCJ \ |
---|
20059 | postuninstall_cmds_GCJ \ |
---|
20060 | old_archive_from_expsyms_cmds_GCJ \ |
---|
20061 | allow_undefined_flag_GCJ \ |
---|
20062 | no_undefined_flag_GCJ \ |
---|
20063 | export_symbols_cmds_GCJ \ |
---|
20064 | hardcode_libdir_flag_spec_GCJ \ |
---|
20065 | hardcode_libdir_flag_spec_ld_GCJ \ |
---|
20066 | hardcode_libdir_separator_GCJ \ |
---|
20067 | hardcode_automatic_GCJ \ |
---|
20068 | module_cmds_GCJ \ |
---|
20069 | module_expsym_cmds_GCJ \ |
---|
20070 | lt_cv_prog_compiler_c_o_GCJ \ |
---|
20071 | exclude_expsyms_GCJ \ |
---|
20072 | include_expsyms_GCJ; do |
---|
20073 | |
---|
20074 | case $var in |
---|
20075 | old_archive_cmds_GCJ | \ |
---|
20076 | old_archive_from_new_cmds_GCJ | \ |
---|
20077 | archive_cmds_GCJ | \ |
---|
20078 | archive_expsym_cmds_GCJ | \ |
---|
20079 | module_cmds_GCJ | \ |
---|
20080 | module_expsym_cmds_GCJ | \ |
---|
20081 | old_archive_from_expsyms_cmds_GCJ | \ |
---|
20082 | export_symbols_cmds_GCJ | \ |
---|
20083 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
20084 | postinstall_cmds | postuninstall_cmds | \ |
---|
20085 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
20086 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
20087 | # Double-quote double-evaled strings. |
---|
20088 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
20089 | ;; |
---|
20090 | *) |
---|
20091 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
20092 | ;; |
---|
20093 | esac |
---|
20094 | done |
---|
20095 | |
---|
20096 | case $lt_echo in |
---|
20097 | *'\$0 --fallback-echo"') |
---|
20098 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
20099 | ;; |
---|
20100 | esac |
---|
20101 | |
---|
20102 | cfgfile="$ofile" |
---|
20103 | |
---|
20104 | cat <<__EOF__ >> "$cfgfile" |
---|
20105 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
20106 | |
---|
20107 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
20108 | |
---|
20109 | # Shell to use when invoking shell scripts. |
---|
20110 | SHELL=$lt_SHELL |
---|
20111 | |
---|
20112 | # Whether or not to build shared libraries. |
---|
20113 | build_libtool_libs=$enable_shared |
---|
20114 | |
---|
20115 | # Whether or not to build static libraries. |
---|
20116 | build_old_libs=$enable_static |
---|
20117 | |
---|
20118 | # Whether or not to add -lc for building shared libraries. |
---|
20119 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
---|
20120 | |
---|
20121 | # Whether or not to disallow shared libs when runtime libs are static |
---|
20122 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
---|
20123 | |
---|
20124 | # Whether or not to optimize for fast installation. |
---|
20125 | fast_install=$enable_fast_install |
---|
20126 | |
---|
20127 | # The host system. |
---|
20128 | host_alias=$host_alias |
---|
20129 | host=$host |
---|
20130 | host_os=$host_os |
---|
20131 | |
---|
20132 | # The build system. |
---|
20133 | build_alias=$build_alias |
---|
20134 | build=$build |
---|
20135 | build_os=$build_os |
---|
20136 | |
---|
20137 | # An echo program that does not interpret backslashes. |
---|
20138 | echo=$lt_echo |
---|
20139 | |
---|
20140 | # The archiver. |
---|
20141 | AR=$lt_AR |
---|
20142 | AR_FLAGS=$lt_AR_FLAGS |
---|
20143 | |
---|
20144 | # A C compiler. |
---|
20145 | LTCC=$lt_LTCC |
---|
20146 | |
---|
20147 | # A language-specific compiler. |
---|
20148 | CC=$lt_compiler_GCJ |
---|
20149 | |
---|
20150 | # Is the compiler the GNU C compiler? |
---|
20151 | with_gcc=$GCC_GCJ |
---|
20152 | |
---|
20153 | # An ERE matcher. |
---|
20154 | EGREP=$lt_EGREP |
---|
20155 | |
---|
20156 | # The linker used to build libraries. |
---|
20157 | LD=$lt_LD_GCJ |
---|
20158 | |
---|
20159 | # Whether we need hard or soft links. |
---|
20160 | LN_S=$lt_LN_S |
---|
20161 | |
---|
20162 | # A BSD-compatible nm program. |
---|
20163 | NM=$lt_NM |
---|
20164 | |
---|
20165 | # A symbol stripping program |
---|
20166 | STRIP=$lt_STRIP |
---|
20167 | |
---|
20168 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
20169 | MAGIC_CMD=$MAGIC_CMD |
---|
20170 | |
---|
20171 | # Used on cygwin: DLL creation program. |
---|
20172 | DLLTOOL="$DLLTOOL" |
---|
20173 | |
---|
20174 | # Used on cygwin: object dumper. |
---|
20175 | OBJDUMP="$OBJDUMP" |
---|
20176 | |
---|
20177 | # Used on cygwin: assembler. |
---|
20178 | AS="$AS" |
---|
20179 | |
---|
20180 | # The name of the directory that contains temporary libtool files. |
---|
20181 | objdir=$objdir |
---|
20182 | |
---|
20183 | # How to create reloadable object files. |
---|
20184 | reload_flag=$lt_reload_flag |
---|
20185 | reload_cmds=$lt_reload_cmds |
---|
20186 | |
---|
20187 | # How to pass a linker flag through the compiler. |
---|
20188 | wl=$lt_lt_prog_compiler_wl_GCJ |
---|
20189 | |
---|
20190 | # Object file suffix (normally "o"). |
---|
20191 | objext="$ac_objext" |
---|
20192 | |
---|
20193 | # Old archive suffix (normally "a"). |
---|
20194 | libext="$libext" |
---|
20195 | |
---|
20196 | # Shared library suffix (normally ".so"). |
---|
20197 | shrext_cmds='$shrext_cmds' |
---|
20198 | |
---|
20199 | # Executable file suffix (normally ""). |
---|
20200 | exeext="$exeext" |
---|
20201 | |
---|
20202 | # Additional compiler flags for building library objects. |
---|
20203 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
---|
20204 | pic_mode=$pic_mode |
---|
20205 | |
---|
20206 | # What is the maximum length of a command? |
---|
20207 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
20208 | |
---|
20209 | # Does compiler simultaneously support -c and -o options? |
---|
20210 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
---|
20211 | |
---|
20212 | # Must we lock files when doing compilation? |
---|
20213 | need_locks=$lt_need_locks |
---|
20214 | |
---|
20215 | # Do we need the lib prefix for modules? |
---|
20216 | need_lib_prefix=$need_lib_prefix |
---|
20217 | |
---|
20218 | # Do we need a version for libraries? |
---|
20219 | need_version=$need_version |
---|
20220 | |
---|
20221 | # Whether dlopen is supported. |
---|
20222 | dlopen_support=$enable_dlopen |
---|
20223 | |
---|
20224 | # Whether dlopen of programs is supported. |
---|
20225 | dlopen_self=$enable_dlopen_self |
---|
20226 | |
---|
20227 | # Whether dlopen of statically linked programs is supported. |
---|
20228 | dlopen_self_static=$enable_dlopen_self_static |
---|
20229 | |
---|
20230 | # Compiler flag to prevent dynamic linking. |
---|
20231 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
---|
20232 | |
---|
20233 | # Compiler flag to turn off builtin functions. |
---|
20234 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
---|
20235 | |
---|
20236 | # Compiler flag to allow reflexive dlopens. |
---|
20237 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
---|
20238 | |
---|
20239 | # Compiler flag to generate shared objects directly from archives. |
---|
20240 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
---|
20241 | |
---|
20242 | # Compiler flag to generate thread-safe objects. |
---|
20243 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
---|
20244 | |
---|
20245 | # Library versioning type. |
---|
20246 | version_type=$version_type |
---|
20247 | |
---|
20248 | # Format of library name prefix. |
---|
20249 | libname_spec=$lt_libname_spec |
---|
20250 | |
---|
20251 | # List of archive names. First name is the real one, the rest are links. |
---|
20252 | # The last name is the one that the linker finds with -lNAME. |
---|
20253 | library_names_spec=$lt_library_names_spec |
---|
20254 | |
---|
20255 | # The coded name of the library, if different from the real name. |
---|
20256 | soname_spec=$lt_soname_spec |
---|
20257 | |
---|
20258 | # Commands used to build and install an old-style archive. |
---|
20259 | RANLIB=$lt_RANLIB |
---|
20260 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
---|
20261 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
20262 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
20263 | |
---|
20264 | # Create an old-style archive from a shared archive. |
---|
20265 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
---|
20266 | |
---|
20267 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
20268 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
---|
20269 | |
---|
20270 | # Commands used to build and install a shared archive. |
---|
20271 | archive_cmds=$lt_archive_cmds_GCJ |
---|
20272 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
---|
20273 | postinstall_cmds=$lt_postinstall_cmds |
---|
20274 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
20275 | |
---|
20276 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
20277 | module_cmds=$lt_module_cmds_GCJ |
---|
20278 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
---|
20279 | |
---|
20280 | # Commands to strip libraries. |
---|
20281 | old_striplib=$lt_old_striplib |
---|
20282 | striplib=$lt_striplib |
---|
20283 | |
---|
20284 | # Dependencies to place before the objects being linked to create a |
---|
20285 | # shared library. |
---|
20286 | predep_objects=$lt_predep_objects_GCJ |
---|
20287 | |
---|
20288 | # Dependencies to place after the objects being linked to create a |
---|
20289 | # shared library. |
---|
20290 | postdep_objects=$lt_postdep_objects_GCJ |
---|
20291 | |
---|
20292 | # Dependencies to place before the objects being linked to create a |
---|
20293 | # shared library. |
---|
20294 | predeps=$lt_predeps_GCJ |
---|
20295 | |
---|
20296 | # Dependencies to place after the objects being linked to create a |
---|
20297 | # shared library. |
---|
20298 | postdeps=$lt_postdeps_GCJ |
---|
20299 | |
---|
20300 | # The library search path used internally by the compiler when linking |
---|
20301 | # a shared library. |
---|
20302 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
---|
20303 | |
---|
20304 | # Method to check whether dependent libraries are shared objects. |
---|
20305 | deplibs_check_method=$lt_deplibs_check_method |
---|
20306 | |
---|
20307 | # Command to use when deplibs_check_method == file_magic. |
---|
20308 | file_magic_cmd=$lt_file_magic_cmd |
---|
20309 | |
---|
20310 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
20311 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
---|
20312 | |
---|
20313 | # Flag that forces no undefined symbols. |
---|
20314 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
---|
20315 | |
---|
20316 | # Commands used to finish a libtool library installation in a directory. |
---|
20317 | finish_cmds=$lt_finish_cmds |
---|
20318 | |
---|
20319 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
20320 | finish_eval=$lt_finish_eval |
---|
20321 | |
---|
20322 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
20323 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
20324 | |
---|
20325 | # Transform the output of nm in a proper C declaration |
---|
20326 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
20327 | |
---|
20328 | # Transform the output of nm in a C name address pair |
---|
20329 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
20330 | |
---|
20331 | # This is the shared library runtime path variable. |
---|
20332 | runpath_var=$runpath_var |
---|
20333 | |
---|
20334 | # This is the shared library path variable. |
---|
20335 | shlibpath_var=$shlibpath_var |
---|
20336 | |
---|
20337 | # Is shlibpath searched before the hard-coded library search path? |
---|
20338 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
20339 | |
---|
20340 | # How to hardcode a shared library path into an executable. |
---|
20341 | hardcode_action=$hardcode_action_GCJ |
---|
20342 | |
---|
20343 | # Whether we should hardcode library paths into libraries. |
---|
20344 | hardcode_into_libs=$hardcode_into_libs |
---|
20345 | |
---|
20346 | # Flag to hardcode \$libdir into a binary during linking. |
---|
20347 | # This must work even if \$libdir does not exist. |
---|
20348 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
---|
20349 | |
---|
20350 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
20351 | # a binary during linking. This must work even if \$libdir does |
---|
20352 | # not exist. |
---|
20353 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
---|
20354 | |
---|
20355 | # Whether we need a single -rpath flag with a separated argument. |
---|
20356 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
---|
20357 | |
---|
20358 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
20359 | # resulting binary. |
---|
20360 | hardcode_direct=$hardcode_direct_GCJ |
---|
20361 | |
---|
20362 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
20363 | # resulting binary. |
---|
20364 | hardcode_minus_L=$hardcode_minus_L_GCJ |
---|
20365 | |
---|
20366 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
20367 | # the resulting binary. |
---|
20368 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
---|
20369 | |
---|
20370 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
20371 | # and all subsequent libraries and executables linked against it. |
---|
20372 | hardcode_automatic=$hardcode_automatic_GCJ |
---|
20373 | |
---|
20374 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
20375 | # restored at relink time. |
---|
20376 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
20377 | |
---|
20378 | # Whether libtool must link a program against all its dependency libraries. |
---|
20379 | link_all_deplibs=$link_all_deplibs_GCJ |
---|
20380 | |
---|
20381 | # Compile-time system search path for libraries |
---|
20382 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
20383 | |
---|
20384 | # Run-time system search path for libraries |
---|
20385 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
20386 | |
---|
20387 | # Fix the shell variable \$srcfile for the compiler. |
---|
20388 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
---|
20389 | |
---|
20390 | # Set to yes if exported symbols are required. |
---|
20391 | always_export_symbols=$always_export_symbols_GCJ |
---|
20392 | |
---|
20393 | # The commands to list exported symbols. |
---|
20394 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
---|
20395 | |
---|
20396 | # The commands to extract the exported symbol list from a shared archive. |
---|
20397 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
20398 | |
---|
20399 | # Symbols that should not be listed in the preloaded symbols. |
---|
20400 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
---|
20401 | |
---|
20402 | # Symbols that must always be exported. |
---|
20403 | include_expsyms=$lt_include_expsyms_GCJ |
---|
20404 | |
---|
20405 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
20406 | |
---|
20407 | __EOF__ |
---|
20408 | |
---|
20409 | |
---|
20410 | else |
---|
20411 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
20412 | # `config.status --recheck' to rerun these tests and create the |
---|
20413 | # libtool script then. |
---|
20414 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
20415 | if test -f "$ltmain_in"; then |
---|
20416 | test -f Makefile && make "$ltmain" |
---|
20417 | fi |
---|
20418 | fi |
---|
20419 | |
---|
20420 | |
---|
20421 | ac_ext=c |
---|
20422 | ac_cpp='$CPP $CPPFLAGS' |
---|
20423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
20424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
20425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
20426 | |
---|
20427 | CC="$lt_save_CC" |
---|
20428 | |
---|
20429 | else |
---|
20430 | tagname="" |
---|
20431 | fi |
---|
20432 | ;; |
---|
20433 | |
---|
20434 | RC) |
---|
20435 | |
---|
20436 | |
---|
20437 | # Source file extension for RC test sources. |
---|
20438 | ac_ext=rc |
---|
20439 | |
---|
20440 | # Object file extension for compiled RC test sources. |
---|
20441 | objext=o |
---|
20442 | objext_RC=$objext |
---|
20443 | |
---|
20444 | # Code to be used in simple compile tests |
---|
20445 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
---|
20446 | |
---|
20447 | # Code to be used in simple link tests |
---|
20448 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
---|
20449 | |
---|
20450 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
20451 | |
---|
20452 | # If no C compiler was specified, use CC. |
---|
20453 | LTCC=${LTCC-"$CC"} |
---|
20454 | |
---|
20455 | # Allow CC to be a program name with arguments. |
---|
20456 | compiler=$CC |
---|
20457 | |
---|
20458 | |
---|
20459 | # save warnings/boilerplate of simple test code |
---|
20460 | ac_outfile=conftest.$ac_objext |
---|
20461 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
20462 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
20463 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
20464 | $rm conftest* |
---|
20465 | |
---|
20466 | ac_outfile=conftest.$ac_objext |
---|
20467 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
20468 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
20469 | _lt_linker_boilerplate=`cat conftest.err` |
---|
20470 | $rm conftest* |
---|
20471 | |
---|
20472 | |
---|
20473 | # Allow CC to be a program name with arguments. |
---|
20474 | lt_save_CC="$CC" |
---|
20475 | CC=${RC-"windres"} |
---|
20476 | compiler=$CC |
---|
20477 | compiler_RC=$CC |
---|
20478 | for cc_temp in $compiler""; do |
---|
20479 | case $cc_temp in |
---|
20480 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
20481 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
20482 | \-*) ;; |
---|
20483 | *) break;; |
---|
20484 | esac |
---|
20485 | done |
---|
20486 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
20487 | |
---|
20488 | lt_cv_prog_compiler_c_o_RC=yes |
---|
20489 | |
---|
20490 | # The else clause should only fire when bootstrapping the |
---|
20491 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
20492 | # with your package, and you will get complaints that there are |
---|
20493 | # no rules to generate ltmain.sh. |
---|
20494 | if test -f "$ltmain"; then |
---|
20495 | # See if we are running on zsh, and set the options which allow our commands through |
---|
20496 | # without removal of \ escapes. |
---|
20497 | if test -n "${ZSH_VERSION+set}" ; then |
---|
20498 | setopt NO_GLOB_SUBST |
---|
20499 | fi |
---|
20500 | # Now quote all the things that may contain metacharacters while being |
---|
20501 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
20502 | # variables and quote the copies for generation of the libtool script. |
---|
20503 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
20504 | SED SHELL STRIP \ |
---|
20505 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
20506 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
20507 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
20508 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
20509 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
20510 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
20511 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
20512 | compiler_RC \ |
---|
20513 | CC_RC \ |
---|
20514 | LD_RC \ |
---|
20515 | lt_prog_compiler_wl_RC \ |
---|
20516 | lt_prog_compiler_pic_RC \ |
---|
20517 | lt_prog_compiler_static_RC \ |
---|
20518 | lt_prog_compiler_no_builtin_flag_RC \ |
---|
20519 | export_dynamic_flag_spec_RC \ |
---|
20520 | thread_safe_flag_spec_RC \ |
---|
20521 | whole_archive_flag_spec_RC \ |
---|
20522 | enable_shared_with_static_runtimes_RC \ |
---|
20523 | old_archive_cmds_RC \ |
---|
20524 | old_archive_from_new_cmds_RC \ |
---|
20525 | predep_objects_RC \ |
---|
20526 | postdep_objects_RC \ |
---|
20527 | predeps_RC \ |
---|
20528 | postdeps_RC \ |
---|
20529 | compiler_lib_search_path_RC \ |
---|
20530 | archive_cmds_RC \ |
---|
20531 | archive_expsym_cmds_RC \ |
---|
20532 | postinstall_cmds_RC \ |
---|
20533 | postuninstall_cmds_RC \ |
---|
20534 | old_archive_from_expsyms_cmds_RC \ |
---|
20535 | allow_undefined_flag_RC \ |
---|
20536 | no_undefined_flag_RC \ |
---|
20537 | export_symbols_cmds_RC \ |
---|
20538 | hardcode_libdir_flag_spec_RC \ |
---|
20539 | hardcode_libdir_flag_spec_ld_RC \ |
---|
20540 | hardcode_libdir_separator_RC \ |
---|
20541 | hardcode_automatic_RC \ |
---|
20542 | module_cmds_RC \ |
---|
20543 | module_expsym_cmds_RC \ |
---|
20544 | lt_cv_prog_compiler_c_o_RC \ |
---|
20545 | exclude_expsyms_RC \ |
---|
20546 | include_expsyms_RC; do |
---|
20547 | |
---|
20548 | case $var in |
---|
20549 | old_archive_cmds_RC | \ |
---|
20550 | old_archive_from_new_cmds_RC | \ |
---|
20551 | archive_cmds_RC | \ |
---|
20552 | archive_expsym_cmds_RC | \ |
---|
20553 | module_cmds_RC | \ |
---|
20554 | module_expsym_cmds_RC | \ |
---|
20555 | old_archive_from_expsyms_cmds_RC | \ |
---|
20556 | export_symbols_cmds_RC | \ |
---|
20557 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
20558 | postinstall_cmds | postuninstall_cmds | \ |
---|
20559 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
20560 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
20561 | # Double-quote double-evaled strings. |
---|
20562 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
20563 | ;; |
---|
20564 | *) |
---|
20565 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
20566 | ;; |
---|
20567 | esac |
---|
20568 | done |
---|
20569 | |
---|
20570 | case $lt_echo in |
---|
20571 | *'\$0 --fallback-echo"') |
---|
20572 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
20573 | ;; |
---|
20574 | esac |
---|
20575 | |
---|
20576 | cfgfile="$ofile" |
---|
20577 | |
---|
20578 | cat <<__EOF__ >> "$cfgfile" |
---|
20579 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
20580 | |
---|
20581 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
20582 | |
---|
20583 | # Shell to use when invoking shell scripts. |
---|
20584 | SHELL=$lt_SHELL |
---|
20585 | |
---|
20586 | # Whether or not to build shared libraries. |
---|
20587 | build_libtool_libs=$enable_shared |
---|
20588 | |
---|
20589 | # Whether or not to build static libraries. |
---|
20590 | build_old_libs=$enable_static |
---|
20591 | |
---|
20592 | # Whether or not to add -lc for building shared libraries. |
---|
20593 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
---|
20594 | |
---|
20595 | # Whether or not to disallow shared libs when runtime libs are static |
---|
20596 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
---|
20597 | |
---|
20598 | # Whether or not to optimize for fast installation. |
---|
20599 | fast_install=$enable_fast_install |
---|
20600 | |
---|
20601 | # The host system. |
---|
20602 | host_alias=$host_alias |
---|
20603 | host=$host |
---|
20604 | host_os=$host_os |
---|
20605 | |
---|
20606 | # The build system. |
---|
20607 | build_alias=$build_alias |
---|
20608 | build=$build |
---|
20609 | build_os=$build_os |
---|
20610 | |
---|
20611 | # An echo program that does not interpret backslashes. |
---|
20612 | echo=$lt_echo |
---|
20613 | |
---|
20614 | # The archiver. |
---|
20615 | AR=$lt_AR |
---|
20616 | AR_FLAGS=$lt_AR_FLAGS |
---|
20617 | |
---|
20618 | # A C compiler. |
---|
20619 | LTCC=$lt_LTCC |
---|
20620 | |
---|
20621 | # A language-specific compiler. |
---|
20622 | CC=$lt_compiler_RC |
---|
20623 | |
---|
20624 | # Is the compiler the GNU C compiler? |
---|
20625 | with_gcc=$GCC_RC |
---|
20626 | |
---|
20627 | # An ERE matcher. |
---|
20628 | EGREP=$lt_EGREP |
---|
20629 | |
---|
20630 | # The linker used to build libraries. |
---|
20631 | LD=$lt_LD_RC |
---|
20632 | |
---|
20633 | # Whether we need hard or soft links. |
---|
20634 | LN_S=$lt_LN_S |
---|
20635 | |
---|
20636 | # A BSD-compatible nm program. |
---|
20637 | NM=$lt_NM |
---|
20638 | |
---|
20639 | # A symbol stripping program |
---|
20640 | STRIP=$lt_STRIP |
---|
20641 | |
---|
20642 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
20643 | MAGIC_CMD=$MAGIC_CMD |
---|
20644 | |
---|
20645 | # Used on cygwin: DLL creation program. |
---|
20646 | DLLTOOL="$DLLTOOL" |
---|
20647 | |
---|
20648 | # Used on cygwin: object dumper. |
---|
20649 | OBJDUMP="$OBJDUMP" |
---|
20650 | |
---|
20651 | # Used on cygwin: assembler. |
---|
20652 | AS="$AS" |
---|
20653 | |
---|
20654 | # The name of the directory that contains temporary libtool files. |
---|
20655 | objdir=$objdir |
---|
20656 | |
---|
20657 | # How to create reloadable object files. |
---|
20658 | reload_flag=$lt_reload_flag |
---|
20659 | reload_cmds=$lt_reload_cmds |
---|
20660 | |
---|
20661 | # How to pass a linker flag through the compiler. |
---|
20662 | wl=$lt_lt_prog_compiler_wl_RC |
---|
20663 | |
---|
20664 | # Object file suffix (normally "o"). |
---|
20665 | objext="$ac_objext" |
---|
20666 | |
---|
20667 | # Old archive suffix (normally "a"). |
---|
20668 | libext="$libext" |
---|
20669 | |
---|
20670 | # Shared library suffix (normally ".so"). |
---|
20671 | shrext_cmds='$shrext_cmds' |
---|
20672 | |
---|
20673 | # Executable file suffix (normally ""). |
---|
20674 | exeext="$exeext" |
---|
20675 | |
---|
20676 | # Additional compiler flags for building library objects. |
---|
20677 | pic_flag=$lt_lt_prog_compiler_pic_RC |
---|
20678 | pic_mode=$pic_mode |
---|
20679 | |
---|
20680 | # What is the maximum length of a command? |
---|
20681 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
20682 | |
---|
20683 | # Does compiler simultaneously support -c and -o options? |
---|
20684 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
---|
20685 | |
---|
20686 | # Must we lock files when doing compilation? |
---|
20687 | need_locks=$lt_need_locks |
---|
20688 | |
---|
20689 | # Do we need the lib prefix for modules? |
---|
20690 | need_lib_prefix=$need_lib_prefix |
---|
20691 | |
---|
20692 | # Do we need a version for libraries? |
---|
20693 | need_version=$need_version |
---|
20694 | |
---|
20695 | # Whether dlopen is supported. |
---|
20696 | dlopen_support=$enable_dlopen |
---|
20697 | |
---|
20698 | # Whether dlopen of programs is supported. |
---|
20699 | dlopen_self=$enable_dlopen_self |
---|
20700 | |
---|
20701 | # Whether dlopen of statically linked programs is supported. |
---|
20702 | dlopen_self_static=$enable_dlopen_self_static |
---|
20703 | |
---|
20704 | # Compiler flag to prevent dynamic linking. |
---|
20705 | link_static_flag=$lt_lt_prog_compiler_static_RC |
---|
20706 | |
---|
20707 | # Compiler flag to turn off builtin functions. |
---|
20708 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
---|
20709 | |
---|
20710 | # Compiler flag to allow reflexive dlopens. |
---|
20711 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
---|
20712 | |
---|
20713 | # Compiler flag to generate shared objects directly from archives. |
---|
20714 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
---|
20715 | |
---|
20716 | # Compiler flag to generate thread-safe objects. |
---|
20717 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
---|
20718 | |
---|
20719 | # Library versioning type. |
---|
20720 | version_type=$version_type |
---|
20721 | |
---|
20722 | # Format of library name prefix. |
---|
20723 | libname_spec=$lt_libname_spec |
---|
20724 | |
---|
20725 | # List of archive names. First name is the real one, the rest are links. |
---|
20726 | # The last name is the one that the linker finds with -lNAME. |
---|
20727 | library_names_spec=$lt_library_names_spec |
---|
20728 | |
---|
20729 | # The coded name of the library, if different from the real name. |
---|
20730 | soname_spec=$lt_soname_spec |
---|
20731 | |
---|
20732 | # Commands used to build and install an old-style archive. |
---|
20733 | RANLIB=$lt_RANLIB |
---|
20734 | old_archive_cmds=$lt_old_archive_cmds_RC |
---|
20735 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
20736 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
20737 | |
---|
20738 | # Create an old-style archive from a shared archive. |
---|
20739 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
---|
20740 | |
---|
20741 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
20742 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
---|
20743 | |
---|
20744 | # Commands used to build and install a shared archive. |
---|
20745 | archive_cmds=$lt_archive_cmds_RC |
---|
20746 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
---|
20747 | postinstall_cmds=$lt_postinstall_cmds |
---|
20748 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
20749 | |
---|
20750 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
20751 | module_cmds=$lt_module_cmds_RC |
---|
20752 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
---|
20753 | |
---|
20754 | # Commands to strip libraries. |
---|
20755 | old_striplib=$lt_old_striplib |
---|
20756 | striplib=$lt_striplib |
---|
20757 | |
---|
20758 | # Dependencies to place before the objects being linked to create a |
---|
20759 | # shared library. |
---|
20760 | predep_objects=$lt_predep_objects_RC |
---|
20761 | |
---|
20762 | # Dependencies to place after the objects being linked to create a |
---|
20763 | # shared library. |
---|
20764 | postdep_objects=$lt_postdep_objects_RC |
---|
20765 | |
---|
20766 | # Dependencies to place before the objects being linked to create a |
---|
20767 | # shared library. |
---|
20768 | predeps=$lt_predeps_RC |
---|
20769 | |
---|
20770 | # Dependencies to place after the objects being linked to create a |
---|
20771 | # shared library. |
---|
20772 | postdeps=$lt_postdeps_RC |
---|
20773 | |
---|
20774 | # The library search path used internally by the compiler when linking |
---|
20775 | # a shared library. |
---|
20776 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
---|
20777 | |
---|
20778 | # Method to check whether dependent libraries are shared objects. |
---|
20779 | deplibs_check_method=$lt_deplibs_check_method |
---|
20780 | |
---|
20781 | # Command to use when deplibs_check_method == file_magic. |
---|
20782 | file_magic_cmd=$lt_file_magic_cmd |
---|
20783 | |
---|
20784 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
20785 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
---|
20786 | |
---|
20787 | # Flag that forces no undefined symbols. |
---|
20788 | no_undefined_flag=$lt_no_undefined_flag_RC |
---|
20789 | |
---|
20790 | # Commands used to finish a libtool library installation in a directory. |
---|
20791 | finish_cmds=$lt_finish_cmds |
---|
20792 | |
---|
20793 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
20794 | finish_eval=$lt_finish_eval |
---|
20795 | |
---|
20796 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
20797 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
20798 | |
---|
20799 | # Transform the output of nm in a proper C declaration |
---|
20800 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
20801 | |
---|
20802 | # Transform the output of nm in a C name address pair |
---|
20803 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
20804 | |
---|
20805 | # This is the shared library runtime path variable. |
---|
20806 | runpath_var=$runpath_var |
---|
20807 | |
---|
20808 | # This is the shared library path variable. |
---|
20809 | shlibpath_var=$shlibpath_var |
---|
20810 | |
---|
20811 | # Is shlibpath searched before the hard-coded library search path? |
---|
20812 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
20813 | |
---|
20814 | # How to hardcode a shared library path into an executable. |
---|
20815 | hardcode_action=$hardcode_action_RC |
---|
20816 | |
---|
20817 | # Whether we should hardcode library paths into libraries. |
---|
20818 | hardcode_into_libs=$hardcode_into_libs |
---|
20819 | |
---|
20820 | # Flag to hardcode \$libdir into a binary during linking. |
---|
20821 | # This must work even if \$libdir does not exist. |
---|
20822 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
---|
20823 | |
---|
20824 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
20825 | # a binary during linking. This must work even if \$libdir does |
---|
20826 | # not exist. |
---|
20827 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
---|
20828 | |
---|
20829 | # Whether we need a single -rpath flag with a separated argument. |
---|
20830 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
---|
20831 | |
---|
20832 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
20833 | # resulting binary. |
---|
20834 | hardcode_direct=$hardcode_direct_RC |
---|
20835 | |
---|
20836 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
20837 | # resulting binary. |
---|
20838 | hardcode_minus_L=$hardcode_minus_L_RC |
---|
20839 | |
---|
20840 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
20841 | # the resulting binary. |
---|
20842 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
---|
20843 | |
---|
20844 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
20845 | # and all subsequent libraries and executables linked against it. |
---|
20846 | hardcode_automatic=$hardcode_automatic_RC |
---|
20847 | |
---|
20848 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
20849 | # restored at relink time. |
---|
20850 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
20851 | |
---|
20852 | # Whether libtool must link a program against all its dependency libraries. |
---|
20853 | link_all_deplibs=$link_all_deplibs_RC |
---|
20854 | |
---|
20855 | # Compile-time system search path for libraries |
---|
20856 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
20857 | |
---|
20858 | # Run-time system search path for libraries |
---|
20859 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
20860 | |
---|
20861 | # Fix the shell variable \$srcfile for the compiler. |
---|
20862 | fix_srcfile_path="$fix_srcfile_path_RC" |
---|
20863 | |
---|
20864 | # Set to yes if exported symbols are required. |
---|
20865 | always_export_symbols=$always_export_symbols_RC |
---|
20866 | |
---|
20867 | # The commands to list exported symbols. |
---|
20868 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
---|
20869 | |
---|
20870 | # The commands to extract the exported symbol list from a shared archive. |
---|
20871 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
20872 | |
---|
20873 | # Symbols that should not be listed in the preloaded symbols. |
---|
20874 | exclude_expsyms=$lt_exclude_expsyms_RC |
---|
20875 | |
---|
20876 | # Symbols that must always be exported. |
---|
20877 | include_expsyms=$lt_include_expsyms_RC |
---|
20878 | |
---|
20879 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
20880 | |
---|
20881 | __EOF__ |
---|
20882 | |
---|
20883 | |
---|
20884 | else |
---|
20885 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
20886 | # `config.status --recheck' to rerun these tests and create the |
---|
20887 | # libtool script then. |
---|
20888 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
20889 | if test -f "$ltmain_in"; then |
---|
20890 | test -f Makefile && make "$ltmain" |
---|
20891 | fi |
---|
20892 | fi |
---|
20893 | |
---|
20894 | |
---|
20895 | ac_ext=c |
---|
20896 | ac_cpp='$CPP $CPPFLAGS' |
---|
20897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
20898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
20899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
20900 | |
---|
20901 | CC="$lt_save_CC" |
---|
20902 | |
---|
20903 | ;; |
---|
20904 | |
---|
20905 | *) |
---|
20906 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
---|
20907 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
---|
20908 | { (exit 1); exit 1; }; } |
---|
20909 | ;; |
---|
20910 | esac |
---|
20911 | |
---|
20912 | # Append the new tag name to the list of available tags. |
---|
20913 | if test -n "$tagname" ; then |
---|
20914 | available_tags="$available_tags $tagname" |
---|
20915 | fi |
---|
20916 | fi |
---|
20917 | done |
---|
20918 | IFS="$lt_save_ifs" |
---|
20919 | |
---|
20920 | # Now substitute the updated list of available tags. |
---|
20921 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
---|
20922 | mv "${ofile}T" "$ofile" |
---|
20923 | chmod +x "$ofile" |
---|
20924 | else |
---|
20925 | rm -f "${ofile}T" |
---|
20926 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
---|
20927 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
---|
20928 | { (exit 1); exit 1; }; } |
---|
20929 | fi |
---|
20930 | fi |
---|
20931 | |
---|
20932 | |
---|
20933 | |
---|
20934 | # This can be used to rebuild libtool when needed |
---|
20935 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
---|
20936 | |
---|
20937 | # Always use our own libtool. |
---|
20938 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
20939 | |
---|
20940 | # Prevent multiple expansion |
---|
20941 | |
---|
20942 | |
---|
20943 | |
---|
20944 | |
---|
20945 | |
---|
20946 | |
---|
20947 | |
---|
20948 | |
---|
20949 | |
---|
20950 | |
---|
20951 | |
---|
20952 | |
---|
20953 | |
---|
20954 | |
---|
20955 | |
---|
20956 | |
---|
20957 | |
---|
20958 | |
---|
20959 | |
---|
20960 | |
---|
20961 | ac_ext=cpp |
---|
20962 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
20963 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
20964 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
20965 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
20966 | |
---|
20967 | |
---|
20968 | |
---|
20969 | |
---|
20970 | archive_cmds_need_lc_CXX=no |
---|
20971 | allow_undefined_flag_CXX= |
---|
20972 | always_export_symbols_CXX=no |
---|
20973 | archive_expsym_cmds_CXX= |
---|
20974 | export_dynamic_flag_spec_CXX= |
---|
20975 | hardcode_direct_CXX=no |
---|
20976 | hardcode_libdir_flag_spec_CXX= |
---|
20977 | hardcode_libdir_flag_spec_ld_CXX= |
---|
20978 | hardcode_libdir_separator_CXX= |
---|
20979 | hardcode_minus_L_CXX=no |
---|
20980 | hardcode_automatic_CXX=no |
---|
20981 | module_cmds_CXX= |
---|
20982 | module_expsym_cmds_CXX= |
---|
20983 | link_all_deplibs_CXX=unknown |
---|
20984 | old_archive_cmds_CXX=$old_archive_cmds |
---|
20985 | no_undefined_flag_CXX= |
---|
20986 | whole_archive_flag_spec_CXX= |
---|
20987 | enable_shared_with_static_runtimes_CXX=no |
---|
20988 | |
---|
20989 | # Dependencies to place before and after the object being linked: |
---|
20990 | predep_objects_CXX= |
---|
20991 | postdep_objects_CXX= |
---|
20992 | predeps_CXX= |
---|
20993 | postdeps_CXX= |
---|
20994 | compiler_lib_search_path_CXX= |
---|
20995 | |
---|
20996 | # Source file extension for C++ test sources. |
---|
20997 | ac_ext=cpp |
---|
20998 | |
---|
20999 | # Object file extension for compiled C++ test sources. |
---|
21000 | objext=o |
---|
21001 | objext_CXX=$objext |
---|
21002 | |
---|
21003 | # Code to be used in simple compile tests |
---|
21004 | lt_simple_compile_test_code="int some_variable = 0;\n" |
---|
21005 | |
---|
21006 | # Code to be used in simple link tests |
---|
21007 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
---|
21008 | |
---|
21009 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
---|
21010 | |
---|
21011 | # If no C compiler was specified, use CC. |
---|
21012 | LTCC=${LTCC-"$CC"} |
---|
21013 | |
---|
21014 | # Allow CC to be a program name with arguments. |
---|
21015 | compiler=$CC |
---|
21016 | |
---|
21017 | |
---|
21018 | # save warnings/boilerplate of simple test code |
---|
21019 | ac_outfile=conftest.$ac_objext |
---|
21020 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
21021 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
21022 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
21023 | $rm conftest* |
---|
21024 | |
---|
21025 | ac_outfile=conftest.$ac_objext |
---|
21026 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
21027 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
---|
21028 | _lt_linker_boilerplate=`cat conftest.err` |
---|
21029 | $rm conftest* |
---|
21030 | |
---|
21031 | |
---|
21032 | # Allow CC to be a program name with arguments. |
---|
21033 | lt_save_CC=$CC |
---|
21034 | lt_save_LD=$LD |
---|
21035 | lt_save_GCC=$GCC |
---|
21036 | GCC=$GXX |
---|
21037 | lt_save_with_gnu_ld=$with_gnu_ld |
---|
21038 | lt_save_path_LD=$lt_cv_path_LD |
---|
21039 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
---|
21040 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
---|
21041 | else |
---|
21042 | unset lt_cv_prog_gnu_ld |
---|
21043 | fi |
---|
21044 | if test -n "${lt_cv_path_LDCXX+set}"; then |
---|
21045 | lt_cv_path_LD=$lt_cv_path_LDCXX |
---|
21046 | else |
---|
21047 | unset lt_cv_path_LD |
---|
21048 | fi |
---|
21049 | test -z "${LDCXX+set}" || LD=$LDCXX |
---|
21050 | CC=${CXX-"c++"} |
---|
21051 | compiler=$CC |
---|
21052 | compiler_CXX=$CC |
---|
21053 | for cc_temp in $compiler""; do |
---|
21054 | case $cc_temp in |
---|
21055 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
21056 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
21057 | \-*) ;; |
---|
21058 | *) break;; |
---|
21059 | esac |
---|
21060 | done |
---|
21061 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
---|
21062 | |
---|
21063 | |
---|
21064 | # We don't want -fno-exception wen compiling C++ code, so set the |
---|
21065 | # no_builtin_flag separately |
---|
21066 | if test "$GXX" = yes; then |
---|
21067 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
---|
21068 | else |
---|
21069 | lt_prog_compiler_no_builtin_flag_CXX= |
---|
21070 | fi |
---|
21071 | |
---|
21072 | if test "$GXX" = yes; then |
---|
21073 | # Set up default GNU C++ configuration |
---|
21074 | |
---|
21075 | |
---|
21076 | # Check whether --with-gnu-ld was given. |
---|
21077 | if test "${with_gnu_ld+set}" = set; then |
---|
21078 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
---|
21079 | else |
---|
21080 | with_gnu_ld=no |
---|
21081 | fi |
---|
21082 | |
---|
21083 | ac_prog=ld |
---|
21084 | if test "$GCC" = yes; then |
---|
21085 | # Check if gcc -print-prog-name=ld gives a path. |
---|
21086 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
---|
21087 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
---|
21088 | case $host in |
---|
21089 | *-*-mingw*) |
---|
21090 | # gcc leaves a trailing carriage return which upsets mingw |
---|
21091 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
21092 | *) |
---|
21093 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
21094 | esac |
---|
21095 | case $ac_prog in |
---|
21096 | # Accept absolute paths. |
---|
21097 | [\\/]* | ?:[\\/]*) |
---|
21098 | re_direlt='/[^/][^/]*/\.\./' |
---|
21099 | # Canonicalize the pathname of ld |
---|
21100 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
---|
21101 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
21102 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
---|
21103 | done |
---|
21104 | test -z "$LD" && LD="$ac_prog" |
---|
21105 | ;; |
---|
21106 | "") |
---|
21107 | # If it fails, then pretend we aren't using GCC. |
---|
21108 | ac_prog=ld |
---|
21109 | ;; |
---|
21110 | *) |
---|
21111 | # If it is relative, then search for the first ld in PATH. |
---|
21112 | with_gnu_ld=unknown |
---|
21113 | ;; |
---|
21114 | esac |
---|
21115 | elif test "$with_gnu_ld" = yes; then |
---|
21116 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
---|
21117 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
---|
21118 | else |
---|
21119 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
---|
21120 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
---|
21121 | fi |
---|
21122 | if test "${lt_cv_path_LD+set}" = set; then |
---|
21123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
21124 | else |
---|
21125 | if test -z "$LD"; then |
---|
21126 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
21127 | for ac_dir in $PATH; do |
---|
21128 | IFS="$lt_save_ifs" |
---|
21129 | test -z "$ac_dir" && ac_dir=. |
---|
21130 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
21131 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
21132 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
21133 | # but apparently some variants of GNU ld only accept -v. |
---|
21134 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
21135 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
21136 | *GNU* | *'with BFD'*) |
---|
21137 | test "$with_gnu_ld" != no && break |
---|
21138 | ;; |
---|
21139 | *) |
---|
21140 | test "$with_gnu_ld" != yes && break |
---|
21141 | ;; |
---|
21142 | esac |
---|
21143 | fi |
---|
21144 | done |
---|
21145 | IFS="$lt_save_ifs" |
---|
21146 | else |
---|
21147 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
21148 | fi |
---|
21149 | fi |
---|
21150 | |
---|
21151 | LD="$lt_cv_path_LD" |
---|
21152 | if test -n "$LD"; then |
---|
21153 | { echo "$as_me:$LINENO: result: $LD" >&5 |
---|
21154 | echo "${ECHO_T}$LD" >&6; } |
---|
21155 | else |
---|
21156 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
21157 | echo "${ECHO_T}no" >&6; } |
---|
21158 | fi |
---|
21159 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
---|
21160 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
---|
21161 | { (exit 1); exit 1; }; } |
---|
21162 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
---|
21163 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
---|
21164 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
---|
21165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
21166 | else |
---|
21167 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
21168 | case `$LD -v 2>&1 </dev/null` in |
---|
21169 | *GNU* | *'with BFD'*) |
---|
21170 | lt_cv_prog_gnu_ld=yes |
---|
21171 | ;; |
---|
21172 | *) |
---|
21173 | lt_cv_prog_gnu_ld=no |
---|
21174 | ;; |
---|
21175 | esac |
---|
21176 | fi |
---|
21177 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
---|
21178 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
---|
21179 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
21180 | |
---|
21181 | |
---|
21182 | |
---|
21183 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
---|
21184 | # archiving commands below assume that GNU ld is being used. |
---|
21185 | if test "$with_gnu_ld" = yes; then |
---|
21186 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
21187 | 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' |
---|
21188 | |
---|
21189 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
21190 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
21191 | |
---|
21192 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
21193 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
---|
21194 | # investigate it a little bit more. (MM) |
---|
21195 | wlarc='${wl}' |
---|
21196 | |
---|
21197 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
21198 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
---|
21199 | grep 'no-whole-archive' > /dev/null; then |
---|
21200 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
21201 | else |
---|
21202 | whole_archive_flag_spec_CXX= |
---|
21203 | fi |
---|
21204 | else |
---|
21205 | with_gnu_ld=no |
---|
21206 | wlarc= |
---|
21207 | |
---|
21208 | # A generic and very simple default shared library creation |
---|
21209 | # command for GNU C++ for the case where it uses the native |
---|
21210 | # linker, instead of GNU ld. If possible, this setting should |
---|
21211 | # overridden to take advantage of the native linker features on |
---|
21212 | # the platform it is being used on. |
---|
21213 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
21214 | fi |
---|
21215 | |
---|
21216 | # Commands to make compiler produce verbose output that lists |
---|
21217 | # what "hidden" libraries, object files and flags are used when |
---|
21218 | # linking a shared library. |
---|
21219 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
21220 | |
---|
21221 | else |
---|
21222 | GXX=no |
---|
21223 | with_gnu_ld=no |
---|
21224 | wlarc= |
---|
21225 | fi |
---|
21226 | |
---|
21227 | # PORTME: fill in a description of your system's C++ link characteristics |
---|
21228 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
21229 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
21230 | ld_shlibs_CXX=yes |
---|
21231 | case $host_os in |
---|
21232 | aix3*) |
---|
21233 | # FIXME: insert proper C++ library support |
---|
21234 | ld_shlibs_CXX=no |
---|
21235 | ;; |
---|
21236 | aix4* | aix5*) |
---|
21237 | if test "$host_cpu" = ia64; then |
---|
21238 | # On IA64, the linker does run time linking by default, so we don't |
---|
21239 | # have to do anything special. |
---|
21240 | aix_use_runtimelinking=no |
---|
21241 | exp_sym_flag='-Bexport' |
---|
21242 | no_entry_flag="" |
---|
21243 | else |
---|
21244 | aix_use_runtimelinking=no |
---|
21245 | |
---|
21246 | # Test if we are trying to use run time linking or normal |
---|
21247 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
21248 | # need to do runtime linking. |
---|
21249 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
---|
21250 | for ld_flag in $LDFLAGS; do |
---|
21251 | case $ld_flag in |
---|
21252 | *-brtl*) |
---|
21253 | aix_use_runtimelinking=yes |
---|
21254 | break |
---|
21255 | ;; |
---|
21256 | esac |
---|
21257 | done |
---|
21258 | esac |
---|
21259 | |
---|
21260 | exp_sym_flag='-bexport' |
---|
21261 | no_entry_flag='-bnoentry' |
---|
21262 | fi |
---|
21263 | |
---|
21264 | # When large executables or shared objects are built, AIX ld can |
---|
21265 | # have problems creating the table of contents. If linking a library |
---|
21266 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
21267 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
21268 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
21269 | |
---|
21270 | archive_cmds_CXX='' |
---|
21271 | hardcode_direct_CXX=yes |
---|
21272 | hardcode_libdir_separator_CXX=':' |
---|
21273 | link_all_deplibs_CXX=yes |
---|
21274 | |
---|
21275 | if test "$GXX" = yes; then |
---|
21276 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
21277 | # We only want to do this on AIX 4.2 and lower, the check |
---|
21278 | # below for broken collect2 doesn't work under 4.3+ |
---|
21279 | collect2name=`${CC} -print-prog-name=collect2` |
---|
21280 | if test -f "$collect2name" && \ |
---|
21281 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
---|
21282 | then |
---|
21283 | # We have reworked collect2 |
---|
21284 | hardcode_direct_CXX=yes |
---|
21285 | else |
---|
21286 | # We have old collect2 |
---|
21287 | hardcode_direct_CXX=unsupported |
---|
21288 | # It fails to find uninstalled libraries when the uninstalled |
---|
21289 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
21290 | # to unsupported forces relinking |
---|
21291 | hardcode_minus_L_CXX=yes |
---|
21292 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
21293 | hardcode_libdir_separator_CXX= |
---|
21294 | fi |
---|
21295 | esac |
---|
21296 | shared_flag='-shared' |
---|
21297 | if test "$aix_use_runtimelinking" = yes; then |
---|
21298 | shared_flag="$shared_flag "'${wl}-G' |
---|
21299 | fi |
---|
21300 | else |
---|
21301 | # not using gcc |
---|
21302 | if test "$host_cpu" = ia64; then |
---|
21303 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
21304 | # chokes on -Wl,-G. The following line is correct: |
---|
21305 | shared_flag='-G' |
---|
21306 | else |
---|
21307 | if test "$aix_use_runtimelinking" = yes; then |
---|
21308 | shared_flag='${wl}-G' |
---|
21309 | else |
---|
21310 | shared_flag='${wl}-bM:SRE' |
---|
21311 | fi |
---|
21312 | fi |
---|
21313 | fi |
---|
21314 | |
---|
21315 | # It seems that -bexpall does not export symbols beginning with |
---|
21316 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
21317 | always_export_symbols_CXX=yes |
---|
21318 | if test "$aix_use_runtimelinking" = yes; then |
---|
21319 | # Warning - without using the other runtime loading flags (-brtl), |
---|
21320 | # -berok will link without error, but may produce a broken library. |
---|
21321 | allow_undefined_flag_CXX='-berok' |
---|
21322 | # Determine the default libpath from the value encoded in an empty executable. |
---|
21323 | cat >conftest.$ac_ext <<_ACEOF |
---|
21324 | /* confdefs.h. */ |
---|
21325 | _ACEOF |
---|
21326 | cat confdefs.h >>conftest.$ac_ext |
---|
21327 | cat >>conftest.$ac_ext <<_ACEOF |
---|
21328 | /* end confdefs.h. */ |
---|
21329 | |
---|
21330 | int |
---|
21331 | main () |
---|
21332 | { |
---|
21333 | |
---|
21334 | ; |
---|
21335 | return 0; |
---|
21336 | } |
---|
21337 | _ACEOF |
---|
21338 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
21339 | if { (ac_try="$ac_link" |
---|
21340 | case "(($ac_try" in |
---|
21341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
21342 | *) ac_try_echo=$ac_try;; |
---|
21343 | esac |
---|
21344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
21345 | (eval "$ac_link") 2>conftest.er1 |
---|
21346 | ac_status=$? |
---|
21347 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
21348 | rm -f conftest.er1 |
---|
21349 | cat conftest.err >&5 |
---|
21350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
21351 | (exit $ac_status); } && { |
---|
21352 | test -z "$ac_cxx_werror_flag" || |
---|
21353 | test ! -s conftest.err |
---|
21354 | } && test -s conftest$ac_exeext && |
---|
21355 | $as_test_x conftest$ac_exeext; then |
---|
21356 | |
---|
21357 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
21358 | }'` |
---|
21359 | # Check for a 64-bit object if we didn't find anything. |
---|
21360 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
21361 | }'`; fi |
---|
21362 | else |
---|
21363 | echo "$as_me: failed program was:" >&5 |
---|
21364 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
21365 | |
---|
21366 | |
---|
21367 | fi |
---|
21368 | |
---|
21369 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
21370 | conftest$ac_exeext conftest.$ac_ext |
---|
21371 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
21372 | |
---|
21373 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
21374 | |
---|
21375 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
21376 | else |
---|
21377 | if test "$host_cpu" = ia64; then |
---|
21378 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
---|
21379 | allow_undefined_flag_CXX="-z nodefs" |
---|
21380 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
---|
21381 | else |
---|
21382 | # Determine the default libpath from the value encoded in an empty executable. |
---|
21383 | cat >conftest.$ac_ext <<_ACEOF |
---|
21384 | /* confdefs.h. */ |
---|
21385 | _ACEOF |
---|
21386 | cat confdefs.h >>conftest.$ac_ext |
---|
21387 | cat >>conftest.$ac_ext <<_ACEOF |
---|
21388 | /* end confdefs.h. */ |
---|
21389 | |
---|
21390 | int |
---|
21391 | main () |
---|
21392 | { |
---|
21393 | |
---|
21394 | ; |
---|
21395 | return 0; |
---|
21396 | } |
---|
21397 | _ACEOF |
---|
21398 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
21399 | if { (ac_try="$ac_link" |
---|
21400 | case "(($ac_try" in |
---|
21401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
21402 | *) ac_try_echo=$ac_try;; |
---|
21403 | esac |
---|
21404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
21405 | (eval "$ac_link") 2>conftest.er1 |
---|
21406 | ac_status=$? |
---|
21407 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
21408 | rm -f conftest.er1 |
---|
21409 | cat conftest.err >&5 |
---|
21410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
21411 | (exit $ac_status); } && { |
---|
21412 | test -z "$ac_cxx_werror_flag" || |
---|
21413 | test ! -s conftest.err |
---|
21414 | } && test -s conftest$ac_exeext && |
---|
21415 | $as_test_x conftest$ac_exeext; then |
---|
21416 | |
---|
21417 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
21418 | }'` |
---|
21419 | # Check for a 64-bit object if we didn't find anything. |
---|
21420 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
---|
21421 | }'`; fi |
---|
21422 | else |
---|
21423 | echo "$as_me: failed program was:" >&5 |
---|
21424 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
21425 | |
---|
21426 | |
---|
21427 | fi |
---|
21428 | |
---|
21429 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
21430 | conftest$ac_exeext conftest.$ac_ext |
---|
21431 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
---|
21432 | |
---|
21433 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
21434 | # Warning - without using the other run time loading flags, |
---|
21435 | # -berok will link without error, but may produce a broken library. |
---|
21436 | no_undefined_flag_CXX=' ${wl}-bernotok' |
---|
21437 | allow_undefined_flag_CXX=' ${wl}-berok' |
---|
21438 | # -bexpall does not export symbols beginning with underscore (_) |
---|
21439 | always_export_symbols_CXX=yes |
---|
21440 | # Exported symbols can be pulled into shared objects from archives |
---|
21441 | whole_archive_flag_spec_CXX=' ' |
---|
21442 | archive_cmds_need_lc_CXX=yes |
---|
21443 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
21444 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
---|
21445 | fi |
---|
21446 | fi |
---|
21447 | ;; |
---|
21448 | chorus*) |
---|
21449 | case $cc_basename in |
---|
21450 | *) |
---|
21451 | # FIXME: insert proper C++ library support |
---|
21452 | ld_shlibs_CXX=no |
---|
21453 | ;; |
---|
21454 | esac |
---|
21455 | ;; |
---|
21456 | |
---|
21457 | |
---|
21458 | cygwin* | mingw* | pw32*) |
---|
21459 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
---|
21460 | # as there is no search path for DLLs. |
---|
21461 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
21462 | allow_undefined_flag_CXX=unsupported |
---|
21463 | always_export_symbols_CXX=no |
---|
21464 | enable_shared_with_static_runtimes_CXX=yes |
---|
21465 | |
---|
21466 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
---|
21467 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
21468 | # If the export-symbols file already is a .def file (1st line |
---|
21469 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
21470 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
21471 | cp $export_symbols $output_objdir/$soname.def; |
---|
21472 | else |
---|
21473 | echo EXPORTS > $output_objdir/$soname.def; |
---|
21474 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
21475 | fi~ |
---|
21476 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
---|
21477 | else |
---|
21478 | ld_shlibs_CXX=no |
---|
21479 | fi |
---|
21480 | ;; |
---|
21481 | darwin* | rhapsody*) |
---|
21482 | case $host_os in |
---|
21483 | rhapsody* | darwin1.[012]) |
---|
21484 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
---|
21485 | ;; |
---|
21486 | *) # Darwin 1.3 on |
---|
21487 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
---|
21488 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
21489 | else |
---|
21490 | case ${MACOSX_DEPLOYMENT_TARGET} in |
---|
21491 | 10.[012]) |
---|
21492 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
---|
21493 | ;; |
---|
21494 | 10.*) |
---|
21495 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
---|
21496 | ;; |
---|
21497 | esac |
---|
21498 | fi |
---|
21499 | ;; |
---|
21500 | esac |
---|
21501 | archive_cmds_need_lc_CXX=no |
---|
21502 | hardcode_direct_CXX=no |
---|
21503 | hardcode_automatic_CXX=yes |
---|
21504 | hardcode_shlibpath_var_CXX=unsupported |
---|
21505 | whole_archive_flag_spec_CXX='' |
---|
21506 | link_all_deplibs_CXX=yes |
---|
21507 | |
---|
21508 | if test "$GXX" = yes ; then |
---|
21509 | lt_int_apple_cc_single_mod=no |
---|
21510 | output_verbose_link_cmd='echo' |
---|
21511 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
---|
21512 | lt_int_apple_cc_single_mod=yes |
---|
21513 | fi |
---|
21514 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
21515 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
---|
21516 | else |
---|
21517 | 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' |
---|
21518 | fi |
---|
21519 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
21520 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
21521 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
---|
21522 | 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}' |
---|
21523 | else |
---|
21524 | 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}' |
---|
21525 | fi |
---|
21526 | 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}' |
---|
21527 | else |
---|
21528 | case $cc_basename in |
---|
21529 | xlc*) |
---|
21530 | output_verbose_link_cmd='echo' |
---|
21531 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
---|
21532 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
---|
21533 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
---|
21534 | 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
21535 | 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}' |
---|
21536 | ;; |
---|
21537 | *) |
---|
21538 | ld_shlibs_CXX=no |
---|
21539 | ;; |
---|
21540 | esac |
---|
21541 | fi |
---|
21542 | ;; |
---|
21543 | |
---|
21544 | dgux*) |
---|
21545 | case $cc_basename in |
---|
21546 | ec++*) |
---|
21547 | # FIXME: insert proper C++ library support |
---|
21548 | ld_shlibs_CXX=no |
---|
21549 | ;; |
---|
21550 | ghcx*) |
---|
21551 | # Green Hills C++ Compiler |
---|
21552 | # FIXME: insert proper C++ library support |
---|
21553 | ld_shlibs_CXX=no |
---|
21554 | ;; |
---|
21555 | *) |
---|
21556 | # FIXME: insert proper C++ library support |
---|
21557 | ld_shlibs_CXX=no |
---|
21558 | ;; |
---|
21559 | esac |
---|
21560 | ;; |
---|
21561 | freebsd[12]*) |
---|
21562 | # C++ shared libraries reported to be fairly broken before switch to ELF |
---|
21563 | ld_shlibs_CXX=no |
---|
21564 | ;; |
---|
21565 | freebsd-elf*) |
---|
21566 | archive_cmds_need_lc_CXX=no |
---|
21567 | ;; |
---|
21568 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
21569 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
---|
21570 | # conventions |
---|
21571 | ld_shlibs_CXX=yes |
---|
21572 | ;; |
---|
21573 | gnu*) |
---|
21574 | ;; |
---|
21575 | hpux9*) |
---|
21576 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
21577 | hardcode_libdir_separator_CXX=: |
---|
21578 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
21579 | hardcode_direct_CXX=yes |
---|
21580 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
21581 | # but as the default |
---|
21582 | # location of the library. |
---|
21583 | |
---|
21584 | case $cc_basename in |
---|
21585 | CC*) |
---|
21586 | # FIXME: insert proper C++ library support |
---|
21587 | ld_shlibs_CXX=no |
---|
21588 | ;; |
---|
21589 | aCC*) |
---|
21590 | 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' |
---|
21591 | # Commands to make compiler produce verbose output that lists |
---|
21592 | # what "hidden" libraries, object files and flags are used when |
---|
21593 | # linking a shared library. |
---|
21594 | # |
---|
21595 | # There doesn't appear to be a way to prevent this compiler from |
---|
21596 | # explicitly linking system object files so we need to strip them |
---|
21597 | # from the output so that they don't get included in the library |
---|
21598 | # dependencies. |
---|
21599 | 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' |
---|
21600 | ;; |
---|
21601 | *) |
---|
21602 | if test "$GXX" = yes; then |
---|
21603 | 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' |
---|
21604 | else |
---|
21605 | # FIXME: insert proper C++ library support |
---|
21606 | ld_shlibs_CXX=no |
---|
21607 | fi |
---|
21608 | ;; |
---|
21609 | esac |
---|
21610 | ;; |
---|
21611 | hpux10*|hpux11*) |
---|
21612 | if test $with_gnu_ld = no; then |
---|
21613 | case $host_cpu in |
---|
21614 | hppa*64*) |
---|
21615 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
21616 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
---|
21617 | hardcode_libdir_separator_CXX=: |
---|
21618 | ;; |
---|
21619 | ia64*) |
---|
21620 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
---|
21621 | ;; |
---|
21622 | *) |
---|
21623 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
---|
21624 | hardcode_libdir_separator_CXX=: |
---|
21625 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
21626 | ;; |
---|
21627 | esac |
---|
21628 | fi |
---|
21629 | case $host_cpu in |
---|
21630 | hppa*64*) |
---|
21631 | hardcode_direct_CXX=no |
---|
21632 | hardcode_shlibpath_var_CXX=no |
---|
21633 | ;; |
---|
21634 | ia64*) |
---|
21635 | hardcode_direct_CXX=no |
---|
21636 | hardcode_shlibpath_var_CXX=no |
---|
21637 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
21638 | # but as the default |
---|
21639 | # location of the library. |
---|
21640 | ;; |
---|
21641 | *) |
---|
21642 | hardcode_direct_CXX=yes |
---|
21643 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
---|
21644 | # but as the default |
---|
21645 | # location of the library. |
---|
21646 | ;; |
---|
21647 | esac |
---|
21648 | |
---|
21649 | case $cc_basename in |
---|
21650 | CC*) |
---|
21651 | # FIXME: insert proper C++ library support |
---|
21652 | ld_shlibs_CXX=no |
---|
21653 | ;; |
---|
21654 | aCC*) |
---|
21655 | case $host_cpu in |
---|
21656 | hppa*64*|ia64*) |
---|
21657 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
21658 | ;; |
---|
21659 | *) |
---|
21660 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
21661 | ;; |
---|
21662 | esac |
---|
21663 | # Commands to make compiler produce verbose output that lists |
---|
21664 | # what "hidden" libraries, object files and flags are used when |
---|
21665 | # linking a shared library. |
---|
21666 | # |
---|
21667 | # There doesn't appear to be a way to prevent this compiler from |
---|
21668 | # explicitly linking system object files so we need to strip them |
---|
21669 | # from the output so that they don't get included in the library |
---|
21670 | # dependencies. |
---|
21671 | 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' |
---|
21672 | ;; |
---|
21673 | *) |
---|
21674 | if test "$GXX" = yes; then |
---|
21675 | if test $with_gnu_ld = no; then |
---|
21676 | case $host_cpu in |
---|
21677 | ia64*|hppa*64*) |
---|
21678 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
---|
21679 | ;; |
---|
21680 | *) |
---|
21681 | 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' |
---|
21682 | ;; |
---|
21683 | esac |
---|
21684 | fi |
---|
21685 | else |
---|
21686 | # FIXME: insert proper C++ library support |
---|
21687 | ld_shlibs_CXX=no |
---|
21688 | fi |
---|
21689 | ;; |
---|
21690 | esac |
---|
21691 | ;; |
---|
21692 | irix5* | irix6*) |
---|
21693 | case $cc_basename in |
---|
21694 | CC*) |
---|
21695 | # SGI C++ |
---|
21696 | 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' |
---|
21697 | |
---|
21698 | # Archives containing C++ object files must be created using |
---|
21699 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
---|
21700 | # necessary to make sure instantiated templates are included |
---|
21701 | # in the archive. |
---|
21702 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
---|
21703 | ;; |
---|
21704 | *) |
---|
21705 | if test "$GXX" = yes; then |
---|
21706 | if test "$with_gnu_ld" = no; then |
---|
21707 | 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' |
---|
21708 | else |
---|
21709 | 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' |
---|
21710 | fi |
---|
21711 | fi |
---|
21712 | link_all_deplibs_CXX=yes |
---|
21713 | ;; |
---|
21714 | esac |
---|
21715 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
21716 | hardcode_libdir_separator_CXX=: |
---|
21717 | ;; |
---|
21718 | linux*) |
---|
21719 | case $cc_basename in |
---|
21720 | KCC*) |
---|
21721 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
21722 | |
---|
21723 | # KCC will only create a shared library if the output file |
---|
21724 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
21725 | # to its proper name (with version) after linking. |
---|
21726 | 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' |
---|
21727 | 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' |
---|
21728 | # Commands to make compiler produce verbose output that lists |
---|
21729 | # what "hidden" libraries, object files and flags are used when |
---|
21730 | # linking a shared library. |
---|
21731 | # |
---|
21732 | # There doesn't appear to be a way to prevent this compiler from |
---|
21733 | # explicitly linking system object files so we need to strip them |
---|
21734 | # from the output so that they don't get included in the library |
---|
21735 | # dependencies. |
---|
21736 | 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' |
---|
21737 | |
---|
21738 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
---|
21739 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
21740 | |
---|
21741 | # Archives containing C++ object files must be created using |
---|
21742 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
21743 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
21744 | ;; |
---|
21745 | icpc*) |
---|
21746 | # Intel C++ |
---|
21747 | with_gnu_ld=yes |
---|
21748 | # version 8.0 and above of icpc choke on multiply defined symbols |
---|
21749 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
---|
21750 | # earlier do not add the objects themselves. |
---|
21751 | case `$CC -V 2>&1` in |
---|
21752 | *"Version 7."*) |
---|
21753 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
21754 | 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' |
---|
21755 | ;; |
---|
21756 | *) # Version 8.0 or newer |
---|
21757 | tmp_idyn= |
---|
21758 | case $host_cpu in |
---|
21759 | ia64*) tmp_idyn=' -i_dynamic';; |
---|
21760 | esac |
---|
21761 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
21762 | 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' |
---|
21763 | ;; |
---|
21764 | esac |
---|
21765 | archive_cmds_need_lc_CXX=no |
---|
21766 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
21767 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
21768 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
---|
21769 | ;; |
---|
21770 | pgCC*) |
---|
21771 | # Portland Group C++ compiler |
---|
21772 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
---|
21773 | 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' |
---|
21774 | |
---|
21775 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
---|
21776 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
---|
21777 | 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' |
---|
21778 | ;; |
---|
21779 | cxx*) |
---|
21780 | # Compaq C++ |
---|
21781 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
21782 | 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' |
---|
21783 | |
---|
21784 | runpath_var=LD_RUN_PATH |
---|
21785 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
21786 | hardcode_libdir_separator_CXX=: |
---|
21787 | |
---|
21788 | # Commands to make compiler produce verbose output that lists |
---|
21789 | # what "hidden" libraries, object files and flags are used when |
---|
21790 | # linking a shared library. |
---|
21791 | # |
---|
21792 | # There doesn't appear to be a way to prevent this compiler from |
---|
21793 | # explicitly linking system object files so we need to strip them |
---|
21794 | # from the output so that they don't get included in the library |
---|
21795 | # dependencies. |
---|
21796 | 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' |
---|
21797 | ;; |
---|
21798 | esac |
---|
21799 | ;; |
---|
21800 | lynxos*) |
---|
21801 | # FIXME: insert proper C++ library support |
---|
21802 | ld_shlibs_CXX=no |
---|
21803 | ;; |
---|
21804 | m88k*) |
---|
21805 | # FIXME: insert proper C++ library support |
---|
21806 | ld_shlibs_CXX=no |
---|
21807 | ;; |
---|
21808 | mvs*) |
---|
21809 | case $cc_basename in |
---|
21810 | cxx*) |
---|
21811 | # FIXME: insert proper C++ library support |
---|
21812 | ld_shlibs_CXX=no |
---|
21813 | ;; |
---|
21814 | *) |
---|
21815 | # FIXME: insert proper C++ library support |
---|
21816 | ld_shlibs_CXX=no |
---|
21817 | ;; |
---|
21818 | esac |
---|
21819 | ;; |
---|
21820 | netbsd*) |
---|
21821 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
21822 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
---|
21823 | wlarc= |
---|
21824 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
21825 | hardcode_direct_CXX=yes |
---|
21826 | hardcode_shlibpath_var_CXX=no |
---|
21827 | fi |
---|
21828 | # Workaround some broken pre-1.5 toolchains |
---|
21829 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
---|
21830 | ;; |
---|
21831 | openbsd2*) |
---|
21832 | # C++ shared libraries are fairly broken |
---|
21833 | ld_shlibs_CXX=no |
---|
21834 | ;; |
---|
21835 | openbsd*) |
---|
21836 | hardcode_direct_CXX=yes |
---|
21837 | hardcode_shlibpath_var_CXX=no |
---|
21838 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
---|
21839 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
21840 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
21841 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
---|
21842 | export_dynamic_flag_spec_CXX='${wl}-E' |
---|
21843 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
21844 | fi |
---|
21845 | output_verbose_link_cmd='echo' |
---|
21846 | ;; |
---|
21847 | osf3*) |
---|
21848 | case $cc_basename in |
---|
21849 | KCC*) |
---|
21850 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
21851 | |
---|
21852 | # KCC will only create a shared library if the output file |
---|
21853 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
21854 | # to its proper name (with version) after linking. |
---|
21855 | 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' |
---|
21856 | |
---|
21857 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
21858 | hardcode_libdir_separator_CXX=: |
---|
21859 | |
---|
21860 | # Archives containing C++ object files must be created using |
---|
21861 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
---|
21862 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
---|
21863 | |
---|
21864 | ;; |
---|
21865 | RCC*) |
---|
21866 | # Rational C++ 2.4.1 |
---|
21867 | # FIXME: insert proper C++ library support |
---|
21868 | ld_shlibs_CXX=no |
---|
21869 | ;; |
---|
21870 | cxx*) |
---|
21871 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
21872 | 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' |
---|
21873 | |
---|
21874 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
21875 | hardcode_libdir_separator_CXX=: |
---|
21876 | |
---|
21877 | # Commands to make compiler produce verbose output that lists |
---|
21878 | # what "hidden" libraries, object files and flags are used when |
---|
21879 | # linking a shared library. |
---|
21880 | # |
---|
21881 | # There doesn't appear to be a way to prevent this compiler from |
---|
21882 | # explicitly linking system object files so we need to strip them |
---|
21883 | # from the output so that they don't get included in the library |
---|
21884 | # dependencies. |
---|
21885 | 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' |
---|
21886 | ;; |
---|
21887 | *) |
---|
21888 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
21889 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
21890 | 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' |
---|
21891 | |
---|
21892 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
21893 | hardcode_libdir_separator_CXX=: |
---|
21894 | |
---|
21895 | # Commands to make compiler produce verbose output that lists |
---|
21896 | # what "hidden" libraries, object files and flags are used when |
---|
21897 | # linking a shared library. |
---|
21898 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
21899 | |
---|
21900 | else |
---|
21901 | # FIXME: insert proper C++ library support |
---|
21902 | ld_shlibs_CXX=no |
---|
21903 | fi |
---|
21904 | ;; |
---|
21905 | esac |
---|
21906 | ;; |
---|
21907 | osf4* | osf5*) |
---|
21908 | case $cc_basename in |
---|
21909 | KCC*) |
---|
21910 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
---|
21911 | |
---|
21912 | # KCC will only create a shared library if the output file |
---|
21913 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
---|
21914 | # to its proper name (with version) after linking. |
---|
21915 | 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' |
---|
21916 | |
---|
21917 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
---|
21918 | hardcode_libdir_separator_CXX=: |
---|
21919 | |
---|
21920 | # Archives containing C++ object files must be created using |
---|
21921 | # the KAI C++ compiler. |
---|
21922 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
---|
21923 | ;; |
---|
21924 | RCC*) |
---|
21925 | # Rational C++ 2.4.1 |
---|
21926 | # FIXME: insert proper C++ library support |
---|
21927 | ld_shlibs_CXX=no |
---|
21928 | ;; |
---|
21929 | cxx*) |
---|
21930 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
---|
21931 | 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' |
---|
21932 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
---|
21933 | echo "-hidden">> $lib.exp~ |
---|
21934 | $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~ |
---|
21935 | $rm $lib.exp' |
---|
21936 | |
---|
21937 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
---|
21938 | hardcode_libdir_separator_CXX=: |
---|
21939 | |
---|
21940 | # Commands to make compiler produce verbose output that lists |
---|
21941 | # what "hidden" libraries, object files and flags are used when |
---|
21942 | # linking a shared library. |
---|
21943 | # |
---|
21944 | # There doesn't appear to be a way to prevent this compiler from |
---|
21945 | # explicitly linking system object files so we need to strip them |
---|
21946 | # from the output so that they don't get included in the library |
---|
21947 | # dependencies. |
---|
21948 | 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' |
---|
21949 | ;; |
---|
21950 | *) |
---|
21951 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
21952 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
---|
21953 | 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' |
---|
21954 | |
---|
21955 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
---|
21956 | hardcode_libdir_separator_CXX=: |
---|
21957 | |
---|
21958 | # Commands to make compiler produce verbose output that lists |
---|
21959 | # what "hidden" libraries, object files and flags are used when |
---|
21960 | # linking a shared library. |
---|
21961 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
---|
21962 | |
---|
21963 | else |
---|
21964 | # FIXME: insert proper C++ library support |
---|
21965 | ld_shlibs_CXX=no |
---|
21966 | fi |
---|
21967 | ;; |
---|
21968 | esac |
---|
21969 | ;; |
---|
21970 | psos*) |
---|
21971 | # FIXME: insert proper C++ library support |
---|
21972 | ld_shlibs_CXX=no |
---|
21973 | ;; |
---|
21974 | sco*) |
---|
21975 | archive_cmds_need_lc_CXX=no |
---|
21976 | case $cc_basename in |
---|
21977 | CC*) |
---|
21978 | # FIXME: insert proper C++ library support |
---|
21979 | ld_shlibs_CXX=no |
---|
21980 | ;; |
---|
21981 | *) |
---|
21982 | # FIXME: insert proper C++ library support |
---|
21983 | ld_shlibs_CXX=no |
---|
21984 | ;; |
---|
21985 | esac |
---|
21986 | ;; |
---|
21987 | sunos4*) |
---|
21988 | case $cc_basename in |
---|
21989 | CC*) |
---|
21990 | # Sun C++ 4.x |
---|
21991 | # FIXME: insert proper C++ library support |
---|
21992 | ld_shlibs_CXX=no |
---|
21993 | ;; |
---|
21994 | lcc*) |
---|
21995 | # Lucid |
---|
21996 | # FIXME: insert proper C++ library support |
---|
21997 | ld_shlibs_CXX=no |
---|
21998 | ;; |
---|
21999 | *) |
---|
22000 | # FIXME: insert proper C++ library support |
---|
22001 | ld_shlibs_CXX=no |
---|
22002 | ;; |
---|
22003 | esac |
---|
22004 | ;; |
---|
22005 | solaris*) |
---|
22006 | case $cc_basename in |
---|
22007 | CC*) |
---|
22008 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
22009 | archive_cmds_need_lc_CXX=yes |
---|
22010 | no_undefined_flag_CXX=' -zdefs' |
---|
22011 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
---|
22012 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
22013 | $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' |
---|
22014 | |
---|
22015 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
---|
22016 | hardcode_shlibpath_var_CXX=no |
---|
22017 | case $host_os in |
---|
22018 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
22019 | *) |
---|
22020 | # The C++ compiler is used as linker so we must use $wl |
---|
22021 | # flag to pass the commands to the underlying system |
---|
22022 | # linker. We must also pass each convience library through |
---|
22023 | # to the system linker between allextract/defaultextract. |
---|
22024 | # The C++ compiler will combine linker options so we |
---|
22025 | # cannot just pass the convience library names through |
---|
22026 | # without $wl. |
---|
22027 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
22028 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
---|
22029 | ;; |
---|
22030 | esac |
---|
22031 | link_all_deplibs_CXX=yes |
---|
22032 | |
---|
22033 | output_verbose_link_cmd='echo' |
---|
22034 | |
---|
22035 | # Archives containing C++ object files must be created using |
---|
22036 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
---|
22037 | # necessary to make sure instantiated templates are included |
---|
22038 | # in the archive. |
---|
22039 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
---|
22040 | ;; |
---|
22041 | gcx*) |
---|
22042 | # Green Hills C++ Compiler |
---|
22043 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
22044 | |
---|
22045 | # The C++ compiler must be used to create the archive. |
---|
22046 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
---|
22047 | ;; |
---|
22048 | *) |
---|
22049 | # GNU C++ compiler with Solaris linker |
---|
22050 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
---|
22051 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
---|
22052 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
---|
22053 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
22054 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
22055 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
22056 | |
---|
22057 | # Commands to make compiler produce verbose output that lists |
---|
22058 | # what "hidden" libraries, object files and flags are used when |
---|
22059 | # linking a shared library. |
---|
22060 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
22061 | else |
---|
22062 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
---|
22063 | # platform. |
---|
22064 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
---|
22065 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
---|
22066 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
---|
22067 | |
---|
22068 | # Commands to make compiler produce verbose output that lists |
---|
22069 | # what "hidden" libraries, object files and flags are used when |
---|
22070 | # linking a shared library. |
---|
22071 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
---|
22072 | fi |
---|
22073 | |
---|
22074 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
---|
22075 | fi |
---|
22076 | ;; |
---|
22077 | esac |
---|
22078 | ;; |
---|
22079 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
---|
22080 | archive_cmds_need_lc_CXX=no |
---|
22081 | ;; |
---|
22082 | tandem*) |
---|
22083 | case $cc_basename in |
---|
22084 | NCC*) |
---|
22085 | # NonStop-UX NCC 3.20 |
---|
22086 | # FIXME: insert proper C++ library support |
---|
22087 | ld_shlibs_CXX=no |
---|
22088 | ;; |
---|
22089 | *) |
---|
22090 | # FIXME: insert proper C++ library support |
---|
22091 | ld_shlibs_CXX=no |
---|
22092 | ;; |
---|
22093 | esac |
---|
22094 | ;; |
---|
22095 | vxworks*) |
---|
22096 | # FIXME: insert proper C++ library support |
---|
22097 | ld_shlibs_CXX=no |
---|
22098 | ;; |
---|
22099 | *) |
---|
22100 | # FIXME: insert proper C++ library support |
---|
22101 | ld_shlibs_CXX=no |
---|
22102 | ;; |
---|
22103 | esac |
---|
22104 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
22105 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
---|
22106 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
22107 | |
---|
22108 | GCC_CXX="$GXX" |
---|
22109 | LD_CXX="$LD" |
---|
22110 | |
---|
22111 | |
---|
22112 | cat > conftest.$ac_ext <<EOF |
---|
22113 | class Foo |
---|
22114 | { |
---|
22115 | public: |
---|
22116 | Foo (void) { a = 0; } |
---|
22117 | private: |
---|
22118 | int a; |
---|
22119 | }; |
---|
22120 | EOF |
---|
22121 | |
---|
22122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
22123 | (eval $ac_compile) 2>&5 |
---|
22124 | ac_status=$? |
---|
22125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
22126 | (exit $ac_status); }; then |
---|
22127 | # Parse the compiler output and extract the necessary |
---|
22128 | # objects, libraries and library flags. |
---|
22129 | |
---|
22130 | # Sentinel used to keep track of whether or not we are before |
---|
22131 | # the conftest object file. |
---|
22132 | pre_test_object_deps_done=no |
---|
22133 | |
---|
22134 | # The `*' in the case matches for architectures that use `case' in |
---|
22135 | # $output_verbose_cmd can trigger glob expansion during the loop |
---|
22136 | # eval without this substitution. |
---|
22137 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
---|
22138 | |
---|
22139 | for p in `eval $output_verbose_link_cmd`; do |
---|
22140 | case $p in |
---|
22141 | |
---|
22142 | -L* | -R* | -l*) |
---|
22143 | # Some compilers place space between "-{L,R}" and the path. |
---|
22144 | # Remove the space. |
---|
22145 | if test $p = "-L" \ |
---|
22146 | || test $p = "-R"; then |
---|
22147 | prev=$p |
---|
22148 | continue |
---|
22149 | else |
---|
22150 | prev= |
---|
22151 | fi |
---|
22152 | |
---|
22153 | if test "$pre_test_object_deps_done" = no; then |
---|
22154 | case $p in |
---|
22155 | -L* | -R*) |
---|
22156 | # Internal compiler library paths should come after those |
---|
22157 | # provided the user. The postdeps already come after the |
---|
22158 | # user supplied libs so there is no need to process them. |
---|
22159 | if test -z "$compiler_lib_search_path_CXX"; then |
---|
22160 | compiler_lib_search_path_CXX="${prev}${p}" |
---|
22161 | else |
---|
22162 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
---|
22163 | fi |
---|
22164 | ;; |
---|
22165 | # The "-l" case would never come before the object being |
---|
22166 | # linked, so don't bother handling this case. |
---|
22167 | esac |
---|
22168 | else |
---|
22169 | if test -z "$postdeps_CXX"; then |
---|
22170 | postdeps_CXX="${prev}${p}" |
---|
22171 | else |
---|
22172 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
---|
22173 | fi |
---|
22174 | fi |
---|
22175 | ;; |
---|
22176 | |
---|
22177 | *.$objext) |
---|
22178 | # This assumes that the test object file only shows up |
---|
22179 | # once in the compiler output. |
---|
22180 | if test "$p" = "conftest.$objext"; then |
---|
22181 | pre_test_object_deps_done=yes |
---|
22182 | continue |
---|
22183 | fi |
---|
22184 | |
---|
22185 | if test "$pre_test_object_deps_done" = no; then |
---|
22186 | if test -z "$predep_objects_CXX"; then |
---|
22187 | predep_objects_CXX="$p" |
---|
22188 | else |
---|
22189 | predep_objects_CXX="$predep_objects_CXX $p" |
---|
22190 | fi |
---|
22191 | else |
---|
22192 | if test -z "$postdep_objects_CXX"; then |
---|
22193 | postdep_objects_CXX="$p" |
---|
22194 | else |
---|
22195 | postdep_objects_CXX="$postdep_objects_CXX $p" |
---|
22196 | fi |
---|
22197 | fi |
---|
22198 | ;; |
---|
22199 | |
---|
22200 | *) ;; # Ignore the rest. |
---|
22201 | |
---|
22202 | esac |
---|
22203 | done |
---|
22204 | |
---|
22205 | # Clean up. |
---|
22206 | rm -f a.out a.exe |
---|
22207 | else |
---|
22208 | echo "libtool.m4: error: problem compiling CXX test program" |
---|
22209 | fi |
---|
22210 | |
---|
22211 | $rm -f confest.$objext |
---|
22212 | |
---|
22213 | # PORTME: override above test on systems where it is broken |
---|
22214 | case $host_os in |
---|
22215 | solaris*) |
---|
22216 | case $cc_basename in |
---|
22217 | CC*) |
---|
22218 | # Adding this requires a known-good setup of shared libraries for |
---|
22219 | # Sun compiler versions before 5.6, else PIC objects from an old |
---|
22220 | # archive will be linked into the output, leading to subtle bugs. |
---|
22221 | postdeps_CXX='-lCstd -lCrun' |
---|
22222 | ;; |
---|
22223 | esac |
---|
22224 | esac |
---|
22225 | |
---|
22226 | |
---|
22227 | case " $postdeps_CXX " in |
---|
22228 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
---|
22229 | esac |
---|
22230 | |
---|
22231 | lt_prog_compiler_wl_CXX= |
---|
22232 | lt_prog_compiler_pic_CXX= |
---|
22233 | lt_prog_compiler_static_CXX= |
---|
22234 | |
---|
22235 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
---|
22236 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
---|
22237 | |
---|
22238 | # C++ specific cases for pic, static, wl, etc. |
---|
22239 | if test "$GXX" = yes; then |
---|
22240 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
22241 | lt_prog_compiler_static_CXX='-static' |
---|
22242 | |
---|
22243 | case $host_os in |
---|
22244 | aix*) |
---|
22245 | # All AIX code is PIC. |
---|
22246 | if test "$host_cpu" = ia64; then |
---|
22247 | # AIX 5 now supports IA64 processor |
---|
22248 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
22249 | fi |
---|
22250 | ;; |
---|
22251 | amigaos*) |
---|
22252 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
22253 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
22254 | # like `-m68040'. |
---|
22255 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
---|
22256 | ;; |
---|
22257 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
22258 | # PIC is the default for these OSes. |
---|
22259 | ;; |
---|
22260 | mingw* | os2* | pw32*) |
---|
22261 | # This hack is so that the source file can tell whether it is being |
---|
22262 | # built for inclusion in a dll (and should export symbols for example). |
---|
22263 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
---|
22264 | ;; |
---|
22265 | darwin* | rhapsody*) |
---|
22266 | # PIC is the default on this platform |
---|
22267 | # Common symbols not allowed in MH_DYLIB files |
---|
22268 | lt_prog_compiler_pic_CXX='-fno-common' |
---|
22269 | ;; |
---|
22270 | *djgpp*) |
---|
22271 | # DJGPP does not support shared libraries at all |
---|
22272 | lt_prog_compiler_pic_CXX= |
---|
22273 | ;; |
---|
22274 | sysv4*MP*) |
---|
22275 | if test -d /usr/nec; then |
---|
22276 | lt_prog_compiler_pic_CXX=-Kconform_pic |
---|
22277 | fi |
---|
22278 | ;; |
---|
22279 | hpux*) |
---|
22280 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
22281 | # not for PA HP-UX. |
---|
22282 | case $host_cpu in |
---|
22283 | hppa*64*|ia64*) |
---|
22284 | ;; |
---|
22285 | *) |
---|
22286 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
22287 | ;; |
---|
22288 | esac |
---|
22289 | ;; |
---|
22290 | *) |
---|
22291 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
22292 | ;; |
---|
22293 | esac |
---|
22294 | else |
---|
22295 | case $host_os in |
---|
22296 | aix4* | aix5*) |
---|
22297 | # All AIX code is PIC. |
---|
22298 | if test "$host_cpu" = ia64; then |
---|
22299 | # AIX 5 now supports IA64 processor |
---|
22300 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
22301 | else |
---|
22302 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
---|
22303 | fi |
---|
22304 | ;; |
---|
22305 | chorus*) |
---|
22306 | case $cc_basename in |
---|
22307 | cxch68*) |
---|
22308 | # Green Hills C++ Compiler |
---|
22309 | # _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" |
---|
22310 | ;; |
---|
22311 | esac |
---|
22312 | ;; |
---|
22313 | darwin*) |
---|
22314 | # PIC is the default on this platform |
---|
22315 | # Common symbols not allowed in MH_DYLIB files |
---|
22316 | case $cc_basename in |
---|
22317 | xlc*) |
---|
22318 | lt_prog_compiler_pic_CXX='-qnocommon' |
---|
22319 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
22320 | ;; |
---|
22321 | esac |
---|
22322 | ;; |
---|
22323 | dgux*) |
---|
22324 | case $cc_basename in |
---|
22325 | ec++*) |
---|
22326 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
22327 | ;; |
---|
22328 | ghcx*) |
---|
22329 | # Green Hills C++ Compiler |
---|
22330 | lt_prog_compiler_pic_CXX='-pic' |
---|
22331 | ;; |
---|
22332 | *) |
---|
22333 | ;; |
---|
22334 | esac |
---|
22335 | ;; |
---|
22336 | freebsd* | kfreebsd*-gnu | dragonfly*) |
---|
22337 | # FreeBSD uses GNU C++ |
---|
22338 | ;; |
---|
22339 | hpux9* | hpux10* | hpux11*) |
---|
22340 | case $cc_basename in |
---|
22341 | CC*) |
---|
22342 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
22343 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
22344 | if test "$host_cpu" != ia64; then |
---|
22345 | lt_prog_compiler_pic_CXX='+Z' |
---|
22346 | fi |
---|
22347 | ;; |
---|
22348 | aCC*) |
---|
22349 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
22350 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
---|
22351 | case $host_cpu in |
---|
22352 | hppa*64*|ia64*) |
---|
22353 | # +Z the default |
---|
22354 | ;; |
---|
22355 | *) |
---|
22356 | lt_prog_compiler_pic_CXX='+Z' |
---|
22357 | ;; |
---|
22358 | esac |
---|
22359 | ;; |
---|
22360 | *) |
---|
22361 | ;; |
---|
22362 | esac |
---|
22363 | ;; |
---|
22364 | irix5* | irix6* | nonstopux*) |
---|
22365 | case $cc_basename in |
---|
22366 | CC*) |
---|
22367 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
22368 | lt_prog_compiler_static_CXX='-non_shared' |
---|
22369 | # CC pic flag -KPIC is the default. |
---|
22370 | ;; |
---|
22371 | *) |
---|
22372 | ;; |
---|
22373 | esac |
---|
22374 | ;; |
---|
22375 | linux*) |
---|
22376 | case $cc_basename in |
---|
22377 | KCC*) |
---|
22378 | # KAI C++ Compiler |
---|
22379 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
22380 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
22381 | ;; |
---|
22382 | icpc* | ecpc*) |
---|
22383 | # Intel C++ |
---|
22384 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
22385 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
22386 | lt_prog_compiler_static_CXX='-static' |
---|
22387 | ;; |
---|
22388 | pgCC*) |
---|
22389 | # Portland Group C++ compiler. |
---|
22390 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
22391 | lt_prog_compiler_pic_CXX='-fpic' |
---|
22392 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
22393 | ;; |
---|
22394 | cxx*) |
---|
22395 | # Compaq C++ |
---|
22396 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
22397 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
22398 | lt_prog_compiler_pic_CXX= |
---|
22399 | lt_prog_compiler_static_CXX='-non_shared' |
---|
22400 | ;; |
---|
22401 | *) |
---|
22402 | ;; |
---|
22403 | esac |
---|
22404 | ;; |
---|
22405 | lynxos*) |
---|
22406 | ;; |
---|
22407 | m88k*) |
---|
22408 | ;; |
---|
22409 | mvs*) |
---|
22410 | case $cc_basename in |
---|
22411 | cxx*) |
---|
22412 | lt_prog_compiler_pic_CXX='-W c,exportall' |
---|
22413 | ;; |
---|
22414 | *) |
---|
22415 | ;; |
---|
22416 | esac |
---|
22417 | ;; |
---|
22418 | netbsd*) |
---|
22419 | ;; |
---|
22420 | osf3* | osf4* | osf5*) |
---|
22421 | case $cc_basename in |
---|
22422 | KCC*) |
---|
22423 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
---|
22424 | ;; |
---|
22425 | RCC*) |
---|
22426 | # Rational C++ 2.4.1 |
---|
22427 | lt_prog_compiler_pic_CXX='-pic' |
---|
22428 | ;; |
---|
22429 | cxx*) |
---|
22430 | # Digital/Compaq C++ |
---|
22431 | lt_prog_compiler_wl_CXX='-Wl,' |
---|
22432 | # Make sure the PIC flag is empty. It appears that all Alpha |
---|
22433 | # Linux and Compaq Tru64 Unix objects are PIC. |
---|
22434 | lt_prog_compiler_pic_CXX= |
---|
22435 | lt_prog_compiler_static_CXX='-non_shared' |
---|
22436 | ;; |
---|
22437 | *) |
---|
22438 | ;; |
---|
22439 | esac |
---|
22440 | ;; |
---|
22441 | psos*) |
---|
22442 | ;; |
---|
22443 | sco*) |
---|
22444 | case $cc_basename in |
---|
22445 | CC*) |
---|
22446 | lt_prog_compiler_pic_CXX='-fPIC' |
---|
22447 | ;; |
---|
22448 | *) |
---|
22449 | ;; |
---|
22450 | esac |
---|
22451 | ;; |
---|
22452 | solaris*) |
---|
22453 | case $cc_basename in |
---|
22454 | CC*) |
---|
22455 | # Sun C++ 4.2, 5.x and Centerline C++ |
---|
22456 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
22457 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
22458 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
---|
22459 | ;; |
---|
22460 | gcx*) |
---|
22461 | # Green Hills C++ Compiler |
---|
22462 | lt_prog_compiler_pic_CXX='-PIC' |
---|
22463 | ;; |
---|
22464 | *) |
---|
22465 | ;; |
---|
22466 | esac |
---|
22467 | ;; |
---|
22468 | sunos4*) |
---|
22469 | case $cc_basename in |
---|
22470 | CC*) |
---|
22471 | # Sun C++ 4.x |
---|
22472 | lt_prog_compiler_pic_CXX='-pic' |
---|
22473 | lt_prog_compiler_static_CXX='-Bstatic' |
---|
22474 | ;; |
---|
22475 | lcc*) |
---|
22476 | # Lucid |
---|
22477 | lt_prog_compiler_pic_CXX='-pic' |
---|
22478 | ;; |
---|
22479 | *) |
---|
22480 | ;; |
---|
22481 | esac |
---|
22482 | ;; |
---|
22483 | tandem*) |
---|
22484 | case $cc_basename in |
---|
22485 | NCC*) |
---|
22486 | # NonStop-UX NCC 3.20 |
---|
22487 | lt_prog_compiler_pic_CXX='-KPIC' |
---|
22488 | ;; |
---|
22489 | *) |
---|
22490 | ;; |
---|
22491 | esac |
---|
22492 | ;; |
---|
22493 | unixware*) |
---|
22494 | ;; |
---|
22495 | vxworks*) |
---|
22496 | ;; |
---|
22497 | *) |
---|
22498 | lt_prog_compiler_can_build_shared_CXX=no |
---|
22499 | ;; |
---|
22500 | esac |
---|
22501 | fi |
---|
22502 | |
---|
22503 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
---|
22504 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
---|
22505 | |
---|
22506 | # |
---|
22507 | # Check to make sure the PIC flag actually works. |
---|
22508 | # |
---|
22509 | if test -n "$lt_prog_compiler_pic_CXX"; then |
---|
22510 | |
---|
22511 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
---|
22512 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
---|
22513 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
---|
22514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
22515 | else |
---|
22516 | lt_prog_compiler_pic_works_CXX=no |
---|
22517 | ac_outfile=conftest.$ac_objext |
---|
22518 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
22519 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
---|
22520 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
22521 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
22522 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
22523 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
22524 | # The option is referenced via a variable to avoid confusing sed. |
---|
22525 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
22526 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
22527 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
22528 | -e 's:$: $lt_compiler_flag:'` |
---|
22529 | (eval echo "\"\$as_me:22529: $lt_compile\"" >&5) |
---|
22530 | (eval "$lt_compile" 2>conftest.err) |
---|
22531 | ac_status=$? |
---|
22532 | cat conftest.err >&5 |
---|
22533 | echo "$as_me:22533: \$? = $ac_status" >&5 |
---|
22534 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
22535 | # The compiler can only warn and ignore the option if not recognized |
---|
22536 | # So say no if there are warnings other than the usual output. |
---|
22537 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
---|
22538 | $SED '/^$/d' conftest.err >conftest.er2 |
---|
22539 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
---|
22540 | lt_prog_compiler_pic_works_CXX=yes |
---|
22541 | fi |
---|
22542 | fi |
---|
22543 | $rm conftest* |
---|
22544 | |
---|
22545 | fi |
---|
22546 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
---|
22547 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
---|
22548 | |
---|
22549 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
---|
22550 | case $lt_prog_compiler_pic_CXX in |
---|
22551 | "" | " "*) ;; |
---|
22552 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
---|
22553 | esac |
---|
22554 | else |
---|
22555 | lt_prog_compiler_pic_CXX= |
---|
22556 | lt_prog_compiler_can_build_shared_CXX=no |
---|
22557 | fi |
---|
22558 | |
---|
22559 | fi |
---|
22560 | case $host_os in |
---|
22561 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
22562 | *djgpp*) |
---|
22563 | lt_prog_compiler_pic_CXX= |
---|
22564 | ;; |
---|
22565 | *) |
---|
22566 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
---|
22567 | ;; |
---|
22568 | esac |
---|
22569 | |
---|
22570 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
22571 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
---|
22572 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
---|
22573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
22574 | else |
---|
22575 | lt_cv_prog_compiler_c_o_CXX=no |
---|
22576 | $rm -r conftest 2>/dev/null |
---|
22577 | mkdir conftest |
---|
22578 | cd conftest |
---|
22579 | mkdir out |
---|
22580 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
22581 | |
---|
22582 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
22583 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
22584 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
22585 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
22586 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
22587 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
22588 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
22589 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
22590 | -e 's:$: $lt_compiler_flag:'` |
---|
22591 | (eval echo "\"\$as_me:22591: $lt_compile\"" >&5) |
---|
22592 | (eval "$lt_compile" 2>out/conftest.err) |
---|
22593 | ac_status=$? |
---|
22594 | cat out/conftest.err >&5 |
---|
22595 | echo "$as_me:22595: \$? = $ac_status" >&5 |
---|
22596 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
22597 | then |
---|
22598 | # The compiler can only warn and ignore the option if not recognized |
---|
22599 | # So say no if there are warnings |
---|
22600 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
---|
22601 | $SED '/^$/d' out/conftest.err >out/conftest.er2 |
---|
22602 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
22603 | lt_cv_prog_compiler_c_o_CXX=yes |
---|
22604 | fi |
---|
22605 | fi |
---|
22606 | chmod u+w . 2>&5 |
---|
22607 | $rm conftest* |
---|
22608 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
22609 | # template instantiation |
---|
22610 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
---|
22611 | $rm out/* && rmdir out |
---|
22612 | cd .. |
---|
22613 | rmdir conftest |
---|
22614 | $rm conftest* |
---|
22615 | |
---|
22616 | fi |
---|
22617 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
---|
22618 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
---|
22619 | |
---|
22620 | |
---|
22621 | hard_links="nottested" |
---|
22622 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
---|
22623 | # do not overwrite the value of need_locks provided by the user |
---|
22624 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
---|
22625 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
---|
22626 | hard_links=yes |
---|
22627 | $rm conftest* |
---|
22628 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
22629 | touch conftest.a |
---|
22630 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
22631 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
22632 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
---|
22633 | echo "${ECHO_T}$hard_links" >&6; } |
---|
22634 | if test "$hard_links" = no; then |
---|
22635 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
22636 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
22637 | need_locks=warn |
---|
22638 | fi |
---|
22639 | else |
---|
22640 | need_locks=no |
---|
22641 | fi |
---|
22642 | |
---|
22643 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
22644 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
---|
22645 | |
---|
22646 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
22647 | case $host_os in |
---|
22648 | aix4* | aix5*) |
---|
22649 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
22650 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
22651 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
---|
22652 | 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' |
---|
22653 | else |
---|
22654 | 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' |
---|
22655 | fi |
---|
22656 | ;; |
---|
22657 | pw32*) |
---|
22658 | export_symbols_cmds_CXX="$ltdll_cmds" |
---|
22659 | ;; |
---|
22660 | cygwin* | mingw*) |
---|
22661 | 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' |
---|
22662 | ;; |
---|
22663 | *) |
---|
22664 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
22665 | ;; |
---|
22666 | esac |
---|
22667 | |
---|
22668 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
---|
22669 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
---|
22670 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
---|
22671 | |
---|
22672 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
22673 | if test "$GCC" = yes; then |
---|
22674 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
22675 | fi |
---|
22676 | |
---|
22677 | # |
---|
22678 | # Do we need to explicitly link libc? |
---|
22679 | # |
---|
22680 | case "x$archive_cmds_need_lc_CXX" in |
---|
22681 | x|xyes) |
---|
22682 | # Assume -lc should be added |
---|
22683 | archive_cmds_need_lc_CXX=yes |
---|
22684 | |
---|
22685 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
22686 | case $archive_cmds_CXX in |
---|
22687 | *'~'*) |
---|
22688 | # FIXME: we may have to deal with multi-command sequences. |
---|
22689 | ;; |
---|
22690 | '$CC '*) |
---|
22691 | # Test whether the compiler implicitly links with -lc since on some |
---|
22692 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
22693 | # to ld, don't add -lc before -lgcc. |
---|
22694 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
---|
22695 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
---|
22696 | $rm conftest* |
---|
22697 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
22698 | |
---|
22699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
22700 | (eval $ac_compile) 2>&5 |
---|
22701 | ac_status=$? |
---|
22702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
22703 | (exit $ac_status); } 2>conftest.err; then |
---|
22704 | soname=conftest |
---|
22705 | lib=conftest |
---|
22706 | libobjs=conftest.$ac_objext |
---|
22707 | deplibs= |
---|
22708 | wl=$lt_prog_compiler_wl_CXX |
---|
22709 | compiler_flags=-v |
---|
22710 | linker_flags=-v |
---|
22711 | verstring= |
---|
22712 | output_objdir=. |
---|
22713 | libname=conftest |
---|
22714 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
---|
22715 | allow_undefined_flag_CXX= |
---|
22716 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
---|
22717 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
22718 | ac_status=$? |
---|
22719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
22720 | (exit $ac_status); } |
---|
22721 | then |
---|
22722 | archive_cmds_need_lc_CXX=no |
---|
22723 | else |
---|
22724 | archive_cmds_need_lc_CXX=yes |
---|
22725 | fi |
---|
22726 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
---|
22727 | else |
---|
22728 | cat conftest.err 1>&5 |
---|
22729 | fi |
---|
22730 | $rm conftest* |
---|
22731 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
---|
22732 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
---|
22733 | ;; |
---|
22734 | esac |
---|
22735 | fi |
---|
22736 | ;; |
---|
22737 | esac |
---|
22738 | |
---|
22739 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
---|
22740 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
---|
22741 | library_names_spec= |
---|
22742 | libname_spec='lib$name' |
---|
22743 | soname_spec= |
---|
22744 | shrext_cmds=".so" |
---|
22745 | postinstall_cmds= |
---|
22746 | postuninstall_cmds= |
---|
22747 | finish_cmds= |
---|
22748 | finish_eval= |
---|
22749 | shlibpath_var= |
---|
22750 | shlibpath_overrides_runpath=unknown |
---|
22751 | version_type=none |
---|
22752 | dynamic_linker="$host_os ld.so" |
---|
22753 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
22754 | if test "$GCC" = yes; then |
---|
22755 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
22756 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
---|
22757 | # if the path contains ";" then we assume it to be the separator |
---|
22758 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
22759 | # assumed that no part of a normal pathname contains ";" but that should |
---|
22760 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
22761 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
22762 | else |
---|
22763 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
22764 | fi |
---|
22765 | else |
---|
22766 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
22767 | fi |
---|
22768 | need_lib_prefix=unknown |
---|
22769 | hardcode_into_libs=no |
---|
22770 | |
---|
22771 | # when you set need_version to no, make sure it does not cause -set_version |
---|
22772 | # flags to be left without arguments |
---|
22773 | need_version=unknown |
---|
22774 | |
---|
22775 | case $host_os in |
---|
22776 | aix3*) |
---|
22777 | version_type=linux |
---|
22778 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
22779 | shlibpath_var=LIBPATH |
---|
22780 | |
---|
22781 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
22782 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22783 | ;; |
---|
22784 | |
---|
22785 | aix4* | aix5*) |
---|
22786 | version_type=linux |
---|
22787 | need_lib_prefix=no |
---|
22788 | need_version=no |
---|
22789 | hardcode_into_libs=yes |
---|
22790 | if test "$host_cpu" = ia64; then |
---|
22791 | # AIX 5 supports IA64 |
---|
22792 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
22793 | shlibpath_var=LD_LIBRARY_PATH |
---|
22794 | else |
---|
22795 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
22796 | # for dependence libraries. The import file would start with |
---|
22797 | # the line `#! .'. This would cause the generated library to |
---|
22798 | # depend on `.', always an invalid library. This was fixed in |
---|
22799 | # development snapshots of GCC prior to 3.0. |
---|
22800 | case $host_os in |
---|
22801 | aix4 | aix4.[01] | aix4.[01].*) |
---|
22802 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
22803 | echo ' yes ' |
---|
22804 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
---|
22805 | : |
---|
22806 | else |
---|
22807 | can_build_shared=no |
---|
22808 | fi |
---|
22809 | ;; |
---|
22810 | esac |
---|
22811 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
22812 | # soname into executable. Probably we can add versioning support to |
---|
22813 | # collect2, so additional links can be useful in future. |
---|
22814 | if test "$aix_use_runtimelinking" = yes; then |
---|
22815 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
22816 | # instead of lib<name>.a to let people know that these are not |
---|
22817 | # typical AIX shared libraries. |
---|
22818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22819 | else |
---|
22820 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
22821 | # and later when we are not doing run time linking. |
---|
22822 | library_names_spec='${libname}${release}.a $libname.a' |
---|
22823 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22824 | fi |
---|
22825 | shlibpath_var=LIBPATH |
---|
22826 | fi |
---|
22827 | ;; |
---|
22828 | |
---|
22829 | amigaos*) |
---|
22830 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
22831 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
22832 | 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' |
---|
22833 | ;; |
---|
22834 | |
---|
22835 | beos*) |
---|
22836 | library_names_spec='${libname}${shared_ext}' |
---|
22837 | dynamic_linker="$host_os ld.so" |
---|
22838 | shlibpath_var=LIBRARY_PATH |
---|
22839 | ;; |
---|
22840 | |
---|
22841 | bsdi[45]*) |
---|
22842 | version_type=linux |
---|
22843 | need_version=no |
---|
22844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
22845 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22846 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
22847 | shlibpath_var=LD_LIBRARY_PATH |
---|
22848 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
22849 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
22850 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
22851 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
22852 | # libtool to hard-code these into programs |
---|
22853 | ;; |
---|
22854 | |
---|
22855 | cygwin* | mingw* | pw32*) |
---|
22856 | version_type=windows |
---|
22857 | shrext_cmds=".dll" |
---|
22858 | need_version=no |
---|
22859 | need_lib_prefix=no |
---|
22860 | |
---|
22861 | case $GCC,$host_os in |
---|
22862 | yes,cygwin* | yes,mingw* | yes,pw32*) |
---|
22863 | library_names_spec='$libname.dll.a' |
---|
22864 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
22865 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
22866 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
---|
22867 | dldir=$destdir/`dirname \$dlpath`~ |
---|
22868 | test -d \$dldir || mkdir -p \$dldir~ |
---|
22869 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
22870 | chmod a+x \$dldir/$dlname' |
---|
22871 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
22872 | dlpath=$dir/\$dldll~ |
---|
22873 | $rm \$dlpath' |
---|
22874 | shlibpath_overrides_runpath=yes |
---|
22875 | |
---|
22876 | case $host_os in |
---|
22877 | cygwin*) |
---|
22878 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
22879 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
22880 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
---|
22881 | ;; |
---|
22882 | mingw*) |
---|
22883 | # MinGW DLLs use traditional 'lib' prefix |
---|
22884 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
22885 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
---|
22886 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
---|
22887 | # It is most probably a Windows format PATH printed by |
---|
22888 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
---|
22889 | # path with ; separators, and with drive letters. We can handle the |
---|
22890 | # drive letters (cygwin fileutils understands them), so leave them, |
---|
22891 | # especially as we might pass files found there to a mingw objdump, |
---|
22892 | # which wouldn't understand a cygwinified path. Ahh. |
---|
22893 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
22894 | else |
---|
22895 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
22896 | fi |
---|
22897 | ;; |
---|
22898 | pw32*) |
---|
22899 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
22900 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
22901 | ;; |
---|
22902 | esac |
---|
22903 | ;; |
---|
22904 | |
---|
22905 | *) |
---|
22906 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
22907 | ;; |
---|
22908 | esac |
---|
22909 | dynamic_linker='Win32 ld.exe' |
---|
22910 | # FIXME: first we should search . and the directory the executable is in |
---|
22911 | shlibpath_var=PATH |
---|
22912 | ;; |
---|
22913 | |
---|
22914 | darwin* | rhapsody*) |
---|
22915 | dynamic_linker="$host_os dyld" |
---|
22916 | version_type=darwin |
---|
22917 | need_lib_prefix=no |
---|
22918 | need_version=no |
---|
22919 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
22920 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
22921 | shlibpath_overrides_runpath=yes |
---|
22922 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
22923 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
22924 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
---|
22925 | if test "$GCC" = yes; then |
---|
22926 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
---|
22927 | else |
---|
22928 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
---|
22929 | fi |
---|
22930 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
22931 | ;; |
---|
22932 | |
---|
22933 | dgux*) |
---|
22934 | version_type=linux |
---|
22935 | need_lib_prefix=no |
---|
22936 | need_version=no |
---|
22937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
22938 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22939 | shlibpath_var=LD_LIBRARY_PATH |
---|
22940 | ;; |
---|
22941 | |
---|
22942 | freebsd1*) |
---|
22943 | dynamic_linker=no |
---|
22944 | ;; |
---|
22945 | |
---|
22946 | kfreebsd*-gnu) |
---|
22947 | version_type=linux |
---|
22948 | need_lib_prefix=no |
---|
22949 | need_version=no |
---|
22950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
22951 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
22952 | shlibpath_var=LD_LIBRARY_PATH |
---|
22953 | shlibpath_overrides_runpath=no |
---|
22954 | hardcode_into_libs=yes |
---|
22955 | dynamic_linker='GNU ld.so' |
---|
22956 | ;; |
---|
22957 | |
---|
22958 | freebsd* | dragonfly*) |
---|
22959 | # DragonFly does not have aout. When/if they implement a new |
---|
22960 | # versioning mechanism, adjust this. |
---|
22961 | if test -x /usr/bin/objformat; then |
---|
22962 | objformat=`/usr/bin/objformat` |
---|
22963 | else |
---|
22964 | case $host_os in |
---|
22965 | freebsd[123]*) objformat=aout ;; |
---|
22966 | *) objformat=elf ;; |
---|
22967 | esac |
---|
22968 | fi |
---|
22969 | version_type=freebsd-$objformat |
---|
22970 | case $version_type in |
---|
22971 | freebsd-elf*) |
---|
22972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
22973 | need_version=no |
---|
22974 | need_lib_prefix=no |
---|
22975 | ;; |
---|
22976 | freebsd-*) |
---|
22977 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
22978 | need_version=yes |
---|
22979 | ;; |
---|
22980 | esac |
---|
22981 | shlibpath_var=LD_LIBRARY_PATH |
---|
22982 | case $host_os in |
---|
22983 | freebsd2*) |
---|
22984 | shlibpath_overrides_runpath=yes |
---|
22985 | ;; |
---|
22986 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
22987 | shlibpath_overrides_runpath=yes |
---|
22988 | hardcode_into_libs=yes |
---|
22989 | ;; |
---|
22990 | *) # from 3.2 on |
---|
22991 | shlibpath_overrides_runpath=no |
---|
22992 | hardcode_into_libs=yes |
---|
22993 | ;; |
---|
22994 | esac |
---|
22995 | ;; |
---|
22996 | |
---|
22997 | gnu*) |
---|
22998 | version_type=linux |
---|
22999 | need_lib_prefix=no |
---|
23000 | need_version=no |
---|
23001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
23002 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23003 | shlibpath_var=LD_LIBRARY_PATH |
---|
23004 | hardcode_into_libs=yes |
---|
23005 | ;; |
---|
23006 | |
---|
23007 | hpux9* | hpux10* | hpux11*) |
---|
23008 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
23009 | # link against other versions. |
---|
23010 | version_type=sunos |
---|
23011 | need_lib_prefix=no |
---|
23012 | need_version=no |
---|
23013 | case $host_cpu in |
---|
23014 | ia64*) |
---|
23015 | shrext_cmds='.so' |
---|
23016 | hardcode_into_libs=yes |
---|
23017 | dynamic_linker="$host_os dld.so" |
---|
23018 | shlibpath_var=LD_LIBRARY_PATH |
---|
23019 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
23020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
23021 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23022 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
23023 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
23024 | else |
---|
23025 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
23026 | fi |
---|
23027 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
23028 | ;; |
---|
23029 | hppa*64*) |
---|
23030 | shrext_cmds='.sl' |
---|
23031 | hardcode_into_libs=yes |
---|
23032 | dynamic_linker="$host_os dld.sl" |
---|
23033 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
23034 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
23035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
23036 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23037 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
23038 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
23039 | ;; |
---|
23040 | *) |
---|
23041 | shrext_cmds='.sl' |
---|
23042 | dynamic_linker="$host_os dld.sl" |
---|
23043 | shlibpath_var=SHLIB_PATH |
---|
23044 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
23045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
23046 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23047 | ;; |
---|
23048 | esac |
---|
23049 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
---|
23050 | postinstall_cmds='chmod 555 $lib' |
---|
23051 | ;; |
---|
23052 | |
---|
23053 | irix5* | irix6* | nonstopux*) |
---|
23054 | case $host_os in |
---|
23055 | nonstopux*) version_type=nonstopux ;; |
---|
23056 | *) |
---|
23057 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
23058 | version_type=linux |
---|
23059 | else |
---|
23060 | version_type=irix |
---|
23061 | fi ;; |
---|
23062 | esac |
---|
23063 | need_lib_prefix=no |
---|
23064 | need_version=no |
---|
23065 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
23067 | case $host_os in |
---|
23068 | irix5* | nonstopux*) |
---|
23069 | libsuff= shlibsuff= |
---|
23070 | ;; |
---|
23071 | *) |
---|
23072 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
23073 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
23074 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
23075 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
23076 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
23077 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
23078 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
23079 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
23080 | esac |
---|
23081 | ;; |
---|
23082 | esac |
---|
23083 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
23084 | shlibpath_overrides_runpath=no |
---|
23085 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
23086 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
23087 | hardcode_into_libs=yes |
---|
23088 | ;; |
---|
23089 | |
---|
23090 | # No shared lib support for Linux oldld, aout, or coff. |
---|
23091 | linux*oldld* | linux*aout* | linux*coff*) |
---|
23092 | dynamic_linker=no |
---|
23093 | ;; |
---|
23094 | |
---|
23095 | # This must be Linux ELF. |
---|
23096 | linux*) |
---|
23097 | version_type=linux |
---|
23098 | need_lib_prefix=no |
---|
23099 | need_version=no |
---|
23100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
23101 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23102 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
23103 | shlibpath_var=LD_LIBRARY_PATH |
---|
23104 | shlibpath_overrides_runpath=no |
---|
23105 | # This implies no fast_install, which is unacceptable. |
---|
23106 | # Some rework will be needed to allow for fast_install |
---|
23107 | # before this can be enabled. |
---|
23108 | hardcode_into_libs=yes |
---|
23109 | |
---|
23110 | # Append ld.so.conf contents to the search path |
---|
23111 | if test -f /etc/ld.so.conf; then |
---|
23112 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
---|
23113 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
23114 | fi |
---|
23115 | |
---|
23116 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
23117 | # powerpc, because MkLinux only supported shared libraries with the |
---|
23118 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
23119 | # most powerpc-linux boxes support dynamic linking these days and |
---|
23120 | # people can always --disable-shared, the test was removed, and we |
---|
23121 | # assume the GNU/Linux dynamic linker is in use. |
---|
23122 | dynamic_linker='GNU/Linux ld.so' |
---|
23123 | ;; |
---|
23124 | |
---|
23125 | knetbsd*-gnu) |
---|
23126 | version_type=linux |
---|
23127 | need_lib_prefix=no |
---|
23128 | need_version=no |
---|
23129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
23130 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23131 | shlibpath_var=LD_LIBRARY_PATH |
---|
23132 | shlibpath_overrides_runpath=no |
---|
23133 | hardcode_into_libs=yes |
---|
23134 | dynamic_linker='GNU ld.so' |
---|
23135 | ;; |
---|
23136 | |
---|
23137 | netbsd*) |
---|
23138 | version_type=sunos |
---|
23139 | need_lib_prefix=no |
---|
23140 | need_version=no |
---|
23141 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
---|
23142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
23143 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
23144 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
23145 | else |
---|
23146 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
23147 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23148 | dynamic_linker='NetBSD ld.elf_so' |
---|
23149 | fi |
---|
23150 | shlibpath_var=LD_LIBRARY_PATH |
---|
23151 | shlibpath_overrides_runpath=yes |
---|
23152 | hardcode_into_libs=yes |
---|
23153 | ;; |
---|
23154 | |
---|
23155 | newsos6) |
---|
23156 | version_type=linux |
---|
23157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
23158 | shlibpath_var=LD_LIBRARY_PATH |
---|
23159 | shlibpath_overrides_runpath=yes |
---|
23160 | ;; |
---|
23161 | |
---|
23162 | nto-qnx*) |
---|
23163 | version_type=linux |
---|
23164 | need_lib_prefix=no |
---|
23165 | need_version=no |
---|
23166 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
23167 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23168 | shlibpath_var=LD_LIBRARY_PATH |
---|
23169 | shlibpath_overrides_runpath=yes |
---|
23170 | ;; |
---|
23171 | |
---|
23172 | openbsd*) |
---|
23173 | version_type=sunos |
---|
23174 | need_lib_prefix=no |
---|
23175 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
23176 | case $host_os in |
---|
23177 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
23178 | *) need_version=no ;; |
---|
23179 | esac |
---|
23180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
23181 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
23182 | shlibpath_var=LD_LIBRARY_PATH |
---|
23183 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
23184 | case $host_os in |
---|
23185 | openbsd2.[89] | openbsd2.[89].*) |
---|
23186 | shlibpath_overrides_runpath=no |
---|
23187 | ;; |
---|
23188 | *) |
---|
23189 | shlibpath_overrides_runpath=yes |
---|
23190 | ;; |
---|
23191 | esac |
---|
23192 | else |
---|
23193 | shlibpath_overrides_runpath=yes |
---|
23194 | fi |
---|
23195 | ;; |
---|
23196 | |
---|
23197 | os2*) |
---|
23198 | libname_spec='$name' |
---|
23199 | shrext_cmds=".dll" |
---|
23200 | need_lib_prefix=no |
---|
23201 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
23202 | dynamic_linker='OS/2 ld.exe' |
---|
23203 | shlibpath_var=LIBPATH |
---|
23204 | ;; |
---|
23205 | |
---|
23206 | osf3* | osf4* | osf5*) |
---|
23207 | version_type=osf |
---|
23208 | need_lib_prefix=no |
---|
23209 | need_version=no |
---|
23210 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
23212 | shlibpath_var=LD_LIBRARY_PATH |
---|
23213 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
23214 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
23215 | ;; |
---|
23216 | |
---|
23217 | sco3.2v5*) |
---|
23218 | version_type=osf |
---|
23219 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
23221 | shlibpath_var=LD_LIBRARY_PATH |
---|
23222 | ;; |
---|
23223 | |
---|
23224 | solaris*) |
---|
23225 | version_type=linux |
---|
23226 | need_lib_prefix=no |
---|
23227 | need_version=no |
---|
23228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
23229 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23230 | shlibpath_var=LD_LIBRARY_PATH |
---|
23231 | shlibpath_overrides_runpath=yes |
---|
23232 | hardcode_into_libs=yes |
---|
23233 | # ldd complains unless libraries are executable |
---|
23234 | postinstall_cmds='chmod +x $lib' |
---|
23235 | ;; |
---|
23236 | |
---|
23237 | sunos4*) |
---|
23238 | version_type=sunos |
---|
23239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
23240 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
23241 | shlibpath_var=LD_LIBRARY_PATH |
---|
23242 | shlibpath_overrides_runpath=yes |
---|
23243 | if test "$with_gnu_ld" = yes; then |
---|
23244 | need_lib_prefix=no |
---|
23245 | fi |
---|
23246 | need_version=yes |
---|
23247 | ;; |
---|
23248 | |
---|
23249 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
23250 | version_type=linux |
---|
23251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
23252 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23253 | shlibpath_var=LD_LIBRARY_PATH |
---|
23254 | case $host_vendor in |
---|
23255 | sni) |
---|
23256 | shlibpath_overrides_runpath=no |
---|
23257 | need_lib_prefix=no |
---|
23258 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
23259 | runpath_var=LD_RUN_PATH |
---|
23260 | ;; |
---|
23261 | siemens) |
---|
23262 | need_lib_prefix=no |
---|
23263 | ;; |
---|
23264 | motorola) |
---|
23265 | need_lib_prefix=no |
---|
23266 | need_version=no |
---|
23267 | shlibpath_overrides_runpath=no |
---|
23268 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
23269 | ;; |
---|
23270 | esac |
---|
23271 | ;; |
---|
23272 | |
---|
23273 | sysv4*MP*) |
---|
23274 | if test -d /usr/nec ;then |
---|
23275 | version_type=linux |
---|
23276 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
23277 | soname_spec='$libname${shared_ext}.$major' |
---|
23278 | shlibpath_var=LD_LIBRARY_PATH |
---|
23279 | fi |
---|
23280 | ;; |
---|
23281 | |
---|
23282 | uts4*) |
---|
23283 | version_type=linux |
---|
23284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
23285 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
23286 | shlibpath_var=LD_LIBRARY_PATH |
---|
23287 | ;; |
---|
23288 | |
---|
23289 | *) |
---|
23290 | dynamic_linker=no |
---|
23291 | ;; |
---|
23292 | esac |
---|
23293 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
---|
23294 | echo "${ECHO_T}$dynamic_linker" >&6; } |
---|
23295 | test "$dynamic_linker" = no && can_build_shared=no |
---|
23296 | |
---|
23297 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
---|
23298 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
---|
23299 | hardcode_action_CXX= |
---|
23300 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
---|
23301 | test -n "$runpath_var_CXX" || \ |
---|
23302 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
---|
23303 | |
---|
23304 | # We can hardcode non-existant directories. |
---|
23305 | if test "$hardcode_direct_CXX" != no && |
---|
23306 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
23307 | # have to relink, otherwise we might link with an installed library |
---|
23308 | # when we should be linking with a yet-to-be-installed one |
---|
23309 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
---|
23310 | test "$hardcode_minus_L_CXX" != no; then |
---|
23311 | # Linking always hardcodes the temporary library directory. |
---|
23312 | hardcode_action_CXX=relink |
---|
23313 | else |
---|
23314 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
23315 | hardcode_action_CXX=immediate |
---|
23316 | fi |
---|
23317 | else |
---|
23318 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
23319 | # directories. |
---|
23320 | hardcode_action_CXX=unsupported |
---|
23321 | fi |
---|
23322 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
---|
23323 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
---|
23324 | |
---|
23325 | if test "$hardcode_action_CXX" = relink; then |
---|
23326 | # Fast installation is not supported |
---|
23327 | enable_fast_install=no |
---|
23328 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
23329 | test "$enable_shared" = no; then |
---|
23330 | # Fast installation is not necessary |
---|
23331 | enable_fast_install=needless |
---|
23332 | fi |
---|
23333 | |
---|
23334 | striplib= |
---|
23335 | old_striplib= |
---|
23336 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
---|
23337 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
---|
23338 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
---|
23339 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
23340 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
23341 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
23342 | echo "${ECHO_T}yes" >&6; } |
---|
23343 | else |
---|
23344 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
23345 | case $host_os in |
---|
23346 | darwin*) |
---|
23347 | if test -n "$STRIP" ; then |
---|
23348 | striplib="$STRIP -x" |
---|
23349 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
23350 | echo "${ECHO_T}yes" >&6; } |
---|
23351 | else |
---|
23352 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
23353 | echo "${ECHO_T}no" >&6; } |
---|
23354 | fi |
---|
23355 | ;; |
---|
23356 | *) |
---|
23357 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
23358 | echo "${ECHO_T}no" >&6; } |
---|
23359 | ;; |
---|
23360 | esac |
---|
23361 | fi |
---|
23362 | |
---|
23363 | if test "x$enable_dlopen" != xyes; then |
---|
23364 | enable_dlopen=unknown |
---|
23365 | enable_dlopen_self=unknown |
---|
23366 | enable_dlopen_self_static=unknown |
---|
23367 | else |
---|
23368 | lt_cv_dlopen=no |
---|
23369 | lt_cv_dlopen_libs= |
---|
23370 | |
---|
23371 | case $host_os in |
---|
23372 | beos*) |
---|
23373 | lt_cv_dlopen="load_add_on" |
---|
23374 | lt_cv_dlopen_libs= |
---|
23375 | lt_cv_dlopen_self=yes |
---|
23376 | ;; |
---|
23377 | |
---|
23378 | mingw* | pw32*) |
---|
23379 | lt_cv_dlopen="LoadLibrary" |
---|
23380 | lt_cv_dlopen_libs= |
---|
23381 | ;; |
---|
23382 | |
---|
23383 | cygwin*) |
---|
23384 | lt_cv_dlopen="dlopen" |
---|
23385 | lt_cv_dlopen_libs= |
---|
23386 | ;; |
---|
23387 | |
---|
23388 | darwin*) |
---|
23389 | # if libdl is installed we need to link against it |
---|
23390 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
23391 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
23392 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
23393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23394 | else |
---|
23395 | ac_check_lib_save_LIBS=$LIBS |
---|
23396 | LIBS="-ldl $LIBS" |
---|
23397 | cat >conftest.$ac_ext <<_ACEOF |
---|
23398 | /* confdefs.h. */ |
---|
23399 | _ACEOF |
---|
23400 | cat confdefs.h >>conftest.$ac_ext |
---|
23401 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23402 | /* end confdefs.h. */ |
---|
23403 | |
---|
23404 | /* Override any GCC internal prototype to avoid an error. |
---|
23405 | Use char because int might match the return type of a GCC |
---|
23406 | builtin and then its argument prototype would still apply. */ |
---|
23407 | #ifdef __cplusplus |
---|
23408 | extern "C" |
---|
23409 | #endif |
---|
23410 | char dlopen (); |
---|
23411 | int |
---|
23412 | main () |
---|
23413 | { |
---|
23414 | return dlopen (); |
---|
23415 | ; |
---|
23416 | return 0; |
---|
23417 | } |
---|
23418 | _ACEOF |
---|
23419 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23420 | if { (ac_try="$ac_link" |
---|
23421 | case "(($ac_try" in |
---|
23422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23423 | *) ac_try_echo=$ac_try;; |
---|
23424 | esac |
---|
23425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23426 | (eval "$ac_link") 2>conftest.er1 |
---|
23427 | ac_status=$? |
---|
23428 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23429 | rm -f conftest.er1 |
---|
23430 | cat conftest.err >&5 |
---|
23431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23432 | (exit $ac_status); } && { |
---|
23433 | test -z "$ac_cxx_werror_flag" || |
---|
23434 | test ! -s conftest.err |
---|
23435 | } && test -s conftest$ac_exeext && |
---|
23436 | $as_test_x conftest$ac_exeext; then |
---|
23437 | ac_cv_lib_dl_dlopen=yes |
---|
23438 | else |
---|
23439 | echo "$as_me: failed program was:" >&5 |
---|
23440 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23441 | |
---|
23442 | ac_cv_lib_dl_dlopen=no |
---|
23443 | fi |
---|
23444 | |
---|
23445 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23446 | conftest$ac_exeext conftest.$ac_ext |
---|
23447 | LIBS=$ac_check_lib_save_LIBS |
---|
23448 | fi |
---|
23449 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
23450 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
23451 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
23452 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
23453 | else |
---|
23454 | |
---|
23455 | lt_cv_dlopen="dyld" |
---|
23456 | lt_cv_dlopen_libs= |
---|
23457 | lt_cv_dlopen_self=yes |
---|
23458 | |
---|
23459 | fi |
---|
23460 | |
---|
23461 | ;; |
---|
23462 | |
---|
23463 | *) |
---|
23464 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
---|
23465 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
---|
23466 | if test "${ac_cv_func_shl_load+set}" = set; then |
---|
23467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23468 | else |
---|
23469 | cat >conftest.$ac_ext <<_ACEOF |
---|
23470 | /* confdefs.h. */ |
---|
23471 | _ACEOF |
---|
23472 | cat confdefs.h >>conftest.$ac_ext |
---|
23473 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23474 | /* end confdefs.h. */ |
---|
23475 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
---|
23476 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
23477 | #define shl_load innocuous_shl_load |
---|
23478 | |
---|
23479 | /* System header to define __stub macros and hopefully few prototypes, |
---|
23480 | which can conflict with char shl_load (); below. |
---|
23481 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
23482 | <limits.h> exists even on freestanding compilers. */ |
---|
23483 | |
---|
23484 | #ifdef __STDC__ |
---|
23485 | # include <limits.h> |
---|
23486 | #else |
---|
23487 | # include <assert.h> |
---|
23488 | #endif |
---|
23489 | |
---|
23490 | #undef shl_load |
---|
23491 | |
---|
23492 | /* Override any GCC internal prototype to avoid an error. |
---|
23493 | Use char because int might match the return type of a GCC |
---|
23494 | builtin and then its argument prototype would still apply. */ |
---|
23495 | #ifdef __cplusplus |
---|
23496 | extern "C" |
---|
23497 | #endif |
---|
23498 | char shl_load (); |
---|
23499 | /* The GNU C library defines this for functions which it implements |
---|
23500 | to always fail with ENOSYS. Some functions are actually named |
---|
23501 | something starting with __ and the normal name is an alias. */ |
---|
23502 | #if defined __stub_shl_load || defined __stub___shl_load |
---|
23503 | choke me |
---|
23504 | #endif |
---|
23505 | |
---|
23506 | int |
---|
23507 | main () |
---|
23508 | { |
---|
23509 | return shl_load (); |
---|
23510 | ; |
---|
23511 | return 0; |
---|
23512 | } |
---|
23513 | _ACEOF |
---|
23514 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23515 | if { (ac_try="$ac_link" |
---|
23516 | case "(($ac_try" in |
---|
23517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23518 | *) ac_try_echo=$ac_try;; |
---|
23519 | esac |
---|
23520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23521 | (eval "$ac_link") 2>conftest.er1 |
---|
23522 | ac_status=$? |
---|
23523 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23524 | rm -f conftest.er1 |
---|
23525 | cat conftest.err >&5 |
---|
23526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23527 | (exit $ac_status); } && { |
---|
23528 | test -z "$ac_cxx_werror_flag" || |
---|
23529 | test ! -s conftest.err |
---|
23530 | } && test -s conftest$ac_exeext && |
---|
23531 | $as_test_x conftest$ac_exeext; then |
---|
23532 | ac_cv_func_shl_load=yes |
---|
23533 | else |
---|
23534 | echo "$as_me: failed program was:" >&5 |
---|
23535 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23536 | |
---|
23537 | ac_cv_func_shl_load=no |
---|
23538 | fi |
---|
23539 | |
---|
23540 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23541 | conftest$ac_exeext conftest.$ac_ext |
---|
23542 | fi |
---|
23543 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
---|
23544 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
---|
23545 | if test $ac_cv_func_shl_load = yes; then |
---|
23546 | lt_cv_dlopen="shl_load" |
---|
23547 | else |
---|
23548 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
---|
23549 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
---|
23550 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
---|
23551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23552 | else |
---|
23553 | ac_check_lib_save_LIBS=$LIBS |
---|
23554 | LIBS="-ldld $LIBS" |
---|
23555 | cat >conftest.$ac_ext <<_ACEOF |
---|
23556 | /* confdefs.h. */ |
---|
23557 | _ACEOF |
---|
23558 | cat confdefs.h >>conftest.$ac_ext |
---|
23559 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23560 | /* end confdefs.h. */ |
---|
23561 | |
---|
23562 | /* Override any GCC internal prototype to avoid an error. |
---|
23563 | Use char because int might match the return type of a GCC |
---|
23564 | builtin and then its argument prototype would still apply. */ |
---|
23565 | #ifdef __cplusplus |
---|
23566 | extern "C" |
---|
23567 | #endif |
---|
23568 | char shl_load (); |
---|
23569 | int |
---|
23570 | main () |
---|
23571 | { |
---|
23572 | return shl_load (); |
---|
23573 | ; |
---|
23574 | return 0; |
---|
23575 | } |
---|
23576 | _ACEOF |
---|
23577 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23578 | if { (ac_try="$ac_link" |
---|
23579 | case "(($ac_try" in |
---|
23580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23581 | *) ac_try_echo=$ac_try;; |
---|
23582 | esac |
---|
23583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23584 | (eval "$ac_link") 2>conftest.er1 |
---|
23585 | ac_status=$? |
---|
23586 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23587 | rm -f conftest.er1 |
---|
23588 | cat conftest.err >&5 |
---|
23589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23590 | (exit $ac_status); } && { |
---|
23591 | test -z "$ac_cxx_werror_flag" || |
---|
23592 | test ! -s conftest.err |
---|
23593 | } && test -s conftest$ac_exeext && |
---|
23594 | $as_test_x conftest$ac_exeext; then |
---|
23595 | ac_cv_lib_dld_shl_load=yes |
---|
23596 | else |
---|
23597 | echo "$as_me: failed program was:" >&5 |
---|
23598 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23599 | |
---|
23600 | ac_cv_lib_dld_shl_load=no |
---|
23601 | fi |
---|
23602 | |
---|
23603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23604 | conftest$ac_exeext conftest.$ac_ext |
---|
23605 | LIBS=$ac_check_lib_save_LIBS |
---|
23606 | fi |
---|
23607 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
23608 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
---|
23609 | if test $ac_cv_lib_dld_shl_load = yes; then |
---|
23610 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
---|
23611 | else |
---|
23612 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
---|
23613 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
---|
23614 | if test "${ac_cv_func_dlopen+set}" = set; then |
---|
23615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23616 | else |
---|
23617 | cat >conftest.$ac_ext <<_ACEOF |
---|
23618 | /* confdefs.h. */ |
---|
23619 | _ACEOF |
---|
23620 | cat confdefs.h >>conftest.$ac_ext |
---|
23621 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23622 | /* end confdefs.h. */ |
---|
23623 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
---|
23624 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
23625 | #define dlopen innocuous_dlopen |
---|
23626 | |
---|
23627 | /* System header to define __stub macros and hopefully few prototypes, |
---|
23628 | which can conflict with char dlopen (); below. |
---|
23629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
23630 | <limits.h> exists even on freestanding compilers. */ |
---|
23631 | |
---|
23632 | #ifdef __STDC__ |
---|
23633 | # include <limits.h> |
---|
23634 | #else |
---|
23635 | # include <assert.h> |
---|
23636 | #endif |
---|
23637 | |
---|
23638 | #undef dlopen |
---|
23639 | |
---|
23640 | /* Override any GCC internal prototype to avoid an error. |
---|
23641 | Use char because int might match the return type of a GCC |
---|
23642 | builtin and then its argument prototype would still apply. */ |
---|
23643 | #ifdef __cplusplus |
---|
23644 | extern "C" |
---|
23645 | #endif |
---|
23646 | char dlopen (); |
---|
23647 | /* The GNU C library defines this for functions which it implements |
---|
23648 | to always fail with ENOSYS. Some functions are actually named |
---|
23649 | something starting with __ and the normal name is an alias. */ |
---|
23650 | #if defined __stub_dlopen || defined __stub___dlopen |
---|
23651 | choke me |
---|
23652 | #endif |
---|
23653 | |
---|
23654 | int |
---|
23655 | main () |
---|
23656 | { |
---|
23657 | return dlopen (); |
---|
23658 | ; |
---|
23659 | return 0; |
---|
23660 | } |
---|
23661 | _ACEOF |
---|
23662 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23663 | if { (ac_try="$ac_link" |
---|
23664 | case "(($ac_try" in |
---|
23665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23666 | *) ac_try_echo=$ac_try;; |
---|
23667 | esac |
---|
23668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23669 | (eval "$ac_link") 2>conftest.er1 |
---|
23670 | ac_status=$? |
---|
23671 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23672 | rm -f conftest.er1 |
---|
23673 | cat conftest.err >&5 |
---|
23674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23675 | (exit $ac_status); } && { |
---|
23676 | test -z "$ac_cxx_werror_flag" || |
---|
23677 | test ! -s conftest.err |
---|
23678 | } && test -s conftest$ac_exeext && |
---|
23679 | $as_test_x conftest$ac_exeext; then |
---|
23680 | ac_cv_func_dlopen=yes |
---|
23681 | else |
---|
23682 | echo "$as_me: failed program was:" >&5 |
---|
23683 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23684 | |
---|
23685 | ac_cv_func_dlopen=no |
---|
23686 | fi |
---|
23687 | |
---|
23688 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23689 | conftest$ac_exeext conftest.$ac_ext |
---|
23690 | fi |
---|
23691 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
---|
23692 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
---|
23693 | if test $ac_cv_func_dlopen = yes; then |
---|
23694 | lt_cv_dlopen="dlopen" |
---|
23695 | else |
---|
23696 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
23697 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
23698 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
23699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23700 | else |
---|
23701 | ac_check_lib_save_LIBS=$LIBS |
---|
23702 | LIBS="-ldl $LIBS" |
---|
23703 | cat >conftest.$ac_ext <<_ACEOF |
---|
23704 | /* confdefs.h. */ |
---|
23705 | _ACEOF |
---|
23706 | cat confdefs.h >>conftest.$ac_ext |
---|
23707 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23708 | /* end confdefs.h. */ |
---|
23709 | |
---|
23710 | /* Override any GCC internal prototype to avoid an error. |
---|
23711 | Use char because int might match the return type of a GCC |
---|
23712 | builtin and then its argument prototype would still apply. */ |
---|
23713 | #ifdef __cplusplus |
---|
23714 | extern "C" |
---|
23715 | #endif |
---|
23716 | char dlopen (); |
---|
23717 | int |
---|
23718 | main () |
---|
23719 | { |
---|
23720 | return dlopen (); |
---|
23721 | ; |
---|
23722 | return 0; |
---|
23723 | } |
---|
23724 | _ACEOF |
---|
23725 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23726 | if { (ac_try="$ac_link" |
---|
23727 | case "(($ac_try" in |
---|
23728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23729 | *) ac_try_echo=$ac_try;; |
---|
23730 | esac |
---|
23731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23732 | (eval "$ac_link") 2>conftest.er1 |
---|
23733 | ac_status=$? |
---|
23734 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23735 | rm -f conftest.er1 |
---|
23736 | cat conftest.err >&5 |
---|
23737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23738 | (exit $ac_status); } && { |
---|
23739 | test -z "$ac_cxx_werror_flag" || |
---|
23740 | test ! -s conftest.err |
---|
23741 | } && test -s conftest$ac_exeext && |
---|
23742 | $as_test_x conftest$ac_exeext; then |
---|
23743 | ac_cv_lib_dl_dlopen=yes |
---|
23744 | else |
---|
23745 | echo "$as_me: failed program was:" >&5 |
---|
23746 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23747 | |
---|
23748 | ac_cv_lib_dl_dlopen=no |
---|
23749 | fi |
---|
23750 | |
---|
23751 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23752 | conftest$ac_exeext conftest.$ac_ext |
---|
23753 | LIBS=$ac_check_lib_save_LIBS |
---|
23754 | fi |
---|
23755 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
23756 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
23757 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
23758 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
23759 | else |
---|
23760 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
---|
23761 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
---|
23762 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
---|
23763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23764 | else |
---|
23765 | ac_check_lib_save_LIBS=$LIBS |
---|
23766 | LIBS="-lsvld $LIBS" |
---|
23767 | cat >conftest.$ac_ext <<_ACEOF |
---|
23768 | /* confdefs.h. */ |
---|
23769 | _ACEOF |
---|
23770 | cat confdefs.h >>conftest.$ac_ext |
---|
23771 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23772 | /* end confdefs.h. */ |
---|
23773 | |
---|
23774 | /* Override any GCC internal prototype to avoid an error. |
---|
23775 | Use char because int might match the return type of a GCC |
---|
23776 | builtin and then its argument prototype would still apply. */ |
---|
23777 | #ifdef __cplusplus |
---|
23778 | extern "C" |
---|
23779 | #endif |
---|
23780 | char dlopen (); |
---|
23781 | int |
---|
23782 | main () |
---|
23783 | { |
---|
23784 | return dlopen (); |
---|
23785 | ; |
---|
23786 | return 0; |
---|
23787 | } |
---|
23788 | _ACEOF |
---|
23789 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23790 | if { (ac_try="$ac_link" |
---|
23791 | case "(($ac_try" in |
---|
23792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23793 | *) ac_try_echo=$ac_try;; |
---|
23794 | esac |
---|
23795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23796 | (eval "$ac_link") 2>conftest.er1 |
---|
23797 | ac_status=$? |
---|
23798 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23799 | rm -f conftest.er1 |
---|
23800 | cat conftest.err >&5 |
---|
23801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23802 | (exit $ac_status); } && { |
---|
23803 | test -z "$ac_cxx_werror_flag" || |
---|
23804 | test ! -s conftest.err |
---|
23805 | } && test -s conftest$ac_exeext && |
---|
23806 | $as_test_x conftest$ac_exeext; then |
---|
23807 | ac_cv_lib_svld_dlopen=yes |
---|
23808 | else |
---|
23809 | echo "$as_me: failed program was:" >&5 |
---|
23810 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23811 | |
---|
23812 | ac_cv_lib_svld_dlopen=no |
---|
23813 | fi |
---|
23814 | |
---|
23815 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23816 | conftest$ac_exeext conftest.$ac_ext |
---|
23817 | LIBS=$ac_check_lib_save_LIBS |
---|
23818 | fi |
---|
23819 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
23820 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
---|
23821 | if test $ac_cv_lib_svld_dlopen = yes; then |
---|
23822 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
23823 | else |
---|
23824 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
---|
23825 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
---|
23826 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
---|
23827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23828 | else |
---|
23829 | ac_check_lib_save_LIBS=$LIBS |
---|
23830 | LIBS="-ldld $LIBS" |
---|
23831 | cat >conftest.$ac_ext <<_ACEOF |
---|
23832 | /* confdefs.h. */ |
---|
23833 | _ACEOF |
---|
23834 | cat confdefs.h >>conftest.$ac_ext |
---|
23835 | cat >>conftest.$ac_ext <<_ACEOF |
---|
23836 | /* end confdefs.h. */ |
---|
23837 | |
---|
23838 | /* Override any GCC internal prototype to avoid an error. |
---|
23839 | Use char because int might match the return type of a GCC |
---|
23840 | builtin and then its argument prototype would still apply. */ |
---|
23841 | #ifdef __cplusplus |
---|
23842 | extern "C" |
---|
23843 | #endif |
---|
23844 | char dld_link (); |
---|
23845 | int |
---|
23846 | main () |
---|
23847 | { |
---|
23848 | return dld_link (); |
---|
23849 | ; |
---|
23850 | return 0; |
---|
23851 | } |
---|
23852 | _ACEOF |
---|
23853 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
23854 | if { (ac_try="$ac_link" |
---|
23855 | case "(($ac_try" in |
---|
23856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
23857 | *) ac_try_echo=$ac_try;; |
---|
23858 | esac |
---|
23859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
23860 | (eval "$ac_link") 2>conftest.er1 |
---|
23861 | ac_status=$? |
---|
23862 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
23863 | rm -f conftest.er1 |
---|
23864 | cat conftest.err >&5 |
---|
23865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
23866 | (exit $ac_status); } && { |
---|
23867 | test -z "$ac_cxx_werror_flag" || |
---|
23868 | test ! -s conftest.err |
---|
23869 | } && test -s conftest$ac_exeext && |
---|
23870 | $as_test_x conftest$ac_exeext; then |
---|
23871 | ac_cv_lib_dld_dld_link=yes |
---|
23872 | else |
---|
23873 | echo "$as_me: failed program was:" >&5 |
---|
23874 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
23875 | |
---|
23876 | ac_cv_lib_dld_dld_link=no |
---|
23877 | fi |
---|
23878 | |
---|
23879 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
23880 | conftest$ac_exeext conftest.$ac_ext |
---|
23881 | LIBS=$ac_check_lib_save_LIBS |
---|
23882 | fi |
---|
23883 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
23884 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
---|
23885 | if test $ac_cv_lib_dld_dld_link = yes; then |
---|
23886 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
---|
23887 | fi |
---|
23888 | |
---|
23889 | |
---|
23890 | fi |
---|
23891 | |
---|
23892 | |
---|
23893 | fi |
---|
23894 | |
---|
23895 | |
---|
23896 | fi |
---|
23897 | |
---|
23898 | |
---|
23899 | fi |
---|
23900 | |
---|
23901 | |
---|
23902 | fi |
---|
23903 | |
---|
23904 | ;; |
---|
23905 | esac |
---|
23906 | |
---|
23907 | if test "x$lt_cv_dlopen" != xno; then |
---|
23908 | enable_dlopen=yes |
---|
23909 | else |
---|
23910 | enable_dlopen=no |
---|
23911 | fi |
---|
23912 | |
---|
23913 | case $lt_cv_dlopen in |
---|
23914 | dlopen) |
---|
23915 | save_CPPFLAGS="$CPPFLAGS" |
---|
23916 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
23917 | |
---|
23918 | save_LDFLAGS="$LDFLAGS" |
---|
23919 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
23920 | |
---|
23921 | save_LIBS="$LIBS" |
---|
23922 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
23923 | |
---|
23924 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
---|
23925 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
---|
23926 | if test "${lt_cv_dlopen_self+set}" = set; then |
---|
23927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
23928 | else |
---|
23929 | if test "$cross_compiling" = yes; then : |
---|
23930 | lt_cv_dlopen_self=cross |
---|
23931 | else |
---|
23932 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
23933 | lt_status=$lt_dlunknown |
---|
23934 | cat > conftest.$ac_ext <<EOF |
---|
23935 | #line 23935 "configure" |
---|
23936 | #include "confdefs.h" |
---|
23937 | |
---|
23938 | #if HAVE_DLFCN_H |
---|
23939 | #include <dlfcn.h> |
---|
23940 | #endif |
---|
23941 | |
---|
23942 | #include <stdio.h> |
---|
23943 | |
---|
23944 | #ifdef RTLD_GLOBAL |
---|
23945 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
23946 | #else |
---|
23947 | # ifdef DL_GLOBAL |
---|
23948 | # define LT_DLGLOBAL DL_GLOBAL |
---|
23949 | # else |
---|
23950 | # define LT_DLGLOBAL 0 |
---|
23951 | # endif |
---|
23952 | #endif |
---|
23953 | |
---|
23954 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
23955 | find out it does not work in some platform. */ |
---|
23956 | #ifndef LT_DLLAZY_OR_NOW |
---|
23957 | # ifdef RTLD_LAZY |
---|
23958 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
23959 | # else |
---|
23960 | # ifdef DL_LAZY |
---|
23961 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
23962 | # else |
---|
23963 | # ifdef RTLD_NOW |
---|
23964 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
23965 | # else |
---|
23966 | # ifdef DL_NOW |
---|
23967 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
23968 | # else |
---|
23969 | # define LT_DLLAZY_OR_NOW 0 |
---|
23970 | # endif |
---|
23971 | # endif |
---|
23972 | # endif |
---|
23973 | # endif |
---|
23974 | #endif |
---|
23975 | |
---|
23976 | #ifdef __cplusplus |
---|
23977 | extern "C" void exit (int); |
---|
23978 | #endif |
---|
23979 | |
---|
23980 | void fnord() { int i=42;} |
---|
23981 | int main () |
---|
23982 | { |
---|
23983 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
23984 | int status = $lt_dlunknown; |
---|
23985 | |
---|
23986 | if (self) |
---|
23987 | { |
---|
23988 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
23989 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
23990 | /* dlclose (self); */ |
---|
23991 | } |
---|
23992 | |
---|
23993 | exit (status); |
---|
23994 | } |
---|
23995 | EOF |
---|
23996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
23997 | (eval $ac_link) 2>&5 |
---|
23998 | ac_status=$? |
---|
23999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24000 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
24001 | (./conftest; exit; ) >&5 2>/dev/null |
---|
24002 | lt_status=$? |
---|
24003 | case x$lt_status in |
---|
24004 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
24005 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
24006 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
---|
24007 | esac |
---|
24008 | else : |
---|
24009 | # compilation failed |
---|
24010 | lt_cv_dlopen_self=no |
---|
24011 | fi |
---|
24012 | fi |
---|
24013 | rm -fr conftest* |
---|
24014 | |
---|
24015 | |
---|
24016 | fi |
---|
24017 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
---|
24018 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
---|
24019 | |
---|
24020 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
24021 | LDFLAGS="$LDFLAGS $link_static_flag" |
---|
24022 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
---|
24023 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
---|
24024 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
---|
24025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24026 | else |
---|
24027 | if test "$cross_compiling" = yes; then : |
---|
24028 | lt_cv_dlopen_self_static=cross |
---|
24029 | else |
---|
24030 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
24031 | lt_status=$lt_dlunknown |
---|
24032 | cat > conftest.$ac_ext <<EOF |
---|
24033 | #line 24033 "configure" |
---|
24034 | #include "confdefs.h" |
---|
24035 | |
---|
24036 | #if HAVE_DLFCN_H |
---|
24037 | #include <dlfcn.h> |
---|
24038 | #endif |
---|
24039 | |
---|
24040 | #include <stdio.h> |
---|
24041 | |
---|
24042 | #ifdef RTLD_GLOBAL |
---|
24043 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
24044 | #else |
---|
24045 | # ifdef DL_GLOBAL |
---|
24046 | # define LT_DLGLOBAL DL_GLOBAL |
---|
24047 | # else |
---|
24048 | # define LT_DLGLOBAL 0 |
---|
24049 | # endif |
---|
24050 | #endif |
---|
24051 | |
---|
24052 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
24053 | find out it does not work in some platform. */ |
---|
24054 | #ifndef LT_DLLAZY_OR_NOW |
---|
24055 | # ifdef RTLD_LAZY |
---|
24056 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
24057 | # else |
---|
24058 | # ifdef DL_LAZY |
---|
24059 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
24060 | # else |
---|
24061 | # ifdef RTLD_NOW |
---|
24062 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
24063 | # else |
---|
24064 | # ifdef DL_NOW |
---|
24065 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
24066 | # else |
---|
24067 | # define LT_DLLAZY_OR_NOW 0 |
---|
24068 | # endif |
---|
24069 | # endif |
---|
24070 | # endif |
---|
24071 | # endif |
---|
24072 | #endif |
---|
24073 | |
---|
24074 | #ifdef __cplusplus |
---|
24075 | extern "C" void exit (int); |
---|
24076 | #endif |
---|
24077 | |
---|
24078 | void fnord() { int i=42;} |
---|
24079 | int main () |
---|
24080 | { |
---|
24081 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
24082 | int status = $lt_dlunknown; |
---|
24083 | |
---|
24084 | if (self) |
---|
24085 | { |
---|
24086 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
24087 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
24088 | /* dlclose (self); */ |
---|
24089 | } |
---|
24090 | |
---|
24091 | exit (status); |
---|
24092 | } |
---|
24093 | EOF |
---|
24094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
24095 | (eval $ac_link) 2>&5 |
---|
24096 | ac_status=$? |
---|
24097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24098 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
24099 | (./conftest; exit; ) >&5 2>/dev/null |
---|
24100 | lt_status=$? |
---|
24101 | case x$lt_status in |
---|
24102 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
24103 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
24104 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
24105 | esac |
---|
24106 | else : |
---|
24107 | # compilation failed |
---|
24108 | lt_cv_dlopen_self_static=no |
---|
24109 | fi |
---|
24110 | fi |
---|
24111 | rm -fr conftest* |
---|
24112 | |
---|
24113 | |
---|
24114 | fi |
---|
24115 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
---|
24116 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
---|
24117 | fi |
---|
24118 | |
---|
24119 | CPPFLAGS="$save_CPPFLAGS" |
---|
24120 | LDFLAGS="$save_LDFLAGS" |
---|
24121 | LIBS="$save_LIBS" |
---|
24122 | ;; |
---|
24123 | esac |
---|
24124 | |
---|
24125 | case $lt_cv_dlopen_self in |
---|
24126 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
24127 | *) enable_dlopen_self=unknown ;; |
---|
24128 | esac |
---|
24129 | |
---|
24130 | case $lt_cv_dlopen_self_static in |
---|
24131 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
24132 | *) enable_dlopen_self_static=unknown ;; |
---|
24133 | esac |
---|
24134 | fi |
---|
24135 | |
---|
24136 | |
---|
24137 | # The else clause should only fire when bootstrapping the |
---|
24138 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
---|
24139 | # with your package, and you will get complaints that there are |
---|
24140 | # no rules to generate ltmain.sh. |
---|
24141 | if test -f "$ltmain"; then |
---|
24142 | # See if we are running on zsh, and set the options which allow our commands through |
---|
24143 | # without removal of \ escapes. |
---|
24144 | if test -n "${ZSH_VERSION+set}" ; then |
---|
24145 | setopt NO_GLOB_SUBST |
---|
24146 | fi |
---|
24147 | # Now quote all the things that may contain metacharacters while being |
---|
24148 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
---|
24149 | # variables and quote the copies for generation of the libtool script. |
---|
24150 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
---|
24151 | SED SHELL STRIP \ |
---|
24152 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
---|
24153 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
---|
24154 | deplibs_check_method reload_flag reload_cmds need_locks \ |
---|
24155 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
---|
24156 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
24157 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
---|
24158 | old_postinstall_cmds old_postuninstall_cmds \ |
---|
24159 | compiler_CXX \ |
---|
24160 | CC_CXX \ |
---|
24161 | LD_CXX \ |
---|
24162 | lt_prog_compiler_wl_CXX \ |
---|
24163 | lt_prog_compiler_pic_CXX \ |
---|
24164 | lt_prog_compiler_static_CXX \ |
---|
24165 | lt_prog_compiler_no_builtin_flag_CXX \ |
---|
24166 | export_dynamic_flag_spec_CXX \ |
---|
24167 | thread_safe_flag_spec_CXX \ |
---|
24168 | whole_archive_flag_spec_CXX \ |
---|
24169 | enable_shared_with_static_runtimes_CXX \ |
---|
24170 | old_archive_cmds_CXX \ |
---|
24171 | old_archive_from_new_cmds_CXX \ |
---|
24172 | predep_objects_CXX \ |
---|
24173 | postdep_objects_CXX \ |
---|
24174 | predeps_CXX \ |
---|
24175 | postdeps_CXX \ |
---|
24176 | compiler_lib_search_path_CXX \ |
---|
24177 | archive_cmds_CXX \ |
---|
24178 | archive_expsym_cmds_CXX \ |
---|
24179 | postinstall_cmds_CXX \ |
---|
24180 | postuninstall_cmds_CXX \ |
---|
24181 | old_archive_from_expsyms_cmds_CXX \ |
---|
24182 | allow_undefined_flag_CXX \ |
---|
24183 | no_undefined_flag_CXX \ |
---|
24184 | export_symbols_cmds_CXX \ |
---|
24185 | hardcode_libdir_flag_spec_CXX \ |
---|
24186 | hardcode_libdir_flag_spec_ld_CXX \ |
---|
24187 | hardcode_libdir_separator_CXX \ |
---|
24188 | hardcode_automatic_CXX \ |
---|
24189 | module_cmds_CXX \ |
---|
24190 | module_expsym_cmds_CXX \ |
---|
24191 | lt_cv_prog_compiler_c_o_CXX \ |
---|
24192 | exclude_expsyms_CXX \ |
---|
24193 | include_expsyms_CXX; do |
---|
24194 | |
---|
24195 | case $var in |
---|
24196 | old_archive_cmds_CXX | \ |
---|
24197 | old_archive_from_new_cmds_CXX | \ |
---|
24198 | archive_cmds_CXX | \ |
---|
24199 | archive_expsym_cmds_CXX | \ |
---|
24200 | module_cmds_CXX | \ |
---|
24201 | module_expsym_cmds_CXX | \ |
---|
24202 | old_archive_from_expsyms_cmds_CXX | \ |
---|
24203 | export_symbols_cmds_CXX | \ |
---|
24204 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
---|
24205 | postinstall_cmds | postuninstall_cmds | \ |
---|
24206 | old_postinstall_cmds | old_postuninstall_cmds | \ |
---|
24207 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
---|
24208 | # Double-quote double-evaled strings. |
---|
24209 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
---|
24210 | ;; |
---|
24211 | *) |
---|
24212 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
---|
24213 | ;; |
---|
24214 | esac |
---|
24215 | done |
---|
24216 | |
---|
24217 | case $lt_echo in |
---|
24218 | *'\$0 --fallback-echo"') |
---|
24219 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
---|
24220 | ;; |
---|
24221 | esac |
---|
24222 | |
---|
24223 | cfgfile="$ofile" |
---|
24224 | |
---|
24225 | cat <<__EOF__ >> "$cfgfile" |
---|
24226 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
---|
24227 | |
---|
24228 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
24229 | |
---|
24230 | # Shell to use when invoking shell scripts. |
---|
24231 | SHELL=$lt_SHELL |
---|
24232 | |
---|
24233 | # Whether or not to build shared libraries. |
---|
24234 | build_libtool_libs=$enable_shared |
---|
24235 | |
---|
24236 | # Whether or not to build static libraries. |
---|
24237 | build_old_libs=$enable_static |
---|
24238 | |
---|
24239 | # Whether or not to add -lc for building shared libraries. |
---|
24240 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
---|
24241 | |
---|
24242 | # Whether or not to disallow shared libs when runtime libs are static |
---|
24243 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
---|
24244 | |
---|
24245 | # Whether or not to optimize for fast installation. |
---|
24246 | fast_install=$enable_fast_install |
---|
24247 | |
---|
24248 | # The host system. |
---|
24249 | host_alias=$host_alias |
---|
24250 | host=$host |
---|
24251 | host_os=$host_os |
---|
24252 | |
---|
24253 | # The build system. |
---|
24254 | build_alias=$build_alias |
---|
24255 | build=$build |
---|
24256 | build_os=$build_os |
---|
24257 | |
---|
24258 | # An echo program that does not interpret backslashes. |
---|
24259 | echo=$lt_echo |
---|
24260 | |
---|
24261 | # The archiver. |
---|
24262 | AR=$lt_AR |
---|
24263 | AR_FLAGS=$lt_AR_FLAGS |
---|
24264 | |
---|
24265 | # A C compiler. |
---|
24266 | LTCC=$lt_LTCC |
---|
24267 | |
---|
24268 | # A language-specific compiler. |
---|
24269 | CC=$lt_compiler_CXX |
---|
24270 | |
---|
24271 | # Is the compiler the GNU C compiler? |
---|
24272 | with_gcc=$GCC_CXX |
---|
24273 | |
---|
24274 | # An ERE matcher. |
---|
24275 | EGREP=$lt_EGREP |
---|
24276 | |
---|
24277 | # The linker used to build libraries. |
---|
24278 | LD=$lt_LD_CXX |
---|
24279 | |
---|
24280 | # Whether we need hard or soft links. |
---|
24281 | LN_S=$lt_LN_S |
---|
24282 | |
---|
24283 | # A BSD-compatible nm program. |
---|
24284 | NM=$lt_NM |
---|
24285 | |
---|
24286 | # A symbol stripping program |
---|
24287 | STRIP=$lt_STRIP |
---|
24288 | |
---|
24289 | # Used to examine libraries when file_magic_cmd begins "file" |
---|
24290 | MAGIC_CMD=$MAGIC_CMD |
---|
24291 | |
---|
24292 | # Used on cygwin: DLL creation program. |
---|
24293 | DLLTOOL="$DLLTOOL" |
---|
24294 | |
---|
24295 | # Used on cygwin: object dumper. |
---|
24296 | OBJDUMP="$OBJDUMP" |
---|
24297 | |
---|
24298 | # Used on cygwin: assembler. |
---|
24299 | AS="$AS" |
---|
24300 | |
---|
24301 | # The name of the directory that contains temporary libtool files. |
---|
24302 | objdir=$objdir |
---|
24303 | |
---|
24304 | # How to create reloadable object files. |
---|
24305 | reload_flag=$lt_reload_flag |
---|
24306 | reload_cmds=$lt_reload_cmds |
---|
24307 | |
---|
24308 | # How to pass a linker flag through the compiler. |
---|
24309 | wl=$lt_lt_prog_compiler_wl_CXX |
---|
24310 | |
---|
24311 | # Object file suffix (normally "o"). |
---|
24312 | objext="$ac_objext" |
---|
24313 | |
---|
24314 | # Old archive suffix (normally "a"). |
---|
24315 | libext="$libext" |
---|
24316 | |
---|
24317 | # Shared library suffix (normally ".so"). |
---|
24318 | shrext_cmds='$shrext_cmds' |
---|
24319 | |
---|
24320 | # Executable file suffix (normally ""). |
---|
24321 | exeext="$exeext" |
---|
24322 | |
---|
24323 | # Additional compiler flags for building library objects. |
---|
24324 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
---|
24325 | pic_mode=$pic_mode |
---|
24326 | |
---|
24327 | # What is the maximum length of a command? |
---|
24328 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
24329 | |
---|
24330 | # Does compiler simultaneously support -c and -o options? |
---|
24331 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
---|
24332 | |
---|
24333 | # Must we lock files when doing compilation? |
---|
24334 | need_locks=$lt_need_locks |
---|
24335 | |
---|
24336 | # Do we need the lib prefix for modules? |
---|
24337 | need_lib_prefix=$need_lib_prefix |
---|
24338 | |
---|
24339 | # Do we need a version for libraries? |
---|
24340 | need_version=$need_version |
---|
24341 | |
---|
24342 | # Whether dlopen is supported. |
---|
24343 | dlopen_support=$enable_dlopen |
---|
24344 | |
---|
24345 | # Whether dlopen of programs is supported. |
---|
24346 | dlopen_self=$enable_dlopen_self |
---|
24347 | |
---|
24348 | # Whether dlopen of statically linked programs is supported. |
---|
24349 | dlopen_self_static=$enable_dlopen_self_static |
---|
24350 | |
---|
24351 | # Compiler flag to prevent dynamic linking. |
---|
24352 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
---|
24353 | |
---|
24354 | # Compiler flag to turn off builtin functions. |
---|
24355 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
---|
24356 | |
---|
24357 | # Compiler flag to allow reflexive dlopens. |
---|
24358 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
---|
24359 | |
---|
24360 | # Compiler flag to generate shared objects directly from archives. |
---|
24361 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
---|
24362 | |
---|
24363 | # Compiler flag to generate thread-safe objects. |
---|
24364 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
---|
24365 | |
---|
24366 | # Library versioning type. |
---|
24367 | version_type=$version_type |
---|
24368 | |
---|
24369 | # Format of library name prefix. |
---|
24370 | libname_spec=$lt_libname_spec |
---|
24371 | |
---|
24372 | # List of archive names. First name is the real one, the rest are links. |
---|
24373 | # The last name is the one that the linker finds with -lNAME. |
---|
24374 | library_names_spec=$lt_library_names_spec |
---|
24375 | |
---|
24376 | # The coded name of the library, if different from the real name. |
---|
24377 | soname_spec=$lt_soname_spec |
---|
24378 | |
---|
24379 | # Commands used to build and install an old-style archive. |
---|
24380 | RANLIB=$lt_RANLIB |
---|
24381 | old_archive_cmds=$lt_old_archive_cmds_CXX |
---|
24382 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
24383 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
24384 | |
---|
24385 | # Create an old-style archive from a shared archive. |
---|
24386 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
---|
24387 | |
---|
24388 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
24389 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
---|
24390 | |
---|
24391 | # Commands used to build and install a shared archive. |
---|
24392 | archive_cmds=$lt_archive_cmds_CXX |
---|
24393 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
---|
24394 | postinstall_cmds=$lt_postinstall_cmds |
---|
24395 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
24396 | |
---|
24397 | # Commands used to build a loadable module (assumed same as above if empty) |
---|
24398 | module_cmds=$lt_module_cmds_CXX |
---|
24399 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
---|
24400 | |
---|
24401 | # Commands to strip libraries. |
---|
24402 | old_striplib=$lt_old_striplib |
---|
24403 | striplib=$lt_striplib |
---|
24404 | |
---|
24405 | # Dependencies to place before the objects being linked to create a |
---|
24406 | # shared library. |
---|
24407 | predep_objects=$lt_predep_objects_CXX |
---|
24408 | |
---|
24409 | # Dependencies to place after the objects being linked to create a |
---|
24410 | # shared library. |
---|
24411 | postdep_objects=$lt_postdep_objects_CXX |
---|
24412 | |
---|
24413 | # Dependencies to place before the objects being linked to create a |
---|
24414 | # shared library. |
---|
24415 | predeps=$lt_predeps_CXX |
---|
24416 | |
---|
24417 | # Dependencies to place after the objects being linked to create a |
---|
24418 | # shared library. |
---|
24419 | postdeps=$lt_postdeps_CXX |
---|
24420 | |
---|
24421 | # The library search path used internally by the compiler when linking |
---|
24422 | # a shared library. |
---|
24423 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
---|
24424 | |
---|
24425 | # Method to check whether dependent libraries are shared objects. |
---|
24426 | deplibs_check_method=$lt_deplibs_check_method |
---|
24427 | |
---|
24428 | # Command to use when deplibs_check_method == file_magic. |
---|
24429 | file_magic_cmd=$lt_file_magic_cmd |
---|
24430 | |
---|
24431 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
24432 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
---|
24433 | |
---|
24434 | # Flag that forces no undefined symbols. |
---|
24435 | no_undefined_flag=$lt_no_undefined_flag_CXX |
---|
24436 | |
---|
24437 | # Commands used to finish a libtool library installation in a directory. |
---|
24438 | finish_cmds=$lt_finish_cmds |
---|
24439 | |
---|
24440 | # Same as above, but a single script fragment to be evaled but not shown. |
---|
24441 | finish_eval=$lt_finish_eval |
---|
24442 | |
---|
24443 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
24444 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
24445 | |
---|
24446 | # Transform the output of nm in a proper C declaration |
---|
24447 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
24448 | |
---|
24449 | # Transform the output of nm in a C name address pair |
---|
24450 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
24451 | |
---|
24452 | # This is the shared library runtime path variable. |
---|
24453 | runpath_var=$runpath_var |
---|
24454 | |
---|
24455 | # This is the shared library path variable. |
---|
24456 | shlibpath_var=$shlibpath_var |
---|
24457 | |
---|
24458 | # Is shlibpath searched before the hard-coded library search path? |
---|
24459 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
24460 | |
---|
24461 | # How to hardcode a shared library path into an executable. |
---|
24462 | hardcode_action=$hardcode_action_CXX |
---|
24463 | |
---|
24464 | # Whether we should hardcode library paths into libraries. |
---|
24465 | hardcode_into_libs=$hardcode_into_libs |
---|
24466 | |
---|
24467 | # Flag to hardcode \$libdir into a binary during linking. |
---|
24468 | # This must work even if \$libdir does not exist. |
---|
24469 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
---|
24470 | |
---|
24471 | # If ld is used when linking, flag to hardcode \$libdir into |
---|
24472 | # a binary during linking. This must work even if \$libdir does |
---|
24473 | # not exist. |
---|
24474 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
---|
24475 | |
---|
24476 | # Whether we need a single -rpath flag with a separated argument. |
---|
24477 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
---|
24478 | |
---|
24479 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
---|
24480 | # resulting binary. |
---|
24481 | hardcode_direct=$hardcode_direct_CXX |
---|
24482 | |
---|
24483 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
---|
24484 | # resulting binary. |
---|
24485 | hardcode_minus_L=$hardcode_minus_L_CXX |
---|
24486 | |
---|
24487 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
---|
24488 | # the resulting binary. |
---|
24489 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
---|
24490 | |
---|
24491 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
---|
24492 | # and all subsequent libraries and executables linked against it. |
---|
24493 | hardcode_automatic=$hardcode_automatic_CXX |
---|
24494 | |
---|
24495 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
24496 | # restored at relink time. |
---|
24497 | variables_saved_for_relink="$variables_saved_for_relink" |
---|
24498 | |
---|
24499 | # Whether libtool must link a program against all its dependency libraries. |
---|
24500 | link_all_deplibs=$link_all_deplibs_CXX |
---|
24501 | |
---|
24502 | # Compile-time system search path for libraries |
---|
24503 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
24504 | |
---|
24505 | # Run-time system search path for libraries |
---|
24506 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
24507 | |
---|
24508 | # Fix the shell variable \$srcfile for the compiler. |
---|
24509 | fix_srcfile_path="$fix_srcfile_path_CXX" |
---|
24510 | |
---|
24511 | # Set to yes if exported symbols are required. |
---|
24512 | always_export_symbols=$always_export_symbols_CXX |
---|
24513 | |
---|
24514 | # The commands to list exported symbols. |
---|
24515 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
---|
24516 | |
---|
24517 | # The commands to extract the exported symbol list from a shared archive. |
---|
24518 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
24519 | |
---|
24520 | # Symbols that should not be listed in the preloaded symbols. |
---|
24521 | exclude_expsyms=$lt_exclude_expsyms_CXX |
---|
24522 | |
---|
24523 | # Symbols that must always be exported. |
---|
24524 | include_expsyms=$lt_include_expsyms_CXX |
---|
24525 | |
---|
24526 | # ### END LIBTOOL TAG CONFIG: $tagname |
---|
24527 | |
---|
24528 | __EOF__ |
---|
24529 | |
---|
24530 | |
---|
24531 | else |
---|
24532 | # If there is no Makefile yet, we rely on a make rule to execute |
---|
24533 | # `config.status --recheck' to rerun these tests and create the |
---|
24534 | # libtool script then. |
---|
24535 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
---|
24536 | if test -f "$ltmain_in"; then |
---|
24537 | test -f Makefile && make "$ltmain" |
---|
24538 | fi |
---|
24539 | fi |
---|
24540 | |
---|
24541 | |
---|
24542 | ac_ext=c |
---|
24543 | ac_cpp='$CPP $CPPFLAGS' |
---|
24544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
24545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
24546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
24547 | |
---|
24548 | CC=$lt_save_CC |
---|
24549 | LDCXX=$LD |
---|
24550 | LD=$lt_save_LD |
---|
24551 | GCC=$lt_save_GCC |
---|
24552 | with_gnu_ldcxx=$with_gnu_ld |
---|
24553 | with_gnu_ld=$lt_save_with_gnu_ld |
---|
24554 | lt_cv_path_LDCXX=$lt_cv_path_LD |
---|
24555 | lt_cv_path_LD=$lt_save_path_LD |
---|
24556 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
---|
24557 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
---|
24558 | |
---|
24559 | |
---|
24560 | # OGRE_CFLAGS contains the compiler flags crucial for stand-alone client |
---|
24561 | # programs. They are exported via pkg-config, but not used while building |
---|
24562 | # Ogre itself; instead, they are defined in config.h. |
---|
24563 | |
---|
24564 | |
---|
24565 | # Check if compiler supports symbol visibility |
---|
24566 | # There are quirks for x86_64 and debug builds with gcc < 4.2 |
---|
24567 | ac_ext=cpp |
---|
24568 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
24569 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
24570 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
24571 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
24572 | |
---|
24573 | |
---|
24574 | { echo "$as_me:$LINENO: checking if $CXX supports -fvisibility" >&5 |
---|
24575 | echo $ECHO_N "checking if $CXX supports -fvisibility... $ECHO_C" >&6; } |
---|
24576 | if test "${ogre_prog_compiler_supports_visibility+set}" = set; then |
---|
24577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24578 | else |
---|
24579 | ogre_prog_compiler_supports_visibility=no |
---|
24580 | ac_outfile=conftest.$ac_objext |
---|
24581 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
24582 | lt_compiler_flag="-fvisibility=hidden -fvisibility-inlines-hidden" |
---|
24583 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
24584 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
24585 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
24586 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
24587 | # The option is referenced via a variable to avoid confusing sed. |
---|
24588 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
24589 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
24590 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
24591 | -e 's:$: $lt_compiler_flag:'` |
---|
24592 | (eval echo "\"\$as_me:24592: $lt_compile\"" >&5) |
---|
24593 | (eval "$lt_compile" 2>conftest.err) |
---|
24594 | ac_status=$? |
---|
24595 | cat conftest.err >&5 |
---|
24596 | echo "$as_me:24596: \$? = $ac_status" >&5 |
---|
24597 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
24598 | # The compiler can only warn and ignore the option if not recognized |
---|
24599 | # So say no if there are warnings other than the usual output. |
---|
24600 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
---|
24601 | $SED '/^$/d' conftest.err >conftest.er2 |
---|
24602 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
---|
24603 | ogre_prog_compiler_supports_visibility=yes |
---|
24604 | fi |
---|
24605 | fi |
---|
24606 | $rm conftest* |
---|
24607 | |
---|
24608 | fi |
---|
24609 | { echo "$as_me:$LINENO: result: $ogre_prog_compiler_supports_visibility" >&5 |
---|
24610 | echo "${ECHO_T}$ogre_prog_compiler_supports_visibility" >&6; } |
---|
24611 | |
---|
24612 | if test x"$ogre_prog_compiler_supports_visibility" = xyes; then |
---|
24613 | CFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden -DOGRE_GCC_VISIBILITY"; |
---|
24614 | case $target_cpu in |
---|
24615 | x86_64* ) |
---|
24616 | if ! echo "$CFLAGS $CXXFLAGS" | grep -q "\-O"; then |
---|
24617 | echo "***********************************************************************" |
---|
24618 | echo "WARNING: It looks like you're doing a debug build for an x86_64 target." |
---|
24619 | echo "The -fvisibility-inlines-hidden flag is known to give problems in such" |
---|
24620 | echo "situations with libstdc++ < 4.2. Disabling the compiler flag." |
---|
24621 | echo "***********************************************************************" |
---|
24622 | CFLAGS_VISIBILITY="-fvisibility=hidden -DOGRE_GCC_VISIBILITY" |
---|
24623 | fi |
---|
24624 | ;; |
---|
24625 | esac |
---|
24626 | case $CXX in |
---|
24627 | icpc ) |
---|
24628 | echo "***********************************************************************" |
---|
24629 | echo "WARNING: The intel compiler currently has bugs in its -fvisibility" |
---|
24630 | echo "implementation. Disabling the compiler flag." |
---|
24631 | echo "***********************************************************************" |
---|
24632 | CFLAGS_VISIBILITY="" |
---|
24633 | ;; |
---|
24634 | esac |
---|
24635 | |
---|
24636 | else |
---|
24637 | : |
---|
24638 | fi |
---|
24639 | |
---|
24640 | |
---|
24641 | ac_ext=c |
---|
24642 | ac_cpp='$CPP $CPPFLAGS' |
---|
24643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
24644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
24645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
24646 | |
---|
24647 | |
---|
24648 | |
---|
24649 | # Check whether --with-stlport was given. |
---|
24650 | if test "${with_stlport+set}" = set; then |
---|
24651 | withval=$with_stlport; ac_cv_use_stlport=$withval |
---|
24652 | else |
---|
24653 | ac_cv_use_stlport=no |
---|
24654 | fi |
---|
24655 | |
---|
24656 | { echo "$as_me:$LINENO: checking whether to use STLPort" >&5 |
---|
24657 | echo $ECHO_N "checking whether to use STLPort... $ECHO_C" >&6; } |
---|
24658 | if test "${ac_cv_use_stlport+set}" = set; then |
---|
24659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24660 | else |
---|
24661 | ac_cv_use_stlport=no |
---|
24662 | fi |
---|
24663 | { echo "$as_me:$LINENO: result: $ac_cv_use_stlport" >&5 |
---|
24664 | echo "${ECHO_T}$ac_cv_use_stlport" >&6; } |
---|
24665 | if test x$ac_cv_use_stlport != xno; then |
---|
24666 | STLPORT_CFLAGS="-I$ac_cv_use_stlport/stlport" |
---|
24667 | STLPORT_LIBS="-L$ac_cv_use_stlport/lib -lstlport" |
---|
24668 | fi |
---|
24669 | |
---|
24670 | |
---|
24671 | |
---|
24672 | |
---|
24673 | # Check whether --with-ft-prefix was given. |
---|
24674 | if test "${with_ft_prefix+set}" = set; then |
---|
24675 | withval=$with_ft_prefix; ft_config_prefix="$withval" |
---|
24676 | else |
---|
24677 | ft_config_prefix="" |
---|
24678 | fi |
---|
24679 | |
---|
24680 | |
---|
24681 | # Check whether --with-ft-exec-prefix was given. |
---|
24682 | if test "${with_ft_exec_prefix+set}" = set; then |
---|
24683 | withval=$with_ft_exec_prefix; ft_config_exec_prefix="$withval" |
---|
24684 | else |
---|
24685 | ft_config_exec_prefix="" |
---|
24686 | fi |
---|
24687 | |
---|
24688 | # Check whether --enable-freetypetest was given. |
---|
24689 | if test "${enable_freetypetest+set}" = set; then |
---|
24690 | enableval=$enable_freetypetest; |
---|
24691 | else |
---|
24692 | enable_fttest=yes |
---|
24693 | fi |
---|
24694 | |
---|
24695 | |
---|
24696 | if test x$ft_config_exec_prefix != x ; then |
---|
24697 | ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix" |
---|
24698 | if test x${FT2_CONFIG+set} != xset ; then |
---|
24699 | FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config |
---|
24700 | fi |
---|
24701 | fi |
---|
24702 | if test x$ft_config_prefix != x ; then |
---|
24703 | ft_config_args="$ft_config_args --prefix=$ft_config_prefix" |
---|
24704 | if test x${FT2_CONFIG+set} != xset ; then |
---|
24705 | FT2_CONFIG=$ft_config_prefix/bin/freetype-config |
---|
24706 | fi |
---|
24707 | fi |
---|
24708 | # Extract the first word of "freetype-config", so it can be a program name with args. |
---|
24709 | set dummy freetype-config; ac_word=$2 |
---|
24710 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
24711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
24712 | if test "${ac_cv_path_FT2_CONFIG+set}" = set; then |
---|
24713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24714 | else |
---|
24715 | case $FT2_CONFIG in |
---|
24716 | [\\/]* | ?:[\\/]*) |
---|
24717 | ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path. |
---|
24718 | ;; |
---|
24719 | *) |
---|
24720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
24721 | for as_dir in $PATH |
---|
24722 | do |
---|
24723 | IFS=$as_save_IFS |
---|
24724 | test -z "$as_dir" && as_dir=. |
---|
24725 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
24726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
24727 | ac_cv_path_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
24728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
24729 | break 2 |
---|
24730 | fi |
---|
24731 | done |
---|
24732 | done |
---|
24733 | IFS=$as_save_IFS |
---|
24734 | |
---|
24735 | test -z "$ac_cv_path_FT2_CONFIG" && ac_cv_path_FT2_CONFIG="no" |
---|
24736 | ;; |
---|
24737 | esac |
---|
24738 | fi |
---|
24739 | FT2_CONFIG=$ac_cv_path_FT2_CONFIG |
---|
24740 | if test -n "$FT2_CONFIG"; then |
---|
24741 | { echo "$as_me:$LINENO: result: $FT2_CONFIG" >&5 |
---|
24742 | echo "${ECHO_T}$FT2_CONFIG" >&6; } |
---|
24743 | else |
---|
24744 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
24745 | echo "${ECHO_T}no" >&6; } |
---|
24746 | fi |
---|
24747 | |
---|
24748 | |
---|
24749 | |
---|
24750 | min_ft_version=9.0.0 |
---|
24751 | { echo "$as_me:$LINENO: checking for FreeType - version >= $min_ft_version" >&5 |
---|
24752 | echo $ECHO_N "checking for FreeType - version >= $min_ft_version... $ECHO_C" >&6; } |
---|
24753 | no_ft="" |
---|
24754 | if test "$FT2_CONFIG" = "no" ; then |
---|
24755 | no_ft=yes |
---|
24756 | else |
---|
24757 | FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags` |
---|
24758 | FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs` |
---|
24759 | ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \ |
---|
24760 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
24761 | ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \ |
---|
24762 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
24763 | ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \ |
---|
24764 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
24765 | ft_min_major_version=`echo $min_ft_version | \ |
---|
24766 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
24767 | ft_min_minor_version=`echo $min_ft_version | \ |
---|
24768 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
24769 | ft_min_micro_version=`echo $min_ft_version | \ |
---|
24770 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
24771 | if test x$enable_fttest = xyes ; then |
---|
24772 | ft_config_is_lt="" |
---|
24773 | if test $ft_config_major_version -lt $ft_min_major_version ; then |
---|
24774 | ft_config_is_lt=yes |
---|
24775 | else |
---|
24776 | if test $ft_config_major_version -eq $ft_min_major_version ; then |
---|
24777 | if test $ft_config_minor_version -lt $ft_min_minor_version ; then |
---|
24778 | ft_config_is_lt=yes |
---|
24779 | else |
---|
24780 | if test $ft_config_minor_version -eq $ft_min_minor_version ; then |
---|
24781 | if test $ft_config_micro_version -lt $ft_min_micro_version ; then |
---|
24782 | ft_config_is_lt=yes |
---|
24783 | fi |
---|
24784 | fi |
---|
24785 | fi |
---|
24786 | fi |
---|
24787 | fi |
---|
24788 | if test x$ft_config_is_lt = xyes ; then |
---|
24789 | no_ft=yes |
---|
24790 | else |
---|
24791 | ac_save_CFLAGS="$CFLAGS" |
---|
24792 | ac_save_LIBS="$LIBS" |
---|
24793 | CFLAGS="$CFLAGS $FT2_CFLAGS" |
---|
24794 | LIBS="$FT2_LIBS $LIBS" |
---|
24795 | if test "$cross_compiling" = yes; then |
---|
24796 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
24797 | else |
---|
24798 | cat >conftest.$ac_ext <<_ACEOF |
---|
24799 | /* confdefs.h. */ |
---|
24800 | _ACEOF |
---|
24801 | cat confdefs.h >>conftest.$ac_ext |
---|
24802 | cat >>conftest.$ac_ext <<_ACEOF |
---|
24803 | /* end confdefs.h. */ |
---|
24804 | |
---|
24805 | #include <ft2build.h> |
---|
24806 | #include FT_FREETYPE_H |
---|
24807 | #include <stdio.h> |
---|
24808 | #include <stdlib.h> |
---|
24809 | |
---|
24810 | int |
---|
24811 | main() |
---|
24812 | { |
---|
24813 | FT_Library library; |
---|
24814 | FT_Error error; |
---|
24815 | |
---|
24816 | error = FT_Init_FreeType(&library); |
---|
24817 | |
---|
24818 | if (error) |
---|
24819 | return 1; |
---|
24820 | else |
---|
24821 | { |
---|
24822 | FT_Done_FreeType(library); |
---|
24823 | return 0; |
---|
24824 | } |
---|
24825 | } |
---|
24826 | |
---|
24827 | _ACEOF |
---|
24828 | rm -f conftest$ac_exeext |
---|
24829 | if { (ac_try="$ac_link" |
---|
24830 | case "(($ac_try" in |
---|
24831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
24832 | *) ac_try_echo=$ac_try;; |
---|
24833 | esac |
---|
24834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
24835 | (eval "$ac_link") 2>&5 |
---|
24836 | ac_status=$? |
---|
24837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24838 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
24839 | { (case "(($ac_try" in |
---|
24840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
24841 | *) ac_try_echo=$ac_try;; |
---|
24842 | esac |
---|
24843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
24844 | (eval "$ac_try") 2>&5 |
---|
24845 | ac_status=$? |
---|
24846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24847 | (exit $ac_status); }; }; then |
---|
24848 | : |
---|
24849 | else |
---|
24850 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
24851 | echo "$as_me: failed program was:" >&5 |
---|
24852 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
24853 | |
---|
24854 | ( exit $ac_status ) |
---|
24855 | no_ft=yes |
---|
24856 | fi |
---|
24857 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
24858 | fi |
---|
24859 | |
---|
24860 | |
---|
24861 | CFLAGS="$ac_save_CFLAGS" |
---|
24862 | LIBS="$ac_save_LIBS" |
---|
24863 | fi # test $ft_config_version -lt $ft_min_version |
---|
24864 | fi # test x$enable_fttest = xyes |
---|
24865 | fi # test "$FT2_CONFIG" = "no" |
---|
24866 | if test x$no_ft = x ; then |
---|
24867 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
24868 | echo "${ECHO_T}yes" >&6; } |
---|
24869 | : |
---|
24870 | else |
---|
24871 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
24872 | echo "${ECHO_T}no" >&6; } |
---|
24873 | if test "$FT2_CONFIG" = "no" ; then |
---|
24874 | echo "*** The freetype-config script installed by FreeType 2 could not be found." |
---|
24875 | echo "*** If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in" |
---|
24876 | echo "*** your path, or set the FT2_CONFIG environment variable to the" |
---|
24877 | echo "*** full path to freetype-config." |
---|
24878 | else |
---|
24879 | if test x$ft_config_is_lt = xyes ; then |
---|
24880 | echo "*** Your installed version of the FreeType 2 library is too old." |
---|
24881 | echo "*** If you have different versions of FreeType 2, make sure that" |
---|
24882 | echo "*** correct values for --with-ft-prefix or --with-ft-exec-prefix" |
---|
24883 | echo "*** are used, or set the FT2_CONFIG environment variable to the" |
---|
24884 | echo "*** full path to freetype-config." |
---|
24885 | else |
---|
24886 | echo "*** The FreeType test program failed to run. If your system uses" |
---|
24887 | echo "*** shared libraries and they are installed outside the normal" |
---|
24888 | echo "*** system library path, make sure the variable LD_LIBRARY_PATH" |
---|
24889 | echo "*** (or whatever is appropiate for your system) is correctly set." |
---|
24890 | fi |
---|
24891 | fi |
---|
24892 | FT2_CFLAGS="" |
---|
24893 | FT2_LIBS="" |
---|
24894 | : |
---|
24895 | fi |
---|
24896 | |
---|
24897 | |
---|
24898 | |
---|
24899 | |
---|
24900 | |
---|
24901 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
---|
24902 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
---|
24903 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
---|
24904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24905 | else |
---|
24906 | ac_check_lib_save_LIBS=$LIBS |
---|
24907 | LIBS="-ldl $LIBS" |
---|
24908 | cat >conftest.$ac_ext <<_ACEOF |
---|
24909 | /* confdefs.h. */ |
---|
24910 | _ACEOF |
---|
24911 | cat confdefs.h >>conftest.$ac_ext |
---|
24912 | cat >>conftest.$ac_ext <<_ACEOF |
---|
24913 | /* end confdefs.h. */ |
---|
24914 | |
---|
24915 | /* Override any GCC internal prototype to avoid an error. |
---|
24916 | Use char because int might match the return type of a GCC |
---|
24917 | builtin and then its argument prototype would still apply. */ |
---|
24918 | #ifdef __cplusplus |
---|
24919 | extern "C" |
---|
24920 | #endif |
---|
24921 | char dlopen (); |
---|
24922 | int |
---|
24923 | main () |
---|
24924 | { |
---|
24925 | return dlopen (); |
---|
24926 | ; |
---|
24927 | return 0; |
---|
24928 | } |
---|
24929 | _ACEOF |
---|
24930 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
24931 | if { (ac_try="$ac_link" |
---|
24932 | case "(($ac_try" in |
---|
24933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
24934 | *) ac_try_echo=$ac_try;; |
---|
24935 | esac |
---|
24936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
24937 | (eval "$ac_link") 2>conftest.er1 |
---|
24938 | ac_status=$? |
---|
24939 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
24940 | rm -f conftest.er1 |
---|
24941 | cat conftest.err >&5 |
---|
24942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
24943 | (exit $ac_status); } && { |
---|
24944 | test -z "$ac_c_werror_flag" || |
---|
24945 | test ! -s conftest.err |
---|
24946 | } && test -s conftest$ac_exeext && |
---|
24947 | $as_test_x conftest$ac_exeext; then |
---|
24948 | ac_cv_lib_dl_dlopen=yes |
---|
24949 | else |
---|
24950 | echo "$as_me: failed program was:" >&5 |
---|
24951 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
24952 | |
---|
24953 | ac_cv_lib_dl_dlopen=no |
---|
24954 | fi |
---|
24955 | |
---|
24956 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
24957 | conftest$ac_exeext conftest.$ac_ext |
---|
24958 | LIBS=$ac_check_lib_save_LIBS |
---|
24959 | fi |
---|
24960 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
24961 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
---|
24962 | if test $ac_cv_lib_dl_dlopen = yes; then |
---|
24963 | cat >>confdefs.h <<_ACEOF |
---|
24964 | #define HAVE_LIBDL 1 |
---|
24965 | _ACEOF |
---|
24966 | |
---|
24967 | LIBS="-ldl $LIBS" |
---|
24968 | |
---|
24969 | fi |
---|
24970 | |
---|
24971 | |
---|
24972 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
---|
24973 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } |
---|
24974 | if test "${ac_cv_lib_m_pow+set}" = set; then |
---|
24975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
24976 | else |
---|
24977 | ac_check_lib_save_LIBS=$LIBS |
---|
24978 | LIBS="-lm $LIBS" |
---|
24979 | cat >conftest.$ac_ext <<_ACEOF |
---|
24980 | /* confdefs.h. */ |
---|
24981 | _ACEOF |
---|
24982 | cat confdefs.h >>conftest.$ac_ext |
---|
24983 | cat >>conftest.$ac_ext <<_ACEOF |
---|
24984 | /* end confdefs.h. */ |
---|
24985 | |
---|
24986 | /* Override any GCC internal prototype to avoid an error. |
---|
24987 | Use char because int might match the return type of a GCC |
---|
24988 | builtin and then its argument prototype would still apply. */ |
---|
24989 | #ifdef __cplusplus |
---|
24990 | extern "C" |
---|
24991 | #endif |
---|
24992 | char pow (); |
---|
24993 | int |
---|
24994 | main () |
---|
24995 | { |
---|
24996 | return pow (); |
---|
24997 | ; |
---|
24998 | return 0; |
---|
24999 | } |
---|
25000 | _ACEOF |
---|
25001 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25002 | if { (ac_try="$ac_link" |
---|
25003 | case "(($ac_try" in |
---|
25004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25005 | *) ac_try_echo=$ac_try;; |
---|
25006 | esac |
---|
25007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25008 | (eval "$ac_link") 2>conftest.er1 |
---|
25009 | ac_status=$? |
---|
25010 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25011 | rm -f conftest.er1 |
---|
25012 | cat conftest.err >&5 |
---|
25013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25014 | (exit $ac_status); } && { |
---|
25015 | test -z "$ac_c_werror_flag" || |
---|
25016 | test ! -s conftest.err |
---|
25017 | } && test -s conftest$ac_exeext && |
---|
25018 | $as_test_x conftest$ac_exeext; then |
---|
25019 | ac_cv_lib_m_pow=yes |
---|
25020 | else |
---|
25021 | echo "$as_me: failed program was:" >&5 |
---|
25022 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25023 | |
---|
25024 | ac_cv_lib_m_pow=no |
---|
25025 | fi |
---|
25026 | |
---|
25027 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25028 | conftest$ac_exeext conftest.$ac_ext |
---|
25029 | LIBS=$ac_check_lib_save_LIBS |
---|
25030 | fi |
---|
25031 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
---|
25032 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } |
---|
25033 | if test $ac_cv_lib_m_pow = yes; then |
---|
25034 | cat >>confdefs.h <<_ACEOF |
---|
25035 | #define HAVE_LIBM 1 |
---|
25036 | _ACEOF |
---|
25037 | |
---|
25038 | LIBS="-lm $LIBS" |
---|
25039 | |
---|
25040 | fi |
---|
25041 | |
---|
25042 | |
---|
25043 | { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 |
---|
25044 | echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; } |
---|
25045 | if test "${ac_cv_lib_z_gzopen+set}" = set; then |
---|
25046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25047 | else |
---|
25048 | ac_check_lib_save_LIBS=$LIBS |
---|
25049 | LIBS="-lz $LIBS" |
---|
25050 | cat >conftest.$ac_ext <<_ACEOF |
---|
25051 | /* confdefs.h. */ |
---|
25052 | _ACEOF |
---|
25053 | cat confdefs.h >>conftest.$ac_ext |
---|
25054 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25055 | /* end confdefs.h. */ |
---|
25056 | |
---|
25057 | /* Override any GCC internal prototype to avoid an error. |
---|
25058 | Use char because int might match the return type of a GCC |
---|
25059 | builtin and then its argument prototype would still apply. */ |
---|
25060 | #ifdef __cplusplus |
---|
25061 | extern "C" |
---|
25062 | #endif |
---|
25063 | char gzopen (); |
---|
25064 | int |
---|
25065 | main () |
---|
25066 | { |
---|
25067 | return gzopen (); |
---|
25068 | ; |
---|
25069 | return 0; |
---|
25070 | } |
---|
25071 | _ACEOF |
---|
25072 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25073 | if { (ac_try="$ac_link" |
---|
25074 | case "(($ac_try" in |
---|
25075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25076 | *) ac_try_echo=$ac_try;; |
---|
25077 | esac |
---|
25078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25079 | (eval "$ac_link") 2>conftest.er1 |
---|
25080 | ac_status=$? |
---|
25081 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25082 | rm -f conftest.er1 |
---|
25083 | cat conftest.err >&5 |
---|
25084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25085 | (exit $ac_status); } && { |
---|
25086 | test -z "$ac_c_werror_flag" || |
---|
25087 | test ! -s conftest.err |
---|
25088 | } && test -s conftest$ac_exeext && |
---|
25089 | $as_test_x conftest$ac_exeext; then |
---|
25090 | ac_cv_lib_z_gzopen=yes |
---|
25091 | else |
---|
25092 | echo "$as_me: failed program was:" >&5 |
---|
25093 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25094 | |
---|
25095 | ac_cv_lib_z_gzopen=no |
---|
25096 | fi |
---|
25097 | |
---|
25098 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25099 | conftest$ac_exeext conftest.$ac_ext |
---|
25100 | LIBS=$ac_check_lib_save_LIBS |
---|
25101 | fi |
---|
25102 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 |
---|
25103 | echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; } |
---|
25104 | if test $ac_cv_lib_z_gzopen = yes; then |
---|
25105 | cat >>confdefs.h <<_ACEOF |
---|
25106 | #define HAVE_LIBZ 1 |
---|
25107 | _ACEOF |
---|
25108 | |
---|
25109 | LIBS="-lz $LIBS" |
---|
25110 | |
---|
25111 | fi |
---|
25112 | |
---|
25113 | |
---|
25114 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
---|
25115 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
---|
25116 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
---|
25117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25118 | else |
---|
25119 | ac_check_lib_save_LIBS=$LIBS |
---|
25120 | LIBS="-lpthread $LIBS" |
---|
25121 | cat >conftest.$ac_ext <<_ACEOF |
---|
25122 | /* confdefs.h. */ |
---|
25123 | _ACEOF |
---|
25124 | cat confdefs.h >>conftest.$ac_ext |
---|
25125 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25126 | /* end confdefs.h. */ |
---|
25127 | |
---|
25128 | /* Override any GCC internal prototype to avoid an error. |
---|
25129 | Use char because int might match the return type of a GCC |
---|
25130 | builtin and then its argument prototype would still apply. */ |
---|
25131 | #ifdef __cplusplus |
---|
25132 | extern "C" |
---|
25133 | #endif |
---|
25134 | char pthread_create (); |
---|
25135 | int |
---|
25136 | main () |
---|
25137 | { |
---|
25138 | return pthread_create (); |
---|
25139 | ; |
---|
25140 | return 0; |
---|
25141 | } |
---|
25142 | _ACEOF |
---|
25143 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25144 | if { (ac_try="$ac_link" |
---|
25145 | case "(($ac_try" in |
---|
25146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25147 | *) ac_try_echo=$ac_try;; |
---|
25148 | esac |
---|
25149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25150 | (eval "$ac_link") 2>conftest.er1 |
---|
25151 | ac_status=$? |
---|
25152 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25153 | rm -f conftest.er1 |
---|
25154 | cat conftest.err >&5 |
---|
25155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25156 | (exit $ac_status); } && { |
---|
25157 | test -z "$ac_c_werror_flag" || |
---|
25158 | test ! -s conftest.err |
---|
25159 | } && test -s conftest$ac_exeext && |
---|
25160 | $as_test_x conftest$ac_exeext; then |
---|
25161 | ac_cv_lib_pthread_pthread_create=yes |
---|
25162 | else |
---|
25163 | echo "$as_me: failed program was:" >&5 |
---|
25164 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25165 | |
---|
25166 | ac_cv_lib_pthread_pthread_create=no |
---|
25167 | fi |
---|
25168 | |
---|
25169 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25170 | conftest$ac_exeext conftest.$ac_ext |
---|
25171 | LIBS=$ac_check_lib_save_LIBS |
---|
25172 | fi |
---|
25173 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
---|
25174 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
---|
25175 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
---|
25176 | cat >>confdefs.h <<_ACEOF |
---|
25177 | #define HAVE_LIBPTHREAD 1 |
---|
25178 | _ACEOF |
---|
25179 | |
---|
25180 | LIBS="-lpthread $LIBS" |
---|
25181 | |
---|
25182 | fi |
---|
25183 | |
---|
25184 | { echo "$as_me:$LINENO: checking for snprintf" >&5 |
---|
25185 | echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; } |
---|
25186 | if test "${ac_cv_func_snprintf+set}" = set; then |
---|
25187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25188 | else |
---|
25189 | cat >conftest.$ac_ext <<_ACEOF |
---|
25190 | /* confdefs.h. */ |
---|
25191 | _ACEOF |
---|
25192 | cat confdefs.h >>conftest.$ac_ext |
---|
25193 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25194 | /* end confdefs.h. */ |
---|
25195 | /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf. |
---|
25196 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
25197 | #define snprintf innocuous_snprintf |
---|
25198 | |
---|
25199 | /* System header to define __stub macros and hopefully few prototypes, |
---|
25200 | which can conflict with char snprintf (); below. |
---|
25201 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
25202 | <limits.h> exists even on freestanding compilers. */ |
---|
25203 | |
---|
25204 | #ifdef __STDC__ |
---|
25205 | # include <limits.h> |
---|
25206 | #else |
---|
25207 | # include <assert.h> |
---|
25208 | #endif |
---|
25209 | |
---|
25210 | #undef snprintf |
---|
25211 | |
---|
25212 | /* Override any GCC internal prototype to avoid an error. |
---|
25213 | Use char because int might match the return type of a GCC |
---|
25214 | builtin and then its argument prototype would still apply. */ |
---|
25215 | #ifdef __cplusplus |
---|
25216 | extern "C" |
---|
25217 | #endif |
---|
25218 | char snprintf (); |
---|
25219 | /* The GNU C library defines this for functions which it implements |
---|
25220 | to always fail with ENOSYS. Some functions are actually named |
---|
25221 | something starting with __ and the normal name is an alias. */ |
---|
25222 | #if defined __stub_snprintf || defined __stub___snprintf |
---|
25223 | choke me |
---|
25224 | #endif |
---|
25225 | |
---|
25226 | int |
---|
25227 | main () |
---|
25228 | { |
---|
25229 | return snprintf (); |
---|
25230 | ; |
---|
25231 | return 0; |
---|
25232 | } |
---|
25233 | _ACEOF |
---|
25234 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25235 | if { (ac_try="$ac_link" |
---|
25236 | case "(($ac_try" in |
---|
25237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25238 | *) ac_try_echo=$ac_try;; |
---|
25239 | esac |
---|
25240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25241 | (eval "$ac_link") 2>conftest.er1 |
---|
25242 | ac_status=$? |
---|
25243 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25244 | rm -f conftest.er1 |
---|
25245 | cat conftest.err >&5 |
---|
25246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25247 | (exit $ac_status); } && { |
---|
25248 | test -z "$ac_c_werror_flag" || |
---|
25249 | test ! -s conftest.err |
---|
25250 | } && test -s conftest$ac_exeext && |
---|
25251 | $as_test_x conftest$ac_exeext; then |
---|
25252 | ac_cv_func_snprintf=yes |
---|
25253 | else |
---|
25254 | echo "$as_me: failed program was:" >&5 |
---|
25255 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25256 | |
---|
25257 | ac_cv_func_snprintf=no |
---|
25258 | fi |
---|
25259 | |
---|
25260 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25261 | conftest$ac_exeext conftest.$ac_ext |
---|
25262 | fi |
---|
25263 | { echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5 |
---|
25264 | echo "${ECHO_T}$ac_cv_func_snprintf" >&6; } |
---|
25265 | if test $ac_cv_func_snprintf = yes; then |
---|
25266 | |
---|
25267 | cat >>confdefs.h <<\_ACEOF |
---|
25268 | #define HAVE_SNPRINTF |
---|
25269 | _ACEOF |
---|
25270 | |
---|
25271 | fi |
---|
25272 | |
---|
25273 | { echo "$as_me:$LINENO: checking for vsnprintf" >&5 |
---|
25274 | echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6; } |
---|
25275 | if test "${ac_cv_func_vsnprintf+set}" = set; then |
---|
25276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25277 | else |
---|
25278 | cat >conftest.$ac_ext <<_ACEOF |
---|
25279 | /* confdefs.h. */ |
---|
25280 | _ACEOF |
---|
25281 | cat confdefs.h >>conftest.$ac_ext |
---|
25282 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25283 | /* end confdefs.h. */ |
---|
25284 | /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf. |
---|
25285 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
25286 | #define vsnprintf innocuous_vsnprintf |
---|
25287 | |
---|
25288 | /* System header to define __stub macros and hopefully few prototypes, |
---|
25289 | which can conflict with char vsnprintf (); below. |
---|
25290 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
25291 | <limits.h> exists even on freestanding compilers. */ |
---|
25292 | |
---|
25293 | #ifdef __STDC__ |
---|
25294 | # include <limits.h> |
---|
25295 | #else |
---|
25296 | # include <assert.h> |
---|
25297 | #endif |
---|
25298 | |
---|
25299 | #undef vsnprintf |
---|
25300 | |
---|
25301 | /* Override any GCC internal prototype to avoid an error. |
---|
25302 | Use char because int might match the return type of a GCC |
---|
25303 | builtin and then its argument prototype would still apply. */ |
---|
25304 | #ifdef __cplusplus |
---|
25305 | extern "C" |
---|
25306 | #endif |
---|
25307 | char vsnprintf (); |
---|
25308 | /* The GNU C library defines this for functions which it implements |
---|
25309 | to always fail with ENOSYS. Some functions are actually named |
---|
25310 | something starting with __ and the normal name is an alias. */ |
---|
25311 | #if defined __stub_vsnprintf || defined __stub___vsnprintf |
---|
25312 | choke me |
---|
25313 | #endif |
---|
25314 | |
---|
25315 | int |
---|
25316 | main () |
---|
25317 | { |
---|
25318 | return vsnprintf (); |
---|
25319 | ; |
---|
25320 | return 0; |
---|
25321 | } |
---|
25322 | _ACEOF |
---|
25323 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
25324 | if { (ac_try="$ac_link" |
---|
25325 | case "(($ac_try" in |
---|
25326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25327 | *) ac_try_echo=$ac_try;; |
---|
25328 | esac |
---|
25329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25330 | (eval "$ac_link") 2>conftest.er1 |
---|
25331 | ac_status=$? |
---|
25332 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25333 | rm -f conftest.er1 |
---|
25334 | cat conftest.err >&5 |
---|
25335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25336 | (exit $ac_status); } && { |
---|
25337 | test -z "$ac_c_werror_flag" || |
---|
25338 | test ! -s conftest.err |
---|
25339 | } && test -s conftest$ac_exeext && |
---|
25340 | $as_test_x conftest$ac_exeext; then |
---|
25341 | ac_cv_func_vsnprintf=yes |
---|
25342 | else |
---|
25343 | echo "$as_me: failed program was:" >&5 |
---|
25344 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25345 | |
---|
25346 | ac_cv_func_vsnprintf=no |
---|
25347 | fi |
---|
25348 | |
---|
25349 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
25350 | conftest$ac_exeext conftest.$ac_ext |
---|
25351 | fi |
---|
25352 | { echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5 |
---|
25353 | echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6; } |
---|
25354 | if test $ac_cv_func_vsnprintf = yes; then |
---|
25355 | |
---|
25356 | cat >>confdefs.h <<\_ACEOF |
---|
25357 | #define HAVE_VSNPRINTF |
---|
25358 | _ACEOF |
---|
25359 | |
---|
25360 | fi |
---|
25361 | |
---|
25362 | |
---|
25363 | |
---|
25364 | |
---|
25365 | |
---|
25366 | |
---|
25367 | # Check whether --with-cppunit-prefix was given. |
---|
25368 | if test "${with_cppunit_prefix+set}" = set; then |
---|
25369 | withval=$with_cppunit_prefix; cppunit_config_prefix="$withval" |
---|
25370 | else |
---|
25371 | cppunit_config_prefix="" |
---|
25372 | fi |
---|
25373 | |
---|
25374 | |
---|
25375 | # Check whether --with-cppunit-exec-prefix was given. |
---|
25376 | if test "${with_cppunit_exec_prefix+set}" = set; then |
---|
25377 | withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval" |
---|
25378 | else |
---|
25379 | cppunit_config_exec_prefix="" |
---|
25380 | fi |
---|
25381 | |
---|
25382 | |
---|
25383 | if test x$cppunit_config_exec_prefix != x ; then |
---|
25384 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" |
---|
25385 | if test x${CPPUNIT_CONFIG+set} != xset ; then |
---|
25386 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config |
---|
25387 | fi |
---|
25388 | fi |
---|
25389 | if test x$cppunit_config_prefix != x ; then |
---|
25390 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" |
---|
25391 | if test x${CPPUNIT_CONFIG+set} != xset ; then |
---|
25392 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config |
---|
25393 | fi |
---|
25394 | fi |
---|
25395 | |
---|
25396 | # Extract the first word of "cppunit-config", so it can be a program name with args. |
---|
25397 | set dummy cppunit-config; ac_word=$2 |
---|
25398 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
25399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
25400 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then |
---|
25401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25402 | else |
---|
25403 | case $CPPUNIT_CONFIG in |
---|
25404 | [\\/]* | ?:[\\/]*) |
---|
25405 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. |
---|
25406 | ;; |
---|
25407 | *) |
---|
25408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
25409 | for as_dir in $PATH |
---|
25410 | do |
---|
25411 | IFS=$as_save_IFS |
---|
25412 | test -z "$as_dir" && as_dir=. |
---|
25413 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
25414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
25415 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
25416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
25417 | break 2 |
---|
25418 | fi |
---|
25419 | done |
---|
25420 | done |
---|
25421 | IFS=$as_save_IFS |
---|
25422 | |
---|
25423 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" |
---|
25424 | ;; |
---|
25425 | esac |
---|
25426 | fi |
---|
25427 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG |
---|
25428 | if test -n "$CPPUNIT_CONFIG"; then |
---|
25429 | { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 |
---|
25430 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; } |
---|
25431 | else |
---|
25432 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
25433 | echo "${ECHO_T}no" >&6; } |
---|
25434 | fi |
---|
25435 | |
---|
25436 | |
---|
25437 | cppunit_version_min=1.10.0 |
---|
25438 | |
---|
25439 | { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 |
---|
25440 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; } |
---|
25441 | no_cppunit="" |
---|
25442 | if test "$CPPUNIT_CONFIG" = "no" ; then |
---|
25443 | no_cppunit=yes |
---|
25444 | else |
---|
25445 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` |
---|
25446 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` |
---|
25447 | cppunit_version=`$CPPUNIT_CONFIG --version` |
---|
25448 | |
---|
25449 | cppunit_major_version=`echo $cppunit_version | \ |
---|
25450 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
25451 | cppunit_minor_version=`echo $cppunit_version | \ |
---|
25452 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
25453 | cppunit_micro_version=`echo $cppunit_version | \ |
---|
25454 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
25455 | |
---|
25456 | cppunit_major_min=`echo $cppunit_version_min | \ |
---|
25457 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
25458 | cppunit_minor_min=`echo $cppunit_version_min | \ |
---|
25459 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
25460 | cppunit_micro_min=`echo $cppunit_version_min | \ |
---|
25461 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
25462 | |
---|
25463 | cppunit_version_proper=`expr \ |
---|
25464 | $cppunit_major_version \> $cppunit_major_min \| \ |
---|
25465 | $cppunit_major_version \= $cppunit_major_min \& \ |
---|
25466 | $cppunit_minor_version \> $cppunit_minor_min \| \ |
---|
25467 | $cppunit_major_version \= $cppunit_major_min \& \ |
---|
25468 | $cppunit_minor_version \= $cppunit_minor_min \& \ |
---|
25469 | $cppunit_micro_version \>= $cppunit_micro_min ` |
---|
25470 | |
---|
25471 | if test "$cppunit_version_proper" = "1" ; then |
---|
25472 | { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 |
---|
25473 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; } |
---|
25474 | else |
---|
25475 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
25476 | echo "${ECHO_T}no" >&6; } |
---|
25477 | no_cppunit=yes |
---|
25478 | fi |
---|
25479 | fi |
---|
25480 | |
---|
25481 | if test "x$no_cppunit" = x ; then |
---|
25482 | build_unit_tests=true |
---|
25483 | else |
---|
25484 | CPPUNIT_CFLAGS="" |
---|
25485 | CPPUNIT_LIBS="" |
---|
25486 | : |
---|
25487 | fi |
---|
25488 | |
---|
25489 | |
---|
25490 | |
---|
25491 | |
---|
25492 | |
---|
25493 | |
---|
25494 | if test x$build_unit_tests = xtrue; then |
---|
25495 | BUILD_UNIT_TESTS_TRUE= |
---|
25496 | BUILD_UNIT_TESTS_FALSE='#' |
---|
25497 | else |
---|
25498 | BUILD_UNIT_TESTS_TRUE='#' |
---|
25499 | BUILD_UNIT_TESTS_FALSE= |
---|
25500 | fi |
---|
25501 | |
---|
25502 | |
---|
25503 | |
---|
25504 | |
---|
25505 | |
---|
25506 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
---|
25507 | if test -n "$ac_tool_prefix"; then |
---|
25508 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
---|
25509 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
---|
25510 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
25511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
25512 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
25513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25514 | else |
---|
25515 | case $PKG_CONFIG in |
---|
25516 | [\\/]* | ?:[\\/]*) |
---|
25517 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
25518 | ;; |
---|
25519 | *) |
---|
25520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
25521 | for as_dir in $PATH |
---|
25522 | do |
---|
25523 | IFS=$as_save_IFS |
---|
25524 | test -z "$as_dir" && as_dir=. |
---|
25525 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
25526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
25527 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
25528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
25529 | break 2 |
---|
25530 | fi |
---|
25531 | done |
---|
25532 | done |
---|
25533 | IFS=$as_save_IFS |
---|
25534 | |
---|
25535 | ;; |
---|
25536 | esac |
---|
25537 | fi |
---|
25538 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
25539 | if test -n "$PKG_CONFIG"; then |
---|
25540 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
25541 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
---|
25542 | else |
---|
25543 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
25544 | echo "${ECHO_T}no" >&6; } |
---|
25545 | fi |
---|
25546 | |
---|
25547 | |
---|
25548 | fi |
---|
25549 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
---|
25550 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
---|
25551 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
25552 | set dummy pkg-config; ac_word=$2 |
---|
25553 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
25554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
25555 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
---|
25556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25557 | else |
---|
25558 | case $ac_pt_PKG_CONFIG in |
---|
25559 | [\\/]* | ?:[\\/]*) |
---|
25560 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
---|
25561 | ;; |
---|
25562 | *) |
---|
25563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
25564 | for as_dir in $PATH |
---|
25565 | do |
---|
25566 | IFS=$as_save_IFS |
---|
25567 | test -z "$as_dir" && as_dir=. |
---|
25568 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
25569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
25570 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
25571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
25572 | break 2 |
---|
25573 | fi |
---|
25574 | done |
---|
25575 | done |
---|
25576 | IFS=$as_save_IFS |
---|
25577 | |
---|
25578 | ;; |
---|
25579 | esac |
---|
25580 | fi |
---|
25581 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
---|
25582 | if test -n "$ac_pt_PKG_CONFIG"; then |
---|
25583 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
---|
25584 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
---|
25585 | else |
---|
25586 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
25587 | echo "${ECHO_T}no" >&6; } |
---|
25588 | fi |
---|
25589 | |
---|
25590 | if test "x$ac_pt_PKG_CONFIG" = x; then |
---|
25591 | PKG_CONFIG="" |
---|
25592 | else |
---|
25593 | case $cross_compiling:$ac_tool_warned in |
---|
25594 | yes:) |
---|
25595 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
25596 | whose name does not start with the host triplet. If you think this |
---|
25597 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
25598 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
25599 | whose name does not start with the host triplet. If you think this |
---|
25600 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
25601 | ac_tool_warned=yes ;; |
---|
25602 | esac |
---|
25603 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
---|
25604 | fi |
---|
25605 | else |
---|
25606 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
---|
25607 | fi |
---|
25608 | |
---|
25609 | fi |
---|
25610 | if test -n "$PKG_CONFIG"; then |
---|
25611 | _pkg_min_version=0.9.0 |
---|
25612 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
---|
25613 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
---|
25614 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
---|
25615 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
25616 | echo "${ECHO_T}yes" >&6; } |
---|
25617 | else |
---|
25618 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
25619 | echo "${ECHO_T}no" >&6; } |
---|
25620 | PKG_CONFIG="" |
---|
25621 | fi |
---|
25622 | |
---|
25623 | fi |
---|
25624 | |
---|
25625 | pkg_failed=no |
---|
25626 | { echo "$as_me:$LINENO: checking for ZZIPLIB" >&5 |
---|
25627 | echo $ECHO_N "checking for ZZIPLIB... $ECHO_C" >&6; } |
---|
25628 | |
---|
25629 | if test -n "$PKG_CONFIG"; then |
---|
25630 | if test -n "$ZZIPLIB_CFLAGS"; then |
---|
25631 | pkg_cv_ZZIPLIB_CFLAGS="$ZZIPLIB_CFLAGS" |
---|
25632 | else |
---|
25633 | if test -n "$PKG_CONFIG" && \ |
---|
25634 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"zziplib\"") >&5 |
---|
25635 | ($PKG_CONFIG --exists --print-errors "zziplib") 2>&5 |
---|
25636 | ac_status=$? |
---|
25637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25638 | (exit $ac_status); }; then |
---|
25639 | pkg_cv_ZZIPLIB_CFLAGS=`$PKG_CONFIG --cflags "zziplib" 2>/dev/null` |
---|
25640 | else |
---|
25641 | pkg_failed=yes |
---|
25642 | fi |
---|
25643 | fi |
---|
25644 | else |
---|
25645 | pkg_failed=untried |
---|
25646 | fi |
---|
25647 | if test -n "$PKG_CONFIG"; then |
---|
25648 | if test -n "$ZZIPLIB_LIBS"; then |
---|
25649 | pkg_cv_ZZIPLIB_LIBS="$ZZIPLIB_LIBS" |
---|
25650 | else |
---|
25651 | if test -n "$PKG_CONFIG" && \ |
---|
25652 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"zziplib\"") >&5 |
---|
25653 | ($PKG_CONFIG --exists --print-errors "zziplib") 2>&5 |
---|
25654 | ac_status=$? |
---|
25655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25656 | (exit $ac_status); }; then |
---|
25657 | pkg_cv_ZZIPLIB_LIBS=`$PKG_CONFIG --libs "zziplib" 2>/dev/null` |
---|
25658 | else |
---|
25659 | pkg_failed=yes |
---|
25660 | fi |
---|
25661 | fi |
---|
25662 | else |
---|
25663 | pkg_failed=untried |
---|
25664 | fi |
---|
25665 | |
---|
25666 | |
---|
25667 | |
---|
25668 | if test $pkg_failed = yes; then |
---|
25669 | |
---|
25670 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
25671 | _pkg_short_errors_supported=yes |
---|
25672 | else |
---|
25673 | _pkg_short_errors_supported=no |
---|
25674 | fi |
---|
25675 | if test $_pkg_short_errors_supported = yes; then |
---|
25676 | ZZIPLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "zziplib"` |
---|
25677 | else |
---|
25678 | ZZIPLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "zziplib"` |
---|
25679 | fi |
---|
25680 | # Put the nasty error message in config.log where it belongs |
---|
25681 | echo "$ZZIPLIB_PKG_ERRORS" >&5 |
---|
25682 | |
---|
25683 | { { echo "$as_me:$LINENO: error: Package requirements (zziplib) were not met: |
---|
25684 | |
---|
25685 | $ZZIPLIB_PKG_ERRORS |
---|
25686 | |
---|
25687 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
---|
25688 | installed software in a non-standard prefix. |
---|
25689 | |
---|
25690 | Alternatively, you may set the environment variables ZZIPLIB_CFLAGS |
---|
25691 | and ZZIPLIB_LIBS to avoid the need to call pkg-config. |
---|
25692 | See the pkg-config man page for more details. |
---|
25693 | " >&5 |
---|
25694 | echo "$as_me: error: Package requirements (zziplib) were not met: |
---|
25695 | |
---|
25696 | $ZZIPLIB_PKG_ERRORS |
---|
25697 | |
---|
25698 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
---|
25699 | installed software in a non-standard prefix. |
---|
25700 | |
---|
25701 | Alternatively, you may set the environment variables ZZIPLIB_CFLAGS |
---|
25702 | and ZZIPLIB_LIBS to avoid the need to call pkg-config. |
---|
25703 | See the pkg-config man page for more details. |
---|
25704 | " >&2;} |
---|
25705 | { (exit 1); exit 1; }; } |
---|
25706 | elif test $pkg_failed = untried; then |
---|
25707 | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
---|
25708 | is in your PATH or set the PKG_CONFIG environment variable to the full |
---|
25709 | path to pkg-config. |
---|
25710 | |
---|
25711 | Alternatively, you may set the environment variables ZZIPLIB_CFLAGS |
---|
25712 | and ZZIPLIB_LIBS to avoid the need to call pkg-config. |
---|
25713 | See the pkg-config man page for more details. |
---|
25714 | |
---|
25715 | To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. |
---|
25716 | See \`config.log' for more details." >&5 |
---|
25717 | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
---|
25718 | is in your PATH or set the PKG_CONFIG environment variable to the full |
---|
25719 | path to pkg-config. |
---|
25720 | |
---|
25721 | Alternatively, you may set the environment variables ZZIPLIB_CFLAGS |
---|
25722 | and ZZIPLIB_LIBS to avoid the need to call pkg-config. |
---|
25723 | See the pkg-config man page for more details. |
---|
25724 | |
---|
25725 | To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. |
---|
25726 | See \`config.log' for more details." >&2;} |
---|
25727 | { (exit 1); exit 1; }; } |
---|
25728 | else |
---|
25729 | ZZIPLIB_CFLAGS=$pkg_cv_ZZIPLIB_CFLAGS |
---|
25730 | ZZIPLIB_LIBS=$pkg_cv_ZZIPLIB_LIBS |
---|
25731 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
25732 | echo "${ECHO_T}yes" >&6; } |
---|
25733 | : |
---|
25734 | fi |
---|
25735 | |
---|
25736 | |
---|
25737 | |
---|
25738 | OGRE_PLATFORM=GLX |
---|
25739 | |
---|
25740 | # Check whether --with-platform was given. |
---|
25741 | if test "${with_platform+set}" = set; then |
---|
25742 | withval=$with_platform; OGRE_PLATFORM=$withval |
---|
25743 | else |
---|
25744 | OGRE_PLATFORM=GLX |
---|
25745 | fi |
---|
25746 | |
---|
25747 | |
---|
25748 | PLATFORM_CFLAGS="" |
---|
25749 | PLATFORM_LIBS="" |
---|
25750 | |
---|
25751 | case $OGRE_PLATFORM in |
---|
25752 | GLX) |
---|
25753 | |
---|
25754 | for ac_header in X11/Intrinsic.h |
---|
25755 | do |
---|
25756 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
25757 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
25758 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
25759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
25760 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
25761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25762 | fi |
---|
25763 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
25764 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
25765 | echo "${ECHO_T}$ac_res" >&6; } |
---|
25766 | else |
---|
25767 | # Is the header compilable? |
---|
25768 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
25769 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
25770 | cat >conftest.$ac_ext <<_ACEOF |
---|
25771 | /* confdefs.h. */ |
---|
25772 | _ACEOF |
---|
25773 | cat confdefs.h >>conftest.$ac_ext |
---|
25774 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25775 | /* end confdefs.h. */ |
---|
25776 | $ac_includes_default |
---|
25777 | #include <$ac_header> |
---|
25778 | _ACEOF |
---|
25779 | rm -f conftest.$ac_objext |
---|
25780 | if { (ac_try="$ac_compile" |
---|
25781 | case "(($ac_try" in |
---|
25782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25783 | *) ac_try_echo=$ac_try;; |
---|
25784 | esac |
---|
25785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25786 | (eval "$ac_compile") 2>conftest.er1 |
---|
25787 | ac_status=$? |
---|
25788 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25789 | rm -f conftest.er1 |
---|
25790 | cat conftest.err >&5 |
---|
25791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25792 | (exit $ac_status); } && { |
---|
25793 | test -z "$ac_c_werror_flag" || |
---|
25794 | test ! -s conftest.err |
---|
25795 | } && test -s conftest.$ac_objext; then |
---|
25796 | ac_header_compiler=yes |
---|
25797 | else |
---|
25798 | echo "$as_me: failed program was:" >&5 |
---|
25799 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25800 | |
---|
25801 | ac_header_compiler=no |
---|
25802 | fi |
---|
25803 | |
---|
25804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
25805 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
25806 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
25807 | |
---|
25808 | # Is the header present? |
---|
25809 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
25810 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
25811 | cat >conftest.$ac_ext <<_ACEOF |
---|
25812 | /* confdefs.h. */ |
---|
25813 | _ACEOF |
---|
25814 | cat confdefs.h >>conftest.$ac_ext |
---|
25815 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25816 | /* end confdefs.h. */ |
---|
25817 | #include <$ac_header> |
---|
25818 | _ACEOF |
---|
25819 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
25820 | case "(($ac_try" in |
---|
25821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25822 | *) ac_try_echo=$ac_try;; |
---|
25823 | esac |
---|
25824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25825 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
25826 | ac_status=$? |
---|
25827 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25828 | rm -f conftest.er1 |
---|
25829 | cat conftest.err >&5 |
---|
25830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25831 | (exit $ac_status); } >/dev/null && { |
---|
25832 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
25833 | test ! -s conftest.err |
---|
25834 | }; then |
---|
25835 | ac_header_preproc=yes |
---|
25836 | else |
---|
25837 | echo "$as_me: failed program was:" >&5 |
---|
25838 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25839 | |
---|
25840 | ac_header_preproc=no |
---|
25841 | fi |
---|
25842 | |
---|
25843 | rm -f conftest.err conftest.$ac_ext |
---|
25844 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
25845 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
25846 | |
---|
25847 | # So? What about this header? |
---|
25848 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
25849 | yes:no: ) |
---|
25850 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
25851 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
25852 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
25853 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
25854 | ac_header_preproc=yes |
---|
25855 | ;; |
---|
25856 | no:yes:* ) |
---|
25857 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
25858 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
25859 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
25860 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
25861 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
25862 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
25863 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
25864 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
25865 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
25866 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
25867 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
25868 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
25869 | |
---|
25870 | ;; |
---|
25871 | esac |
---|
25872 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
25873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
25874 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
25875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25876 | else |
---|
25877 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
25878 | fi |
---|
25879 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
25880 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
25881 | echo "${ECHO_T}$ac_res" >&6; } |
---|
25882 | |
---|
25883 | fi |
---|
25884 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
25885 | cat >>confdefs.h <<_ACEOF |
---|
25886 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
25887 | _ACEOF |
---|
25888 | |
---|
25889 | else |
---|
25890 | { { echo "$as_me:$LINENO: error: \"libxt headers not found\"" >&5 |
---|
25891 | echo "$as_me: error: \"libxt headers not found\"" >&2;} |
---|
25892 | { (exit 1); exit 1; }; } |
---|
25893 | fi |
---|
25894 | |
---|
25895 | done |
---|
25896 | |
---|
25897 | |
---|
25898 | for ac_header in X11/Xaw/Command.h |
---|
25899 | do |
---|
25900 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
25901 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
25902 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
25903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
25904 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
25905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
25906 | fi |
---|
25907 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
25908 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
25909 | echo "${ECHO_T}$ac_res" >&6; } |
---|
25910 | else |
---|
25911 | # Is the header compilable? |
---|
25912 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
25913 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
25914 | cat >conftest.$ac_ext <<_ACEOF |
---|
25915 | /* confdefs.h. */ |
---|
25916 | _ACEOF |
---|
25917 | cat confdefs.h >>conftest.$ac_ext |
---|
25918 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25919 | /* end confdefs.h. */ |
---|
25920 | $ac_includes_default |
---|
25921 | #include <$ac_header> |
---|
25922 | _ACEOF |
---|
25923 | rm -f conftest.$ac_objext |
---|
25924 | if { (ac_try="$ac_compile" |
---|
25925 | case "(($ac_try" in |
---|
25926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25927 | *) ac_try_echo=$ac_try;; |
---|
25928 | esac |
---|
25929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25930 | (eval "$ac_compile") 2>conftest.er1 |
---|
25931 | ac_status=$? |
---|
25932 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25933 | rm -f conftest.er1 |
---|
25934 | cat conftest.err >&5 |
---|
25935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25936 | (exit $ac_status); } && { |
---|
25937 | test -z "$ac_c_werror_flag" || |
---|
25938 | test ! -s conftest.err |
---|
25939 | } && test -s conftest.$ac_objext; then |
---|
25940 | ac_header_compiler=yes |
---|
25941 | else |
---|
25942 | echo "$as_me: failed program was:" >&5 |
---|
25943 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25944 | |
---|
25945 | ac_header_compiler=no |
---|
25946 | fi |
---|
25947 | |
---|
25948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
25949 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
25950 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
25951 | |
---|
25952 | # Is the header present? |
---|
25953 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
25954 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
25955 | cat >conftest.$ac_ext <<_ACEOF |
---|
25956 | /* confdefs.h. */ |
---|
25957 | _ACEOF |
---|
25958 | cat confdefs.h >>conftest.$ac_ext |
---|
25959 | cat >>conftest.$ac_ext <<_ACEOF |
---|
25960 | /* end confdefs.h. */ |
---|
25961 | #include <$ac_header> |
---|
25962 | _ACEOF |
---|
25963 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
25964 | case "(($ac_try" in |
---|
25965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
25966 | *) ac_try_echo=$ac_try;; |
---|
25967 | esac |
---|
25968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
25969 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
25970 | ac_status=$? |
---|
25971 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
25972 | rm -f conftest.er1 |
---|
25973 | cat conftest.err >&5 |
---|
25974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
25975 | (exit $ac_status); } >/dev/null && { |
---|
25976 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
25977 | test ! -s conftest.err |
---|
25978 | }; then |
---|
25979 | ac_header_preproc=yes |
---|
25980 | else |
---|
25981 | echo "$as_me: failed program was:" >&5 |
---|
25982 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
25983 | |
---|
25984 | ac_header_preproc=no |
---|
25985 | fi |
---|
25986 | |
---|
25987 | rm -f conftest.err conftest.$ac_ext |
---|
25988 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
25989 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
25990 | |
---|
25991 | # So? What about this header? |
---|
25992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
25993 | yes:no: ) |
---|
25994 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
25995 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
25996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
25997 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
25998 | ac_header_preproc=yes |
---|
25999 | ;; |
---|
26000 | no:yes:* ) |
---|
26001 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
26002 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
26003 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
26004 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
26005 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
26006 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
26007 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
26008 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
26009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
26010 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
26011 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
26012 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
26013 | |
---|
26014 | ;; |
---|
26015 | esac |
---|
26016 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
26017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
26018 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
26019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
26020 | else |
---|
26021 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
26022 | fi |
---|
26023 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
26024 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
26025 | echo "${ECHO_T}$ac_res" >&6; } |
---|
26026 | |
---|
26027 | fi |
---|
26028 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
26029 | cat >>confdefs.h <<_ACEOF |
---|
26030 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
26031 | _ACEOF |
---|
26032 | |
---|
26033 | else |
---|
26034 | { { echo "$as_me:$LINENO: error: \"libxaw headers not found\"" >&5 |
---|
26035 | echo "$as_me: error: \"libxaw headers not found\"" >&2;} |
---|
26036 | { (exit 1); exit 1; }; } |
---|
26037 | fi |
---|
26038 | |
---|
26039 | done |
---|
26040 | |
---|
26041 | |
---|
26042 | for ac_header in X11/extensions/xf86vmode.h |
---|
26043 | do |
---|
26044 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
26045 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
26046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
26047 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
26048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
26049 | else |
---|
26050 | cat >conftest.$ac_ext <<_ACEOF |
---|
26051 | /* confdefs.h. */ |
---|
26052 | _ACEOF |
---|
26053 | cat confdefs.h >>conftest.$ac_ext |
---|
26054 | cat >>conftest.$ac_ext <<_ACEOF |
---|
26055 | /* end confdefs.h. */ |
---|
26056 | #include <X11/Xlib.h> |
---|
26057 | |
---|
26058 | #include <$ac_header> |
---|
26059 | _ACEOF |
---|
26060 | rm -f conftest.$ac_objext |
---|
26061 | if { (ac_try="$ac_compile" |
---|
26062 | case "(($ac_try" in |
---|
26063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
26064 | *) ac_try_echo=$ac_try;; |
---|
26065 | esac |
---|
26066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
26067 | (eval "$ac_compile") 2>conftest.er1 |
---|
26068 | ac_status=$? |
---|
26069 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
26070 | rm -f conftest.er1 |
---|
26071 | cat conftest.err >&5 |
---|
26072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26073 | (exit $ac_status); } && { |
---|
26074 | test -z "$ac_c_werror_flag" || |
---|
26075 | test ! -s conftest.err |
---|
26076 | } && test -s conftest.$ac_objext; then |
---|
26077 | eval "$as_ac_Header=yes" |
---|
26078 | else |
---|
26079 | echo "$as_me: failed program was:" >&5 |
---|
26080 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
26081 | |
---|
26082 | eval "$as_ac_Header=no" |
---|
26083 | fi |
---|
26084 | |
---|
26085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
26086 | fi |
---|
26087 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
26088 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
26089 | echo "${ECHO_T}$ac_res" >&6; } |
---|
26090 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
26091 | cat >>confdefs.h <<_ACEOF |
---|
26092 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
26093 | _ACEOF |
---|
26094 | |
---|
26095 | else |
---|
26096 | { { echo "$as_me:$LINENO: error: \"libxf86vm headers not found\"" >&5 |
---|
26097 | echo "$as_me: error: \"libxf86vm headers not found\"" >&2;} |
---|
26098 | { (exit 1); exit 1; }; } |
---|
26099 | fi |
---|
26100 | |
---|
26101 | done |
---|
26102 | |
---|
26103 | |
---|
26104 | for ac_header in X11/extensions/Xrandr.h |
---|
26105 | do |
---|
26106 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
26107 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
26108 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
26109 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
26110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
26111 | else |
---|
26112 | cat >conftest.$ac_ext <<_ACEOF |
---|
26113 | /* confdefs.h. */ |
---|
26114 | _ACEOF |
---|
26115 | cat confdefs.h >>conftest.$ac_ext |
---|
26116 | cat >>conftest.$ac_ext <<_ACEOF |
---|
26117 | /* end confdefs.h. */ |
---|
26118 | #include <X11/Xlib.h> |
---|
26119 | |
---|
26120 | #include <$ac_header> |
---|
26121 | _ACEOF |
---|
26122 | rm -f conftest.$ac_objext |
---|
26123 | if { (ac_try="$ac_compile" |
---|
26124 | case "(($ac_try" in |
---|
26125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
26126 | *) ac_try_echo=$ac_try;; |
---|
26127 | esac |
---|
26128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
26129 | (eval "$ac_compile") 2>conftest.er1 |
---|
26130 | ac_status=$? |
---|
26131 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
26132 | rm -f conftest.er1 |
---|
26133 | cat conftest.err >&5 |
---|
26134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26135 | (exit $ac_status); } && { |
---|
26136 | test -z "$ac_c_werror_flag" || |
---|
26137 | test ! -s conftest.err |
---|
26138 | } && test -s conftest.$ac_objext; then |
---|
26139 | eval "$as_ac_Header=yes" |
---|
26140 | else |
---|
26141 | echo "$as_me: failed program was:" >&5 |
---|
26142 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
26143 | |
---|
26144 | eval "$as_ac_Header=no" |
---|
26145 | fi |
---|
26146 | |
---|
26147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
26148 | fi |
---|
26149 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
26150 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
26151 | echo "${ECHO_T}$ac_res" >&6; } |
---|
26152 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
26153 | cat >>confdefs.h <<_ACEOF |
---|
26154 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
26155 | _ACEOF |
---|
26156 | |
---|
26157 | else |
---|
26158 | { { echo "$as_me:$LINENO: error: \"libxrandr headers not found\"" >&5 |
---|
26159 | echo "$as_me: error: \"libxrandr headers not found\"" >&2;} |
---|
26160 | { (exit 1); exit 1; }; } |
---|
26161 | fi |
---|
26162 | |
---|
26163 | done |
---|
26164 | |
---|
26165 | { echo "$as_me:$LINENO: checking for X" >&5 |
---|
26166 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
---|
26167 | |
---|
26168 | |
---|
26169 | # Check whether --with-x was given. |
---|
26170 | if test "${with_x+set}" = set; then |
---|
26171 | withval=$with_x; |
---|
26172 | fi |
---|
26173 | |
---|
26174 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
26175 | if test "x$with_x" = xno; then |
---|
26176 | # The user explicitly disabled X. |
---|
26177 | have_x=disabled |
---|
26178 | else |
---|
26179 | case $x_includes,$x_libraries in #( |
---|
26180 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
---|
26181 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
---|
26182 | { (exit 1); exit 1; }; };; #( |
---|
26183 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
---|
26184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
26185 | else |
---|
26186 | # One or both of the vars are not set, and there is no cached value. |
---|
26187 | ac_x_includes=no ac_x_libraries=no |
---|
26188 | rm -f -r conftest.dir |
---|
26189 | if mkdir conftest.dir; then |
---|
26190 | cd conftest.dir |
---|
26191 | cat >Imakefile <<'_ACEOF' |
---|
26192 | incroot: |
---|
26193 | @echo incroot='${INCROOT}' |
---|
26194 | usrlibdir: |
---|
26195 | @echo usrlibdir='${USRLIBDIR}' |
---|
26196 | libdir: |
---|
26197 | @echo libdir='${LIBDIR}' |
---|
26198 | _ACEOF |
---|
26199 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
26200 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
26201 | for ac_var in incroot usrlibdir libdir; do |
---|
26202 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
26203 | done |
---|
26204 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
26205 | for ac_extension in a so sl; do |
---|
26206 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
26207 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
26208 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
26209 | fi |
---|
26210 | done |
---|
26211 | # Screen out bogus values from the imake configuration. They are |
---|
26212 | # bogus both because they are the default anyway, and because |
---|
26213 | # using them would break gcc on systems where it needs fixed includes. |
---|
26214 | case $ac_im_incroot in |
---|
26215 | /usr/include) ac_x_includes= ;; |
---|
26216 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
26217 | esac |
---|
26218 | case $ac_im_usrlibdir in |
---|
26219 | /usr/lib | /lib) ;; |
---|
26220 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
26221 | esac |
---|
26222 | fi |
---|
26223 | cd .. |
---|
26224 | rm -f -r conftest.dir |
---|
26225 | fi |
---|
26226 | |
---|
26227 | # Standard set of common directories for X headers. |
---|
26228 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
26229 | ac_x_header_dirs=' |
---|
26230 | /usr/X11/include |
---|
26231 | /usr/X11R6/include |
---|
26232 | /usr/X11R5/include |
---|
26233 | /usr/X11R4/include |
---|
26234 | |
---|
26235 | /usr/include/X11 |
---|
26236 | /usr/include/X11R6 |
---|
26237 | /usr/include/X11R5 |
---|
26238 | /usr/include/X11R4 |
---|
26239 | |
---|
26240 | /usr/local/X11/include |
---|
26241 | /usr/local/X11R6/include |
---|
26242 | /usr/local/X11R5/include |
---|
26243 | /usr/local/X11R4/include |
---|
26244 | |
---|
26245 | /usr/local/include/X11 |
---|
26246 | /usr/local/include/X11R6 |
---|
26247 | /usr/local/include/X11R5 |
---|
26248 | /usr/local/include/X11R4 |
---|
26249 | |
---|
26250 | /usr/X386/include |
---|
26251 | /usr/x386/include |
---|
26252 | /usr/XFree86/include/X11 |
---|
26253 | |
---|
26254 | /usr/include |
---|
26255 | /usr/local/include |
---|
26256 | /usr/unsupported/include |
---|
26257 | /usr/athena/include |
---|
26258 | /usr/local/x11r5/include |
---|
26259 | /usr/lpp/Xamples/include |
---|
26260 | |
---|
26261 | /usr/openwin/include |
---|
26262 | /usr/openwin/share/include' |
---|
26263 | |
---|
26264 | if test "$ac_x_includes" = no; then |
---|
26265 | # Guess where to find include files, by looking for Xlib.h. |
---|
26266 | # First, try using that file with no special directory specified. |
---|
26267 | cat >conftest.$ac_ext <<_ACEOF |
---|
26268 | /* confdefs.h. */ |
---|
26269 | _ACEOF |
---|
26270 | cat confdefs.h >>conftest.$ac_ext |
---|
26271 | cat >>conftest.$ac_ext <<_ACEOF |
---|
26272 | /* end confdefs.h. */ |
---|
26273 | #include <X11/Xlib.h> |
---|
26274 | _ACEOF |
---|
26275 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
26276 | case "(($ac_try" in |
---|
26277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
26278 | *) ac_try_echo=$ac_try;; |
---|
26279 | esac |
---|
26280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
26281 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
26282 | ac_status=$? |
---|
26283 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
26284 | rm -f conftest.er1 |
---|
26285 | cat conftest.err >&5 |
---|
26286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26287 | (exit $ac_status); } >/dev/null && { |
---|
26288 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
26289 | test ! -s conftest.err |
---|
26290 | }; then |
---|
26291 | # We can compile using X headers with no special include directory. |
---|
26292 | ac_x_includes= |
---|
26293 | else |
---|
26294 | echo "$as_me: failed program was:" >&5 |
---|
26295 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
26296 | |
---|
26297 | for ac_dir in $ac_x_header_dirs; do |
---|
26298 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
26299 | ac_x_includes=$ac_dir |
---|
26300 | break |
---|
26301 | fi |
---|
26302 | done |
---|
26303 | fi |
---|
26304 | |
---|
26305 | rm -f conftest.err conftest.$ac_ext |
---|
26306 | fi # $ac_x_includes = no |
---|
26307 | |
---|
26308 | if test "$ac_x_libraries" = no; then |
---|
26309 | # Check for the libraries. |
---|
26310 | # See if we find them without any special options. |
---|
26311 | # Don't add to $LIBS permanently. |
---|
26312 | ac_save_LIBS=$LIBS |
---|
26313 | LIBS="-lX11 $LIBS" |
---|
26314 | cat >conftest.$ac_ext <<_ACEOF |
---|
26315 | /* confdefs.h. */ |
---|
26316 | _ACEOF |
---|
26317 | cat confdefs.h >>conftest.$ac_ext |
---|
26318 | cat >>conftest.$ac_ext <<_ACEOF |
---|
26319 | /* end confdefs.h. */ |
---|
26320 | #include <X11/Xlib.h> |
---|
26321 | int |
---|
26322 | main () |
---|
26323 | { |
---|
26324 | XrmInitialize () |
---|
26325 | ; |
---|
26326 | return 0; |
---|
26327 | } |
---|
26328 | _ACEOF |
---|
26329 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
26330 | if { (ac_try="$ac_link" |
---|
26331 | case "(($ac_try" in |
---|
26332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
26333 | *) ac_try_echo=$ac_try;; |
---|
26334 | esac |
---|
26335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
26336 | (eval "$ac_link") 2>conftest.er1 |
---|
26337 | ac_status=$? |
---|
26338 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
26339 | rm -f conftest.er1 |
---|
26340 | cat conftest.err >&5 |
---|
26341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26342 | (exit $ac_status); } && { |
---|
26343 | test -z "$ac_c_werror_flag" || |
---|
26344 | test ! -s conftest.err |
---|
26345 | } && test -s conftest$ac_exeext && |
---|
26346 | $as_test_x conftest$ac_exeext; then |
---|
26347 | LIBS=$ac_save_LIBS |
---|
26348 | # We can link X programs with no special library path. |
---|
26349 | ac_x_libraries= |
---|
26350 | else |
---|
26351 | echo "$as_me: failed program was:" >&5 |
---|
26352 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
26353 | |
---|
26354 | LIBS=$ac_save_LIBS |
---|
26355 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
26356 | do |
---|
26357 | # Don't even attempt the hair of trying to link an X program! |
---|
26358 | for ac_extension in a so sl; do |
---|
26359 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
26360 | ac_x_libraries=$ac_dir |
---|
26361 | break 2 |
---|
26362 | fi |
---|
26363 | done |
---|
26364 | done |
---|
26365 | fi |
---|
26366 | |
---|
26367 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
26368 | conftest$ac_exeext conftest.$ac_ext |
---|
26369 | fi # $ac_x_libraries = no |
---|
26370 | |
---|
26371 | case $ac_x_includes,$ac_x_libraries in #( |
---|
26372 | no,* | *,no | *\'*) |
---|
26373 | # Didn't find X, or a directory has "'" in its name. |
---|
26374 | ac_cv_have_x="have_x=no";; #( |
---|
26375 | *) |
---|
26376 | # Record where we found X for the cache. |
---|
26377 | ac_cv_have_x="have_x=yes\ |
---|
26378 | ac_x_includes='$ac_x_includes'\ |
---|
26379 | ac_x_libraries='$ac_x_libraries'" |
---|
26380 | esac |
---|
26381 | fi |
---|
26382 | ;; #( |
---|
26383 | *) have_x=yes;; |
---|
26384 | esac |
---|
26385 | eval "$ac_cv_have_x" |
---|
26386 | fi # $with_x != no |
---|
26387 | |
---|
26388 | if test "$have_x" != yes; then |
---|
26389 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
---|
26390 | echo "${ECHO_T}$have_x" >&6; } |
---|
26391 | no_x=yes |
---|
26392 | else |
---|
26393 | # If each of the values was on the command line, it overrides each guess. |
---|
26394 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
26395 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
26396 | # Update the cache value to reflect the command line values. |
---|
26397 | ac_cv_have_x="have_x=yes\ |
---|
26398 | ac_x_includes='$x_includes'\ |
---|
26399 | ac_x_libraries='$x_libraries'" |
---|
26400 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
26401 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
---|
26402 | fi |
---|
26403 | |
---|
26404 | if test x"$x_includes" != x; then |
---|
26405 | if test x"$x_includes" != xNONE; then |
---|
26406 | PLATFORM_CFLAGS="-I$x_includes" |
---|
26407 | fi |
---|
26408 | fi |
---|
26409 | if test x"$x_libraries" != x; then |
---|
26410 | if test x"$x_libraries" != xNONE; then |
---|
26411 | PLATFORM_LIBS="-L$x_libraries -lX11 -lXaw" |
---|
26412 | fi |
---|
26413 | else |
---|
26414 | PLATFORM_LIBS="-lX11 -lXaw" |
---|
26415 | fi |
---|
26416 | ;; |
---|
26417 | Win32) |
---|
26418 | PLATFORM_CFLAGS="" |
---|
26419 | PLATFORM_LIBS="-lgdi32 -lwinmm -ldinput8 -ldxguid" |
---|
26420 | ;; |
---|
26421 | esac |
---|
26422 | |
---|
26423 | |
---|
26424 | |
---|
26425 | |
---|
26426 | |
---|
26427 | OGRE_GLSUPPORT=none |
---|
26428 | |
---|
26429 | # Check whether --with-gl-support was given. |
---|
26430 | if test "${with_gl_support+set}" = set; then |
---|
26431 | withval=$with_gl_support; OGRE_GLSUPPORT=$withval |
---|
26432 | else |
---|
26433 | OGRE_GLSUPPORT=none |
---|
26434 | fi |
---|
26435 | |
---|
26436 | |
---|
26437 | if test "$OGRE_GLSUPPORT" = "none" ; then |
---|
26438 | OGRE_GLSUPPORT="$OGRE_PLATFORM" |
---|
26439 | { echo "$as_me:$LINENO: setting gl-support to platform: $OGRE_GLSUPPORT" >&5 |
---|
26440 | echo "$as_me: setting gl-support to platform: $OGRE_GLSUPPORT" >&6;} |
---|
26441 | fi |
---|
26442 | if test "$OGRE_GLSUPPORT" = "Win32" ; then |
---|
26443 | # Uppercase/lowercase |
---|
26444 | OGRE_GLSUPPORT=win32 |
---|
26445 | fi |
---|
26446 | |
---|
26447 | GLSUPPORT_CFLAGS="" |
---|
26448 | GLSUPPORT_LIBS="" |
---|
26449 | |
---|
26450 | case $OGRE_GLSUPPORT in |
---|
26451 | GLX) |
---|
26452 | { echo "$as_me:$LINENO: checking for X" >&5 |
---|
26453 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
---|
26454 | |
---|
26455 | |
---|
26456 | # Check whether --with-x was given. |
---|
26457 | if test "${with_x+set}" = set; then |
---|
26458 | withval=$with_x; |
---|
26459 | fi |
---|
26460 | |
---|
26461 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
---|
26462 | if test "x$with_x" = xno; then |
---|
26463 | # The user explicitly disabled X. |
---|
26464 | have_x=disabled |
---|
26465 | else |
---|
26466 | case $x_includes,$x_libraries in #( |
---|
26467 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
---|
26468 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
---|
26469 | { (exit 1); exit 1; }; };; #( |
---|
26470 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
---|
26471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
26472 | else |
---|
26473 | # One or both of the vars are not set, and there is no cached value. |
---|
26474 | ac_x_includes=no ac_x_libraries=no |
---|
26475 | rm -f -r conftest.dir |
---|
26476 | if mkdir conftest.dir; then |
---|
26477 | cd conftest.dir |
---|
26478 | cat >Imakefile <<'_ACEOF' |
---|
26479 | incroot: |
---|
26480 | @echo incroot='${INCROOT}' |
---|
26481 | usrlibdir: |
---|
26482 | @echo usrlibdir='${USRLIBDIR}' |
---|
26483 | libdir: |
---|
26484 | @echo libdir='${LIBDIR}' |
---|
26485 | _ACEOF |
---|
26486 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
---|
26487 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
26488 | for ac_var in incroot usrlibdir libdir; do |
---|
26489 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
---|
26490 | done |
---|
26491 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
---|
26492 | for ac_extension in a so sl; do |
---|
26493 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
---|
26494 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
---|
26495 | ac_im_usrlibdir=$ac_im_libdir; break |
---|
26496 | fi |
---|
26497 | done |
---|
26498 | # Screen out bogus values from the imake configuration. They are |
---|
26499 | # bogus both because they are the default anyway, and because |
---|
26500 | # using them would break gcc on systems where it needs fixed includes. |
---|
26501 | case $ac_im_incroot in |
---|
26502 | /usr/include) ac_x_includes= ;; |
---|
26503 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
---|
26504 | esac |
---|
26505 | case $ac_im_usrlibdir in |
---|
26506 | /usr/lib | /lib) ;; |
---|
26507 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
---|
26508 | esac |
---|
26509 | fi |
---|
26510 | cd .. |
---|
26511 | rm -f -r conftest.dir |
---|
26512 | fi |
---|
26513 | |
---|
26514 | # Standard set of common directories for X headers. |
---|
26515 | # Check X11 before X11Rn because it is often a symlink to the current release. |
---|
26516 | ac_x_header_dirs=' |
---|
26517 | /usr/X11/include |
---|
26518 | /usr/X11R6/include |
---|
26519 | /usr/X11R5/include |
---|
26520 | /usr/X11R4/include |
---|
26521 | |
---|
26522 | /usr/include/X11 |
---|
26523 | /usr/include/X11R6 |
---|
26524 | /usr/include/X11R5 |
---|
26525 | /usr/include/X11R4 |
---|
26526 | |
---|
26527 | /usr/local/X11/include |
---|
26528 | /usr/local/X11R6/include |
---|
26529 | /usr/local/X11R5/include |
---|
26530 | /usr/local/X11R4/include |
---|
26531 | |
---|
26532 | /usr/local/include/X11 |
---|
26533 | /usr/local/include/X11R6 |
---|
26534 | /usr/local/include/X11R5 |
---|
26535 | /usr/local/include/X11R4 |
---|
26536 | |
---|
26537 | /usr/X386/include |
---|
26538 | /usr/x386/include |
---|
26539 | /usr/XFree86/include/X11 |
---|
26540 | |
---|
26541 | /usr/include |
---|
26542 | /usr/local/include |
---|
26543 | /usr/unsupported/include |
---|
26544 | /usr/athena/include |
---|
26545 | /usr/local/x11r5/include |
---|
26546 | /usr/lpp/Xamples/include |
---|
26547 | |
---|
26548 | /usr/openwin/include |
---|
26549 | /usr/openwin/share/include' |
---|
26550 | |
---|
26551 | if test "$ac_x_includes" = no; then |
---|
26552 | # Guess where to find include files, by looking for Xlib.h. |
---|
26553 | # First, try using that file with no special directory specified. |
---|
26554 | cat >conftest.$ac_ext <<_ACEOF |
---|
26555 | /* confdefs.h. */ |
---|
26556 | _ACEOF |
---|
26557 | cat confdefs.h >>conftest.$ac_ext |
---|
26558 | cat >>conftest.$ac_ext <<_ACEOF |
---|
26559 | /* end confdefs.h. */ |
---|
26560 | #include <X11/Xlib.h> |
---|
26561 | _ACEOF |
---|
26562 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
26563 | case "(($ac_try" in |
---|
26564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
26565 | *) ac_try_echo=$ac_try;; |
---|
26566 | esac |
---|
26567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
26568 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
26569 | ac_status=$? |
---|
26570 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
26571 | rm -f conftest.er1 |
---|
26572 | cat conftest.err >&5 |
---|
26573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26574 | (exit $ac_status); } >/dev/null && { |
---|
26575 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
26576 | test ! -s conftest.err |
---|
26577 | }; then |
---|
26578 | # We can compile using X headers with no special include directory. |
---|
26579 | ac_x_includes= |
---|
26580 | else |
---|
26581 | echo "$as_me: failed program was:" >&5 |
---|
26582 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
26583 | |
---|
26584 | for ac_dir in $ac_x_header_dirs; do |
---|
26585 | if test -r "$ac_dir/X11/Xlib.h"; then |
---|
26586 | ac_x_includes=$ac_dir |
---|
26587 | break |
---|
26588 | fi |
---|
26589 | done |
---|
26590 | fi |
---|
26591 | |
---|
26592 | rm -f conftest.err conftest.$ac_ext |
---|
26593 | fi # $ac_x_includes = no |
---|
26594 | |
---|
26595 | if test "$ac_x_libraries" = no; then |
---|
26596 | # Check for the libraries. |
---|
26597 | # See if we find them without any special options. |
---|
26598 | # Don't add to $LIBS permanently. |
---|
26599 | ac_save_LIBS=$LIBS |
---|
26600 | LIBS="-lX11 $LIBS" |
---|
26601 | cat >conftest.$ac_ext <<_ACEOF |
---|
26602 | /* confdefs.h. */ |
---|
26603 | _ACEOF |
---|
26604 | cat confdefs.h >>conftest.$ac_ext |
---|
26605 | cat >>conftest.$ac_ext <<_ACEOF |
---|
26606 | /* end confdefs.h. */ |
---|
26607 | #include <X11/Xlib.h> |
---|
26608 | int |
---|
26609 | main () |
---|
26610 | { |
---|
26611 | XrmInitialize () |
---|
26612 | ; |
---|
26613 | return 0; |
---|
26614 | } |
---|
26615 | _ACEOF |
---|
26616 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
26617 | if { (ac_try="$ac_link" |
---|
26618 | case "(($ac_try" in |
---|
26619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
26620 | *) ac_try_echo=$ac_try;; |
---|
26621 | esac |
---|
26622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
26623 | (eval "$ac_link") 2>conftest.er1 |
---|
26624 | ac_status=$? |
---|
26625 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
26626 | rm -f conftest.er1 |
---|
26627 | cat conftest.err >&5 |
---|
26628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26629 | (exit $ac_status); } && { |
---|
26630 | test -z "$ac_c_werror_flag" || |
---|
26631 | test ! -s conftest.err |
---|
26632 | } && test -s conftest$ac_exeext && |
---|
26633 | $as_test_x conftest$ac_exeext; then |
---|
26634 | LIBS=$ac_save_LIBS |
---|
26635 | # We can link X programs with no special library path. |
---|
26636 | ac_x_libraries= |
---|
26637 | else |
---|
26638 | echo "$as_me: failed program was:" >&5 |
---|
26639 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
26640 | |
---|
26641 | LIBS=$ac_save_LIBS |
---|
26642 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
---|
26643 | do |
---|
26644 | # Don't even attempt the hair of trying to link an X program! |
---|
26645 | for ac_extension in a so sl; do |
---|
26646 | if test -r "$ac_dir/libX11.$ac_extension"; then |
---|
26647 | ac_x_libraries=$ac_dir |
---|
26648 | break 2 |
---|
26649 | fi |
---|
26650 | done |
---|
26651 | done |
---|
26652 | fi |
---|
26653 | |
---|
26654 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
26655 | conftest$ac_exeext conftest.$ac_ext |
---|
26656 | fi # $ac_x_libraries = no |
---|
26657 | |
---|
26658 | case $ac_x_includes,$ac_x_libraries in #( |
---|
26659 | no,* | *,no | *\'*) |
---|
26660 | # Didn't find X, or a directory has "'" in its name. |
---|
26661 | ac_cv_have_x="have_x=no";; #( |
---|
26662 | *) |
---|
26663 | # Record where we found X for the cache. |
---|
26664 | ac_cv_have_x="have_x=yes\ |
---|
26665 | ac_x_includes='$ac_x_includes'\ |
---|
26666 | ac_x_libraries='$ac_x_libraries'" |
---|
26667 | esac |
---|
26668 | fi |
---|
26669 | ;; #( |
---|
26670 | *) have_x=yes;; |
---|
26671 | esac |
---|
26672 | eval "$ac_cv_have_x" |
---|
26673 | fi # $with_x != no |
---|
26674 | |
---|
26675 | if test "$have_x" != yes; then |
---|
26676 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
---|
26677 | echo "${ECHO_T}$have_x" >&6; } |
---|
26678 | no_x=yes |
---|
26679 | else |
---|
26680 | # If each of the values was on the command line, it overrides each guess. |
---|
26681 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
---|
26682 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
---|
26683 | # Update the cache value to reflect the command line values. |
---|
26684 | ac_cv_have_x="have_x=yes\ |
---|
26685 | ac_x_includes='$x_includes'\ |
---|
26686 | ac_x_libraries='$x_libraries'" |
---|
26687 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
---|
26688 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
---|
26689 | fi |
---|
26690 | |
---|
26691 | if test x"$x_includes" != x; then |
---|
26692 | if test x"$x_includes" != xNONE; then |
---|
26693 | GLSUPPORT_CFLAGS="-I$x_includes" |
---|
26694 | fi |
---|
26695 | fi |
---|
26696 | if test x"$x_libraries" != x; then |
---|
26697 | if test x"$x_libraries" != xNONE; then |
---|
26698 | GLSUPPORT_LIBS="-L$x_libraries -lX11 -lXext -lGL -lXrandr -lXxf86vm" |
---|
26699 | fi |
---|
26700 | else |
---|
26701 | GLSUPPORT_LIBS="-lX11 -lXext -lGL -lXrandr -lXxf86vm" |
---|
26702 | fi |
---|
26703 | ;; |
---|
26704 | win32) |
---|
26705 | GLSUPPORT_CFLAGS="" |
---|
26706 | GLSUPPORT_LIBS="-lgdi32 -lwinmm" |
---|
26707 | ;; |
---|
26708 | esac |
---|
26709 | |
---|
26710 | |
---|
26711 | |
---|
26712 | |
---|
26713 | ac_config_files="$ac_config_files RenderSystems/GL/src/GLX/Makefile RenderSystems/GL/src/win32/Makefile" |
---|
26714 | |
---|
26715 | |
---|
26716 | |
---|
26717 | |
---|
26718 | |
---|
26719 | # Check whether --with-gui was given. |
---|
26720 | if test "${with_gui+set}" = set; then |
---|
26721 | withval=$with_gui; with_gui=${withval} |
---|
26722 | else |
---|
26723 | with_gui=auto |
---|
26724 | fi |
---|
26725 | |
---|
26726 | |
---|
26727 | #remove any old files |
---|
26728 | rm -f OgreMain/src/OgreConfigDialog.lo OgreMain/src/OgreErrorDialog.lo |
---|
26729 | |
---|
26730 | # Prefer win32, then gtk, then Xt |
---|
26731 | if test "x$with_gui" == "xauto" && test "x$OGRE_PLATFORM" == "xWIN32"; then |
---|
26732 | with_gui=win32 |
---|
26733 | fi |
---|
26734 | |
---|
26735 | if test "x$with_gui" == "xauto" || test "x$with_gui" == "xgtk"; then |
---|
26736 | |
---|
26737 | pkg_failed=no |
---|
26738 | { echo "$as_me:$LINENO: checking for GTK" >&5 |
---|
26739 | echo $ECHO_N "checking for GTK... $ECHO_C" >&6; } |
---|
26740 | |
---|
26741 | if test -n "$PKG_CONFIG"; then |
---|
26742 | if test -n "$GTK_CFLAGS"; then |
---|
26743 | pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" |
---|
26744 | else |
---|
26745 | if test -n "$PKG_CONFIG" && \ |
---|
26746 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\"") >&5 |
---|
26747 | ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5 |
---|
26748 | ac_status=$? |
---|
26749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26750 | (exit $ac_status); }; then |
---|
26751 | pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0" 2>/dev/null` |
---|
26752 | else |
---|
26753 | pkg_failed=yes |
---|
26754 | fi |
---|
26755 | fi |
---|
26756 | else |
---|
26757 | pkg_failed=untried |
---|
26758 | fi |
---|
26759 | if test -n "$PKG_CONFIG"; then |
---|
26760 | if test -n "$GTK_LIBS"; then |
---|
26761 | pkg_cv_GTK_LIBS="$GTK_LIBS" |
---|
26762 | else |
---|
26763 | if test -n "$PKG_CONFIG" && \ |
---|
26764 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0.0\"") >&5 |
---|
26765 | ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0.0") 2>&5 |
---|
26766 | ac_status=$? |
---|
26767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26768 | (exit $ac_status); }; then |
---|
26769 | pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0" 2>/dev/null` |
---|
26770 | else |
---|
26771 | pkg_failed=yes |
---|
26772 | fi |
---|
26773 | fi |
---|
26774 | else |
---|
26775 | pkg_failed=untried |
---|
26776 | fi |
---|
26777 | |
---|
26778 | |
---|
26779 | |
---|
26780 | if test $pkg_failed = yes; then |
---|
26781 | |
---|
26782 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
26783 | _pkg_short_errors_supported=yes |
---|
26784 | else |
---|
26785 | _pkg_short_errors_supported=no |
---|
26786 | fi |
---|
26787 | if test $_pkg_short_errors_supported = yes; then |
---|
26788 | GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"` |
---|
26789 | else |
---|
26790 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"` |
---|
26791 | fi |
---|
26792 | # Put the nasty error message in config.log where it belongs |
---|
26793 | echo "$GTK_PKG_ERRORS" >&5 |
---|
26794 | |
---|
26795 | |
---|
26796 | if test "x$with_gui" == "xgtk"; then |
---|
26797 | { { echo "$as_me:$LINENO: error: You chose gtk for the GUI but gtk is not available." >&5 |
---|
26798 | echo "$as_me: error: You chose gtk for the GUI but gtk is not available." >&2;} |
---|
26799 | { (exit 1); exit 1; }; } |
---|
26800 | fi |
---|
26801 | |
---|
26802 | elif test $pkg_failed = untried; then |
---|
26803 | |
---|
26804 | if test "x$with_gui" == "xgtk"; then |
---|
26805 | { { echo "$as_me:$LINENO: error: You chose gtk for the GUI but gtk is not available." >&5 |
---|
26806 | echo "$as_me: error: You chose gtk for the GUI but gtk is not available." >&2;} |
---|
26807 | { (exit 1); exit 1; }; } |
---|
26808 | fi |
---|
26809 | |
---|
26810 | else |
---|
26811 | GTK_CFLAGS=$pkg_cv_GTK_CFLAGS |
---|
26812 | GTK_LIBS=$pkg_cv_GTK_LIBS |
---|
26813 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
26814 | echo "${ECHO_T}yes" >&6; } |
---|
26815 | with_gui=gtk |
---|
26816 | fi |
---|
26817 | fi |
---|
26818 | |
---|
26819 | if test "x$with_gui" == "xauto"; then |
---|
26820 | with_gui=Xt |
---|
26821 | fi |
---|
26822 | |
---|
26823 | if test "x$with_gui" == "xwin32"; then |
---|
26824 | OGRE_GUI=WIN32 |
---|
26825 | elif test "x$with_gui" == "xgtk"; then |
---|
26826 | OGRE_GUI=gtk |
---|
26827 | elif test "x$with_gui" == "xXt"; then |
---|
26828 | OGRE_GUI=GLX |
---|
26829 | PLATFORM_LIBS="$PLATFORM_LIBS -lXt -lSM -lICE" |
---|
26830 | else |
---|
26831 | { { echo "$as_me:$LINENO: error: The GUI dialogs for $with_gui are not available." >&5 |
---|
26832 | echo "$as_me: error: The GUI dialogs for $with_gui are not available." >&2;} |
---|
26833 | { (exit 1); exit 1; }; } |
---|
26834 | fi |
---|
26835 | |
---|
26836 | # Add the OGRE_GUI_xxx flag to compiler command line |
---|
26837 | PLATFORM_CFLAGS="$PLATFORM_CFLAGS -DOGRE_GUI_$OGRE_GUI" |
---|
26838 | # And export it to client applications as well |
---|
26839 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_GUI_$OGRE_GUI" |
---|
26840 | |
---|
26841 | |
---|
26842 | |
---|
26843 | |
---|
26844 | |
---|
26845 | |
---|
26846 | # Check whether --enable-double was given. |
---|
26847 | if test "${enable_double+set}" = set; then |
---|
26848 | enableval=$enable_double; build_double=$enableval |
---|
26849 | else |
---|
26850 | build_double=no |
---|
26851 | fi |
---|
26852 | |
---|
26853 | { echo "$as_me:$LINENO: checking whether to use double floating point precision" >&5 |
---|
26854 | echo $ECHO_N "checking whether to use double floating point precision... $ECHO_C" >&6; } |
---|
26855 | case $build_double in |
---|
26856 | yes) |
---|
26857 | |
---|
26858 | cat >>confdefs.h <<\_ACEOF |
---|
26859 | #define OGRE_DOUBLE_PRECISION 1 |
---|
26860 | _ACEOF |
---|
26861 | |
---|
26862 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_DOUBLE_PRECISION" |
---|
26863 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
26864 | echo "${ECHO_T}yes" >&6; } |
---|
26865 | ;; |
---|
26866 | *) |
---|
26867 | |
---|
26868 | cat >>confdefs.h <<\_ACEOF |
---|
26869 | #define OGRE_DOUBLE_PRECISION 0 |
---|
26870 | _ACEOF |
---|
26871 | |
---|
26872 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
26873 | echo "${ECHO_T}no" >&6; } |
---|
26874 | ;; |
---|
26875 | esac |
---|
26876 | |
---|
26877 | |
---|
26878 | # Check whether --enable-threading was given. |
---|
26879 | if test "${enable_threading+set}" = set; then |
---|
26880 | enableval=$enable_threading; build_threads=$enableval |
---|
26881 | else |
---|
26882 | build_threads=no |
---|
26883 | fi |
---|
26884 | |
---|
26885 | case $build_threads in |
---|
26886 | yes) |
---|
26887 | |
---|
26888 | cat >>confdefs.h <<\_ACEOF |
---|
26889 | #define OGRE_THREAD_SUPPORT 1 |
---|
26890 | _ACEOF |
---|
26891 | |
---|
26892 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_THREAD_SUPPORT" |
---|
26893 | # Check for the C++ Boost library |
---|
26894 | { echo "$as_me:$LINENO: checking for main in -lboost_thread" >&5 |
---|
26895 | echo $ECHO_N "checking for main in -lboost_thread... $ECHO_C" >&6; } |
---|
26896 | if test "${ac_cv_lib_boost_thread_main+set}" = set; then |
---|
26897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
26898 | else |
---|
26899 | ac_check_lib_save_LIBS=$LIBS |
---|
26900 | LIBS="-lboost_thread $LIBS" |
---|
26901 | cat >conftest.$ac_ext <<_ACEOF |
---|
26902 | /* confdefs.h. */ |
---|
26903 | _ACEOF |
---|
26904 | cat confdefs.h >>conftest.$ac_ext |
---|
26905 | cat >>conftest.$ac_ext <<_ACEOF |
---|
26906 | /* end confdefs.h. */ |
---|
26907 | |
---|
26908 | |
---|
26909 | int |
---|
26910 | main () |
---|
26911 | { |
---|
26912 | return main (); |
---|
26913 | ; |
---|
26914 | return 0; |
---|
26915 | } |
---|
26916 | _ACEOF |
---|
26917 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
26918 | if { (ac_try="$ac_link" |
---|
26919 | case "(($ac_try" in |
---|
26920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
26921 | *) ac_try_echo=$ac_try;; |
---|
26922 | esac |
---|
26923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
26924 | (eval "$ac_link") 2>conftest.er1 |
---|
26925 | ac_status=$? |
---|
26926 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
26927 | rm -f conftest.er1 |
---|
26928 | cat conftest.err >&5 |
---|
26929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26930 | (exit $ac_status); } && { |
---|
26931 | test -z "$ac_c_werror_flag" || |
---|
26932 | test ! -s conftest.err |
---|
26933 | } && test -s conftest$ac_exeext && |
---|
26934 | $as_test_x conftest$ac_exeext; then |
---|
26935 | ac_cv_lib_boost_thread_main=yes |
---|
26936 | else |
---|
26937 | echo "$as_me: failed program was:" >&5 |
---|
26938 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
26939 | |
---|
26940 | ac_cv_lib_boost_thread_main=no |
---|
26941 | fi |
---|
26942 | |
---|
26943 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
26944 | conftest$ac_exeext conftest.$ac_ext |
---|
26945 | LIBS=$ac_check_lib_save_LIBS |
---|
26946 | fi |
---|
26947 | { echo "$as_me:$LINENO: result: $ac_cv_lib_boost_thread_main" >&5 |
---|
26948 | echo "${ECHO_T}$ac_cv_lib_boost_thread_main" >&6; } |
---|
26949 | if test $ac_cv_lib_boost_thread_main = yes; then |
---|
26950 | OGRE_THREAD_LIBS="-lboost_thread" |
---|
26951 | else |
---|
26952 | |
---|
26953 | { echo "$as_me:$LINENO: checking for main in -lboost_thread-mt" >&5 |
---|
26954 | echo $ECHO_N "checking for main in -lboost_thread-mt... $ECHO_C" >&6; } |
---|
26955 | if test "${ac_cv_lib_boost_thread_mt_main+set}" = set; then |
---|
26956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
26957 | else |
---|
26958 | ac_check_lib_save_LIBS=$LIBS |
---|
26959 | LIBS="-lboost_thread-mt $LIBS" |
---|
26960 | cat >conftest.$ac_ext <<_ACEOF |
---|
26961 | /* confdefs.h. */ |
---|
26962 | _ACEOF |
---|
26963 | cat confdefs.h >>conftest.$ac_ext |
---|
26964 | cat >>conftest.$ac_ext <<_ACEOF |
---|
26965 | /* end confdefs.h. */ |
---|
26966 | |
---|
26967 | |
---|
26968 | int |
---|
26969 | main () |
---|
26970 | { |
---|
26971 | return main (); |
---|
26972 | ; |
---|
26973 | return 0; |
---|
26974 | } |
---|
26975 | _ACEOF |
---|
26976 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
26977 | if { (ac_try="$ac_link" |
---|
26978 | case "(($ac_try" in |
---|
26979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
26980 | *) ac_try_echo=$ac_try;; |
---|
26981 | esac |
---|
26982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
26983 | (eval "$ac_link") 2>conftest.er1 |
---|
26984 | ac_status=$? |
---|
26985 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
26986 | rm -f conftest.er1 |
---|
26987 | cat conftest.err >&5 |
---|
26988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
26989 | (exit $ac_status); } && { |
---|
26990 | test -z "$ac_c_werror_flag" || |
---|
26991 | test ! -s conftest.err |
---|
26992 | } && test -s conftest$ac_exeext && |
---|
26993 | $as_test_x conftest$ac_exeext; then |
---|
26994 | ac_cv_lib_boost_thread_mt_main=yes |
---|
26995 | else |
---|
26996 | echo "$as_me: failed program was:" >&5 |
---|
26997 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
26998 | |
---|
26999 | ac_cv_lib_boost_thread_mt_main=no |
---|
27000 | fi |
---|
27001 | |
---|
27002 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
27003 | conftest$ac_exeext conftest.$ac_ext |
---|
27004 | LIBS=$ac_check_lib_save_LIBS |
---|
27005 | fi |
---|
27006 | { echo "$as_me:$LINENO: result: $ac_cv_lib_boost_thread_mt_main" >&5 |
---|
27007 | echo "${ECHO_T}$ac_cv_lib_boost_thread_mt_main" >&6; } |
---|
27008 | if test $ac_cv_lib_boost_thread_mt_main = yes; then |
---|
27009 | OGRE_THREAD_LIBS="-lboost_thread-mt" |
---|
27010 | else |
---|
27011 | |
---|
27012 | { { echo "$as_me:$LINENO: error: You need the C++ boost libraries." >&5 |
---|
27013 | echo "$as_me: error: You need the C++ boost libraries." >&2;} |
---|
27014 | { (exit 1); exit 1; }; } |
---|
27015 | fi |
---|
27016 | |
---|
27017 | fi |
---|
27018 | |
---|
27019 | ;; |
---|
27020 | *) |
---|
27021 | |
---|
27022 | cat >>confdefs.h <<\_ACEOF |
---|
27023 | #define OGRE_THREAD_SUPPORT 0 |
---|
27024 | _ACEOF |
---|
27025 | |
---|
27026 | OGRE_THREAD_LIBS="" |
---|
27027 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
27028 | echo "${ECHO_T}no" >&6; } |
---|
27029 | ;; |
---|
27030 | esac |
---|
27031 | |
---|
27032 | |
---|
27033 | # Check whether --enable-freeimage was given. |
---|
27034 | if test "${enable_freeimage+set}" = set; then |
---|
27035 | enableval=$enable_freeimage; build_freeimage=$enableval |
---|
27036 | else |
---|
27037 | build_freeimage=yes |
---|
27038 | fi |
---|
27039 | |
---|
27040 | |
---|
27041 | |
---|
27042 | |
---|
27043 | |
---|
27044 | if test x$build_freeimage = xyes; then |
---|
27045 | USE_FREEIMAGE_TRUE= |
---|
27046 | USE_FREEIMAGE_FALSE='#' |
---|
27047 | else |
---|
27048 | USE_FREEIMAGE_TRUE='#' |
---|
27049 | USE_FREEIMAGE_FALSE= |
---|
27050 | fi |
---|
27051 | |
---|
27052 | |
---|
27053 | if test "x$build_freeimage" = "xyes" ; then |
---|
27054 | |
---|
27055 | { echo "$as_me:$LINENO: checking for FreeImage_Load in -lfreeimage" >&5 |
---|
27056 | echo $ECHO_N "checking for FreeImage_Load in -lfreeimage... $ECHO_C" >&6; } |
---|
27057 | if test "${ac_cv_lib_freeimage_FreeImage_Load+set}" = set; then |
---|
27058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
27059 | else |
---|
27060 | ac_check_lib_save_LIBS=$LIBS |
---|
27061 | LIBS="-lfreeimage -lstdc++ $LIBS" |
---|
27062 | cat >conftest.$ac_ext <<_ACEOF |
---|
27063 | /* confdefs.h. */ |
---|
27064 | _ACEOF |
---|
27065 | cat confdefs.h >>conftest.$ac_ext |
---|
27066 | cat >>conftest.$ac_ext <<_ACEOF |
---|
27067 | /* end confdefs.h. */ |
---|
27068 | |
---|
27069 | /* Override any GCC internal prototype to avoid an error. |
---|
27070 | Use char because int might match the return type of a GCC |
---|
27071 | builtin and then its argument prototype would still apply. */ |
---|
27072 | #ifdef __cplusplus |
---|
27073 | extern "C" |
---|
27074 | #endif |
---|
27075 | char FreeImage_Load (); |
---|
27076 | int |
---|
27077 | main () |
---|
27078 | { |
---|
27079 | return FreeImage_Load (); |
---|
27080 | ; |
---|
27081 | return 0; |
---|
27082 | } |
---|
27083 | _ACEOF |
---|
27084 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
27085 | if { (ac_try="$ac_link" |
---|
27086 | case "(($ac_try" in |
---|
27087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
27088 | *) ac_try_echo=$ac_try;; |
---|
27089 | esac |
---|
27090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
27091 | (eval "$ac_link") 2>conftest.er1 |
---|
27092 | ac_status=$? |
---|
27093 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
27094 | rm -f conftest.er1 |
---|
27095 | cat conftest.err >&5 |
---|
27096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27097 | (exit $ac_status); } && { |
---|
27098 | test -z "$ac_c_werror_flag" || |
---|
27099 | test ! -s conftest.err |
---|
27100 | } && test -s conftest$ac_exeext && |
---|
27101 | $as_test_x conftest$ac_exeext; then |
---|
27102 | ac_cv_lib_freeimage_FreeImage_Load=yes |
---|
27103 | else |
---|
27104 | echo "$as_me: failed program was:" >&5 |
---|
27105 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
27106 | |
---|
27107 | ac_cv_lib_freeimage_FreeImage_Load=no |
---|
27108 | fi |
---|
27109 | |
---|
27110 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
27111 | conftest$ac_exeext conftest.$ac_ext |
---|
27112 | LIBS=$ac_check_lib_save_LIBS |
---|
27113 | fi |
---|
27114 | { echo "$as_me:$LINENO: result: $ac_cv_lib_freeimage_FreeImage_Load" >&5 |
---|
27115 | echo "${ECHO_T}$ac_cv_lib_freeimage_FreeImage_Load" >&6; } |
---|
27116 | if test $ac_cv_lib_freeimage_FreeImage_Load = yes; then |
---|
27117 | cat >>confdefs.h <<_ACEOF |
---|
27118 | #define HAVE_LIBFREEIMAGE 1 |
---|
27119 | _ACEOF |
---|
27120 | |
---|
27121 | LIBS="-lfreeimage $LIBS" |
---|
27122 | |
---|
27123 | else |
---|
27124 | { { echo "$as_me:$LINENO: error: |
---|
27125 | **************************************************************** |
---|
27126 | * You do not have FreeImage installed. This is required. * |
---|
27127 | * You may find it at http://freeimage.sourceforge.net/. * |
---|
27128 | * Note: You can also provide --disable-freeimage to the build * |
---|
27129 | * process to build without it. This is an advanced option * |
---|
27130 | * useful only if you provide your own image loading codecs. * |
---|
27131 | ****************************************************************" >&5 |
---|
27132 | echo "$as_me: error: |
---|
27133 | **************************************************************** |
---|
27134 | * You do not have FreeImage installed. This is required. * |
---|
27135 | * You may find it at http://freeimage.sourceforge.net/. * |
---|
27136 | * Note: You can also provide --disable-freeimage to the build * |
---|
27137 | * process to build without it. This is an advanced option * |
---|
27138 | * useful only if you provide your own image loading codecs. * |
---|
27139 | ****************************************************************" >&2;} |
---|
27140 | { (exit 1); exit 1; }; } |
---|
27141 | fi |
---|
27142 | |
---|
27143 | |
---|
27144 | cat >>confdefs.h <<\_ACEOF |
---|
27145 | #define OGRE_NO_FREEIMAGE 0 |
---|
27146 | _ACEOF |
---|
27147 | |
---|
27148 | else |
---|
27149 | |
---|
27150 | cat >>confdefs.h <<\_ACEOF |
---|
27151 | #define OGRE_NO_FREEIMAGE 1 |
---|
27152 | _ACEOF |
---|
27153 | |
---|
27154 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_NO_FREEIMAGE" |
---|
27155 | fi |
---|
27156 | |
---|
27157 | |
---|
27158 | |
---|
27159 | # Check whether --enable-devil was given. |
---|
27160 | if test "${enable_devil+set}" = set; then |
---|
27161 | enableval=$enable_devil; build_il=$enableval |
---|
27162 | else |
---|
27163 | build_il=yes |
---|
27164 | fi |
---|
27165 | |
---|
27166 | |
---|
27167 | |
---|
27168 | |
---|
27169 | if test x$build_il = xyes && test x$build_freeimage = xno; then |
---|
27170 | USE_DEVIL_TRUE= |
---|
27171 | USE_DEVIL_FALSE='#' |
---|
27172 | else |
---|
27173 | USE_DEVIL_TRUE='#' |
---|
27174 | USE_DEVIL_FALSE= |
---|
27175 | fi |
---|
27176 | |
---|
27177 | |
---|
27178 | if test "x$build_freeimage" = "xyes"; then |
---|
27179 | { echo "$as_me:$LINENO: Freeimage is being built, disabling check for DevIL." >&5 |
---|
27180 | echo "$as_me: Freeimage is being built, disabling check for DevIL." >&6;} |
---|
27181 | build_il=no |
---|
27182 | |
---|
27183 | cat >>confdefs.h <<\_ACEOF |
---|
27184 | #define OGRE_NO_DEVIL 1 |
---|
27185 | _ACEOF |
---|
27186 | |
---|
27187 | else |
---|
27188 | if test "x$build_il" = "xyes"; then |
---|
27189 | |
---|
27190 | { echo "$as_me:$LINENO: checking for ilInit in -lIL" >&5 |
---|
27191 | echo $ECHO_N "checking for ilInit in -lIL... $ECHO_C" >&6; } |
---|
27192 | if test "${ac_cv_lib_IL_ilInit+set}" = set; then |
---|
27193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
27194 | else |
---|
27195 | ac_check_lib_save_LIBS=$LIBS |
---|
27196 | LIBS="-lIL $LIBS" |
---|
27197 | cat >conftest.$ac_ext <<_ACEOF |
---|
27198 | /* confdefs.h. */ |
---|
27199 | _ACEOF |
---|
27200 | cat confdefs.h >>conftest.$ac_ext |
---|
27201 | cat >>conftest.$ac_ext <<_ACEOF |
---|
27202 | /* end confdefs.h. */ |
---|
27203 | |
---|
27204 | /* Override any GCC internal prototype to avoid an error. |
---|
27205 | Use char because int might match the return type of a GCC |
---|
27206 | builtin and then its argument prototype would still apply. */ |
---|
27207 | #ifdef __cplusplus |
---|
27208 | extern "C" |
---|
27209 | #endif |
---|
27210 | char ilInit (); |
---|
27211 | int |
---|
27212 | main () |
---|
27213 | { |
---|
27214 | return ilInit (); |
---|
27215 | ; |
---|
27216 | return 0; |
---|
27217 | } |
---|
27218 | _ACEOF |
---|
27219 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
27220 | if { (ac_try="$ac_link" |
---|
27221 | case "(($ac_try" in |
---|
27222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
27223 | *) ac_try_echo=$ac_try;; |
---|
27224 | esac |
---|
27225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
27226 | (eval "$ac_link") 2>conftest.er1 |
---|
27227 | ac_status=$? |
---|
27228 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
27229 | rm -f conftest.er1 |
---|
27230 | cat conftest.err >&5 |
---|
27231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27232 | (exit $ac_status); } && { |
---|
27233 | test -z "$ac_c_werror_flag" || |
---|
27234 | test ! -s conftest.err |
---|
27235 | } && test -s conftest$ac_exeext && |
---|
27236 | $as_test_x conftest$ac_exeext; then |
---|
27237 | ac_cv_lib_IL_ilInit=yes |
---|
27238 | else |
---|
27239 | echo "$as_me: failed program was:" >&5 |
---|
27240 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
27241 | |
---|
27242 | ac_cv_lib_IL_ilInit=no |
---|
27243 | fi |
---|
27244 | |
---|
27245 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
27246 | conftest$ac_exeext conftest.$ac_ext |
---|
27247 | LIBS=$ac_check_lib_save_LIBS |
---|
27248 | fi |
---|
27249 | { echo "$as_me:$LINENO: result: $ac_cv_lib_IL_ilInit" >&5 |
---|
27250 | echo "${ECHO_T}$ac_cv_lib_IL_ilInit" >&6; } |
---|
27251 | if test $ac_cv_lib_IL_ilInit = yes; then |
---|
27252 | cat >>confdefs.h <<_ACEOF |
---|
27253 | #define HAVE_LIBIL 1 |
---|
27254 | _ACEOF |
---|
27255 | |
---|
27256 | LIBS="-lIL $LIBS" |
---|
27257 | |
---|
27258 | else |
---|
27259 | { { echo "$as_me:$LINENO: error: |
---|
27260 | **************************************************************** |
---|
27261 | * You do not have DevIL installed. This is required to build. * |
---|
27262 | * You may find it at http://openil.sourceforge.net/. * |
---|
27263 | * Note: You can also provide --disable-devil to the build * |
---|
27264 | * process to build without DevIL. This is an advanced option * |
---|
27265 | * useful only if you provide your own image loading codecs. * |
---|
27266 | ****************************************************************" >&5 |
---|
27267 | echo "$as_me: error: |
---|
27268 | **************************************************************** |
---|
27269 | * You do not have DevIL installed. This is required to build. * |
---|
27270 | * You may find it at http://openil.sourceforge.net/. * |
---|
27271 | * Note: You can also provide --disable-devil to the build * |
---|
27272 | * process to build without DevIL. This is an advanced option * |
---|
27273 | * useful only if you provide your own image loading codecs. * |
---|
27274 | ****************************************************************" >&2;} |
---|
27275 | { (exit 1); exit 1; }; } |
---|
27276 | fi |
---|
27277 | |
---|
27278 | |
---|
27279 | { echo "$as_me:$LINENO: checking for iluFlipImage in -lILU" >&5 |
---|
27280 | echo $ECHO_N "checking for iluFlipImage in -lILU... $ECHO_C" >&6; } |
---|
27281 | if test "${ac_cv_lib_ILU_iluFlipImage+set}" = set; then |
---|
27282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
27283 | else |
---|
27284 | ac_check_lib_save_LIBS=$LIBS |
---|
27285 | LIBS="-lILU $LIBS" |
---|
27286 | cat >conftest.$ac_ext <<_ACEOF |
---|
27287 | /* confdefs.h. */ |
---|
27288 | _ACEOF |
---|
27289 | cat confdefs.h >>conftest.$ac_ext |
---|
27290 | cat >>conftest.$ac_ext <<_ACEOF |
---|
27291 | /* end confdefs.h. */ |
---|
27292 | |
---|
27293 | /* Override any GCC internal prototype to avoid an error. |
---|
27294 | Use char because int might match the return type of a GCC |
---|
27295 | builtin and then its argument prototype would still apply. */ |
---|
27296 | #ifdef __cplusplus |
---|
27297 | extern "C" |
---|
27298 | #endif |
---|
27299 | char iluFlipImage (); |
---|
27300 | int |
---|
27301 | main () |
---|
27302 | { |
---|
27303 | return iluFlipImage (); |
---|
27304 | ; |
---|
27305 | return 0; |
---|
27306 | } |
---|
27307 | _ACEOF |
---|
27308 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
27309 | if { (ac_try="$ac_link" |
---|
27310 | case "(($ac_try" in |
---|
27311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
27312 | *) ac_try_echo=$ac_try;; |
---|
27313 | esac |
---|
27314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
27315 | (eval "$ac_link") 2>conftest.er1 |
---|
27316 | ac_status=$? |
---|
27317 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
27318 | rm -f conftest.er1 |
---|
27319 | cat conftest.err >&5 |
---|
27320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27321 | (exit $ac_status); } && { |
---|
27322 | test -z "$ac_c_werror_flag" || |
---|
27323 | test ! -s conftest.err |
---|
27324 | } && test -s conftest$ac_exeext && |
---|
27325 | $as_test_x conftest$ac_exeext; then |
---|
27326 | ac_cv_lib_ILU_iluFlipImage=yes |
---|
27327 | else |
---|
27328 | echo "$as_me: failed program was:" >&5 |
---|
27329 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
27330 | |
---|
27331 | ac_cv_lib_ILU_iluFlipImage=no |
---|
27332 | fi |
---|
27333 | |
---|
27334 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
27335 | conftest$ac_exeext conftest.$ac_ext |
---|
27336 | LIBS=$ac_check_lib_save_LIBS |
---|
27337 | fi |
---|
27338 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ILU_iluFlipImage" >&5 |
---|
27339 | echo "${ECHO_T}$ac_cv_lib_ILU_iluFlipImage" >&6; } |
---|
27340 | if test $ac_cv_lib_ILU_iluFlipImage = yes; then |
---|
27341 | cat >>confdefs.h <<_ACEOF |
---|
27342 | #define HAVE_LIBILU 1 |
---|
27343 | _ACEOF |
---|
27344 | |
---|
27345 | LIBS="-lILU $LIBS" |
---|
27346 | |
---|
27347 | fi |
---|
27348 | |
---|
27349 | |
---|
27350 | cat >>confdefs.h <<\_ACEOF |
---|
27351 | #define OGRE_NO_DEVIL 0 |
---|
27352 | _ACEOF |
---|
27353 | |
---|
27354 | else |
---|
27355 | |
---|
27356 | cat >>confdefs.h <<\_ACEOF |
---|
27357 | #define OGRE_NO_DEVIL 1 |
---|
27358 | _ACEOF |
---|
27359 | |
---|
27360 | fi |
---|
27361 | fi |
---|
27362 | |
---|
27363 | |
---|
27364 | # Check whether --enable-cg was given. |
---|
27365 | if test "${enable_cg+set}" = set; then |
---|
27366 | enableval=$enable_cg; build_cg=$enableval |
---|
27367 | else |
---|
27368 | build_cg=yes |
---|
27369 | fi |
---|
27370 | |
---|
27371 | |
---|
27372 | if test "x$build_cg" = "xyes" ; then |
---|
27373 | |
---|
27374 | { echo "$as_me:$LINENO: checking for cgCreateProgram in -lCg" >&5 |
---|
27375 | echo $ECHO_N "checking for cgCreateProgram in -lCg... $ECHO_C" >&6; } |
---|
27376 | if test "${ac_cv_lib_Cg_cgCreateProgram+set}" = set; then |
---|
27377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
27378 | else |
---|
27379 | ac_check_lib_save_LIBS=$LIBS |
---|
27380 | LIBS="-lCg $LIBS" |
---|
27381 | cat >conftest.$ac_ext <<_ACEOF |
---|
27382 | /* confdefs.h. */ |
---|
27383 | _ACEOF |
---|
27384 | cat confdefs.h >>conftest.$ac_ext |
---|
27385 | cat >>conftest.$ac_ext <<_ACEOF |
---|
27386 | /* end confdefs.h. */ |
---|
27387 | |
---|
27388 | /* Override any GCC internal prototype to avoid an error. |
---|
27389 | Use char because int might match the return type of a GCC |
---|
27390 | builtin and then its argument prototype would still apply. */ |
---|
27391 | #ifdef __cplusplus |
---|
27392 | extern "C" |
---|
27393 | #endif |
---|
27394 | char cgCreateProgram (); |
---|
27395 | int |
---|
27396 | main () |
---|
27397 | { |
---|
27398 | return cgCreateProgram (); |
---|
27399 | ; |
---|
27400 | return 0; |
---|
27401 | } |
---|
27402 | _ACEOF |
---|
27403 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
27404 | if { (ac_try="$ac_link" |
---|
27405 | case "(($ac_try" in |
---|
27406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
27407 | *) ac_try_echo=$ac_try;; |
---|
27408 | esac |
---|
27409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
27410 | (eval "$ac_link") 2>conftest.er1 |
---|
27411 | ac_status=$? |
---|
27412 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
27413 | rm -f conftest.er1 |
---|
27414 | cat conftest.err >&5 |
---|
27415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27416 | (exit $ac_status); } && { |
---|
27417 | test -z "$ac_c_werror_flag" || |
---|
27418 | test ! -s conftest.err |
---|
27419 | } && test -s conftest$ac_exeext && |
---|
27420 | $as_test_x conftest$ac_exeext; then |
---|
27421 | ac_cv_lib_Cg_cgCreateProgram=yes |
---|
27422 | else |
---|
27423 | echo "$as_me: failed program was:" >&5 |
---|
27424 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
27425 | |
---|
27426 | ac_cv_lib_Cg_cgCreateProgram=no |
---|
27427 | fi |
---|
27428 | |
---|
27429 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
27430 | conftest$ac_exeext conftest.$ac_ext |
---|
27431 | LIBS=$ac_check_lib_save_LIBS |
---|
27432 | fi |
---|
27433 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Cg_cgCreateProgram" >&5 |
---|
27434 | echo "${ECHO_T}$ac_cv_lib_Cg_cgCreateProgram" >&6; } |
---|
27435 | if test $ac_cv_lib_Cg_cgCreateProgram = yes; then |
---|
27436 | cat >>confdefs.h <<_ACEOF |
---|
27437 | #define HAVE_LIBCG 1 |
---|
27438 | _ACEOF |
---|
27439 | |
---|
27440 | LIBS="-lCg $LIBS" |
---|
27441 | |
---|
27442 | else |
---|
27443 | { { echo "$as_me:$LINENO: error: |
---|
27444 | **************************************************************** |
---|
27445 | * You do not have the nVidia Cg libraries installed. * |
---|
27446 | * Go to http://developer.nvidia.com/object/cg_toolkit.html * |
---|
27447 | * (Click on Cg_Linux.tar.gz). * |
---|
27448 | * You can disable the building of Cg support by providing * |
---|
27449 | * --disable-cg to this configure script but this is highly * |
---|
27450 | * discouraged as this breaks many of the examples. * |
---|
27451 | ****************************************************************" >&5 |
---|
27452 | echo "$as_me: error: |
---|
27453 | **************************************************************** |
---|
27454 | * You do not have the nVidia Cg libraries installed. * |
---|
27455 | * Go to http://developer.nvidia.com/object/cg_toolkit.html * |
---|
27456 | * (Click on Cg_Linux.tar.gz). * |
---|
27457 | * You can disable the building of Cg support by providing * |
---|
27458 | * --disable-cg to this configure script but this is highly * |
---|
27459 | * discouraged as this breaks many of the examples. * |
---|
27460 | ****************************************************************" >&2;} |
---|
27461 | { (exit 1); exit 1; }; } |
---|
27462 | |
---|
27463 | fi |
---|
27464 | |
---|
27465 | fi |
---|
27466 | |
---|
27467 | |
---|
27468 | |
---|
27469 | if test x$build_cg = xyes; then |
---|
27470 | BUILD_CGPLUGIN_TRUE= |
---|
27471 | BUILD_CGPLUGIN_FALSE='#' |
---|
27472 | else |
---|
27473 | BUILD_CGPLUGIN_TRUE='#' |
---|
27474 | BUILD_CGPLUGIN_FALSE= |
---|
27475 | fi |
---|
27476 | |
---|
27477 | |
---|
27478 | |
---|
27479 | # Check whether --enable-openexr was given. |
---|
27480 | if test "${enable_openexr+set}" = set; then |
---|
27481 | enableval=$enable_openexr; build_exr=$enableval |
---|
27482 | else |
---|
27483 | build_exr=no |
---|
27484 | fi |
---|
27485 | |
---|
27486 | |
---|
27487 | if test "x$build_exr" = "xyes" ; then |
---|
27488 | |
---|
27489 | pkg_failed=no |
---|
27490 | { echo "$as_me:$LINENO: checking for OPENEXR" >&5 |
---|
27491 | echo $ECHO_N "checking for OPENEXR... $ECHO_C" >&6; } |
---|
27492 | |
---|
27493 | if test -n "$PKG_CONFIG"; then |
---|
27494 | if test -n "$OPENEXR_CFLAGS"; then |
---|
27495 | pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" |
---|
27496 | else |
---|
27497 | if test -n "$PKG_CONFIG" && \ |
---|
27498 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR\"") >&5 |
---|
27499 | ($PKG_CONFIG --exists --print-errors "OpenEXR") 2>&5 |
---|
27500 | ac_status=$? |
---|
27501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27502 | (exit $ac_status); }; then |
---|
27503 | pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR" 2>/dev/null` |
---|
27504 | else |
---|
27505 | pkg_failed=yes |
---|
27506 | fi |
---|
27507 | fi |
---|
27508 | else |
---|
27509 | pkg_failed=untried |
---|
27510 | fi |
---|
27511 | if test -n "$PKG_CONFIG"; then |
---|
27512 | if test -n "$OPENEXR_LIBS"; then |
---|
27513 | pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" |
---|
27514 | else |
---|
27515 | if test -n "$PKG_CONFIG" && \ |
---|
27516 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR\"") >&5 |
---|
27517 | ($PKG_CONFIG --exists --print-errors "OpenEXR") 2>&5 |
---|
27518 | ac_status=$? |
---|
27519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27520 | (exit $ac_status); }; then |
---|
27521 | pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR" 2>/dev/null` |
---|
27522 | else |
---|
27523 | pkg_failed=yes |
---|
27524 | fi |
---|
27525 | fi |
---|
27526 | else |
---|
27527 | pkg_failed=untried |
---|
27528 | fi |
---|
27529 | |
---|
27530 | |
---|
27531 | |
---|
27532 | if test $pkg_failed = yes; then |
---|
27533 | |
---|
27534 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
27535 | _pkg_short_errors_supported=yes |
---|
27536 | else |
---|
27537 | _pkg_short_errors_supported=no |
---|
27538 | fi |
---|
27539 | if test $_pkg_short_errors_supported = yes; then |
---|
27540 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "OpenEXR"` |
---|
27541 | else |
---|
27542 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "OpenEXR"` |
---|
27543 | fi |
---|
27544 | # Put the nasty error message in config.log where it belongs |
---|
27545 | echo "$OPENEXR_PKG_ERRORS" >&5 |
---|
27546 | |
---|
27547 | build_exr=no |
---|
27548 | elif test $pkg_failed = untried; then |
---|
27549 | build_exr=no |
---|
27550 | else |
---|
27551 | OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS |
---|
27552 | OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS |
---|
27553 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
27554 | echo "${ECHO_T}yes" >&6; } |
---|
27555 | build_exr=yes |
---|
27556 | fi |
---|
27557 | |
---|
27558 | if test "x$build_exr" = "xyes" ; then |
---|
27559 | ac_config_files="$ac_config_files PlugIns/EXRCodec/Makefile PlugIns/EXRCodec/src/Makefile PlugIns/EXRCodec/include/Makefile" |
---|
27560 | |
---|
27561 | |
---|
27562 | |
---|
27563 | |
---|
27564 | fi |
---|
27565 | |
---|
27566 | fi |
---|
27567 | |
---|
27568 | |
---|
27569 | |
---|
27570 | if test x$build_exr = xyes; then |
---|
27571 | BUILD_EXRPLUGIN_TRUE= |
---|
27572 | BUILD_EXRPLUGIN_FALSE='#' |
---|
27573 | else |
---|
27574 | BUILD_EXRPLUGIN_TRUE='#' |
---|
27575 | BUILD_EXRPLUGIN_FALSE= |
---|
27576 | fi |
---|
27577 | |
---|
27578 | |
---|
27579 | |
---|
27580 | # Check whether --enable-direct3d was given. |
---|
27581 | if test "${enable_direct3d+set}" = set; then |
---|
27582 | enableval=$enable_direct3d; build_dx9=$enableval |
---|
27583 | else |
---|
27584 | build_dx9=no |
---|
27585 | fi |
---|
27586 | |
---|
27587 | |
---|
27588 | |
---|
27589 | |
---|
27590 | if test x$build_dx9 = xyes; then |
---|
27591 | BUILD_DX9RENDERSYSTEM_TRUE= |
---|
27592 | BUILD_DX9RENDERSYSTEM_FALSE='#' |
---|
27593 | else |
---|
27594 | BUILD_DX9RENDERSYSTEM_TRUE='#' |
---|
27595 | BUILD_DX9RENDERSYSTEM_FALSE= |
---|
27596 | fi |
---|
27597 | |
---|
27598 | |
---|
27599 | |
---|
27600 | |
---|
27601 | { echo "$as_me:$LINENO: checking whether to use SSE" >&5 |
---|
27602 | echo $ECHO_N "checking whether to use SSE... $ECHO_C" >&6; } |
---|
27603 | case $target_cpu in |
---|
27604 | i386 | i486 | i586 | i686 | x86_64 | amd64) |
---|
27605 | build_sse=yes |
---|
27606 | ;; |
---|
27607 | *) |
---|
27608 | build_sse=no |
---|
27609 | ;; |
---|
27610 | esac |
---|
27611 | { echo "$as_me:$LINENO: result: $build_sse" >&5 |
---|
27612 | echo "${ECHO_T}$build_sse" >&6; } |
---|
27613 | |
---|
27614 | |
---|
27615 | if test x$build_sse = xyes; then |
---|
27616 | OGRE_BUILD_SSE_TRUE= |
---|
27617 | OGRE_BUILD_SSE_FALSE='#' |
---|
27618 | else |
---|
27619 | OGRE_BUILD_SSE_TRUE='#' |
---|
27620 | OGRE_BUILD_SSE_FALSE= |
---|
27621 | fi |
---|
27622 | |
---|
27623 | |
---|
27624 | |
---|
27625 | |
---|
27626 | |
---|
27627 | if test "x$OGRE_PLATFORM" = "x$OGRE_GUI"; then |
---|
27628 | SAME_PLATFORM_AND_GUI_TRUE= |
---|
27629 | SAME_PLATFORM_AND_GUI_FALSE='#' |
---|
27630 | else |
---|
27631 | SAME_PLATFORM_AND_GUI_TRUE='#' |
---|
27632 | SAME_PLATFORM_AND_GUI_FALSE= |
---|
27633 | fi |
---|
27634 | |
---|
27635 | |
---|
27636 | |
---|
27637 | |
---|
27638 | # Check whether --enable-ogre_demos was given. |
---|
27639 | if test "${enable_ogre_demos+set}" = set; then |
---|
27640 | enableval=$enable_ogre_demos; build_ogre_demos=$enableval |
---|
27641 | else |
---|
27642 | build_ogre_demos=yes |
---|
27643 | fi |
---|
27644 | |
---|
27645 | |
---|
27646 | if test "x$build_ogre_demos" = "xyes" ; then |
---|
27647 | |
---|
27648 | pkg_failed=no |
---|
27649 | { echo "$as_me:$LINENO: checking for OIS" >&5 |
---|
27650 | echo $ECHO_N "checking for OIS... $ECHO_C" >&6; } |
---|
27651 | |
---|
27652 | if test -n "$PKG_CONFIG"; then |
---|
27653 | if test -n "$OIS_CFLAGS"; then |
---|
27654 | pkg_cv_OIS_CFLAGS="$OIS_CFLAGS" |
---|
27655 | else |
---|
27656 | if test -n "$PKG_CONFIG" && \ |
---|
27657 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OIS >= 1.0.0\"") >&5 |
---|
27658 | ($PKG_CONFIG --exists --print-errors "OIS >= 1.0.0") 2>&5 |
---|
27659 | ac_status=$? |
---|
27660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27661 | (exit $ac_status); }; then |
---|
27662 | pkg_cv_OIS_CFLAGS=`$PKG_CONFIG --cflags "OIS >= 1.0.0" 2>/dev/null` |
---|
27663 | else |
---|
27664 | pkg_failed=yes |
---|
27665 | fi |
---|
27666 | fi |
---|
27667 | else |
---|
27668 | pkg_failed=untried |
---|
27669 | fi |
---|
27670 | if test -n "$PKG_CONFIG"; then |
---|
27671 | if test -n "$OIS_LIBS"; then |
---|
27672 | pkg_cv_OIS_LIBS="$OIS_LIBS" |
---|
27673 | else |
---|
27674 | if test -n "$PKG_CONFIG" && \ |
---|
27675 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OIS >= 1.0.0\"") >&5 |
---|
27676 | ($PKG_CONFIG --exists --print-errors "OIS >= 1.0.0") 2>&5 |
---|
27677 | ac_status=$? |
---|
27678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27679 | (exit $ac_status); }; then |
---|
27680 | pkg_cv_OIS_LIBS=`$PKG_CONFIG --libs "OIS >= 1.0.0" 2>/dev/null` |
---|
27681 | else |
---|
27682 | pkg_failed=yes |
---|
27683 | fi |
---|
27684 | fi |
---|
27685 | else |
---|
27686 | pkg_failed=untried |
---|
27687 | fi |
---|
27688 | |
---|
27689 | |
---|
27690 | |
---|
27691 | if test $pkg_failed = yes; then |
---|
27692 | |
---|
27693 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
27694 | _pkg_short_errors_supported=yes |
---|
27695 | else |
---|
27696 | _pkg_short_errors_supported=no |
---|
27697 | fi |
---|
27698 | if test $_pkg_short_errors_supported = yes; then |
---|
27699 | OIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "OIS >= 1.0.0"` |
---|
27700 | else |
---|
27701 | OIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "OIS >= 1.0.0"` |
---|
27702 | fi |
---|
27703 | # Put the nasty error message in config.log where it belongs |
---|
27704 | echo "$OIS_PKG_ERRORS" >&5 |
---|
27705 | |
---|
27706 | ois_found=no |
---|
27707 | elif test $pkg_failed = untried; then |
---|
27708 | ois_found=no |
---|
27709 | else |
---|
27710 | OIS_CFLAGS=$pkg_cv_OIS_CFLAGS |
---|
27711 | OIS_LIBS=$pkg_cv_OIS_LIBS |
---|
27712 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
27713 | echo "${ECHO_T}yes" >&6; } |
---|
27714 | ois_found=yes |
---|
27715 | fi |
---|
27716 | |
---|
27717 | |
---|
27718 | |
---|
27719 | if test "x$ois_found" = "xyes" ; then |
---|
27720 | { echo "$as_me:$LINENO: *** Ogre Demos will be built ***" >&5 |
---|
27721 | echo "$as_me: *** Ogre Demos will be built ***" >&6;} |
---|
27722 | else |
---|
27723 | build_ogre_demos=no |
---|
27724 | { echo "$as_me:$LINENO: |
---|
27725 | **************************************************************** |
---|
27726 | * You do not have OIS installed. This is required to build * |
---|
27727 | * Ogre demos. You may find it at: * |
---|
27728 | * http://www.sourceforge.net/projects/wgois. * |
---|
27729 | * If you do not want to build the demos, you can safely ignore * |
---|
27730 | * this. * |
---|
27731 | ****************************************************************" >&5 |
---|
27732 | echo "$as_me: |
---|
27733 | **************************************************************** |
---|
27734 | * You do not have OIS installed. This is required to build * |
---|
27735 | * Ogre demos. You may find it at: * |
---|
27736 | * http://www.sourceforge.net/projects/wgois. * |
---|
27737 | * If you do not want to build the demos, you can safely ignore * |
---|
27738 | * this. * |
---|
27739 | ****************************************************************" >&6;} |
---|
27740 | fi |
---|
27741 | else |
---|
27742 | build_ogre_demos=no |
---|
27743 | { echo "$as_me:$LINENO: *** Building of Ogre demos disabled ***" >&5 |
---|
27744 | echo "$as_me: *** Building of Ogre demos disabled ***" >&6;} |
---|
27745 | fi |
---|
27746 | |
---|
27747 | |
---|
27748 | |
---|
27749 | if test x$build_ogre_demos = xyes; then |
---|
27750 | OGRE_BUILDING_DEMOS_TRUE= |
---|
27751 | OGRE_BUILDING_DEMOS_FALSE='#' |
---|
27752 | else |
---|
27753 | OGRE_BUILDING_DEMOS_TRUE='#' |
---|
27754 | OGRE_BUILDING_DEMOS_FALSE= |
---|
27755 | fi |
---|
27756 | |
---|
27757 | |
---|
27758 | |
---|
27759 | if test "$cross_compiling" = yes; then |
---|
27760 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
---|
27761 | See \`config.log' for more details." >&5 |
---|
27762 | echo "$as_me: error: cannot run test program while cross compiling |
---|
27763 | See \`config.log' for more details." >&2;} |
---|
27764 | { (exit 1); exit 1; }; } |
---|
27765 | else |
---|
27766 | cat >conftest.$ac_ext <<_ACEOF |
---|
27767 | /* confdefs.h. */ |
---|
27768 | _ACEOF |
---|
27769 | cat confdefs.h >>conftest.$ac_ext |
---|
27770 | cat >>conftest.$ac_ext <<_ACEOF |
---|
27771 | /* end confdefs.h. */ |
---|
27772 | |
---|
27773 | int main() |
---|
27774 | { |
---|
27775 | short s = 1; |
---|
27776 | short* ptr = &s; |
---|
27777 | unsigned char c = *((char*)ptr); |
---|
27778 | return c; |
---|
27779 | } |
---|
27780 | |
---|
27781 | |
---|
27782 | _ACEOF |
---|
27783 | rm -f conftest$ac_exeext |
---|
27784 | if { (ac_try="$ac_link" |
---|
27785 | case "(($ac_try" in |
---|
27786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
27787 | *) ac_try_echo=$ac_try;; |
---|
27788 | esac |
---|
27789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
27790 | (eval "$ac_link") 2>&5 |
---|
27791 | ac_status=$? |
---|
27792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27793 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
27794 | { (case "(($ac_try" in |
---|
27795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
27796 | *) ac_try_echo=$ac_try;; |
---|
27797 | esac |
---|
27798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
27799 | (eval "$ac_try") 2>&5 |
---|
27800 | ac_status=$? |
---|
27801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27802 | (exit $ac_status); }; }; then |
---|
27803 | |
---|
27804 | cat >>confdefs.h <<\_ACEOF |
---|
27805 | #define OGRE_CONFIG_BIG_ENDIAN |
---|
27806 | _ACEOF |
---|
27807 | |
---|
27808 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_CONFIG_BIG_ENDIAN" |
---|
27809 | |
---|
27810 | else |
---|
27811 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
27812 | echo "$as_me: failed program was:" >&5 |
---|
27813 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
27814 | |
---|
27815 | ( exit $ac_status ) |
---|
27816 | |
---|
27817 | cat >>confdefs.h <<\_ACEOF |
---|
27818 | #define OGRE_CONFIG_LITTLE_ENDIAN |
---|
27819 | _ACEOF |
---|
27820 | |
---|
27821 | OGRE_CFLAGS="$OGRE_CFLAGS -DOGRE_CONFIG_LITTLE_ENDIAN" |
---|
27822 | fi |
---|
27823 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
27824 | fi |
---|
27825 | |
---|
27826 | |
---|
27827 | |
---|
27828 | |
---|
27829 | |
---|
27830 | { echo "$as_me:$LINENO: checking whether -fPIC is needed" >&5 |
---|
27831 | echo $ECHO_N "checking whether -fPIC is needed... $ECHO_C" >&6; } |
---|
27832 | case $host in |
---|
27833 | x86_64-*) |
---|
27834 | CXXFLAGS="$CXXFLAGS -fPIC" |
---|
27835 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
27836 | echo "${ECHO_T}yes" >&6; } |
---|
27837 | ;; |
---|
27838 | *) |
---|
27839 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
27840 | echo "${ECHO_T}no" >&6; } |
---|
27841 | ;; |
---|
27842 | esac |
---|
27843 | |
---|
27844 | |
---|
27845 | |
---|
27846 | |
---|
27847 | pkg_failed=no |
---|
27848 | { echo "$as_me:$LINENO: checking for CEGUI" >&5 |
---|
27849 | echo $ECHO_N "checking for CEGUI... $ECHO_C" >&6; } |
---|
27850 | |
---|
27851 | if test -n "$PKG_CONFIG"; then |
---|
27852 | if test -n "$CEGUI_CFLAGS"; then |
---|
27853 | pkg_cv_CEGUI_CFLAGS="$CEGUI_CFLAGS" |
---|
27854 | else |
---|
27855 | if test -n "$PKG_CONFIG" && \ |
---|
27856 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.5.0\"") >&5 |
---|
27857 | ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.5.0") 2>&5 |
---|
27858 | ac_status=$? |
---|
27859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27860 | (exit $ac_status); }; then |
---|
27861 | pkg_cv_CEGUI_CFLAGS=`$PKG_CONFIG --cflags "CEGUI >= 0.5.0" 2>/dev/null` |
---|
27862 | else |
---|
27863 | pkg_failed=yes |
---|
27864 | fi |
---|
27865 | fi |
---|
27866 | else |
---|
27867 | pkg_failed=untried |
---|
27868 | fi |
---|
27869 | if test -n "$PKG_CONFIG"; then |
---|
27870 | if test -n "$CEGUI_LIBS"; then |
---|
27871 | pkg_cv_CEGUI_LIBS="$CEGUI_LIBS" |
---|
27872 | else |
---|
27873 | if test -n "$PKG_CONFIG" && \ |
---|
27874 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.5.0\"") >&5 |
---|
27875 | ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.5.0") 2>&5 |
---|
27876 | ac_status=$? |
---|
27877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
27878 | (exit $ac_status); }; then |
---|
27879 | pkg_cv_CEGUI_LIBS=`$PKG_CONFIG --libs "CEGUI >= 0.5.0" 2>/dev/null` |
---|
27880 | else |
---|
27881 | pkg_failed=yes |
---|
27882 | fi |
---|
27883 | fi |
---|
27884 | else |
---|
27885 | pkg_failed=untried |
---|
27886 | fi |
---|
27887 | |
---|
27888 | |
---|
27889 | |
---|
27890 | if test $pkg_failed = yes; then |
---|
27891 | |
---|
27892 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
---|
27893 | _pkg_short_errors_supported=yes |
---|
27894 | else |
---|
27895 | _pkg_short_errors_supported=no |
---|
27896 | fi |
---|
27897 | if test $_pkg_short_errors_supported = yes; then |
---|
27898 | CEGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "CEGUI >= 0.5.0"` |
---|
27899 | else |
---|
27900 | CEGUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "CEGUI >= 0.5.0"` |
---|
27901 | fi |
---|
27902 | # Put the nasty error message in config.log where it belongs |
---|
27903 | echo "$CEGUI_PKG_ERRORS" >&5 |
---|
27904 | |
---|
27905 | build_cegui_sample=false |
---|
27906 | elif test $pkg_failed = untried; then |
---|
27907 | build_cegui_sample=false |
---|
27908 | else |
---|
27909 | CEGUI_CFLAGS=$pkg_cv_CEGUI_CFLAGS |
---|
27910 | CEGUI_LIBS=$pkg_cv_CEGUI_LIBS |
---|
27911 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
27912 | echo "${ECHO_T}yes" >&6; } |
---|
27913 | build_cegui_sample=true |
---|
27914 | fi |
---|
27915 | if test x$build_cegui_sample = xtrue; then |
---|
27916 | 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" |
---|
27917 | |
---|
27918 | |
---|
27919 | |
---|
27920 | { echo "$as_me:$LINENO: result: CEGUI available, Gui and FacialAnimation samples will be built" >&5 |
---|
27921 | echo "${ECHO_T}CEGUI available, Gui and FacialAnimation samples will be built" >&6; } |
---|
27922 | else |
---|
27923 | { echo "$as_me:$LINENO: result: CEGUI not available, Gui and FacialAnimation samples will not be built" >&5 |
---|
27924 | echo "${ECHO_T}CEGUI not available, Gui and FacialAnimation samples will not be built" >&6; } |
---|
27925 | fi |
---|
27926 | |
---|
27927 | |
---|
27928 | if test x$build_cegui_sample = xtrue; then |
---|
27929 | HAVE_CEGUI_TRUE= |
---|
27930 | HAVE_CEGUI_FALSE='#' |
---|
27931 | else |
---|
27932 | HAVE_CEGUI_TRUE='#' |
---|
27933 | HAVE_CEGUI_FALSE= |
---|
27934 | fi |
---|
27935 | |
---|
27936 | |
---|
27937 | |
---|
27938 | CFLAGS="$CFLAGS" |
---|
27939 | CXXFLAGS="$CXXFLAGS" |
---|
27940 | LIBS="$LIBS" |
---|
27941 | |
---|
27942 | ogreexecdir='${abs_top_builddir}/Samples/Common/bin' |
---|
27943 | |
---|
27944 | |
---|
27945 | |
---|
27946 | 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" |
---|
27947 | |
---|
27948 | |
---|
27949 | cat >confcache <<\_ACEOF |
---|
27950 | # This file is a shell script that caches the results of configure |
---|
27951 | # tests run on this system so they can be shared between configure |
---|
27952 | # scripts and configure runs, see configure's option --config-cache. |
---|
27953 | # It is not useful on other systems. If it contains results you don't |
---|
27954 | # want to keep, you may remove or edit it. |
---|
27955 | # |
---|
27956 | # config.status only pays attention to the cache file if you give it |
---|
27957 | # the --recheck option to rerun configure. |
---|
27958 | # |
---|
27959 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
27960 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
27961 | # following values. |
---|
27962 | |
---|
27963 | _ACEOF |
---|
27964 | |
---|
27965 | # The following way of writing the cache mishandles newlines in values, |
---|
27966 | # but we know of no workaround that is simple, portable, and efficient. |
---|
27967 | # So, we kill variables containing newlines. |
---|
27968 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
27969 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
27970 | ( |
---|
27971 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
27972 | eval ac_val=\$$ac_var |
---|
27973 | case $ac_val in #( |
---|
27974 | *${as_nl}*) |
---|
27975 | case $ac_var in #( |
---|
27976 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
27977 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
27978 | esac |
---|
27979 | case $ac_var in #( |
---|
27980 | _ | IFS | as_nl) ;; #( |
---|
27981 | *) $as_unset $ac_var ;; |
---|
27982 | esac ;; |
---|
27983 | esac |
---|
27984 | done |
---|
27985 | |
---|
27986 | (set) 2>&1 | |
---|
27987 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
27988 | *${as_nl}ac_space=\ *) |
---|
27989 | # `set' does not quote correctly, so add quotes (double-quote |
---|
27990 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
27991 | sed -n \ |
---|
27992 | "s/'/'\\\\''/g; |
---|
27993 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
27994 | ;; #( |
---|
27995 | *) |
---|
27996 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
27997 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
27998 | ;; |
---|
27999 | esac | |
---|
28000 | sort |
---|
28001 | ) | |
---|
28002 | sed ' |
---|
28003 | /^ac_cv_env_/b end |
---|
28004 | t clear |
---|
28005 | :clear |
---|
28006 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
28007 | t end |
---|
28008 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
28009 | :end' >>confcache |
---|
28010 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
28011 | if test -w "$cache_file"; then |
---|
28012 | test "x$cache_file" != "x/dev/null" && |
---|
28013 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
---|
28014 | echo "$as_me: updating cache $cache_file" >&6;} |
---|
28015 | cat confcache >$cache_file |
---|
28016 | else |
---|
28017 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
---|
28018 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
28019 | fi |
---|
28020 | fi |
---|
28021 | rm -f confcache |
---|
28022 | |
---|
28023 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
28024 | # Let make expand exec_prefix. |
---|
28025 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
28026 | |
---|
28027 | DEFS=-DHAVE_CONFIG_H |
---|
28028 | |
---|
28029 | ac_libobjs= |
---|
28030 | ac_ltlibobjs= |
---|
28031 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
28032 | # 1. Remove the extension, and $U if already installed. |
---|
28033 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
28034 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
---|
28035 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
28036 | # will be set to the directory where LIBOBJS objects are built. |
---|
28037 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
28038 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
28039 | done |
---|
28040 | LIBOBJS=$ac_libobjs |
---|
28041 | |
---|
28042 | LTLIBOBJS=$ac_ltlibobjs |
---|
28043 | |
---|
28044 | |
---|
28045 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
28046 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
28047 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28048 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
28049 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28050 | { (exit 1); exit 1; }; } |
---|
28051 | fi |
---|
28052 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
28053 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
28054 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28055 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
28056 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28057 | { (exit 1); exit 1; }; } |
---|
28058 | fi |
---|
28059 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
28060 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
28061 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28062 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
28063 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28064 | { (exit 1); exit 1; }; } |
---|
28065 | fi |
---|
28066 | if test -z "${OGRE_NT_TRUE}" && test -z "${OGRE_NT_FALSE}"; then |
---|
28067 | { { echo "$as_me:$LINENO: error: conditional \"OGRE_NT\" was never defined. |
---|
28068 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28069 | echo "$as_me: error: conditional \"OGRE_NT\" was never defined. |
---|
28070 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28071 | { (exit 1); exit 1; }; } |
---|
28072 | fi |
---|
28073 | if test -z "${OGRE_LINUX_TRUE}" && test -z "${OGRE_LINUX_FALSE}"; then |
---|
28074 | { { echo "$as_me:$LINENO: error: conditional \"OGRE_LINUX\" was never defined. |
---|
28075 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28076 | echo "$as_me: error: conditional \"OGRE_LINUX\" was never defined. |
---|
28077 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28078 | { (exit 1); exit 1; }; } |
---|
28079 | fi |
---|
28080 | if test -z "${OGRE_OSX_TRUE}" && test -z "${OGRE_OSX_FALSE}"; then |
---|
28081 | { { echo "$as_me:$LINENO: error: conditional \"OGRE_OSX\" was never defined. |
---|
28082 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28083 | echo "$as_me: error: conditional \"OGRE_OSX\" was never defined. |
---|
28084 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28085 | { (exit 1); exit 1; }; } |
---|
28086 | fi |
---|
28087 | if test -z "${BUILD_UNIT_TESTS_TRUE}" && test -z "${BUILD_UNIT_TESTS_FALSE}"; then |
---|
28088 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_UNIT_TESTS\" was never defined. |
---|
28089 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28090 | echo "$as_me: error: conditional \"BUILD_UNIT_TESTS\" was never defined. |
---|
28091 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28092 | { (exit 1); exit 1; }; } |
---|
28093 | fi |
---|
28094 | if test -z "${USE_FREEIMAGE_TRUE}" && test -z "${USE_FREEIMAGE_FALSE}"; then |
---|
28095 | { { echo "$as_me:$LINENO: error: conditional \"USE_FREEIMAGE\" was never defined. |
---|
28096 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28097 | echo "$as_me: error: conditional \"USE_FREEIMAGE\" was never defined. |
---|
28098 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28099 | { (exit 1); exit 1; }; } |
---|
28100 | fi |
---|
28101 | if test -z "${USE_DEVIL_TRUE}" && test -z "${USE_DEVIL_FALSE}"; then |
---|
28102 | { { echo "$as_me:$LINENO: error: conditional \"USE_DEVIL\" was never defined. |
---|
28103 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28104 | echo "$as_me: error: conditional \"USE_DEVIL\" was never defined. |
---|
28105 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28106 | { (exit 1); exit 1; }; } |
---|
28107 | fi |
---|
28108 | if test -z "${BUILD_CGPLUGIN_TRUE}" && test -z "${BUILD_CGPLUGIN_FALSE}"; then |
---|
28109 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_CGPLUGIN\" was never defined. |
---|
28110 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28111 | echo "$as_me: error: conditional \"BUILD_CGPLUGIN\" was never defined. |
---|
28112 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28113 | { (exit 1); exit 1; }; } |
---|
28114 | fi |
---|
28115 | if test -z "${BUILD_EXRPLUGIN_TRUE}" && test -z "${BUILD_EXRPLUGIN_FALSE}"; then |
---|
28116 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXRPLUGIN\" was never defined. |
---|
28117 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28118 | echo "$as_me: error: conditional \"BUILD_EXRPLUGIN\" was never defined. |
---|
28119 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28120 | { (exit 1); exit 1; }; } |
---|
28121 | fi |
---|
28122 | if test -z "${BUILD_DX9RENDERSYSTEM_TRUE}" && test -z "${BUILD_DX9RENDERSYSTEM_FALSE}"; then |
---|
28123 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_DX9RENDERSYSTEM\" was never defined. |
---|
28124 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28125 | echo "$as_me: error: conditional \"BUILD_DX9RENDERSYSTEM\" was never defined. |
---|
28126 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28127 | { (exit 1); exit 1; }; } |
---|
28128 | fi |
---|
28129 | if test -z "${OGRE_BUILD_SSE_TRUE}" && test -z "${OGRE_BUILD_SSE_FALSE}"; then |
---|
28130 | { { echo "$as_me:$LINENO: error: conditional \"OGRE_BUILD_SSE\" was never defined. |
---|
28131 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28132 | echo "$as_me: error: conditional \"OGRE_BUILD_SSE\" was never defined. |
---|
28133 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28134 | { (exit 1); exit 1; }; } |
---|
28135 | fi |
---|
28136 | if test -z "${SAME_PLATFORM_AND_GUI_TRUE}" && test -z "${SAME_PLATFORM_AND_GUI_FALSE}"; then |
---|
28137 | { { echo "$as_me:$LINENO: error: conditional \"SAME_PLATFORM_AND_GUI\" was never defined. |
---|
28138 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28139 | echo "$as_me: error: conditional \"SAME_PLATFORM_AND_GUI\" was never defined. |
---|
28140 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28141 | { (exit 1); exit 1; }; } |
---|
28142 | fi |
---|
28143 | if test -z "${OGRE_BUILDING_DEMOS_TRUE}" && test -z "${OGRE_BUILDING_DEMOS_FALSE}"; then |
---|
28144 | { { echo "$as_me:$LINENO: error: conditional \"OGRE_BUILDING_DEMOS\" was never defined. |
---|
28145 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28146 | echo "$as_me: error: conditional \"OGRE_BUILDING_DEMOS\" was never defined. |
---|
28147 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28148 | { (exit 1); exit 1; }; } |
---|
28149 | fi |
---|
28150 | if test -z "${HAVE_CEGUI_TRUE}" && test -z "${HAVE_CEGUI_FALSE}"; then |
---|
28151 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CEGUI\" was never defined. |
---|
28152 | Usually this means the macro was only invoked conditionally." >&5 |
---|
28153 | echo "$as_me: error: conditional \"HAVE_CEGUI\" was never defined. |
---|
28154 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
28155 | { (exit 1); exit 1; }; } |
---|
28156 | fi |
---|
28157 | |
---|
28158 | : ${CONFIG_STATUS=./config.status} |
---|
28159 | ac_clean_files_save=$ac_clean_files |
---|
28160 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
28161 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
28162 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
28163 | cat >$CONFIG_STATUS <<_ACEOF |
---|
28164 | #! $SHELL |
---|
28165 | # Generated by $as_me. |
---|
28166 | # Run this file to recreate the current configuration. |
---|
28167 | # Compiler output produced by configure, useful for debugging |
---|
28168 | # configure, is in config.log if it exists. |
---|
28169 | |
---|
28170 | debug=false |
---|
28171 | ac_cs_recheck=false |
---|
28172 | ac_cs_silent=false |
---|
28173 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
28174 | _ACEOF |
---|
28175 | |
---|
28176 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
28177 | ## --------------------- ## |
---|
28178 | ## M4sh Initialization. ## |
---|
28179 | ## --------------------- ## |
---|
28180 | |
---|
28181 | # Be more Bourne compatible |
---|
28182 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
28183 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
28184 | emulate sh |
---|
28185 | NULLCMD=: |
---|
28186 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
28187 | # is contrary to our usage. Disable this feature. |
---|
28188 | alias -g '${1+"$@"}'='"$@"' |
---|
28189 | setopt NO_GLOB_SUBST |
---|
28190 | else |
---|
28191 | case `(set -o) 2>/dev/null` in |
---|
28192 | *posix*) set -o posix ;; |
---|
28193 | esac |
---|
28194 | |
---|
28195 | fi |
---|
28196 | |
---|
28197 | |
---|
28198 | |
---|
28199 | |
---|
28200 | # PATH needs CR |
---|
28201 | # Avoid depending upon Character Ranges. |
---|
28202 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
28203 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
28204 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
28205 | as_cr_digits='0123456789' |
---|
28206 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
28207 | |
---|
28208 | # The user is always right. |
---|
28209 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
28210 | echo "#! /bin/sh" >conf$$.sh |
---|
28211 | echo "exit 0" >>conf$$.sh |
---|
28212 | chmod +x conf$$.sh |
---|
28213 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
28214 | PATH_SEPARATOR=';' |
---|
28215 | else |
---|
28216 | PATH_SEPARATOR=: |
---|
28217 | fi |
---|
28218 | rm -f conf$$.sh |
---|
28219 | fi |
---|
28220 | |
---|
28221 | # Support unset when possible. |
---|
28222 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
28223 | as_unset=unset |
---|
28224 | else |
---|
28225 | as_unset=false |
---|
28226 | fi |
---|
28227 | |
---|
28228 | |
---|
28229 | # IFS |
---|
28230 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
28231 | # there to prevent editors from complaining about space-tab. |
---|
28232 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
28233 | # splitting by setting IFS to empty value.) |
---|
28234 | as_nl=' |
---|
28235 | ' |
---|
28236 | IFS=" "" $as_nl" |
---|
28237 | |
---|
28238 | # Find who we are. Look in the path if we contain no directory separator. |
---|
28239 | case $0 in |
---|
28240 | *[\\/]* ) as_myself=$0 ;; |
---|
28241 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
28242 | for as_dir in $PATH |
---|
28243 | do |
---|
28244 | IFS=$as_save_IFS |
---|
28245 | test -z "$as_dir" && as_dir=. |
---|
28246 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
28247 | done |
---|
28248 | IFS=$as_save_IFS |
---|
28249 | |
---|
28250 | ;; |
---|
28251 | esac |
---|
28252 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
28253 | # in which case we are not to be found in the path. |
---|
28254 | if test "x$as_myself" = x; then |
---|
28255 | as_myself=$0 |
---|
28256 | fi |
---|
28257 | if test ! -f "$as_myself"; then |
---|
28258 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
28259 | { (exit 1); exit 1; } |
---|
28260 | fi |
---|
28261 | |
---|
28262 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
28263 | for as_var in ENV MAIL MAILPATH |
---|
28264 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
28265 | done |
---|
28266 | PS1='$ ' |
---|
28267 | PS2='> ' |
---|
28268 | PS4='+ ' |
---|
28269 | |
---|
28270 | # NLS nuisances. |
---|
28271 | for as_var in \ |
---|
28272 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
28273 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
28274 | LC_TELEPHONE LC_TIME |
---|
28275 | do |
---|
28276 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
28277 | eval $as_var=C; export $as_var |
---|
28278 | else |
---|
28279 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
28280 | fi |
---|
28281 | done |
---|
28282 | |
---|
28283 | # Required to use basename. |
---|
28284 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
28285 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
28286 | as_expr=expr |
---|
28287 | else |
---|
28288 | as_expr=false |
---|
28289 | fi |
---|
28290 | |
---|
28291 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
28292 | as_basename=basename |
---|
28293 | else |
---|
28294 | as_basename=false |
---|
28295 | fi |
---|
28296 | |
---|
28297 | |
---|
28298 | # Name of the executable. |
---|
28299 | as_me=`$as_basename -- "$0" || |
---|
28300 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
28301 | X"$0" : 'X\(//\)$' \| \ |
---|
28302 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
28303 | echo X/"$0" | |
---|
28304 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
28305 | s//\1/ |
---|
28306 | q |
---|
28307 | } |
---|
28308 | /^X\/\(\/\/\)$/{ |
---|
28309 | s//\1/ |
---|
28310 | q |
---|
28311 | } |
---|
28312 | /^X\/\(\/\).*/{ |
---|
28313 | s//\1/ |
---|
28314 | q |
---|
28315 | } |
---|
28316 | s/.*/./; q'` |
---|
28317 | |
---|
28318 | # CDPATH. |
---|
28319 | $as_unset CDPATH |
---|
28320 | |
---|
28321 | |
---|
28322 | |
---|
28323 | as_lineno_1=$LINENO |
---|
28324 | as_lineno_2=$LINENO |
---|
28325 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
28326 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
28327 | |
---|
28328 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
28329 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
28330 | # line-number line after each line using $LINENO; the second 'sed' |
---|
28331 | # does the real work. The second script uses 'N' to pair each |
---|
28332 | # line-number line with the line containing $LINENO, and appends |
---|
28333 | # trailing '-' during substitution so that $LINENO is not a special |
---|
28334 | # case at line end. |
---|
28335 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
28336 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
28337 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
28338 | sed -n ' |
---|
28339 | p |
---|
28340 | /[$]LINENO/= |
---|
28341 | ' <$as_myself | |
---|
28342 | sed ' |
---|
28343 | s/[$]LINENO.*/&-/ |
---|
28344 | t lineno |
---|
28345 | b |
---|
28346 | :lineno |
---|
28347 | N |
---|
28348 | :loop |
---|
28349 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
28350 | t loop |
---|
28351 | s/-\n.*// |
---|
28352 | ' >$as_me.lineno && |
---|
28353 | chmod +x "$as_me.lineno" || |
---|
28354 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
28355 | { (exit 1); exit 1; }; } |
---|
28356 | |
---|
28357 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
28358 | # (the dirname of $[0] is not the place where we might find the |
---|
28359 | # original and so on. Autoconf is especially sensitive to this). |
---|
28360 | . "./$as_me.lineno" |
---|
28361 | # Exit status is that of the last command. |
---|
28362 | exit |
---|
28363 | } |
---|
28364 | |
---|
28365 | |
---|
28366 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
28367 | as_dirname=dirname |
---|
28368 | else |
---|
28369 | as_dirname=false |
---|
28370 | fi |
---|
28371 | |
---|
28372 | ECHO_C= ECHO_N= ECHO_T= |
---|
28373 | case `echo -n x` in |
---|
28374 | -n*) |
---|
28375 | case `echo 'x\c'` in |
---|
28376 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
28377 | *) ECHO_C='\c';; |
---|
28378 | esac;; |
---|
28379 | *) |
---|
28380 | ECHO_N='-n';; |
---|
28381 | esac |
---|
28382 | |
---|
28383 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
28384 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
28385 | as_expr=expr |
---|
28386 | else |
---|
28387 | as_expr=false |
---|
28388 | fi |
---|
28389 | |
---|
28390 | rm -f conf$$ conf$$.exe conf$$.file |
---|
28391 | if test -d conf$$.dir; then |
---|
28392 | rm -f conf$$.dir/conf$$.file |
---|
28393 | else |
---|
28394 | rm -f conf$$.dir |
---|
28395 | mkdir conf$$.dir |
---|
28396 | fi |
---|
28397 | echo >conf$$.file |
---|
28398 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
28399 | as_ln_s='ln -s' |
---|
28400 | # ... but there are two gotchas: |
---|
28401 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
28402 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
28403 | # In both cases, we have to default to `cp -p'. |
---|
28404 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
28405 | as_ln_s='cp -p' |
---|
28406 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
28407 | as_ln_s=ln |
---|
28408 | else |
---|
28409 | as_ln_s='cp -p' |
---|
28410 | fi |
---|
28411 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
28412 | rmdir conf$$.dir 2>/dev/null |
---|
28413 | |
---|
28414 | if mkdir -p . 2>/dev/null; then |
---|
28415 | as_mkdir_p=: |
---|
28416 | else |
---|
28417 | test -d ./-p && rmdir ./-p |
---|
28418 | as_mkdir_p=false |
---|
28419 | fi |
---|
28420 | |
---|
28421 | if test -x / >/dev/null 2>&1; then |
---|
28422 | as_test_x='test -x' |
---|
28423 | else |
---|
28424 | if ls -dL / >/dev/null 2>&1; then |
---|
28425 | as_ls_L_option=L |
---|
28426 | else |
---|
28427 | as_ls_L_option= |
---|
28428 | fi |
---|
28429 | as_test_x=' |
---|
28430 | eval sh -c '\'' |
---|
28431 | if test -d "$1"; then |
---|
28432 | test -d "$1/."; |
---|
28433 | else |
---|
28434 | case $1 in |
---|
28435 | -*)set "./$1";; |
---|
28436 | esac; |
---|
28437 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
28438 | ???[sx]*):;;*)false;;esac;fi |
---|
28439 | '\'' sh |
---|
28440 | ' |
---|
28441 | fi |
---|
28442 | as_executable_p=$as_test_x |
---|
28443 | |
---|
28444 | # Sed expression to map a string onto a valid CPP name. |
---|
28445 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
28446 | |
---|
28447 | # Sed expression to map a string onto a valid variable name. |
---|
28448 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
28449 | |
---|
28450 | |
---|
28451 | exec 6>&1 |
---|
28452 | |
---|
28453 | # Save the log message, to keep $[0] and so on meaningful, and to |
---|
28454 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
28455 | # values after options handling. |
---|
28456 | ac_log=" |
---|
28457 | This file was extended by OGRE $as_me 1.4.5, which was |
---|
28458 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
28459 | |
---|
28460 | CONFIG_FILES = $CONFIG_FILES |
---|
28461 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
28462 | CONFIG_LINKS = $CONFIG_LINKS |
---|
28463 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
28464 | $ $0 $@ |
---|
28465 | |
---|
28466 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
28467 | " |
---|
28468 | |
---|
28469 | _ACEOF |
---|
28470 | |
---|
28471 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
28472 | # Files that config.status was made for. |
---|
28473 | config_files="$ac_config_files" |
---|
28474 | config_headers="$ac_config_headers" |
---|
28475 | config_commands="$ac_config_commands" |
---|
28476 | |
---|
28477 | _ACEOF |
---|
28478 | |
---|
28479 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
28480 | ac_cs_usage="\ |
---|
28481 | \`$as_me' instantiates files from templates according to the |
---|
28482 | current configuration. |
---|
28483 | |
---|
28484 | Usage: $0 [OPTIONS] [FILE]... |
---|
28485 | |
---|
28486 | -h, --help print this help, then exit |
---|
28487 | -V, --version print version number and configuration settings, then exit |
---|
28488 | -q, --quiet do not print progress messages |
---|
28489 | -d, --debug don't remove temporary files |
---|
28490 | --recheck update $as_me by reconfiguring in the same conditions |
---|
28491 | --file=FILE[:TEMPLATE] |
---|
28492 | instantiate the configuration file FILE |
---|
28493 | --header=FILE[:TEMPLATE] |
---|
28494 | instantiate the configuration header FILE |
---|
28495 | |
---|
28496 | Configuration files: |
---|
28497 | $config_files |
---|
28498 | |
---|
28499 | Configuration headers: |
---|
28500 | $config_headers |
---|
28501 | |
---|
28502 | Configuration commands: |
---|
28503 | $config_commands |
---|
28504 | |
---|
28505 | Report bugs to <bug-autoconf@gnu.org>." |
---|
28506 | |
---|
28507 | _ACEOF |
---|
28508 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
28509 | ac_cs_version="\\ |
---|
28510 | OGRE config.status 1.4.5 |
---|
28511 | configured by $0, generated by GNU Autoconf 2.61, |
---|
28512 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
---|
28513 | |
---|
28514 | Copyright (C) 2006 Free Software Foundation, Inc. |
---|
28515 | This config.status script is free software; the Free Software Foundation |
---|
28516 | gives unlimited permission to copy, distribute and modify it." |
---|
28517 | |
---|
28518 | ac_pwd='$ac_pwd' |
---|
28519 | srcdir='$srcdir' |
---|
28520 | INSTALL='$INSTALL' |
---|
28521 | _ACEOF |
---|
28522 | |
---|
28523 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
28524 | # If no file are specified by the user, then we need to provide default |
---|
28525 | # value. By we need to know if files were specified by the user. |
---|
28526 | ac_need_defaults=: |
---|
28527 | while test $# != 0 |
---|
28528 | do |
---|
28529 | case $1 in |
---|
28530 | --*=*) |
---|
28531 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
28532 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
28533 | ac_shift=: |
---|
28534 | ;; |
---|
28535 | *) |
---|
28536 | ac_option=$1 |
---|
28537 | ac_optarg=$2 |
---|
28538 | ac_shift=shift |
---|
28539 | ;; |
---|
28540 | esac |
---|
28541 | |
---|
28542 | case $ac_option in |
---|
28543 | # Handling of the options. |
---|
28544 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
28545 | ac_cs_recheck=: ;; |
---|
28546 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
28547 | echo "$ac_cs_version"; exit ;; |
---|
28548 | --debug | --debu | --deb | --de | --d | -d ) |
---|
28549 | debug=: ;; |
---|
28550 | --file | --fil | --fi | --f ) |
---|
28551 | $ac_shift |
---|
28552 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
28553 | ac_need_defaults=false;; |
---|
28554 | --header | --heade | --head | --hea ) |
---|
28555 | $ac_shift |
---|
28556 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
28557 | ac_need_defaults=false;; |
---|
28558 | --he | --h) |
---|
28559 | # Conflict between --help and --header |
---|
28560 | { echo "$as_me: error: ambiguous option: $1 |
---|
28561 | Try \`$0 --help' for more information." >&2 |
---|
28562 | { (exit 1); exit 1; }; };; |
---|
28563 | --help | --hel | -h ) |
---|
28564 | echo "$ac_cs_usage"; exit ;; |
---|
28565 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
28566 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
28567 | ac_cs_silent=: ;; |
---|
28568 | |
---|
28569 | # This is an error. |
---|
28570 | -*) { echo "$as_me: error: unrecognized option: $1 |
---|
28571 | Try \`$0 --help' for more information." >&2 |
---|
28572 | { (exit 1); exit 1; }; } ;; |
---|
28573 | |
---|
28574 | *) ac_config_targets="$ac_config_targets $1" |
---|
28575 | ac_need_defaults=false ;; |
---|
28576 | |
---|
28577 | esac |
---|
28578 | shift |
---|
28579 | done |
---|
28580 | |
---|
28581 | ac_configure_extra_args= |
---|
28582 | |
---|
28583 | if $ac_cs_silent; then |
---|
28584 | exec 6>/dev/null |
---|
28585 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
28586 | fi |
---|
28587 | |
---|
28588 | _ACEOF |
---|
28589 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
28590 | if \$ac_cs_recheck; then |
---|
28591 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
28592 | CONFIG_SHELL=$SHELL |
---|
28593 | export CONFIG_SHELL |
---|
28594 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
28595 | fi |
---|
28596 | |
---|
28597 | _ACEOF |
---|
28598 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
28599 | exec 5>>config.log |
---|
28600 | { |
---|
28601 | echo |
---|
28602 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
28603 | ## Running $as_me. ## |
---|
28604 | _ASBOX |
---|
28605 | echo "$ac_log" |
---|
28606 | } >&5 |
---|
28607 | |
---|
28608 | _ACEOF |
---|
28609 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
28610 | # |
---|
28611 | # INIT-COMMANDS |
---|
28612 | # |
---|
28613 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
28614 | |
---|
28615 | _ACEOF |
---|
28616 | |
---|
28617 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
28618 | |
---|
28619 | # Handling of arguments. |
---|
28620 | for ac_config_target in $ac_config_targets |
---|
28621 | do |
---|
28622 | case $ac_config_target in |
---|
28623 | "OgreMain/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS OgreMain/include/config.h" ;; |
---|
28624 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
28625 | "RenderSystems/GL/src/GLX/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/GLX/Makefile" ;; |
---|
28626 | "RenderSystems/GL/src/win32/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/win32/Makefile" ;; |
---|
28627 | "PlugIns/EXRCodec/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/EXRCodec/Makefile" ;; |
---|
28628 | "PlugIns/EXRCodec/src/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/EXRCodec/src/Makefile" ;; |
---|
28629 | "PlugIns/EXRCodec/include/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/EXRCodec/include/Makefile" ;; |
---|
28630 | "Samples/Common/CEGUIRenderer/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/CEGUIRenderer/Makefile" ;; |
---|
28631 | "Samples/Common/CEGUIRenderer/CEGUI-OGRE.pc") CONFIG_FILES="$CONFIG_FILES Samples/Common/CEGUIRenderer/CEGUI-OGRE.pc" ;; |
---|
28632 | "Samples/Common/CEGUIRenderer/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/CEGUIRenderer/src/Makefile" ;; |
---|
28633 | "Samples/Common/CEGUIRenderer/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/CEGUIRenderer/include/Makefile" ;; |
---|
28634 | "Samples/Gui/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Gui/Makefile" ;; |
---|
28635 | "Samples/Gui/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Gui/src/Makefile" ;; |
---|
28636 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
28637 | "OgreMain/Makefile") CONFIG_FILES="$CONFIG_FILES OgreMain/Makefile" ;; |
---|
28638 | "OgreMain/src/Makefile") CONFIG_FILES="$CONFIG_FILES OgreMain/src/Makefile" ;; |
---|
28639 | "OgreMain/include/Makefile") CONFIG_FILES="$CONFIG_FILES OgreMain/include/Makefile" ;; |
---|
28640 | "OgreMain/include/GLX/Makefile") CONFIG_FILES="$CONFIG_FILES OgreMain/include/GLX/Makefile" ;; |
---|
28641 | "OgreMain/include/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES OgreMain/include/gtk/Makefile" ;; |
---|
28642 | "PlugIns/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/Makefile" ;; |
---|
28643 | "PlugIns/BSPSceneManager/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/BSPSceneManager/Makefile" ;; |
---|
28644 | "PlugIns/BSPSceneManager/src/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/BSPSceneManager/src/Makefile" ;; |
---|
28645 | "PlugIns/BSPSceneManager/include/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/BSPSceneManager/include/Makefile" ;; |
---|
28646 | "PlugIns/CgProgramManager/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/CgProgramManager/Makefile" ;; |
---|
28647 | "PlugIns/CgProgramManager/src/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/CgProgramManager/src/Makefile" ;; |
---|
28648 | "PlugIns/CgProgramManager/include/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/CgProgramManager/include/Makefile" ;; |
---|
28649 | "PlugIns/OctreeSceneManager/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/OctreeSceneManager/Makefile" ;; |
---|
28650 | "PlugIns/OctreeSceneManager/src/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/OctreeSceneManager/src/Makefile" ;; |
---|
28651 | "PlugIns/OctreeSceneManager/include/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/OctreeSceneManager/include/Makefile" ;; |
---|
28652 | "PlugIns/ParticleFX/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/ParticleFX/Makefile" ;; |
---|
28653 | "PlugIns/ParticleFX/src/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/ParticleFX/src/Makefile" ;; |
---|
28654 | "PlugIns/ParticleFX/include/Makefile") CONFIG_FILES="$CONFIG_FILES PlugIns/ParticleFX/include/Makefile" ;; |
---|
28655 | "RenderSystems/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/Makefile" ;; |
---|
28656 | "RenderSystems/GL/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/Makefile" ;; |
---|
28657 | "RenderSystems/GL/src/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/Makefile" ;; |
---|
28658 | "RenderSystems/GL/include/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/include/Makefile" ;; |
---|
28659 | "RenderSystems/GL/src/atifs/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/atifs/Makefile" ;; |
---|
28660 | "RenderSystems/GL/src/atifs/include/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/atifs/include/Makefile" ;; |
---|
28661 | "RenderSystems/GL/src/atifs/src/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/atifs/src/Makefile" ;; |
---|
28662 | "RenderSystems/GL/src/GLSL/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/GLSL/Makefile" ;; |
---|
28663 | "RenderSystems/GL/src/GLSL/include/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/GLSL/include/Makefile" ;; |
---|
28664 | "RenderSystems/GL/src/GLSL/src/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/GLSL/src/Makefile" ;; |
---|
28665 | "RenderSystems/GL/src/nvparse/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/GL/src/nvparse/Makefile" ;; |
---|
28666 | "RenderSystems/Direct3D9/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/Direct3D9/Makefile" ;; |
---|
28667 | "RenderSystems/Direct3D9/src/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/Direct3D9/src/Makefile" ;; |
---|
28668 | "RenderSystems/Direct3D9/include/Makefile") CONFIG_FILES="$CONFIG_FILES RenderSystems/Direct3D9/include/Makefile" ;; |
---|
28669 | "Samples/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Makefile" ;; |
---|
28670 | "Samples/Common/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/Makefile" ;; |
---|
28671 | "Samples/Common/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/include/Makefile" ;; |
---|
28672 | "Samples/Common/bin/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Common/bin/Makefile" ;; |
---|
28673 | "Samples/BezierPatch/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/BezierPatch/Makefile" ;; |
---|
28674 | "Samples/BezierPatch/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/BezierPatch/src/Makefile" ;; |
---|
28675 | "Samples/BezierPatch/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/BezierPatch/include/Makefile" ;; |
---|
28676 | "Samples/CameraTrack/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CameraTrack/Makefile" ;; |
---|
28677 | "Samples/CameraTrack/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CameraTrack/src/Makefile" ;; |
---|
28678 | "Samples/CelShading/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CelShading/Makefile" ;; |
---|
28679 | "Samples/CelShading/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CelShading/src/Makefile" ;; |
---|
28680 | "Samples/Compositor/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Compositor/Makefile" ;; |
---|
28681 | "Samples/Compositor/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Compositor/src/Makefile" ;; |
---|
28682 | "Samples/Compositor/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Compositor/include/Makefile" ;; |
---|
28683 | "Samples/CubeMapping/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CubeMapping/Makefile" ;; |
---|
28684 | "Samples/CubeMapping/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CubeMapping/src/Makefile" ;; |
---|
28685 | "Samples/CubeMapping/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/CubeMapping/include/Makefile" ;; |
---|
28686 | "Samples/DeferredShading/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DeferredShading/Makefile" ;; |
---|
28687 | "Samples/DeferredShading/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DeferredShading/src/Makefile" ;; |
---|
28688 | "Samples/DeferredShading/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DeferredShading/include/Makefile" ;; |
---|
28689 | "Samples/Dot3Bump/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Dot3Bump/Makefile" ;; |
---|
28690 | "Samples/Dot3Bump/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Dot3Bump/src/Makefile" ;; |
---|
28691 | "Samples/EnvMapping/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/EnvMapping/Makefile" ;; |
---|
28692 | "Samples/EnvMapping/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/EnvMapping/src/Makefile" ;; |
---|
28693 | "Samples/EnvMapping/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/EnvMapping/include/Makefile" ;; |
---|
28694 | "Samples/FacialAnimation/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/FacialAnimation/Makefile" ;; |
---|
28695 | "Samples/FacialAnimation/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/FacialAnimation/src/Makefile" ;; |
---|
28696 | "Samples/Fresnel/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Fresnel/Makefile" ;; |
---|
28697 | "Samples/Fresnel/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Fresnel/src/Makefile" ;; |
---|
28698 | "Samples/Grass/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Grass/Makefile" ;; |
---|
28699 | "Samples/Grass/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Grass/src/Makefile" ;; |
---|
28700 | "Samples/Transpacency/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Transpacency/Makefile" ;; |
---|
28701 | "Samples/Transpacency/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Transpacency/src/Makefile" ;; |
---|
28702 | "Samples/Transpacency/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Transpacency/include/Makefile" ;; |
---|
28703 | "Samples/Lighting/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Lighting/Makefile" ;; |
---|
28704 | "Samples/Lighting/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Lighting/src/Makefile" ;; |
---|
28705 | "Samples/Lighting/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Lighting/include/Makefile" ;; |
---|
28706 | "Samples/OceanDemo/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/OceanDemo/Makefile" ;; |
---|
28707 | "Samples/OceanDemo/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/OceanDemo/src/Makefile" ;; |
---|
28708 | "Samples/OceanDemo/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/OceanDemo/include/Makefile" ;; |
---|
28709 | "Samples/ParticleFX/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/ParticleFX/Makefile" ;; |
---|
28710 | "Samples/ParticleFX/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/ParticleFX/src/Makefile" ;; |
---|
28711 | "Samples/ParticleFX/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/ParticleFX/include/Makefile" ;; |
---|
28712 | "Samples/RenderToTexture/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/RenderToTexture/Makefile" ;; |
---|
28713 | "Samples/RenderToTexture/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/RenderToTexture/src/Makefile" ;; |
---|
28714 | "Samples/TextureFX/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/TextureFX/Makefile" ;; |
---|
28715 | "Samples/TextureFX/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/TextureFX/src/Makefile" ;; |
---|
28716 | "Samples/TextureFX/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/TextureFX/include/Makefile" ;; |
---|
28717 | "Samples/Shadows/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Shadows/Makefile" ;; |
---|
28718 | "Samples/Shadows/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Shadows/src/Makefile" ;; |
---|
28719 | "Samples/SkyBox/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyBox/Makefile" ;; |
---|
28720 | "Samples/SkyBox/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyBox/src/Makefile" ;; |
---|
28721 | "Samples/SkyBox/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyBox/include/Makefile" ;; |
---|
28722 | "Samples/SkyDome/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyDome/Makefile" ;; |
---|
28723 | "Samples/SkyDome/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyDome/src/Makefile" ;; |
---|
28724 | "Samples/SkyDome/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyDome/include/Makefile" ;; |
---|
28725 | "Samples/SkyPlane/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyPlane/Makefile" ;; |
---|
28726 | "Samples/SkyPlane/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyPlane/src/Makefile" ;; |
---|
28727 | "Samples/SkyPlane/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkyPlane/include/Makefile" ;; |
---|
28728 | "Samples/Smoke/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Smoke/Makefile" ;; |
---|
28729 | "Samples/Smoke/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Smoke/src/Makefile" ;; |
---|
28730 | "Samples/Smoke/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Smoke/include/Makefile" ;; |
---|
28731 | "Samples/BSP/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/BSP/Makefile" ;; |
---|
28732 | "Samples/BSP/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/BSP/src/Makefile" ;; |
---|
28733 | "Samples/SkeletalAnimation/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkeletalAnimation/Makefile" ;; |
---|
28734 | "Samples/SkeletalAnimation/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkeletalAnimation/src/Makefile" ;; |
---|
28735 | "Samples/SkeletalAnimation/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/SkeletalAnimation/include/Makefile" ;; |
---|
28736 | "Samples/Terrain/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Terrain/Makefile" ;; |
---|
28737 | "Samples/Terrain/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Terrain/src/Makefile" ;; |
---|
28738 | "Samples/Terrain/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Terrain/include/Makefile" ;; |
---|
28739 | "Samples/Water/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Water/Makefile" ;; |
---|
28740 | "Samples/Water/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Water/src/Makefile" ;; |
---|
28741 | "Samples/Water/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Water/include/Makefile" ;; |
---|
28742 | "Samples/DynTex/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DynTex/Makefile" ;; |
---|
28743 | "Samples/DynTex/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DynTex/src/Makefile" ;; |
---|
28744 | "Samples/DynTex/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/DynTex/include/Makefile" ;; |
---|
28745 | "Samples/VolumeTex/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/VolumeTex/Makefile" ;; |
---|
28746 | "Samples/VolumeTex/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/VolumeTex/src/Makefile" ;; |
---|
28747 | "Samples/VolumeTex/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/VolumeTex/include/Makefile" ;; |
---|
28748 | "Samples/Instancing/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Instancing/Makefile" ;; |
---|
28749 | "Samples/Instancing/src/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Instancing/src/Makefile" ;; |
---|
28750 | "Samples/Instancing/include/Makefile") CONFIG_FILES="$CONFIG_FILES Samples/Instancing/include/Makefile" ;; |
---|
28751 | "Tests/Makefile") CONFIG_FILES="$CONFIG_FILES Tests/Makefile" ;; |
---|
28752 | "Tests/src/Makefile") CONFIG_FILES="$CONFIG_FILES Tests/src/Makefile" ;; |
---|
28753 | "Tools/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/Makefile" ;; |
---|
28754 | "Tools/MaterialUpgrader/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/MaterialUpgrader/Makefile" ;; |
---|
28755 | "Tools/MaterialUpgrader/src/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/MaterialUpgrader/src/Makefile" ;; |
---|
28756 | "Tools/MaterialUpgrader/include/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/MaterialUpgrader/include/Makefile" ;; |
---|
28757 | "Tools/MeshUpgrader/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/MeshUpgrader/Makefile" ;; |
---|
28758 | "Tools/MeshUpgrader/src/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/MeshUpgrader/src/Makefile" ;; |
---|
28759 | "Tools/XMLConverter/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/XMLConverter/Makefile" ;; |
---|
28760 | "Tools/XMLConverter/src/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/XMLConverter/src/Makefile" ;; |
---|
28761 | "Tools/XMLConverter/include/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/XMLConverter/include/Makefile" ;; |
---|
28762 | "Tools/LightwaveConverter/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/LightwaveConverter/Makefile" ;; |
---|
28763 | "Tools/LightwaveConverter/src/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/LightwaveConverter/src/Makefile" ;; |
---|
28764 | "Tools/LightwaveConverter/include/Makefile") CONFIG_FILES="$CONFIG_FILES Tools/LightwaveConverter/include/Makefile" ;; |
---|
28765 | "OGRE.pc") CONFIG_FILES="$CONFIG_FILES OGRE.pc" ;; |
---|
28766 | |
---|
28767 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
28768 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
28769 | { (exit 1); exit 1; }; };; |
---|
28770 | esac |
---|
28771 | done |
---|
28772 | |
---|
28773 | |
---|
28774 | # If the user did not use the arguments to specify the items to instantiate, |
---|
28775 | # then the envvar interface is used. Set only those that are not. |
---|
28776 | # We use the long form for the default assignment because of an extremely |
---|
28777 | # bizarre bug on SunOS 4.1.3. |
---|
28778 | if $ac_need_defaults; then |
---|
28779 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
28780 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
28781 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
28782 | fi |
---|
28783 | |
---|
28784 | # Have a temporary directory for convenience. Make it in the build tree |
---|
28785 | # simply because there is no reason against having it here, and in addition, |
---|
28786 | # creating and moving files from /tmp can sometimes cause problems. |
---|
28787 | # Hook for its removal unless debugging. |
---|
28788 | # Note that there is a small window in which the directory will not be cleaned: |
---|
28789 | # after its creation but before its name has been assigned to `$tmp'. |
---|
28790 | $debug || |
---|
28791 | { |
---|
28792 | tmp= |
---|
28793 | trap 'exit_status=$? |
---|
28794 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
28795 | ' 0 |
---|
28796 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
28797 | } |
---|
28798 | # Create a (secure) tmp directory for tmp files. |
---|
28799 | |
---|
28800 | { |
---|
28801 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
28802 | test -n "$tmp" && test -d "$tmp" |
---|
28803 | } || |
---|
28804 | { |
---|
28805 | tmp=./conf$$-$RANDOM |
---|
28806 | (umask 077 && mkdir "$tmp") |
---|
28807 | } || |
---|
28808 | { |
---|
28809 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
28810 | { (exit 1); exit 1; } |
---|
28811 | } |
---|
28812 | |
---|
28813 | # |
---|
28814 | # Set up the sed scripts for CONFIG_FILES section. |
---|
28815 | # |
---|
28816 | |
---|
28817 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
28818 | # This happens for instance when ./config.status config.h |
---|
28819 | if test -n "$CONFIG_FILES"; then |
---|
28820 | |
---|
28821 | _ACEOF |
---|
28822 | |
---|
28823 | |
---|
28824 | |
---|
28825 | ac_delim='%!_!# ' |
---|
28826 | for ac_last_try in false false false false false :; do |
---|
28827 | cat >conf$$subs.sed <<_ACEOF |
---|
28828 | SHELL!$SHELL$ac_delim |
---|
28829 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
---|
28830 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
---|
28831 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
---|
28832 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
---|
28833 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
---|
28834 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
---|
28835 | exec_prefix!$exec_prefix$ac_delim |
---|
28836 | prefix!$prefix$ac_delim |
---|
28837 | program_transform_name!$program_transform_name$ac_delim |
---|
28838 | bindir!$bindir$ac_delim |
---|
28839 | sbindir!$sbindir$ac_delim |
---|
28840 | libexecdir!$libexecdir$ac_delim |
---|
28841 | datarootdir!$datarootdir$ac_delim |
---|
28842 | datadir!$datadir$ac_delim |
---|
28843 | sysconfdir!$sysconfdir$ac_delim |
---|
28844 | sharedstatedir!$sharedstatedir$ac_delim |
---|
28845 | localstatedir!$localstatedir$ac_delim |
---|
28846 | includedir!$includedir$ac_delim |
---|
28847 | oldincludedir!$oldincludedir$ac_delim |
---|
28848 | docdir!$docdir$ac_delim |
---|
28849 | infodir!$infodir$ac_delim |
---|
28850 | htmldir!$htmldir$ac_delim |
---|
28851 | dvidir!$dvidir$ac_delim |
---|
28852 | pdfdir!$pdfdir$ac_delim |
---|
28853 | psdir!$psdir$ac_delim |
---|
28854 | libdir!$libdir$ac_delim |
---|
28855 | localedir!$localedir$ac_delim |
---|
28856 | mandir!$mandir$ac_delim |
---|
28857 | DEFS!$DEFS$ac_delim |
---|
28858 | ECHO_C!$ECHO_C$ac_delim |
---|
28859 | ECHO_N!$ECHO_N$ac_delim |
---|
28860 | ECHO_T!$ECHO_T$ac_delim |
---|
28861 | LIBS!$LIBS$ac_delim |
---|
28862 | build_alias!$build_alias$ac_delim |
---|
28863 | host_alias!$host_alias$ac_delim |
---|
28864 | target_alias!$target_alias$ac_delim |
---|
28865 | build!$build$ac_delim |
---|
28866 | build_cpu!$build_cpu$ac_delim |
---|
28867 | build_vendor!$build_vendor$ac_delim |
---|
28868 | build_os!$build_os$ac_delim |
---|
28869 | host!$host$ac_delim |
---|
28870 | host_cpu!$host_cpu$ac_delim |
---|
28871 | host_vendor!$host_vendor$ac_delim |
---|
28872 | host_os!$host_os$ac_delim |
---|
28873 | target!$target$ac_delim |
---|
28874 | target_cpu!$target_cpu$ac_delim |
---|
28875 | target_vendor!$target_vendor$ac_delim |
---|
28876 | target_os!$target_os$ac_delim |
---|
28877 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
---|
28878 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
---|
28879 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
---|
28880 | CYGPATH_W!$CYGPATH_W$ac_delim |
---|
28881 | PACKAGE!$PACKAGE$ac_delim |
---|
28882 | VERSION!$VERSION$ac_delim |
---|
28883 | ACLOCAL!$ACLOCAL$ac_delim |
---|
28884 | AUTOCONF!$AUTOCONF$ac_delim |
---|
28885 | AUTOMAKE!$AUTOMAKE$ac_delim |
---|
28886 | AUTOHEADER!$AUTOHEADER$ac_delim |
---|
28887 | MAKEINFO!$MAKEINFO$ac_delim |
---|
28888 | install_sh!$install_sh$ac_delim |
---|
28889 | STRIP!$STRIP$ac_delim |
---|
28890 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
---|
28891 | mkdir_p!$mkdir_p$ac_delim |
---|
28892 | AWK!$AWK$ac_delim |
---|
28893 | SET_MAKE!$SET_MAKE$ac_delim |
---|
28894 | am__leading_dot!$am__leading_dot$ac_delim |
---|
28895 | AMTAR!$AMTAR$ac_delim |
---|
28896 | am__tar!$am__tar$ac_delim |
---|
28897 | am__untar!$am__untar$ac_delim |
---|
28898 | CC!$CC$ac_delim |
---|
28899 | CFLAGS!$CFLAGS$ac_delim |
---|
28900 | LDFLAGS!$LDFLAGS$ac_delim |
---|
28901 | CPPFLAGS!$CPPFLAGS$ac_delim |
---|
28902 | ac_ct_CC!$ac_ct_CC$ac_delim |
---|
28903 | EXEEXT!$EXEEXT$ac_delim |
---|
28904 | OBJEXT!$OBJEXT$ac_delim |
---|
28905 | DEPDIR!$DEPDIR$ac_delim |
---|
28906 | am__include!$am__include$ac_delim |
---|
28907 | am__quote!$am__quote$ac_delim |
---|
28908 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
---|
28909 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
---|
28910 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
---|
28911 | CCDEPMODE!$CCDEPMODE$ac_delim |
---|
28912 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
---|
28913 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
---|
28914 | CXX!$CXX$ac_delim |
---|
28915 | CXXFLAGS!$CXXFLAGS$ac_delim |
---|
28916 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
---|
28917 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
---|
28918 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
---|
28919 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
---|
28920 | YACC!$YACC$ac_delim |
---|
28921 | YFLAGS!$YFLAGS$ac_delim |
---|
28922 | LEX!$LEX$ac_delim |
---|
28923 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
---|
28924 | LEXLIB!$LEXLIB$ac_delim |
---|
28925 | _ACEOF |
---|
28926 | |
---|
28927 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
---|
28928 | break |
---|
28929 | elif $ac_last_try; then |
---|
28930 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
28931 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
28932 | { (exit 1); exit 1; }; } |
---|
28933 | else |
---|
28934 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
28935 | fi |
---|
28936 | done |
---|
28937 | |
---|
28938 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
---|
28939 | if test -n "$ac_eof"; then |
---|
28940 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
---|
28941 | ac_eof=`expr $ac_eof + 1` |
---|
28942 | fi |
---|
28943 | |
---|
28944 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
28945 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
---|
28946 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
28947 | _ACEOF |
---|
28948 | sed ' |
---|
28949 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
---|
28950 | s/^/s,@/; s/!/@,|#_!!_#|/ |
---|
28951 | :n |
---|
28952 | t n |
---|
28953 | s/'"$ac_delim"'$/,g/; t |
---|
28954 | s/$/\\/; p |
---|
28955 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
---|
28956 | ' >>$CONFIG_STATUS <conf$$subs.sed |
---|
28957 | rm -f conf$$subs.sed |
---|
28958 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
28959 | CEOF$ac_eof |
---|
28960 | _ACEOF |
---|
28961 | |
---|
28962 | |
---|
28963 | ac_delim='%!_!# ' |
---|
28964 | for ac_last_try in false false false false false :; do |
---|
28965 | cat >conf$$subs.sed <<_ACEOF |
---|
28966 | SHARED_FLAGS!$SHARED_FLAGS$ac_delim |
---|
28967 | PLUGIN_FLAGS!$PLUGIN_FLAGS$ac_delim |
---|
28968 | GL_LIBS!$GL_LIBS$ac_delim |
---|
28969 | RC!$RC$ac_delim |
---|
28970 | OGRE_NT_TRUE!$OGRE_NT_TRUE$ac_delim |
---|
28971 | OGRE_NT_FALSE!$OGRE_NT_FALSE$ac_delim |
---|
28972 | OGRE_LINUX_TRUE!$OGRE_LINUX_TRUE$ac_delim |
---|
28973 | OGRE_LINUX_FALSE!$OGRE_LINUX_FALSE$ac_delim |
---|
28974 | OGRE_OSX_TRUE!$OGRE_OSX_TRUE$ac_delim |
---|
28975 | OGRE_OSX_FALSE!$OGRE_OSX_FALSE$ac_delim |
---|
28976 | GREP!$GREP$ac_delim |
---|
28977 | EGREP!$EGREP$ac_delim |
---|
28978 | LN_S!$LN_S$ac_delim |
---|
28979 | ECHO!$ECHO$ac_delim |
---|
28980 | AR!$AR$ac_delim |
---|
28981 | RANLIB!$RANLIB$ac_delim |
---|
28982 | CPP!$CPP$ac_delim |
---|
28983 | CXXCPP!$CXXCPP$ac_delim |
---|
28984 | F77!$F77$ac_delim |
---|
28985 | FFLAGS!$FFLAGS$ac_delim |
---|
28986 | ac_ct_F77!$ac_ct_F77$ac_delim |
---|
28987 | LIBTOOL!$LIBTOOL$ac_delim |
---|
28988 | OGRE_CFLAGS!$OGRE_CFLAGS$ac_delim |
---|
28989 | CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim |
---|
28990 | STLPORT_CFLAGS!$STLPORT_CFLAGS$ac_delim |
---|
28991 | STLPORT_LIBS!$STLPORT_LIBS$ac_delim |
---|
28992 | FT2_CONFIG!$FT2_CONFIG$ac_delim |
---|
28993 | FT2_CFLAGS!$FT2_CFLAGS$ac_delim |
---|
28994 | FT2_LIBS!$FT2_LIBS$ac_delim |
---|
28995 | CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim |
---|
28996 | CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim |
---|
28997 | CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim |
---|
28998 | BUILD_UNIT_TESTS_TRUE!$BUILD_UNIT_TESTS_TRUE$ac_delim |
---|
28999 | BUILD_UNIT_TESTS_FALSE!$BUILD_UNIT_TESTS_FALSE$ac_delim |
---|
29000 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
---|
29001 | ZZIPLIB_CFLAGS!$ZZIPLIB_CFLAGS$ac_delim |
---|
29002 | ZZIPLIB_LIBS!$ZZIPLIB_LIBS$ac_delim |
---|
29003 | XMKMF!$XMKMF$ac_delim |
---|
29004 | PLATFORM_CFLAGS!$PLATFORM_CFLAGS$ac_delim |
---|
29005 | PLATFORM_LIBS!$PLATFORM_LIBS$ac_delim |
---|
29006 | OGRE_PLATFORM!$OGRE_PLATFORM$ac_delim |
---|
29007 | GLSUPPORT_CFLAGS!$GLSUPPORT_CFLAGS$ac_delim |
---|
29008 | GLSUPPORT_LIBS!$GLSUPPORT_LIBS$ac_delim |
---|
29009 | OGRE_GLSUPPORT!$OGRE_GLSUPPORT$ac_delim |
---|
29010 | GTK_CFLAGS!$GTK_CFLAGS$ac_delim |
---|
29011 | GTK_LIBS!$GTK_LIBS$ac_delim |
---|
29012 | OGRE_GUI!$OGRE_GUI$ac_delim |
---|
29013 | OGRE_THREAD_LIBS!$OGRE_THREAD_LIBS$ac_delim |
---|
29014 | USE_FREEIMAGE_TRUE!$USE_FREEIMAGE_TRUE$ac_delim |
---|
29015 | USE_FREEIMAGE_FALSE!$USE_FREEIMAGE_FALSE$ac_delim |
---|
29016 | USE_DEVIL_TRUE!$USE_DEVIL_TRUE$ac_delim |
---|
29017 | USE_DEVIL_FALSE!$USE_DEVIL_FALSE$ac_delim |
---|
29018 | BUILD_CGPLUGIN_TRUE!$BUILD_CGPLUGIN_TRUE$ac_delim |
---|
29019 | BUILD_CGPLUGIN_FALSE!$BUILD_CGPLUGIN_FALSE$ac_delim |
---|
29020 | OPENEXR_CFLAGS!$OPENEXR_CFLAGS$ac_delim |
---|
29021 | OPENEXR_LIBS!$OPENEXR_LIBS$ac_delim |
---|
29022 | BUILD_EXRPLUGIN_TRUE!$BUILD_EXRPLUGIN_TRUE$ac_delim |
---|
29023 | BUILD_EXRPLUGIN_FALSE!$BUILD_EXRPLUGIN_FALSE$ac_delim |
---|
29024 | BUILD_DX9RENDERSYSTEM_TRUE!$BUILD_DX9RENDERSYSTEM_TRUE$ac_delim |
---|
29025 | BUILD_DX9RENDERSYSTEM_FALSE!$BUILD_DX9RENDERSYSTEM_FALSE$ac_delim |
---|
29026 | OGRE_BUILD_SSE_TRUE!$OGRE_BUILD_SSE_TRUE$ac_delim |
---|
29027 | OGRE_BUILD_SSE_FALSE!$OGRE_BUILD_SSE_FALSE$ac_delim |
---|
29028 | SAME_PLATFORM_AND_GUI_TRUE!$SAME_PLATFORM_AND_GUI_TRUE$ac_delim |
---|
29029 | SAME_PLATFORM_AND_GUI_FALSE!$SAME_PLATFORM_AND_GUI_FALSE$ac_delim |
---|
29030 | OIS_CFLAGS!$OIS_CFLAGS$ac_delim |
---|
29031 | OIS_LIBS!$OIS_LIBS$ac_delim |
---|
29032 | OGRE_BUILDING_DEMOS_TRUE!$OGRE_BUILDING_DEMOS_TRUE$ac_delim |
---|
29033 | OGRE_BUILDING_DEMOS_FALSE!$OGRE_BUILDING_DEMOS_FALSE$ac_delim |
---|
29034 | CEGUI_CFLAGS!$CEGUI_CFLAGS$ac_delim |
---|
29035 | CEGUI_LIBS!$CEGUI_LIBS$ac_delim |
---|
29036 | HAVE_CEGUI_TRUE!$HAVE_CEGUI_TRUE$ac_delim |
---|
29037 | HAVE_CEGUI_FALSE!$HAVE_CEGUI_FALSE$ac_delim |
---|
29038 | abs_top_builddir!$abs_top_builddir$ac_delim |
---|
29039 | ogreexecdir!$ogreexecdir$ac_delim |
---|
29040 | LIBOBJS!$LIBOBJS$ac_delim |
---|
29041 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
---|
29042 | _ACEOF |
---|
29043 | |
---|
29044 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
---|
29045 | break |
---|
29046 | elif $ac_last_try; then |
---|
29047 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
29048 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
29049 | { (exit 1); exit 1; }; } |
---|
29050 | else |
---|
29051 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
29052 | fi |
---|
29053 | done |
---|
29054 | |
---|
29055 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
---|
29056 | if test -n "$ac_eof"; then |
---|
29057 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
---|
29058 | ac_eof=`expr $ac_eof + 1` |
---|
29059 | fi |
---|
29060 | |
---|
29061 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
29062 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
---|
29063 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
---|
29064 | _ACEOF |
---|
29065 | sed ' |
---|
29066 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
---|
29067 | s/^/s,@/; s/!/@,|#_!!_#|/ |
---|
29068 | :n |
---|
29069 | t n |
---|
29070 | s/'"$ac_delim"'$/,g/; t |
---|
29071 | s/$/\\/; p |
---|
29072 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
---|
29073 | ' >>$CONFIG_STATUS <conf$$subs.sed |
---|
29074 | rm -f conf$$subs.sed |
---|
29075 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
29076 | :end |
---|
29077 | s/|#_!!_#|//g |
---|
29078 | CEOF$ac_eof |
---|
29079 | _ACEOF |
---|
29080 | |
---|
29081 | |
---|
29082 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
29083 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
29084 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
29085 | # (actually we leave an empty line to preserve line numbers). |
---|
29086 | if test "x$srcdir" = x.; then |
---|
29087 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
29088 | s/:*\$(srcdir):*/:/ |
---|
29089 | s/:*\${srcdir}:*/:/ |
---|
29090 | s/:*@srcdir@:*/:/ |
---|
29091 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
29092 | s/:*$// |
---|
29093 | s/^[^=]*=[ ]*$// |
---|
29094 | }' |
---|
29095 | fi |
---|
29096 | |
---|
29097 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
29098 | fi # test -n "$CONFIG_FILES" |
---|
29099 | |
---|
29100 | |
---|
29101 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
---|
29102 | do |
---|
29103 | case $ac_tag in |
---|
29104 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
29105 | esac |
---|
29106 | case $ac_mode$ac_tag in |
---|
29107 | :[FHL]*:*);; |
---|
29108 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
---|
29109 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
---|
29110 | { (exit 1); exit 1; }; };; |
---|
29111 | :[FH]-) ac_tag=-:-;; |
---|
29112 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
29113 | esac |
---|
29114 | ac_save_IFS=$IFS |
---|
29115 | IFS=: |
---|
29116 | set x $ac_tag |
---|
29117 | IFS=$ac_save_IFS |
---|
29118 | shift |
---|
29119 | ac_file=$1 |
---|
29120 | shift |
---|
29121 | |
---|
29122 | case $ac_mode in |
---|
29123 | :L) ac_source=$1;; |
---|
29124 | :[FH]) |
---|
29125 | ac_file_inputs= |
---|
29126 | for ac_f |
---|
29127 | do |
---|
29128 | case $ac_f in |
---|
29129 | -) ac_f="$tmp/stdin";; |
---|
29130 | *) # Look for the file first in the build tree, then in the source tree |
---|
29131 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
29132 | # because $ac_f cannot contain `:'. |
---|
29133 | test -f "$ac_f" || |
---|
29134 | case $ac_f in |
---|
29135 | [\\/$]*) false;; |
---|
29136 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
29137 | esac || |
---|
29138 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
---|
29139 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
---|
29140 | { (exit 1); exit 1; }; };; |
---|
29141 | esac |
---|
29142 | ac_file_inputs="$ac_file_inputs $ac_f" |
---|
29143 | done |
---|
29144 | |
---|
29145 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
29146 | # use $as_me), people would be surprised to read: |
---|
29147 | # /* config.h. Generated by config.status. */ |
---|
29148 | configure_input="Generated from "`IFS=: |
---|
29149 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
---|
29150 | if test x"$ac_file" != x-; then |
---|
29151 | configure_input="$ac_file. $configure_input" |
---|
29152 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
29153 | echo "$as_me: creating $ac_file" >&6;} |
---|
29154 | fi |
---|
29155 | |
---|
29156 | case $ac_tag in |
---|
29157 | *:-:* | *:-) cat >"$tmp/stdin";; |
---|
29158 | esac |
---|
29159 | ;; |
---|
29160 | esac |
---|
29161 | |
---|
29162 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
29163 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
29164 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
29165 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
29166 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
29167 | echo X"$ac_file" | |
---|
29168 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
29169 | s//\1/ |
---|
29170 | q |
---|
29171 | } |
---|
29172 | /^X\(\/\/\)[^/].*/{ |
---|
29173 | s//\1/ |
---|
29174 | q |
---|
29175 | } |
---|
29176 | /^X\(\/\/\)$/{ |
---|
29177 | s//\1/ |
---|
29178 | q |
---|
29179 | } |
---|
29180 | /^X\(\/\).*/{ |
---|
29181 | s//\1/ |
---|
29182 | q |
---|
29183 | } |
---|
29184 | s/.*/./; q'` |
---|
29185 | { as_dir="$ac_dir" |
---|
29186 | case $as_dir in #( |
---|
29187 | -*) as_dir=./$as_dir;; |
---|
29188 | esac |
---|
29189 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
29190 | as_dirs= |
---|
29191 | while :; do |
---|
29192 | case $as_dir in #( |
---|
29193 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
---|
29194 | *) as_qdir=$as_dir;; |
---|
29195 | esac |
---|
29196 | as_dirs="'$as_qdir' $as_dirs" |
---|
29197 | as_dir=`$as_dirname -- "$as_dir" || |
---|
29198 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
29199 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
29200 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
29201 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
29202 | echo X"$as_dir" | |
---|
29203 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
29204 | s//\1/ |
---|
29205 | q |
---|
29206 | } |
---|
29207 | /^X\(\/\/\)[^/].*/{ |
---|
29208 | s//\1/ |
---|
29209 | q |
---|
29210 | } |
---|
29211 | /^X\(\/\/\)$/{ |
---|
29212 | s//\1/ |
---|
29213 | q |
---|
29214 | } |
---|
29215 | /^X\(\/\).*/{ |
---|
29216 | s//\1/ |
---|
29217 | q |
---|
29218 | } |
---|
29219 | s/.*/./; q'` |
---|
29220 | test -d "$as_dir" && break |
---|
29221 | done |
---|
29222 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
29223 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
29224 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
29225 | { (exit 1); exit 1; }; }; } |
---|
29226 | ac_builddir=. |
---|
29227 | |
---|
29228 | case "$ac_dir" in |
---|
29229 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
29230 | *) |
---|
29231 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
29232 | # A ".." for each directory in $ac_dir_suffix. |
---|
29233 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
29234 | case $ac_top_builddir_sub in |
---|
29235 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
29236 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
29237 | esac ;; |
---|
29238 | esac |
---|
29239 | ac_abs_top_builddir=$ac_pwd |
---|
29240 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
29241 | # for backward compatibility: |
---|
29242 | ac_top_builddir=$ac_top_build_prefix |
---|
29243 | |
---|
29244 | case $srcdir in |
---|
29245 | .) # We are building in place. |
---|
29246 | ac_srcdir=. |
---|
29247 | ac_top_srcdir=$ac_top_builddir_sub |
---|
29248 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
29249 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
29250 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
29251 | ac_top_srcdir=$srcdir |
---|
29252 | ac_abs_top_srcdir=$srcdir ;; |
---|
29253 | *) # Relative name. |
---|
29254 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
29255 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
29256 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
29257 | esac |
---|
29258 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
29259 | |
---|
29260 | |
---|
29261 | case $ac_mode in |
---|
29262 | :F) |
---|
29263 | # |
---|
29264 | # CONFIG_FILE |
---|
29265 | # |
---|
29266 | |
---|
29267 | case $INSTALL in |
---|
29268 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
29269 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
29270 | esac |
---|
29271 | _ACEOF |
---|
29272 | |
---|
29273 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
29274 | # If the template does not know about datarootdir, expand it. |
---|
29275 | # FIXME: This hack should be removed a few years after 2.60. |
---|
29276 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
29277 | |
---|
29278 | case `sed -n '/datarootdir/ { |
---|
29279 | p |
---|
29280 | q |
---|
29281 | } |
---|
29282 | /@datadir@/p |
---|
29283 | /@docdir@/p |
---|
29284 | /@infodir@/p |
---|
29285 | /@localedir@/p |
---|
29286 | /@mandir@/p |
---|
29287 | ' $ac_file_inputs` in |
---|
29288 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
29289 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
29290 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
29291 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
29292 | _ACEOF |
---|
29293 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
29294 | ac_datarootdir_hack=' |
---|
29295 | s&@datadir@&$datadir&g |
---|
29296 | s&@docdir@&$docdir&g |
---|
29297 | s&@infodir@&$infodir&g |
---|
29298 | s&@localedir@&$localedir&g |
---|
29299 | s&@mandir@&$mandir&g |
---|
29300 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
29301 | esac |
---|
29302 | _ACEOF |
---|
29303 | |
---|
29304 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
29305 | # Shell code in configure.ac might set extrasub. |
---|
29306 | # FIXME: do we really want to maintain this feature? |
---|
29307 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
29308 | sed "$ac_vpsub |
---|
29309 | $extrasub |
---|
29310 | _ACEOF |
---|
29311 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
29312 | :t |
---|
29313 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
29314 | s&@configure_input@&$configure_input&;t t |
---|
29315 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
29316 | s&@srcdir@&$ac_srcdir&;t t |
---|
29317 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
29318 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
29319 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
29320 | s&@builddir@&$ac_builddir&;t t |
---|
29321 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
29322 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
29323 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
29324 | $ac_datarootdir_hack |
---|
29325 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
---|
29326 | |
---|
29327 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
29328 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
29329 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
29330 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
29331 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
29332 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
29333 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
29334 | |
---|
29335 | rm -f "$tmp/stdin" |
---|
29336 | case $ac_file in |
---|
29337 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
---|
29338 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
---|
29339 | esac |
---|
29340 | ;; |
---|
29341 | :H) |
---|
29342 | # |
---|
29343 | # CONFIG_HEADER |
---|
29344 | # |
---|
29345 | _ACEOF |
---|
29346 | |
---|
29347 | # Transform confdefs.h into a sed script `conftest.defines', that |
---|
29348 | # substitutes the proper values into config.h.in to produce config.h. |
---|
29349 | rm -f conftest.defines conftest.tail |
---|
29350 | # First, append a space to every undef/define line, to ease matching. |
---|
29351 | echo 's/$/ /' >conftest.defines |
---|
29352 | # Then, protect against being on the right side of a sed subst, or in |
---|
29353 | # an unquoted here document, in config.status. If some macros were |
---|
29354 | # called several times there might be several #defines for the same |
---|
29355 | # symbol, which is useless. But do not sort them, since the last |
---|
29356 | # AC_DEFINE must be honored. |
---|
29357 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
29358 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
---|
29359 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
---|
29360 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
---|
29361 | # just an empty string. |
---|
29362 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
---|
29363 | ac_dB='\\)[ (].*,\\1define\\2' |
---|
29364 | ac_dC=' ' |
---|
29365 | ac_dD=' ,' |
---|
29366 | |
---|
29367 | uniq confdefs.h | |
---|
29368 | sed -n ' |
---|
29369 | t rset |
---|
29370 | :rset |
---|
29371 | s/^[ ]*#[ ]*define[ ][ ]*// |
---|
29372 | t ok |
---|
29373 | d |
---|
29374 | :ok |
---|
29375 | s/[\\&,]/\\&/g |
---|
29376 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
---|
29377 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
---|
29378 | ' >>conftest.defines |
---|
29379 | |
---|
29380 | # Remove the space that was appended to ease matching. |
---|
29381 | # Then replace #undef with comments. This is necessary, for |
---|
29382 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
29383 | # on some systems where configure will not decide to define it. |
---|
29384 | # (The regexp can be short, since the line contains either #define or #undef.) |
---|
29385 | echo 's/ $// |
---|
29386 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
---|
29387 | |
---|
29388 | # Break up conftest.defines: |
---|
29389 | ac_max_sed_lines=50 |
---|
29390 | |
---|
29391 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
---|
29392 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
---|
29393 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
---|
29394 | # et cetera. |
---|
29395 | ac_in='$ac_file_inputs' |
---|
29396 | ac_out='"$tmp/out1"' |
---|
29397 | ac_nxt='"$tmp/out2"' |
---|
29398 | |
---|
29399 | while : |
---|
29400 | do |
---|
29401 | # Write a here document: |
---|
29402 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
29403 | # First, check the format of the line: |
---|
29404 | cat >"\$tmp/defines.sed" <<\\CEOF |
---|
29405 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
---|
29406 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
---|
29407 | b |
---|
29408 | :def |
---|
29409 | _ACEOF |
---|
29410 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
---|
29411 | echo 'CEOF |
---|
29412 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
---|
29413 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
---|
29414 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
---|
29415 | grep . conftest.tail >/dev/null || break |
---|
29416 | rm -f conftest.defines |
---|
29417 | mv conftest.tail conftest.defines |
---|
29418 | done |
---|
29419 | rm -f conftest.defines conftest.tail |
---|
29420 | |
---|
29421 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
---|
29422 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
29423 | if test x"$ac_file" != x-; then |
---|
29424 | echo "/* $configure_input */" >"$tmp/config.h" |
---|
29425 | cat "$ac_result" >>"$tmp/config.h" |
---|
29426 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
---|
29427 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
29428 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
29429 | else |
---|
29430 | rm -f $ac_file |
---|
29431 | mv "$tmp/config.h" $ac_file |
---|
29432 | fi |
---|
29433 | else |
---|
29434 | echo "/* $configure_input */" |
---|
29435 | cat "$ac_result" |
---|
29436 | fi |
---|
29437 | rm -f "$tmp/out12" |
---|
29438 | # Compute $ac_file's index in $config_headers. |
---|
29439 | _am_stamp_count=1 |
---|
29440 | for _am_header in $config_headers :; do |
---|
29441 | case $_am_header in |
---|
29442 | $ac_file | $ac_file:* ) |
---|
29443 | break ;; |
---|
29444 | * ) |
---|
29445 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
29446 | esac |
---|
29447 | done |
---|
29448 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
---|
29449 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
29450 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
29451 | X$ac_file : 'X\(//\)$' \| \ |
---|
29452 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
---|
29453 | echo X$ac_file | |
---|
29454 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
29455 | s//\1/ |
---|
29456 | q |
---|
29457 | } |
---|
29458 | /^X\(\/\/\)[^/].*/{ |
---|
29459 | s//\1/ |
---|
29460 | q |
---|
29461 | } |
---|
29462 | /^X\(\/\/\)$/{ |
---|
29463 | s//\1/ |
---|
29464 | q |
---|
29465 | } |
---|
29466 | /^X\(\/\).*/{ |
---|
29467 | s//\1/ |
---|
29468 | q |
---|
29469 | } |
---|
29470 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
29471 | ;; |
---|
29472 | |
---|
29473 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
---|
29474 | echo "$as_me: executing $ac_file commands" >&6;} |
---|
29475 | ;; |
---|
29476 | esac |
---|
29477 | |
---|
29478 | |
---|
29479 | case $ac_file$ac_mode in |
---|
29480 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
29481 | # Strip MF so we end up with the name of the file. |
---|
29482 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
29483 | # Check whether this is an Automake generated Makefile or not. |
---|
29484 | # We used to match only the files named `Makefile.in', but |
---|
29485 | # some people rename them; so instead we look at the file content. |
---|
29486 | # Grep'ing the first line is not enough: some people post-process |
---|
29487 | # each Makefile.in and add a new line on top of each file to say so. |
---|
29488 | # So let's grep whole file. |
---|
29489 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
29490 | dirpart=`$as_dirname -- "$mf" || |
---|
29491 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
29492 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
29493 | X"$mf" : 'X\(//\)$' \| \ |
---|
29494 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
29495 | echo X"$mf" | |
---|
29496 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
29497 | s//\1/ |
---|
29498 | q |
---|
29499 | } |
---|
29500 | /^X\(\/\/\)[^/].*/{ |
---|
29501 | s//\1/ |
---|
29502 | q |
---|
29503 | } |
---|
29504 | /^X\(\/\/\)$/{ |
---|
29505 | s//\1/ |
---|
29506 | q |
---|
29507 | } |
---|
29508 | /^X\(\/\).*/{ |
---|
29509 | s//\1/ |
---|
29510 | q |
---|
29511 | } |
---|
29512 | s/.*/./; q'` |
---|
29513 | else |
---|
29514 | continue |
---|
29515 | fi |
---|
29516 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
29517 | # from the Makefile without running `make'. |
---|
29518 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
29519 | test -z "$DEPDIR" && continue |
---|
29520 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
29521 | test -z "am__include" && continue |
---|
29522 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
29523 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
29524 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
29525 | # Find all dependency output files, they are included files with |
---|
29526 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
29527 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
29528 | # expansion. |
---|
29529 | for file in `sed -n " |
---|
29530 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
29531 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
29532 | # Make sure the directory exists. |
---|
29533 | test -f "$dirpart/$file" && continue |
---|
29534 | fdir=`$as_dirname -- "$file" || |
---|
29535 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
29536 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
29537 | X"$file" : 'X\(//\)$' \| \ |
---|
29538 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
29539 | echo X"$file" | |
---|
29540 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
29541 | s//\1/ |
---|
29542 | q |
---|
29543 | } |
---|
29544 | /^X\(\/\/\)[^/].*/{ |
---|
29545 | s//\1/ |
---|
29546 | q |
---|
29547 | } |
---|
29548 | /^X\(\/\/\)$/{ |
---|
29549 | s//\1/ |
---|
29550 | q |
---|
29551 | } |
---|
29552 | /^X\(\/\).*/{ |
---|
29553 | s//\1/ |
---|
29554 | q |
---|
29555 | } |
---|
29556 | s/.*/./; q'` |
---|
29557 | { as_dir=$dirpart/$fdir |
---|
29558 | case $as_dir in #( |
---|
29559 | -*) as_dir=./$as_dir;; |
---|
29560 | esac |
---|
29561 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
29562 | as_dirs= |
---|
29563 | while :; do |
---|
29564 | case $as_dir in #( |
---|
29565 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
---|
29566 | *) as_qdir=$as_dir;; |
---|
29567 | esac |
---|
29568 | as_dirs="'$as_qdir' $as_dirs" |
---|
29569 | as_dir=`$as_dirname -- "$as_dir" || |
---|
29570 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
29571 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
29572 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
29573 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
29574 | echo X"$as_dir" | |
---|
29575 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
29576 | s//\1/ |
---|
29577 | q |
---|
29578 | } |
---|
29579 | /^X\(\/\/\)[^/].*/{ |
---|
29580 | s//\1/ |
---|
29581 | q |
---|
29582 | } |
---|
29583 | /^X\(\/\/\)$/{ |
---|
29584 | s//\1/ |
---|
29585 | q |
---|
29586 | } |
---|
29587 | /^X\(\/\).*/{ |
---|
29588 | s//\1/ |
---|
29589 | q |
---|
29590 | } |
---|
29591 | s/.*/./; q'` |
---|
29592 | test -d "$as_dir" && break |
---|
29593 | done |
---|
29594 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
29595 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
29596 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
29597 | { (exit 1); exit 1; }; }; } |
---|
29598 | # echo "creating $dirpart/$file" |
---|
29599 | echo '# dummy' > "$dirpart/$file" |
---|
29600 | done |
---|
29601 | done |
---|
29602 | ;; |
---|
29603 | |
---|
29604 | esac |
---|
29605 | done # for ac_tag |
---|
29606 | |
---|
29607 | |
---|
29608 | { (exit 0); exit 0; } |
---|
29609 | _ACEOF |
---|
29610 | chmod +x $CONFIG_STATUS |
---|
29611 | ac_clean_files=$ac_clean_files_save |
---|
29612 | |
---|
29613 | |
---|
29614 | # configure is writing to config.log, and then calls config.status. |
---|
29615 | # config.status does its own redirection, appending to config.log. |
---|
29616 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
29617 | # by configure, so config.status won't be able to write to it; its |
---|
29618 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
29619 | # effectively closing config.log, so it can be properly (re)opened and |
---|
29620 | # appended to by config.status. When coming back to configure, we |
---|
29621 | # need to make the FD available again. |
---|
29622 | if test "$no_create" != yes; then |
---|
29623 | ac_cs_success=: |
---|
29624 | ac_config_status_args= |
---|
29625 | test "$silent" = yes && |
---|
29626 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
29627 | exec 5>/dev/null |
---|
29628 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
29629 | exec 5>>config.log |
---|
29630 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
29631 | # would make configure fail if this is the last instruction. |
---|
29632 | $ac_cs_success || { (exit 1); exit 1; } |
---|
29633 | fi |
---|
29634 | |
---|
29635 | |
---|
29636 | |
---|
29637 | ft_detected=yes |
---|
29638 | test "x$no_ft" == "xyes" && ft_detected=no |
---|
29639 | |
---|
29640 | echo "--------=== Configuration summary ===--------" |
---|
29641 | echo " Target platform : $OGRE_PLATFORM" |
---|
29642 | echo " OpenGL Ogre support : $OGRE_GLSUPPORT" |
---|
29643 | echo " GUI library to use : $with_gui" |
---|
29644 | echo " Use double precision arithmetic : $build_double" |
---|
29645 | echo " Support for threading : $build_threads" |
---|
29646 | echo " Use STLport : $ac_cv_use_stlport" |
---|
29647 | echo " Use FreeType : $ft_detected" |
---|
29648 | echo " Use FreeImage : $build_freeimage" |
---|
29649 | echo " Use DevIL : $build_il" |
---|
29650 | echo " Build OGRE demos : $build_ogre_demos" |
---|
29651 | test "x$build_ogre_demos" == "xyes" && \ |
---|
29652 | echo " Build CEGUI demos : $build_cegui_sample" |
---|
29653 | echo " Build the OpenEXR plugin : $build_exr" |
---|
29654 | echo " Build the Cg plugin : $build_cg" |
---|
29655 | echo " Build the DirectX 9 plugin : $build_dx9" |
---|
29656 | echo "--------===============================--------" |
---|